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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a2591fa48bc5756e13fc3855313ccf9b2086c162 | install_ruby2-1-2.sh | install_ruby2-1-2.sh |
apt-get update
apt-get install -y wget
cd /tmp
rm -rf ruby-installer
mkdir ruby-installer
cd ruby-installer
echo "fetch latest ruby from ftp.ruby-lang.org"
wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xzvf ruby-2.1.2.tar.gz
echo "installing ruby 2.1.2"
cd ruby-2.1.2/ && ./configure && make && mak... |
apt-get update
apt-get install -y wget build-essential autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev
cd /tmp
rm -rf ruby-installer
mkdir ruby-installer
cd ruby-installer
echo "fetch latest ruby from ftp.ruby-lang.org"
wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-... | Make the ruby file completely self contained | Make the ruby file completely self contained | Shell | mit | pivotal-cf-experimental/docker-technology-scripts | shell | ## Code Before:
apt-get update
apt-get install -y wget
cd /tmp
rm -rf ruby-installer
mkdir ruby-installer
cd ruby-installer
echo "fetch latest ruby from ftp.ruby-lang.org"
wget http://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xzvf ruby-2.1.2.tar.gz
echo "installing ruby 2.1.2"
cd ruby-2.1.2/ && ./configur... |
apt-get update
- apt-get install -y wget
+ apt-get install -y wget build-essential autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev
cd /tmp
rm -rf ruby-installer
mkdir ruby-installer
cd ruby-installer
echo "fetch latest ruby from ftp.ruby-lang.org"
wg... | 6 | 0.333333 | 4 | 2 |
e6bb4f1491e8a2420ff4965dc48ade144d87676e | app/views/merge_requests/_merge_request.html.haml | app/views/merge_requests/_merge_request.html.haml | %li.wll{ :class => mr_css_classes(merge_request) }
.right
.left
- if merge_request.merged?
%span.btn.small.disabled.grouped
%strong
%i.icon-ok
= "MERGED"
- if merge_request.notes.any?
%span.btn.small.disabled.grouped
%i.icon-comment
... | %li.wll{ :class => mr_css_classes(merge_request) }
.right
.left
- if merge_request.merged?
%span.btn.small.disabled.grouped
%strong
%i.icon-ok
= "MERGED"
- if merge_request.notes.any?
%span.btn.small.disabled.grouped
%i.icon-comment
... | Update links to merge requests | Update links to merge requests
| Haml | mit | adaiguoguo/gitlab_globalserarch,SkyWei/gitlabhq,liyakun/gitlabhq,xuvw/gitlabhq,liyakun/gitlabhq,cui-liqiang/gitlab-ce,michaKFromParis/sparkslab,Datacom/gitlabhq,ArthurHoaro/Public-GitLab,yulchitaj/TEST3,allysonbarros/gitlabhq,mmkassem/gitlabhq,cncodog/gitlab,NKMR6194/gitlabhq,sonalkr132/gitlabhq,pjknkda/gitlabhq,htve/G... | haml | ## Code Before:
%li.wll{ :class => mr_css_classes(merge_request) }
.right
.left
- if merge_request.merged?
%span.btn.small.disabled.grouped
%strong
%i.icon-ok
= "MERGED"
- if merge_request.notes.any?
%span.btn.small.disabled.grouped
%i.icon-c... | %li.wll{ :class => mr_css_classes(merge_request) }
.right
.left
- if merge_request.merged?
%span.btn.small.disabled.grouped
%strong
%i.icon-ok
= "MERGED"
- if merge_request.notes.any?
%span.btn.small.disabled.grouped
%i.... | 3 | 0.107143 | 1 | 2 |
1f6ea045b6d8e69ede8b524a586f8efc292eefab | exercises/two-fer/metadata.yml | exercises/two-fer/metadata.yml | ---
blurb: 'Create a sentence of the form "One for X, one for me."'
source: "This is an exercise to introduce users to basic programming constructs, just after Hello World."
source_url: "https://en.wikipedia.org/wiki/Two-fer"
| ---
blurb: 'Create a sentence of the form "One for X, one for me."'
source_url: "https://en.wikipedia.org/wiki/Two-fer"
| Remove assumption about track ordering | two-fer: Remove assumption about track ordering
The exercise was originally made to have the same format as the old hello-world exercise:
provide a default value if none is passed, and use the passed argument when present.
This let us simplify hello-world so that it is a simple check to ensure that everything is
wire... | YAML | mit | exercism/x-common,rpottsoh/x-common,exercism/x-common,jmluy/x-common,petertseng/x-common,rpottsoh/x-common,jmluy/x-common,ErikSchierboom/x-common,petertseng/x-common,jmluy/x-common,ErikSchierboom/x-common | yaml | ## Code Before:
---
blurb: 'Create a sentence of the form "One for X, one for me."'
source: "This is an exercise to introduce users to basic programming constructs, just after Hello World."
source_url: "https://en.wikipedia.org/wiki/Two-fer"
## Instruction:
two-fer: Remove assumption about track ordering
The exercise... | ---
blurb: 'Create a sentence of the form "One for X, one for me."'
- source: "This is an exercise to introduce users to basic programming constructs, just after Hello World."
source_url: "https://en.wikipedia.org/wiki/Two-fer" | 1 | 0.25 | 0 | 1 |
6f9b1328194f38cdf62f8092c1aeb0d2eb679cba | composer.json | composer.json | {
"name": "colindecarlo/coolection",
"description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.",
"version": "0.0.0",
"type": "library",
"keywords": ["array", "collection", "functional", "iterator", "utility"],
"license": "MIT",
"a... | {
"name": "colindecarlo/coolection",
"description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.",
"version": "0.0.0",
"type": "library",
"keywords": ["array", "collection", "functional", "iterator", "utility"],
"license": "MIT",
"a... | Add PHPUnit as a required-dev dependency | Add PHPUnit as a required-dev dependency
| JSON | mit | colindecarlo/collection | json | ## Code Before:
{
"name": "colindecarlo/coolection",
"description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.",
"version": "0.0.0",
"type": "library",
"keywords": ["array", "collection", "functional", "iterator", "utility"],
"license... | {
"name": "colindecarlo/coolection",
"description": "Coolection is a collection library focused on delivering faster access to and iteration of its members.",
"version": "0.0.0",
"type": "library",
"keywords": ["array", "collection", "functional", "iterator", "utility"],
"license":... | 4 | 0.16 | 3 | 1 |
a647f7af6d4e3eac9fe85e6f6532e48ef60127f8 | integration_tests/go/src/call_c_from_go/main.go | integration_tests/go/src/call_c_from_go/main.go | package main
// #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files
// #include <mini-os/experimental.h>
import "C"
import "fmt"
//go:cgo_import_static test
//go:linkname test test
var test byte
func main() {}
//export Main
func Main(unused int) {
C.test()
fmt.Println("Hello World!")
}
| package main
// #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files
// #include <mini-os/experimental.h>
import "C"
import "fmt"
func main() {}
//export Main
func Main(unused int) {
C.test()
fmt.Println("Hello World!")
}
| Remove unnecessary cgo directives from test | Remove unnecessary cgo directives from test
| Go | bsd-2-clause | unigornel/unigornel,unigornel/unigornel | go | ## Code Before:
package main
// #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files
// #include <mini-os/experimental.h>
import "C"
import "fmt"
//go:cgo_import_static test
//go:linkname test test
var test byte
func main() {}
//export Main
func Main(unused int) {
C.test()
fmt.Println("Hello World!")
}
... | package main
// #cgo LDFLAGS: -Wl,--unresolved-symbols=ignore-in-object-files
// #include <mini-os/experimental.h>
import "C"
import "fmt"
-
- //go:cgo_import_static test
- //go:linkname test test
- var test byte
func main() {}
//export Main
func Main(unused int) {
C.test()
fmt.Printl... | 4 | 0.210526 | 0 | 4 |
4697c64e9068a4ea3bd7bd4d07c718a64597a6be | app/services/onestop_id_service.rb | app/services/onestop_id_service.rb | class OnestopIdService
include Singleton
def self.find!(onestop_id)
OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id)
end
end
| class OnestopIdService
include Singleton
def self.find(onestop_id)
OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id(onestop_id)
end
def self.find!(onestop_id)
OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onest... | Add OnestopIdService.find to complement OnestopIdService.find! | Add OnestopIdService.find to complement OnestopIdService.find!
| Ruby | mit | transitland/transitland-datastore,transitland/transitland-datastore,transitland/transitland-datastore | ruby | ## Code Before:
class OnestopIdService
include Singleton
def self.find!(onestop_id)
OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id!(onestop_id)
end
end
## Instruction:
Add OnestopIdService.find to complement OnestopIdService.find!
## Code After:
class One... | class OnestopIdService
include Singleton
+
+ def self.find(onestop_id)
+ OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)[0]].find_by_onestop_id(onestop_id)
+ end
def self.find!(onestop_id)
OnestopId::PREFIX_TO_MODEL[onestop_id.split(OnestopId::COMPONENT_SEPARATOR)... | 4 | 0.571429 | 4 | 0 |
c84d46b3e35357dff939765e78875b539e7a69c9 | app/views/admin/issues/index.html.erb | app/views/admin/issues/index.html.erb | <div class="row">
<h2>
<span class="col-sm-10">Manage Platform</span>
<span class="col-sm-2">
<%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %>
</span>
</h2>
</div>
<div class="row">
<div class='issue-header'>
<div class="col-md-4">
<h4>Title</h4>
</... | <div class="row">
<h2>
<span class="col-sm-10">Manage Platform</span>
<span class="col-sm-2">
<%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %>
</span>
</h2>
</div>
<div>
<div class='row issue-header'>
<div class="col-md-4">
<h4>Title</h4>
</div>
... | Fix admin view bootstrap display problem for issues | Fix admin view bootstrap display problem for issues
| HTML+ERB | isc | OpenCampaign/opencampaign,OpenCampaign/opencampaign,OpenCampaign/opencampaign | html+erb | ## Code Before:
<div class="row">
<h2>
<span class="col-sm-10">Manage Platform</span>
<span class="col-sm-2">
<%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %>
</span>
</h2>
</div>
<div class="row">
<div class='issue-header'>
<div class="col-md-4">
<h4>T... | <div class="row">
<h2>
<span class="col-sm-10">Manage Platform</span>
<span class="col-sm-2">
<%= link_to 'Create Position', new_admin_issue_path, class: 'btn btn-primary' %>
</span>
</h2>
</div>
- <div class="row">
+ <div>
- <div class='issue-header'>
+ <div class='row issu... | 6 | 0.1875 | 3 | 3 |
cc8076bf191edb825ba1a4bc64f27873629979ae | Godeps/Godeps.json | Godeps/Godeps.json | {
"ImportPath": "github.com/syncthing/syncthing-inotify",
"GoVersion": "go1.6",
"GodepVersion": "v71",
"Deps": [
{
"ImportPath": "github.com/cenkalti/backoff",
"Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a"
},
{
"ImportPath": "github.com/syncthing/syncthing/lib/ignore",
"Comment": "v0.13.4",
... | {
"ImportPath": "github.com/syncthing/syncthing-inotify",
"GoVersion": "go1.6",
"GodepVersion": "v71",
"Deps": [
{
"ImportPath": "github.com/cenkalti/backoff",
"Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a"
},
{
"ImportPath": "github.com/syncthing/syncthing/lib/ignore",
"Comment": "v0.13.4",
... | Fix notify version for godeps. | Fix notify version for godeps.
| JSON | mpl-2.0 | syncthing/syncthing-inotify,syncthing/syncthing-inotify,imsodin/syncthing-inotify,imsodin/syncthing-inotify,syncthing/syncthing-inotify,imsodin/syncthing-inotify | json | ## Code Before:
{
"ImportPath": "github.com/syncthing/syncthing-inotify",
"GoVersion": "go1.6",
"GodepVersion": "v71",
"Deps": [
{
"ImportPath": "github.com/cenkalti/backoff",
"Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a"
},
{
"ImportPath": "github.com/syncthing/syncthing/lib/ignore",
"Comment... | {
"ImportPath": "github.com/syncthing/syncthing-inotify",
"GoVersion": "go1.6",
"GodepVersion": "v71",
"Deps": [
{
"ImportPath": "github.com/cenkalti/backoff",
"Rev": "9831e1e25c874e0a0601b6dc43641071414eec7a"
},
{
"ImportPath": "github.com/syncthing/syncthing/lib/ignore",
... | 2 | 0.1 | 1 | 1 |
7480df0fd6a00c11045cf0c1523610e611606cfa | test/fixtures/hard/indentation.js | test/fixtures/hard/indentation.js | import styled from 'styled-components'
// None of the below should throw indentation errors
const Comp = () => {
const Button = styled.button`
color: blue;
`
return Button
}
const Comp2 = () => {
const InnerComp = () => {
const Button = styled.button`
color: blue;
`
return Button
}
... | import styled, { keyframes } from 'styled-components'
// None of the below should throw indentation errors
const Comp = () => {
const Button = styled.button`
color: blue;
`
return Button
}
const Comp2 = () => {
const InnerComp = () => {
const Button = styled.button`
color: blue;
`
retu... | Move wrongly linted animation to hard tests | Move wrongly linted animation to hard tests
| JavaScript | mit | styled-components/stylelint-processor-styled-components | javascript | ## Code Before:
import styled from 'styled-components'
// None of the below should throw indentation errors
const Comp = () => {
const Button = styled.button`
color: blue;
`
return Button
}
const Comp2 = () => {
const InnerComp = () => {
const Button = styled.button`
color: blue;
`
ret... | - import styled from 'styled-components'
+ import styled, { keyframes } from 'styled-components'
? +++++++++++++++
// None of the below should throw indentation errors
const Comp = () => {
const Button = styled.button`
color: blue;
`
return Button
}
const Comp2 = () => {... | 14 | 0.583333 | 13 | 1 |
e907487fca0a545405bd64e8e2bcada5e146c381 | p4.js | p4.js | /*jshint node:true*/
"use strict";
var exec = require("child_process").exec;
function runCommand(command, args, done) {
if(typeof args === "function") {
done = args;
args = "";
}
exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) {
if(err) return done(err);
... | /*jshint node:true*/
"use strict";
var exec = require("child_process").exec;
function runCommand(command, args, done) {
if(typeof args === "function") {
done = args;
args = "";
}
exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) {
if(err) return done(err);
... | Add revertUnchanged command, because it's not uncommon. | Add revertUnchanged command, because it's not uncommon.
| JavaScript | isc | gcochard/p4-oo | javascript | ## Code Before:
/*jshint node:true*/
"use strict";
var exec = require("child_process").exec;
function runCommand(command, args, done) {
if(typeof args === "function") {
done = args;
args = "";
}
exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) {
if(err) ret... | /*jshint node:true*/
"use strict";
var exec = require("child_process").exec;
function runCommand(command, args, done) {
if(typeof args === "function") {
done = args;
args = "";
}
exec("p4 " + command + " " + (args || ""), function(err, stdOut, stdErr) {
i... | 5 | 0.128205 | 5 | 0 |
6f77ac919f9f3d3972646a6f26907fefb79a3be2 | configuration-sample.json | configuration-sample.json | {
"tkdisplay":{
"width":32,
"height":16,
"scale":8
},
"leddisplay":{
"port":"/dev/ttyUSB0",
"speed":2000000
},
"animator":{
"queue":256,
"fps":25,
"loop":true,
"animations": [
{"module":"animations.rainbow", "duratio... | {
"tkdisplay":{
"width":32,
"height":16,
"scale":8
},
"leddisplay":{
"port":"/dev/ttyUSB0",
"speed":2000000
},
"animator":{
"queue":256,
"fps":25,
"loop":true,
"animations": [
{"module":"animations.rainbow", "duratio... | Remove basic auth from configuration sample | Remove basic auth from configuration sample
| JSON | mit | nlehuen/led_display | json | ## Code Before:
{
"tkdisplay":{
"width":32,
"height":16,
"scale":8
},
"leddisplay":{
"port":"/dev/ttyUSB0",
"speed":2000000
},
"animator":{
"queue":256,
"fps":25,
"loop":true,
"animations": [
{"module":"animations.ra... | {
"tkdisplay":{
"width":32,
"height":16,
"scale":8
},
"leddisplay":{
"port":"/dev/ttyUSB0",
"speed":2000000
},
"animator":{
"queue":256,
"fps":25,
"loop":true,
"animations": [
{"module... | 4 | 0.093023 | 0 | 4 |
4bd121549168c1ecff7cdda43309fb85ff35bab2 | src/js/background/lib/launch.js | src/js/background/lib/launch.js | import {exec} from 'child_process';
import {isAbsolute} from 'path';
function launch(path, options = {}) {
if(!isAbsolute(path)) {
return new Error('Application path "%s" is not absolute.', path);
}
if(!options instanceof Object) {
return new Error('Option passed to launch must be an instance of Object, ... | import {exec} from 'child_process';
import {isAbsolute} from 'path';
function launch(path, options = {}) {
if(!isAbsolute(path)) {
throw new Error('Application path "%s" is not absolute.', path);
}
if(!options instanceof Object) {
throw new Error('Option passed to launch must be an instance of Object, go... | Fix throw error instead of returning | Fix throw error instead of returning
| JavaScript | mit | simonlovesyou/AutoRobot | javascript | ## Code Before:
import {exec} from 'child_process';
import {isAbsolute} from 'path';
function launch(path, options = {}) {
if(!isAbsolute(path)) {
return new Error('Application path "%s" is not absolute.', path);
}
if(!options instanceof Object) {
return new Error('Option passed to launch must be an inst... | import {exec} from 'child_process';
import {isAbsolute} from 'path';
function launch(path, options = {}) {
if(!isAbsolute(path)) {
- return new Error('Application path "%s" is not absolute.', path);
? ^^^^^
+ throw new Error('Application path "%s" is not absolute.', path);
? ++ ^^
}
... | 6 | 0.26087 | 3 | 3 |
6b2868588077ae6f9d1a732d60f1246776941404 | app/policies/beach_api_core/entity_policy.rb | app/policies/beach_api_core/entity_policy.rb | module BeachApiCore
class EntityPolicy < ApplicationPolicy
def show?
record.user == user
end
def destroy?
record.user == user
end
def lookup?
record.user == user
end
end
end
| module BeachApiCore
class EntityPolicy < ApplicationPolicy
alias show? entity_user?
alias destroy? entity_user?
alias lookup? entity_user?
alias create? entity_user?
alias index? entity_user?
private
def entity_user?
record.user == user
end
end
end
| Add create? and index? to entity policy | Add create? and index? to entity policy
| Ruby | mit | beachio/beach-api-core,beachio/beach-api-core,beachio/beach-api-core | ruby | ## Code Before:
module BeachApiCore
class EntityPolicy < ApplicationPolicy
def show?
record.user == user
end
def destroy?
record.user == user
end
def lookup?
record.user == user
end
end
end
## Instruction:
Add create? and index? to entity policy
## Code After:
module Be... | module BeachApiCore
class EntityPolicy < ApplicationPolicy
- def show?
- record.user == user
- end
+ alias show? entity_user?
+ alias destroy? entity_user?
+ alias lookup? entity_user?
+ alias create? entity_user?
+ alias index? entity_user?
+ private
- def destroy?
- ... | 14 | 0.933333 | 7 | 7 |
bd8847c123f450bae136db4f98b13bd85b9bd8f6 | test/unit/Connection/Settings.test.php | test/unit/Connection/Settings.test.php | <?php
namespace Gt\Database\Connection;
class SettingsTest extends \PHPUnit_Framework_TestCase {
}# | <?php
namespace Gt\Database\Connection;
class SettingsTest extends \PHPUnit_Framework_TestCase {
public function testPropertiesSet() {
$details = [
"dataSource" => "test-data-source",
"database" => "test-database",
"hostname" => "test-hostname",
"username" => "test-username",
"password" => "test-password",... | Test properties are set on Settings object. | Test properties are set on Settings object.
| PHP | mit | j4m3s/Database | php | ## Code Before:
<?php
namespace Gt\Database\Connection;
class SettingsTest extends \PHPUnit_Framework_TestCase {
}#
## Instruction:
Test properties are set on Settings object.
## Code After:
<?php
namespace Gt\Database\Connection;
class SettingsTest extends \PHPUnit_Framework_TestCase {
public function testPropert... | <?php
namespace Gt\Database\Connection;
class SettingsTest extends \PHPUnit_Framework_TestCase {
+ public function testPropertiesSet() {
+ $details = [
+ "dataSource" => "test-data-source",
+ "database" => "test-database",
+ "hostname" => "test-hostname",
+ "username" => "test-username",
+ "passw... | 24 | 4 | 24 | 0 |
2b5c186337bcb396f630c0b86938e43eb06d3e5b | tests/test_i10knobs.py | tests/test_i10knobs.py | from pkg_resources import require
require("cothread")
require("mock")
import unittest
import mock
import sys
# Mock out catools as it requires EPICS binaries at import
sys.modules['cothread.catools'] = mock.MagicMock()
import cothread
import sys
import os
from PyQt4 import QtGui
sys.path.append(os.path.join(os.path.d... | from pkg_resources import require
require("cothread")
require("mock")
import unittest
import mock
import sys
# Mock out catools as it requires EPICS binaries at import
sys.modules['cothread.catools'] = mock.MagicMock()
import cothread
import sys
import os
from PyQt4 import QtGui
sys.path.append(os.path.join(os.path.d... | Add test checking only for imports | Add test checking only for imports
| Python | apache-2.0 | dls-controls/i10switching,dls-controls/i10switching | python | ## Code Before:
from pkg_resources import require
require("cothread")
require("mock")
import unittest
import mock
import sys
# Mock out catools as it requires EPICS binaries at import
sys.modules['cothread.catools'] = mock.MagicMock()
import cothread
import sys
import os
from PyQt4 import QtGui
sys.path.append(os.pat... | from pkg_resources import require
require("cothread")
require("mock")
import unittest
import mock
import sys
# Mock out catools as it requires EPICS binaries at import
sys.modules['cothread.catools'] = mock.MagicMock()
import cothread
import sys
import os
from PyQt4 import QtGui
sys.path... | 3 | 0.115385 | 3 | 0 |
6544a0c8c5f1d5992bece404c220ea07907990cd | services/libratometrics.rb | services/libratometrics.rb | class Service::LibratoMetrics < Service
def receive_logs
values = Hash.new { |h,k| h[k] = 0 }
payload[:events].each do |event|
time = Time.parse(event[:received_at])
time = time.to_i - (time.to_i % 60)
values[time] += 1
end
gauges = values.collect do |time, count|
{
:... | class Service::LibratoMetrics < Service
def receive_logs
# values[hostname][time]
values = Hash.new do |h,k|
h[k] = Hash.new do |i,l|
i[l] = 0
end
end
payload[:events].each do |event|
time = Time.parse(event[:received_at])
time = time.to_i - (time.to_i % 60)
valu... | Send the source for librato metrics | Send the source for librato metrics
| Ruby | mit | zakwilson/papertrail-services,papertrail/papertrail-services | ruby | ## Code Before:
class Service::LibratoMetrics < Service
def receive_logs
values = Hash.new { |h,k| h[k] = 0 }
payload[:events].each do |event|
time = Time.parse(event[:received_at])
time = time.to_i - (time.to_i % 60)
values[time] += 1
end
gauges = values.collect do |time, count|
... | class Service::LibratoMetrics < Service
def receive_logs
+ # values[hostname][time]
- values = Hash.new { |h,k| h[k] = 0 }
? ^ -----------
+ values = Hash.new do |h,k|
? ^^
+ h[k] = Hash.new do |i,l|
+ i[l] = 0
+ end
+ end
... | 26 | 0.896552 | 17 | 9 |
bd878da54d9816779303a0e7ea042c9adaeab993 | runserver.py | runserver.py | from optparse import OptionParser
from sys import stderr
import pytz
from werkzeug import script
from werkzeug.script import make_runserver
from firmant.wsgi import Application
from firmant.utils import mod_to_dict
from firmant.utils import get_module
parser = OptionParser()
parser.add_option('-s', '--settings',
... | from wsgiref.simple_server import make_server
from optparse import OptionParser
from sys import stderr
import socket
import pytz
from firmant.wsgi import Application
from firmant.utils import mod_to_dict
from firmant.utils import get_module
parser = OptionParser()
parser.add_option('-s', '--settings',
dest='s... | Revert to old server script (worked better). | Revert to old server script (worked better).
The old script did not auto-reload and did display requests made to the
server. The werkzeug-based script's auto-reload feature would mess with
the import magic that powers plugins.
| Python | bsd-3-clause | rescrv/firmant | python | ## Code Before:
from optparse import OptionParser
from sys import stderr
import pytz
from werkzeug import script
from werkzeug.script import make_runserver
from firmant.wsgi import Application
from firmant.utils import mod_to_dict
from firmant.utils import get_module
parser = OptionParser()
parser.add_option('-s', '-... | + from wsgiref.simple_server import make_server
from optparse import OptionParser
from sys import stderr
+ import socket
import pytz
- from werkzeug import script
- from werkzeug.script import make_runserver
from firmant.wsgi import Application
from firmant.utils import mod_to_dict
from firmant.utils imp... | 18 | 0.486486 | 12 | 6 |
630d24c79df443ed42778c2f124c91f20c84b93b | src/Surfnet/ServiceProviderDashboard/Infrastructure/DashboardBundle/Resources/views/EntityDetail/detailAttributeField.html.twig | src/Surfnet/ServiceProviderDashboard/Infrastructure/DashboardBundle/Resources/views/EntityDetail/detailAttributeField.html.twig | {% if value and value.motivation is not null %}
<h3 class="attribute-title">{{ label }}</h3>
<div class="detail attribute">
{% if informationPopup is defined %}
<span data-tippy-content="{{ informationPopup|trans }}" class="help-button">
<i class="fa fa-question-circle"></i>
</span>
... | {% if value and value.motivation is not null %}
<h3 class="attribute-title">{{ label }}</h3>
<div class="detail attribute">
{% if informationPopup is defined %}
<span data-tippy-content="{{ informationPopup|trans }}" class="help-button">
<i class="fa fa-question-circle"></i>
</span>
... | Remove motivation placeholder from view entity page | Remove motivation placeholder from view entity page
| Twig | apache-2.0 | SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard | twig | ## Code Before:
{% if value and value.motivation is not null %}
<h3 class="attribute-title">{{ label }}</h3>
<div class="detail attribute">
{% if informationPopup is defined %}
<span data-tippy-content="{{ informationPopup|trans }}" class="help-button">
<i class="fa fa-question-circle"></i>
... | {% if value and value.motivation is not null %}
<h3 class="attribute-title">{{ label }}</h3>
<div class="detail attribute">
{% if informationPopup is defined %}
<span data-tippy-content="{{ informationPopup|trans }}" class="help-button">
<i class="fa fa-question-circle"></i>
... | 1 | 0.058824 | 0 | 1 |
1af2795907b3a686d9bce4bdc94b89f3678dd1af | corehq/apps/sms/migrations/0049_auto_enable_turnio_ff.py | corehq/apps/sms/migrations/0049_auto_enable_turnio_ff.py |
from django.db import migrations
from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend
from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN
def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor):
for backend in SQLTurnWhatsAppBackend.active_objects.all():
domain ... |
from django.db import migrations
from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN
def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor):
SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend')
for backend in SQLTurnWhatsAppBackend.objects.all():
# Check for ... | Use historical model in migration, not directly imported model | Use historical model in migration, not directly imported model
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | python | ## Code Before:
from django.db import migrations
from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend
from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN
def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor):
for backend in SQLTurnWhatsAppBackend.active_objects.all():... |
from django.db import migrations
- from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend
from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN
def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor):
+ SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhat... | 11 | 0.44 | 7 | 4 |
12093c3076f0a08bd6cefcda661116df1e7f5220 | magnum/common/pythonk8sclient/README.rst | magnum/common/pythonk8sclient/README.rst | ==========================
Kubernetes API client code
==========================
Overview
--------
This is Kubernetes API python client code. This code is generated by
swagger-codegen. Kubernetes provide swagger-spec to generate client code
for different versions. The specs live in Kubernetes repo.
See also
--------... | ==========================
Kubernetes API client code
==========================
Overview
--------
This is Kubernetes API python client code. This code is generated by
swagger-codegen. Kubernetes provide swagger-spec to generate client code
for different versions. The specs live in Kubernetes repo.
See also
--------... | Update documentation for generating k8s v1 client | Update documentation for generating k8s v1 client
Partially-Implements: blueprint kubernetes-v1
Change-Id: I30e7d17ce00619c7519a7271837bb8721c65ed5f
| reStructuredText | apache-2.0 | dimtruck/magnum,eshijia/magnum,mjbrewer/testindex,mjbrewer/testindex,Tennyson53/magnum,eshijia/magnum,ArchiFleKs/magnum,Tennyson53/magnum,jay-lau/magnum,openstack/magnum,openstack/magnum,mjbrewer/testindex,dimtruck/magnum,ArchiFleKs/magnum | restructuredtext | ## Code Before:
==========================
Kubernetes API client code
==========================
Overview
--------
This is Kubernetes API python client code. This code is generated by
swagger-codegen. Kubernetes provide swagger-spec to generate client code
for different versions. The specs live in Kubernetes repo.
S... | ==========================
Kubernetes API client code
==========================
Overview
--------
This is Kubernetes API python client code. This code is generated by
swagger-codegen. Kubernetes provide swagger-spec to generate client code
for different versions. The specs live in Kubernetes repo... | 31 | 0.885714 | 24 | 7 |
ecf04892332f85bc6f7bc184eee381fc4aadc804 | roles/keitaro.php/tasks/main.yml | roles/keitaro.php/tasks/main.yml | - name: Install php extensions
yum:
name:
- "{{php_version}}"
- "{{php_version}}-php-bcmath"
- "{{php_version}}-php-devel"
- "{{php_version}}-php-mysqlnd"
- "{{php_version}}-php-opcache"
- "{{php_version}}-php-pecl-redis"
- "{{php_version}}-php-mbstring"
- "{{php_ve... | - name: Install php extensions
yum:
name:
- "{{php_version}}"
- "{{php_version}}-php-bcmath"
- "{{php_version}}-php-devel"
- "{{php_version}}-php-mysqlnd"
- "{{php_version}}-php-opcache"
- "{{php_version}}-php-pecl-redis"
- "{{php_version}}-php-mbstring"
- "{{php_ve... | Make symling to php-fpm log after installing php-fpm | Make symling to php-fpm log after installing php-fpm
| YAML | mit | keitarocorp/centos_provision,keitarocorp/centos_provision | yaml | ## Code Before:
- name: Install php extensions
yum:
name:
- "{{php_version}}"
- "{{php_version}}-php-bcmath"
- "{{php_version}}-php-devel"
- "{{php_version}}-php-mysqlnd"
- "{{php_version}}-php-opcache"
- "{{php_version}}-php-pecl-redis"
- "{{php_version}}-php-mbstring"
... | - name: Install php extensions
yum:
name:
- "{{php_version}}"
- "{{php_version}}-php-bcmath"
- "{{php_version}}-php-devel"
- "{{php_version}}-php-mysqlnd"
- "{{php_version}}-php-opcache"
- "{{php_version}}-php-pecl-redis"
- "{{php_version}}-php-mbstrin... | 1 | 0.033333 | 0 | 1 |
cfda4c5cc063df4a7594aa52673fe03719eccb07 | setup.cfg | setup.cfg | [bumpversion]
current_version = 1.3.8
commit = False
tag = True
[bdist_wheel]
universal = true
[tool:pytest]
norecursedirs = build docs/_build *.egg .tox *.venv
addopts =
--verbose
--tb=short
--capture=no
# show extra test summary info as specified by chars (f)ailed, (E)error,
# (s)skipped, (x)failed, (X)passed... | [bumpversion]
current_version = 1.3.8
commit = False
tag = True
[bdist_wheel]
universal = true
[tool:pytest]
norecursedirs = build docs/_build *.egg .tox *.venv
addopts =
--verbose
--tb=short
--capture=no
# show extra test summary info as specified by chars (f)ailed, (E)error,
# (s)skipped, (x)failed, (X)passed... | Make line length reqs explicit | Make line length reqs explicit
| INI | apache-2.0 | pinterest/pymemcache,sontek/pymemcache,pinterest/pymemcache,sontek/pymemcache,bwalks/pymemcache,ewdurbin/pymemcache | ini | ## Code Before:
[bumpversion]
current_version = 1.3.8
commit = False
tag = True
[bdist_wheel]
universal = true
[tool:pytest]
norecursedirs = build docs/_build *.egg .tox *.venv
addopts =
--verbose
--tb=short
--capture=no
# show extra test summary info as specified by chars (f)ailed, (E)error,
# (s)skipped, (x)f... | [bumpversion]
current_version = 1.3.8
commit = False
tag = True
[bdist_wheel]
universal = true
[tool:pytest]
norecursedirs = build docs/_build *.egg .tox *.venv
addopts =
--verbose
--tb=short
--capture=no
# show extra test summary info as specified by chars (f)ailed, (E)error,
# ... | 1 | 0.034483 | 1 | 0 |
1599bc03b0a1cd202836479fba2406457a17f118 | user_map/tests/urls.py | user_map/tests/urls.py | from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
url(r'^user-map/', include('user_map.urls', namespace='user_map'))
)
| from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
url(r'^user-map/', include('user_map.urls', namespace='user_map')),
url(r'^login/$',
'django.contrib.auth.views.login',
{'template_name': 'admin/login.html'},
name='my_login',
),
)
| Add login url for testing. | Add login url for testing.
| Python | lgpl-2.1 | akbargumbira/django-user-map,akbargumbira/django-user-map,akbargumbira/django-user-map,akbargumbira/django-user-map | python | ## Code Before:
from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
url(r'^user-map/', include('user_map.urls', namespace='user_map'))
)
## Instruction:
Add login url for testing.
## Code After:
from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
... | from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
- url(r'^user-map/', include('user_map.urls', namespace='user_map'))
+ url(r'^user-map/', include('user_map.urls', namespace='user_map')),
? +
+ ... | 7 | 1.166667 | 6 | 1 |
c1b6357c4d6876caa081af0799ec6c7a189ad13f | fabfile.py | fabfile.py | from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
# pychecker
... | from fabric.api import *
from fabric.contrib.console import confirm
cfg = dict(
appengine_dir='appengine-web/src',
goldquest_dir='src',
appengine_token='',
)
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(goldquest_dir)s" %... | Add support for appengine update oauth2 token in deploy script. | NEW: Add support for appengine update oauth2 token in deploy script.
| Python | mit | ollej/GoldQuest,ollej/GoldQuest,ollej/GoldQuest,ollej/GoldQuest | python | ## Code Before:
from fabric.api import *
from fabric.contrib.console import confirm
appengine_dir='appengine-web/src'
goldquest_dir='src'
def update():
# update to latest code from repo
local('git pull')
def test():
local("nosetests -m 'Test|test_' -w %(path)s" % dict(path=goldquest_dir))
# jslint
... | from fabric.api import *
from fabric.contrib.console import confirm
+ cfg = dict(
- appengine_dir='appengine-web/src'
+ appengine_dir='appengine-web/src',
? ++++ +
- goldquest_dir='src'
+ goldquest_dir='src',
? ++++ +
+ appengine_token='',
+ )
... | 13 | 0.40625 | 8 | 5 |
abd5012d9d1a8ec5f3a2fc1a1bb7d1c96885b459 | README.md | README.md | goupnp is a UPnP client library for Go
Installation
------------
Run `go get -u github.com/huin/goupnp`.
Regenerating dcps generated source code:
----------------------------------------
1. Install gotasks: `go get -u github.com/jingweno/gotask`
2. Change to the gotasks directory: `cd gotasks`
3. Download UPnP spec... | goupnp is a UPnP client library for Go
Installation
------------
Run `go get -u github.com/huin/goupnp`.
Regenerating dcps generated source code:
----------------------------------------
1. Install gotasks: `go get -u github.com/jingweno/gotask`
2. Change to the gotasks directory: `cd gotasks`
3. Download UPnP spec... | Add notes about supporting additional dcps. | Add notes about supporting additional dcps.
| Markdown | bsd-2-clause | huin/goupnp | markdown | ## Code Before:
goupnp is a UPnP client library for Go
Installation
------------
Run `go get -u github.com/huin/goupnp`.
Regenerating dcps generated source code:
----------------------------------------
1. Install gotasks: `go get -u github.com/jingweno/gotask`
2. Change to the gotasks directory: `cd gotasks`
3. Do... | goupnp is a UPnP client library for Go
Installation
------------
Run `go get -u github.com/huin/goupnp`.
Regenerating dcps generated source code:
----------------------------------------
1. Install gotasks: `go get -u github.com/jingweno/gotask`
2. Change to the gotasks directory: `cd gotask... | 12 | 0.857143 | 12 | 0 |
c35fac67e2f4b22df35e1149a97addc78cc9f21d | whelktool/scripts/cleanups/2020/01/lxl-2760.groovy | whelktool/scripts/cleanups/2020/01/lxl-2760.groovy | // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy
subdivisionTypes = [
'GenreForm' : 'GenreSubdivision',
'Temporal' : 'TemporalSubdivision',
'Geographic' : 'GeographicSubdivision'
]
COMPLEX_SUBJECT_TYPE = 'ComplexSubject'
boolean changeToSubdivision(it, subdivisionTy... | // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy
PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
subdivisionTypes = [
'GenreForm' : 'GenreSubdivision',
'Temporal' : 'TemporalSubdivision',
'Geographic' : 'GeographicSubdivision'
]
COMPLEX_SUBJE... | Add reporting to cleanup script. | Add reporting to cleanup script.
| Groovy | apache-2.0 | libris/librisxl,libris/librisxl,libris/librisxl | groovy | ## Code Before:
// A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy
subdivisionTypes = [
'GenreForm' : 'GenreSubdivision',
'Temporal' : 'TemporalSubdivision',
'Geographic' : 'GeographicSubdivision'
]
COMPLEX_SUBJECT_TYPE = 'ComplexSubject'
boolean changeToSubdivision(i... | // A bleak imitation (for hold) of 2018/10/remodel-termComponentList.groovy
+
+ PrintWriter scheduledForUpdating = getReportWriter("scheduled-updates")
subdivisionTypes = [
'GenreForm' : 'GenreSubdivision',
'Temporal' : 'TemporalSubdivision',
'Geographic' : 'GeographicSubdivision'
... | 3 | 0.075 | 3 | 0 |
06650fb26422ceda512e9518c11df57fb7901a26 | bookmarker.gemspec | bookmarker.gemspec |
$:.push File.expand_path("../lib", __FILE__)
require "bookmarker/version"
Gem::Specification.new do |s|
s.name = "bookmarker"
s.version = Bookmarker::VERSION
s.authors = ["Marat Galiev"]
s.email = ["kazanlug@gmail.com"]
s.homepage = "https://github.com/maratgaliev/bookmarker"
s.su... |
$:.push File.expand_path("../lib", __FILE__)
require "bookmarker/version"
Gem::Specification.new do |s|
s.name = "bookmarker"
s.version = Bookmarker::VERSION
s.authors = ["Marat Galiev"]
s.email = ["kazanlug@gmail.com"]
s.homepage = "https://github.com/maratgaliev/bookmarker"
s.su... | Remove files option from gemspec | Remove files option from gemspec
| Ruby | mit | maratgaliev/bookmarker,maratgaliev/bookmarker | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
require "bookmarker/version"
Gem::Specification.new do |s|
s.name = "bookmarker"
s.version = Bookmarker::VERSION
s.authors = ["Marat Galiev"]
s.email = ["kazanlug@gmail.com"]
s.homepage = "https://github.com/maratgaliev/bo... |
$:.push File.expand_path("../lib", __FILE__)
require "bookmarker/version"
Gem::Specification.new do |s|
s.name = "bookmarker"
s.version = Bookmarker::VERSION
s.authors = ["Marat Galiev"]
s.email = ["kazanlug@gmail.com"]
s.homepage = "https://github.com/maratgal... | 1 | 0.05 | 0 | 1 |
40ee4d60c035b5b1543bd9b7493bde99f59d7dd8 | web-client/app/views/directives/usersCarousel.html | web-client/app/views/directives/usersCarousel.html | <div class="carousel">
<div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" >
<a ui-sref="app.publishers.profile.user.published({ userId: user.id })">
<div ng-class="{'dimmer': user.id !== selectedUser.id }"></div>
<div class="cove... | <div class="carousel">
<div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" >
<a ui-sref="app.publishers.profile.user.published({ userId: user.id })">
<div ng-class="{'dimmer': user.id !== selectedUser.id }"></div>
<div class="cove... | Remove usernames and published articles count from users carousel. | Remove usernames and published articles count from users carousel.
| HTML | bsd-2-clause | manshar/manshar,manshar/manshar,ahmgeek/manshar,ahmgeek/manshar,manshar/manshar,ahmgeek/manshar,manshar/manshar,ahmgeek/manshar | html | ## Code Before:
<div class="carousel">
<div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" >
<a ui-sref="app.publishers.profile.user.published({ userId: user.id })">
<div ng-class="{'dimmer': user.id !== selectedUser.id }"></div>
... | <div class="carousel">
<div class="author-block small-block block" ng-repeat="user in users" ng-class="{'selected': user.id === selectedUser.id }" >
<a ui-sref="app.publishers.profile.user.published({ userId: user.id })">
<div ng-class="{'dimmer': user.id !== selectedUser.id }"></div>
<div c... | 4 | 0.333333 | 0 | 4 |
af6672dc10dd9c108b108ac5590cffdbb063eb79 | visual/flow_vis.html | visual/flow_vis.html | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Flow job name goes here</title>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script>
<script type='text/javascript' src='http://d3js.... | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Flow job name goes here</title>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script>
<script type='text/javascript' src='http://d3js.... | Set to use specific Dagre version | Set to use specific Dagre version
Latest as of 2014-12-01 | HTML | bsd-3-clause | lhupfeldt/jenkinsflow,lechat/jenkinsflow,lechat/jenkinsflow,lechat/jenkinsflow,lhupfeldt/jenkinsflow,lechat/jenkinsflow,lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Flow job name goes here</title>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script>
<script type='text/javascript' s... | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Flow job name goes here</title>
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js'></script>
<script type='text/javascript' s... | 9 | 0.36 | 2 | 7 |
e326f1f956f7da6e2475011357f2249d3fd1620c | app/assets/stylesheets/renalware/_patient_search.scss | app/assets/stylesheets/renalware/_patient_search.scss | $search-bar-height: 2.15rem;
$btn-hover-background-color: darken($off-white, 10%);
$btn-hover-color: darken($dark-grey, 10%);
.patient-search-form {
button.button.tiny.postfix {
padding: 0;
background-color: $off-white;
color: $dark-grey;
height: $search-bar-height;
&:hover {
background-col... | $search-bar-height: 2.15rem;
$btn-hover-background-color: darken($off-white, 10%);
$btn-hover-color: darken($dark-grey, 10%);
.has-form {
width: 260px;
}
.patient-search-form {
button.button.tiny.postfix {
padding: 0;
background-color: $off-white;
color: $dark-grey;
height: $search-bar-height;
... | Improve search input appearance in chrome | Improve search input appearance in chrome
| SCSS | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | scss | ## Code Before:
$search-bar-height: 2.15rem;
$btn-hover-background-color: darken($off-white, 10%);
$btn-hover-color: darken($dark-grey, 10%);
.patient-search-form {
button.button.tiny.postfix {
padding: 0;
background-color: $off-white;
color: $dark-grey;
height: $search-bar-height;
&:hover {
... | $search-bar-height: 2.15rem;
$btn-hover-background-color: darken($off-white, 10%);
$btn-hover-color: darken($dark-grey, 10%);
+ .has-form {
+ width: 260px;
+ }
+
.patient-search-form {
+
button.button.tiny.postfix {
padding: 0;
background-color: $off-white;
color: $dark-grey;
... | 8 | 0.363636 | 6 | 2 |
ebeb53dfe961c8fbc9616ab529bb6d6fc345dbcc | src/modules/common/constants.js | src/modules/common/constants.js | import {UnitState} from '../unit/constants';
export const API_URL = 'https://servicemat.hel.ninja/servicemap/v1'; //http://api.hel.fi/servicemap/v1';
export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1';
export const APP_NAME = 'outdoors-sports-map';
export const DEFAULT_LANG = 'fi';
export c... | import {UnitState} from '../unit/constants';
export const API_URL = 'http://api.hel.fi/servicemap/v1';
export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1';
export const APP_NAME = 'outdoors-sports-map';
export const DEFAULT_LANG = 'fi';
export const mobileBreakpoint = 768;
export type Actio... | Change API URL to production one | Change API URL to production one
| JavaScript | mit | nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map,nordsoftware/outdoors-sports-map | javascript | ## Code Before:
import {UnitState} from '../unit/constants';
export const API_URL = 'https://servicemat.hel.ninja/servicemap/v1'; //http://api.hel.fi/servicemap/v1';
export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1';
export const APP_NAME = 'outdoors-sports-map';
export const DEFAULT_LANG =... | import {UnitState} from '../unit/constants';
- export const API_URL = 'https://servicemat.hel.ninja/servicemap/v1'; //http://api.hel.fi/servicemap/v1';
+ export const API_URL = 'http://api.hel.fi/servicemap/v1';
export const DIGITRANSIT_API_URL = 'https://api.digitransit.fi/geocoding/v1';
export const APP_NAME... | 2 | 0.05 | 1 | 1 |
19b6c6c6ecf8a6c4ffcf060f8504727e9bd81f50 | README.md | README.md | rmq_grid
========
Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA.
Enjoy use of it on the Github Page here: [http://infiniter... | rmq_grid
========
Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA.
Enjoy use of it on the Github Page here: [http://infiniter... | Add note about premium support | Add note about premium support
| Markdown | mit | infinitered/rmq_grid,infinitered/rmq_grid | markdown | ## Code Before:
rmq_grid
========
Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA.
Enjoy use of it on the Github Page here: [... | rmq_grid
========
Useful tool to quickly play/mock/utilize [RMQ's grid](http://rubymotionquery.com/?s=grid&post_type=document) maintained by [Infinite Red](http://infinite.red), a web and mobile development company based in Portland, OR and San Francisco, CA.
Enjoy use of it on the Github Page here: [http... | 4 | 0.333333 | 4 | 0 |
31dcb63b788cec0cf589a54827bb98abed6f1de6 | views/priority_service_170330/intro/index.html | views/priority_service_170330/intro/index.html | {{< layout}}
{{$main-content}}
<div class="column-full">
<div class="flash-card">
<header>
<h1>Before you continue</h1>
</header>
<div class="grid-row">
<div class="column-two-thirds">
<p>If your name has changed, you need to <a href="https://www.... | {{< layout}}
{{$main-content}}
<div class="column-full">
<div class="flash-card">
<header>
<h1>Before you continue</h1>
</header>
<div class="grid-row">
<div class="column-two-thirds">
<p>If your name has changed, you need to <a href="https://www.... | Add nonbreakingspace to solve the problem of buttons being too close together | Add nonbreakingspace to solve the problem of buttons being too close together
| HTML | mit | UKHomeOffice/passports-prototype,UKHomeOffice/passports-prototype | html | ## Code Before:
{{< layout}}
{{$main-content}}
<div class="column-full">
<div class="flash-card">
<header>
<h1>Before you continue</h1>
</header>
<div class="grid-row">
<div class="column-two-thirds">
<p>If your name has changed, you need to <a hr... | {{< layout}}
{{$main-content}}
<div class="column-full">
<div class="flash-card">
<header>
<h1>Before you continue</h1>
</header>
<div class="grid-row">
<div class="column-two-thirds">
<p>If your name has changed, you nee... | 2 | 0.074074 | 2 | 0 |
0e75538f3d0d8abd7413b11d2476ffaa12e0f609 | lib/shopify_api/resources/fulfillment.rb | lib/shopify_api/resources/fulfillment.rb | module ShopifyAPI
class Fulfillment < Base
self.prefix = "/admin/orders/:order_id/"
def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end
end
end
| module ShopifyAPI
class Fulfillment < Base
self.prefix = "/admin/orders/:order_id/"
def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end
def complete; load_attributes_from_response(post(:complete, {}, only_id)); end
end
end
| Add complete action for Fulfillment endpoint | Add complete action for Fulfillment endpoint
| Ruby | mit | carsonreinke/shopify_api,discolabs/shopify_api,kevinmpowell/shopify_api,resistorsoftware/shopify_api,ipmobiletech/shopify_api,Shopify/shopify_api,aareano/shopify_api,lalithr95/shopify_api,cefigueiredo/shopify_api,kingscott/shopify_api,DanielVartanov/shopify_api | ruby | ## Code Before:
module ShopifyAPI
class Fulfillment < Base
self.prefix = "/admin/orders/:order_id/"
def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end
end
end
## Instruction:
Add complete action for Fulfillment endpoint
## Code After:
module ShopifyAPI
class Fulfillment < Base
... | module ShopifyAPI
class Fulfillment < Base
self.prefix = "/admin/orders/:order_id/"
def cancel; load_attributes_from_response(post(:cancel, {}, only_id)); end
+ def complete; load_attributes_from_response(post(:complete, {}, only_id)); end
end
end | 1 | 0.142857 | 1 | 0 |
12dfba0942899dc1ac28b654950bfb4a6ff81e69 | script/run_fcgi_with_plackup_and_carton.sh | script/run_fcgi_with_plackup_and_carton.sh |
working_dir=`dirname $0`
cd $working_dir
echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2
exec ./run_plackup_with_carton.sh -s FCGI
|
working_dir=`dirname $0`
cd $working_dir
echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2
exec ./run_plackup_with_carton.sh -s FCGI --manager MediaWords::MyFCgiManager
| Use the wrapper class for FCGI | Use the wrapper class for FCGI
| Shell | agpl-3.0 | AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter... | shell | ## Code Before:
working_dir=`dirname $0`
cd $working_dir
echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2
exec ./run_plackup_with_carton.sh -s FCGI
## Instruction:
Use the wrapper class for FCGI
## Code After:
working_dir=`dirname $0`
cd $working_dir
echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2
exe... |
working_dir=`dirname $0`
cd $working_dir
echo $$ run_fcgi_with_plackup_and_carton.sh pid >&2
- exec ./run_plackup_with_carton.sh -s FCGI
+ exec ./run_plackup_with_carton.sh -s FCGI --manager MediaWords::MyFCgiManager | 2 | 0.25 | 1 | 1 |
f7a22e9afc00bf43db8b7089cc818fb30013b85f | src/main/scala/com/anchortab/model/Event.scala | src/main/scala/com/anchortab/model/Event.scala | package com.anchortab.model
import net.liftweb._
import common._
import mongodb._
import util.Helpers._
import json._
import ext._
import JsonDSL._
import Extraction._
import org.joda.time.DateTime
import org.bson.types.ObjectId
case class Event(eventType:String, ip:String, userAgent:String, use... | package com.anchortab.model
import net.liftweb._
import common._
import mongodb._
import util.Helpers._
import json._
import ext._
import JsonDSL._
import Extraction._
import org.joda.time.DateTime
import org.bson.types.ObjectId
case class Event(eventType:String, ip:String, userAgent:String, use... | Add domain field to event. | Add domain field to event.
| Scala | apache-2.0 | farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab | scala | ## Code Before:
package com.anchortab.model
import net.liftweb._
import common._
import mongodb._
import util.Helpers._
import json._
import ext._
import JsonDSL._
import Extraction._
import org.joda.time.DateTime
import org.bson.types.ObjectId
case class Event(eventType:String, ip:String, userA... | package com.anchortab.model
import net.liftweb._
import common._
import mongodb._
import util.Helpers._
import json._
import ext._
import JsonDSL._
import Extraction._
import org.joda.time.DateTime
import org.bson.types.ObjectId
case class Event(eventType:String, ... | 15 | 0.394737 | 12 | 3 |
eda3be21bb5cab16c4ef19212f7f6b9a1b402d7f | .travis.yml | .travis.yml | language: ruby
before_script:
- "bundle exec rake db:create"
- "bundle exec rake db:schema:load RAILS_ENV=test"
rvm:
- 2.1.2
- 2.0.0
addons:
postgresql: "9.3"
| language: ruby
before_script:
- "bundle exec rake db:create"
- "bundle exec rake db:schema:load RAILS_ENV=test"
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
addons:
postgresql: "9.3"
| Use stable releases of Rubies | Travis: Use stable releases of Rubies | YAML | mit | QueueClassic/queue_classic_admin,QueueClassic/queue_classic_admin,QueueClassic/queue_classic_admin | yaml | ## Code Before:
language: ruby
before_script:
- "bundle exec rake db:create"
- "bundle exec rake db:schema:load RAILS_ENV=test"
rvm:
- 2.1.2
- 2.0.0
addons:
postgresql: "9.3"
## Instruction:
Travis: Use stable releases of Rubies
## Code After:
language: ruby
before_script:
- "bundle exec rake db:create"
... | language: ruby
before_script:
- "bundle exec rake db:create"
- "bundle exec rake db:schema:load RAILS_ENV=test"
rvm:
- - 2.1.2
? --
+ - 2.4.1
? ++
- - 2.0.0
? ^ ^
+ - 2.3.4
? ^ ^
+ - 2.2.7
addons:
postgresql: "9.3" | 5 | 0.555556 | 3 | 2 |
245c5b10178bf29bee15ab92ae25baa9ab176d0a | .travis.yml | .travis.yml | language: perl
matrix:
include:
- perl: "5.20"
- perl: "5.18"
- perl: "5.16"
- perl: "5.14"
- perl: "5.12"
- perl: "5.10"
- perl: "5.8"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y graphviz
| language: perl
matrix:
include:
- perl: "5.20"
- perl: "5.18"
- perl: "5.16"
- perl: "5.14"
- perl: "5.12"
- perl: "5.10"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y graphviz
| Remove dependency for 5.8. Perl. | Remove dependency for 5.8. Perl.
| YAML | artistic-2.0 | tupinek/Task-Map-Tube | yaml | ## Code Before:
language: perl
matrix:
include:
- perl: "5.20"
- perl: "5.18"
- perl: "5.16"
- perl: "5.14"
- perl: "5.12"
- perl: "5.10"
- perl: "5.8"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y graphviz
## Instruction:
Remove dependency for 5.8. Perl.
##... | language: perl
matrix:
include:
- perl: "5.20"
- perl: "5.18"
- perl: "5.16"
- perl: "5.14"
- perl: "5.12"
- perl: "5.10"
- - perl: "5.8"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y graphviz | 1 | 0.076923 | 0 | 1 |
33e3fcb875c2b1d72f87d5ee76a20ddea236b2de | views/daily-digest-email.html.twig | views/daily-digest-email.html.twig | <span class="h1">Latest Remote Jobs</span>
<div>
<ul style="list-style:none; padding:2px; margin:2px;">
{% for job in latestJobs %}
<li class='job'>
<a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'>
<strong>{{job.companyname}}</strong> -
<span class="po... | <span class="h1">Latest Remote Jobs</span>
<div>
<ul style="list-style:none; padding:2px; margin:2px;">
{% for job in latestJobs %}
<li class='job'>
<a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'>
<strong>{{job.companyname}}</strong> -
<span class="po... | Move some daily digest email info into the config | Move some daily digest email info into the config
| Twig | mit | ashleyhindle/goremote.io,ashleyhindle/goremote.io,ashleyhindle/goremote.io,ashleyhindle/goremote.io | twig | ## Code Before:
<span class="h1">Latest Remote Jobs</span>
<div>
<ul style="list-style:none; padding:2px; margin:2px;">
{% for job in latestJobs %}
<li class='job'>
<a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'>
<strong>{{job.companyname}}</strong> -
... | <span class="h1">Latest Remote Jobs</span>
<div>
<ul style="list-style:none; padding:2px; margin:2px;">
{% for job in latestJobs %}
<li class='job'>
<a href='{{ path('job-by-id-title', {id: job.jobid, title: slugify(job.position)}) }}'>
<strong>{{job.companyname}}</strong> -
... | 4 | 0.285714 | 4 | 0 |
fe85f1f135d2a7831afee6c8ab0bad394beb8aba | src/ais.py | src/ais.py | class MonsterAI(object):
def __init__(self, level):
self.owner = None
self.level = level
def take_turn(self):
self.owner.log.log_begin_turn(self.owner.oid)
self._take_turn()
def _take_turn(self):
raise NotImplementedError('Subclass this before usage please.')
clas... | from src.constants import *
class MonsterAI(object):
def __init__(self, level):
self.owner = None
self.level = level
def take_turn(self):
self.owner.log.log_begin_turn(self.owner.oid)
self._take_turn()
def _take_turn(self):
raise NotImplementedError('Subclass this... | Add throwing item usage to test AI | Add throwing item usage to test AI
Unforutnately the item isn't evicted from the inventory on usage,
so the guy with the throwing item can kill everybody, but it's
working - he does throw it!
| Python | mit | MoyTW/RL_Arena_Experiment | python | ## Code Before:
class MonsterAI(object):
def __init__(self, level):
self.owner = None
self.level = level
def take_turn(self):
self.owner.log.log_begin_turn(self.owner.oid)
self._take_turn()
def _take_turn(self):
raise NotImplementedError('Subclass this before usage ... | + from src.constants import *
+
+
class MonsterAI(object):
def __init__(self, level):
self.owner = None
self.level = level
def take_turn(self):
self.owner.log.log_begin_turn(self.owner.oid)
self._take_turn()
def _take_turn(self):
raise NotImp... | 18 | 0.75 | 18 | 0 |
6872c6000113192e2fcfb7eca9ad1cdadb4a3829 | public/index.md | public/index.md |
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed.
## What is it used for?
Hosting any web site required by adding a Dockerfile to your app's source repository.
## What languages are supported?
We have 10 languages supported already, and many fra... |
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed.
## What is it used for?
Hosting any web site required by adding a Dockerfile to your app's source repository.
## What languages are supported?
We have 10 languages supported already, and many fra... | Add a few more options. | Add a few more options.
| Markdown | apache-2.0 | octohost/www | markdown | ## Code Before:
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed.
## What is it used for?
Hosting any web site required by adding a Dockerfile to your app's source repository.
## What languages are supported?
We have 10 languages supported alrea... |
Simple web focused [Docker](http://www.docker.io) based mini-PaaS server. `git push` to deploy your websites as needed.
## What is it used for?
Hosting any web site required by adding a Dockerfile to your app's source repository.
## What languages are supported?
We have 10 languages supported a... | 10 | 0.416667 | 7 | 3 |
e19d16c720b7ead9e3252da922b061118f63cb87 | manage/run-dev.sh | manage/run-dev.sh |
set -eu # Exit on error and undefined var is error
MANAGE="python manage.py"
# Check if settings exist
APP_SETTINGS_FILE=studlan/settings/local.py
if [[ ! -e $APP_SETTINGS_FILE ]]; then
echo "App settings not found: $APP_SETTINGS_FILE" 1>&2
exit 1
fi
# Activate venv and deactivate on exit
source .venv/bin/a... |
set -eu # Exit on error and undefined var is error
MANAGE="python manage.py"
# Check if settings exist
APP_SETTINGS_FILE=studlan/settings/local.py
if [[ ! -e $APP_SETTINGS_FILE ]]; then
echo "App settings not found: $APP_SETTINGS_FILE" 1>&2
exit 1
fi
# Activate venv and deactivate on exit
source .venv/bin/a... | Remove redundant steps from venv run script | Remove redundant steps from venv run script
| Shell | mit | dotKom/studlan,CasualGaming/studlan,dotKom/studlan,dotKom/studlan,CasualGaming/studlan,CasualGaming/studlan,dotKom/studlan,CasualGaming/studlan | shell | ## Code Before:
set -eu # Exit on error and undefined var is error
MANAGE="python manage.py"
# Check if settings exist
APP_SETTINGS_FILE=studlan/settings/local.py
if [[ ! -e $APP_SETTINGS_FILE ]]; then
echo "App settings not found: $APP_SETTINGS_FILE" 1>&2
exit 1
fi
# Activate venv and deactivate on exit
so... |
set -eu # Exit on error and undefined var is error
MANAGE="python manage.py"
# Check if settings exist
APP_SETTINGS_FILE=studlan/settings/local.py
if [[ ! -e $APP_SETTINGS_FILE ]]; then
echo "App settings not found: $APP_SETTINGS_FILE" 1>&2
exit 1
fi
# Activate venv and deactivate ... | 8 | 0.32 | 0 | 8 |
f7eca48996141c626721388389faa3ffd8f5712e | packages/ya/yarn-lock.yaml | packages/ya/yarn-lock.yaml | homepage: https://github.com/Profpatsch/yaml-lock#readme
changelog-type: ''
hash: 7f71a6d434d1955f8aca5159b9f05ceb88167d584dadfac844cd58cf43d5adea
test-bench-deps: {}
maintainer: mail@profpatsch.de
synopsis: Represent and parse yarn.lock files
changelog: ''
basic-deps:
base: ==4.*
text: -any
megaparsec: ==5.*
p... | homepage: https://github.com/Profpatsch/yarn-lock#readme
changelog-type: markdown
hash: 7fd55295a10edcce93f8c5c6f65622e1eef726032bc25271dfd32b80597cc1c7
test-bench-deps:
ansi-wl-pprint: ! '>=0.6'
tasty-th: ! '>=0.1.7'
base: ==4.*
text: -any
megaparsec: ==5.*
protolude: ! '>=0.1'
containers: -any
yarn-lo... | Update from Hackage at 2017-05-21T21:15:17Z | Update from Hackage at 2017-05-21T21:15:17Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/Profpatsch/yaml-lock#readme
changelog-type: ''
hash: 7f71a6d434d1955f8aca5159b9f05ceb88167d584dadfac844cd58cf43d5adea
test-bench-deps: {}
maintainer: mail@profpatsch.de
synopsis: Represent and parse yarn.lock files
changelog: ''
basic-deps:
base: ==4.*
text: -any
megap... | - homepage: https://github.com/Profpatsch/yaml-lock#readme
? ^^
+ homepage: https://github.com/Profpatsch/yarn-lock#readme
? ^^
- changelog-type: ''
? ^^
+ changelog-type: markdown
? ^^^^^^^^
- hash: ... | 63 | 3.15 | 57 | 6 |
02510fc815c1e60b057ff806e1f0898b3e09b532 | expandablerecyclerview/src/test/java/com/bignerdranch/expandablerecyclerview/TestUtils.java | expandablerecyclerview/src/test/java/com/bignerdranch/expandablerecyclerview/TestUtils.java | package com.bignerdranch.expandablerecyclerview;
import android.database.Observable;
import android.support.v7.widget.RecyclerView;
import java.lang.reflect.Field;
import java.util.ArrayList;
import static org.mockito.Mockito.mock;
public final class TestUtils {
private TestUtils() {}
/**
* Fixes int... | package com.bignerdranch.expandablerecyclerview;
import android.database.Observable;
import android.support.v7.widget.RecyclerView;
import java.lang.reflect.Field;
import java.util.ArrayList;
import static org.mockito.Mockito.mock;
public final class TestUtils {
private TestUtils() {}
/**
* Fixes int... | Update documentation of testutils method | Update documentation of testutils method
| Java | mit | bignerdranch/expandable-recycler-view,bignerdranch/expandable-recycler-view,Reline/realm-expandable-recycler-view | java | ## Code Before:
package com.bignerdranch.expandablerecyclerview;
import android.database.Observable;
import android.support.v7.widget.RecyclerView;
import java.lang.reflect.Field;
import java.util.ArrayList;
import static org.mockito.Mockito.mock;
public final class TestUtils {
private TestUtils() {}
/**
... | package com.bignerdranch.expandablerecyclerview;
import android.database.Observable;
import android.support.v7.widget.RecyclerView;
import java.lang.reflect.Field;
import java.util.ArrayList;
import static org.mockito.Mockito.mock;
public final class TestUtils {
private TestUtils() {}... | 6 | 0.1875 | 4 | 2 |
1e010e940390ae5b650224363e4acecd816b2611 | settings_dev.py | settings_dev.py | import sublime_plugin
from .sublime_lib.path import root_at_packages, get_package_name
PLUGIN_NAME = get_package_name()
SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage"
% PLUGIN_NAME)
TPL = "{\n\t$0\n}"
class NewSettingsCommand(sublime_plugin.WindowComm... | import sublime_plugin
from .sublime_lib.path import root_at_packages, get_package_name
PLUGIN_NAME = get_package_name()
SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax"
% PLUGIN_NAME)
TPL = '''\
{
"$1": $0
}'''.replace(" " * 4, "\t")
class ... | Update syntax path for new settings file command | Update syntax path for new settings file command
| Python | mit | SublimeText/AAAPackageDev,SublimeText/AAAPackageDev,SublimeText/PackageDev | python | ## Code Before:
import sublime_plugin
from .sublime_lib.path import root_at_packages, get_package_name
PLUGIN_NAME = get_package_name()
SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage"
% PLUGIN_NAME)
TPL = "{\n\t$0\n}"
class NewSettingsCommand(sublime_p... | import sublime_plugin
from .sublime_lib.path import root_at_packages, get_package_name
PLUGIN_NAME = get_package_name()
- SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage"
? -- ^^^^... | 7 | 0.388889 | 5 | 2 |
e592e16682dcc10c4b4f5ba42d4cebc6fa60b2f3 | .travis.yml | .travis.yml | os: osx
osx_image: xcode9.2
env:
global:
- COLUMNS=240
- HOMEBREW_OPTFLAGS="-march=corei7"
before_install:
- brew cleanup
- brew uninstall boost carthage cgal dirmngr gdal gnupg go gpg-agent libassuan libgcrypt libgeotiff libgpg-error liblwgeom libspatialite maven mercurial pinentry postgis postgresql pyt... | os: osx
osx_image: xcode9.2
env:
global:
- COLUMNS=240
- HOMEBREW_OPTFLAGS="-march=corei7"
before_install:
- brew cleanup
- brew uninstall boost carthage cgal dirmngr gdal go libgeotiff liblwgeom libspatialite maven mercurial postgis postgresql python sfcgal swiftlint
- brew update
- brew upgrade
- ... | Remove unused formulae to speed upgrade | Remove unused formulae to speed upgrade
| YAML | apache-2.0 | lovell/package-libvips-darwin,lovell/package-libvips-darwin | yaml | ## Code Before:
os: osx
osx_image: xcode9.2
env:
global:
- COLUMNS=240
- HOMEBREW_OPTFLAGS="-march=corei7"
before_install:
- brew cleanup
- brew uninstall boost carthage cgal dirmngr gdal gnupg go gpg-agent libassuan libgcrypt libgeotiff libgpg-error liblwgeom libspatialite maven mercurial pinentry postgi... | os: osx
osx_image: xcode9.2
env:
global:
- COLUMNS=240
- HOMEBREW_OPTFLAGS="-march=corei7"
before_install:
- brew cleanup
- - brew uninstall boost carthage cgal dirmngr gdal gnupg go gpg-agent libassuan libgcrypt libgeotiff libgpg-error liblwgeom libspatialite maven mercurial pinentry post... | 2 | 0.095238 | 1 | 1 |
377ed379383de3e4b6ddda8e45427b178b04422d | config/dev.bs.config.json | config/dev.bs.config.json | {
"server": {
"baseDir": "./src",
"routes": {
"/": "./"
}
}
}
| {
"files": [ "./**/*.{html,htm,css,js,ts}"],
"server": {
"baseDir": "./src",
"routes": {
"/": "./"
}
}
}
| Add in the right files, including ts | Add in the right files, including ts
| JSON | agpl-3.0 | PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org,PRX/publish.prx.org | json | ## Code Before:
{
"server": {
"baseDir": "./src",
"routes": {
"/": "./"
}
}
}
## Instruction:
Add in the right files, including ts
## Code After:
{
"files": [ "./**/*.{html,htm,css,js,ts}"],
"server": {
"baseDir": "./src",
"routes": {
"/": "./"
}
}
}
| {
+ "files": [ "./**/*.{html,htm,css,js,ts}"],
"server": {
"baseDir": "./src",
"routes": {
"/": "./"
}
}
} | 1 | 0.125 | 1 | 0 |
357f457ec038ae6d37ea8faf257ba8aeb27437ef | content/docs/ui/account-and-settings/custom-ssl-configurations.md | content/docs/ui/account-and-settings/custom-ssl-configurations.md | ---
seo:
title: Adding a Custom SSL configuration
title: Adding a Custom SSL configuration
layout: page
weight: 0
group: account-management
navigation:
show: true
---
If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, then you can setup custom SSL configura... | ---
seo:
title: Adding a Custom SSL configuration
title: Adding a Custom SSL configuration
layout: page
weight: 0
group: account-management
navigation:
show: true
---
If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, you can set up a custom SSL configurati... | Add https to custom ssl config | Add https to custom ssl config
| Markdown | mit | Whatthefoxsays/docs,sendgrid/docs,Whatthefoxsays/docs,Whatthefoxsays/docs,sendgrid/docs,sendgrid/docs | markdown | ## Code Before:
---
seo:
title: Adding a Custom SSL configuration
title: Adding a Custom SSL configuration
layout: page
weight: 0
group: account-management
navigation:
show: true
---
If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, then you can setup cust... | ---
seo:
title: Adding a Custom SSL configuration
title: Adding a Custom SSL configuration
layout: page
weight: 0
group: account-management
navigation:
show: true
---
- If you can't or don't want to use Content Delivery Networks when setting up SSL for click and open tracking, then you can se... | 12 | 0.413793 | 6 | 6 |
9ecedf481a813fe928556f021bac5b6751385dfd | src/main/java/net/rithms/riot/constant/GameMode.java | src/main/java/net/rithms/riot/constant/GameMode.java | /*
* Copyright 2014 Taylor Caldwell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
* Copyright 2014 Taylor Caldwell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Add Nexus Siege game mode | Add Nexus Siege game mode | Java | apache-2.0 | taycaldwell/riot-api-java,rithms/riot-api-java | java | ## Code Before:
/*
* Copyright 2014 Taylor Caldwell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2014 Taylor Caldwell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | 0.023256 | 1 | 0 |
d21233c0f8763a3008f24c431d9710412a476624 | .travis.yml | .travis.yml | dist: trusty
language: php
dist: trusty
php:
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- '7.0'
before_install:
- composer update
script:
- composer validate
- vendor/bin/phpunit --version
- vendor/bin/phpunit --configuration tests/phpunit.xml
notifications:
email:
recipients:
- will.knauss@gmail... | dist: trusty
language: php
dist: trusty
php:
- '7.4'
- '7.3'
- '7.2'
- '7.1'
before_install:
- composer update
script:
- composer validate
- vendor/bin/phpunit --version
- vendor/bin/phpunit --configuration tests/phpunit.xml
notifications:
email:
recipients:
- will.knauss@gmail.com
o... | Remove Travis tests for PHP 7.0 | Remove Travis tests for PHP 7.0
It said:
> TypeError: Return value of ParseCsv\tests\properties\BaseClass::setUp() must be an instance of void, none returned
| YAML | mit | parsecsv/parsecsv-for-php | yaml | ## Code Before:
dist: trusty
language: php
dist: trusty
php:
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- '7.0'
before_install:
- composer update
script:
- composer validate
- vendor/bin/phpunit --version
- vendor/bin/phpunit --configuration tests/phpunit.xml
notifications:
email:
recipients:
- w... | dist: trusty
language: php
dist: trusty
php:
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- - '7.0'
before_install:
- composer update
script:
- composer validate
- vendor/bin/phpunit --version
- vendor/bin/phpunit --configuration tests/phpunit.xml
notifications:
email:... | 1 | 0.04 | 0 | 1 |
f500e48e2cf4dd4065082eea5865bcaa77a8d904 | spring-boot-cli/src/main/homebrew/springboot.rb | spring-boot-cli/src/main/homebrew/springboot.rb | require 'formula'
class Springboot < Formula
homepage 'http://projects.spring.io/spring-boot/'
url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz'
version '${version}'
sha1 '${checksum}'
def install
bin.install 'bin/spring'
lib.instal... | require 'formula'
class Springboot < Formula
homepage 'http://projects.spring.io/spring-boot/'
url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz'
version '${project.version}'
sha1 '${checksum}'
def install
bin.install '... | Fix version replacement in homebrew generation | Fix version replacement in homebrew generation
| Ruby | apache-2.0 | eliudiaz/spring-boot,joshiste/spring-boot,chrylis/spring-boot,fireshort/spring-boot,na-na/spring-boot,qerub/spring-boot,prasenjit-net/spring-boot,ojacquemart/spring-boot,yhj630520/spring-boot,RishikeshDarandale/spring-boot,mouadtk/spring-boot,AngusZhu/spring-boot,satheeshmb/spring-boot,linead/spring-boot,dnsw83/spring-... | ruby | ## Code Before:
require 'formula'
class Springboot < Formula
homepage 'http://projects.spring.io/spring-boot/'
url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz'
version '${version}'
sha1 '${checksum}'
def install
bin.install 'bin/spri... | require 'formula'
class Springboot < Formula
homepage 'http://projects.spring.io/spring-boot/'
- url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.tar.gz'
+ url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${pro... | 6 | 0.4 | 3 | 3 |
65a9eaacca3ab6293cb1b2a0abc0166c86ea3ab5 | app/views/rooms/show.html.erb | app/views/rooms/show.html.erb | <script>
vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>');
</script>
<input type="hidden" id="room-session" value="<%= @room_session %>">
<div id="chat-widget">
<div id="panel">
<button>Instructions</button>
<button>D... | <script>
vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>');
</script>
<input type="hidden" id="room-session" value="<%= @room_session %>">
<div id="chat-widget">
<div id="panel">
<button id="instructions">Instructions</but... | Add game instructions modal dialog with placeholder text. | Add game instructions modal dialog with placeholder text.
| HTML+ERB | mit | red-spotted-newts-2014/haunted,red-spotted-newts-2014/haunted | html+erb | ## Code Before:
<script>
vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>');
</script>
<input type="hidden" id="room-session" value="<%= @room_session %>">
<div id="chat-widget">
<div id="panel">
<button>Instructions</butto... | <script>
vex.dialog.alert('Send your friend this url to play!<br><input id="game-url" type="text" placeholder="<%=request.original_url%>"></input>');
</script>
<input type="hidden" id="room-session" value="<%= @room_session %>">
<div id="chat-widget">
<div id="panel">
- <button>Instructions</but... | 11 | 0.611111 | 9 | 2 |
8f23a8037112efb40a34dfc0d1ad02fd7fb0959e | contributors.txt | contributors.txt | Lydia Duncan
Simon Andreas Frimann Lund (original developer)
Elliot Ronaghan
Thomas Van Doren
Russel Winder
| Paul Cassella
Lydia Duncan
Michael Ferguson
Simon Andreas Frimann Lund (original developer)
Elliot Ronaghan
Thomas Van Doren
Russel Winder
| Add Paul and Michael to the contributor's list | Add Paul and Michael to the contributor's list
| Text | apache-2.0 | chapel-lang/pychapel,russel/pychapel,chapel-lang/pychapel,russel/pychapel,chapel-lang/pychapel,russel/pychapel | text | ## Code Before:
Lydia Duncan
Simon Andreas Frimann Lund (original developer)
Elliot Ronaghan
Thomas Van Doren
Russel Winder
## Instruction:
Add Paul and Michael to the contributor's list
## Code After:
Paul Cassella
Lydia Duncan
Michael Ferguson
Simon Andreas Frimann Lund (original developer)
Elliot Ronaghan
Thomas V... | + Paul Cassella
Lydia Duncan
+ Michael Ferguson
Simon Andreas Frimann Lund (original developer)
Elliot Ronaghan
Thomas Van Doren
Russel Winder | 2 | 0.4 | 2 | 0 |
38902fcc3c4e1dee3afbab26922ab7d204c75db3 | _config.yml | _config.yml | markdown: redcarpet
highlighter: pygments
# Permalinks
permalink: pretty
#relative_permalinks: true
# Setup
title: Eyebolt
tagline: 'A Jekyll theme'
description: 'Custom Software Solutions'
url: http://www.eyebolt.com
baseurl: /
#baseurl: ... | markdown: kramdown
highlighter: rouge
# Permalinks
permalink: pretty
#relative_permalinks: true
# Setup
title: Eyebolt
tagline: 'A Jekyll theme'
description: 'Custom Software Solutions'
url: http://www.eyebolt.com
baseurl: /
#baseurl: ""
... | Switch to valid markdown, highlight. | Switch to valid markdown, highlight.
| YAML | apache-2.0 | Eyebolt/eyebolt.github.io,Eyebolt/eyebolt.github.io | yaml | ## Code Before:
markdown: redcarpet
highlighter: pygments
# Permalinks
permalink: pretty
#relative_permalinks: true
# Setup
title: Eyebolt
tagline: 'A Jekyll theme'
description: 'Custom Software Solutions'
url: http://www.eyebolt.com
baseurl: /
#baseu... | - markdown: redcarpet
? ^ ^^^^^^
+ markdown: kramdown
? + ^^ ^^^
- highlighter: pygments
? ^^ - ---
+ highlighter: rouge
? ^^^
# Permalinks
permalink: pretty
#relative_permalinks: true
# Setup
t... | 4 | 0.105263 | 2 | 2 |
2f9b997f7138be1f6ab4243210ee039239e8bea6 | karma.conf.js | karma.conf.js | /*eslint-env node */
/*eslint no-var: 0 */
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai-sinon'],
reporters: ['mocha', 'coverage'],
coverageReporter: {
reporters: [
{
type: 'text-summary'
},
{
type: 'html',
dir: 'coverage'
}
]
},
browsers... | /*eslint-env node */
/*eslint no-var: 0 */
var coverage = String(process.env.COVERAGE)!=='false';
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai-sinon'],
reporters: ['mocha'].concat(coverage ? 'coverage' : []),
coverageReporter: {
reporters: [
{
type: 'text-summary'
... | Allow turning off coverage reporting for performance tests | Allow turning off coverage reporting for performance tests
| JavaScript | mit | neeharv/preact,developit/preact,neeharv/preact,developit/preact,gogoyqj/preact | javascript | ## Code Before:
/*eslint-env node */
/*eslint no-var: 0 */
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai-sinon'],
reporters: ['mocha', 'coverage'],
coverageReporter: {
reporters: [
{
type: 'text-summary'
},
{
type: 'html',
dir: 'coverage'
}
]
... | /*eslint-env node */
/*eslint no-var: 0 */
+
+ var coverage = String(process.env.COVERAGE)!=='false';
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai-sinon'],
- reporters: ['mocha', 'coverage'],
+ reporters: ['mocha'].concat(coverage ? 'coverage' : []),
+
covera... | 17 | 0.257576 | 9 | 8 |
7f6f8eb2ea043f957a3ebd101e5b2ccf0f78c918 | app/models/api/v3/topology_presenter.rb | app/models/api/v3/topology_presenter.rb | module Api
module V3
class TopologyPresenter
def initialize(scenario)
@scenario = scenario
@gql = @scenario.gql(prepare: true)
@converters = @gql.present_graph.converters
end
# Creates a Hash suitable for conversion to JSON by Rails.
#
# @return [Hash{Symbol... | module Api
module V3
class TopologyPresenter
def initialize(scenario)
@scenario = scenario
@gql = @scenario.gql(prepare: true)
@converters = @gql.present_graph.converters
end
# Creates a Hash suitable for conversion to JSON by Rails.
#
# @return [Hash{Symbol... | Fix reference to converter positions file | Fix reference to converter positions file
| Ruby | mit | quintel/etengine,quintel/etengine,quintel/etengine,quintel/etengine | ruby | ## Code Before:
module Api
module V3
class TopologyPresenter
def initialize(scenario)
@scenario = scenario
@gql = @scenario.gql(prepare: true)
@converters = @gql.present_graph.converters
end
# Creates a Hash suitable for conversion to JSON by Rails.
#
# @ret... | module Api
module V3
class TopologyPresenter
def initialize(scenario)
@scenario = scenario
@gql = @scenario.gql(prepare: true)
@converters = @gql.present_graph.converters
end
# Creates a Hash suitable for conversion to JSON by Rails.
#
... | 3 | 0.04918 | 1 | 2 |
c501bba28d4a77ba03f6f1277be13913307f04e1 | clowder/utility/print_utilities.py | clowder/utility/print_utilities.py | """Print utilities"""
import os
import emoji
from termcolor import colored
from clowder.utility.git_utilities import (
git_current_sha,
git_current_branch,
git_is_detached,
git_is_dirty
)
def print_project_status(root_directory, path, name):
"""Print repo status"""
repo_path = os.path.join(root... | """Print utilities"""
import os
import emoji
from termcolor import colored, cprint
from clowder.utility.git_utilities import (
git_current_sha,
git_current_branch,
git_is_detached,
git_is_dirty
)
def print_project_status(root_directory, path, name):
"""Print repo status"""
repo_path = os.path.j... | Print project name even if it doesn't exist on disk | Print project name even if it doesn't exist on disk
| Python | mit | JrGoodle/clowder,JrGoodle/clowder,JrGoodle/clowder | python | ## Code Before:
"""Print utilities"""
import os
import emoji
from termcolor import colored
from clowder.utility.git_utilities import (
git_current_sha,
git_current_branch,
git_is_detached,
git_is_dirty
)
def print_project_status(root_directory, path, name):
"""Print repo status"""
repo_path = o... | """Print utilities"""
import os
import emoji
- from termcolor import colored
+ from termcolor import colored, cprint
? ++++++++
from clowder.utility.git_utilities import (
git_current_sha,
git_current_branch,
git_is_detached,
git_is_dirty
)
def print_... | 3 | 0.068182 | 2 | 1 |
a94aa2d9aa58a7c2df289588eb4f16d83725ce8f | numba/exttypes/tests/test_vtables.py | numba/exttypes/tests/test_vtables.py | __author__ = 'mark'
| from __future__ import print_function, division, absolute_import
import numba as nb
from numba import *
from numba.minivect.minitypes import FunctionType
from numba.exttypes import virtual
from numba.exttypes import ordering
from numba.exttypes import methodtable
from numba.exttypes.signatures import Method
from numba... | Add test for hash-based vtable creation | Add test for hash-based vtable creation
| Python | bsd-2-clause | cpcloud/numba,ssarangi/numba,jriehl/numba,stuartarchibald/numba,pombredanne/numba,stefanseefeld/numba,stuartarchibald/numba,pitrou/numba,seibert/numba,cpcloud/numba,ssarangi/numba,IntelLabs/numba,IntelLabs/numba,sklam/numba,cpcloud/numba,seibert/numba,GaZ3ll3/numba,stonebig/numba,GaZ3ll3/numba,stonebig/numba,cpcloud/nu... | python | ## Code Before:
__author__ = 'mark'
## Instruction:
Add test for hash-based vtable creation
## Code After:
from __future__ import print_function, division, absolute_import
import numba as nb
from numba import *
from numba.minivect.minitypes import FunctionType
from numba.exttypes import virtual
from numba.exttypes i... | - __author__ = 'mark'
+ from __future__ import print_function, division, absolute_import
+
+ import numba as nb
+ from numba import *
+ from numba.minivect.minitypes import FunctionType
+ from numba.exttypes import virtual
+ from numba.exttypes import ordering
+ from numba.exttypes import methodtable
+ from numba.extt... | 78 | 78 | 77 | 1 |
e4bc111b41a2e4dac5065a4a55ff0d9b8b9d4a42 | Plugin/CppApi/ArcGISRuntimeToolkit.pri | Plugin/CppApi/ArcGISRuntimeToolkit.pri |
INCLUDEPATH += $PWD/include
QMAKE_LFLAGS += -L$PWD/output -lArcGISRuntimeToolkitCppApi
|
macx: PLATFORM = "macOS"
unix:!macx:!android:!ios: PLATFORM = "linux"
win32: PLATFORM = "windows"
ios: PLATFORM = "iOS"
android: {
PLATFORM = "android"
contains(QT_ARCH, i386) {
ANDROID_ARCH = "x86"
} else {
ANDROID_ARCH = "armv7"
}
}
INCLUDEPATH += $PWD/include
equals(ANDROID_ARCH, "") {
PLATFORM_... | Update where the libs will be included from with a local build. | Update where the libs will be included from with a local build.
| QMake | apache-2.0 | Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt,Esri/arcgis-runtime-toolkit-qt | qmake | ## Code Before:
INCLUDEPATH += $PWD/include
QMAKE_LFLAGS += -L$PWD/output -lArcGISRuntimeToolkitCppApi
## Instruction:
Update where the libs will be included from with a local build.
## Code After:
macx: PLATFORM = "macOS"
unix:!macx:!android:!ios: PLATFORM = "linux"
win32: PLATFORM = "windows"
ios: PLATFORM = "iOS... | +
+ macx: PLATFORM = "macOS"
+ unix:!macx:!android:!ios: PLATFORM = "linux"
+ win32: PLATFORM = "windows"
+ ios: PLATFORM = "iOS"
+ android: {
+ PLATFORM = "android"
+ contains(QT_ARCH, i386) {
+ ANDROID_ARCH = "x86"
+ } else {
+ ANDROID_ARCH = "armv7"
+ }
+ }
INCLUDEPATH += $PWD/include
+
+ equa... | 22 | 7.333333 | 21 | 1 |
65a77c4631e13b693870ea21cd19778abbe57b6e | examples/app/simple/app/view/summit/Grid.js | examples/app/simple/app/view/summit/Grid.js | /**
* The grid in which summits are displayed
* @extends Ext.grid.Panel
*/
Ext.define('GX.view.summit.Grid' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.summitgrid',
requires: [
'GeoExt.selection.FeatureModel',
'GeoExt.grid.column.Symbolizer',
'Ext.grid.plugin.CellEditing',
... | /**
* The grid in which summits are displayed
* @extends Ext.grid.Panel
*/
Ext.define('GX.view.summit.Grid' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.summitgrid',
requires: [
'GeoExt.selection.FeatureModel',
'GeoExt.grid.column.Symbolizer',
'Ext.grid.plugin.CellEditing',
... | Revert "Added autoPanMapOnSelection to recenter the map by clicking a feature within the grid" | Revert "Added autoPanMapOnSelection to recenter the map by clicking a feature within the grid"
This reverts commit c5270d13ab270e97610fe9c3c87573177f0261a1.
| JavaScript | bsd-3-clause | annarieger/geoext2,Sundsvallskommun/geoext2,geoext/geoext2,chrismayer/geoext2,marcjansen/geoext2,bentrm/geoext2,marcjansen/geoext2,chrismayer/geoext2,geographika/geoext2,m-click/geoext2,geoext/geoext2,bentrm/geoext2,m-click/geoext2,Sundsvallskommun/geoext2,geographika/geoext2,annarieger/geoext2,Sundsvallskommun/geoext2 | javascript | ## Code Before:
/**
* The grid in which summits are displayed
* @extends Ext.grid.Panel
*/
Ext.define('GX.view.summit.Grid' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.summitgrid',
requires: [
'GeoExt.selection.FeatureModel',
'GeoExt.grid.column.Symbolizer',
'Ext.grid.plugin.Cell... | /**
* The grid in which summits are displayed
* @extends Ext.grid.Panel
*/
Ext.define('GX.view.summit.Grid' ,{
extend: 'Ext.grid.Panel',
alias : 'widget.summitgrid',
requires: [
'GeoExt.selection.FeatureModel',
'GeoExt.grid.column.Symbolizer',
'Ext.grid.plugi... | 1 | 0.02381 | 0 | 1 |
29b87f95404cc72b383e8e038cd7c2ff7717bd34 | jpa/eclipselink.jpa.test/resource/eclipselink-extensibility-model/persistence.xml | jpa/eclipselink.jpa.test/resource/eclipselink-extensibility-model/persistence.xml | <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
<persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL">
<provider>
... | <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
<persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL">
<provider>
... | Update to testing xml file due to conflict with other check-in | Update to testing xml file due to conflict with other check-in
| XML | epl-1.0 | gameduell/eclipselink.runtime,gameduell/eclipselink.runtime,gameduell/eclipselink.runtime,gameduell/eclipselink.runtime | xml | ## Code Before:
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
<persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL">
<provider... | <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
<persistence-unit name="extensibility" transaction-type="RESOURCE_LOCAL">
<provider>
... | 4 | 0.307692 | 2 | 2 |
5040d84e82e5c00a1a329845f6db9c83d3010e2a | conda.recipe/meta.yaml | conda.recipe/meta.yaml | package:
name: flask-ldap-login
version: !!str 0.2.0
build:
entry_points:
- flask-ldap-login-check = flask_ldap_login.check:main
requirements:
build:
- python
- setuptools
run:
- python
- python-ldap
- flask
- flask-wtf
test:
imports:
- examples
- flask_ldap_login
... | package:
name: flask-ldap-login
version: !!str 0.3.0
build:
entry_points:
- flask-ldap-login-check = flask_ldap_login.check:main
requirements:
build:
- python
- setuptools
- python-ldap
- flask
- flask-wtf
run:
- python
- python-ldap
- flask
- flask-wtf
test:
impo... | Fix dependencies and bump version number | Fix dependencies and bump version number
| YAML | bsd-2-clause | ContinuumIO/flask-ldap-login,ContinuumIO/flask-ldap-login | yaml | ## Code Before:
package:
name: flask-ldap-login
version: !!str 0.2.0
build:
entry_points:
- flask-ldap-login-check = flask_ldap_login.check:main
requirements:
build:
- python
- setuptools
run:
- python
- python-ldap
- flask
- flask-wtf
test:
imports:
- examples
- flas... | package:
name: flask-ldap-login
- version: !!str 0.2.0
? ^
+ version: !!str 0.3.0
? ^
build:
entry_points:
- flask-ldap-login-check = flask_ldap_login.check:main
requirements:
build:
- python
- setuptools
+ - python-ldap
+ - f... | 5 | 0.16129 | 4 | 1 |
f00a3026f43a9dee33bbb6de3080cc36e5c4a759 | scripts/cleanup.sh | scripts/cleanup.sh | /usr/bin/yes | /usr/bin/pacman -Scc
# Write zeros to improve virtual disk compaction.
zerofile=$(/usr/bin/mktemp /zerofile.XXXXX)
/usr/bin/dd if=/dev/zero of="$zerofile" bs=1M
/usr/bin/rm -f "$zerofile"
/usr/bin/sync
| /usr/bin/yes | /usr/bin/pacman -Scc
/usr/bin/pacman-optimize
# Write zeros to improve virtual disk compaction.
zerofile=$(/usr/bin/mktemp /zerofile.XXXXX)
/usr/bin/dd if=/dev/zero of="$zerofile" bs=1M
/usr/bin/rm -f "$zerofile"
/usr/bin/sync
| Optimize the pacman database before zeroing the drive | Optimize the pacman database before zeroing the drive
| Shell | isc | agt-the-walker/packer-arch,aidanharris/packer-arch,slash170/packer-arch,elasticdog/packer-arch,tomaspapan/packer-arch,cosmo0920/packer-arch,tomswartz07/packer-arch,appleby/Lisp-In-Small-Pieces-VM | shell | ## Code Before:
/usr/bin/yes | /usr/bin/pacman -Scc
# Write zeros to improve virtual disk compaction.
zerofile=$(/usr/bin/mktemp /zerofile.XXXXX)
/usr/bin/dd if=/dev/zero of="$zerofile" bs=1M
/usr/bin/rm -f "$zerofile"
/usr/bin/sync
## Instruction:
Optimize the pacman database before zeroing the drive
## Code After:... | /usr/bin/yes | /usr/bin/pacman -Scc
+ /usr/bin/pacman-optimize
# Write zeros to improve virtual disk compaction.
zerofile=$(/usr/bin/mktemp /zerofile.XXXXX)
/usr/bin/dd if=/dev/zero of="$zerofile" bs=1M
/usr/bin/rm -f "$zerofile"
/usr/bin/sync | 1 | 0.142857 | 1 | 0 |
569bc80a3fb0c9a1caa0265097bbf93213436937 | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
working_directory: /go/src/github.com/oinume/algo
docker:
- image: golang:1.10-stretch
environment:
steps:
- checkout
- run:
name: "Set .gitconfig"
command: |
echo "" > ~/.gitconfig
git config --global url."https... | version: 2
jobs:
build:
working_directory: /go/src/github.com/oinume/algo
docker:
- image: golang:1.10-stretch
environment:
steps:
- checkout
- run:
name: "Set .gitconfig"
command: |
echo "" > ~/.gitconfig
git config --global url."https... | Enable code coverage with codecov | Enable code coverage with codecov
| YAML | mit | oinume/algo,oinume/algo | yaml | ## Code Before:
version: 2
jobs:
build:
working_directory: /go/src/github.com/oinume/algo
docker:
- image: golang:1.10-stretch
environment:
steps:
- checkout
- run:
name: "Set .gitconfig"
command: |
echo "" > ~/.gitconfig
git config --g... | version: 2
jobs:
build:
working_directory: /go/src/github.com/oinume/algo
docker:
- image: golang:1.10-stretch
environment:
steps:
- checkout
- run:
name: "Set .gitconfig"
command: |
echo "" > ~/.gitconfig
gi... | 10 | 0.238095 | 5 | 5 |
1fc20cb08a7c4b7d0d218a0e82786a04bfba4662 | lib/node_modules/@stdlib/assert/is-numeric-array/docs/repl.txt | lib/node_modules/@stdlib/assert/is-numeric-array/docs/repl.txt |
{{alias}}( value )
Tests if a value is a numeric array.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating if a value is a numeric array.
Examples
--------
> var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( ... |
{{alias}}( value )
Tests if a value is a numeric array.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating if a value is a numeric array.
Examples
--------
> var bool = {{alias}}( new {{alias:@stdlib/array/int8}}( ... | Add missing "See Also" section to REPL text | Add missing "See Also" section to REPL text
| Text | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | text | ## Code Before:
{{alias}}( value )
Tests if a value is a numeric array.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating if a value is a numeric array.
Examples
--------
> var bool = {{alias}}( new {{alias:@stdli... |
{{alias}}( value )
Tests if a value is a numeric array.
Parameters
----------
value: any
Value to test.
Returns
-------
bool: boolean
Boolean indicating if a value is a numeric array.
Examples
--------
> var bool = {{alias}}( ... | 4 | 0.173913 | 4 | 0 |
ed4e6856ddbf9990769f64bbaf4d10a666671a65 | sh_common/paths.bash | sh_common/paths.bash | [[ -d /usr/local/lib/node ]] && export NODE_PATH=/usr/local/lib/node
[[ -d /usr/local/share/npm/bin ]] && export PATH=/usr/local/share/npm/bin:$PATH
# For MacTeX
[[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin
# For "home" bin
[[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH
# Load chruby or rbenv... | [[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin
# For "home" bin
[[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH
# Load chruby or rbenv or RVM
if [ -s "/usr/local/opt/chruby/share/chruby/chruby.sh" ]; then
. /usr/local/opt/chruby/share/chruby/chruby.sh
. /usr/local/opt/chruby/share/chruby/auto... | Remove long-unneeded Node env setup | shell: Remove long-unneeded Node env setup
| Shell | mit | amarshall/dotfiles,amarshall/dotfiles,amarshall/dotfiles,amarshall/dotfiles | shell | ## Code Before:
[[ -d /usr/local/lib/node ]] && export NODE_PATH=/usr/local/lib/node
[[ -d /usr/local/share/npm/bin ]] && export PATH=/usr/local/share/npm/bin:$PATH
# For MacTeX
[[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin
# For "home" bin
[[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH
# Load... | - [[ -d /usr/local/lib/node ]] && export NODE_PATH=/usr/local/lib/node
- [[ -d /usr/local/share/npm/bin ]] && export PATH=/usr/local/share/npm/bin:$PATH
-
- # For MacTeX
[[ -d /Library/TeX/texbin ]] && export PATH=$PATH:/Library/TeX/texbin
# For "home" bin
[[ -d ~/bin ]] && export PATH=$HOME/bin:$PATH
# ... | 4 | 0.121212 | 0 | 4 |
1a8a07575f4dcd90582db12ead44154116ff0353 | pages/home-page.html | pages/home-page.html | <link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/layouts/sidebar-layout.html">
<link rel="import" href="/bower_components/core-item/core-item.html">
<polymer-element name="home-page" noscript>
<template>
<style type="text/css">
</style>
<sidebar-layout selected="ho... | <link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/layouts/sidebar-layout.html">
<link rel="import" href="/bower_components/core-item/core-item.html">
<polymer-element name="home-page">
<template>
<style type="text/css">
</style>
<sidebar-layout selected="home">
... | Set timer to hide logo ater 2 sec | Set timer to hide logo ater 2 sec
| HTML | mit | harpreetkhalsagtbit/ladivaar-app,harpreetkhalsagtbit/ladivaar-app | html | ## Code Before:
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/layouts/sidebar-layout.html">
<link rel="import" href="/bower_components/core-item/core-item.html">
<polymer-element name="home-page" noscript>
<template>
<style type="text/css">
</style>
<sidebar-lay... | <link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/layouts/sidebar-layout.html">
<link rel="import" href="/bower_components/core-item/core-item.html">
- <polymer-element name="home-page" noscript>
? ---------
+ <polymer-element name="ho... | 11 | 0.578947 | 10 | 1 |
f38d3ed6daf3e0ac8d87b7bd280027dd2d2a09ef | packages/at/attoparsec-time.yaml | packages/at/attoparsec-time.yaml | homepage: https://github.com/nikita-volkov/attoparsec-time
changelog-type: ''
hash: 7254ee92d32a5e9c95ac1f570b0a2cea34003428b01b2f50f9b96dd71339355d
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: Attoparsec parsers of time
changelog: ''
basic-deps:
bytestring: ==0.10.*
base: ! '>=... | homepage: https://github.com/nikita-volkov/attoparsec-time
changelog-type: ''
hash: 4b2e24e2ecf1787561428c2ef666a7f2f3e63cd190412afc8ad96176f303ba5f
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: Attoparsec parsers of time
changelog: ''
basic-deps:
bytestring: '>=0.10 && <0.12'
ba... | Update from Hackage at 2021-06-26T09:00:12Z | Update from Hackage at 2021-06-26T09:00:12Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/nikita-volkov/attoparsec-time
changelog-type: ''
hash: 7254ee92d32a5e9c95ac1f570b0a2cea34003428b01b2f50f9b96dd71339355d
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: Attoparsec parsers of time
changelog: ''
basic-deps:
bytestring: ==0.10... | homepage: https://github.com/nikita-volkov/attoparsec-time
changelog-type: ''
- hash: 7254ee92d32a5e9c95ac1f570b0a2cea34003428b01b2f50f9b96dd71339355d
+ hash: 4b2e24e2ecf1787561428c2ef666a7f2f3e63cd190412afc8ad96176f303ba5f
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: Atto... | 16 | 0.5 | 8 | 8 |
25480921d3823ebb09f3cd8db0f147c91c571101 | README.md | README.md |
Command line based multiple instance launcher for simulators and its support
tools. Currently this is the private incubating project for the in-house
simulation infrastructure. **Don't follow, watch, and touch this project!!**
## Configuration
Check the configuration document ([link](docs/configure.md)).
|
Command line based multiple instance launcher.
## Configuration
Check the configuration document ([link](docs/configure.md)).
| Change introduction. But intro page is not yet ready completely | [fix] Change introduction. But intro page is not yet ready completely
| Markdown | mit | Sungup/Undine | markdown | ## Code Before:
Command line based multiple instance launcher for simulators and its support
tools. Currently this is the private incubating project for the in-house
simulation infrastructure. **Don't follow, watch, and touch this project!!**
## Configuration
Check the configuration document ([link](docs/configure.m... |
+ Command line based multiple instance launcher.
- Command line based multiple instance launcher for simulators and its support
- tools. Currently this is the private incubating project for the in-house
- simulation infrastructure. **Don't follow, watch, and touch this project!!**
## Configuration
Check th... | 4 | 0.5 | 1 | 3 |
3b8c35040847c9f1c3f24598855d91ed600b18a4 | Casks/dropbox-experimental.rb | Casks/dropbox-experimental.rb | class DropboxExperimental < Cask
version '2.11.13'
sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf'
url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg"
homepage 'https://www.dropbox.com/'
license :unknown
app 'Dropbox.app'
end
| class DropboxExperimental < Cask
version '2.11.31'
sha256 '70d2f24b776c330678573b5a04362c066ac3ab6e17d05ca34c21e8bccb5da898'
url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg"
homepage 'https://www.dropbox.com/'
license :unknown
app 'Dropbox.app'
end
| Upgrade Dropbox Experimental Build to v2.11.31 | Upgrade Dropbox Experimental Build to v2.11.31
| Ruby | bsd-2-clause | 1zaman/homebrew-versions,delphinus35/homebrew-versions,zerrot/homebrew-versions,yurikoles/homebrew-versions,hugoboos/homebrew-versions,zorosteven/homebrew-versions,lantrix/homebrew-versions,wickedsp1d3r/homebrew-versions,Felerius/homebrew-versions,mauricerkelly/homebrew-versions,pkq/homebrew-versions,mauricerkelly/home... | ruby | ## Code Before:
class DropboxExperimental < Cask
version '2.11.13'
sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf'
url "https://dl.dropboxusercontent.com/u/17/Dropbox%20#{version}.dmg"
homepage 'https://www.dropbox.com/'
license :unknown
app 'Dropbox.app'
end
## Instruction:
Upg... | class DropboxExperimental < Cask
- version '2.11.13'
? -
+ version '2.11.31'
? +
- sha256 '2d36acd4a53657eca20538587c72df97685de39a9b0226f18797d464a7d84bdf'
+ sha256 '70d2f24b776c330678573b5a04362c066ac3ab6e17d05ca34c21e8bccb5da898'
url "https://dl.dropboxusercontent.... | 4 | 0.4 | 2 | 2 |
2c660945f66bbe7946edf9fc08dd4a4a6691b3e4 | lib/em-kannel/test_helper.rb | lib/em-kannel/test_helper.rb | require "ostruct"
module EventMachine
class Kannel
def self.deliveries
@deliveries ||= []
end
Client.class_eval do
def fake_response
status = OpenStruct.new(status: 202)
http = OpenStruct.new(response_header: status)
Response.new(http, Time.now)
end
de... | require "ostruct"
module EventMachine
class Kannel
def self.deliveries
@deliveries ||= []
end
Client.class_eval do
def fake_response
guid = UUID.new.generate
status = OpenStruct.new(status: 202)
http = OpenStruct.new(
response_header: status,
re... | Add fake guid to test helper response | Add fake guid to test helper response
| Ruby | mit | groupme/em-kannel | ruby | ## Code Before:
require "ostruct"
module EventMachine
class Kannel
def self.deliveries
@deliveries ||= []
end
Client.class_eval do
def fake_response
status = OpenStruct.new(status: 202)
http = OpenStruct.new(response_header: status)
Response.new(http, Time.now)
... | require "ostruct"
module EventMachine
class Kannel
def self.deliveries
@deliveries ||= []
end
Client.class_eval do
def fake_response
+ guid = UUID.new.generate
+
status = OpenStruct.new(status: 202)
- http = OpenStruct.new(response_header: sta... | 7 | 0.304348 | 6 | 1 |
e23f6ad7d19ac10ffaa83a0d8985bd6e80d0f3d3 | docs/contacts.rst | docs/contacts.rst | .. Copyright (c) 2016, Ruslan Baratov
.. All rights reserved.
Contacts
--------
Public
======
Feel free to open new `issue`_ if you want to ask any questions.
Public chat room: |gitter|
Private
=======
You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_:
* ``7EBD836B7690C3742E6F3632742BEB... | .. Copyright (c) 2016, Ruslan Baratov
.. All rights reserved.
Contacts
--------
Public
======
Feel free to open new `issue`_ if you want to ask any questions.
Public chat room: `gitter`_
Private
=======
You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_:
* ``7EBD836B7690C3742E6F3632742BE... | Fix docs generation on Travis CI | Fix docs generation on Travis CI
| reStructuredText | bsd-2-clause | dmpriso/hunter,dan-42/hunter,ikliashchou/hunter,zhuhaow/hunter,fwinnen/hunter,dmpriso/hunter,RomanYudintsev/hunter,designerror/hunter,madmongo1/hunter,dan-42/hunter,tatraian/hunter,designerror/hunter,vdsrd/hunter,dvirtz/hunter,ingenue/hunter,dvirtz/hunter,ruslo/hunter,NeroBurner/hunter,xsacha/hunter,akalsi87/hunter,mad... | restructuredtext | ## Code Before:
.. Copyright (c) 2016, Ruslan Baratov
.. All rights reserved.
Contacts
--------
Public
======
Feel free to open new `issue`_ if you want to ask any questions.
Public chat room: |gitter|
Private
=======
You can write me to ``ruslan_baratov@yahoo.com`` or contact me using `Tox`_:
* ``7EBD836B7690C3... | .. Copyright (c) 2016, Ruslan Baratov
.. All rights reserved.
Contacts
--------
Public
======
Feel free to open new `issue`_ if you want to ask any questions.
- Public chat room: |gitter|
? ^ ^
+ Public chat room: `gitter`_
? ^ ^^
Private
... | 9 | 0.346154 | 6 | 3 |
27f47ef27654dfa9c68bb90d3b8fae2e3a281396 | pitchfork/__init__.py | pitchfork/__init__.py |
from flask import Flask, g
from happymongo import HapPyMongo
from config import config
from adminbp import bp as admin_bp
from manage_globals import bp as manage_bp
from engine import bp as engine_bp
from inspect import getmembers, isfunction
import context_functions
import views
import template_filters
app = Flas... |
import setup_application
app, db = setup_application.create_app()
| Move out app setup to setup file to finish cleaning up the init file | Move out app setup to setup file to finish cleaning up the init file
| Python | apache-2.0 | rackerlabs/pitchfork,oldarmyc/pitchfork,oldarmyc/pitchfork,rackerlabs/pitchfork,rackerlabs/pitchfork,oldarmyc/pitchfork | python | ## Code Before:
from flask import Flask, g
from happymongo import HapPyMongo
from config import config
from adminbp import bp as admin_bp
from manage_globals import bp as manage_bp
from engine import bp as engine_bp
from inspect import getmembers, isfunction
import context_functions
import views
import template_filt... |
+ import setup_application
- from flask import Flask, g
- from happymongo import HapPyMongo
- from config import config
- from adminbp import bp as admin_bp
- from manage_globals import bp as manage_bp
- from engine import bp as engine_bp
- from inspect import getmembers, isfunction
+ app, db = setup_applicati... | 36 | 0.972973 | 2 | 34 |
ca9a05b02fb8e9dbba27c6b3721636b3065837e2 | app/jobs/admin_activity_notify_job.rb | app/jobs/admin_activity_notify_job.rb | class AdminActivityNotifyJob < ApplicationJob
CHANNEL = if Rails.env.production?
'#admin-activities'.freeze
else
'#sandbox'.freeze
end
queue_as :default
def perform(user, text)
Slack::Web::Client.new.chat_postMessage(
channel: CHANNEL,
text: te... | class AdminActivityNotifyJob < ApplicationJob
CHANNEL = if Rails.env.production?
'#notif-admin'.freeze
else
'#sandbox'.freeze
end
queue_as :default
def perform(user, text)
Slack::Web::Client.new.chat_postMessage(
channel: CHANNEL,
text: text,
... | Change channel name in AdminActivityNotifyJob | Change channel name in AdminActivityNotifyJob
| Ruby | mit | sankichi92/LiveLog,sankichi92/LiveLog,sankichi92/LiveLog,sankichi92/LiveLog | ruby | ## Code Before:
class AdminActivityNotifyJob < ApplicationJob
CHANNEL = if Rails.env.production?
'#admin-activities'.freeze
else
'#sandbox'.freeze
end
queue_as :default
def perform(user, text)
Slack::Web::Client.new.chat_postMessage(
channel: CHANNEL... | class AdminActivityNotifyJob < ApplicationJob
CHANNEL = if Rails.env.production?
- '#admin-activities'.freeze
? -----------
+ '#notif-admin'.freeze
? ++++++
else
'#sandbox'.freeze
end
queue_as :de... | 2 | 0.117647 | 1 | 1 |
672867b109f65f57fe73f55f4a4f840b4e461544 | features/pubkeys/show.feature | features/pubkeys/show.feature | Feature: Show public keys for a user
Background:
Given I load the policy:
"""
- !user
id: alice
public_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop
"""
Scenario: After adding a key, the key is shown
When I run `conjur pubkeys show alice`
And the output should match /^ssh... | Feature: Show public keys for a user
Background:
Given I load the policy:
"""
- !user
id: alice
public_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop
"""
Scenario: After adding a key, the key is shown
When I run `conjur pubkeys show alice`
And the output should match /^ssh... | Remove a feature that tests only the appliance | Remove a feature that tests only the appliance
This feature doesn't test the CLI at all, but just the appliance.
There are similar tests elsewhere already, where they belong.
| Cucumber | mit | conjurinc/cli-ruby,conjurinc/cli-ruby | cucumber | ## Code Before:
Feature: Show public keys for a user
Background:
Given I load the policy:
"""
- !user
id: alice
public_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop
"""
Scenario: After adding a key, the key is shown
When I run `conjur pubkeys show alice`
And the output sh... | Feature: Show public keys for a user
Background:
Given I load the policy:
"""
- !user
id: alice
public_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQ laptop
"""
Scenario: After adding a key, the key is shown
When I run `conjur pubkeys show alice`
And t... | 4 | 0.222222 | 0 | 4 |
50786f25f9f7629eb24407b9061a4ebb9b57ea57 | app/views/accounts/_show.html.haml | app/views/accounts/_show.html.haml | .contextual
= icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings]
= icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings]
= icon_link_to 'all_bookings', @account if params[:only_credit_bookings] ||... | .contextual
= icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings]
= icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings]
= icon_link_to 'all_bookings', @account if params[:only_credit_bookings] ||... | Add print/pdf link for accounts view. | Add print/pdf link for accounts view.
| Haml | agpl-3.0 | gaapt/bookyt,gaapt/bookyt,hauledev/bookyt,silvermind/bookyt,hauledev/bookyt,hauledev/bookyt,huerlisi/bookyt,gaapt/bookyt,hauledev/bookyt,huerlisi/bookyt,silvermind/bookyt,wtag/bookyt,silvermind/bookyt,silvermind/bookyt,xuewenfei/bookyt,huerlisi/bookyt,xuewenfei/bookyt,xuewenfei/bookyt,wtag/bookyt,wtag/bookyt,gaapt/book... | haml | ## Code Before:
.contextual
= icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings]
= icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings]
= icon_link_to 'all_bookings', @account if params[:only_cre... | .contextual
= icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings]
= icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings]
= icon_link_to 'all_bookings', @account if params[:only_credit_book... | 1 | 0.05 | 1 | 0 |
926ee23ef946dc2eba0cae5321601c5fadad9e5e | examples/faceted_lineplot.py | examples/faceted_lineplot.py | import seaborn as sns
sns.set(style="ticks")
dots = sns.load_dataset("dots")
# Define a palette to ensure that colors will be
# shared across the facets
palette = dict(zip(dots.coherence.unique(),
sns.color_palette("rocket_r", 6)))
# Set up the FacetGrid with independent x axes
g = sns.FacetGrid(d... | import seaborn as sns
sns.set(style="ticks")
dots = sns.load_dataset("dots")
# Define a palette to ensure that colors will be
# shared across the facets
palette = dict(zip(dots.coherence.unique(),
sns.color_palette("rocket_r", 6)))
# Plot the lines on two facets
sns.relplot(x="time", y="firing_rat... | Update dots lineplot example to use relplot | Update dots lineplot example to use relplot
| Python | bsd-3-clause | sauliusl/seaborn,lukauskas/seaborn,petebachant/seaborn,phobson/seaborn,anntzer/seaborn,lukauskas/seaborn,mwaskom/seaborn,phobson/seaborn,arokem/seaborn,anntzer/seaborn,arokem/seaborn,mwaskom/seaborn | python | ## Code Before:
import seaborn as sns
sns.set(style="ticks")
dots = sns.load_dataset("dots")
# Define a palette to ensure that colors will be
# shared across the facets
palette = dict(zip(dots.coherence.unique(),
sns.color_palette("rocket_r", 6)))
# Set up the FacetGrid with independent x axes
g =... | import seaborn as sns
sns.set(style="ticks")
dots = sns.load_dataset("dots")
# Define a palette to ensure that colors will be
# shared across the facets
palette = dict(zip(dots.coherence.unique(),
sns.color_palette("rocket_r", 6)))
+ # Plot the lines on two facets
+ sns.relplot... | 16 | 0.8 | 6 | 10 |
3c26d7e13f1db906a9a4cfcaac31dc4228ef95b5 | lib/mercenary.rb | lib/mercenary.rb | lib = File.expand_path('../', __FILE__)
require "#{lib}/mercenary/version"
require "optparse"
require "logger"
module Mercenary
autoload :Command, "#{lib}/mercenary/command"
autoload :Option, "#{lib}/mercenary/option"
autoload :Presenter, "#{lib}/mercenary/presenter"
autoload :Program, "#{lib}/mercenar... | require File.expand_path("../mercenary/version", __FILE__)
require "optparse"
require "logger"
module Mercenary
autoload :Command, File.expand_path("../mercenary/command", __FILE__)
autoload :Option, File.expand_path("../mercenary/option", __FILE__)
autoload :Presenter, File.expand_path("../mercenary/presen... | Use File.expand_path to build paths. | Use File.expand_path to build paths.
| Ruby | mit | jekyll/mercenary,jekyll/mercenary | ruby | ## Code Before:
lib = File.expand_path('../', __FILE__)
require "#{lib}/mercenary/version"
require "optparse"
require "logger"
module Mercenary
autoload :Command, "#{lib}/mercenary/command"
autoload :Option, "#{lib}/mercenary/option"
autoload :Presenter, "#{lib}/mercenary/presenter"
autoload :Program, ... | + require File.expand_path("../mercenary/version", __FILE__)
- lib = File.expand_path('../', __FILE__)
-
- require "#{lib}/mercenary/version"
require "optparse"
require "logger"
module Mercenary
- autoload :Command, "#{lib}/mercenary/command"
- autoload :Option, "#{lib}/mercenary/option"
- autoload... | 12 | 0.521739 | 5 | 7 |
177c5da3cfb8a27f601ac03b6995fa93ca454306 | README.md | README.md |
[](https://travis-ci.org/CocoaPods/cocoapods-packager)
CocoaPods plugin which allows you to generate a static library from a podspec.
## Usage
```bash
$ pod package KFData
```
|
[](https://travis-ci.org/CocoaPods/cocoapods-packager)
:warning::warning: This isn't ready for consumption just yet, follow [this
issue](https://github.com/CocoaPods/cocoapods-packager/issues/1) to keep an
eye on the status. :warning... | Improve the readme to mark it isn't ready. | Improve the readme to mark it isn't ready.
Fixes https://github.com/kylef/life/issues/2
| Markdown | mit | danielribeiro/cocoapods-packager,ArthurKK/cocoapods-packager,dnkoutso/cocoapods-packager,ArthurKK/cocoapods-packager,jtreanor/cocoapods-packager,danielribeiro/cocoapods-packager,dnkoutso/cocoapods-packager,jtreanor/cocoapods-packager | markdown | ## Code Before:
[](https://travis-ci.org/CocoaPods/cocoapods-packager)
CocoaPods plugin which allows you to generate a static library from a podspec.
## Usage
```bash
$ pod package KFData
```
## Instruction:
Improve the readme to... |
[](https://travis-ci.org/CocoaPods/cocoapods-packager)
+ :warning::warning: This isn't ready for consumption just yet, follow [this
+ issue](https://github.com/CocoaPods/cocoapods-packager/issues/1) to keep an
+ eye on the stat... | 5 | 0.454545 | 5 | 0 |
b7d66827c703e2f437ddbb81f090a6c01d9349b3 | lib/file.js | lib/file.js | var path = require('path')
, fs = require('fs')
, clone = require('clone')
, data = require('./data')
, getset = require('deep-get-set')
, DeepMerge = require('deep-merge')
, merge = DeepMerge(function(a, b) {
return b
});
getset.p = true;
function File(path) {
this._path = path;
this._obj ... | var path = require('path')
, fs = require('fs')
, clone = require('clone')
, getset = require('deep-get-set')
, data = require('./data');
getset.p = true;
function File(path) {
this._path = path;
this._obj = {};
}
File.prototype.open = function() {
if (fs.existsSync(this._path)) {
var text = fs.re... | Remove unused deep-merge dependency from File. | Remove unused deep-merge dependency from File.
| JavaScript | mit | jaredhanson/node-decisions | javascript | ## Code Before:
var path = require('path')
, fs = require('fs')
, clone = require('clone')
, data = require('./data')
, getset = require('deep-get-set')
, DeepMerge = require('deep-merge')
, merge = DeepMerge(function(a, b) {
return b
});
getset.p = true;
function File(path) {
this._path = pa... | var path = require('path')
, fs = require('fs')
, clone = require('clone')
- , data = require('./data')
, getset = require('deep-get-set')
+ , data = require('./data');
- , DeepMerge = require('deep-merge')
- , merge = DeepMerge(function(a, b) {
- return b
- });
getset.p = true;
... | 6 | 0.157895 | 1 | 5 |
edfd216f0567c327405659c6d90763550778cf57 | .travis.yml | .travis.yml | sudo: false
language: python
python:
- "3.2"
- "3.3"
- "3.4"
- "3.5"
# Install dependencies
install:
- pip install Cython
- make
- pip install -e .
- pip install pytest
# Run tests
script: py.test
| sudo: false
language: python
python:
- '3.2'
- '3.3'
- '3.4'
- '3.5'
install:
- pip install Cython
- make
- pip install -e .
- pip install pytest
script: py.test
notifications:
email: false
slack:
rooms:
secure: rxQsNRK9XBkBV0pdYuJG+tsN2tky+JUEF5ayDIUAzSaPeB//VVNNofJhcmfNgG1WiEEi6fe0dR/Y6UDsoVyQrbCHO2q2bI... | Add Slack notifications to Travis | Add Slack notifications to Travis
| YAML | mit | wmayner/pyemd,wmayner/pyemd | yaml | ## Code Before:
sudo: false
language: python
python:
- "3.2"
- "3.3"
- "3.4"
- "3.5"
# Install dependencies
install:
- pip install Cython
- make
- pip install -e .
- pip install pytest
# Run tests
script: py.test
## Instruction:
Add Slack notifications to Travis
## Code After:
sudo: false
language: p... | sudo: false
language: python
python:
+ - '3.2'
+ - '3.3'
+ - '3.4'
+ - '3.5'
- - "3.2"
- - "3.3"
- - "3.4"
- - "3.5"
- # Install dependencies
- install:
? -
+ install:
- - pip install Cython
? --
+ - pip install Cython
- - make
? --
+ - make
- - pip install -e .
? --
+ - pip install -e ... | 27 | 1.8 | 16 | 11 |
b22cd4afc0859e7200730f641931420f75b4262e | update-translations.sh | update-translations.sh |
CKAN_INSTALL_DIR=../ckan
python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot
for LANG in fr es ca it bg tr
do
if [ -e ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po ]
then
python setup.py update_catalog -l $LANG -i ../ckan/ckan/i18n/ckanext.pot ... |
CKAN_INSTALL_DIR=../ckan/
python setup.py extract_messages --mapping-file babel.cfg --output i18n/ckanext.pot
for LANG in fr es ca it bg tr
do
if [ -e i18n/$LANG/LC_MESSAGES/ckanext.po ]
then
python setup.py update_catalog -l $LANG -i i18n/ckanext.pot -o i18n/$LANG/LC_MESSAGES/ckanext.po
else
python setup.py ... | Revert modifications in translations script | Revert modifications in translations script
| Shell | agpl-3.0 | ozwillo/ckanext-ozwillo-theme,ozwillo/ckanext-ozwillo-theme,ozwillo/ckanext-ozwillo-theme,ozwillo/ckanext-ozwillo-theme | shell | ## Code Before:
CKAN_INSTALL_DIR=../ckan
python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot
for LANG in fr es ca it bg tr
do
if [ -e ckanext/ozwillo_theme/i18n/$LANG/LC_MESSAGES/ckanext-ozwillo_theme.po ]
then
python setup.py update_catalog -l $LANG -i ../ckan/ckan/i... |
- CKAN_INSTALL_DIR=../ckan
+ CKAN_INSTALL_DIR=../ckan/
? +
- python setup.py extract_messages --mapping-file babel.cfg --output ../ckan/ckan/i18n/ckanext.pot
? -------------
+ python setup.py extract_messages --mapping-fi... | 10 | 0.526316 | 5 | 5 |
ad349fd828eedb842b7556ec629d1b36aa43c890 | app/views/links/_header.html.slim | app/views/links/_header.html.slim | nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController"
.container
.navbar-header
button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-bar
s... | nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController"
.container
.navbar-header
button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-bar
s... | Add placeholder with current subject to header | Add placeholder with current subject to header
| Slim | mit | amberbit/programming-resources | slim | ## Code Before:
nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController"
.container
.navbar-header
button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.ic... | nav.navbar.navbar-default.navbar-fixed-top role="navigation" ng-controller="AutocompleteController"
.container
.navbar-header
button.navbar-toggle.collapsed data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-b... | 2 | 0.117647 | 1 | 1 |
1faf8c4861acf752cae7e72f8f55a0ac173d2aa2 | tests/Functions/PolynomialTest.php | tests/Functions/PolynomialTest.php | <?php
namespace Math\Functions;
class PolynomialTest extends \PHPUnit_Framework_TestCase
{
public function testString()
{
// p(x) = x² + 2x + 3
$polynomial = new Polynomial([1, 2, 3]);
$expected = " x² + 2x + 3";
$actual = strval($polynomial);
$this->assertEquals($expe... | <?php
namespace Math\Functions;
class PolynomialTest extends \PHPUnit_Framework_TestCase
{
public function testString()
{
// p(x) = x² + 2x + 3
$polynomial = new Polynomial([1, 2, 3]);
$expected = " x² + 2x + 3";
$actual = strval($polynomial);
$this->assertEquals($expe... | Refactor Polynomial unit test and add more test cases. | Refactor Polynomial unit test and add more test cases.
| PHP | mit | Beakerboy/math-php,markrogoyski/math-php | php | ## Code Before:
<?php
namespace Math\Functions;
class PolynomialTest extends \PHPUnit_Framework_TestCase
{
public function testString()
{
// p(x) = x² + 2x + 3
$polynomial = new Polynomial([1, 2, 3]);
$expected = " x² + 2x + 3";
$actual = strval($polynomial);
$this->as... | <?php
namespace Math\Functions;
class PolynomialTest extends \PHPUnit_Framework_TestCase
{
public function testString()
{
// p(x) = x² + 2x + 3
$polynomial = new Polynomial([1, 2, 3]);
$expected = " x² + 2x + 3";
$actual = strval($polynomial);
... | 43 | 1.592593 | 36 | 7 |
032bb2005be2ed4e0b20f15a22e3616b4098f2c1 | src/Element.php | src/Element.php | <?php
namespace duncan3dc\DomParser;
trait Element
{
public function __get($key)
{
$value = $this->dom->$key;
switch ($key) {
case "parentNode":
return $this->newElement($value);
case "nodeValue":
return trim($value);
}
... | <?php
namespace duncan3dc\DomParser;
trait Element
{
public function __toString()
{
return $this->nodeValue;
}
public function __get($key)
{
$value = $this->dom->$key;
switch ($key) {
case "parentNode":
return $this->newElement($value);
... | Allow elements to be cast to strings | Allow elements to be cast to strings
This returns their nodeValue, and is useful to avoid checking that an element exists
before attempting to get it's nodeValue
| PHP | apache-2.0 | duncan3dc/domparser,duncan3dc/domparser | php | ## Code Before:
<?php
namespace duncan3dc\DomParser;
trait Element
{
public function __get($key)
{
$value = $this->dom->$key;
switch ($key) {
case "parentNode":
return $this->newElement($value);
case "nodeValue":
return trim($value);
... | <?php
namespace duncan3dc\DomParser;
trait Element
{
+ public function __toString()
+ {
+ return $this->nodeValue;
+ }
+
+
public function __get($key)
{
$value = $this->dom->$key;
switch ($key) {
case "parentNode":
... | 6 | 0.111111 | 6 | 0 |
f6808e74d831698e5203bfcd49dfe7dd39861a47 | roles/init-env/tasks/main.yml | roles/init-env/tasks/main.yml | ---
# roles/initialize/tasks/main.yml
- name: Create group_vars directory.
local_action: file path=group_vars state=directory mode=0755
- name: Create host_vars directory.
local_action: file path=host_vars state=directory mode=0755
- name: Create the main variables file.
local_action: template src=all.yml.j2 d... | ---
# roles/initialize/tasks/main.yml
- name: Create group_vars directory.
local_action: file path=group_vars state=directory mode=0755
- name: Create host_vars directory.
local_action: file path=host_vars state=directory mode=0755
- name: Create the main variables file (group_vars/all.yml).
local_action: temp... | Use a slightly more explicit task name | Use a slightly more explicit task name
Signed-off-by: KheOps <ab12fa204a2b42f5d8c4f486abafbac2ef71cf44@ceops.eu>
| YAML | agpl-3.0 | equalitie/eqpress,equalitie/eqpress,equalitie/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,hwdsbcommons/eqpress,equalitie/eqpress,equalitie/eqpress | yaml | ## Code Before:
---
# roles/initialize/tasks/main.yml
- name: Create group_vars directory.
local_action: file path=group_vars state=directory mode=0755
- name: Create host_vars directory.
local_action: file path=host_vars state=directory mode=0755
- name: Create the main variables file.
local_action: template ... | ---
# roles/initialize/tasks/main.yml
- name: Create group_vars directory.
local_action: file path=group_vars state=directory mode=0755
- name: Create host_vars directory.
local_action: file path=host_vars state=directory mode=0755
- - name: Create the main variables file.
+ - name: Create the ... | 2 | 0.166667 | 1 | 1 |
b2874dd95bb4810cb47e65eb3cb86651afbad40c | test/controllers/diaries_controller_test.rb | test/controllers/diaries_controller_test.rb | require 'test_helper'
class DiariesControllerTest < ActionController::TestCase
def setup
@user = users(:joe)
@other_user = users(:user_1)
end
test 'should redirect get new when not logged in' do
get :new, user_id: @user
assert_redirected_to login_url
end
test 'should redirect edit when not ... | require 'test_helper'
class DiariesControllerTest < ActionController::TestCase
def setup
@user = users(:joe)
@other_user = users(:user_1)
end
test 'should redirect get index when not logged in' do
get :index, user_id: @user
assert_redirected_to login_url
end
test 'should redirect get new wh... | Add test for diary index | Add test for diary index
| Ruby | mit | MasterRoot24/cloudiary,MasterRoot24/cloudiary,MasterRoot24/cloudiary | ruby | ## Code Before:
require 'test_helper'
class DiariesControllerTest < ActionController::TestCase
def setup
@user = users(:joe)
@other_user = users(:user_1)
end
test 'should redirect get new when not logged in' do
get :new, user_id: @user
assert_redirected_to login_url
end
test 'should redirec... | require 'test_helper'
class DiariesControllerTest < ActionController::TestCase
def setup
@user = users(:joe)
@other_user = users(:user_1)
+ end
+
+ test 'should redirect get index when not logged in' do
+ get :index, user_id: @user
+ assert_redirected_to login_url
end
test... | 5 | 0.15625 | 5 | 0 |
ae648bd5dc552acb9d8ce64387e81b0743922dd4 | README.md | README.md |
object-utils
============
[](https://travis-ci.org/ultraq/object-utils)
[](https://www.npmjs.com/package/@ultraq/object-utils)
[](https://travis-ci.org/ultraq/object-utils)
[](https://coveralls.io/github/ultraq/object-utils?branch=master)
[![npm]... | Add code coverage badge! :grinning: | Add code coverage badge! :grinning:
| Markdown | apache-2.0 | ultraq/object-utils | markdown | ## Code Before:
object-utils
============
[](https://travis-ci.org/ultraq/object-utils)
[](https://www.npmjs.com/package/@ultraq/object-utils)
[](https://travis-ci.org/ultraq/object-utils)
+ [](https://coveralls.io/github/ultraq/object-utils?branch=mas... | 1 | 0.027027 | 1 | 0 |
d664541ea09c2e52d41f9c0769ab29bad5ae5886 | pyproject.toml | pyproject.toml | [tool.poetry]
name = "parserutils"
version = "2.0"
description = "A collection of performant parsing utilities"
authors = ["dharvey-consbio <dani.harvey@consbio.org>"]
keywords = ["keyword", "another_keyword"]
readme = "README.md"
homepage = "https://github.com/consbio/parserutils/"
repository = "https://github.com/con... | [tool.poetry]
name = "parserutils"
version = "2.0"
description = "A collection of performant parsing utilities"
authors = ["dharvey-consbio <dani.harvey@consbio.org>"]
keywords = ["parser", "parsing", "utils", "utilities", "collections", "dates", "elements", "numbers", "strings", "url", "xml"]
readme = "README.md"
home... | Update parserutils keywords for next deploy | Update parserutils keywords for next deploy | TOML | bsd-3-clause | consbio/parserutils | toml | ## Code Before:
[tool.poetry]
name = "parserutils"
version = "2.0"
description = "A collection of performant parsing utilities"
authors = ["dharvey-consbio <dani.harvey@consbio.org>"]
keywords = ["keyword", "another_keyword"]
readme = "README.md"
homepage = "https://github.com/consbio/parserutils/"
repository = "https:... | [tool.poetry]
name = "parserutils"
version = "2.0"
description = "A collection of performant parsing utilities"
authors = ["dharvey-consbio <dani.harvey@consbio.org>"]
- keywords = ["keyword", "another_keyword"]
+ keywords = ["parser", "parsing", "utils", "utilities", "collections", "dates", "elements", "numb... | 2 | 0.086957 | 1 | 1 |
fd6d392fd31e9d9a647af118c64f23f7d9f1488c | src/RemoteInterfaceGeneratorCLI/Templates/StringClassConverter.mustache | src/RemoteInterfaceGeneratorCLI/Templates/StringClassConverter.mustache | namespace {{rootNamespace}}
{
using Newtonsoft.Json;
using System;
public class StringClassConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return true;
}
public override object ReadJson(JsonReader reader, Type objectType, obje... | namespace {{rootNamespace}}
{
using Newtonsoft.Json;
using System;
public class StringClassConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return true;
}
public override object ReadJson(JsonReader reader, Type objectType, obje... | Add serialization capability to the string class converter | Add serialization capability to the string class converter
| HTML+Django | mit | BaristaLabs/chrome-dev-tools,BaristaLabs/chrome-dev-tools | html+django | ## Code Before:
namespace {{rootNamespace}}
{
using Newtonsoft.Json;
using System;
public class StringClassConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return true;
}
public override object ReadJson(JsonReader reader, Type ... | namespace {{rootNamespace}}
{
using Newtonsoft.Json;
using System;
public class StringClassConverter : JsonConverter
{
public override bool CanConvert(Type objectType)
{
return true;
}
public override object ReadJson(JsonReader rea... | 2 | 0.052632 | 1 | 1 |
47988a122854ce8aaeb0e3c68763e93fcc5a7ddc | travis/build.sh | travis/build.sh | set -e
set -u
set -o pipefail
# Create Salt Links for States and Pillar
# Create Ansible Links for Playbooks and Variables
#
mkdir -p /srv
ln -sf "$(pwd)/salt/roots" /srv/salt
ln -sf "$(pwd)/salt/pillar" /srv/pillar
ln -sf "$(pwd)/ansible" /srv/ansible
# Apply Salt States
#
salt-call --local -l warning state.apply
#... | set -e
set -u
set -o pipefail
# Create Salt Links for States and Pillar
# Create Ansible Links for Playbooks and Variables
#
mkdir -p /srv
ln -sf "$(pwd)/salt/roots" /srv/salt
ln -sf "$(pwd)/salt/pillar" /srv/pillar
ln -sf "$(pwd)/ansible" /srv/ansible
# Apply Ansible Plays
#
export ANSIBLE_NOCOWS=1
cd /srv/ansible &... | Swap Ansible and Salt runs to ensure output regular as seems to stall on Salt from fresh | Swap Ansible and Salt runs to ensure output regular as seems to stall on Salt from fresh
| Shell | mit | wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build | shell | ## Code Before:
set -e
set -u
set -o pipefail
# Create Salt Links for States and Pillar
# Create Ansible Links for Playbooks and Variables
#
mkdir -p /srv
ln -sf "$(pwd)/salt/roots" /srv/salt
ln -sf "$(pwd)/salt/pillar" /srv/pillar
ln -sf "$(pwd)/ansible" /srv/ansible
# Apply Salt States
#
salt-call --local -l warnin... | set -e
set -u
set -o pipefail
# Create Salt Links for States and Pillar
# Create Ansible Links for Playbooks and Variables
#
mkdir -p /srv
ln -sf "$(pwd)/salt/roots" /srv/salt
ln -sf "$(pwd)/salt/pillar" /srv/pillar
ln -sf "$(pwd)/ansible" /srv/ansible
- # Apply Salt States
- #
- salt-call --l... | 8 | 0.363636 | 4 | 4 |
ced0383de2f8c13b1f42515620ff04291b6b194a | src/js/AnimalWrapper.jsx | src/js/AnimalWrapper.jsx | 'use strict';
var AnimalImage = require('./AnimalImage.jsx');
var AnimalWrapper = React.createClass({
handleClick: function () {
this.props.onClick(this);
},
render: function() {
var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1";
var src = "ht... | 'use strict';
var AnimalImage = require('./AnimalImage.jsx');
var AnimalWrapper = React.createClass({
handleClick: function () {
this.props.onClick(this);
},
render: function() {
var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1";
var src = "ht... | Return for render complete, render successful | Return for render complete, render successful
| JSX | isc | Yangani/maasai-mara,Yangani/maasai-mara | jsx | ## Code Before:
'use strict';
var AnimalImage = require('./AnimalImage.jsx');
var AnimalWrapper = React.createClass({
handleClick: function () {
this.props.onClick(this);
},
render: function() {
var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1";
... | 'use strict';
var AnimalImage = require('./AnimalImage.jsx');
var AnimalWrapper = React.createClass({
handleClick: function () {
this.props.onClick(this);
},
render: function() {
var listItemClassList = this.props.active + " block Animal-wrapper p1 col col-12 mt1 mb1... | 4 | 0.2 | 4 | 0 |
5c17c13310b51b5813ff06921eeb7e1ba49a9a2c | phpunit.xml.dist | phpunit.xml.dist | <?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="PHPUnit">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory>... | <?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="PHPUnit">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory>sr... | Exclude the no-op DF visitor from coverage. | Exclude the no-op DF visitor from coverage.
| unknown | mit | sdboyer/gliph | unknown | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="PHPUnit">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
... | <?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="PHPUnit">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
- ... | 5 | 0.185185 | 4 | 1 |
a56081d353119734b63f88760896040004db28fc | app/styles/components/gif-stream.scss | app/styles/components/gif-stream.scss | .gif-stream {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: map-get($z-index, "gif-stream");
overflow-x: hidden;
overflow-y: auto;
background-color: $white;
}
.gif-stream__container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.gif-stream__spinner {
pos... | .gif-stream {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: map-get($z-index, "gif-stream");
overflow-x: hidden;
overflow-y: auto;
background-color: $white;
-webkit-overflow-scrolling: touch; // sass-lint:disable-line no-vendor-prefixes no-misspelled-properties
}
.gif-stream_... | Use elastic scroll for stream | Use elastic scroll for stream
| SCSS | agpl-3.0 | adzialocha/hoffnung3000,adzialocha/hoffnung3000 | scss | ## Code Before:
.gif-stream {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: map-get($z-index, "gif-stream");
overflow-x: hidden;
overflow-y: auto;
background-color: $white;
}
.gif-stream__container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.gif-stream_... | .gif-stream {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: map-get($z-index, "gif-stream");
overflow-x: hidden;
overflow-y: auto;
background-color: $white;
+
+ -webkit-overflow-scrolling: touch; // sass-lint:disable-line no-vendor-prefixes no-missp... | 2 | 0.035714 | 2 | 0 |
04d11d9fb75b281e1365be91a98e021a2caf31f9 | app/views/access/index.html.erb | app/views/access/index.html.erb | <% @page_title = 'Admin Menu' %>
<div class="menu">
<h2>Admin Menu</h2>
<div class="identity">Logged in as:</div>
<ul>
<li><%= link_to('Manage Subjects', :controller => 'subjects') %></li>
<li><%= link_to('Manage Pages', :controller => 'pages') %></li>
<li><%= link_to('Manage Sections', :controller =... | <% @page_title = 'Admin Menu' %>
<div class="menu">
<h2>Admin Menu</h2>
<div class="identity">Logged in as: <%= session[:username] %></div>
<ul>
<li><%= link_to('Manage Subjects', :controller => 'subjects') %></li>
<li><%= link_to('Manage Pages', :controller => 'pages') %></li>
<li><%= link_to('Manag... | Add username to Admin Menu | Add username to Admin Menu
| HTML+ERB | mit | joachimjusth/simple_cms,joachimjusth/simple_cms,joachimjusth/simple_cms | html+erb | ## Code Before:
<% @page_title = 'Admin Menu' %>
<div class="menu">
<h2>Admin Menu</h2>
<div class="identity">Logged in as:</div>
<ul>
<li><%= link_to('Manage Subjects', :controller => 'subjects') %></li>
<li><%= link_to('Manage Pages', :controller => 'pages') %></li>
<li><%= link_to('Manage Sections... | <% @page_title = 'Admin Menu' %>
<div class="menu">
<h2>Admin Menu</h2>
- <div class="identity">Logged in as:</div>
+ <div class="identity">Logged in as: <%= session[:username] %></div>
? ++++++++++++++++++++++++++
<ul>
<li><%= link_to('Manage Subjects', :c... | 2 | 0.153846 | 1 | 1 |
248f6c698b4c6ced3e53e71ddb951bfbfa7b44fc | .travis.yml | .travis.yml | language: python
python:
- 2.7
install:
- pip install -r requirements.txt
- python setup.py develop
script:
- coverage run ./runtests.py
after_success:
- coveralls
| language: python
python:
- 2.7
env:
matrix:
- COMBO="Django==1.5.8 django-oscar==0.6.5"
- COMBO="Django==1.5.8 django-oscar==0.7.2"
- COMBO="Django==1.6.5 django-oscar==0.6.5"
- COMBO="Django==1.6.5 django-oscar==0.7.2"
- COMBO="Django==1.6.5 South==1.0 https://github.com/tangentlabs/django-os... | Test against different Django and Oscar versions on Travis | Test against different Django and Oscar versions on Travis
This now imitates the tox test suite.
| YAML | bsd-3-clause | django-oscar/django-oscar-datacash,django-oscar/django-oscar-datacash | yaml | ## Code Before:
language: python
python:
- 2.7
install:
- pip install -r requirements.txt
- python setup.py develop
script:
- coverage run ./runtests.py
after_success:
- coveralls
## Instruction:
Test against different Django and Oscar versions on Travis
This now imitates the tox test suite.
## Code After... | language: python
+
python:
- 2.7
+
+ env:
+ matrix:
+ - COMBO="Django==1.5.8 django-oscar==0.6.5"
+ - COMBO="Django==1.5.8 django-oscar==0.7.2"
+ - COMBO="Django==1.6.5 django-oscar==0.6.5"
+ - COMBO="Django==1.6.5 django-oscar==0.7.2"
+ - COMBO="Django==1.6.5 South==1.0 https://github.c... | 15 | 1.5 | 14 | 1 |
e0b2af6906388e38dc8dffd387296a2bca5c1c28 | app/views/aq_repositories/show.html.erb | app/views/aq_repositories/show.html.erb | <div id="repository">
<%= render "infos", :repository => @repository %>
<div class="repository">
<%= render "people", :repository => @repository %>
<%= render "desc", :repository => @repository %>
<div id="files">
<% if @repository.branches.size != 0 %>
<%= render "files", :repository => @repository %>
... | <div id="repository">
<%= render "infos", :repository => @repository %>
<div class="repository">
<%= render "people", :repository => @repository %>
<%= render "desc", :repository => @repository %>
<div id="files">
<% if @repository.branches.size != 0 %>
<%= render "files", :repository => @repository %>
... | Move the div into the if condition, avoid always displaying of the div | Move the div into the if condition, avoid always displaying of the div
| HTML+ERB | mit | mcansky/aq3,mcansky/aq3 | html+erb | ## Code Before:
<div id="repository">
<%= render "infos", :repository => @repository %>
<div class="repository">
<%= render "people", :repository => @repository %>
<%= render "desc", :repository => @repository %>
<div id="files">
<% if @repository.branches.size != 0 %>
<%= render "files", :repository =>... | <div id="repository">
<%= render "infos", :repository => @repository %>
<div class="repository">
<%= render "people", :repository => @repository %>
<%= render "desc", :repository => @repository %>
<div id="files">
<% if @repository.branches.size != 0 %>
<%= render "files", :repos... | 7 | 0.189189 | 3 | 4 |
373347f249f4d32a42a7e11baac3e793fb44b627 | app/controllers/backend/schemes_controller.rb | app/controllers/backend/schemes_controller.rb | module Backend
class SchemesController < Backend::BaseController
skip_before_filter :verify_authenticity_token, if: :auth_via_access_token
skip_before_filter :authenticate_user!, if: :auth_via_access_token
before_filter :set_user_as_michael, if: :auth_via_access_token
expose(:schemes) { |default| def... | module Backend
class SchemesController < Backend::BaseController
expose(:schemes) { |default| default.by_name }
expose_decorated(:scheme, attributes: :scheme_params)
def create
flash.notice = 'Scheme successfully created' if scheme.persist
respond_with(scheme, location: scheme)
end
... | Revert "temporary allowing to update schemes with token auth" | Revert "temporary allowing to update schemes with token auth"
This reverts commit 6c5e107737872cb27a4fb746126ea3d4bed8c2dd.
| Ruby | mit | bitzesty/scheme-finder-api,bitzesty/scheme-finder-api | ruby | ## Code Before:
module Backend
class SchemesController < Backend::BaseController
skip_before_filter :verify_authenticity_token, if: :auth_via_access_token
skip_before_filter :authenticate_user!, if: :auth_via_access_token
before_filter :set_user_as_michael, if: :auth_via_access_token
expose(:schemes)... | module Backend
class SchemesController < Backend::BaseController
- skip_before_filter :verify_authenticity_token, if: :auth_via_access_token
- skip_before_filter :authenticate_user!, if: :auth_via_access_token
- before_filter :set_user_as_michael, if: :auth_via_access_token
-
expose(:schemes) {... | 16 | 0.210526 | 0 | 16 |
373fd6e9332ca225c1939b5bba675161bdec3596 | bika/lims/upgrade/__init__.py | bika/lims/upgrade/__init__.py | import imp
import sys
def create_modules(module_path):
path = ""
module = None
for element in module_path.split('.'):
path += element
try:
module = __import__(path)
except ImportError:
new = imp.new_module(path)
if module is not None:
... | import imp
import sys
def create_modules(module_path):
path = ""
module = None
for element in module_path.split('.'):
path += element
try:
module = __import__(path)
except ImportError:
new = imp.new_module(path)
if module is not None:
... | Add return False to be sure all works as expected | Add return False to be sure all works as expected
| Python | agpl-3.0 | labsanmartin/Bika-LIMS,labsanmartin/Bika-LIMS,veroc/Bika-LIMS,labsanmartin/Bika-LIMS,veroc/Bika-LIMS,veroc/Bika-LIMS,rockfruit/bika.lims,rockfruit/bika.lims | python | ## Code Before:
import imp
import sys
def create_modules(module_path):
path = ""
module = None
for element in module_path.split('.'):
path += element
try:
module = __import__(path)
except ImportError:
new = imp.new_module(path)
if module is not ... | import imp
import sys
def create_modules(module_path):
path = ""
module = None
for element in module_path.split('.'):
path += element
try:
module = __import__(path)
except ImportError:
new = imp.new_module(path)
if ... | 2 | 0.04878 | 1 | 1 |
8d9b0f536f9079721b15fee948e60c6b80b9ebb4 | .travis.yml | .travis.yml | language: node_js
node_js:
- "node"
env:
- JSDOM_VERSION=6
- JSDOM_VERSION=7
- JSDOM_VERSION=8
- JSDOM_VERSION=9
- JSDOM_VERSION=10
script:
- npm install jsdom@$JSDOM_VERSION
- ln -s ../ node_modules/karma-jsom-launcher
- npm test
| language: node_js
node_js:
- "node"
env:
- JSDOM_VERSION=6
- JSDOM_VERSION=7
- JSDOM_VERSION=8
- JSDOM_VERSION=9
- JSDOM_VERSION=10
- JSDOM_VERSION=11
script:
- npm install jsdom@$JSDOM_VERSION
- ln -s ../ node_modules/karma-jsom-launcher
- npm test
| Add jsdom-11 to the tested versions | Add jsdom-11 to the tested versions
| YAML | mit | badeball/karma-jsdom-launcher | yaml | ## Code Before:
language: node_js
node_js:
- "node"
env:
- JSDOM_VERSION=6
- JSDOM_VERSION=7
- JSDOM_VERSION=8
- JSDOM_VERSION=9
- JSDOM_VERSION=10
script:
- npm install jsdom@$JSDOM_VERSION
- ln -s ../ node_modules/karma-jsom-launcher
- npm test
## Instruction:
Add jsdom-11 to the tested versions
#... | language: node_js
node_js:
- "node"
env:
- JSDOM_VERSION=6
- JSDOM_VERSION=7
- JSDOM_VERSION=8
- JSDOM_VERSION=9
- JSDOM_VERSION=10
+ - JSDOM_VERSION=11
script:
- npm install jsdom@$JSDOM_VERSION
- ln -s ../ node_modules/karma-jsom-launcher
- npm test | 1 | 0.076923 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.