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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc444641e720a83c5d609af55bb7f0723f35d489 | index.php | index.php | <?php
require_once 'global.php';
$templateData = [];
foreach($config as $key => $value) {
$sensor = [
"value" => $latest[$key],
"unit" => $value["unit"],
"measurement" => $value["measurement"],
"location" => $value["location"],
"sensorID" => $key
];
if (isset($value["small"]) && $value["small"]) {
$sens... | <?php
require_once 'global.php';
function queryData($obj_store) {
$data = $obj_store->fetchAll("SELECT * FROM Measurement ORDER BY recorded DESC LIMIT 1");
$dataArray = [];
foreach($data as $obj_ent) {
array_push($dataArray, $obj_ent->getData());
}
return array_reverse($dataArray);
}
$data = queryData($obj_sto... | Use live data (TODO: fix measurementTime?) | Use live data (TODO: fix measurementTime?) | PHP | mit | comp500/sensor-website,comp500/sensor-website | php | ## Code Before:
<?php
require_once 'global.php';
$templateData = [];
foreach($config as $key => $value) {
$sensor = [
"value" => $latest[$key],
"unit" => $value["unit"],
"measurement" => $value["measurement"],
"location" => $value["location"],
"sensorID" => $key
];
if (isset($value["small"]) && $value["sm... | <?php
require_once 'global.php';
+ function queryData($obj_store) {
+ $data = $obj_store->fetchAll("SELECT * FROM Measurement ORDER BY recorded DESC LIMIT 1");
+ $dataArray = [];
+ foreach($data as $obj_ent) {
+ array_push($dataArray, $obj_ent->getData());
+ }
+ return array_reverse($dataArray);
+ }
+
+ ... | 16 | 0.727273 | 15 | 1 |
df0c172afcf1672c9e8fdee87b247843cc8dbe76 | src/_compat.rs | src/_compat.rs | /// Compatibility name to ease the pain of moving
pub type Serialize = Value;
#[deprecated(note = "Renamed to PushFnValue")]
/// Compatibility name to ease the pain of moving
pub type PushLazy<T> = PushFnValue<T>;
#[deprecated(note = "Renamed to PushFnSerializer")]
/// Compatibility name to ease the pain of moving
pu... | /// Compatibility name to ease the pain of moving
pub type Serialize = Value;
#[deprecated(note = "Renamed to PushFnValue")]
/// Compatibility name to ease the pain of moving
pub type PushLazy<T> = PushFnValue<T>;
#[deprecated(note = "Renamed to PushFnSerializer")]
/// Compatibility name to ease the pain of moving
pu... | Add compatibility for removed `ser` module | Add compatibility for removed `ser` module
| Rust | mpl-2.0 | dpc/slog-rs | rust | ## Code Before:
/// Compatibility name to ease the pain of moving
pub type Serialize = Value;
#[deprecated(note = "Renamed to PushFnValue")]
/// Compatibility name to ease the pain of moving
pub type PushLazy<T> = PushFnValue<T>;
#[deprecated(note = "Renamed to PushFnSerializer")]
/// Compatibility name to ease the p... | /// Compatibility name to ease the pain of moving
pub type Serialize = Value;
#[deprecated(note = "Renamed to PushFnValue")]
/// Compatibility name to ease the pain of moving
pub type PushLazy<T> = PushFnValue<T>;
#[deprecated(note = "Renamed to PushFnSerializer")]
/// Compatibility name to ease the... | 6 | 0.6 | 6 | 0 |
c4ad7b1fcaa009fcb944c4322227cec9addecae9 | picocontainer/src/test/java/cucumber/runtime/java/picocontainer/RunCukesTest.java | picocontainer/src/test/java/cucumber/runtime/java/picocontainer/RunCukesTest.java | package cucumber.runtime.java.picocontainer;
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
//@Cucumber.Options(features = "cucumber/runtime/java/picocontainer/dates.feature:2:10")
public class RunCukesTest {
}
| package cucumber.runtime.java.picocontainer;
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
//@Cucumber.Options(features = "classpath:cucumber/runtime/java/picocontainer/dates.feature:3:11")
public class RunCukesTest {
}
| Update explicit feature path (but keep it commented out) | Update explicit feature path (but keep it commented out)
| Java | mit | ArishArbab/cucumber-jvm,flaviuratiu/cucumber-jvm,brasmusson/cucumber-jvm,HendrikSP/cucumber-jvm,ArishArbab/cucumber-jvm,danielwegener/cucumber-jvm,ArishArbab/cucumber-jvm,demos74dx/cucumber-jvm,andyb-ge/cucumber-jvm,PeterDG/cucumberPro,demos74dx/cucumber-jvm,DPUkyle/cucumber-jvm,brasmusson/cucumber-jvm,guardian/cucumbe... | java | ## Code Before:
package cucumber.runtime.java.picocontainer;
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
//@Cucumber.Options(features = "cucumber/runtime/java/picocontainer/dates.feature:2:10")
public class RunCukesTest {
}
## Instruction:
Update explicit feature path (b... | package cucumber.runtime.java.picocontainer;
import cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
- //@Cucumber.Options(features = "cucumber/runtime/java/picocontainer/dates.feature:2:10")
? ... | 2 | 0.222222 | 1 | 1 |
c971007919a8d090d7e817721b460dc11f0846e3 | .github/workflows/code_size.yml | .github/workflows/code_size.yml | name: Check code size
on:
push:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'tools/**'
- 'py/**'
- 'extmod/**'
- 'lib/**'
- 'ports/bare-arm/**'
- 'ports/minimal/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name:... | name: Check code size
on:
push:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'tools/**'
- 'py/**'
- 'extmod/**'
- 'lib/**'
- 'ports/bare-arm/**'
- 'ports/minimal/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name:... | Update package list before install packages. | .github/workflows: Update package list before install packages.
Change-Id: Ie4f9e803a0aefc15430841347cadf8c16f9cfaaf
Signed-off-by: Paul Sokolovsky <9dc5061f178bb11813e14f1ed02ba27eaf21fa5d@users.sourceforge.net>
| YAML | mit | pfalcon/micropython,pfalcon/micropython,pfalcon/micropython,pfalcon/micropython,pfalcon/micropython | yaml | ## Code Before:
name: Check code size
on:
push:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'tools/**'
- 'py/**'
- 'extmod/**'
- 'lib/**'
- 'ports/bare-arm/**'
- 'ports/minimal/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkou... | name: Check code size
on:
push:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'tools/**'
- 'py/**'
- 'extmod/**'
- 'lib/**'
- 'ports/bare-arm/**'
- 'ports/minimal/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
-... | 2 | 0.08 | 2 | 0 |
a5d999b0723452aef3a972ea1bc9603e0205d222 | metadata.rb | metadata.rb | name 'letsencrypt-boulder-server'
maintainer 'Thijs Houtenbos'
maintainer_email 'thoutenbos@schubergphilis.com'
license 'All rights reserved'
description "Installs/Configures Boulder, the ACME-based CA server by Let's Encrypt."
long_description IO.read(File.join(File.dirname(__FILE__), '... | name 'letsencrypt-boulder-server'
maintainer 'Thijs Houtenbos'
maintainer_email 'thoutenbos@schubergphilis.com'
license 'All rights reserved'
description "Installs/Configures Boulder, the ACME-based CA server by Let's Encrypt."
long_description IO.read(File.join(File.dirname(__FILE__), '... | Add more specific platform constraint. | Add more specific platform constraint.
| Ruby | mit | patcon/chef-letsencrypt-boulder-server | ruby | ## Code Before:
name 'letsencrypt-boulder-server'
maintainer 'Thijs Houtenbos'
maintainer_email 'thoutenbos@schubergphilis.com'
license 'All rights reserved'
description "Installs/Configures Boulder, the ACME-based CA server by Let's Encrypt."
long_description IO.read(File.join(File.dirn... | name 'letsencrypt-boulder-server'
maintainer 'Thijs Houtenbos'
maintainer_email 'thoutenbos@schubergphilis.com'
license 'All rights reserved'
description "Installs/Configures Boulder, the ACME-based CA server by Let's Encrypt."
long_description IO.read(File.join(File.dirname(... | 4 | 0.222222 | 2 | 2 |
6cfe26a61b2cfbe26b9083672cc5b02e09bf40d5 | templates/common/help/more_info.mustache | templates/common/help/more_info.mustache | <div>
<h3>Additional information:</h3>
<ul class="unstyled">
<li><a href="http://library.cooper.edu/Logininfo.html" target="_blank">Cooper Union</a></li>
<li><a href="http://library.newschool.edu/login/ns" target="_blank">New School</a></li>
<li><a href="http://nysidlibrary.org/logging-into-bobcat" targ... | <div>
<h3>Additional information:</h3>
<ul class="unstyled">
<li><a href="http://library.cooper.edu/Logininfo.html" target="_blank">Cooper Union</a></li>
<li><a href="http://library.newschool.edu/login/ns" target="_blank">New School</a></li>
<li><a href="http://library.nysid.edu/library" target="_blank"... | Change to NYSID library base URL. | Change to NYSID library base URL. | HTML+Django | mit | NYULibraries/pds-custom | html+django | ## Code Before:
<div>
<h3>Additional information:</h3>
<ul class="unstyled">
<li><a href="http://library.cooper.edu/Logininfo.html" target="_blank">Cooper Union</a></li>
<li><a href="http://library.newschool.edu/login/ns" target="_blank">New School</a></li>
<li><a href="http://nysidlibrary.org/logging-i... | <div>
<h3>Additional information:</h3>
<ul class="unstyled">
<li><a href="http://library.cooper.edu/Logininfo.html" target="_blank">Cooper Union</a></li>
<li><a href="http://library.newschool.edu/login/ns" target="_blank">New School</a></li>
- <li><a href="http://nysidlibrary.org/logging-into-... | 2 | 0.25 | 1 | 1 |
162eac062680813e5731dd71ec22763e74d8be75 | src/apps/intel_mp/test_10g_2q_blast_vmdq.sh | src/apps/intel_mp/test_10g_2q_blast_vmdq.sh | SNABB_SEND_BLAST=true ./testsend.snabb $SNABB_PCI_INTEL1 0 source2.pcap &
BLAST=$!
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "90:72:82:78:c9:7a" 0 0 > results.0 &
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "12:34:56:78:9a:bc" 1 4 > results.1
... |
SNABB_SEND_BLAST=true ./testsend.snabb $SNABB_PCI_INTEL1 0 source2.pcap &
BLAST=$!
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "90:72:82:78:c9:7a" 0 0 > results.0 &
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "12:34:56:78:9a:bc" 1 4 > results.1... | Adjust test to test that both vmdq pools get pkts | Adjust test to test that both vmdq pools get pkts
| Shell | apache-2.0 | snabbco/snabb,alexandergall/snabbswitch,Igalia/snabb,eugeneia/snabb,Igalia/snabbswitch,alexandergall/snabbswitch,eugeneia/snabbswitch,alexandergall/snabbswitch,eugeneia/snabb,SnabbCo/snabbswitch,eugeneia/snabbswitch,eugeneia/snabb,dpino/snabb,dpino/snabbswitch,eugeneia/snabb,eugeneia/snabb,Igalia/snabb,eugeneia/snabbsw... | shell | ## Code Before:
SNABB_SEND_BLAST=true ./testsend.snabb $SNABB_PCI_INTEL1 0 source2.pcap &
BLAST=$!
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "90:72:82:78:c9:7a" 0 0 > results.0 &
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "12:34:56:78:9a:bc" ... | +
SNABB_SEND_BLAST=true ./testsend.snabb $SNABB_PCI_INTEL1 0 source2.pcap &
BLAST=$!
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "90:72:82:78:c9:7a" 0 0 > results.0 &
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testvmdqrecv.snabb $SNABB_PCI_INTEL0 "12:34:56:78:9a:bc" 1 4... | 8 | 0.888889 | 7 | 1 |
1a44b2135014a6ebfb2f3fb234e5b9c480f4df87 | app/views/renalware/problems/problems/index.html.slim | app/views/renalware/problems/problems/index.html.slim | = render layout: "renalware/patients/layout", locals: { title: "Problems" } do
- if !current_user.read_only? && params[:add_problem].present?
= simple_form_for @problem, url: patient_problems_path(@patient), wrapper: :horizontal_form do |f|
= field_set_tag "New problem" do
.row
.larg... | = render layout: "renalware/patients/layout", locals: { title: "Problems" } do
- if !current_user.read_only? && params[:add_problem].present?
= simple_form_for @problem, url: patient_problems_path(@patient), wrapper: :horizontal_form do |f|
= field_set_tag "New problem" do
.row
.larg... | Rename 'View' problem link to 'Edit' | Rename 'View' problem link to 'Edit'
| Slim | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | slim | ## Code Before:
= render layout: "renalware/patients/layout", locals: { title: "Problems" } do
- if !current_user.read_only? && params[:add_problem].present?
= simple_form_for @problem, url: patient_problems_path(@patient), wrapper: :horizontal_form do |f|
= field_set_tag "New problem" do
.row
... | = render layout: "renalware/patients/layout", locals: { title: "Problems" } do
- if !current_user.read_only? && params[:add_problem].present?
= simple_form_for @problem, url: patient_problems_path(@patient), wrapper: :horizontal_form do |f|
= field_set_tag "New problem" do
.row
... | 4 | 0.111111 | 1 | 3 |
637cb0029903397005743bbf8c8654ae1e17c093 | metadata/org.kaziprst.android.ndfilter.txt | metadata/org.kaziprst.android.ndfilter.txt | Categories:Multimedia,Office
License:Apache2
Web Site:
Source Code:https://github.com/nciric/NDFilter
Issue Tracker:https://github.com/nciric/NDFilter/issues
Auto Name:ND Filter
Summary:Neutral density filter calculator
Description:
Helper tool for photographers to calculator neutral density filters.
.
Repo Type:git
... | Categories:Multimedia,Office
License:Apache2
Web Site:
Source Code:https://github.com/nciric/NDFilter
Issue Tracker:https://github.com/nciric/NDFilter/issues
Auto Name:ND Filter
Summary:Neutral density filter calculator
Description:
Helper tool for photographers to calculator neutral density filters.
.
Repo Type:git
... | Update ND Filter to 1.2 (3) | Update ND Filter to 1.2 (3)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Multimedia,Office
License:Apache2
Web Site:
Source Code:https://github.com/nciric/NDFilter
Issue Tracker:https://github.com/nciric/NDFilter/issues
Auto Name:ND Filter
Summary:Neutral density filter calculator
Description:
Helper tool for photographers to calculator neutral density filters.
.... | Categories:Multimedia,Office
License:Apache2
Web Site:
Source Code:https://github.com/nciric/NDFilter
Issue Tracker:https://github.com/nciric/NDFilter/issues
Auto Name:ND Filter
Summary:Neutral density filter calculator
Description:
Helper tool for photographers to calculator neutral density filter... | 5 | 0.2 | 5 | 0 |
ade57b98d41983097d3500b6a8f4cc227bcaf265 | package.json | package.json | {
"name": "expect-the-unexpected",
"version": "2.0.0",
"main": "index.js",
"scripts": {
"test": "mocha",
"lint": "eslint . && prettier --check '**/*.js'",
"coverage": "nyc --reporter lcov --reporter text mocha"
},
"author": "Gustav Nikolaj <gustavnikolaj@gmail.com>",
"contributors": [
"Sun... | {
"name": "expect-the-unexpected",
"version": "2.0.0",
"main": "index.js",
"scripts": {
"test": "mocha",
"lint": "eslint . && prettier --check '**/*.js'",
"coverage": "nyc --reporter lcov --reporter text mocha"
},
"author": "Gustav Nikolaj <gustavnikolaj@gmail.com>",
"contributors": [
"Sun... | Add myself as a contributor. | Add myself as a contributor.
| JSON | isc | unexpectedjs/expect-the-unexpected | json | ## Code Before:
{
"name": "expect-the-unexpected",
"version": "2.0.0",
"main": "index.js",
"scripts": {
"test": "mocha",
"lint": "eslint . && prettier --check '**/*.js'",
"coverage": "nyc --reporter lcov --reporter text mocha"
},
"author": "Gustav Nikolaj <gustavnikolaj@gmail.com>",
"contribut... | {
"name": "expect-the-unexpected",
"version": "2.0.0",
"main": "index.js",
"scripts": {
"test": "mocha",
"lint": "eslint . && prettier --check '**/*.js'",
"coverage": "nyc --reporter lcov --reporter text mocha"
},
"author": "Gustav Nikolaj <gustavnikolaj@gmail.com>",
"con... | 3 | 0.085714 | 2 | 1 |
a6b53489e6ff0673d2ead369fd4ec7f5e7a95e2f | modules/imgproc/perf/perf_bilateral.cpp | modules/imgproc/perf/perf_bilateral.cpp |
using namespace std;
using namespace cv;
using namespace perf;
using namespace testing;
using std::tr1::make_tuple;
using std::tr1::get;
CV_ENUM(Mat_Type, CV_8UC1, CV_8UC3, CV_32FC1, CV_32FC3)
typedef TestBaseWithParam< tr1::tuple<Size, int, Mat_Type> > TestBilateralFilter;
PERF_TEST_P( TestBilateralFilter, Bilater... |
using namespace std;
using namespace cv;
using namespace perf;
using namespace testing;
using std::tr1::make_tuple;
using std::tr1::get;
CV_ENUM(Mat_Type, CV_8UC1, CV_8UC3, CV_32FC1, CV_32FC3)
typedef TestBaseWithParam< tr1::tuple<Size, int, Mat_Type> > TestBilateralFilter;
PERF_TEST_P( TestBilateralFilter, Bilater... | Change sanity check for perfomance test of bilateral filter | Change sanity check for perfomance test of bilateral filter
| C++ | bsd-3-clause | apavlenko/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,apavlenko/opencv,opencv/opencv,apavlenko/opencv,apavlenko/opencv,opencv/opencv,opencv/opencv,apavlenko/opencv,opencv/opencv | c++ | ## Code Before:
using namespace std;
using namespace cv;
using namespace perf;
using namespace testing;
using std::tr1::make_tuple;
using std::tr1::get;
CV_ENUM(Mat_Type, CV_8UC1, CV_8UC3, CV_32FC1, CV_32FC3)
typedef TestBaseWithParam< tr1::tuple<Size, int, Mat_Type> > TestBilateralFilter;
PERF_TEST_P( TestBilatera... |
using namespace std;
using namespace cv;
using namespace perf;
using namespace testing;
using std::tr1::make_tuple;
using std::tr1::get;
CV_ENUM(Mat_Type, CV_8UC1, CV_8UC3, CV_32FC1, CV_32FC3)
typedef TestBaseWithParam< tr1::tuple<Size, int, Mat_Type> > TestBilateralFilter;
PERF_TEST_P( Te... | 2 | 0.054054 | 1 | 1 |
837bc0f2e3e1f62fe76d5bb2bb3f82f757b278dd | lib/linux-connector.js | lib/linux-connector.js | var joystick = require('joystick'),
chalk = require('chalk'),
Stick = require('./stick');
/**
* Event "xboxButton" only on linux
*/
function LinuxConnector(opts) {
this.xboxJoystick = new joystick(0, 3500, 350);
this.controller = opts && opts.controller;
if(this.xboxJoystick){
console.log(chalk.green('... | var joystick = require('joystick'),
chalk = require('chalk'),
Stick = require('./stick');
/**
* Event "xboxButton" only on linux
*/
function LinuxConnector(opts) {
this.xboxJoystick = new joystick(0, 3500, 350);
this.controller = opts && opts.controller;
this.xboxJoystick.on('error', function (err) {
c... | Add xbox not found message on LinuxConnector constructor | Add xbox not found message on LinuxConnector constructor
| JavaScript | mit | mapaiva/xbox-controller-node,mapaiva/xbox-controller-node | javascript | ## Code Before:
var joystick = require('joystick'),
chalk = require('chalk'),
Stick = require('./stick');
/**
* Event "xboxButton" only on linux
*/
function LinuxConnector(opts) {
this.xboxJoystick = new joystick(0, 3500, 350);
this.controller = opts && opts.controller;
if(this.xboxJoystick){
console.l... | var joystick = require('joystick'),
chalk = require('chalk'),
Stick = require('./stick');
/**
* Event "xboxButton" only on linux
*/
function LinuxConnector(opts) {
this.xboxJoystick = new joystick(0, 3500, 350);
this.controller = opts && opts.controller;
+
+ this.xboxJoystick.on('error'... | 4 | 0.072727 | 4 | 0 |
096b30b5e8df16120aba1ee0de5c7e5b77bc18d5 | .goxc.json | .goxc.json | {
"AppName": "aptly",
"ArtifactsDest": "xc-out/",
"TasksExclude": [
"rmbin",
"go-test",
"go-vet"
],
"TasksAppend": [
"bintray"
],
"TaskSettings": {
"deb": {
"metadata": {
"maintainer": "Andrey Smirnov",
"maintainerEmail": "me@smira.ru",
... | {
"AppName": "aptly",
"ArtifactsDest": "xc-out/",
"TasksExclude": [
"rmbin",
"go-test",
"go-vet"
],
"TasksAppend": [
"bintray"
],
"TaskSettings": {
"debs": {
"metadata": {
"maintainer": "Andrey Smirnov",
"maintainer-email": "me@smira.ru",
... | Update `Depends:` for homegrown packages | Update `Depends:` for homegrown packages
This should match upstream Debian package, at the same time
`goxc` seems to be broken and it ignores `Suggests`.
| JSON | mit | adfinis-forks/aptly,neolynx/aptly,smira/aptly,adfinis-forks/aptly,neolynx/aptly,aptly-dev/aptly,neolynx/aptly,adfinis-forks/aptly,smira/aptly,aptly-dev/aptly,aptly-dev/aptly,smira/aptly | json | ## Code Before:
{
"AppName": "aptly",
"ArtifactsDest": "xc-out/",
"TasksExclude": [
"rmbin",
"go-test",
"go-vet"
],
"TasksAppend": [
"bintray"
],
"TaskSettings": {
"deb": {
"metadata": {
"maintainer": "Andrey Smirnov",
"maintainerEmail": "me@sm... | {
"AppName": "aptly",
"ArtifactsDest": "xc-out/",
"TasksExclude": [
"rmbin",
"go-test",
"go-vet"
],
"TasksAppend": [
"bintray"
],
"TaskSettings": {
- "deb": {
+ "debs": {
? +
"metadata": {
"maintainer": "Andrey ... | 8 | 0.173913 | 4 | 4 |
bbc223c3e55ab554ee4d6aa2fde578af6d5f0d72 | README.md | README.md |
Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent.
[](https://travis-ci.org/bosun-monitor/bosun)
## building
To build bosun and scollector, clone to `$GOPATH/src/bosun.org`:
```
... |
Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent. Learn more at [bosun.org](http://bosun.org).
[](https://travis-ci.org/bosun-monitor/bosun)
## building
To build bosun and scolle... | Add link to bosun.org in readme | Add link to bosun.org in readme | Markdown | mit | mehulkar/bosun,dimamedvedev/bosun,bosun-monitor/bosun,fisdap/bosun,csmith-palantir/bosun,bosun-monitor/bosun,briantist/bosun,youngl98/bosun,bridgewell/bosun,couchand/bosun,simnv/bosun,bosun-sharklasers/bosun,snowsnail/bosun,influxdb/bosun,cazacugmihai/bosun,briantist/bosun,azhurbilo/bosun,youngl98/bosun,influxdata/bosu... | markdown | ## Code Before:
Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent.
[](https://travis-ci.org/bosun-monitor/bosun)
## building
To build bosun and scollector, clone to `$GOPATH/src/b... |
- Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent.
+ Bosun is a time series alerting framework developed by Stack Exchange. Scollector is a metric collection agent. Learn more at [bosun.org](http://bosun.org).
? ... | 2 | 0.0625 | 1 | 1 |
a164ac8f1584e1bb51a5cc90dea923d920e103e7 | README.md | README.md | **Note:** This software is currently a work in progress and most features mentioned below are not implemented, yet.
Plyades
=======
[](https://travis-ci.org/helgee/plyades)
Plyades is an astrodynamics library, written in Python and based on Numpy and Scipy.
... | **Note:** This software is currently a work in progress and most features mentioned below are not implemented, yet.
Plyades
=======
[](https://travis-ci.org/helgee/plyades)
Plyades is an astrodynamics library, written in Python and based on Numpy and Scipy.
... | Add documentation link to readme. | Add documentation link to readme.
| Markdown | mit | helgee/plyades | markdown | ## Code Before:
**Note:** This software is currently a work in progress and most features mentioned below are not implemented, yet.
Plyades
=======
[](https://travis-ci.org/helgee/plyades)
Plyades is an astrodynamics library, written in Python and based on Num... | **Note:** This software is currently a work in progress and most features mentioned below are not implemented, yet.
Plyades
=======
[](https://travis-ci.org/helgee/plyades)
Plyades is an astrodynamics library, written in Python and based on Numpy... | 1 | 0.021739 | 1 | 0 |
17020fe338aeb44ed1de9144c4ccabd23fbcbaa7 | scripts/travis.sh | scripts/travis.sh |
pip install argparse coverage nose --use-mirrors
pip install -r requirements.txt --use-mirrors
pip install -r requirements-dev.txt --use-mirrors
python setup.py nosetests
exit $?
| pip install coverage nose --use-mirrors
pip install -r requirements.txt --use-mirrors
pip install -r requirements-dev.txt --use-mirrors
python setup.py nosetests
exit $?
| Remove argparse to test Travis | Remove argparse to test Travis
| Shell | bsd-3-clause | rjdp/cement,fxstein/cement,rjdp/cement,akhilman/cement,akhilman/cement,fxstein/cement,rjdp/cement,fxstein/cement,akhilman/cement,datafolklabs/cement,datafolklabs/cement,datafolklabs/cement | shell | ## Code Before:
pip install argparse coverage nose --use-mirrors
pip install -r requirements.txt --use-mirrors
pip install -r requirements-dev.txt --use-mirrors
python setup.py nosetests
exit $?
## Instruction:
Remove argparse to test Travis
## Code After:
pip install coverage nose --use-mirrors
pip install -r requi... | -
- pip install argparse coverage nose --use-mirrors
? ---------
+ pip install coverage nose --use-mirrors
pip install -r requirements.txt --use-mirrors
pip install -r requirements-dev.txt --use-mirrors
python setup.py nosetests
exit $? | 3 | 0.5 | 1 | 2 |
be4367fd440c72500b4814ecfa5d125f3e76bfd7 | public/client/models/Message.js | public/client/models/Message.js | //setup backbone message model
var Message = Backbone.Model.extend({
defaults:{
username:'',
text: '',
room:'',
lang: 'en',
translations: {}
}
});
| //setup backbone message model
var Message = Backbone.Model.extend({
defaults:{
username:'',
text: '',
room:'',
lang: 'en',
avatar: 'A01',
translations: {}
}
});
| Add default avatar to model defaults | Add default avatar to model defaults
| JavaScript | mit | leeric92/HumpbackSeahorses,leeric92/HumpbackSeahorses,leeric92/HumpbackSeahorses | javascript | ## Code Before:
//setup backbone message model
var Message = Backbone.Model.extend({
defaults:{
username:'',
text: '',
room:'',
lang: 'en',
translations: {}
}
});
## Instruction:
Add default avatar to model defaults
## Code After:
//setup backbone message model
var Message = Backbone.Model.ext... | //setup backbone message model
var Message = Backbone.Model.extend({
defaults:{
username:'',
text: '',
room:'',
lang: 'en',
+ avatar: 'A01',
translations: {}
}
}); | 1 | 0.1 | 1 | 0 |
4be2ec376e105d33f9a7dca40ed6fb9e593e8251 | tox.ini | tox.ini | [tox]
envlist = py{35,36,37,38}, docs, flake8
# On developers local machines usually not all of
# python3.4...python3.8 interpreters are available, so
# don't fail when a developer just runs "tox" locally.
# This can be overridden (as it should be in CI) using
# "tox --skip-missing-interpreters=false" so that if the CI... | [tox]
envlist = py{35,36,37,38}, docs, flake8
# On developers local machines usually not all of
# python3.4...python3.8 interpreters are available, so
# don't fail when a developer just runs "tox" locally.
# This can be overridden (as it should be in CI) using
# "tox --skip-missing-interpreters=false" so that if the CI... | Make versions of test, docs, and flake8 dependencies more precise | Make versions of test, docs, and flake8 dependencies more precise
I think this is a good thing to do. The more precise these versions are, the more repeatable these build steps are. It's a bummer that RTD seems to require an old version onf sphinx.
Co-Authored-By: Chris Jerdonek <3ec5ae488bc7ef4c4c2ea303a4cf6277dd8d4... | INI | mit | Ceasar/staticjinja,Ceasar/staticjinja | ini | ## Code Before:
[tox]
envlist = py{35,36,37,38}, docs, flake8
# On developers local machines usually not all of
# python3.4...python3.8 interpreters are available, so
# don't fail when a developer just runs "tox" locally.
# This can be overridden (as it should be in CI) using
# "tox --skip-missing-interpreters=false" s... | [tox]
envlist = py{35,36,37,38}, docs, flake8
# On developers local machines usually not all of
# python3.4...python3.8 interpreters are available, so
# don't fail when a developer just runs "tox" locally.
# This can be overridden (as it should be in CI) using
# "tox --skip-missing-interpreters=false" so ... | 8 | 0.190476 | 4 | 4 |
8306b3e0aefebc55add00fb5c8c91f3713349acc | periodicity.gemspec | periodicity.gemspec | require File.expand_path('../lib/periodicity/version', __FILE__)
Gem::Specification.new do |gem|
gem.name = 'periodicity'
gem.version = Periodicity::VERSION
gem.description = gem.summary = "Job scheduler for Rails"
gem.authors = ["Dzmitry Plashchynski"]
gem.email = "plashchynski@gmail.co... | require File.expand_path('../lib/periodicity/version', __FILE__)
Gem::Specification.new do |s|
s.name = "periodicity"
s.version = Periodicity::VERSION
s.authors = ["Dzmitry Plashchynski"]
s.email = ["plashchynski@gmail.com"]
s.homepage = "https://github.com/plashchynski/periodicity"
... | Update gemspec according to Bundler scaffold | Update gemspec according to Bundler scaffold
| Ruby | apache-2.0 | gauravtiwari/crono,gauravtiwari/crono,Shirokowsky/crono,plashchynski/crono,plashchynski/crono,gauravtiwari/crono,Shirokowsky/crono,Shirokowsky/crono | ruby | ## Code Before:
require File.expand_path('../lib/periodicity/version', __FILE__)
Gem::Specification.new do |gem|
gem.name = 'periodicity'
gem.version = Periodicity::VERSION
gem.description = gem.summary = "Job scheduler for Rails"
gem.authors = ["Dzmitry Plashchynski"]
gem.email = "plash... | require File.expand_path('../lib/periodicity/version', __FILE__)
- Gem::Specification.new do |gem|
? ^^^
+ Gem::Specification.new do |s|
? ^
- gem.name = 'periodicity'
? ^^^ ^ ^
+ s.name = "periodicity"
? ^ ... | 26 | 2 | 17 | 9 |
a9094588c176059e719361b25433fd17e2113c48 | test/com/twu/biblioteca/BibliotecaAppTest.java | test/com/twu/biblioteca/BibliotecaAppTest.java | package com.twu.biblioteca;
import com.twu.biblioteca.views.BibliotecaAppView;
import com.twu.biblioteca.views.BooksView;
import com.twu.biblioteca.views.MenuView;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;... | package com.twu.biblioteca;
import com.twu.biblioteca.views.BibliotecaAppView;
import com.twu.biblioteca.views.BooksView;
import com.twu.biblioteca.views.MenuView;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;... | Fix - added two missing parameters to the constructor | Fix - added two missing parameters to the constructor
| Java | apache-2.0 | arunvelsriram/twu-biblioteca-arunvelsriram | java | ## Code Before:
package com.twu.biblioteca;
import com.twu.biblioteca.views.BibliotecaAppView;
import com.twu.biblioteca.views.BooksView;
import com.twu.biblioteca.views.MenuView;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.Moc... | package com.twu.biblioteca;
import com.twu.biblioteca.views.BibliotecaAppView;
import com.twu.biblioteca.views.BooksView;
import com.twu.biblioteca.views.MenuView;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners... | 6 | 0.206897 | 5 | 1 |
da614357ab21f64a007658ad12b101887db25451 | lib/generators/rails/cocoonase_scaffold_controller/templates/strong_parameters.erb | lib/generators/rails/cocoonase_scaffold_controller/templates/strong_parameters.erb | ,
<%= indentation %><%= attribute_name %>_attributes: [:_destroy, :id, <%= permissible %><%= recurse %>]
| ,
<%= indentation %><%= defined?(ActiveRecord::ATTRIBUTES_REMOVED) ? attribute_name.pluralize : "#{attribute_name}_attributes" %>: [:_destroy, :id, <%= permissible %><%= recurse %>]
| Make shift fix to not use _attributes | Make shift fix to not use _attributes
| HTML+ERB | bsd-3-clause | nickl-/cocoonase,nickl-/cocoonase | html+erb | ## Code Before:
,
<%= indentation %><%= attribute_name %>_attributes: [:_destroy, :id, <%= permissible %><%= recurse %>]
## Instruction:
Make shift fix to not use _attributes
## Code After:
,
<%= indentation %><%= defined?(ActiveRecord::ATTRIBUTES_REMOVED) ? attribute_name.pluralize : "#{attribute_name}_a... | ,
- <%= indentation %><%= attribute_name %>_attributes: [:_destroy, :id, <%= permissible %><%= recurse %>]
+ <%= indentation %><%= defined?(ActiveRecord::ATTRIBUTES_REMOVED) ? attribute_name.pluralize : "#{attribute_name}_attributes" %>: [:_destroy, :id, <%= permissible %><%= recurse %>] | 2 | 1 | 1 | 1 |
56aba3ab7a23dd8bf322a9d577fa64e686dfc9ef | serrano/middleware.py | serrano/middleware.py | class SessionMiddleware(object):
def process_request(self, request):
if getattr(request, 'user', None) and request.user.is_authenticated():
return
session = request.session
# Ensure the session is created view processing, but only if a cookie
# had been previously set. Th... | from .tokens import get_request_token
class SessionMiddleware(object):
def process_request(self, request):
if getattr(request, 'user', None) and request.user.is_authenticated():
return
# Token-based authentication is attempting to be used, bypass CSRF
# check
if get_re... | Update SessionMiddleware to bypass CSRF if request token is present | Update SessionMiddleware to bypass CSRF if request token is present
For non-session-based authentication, Serrano resources handle
authenticating using a token based approach. If it is present, CSRF
must be turned off to exempt the resources from the check.
| Python | bsd-2-clause | rv816/serrano_night,chop-dbhi/serrano,chop-dbhi/serrano,rv816/serrano_night | python | ## Code Before:
class SessionMiddleware(object):
def process_request(self, request):
if getattr(request, 'user', None) and request.user.is_authenticated():
return
session = request.session
# Ensure the session is created view processing, but only if a cookie
# had been pr... | + from .tokens import get_request_token
+
+
class SessionMiddleware(object):
def process_request(self, request):
if getattr(request, 'user', None) and request.user.is_authenticated():
return
+
+ # Token-based authentication is attempting to be used, bypass CSRF
+ # che... | 12 | 0.857143 | 11 | 1 |
f9bc05d918a4e1028a7633bee9f897e26a863a9b | presto-docs/src/main/sphinx/connector/blackhole.rst | presto-docs/src/main/sphinx/connector/blackhole.rst | ====================
Black Hole Connector
====================
The Black Hole connector works like the /dev/null device file in the Linux operating system.
Metadata for any tables created via this connector is kept in memory and discarded when
Presto restarts. Tables are always empty, and any data written to them will... | ====================
Black Hole Connector
====================
The Black Hole connector works like the ``/dev/null`` device on Unix-like
operating systems. Metadata for any tables created via this connector is
kept in memory on the coordinator and discarded when Presto restarts.
Tables are always empty, and any data w... | Update documentation for Black Hole connector | Update documentation for Black Hole connector
| reStructuredText | apache-2.0 | XiaominZhang/presto,stewartpark/presto,siddhartharay007/presto,dabaitu/presto,hulu/presto,hulu/presto,Teradata/presto,mvp/presto,facebook/presto,prateek1306/presto,soz-fb/presto,zjshen/presto,Jimexist/presto,Myrthan/presto,dongjoon-hyun/presto,raghavsethi/presto,TeradataCenterForHadoop/bootcamp,miquelruiz/presto,nileem... | restructuredtext | ## Code Before:
====================
Black Hole Connector
====================
The Black Hole connector works like the /dev/null device file in the Linux operating system.
Metadata for any tables created via this connector is kept in memory and discarded when
Presto restarts. Tables are always empty, and any data writ... | ====================
Black Hole Connector
====================
- The Black Hole connector works like the /dev/null device file in the Linux operating system.
- Metadata for any tables created via this connector is kept in memory and discarded when
+ The Black Hole connector works like the ``/dev/null`` device ... | 36 | 0.947368 | 20 | 16 |
6210497dcf4f1ff0b02be77c646ba1cb4309844c | .travis.yml | .travis.yml | language: node_js
node_js:
- '8'
- '6'
cache:
directories:
- node_modules
script: 'yarn test:coverage'
after_success: 'yarn test:report'
| language: node_js
node_js:
- '8'
- '6'
cache:
directories:
- node_modules
script:
- 'yarn test:coverage'
- 'yarn lint'
after_success: 'yarn test:report'
| Add linting to be run on CI | Add linting to be run on CI
| YAML | mit | GitHug/jest-extended,mattphillips/jest-extended | yaml | ## Code Before:
language: node_js
node_js:
- '8'
- '6'
cache:
directories:
- node_modules
script: 'yarn test:coverage'
after_success: 'yarn test:report'
## Instruction:
Add linting to be run on CI
## Code After:
language: node_js
node_js:
- '8'
- '6'
cache:
directories:
- node_modules
script:
- ... | language: node_js
node_js:
- '8'
- '6'
cache:
directories:
- node_modules
+ script:
- script: 'yarn test:coverage'
? ^^^^^^^
+ - 'yarn test:coverage'
? ^^^
+ - 'yarn lint'
after_success: 'yarn test:report' | 4 | 0.444444 | 3 | 1 |
0c4b7b0c868587b47597b033e56ee0737025ecb8 | modules/openstack_project/files/jenkins_job_builder/config/release.yaml | modules/openstack_project/files/jenkins_job_builder/config/release.yaml | - job:
name: common-bump-milestone
concurrent: false
node: master
parameters:
- choice:
name: PROJECT
description: On what project to run?
choices:
- nova
- glance
- keystone
- horizon
- quantum
... | - job:
name: common-bump-milestone
concurrent: false
node: master
parameters:
- choice:
name: PROJECT
description: On what project to run?
choices:
- nova
- glance
- keystone
- horizon
- quantum
... | Add ceilometer to the common-bump-milestone job | Add ceilometer to the common-bump-milestone job
Change-Id: I9f102cac7a14b6ffd0a7d4408cd0906cc48a386c
Signed-off-by: Doug Hellmann <8c845c26a3868dadec615703cd974244eb2ac6d1@dreamhost.com>
Reviewed-on: https://review.openstack.org/15674
Reviewed-by: Julien Danjou <5c682c2d1ec4073e277f9ba9f4bdf07e5794dabe@danjou.info>
Re... | YAML | apache-2.0 | coolsvap/project-config,citrix-openstack/project-config,noorul/os-project-config,dongwenjuan/project-config,anbangr/osci-project-config,noorul/os-project-config,osrg/project-config,citrix-openstack/project-config,open-switch/infra_project-config,dongwenjuan/project-config,osrg/project-config,Tesora/tesora-project-confi... | yaml | ## Code Before:
- job:
name: common-bump-milestone
concurrent: false
node: master
parameters:
- choice:
name: PROJECT
description: On what project to run?
choices:
- nova
- glance
- keystone
- horizon
- quan... | - job:
name: common-bump-milestone
concurrent: false
node: master
parameters:
- choice:
name: PROJECT
description: On what project to run?
choices:
- nova
- glance
- keystone
- horizon
... | 1 | 0.027778 | 1 | 0 |
0baa3cc90f1346bbd93cfeb099bcad139ba70d13 | app/views/blocks/_show.html.erb | app/views/blocks/_show.html.erb | <%= content_tag :div, class: "#{block.model_name.singular.dasherize} block" do %>
<%= render "blocks/#{block.model_name.singular}/show", block: block %>
<% end %>
| <%= content_tag :div, class: "#{block.model_name.singular.dasherize} block #{block.try(:css_class)}" do %>
<%= render "blocks/#{block.model_name.singular}/show", block: block %>
<% end %>
| Enable adding additional css classes to block wrapper | Enable adding additional css classes to block wrapper
| HTML+ERB | mit | dylanfisher/forest,dylanfisher/forest,dylanfisher/forest | html+erb | ## Code Before:
<%= content_tag :div, class: "#{block.model_name.singular.dasherize} block" do %>
<%= render "blocks/#{block.model_name.singular}/show", block: block %>
<% end %>
## Instruction:
Enable adding additional css classes to block wrapper
## Code After:
<%= content_tag :div, class: "#{block.model_name.sin... | - <%= content_tag :div, class: "#{block.model_name.singular.dasherize} block" do %>
+ <%= content_tag :div, class: "#{block.model_name.singular.dasherize} block #{block.try(:css_class)}" do %>
? +++++++++++++++++++++++++
<%= render "blocks/#... | 2 | 0.666667 | 1 | 1 |
fb0a43c337c0f73a6cc88fd489add990e78d40b9 | lib/js/integrations/slack_integration.coffee | lib/js/integrations/slack_integration.coffee | Slack = require('slack-client')
require('events').EventEmitter
config = require('../../../config.json').slack;
class SlackIntegration
constructor: (opts)->
{
@token
} = opts
@slack = new Slack(@token, true, true)
@slack.login()
@slack_channels = []
@config_channels = config.channels
... | Slack = require('slack-client')
require('events').EventEmitter
config = require('../../../config.json').slack;
class SlackIntegration
DEFAULT_MESSAGE = "#{player} is playing #{game}. Go join them!"
constructor: (opts)->
{
@token
} = opts
@slack = new Slack(@token, true, true)
@slack.login()... | Add default message if none defined in config | Add default message if none defined in config
| CoffeeScript | mit | aleccool213/steam-buddy | coffeescript | ## Code Before:
Slack = require('slack-client')
require('events').EventEmitter
config = require('../../../config.json').slack;
class SlackIntegration
constructor: (opts)->
{
@token
} = opts
@slack = new Slack(@token, true, true)
@slack.login()
@slack_channels = []
@config_channels = c... | Slack = require('slack-client')
require('events').EventEmitter
config = require('../../../config.json').slack;
class SlackIntegration
+ DEFAULT_MESSAGE = "#{player} is playing #{game}. Go join them!"
constructor: (opts)->
{
@token
} = opts
@slack = new Slack(@token, true... | 9 | 0.214286 | 8 | 1 |
a336760e5466ab4107d9b3e9e5beaf0a6f952588 | app/views/servers/_heading.html.erb | app/views/servers/_heading.html.erb | <div class="heading">
<%= link_to "Server list", root_path %>
<h1>Server: <%= server.name %></h1>
<ul class="nav nav-tabs">
<li class="<%= "active" if tab == "apps" %>"><%= link_to "Apps", server_apps_path(server) %>
<li class="<%= "active" if tab == "services" %>"><%= link_to "Services", server_services_... | <div class="heading">
<h1>Server: <%= server.name %></h1>
<ul class="nav nav-tabs">
<li><%= link_to "#{icon("chevron-left")} Server list".html_safe, root_path %></li>
<li class="<%= "active" if tab == "apps" %>"><%= link_to "Apps", server_apps_path(server) %></li>
<li class="<%= "active" if tab == "serv... | Move the server list link | Move the server list link
Signed-off-by: Jeroen van Baarsen <2e488d5cebaf6d2832884be70e328933bd4c80ab@gmail.com>
| HTML+ERB | mit | jvanbaarsen/intercity-next,intercity/intercity-next,jvanbaarsen/intercity-next,intercity/intercity-next,jvanbaarsen/intercity-next,intercity/intercity-next,jvanbaarsen/intercity-next,intercity/intercity-next | html+erb | ## Code Before:
<div class="heading">
<%= link_to "Server list", root_path %>
<h1>Server: <%= server.name %></h1>
<ul class="nav nav-tabs">
<li class="<%= "active" if tab == "apps" %>"><%= link_to "Apps", server_apps_path(server) %>
<li class="<%= "active" if tab == "services" %>"><%= link_to "Services", ... | <div class="heading">
- <%= link_to "Server list", root_path %>
<h1>Server: <%= server.name %></h1>
<ul class="nav nav-tabs">
+ <li><%= link_to "#{icon("chevron-left")} Server list".html_safe, root_path %></li>
- <li class="<%= "active" if tab == "apps" %>"><%= link_to "Apps", server_apps_path(serve... | 8 | 0.8 | 4 | 4 |
c3a6554ce24781a3eaa9229f9609a09e4e018069 | lcd_restful/__main__.py | lcd_restful/__main__.py | import sys
from getopt import getopt, GetoptError
from .api import Server
from .fake import FakeLcdApi
USAGE = """\
Usage %s [-h|--help]
\t-h or --help\tThis help message
"""
def get_args(args):
try:
opts, args = getopt(args[1:], 'hf', ['help', 'fake'])
except GetoptError as e:
print('Getop... | import sys
from getopt import getopt, GetoptError
from .api import Server
from .lcd import Lcd
USAGE = """\
Usage %s [-h|--help] [-f|--fake]
\t-h or --help\tThis help message
\t-f or --fake\tIf on RPi, use FakeHw
"""
def get_args(args):
arg0 = args[0]
try:
opts, args = getopt(args[1:], 'hf', ['help... | Update main Lcd import and init, and fix help msg | Update main Lcd import and init, and fix help msg
| Python | mit | rfarley3/lcd-restful,rfarley3/lcd-restful | python | ## Code Before:
import sys
from getopt import getopt, GetoptError
from .api import Server
from .fake import FakeLcdApi
USAGE = """\
Usage %s [-h|--help]
\t-h or --help\tThis help message
"""
def get_args(args):
try:
opts, args = getopt(args[1:], 'hf', ['help', 'fake'])
except GetoptError as e:
... | import sys
from getopt import getopt, GetoptError
from .api import Server
- from .fake import FakeLcdApi
+ from .lcd import Lcd
USAGE = """\
- Usage %s [-h|--help]
+ Usage %s [-h|--help] [-f|--fake]
? ++++++++++++
\t-h or --help\tThis help message
+ \t-f or --fake\tIf on RPi, use Fa... | 16 | 0.355556 | 8 | 8 |
bb0a563b117c34df60acdcf6906478ecbd691f08 | content/open.md | content/open.md | ---
title: Open Stats
homepage: false
draft: false
charts: true
menu:
main:
name: Open
weight: 250
---
I'm trying to be transparent about the ongoings of GeoJS. Below are some public metrics including website analytics and API traffic.
## Website Analytics
<div data-sa-graph-url="https://simpleanalytics.io... | ---
title: Open Stats
homepage: false
draft: false
charts: true
menu:
main:
name: Open
weight: 250
---
I'm trying to be transparent about the ongoings of GeoJS. Below are some public metrics including website analytics and API traffic.
## API Traffic
Last 60 days of traffic for [get.geojs.io](https://get.g... | Change ordering and add comments | Change ordering and add comments
The API traffic chart tends to load first
| Markdown | mit | jloh/geojs-io,jloh/geojs-io | markdown | ## Code Before:
---
title: Open Stats
homepage: false
draft: false
charts: true
menu:
main:
name: Open
weight: 250
---
I'm trying to be transparent about the ongoings of GeoJS. Below are some public metrics including website analytics and API traffic.
## Website Analytics
<div data-sa-graph-url="https://si... | ---
title: Open Stats
homepage: false
draft: false
charts: true
menu:
main:
name: Open
weight: 250
---
I'm trying to be transparent about the ongoings of GeoJS. Below are some public metrics including website analytics and API traffic.
+ ## API Traffic
+
+ Last 60 days of traffic ... | 14 | 0.56 | 8 | 6 |
9a2440effe47e5a0664f5c4fcf744ee3a25b3128 | lib/starting_blocks/minitest_contract.rb | lib/starting_blocks/minitest_contract.rb | module StartingBlocks
class Contract
attr_reader :options
def initialize options
@options = options
end
def self.inherited klass
@contract_types ||= []
@contract_types << klass
end
def file_clues
["test", "spec"]
end
def extensions
[]
end
de... | module StartingBlocks
class Contract
attr_reader :options
def initialize options
@options = options
end
def self.inherited klass
@contract_types ||= []
@contract_types << klass
end
def file_clues
["test", "spec"]
end
def extensions
[]
end
de... | Use the new method for running a command. | Use the new method for running a command. | Ruby | mit | darrencauthon/starting_blocks | ruby | ## Code Before:
module StartingBlocks
class Contract
attr_reader :options
def initialize options
@options = options
end
def self.inherited klass
@contract_types ||= []
@contract_types << klass
end
def file_clues
["test", "spec"]
end
def extensions
[]... | module StartingBlocks
class Contract
attr_reader :options
def initialize options
@options = options
end
def self.inherited klass
@contract_types ||= []
@contract_types << klass
end
def file_clues
["test", "spec"]
end
... | 4 | 0.063492 | 2 | 2 |
6220f78ade4e5b050fe43d007dde14c971b47c98 | server.coffee | server.coffee | require 'js-yaml'
socket = require 'socket.io'
solid = require 'solid'
{Engine} = require './engine'
engine = new Engine
moves: require './data/bw/moves.yml'
io = socket.listen solid (app) ->
app.get '/', @render ->
@doctype 5
@html ->
@head ->
@js '/socket.io/socket.io.js'
@script ... | require 'js-yaml'
socket = require 'socket.io'
solid = require 'solid'
{Engine} = require './engine'
engine = new Engine
moves: require './data/bw/moves.yml'
io = socket.listen solid (app) ->
app.get '/jquery.js', @jquery
app.get '/', @render ->
@doctype 5
@html ->
@head ->
@js '/jquery.j... | Add jQuery and show move data. | Add jQuery and show move data.
| CoffeeScript | mit | 6/battletower,pepijndevos/battletower,sarenji/pokebattle-sim,sarenji/pokebattle-sim,askii93/battletower,sarenji/pokebattle-sim | coffeescript | ## Code Before:
require 'js-yaml'
socket = require 'socket.io'
solid = require 'solid'
{Engine} = require './engine'
engine = new Engine
moves: require './data/bw/moves.yml'
io = socket.listen solid (app) ->
app.get '/', @render ->
@doctype 5
@html ->
@head ->
@js '/socket.io/socket.io.js'
... | require 'js-yaml'
socket = require 'socket.io'
solid = require 'solid'
{Engine} = require './engine'
engine = new Engine
moves: require './data/bw/moves.yml'
io = socket.listen solid (app) ->
+ app.get '/jquery.js', @jquery
app.get '/', @render ->
@doctype 5
@html ->
@... | 7 | 0.28 | 6 | 1 |
f69c3d0d575d80deec7bfc06c9fa380813bcc328 | deployment/bin/search_tools.sh | deployment/bin/search_tools.sh | MIN_MEM=${max_mem:-"1000"}
MAX_MEM=${min_mem:-"3000"}
# Setup the JVM options using the JDK 1.7+ environment var _JAVA_OPTIONS
export _JAVA_OPTIONS="-Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
cd /kb/deployment/services/search/tomcat/webapps/
unzip ROOT.war
java -cp "WEB-INF/lib/*" kbasesearchengine.tools.SearchTo... | MIN_MEM=${max_mem:-"1000"}
MAX_MEM=${min_mem:-"3000"}
# Setup the JVM options using the JDK 1.7+ environment var _JAVA_OPTIONS
export _JAVA_OPTIONS="-Djava.awt.headless=true -Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
cd /kb/deployment/services/search/tomcat/webapps/
unzip ROOT.war
java -server -cp "WEB-INF/lib/*" ... | Tweak java options to enable headless mode | Tweak java options to enable headless mode
| Shell | mit | kbase/KBaseSearchEngine,kbase/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,kbase/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,kbase/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,MrCreosote/KBaseSearchEngine,kbase/KBaseSearchEngi... | shell | ## Code Before:
MIN_MEM=${max_mem:-"1000"}
MAX_MEM=${min_mem:-"3000"}
# Setup the JVM options using the JDK 1.7+ environment var _JAVA_OPTIONS
export _JAVA_OPTIONS="-Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
cd /kb/deployment/services/search/tomcat/webapps/
unzip ROOT.war
java -cp "WEB-INF/lib/*" kbasesearchengin... | MIN_MEM=${max_mem:-"1000"}
MAX_MEM=${min_mem:-"3000"}
# Setup the JVM options using the JDK 1.7+ environment var _JAVA_OPTIONS
- export _JAVA_OPTIONS="-Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
+ export _JAVA_OPTIONS="-Djava.awt.headless=true -Xms${MIN_MEM}m -Xmx${MAX_MEM}m -XX:+UseG1GC"
? ... | 4 | 0.4 | 2 | 2 |
d6871bd477dc33f65d1d56e2ce2160ce1caa0142 | Kwf/Update/20160824ComponentLinkViewCache.php | Kwf/Update/20160824ComponentLinkViewCache.php | <?php
class Kwf_Update_20160824ComponentLinkViewCache extends Kwf_Update
{
protected $_tags = array('kwc');
public function update()
{
Kwf_Component_Cache::getInstance()->deleteViewCache(array(
'type' => 'componentLink'
));
}
}
| <?php
class Kwf_Update_20160824ComponentLinkViewCache extends Kwf_Update
{
protected $_tags = array('kwc');
public function update()
{
//required for addition of Kwf_Component_Data::getLinkClass
Kwf_Component_Cache::getInstance()->deleteViewCache(array(
'type' => 'componentLink'... | Add comment why this update script is required | Add comment why this update script is required
| PHP | bsd-2-clause | koala-framework/koala-framework,koala-framework/koala-framework | php | ## Code Before:
<?php
class Kwf_Update_20160824ComponentLinkViewCache extends Kwf_Update
{
protected $_tags = array('kwc');
public function update()
{
Kwf_Component_Cache::getInstance()->deleteViewCache(array(
'type' => 'componentLink'
));
}
}
## Instruction:
Add comment wh... | <?php
class Kwf_Update_20160824ComponentLinkViewCache extends Kwf_Update
{
protected $_tags = array('kwc');
public function update()
{
+ //required for addition of Kwf_Component_Data::getLinkClass
Kwf_Component_Cache::getInstance()->deleteViewCache(array(
'type... | 1 | 0.083333 | 1 | 0 |
694daee2775279cdb4d1cbf7dcaea0b1f82e7aaa | modules/icinga/templates/nginx.conf.erb | modules/icinga/templates/nginx.conf.erb | server {
server_name nagios nagios.* icinga icinga.* alert alert.*;
<%- if scope.lookupvar('::aws_migration') %>
listen 80;
<%- else %>
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nagios.crt;
ssl_certificate_key /etc/nginx/ssl/nagios.key;
<%- end %>
include ... | server {
server_name nagios nagios.* icinga icinga.* alert alert.*;
<%- if scope.lookupvar('::aws_migration') %>
listen 80;
<%- else %>
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nagios.crt;
ssl_certificate_key /etc/nginx/ssl/nagios.key;
<%- end %>
include ... | Add Access-Control-Allow-Origin header for Icinga | Add Access-Control-Allow-Origin header for Icinga
This commit adds a `Access-Control-Allow-Origin` CORS header to all `.cgi` files for Icinga. This will allow the JSON output of these files to be read by other services, such as a proposed client-side implementation of Blinken. | HTML+ERB | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet | html+erb | ## Code Before:
server {
server_name nagios nagios.* icinga icinga.* alert alert.*;
<%- if scope.lookupvar('::aws_migration') %>
listen 80;
<%- else %>
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nagios.crt;
ssl_certificate_key /etc/nginx/ssl/nagios.key;
<%- end %>... | server {
server_name nagios nagios.* icinga icinga.* alert alert.*;
<%- if scope.lookupvar('::aws_migration') %>
listen 80;
<%- else %>
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/nagios.crt;
ssl_certificate_key /etc/nginx/ssl/nagios.key;
<%- en... | 2 | 0.054054 | 2 | 0 |
cde8f389cd44c4cfc2b1f5acfcbbedfd97b08993 | spec/MageTest/MagentoExtension/Context/Initializer/MagentoAwareInitializer.php | spec/MageTest/MagentoExtension/Context/Initializer/MagentoAwareInitializer.php | <?php
namespace spec\MageTest\MagentoExtension\Context\Initializer;
use PHPSpec2\Specification;
class MagentoAwareInitializer implements Specification
{
function described_with($bootstrap, $app, $config, $cache, $factory)
{
$bootstrap->isAMockOf('MageTest\MagentoExtension\Service\Bootstrap');
... | <?php
namespace spec\MageTest\MagentoExtension\Context\Initializer;
use PHPSpec2\Specification;
class MagentoAwareInitializer implements Specification
{
function described_with($bootstrap, $app, $config, $cache, $factory)
{
$bootstrap->isAMockOf('MageTest\MagentoExtension\Service\Bootstrap');
... | Fix the example that seemed to simply not work.. | Fix the example that seemed to simply not work..
| PHP | mit | MageTest/BehatMage,jamescowie/BehatMage,huyenpham/BehatMage,adam-paterson/BehatMage | php | ## Code Before:
<?php
namespace spec\MageTest\MagentoExtension\Context\Initializer;
use PHPSpec2\Specification;
class MagentoAwareInitializer implements Specification
{
function described_with($bootstrap, $app, $config, $cache, $factory)
{
$bootstrap->isAMockOf('MageTest\MagentoExtension\Service\Boot... | <?php
namespace spec\MageTest\MagentoExtension\Context\Initializer;
use PHPSpec2\Specification;
class MagentoAwareInitializer implements Specification
{
function described_with($bootstrap, $app, $config, $cache, $factory)
{
$bootstrap->isAMockOf('MageTest\MagentoExtension\Servic... | 10 | 0.27027 | 5 | 5 |
c9d70386d230ec0ffd1fe7cacb14ee601654dcf1 | practice04/06.cpp | practice04/06.cpp |
int main(void)
{
return 0;
}
|
double formula(const double x, const double k)
{
return (x * x) / ((2 * k - 1) * (2 * k));
}
int main(void)
{
double x;
printf("Enter x= ");
scanf("%lf", &x);
double cosx = 1,
sinx = x;
int k = 2;
while(k < MAX_LOOP)
{
cosx = cosx - cosx * formula(x, k++);
... | Add a body of prob 6 | Add a body of prob 6
| C++ | mit | kdzlvaids/problem_solving-pknu-2016,kdzlvaids/problem_solving-pknu-2016 | c++ | ## Code Before:
int main(void)
{
return 0;
}
## Instruction:
Add a body of prob 6
## Code After:
double formula(const double x, const double k)
{
return (x * x) / ((2 * k - 1) * (2 * k));
}
int main(void)
{
double x;
printf("Enter x= ");
scanf("%lf", &x);
double cosx = 1,
sinx =... | +
+ double formula(const double x, const double k)
+ {
+ return (x * x) / ((2 * k - 1) * (2 * k));
+ }
int main(void)
{
+ double x;
+ printf("Enter x= ");
+ scanf("%lf", &x);
+
+ double cosx = 1,
+ sinx = x;
+
+ int k = 2;
+ while(k < MAX_LOOP)
+ {
+ cosx = c... | 23 | 4.6 | 23 | 0 |
2e6311069cd9bc37082d032f44a954406af3b63a | apps/wiki/templates/wiki/list_documents.html | apps/wiki/templates/wiki/list_documents.html | {# vim: set ts=2 et sts=2 sw=2: #}
{% extends "wiki/base.html" %}
{% if category %}
{% set title = category %}
{% elif tag %}
{% set title = _('Articles tagged: {tag}')|f(tag=tag) %}
{% else %}
{% set title = _('All Articles') %}
{% endif %}
{% set crumbs = [(None, title)] %}
{% block content %}
<article id="d... | {# vim: set ts=2 et sts=2 sw=2: #}
{% extends "wiki/base.html" %}
{% if category %}
{% set title = category %}
{% elif tag %}
{% set title = _('Articles tagged: {tag}')|f(tag=tag) %}
{% else %}
{% set title = _('All Articles') %}
{% endif %}
{% set crumbs = [(None, title)] %}
{% block content %}
<section id="con... | Fix layout of docs/all page with section wrapper markup | Fix layout of docs/all page with section wrapper markup
| HTML | mpl-2.0 | jgmize/kuma,surajssd/kuma,jezdez/kuma,hoosteeno/kuma,Elchi3/kuma,SphinxKnight/kuma,davehunt/kuma,nhenezi/kuma,biswajitsahu/kuma,davidyezsetz/kuma,RanadeepPolavarapu/kuma,nhenezi/kuma,davidyezsetz/kuma,YOTOV-LIMITED/kuma,mozilla/kuma,hoosteeno/kuma,ronakkhunt/kuma,SphinxKnight/kuma,surajssd/kuma,chirilo/kuma,MenZil/kuma... | html | ## Code Before:
{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "wiki/base.html" %}
{% if category %}
{% set title = category %}
{% elif tag %}
{% set title = _('Articles tagged: {tag}')|f(tag=tag) %}
{% else %}
{% set title = _('All Articles') %}
{% endif %}
{% set crumbs = [(None, title)] %}
{% block content %}
... | {# vim: set ts=2 et sts=2 sw=2: #}
{% extends "wiki/base.html" %}
{% if category %}
{% set title = category %}
{% elif tag %}
{% set title = _('Articles tagged: {tag}')|f(tag=tag) %}
{% else %}
{% set title = _('All Articles') %}
{% endif %}
{% set crumbs = [(None, title)] %}
{% block con... | 6 | 0.230769 | 6 | 0 |
d3508e36302fbd51cd7bffd807092c90b0fcd68d | CHANGELOG.md | CHANGELOG.md |
> - Added `scrollDeceleationRate` property to `DRSwipeMenuView`
##### v2.0.2
> - Added `shouldDisableScrollingWhileDecelerating` property to `DRSwipeMenuView`. If set to `YES`, scrolling will be disabled during deceleration. This could improve UX when embedding swipe menu in other scroll views (eg when adding swipe ... |
> - Added `scrollDeceleationRate` property to `DRSwipeMenuView`
> [see diff](../../compare/v2.0.2...v2.0.3)
##### v2.0.2
> - Added `shouldDisableScrollingWhileDecelerating` property to `DRSwipeMenuView`. If set to `YES`, scrolling will be disabled during deceleration. This could improve UX when embedding swipe menu... | Add diff links to changelog | Add diff links to changelog
| Markdown | mit | darrarski/DRSwipeMenu-iOS | markdown | ## Code Before:
> - Added `scrollDeceleationRate` property to `DRSwipeMenuView`
##### v2.0.2
> - Added `shouldDisableScrollingWhileDecelerating` property to `DRSwipeMenuView`. If set to `YES`, scrolling will be disabled during deceleration. This could improve UX when embedding swipe menu in other scroll views (eg wh... |
> - Added `scrollDeceleationRate` property to `DRSwipeMenuView`
+
+ > [see diff](../../compare/v2.0.2...v2.0.3)
##### v2.0.2
> - Added `shouldDisableScrollingWhileDecelerating` property to `DRSwipeMenuView`. If set to `YES`, scrolling will be disabled during deceleration. This could improve UX when embe... | 8 | 0.32 | 8 | 0 |
34e7e0e1627d3d7bbb9abfec2150fa00e9adc4bd | lib/searchresult.js | lib/searchresult.js | var _ = require('underscore')._;
function SearchResult(options) {
_.extend(this, _.pick(options,
'url', 'permalink', 'siteMediaID',
'siteCode', 'icon', 'author',
'mediaName', 'duration', 'type'));
var stats = {querySimilarity: 1, playRelevance: 1, favoriteRelevance: 1, relevance: 0.5};
stats = _.extend(sta... | var _ = require('underscore')._;
function SearchResult(options) {
_.extend(this, _.pick(options,
'url', 'permalink', 'siteMediaID',
'siteCode', 'icon', 'author',
'mediaName', 'duration', 'type'));
var stats = {querySimilarity: 1, playRelevance: 1, favoriteRelevance: 1, relevance: 0.5};
stats = _.extend(sta... | Fix search sorting so that a search result never has "undefined" plays or favorities. This could break sorting in unexpected ways. E.g. Katy Perry shows plays but favorites on YouTube. It is better to simply avoid the use of undefined variables. | Fix search sorting so that a search result never has "undefined" plays or favorities. This could break sorting in unexpected ways. E.g. Katy Perry shows plays but favorites on YouTube. It is better to simply avoid the use of undefined variables.
| JavaScript | mit | fruchtose/muxamp | javascript | ## Code Before:
var _ = require('underscore')._;
function SearchResult(options) {
_.extend(this, _.pick(options,
'url', 'permalink', 'siteMediaID',
'siteCode', 'icon', 'author',
'mediaName', 'duration', 'type'));
var stats = {querySimilarity: 1, playRelevance: 1, favoriteRelevance: 1, relevance: 0.5};
stat... | var _ = require('underscore')._;
function SearchResult(options) {
_.extend(this, _.pick(options,
'url', 'permalink', 'siteMediaID',
'siteCode', 'icon', 'author',
'mediaName', 'duration', 'type'));
var stats = {querySimilarity: 1, playRelevance: 1, favoriteRelevance: 1, relevance: 0.5};
st... | 4 | 0.129032 | 2 | 2 |
cb5ff9362f72f009ff7ec7c69ba12ef7d9f3b62c | README.md | README.md |
A template to create Cordova apps with live reloading and a good setup for teams.
## Setup
After cloning this repository, use `npm setup` to install all necessary modules and cordova plugins.
## Running
The template works on both the device and web. To start, use one of the following commands:
* `npm run dev:cord... |
A template to create Cordova apps with live reloading and a good setup for teams.
## Setup
1. Install newest cordova (5.0+)by doing `npm install -g cordova`
2. Create empty www directory.
3. Run `npm run setup`
4. If you encounter an error about `cordova-plugin-whitelist`, try to install it manually via `cordova plu... | Add more detailed installation instructions due to encountered errors | Add more detailed installation instructions due to encountered errors
Signed-off-by: Joern Bernhardt <7b85a41a628204b76aba4326273a3ccc74bd009a@campudus.com>
| Markdown | isc | campudus/cordova-app-template,campudus/cordova-app-template | markdown | ## Code Before:
A template to create Cordova apps with live reloading and a good setup for teams.
## Setup
After cloning this repository, use `npm setup` to install all necessary modules and cordova plugins.
## Running
The template works on both the device and web. To start, use one of the following commands:
* `... |
A template to create Cordova apps with live reloading and a good setup for teams.
## Setup
- After cloning this repository, use `npm setup` to install all necessary modules and cordova plugins.
+ 1. Install newest cordova (5.0+)by doing `npm install -g cordova`
+ 2. Create empty www directory.
+ 3. Run `np... | 17 | 1 | 15 | 2 |
3f627077a9f2a5fd13234c208525aa61f645ae94 | lesson10/app/src/main/jni/GLES2Lesson.h | lesson10/app/src/main/jni/GLES2Lesson.h | //
// Created by monty on 23/11/15.
//
#ifndef LESSON02_GLES2LESSON_H
#define LESSON02_GLES2LESSON_H
namespace odb {
class GLES2Lesson {
void fetchShaderLocations();
void setPerspective();
void prepareShaderProgram();
void clearBuffers();
void resetTransformMatrices()... | //
// Created by monty on 23/11/15.
//
#ifndef LESSON02_GLES2LESSON_H
#define LESSON02_GLES2LESSON_H
namespace odb {
class GLES2Lesson {
void fetchShaderLocations();
void setPerspective();
void prepareShaderProgram();
void clearBuffers();
void resetTransformMatrices()... | Make the constructor for the Lesson 10 explicit | Make the constructor for the Lesson 10 explicit
While this has little effect here, it's a good practice worth getting
used to. I still have to do the same with all the other classes.
| C | bsd-2-clause | TheFakeMontyOnTheRun/nehe-ndk-gles20,TheFakeMontyOnTheRun/nehe-ndk-gles20,TheFakeMontyOnTheRun/nehe-ndk-gles20 | c | ## Code Before:
//
// Created by monty on 23/11/15.
//
#ifndef LESSON02_GLES2LESSON_H
#define LESSON02_GLES2LESSON_H
namespace odb {
class GLES2Lesson {
void fetchShaderLocations();
void setPerspective();
void prepareShaderProgram();
void clearBuffers();
void resetTra... | //
// Created by monty on 23/11/15.
//
#ifndef LESSON02_GLES2LESSON_H
#define LESSON02_GLES2LESSON_H
namespace odb {
class GLES2Lesson {
void fetchShaderLocations();
void setPerspective();
void prepareShaderProgram();
void clearBuffers();
... | 4 | 0.057971 | 3 | 1 |
6d59a40a626edb859f454af2ce3e149af9c66d68 | site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md | site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md | ---
title: Updating arrays and objects
---
Because Svelte's reactivity is triggered by assignments, using array methods like `push` and `splice` won't automatically cause updates. For example, clicking the button doesn't do anything.
One way to fix that is to add an assignment that would otherwise be redundant:
```j... | ---
title: Updating arrays and objects
---
Because Svelte's reactivity is triggered by assignments, using array methods like `push` and `splice` won't automatically cause updates. For example, clicking the button doesn't do anything.
One way to fix that is to add an assignment that would otherwise be redundant:
```j... | Add implementation for the given tutorial example | Add implementation for the given tutorial example | Markdown | mit | sveltejs/svelte,sveltejs/svelte | markdown | ## Code Before:
---
title: Updating arrays and objects
---
Because Svelte's reactivity is triggered by assignments, using array methods like `push` and `splice` won't automatically cause updates. For example, clicking the button doesn't do anything.
One way to fix that is to add an assignment that would otherwise be ... | ---
title: Updating arrays and objects
---
Because Svelte's reactivity is triggered by assignments, using array methods like `push` and `splice` won't automatically cause updates. For example, clicking the button doesn't do anything.
One way to fix that is to add an assignment that would otherwise be re... | 6 | 0.230769 | 6 | 0 |
4a2e4380cbea06f643adf90333a9edd55edf28e3 | index.js | index.js | // allow modules import syntax
import run, * as cli from './src/index'
// Run from CLI or as Node module
if (module.parent) {
module.exports = cli
/* istanbul ignore next */
} else run(process.argv)
| // allow modules import syntax
require = require('esm')(module, { // eslint-disable-line
cache: false
})
import run, * as cli from './src/index'
// Run from CLI or as Node module
if (module.parent) {
module.exports = cli
/* istanbul ignore next */
} else run(process.argv)
| Revert "updated: remove esm from the cli bundle" | Revert "updated: remove esm from the cli bundle"
This reverts commit e75f8fa6ac98969c8d65ede6c7d9a614d7f54b5d.
| JavaScript | mit | riot/cli | javascript | ## Code Before:
// allow modules import syntax
import run, * as cli from './src/index'
// Run from CLI or as Node module
if (module.parent) {
module.exports = cli
/* istanbul ignore next */
} else run(process.argv)
## Instruction:
Revert "updated: remove esm from the cli bundle"
This reverts commit e75f8fa6ac989... | // allow modules import syntax
+ require = require('esm')(module, { // eslint-disable-line
+ cache: false
+ })
+
import run, * as cli from './src/index'
// Run from CLI or as Node module
if (module.parent) {
module.exports = cli
/* istanbul ignore next */
} else run(process.argv) | 4 | 0.5 | 4 | 0 |
38c635984a8e41c5dc35c58810b99a603bbc04c9 | check-build.sh | check-build.sh | . /etc/profile.d/modules.sh
module add ci
cd ${NAME}-${VERSION}
make check
make install
mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
puts stderr " This module does nothing but alert the user"
puts stderr " that the [module-info name] module is not available"
}
module-wh... | . /etc/profile.d/modules.sh
module add ci
cd ${NAME}-${VERSION}
make check
make install
mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
puts stderr " This module does nothing but alert the user"
puts stderr " that the [module-info name] module is not available"
}
module-wh... | Use correct version of GSL to check module | Use correct version of GSL to check module
| Shell | apache-2.0 | SouthAfricaDigitalScience/gsl-deploy,SouthAfricaDigitalScience/gsl-deploy | shell | ## Code Before:
. /etc/profile.d/modules.sh
module add ci
cd ${NAME}-${VERSION}
make check
make install
mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
puts stderr " This module does nothing but alert the user"
puts stderr " that the [module-info name] module is not availa... | . /etc/profile.d/modules.sh
module add ci
cd ${NAME}-${VERSION}
make check
make install
mkdir -p modules
(
cat <<MODULE_FILE
#%Module1.0
## $NAME modulefile
##
proc ModulesHelp { } {
puts stderr " This module does nothing but alert the user"
puts stderr " that the [module-info name] module i... | 2 | 0.052632 | 1 | 1 |
19ea75bf7c56a3aa4b9952b465a18cc5e9612c27 | kubernetes-mysql/base/mysql/scripts/mysql-creditdb.sql | kubernetes-mysql/base/mysql/scripts/mysql-creditdb.sql | CREATE DATABASE creditdb;
USE creditdb;
CREATE TABLE `CUSTOMER_CREDIT` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`CUSTOMER_ID` varchar(45) DEFAULT NULL,
`REFERENCE_NUMBER` varchar(45) DEFAULT NULL,
`TOTALAMOUT` varchar(45) DEFAULT NULL,
`OUTSTANDING_BALANCE` varchar(45) DEFAULT NULL,
PRIMARY KEY (`ID`)
) EN... | CREATE DATABASE creditdb;
USE creditdb;
CREATE TABLE `CUSTOMER_CREDIT` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`CUSTOMER_ID` VARCHAR(45) DEFAULT NULL,
`REFERENCE_NUMBER` VARCHAR(45) DEFAULT NULL,
`AMOUNT` DECIMAL(20,2) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=82781213 DEFAULT CHARSET=... | Update credit service table definition | Update credit service table definition
| SQL | apache-2.0 | imesh/wso2-microservices-poc,imesh/wso2-microservices-poc | sql | ## Code Before:
CREATE DATABASE creditdb;
USE creditdb;
CREATE TABLE `CUSTOMER_CREDIT` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`CUSTOMER_ID` varchar(45) DEFAULT NULL,
`REFERENCE_NUMBER` varchar(45) DEFAULT NULL,
`TOTALAMOUT` varchar(45) DEFAULT NULL,
`OUTSTANDING_BALANCE` varchar(45) DEFAULT NULL,
PRIMARY... | CREATE DATABASE creditdb;
USE creditdb;
CREATE TABLE `CUSTOMER_CREDIT` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
- `CUSTOMER_ID` varchar(45) DEFAULT NULL,
? ^^^^^^^
+ `CUSTOMER_ID` VARCHAR(45) DEFAULT NULL,
? ^^^^^^^
- `REFERENCE_NUMBER` varchar(45) DEFAULT NULL,
? ... | 7 | 0.583333 | 3 | 4 |
6d7cf663f096a0ef999b140368efd9bf87eaa2ce | spec/controllers/places_controller_spec.rb | spec/controllers/places_controller_spec.rb | require 'spec_helper'
describe PlacesController do
describe "GET #index" do
it "properly assigns all of the places to @places" do
places = FactoryGirl.create_list(:place, 3)
get :index
expect(assigns(:places).length).to eq(3)
end
end
describe "GET #show" do
context "when a place ex... | require 'spec_helper'
describe PlacesController do
describe "GET #index" do
it "properly assigns all of the places to @places" do
places = FactoryGirl.create_list(:place, 3)
get :index
expect(assigns(:places).length).to eq(3)
end
end
describe "GET #show" do
context "when a place ex... | Add test to places controller spec | Add test to places controller spec
| Ruby | mit | KlimekM/LiveAction,KlimekM/LiveAction,KlimekM/LiveAction | ruby | ## Code Before:
require 'spec_helper'
describe PlacesController do
describe "GET #index" do
it "properly assigns all of the places to @places" do
places = FactoryGirl.create_list(:place, 3)
get :index
expect(assigns(:places).length).to eq(3)
end
end
describe "GET #show" do
context ... | require 'spec_helper'
describe PlacesController do
describe "GET #index" do
it "properly assigns all of the places to @places" do
places = FactoryGirl.create_list(:place, 3)
get :index
expect(assigns(:places).length).to eq(3)
end
end
describe "GET #show" do
... | 5 | 0.151515 | 5 | 0 |
4c1d9b9dfa127d2e190af04f786dd6a1f1fbd5d9 | README.md | README.md |
Reserve words for your system
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'reserved_words'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install reserved_words
## Usage
List default words
```ruby
[1] pry(main)> ReservedWords.list
=> ["admin", "api", "ima... |
Reserve words for your system
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'reserved_words'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install reserved_words
## Usage
List default words
```ruby
[1] pry(main)> ReservedWords.list
=> ["admin", "api", "ima... | Add example for adding multiple words | Add example for adding multiple words
| Markdown | mit | bitjourney/reserved_words | markdown | ## Code Before:
Reserve words for your system
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'reserved_words'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install reserved_words
## Usage
List default words
```ruby
[1] pry(main)> ReservedWords.list
=> ["adm... |
Reserve words for your system
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'reserved_words'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install reserved_words
## Usage
List default words
```ruby
[1] pry(... | 3 | 0.051724 | 3 | 0 |
648daddbc75ee18201cc441dcf3ec34238e4479d | astropy/coordinates/__init__.py | astropy/coordinates/__init__.py |
from .errors import *
from .angles import *
from .baseframe import *
from .attributes import *
from .distances import *
from .earth import *
from .transformations import *
from .builtin_frames import *
from .name_resolve import *
from .matching import *
from .representation import *
from .sky_coordinate import *
from ... |
from .errors import *
from .angles import *
from .baseframe import *
from .attributes import *
from .distances import *
from .earth import *
from .transformations import *
from .builtin_frames import *
from .name_resolve import *
from .matching import *
from .representation import *
from .sky_coordinate import *
from ... | Remove "experimental" state of ecliptic frames | Remove "experimental" state of ecliptic frames
| Python | bsd-3-clause | lpsinger/astropy,saimn/astropy,dhomeier/astropy,saimn/astropy,astropy/astropy,MSeifert04/astropy,larrybradley/astropy,dhomeier/astropy,MSeifert04/astropy,mhvk/astropy,lpsinger/astropy,pllim/astropy,saimn/astropy,astropy/astropy,MSeifert04/astropy,bsipocz/astropy,larrybradley/astropy,bsipocz/astropy,StuartLittlefair/ast... | python | ## Code Before:
from .errors import *
from .angles import *
from .baseframe import *
from .attributes import *
from .distances import *
from .earth import *
from .transformations import *
from .builtin_frames import *
from .name_resolve import *
from .matching import *
from .representation import *
from .sky_coordinat... |
from .errors import *
from .angles import *
from .baseframe import *
from .attributes import *
from .distances import *
from .earth import *
from .transformations import *
from .builtin_frames import *
from .name_resolve import *
from .matching import *
from .representation import *
from .sky... | 13 | 0.382353 | 1 | 12 |
af0b2b6c3ba1f76d6e7612eaa64a3cb6e863601f | Sources/Moya/Plugins/AccessTokenPlugin.swift | Sources/Moya/Plugins/AccessTokenPlugin.swift | import Foundation
import Result
// MARK: - AccessTokenAuthorizable
/// A protocol for controlling the behavior of `AccessTokenPlugin`.
public protocol AccessTokenAuthorizable {
/// Declares whether or not `AccessTokenPlugin` should add an authorization header
/// to requests.
var shouldAuthorize: Bool { ... | import Foundation
import Result
// MARK: - AccessTokenAuthorizable
/// A protocol for controlling the behavior of `AccessTokenPlugin`.
public protocol AccessTokenAuthorizable {
/// Declares whether or not `AccessTokenPlugin` should add an authorization header
/// to requests.
var shouldAuthorize: Bool { ... | Change from !shouldAuthorize to shouldAuthorize == false. | Change from !shouldAuthorize to shouldAuthorize == false.
| Swift | mit | Moya/Moya,calt/Moya,calt/Moya,Moya/Moya,justinmakaila/Moya,AvdLee/Moya,AvdLee/Moya,justinmakaila/Moya,Moya/Moya,justinmakaila/Moya,ashfurrow/Moya,AvdLee/Moya,calt/Moya,ashfurrow/Moya | swift | ## Code Before:
import Foundation
import Result
// MARK: - AccessTokenAuthorizable
/// A protocol for controlling the behavior of `AccessTokenPlugin`.
public protocol AccessTokenAuthorizable {
/// Declares whether or not `AccessTokenPlugin` should add an authorization header
/// to requests.
var shouldAu... | import Foundation
import Result
// MARK: - AccessTokenAuthorizable
/// A protocol for controlling the behavior of `AccessTokenPlugin`.
public protocol AccessTokenAuthorizable {
/// Declares whether or not `AccessTokenPlugin` should add an authorization header
/// to requests.
var sh... | 12 | 0.190476 | 6 | 6 |
5fce7ac8e773a13b9b944a9bd31e24a4d48b6832 | src/main/java/info/u_team/u_team_core/item/tool/ToolSet.java | src/main/java/info/u_team/u_team_core/item/tool/ToolSet.java | package info.u_team.u_team_core.item.tool;
import info.u_team.u_team_core.api.registry.IUArrayRegistryType;
import net.minecraft.item.Item;
public class ToolSet implements IUArrayRegistryType<Item> {
private final UAxeItem axe;
private final UHoeItem hoe;
private final UPickaxeItem pickaxe;
private final UShove... | package info.u_team.u_team_core.item.tool;
import info.u_team.u_team_core.api.registry.IUArrayRegistryType;
import net.minecraft.item.Item;
public class ToolSet implements IUArrayRegistryType<Item> {
private final UAxeItem axe;
private final UHoeItem hoe;
private final UPickaxeItem pickaxe;
private final UShove... | Rename all spade variable names to shovel variable names | Rename all spade variable names to shovel variable names
| Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core | java | ## Code Before:
package info.u_team.u_team_core.item.tool;
import info.u_team.u_team_core.api.registry.IUArrayRegistryType;
import net.minecraft.item.Item;
public class ToolSet implements IUArrayRegistryType<Item> {
private final UAxeItem axe;
private final UHoeItem hoe;
private final UPickaxeItem pickaxe;
priv... | package info.u_team.u_team_core.item.tool;
import info.u_team.u_team_core.api.registry.IUArrayRegistryType;
import net.minecraft.item.Item;
public class ToolSet implements IUArrayRegistryType<Item> {
private final UAxeItem axe;
private final UHoeItem hoe;
private final UPickaxeItem pickaxe;
-... | 12 | 0.255319 | 6 | 6 |
f77f4e4ad9927ca99a7b702b7914da257df77e22 | README.md | README.md | Rock Packages
=============
Rock RPM packages.
## Supported
Distributions
* CentOS / RHEL: 6
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
* Python: 2.7
* Ruby: 1.8, 1.9
## License
This work is licensed under the MIT License (see the LICENSE file).
| Rock Packages
=============
Rock RPM packages.
## Supported
Distributions
* CentOS / RHEL: 6
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
* PHP: 5.4
* Python: 2.7
* Ruby: 1.8, 1.9
## License
This work is licensed under the MIT License (see the LICENSE file).
| Add PHP 5.4 to readme | Add PHP 5.4 to readme
| Markdown | mit | ewaters/packages,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,silas/rock,ewaters/packages,ewaters/packages | markdown | ## Code Before:
Rock Packages
=============
Rock RPM packages.
## Supported
Distributions
* CentOS / RHEL: 6
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
* Python: 2.7
* Ruby: 1.8, 1.9
## License
This work is licensed under the MIT License (see the LICENSE file).
## Instruction:
Add PHP 5.4 to readme
... | Rock Packages
=============
Rock RPM packages.
## Supported
Distributions
* CentOS / RHEL: 6
Runtimes
* Node: 0.4, 0.6, 0.8
* Perl: 5.16
+ * PHP: 5.4
* Python: 2.7
* Ruby: 1.8, 1.9
## License
This work is licensed under the MIT License (see the LICENSE file). | 1 | 0.047619 | 1 | 0 |
19d0983ddaadd446c70151ee73389042a70071cb | lib/aggregate_builder/field_builders/boolean_field_builder.rb | lib/aggregate_builder/field_builders/boolean_field_builder.rb | module AggregateBuilder
class FieldBuilders::BooleanFieldBuilder < FieldBuilders::PrimitiveFieldBuilder
def self.cast(field, value)
if [TrueClass, FalseClass, NilClass].include?(value.class)
value
elsif value.is_a?(Integer)
value == 0 ? false : true
elsif value.is_a?(String)
... | module AggregateBuilder
class FieldBuilders::BooleanFieldBuilder < FieldBuilders::PrimitiveFieldBuilder
def self.cast(field, value)
if [TrueClass, FalseClass, NilClass].include?(value.class)
value
elsif value.is_a?(Integer)
value == 0 ? false : true
elsif value.is_a?(String)
... | Add 'true' option to boolean field builder | Add 'true' option to boolean field builder
| Ruby | mit | rous-gg/aggregate_builder | ruby | ## Code Before:
module AggregateBuilder
class FieldBuilders::BooleanFieldBuilder < FieldBuilders::PrimitiveFieldBuilder
def self.cast(field, value)
if [TrueClass, FalseClass, NilClass].include?(value.class)
value
elsif value.is_a?(Integer)
value == 0 ? false : true
elsif value.i... | module AggregateBuilder
class FieldBuilders::BooleanFieldBuilder < FieldBuilders::PrimitiveFieldBuilder
def self.cast(field, value)
if [TrueClass, FalseClass, NilClass].include?(value.class)
value
elsif value.is_a?(Integer)
value == 0 ? false : true
elsif value... | 4 | 0.173913 | 2 | 2 |
31e69c4d87555d3c74c15de7a5aeeb37be07072d | .travis.yml | .travis.yml | language: emacs-lisp
env:
matrix:
- EMACS=emacs24
install:
- if [ "$EMACS" = "emacs24" ]; then
sudo apt-get install ghc cabal-install &&
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq emacs24 emacs24-el;
fi
script:
lsb_... | language: emacs-lisp
env:
matrix:
- EMACS=emacs24
install:
- if [ "$EMACS" = "emacs24" ]; then
sudo apt-get install ghc cabal-install happy alex &&
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq emacs24 emacs24-el;
fi
scr... | Add shm to PATH and -O0 to cabal | Add shm to PATH and -O0 to cabal
| YAML | bsd-3-clause | pharpend/structured-haskell-mode,ivan-m/structured-haskell-mode | yaml | ## Code Before:
language: emacs-lisp
env:
matrix:
- EMACS=emacs24
install:
- if [ "$EMACS" = "emacs24" ]; then
sudo apt-get install ghc cabal-install &&
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq emacs24 emacs24-el;
fi... | language: emacs-lisp
env:
matrix:
- EMACS=emacs24
install:
- if [ "$EMACS" = "emacs24" ]; then
- sudo apt-get install ghc cabal-install &&
+ sudo apt-get install ghc cabal-install happy alex &&
? +++++++++++
sudo add-apt... | 4 | 0.166667 | 2 | 2 |
5f299418cdee7e7fa4a639c7747c9de3f9f711fd | src/scss/project/vars/_typography.scss | src/scss/project/vars/_typography.scss | /*------------------------------------*\
TYPOGRAPHY
\*------------------------------------*/
$base-font-size: 16px;
$base-line-height-ratio: 1.7;
$base-font-family: Helvetica, Arial, sans-serif;
| /*------------------------------------*\
FONT-FACE DECLARATIONS
\*------------------------------------*/
/*------------------------------------*\
TYPOGRAPHY
\*------------------------------------*/
$base-font-size: 16px;
$base-line-height-ratio: 1.7;
$base-font-family: Helvetica, Arial, sans-serif;
| Add font-face declaration to typography var file. | Add font-face declaration to typography var file.
| SCSS | unlicense | hankchizljaw/base-front-end-project,hankchizljaw/base-front-end-project,4ndeh/base-front-end-project,4ndeh/base-front-end-project | scss | ## Code Before:
/*------------------------------------*\
TYPOGRAPHY
\*------------------------------------*/
$base-font-size: 16px;
$base-line-height-ratio: 1.7;
$base-font-family: Helvetica, Arial, sans-serif;
## Instruction:
Add font-face declaration to typography var file.
## Code After:
/*--------------------... | + /*------------------------------------*\
+ FONT-FACE DECLARATIONS
+ \*------------------------------------*/
+
/*------------------------------------*\
TYPOGRAPHY
\*------------------------------------*/
$base-font-size: 16px;
$base-line-height-ratio: 1.7;
$base-font-family: Helvetica, Arial, san... | 4 | 0.666667 | 4 | 0 |
e5e18959f1c2b67cab89e60a9975b30101cc1f18 | pem_test.go | pem_test.go | package ocspd
import (
"reflect"
"testing"
)
func TestParsePEM(t *testing.T) {
for _, tt := range []string{"testdata/cert_only", "testdata/full"} {
cert, issuer, err := ParsePEMCertificateBundle(tt)
if err != nil {
t.Fatal(err)
}
if cert.SerialNumber.Uint64() != 4455460921000457498 {
t.Error("failed"... | package ocspd
import (
"reflect"
"testing"
)
func TestParsePEM(t *testing.T) {
for _, tt := range []string{"testdata/cert_only", "testdata/full"} {
cert, issuer, err := ParsePEMCertificateBundle(tt)
if err != nil {
t.Error(err)
continue
}
if cert.SerialNumber.Uint64() != 4455460921000457498 {
t.Er... | Fix TestParsePEM: use t.Error rather than t.Fatal in table-driven test | Fix TestParsePEM: use t.Error rather than t.Fatal in table-driven test
| Go | bsd-3-clause | tbroyer/ocspd,tbroyer/ocspd | go | ## Code Before:
package ocspd
import (
"reflect"
"testing"
)
func TestParsePEM(t *testing.T) {
for _, tt := range []string{"testdata/cert_only", "testdata/full"} {
cert, issuer, err := ParsePEMCertificateBundle(tt)
if err != nil {
t.Fatal(err)
}
if cert.SerialNumber.Uint64() != 4455460921000457498 {
... | package ocspd
import (
"reflect"
"testing"
)
func TestParsePEM(t *testing.T) {
for _, tt := range []string{"testdata/cert_only", "testdata/full"} {
cert, issuer, err := ParsePEMCertificateBundle(tt)
if err != nil {
- t.Fatal(err)
+ t.Error(err)
+ continue
}
if cert.Serial... | 3 | 0.125 | 2 | 1 |
d070edf20d46eda276642ebe4c98752ca48aa6c7 | src/test/scala/io/citrine/lolo/stats/metrics/ClassificationMetricsTest.scala | src/test/scala/io/citrine/lolo/stats/metrics/ClassificationMetricsTest.scala | package io.citrine.lolo.stats.metrics
import org.junit.Test
import scala.util.Random
/**
* Created by maxhutch on 12/28/16.
*/
class ClassificationMetricsTest {
/**
* Test that the metric works on a sparse confusion matrix
*/
@Test
def testSparse(): Unit = {
val N = 512
/* Make random pred... | package io.citrine.lolo.stats.metrics
import org.junit.Test
import scala.util.Random
/**
* Created by maxhutch on 12/28/16.
*/
class ClassificationMetricsTest {
/**
* Test that the metric works on a sparse confusion matrix
*/
@Test
def testSparse(): Unit = {
val N = 512
/* Make random pred... | Fix the asserts to be inclusive | Fix the asserts to be inclusive
| Scala | apache-2.0 | CitrineInformatics/lolo,CitrineInformatics/lolo | scala | ## Code Before:
package io.citrine.lolo.stats.metrics
import org.junit.Test
import scala.util.Random
/**
* Created by maxhutch on 12/28/16.
*/
class ClassificationMetricsTest {
/**
* Test that the metric works on a sparse confusion matrix
*/
@Test
def testSparse(): Unit = {
val N = 512
/* ... | package io.citrine.lolo.stats.metrics
import org.junit.Test
import scala.util.Random
/**
* Created by maxhutch on 12/28/16.
*/
class ClassificationMetricsTest {
/**
* Test that the metric works on a sparse confusion matrix
*/
@Test
def testSparse(): Unit = {
v... | 6 | 0.214286 | 3 | 3 |
0fcea2dbb5cd78f2057d1472d0f56ecc3d9c9d95 | validation-test/compiler_crashers/1647-no-stacktrace.swift | validation-test/compiler_crashers/1647-no-stacktrace.swift | // RUN: %target-swift-frontend %s -emit-silgen
// XFAIL: no_asserts
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/radex
// rdar://18851497
struct A {
private let b: [Int] = []
func a() {
}
}
typealias B = (C, C)
enum C {
case D
case E
}
f... | // RUN: %target-swift-frontend %s -emit-silgen
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/radex
// rdar://18851497
struct A {
private let b: [Int] = []
func a() {
}
}
typealias B = (C, C)
enum C {
case D
case E
}
func c() {
let d: ... | Remove XFAIL as this passes with no-asserts builds. | Remove XFAIL as this passes with no-asserts builds.
Swift SVN r26947
| Swift | apache-2.0 | slavapestov/swift,sschiau/swift,frootloops/swift,SwiftAndroid/swift,shajrawi/swift,arvedviehweger/swift,tardieu/swift,CodaFi/swift,allevato/swift,atrick/swift,karwa/swift,sdulal/swift,jtbandes/swift,russbishop/swift,gottesmm/swift,kusl/swift,mightydeveloper/swift,gribozavr/swift,Jnosh/swift,ben-ng/swift,sdulal/swift,tj... | swift | ## Code Before:
// RUN: %target-swift-frontend %s -emit-silgen
// XFAIL: no_asserts
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/radex
// rdar://18851497
struct A {
private let b: [Int] = []
func a() {
}
}
typealias B = (C, C)
enum C {
case ... | // RUN: %target-swift-frontend %s -emit-silgen
- // XFAIL: no_asserts
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/radex
// rdar://18851497
struct A {
private let b: [Int] = []
func a() {
}
}
typealias B = (C, C)
enum C... | 1 | 0.045455 | 0 | 1 |
04fb7a9b3a0737ea00217f7173abb68c26014de7 | src/main/java/engine/objects/Tower.java | src/main/java/engine/objects/Tower.java | package main.java.engine.objects;
import main.java.engine.objects.TDObject;
public class Tower extends TDObject {
public Tower(String name, boolean unique_id, double x, double y,
int collisionid, String gfxname) {
super(name, unique_id, x, y, collisionid, gfxname);
// TODO Auto-generated constructor stub
}
... | package main.java.engine.objects;
import jgame.JGObject;
import ProjectPoseidon.Constants;
import main.java.engine.objects.TDObject;
public class Tower extends TDObject {
public static final String TOWER_GFX = "tower";
public static final int TOWER_CID = 0;
private double health;
private double dam... | Update tower constructor and add fireProjectile() | Update tower constructor and add fireProjectile()
| Java | mit | jordanly/oogasalad_OOGALoompas,dennis-park/OOGALoompas,kevinkdo/oogasalad_OOGALoompas,garysheng/tower-defense-game-engine,dianwen/oogasalad_TowerDefense,sdh31/tower_defense,codylieu/oogasalad_OOGALoompas | java | ## Code Before:
package main.java.engine.objects;
import main.java.engine.objects.TDObject;
public class Tower extends TDObject {
public Tower(String name, boolean unique_id, double x, double y,
int collisionid, String gfxname) {
super(name, unique_id, x, y, collisionid, gfxname);
// TODO Auto-generated cons... | package main.java.engine.objects;
+ import jgame.JGObject;
+ import ProjectPoseidon.Constants;
import main.java.engine.objects.TDObject;
+
public class Tower extends TDObject {
- public Tower(String name, boolean unique_id, double x, double y,
- int collisionid, String gfxname) {
- super(name, uni... | 36 | 3 | 31 | 5 |
9cedf59d2560131b13f9b3fb642490a7be82a1ac | lib/alavetelitheme.rb | lib/alavetelitheme.rb | require 'routingfilter'
class ActionController::Base
before_filter :set_view_paths
def set_view_paths
self.prepend_view_path File.join(File.dirname(__FILE__), "views")
end
end
# In order to have the theme lib/ folder ahead of the main app one,
# inspired in Ruby Guides explanation: http://guides.... | require 'routingfilter'
class ActionController::Base
before_filter :set_whatdotheyknow_view_paths
def set_whatdotheyknow_view_paths
self.prepend_view_path File.join(File.dirname(__FILE__), "views")
end
end
# In order to have the theme lib/ folder ahead of the main app one,
# inspired in Ruby Guid... | Make the theme compatible with the new feature in Alaveteli that lets us install multiple themes, by ensuring important filenames and method names don't clash | Make the theme compatible with the new feature in Alaveteli that lets us install multiple themes, by ensuring important filenames and method names don't clash
| Ruby | mit | schlos/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,schlos/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,mysociety/whatdotheyknow-theme | ruby | ## Code Before:
require 'routingfilter'
class ActionController::Base
before_filter :set_view_paths
def set_view_paths
self.prepend_view_path File.join(File.dirname(__FILE__), "views")
end
end
# In order to have the theme lib/ folder ahead of the main app one,
# inspired in Ruby Guides explanation... | require 'routingfilter'
class ActionController::Base
- before_filter :set_view_paths
+ before_filter :set_whatdotheyknow_view_paths
? +++++++++++++++
- def set_view_paths
+ def set_whatdotheyknow_view_paths
self.prepend_view_path File.join(File.dirname(__FILE_... | 22 | 0.733333 | 11 | 11 |
d45d243749540c00b84b93b7e5d2645a6fab44d0 | pkgs/development/libraries/libb2/default.nix | pkgs/development/libraries/libb2/default.nix | {stdenv, fetchurl}:
with stdenv; with lib;
mkDerivation rec {
name = "libb2-${meta.version}";
meta = {
version = "0.97";
description = "The BLAKE2 family of cryptographic hash functions";
platforms = platforms.all;
maintainers = with maintainers; [ dfoxfranke ];
license = licenses.cc0;
};
... | {stdenv, fetchurl}:
with stdenv; with lib;
mkDerivation rec {
name = "libb2-${meta.version}";
src = fetchurl {
url = "https://blake2.net/${name}.tar.gz";
sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051";
};
configureFlags = [ "--enable-fat=yes" ];
meta = {
version = "... | Use "--enable-fat=yes" to avoid build nondeterminism | libbb2: Use "--enable-fat=yes" to avoid build nondeterminism
Otherwise it would pick various -march flags based on the CPU of the
compiling system, using beautiful code like this:
````
63 AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1,
64 [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [
65 ... | Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/ni... | nix | ## Code Before:
{stdenv, fetchurl}:
with stdenv; with lib;
mkDerivation rec {
name = "libb2-${meta.version}";
meta = {
version = "0.97";
description = "The BLAKE2 family of cryptographic hash functions";
platforms = platforms.all;
maintainers = with maintainers; [ dfoxfranke ];
license = licens... | {stdenv, fetchurl}:
with stdenv; with lib;
mkDerivation rec {
name = "libb2-${meta.version}";
+
+ src = fetchurl {
+ url = "https://blake2.net/${name}.tar.gz";
+ sha256 = "7829c7309347650239c76af7f15d9391af2587b38f0a65c250104a2efef99051";
+ };
+
+ configureFlags = [ "--enable-fat=yes" ];
... | 12 | 0.666667 | 7 | 5 |
c26faf78a5ac90dee1057189497ffcfe5e2917b0 | src/Oro/Bundle/EntityExtendBundle/Tools/MultipleAssociationExtendConfigDumperExtension.php | src/Oro/Bundle/EntityExtendBundle/Tools/MultipleAssociationExtendConfigDumperExtension.php | <?php
namespace Oro\Bundle\EntityExtendBundle\Tools;
use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
abstract class MultipleAssociationExtendConfigDumperExtension extends AbstractAssociationExtendConfigDumperExtension
{
/**
* {@inheritdoc}
*/
protected function getAssociationType()
{
... | <?php
namespace Oro\Bundle\EntityExtendBundle\Tools;
use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
abstract class MultipleAssociationExtendConfigDumperExtension extends AbstractAssociationExtendConfigDumperExtension
{
/**
* {@inheritdoc}
*/
protected function getAssociationType()
{
... | Add EntityExtendBundle dumper extension to generate activity association entities. Refactoring | BAP-4210: Add EntityExtendBundle dumper extension to generate activity association entities. Refactoring
| PHP | mit | 2ndkauboy/platform,trustify/oroplatform,hugeval/platform,Djamy/platform,2ndkauboy/platform,trustify/oroplatform,geoffroycochard/platform,trustify/oroplatform,ramunasd/platform,northdakota/platform,orocrm/platform,orocrm/platform,northdakota/platform,morontt/platform,geoffroycochard/platform,Djamy/platform,morontt/platf... | php | ## Code Before:
<?php
namespace Oro\Bundle\EntityExtendBundle\Tools;
use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
abstract class MultipleAssociationExtendConfigDumperExtension extends AbstractAssociationExtendConfigDumperExtension
{
/**
* {@inheritdoc}
*/
protected function getAssociat... | <?php
namespace Oro\Bundle\EntityExtendBundle\Tools;
use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface;
abstract class MultipleAssociationExtendConfigDumperExtension extends AbstractAssociationExtendConfigDumperExtension
{
/**
* {@inheritdoc}
*/
protected function get... | 3 | 0.071429 | 2 | 1 |
efcafd02930d293f780c4d18910c5a732c552c43 | scheduler.py | scheduler.py | from apscheduler.schedulers.blocking import BlockingScheduler
import logging
import warner
import archiver
import announcer
import flagger
import os
logging.basicConfig()
sched = BlockingScheduler()
@sched.scheduled_job("cron", hour=4)
#@sched.scheduled_job("cron", hour="*", minute="*/10") # for testing
def destalina... | from apscheduler.schedulers.blocking import BlockingScheduler
import logging
import warner
import archiver
import announcer
import flagger
import os
# When testing changes, set the "TEST_SCHEDULE" envvar to run more often
if os.getenv("TEST_SCHEDULE"):
schedule_kwargs = {"hour": "*", "minute": "*/10"}
else:
s... | Switch to a test schedule based on the environment | Switch to a test schedule based on the environment
Switching an environment variable and kicking the `clock` process feels
like a neater solution than commenting out one line, uncommenting
another, and redeploying.
| Python | apache-2.0 | rossrader/destalinator | python | ## Code Before:
from apscheduler.schedulers.blocking import BlockingScheduler
import logging
import warner
import archiver
import announcer
import flagger
import os
logging.basicConfig()
sched = BlockingScheduler()
@sched.scheduled_job("cron", hour=4)
#@sched.scheduled_job("cron", hour="*", minute="*/10") # for testi... | from apscheduler.schedulers.blocking import BlockingScheduler
import logging
import warner
import archiver
import announcer
import flagger
import os
+
+ # When testing changes, set the "TEST_SCHEDULE" envvar to run more often
+ if os.getenv("TEST_SCHEDULE"):
+ schedule_kwargs = {"hour": "*", "minu... | 10 | 0.294118 | 8 | 2 |
5b6635b6d53228310d3cdee912322bebae5345b6 | appveyor.yml | appveyor.yml | image: Visual Studio 2017
configuration: Release
version: '{build}'
dotnet_csproj:
patch: true
file: 'Medium\Medium.csproj'
version: $(appveyor_repo_tag_name)
before_build:
- cmd: dotnet restore
build:
project: MediumSdk.sln
test_script:
- cmd: dotnet test Medium.Tests/Medium.Tests.csproj
artifacts:
- pa... | image: Visual Studio 2017
configuration: Release
version: '{build}'
install:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "false")
{
$env:COMMIT_DESCRIPTION = git describe --tags
}
else
{
$env:COMMIT_DESCRIPTION = $env:APPVEYOR_REPO_TAG_NAME
}
Write-Host Build version is $env:COMMIT_... | Use post-release versioning and fixed deploy condition | Use post-release versioning and fixed deploy condition
| YAML | mit | adriangodong/medium-sdk-dotnet | yaml | ## Code Before:
image: Visual Studio 2017
configuration: Release
version: '{build}'
dotnet_csproj:
patch: true
file: 'Medium\Medium.csproj'
version: $(appveyor_repo_tag_name)
before_build:
- cmd: dotnet restore
build:
project: MediumSdk.sln
test_script:
- cmd: dotnet test Medium.Tests/Medium.Tests.csproj
... | image: Visual Studio 2017
configuration: Release
version: '{build}'
+ install:
+ - ps: >-
+ if ($env:APPVEYOR_REPO_TAG -eq "false")
+ {
+ $env:COMMIT_DESCRIPTION = git describe --tags
+ }
+ else
+ {
+ $env:COMMIT_DESCRIPTION = $env:APPVEYOR_REPO_TAG_NAME
+ }
+ Write-Host... | 16 | 0.571429 | 14 | 2 |
d4ce8794a9f8a55917c6246c23d7177976cf2479 | elo-blatter/README.md | elo-blatter/README.md |
Header | Definition
---|---------
`country` | FIFA member country
`elo98` | The team's Elo in 1998
`elo15` | The team's Elo in 2015
`confederation` | Confederation to which country belongs
`gdp06` | The country's purchasing power parity GDP as of 2006
`popu06` | The country's 2006 population
`gdp_source` | Source for ... |
The raw data behind the story [Blatter’s Reign At FIFA Hasn’t Helped Soccer’s Poor](http://fivethirtyeight.com/features/blatters-reign-at-fifa-hasnt-helped-soccers-poor/)
Header | Definition
---|---------
`country` | FIFA member country
`elo98` | The team's Elo in 1998
`elo15` | The team's Elo in 2015
`confederation`... | Add link to FIFA/Elo story | Add link to FIFA/Elo story | Markdown | mit | ajackwin/data,quevedin/data-1,4everer/data,collbb/data,raincoatrun/data,alf10087/data,xavierwu/data,mikedshadow/data,M4573R/data,Grollus/data,jjrennie/data,rishikksh20/data,ajackwin/data,SteveM49/data,SGShuman/data,umby/data,linearregression/data,crockettcobb/data,crockettcobb/data,gosox5555/data,emanderson86/data,mari... | markdown | ## Code Before:
Header | Definition
---|---------
`country` | FIFA member country
`elo98` | The team's Elo in 1998
`elo15` | The team's Elo in 2015
`confederation` | Confederation to which country belongs
`gdp06` | The country's purchasing power parity GDP as of 2006
`popu06` | The country's 2006 population
`gdp_sourc... | +
+ The raw data behind the story [Blatter’s Reign At FIFA Hasn’t Helped Soccer’s Poor](http://fivethirtyeight.com/features/blatters-reign-at-fifa-hasnt-helped-soccers-poor/)
Header | Definition
---|---------
`country` | FIFA member country
`elo98` | The team's Elo in 1998
`elo15` | The team's Elo in 2015... | 2 | 0.181818 | 2 | 0 |
a6868999cd8648dd596030ce62765f8236353914 | client/app/landing/landing.html | client/app/landing/landing.html | <!-- needs API call to themoviedb from search box --> | <div ng-controller="LandingController" id="container">
<div class="movie-container">
<h2>Popular</h2>
<ul ng-init="fetchPopular()" class="movie-list">
<li ng-repeat="popular in populars | limitTo:10">
<!-- <h2>{{ popular.original_title }}</h2> -->
<div class="poster-container">
... | Add popular, upcoming, latest to front page, display movie posters, repeats 10 max, add classes for styles | Add popular, upcoming, latest to front page, display movie posters, repeats 10 max, add classes for styles
| HTML | mit | ALeo23/Zeus-HatersGonaHate,Zeus-HatersGonaHate/Zeus-HatersGonaHate,Zeus-HatersGonaHate/Zeus-HatersGonaHate,Zeus-HatersGonaHate/Zeus-HatersGonaHate,ALeo23/Zeus-HatersGonaHate,ALeo23/Zeus-HatersGonaHate | html | ## Code Before:
<!-- needs API call to themoviedb from search box -->
## Instruction:
Add popular, upcoming, latest to front page, display movie posters, repeats 10 max, add classes for styles
## Code After:
<div ng-controller="LandingController" id="container">
<div class="movie-container">
<h2>Popular</h2>
... | - <!-- needs API call to themoviedb from search box -->
+ <div ng-controller="LandingController" id="container">
+ <div class="movie-container">
+ <h2>Popular</h2>
+ <ul ng-init="fetchPopular()" class="movie-list">
+ <li ng-repeat="popular in populars | limitTo:10">
+ <!-- <h2>{{ popular.o... | 36 | 36 | 35 | 1 |
a7565fc7883ed70071d6a9023efe4430446c69d6 | appveyor.yml | appveyor.yml | version: "#{build}"
build: off
install:
- set PATH=C:\Ruby23\bin;%PATH%
- bundle install
test_script:
- bundle exec rake
skip_tags: true
| version: "#{build}"
build: off
init:
- git config --global core.autocrlf true
install:
- set PATH=C:\Ruby23\bin;%PATH%
- bundle install
test_script:
- bundle exec rake
skip_tags: true
| Change LF to be replaced with CRLF when cloning a repository in AppVeyor | Change LF to be replaced with CRLF when cloning a repository in AppVeyor
| YAML | mit | httprb/form_data,httprb/form_data.rb | yaml | ## Code Before:
version: "#{build}"
build: off
install:
- set PATH=C:\Ruby23\bin;%PATH%
- bundle install
test_script:
- bundle exec rake
skip_tags: true
## Instruction:
Change LF to be replaced with CRLF when cloning a repository in AppVeyor
## Code After:
version: "#{build}"
build: off
init:
- git config --g... | version: "#{build}"
build: off
+ init:
+ - git config --global core.autocrlf true
install:
- set PATH=C:\Ruby23\bin;%PATH%
- bundle install
test_script:
- bundle exec rake
skip_tags: true | 2 | 0.25 | 2 | 0 |
c898999299ff4a55108074ef40a19f7c82b622c3 | spec/unit/rip/utilities/scope_spec.rb | spec/unit/rip/utilities/scope_spec.rb | require 'spec_helper'
describe Rip::Utilities::Scope do
subject { scope_foo }
let(:scope_foo) { Rip::Utilities::Scope.new }
before(:each) { scope_foo[:foo] = 111 }
specify { expect(scope_foo[:foo]).to be(111) }
specify { expect(scope_foo[:zebra]).to be_nil }
context 'extending' do
before(:each) { sc... | require 'spec_helper'
describe Rip::Utilities::Scope do
subject { scope_foo }
let(:scope_foo) { Rip::Utilities::Scope.new }
before(:each) { scope_foo[:foo] = 111 }
specify { expect(scope_foo[:foo]).to be(111) }
specify { expect(scope_foo[:zebra]).to be_nil }
specify do
expect { scope_foo[:foo] = 000... | Add test for when scope key already set | Add test for when scope key already set | Ruby | mit | rip-lang/rip,rip-lang/rip | ruby | ## Code Before:
require 'spec_helper'
describe Rip::Utilities::Scope do
subject { scope_foo }
let(:scope_foo) { Rip::Utilities::Scope.new }
before(:each) { scope_foo[:foo] = 111 }
specify { expect(scope_foo[:foo]).to be(111) }
specify { expect(scope_foo[:zebra]).to be_nil }
context 'extending' do
be... | require 'spec_helper'
describe Rip::Utilities::Scope do
subject { scope_foo }
let(:scope_foo) { Rip::Utilities::Scope.new }
before(:each) { scope_foo[:foo] = 111 }
specify { expect(scope_foo[:foo]).to be(111) }
specify { expect(scope_foo[:zebra]).to be_nil }
+
+ specify do
+ expe... | 4 | 0.129032 | 4 | 0 |
38d298a81aa8fcd85b16b3879c1665085e5450be | exercises/control_flow/prime.py | exercises/control_flow/prime.py |
def is_prime(integer):
"""Determines weather integer is prime, returns a boolean value"""
for i in range(2, integer):
if integer % i == 0:
return False
return True
print("Should be False (0): %r" % is_prime(0))
print("Should be False (1): %r" % is_prime(1))
print("Should be True (... |
def is_prime(integer):
"""Determines weather integer is prime, returns a boolean value"""
# add logic here to make sure number < 2 are not prime
for i in range(2, integer):
if integer % i == 0:
return False
return True
print("Should be False (0): %r" % is_prime(0))
print("Shou... | Add description where student should add logic | Add description where student should add logic
| Python | mit | introprogramming/exercises,introprogramming/exercises,introprogramming/exercises | python | ## Code Before:
def is_prime(integer):
"""Determines weather integer is prime, returns a boolean value"""
for i in range(2, integer):
if integer % i == 0:
return False
return True
print("Should be False (0): %r" % is_prime(0))
print("Should be False (1): %r" % is_prime(1))
print("S... |
def is_prime(integer):
"""Determines weather integer is prime, returns a boolean value"""
+ # add logic here to make sure number < 2 are not prime
+
for i in range(2, integer):
if integer % i == 0:
return False
return True
print("Should be False (0): %r... | 2 | 0.105263 | 2 | 0 |
14ce401c710946ffaf1eb5c2d17572be820db4ef | CuratedContent/PythonForHPC.md | CuratedContent/PythonForHPC.md |
Do you love Python and want to understand its usage in HPC environments? This short article introduces a good resource for this purpose!
#### Contributed by [Steve Hudson](https://github.com/shuds13)
Python is a very popular language in many domains. Traditionally, these are domains where speed of development and po... |
Do you love Python and want to understand its usage in HPC environments? This short article introduces a good resource for this purpose!
#### Contributed by [Steve Hudson](https://github.com/shuds13)
Resource information | Details
:--- | :---
Name | Python for HPC
Website | [Python For HPC Community Materials](h... | Add table to this article | Add table to this article | Markdown | mit | betterscientificsoftware/betterscientificsoftware.github.io | markdown | ## Code Before:
Do you love Python and want to understand its usage in HPC environments? This short article introduces a good resource for this purpose!
#### Contributed by [Steve Hudson](https://github.com/shuds13)
Python is a very popular language in many domains. Traditionally, these are domains where speed of de... |
Do you love Python and want to understand its usage in HPC environments? This short article introduces a good resource for this purpose!
#### Contributed by [Steve Hudson](https://github.com/shuds13)
+
+ Resource information | Details
+ :--- | :---
+ Name | Python for HPC
+ Website | [Python For HPC Comm... | 6 | 0.4 | 6 | 0 |
749aa35a85b6482cfba9dec7d37473a787d73c32 | integration-test/1106-merge-ocean-earth.py | integration-test/1106-merge-ocean-earth.py | assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
# There should be a single (merged) earth feature in this tile
assert_less_than_n_features(9, 170, 186, 'earth', {'kind': 'earth'}, 2)
| assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
# OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
assert_less_than_n_features(9, 170, 186, 'earth', {'kind': 'earth'}, 2)
| Add lowzoom tests for polygon merging | Add lowzoom tests for polygon merging
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | python | ## Code Before:
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
# There should be a single (merged) earth feature in this tile
assert_less_than_n_features(9, 170, 186, 'earth', {'kind': 'earth'}, 2)
## Instruction:
Add lowzoom tests for polygon merging
## Code After:
assert_less_than_n_feature... | + assert_less_than_n_features(5, 11, 11, 'water', {'kind': 'ocean'}, 2)
+ assert_less_than_n_features(5, 8, 11, 'earth', {'kind': 'earth'}, 2)
+
+ # OpenStreetMap
assert_less_than_n_features(9, 167, 186, 'water', {'kind': 'ocean'}, 2)
- # There should be a single (merged) earth feature in this tile
assert_less_tha... | 5 | 1.666667 | 4 | 1 |
9c793ea13687d2bd5d851c4f813a195a0c09fd52 | spec/todoml_spec.rb | spec/todoml_spec.rb | require 'spec_helper'
require 'yaml'
describe Todoml do
describe "task" do
it "should be initialized with name and point" do
task = Todoml::Task.new({name: 'Task 1', point: 3})
task.name.should eq 'Task 1'
task.point.should eq 3
end
it "should have a default value of point 1" do
t... | require 'spec_helper'
require 'yaml'
describe Todoml do
describe "task" do
it "should be initialized with name and point" do
task = Todoml::Task.new({name: 'Task 1', point: 3})
task.name.should eq 'Task 1'
task.point.should eq 3
end
it "should have a default value of point 1" do
t... | Refactor task to use Task model | Refactor task to use Task model
| Ruby | mit | l4u/todoml | ruby | ## Code Before:
require 'spec_helper'
require 'yaml'
describe Todoml do
describe "task" do
it "should be initialized with name and point" do
task = Todoml::Task.new({name: 'Task 1', point: 3})
task.name.should eq 'Task 1'
task.point.should eq 3
end
it "should have a default value of poi... | require 'spec_helper'
require 'yaml'
describe Todoml do
describe "task" do
it "should be initialized with name and point" do
task = Todoml::Task.new({name: 'Task 1', point: 3})
task.name.should eq 'Task 1'
task.point.should eq 3
end
it "should have a default value ... | 5 | 0.131579 | 3 | 2 |
7fa99bd4fe5ba1e4e8fc7c6f9cd72c2e34de7b67 | app/presenters/tree_builder_roles_by_server.rb | app/presenters/tree_builder_roles_by_server.rb | class TreeBuilderRolesByServer < TreeBuilderDiagnostics
has_kids_for MiqServer, [:x_get_tree_miq_server_kids]
private
def x_get_tree_roots(_count_only, _options)
x_get_tree_miq_servers
end
def override(node, _object)
if @sb[:diag_selected_id] && node[:key] == "svr-#{@sb[:diag_selected_id]}"
n... | class TreeBuilderRolesByServer < TreeBuilderDiagnostics
has_kids_for MiqServer, [:x_get_tree_miq_server_kids]
private
def x_get_tree_roots(_count_only, _options)
x_get_tree_miq_servers
end
def override(node, _object)
if @sb[:diag_selected_id] && node[:key] == "#{self.class.get_prefix_for_model(@sb[... | Build the selected node key from the session stored model in RBS 🌳🐞 | Build the selected node key from the session stored model in RBS 🌳🐞
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1734393
| Ruby | apache-2.0 | ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic,ManageIQ/manageiq-ui-classic | ruby | ## Code Before:
class TreeBuilderRolesByServer < TreeBuilderDiagnostics
has_kids_for MiqServer, [:x_get_tree_miq_server_kids]
private
def x_get_tree_roots(_count_only, _options)
x_get_tree_miq_servers
end
def override(node, _object)
if @sb[:diag_selected_id] && node[:key] == "svr-#{@sb[:diag_select... | class TreeBuilderRolesByServer < TreeBuilderDiagnostics
has_kids_for MiqServer, [:x_get_tree_miq_server_kids]
private
def x_get_tree_roots(_count_only, _options)
x_get_tree_miq_servers
end
def override(node, _object)
- if @sb[:diag_selected_id] && node[:key] == "svr-#{@sb[:diag_... | 2 | 0.060606 | 1 | 1 |
8cc2c1154c75b2b7d58b8bf09f9512176bc31645 | metadata/de.rmrf.partygames.yml | metadata/de.rmrf.partygames.yml | Categories:
- Games
License: GPL-3.0-or-later
AuthorName: rm-rf
SourceCode: https://codeberg.org/rm-rf/PartyGames
IssueTracker: https://codeberg.org/rm-rf/PartyGames/issues
AutoName: PartyGames
RepoType: git
Repo: https://codeberg.org/rm-rf/PartyGames.git
Builds:
- versionName: 1.2.1
versionCode: 10201
c... | Categories:
- Games
License: GPL-3.0-or-later
AuthorName: rm-rf
SourceCode: https://codeberg.org/rm-rf/PartyGames
IssueTracker: https://codeberg.org/rm-rf/PartyGames/issues
AutoName: PartyGames
RepoType: git
Repo: https://codeberg.org/rm-rf/PartyGames.git
Builds:
- versionName: 1.2.1
versionCode: 10201
c... | Update PartyGames to 1.3.1 (10301) | Update PartyGames to 1.3.1 (10301)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Games
License: GPL-3.0-or-later
AuthorName: rm-rf
SourceCode: https://codeberg.org/rm-rf/PartyGames
IssueTracker: https://codeberg.org/rm-rf/PartyGames/issues
AutoName: PartyGames
RepoType: git
Repo: https://codeberg.org/rm-rf/PartyGames.git
Builds:
- versionName: 1.2.1
versionC... | Categories:
- Games
License: GPL-3.0-or-later
AuthorName: rm-rf
SourceCode: https://codeberg.org/rm-rf/PartyGames
IssueTracker: https://codeberg.org/rm-rf/PartyGames/issues
AutoName: PartyGames
RepoType: git
Repo: https://codeberg.org/rm-rf/PartyGames.git
Builds:
- versionName: 1.2.1
... | 11 | 0.354839 | 9 | 2 |
d9adcad2b67b7e25e5997f3bfafb0208ab225fa9 | tests/integration/cattletest/core/test_proxy.py | tests/integration/cattletest/core/test_proxy.py | from common_fixtures import * # NOQA
import requests
def test_proxy(client, admin_user_client):
domain = 'releases.rancher.com'
s = admin_user_client.by_id_setting('api.proxy.whitelist')
if domain not in s.value:
s.value += ',{}'.format(domain)
admin_user_client.update(s, value=s.value)... | from common_fixtures import * # NOQA
import requests
def test_proxy(client, admin_user_client):
domain = 'releases.rancher.com'
s = admin_user_client.by_id_setting('api.proxy.whitelist')
if domain not in s.value:
s.value += ',{}'.format(domain)
admin_user_client.update(s, value=s.value)... | Use http for proxy test | Use http for proxy test
| Python | apache-2.0 | cjellick/cattle,vincent99/cattle,vincent99/cattle,cloudnautique/cattle,jimengliu/cattle,wlan0/cattle,rancher/cattle,cjellick/cattle,Cerfoglg/cattle,rancherio/cattle,rancherio/cattle,rancherio/cattle,wlan0/cattle,cloudnautique/cattle,jimengliu/cattle,rancher/cattle,cjellick/cattle,cloudnautique/cattle,Cerfoglg/cattle,Ce... | python | ## Code Before:
from common_fixtures import * # NOQA
import requests
def test_proxy(client, admin_user_client):
domain = 'releases.rancher.com'
s = admin_user_client.by_id_setting('api.proxy.whitelist')
if domain not in s.value:
s.value += ',{}'.format(domain)
admin_user_client.update(s... | from common_fixtures import * # NOQA
import requests
def test_proxy(client, admin_user_client):
domain = 'releases.rancher.com'
s = admin_user_client.by_id_setting('api.proxy.whitelist')
if domain not in s.value:
s.value += ',{}'.format(domain)
admin_user_client.... | 4 | 0.102564 | 2 | 2 |
d9c0e65c00b7a7b839a267629f2296bc54915d65 | .travis.yml | .travis.yml | language: node_js
node_js:
- "6"
before_script:
- npm install -g gulp
notifications:
email: false
| language: node_js
node_js:
- "6"
before_script:
- npm install -g gulp
script:
- npm run build # Will also perform the tests
notifications:
email: false
| Make Travis run the full build process (not just tests). | Make Travis run the full build process (not just tests).
| YAML | mit | Franky47/secret-santa-app,Franky47/secret-santa-app | yaml | ## Code Before:
language: node_js
node_js:
- "6"
before_script:
- npm install -g gulp
notifications:
email: false
## Instruction:
Make Travis run the full build process (not just tests).
## Code After:
language: node_js
node_js:
- "6"
before_script:
- npm install -g gulp
script:
- npm run build # Will... | language: node_js
node_js:
- "6"
before_script:
- npm install -g gulp
+ script:
+ - npm run build # Will also perform the tests
+
notifications:
email: false | 3 | 0.375 | 3 | 0 |
3d27ea19b9915866ebcc2b6d14f0a4561b0652e5 | BACKERS.md | BACKERS.md |
Micro is an open source ecosystem focused on simplifying cloud native development.
The development of micro is made possible by our sponsors and backers. We owe a great deal of debt and gratitude to them.
If you'd like to join them please consider:
- [Becoming a sponsor via Patreon](https://www.patreon.com/microhq)... |
Micro is an open source ecosystem focused on simplifying cloud native development.
The development of micro is made possible by our sponsors and backers. We owe a great deal of debt and gratitude to them.
If you'd like to join them please consider:
- [Becoming a sponsor via Patreon](https://www.patreon.com/microhq)... | Add neds and joey clover to backers | Add neds and joey clover to backers
| Markdown | apache-2.0 | micro/micro,micro/micro,micro/micro,myodc/micro | markdown | ## Code Before:
Micro is an open source ecosystem focused on simplifying cloud native development.
The development of micro is made possible by our sponsors and backers. We owe a great deal of debt and gratitude to them.
If you'd like to join them please consider:
- [Becoming a sponsor via Patreon](https://www.patr... |
Micro is an open source ecosystem focused on simplifying cloud native development.
The development of micro is made possible by our sponsors and backers. We owe a great deal of debt and gratitude to them.
If you'd like to join them please consider:
- [Becoming a sponsor via Patreon](https://www.patreo... | 5 | 0.217391 | 5 | 0 |
b6e993ef60d10acc6f2da5719fc8dc9de61e43b8 | app/client/templates/projects/viz_visualization/viz_visualization.html | app/client/templates/projects/viz_visualization/viz_visualization.html | <template name="VizVisualization">
<div class="viz-visualization">
<h2>{{_ "processes"}}</h2>
<p class="blinking" id="zoom-and-pan">
Zoom + Pan <i class="fa fa-search-plus"></i> <i class="fa fa-arrows-alt"></i>
</p>
<div id="d3-container"></div>
</div>
</template>
| <template name="VizVisualization">
<div class="viz-visualization">
<h2>{{_ "processes"}}</h2>
<p class="blinking" id="zoom-and-pan">
<i class="fa fa-search-plus"></i> <i class="fa fa-arrows-alt"></i> <i class="fa fa-arrow-right"></i>
</p>
<div id="d3-container"></div>
</div>
</temp... | Improve zoom and pan icons | Improve zoom and pan icons
| HTML | agpl-3.0 | openp2pdesign/OpenMetaDesign,openp2pdesign/OpenMetaDesign,openp2pdesign/OpenMetaDesign | html | ## Code Before:
<template name="VizVisualization">
<div class="viz-visualization">
<h2>{{_ "processes"}}</h2>
<p class="blinking" id="zoom-and-pan">
Zoom + Pan <i class="fa fa-search-plus"></i> <i class="fa fa-arrows-alt"></i>
</p>
<div id="d3-container"></div>
</div>
</template>
... | <template name="VizVisualization">
<div class="viz-visualization">
<h2>{{_ "processes"}}</h2>
<p class="blinking" id="zoom-and-pan">
- Zoom + Pan <i class="fa fa-search-plus"></i> <i class="fa fa-arrows-alt"></i>
? -----------
+ <i class="fa fa-search-plus"></i> <i cl... | 2 | 0.222222 | 1 | 1 |
2187a1bd8cf2ab5be85c817700b3a5df87d81cbd | package.json | package.json | {
"name": "css",
"version": "2.0.0",
"description": "CSS parser / stringifier",
"main": "index",
"files": [
"index.js",
"lib"
],
"dependencies": {
"source-map": "~0.1.31",
"source-map-resolve": "~0.1.3",
"urix": "~0.1.0"
},
"devDependencies": {
"mocha": "^1.21.3",
"should":... | {
"name": "css",
"version": "2.0.0",
"description": "CSS parser / stringifier",
"main": "index",
"files": [
"index.js",
"lib"
],
"dependencies": {
"source-map": "~0.1.31",
"source-map-resolve": "~0.1.3",
"urix": "~0.1.0",
"inherits": "^2.0.1"
},
"devDependencies": {
"mocha"... | Move inherits to regular dependencies | Move inherits to regular dependencies
| JSON | mit | reworkcss/css,mcharytoniuk/css,macawco/css,IssacSix/css,mauriciosoares/css,raheemczar/css | json | ## Code Before:
{
"name": "css",
"version": "2.0.0",
"description": "CSS parser / stringifier",
"main": "index",
"files": [
"index.js",
"lib"
],
"dependencies": {
"source-map": "~0.1.31",
"source-map-resolve": "~0.1.3",
"urix": "~0.1.0"
},
"devDependencies": {
"mocha": "^1.21.3... | {
"name": "css",
"version": "2.0.0",
"description": "CSS parser / stringifier",
"main": "index",
"files": [
"index.js",
"lib"
],
"dependencies": {
"source-map": "~0.1.31",
"source-map-resolve": "~0.1.3",
- "urix": "~0.1.0"
+ "urix": "~0.1.0",
? ... | 6 | 0.157895 | 3 | 3 |
3c12bf68634a2aa20f769b809e00f873deeb05e5 | lib/discordrb/errors.rb | lib/discordrb/errors.rb |
module Discordrb
# Custom errors raised in various places
module Errors
# Raised when authentication data is invalid or incorrect.
class InvalidAuthenticationError < RuntimeError
# Default message for this exception
def message
'User login failed due to an invalid email or password!'
... |
module Discordrb
# Custom errors raised in various places
module Errors
# Raised when authentication data is invalid or incorrect.
class InvalidAuthenticationError < RuntimeError
# Default message for this exception
def message
'User login failed due to an invalid email or password!'
... | Make CodeError.code a reader again as the inheritance stuff is unneeded | Make CodeError.code a reader again as the inheritance stuff is unneeded
| Ruby | mit | megumisonoda/discordrb,VxJasonxV/discordrb,megumisonoda/discordrb,VxJasonxV/discordrb,Roughsketch/discordrb,meew0/discordrb,meew0/discordrb,Roughsketch/discordrb | ruby | ## Code Before:
module Discordrb
# Custom errors raised in various places
module Errors
# Raised when authentication data is invalid or incorrect.
class InvalidAuthenticationError < RuntimeError
# Default message for this exception
def message
'User login failed due to an invalid email ... |
module Discordrb
# Custom errors raised in various places
module Errors
# Raised when authentication data is invalid or incorrect.
class InvalidAuthenticationError < RuntimeError
# Default message for this exception
def message
'User login failed due to an invalid emai... | 11 | 0.207547 | 1 | 10 |
de848d6ca59ba20e320505f8063ea072c0a47b67 | SPMJPGStream.podspec | SPMJPGStream.podspec |
Pod::Spec.new do |s|
s.name = "SPMJPGStream"
s.version = "0.0.1"
s.summary = "Fetch a MJPG stream from an Axis camera. For iOS and OS X."
s.description = <<-DESC
SPMJPEG makes it easy to stream an MJPEG stream from any Axis camera.
Supports Basic Auth an... |
Pod::Spec.new do |s|
s.name = "SPMJPGStream"
s.version = "0.0.1"
s.summary = "Fetch a MJPG stream from an Axis camera. For iOS and OS X."
s.description = <<-DESC
SPMJPEG makes it easy to stream an MJPEG stream from any Axis camera.
Supports Basic Auth an... | Update demo and podspec commit | Update demo and podspec commit
| Ruby | mit | Spiideo/SPMJPGStream | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = "SPMJPGStream"
s.version = "0.0.1"
s.summary = "Fetch a MJPG stream from an Axis camera. For iOS and OS X."
s.description = <<-DESC
SPMJPEG makes it easy to stream an MJPEG stream from any Axis camera.
Suppor... |
Pod::Spec.new do |s|
s.name = "SPMJPGStream"
s.version = "0.0.1"
s.summary = "Fetch a MJPG stream from an Axis camera. For iOS and OS X."
s.description = <<-DESC
SPMJPEG makes it easy to stream an MJPEG stream from any Axis camera.
Suppor... | 2 | 0.086957 | 1 | 1 |
30baa0daa0aeb0a061a456cc1fd580f57bd02616 | app/services/create_extension.rb | app/services/create_extension.rb | class CreateExtension
def initialize(params, user)
@params = params
@tags = params[:tag_tokens]
@compatible_platforms = params[:compatible_platforms]
@user = user
@github = @user.octokit
end
def process!
Extension.new(@params).tap do |extension|
extension.owner = @user
if ext... | class CreateExtension
def initialize(params, user)
@params = params
@tags = params[:tag_tokens]
@compatible_platforms = params[:compatible_platforms]
@user = user
@github = @user.octokit
end
def process!
Extension.new(@params).tap do |extension|
extension.owner = @user
if ext... | Handle re-adding a disabled/removed extension | Handle re-adding a disabled/removed extension
| Ruby | apache-2.0 | ManageIQ/depot.manageiq.org,ManageIQ/depot.manageiq.org,ManageIQ/depot.manageiq.org,ManageIQ/depot.manageiq.org | ruby | ## Code Before:
class CreateExtension
def initialize(params, user)
@params = params
@tags = params[:tag_tokens]
@compatible_platforms = params[:compatible_platforms]
@user = user
@github = @user.octokit
end
def process!
Extension.new(@params).tap do |extension|
extension.owner = @us... | class CreateExtension
def initialize(params, user)
@params = params
@tags = params[:tag_tokens]
@compatible_platforms = params[:compatible_platforms]
@user = user
@github = @user.octokit
end
def process!
Extension.new(@params).tap do |extension|
extension.own... | 3 | 0.081081 | 3 | 0 |
eb15c1b1ea89feb1bd2bfc650e2f229c58551f2a | metadata/github.yaa110.memento.txt | metadata/github.yaa110.memento.txt | Categories:Writing
License:MIT
Web Site:https://github.com/yaa110/Memento/blob/HEAD/README.md
Source Code:https://github.com/yaa110/Memento
Issue Tracker:https://github.com/yaa110/Memento/issues
Auto Name:Memento
Summary:Take notes
Description:
Simple note taking supporting colorized categories, rich text input and
pi... | Categories:Writing
License:MIT
Web Site:https://github.com/yaa110/Memento/blob/HEAD/README.md
Source Code:https://github.com/yaa110/Memento
Issue Tracker:https://github.com/yaa110/Memento/issues
Auto Name:Memento
Summary:Take notes
Description:
Simple note taking supporting colorized categories, rich text input and
pi... | Update Memento to 1.1.0 (2) | Update Memento to 1.1.0 (2)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Writing
License:MIT
Web Site:https://github.com/yaa110/Memento/blob/HEAD/README.md
Source Code:https://github.com/yaa110/Memento
Issue Tracker:https://github.com/yaa110/Memento/issues
Auto Name:Memento
Summary:Take notes
Description:
Simple note taking supporting colorized categories, rich t... | Categories:Writing
License:MIT
Web Site:https://github.com/yaa110/Memento/blob/HEAD/README.md
Source Code:https://github.com/yaa110/Memento
Issue Tracker:https://github.com/yaa110/Memento/issues
Auto Name:Memento
Summary:Take notes
Description:
Simple note taking supporting colorized categories, ri... | 9 | 0.36 | 7 | 2 |
9c82444d1e3f0515c09ef6c0d63844d605dcbb55 | .drone.yml | .drone.yml | kind: pipeline
type: docker
name: test
steps:
- name: Test Python
image: python:3.9
commands:
- pip install flake8
- flake8 --exclude files/vim
- name: Test
image: ubuntu:20.04
commands:
- scripts/test_setup.sh
- scripts/test.sh
| kind: pipeline
type: docker
name: test
steps:
- name: Test Python
image: python:3.9
commands:
- pip install flake8
- flake8 --exclude files/vim
- name: Test Bash
image: koalaman/shellcheck-alpine:stable
commands:
- scripts/test_bash.sh
| Use shellcheck image for testing bash | Use shellcheck image for testing bash
| YAML | mit | albertyw/dotfiles,albertyw/dotfiles | yaml | ## Code Before:
kind: pipeline
type: docker
name: test
steps:
- name: Test Python
image: python:3.9
commands:
- pip install flake8
- flake8 --exclude files/vim
- name: Test
image: ubuntu:20.04
commands:
- scripts/test_setup.sh
- scripts/test.sh
## Instruction:
Use shellche... | kind: pipeline
type: docker
name: test
steps:
- name: Test Python
image: python:3.9
commands:
- pip install flake8
- flake8 --exclude files/vim
- - name: Test
+ - name: Test Bash
? +++++
- image: ubuntu:20.04
+ image: koalaman/shellcheck-alpine:st... | 7 | 0.4375 | 3 | 4 |
5da980eb31a033ce439500bf0293262a5145f4e4 | languages/php.js | languages/php.js | const external = require('../helpers').external
module.exports.composerurl = composerurl
function composerurl (moduleName) {
if (moduleName.split('/').length === 1) {
// composer packages are like `user-or-project/package`.
// but sometimes there seems to be a random `php` required on composer.json.
retu... | const external = require('../helpers').external
module.exports.composerurl = composerurl
function composerurl (moduleName) {
if (moduleName === 'php') {
// package requires specific PHP version
// ignore this when parsing
return Promise.reject()
}
if (moduleName.startsWith('ext-') && moduleName.spli... | Support for parsing PHP extensions | Support for parsing PHP extensions
| JavaScript | mit | fiatjaf/module-linker,fiatjaf/module-linker,fiatjaf/gh-browser | javascript | ## Code Before:
const external = require('../helpers').external
module.exports.composerurl = composerurl
function composerurl (moduleName) {
if (moduleName.split('/').length === 1) {
// composer packages are like `user-or-project/package`.
// but sometimes there seems to be a random `php` required on compose... | const external = require('../helpers').external
module.exports.composerurl = composerurl
function composerurl (moduleName) {
- if (moduleName.split('/').length === 1) {
- // composer packages are like `user-or-project/package`.
- // but sometimes there seems to be a random `php` required on composer.... | 18 | 1.125 | 15 | 3 |
ead8e585e38e138a0c8bce3998d78bf2a364fff5 | .github/CONTRIBUTING.md | .github/CONTRIBUTING.md |
Contributions are **welcome** and will be fully **credited**.
We accept contributions via pull requests on [GitHub](https://github.com/PackageName).
## Pull Requests
- **Add tests!** - Your patch will not be accepted if it does not have tests.
- **Document any change in behaviour** - Make sure the documentation in... |
Contributions are **welcome** and will be fully **credited**.
We accept contributions via pull requests on [GitHub](https://github.com/PackageName).
## Pull Requests
- **Add tests!** - Your patch will not be accepted if it does not have tests.
- **Document any change in behaviour** - Make sure the documentation in... | Remove metrics guide and incl. test logging | Remove metrics guide and incl. test logging
| Markdown | mit | hollodotme/repo-template | markdown | ## Code Before:
Contributions are **welcome** and will be fully **credited**.
We accept contributions via pull requests on [GitHub](https://github.com/PackageName).
## Pull Requests
- **Add tests!** - Your patch will not be accepted if it does not have tests.
- **Document any change in behaviour** - Make sure the ... |
Contributions are **welcome** and will be fully **credited**.
We accept contributions via pull requests on [GitHub](https://github.com/PackageName).
## Pull Requests
- **Add tests!** - Your patch will not be accepted if it does not have tests.
- **Document any change in behaviour** - Make sure ... | 8 | 0.25 | 0 | 8 |
9efb1f39da84efa3f60c9c73578135de8c4a26ee | app/database/seeds/UsersTableSeeder.php | app/database/seeds/UsersTableSeeder.php | <?php
use CachetHQ\Cachet\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeding.
*
* @return void
*/
public function run()
{
Model::unguard();
$users = [
[... | <?php
use CachetHQ\Cachet\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeding.
*
* @return void
*/
public function run()
{
Model::unguard();
$users = [
[... | Change the user seeder for the test account | Change the user seeder for the test account
| PHP | bsd-3-clause | ematthews/Cachet,alobintechnologies/Cachet,h3zjp/Cachet,ZengineChris/Cachet,CloudA/Cachet,displayn/Cachet,bthiago/Cachet,sapk/Cachet,nxtreaming/Cachet,everpay/Cachet,Mebus/Cachet,MatheusRV/Cachet-Sandstorm,anujaprasad/Hihat,wakermahmud/Cachet,chaseconey/Cachet,nxtreaming/Cachet,ZengineChris/Cachet,SamuelMoraesF/Cachet,... | php | ## Code Before:
<?php
use CachetHQ\Cachet\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeding.
*
* @return void
*/
public function run()
{
Model::unguard();
$users =... | <?php
use CachetHQ\Cachet\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeding.
*
* @return void
*/
public function run()
{
Model::unguard();
... | 14 | 0.388889 | 4 | 10 |
785892356bde4c20da265844ae77773266d7c01b | tests/iris_test.py | tests/iris_test.py |
from sklearn import datasets
from random import shuffle
# This example loads the IRIS dataset and classifies
# using our neural network implementation.
# The results are visualized in a 2D-plot.
def main():
iris = datasets.load_iris()
X = iris.data
Y = iris.target
# Randomize (shuffle) the indexes
... |
from sklearn import datasets
from random import shuffle
import numpy as np
from neuralnet import NeuralNet
# This example loads the IRIS dataset and classifies
# using our neural network implementation.
# The results are visualized in a 2D-plot.
def main():
iris = datasets.load_iris()
X = iris.data
Y = i... | Convert output values from int to binary for neural network | Convert output values from int to binary for neural network
| Python | mit | akajuvonen/simple-neuralnet-python | python | ## Code Before:
from sklearn import datasets
from random import shuffle
# This example loads the IRIS dataset and classifies
# using our neural network implementation.
# The results are visualized in a 2D-plot.
def main():
iris = datasets.load_iris()
X = iris.data
Y = iris.target
# Randomize (shuffle... |
from sklearn import datasets
from random import shuffle
+ import numpy as np
+ from neuralnet import NeuralNet
# This example loads the IRIS dataset and classifies
# using our neural network implementation.
# The results are visualized in a 2D-plot.
def main():
iris = datasets.load_iris()
... | 7 | 0.304348 | 7 | 0 |
06c4e7bf6f273070d05c1a445fcf06747eb2c3cb | app/views/layouts/_analytics.html.haml | app/views/layouts/_analytics.html.haml | - exists = Site.table_exists?
- not_blank = current_site.respond_to?(:analytics_code) and !current_site.analytics_code.blank?
- if exists and not_blank
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{current_site.analytics_code}']);
_gaq.push(['_trackPageview']);
(function() {
va... | - if Rails.env.production?
:javascript
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.ufrgs.br/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 62]);
var d=document, g=d.createEle... | Replace Google Analytics snippet by Piwik's snippet for UFRGS | Replace Google Analytics snippet by Piwik's snippet for UFRGS
| Haml | agpl-3.0 | mconf-ufrgs/mconf-web,mconf-ufrgs/mconf-web,mconf-ufrgs/mconf-web,mconf-ufrgs/mconf-web | haml | ## Code Before:
- exists = Site.table_exists?
- not_blank = current_site.respond_to?(:analytics_code) and !current_site.analytics_code.blank?
- if exists and not_blank
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{current_site.analytics_code}']);
_gaq.push(['_trackPageview']);
(funct... | + - if Rails.env.production?
- - exists = Site.table_exists?
- - not_blank = current_site.respond_to?(:analytics_code) and !current_site.analytics_code.blank?
- - if exists and not_blank
:javascript
- var _gaq = _gaq || [];
? ^ ^
+ var _paq = _paq || [];
? ^ ^
- _gaq.push([... | 21 | 1.75 | 12 | 9 |
a14aae3c8f137eb59ed7d414f7c8ae45a23447d6 | docs/recipes/bitbucket.md | docs/recipes/bitbucket.md |
```json
[
{
"method": "POST",
"path": "/bitbucket-commit",
"command": "echo New commit from $COMMIT_AUTHOR_NAME: $COMMIT_MESSAGE",
"parseJson": [
{
"query": "payload.push.changes.0.commits.0.message",
"variable": "COMMIT_MESSAGE"
... |
* See [Bitbucket: Manage webhooks](https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html)
```json
[
{
"method": "POST",
"path": "/bitbucket-commit",
"command": "echo New commit from $COMMIT_AUTHOR_NAME: $COMMIT_MESSAGE",
"parseJson": [
{
... | Add link to Bitbucket docs | Add link to Bitbucket docs | Markdown | mit | danistefanovic/hooka | markdown | ## Code Before:
```json
[
{
"method": "POST",
"path": "/bitbucket-commit",
"command": "echo New commit from $COMMIT_AUTHOR_NAME: $COMMIT_MESSAGE",
"parseJson": [
{
"query": "payload.push.changes.0.commits.0.message",
"variable": "COMMIT_ME... | +
+ * See [Bitbucket: Manage webhooks](https://confluence.atlassian.com/bitbucket/manage-webhooks-735643732.html)
```json
[
{
"method": "POST",
"path": "/bitbucket-commit",
"command": "echo New commit from $COMMIT_AUTHOR_NAME: $COMMIT_MESSAGE",
"parseJson": [
... | 2 | 0.1 | 2 | 0 |
2a688afb4cefe436c09e2e170129edb8631bc32e | src/components/ChartBench.jsx | src/components/ChartBench.jsx | import {HotKeys} from "react-hotkeys"
import Chart from "../containers/Chart"
import EditToolbar from "../containers/EditToolbar"
const ChartBench = ({
chordA,
chordB,
chordC,
chordD,
chordE,
chordF,
chordG,
moveLeft,
moveRight,
redo,
slug,
title,
undo,
width,
}) => (
<article style={{m... | import {HotKeys} from "react-hotkeys"
import Chart from "../containers/Chart"
import EditToolbar from "../containers/EditToolbar"
const ChartBench = ({
chordA,
chordB,
chordC,
chordD,
chordE,
chordF,
chordG,
moveLeft,
moveRight,
redo,
slug,
title,
undo,
width,
}) => (
<article style={{m... | Enable key shortcuts when toolbar is focused | Enable key shortcuts when toolbar is focused
| JSX | agpl-3.0 | openchordcharts/openchordcharts-sample-data,openchordcharts/openchordcharts-sample-data,openchordcharts/sample-data,openchordcharts/sample-data | jsx | ## Code Before:
import {HotKeys} from "react-hotkeys"
import Chart from "../containers/Chart"
import EditToolbar from "../containers/EditToolbar"
const ChartBench = ({
chordA,
chordB,
chordC,
chordD,
chordE,
chordF,
chordG,
moveLeft,
moveRight,
redo,
slug,
title,
undo,
width,
}) => (
<a... | import {HotKeys} from "react-hotkeys"
import Chart from "../containers/Chart"
import EditToolbar from "../containers/EditToolbar"
const ChartBench = ({
chordA,
chordB,
chordC,
chordD,
chordE,
chordF,
chordG,
moveLeft,
moveRight,
redo,
slug,
title,
und... | 2 | 0.037037 | 1 | 1 |
f945a2c5a3c2e7ec7659f0d16c7324f5e280964d | README.md | README.md |
Build scripts for Komodo.
## Dependencies
### Windows
It is possible to build Komodo on Windows using Cygwin. The following packages
must be installed for a successful build:
* Libs -> libX11-devel
* Libs -> libXt-devel
* X11 -> xinit
## Build options
On Linux and Windows (Cygwin), no extra build options shou... |
Build scripts for Komodo.
## Dependencies
### Windows
It is possible to build Komodo on Windows using Cygwin. The following packages
must be installed for a successful build:
* Libs -> libX11-devel
* Libs -> libXt-devel
* X11 -> xinit
## Build options
On Linux and Windows (Cygwin), no extra build options shou... | Add information about running Komodo | Add information about running Komodo
| Markdown | mit | UoMCS/komodo-build | markdown | ## Code Before:
Build scripts for Komodo.
## Dependencies
### Windows
It is possible to build Komodo on Windows using Cygwin. The following packages
must be installed for a successful build:
* Libs -> libX11-devel
* Libs -> libXt-devel
* X11 -> xinit
## Build options
On Linux and Windows (Cygwin), no extra bu... |
Build scripts for Komodo.
## Dependencies
### Windows
It is possible to build Komodo on Windows using Cygwin. The following packages
must be installed for a successful build:
* Libs -> libX11-devel
* Libs -> libXt-devel
* X11 -> xinit
## Build options
On Linux and Windows (Cy... | 7 | 0.28 | 7 | 0 |
f2fa55c8d2f94bd186fc6c47b8ce00fb87c22aaf | tensorflow/contrib/autograph/converters/__init__.py | tensorflow/contrib/autograph/converters/__init__.py | """Code converters used by Autograph."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# TODO(mdan): Define a base transformer class that can recognize skip_processing
# TODO(mdan): All converters are incomplete, especially those that change blocks
| """Code converters used by Autograph."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# Naming conventions:
# * each converter should specialize on a single idiom; be consistent with
# the Python reference for naming
# * all converters inherit core.... | Add a few naming guidelines for the converter library. | Add a few naming guidelines for the converter library.
PiperOrigin-RevId: 204199604
| Python | apache-2.0 | alsrgv/tensorflow,annarev/tensorflow,sarvex/tensorflow,ppwwyyxx/tensorflow,chemelnucfin/tensorflow,jalexvig/tensorflow,ageron/tensorflow,gunan/tensorflow,gautam1858/tensorflow,seanli9jan/tensorflow,girving/tensorflow,jart/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,xzturn/tensorflow,aldian/ten... | python | ## Code Before:
"""Code converters used by Autograph."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# TODO(mdan): Define a base transformer class that can recognize skip_processing
# TODO(mdan): All converters are incomplete, especially those that chan... | """Code converters used by Autograph."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
- # TODO(mdan): Define a base transformer class that can recognize skip_processing
- # TODO(mdan): All converters are incomplete, especially those that chan... | 14 | 1.75 | 12 | 2 |
da29ede7bea36ada6557546e918c8869345fb05f | spec/dummy/config/application.rb | spec/dummy/config/application.rb | require_relative 'boot'
require 'active_record/railtie'
require 'active_job/railtie'
Bundler.require(*Rails.groups)
require 'delayed_job'
require 'delayed_job_active_record'
module Dummy
class Application < Rails::Application
config.active_job.queue_adapter = :delayed_job
if Rails::VERSION::MAJOR >= 6
... | require_relative 'boot'
require 'active_record/railtie'
require 'active_job/railtie'
require 'delayed_job'
require 'delayed_job_active_record'
Bundler.require(*Rails.groups)
module Dummy
class Application < Rails::Application
config.active_job.queue_adapter = :delayed_job
if Rails::VERSION::MAJOR >= 6
... | Fix require order of dummy app for test | Fix require order of dummy app for test | Ruby | mit | kanety/delayed_job_master | ruby | ## Code Before:
require_relative 'boot'
require 'active_record/railtie'
require 'active_job/railtie'
Bundler.require(*Rails.groups)
require 'delayed_job'
require 'delayed_job_active_record'
module Dummy
class Application < Rails::Application
config.active_job.queue_adapter = :delayed_job
if Rails::VERSION... | require_relative 'boot'
require 'active_record/railtie'
require 'active_job/railtie'
- Bundler.require(*Rails.groups)
require 'delayed_job'
require 'delayed_job_active_record'
+ Bundler.require(*Rails.groups)
module Dummy
class Application < Rails::Application
config.active_job.queue_adap... | 2 | 0.1 | 1 | 1 |
4ba0cfcdb33fadfe6086e455fd702097faeca0d8 | README.md | README.md | fuseki-docker: Dockerized Jena Fuseki
=====================================
Cloning this repo will provide you with a simple RDF workbench based on Jena Fuseki.
##Quickstart
1. Install vagrant
2. Clone repo
3. From the cloned folder, enter the following commands on the command line:
```
term$ make up_fuseki
term$ ma... | fuseki-docker: Dockerized Jena Fuseki
=====================================
Cloning this repo will provide you with a simple RDF workbench based on Jena Fuseki.
##Quickstart
1. Install vagrant
2. Clone repo
3. From the cloned folder, enter the following commands on the command line:
```
term$ make up_fuseki
term$ ma... | Add line about using Fuseki | Add line about using Fuseki
| Markdown | mit | brinxmat/fuseki-docker | markdown | ## Code Before:
fuseki-docker: Dockerized Jena Fuseki
=====================================
Cloning this repo will provide you with a simple RDF workbench based on Jena Fuseki.
##Quickstart
1. Install vagrant
2. Clone repo
3. From the cloned folder, enter the following commands on the command line:
```
term$ make up... | fuseki-docker: Dockerized Jena Fuseki
=====================================
Cloning this repo will provide you with a simple RDF workbench based on Jena Fuseki.
##Quickstart
1. Install vagrant
2. Clone repo
3. From the cloned folder, enter the following commands on the command line:
```
term$... | 6 | 0.136364 | 5 | 1 |
d4c65ed55442cd87893e44845ac1354515e78665 | src/Armd/UserBundle/Security/LogoutSuccessHandler.php | src/Armd/UserBundle/Security/LogoutSuccessHandler.php | <?php
namespace Armd\UserBundle\Security;
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoun... | <?php
namespace Armd\UserBundle\Security;
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoun... | Add return_url for logout action | [+] Add return_url for logout action
| PHP | mit | damedia/culture.ru,damedia/culture.ru,damedia/culture.ru,damedia/culture.ru,damedia/culture.ru | php | ## Code Before:
<?php
namespace Armd\UserBundle\Security;
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Co... | <?php
namespace Armd\UserBundle\Security;
use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\... | 12 | 0.333333 | 12 | 0 |
2e4658a2ecc77eb7a91f9c81cf1c56a5bd854a9e | lib/adapter_extensions.rb | lib/adapter_extensions.rb | class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
alias_method_chain :establish_connection, :adapter_exte... | require 'adapter_extensions/base'
class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
alias_method_chain :... | Move this so the consumer doesn't have anything to require | Move this so the consumer doesn't have anything to require
| Ruby | mit | activewarehouse/adapter_extensions,pokka/adapter_extensions | ruby | ## Code Before:
class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
alias_method_chain :establish_connectio... | + require 'adapter_extensions/base'
+
class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
al... | 5 | 0.3125 | 2 | 3 |
7d4a698ea552daa7f899ab747f0308cd5f30ead7 | src/main/java/com/jakewharton/trakt/entities/Share.java | src/main/java/com/jakewharton/trakt/entities/Share.java | package com.jakewharton.trakt.entities;
import com.jakewharton.trakt.TraktEntity;
public class Share implements TraktEntity {
boolean facebook;
boolean twitter;
boolean tumblr;
boolean path;
}
| package com.jakewharton.trakt.entities;
import com.jakewharton.trakt.TraktEntity;
public class Share implements TraktEntity {
public boolean facebook;
public boolean twitter;
public boolean tumblr;
public boolean path;
}
| Make all share fields public. | Make all share fields public.
| Java | apache-2.0 | UweTrottmann/trakt-java | java | ## Code Before:
package com.jakewharton.trakt.entities;
import com.jakewharton.trakt.TraktEntity;
public class Share implements TraktEntity {
boolean facebook;
boolean twitter;
boolean tumblr;
boolean path;
}
## Instruction:
Make all share fields public.
## Code After:
package com.jakewharton.trak... | package com.jakewharton.trakt.entities;
import com.jakewharton.trakt.TraktEntity;
public class Share implements TraktEntity {
- boolean facebook;
+ public boolean facebook;
? +++++++
- boolean twitter;
+ public boolean twitter;
? +++++++
- boolean tumblr;
+ public boolean ... | 8 | 0.666667 | 4 | 4 |
f8b533c7d5cea429757d0570bf380d709a8a70e8 | jobs/cf-mysql-broker/templates/registrar_settings.yml.erb | jobs/cf-mysql-broker/templates/registrar_settings.yml.erb | message_bus_servers:
<% p('nats.machines').each do |ip| %>
- host: <%= ip %>:<%= p('nats.port') %>
user: <%= p('nats.user') %>
password: <%= p('nats.password') %>
<% end %>
host: <%= p('cf_mysql.broker.host') %>
routes:
- name: "broker_<%= index %>"
port: <%= p('cf_mysql.broker.port') %>
uris:
- <%= p('cf_mys... | <%
def discover_external_ip
networks = spec.networks.marshal_dump
_, network = networks.find do |_name, network_spec|
network_spec.default
end
if !network
_, network = networks.first
end
if !network
raise "Could not determine IP via network spec: #{networks}"
end
... | Use auto discovered ip as default for broker | Use auto discovered ip as default for broker
| HTML+ERB | apache-2.0 | cloudfoundry/cf-mysql-release,cloudfoundry/cf-mysql-release,cloudfoundry/cf-mysql-release,cloudfoundry/cf-mysql-release | html+erb | ## Code Before:
message_bus_servers:
<% p('nats.machines').each do |ip| %>
- host: <%= ip %>:<%= p('nats.port') %>
user: <%= p('nats.user') %>
password: <%= p('nats.password') %>
<% end %>
host: <%= p('cf_mysql.broker.host') %>
routes:
- name: "broker_<%= index %>"
port: <%= p('cf_mysql.broker.port') %>
uris:
... | + <%
+ def discover_external_ip
+ networks = spec.networks.marshal_dump
+ _, network = networks.find do |_name, network_spec|
+ network_spec.default
+ end
+ if !network
+ _, network = networks.first
+ end
+ if !network
+ raise "Could not determine IP via network spec: ... | 23 | 1.4375 | 22 | 1 |
20c38b2d44e4d0d3ea91e72ce333be37baf6d957 | .travis.yml | .travis.yml | language: elixir
elixir:
- 1.4
otp_release:
- 19.3
- 18.3
env:
- CACHE_ENABLED=true
- CACHE_ENABLED=true TEST_OPTS='--exclude redis_pubsub --include phoenix_pubsub --no-start' PUBSUB_BROKER=phoenix_pubsub
- CACHE_ENABLED=false TEST_OPTS='--only integration'
services:
- redis-server
script:
- mix test --... | dist: trusty
language: elixir
elixir:
- 1.4
otp_release:
- 19.3
- 18.3
env:
- CACHE_ENABLED=true TEST_OPTS='--exclude phoenix_pubsub --exclude ecto_persistence'
- CACHE_ENABLED=false TEST_OPTS='--only integration'
- CACHE_ENABLED=true PUBSUB_BROKER=phoenix_pubsub TEST_OPTS='--no-start --exclude redis_pubs... | Configure Travis to run with postgres | Configure Travis to run with postgres
| YAML | mit | tompave/fun_with_flags | yaml | ## Code Before:
language: elixir
elixir:
- 1.4
otp_release:
- 19.3
- 18.3
env:
- CACHE_ENABLED=true
- CACHE_ENABLED=true TEST_OPTS='--exclude redis_pubsub --include phoenix_pubsub --no-start' PUBSUB_BROKER=phoenix_pubsub
- CACHE_ENABLED=false TEST_OPTS='--only integration'
services:
- redis-server
script:... | + dist: trusty
language: elixir
elixir:
- 1.4
otp_release:
- 19.3
- 18.3
env:
+ - CACHE_ENABLED=true TEST_OPTS='--exclude phoenix_pubsub --exclude ecto_persistence'
- - CACHE_ENABLED=true
- - CACHE_ENABLED=true TEST_OPTS='--exclude redis_pubsub --include phoenix_pubsub --no-start' PUBSUB_BROK... | 13 | 0.722222 | 11 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.