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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e22be0e4d4338c4698cb88ed9300a8e8d7254453 | app/models/renalware/hd/session/dna.rb | app/models/renalware/hd/session/dna.rb | module Renalware
module HD
class Session::DNA < Session
def self.policy_class
DNASessionPolicy
end
def immutable?
return true unless persisted?
temporary_editing_window_has_elapsed?
end
private
def temporary_editing_window_has_elapsed?
delay =... | module Renalware
module HD
class Session::DNA < Session
def self.policy_class
DNASessionPolicy
end
def immutable?
return true unless persisted?
temporary_editing_window_has_elapsed?
end
private
def temporary_editing_window_has_elapsed?
delay =... | Remove DNA null session document | Remove DNA null session document
Its causing issues elsewhere. Reinstate later,
| Ruby | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | ruby | ## Code Before:
module Renalware
module HD
class Session::DNA < Session
def self.policy_class
DNASessionPolicy
end
def immutable?
return true unless persisted?
temporary_editing_window_has_elapsed?
end
private
def temporary_editing_window_has_elapsed?... | module Renalware
module HD
class Session::DNA < Session
def self.policy_class
DNASessionPolicy
end
def immutable?
return true unless persisted?
temporary_editing_window_has_elapsed?
end
private
def temporary_editing_windo... | 8 | 0.275862 | 0 | 8 |
30e742a56a04c8227f82db3d8e9da1808cb0526b | tests/integration/src/Graze/Monolog/LoggerBuilderIntegrationTest.php | tests/integration/src/Graze/Monolog/LoggerBuilderIntegrationTest.php | <?php
namespace Graze\Monolog;
use Monolog\Logger;
class LoggerBuilderIntegrationTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->builder = new LoggerBuilder();
}
public function testBuild()
{
$logger = $this->builder->build();
$this->assertSame... | <?php
namespace Graze\Monolog;
use Monolog\Logger;
class LoggerBuilderIntegrationTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->builder = new LoggerBuilder();
}
public function assertDefaultHandlers(Logger $logger)
{
$handlers = array();
do {
... | Test default values are set on the built logger | Test default values are set on the built logger
| PHP | mit | Lead-iD/monolog-extensions,graze/monolog-extensions | php | ## Code Before:
<?php
namespace Graze\Monolog;
use Monolog\Logger;
class LoggerBuilderIntegrationTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->builder = new LoggerBuilder();
}
public function testBuild()
{
$logger = $this->builder->build();
$... | <?php
namespace Graze\Monolog;
use Monolog\Logger;
class LoggerBuilderIntegrationTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->builder = new LoggerBuilder();
}
+ public function assertDefaultHandlers(Logger $logger)
+ {
+ $hand... | 31 | 1.631579 | 31 | 0 |
e0490ccd8de93deb1af0a410dcf89190f5b609f9 | js/explore.js | js/explore.js | // take input string
// create empty output string
// remove last letter of input string
// add that letter to empty string
// keep doing this until the input string is empty
// return output string
function reverse(str) {
var newString = ""
for (var i = str.length; i > 0, i--)
newString += str[i]
} | // take input string
// create empty output string
// get the last letter of the input string
// add that letter to empty string
// keep doing this until we've gone through the entire input string
// return output string
function reverse(str) {
var newString = "";
for (var i = str.length-1; i >= 0; i--) {
n... | Add driver code to test function | Add driver code to test function
| JavaScript | mit | elliedori/phase-0-tracks,elliedori/phase-0-tracks,elliedori/phase-0-tracks | javascript | ## Code Before:
// take input string
// create empty output string
// remove last letter of input string
// add that letter to empty string
// keep doing this until the input string is empty
// return output string
function reverse(str) {
var newString = ""
for (var i = str.length; i > 0, i--)
newString += str... | // take input string
// create empty output string
- // remove last letter of input string
? ^ ^^^
+ // get the last letter of the input string
? ^ ^^^^ ++++
// add that letter to empty string
- // keep doing this until the input string is empty
+ // keep doing this until we've gone throug... | 28 | 2.333333 | 24 | 4 |
8de284f26728b529642cc79fbac71edbe295c967 | .codacy.yaml | .codacy.yaml | ---
exclude_paths:
- "api-java/src/test/**/*.*"
- "client/src/test/**/*.*"
| ---
exclude_paths:
- "api-java/src/test/**/*.*"
- "client/src/test/**/*.*"
- "firebase-endpoint/src/test/**/*.*"
| Exclude tests from Codacy check. | Exclude tests from Codacy check.
| YAML | apache-2.0 | SpineEventEngine/todo-list,SpineEventEngine/todo-list,SpineEventEngine/todo-list,SpineEventEngine/todo-list,SpineEventEngine/todo-list,SpineEventEngine/todo-list | yaml | ## Code Before:
---
exclude_paths:
- "api-java/src/test/**/*.*"
- "client/src/test/**/*.*"
## Instruction:
Exclude tests from Codacy check.
## Code After:
---
exclude_paths:
- "api-java/src/test/**/*.*"
- "client/src/test/**/*.*"
- "firebase-endpoint/src/test/**/*.*"
| ---
exclude_paths:
- "api-java/src/test/**/*.*"
- "client/src/test/**/*.*"
+ - "firebase-endpoint/src/test/**/*.*" | 1 | 0.25 | 1 | 0 |
a9cc67b9defeffc76091bd204f230a431db80196 | traftrack/image.py | traftrack/image.py | import PIL.Image
import PIL.ImageMath
import urllib.request
from io import BytesIO
def load_img_url(url):
req = urllib.request.urlopen(url)
data = BytesIO(req.read())
return PIL.Image.open(data)
def load_img_file(fname):
return PIL.Image.open(fname)
def compute_histo_RYG(img, mask):
img = img.... | import PIL.Image
import PIL.ImageMath
import urllib.request
from io import BytesIO
def load_img_url(url):
req = urllib.request.urlopen(url)
data = BytesIO(req.read())
return PIL.Image.open(data)
def load_img_file(fname):
return PIL.Image.open(fname)
def compute_histo_RYG(img, mask):
img = img.... | Fix issue with non-existing color in compute_histo_RYG | Fix issue with non-existing color in compute_histo_RYG
| Python | mit | asavonic/traftrack | python | ## Code Before:
import PIL.Image
import PIL.ImageMath
import urllib.request
from io import BytesIO
def load_img_url(url):
req = urllib.request.urlopen(url)
data = BytesIO(req.read())
return PIL.Image.open(data)
def load_img_file(fname):
return PIL.Image.open(fname)
def compute_histo_RYG(img, mask)... | import PIL.Image
import PIL.ImageMath
import urllib.request
from io import BytesIO
def load_img_url(url):
req = urllib.request.urlopen(url)
data = BytesIO(req.read())
return PIL.Image.open(data)
def load_img_file(fname):
return PIL.Image.open(fname)
def compute_hi... | 6 | 0.176471 | 5 | 1 |
cee330e9fd976475949013ae35153e866aee6feb | _posts/2017-02-04-binary-search-implementation-in-go.md | _posts/2017-02-04-binary-search-implementation-in-go.md | ---
layout: post
title: Implementation of Binary Search Algorithm in Go
---
Last few days, I am looking into the go programming language.It seems like to me the C programing language with less complexity.As a very beginner of the language, I tried to implement the basic binary search algorithm in go.
here is the code... | ---
layout: post
title: Implementation of Binary Search Algorithm in go programming language
---
Last few days, I am looking into the go programming language.It seems like to me the C programing language with less complexity.As a very beginner of the language, I tried to implement the basic binary search algorithm in ... | Revert "added the go algorithms" | Revert "added the go algorithms"
This reverts commit 985cda0d4c6efb7f2de1f3ed7fd22ffd434560fd.
| Markdown | mit | frhan/frhan.github.io,frhan/frhan.github.io | markdown | ## Code Before:
---
layout: post
title: Implementation of Binary Search Algorithm in Go
---
Last few days, I am looking into the go programming language.It seems like to me the C programing language with less complexity.As a very beginner of the language, I tried to implement the basic binary search algorithm in go.
... | ---
layout: post
- title: Implementation of Binary Search Algorithm in Go
? ^
+ title: Implementation of Binary Search Algorithm in go programming language
? ^ +++++++++++++++++++++
---
Last few days, I ... | 2 | 0.044444 | 1 | 1 |
f8db46b40629cfdb145a4a000d47277f72090c5b | powerline/lib/memoize.py | powerline/lib/memoize.py |
from functools import wraps
import time
def default_cache_key(**kwargs):
return frozenset(kwargs.items())
class memoize(object):
'''Memoization decorator with timeout.'''
def __init__(self, timeout, cache_key=default_cache_key, cache_reg_func=None):
self.timeout = timeout
self.cache_key = cache_key
self.c... |
from functools import wraps
try:
# Python>=3.3, the only valid clock source for this job
from time import monotonic as time
except ImportError:
# System time, is affected by clock updates.
from time import time
def default_cache_key(**kwargs):
return frozenset(kwargs.items())
class memoize(object):
'''Memoiz... | Use proper clock if possible | Use proper clock if possible
| Python | mit | Liangjianghao/powerline,kenrachynski/powerline,darac/powerline,darac/powerline,bezhermoso/powerline,firebitsbr/powerline,bartvm/powerline,cyrixhero/powerline,junix/powerline,prvnkumar/powerline,s0undt3ch/powerline,S0lll0s/powerline,Luffin/powerline,EricSB/powerline,dragon788/powerline,prvnkumar/powerline,wfscheper/powe... | python | ## Code Before:
from functools import wraps
import time
def default_cache_key(**kwargs):
return frozenset(kwargs.items())
class memoize(object):
'''Memoization decorator with timeout.'''
def __init__(self, timeout, cache_key=default_cache_key, cache_reg_func=None):
self.timeout = timeout
self.cache_key = ca... |
from functools import wraps
- import time
+ try:
+ # Python>=3.3, the only valid clock source for this job
+ from time import monotonic as time
+ except ImportError:
+ # System time, is affected by clock updates.
+ from time import time
def default_cache_key(**kwargs):
return frozenset(kwargs.items(... | 14 | 0.388889 | 11 | 3 |
59c6d2fc157976b1b39f57acf745b41d6e33a783 | lib/ab_admin/i18n_tools/google_translate.rb | lib/ab_admin/i18n_tools/google_translate.rb | require 'multi_json'
require 'rest-client'
module AbAdmin
module I18nTools
module GoogleTranslate
def self.t(text, from, to)
return '' if text.blank?
return text if from == to
base = 'https://www.googleapis.com/language/translate/v2'
params = {
key: ENV['GOOGLE_A... | require 'multi_json'
require 'rest-client'
module AbAdmin
module I18nTools
module GoogleTranslate
def self.t(text, from, to)
return '' if text.blank?
return text if from == to
base = 'https://www.googleapis.com/language/translate/v2'
params = {
key: ENV['GOOGLE_A... | Add formatting to google translate endpoint | Add formatting to google translate endpoint
| Ruby | mit | leschenko/ab_admin,leschenko/ab_admin,leschenko/ab_admin | ruby | ## Code Before:
require 'multi_json'
require 'rest-client'
module AbAdmin
module I18nTools
module GoogleTranslate
def self.t(text, from, to)
return '' if text.blank?
return text if from == to
base = 'https://www.googleapis.com/language/translate/v2'
params = {
ke... | require 'multi_json'
require 'rest-client'
module AbAdmin
module I18nTools
module GoogleTranslate
def self.t(text, from, to)
return '' if text.blank?
return text if from == to
base = 'https://www.googleapis.com/language/translate/v2'
params = {
... | 4 | 0.137931 | 3 | 1 |
c2ec8cda0c53dc675068df471c8c44b331dc2aea | Resources/views/Layout/tb.html.twig | Resources/views/Layout/tb.html.twig | {% extends 'KnpRadBundle:Layout:h5bp.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap.min.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap-responsive.min.css') }}" />
{% endblock %}
{% block javascript... | {% extends 'KnpRadBundle:Layout:h5bp.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap.min.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap-responsive.min.css') }}" />
{% endblock %}
{% block javascript... | Use the flashes tag in the twitter bootstrap layout | Use the flashes tag in the twitter bootstrap layout
| Twig | mit | KnpLabs/KnpRadBundle,KnpLabs/KnpRadBundle,KnpLabs/KnpRadBundle | twig | ## Code Before:
{% extends 'KnpRadBundle:Layout:h5bp.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap.min.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap-responsive.min.css') }}" />
{% endblock %}
{% ... | {% extends 'KnpRadBundle:Layout:h5bp.html.twig' %}
{% block stylesheets %}
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap.min.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/knprad/bootstrap/css/bootstrap-responsive.min.css') }}" />
{% endblock %}
{% ... | 12 | 0.48 | 5 | 7 |
883d4808be8f5a5e8a9badf05e893eae1c4cefd3 | README.md | README.md | <!-- Nikita Kouevda -->
<!-- 2012/12/23 -->
# Imgur Album Downloader
Command-line downloading of Imgur albums.
## Usage
bash imgur.sh [-v] [album ...]
or (with execute permission):
./imgur.sh [-v] [album ...]
## Options
-v
Verbose output.
## Examples
./imgur.sh adkET
or
./imgur.sh http://imgu... | <!-- Nikita Kouevda -->
<!-- 2012/12/24 -->
# Imgur Album Downloader
Command-line downloading of Imgur albums.
## Usage
bash imgur.sh [-h] [-v] [album ...]
or (with execute permission):
./imgur.sh [-h] [-v] [album ...]
## Options
-h
Show the help message.
-v
Enable verbose output.
## Examples
./... | Update readme to document help option. | Update readme to document help option.
| Markdown | mit | nkouevda/albumr | markdown | ## Code Before:
<!-- Nikita Kouevda -->
<!-- 2012/12/23 -->
# Imgur Album Downloader
Command-line downloading of Imgur albums.
## Usage
bash imgur.sh [-v] [album ...]
or (with execute permission):
./imgur.sh [-v] [album ...]
## Options
-v
Verbose output.
## Examples
./imgur.sh adkET
or
./imgu... | <!-- Nikita Kouevda -->
- <!-- 2012/12/23 -->
? ^
+ <!-- 2012/12/24 -->
? ^
# Imgur Album Downloader
Command-line downloading of Imgur albums.
## Usage
- bash imgur.sh [-v] [album ...]
+ bash imgur.sh [-h] [-v] [album ...]
? +++++
or (w... | 12 | 0.375 | 8 | 4 |
f3382812806a7997a38a5bb0cf143a78ee328335 | docs-parts/definition/11-ERD_lang1.rst | docs-parts/definition/11-ERD_lang1.rst |
To plot the ERD for an entire schema in Python, an ERD object can be initialized with the schema object (which is normally used to decorate table objects)
.. code-block:: python
import datajoint as dj
schema = dj.schema('my_database')
dj.ERD(schema).draw()
or, alternatively an object that has the schema... |
To plot the ERD for an entire schema, an ERD object can be initialized with the schema object (which is normally used to decorate table objects)
.. code-block:: python
import datajoint as dj
schema = dj.schema('my_database')
dj.ERD(schema).draw()
or alternatively an object that has the schema object as ... | Clean up ERD Python refs. | Clean up ERD Python refs.
| reStructuredText | lgpl-2.1 | dimitri-yatsenko/datajoint-python,eywalker/datajoint-python,datajoint/datajoint-python | restructuredtext | ## Code Before:
To plot the ERD for an entire schema in Python, an ERD object can be initialized with the schema object (which is normally used to decorate table objects)
.. code-block:: python
import datajoint as dj
schema = dj.schema('my_database')
dj.ERD(schema).draw()
or, alternatively an object tha... |
- To plot the ERD for an entire schema in Python, an ERD object can be initialized with the schema object (which is normally used to decorate table objects)
? ----------
+ To plot the ERD for an entire schema, an ERD object can be initialized with the schema object (which is norm... | 4 | 0.190476 | 2 | 2 |
d2fb1f22be6c6434873f2bcafb6b8a9b714acde9 | website/archiver/decorators.py | website/archiver/decorators.py | import functools
from framework.exceptions import HTTPError
from website.project.decorators import _inject_nodes
from website.archiver import ARCHIVER_UNCAUGHT_ERROR
from website.archiver import utils
def fail_archive_on_error(func):
@functools.wraps(func)
def wrapped(*args, **kwargs):
try:
... | import functools
from framework.exceptions import HTTPError
from website.project.decorators import _inject_nodes
from website.archiver import ARCHIVER_UNCAUGHT_ERROR
from website.archiver import signals
def fail_archive_on_error(func):
@functools.wraps(func)
def wrapped(*args, **kwargs):
try:
... | Use fail signal in fail_archive_on_error decorator | Use fail signal in fail_archive_on_error decorator
| Python | apache-2.0 | amyshi188/osf.io,caneruguz/osf.io,TomHeatwole/osf.io,SSJohns/osf.io,mluke93/osf.io,DanielSBrown/osf.io,Nesiehr/osf.io,jeffreyliu3230/osf.io,chrisseto/osf.io,acshi/osf.io,mattclark/osf.io,billyhunt/osf.io,caneruguz/osf.io,cosenal/osf.io,SSJohns/osf.io,njantrania/osf.io,mattclark/osf.io,alexschiller/osf.io,samchrisinger/... | python | ## Code Before:
import functools
from framework.exceptions import HTTPError
from website.project.decorators import _inject_nodes
from website.archiver import ARCHIVER_UNCAUGHT_ERROR
from website.archiver import utils
def fail_archive_on_error(func):
@functools.wraps(func)
def wrapped(*args, **kwargs):
... | import functools
from framework.exceptions import HTTPError
from website.project.decorators import _inject_nodes
from website.archiver import ARCHIVER_UNCAUGHT_ERROR
- from website.archiver import utils
? ^^
+ from website.archiver import signals
? ... | 10 | 0.4 | 4 | 6 |
9c6ff62d31b2a611140b1ba86dff60dfc38e2b3f | .github/workflows/build-dev.yml | .github/workflows/build-dev.yml | name: Build and deploy
on:
push:
paths-ignore:
- 'docs/**'
- 'yarn.lock'
- 'package.json'
branches:
- dev
tags:
- '*'
jobs:
test-netcore-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
with:
... | name: Build and deploy
on:
push:
paths-ignore:
- 'docs/**'
- 'yarn.lock'
- 'package.json'
branches:
- dev
tags:
- '*'
jobs:
# test-netcore-linux:
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-dotnet@v1
# wi... | Disable tests on Linux for now | Disable tests on Linux for now
| YAML | apache-2.0 | restsharp/RestSharp | yaml | ## Code Before:
name: Build and deploy
on:
push:
paths-ignore:
- 'docs/**'
- 'yarn.lock'
- 'package.json'
branches:
- dev
tags:
- '*'
jobs:
test-netcore-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-dotnet@v1
... | name: Build and deploy
on:
push:
paths-ignore:
- 'docs/**'
- 'yarn.lock'
- 'package.json'
branches:
- dev
tags:
- '*'
jobs:
- test-netcore-linux:
+ # test-netcore-linux:
? +
- runs-on: ubuntu-latest
+ # runs-on: ubuntu-latest
? +
-
+... | 22 | 0.478261 | 11 | 11 |
ab0ee453d7385484106de7a79baa86caceaba05f | lib/api/com.js | lib/api/com.js | var $ = require('zepto-browserify').$;
var name = '.COM API';
var baseUrl = 'https://public-api.wordpress.com/rest/';
function getRequestUrl(request) {
var version = request.version || 'v1';
return baseUrl + version + request.path;
}
function getDiscoveryUrl(version) {
return baseUrl + version + '/help';
}
f... | var $ = require('zepto-browserify').$;
var name = '.COM API';
var baseUrl = 'https://public-api.wordpress.com/rest/';
function getRequestUrl(request) {
var version = request.version || 'v1';
return baseUrl + version + request.path;
}
function getDiscoveryUrl(version) {
return baseUrl + version + '/help';
}
f... | Remove arrow function to fix the build | Remove arrow function to fix the build
events.js:165
throw err;
^
Error: Uncaught, unspecified "error" event. (SyntaxError: Unexpected
token: operator (>) while parsing file: [...]/lib/api/com.js
(line: 27, col: 53, pos: 695)
Error
at new JS_Parse_Error (eval at <anonymous>
([...]/node_modules/uglify... | JavaScript | mit | HamptonParkhp2w/Marong,Hamiltonz6x6/Dungog,Gawlerydyh/Geelong,Hamiltonz6x6/Dungog,Alexandriabez1/Gordon,Oatlandsuvdi/Mentone,Harveypahl/Beachmere,Vermontnapk/Silverwater,Oxleylrej/RingwoodEast,Automattic/rest-api-console2,PortMacquarieghp4/Revesby,Tuggeranongyqe2/Belair,paltasipse/stehnd,Redfernyrzj/Lilydale,Richmondfk... | javascript | ## Code Before:
var $ = require('zepto-browserify').$;
var name = '.COM API';
var baseUrl = 'https://public-api.wordpress.com/rest/';
function getRequestUrl(request) {
var version = request.version || 'v1';
return baseUrl + version + request.path;
}
function getDiscoveryUrl(version) {
return baseUrl + version... | var $ = require('zepto-browserify').$;
var name = '.COM API';
var baseUrl = 'https://public-api.wordpress.com/rest/';
function getRequestUrl(request) {
var version = request.version || 'v1';
return baseUrl + version + request.path;
}
function getDiscoveryUrl(version) {
return baseUrl... | 8 | 0.170213 | 7 | 1 |
aee2f4e61308de0cf7793ff86686fef373cb3709 | chippery/settings.sls | chippery/settings.sls |
{% set chippery = pillar.get('chippery', {}) %}
{% set settings = chippery.get('settings', {}) %}
# Set a default UMASK for the machine
{% if 'default_umask' in settings %}
.Set default UMASK on the minion:
file.replace:
- name: /etc/login.defs
- pattern: ^UMASK\s+[\dx]+
- repl: UMASK\t\t{{ settings['d... |
{% set chippery = pillar.get('chippery', {}) %}
{% set settings = chippery.get('settings', {}) %}
| Remove UMASK setter into state formula system.states.default_umask | Remove UMASK setter into state formula system.states.default_umask
| SaltStack | bsd-2-clause | hipikat/chippery-formula | saltstack | ## Code Before:
{% set chippery = pillar.get('chippery', {}) %}
{% set settings = chippery.get('settings', {}) %}
# Set a default UMASK for the machine
{% if 'default_umask' in settings %}
.Set default UMASK on the minion:
file.replace:
- name: /etc/login.defs
- pattern: ^UMASK\s+[\dx]+
- repl: UMASK\t... |
{% set chippery = pillar.get('chippery', {}) %}
{% set settings = chippery.get('settings', {}) %}
- # Set a default UMASK for the machine
- {% if 'default_umask' in settings %}
- .Set default UMASK on the minion:
- file.replace:
- - name: /etc/login.defs
- - pattern: ^UMASK\s+[\dx]+
- - repl:... | 10 | 0.666667 | 0 | 10 |
74be6c3d995a95c2c0dd541203e5d3e85bac053c | app/views/manage-projects.html | app/views/manage-projects.html | <md-content ng-cloak>
<md-content>
<md-list>
<md-list-item class="md-3-line" ng-repeat="project in projects">
<div class="md-list-item-text">
<h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3>
<h4>
<translate>VIEWS.MANAGE.PROJECTS.CREATOR</translate>... | <md-content ng-cloak>
<md-content>
<md-list>
<md-list-item class="md-3-line" ng-repeat="project in projects">
<div class="md-list-item-text">
<h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3>
<h4>
<translate>VIEWS.MANAGE.PROJECTS.CREATOR</translate>... | Handle dates in a few more places. | Handle dates in a few more places.
| HTML | mit | learning-layers/timeliner-client,learning-layers/timeliner-client | html | ## Code Before:
<md-content ng-cloak>
<md-content>
<md-list>
<md-list-item class="md-3-line" ng-repeat="project in projects">
<div class="md-list-item-text">
<h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3>
<h4>
<translate>VIEWS.MANAGE.PROJECTS.CRE... | <md-content ng-cloak>
<md-content>
<md-list>
<md-list-item class="md-3-line" ng-repeat="project in projects">
<div class="md-list-item-text">
<h3>{{ ::project.title }} ({{ ::project.participants.length }})</h3>
<h4>
<translate>VIEWS.MANAGE.PROJECTS.CRE... | 8 | 0.347826 | 4 | 4 |
8b97da7968fd946d597820c241cf6bd5e7d9edf5 | home/.vim/plugin/filetypes.vim | home/.vim/plugin/filetypes.vim | augroup set_filetype_group
autocmd!
autocmd BufNewFile,BufRead Guardfile set filetype=ruby
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufNewFile,BufRead *.pde set filetype=processing
autocmd BufRead,BufNewFile *.scss set filetype=scss.css
augroup END
| augroup set_filetype_group
autocmd!
autocmd BufNewFile,BufRead Guardfile set filetype=ruby
autocmd BufNewFile,BufRead Vagrantfile set filetype=ruby
autocmd BufNewFile,BufRead .jshintrc set filetype=javascript
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufNewFile,BufRead *.pde set filetype... | Use correct filetype for Vagrantfile and .jshintrc | Use correct filetype for Vagrantfile and .jshintrc
| VimL | mit | lpil/vimrc | viml | ## Code Before:
augroup set_filetype_group
autocmd!
autocmd BufNewFile,BufRead Guardfile set filetype=ruby
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufNewFile,BufRead *.pde set filetype=processing
autocmd BufRead,BufNewFile *.scss set filetype=scss.css
augroup END
## Instruction:
Use cor... | augroup set_filetype_group
autocmd!
autocmd BufNewFile,BufRead Guardfile set filetype=ruby
+ autocmd BufNewFile,BufRead Vagrantfile set filetype=ruby
+ autocmd BufNewFile,BufRead .jshintrc set filetype=javascript
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufNewFile,BufRead *.pd... | 2 | 0.285714 | 2 | 0 |
042d21e46474090d36db1c18ee7ca851d640426a | config/prisons/KMI-kirkham.yml | config/prisons/KMI-kirkham.yml | ---
name: Kirkham
nomis_id: KMI
address:
- Freckleton Road
- ' Kirkham'
- PR4 2RN
email: socialvisits.kirkham@hmps.gsi.gov.uk
enabled: true
estate: Kirkham
phone:
slots:
fri:
- 1300-1530
sat:
- 1300-1530
sun:
- 1300-1530
unbookable:
- 2014-12-25
| ---
name: Kirkham
nomis_id: KMI
address:
- Freckleton Road
- ' Kirkham'
- PR4 2RN
email: socialvisits.kirkham@hmps.gsi.gov.uk
enabled: true
estate: Kirkham
phone:
slot_anomalies:
2015-12-23:
- 1315-1540
2015-12-30:
- 1315-1540
slots:
fri:
- 1300-1530
sat:
- 1300-1530
sun:
- 1300-1530
unbookable:
- ... | Update Kirkham Christmas visit slots | Update Kirkham Christmas visit slots
Unbookable:
- Christmas Eve
- Christmas Day
- New Year's Eve
- New Year's Day
Additional:
- 23rd Dec 1315-1540
- 30th Dec 1315-1540 | YAML | mit | ministryofjustice/prison-visits,ministryofjustice/prison-visits,ministryofjustice/prison-visits | yaml | ## Code Before:
---
name: Kirkham
nomis_id: KMI
address:
- Freckleton Road
- ' Kirkham'
- PR4 2RN
email: socialvisits.kirkham@hmps.gsi.gov.uk
enabled: true
estate: Kirkham
phone:
slots:
fri:
- 1300-1530
sat:
- 1300-1530
sun:
- 1300-1530
unbookable:
- 2014-12-25
## Instruction:
Update Kirkham Christmas vis... | ---
name: Kirkham
nomis_id: KMI
address:
- Freckleton Road
- ' Kirkham'
- PR4 2RN
email: socialvisits.kirkham@hmps.gsi.gov.uk
enabled: true
estate: Kirkham
phone:
+ slot_anomalies:
+ 2015-12-23:
+ - 1315-1540
+ 2015-12-30:
+ - 1315-1540
slots:
fri:
- 1300-1530
sat:
- 130... | 9 | 0.45 | 9 | 0 |
d37bef6459cc2810660dfe702e46f5a303a02601 | composer.json | composer.json | {
"name": "flipbox/lumen-generator",
"description": "A Lumen Generator You Are Missing",
"type": "library",
"require": {
"illuminate/support": "^5.4|^6.0",
"symfony/var-dumper": "^3.1|^4.1|^4.2|^4.3",
"psy/psysh": "0.8.*|0.9.*",
"classpreloader/classpreloader": "^3.0|^4.0... | {
"name": "flipbox/lumen-generator",
"description": "A Lumen Generator You Are Missing",
"type": "library",
"require": {
"illuminate/support": "^5.4|^6.0|^7.0",
"symfony/var-dumper": "^3.1|^4.1|^4.2|^4.3|^5.0",
"psy/psysh": "0.8.*|0.9.*",
"classpreloader/classpreloader": ... | Add support for Lumen ^7.x | Add support for Lumen ^7.x
| JSON | mit | flipboxstudio/lumen-generator | json | ## Code Before:
{
"name": "flipbox/lumen-generator",
"description": "A Lumen Generator You Are Missing",
"type": "library",
"require": {
"illuminate/support": "^5.4|^6.0",
"symfony/var-dumper": "^3.1|^4.1|^4.2|^4.3",
"psy/psysh": "0.8.*|0.9.*",
"classpreloader/classpreloa... | {
"name": "flipbox/lumen-generator",
"description": "A Lumen Generator You Are Missing",
"type": "library",
"require": {
- "illuminate/support": "^5.4|^6.0",
+ "illuminate/support": "^5.4|^6.0|^7.0",
? +++++
- "symfony/var-dumper... | 4 | 0.173913 | 2 | 2 |
d7d5c4fd076951df4ba171329b4b99e250c8282f | lib/data_kitten/origins/git.rb | lib/data_kitten/origins/git.rb | module DataKitten
module Origins
# Git origin module. Automatically mixed into {Dataset} for datasets that are loaded from Git repositories.
#
# @see Dataset
#
module Git
private
def self.supported?(uri)
uri =~ /\A(git|https?):\/\/.*\.git\Z/
end
publi... | module DataKitten
module Origins
# Git origin module. Automatically mixed into {Dataset} for datasets that are loaded from Git repositories.
#
# @see Dataset
#
module Git
private
def self.supported?(uri)
uri =~ /\A(git|https?):\/\/.*\.git\Z/
end
publi... | Make tmp folder in gem root | Make tmp folder in gem root
| Ruby | mit | theodi/data_kitten | ruby | ## Code Before:
module DataKitten
module Origins
# Git origin module. Automatically mixed into {Dataset} for datasets that are loaded from Git repositories.
#
# @see Dataset
#
module Git
private
def self.supported?(uri)
uri =~ /\A(git|https?):\/\/.*\.git\Z/
... | module DataKitten
module Origins
# Git origin module. Automatically mixed into {Dataset} for datasets that are loaded from Git repositories.
#
# @see Dataset
#
module Git
private
def self.supported?(uri)
uri =~ /\A(git|https?):\/\/.*\.g... | 4 | 0.060606 | 2 | 2 |
e1245fdf5db15718a26fc4ce3dddf4ebad639052 | source/nuPickers/Shared/CustomLabel/CustomLabelConfig.html | source/nuPickers/Shared/CustomLabel/CustomLabelConfig.html |
<div ng-controller="nuPickers.Shared.CustomLabel.CustomLabelConfigController" class="nuPickers-config">
<div>
<label for="">
Custom Label
<small>(optional) process each item though a macro, can use the parameters: key, keys, counter and total</small>
</label>
<d... |
<div ng-controller="nuPickers.Shared.CustomLabel.CustomLabelConfigController" class="nuPickers-config">
<div>
<label for="">
Custom Label
<small>(optional) process each item through a macro; Can use the parameters: contextId, propertyAlias, key, label, keys, counter and total</sm... | Fix typo and add missing keys | Fix typo and add missing keys
| HTML | mit | abjerner/nuPickers,LottePitcher/nuPickers,abjerner/nuPickers,JimBobSquarePants/nuPickers,uComponents/nuPickers,iahdevelop/nuPickers,JimBobSquarePants/nuPickers,uComponents/nuPickers,LottePitcher/nuPickers,abjerner/nuPickers,JimBobSquarePants/nuPickers,uComponents/nuPickers,LottePitcher/nuPickers,iahdevelop/nuPickers,ia... | html | ## Code Before:
<div ng-controller="nuPickers.Shared.CustomLabel.CustomLabelConfigController" class="nuPickers-config">
<div>
<label for="">
Custom Label
<small>(optional) process each item though a macro, can use the parameters: key, keys, counter and total</small>
</la... |
<div ng-controller="nuPickers.Shared.CustomLabel.CustomLabelConfigController" class="nuPickers-config">
<div>
<label for="">
Custom Label
- <small>(optional) process each item though a macro, can use the parameters: key, keys, counter and total</small>
? ... | 2 | 0.090909 | 1 | 1 |
122c5dec3f15037f2ae3decc8661cdebdbc16f68 | README.md | README.md |
The paper and code can be found [here](http://sanghosuh.github.io/data/lens_nmf_icdm.pdf) and [there](https://github.com/sanghosuh/lens_nmf-matlab), respectively.
Full citation is as follows.
1. Suh, Sangho, et al. "L-EnsNMF: Boosted Local Topic Discovery via Ensemble of Nonnegative Matrix Factorization."
Procee... |
The paper and code can be found [here](http://sanghosuh.github.io/papers/lensnmf_icdm.pdf) and [there](https://github.com/sanghosuh/lens_nmf-matlab), respectively.
To check out the presentation, click [here](https://sanghosuh.github.io/lens_nmf-icdm/).
Full citation is as follows.
1. Suh, Sangho, et al. "L-EnsNMF: ... | Fix link to paper and add link to presentation | Fix link to paper and add link to presentation | Markdown | mit | sanghosuh/lens_nmf-icdm,sanghosuh/lens_nmf-icdm | markdown | ## Code Before:
The paper and code can be found [here](http://sanghosuh.github.io/data/lens_nmf_icdm.pdf) and [there](https://github.com/sanghosuh/lens_nmf-matlab), respectively.
Full citation is as follows.
1. Suh, Sangho, et al. "L-EnsNMF: Boosted Local Topic Discovery via Ensemble of Nonnegative Matrix Factoriza... |
+ The paper and code can be found [here](http://sanghosuh.github.io/papers/lensnmf_icdm.pdf) and [there](https://github.com/sanghosuh/lens_nmf-matlab), respectively.
- The paper and code can be found [here](http://sanghosuh.github.io/data/lens_nmf_icdm.pdf) and [there](https://github.com/sanghosuh/lens_nmf-matlab... | 3 | 0.3 | 2 | 1 |
d6092f14a4755ba9f19b3c39e1e5b7fcbcebebda | mkdocs.yml | mkdocs.yml | site_name: Peering Manager
pages:
- 'Introduction': 'index.md'
- 'Setup':
- 'PostgreSQL': 'setup/postgresql.md'
- 'Peering Manager': 'setup/peering-manager.md'
- 'Web Server': 'setup/web-server.md'
- 'Logging': 'setup/logging.md'
- 'LDAP': 'setup/ldap.md'
- 'Upgrading': 'setup/upgrading.md'... | site_name: Peering Manager
pages:
- 'Introduction': 'index.md'
- 'Setup':
- 'PostgreSQL': 'setup/postgresql.md'
- 'Peering Manager': 'setup/peering-manager.md'
- 'Web Server': 'setup/web-server.md'
- 'Logging': 'setup/logging.md'
- 'LDAP': 'setup/ldap.md'
- 'Upgrading': 'setup/upgrading.md'... | Remove useless mardown extension for doc generation. | Remove useless mardown extension for doc generation.
| YAML | apache-2.0 | respawner/peering-manager,respawner/peering-manager,respawner/peering-manager,respawner/peering-manager | yaml | ## Code Before:
site_name: Peering Manager
pages:
- 'Introduction': 'index.md'
- 'Setup':
- 'PostgreSQL': 'setup/postgresql.md'
- 'Peering Manager': 'setup/peering-manager.md'
- 'Web Server': 'setup/web-server.md'
- 'Logging': 'setup/logging.md'
- 'LDAP': 'setup/ldap.md'
- 'Upgrading': 'set... | site_name: Peering Manager
pages:
- 'Introduction': 'index.md'
- 'Setup':
- 'PostgreSQL': 'setup/postgresql.md'
- 'Peering Manager': 'setup/peering-manager.md'
- 'Web Server': 'setup/web-server.md'
- 'Logging': 'setup/logging.md'
- 'LDAP': 'setup/ldap.md'
- 'Upgrading'... | 3 | 0.15 | 0 | 3 |
3990e3aa64cff288def07ee36e24026cc15282c0 | taiga/projects/issues/serializers.py | taiga/projects/issues/serializers.py |
from rest_framework import serializers
from taiga.base.serializers import PickleField, NeighborsSerializerMixin
from . import models
class IssueSerializer(serializers.ModelSerializer):
tags = PickleField(required=False)
comment = serializers.SerializerMethodField("get_comment")
is_closed = serializers.... |
from rest_framework import serializers
from taiga.base.serializers import PickleField, NeighborsSerializerMixin
from . import models
class IssueSerializer(serializers.ModelSerializer):
tags = PickleField(required=False)
is_closed = serializers.Field(source="is_closed")
class Meta:
model = mode... | Remove unnecessary field from IssueSerializer | Remove unnecessary field from IssueSerializer
| Python | agpl-3.0 | forging2012/taiga-back,EvgeneOskin/taiga-back,xdevelsistemas/taiga-back-community,seanchen/taiga-back,bdang2012/taiga-back-casting,Rademade/taiga-back,crr0004/taiga-back,dayatz/taiga-back,rajiteh/taiga-back,dycodedev/taiga-back,crr0004/taiga-back,obimod/taiga-back,Zaneh-/bearded-tribble-back,seanchen/taiga-back,gauravj... | python | ## Code Before:
from rest_framework import serializers
from taiga.base.serializers import PickleField, NeighborsSerializerMixin
from . import models
class IssueSerializer(serializers.ModelSerializer):
tags = PickleField(required=False)
comment = serializers.SerializerMethodField("get_comment")
is_close... |
from rest_framework import serializers
from taiga.base.serializers import PickleField, NeighborsSerializerMixin
from . import models
class IssueSerializer(serializers.ModelSerializer):
tags = PickleField(required=False)
- comment = serializers.SerializerMethodField("get_comment")
... | 4 | 0.129032 | 0 | 4 |
a37656c1325a0e5afbd469070013aa2ee5184b65 | docs/library/sys.rst | docs/library/sys.rst | :mod:`sys` -- system specific functions
=======================================
.. module:: sys
:synopsis: system specific functions
Functions
---------
.. function:: exit([retval])
Raise a ``SystemExit`` exception. If an argument is given, it is the
value given to ``SystemExit``.
.. function:: print_exc... | :mod:`sys` -- system specific functions
=======================================
.. module:: sys
:synopsis: system specific functions
Functions
---------
.. function:: exit([retval])
Raise a ``SystemExit`` exception. If an argument is given, it is the
value given to ``SystemExit``.
.. function:: print_exc... | Make admonition for CPy-difference use "attention" class. | docs: Make admonition for CPy-difference use "attention" class.
This renders it in yellow/orange box on RTD server.
| reStructuredText | mit | infinnovation/micropython,paul-xxx/micropython,kerneltask/micropython,hosaka/micropython,bvernoux/micropython,MrSurly/micropython,Peetz0r/micropython-esp32,supergis/micropython,aethaniel/micropython,henriknelson/micropython,xyb/micropython,dinau/micropython,neilh10/micropython,PappaPeppar/micropython,selste/micropython... | restructuredtext | ## Code Before:
:mod:`sys` -- system specific functions
=======================================
.. module:: sys
:synopsis: system specific functions
Functions
---------
.. function:: exit([retval])
Raise a ``SystemExit`` exception. If an argument is given, it is the
value given to ``SystemExit``.
.. func... | :mod:`sys` -- system specific functions
=======================================
.. module:: sys
:synopsis: system specific functions
Functions
---------
.. function:: exit([retval])
Raise a ``SystemExit`` exception. If an argument is given, it is the
value given to ``SystemExit``... | 1 | 0.015873 | 1 | 0 |
ed434c7724cf2e7731c0b0b91a4b8efa7c424106 | nbt/src/main/java/com/voxelwind/nbt/util/CompoundTagBuilder.java | nbt/src/main/java/com/voxelwind/nbt/util/CompoundTagBuilder.java | package com.voxelwind.nbt.util;
import com.voxelwind.nbt.tags.CompoundTag;
import com.voxelwind.nbt.tags.Tag;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CompoundTagBuilder {
private fina... | package com.voxelwind.nbt.util;
import com.voxelwind.nbt.tags.*;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CompoundTagBuilder {
private final Map<String, Tag<?>> tagMap = new HashMap<>(... | Add type-related tag methods to nbt-builder | Add type-related tag methods to nbt-builder
| Java | mit | voxelwind/voxelwind,voxelwind/voxelwind,minecrafter/voxelwind,voxelwind/voxelwind,minecrafter/voxelwind,minecrafter/voxelwind,minecrafter/voxelwind,voxelwind/voxelwind | java | ## Code Before:
package com.voxelwind.nbt.util;
import com.voxelwind.nbt.tags.CompoundTag;
import com.voxelwind.nbt.tags.Tag;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.Map;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CompoundTagBuilder {
... | package com.voxelwind.nbt.util;
- import com.voxelwind.nbt.tags.CompoundTag;
- import com.voxelwind.nbt.tags.Tag;
? ^^^
+ import com.voxelwind.nbt.tags.*;
? ^
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.HashMap;... | 39 | 1.054054 | 37 | 2 |
6122600692d8a44cd84ff85c3f8f6437aa536387 | config/initializers/secret_token.rb | config/initializers/secret_token.rb | PopHealth::Application.config.secret_token = 'd2d8152dfb0736f5ae682c88a0e416c0104b9c0271ac9834d7349653c96f38715b94fc9bad48641725b149a83e59e77d0e7554cd407bb1771f9d343ce217c596'
| PopHealth::Application.config.secret_token = 'd2d8152dfb0736f5ae682c88a0e416c0104b9c0271ac9834d7349653c96f38715b94fc9bad48641725b149a83e59e77d0e7554cd407bb1771f9d343ce217c596'
PopHealth::Application.config.secret_key_base = '3e393dd55e17e1836ea8c7feb65595d120bc2f23a58e811f1e2256dc6de615704b99c964f4149c33b4728f566a16bd... | Add secret_key_base since not adding it causes depreciation errors in rails 4. | Add secret_key_base since not adding it causes depreciation errors in rails 4.
| Ruby | apache-2.0 | lrasmus/popHealth,yss-miawptgm/popHealth,lrasmus/popHealth,pophealth/popHealth,ELXR/popHealth,eedrummer/popHealth,smc-ssiddiqui/popHealth,OSEHRA/popHealth,jeremyklein/popHealth,yss-miawptgm/popHealth,ELXR/popHealth,q-centrix/popHealth,smc-ssiddiqui/popHealth,OSEHRA/popHealth,eedrummer/popHealth,lrasmus/popHealth,jeremy... | ruby | ## Code Before:
PopHealth::Application.config.secret_token = 'd2d8152dfb0736f5ae682c88a0e416c0104b9c0271ac9834d7349653c96f38715b94fc9bad48641725b149a83e59e77d0e7554cd407bb1771f9d343ce217c596'
## Instruction:
Add secret_key_base since not adding it causes depreciation errors in rails 4.
## Code After:
PopHealth::Appli... | PopHealth::Application.config.secret_token = 'd2d8152dfb0736f5ae682c88a0e416c0104b9c0271ac9834d7349653c96f38715b94fc9bad48641725b149a83e59e77d0e7554cd407bb1771f9d343ce217c596'
+
+ PopHealth::Application.config.secret_key_base = '3e393dd55e17e1836ea8c7feb65595d120bc2f23a58e811f1e2256dc6de615704b99c964f4149c33b4728f56... | 2 | 2 | 2 | 0 |
76a5e9b2d32311b07ad1a9736f9725c24406b05e | notes/lang/elixir/index.md | notes/lang/elixir/index.md | ---
layout: page
title: 'Elixir'
date: 2014-06-07 12:00:00
---
**Installation**
{% highlight ruby %}
brew install erlang elixir
{% endhighlight %}
**Videos**
- [Elixir - A modern approach to programming for the Erlang VM on Vimeo](https://vimeo.com/53221562), Jose Valim
- [Introduction to Elixir](http://www.youtu... | ---
layout: page
title: 'Elixir'
date: 2014-06-07 12:00:00
---
**Installation**
{% highlight ruby %}
brew install erlang elixir
{% endhighlight %}
**Bookmarks**
* [Elixir lang](http://elixir-lang.org/)
* [Phoenix guides](https://github.com/lancehalvorsen/phoenix-guides) - Guides for the Phoenix web framework
**V... | Add bookmark to Phoenix guides | Add bookmark to Phoenix guides
| Markdown | mit | nithinbekal/nithinbekal.github.io,nithinbekal/nithinbekal.github.io | markdown | ## Code Before:
---
layout: page
title: 'Elixir'
date: 2014-06-07 12:00:00
---
**Installation**
{% highlight ruby %}
brew install erlang elixir
{% endhighlight %}
**Videos**
- [Elixir - A modern approach to programming for the Erlang VM on Vimeo](https://vimeo.com/53221562), Jose Valim
- [Introduction to Elixir](... | ---
layout: page
title: 'Elixir'
date: 2014-06-07 12:00:00
---
**Installation**
{% highlight ruby %}
brew install erlang elixir
{% endhighlight %}
+ **Bookmarks**
+
+ * [Elixir lang](http://elixir-lang.org/)
+ * [Phoenix guides](https://github.com/lancehalvorsen/phoenix-guides) - Guides fo... | 5 | 0.294118 | 5 | 0 |
014e4fe380cddcdcc5ca12a32ab6af35e87ee56e | common/postgresqlfix.py | common/postgresqlfix.py |
from django.db.models import QuerySet
def new_exclude(self, *args, **kwargs):
new_kwargs = dict()
for key, value in kwargs.items():
if not ((isinstance(value, list) and not value) or (isinstance(value, QuerySet) and not value)):
new_kwargs[key] = value
if len(new_kwargs):
ret... |
from django.db.models import QuerySet
def new_exclude(self, *args, **kwargs):
new_kwargs = dict()
for key, value in kwargs.items():
if not ((isinstance(value, list) and not value) or (isinstance(value, QuerySet) and not value)):
new_kwargs[key] = value
return old_exclude(self, *args,... | Fix buggy patched QuerySet methods | Fix buggy patched QuerySet methods
| Python | agpl-3.0 | m4tx/egielda,m4tx/egielda,m4tx/egielda | python | ## Code Before:
from django.db.models import QuerySet
def new_exclude(self, *args, **kwargs):
new_kwargs = dict()
for key, value in kwargs.items():
if not ((isinstance(value, list) and not value) or (isinstance(value, QuerySet) and not value)):
new_kwargs[key] = value
if len(new_kwar... |
from django.db.models import QuerySet
def new_exclude(self, *args, **kwargs):
new_kwargs = dict()
for key, value in kwargs.items():
if not ((isinstance(value, list) and not value) or (isinstance(value, QuerySet) and not value)):
new_kwargs[key] = value
- if len(ne... | 10 | 0.30303 | 2 | 8 |
6d107312c1bcca56ead5b4cc27b89c028f2eafeb | README.rst | README.rst | fmn.lib
=======
`fmn <https://github.com/fedora-infra/fmn>`_ is a family of systems to manage
end-user notifications triggered by
`fedmsg, the Fedora FEDerated MESsage bus <http://fedmsg.com>`_.
This module contains the internal API components and data model for Fedora
Notifications
There is a parental placeholder r... | fmn.lib
=======
`fmn <https://github.com/fedora-infra/fmn>`_ is a family of systems to manage
end-user notifications triggered by
`fedmsg, the Fedora FEDerated MESsage bus <http://fedmsg.com>`_.
This module contains the internal API components and data model for Fedora
Notifications
There is a parental placeholder r... | Add some documentation on testing fmn.lib | Add some documentation on testing fmn.lib
Signed-off-by: Patrick Uiterwijk <bd6d5394796bee9cca2245486eb583fd64b70226@redhat.com>
| reStructuredText | lgpl-2.1 | jeremycline/fmn,jeremycline/fmn,jeremycline/fmn | restructuredtext | ## Code Before:
fmn.lib
=======
`fmn <https://github.com/fedora-infra/fmn>`_ is a family of systems to manage
end-user notifications triggered by
`fedmsg, the Fedora FEDerated MESsage bus <http://fedmsg.com>`_.
This module contains the internal API components and data model for Fedora
Notifications
There is a parent... | fmn.lib
=======
`fmn <https://github.com/fedora-infra/fmn>`_ is a family of systems to manage
end-user notifications triggered by
`fedmsg, the Fedora FEDerated MESsage bus <http://fedmsg.com>`_.
This module contains the internal API components and data model for Fedora
Notifications
There is a ... | 6 | 0.352941 | 6 | 0 |
9f54b2574c5826738e76119a305547f950b24b1d | docs/index.rst | docs/index.rst | .. indoctrinate documentation master file, created by
sphinx-quickstart on Tue Nov 18 19:52:51 2014.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to indoctrinate's documentation!
========================================
Contents:
.. ... | .. indoctrinate documentation master file, created by
sphinx-quickstart on Tue Nov 18 19:52:51 2014.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to indoctrinate's documentation!
========================================
Installation
-... | Add text to documentation home page. | Add text to documentation home page.
| reStructuredText | mit | gtback/indoctrinate | restructuredtext | ## Code Before:
.. indoctrinate documentation master file, created by
sphinx-quickstart on Tue Nov 18 19:52:51 2014.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to indoctrinate's documentation!
========================================... | .. indoctrinate documentation master file, created by
sphinx-quickstart on Tue Nov 18 19:52:51 2014.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to indoctrinate's documentation!
========================================
... | 24 | 1 | 21 | 3 |
4e35b16b8aed2ccb9dbc34a2bb56ce129450546b | mode/formatter/format_server.py | mode/formatter/format_server.py | import socket
from struct import pack, unpack
import sys
import autopep8
PORT = 10011
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 10011)
sock.bind(server_address)
sock.listen(1)
print >>sys.stderr, 'Format server up on %s port %s' % server_address
while True:
connection... | import socket
from struct import pack, unpack
import sys
import autopep8
PORT = 10011
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 10011)
sock.bind(server_address)
sock.listen(1)
print >>sys.stderr, 'Format server up on %s port %s' % server_address
while True:
connection... | Fix a bug in format server not fully reading 4-byte length. | Fix a bug in format server not fully reading 4-byte length.
| Python | apache-2.0 | tildebyte/processing.py,mashrin/processing.py,Luxapodular/processing.py,tildebyte/processing.py,Luxapodular/processing.py,tildebyte/processing.py,mashrin/processing.py,mashrin/processing.py,jdf/processing.py,jdf/processing.py,Luxapodular/processing.py,jdf/processing.py | python | ## Code Before:
import socket
from struct import pack, unpack
import sys
import autopep8
PORT = 10011
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 10011)
sock.bind(server_address)
sock.listen(1)
print >>sys.stderr, 'Format server up on %s port %s' % server_address
while True... | import socket
from struct import pack, unpack
import sys
import autopep8
PORT = 10011
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 10011)
sock.bind(server_address)
sock.listen(1)
print >>sys.stderr, 'Format server up on %s port %s' % server_address
... | 4 | 0.133333 | 3 | 1 |
c3d3dc14031c44510b948ad17b4c395906603cc6 | database/factories/UserFactory.php | database/factories/UserFactory.php | <?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories pro... | <?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories pro... | Add comment with the value of the hashed password | Add comment with the value of the hashed password | PHP | apache-2.0 | hackel/laravel,tinywitch/laravel,hackel/laravel,slimkit/thinksns-plus,cbnuke/FilesCollection,cbnuke/FilesCollection,slimkit/thinksns-plus,hackel/laravel | php | ## Code Before:
<?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your applicatio... | <?php
use Faker\Generator as Faker;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your appl... | 2 | 0.086957 | 1 | 1 |
cb6689fc1b0c1da1f3596f5cb4017aa71a28189b | src/index.coffee | src/index.coffee | sysPath = require 'path'
compileHBS = require './ember-handlebars-compiler'
module.exports = class EmberHandlebarsCompiler
brunchPlugin: yes
type: 'template'
extension: 'hbs'
precompile: off
root: null
modulesPrefix: 'module.exports = '
constructor: (@config) ->
if @config.files.templates.preco... | sysPath = require 'path'
compileHBS = require './ember-handlebars-compiler'
module.exports = class EmberHandlebarsCompiler
brunchPlugin: yes
type: 'template'
extension: 'hbs'
precompile: off
root: null
modulesPrefix: 'module.exports = '
constructor: (@config) ->
if @config.files.templates.preco... | Use the configured default extension | Use the configured default extension
Right now the code does not take defaultExtension into account.
| CoffeeScript | mit | bartsqueezy/ember-handlebars-brunch,rvermillion/ember-handlebars-brunch | coffeescript | ## Code Before:
sysPath = require 'path'
compileHBS = require './ember-handlebars-compiler'
module.exports = class EmberHandlebarsCompiler
brunchPlugin: yes
type: 'template'
extension: 'hbs'
precompile: off
root: null
modulesPrefix: 'module.exports = '
constructor: (@config) ->
if @config.files... | sysPath = require 'path'
compileHBS = require './ember-handlebars-compiler'
module.exports = class EmberHandlebarsCompiler
brunchPlugin: yes
type: 'template'
extension: 'hbs'
precompile: off
root: null
modulesPrefix: 'module.exports = '
constructor: (@config) ->
if @co... | 2 | 0.055556 | 2 | 0 |
2edcb77935d0c0169ea63f27cd030fa048dc118f | Tidy_tapas_files.sh | Tidy_tapas_files.sh |
declare -a arr=("HD202206-2")
for FOLDER in "${arr[@]}"
do
echo "Moving to", $FOLDER, "xml files"
cd ~/Phd/data/Crires/BDs-DRACS/$FOLDER/
mkdir Telluric_files
mv tapas_*ipac Telluric_files/
mv *tapas*request*.xml Telluric_files/
done |
declare -a arr=("HD202206-1" "HD202206-2" "HD202206-3"
"HD162020-1" "HD162020-2"
"HD167665-1a" "HD167665-1b" "HD167665-2"
"HD168443-1" "HD168443-2"
"HD211847-1" "HD211847-2"
"HD4747-1")
declare -a arr2=("HD30501-1" "HD30501-2" "HD30501-2b" "HD30501-3")
for FOLDER in "${arr[@]}"
do
echo "Tidying telluric fi... | Add tiding of HD30501 data | Add tiding of HD30501 data
| Shell | mit | jason-neal/equanimous-octo-tribble,jason-neal/equanimous-octo-tribble,jason-neal/equanimous-octo-tribble | shell | ## Code Before:
declare -a arr=("HD202206-2")
for FOLDER in "${arr[@]}"
do
echo "Moving to", $FOLDER, "xml files"
cd ~/Phd/data/Crires/BDs-DRACS/$FOLDER/
mkdir Telluric_files
mv tapas_*ipac Telluric_files/
mv *tapas*request*.xml Telluric_files/
done
## Instruction:
Add tiding of HD30501 data
## ... |
- declare -a arr=("HD202206-2")
+
+ declare -a arr=("HD202206-1" "HD202206-2" "HD202206-3"
+ "HD162020-1" "HD162020-2"
+ "HD167665-1a" "HD167665-1b" "HD167665-2"
+ "HD168443-1" "HD168443-2"
+ "HD211847-1" "HD211847-2"
+ "HD4747-1")
+
+ declare -a arr2=("HD30501-1" "HD30501-2" "HD30501-2b" "HD30501-3")
fo... | 23 | 1.916667 | 21 | 2 |
a34fc77ae3f1cd8c0bd992b22a46299cfc34635f | package.json | package.json | {
"name": "ActiveU",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
"meteor-node-stubs": "~0.2.4",
"react": "^15.5.4",
"react-addons-pure-render-mixin": "^15.5.2",
"react-dom": "^15.5.4"
}
}
| {
"name": "ActiveU",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
"meteor-node-stubs": "~0.2.4",
"react": "^15.5.4",
"react-addons-pure-render-mixin": "^15.5.2",
"react-bootstrap": "^0.31.0",
"react-dom": "^15.5.4",
"react... | Add react, router & bootstrap dps | Add react, router & bootstrap dps
| JSON | mit | f-martinez11/ActiveU,f-martinez11/ActiveU | json | ## Code Before:
{
"name": "ActiveU",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
"meteor-node-stubs": "~0.2.4",
"react": "^15.5.4",
"react-addons-pure-render-mixin": "^15.5.2",
"react-dom": "^15.5.4"
}
}
## Instruction:
Add re... | {
"name": "ActiveU",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.20.0",
"meteor-node-stubs": "~0.2.4",
"react": "^15.5.4",
"react-addons-pure-render-mixin": "^15.5.2",
+ "react-bootstrap": "^0.31.0",
- "react-d... | 5 | 0.357143 | 4 | 1 |
01b389977382080bc7fb50bebcb43780cfda852b | README.md | README.md | [](https://magnum.travis-ci.com/facebook/componentkit)
ComponentKit is a view framework for iOS that is heavily inspired by React. It takes a functional, declarative approach to building UI. It was built to ... | [](https://magnum.travis-ci.com/facebook/componentkit)
ComponentKit is a view framework for iOS that is heavily inspired by React. It takes a functional, declarative approach to building UI. It was built to ... | Use relative link to CONTRIBUTING.md | Use relative link to CONTRIBUTING.md | Markdown | bsd-3-clause | stevielu/componentkit,avnerbarr/componentkit,modocache/componentkit,TribeMedia/componentkit,IveWong/componentkit,bricooke/componentkit,dstnbrkr/componentkit,ernestopino/componentkit,21451061/componentkit,dstnbrkr/componentkit,orta/componentkit,yiding/componentkit,IveWong/componentkit,pairyo/componentkit,21451061/compon... | markdown | ## Code Before:
[](https://magnum.travis-ci.com/facebook/componentkit)
ComponentKit is a view framework for iOS that is heavily inspired by React. It takes a functional, declarative approach to building UI. ... | [](https://magnum.travis-ci.com/facebook/componentkit)
ComponentKit is a view framework for iOS that is heavily inspired by React. It takes a functional, declarative approach to building UI. It was bui... | 2 | 0.071429 | 1 | 1 |
2e38230e141652cc6768010a314a5f80cdb92ec3 | Code/Compiler/Extrinsic-environment/symbol-value.lisp | Code/Compiler/Extrinsic-environment/symbol-value.lisp | (cl:in-package #:sicl-extrinsic-environment)
(defun find-variable-entry (symbol env)
(loop for entry in (dynamic-environment env)
do (when (and (typep entry 'variable-binding)
(eq (symbol entry) symbol))
(return entry))))
(defun symbol-value (symbol env)
(let ((entry (find-variable-entry symbol env... | (cl:in-package #:sicl-extrinsic-environment)
(defun find-variable-entry (symbol dynamic-environment)
(loop for entry in dynamic-environment
do (when (and (typep entry 'variable-binding)
(eq (symbol entry) symbol))
(return entry))))
(defun symbol-value (symbol env)
(let* ((dynamic-environment *dynam... | Modify according to new way of transmitting the dynamic environment. | Modify according to new way of transmitting the dynamic environment.
| Common Lisp | bsd-2-clause | vtomole/SICL,clasp-developers/SICL,vtomole/SICL,clasp-developers/SICL,clasp-developers/SICL,clasp-developers/SICL,vtomole/SICL,vtomole/SICL | common-lisp | ## Code Before:
(cl:in-package #:sicl-extrinsic-environment)
(defun find-variable-entry (symbol env)
(loop for entry in (dynamic-environment env)
do (when (and (typep entry 'variable-binding)
(eq (symbol entry) symbol))
(return entry))))
(defun symbol-value (symbol env)
(let ((entry (find-variable-... | (cl:in-package #:sicl-extrinsic-environment)
- (defun find-variable-entry (symbol env)
+ (defun find-variable-entry (symbol dynamic-environment)
? ++++++++ ++++++++
- (loop for entry in (dynamic-environment env)
? - -----
+ (loop for... | 16 | 0.615385 | 9 | 7 |
cd4fc6b8c3eb7e5e90f42311906122f108355ede | HISTORY.rst | HISTORY.rst | .. :changelog:
Release History
---------------
0.1.3 (Not yet released)
++++++++++++++++++
- Removed *.md from the MANIFEST file as it warns when installing that no files matching *.md are found.
- Fix allowing an IntervalSet to be initialised with a generator.
0.1.2 (2013-10-12)
++++++++++++++++++
- Fixed the ren... | .. :changelog:
Release History
---------------
0.1.4 (Not yet released)
++++++++++++++++++
0.1.3 (2013-11-16)
++++++++++++++++++
- Removed *.md from the MANIFEST file as it warns when installing that no files matching *.md are found.
- Fix allowing an IntervalSet to be initialised with a generator.
0.1.2 (2013-10... | Update changelog before rolling a new release | Update changelog before rolling a new release
| reStructuredText | mit | intiocean/pyinter,Shopify/pyinter | restructuredtext | ## Code Before:
.. :changelog:
Release History
---------------
0.1.3 (Not yet released)
++++++++++++++++++
- Removed *.md from the MANIFEST file as it warns when installing that no files matching *.md are found.
- Fix allowing an IntervalSet to be initialised with a generator.
0.1.2 (2013-10-12)
++++++++++++++++++
... | .. :changelog:
Release History
---------------
- 0.1.3 (Not yet released)
? ^
+ 0.1.4 (Not yet released)
? ^
+ ++++++++++++++++++
+
+
+ 0.1.3 (2013-11-16)
++++++++++++++++++
- Removed *.md from the MANIFEST file as it warns when installing that no files matching *.md are found.
- Fix al... | 6 | 0.24 | 5 | 1 |
24241e9be99a697dc1282b11e54175d852358166 | docs/templating/examples/peering-request-email.md | docs/templating/examples/peering-request-email.md | ```no-highlight
{#- With several affiliated autonomous systems `my_as` is a list -#}
{%- set my_asn = my_as.asn -%}
Dear {{ autonomous_system.name }},
We are AS{{ my_asn }}.
We found that we could peer at the following IXPs:
{%- for ix in internet_exchanges %}
- IX Name: {{ ix.internet_exchange.name }}
AS{{ my_... | ```no-highlight
{%- set local_as = affiliated_autonomous_systems | get(asn=64500) %}
Dear {{ autonomous_system.name }},
We are AS {{ local_as.asn }} peering team,
We found that we could peer at the following IXPs:
{%- for ixp in autonomous_system | shared_ixps(local_as) %}
- IX Name: {{ ixp.name }}
AS{{ local_a... | Fix email template example (in theory) | Fix email template example (in theory)
| Markdown | apache-2.0 | respawner/peering-manager,respawner/peering-manager,respawner/peering-manager,respawner/peering-manager | markdown | ## Code Before:
```no-highlight
{#- With several affiliated autonomous systems `my_as` is a list -#}
{%- set my_asn = my_as.asn -%}
Dear {{ autonomous_system.name }},
We are AS{{ my_asn }}.
We found that we could peer at the following IXPs:
{%- for ix in internet_exchanges %}
- IX Name: {{ ix.internet_exchange.name... | ```no-highlight
+ {%- set local_as = affiliated_autonomous_systems | get(asn=64500) %}
- {#- With several affiliated autonomous systems `my_as` is a list -#}
- {%- set my_asn = my_as.asn -%}
Dear {{ autonomous_system.name }},
- We are AS{{ my_asn }}.
+ We are AS {{ local_as.asn }} peering team,
We found tha... | 37 | 1.193548 | 17 | 20 |
292949c38e6207a6292a7caa2f301f91326780cb | features/builtin_contracts/args.feature | features/builtin_contracts/args.feature | Feature: Args (TODO)
| Feature: Args
Used for `*args` (variadic functions). Takes contract and uses it to validate
every element passed in through `*args`.
```ruby
Contract C::Args[C::Num] => C::Bool
def example(*args)
```
This example contract will validate all arguments passed through `*args` to
accept only numbers.
B... | Add docs for builtin Args contract | Add docs for builtin Args contract
| Cucumber | bsd-2-clause | egonSchiele/contracts.ruby,smt116/contracts.ruby,smt116/contracts.ruby,egonSchiele/contracts.ruby | cucumber | ## Code Before:
Feature: Args (TODO)
## Instruction:
Add docs for builtin Args contract
## Code After:
Feature: Args
Used for `*args` (variadic functions). Takes contract and uses it to validate
every element passed in through `*args`.
```ruby
Contract C::Args[C::Num] => C::Bool
def example(*args)
```
... | - Feature: Args (TODO)
? -------
+ Feature: Args
+
+ Used for `*args` (variadic functions). Takes contract and uses it to validate
+ every element passed in through `*args`.
+
+ ```ruby
+ Contract C::Args[C::Num] => C::Bool
+ def example(*args)
+ ```
+
+ This example contract will validat... | 81 | 81 | 80 | 1 |
53e4b0cc1d9309efb8596acd482cb3478294b82c | tasks/openstack_update_hosts_file.yml | tasks/openstack_update_hosts_file.yml | ---
# Copyright 2014, Rackspace US, Inc.
#
# 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 agreed to ... | ---
# Copyright 2014, Rackspace US, Inc.
#
# 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 agreed to ... | Write script to /var/tmp instead of /usr/local/bin | Write script to /var/tmp instead of /usr/local/bin
/var/tmp is world writeable which allows this local
task to be run by non-root users
Further, the deployment host never executes the script
so there is no need for it to be in a location which is
in the $PATH
Change-Id: Icf47ca346634885cab521fc054493ce623f17cb9
| YAML | apache-2.0 | openstack/openstack-ansible-openstack_hosts,openstack/openstack-ansible-openstack_hosts | yaml | ## Code Before:
---
# Copyright 2014, Rackspace US, Inc.
#
# 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 l... | ---
# Copyright 2014, Rackspace US, Inc.
#
# 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 applicab... | 4 | 0.105263 | 2 | 2 |
9d660f328184ba2bd1dc22e8d319a57348f1d446 | app/views/layouts/application.html.haml | app/views/layouts/application.html.haml | !!! 5
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:charset => 'utf-8'}/
%meta{:content => "Simon Huerlimann <simon.huerlimann@cyt.ch>", :name => "author"}/
%link{:rel => "shortcut icon", :href => image_path('favicon.ico')}/
= stylesheet_link_tag 'compiled/screen.css', :media =>... | !!! 5
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:charset => 'utf-8'}/
%meta{:content => "Simon Huerlimann <simon.huerlimann@cyt.ch>", :name => "author"}/
%link{:rel => "shortcut icon", :href => image_path('favicon.ico')}/
= stylesheet_link_tag 'compiled/screen.css', :media =>... | Add notice output to layout. | Add notice output to layout.
| Haml | agpl-3.0 | wtag/bookyt,xuewenfei/bookyt,gaapt/bookyt,gaapt/bookyt,hauledev/bookyt,silvermind/bookyt,huerlisi/bookyt,hauledev/bookyt,gaapt/bookyt,xuewenfei/bookyt,silvermind/bookyt,huerlisi/bookyt,silvermind/bookyt,silvermind/bookyt,hauledev/bookyt,gaapt/bookyt,huerlisi/bookyt,wtag/bookyt,wtag/bookyt,xuewenfei/bookyt,hauledev/book... | haml | ## Code Before:
!!! 5
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:charset => 'utf-8'}/
%meta{:content => "Simon Huerlimann <simon.huerlimann@cyt.ch>", :name => "author"}/
%link{:rel => "shortcut icon", :href => image_path('favicon.ico')}/
= stylesheet_link_tag 'compiled/screen... | !!! 5
%html{:xmlns => "http://www.w3.org/1999/xhtml"}
%head
%meta{:charset => 'utf-8'}/
%meta{:content => "Simon Huerlimann <simon.huerlimann@cyt.ch>", :name => "author"}/
%link{:rel => "shortcut icon", :href => image_path('favicon.ico')}/
= stylesheet_link_tag 'compiled/scre... | 7 | 0.189189 | 4 | 3 |
adaa9cdfd9ab00dfec042bd4c13e9f7869f22d83 | src/Behat/Symfony2Extension/Context/KernelDictionary.php | src/Behat/Symfony2Extension/Context/KernelDictionary.php | <?php
namespace Behat\Symfony2Extension\Context;
use Symfony\Component\HttpKernel\KernelInterface;
/*
* This file is part of the Behat\Symfony2Extension.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with ... | <?php
namespace Behat\Symfony2Extension\Context;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/*
* This file is part of the Behat\Symfony2Extension.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license informati... | Fix PHPDocs for proper IDE completion | Fix PHPDocs for proper IDE completion
| PHP | mit | Behat/Symfony2Extension,piwi91/Symfony2Extension | php | ## Code Before:
<?php
namespace Behat\Symfony2Extension\Context;
use Symfony\Component\HttpKernel\KernelInterface;
/*
* This file is part of the Behat\Symfony2Extension.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was d... | <?php
namespace Behat\Symfony2Extension\Context;
use Symfony\Component\HttpKernel\KernelInterface;
+ use Symfony\Component\DependencyInjection\ContainerInterface;
/*
* This file is part of the Behat\Symfony2Extension.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyrig... | 5 | 0.09434 | 3 | 2 |
4710449519c214b71cb30fe3e6afbdb84ccaac23 | data/css/modules/card/_legacyPolaroid.scss | data/css/modules/card/_legacyPolaroid.scss | .CardLegacyPolaroid {
padding: 10px 10px 0px 10px;
margin: 7px;
background-color: white;
&__title {
padding: 4px 0px;
color: $accent-dark-color;
font-family: $title-font, sans-serif;
font-size: 0.77em;
font-weight: bold;
&.highlighted {
backg... | .CardLegacyPolaroid {
padding: 10px;
margin: 7px;
background-color: white;
&__title {
padding: 4px 0px;
color: $accent-dark-color;
font-family: $title-font, sans-serif;
font-size: 0.77em;
font-weight: bold;
&.highlighted {
background-color: $... | Add padding-bototm on Card.LegacyPolaroid module | Add padding-bototm on Card.LegacyPolaroid module
Changed padding to 10px all around
https://phabricator.endlessm.com/T15368
| SCSS | lgpl-2.1 | endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib | scss | ## Code Before:
.CardLegacyPolaroid {
padding: 10px 10px 0px 10px;
margin: 7px;
background-color: white;
&__title {
padding: 4px 0px;
color: $accent-dark-color;
font-family: $title-font, sans-serif;
font-size: 0.77em;
font-weight: bold;
&.highlighted {
... | .CardLegacyPolaroid {
- padding: 10px 10px 0px 10px;
+ padding: 10px;
margin: 7px;
background-color: white;
&__title {
padding: 4px 0px;
color: $accent-dark-color;
font-family: $title-font, sans-serif;
font-size: 0.77em;
font-weight: bold;... | 2 | 0.040816 | 1 | 1 |
1cfb839eece31810a88d761792388318c3aec6f4 | recipes/whatshap/meta.yaml | recipes/whatshap/meta.yaml | package:
name: whatshap
version: "0.13"
about:
home: https://whatshap.readthedocs.io/
license: MIT License
summary: 'phase genomic variants using DNA sequencing reads (haplotype assembly)'
source:
fn: whatshap-0.13.tar.gz
url: https://pypi.python.org/packages/e2/f3/c71cb4bc3ba3b1234ee0c5fe729c60440164e0... | package:
name: whatshap
version: "0.13"
about:
home: https://whatshap.readthedocs.io/
license: MIT License
summary: 'phase genomic variants using DNA sequencing reads (haplotype assembly)'
source:
fn: whatshap-0.13.tar.gz
url: https://pypi.python.org/packages/e2/f3/c71cb4bc3ba3b1234ee0c5fe729c60440164e0... | Build WhatsHap on OS X | Build WhatsHap on OS X
| YAML | mit | instituteofpathologyheidelberg/bioconda-recipes,acaprez/recipes,matthdsm/bioconda-recipes,ThomasWollmann/bioconda-recipes,ivirshup/bioconda-recipes,ivirshup/bioconda-recipes,instituteofpathologyheidelberg/bioconda-recipes,gvlproject/bioconda-recipes,jasper1918/bioconda-recipes,HassanAmr/bioconda-recipes,mcornwell1957/b... | yaml | ## Code Before:
package:
name: whatshap
version: "0.13"
about:
home: https://whatshap.readthedocs.io/
license: MIT License
summary: 'phase genomic variants using DNA sequencing reads (haplotype assembly)'
source:
fn: whatshap-0.13.tar.gz
url: https://pypi.python.org/packages/e2/f3/c71cb4bc3ba3b1234ee0c5... | package:
name: whatshap
version: "0.13"
about:
home: https://whatshap.readthedocs.io/
license: MIT License
summary: 'phase genomic variants using DNA sequencing reads (haplotype assembly)'
source:
fn: whatshap-0.13.tar.gz
url: https://pypi.python.org/packages/e2/f3/c71cb4bc3ba3b1... | 5 | 0.125 | 4 | 1 |
b7bb11ab992d77c591f0c58151c00e9febb43861 | extensions/EGL_ANGLE_software_display.txt | extensions/EGL_ANGLE_software_display.txt | Name
ANGLE_software_display
Name Strings
EGL_ANGLE_software_display
Contributors
John Bauman
Daniel Koch
Contacts
John Bauman, Google Inc. (jbauman 'at' chromium.org)
Status
In progress
Version
Version 1, July 12, 2011
Number
EGL Extension #??
Dependencies
This extensi... | Name
ANGLE_software_display
Name Strings
EGL_ANGLE_software_display
Contributors
John Bauman
Daniel Koch
Contacts
John Bauman, Google Inc. (jbauman 'at' chromium.org)
Status
In progress
Version
Version 2, October 19, 2011
Number
EGL Extension #??
Dependencies
This exte... | Add token to ANGLE_software_display extension | Add token to ANGLE_software_display extension
git-svn-id: a070b70d2b8c44c266a3870c0cddd9a0ee470458@796 736b8ea6-26fd-11df-bfd4-992fa37f6226
| Text | bsd-3-clause | stammen/angleproject,csa7mdm/angle,cvsuser-chromium/chromium-third-party_angle_dx11,android-ia/platform_external_chromium_org_third_party_angle,mlfarrell/angle,vvuk/angle,xin3liang/platform_external_chromium_org_third_party_angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,android-ia/platform_extern... | text | ## Code Before:
Name
ANGLE_software_display
Name Strings
EGL_ANGLE_software_display
Contributors
John Bauman
Daniel Koch
Contacts
John Bauman, Google Inc. (jbauman 'at' chromium.org)
Status
In progress
Version
Version 1, July 12, 2011
Number
EGL Extension #??
Dependencies
... | Name
ANGLE_software_display
Name Strings
EGL_ANGLE_software_display
Contributors
John Bauman
Daniel Koch
Contacts
John Bauman, Google Inc. (jbauman 'at' chromium.org)
Status
In progress
Version
- Version 1, July 12, 2011
+ Version ... | 6 | 0.095238 | 4 | 2 |
7a795b2a276e9a499aab6443d4ca53683d364b7d | README.md | README.md | ===
[](https://travis-ci.org/emahags/puppet-module-resource)
Module to manage resources
===
# Compatibility
---------------
This module is built for use with Puppet v3 on the following OS families.
* EL 6
===
# Parameters
----... | ===
[](https://travis-ci.org/emahags/puppet-module-resource)
Module to manage resources
===
# Compatibility
---------------
This module is built for use with Puppet v3 on the following OS families.
* EL 6
===
# Parameters
----... | Update readme with all available variables | Update readme with all available variables
| Markdown | apache-2.0 | emahags/puppet-module-resource | markdown | ## Code Before:
===
[](https://travis-ci.org/emahags/puppet-module-resource)
Module to manage resources
===
# Compatibility
---------------
This module is built for use with Puppet v3 on the following OS families.
* EL 6
===
#... | ===
[](https://travis-ci.org/emahags/puppet-module-resource)
Module to manage resources
===
# Compatibility
---------------
This module is built for use with Puppet v3 on the following OS families.
* EL... | 64 | 1.52381 | 63 | 1 |
171e43a9aee813c53f970d28379074a0c682575f | src/test/java/AllTests.java | src/test/java/AllTests.java | import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
import br.com.cronapi.rest.security.CronappSecurityTest;
import br.com.cronapi.xml.XmlTest;
impo... | import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
import br.com.cronapi.math.MathTest;
import br.com.cronapi.rest.security.CronappSecurityTest;
im... | Add class test in suite class test. | :ok_hand: Add class test in suite class test.
| Java | mit | technecloud/cronapi-java | java | ## Code Before:
import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
import br.com.cronapi.rest.security.CronappSecurityTest;
import br.com.cronapi.x... | import br.com.cronapi.DatabaseTest;
import br.com.cronapi.RestClientTest;
import br.com.cronapi.VarTest;
import br.com.cronapi.dateTime.DateTimeTest;
import br.com.cronapi.json.JsonTest;
import br.com.cronapi.list.ListTest;
+ import br.com.cronapi.math.MathTest;
import br.com.cronapi.rest.security.Cronapp... | 3 | 0.166667 | 2 | 1 |
a0049a1e2278208695c00a5f08238f84c01f9322 | build/build.ps1 | build/build.ps1 | $toolsDirectory = '.\tools'
if (!(Test-Path -path $toolsDirectory )) { New-Item $toolsDirectory -Type Directory }
$nuget = '.\tools\nuget.exe'
if ((Test-Path $nuget) -eq $false) {
Invoke-WebRequest -Uri http://nuget.org/nuget.exe -OutFile $nuget
}
Set-Alias nuget $nuget
$cake = '.\tools\Cake\Cake.exe'
if ((Test-Pat... | $toolsDirectory = '.\tools'
if (!(Test-Path -path $toolsDirectory )) { New-Item $toolsDirectory -Type Directory }
$nuget = '.\tools\nuget.exe'
if ((Test-Path $nuget) -eq $false) {
Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile $nuget
}
Set-Alias nuget $nuget
$cake = '.\t... | Use the latest NuGet version. | Use the latest NuGet version.
| PowerShell | mit | MatthewKing/DeviceId | powershell | ## Code Before:
$toolsDirectory = '.\tools'
if (!(Test-Path -path $toolsDirectory )) { New-Item $toolsDirectory -Type Directory }
$nuget = '.\tools\nuget.exe'
if ((Test-Path $nuget) -eq $false) {
Invoke-WebRequest -Uri http://nuget.org/nuget.exe -OutFile $nuget
}
Set-Alias nuget $nuget
$cake = '.\tools\Cake\Cake.ex... | $toolsDirectory = '.\tools'
if (!(Test-Path -path $toolsDirectory )) { New-Item $toolsDirectory -Type Directory }
$nuget = '.\tools\nuget.exe'
if ((Test-Path $nuget) -eq $false) {
- Invoke-WebRequest -Uri http://nuget.org/nuget.exe -OutFile $nuget
+ Invoke-WebRequest -Uri https://dist.nuget.org/win-x86-c... | 2 | 0.125 | 1 | 1 |
6d9f2d7c6de8090ad3b8a6aa88e576e3944dde97 | docs/manage/tpl/vendor/submit_email.txt | docs/manage/tpl/vendor/submit_email.txt | [%- page.style='bare.html' %]To: ntppool-vendors@develooper.com
From: ([% combust.user.username %]) [% combust.user.email %]
Subject: New vendor zone application: [% vz.zone_name %]
[% combust.user.username %] requested a [% vz.zone_name %] zone for [% vz.organization_name %].
[% combust.config.base_url('ntppool') %]... | [%- page.style='bare.html' %]To: ntppool-vendors@develooper.com
From: ([% combust.user.username %]) [% combust.user.email %]
Subject: New vendor zone application: [% vz.zone_name %]
[% combust.user.username %] requested a [% vz.zone_name %] zone for [% vz.organization_name %].
[% combust.manage_url('/manage/vendor/zo... | Fix manage vendor zone URL in 'vendor zone request submitted' email | Fix manage vendor zone URL in 'vendor zone request submitted' email
| Text | apache-2.0 | tklauser/ntppool,tklauser/ntppool,punitvara/ntppool,punitvara/ntppool,tklauser/ntppool,tklauser/ntppool,punitvara/ntppool | text | ## Code Before:
[%- page.style='bare.html' %]To: ntppool-vendors@develooper.com
From: ([% combust.user.username %]) [% combust.user.email %]
Subject: New vendor zone application: [% vz.zone_name %]
[% combust.user.username %] requested a [% vz.zone_name %] zone for [% vz.organization_name %].
[% combust.config.base_u... | [%- page.style='bare.html' %]To: ntppool-vendors@develooper.com
From: ([% combust.user.username %]) [% combust.user.email %]
Subject: New vendor zone application: [% vz.zone_name %]
[% combust.user.username %] requested a [% vz.zone_name %] zone for [% vz.organization_name %].
- [% combust.config.base_url... | 2 | 0.111111 | 1 | 1 |
5dc87015823a4787234eb2153a780a5580f4ea74 | app/views/patients/death.html.haml | app/views/patients/death.html.haml | .main-content
.row.g-center
= render partial: "patients/patient_info_header", locals: { model: @patient }
.row
= render partial: "patients/mini_renal_profile", locals: { model: @patient }
.row
%h5 Deceased Patients
.row
%ul.no-bullet
- @dead_patients.each do |patient|
%li
= ... | .main-content
.row
%h5 Deceased Patients
.row
%ul.no-bullet
- @dead_patients.each do |patient|
%li
= patient.full_name
| Fix failing 'manage patients' functionality | Fix failing 'manage patients' functionality
| Haml | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | haml | ## Code Before:
.main-content
.row.g-center
= render partial: "patients/patient_info_header", locals: { model: @patient }
.row
= render partial: "patients/mini_renal_profile", locals: { model: @patient }
.row
%h5 Deceased Patients
.row
%ul.no-bullet
- @dead_patients.each do |patient|
... | .main-content
- .row.g-center
- = render partial: "patients/patient_info_header", locals: { model: @patient }
-
- .row
- = render partial: "patients/mini_renal_profile", locals: { model: @patient }
.row
%h5 Deceased Patients
.row
%ul.no-bullet
- @dead_patients.each do |patient| ... | 5 | 0.3125 | 0 | 5 |
cf3855fd6accb771143f4c3d814d202692385a18 | lib/zendesk_apps_support/validations/source.rb | lib/zendesk_apps_support/validations/source.rb | require 'jshintrb'
module ZendeskAppsSupport
module Validations
module Source
LINTER_OPTIONS = {
# enforcing options:
:noarg => true,
:undef => true,
# relaxing options:
:eqnull => true,
:laxcomma => true,
# predefined globals:
:predef => %... | require 'jshintrb'
module ZendeskAppsSupport
module Validations
module Source
LINTER_OPTIONS = {
# enforcing options:
:noarg => true,
:undef => true,
# relaxing options:
:eqnull => true,
:laxcomma => true,
# predefined globals:
:predef => %... | Add window and document object to jshint validation | Add window and document object to jshint validation
| Ruby | apache-2.0 | zendesk/zendesk_apps_support,zendesk/zendesk_apps_support,zendesk/zendesk_apps_support | ruby | ## Code Before:
require 'jshintrb'
module ZendeskAppsSupport
module Validations
module Source
LINTER_OPTIONS = {
# enforcing options:
:noarg => true,
:undef => true,
# relaxing options:
:eqnull => true,
:laxcomma => true,
# predefined globals:
... | require 'jshintrb'
module ZendeskAppsSupport
module Validations
module Source
LINTER_OPTIONS = {
# enforcing options:
:noarg => true,
:undef => true,
# relaxing options:
:eqnull => true,
:laxcomma => true,
# predefin... | 3 | 0.06383 | 2 | 1 |
7f811495c19935e80027d0314851ae9ade681a30 | test/utility/css/font-size.spec.js | test/utility/css/font-size.spec.js | import assert from 'power-assert';
import test from '../../helper/test';
import fontSize, {PX, PT} from '../../../lib/utility/css/font-size';
describe('fontSize', () => {
it('returns the font size of an element in pixels', async () => {
await test(
`
<p style="font-size: 12px">Lorem ipsum</p>
`... | import assert from 'power-assert';
import test from '../../helper/test';
import fontSize, {PX, PT} from '../../../lib/utility/css/font-size';
describe('fontSize', () => {
it('returns the font size of an element in pixels', async () => {
await test(
`
<p style="font-size: 12px">Lorem ipsum</p>
`... | Add additional font size test | Add additional font size test
| JavaScript | mit | kasperisager/allie | javascript | ## Code Before:
import assert from 'power-assert';
import test from '../../helper/test';
import fontSize, {PX, PT} from '../../../lib/utility/css/font-size';
describe('fontSize', () => {
it('returns the font size of an element in pixels', async () => {
await test(
`
<p style="font-size: 12px">Lorem i... | import assert from 'power-assert';
import test from '../../helper/test';
import fontSize, {PX, PT} from '../../../lib/utility/css/font-size';
describe('fontSize', () => {
it('returns the font size of an element in pixels', async () => {
await test(
`
<p style="font-size: 12px">Lorem... | 7 | 0.179487 | 7 | 0 |
94c78cda2fc8679f04170a12102907fa85cb2cbe | sass/griddle/_span.scss | sass/griddle/_span.scss | @mixin span($start, $span) {
grid-column: $start / span $span;
}
@mixin column-span($start, $span) {
@include span($start, $span);
}
// ----
@mixin vertical-span($start, $span) {
grid-row: $start / span $span;
}
@mixin row-span($start, $span) {
@include vertical-span($start, $span);
}
| @mixin span($span, $start: false) {
@if $start {
grid-column: $start / span $span;
}
@else {
grid-column: span $span;
}
}
@mixin column-span($span, $start: false) {
@include span($span, $start);
}
// ----
@mixin vertical-span($span, $start: false) {
@if $start {
grid-row: $start / span $span;... | Swap $span and $start in span mixins | :boom: Swap $span and $start in span mixins
Align with Singularity, number to span first, from where second
| SCSS | mit | at-import/griddle | scss | ## Code Before:
@mixin span($start, $span) {
grid-column: $start / span $span;
}
@mixin column-span($start, $span) {
@include span($start, $span);
}
// ----
@mixin vertical-span($start, $span) {
grid-row: $start / span $span;
}
@mixin row-span($start, $span) {
@include vertical-span($start, $span);
}
## In... | - @mixin span($start, $span) {
+ @mixin span($span, $start: false) {
+ @if $start {
- grid-column: $start / span $span;
+ grid-column: $start / span $span;
? ++
+ }
+ @else {
+ grid-column: span $span;
+ }
}
- @mixin column-span($start, $span) {
? ^ ^ ^^^
+ @mixin colum... | 26 | 1.529412 | 18 | 8 |
6461a126ec28c05ef2a4d6b735e6ee7a79a480d1 | .travis.yml | .travis.yml | language: php
php:
- "5.4"
- "5.5"
- "5.6"
- "nightly"
- "hhvm"
sudo: false
before_script:
- composer install --no-interaction
- cp config/app_travis.php config/app.php
- cp config/oauth_example.php config/oauth.php
- mysql -e 'create database pmaerr;'
- wget https://scrutinizer-ci.com/ocular.phar
s... | language: php
php:
- "5.6"
- "nightly"
- "hhvm"
sudo: false
before_script:
- composer install --no-interaction
- cp config/app_travis.php config/app.php
- cp config/oauth_example.php config/oauth.php
- mysql -e 'create database pmaerr;'
- wget https://scrutinizer-ci.com/ocular.phar
script:
- bin/cake ... | Remove older PHP versions from Travis | Remove older PHP versions from Travis
Our production is 5.6 so there is no need to support anything older.
Signed-off-by: Michal Čihař <a2df1e659c9fd2578de0a26565357cb273292eeb@cihar.com>
| YAML | mit | phpmyadmin/error-reporting-server,madhuracj/error-reporting-server,ujjwalwahi/error-reporting-server,devenbansod/error-reporting-server,ujjwalwahi/error-reporting-server,devenbansod/error-reporting-server,madhuracj/error-reporting-server,madhuracj/error-reporting-server,ujjwalwahi/error-reporting-server,phpmyadmin/erro... | yaml | ## Code Before:
language: php
php:
- "5.4"
- "5.5"
- "5.6"
- "nightly"
- "hhvm"
sudo: false
before_script:
- composer install --no-interaction
- cp config/app_travis.php config/app.php
- cp config/oauth_example.php config/oauth.php
- mysql -e 'create database pmaerr;'
- wget https://scrutinizer-ci.c... | language: php
php:
- - "5.4"
- - "5.5"
- "5.6"
- "nightly"
- "hhvm"
sudo: false
before_script:
- composer install --no-interaction
- cp config/app_travis.php config/app.php
- cp config/oauth_example.php config/oauth.php
- mysql -e 'create database pmaerr;'
- wget https://scru... | 2 | 0.083333 | 0 | 2 |
7a7251c3693e01b85109856d00c9d455d60ca84b | src/broker.h | src/broker.h |
class Broker {
public:
Broker(std::string bind, std::string private_key) :
bind_(bind), private_key_(private_key) {}
void main_loop();
private:
void handleMessage(const Message& message);
void sendMessage(Client &client, std::vector<std::string> frames);
std::string readPrivateKey(std... |
class Broker {
public:
Broker(std::string bind, std::string private_key) :
bind_(bind), private_key_(private_key) {}
void main_loop();
private:
void handleMessage(const Message& message);
void sendMessage(Client &client, std::vector<std::string> frames);
std::string readPrivateKey(std... | Use unordered_map rather than map | Use unordered_map rather than map
`unordered_map` containers are faster than map containers to
access individual elements by their key, although they are
generally less efficient for range iteration through a subset
of their elements.
http://www.cplusplus.com/reference/unordered_map/unordered_map/... | C | apache-2.0 | puppetlabs/mc0d,puppetlabs/mc0d | c | ## Code Before:
class Broker {
public:
Broker(std::string bind, std::string private_key) :
bind_(bind), private_key_(private_key) {}
void main_loop();
private:
void handleMessage(const Message& message);
void sendMessage(Client &client, std::vector<std::string> frames);
std::string re... |
class Broker {
public:
Broker(std::string bind, std::string private_key) :
bind_(bind), private_key_(private_key) {}
void main_loop();
private:
void handleMessage(const Message& message);
void sendMessage(Client &client, std::vector<std::string> frames);
std::s... | 4 | 0.181818 | 2 | 2 |
c2bec97044c4205807953fbda5983642c8b2b985 | app/views/map_uploads/_form.html.haml | app/views/map_uploads/_form.html.haml | = simple_form_for(@map_upload, :html => { :class => 'form-inline' }) do |f|
= f.input :file, :as => :file, :label => false, :placeholder => 'Map .bsp, .bsp.bz2 or .zip file with maps'
%button.btn.btn-primary{:type => :submit}
Upload
| = simple_form_for(@map_upload, :html => { :class => 'form-inline' }, data: { turbo: false} ) do |f|
= f.input :file, :as => :file, :label => false, :placeholder => 'Map .bsp, .bsp.bz2 or .zip file with maps'
%button.btn.btn-primary{:type => :submit}
Upload
| Disable turbo on map uploads | Disable turbo on map uploads
| Haml | apache-2.0 | Arie/serveme,Arie/serveme,Arie/serveme,Arie/serveme | haml | ## Code Before:
= simple_form_for(@map_upload, :html => { :class => 'form-inline' }) do |f|
= f.input :file, :as => :file, :label => false, :placeholder => 'Map .bsp, .bsp.bz2 or .zip file with maps'
%button.btn.btn-primary{:type => :submit}
Upload
## Instruction:
Disable turbo on map uploads
## Code After:... | - = simple_form_for(@map_upload, :html => { :class => 'form-inline' }) do |f|
+ = simple_form_for(@map_upload, :html => { :class => 'form-inline' }, data: { turbo: false} ) do |f|
? ++++++++++++++++++++++++
= f.input :file, :as => :file, :label ... | 2 | 0.333333 | 1 | 1 |
4190937c741f56bb4bb8b81621a711bba03fe705 | imhotep/shas.py | imhotep/shas.py | from collections import namedtuple
Remote = namedtuple('Remote', ('name', 'url'))
CommitInfo = namedtuple("CommitInfo", ('commit', 'origin', 'remote_repo'))
class PRInfo(object):
def __init__(self, json):
self.json = json
@property
def base_sha(self):
return self.json['base']['sha']
... | from collections import namedtuple
Remote = namedtuple('Remote', ('name', 'url'))
CommitInfo = namedtuple("CommitInfo", ('commit', 'origin', 'remote_repo'))
class PRInfo(object):
def __init__(self, json):
self.json = json
@property
def base_sha(self):
return self.json['base']['sha']
... | Refactor remote_repo, to return None if there is no remote. | Refactor remote_repo, to return None
if there is no remote.
| Python | mit | richtier/imhotep,justinabrahms/imhotep,justinabrahms/imhotep,Appdynamics/imhotep | python | ## Code Before:
from collections import namedtuple
Remote = namedtuple('Remote', ('name', 'url'))
CommitInfo = namedtuple("CommitInfo", ('commit', 'origin', 'remote_repo'))
class PRInfo(object):
def __init__(self, json):
self.json = json
@property
def base_sha(self):
return self.json['ba... | from collections import namedtuple
Remote = namedtuple('Remote', ('name', 'url'))
CommitInfo = namedtuple("CommitInfo", ('commit', 'origin', 'remote_repo'))
class PRInfo(object):
def __init__(self, json):
self.json = json
@property
def base_sha(self):
return sel... | 12 | 0.3 | 6 | 6 |
c17c6dfe630f24fc6f173e7e9675ea7b32b6fd07 | css/bar-chart-timeline.css | css/bar-chart-timeline.css | .timeline.bar-chart .graph rect {
fill: gray;
}
.timeline.bar-chart .graph rect.selected {
fill: lightgray;
}
.timeline.bar-chart .graph .tooltip {
pointer-events: none;
}
.timeline.bar-chart .graph .tooltip rect {
fill: gray;
stroke: white;
stroke-width: 1px;
}
.timeline.bar-chart .graph .tooltip text ... | .timeline.bar-chart .graph rect {
fill: gray;
}
.timeline.bar-chart .graph rect.selected {
opacity: 0.4;
}
.timeline.bar-chart .graph .tooltip {
pointer-events: none;
}
.timeline.bar-chart .graph .tooltip rect {
fill: gray;
stroke: white;
stroke-width: 1px;
}
.timeline.bar-chart .graph .tooltip text {
... | Modify bar color of bar chart | Modify bar color of bar chart
| CSS | mit | ionstage/timeline,ionstage/timeline | css | ## Code Before:
.timeline.bar-chart .graph rect {
fill: gray;
}
.timeline.bar-chart .graph rect.selected {
fill: lightgray;
}
.timeline.bar-chart .graph .tooltip {
pointer-events: none;
}
.timeline.bar-chart .graph .tooltip rect {
fill: gray;
stroke: white;
stroke-width: 1px;
}
.timeline.bar-chart .grap... | .timeline.bar-chart .graph rect {
fill: gray;
}
.timeline.bar-chart .graph rect.selected {
- fill: lightgray;
+ opacity: 0.4;
}
.timeline.bar-chart .graph .tooltip {
pointer-events: none;
}
.timeline.bar-chart .graph .tooltip rect {
fill: gray;
stroke: white;
stroke-width:... | 2 | 0.0625 | 1 | 1 |
56265fe8c18e7c123cd67778d922307e83861236 | docs/SUMMARY.md | docs/SUMMARY.md |
* [Introduction](index.md)
## Usage
* [Generic contaners](usage/generic_containers.md)
* [Temporary database containers](usage/database_containers.md)
* [Webdriver containers](usage/webdriver_containers.md)
* [Docker Compose](usage/docker_compose.md)
* [Dockerfile containers](usage/dockerfile.md)
* [Windows support]... |
* [Introduction](index.md)
## Generic containers
* [Benefits](usage/generic_containers.md#benefits)
* [Example](usage/generic_containers.md#example)
* [Accessing a container from tests](usage/generic_containers.md#accessing-a-container-from-tests)
* [Options](usage/generic_containers.md#options)
* [Specifying ... | Add extra TOC entries for specific subsections of key docs | Add extra TOC entries for specific subsections of key docs
| Markdown | mit | rnorth/test-containers,barrycommins/testcontainers-java,gorelikov/testcontainers-java,gorelikov/testcontainers-java,gorelikov/testcontainers-java,rnorth/test-containers,outofcoffee/testcontainers-java,gorelikov/testcontainers-java,rnorth/test-containers,testcontainers/testcontainers-java,barrycommins/testcontainers-jav... | markdown | ## Code Before:
* [Introduction](index.md)
## Usage
* [Generic contaners](usage/generic_containers.md)
* [Temporary database containers](usage/database_containers.md)
* [Webdriver containers](usage/webdriver_containers.md)
* [Docker Compose](usage/docker_compose.md)
* [Dockerfile containers](usage/dockerfile.md)
* [... |
* [Introduction](index.md)
- ## Usage
+ ## Generic containers
- * [Generic contaners](usage/generic_containers.md)
? ^ ^ ----- ----
+ * [Benefits](usage/generic_containers.md#benefits)
? ^ ^ +++++++++
+ * [Example](usage/generic_containers.md#example)
+ * [Accessing... | 34 | 3.090909 | 32 | 2 |
fdd224baa838f665553eb3ce66eeaae942db80f6 | .travis.yml | .travis.yml | language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- nightly
- hhvm
matrix:
allow_failures:
- php: hhvm
- php: nightly
before_script:
- composer install --no-interaction
| language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- nightly
- hhvm
matrix:
allow_failures:
- php: hhvm
- php: nightly
- php: 7
before_script:
- composer install --no-interaction
| Allow tests to fail against PHP7 until final release, since we are hitting a PHP bug | Allow tests to fail against PHP7 until final release, since we are hitting a PHP bug
| YAML | mit | hason/MtHaml,pwhelan/MtHaml,pwhelan/MtHaml,hason/MtHaml | yaml | ## Code Before:
language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- nightly
- hhvm
matrix:
allow_failures:
- php: hhvm
- php: nightly
before_script:
- composer install --no-interaction
## Instruction:
Allow tests to fail against PHP7 until final release, since we are hitting a PHP bug
## Code After:
la... | language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- nightly
- hhvm
matrix:
allow_failures:
- php: hhvm
- php: nightly
+ - php: 7
before_script:
- composer install --no-interaction | 1 | 0.071429 | 1 | 0 |
2f186c133ef76b813faa2da8453e12910e088984 | Readme.md | Readme.md |
A node.js client for the [Dialog](https://dialoganalytics.com) API.
[](https://gemnasium.com/github.com/dialoganalytics/dialog-node)
## Documentation
See the [API docs](https://docs.dialoganalytics.com).
## Installation
... |
A node.js client for the [Dialog](https://dialoganalytics.com) API.
[](https://gemnasium.com/github.com/dialoganalytics/dialog-node)
## Documentation
See the [API docs](https://docs.dialoganalytics.com).
## Installation
... | Update require paths in readme | Update require paths in readme
| Markdown | mit | dialoganalytics/dialog-node | markdown | ## Code Before:
A node.js client for the [Dialog](https://dialoganalytics.com) API.
[](https://gemnasium.com/github.com/dialoganalytics/dialog-node)
## Documentation
See the [API docs](https://docs.dialoganalytics.com).
#... |
A node.js client for the [Dialog](https://dialoganalytics.com) API.
[](https://gemnasium.com/github.com/dialoganalytics/dialog-node)
## Documentation
See the [API docs](https://docs.dialoganalytics.com).
... | 3 | 0.075 | 2 | 1 |
9a4056e150d530c7b26f91688f1f52deb96b88ea | README.md | README.md | A simple Maven plugin to make your build byte-for-byte reproducible
| [](https://travis-ci.org/Zlika/reproducible-build-maven-plugin)
# reproducible-build-maven-plugin
A simple Maven plugin to make your build byte-for-byte reproducible
| Add Tracis CI build badge. | Add Tracis CI build badge. | Markdown | apache-2.0 | Zlika/reproducible-build-maven-plugin,Zlika/reproducible-build-maven-plugin | markdown | ## Code Before:
A simple Maven plugin to make your build byte-for-byte reproducible
## Instruction:
Add Tracis CI build badge.
## Code After:
[](https://travis-ci.org/Zlika/reproducible-build-maven-plugin)
# reproducible-bui... | + [](https://travis-ci.org/Zlika/reproducible-build-maven-plugin)
+
+ # reproducible-build-maven-plugin
A simple Maven plugin to make your build byte-for-byte reproducible | 3 | 3 | 3 | 0 |
48543d559d13bb9446f455d14ec3e8ae1ff4f2d7 | angular_flask/__init__.py | angular_flask/__init__.py | import os
from flask import Flask
from flask_sslify import SSLify
app = Flask(__name__, instance_path='/instance')
if 'DYNO' in os.environ:
sslify = SSLify(app)
app.config.from_object('config')
app.config.from_pyfile('config.py')
import angular_flask.core
import angular_flask.models
import angular_flask.control... | import os
from flask import Flask
from flask_sslify import SSLify
app = Flask(__name__, instance_relative_config=True)
if 'DYNO' in os.environ:
sslify = SSLify(app)
app.config.from_object('config')
app.config.from_pyfile('config.py', True)
import angular_flask.core
import angular_flask.models
import angular_fla... | Set tru to config from pyfile | Set tru to config from pyfile
| Python | mit | Clarity-89/blog,Clarity-89/blog,Clarity-89/blog | python | ## Code Before:
import os
from flask import Flask
from flask_sslify import SSLify
app = Flask(__name__, instance_path='/instance')
if 'DYNO' in os.environ:
sslify = SSLify(app)
app.config.from_object('config')
app.config.from_pyfile('config.py')
import angular_flask.core
import angular_flask.models
import angul... | import os
from flask import Flask
from flask_sslify import SSLify
- app = Flask(__name__, instance_path='/instance')
+ app = Flask(__name__, instance_relative_config=True)
if 'DYNO' in os.environ:
sslify = SSLify(app)
app.config.from_object('config')
- app.config.from_pyfile('config.py')
+ app.... | 4 | 0.266667 | 2 | 2 |
d49438ad2d238f8d76a2ec2ed864843444bd5741 | bluebottle/payments_mock/static/js/bluebottle/payments_mock/controllers.js | bluebottle/payments_mock/static/js/bluebottle/payments_mock/controllers.js | App.MockIdealController = App.StandardPaymentMethodController.extend(App.ControllerValidationMixin, {
requiredFields: ['issuerId'],
init: function() {
this._super();
this.set('model', App.MockIdeal.create());
}
});
App.MockPaypalController = App.StandardPaymentMethodController.extend(App.... | App.MockIdealController = App.StandardPaymentMethodController.extend(App.ControllerValidationMixin, {
requiredFields: ['issuerId'],
init: function() {
this._super();
this.set('model', App.MockIdeal.create());
}
});
App.MockPaypalController = App.StandardPaymentMethodController.extend(App.... | REturn integration data for MockPal payment | REturn integration data for MockPal payment
| JavaScript | bsd-3-clause | onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle | javascript | ## Code Before:
App.MockIdealController = App.StandardPaymentMethodController.extend(App.ControllerValidationMixin, {
requiredFields: ['issuerId'],
init: function() {
this._super();
this.set('model', App.MockIdeal.create());
}
});
App.MockPaypalController = App.StandardPaymentMethodContro... | App.MockIdealController = App.StandardPaymentMethodController.extend(App.ControllerValidationMixin, {
requiredFields: ['issuerId'],
init: function() {
this._super();
this.set('model', App.MockIdeal.create());
}
});
App.MockPaypalController = App.StandardPaymentMethod... | 4 | 0.166667 | 3 | 1 |
71958df5d3251372d23bcc5722ede0b5d824f1f3 | Readme.md | Readme.md | 
# GitHub Blog
See it [live](https://abstractOwl.github.io)!
Jekyll also automatically publishes an [atom feed](/atom.xml).
## Feedback
If you have any questions/comments, feel free to write a Disqus comment or
open an ... | 
# GitHub Blog
See it in action [here](https://abstractOwl.github.io)! Jekyll also
automatically publishes an [atom feed](/atom.xml).
## Feedback
If you have any questions/comments, feel free to write a Disqus comment o... | Add disclaimer, remove odd CC icon | Add disclaimer, remove odd CC icon
| Markdown | bsd-2-clause | abstractOwl/abstractOwl.github.io | markdown | ## Code Before:

# GitHub Blog
See it [live](https://abstractOwl.github.io)!
Jekyll also automatically publishes an [atom feed](/atom.xml).
## Feedback
If you have any questions/comments, feel free to write a Disqus com... | 
# GitHub Blog
- See it [live](https://abstractOwl.github.io)!
+ See it in action [here](https://abstractOwl.github.io)! Jekyll also
- Jekyll also automatically publishes an [atom feed](/atom.xml).
? ------------
... | 13 | 0.433333 | 4 | 9 |
1c84e46a21b63287af8a59697747c76614e444ec | app/services/reports/docx/draw_step_checklist.rb | app/services/reports/docx/draw_step_checklist.rb |
module DrawStepChecklist
def draw_step_checklist(subject)
checklist = Checklist.find_by_id(subject['id']['checklist_id'])
return unless checklist
items = checklist.checklist_items
timestamp = checklist.created_at
color = @color
@docx.p
@docx.p do
text SmartAnnotations::TagToText.ne... |
module DrawStepChecklist
def draw_step_checklist(subject)
checklist = Checklist.find_by_id(subject['id']['checklist_id'])
return unless checklist
items = checklist.checklist_items
timestamp = checklist.created_at
color = @color
@docx.p
@docx.p do
text SmartAnnotations::TagToText.ne... | Revert "SCI-3702 replace _to_text with _to_html" | Revert "SCI-3702 replace _to_text with _to_html"
This reverts commit 93b7c472ac8ef271c9b23bfc6ea85d78a713b7eb.
| Ruby | mpl-2.0 | Ducz0r/scinote-web,mlorb/scinote-web,mlorb/scinote-web,mlorb/scinote-web,Ducz0r/scinote-web,Ducz0r/scinote-web | ruby | ## Code Before:
module DrawStepChecklist
def draw_step_checklist(subject)
checklist = Checklist.find_by_id(subject['id']['checklist_id'])
return unless checklist
items = checklist.checklist_items
timestamp = checklist.created_at
color = @color
@docx.p
@docx.p do
text SmartAnnotatio... |
module DrawStepChecklist
def draw_step_checklist(subject)
checklist = Checklist.find_by_id(subject['id']['checklist_id'])
return unless checklist
items = checklist.checklist_items
timestamp = checklist.created_at
color = @color
@docx.p
@docx.p do
text SmartA... | 12 | 0.428571 | 7 | 5 |
71f2cd196587eb4ade9dbca2498046e1b4eb2dae | jquery-replacetext.js | jquery-replacetext.js | (function($){
var textNode = function(node, search, replace, capturing) {
var tokens = node.nodeValue.split(search);
if (tokens.length < 2) return false;
for (var i = 0; i+capturing < tokens.length; i += capturing+1) {
$(node).before(document.createTextNode(tokens[i]));
$(node).before(replace(... | (function($){
var textNode = function(node, search, replace, capturing) {
var tokens = node.nodeValue.split(search);
if (tokens.length < 2) return false;
for (var i = 0; i+capturing < tokens.length; i += capturing+1) {
$(node).before(document.createTextNode(tokens[i]));
$(node).before(replace(... | Make replaceText() count the sub-groups. | Make replaceText() count the sub-groups.
Instead of requiring the number of capturing groups as an argument,
match the provided expression with the empty string to see how many
groups are captured.
(cburschka/cadence#235)
| JavaScript | mit | cburschka/jquery-replacetext | javascript | ## Code Before:
(function($){
var textNode = function(node, search, replace, capturing) {
var tokens = node.nodeValue.split(search);
if (tokens.length < 2) return false;
for (var i = 0; i+capturing < tokens.length; i += capturing+1) {
$(node).before(document.createTextNode(tokens[i]));
$(node)... | (function($){
var textNode = function(node, search, replace, capturing) {
var tokens = node.nodeValue.split(search);
if (tokens.length < 2) return false;
for (var i = 0; i+capturing < tokens.length; i += capturing+1) {
$(node).before(document.createTextNode(tokens[i]));
$(node).b... | 5 | 0.151515 | 2 | 3 |
643a02c5b66b8da3124463aa3225ee0fc2c72ab4 | composer.json | composer.json | {
"name": "tasmaniski/zf2-current-route",
"description": "View Helper for reading current route info - Controller, action, module and route name",
"type": "library",
"keywords": ["zf2", "view", "helper", "route"],
"homepage": "https://github.com/tasm... | {
"name": "tasmaniski/zf2-current-route",
"description": "View Helper for reading current route info: Controller, Action, Module name",
"type": "library",
"keywords": ["zf2", "view", "helper", "route"],
"homepage": "https://github.com/tasmaniski",
... | Change description in .json file | Change description in .json file
| JSON | mit | tasmaniski/zf2-current-route | json | ## Code Before:
{
"name": "tasmaniski/zf2-current-route",
"description": "View Helper for reading current route info - Controller, action, module and route name",
"type": "library",
"keywords": ["zf2", "view", "helper", "route"],
"homepage": "https:/... | {
"name": "tasmaniski/zf2-current-route",
- "description": "View Helper for reading current route info - Controller, action, module and route name",
? ^^ ^ ^ ----------
+ "description": "Vi... | 2 | 0.083333 | 1 | 1 |
4653ee1b478a0eaceaea0f94737e023e98215e70 | inc/modules/siteorigin-panels/sass/_mtalents-panel-simple.scss | inc/modules/siteorigin-panels/sass/_mtalents-panel-simple.scss | .mtalents-simple-panel{
width: 350px;
margin: 0 auto 25px;
padding: 40px 30px;
background-color: #f7f9f9;
border-bottom: solid 4px transparent;
&-icon{
margin-bottom: 20px;
}
&-title{
margin-bottom: 20px;
color: #313030;
@include font-size(1.25... | .mtalents-simple-panel{
width: 350px;
max-width: 100%;
margin: 0 auto 25px;
padding: 40px 30px;
background-color: #f7f9f9;
border-bottom: solid 4px transparent;
&-icon{
margin-bottom: 20px;
}
&-title{
margin-bottom: 20px;
color: #313030;
@... | Add max width to simple panel | Add max width to simple panel | SCSS | mit | mb-projects/mbtheme-mtalents,mb-projects/mbtheme-mtalents | scss | ## Code Before:
.mtalents-simple-panel{
width: 350px;
margin: 0 auto 25px;
padding: 40px 30px;
background-color: #f7f9f9;
border-bottom: solid 4px transparent;
&-icon{
margin-bottom: 20px;
}
&-title{
margin-bottom: 20px;
color: #313030;
@include font-size(... | .mtalents-simple-panel{
width: 350px;
+ max-width: 100%;
margin: 0 auto 25px;
padding: 40px 30px;
background-color: #f7f9f9;
border-bottom: solid 4px transparent;
&-icon{
margin-bottom: 20px;
}
&-title{
margin-bottom: 20px;
color: #3130... | 1 | 0.055556 | 1 | 0 |
3e46977ec15093ff8fcf84bf5d3e339c17a06630 | libcontainer/stacktrace/capture_test.go | libcontainer/stacktrace/capture_test.go | package stacktrace
import "testing"
func captureFunc() Stacktrace {
return Capture(0)
}
func TestCaptureTestFunc(t *testing.T) {
stack := captureFunc()
if len(stack.Frames) == 0 {
t.Fatal("expected stack frames to be returned")
}
// the first frame is the caller
frame := stack.Frames[0]
if expected := "ca... | package stacktrace
import (
"strings"
"testing"
)
func captureFunc() Stacktrace {
return Capture(0)
}
func TestCaptureTestFunc(t *testing.T) {
stack := captureFunc()
if len(stack.Frames) == 0 {
t.Fatal("expected stack frames to be returned")
}
// the first frame is the caller
frame := stack.Frames[0]
if... | Fix to allow for build in different path | Fix to allow for build in different path
The path in the stacktrace might not be:
"github.com/opencontainers/runc/libcontainer/stacktrace"
For example, for me its:
"_/go/src/github.com/opencontainers/runc/libcontainer/stacktrace"
so I changed the check to make sure the tail end of the path matches instead
of the e... | Go | apache-2.0 | adrianreber/runc,wangkirin/runc,albertoleal/runc,sunyuan3/runc,runcom/runc,estesp/runc,opencontainers/runc,nkwilson/runc,justincormack/runc,mikebrow/runc,coolljt0725/runc,jhowardmsft/runc,kolyshkin/runc,dqminh/runc,runcom/runc,mheon/runc,WeiZhang555/runc,adrianreber/runc,mikebrow/runc,maxamillion/runc,docker/runc,alber... | go | ## Code Before:
package stacktrace
import "testing"
func captureFunc() Stacktrace {
return Capture(0)
}
func TestCaptureTestFunc(t *testing.T) {
stack := captureFunc()
if len(stack.Frames) == 0 {
t.Fatal("expected stack frames to be returned")
}
// the first frame is the caller
frame := stack.Frames[0]
if... | package stacktrace
- import "testing"
+ import (
+ "strings"
+ "testing"
+ )
func captureFunc() Stacktrace {
return Capture(0)
}
func TestCaptureTestFunc(t *testing.T) {
stack := captureFunc()
if len(stack.Frames) == 0 {
t.Fatal("expected stack frames to be returned")
}
// th... | 8 | 0.296296 | 6 | 2 |
7d6a365f891041da8e80fcf23c0ea5f54b841147 | README.md | README.md | Xinming Creative Official Website
## Reference
- [How to create github page](https://pages.github.com/)
- [Agency Jekyll Theme](http://y7kim.github.io/agency-jekyll-theme/)
- [Support Multiple Languages](https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin)
| This is the source of Xinming Creative Enterprise official Website.
## Requirements
> Jekyll 3.x
# Install Jekyll on Ubuntu 16.04
~~~
$ sudo apt-get update
$ sudo apt-get install ruby ruby-dev make gcc
$ sudo gem install jekyll bundler
~~~
see [source](https://www.digitalocean.com/community/tutorials/how-to-set-up-a... | Add useful how to step in readme | Add useful how to step in readme
| Markdown | apache-2.0 | xinmingcreative/xinmingcreative.github.io,xinmingcreative/xinmingcreative.github.io,xinmingcreative/xinmingcreative.github.io,xinmingcreative/xinmingcreative.github.io | markdown | ## Code Before:
Xinming Creative Official Website
## Reference
- [How to create github page](https://pages.github.com/)
- [Agency Jekyll Theme](http://y7kim.github.io/agency-jekyll-theme/)
- [Support Multiple Languages](https://github.com/Anthony-Gaudino/jekyll-multiple-languages-plugin)
## Instruction:
Add useful ho... | - Xinming Creative Official Website
+ This is the source of Xinming Creative Enterprise official Website.
+
+ ## Requirements
+ > Jekyll 3.x
+
+ # Install Jekyll on Ubuntu 16.04
+ ~~~
+ $ sudo apt-get update
+ $ sudo apt-get install ruby ruby-dev make gcc
+ $ sudo gem install jekyll bundler
+ ~~~
+
+ see [source](ht... | 43 | 7.166667 | 42 | 1 |
48dc53c5c92a49fca959a962434bee6c2810a0c8 | tensorboard_plugin_wit/pip_package/setup.py | tensorboard_plugin_wit/pip_package/setup.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import setuptools
setuptools.setup(
name="tensorboard_plugin_wit",
version="1.6.0",
description="What-If Tool TensorBoard plugin.",
packages=setuptools.find_packages(),
package_data={
... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import setuptools
setuptools.setup(
name="tensorboard_plugin_wit",
version="1.6.0",
description="What-If Tool TensorBoard plugin.",
packages=setuptools.find_packages(),
license='Apache 2.... | Add missing license to pip package | Add missing license to pip package | Python | apache-2.0 | PAIR-code/what-if-tool,PAIR-code/what-if-tool,PAIR-code/what-if-tool,pair-code/what-if-tool,pair-code/what-if-tool,PAIR-code/what-if-tool,pair-code/what-if-tool,pair-code/what-if-tool,PAIR-code/what-if-tool,pair-code/what-if-tool | python | ## Code Before:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import setuptools
setuptools.setup(
name="tensorboard_plugin_wit",
version="1.6.0",
description="What-If Tool TensorBoard plugin.",
packages=setuptools.find_packages(),
pa... |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import setuptools
setuptools.setup(
name="tensorboard_plugin_wit",
version="1.6.0",
description="What-If Tool TensorBoard plugin.",
packages=setuptools.find_packages... | 1 | 0.045455 | 1 | 0 |
668f3f1bd9e9ed578ab58da02b7276950f9a4b4b | src/mobile/lib/model/MstGoal.ts | src/mobile/lib/model/MstGoal.ts | import {MstSvt} from "../../../model/master/Master";
import {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from "../../../model/impl/MstContainer";
export interface MstGoal {
appVer: string;
svtRawData: Array<MstSvt>;
svtSkillData: MstSvtSkillContainer;
skillCombineData: MstCombine... | import {MstSvt} from "../../../model/master/Master";
import {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from "../../../model/impl/MstContainer";
export interface MstGoal {
appVer: string;
svtRawData: Array<MstSvt>;
svtSkillData: MstSvtSkillContainer;
skillCombineData: MstCombine... | Add servant limit attribute in state. | Add servant limit attribute in state.
| TypeScript | mit | agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook | typescript | ## Code Before:
import {MstSvt} from "../../../model/master/Master";
import {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from "../../../model/impl/MstContainer";
export interface MstGoal {
appVer: string;
svtRawData: Array<MstSvt>;
svtSkillData: MstSvtSkillContainer;
skillCombine... | import {MstSvt} from "../../../model/master/Master";
import {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from "../../../model/impl/MstContainer";
export interface MstGoal {
appVer: string;
svtRawData: Array<MstSvt>;
svtSkillData: MstSvtSkillContainer;
skillCombine... | 1 | 0.022727 | 1 | 0 |
2bc65818b86843f759d4cbf10617ce53d2263581 | lib/everything/piece.rb | lib/everything/piece.rb | require 'forwardable'
module Everything
class Piece
extend Forwardable
attr_reader :full_path
# TODO: Add the following methods:
# - dir (Relative to Everything.path)
# - path (Relative to Everything.path)
# - absolute_dir
# - absolute_path
def initialize(full_path)
@... | require 'forwardable'
module Everything
class Piece
extend Forwardable
attr_reader :full_path
def initialize(full_path)
@full_path = full_path
end
def absolute_dir
@absolute_dir ||= File.join(Everything.path, dir)
end
def absolute_path
@absolute_path ||= File.join(ab... | Remove TODOs that are done | Remove TODOs that are done
| Ruby | mit | kyletolle/everything-core | ruby | ## Code Before:
require 'forwardable'
module Everything
class Piece
extend Forwardable
attr_reader :full_path
# TODO: Add the following methods:
# - dir (Relative to Everything.path)
# - path (Relative to Everything.path)
# - absolute_dir
# - absolute_path
def initialize(fu... | require 'forwardable'
module Everything
class Piece
extend Forwardable
attr_reader :full_path
-
- # TODO: Add the following methods:
- # - dir (Relative to Everything.path)
- # - path (Relative to Everything.path)
- # - absolute_dir
- # - absolute_path
def... | 6 | 0.081081 | 0 | 6 |
a9f83ae514ebce5b7e5db29530f8714cc02e0086 | services/taxonomy/client/src/main/resources/collectionspace-client.properties | services/taxonomy/client/src/main/resources/collectionspace-client.properties | cspace.url=http://localhost:8180/cspace-services/
cspace.ssl=false
cspace.auth=true
cspace.user=admin@lifesci.collectionspace.org
cspace.password=Administrator
# default tenant
cspace.tenant=1
# the tenantID of the numbered tenant:
cspace.tenantID=core.collectionspace.org
| cspace.url=http://localhost:8180/cspace-services/
cspace.ssl=false
cspace.auth=true
cspace.user=admin@lifesci.collectionspace.org
cspace.password=Administrator
| Remove extraneous (and incorrect) values from properties file for running Taxonomy service client tests. | CSPACE-6152: Remove extraneous (and incorrect) values from properties file for running Taxonomy service client tests.
| INI | apache-2.0 | cherryhill/collectionspace-services,cherryhill/collectionspace-services | ini | ## Code Before:
cspace.url=http://localhost:8180/cspace-services/
cspace.ssl=false
cspace.auth=true
cspace.user=admin@lifesci.collectionspace.org
cspace.password=Administrator
# default tenant
cspace.tenant=1
# the tenantID of the numbered tenant:
cspace.tenantID=core.collectionspace.org
## Instruction:
CSPACE-6152: R... | cspace.url=http://localhost:8180/cspace-services/
cspace.ssl=false
cspace.auth=true
cspace.user=admin@lifesci.collectionspace.org
cspace.password=Administrator
- # default tenant
- cspace.tenant=1
- # the tenantID of the numbered tenant:
- cspace.tenantID=core.collectionspace.org | 4 | 0.444444 | 0 | 4 |
ec5fa6010d07937800de6c98848909f4ceee5979 | app/assets/style/overrides.scss | app/assets/style/overrides.scss | @import 'vars';
/* Material overrides */
cherry-form {
white-space: normal;
}
md-input-container {
padding: 0;
}
md-input-container textarea.md-input {
height: auto;
min-height: 0;
}
md-content {
background-color: transparent;
color: $brand-black;
}
md-content form h1 {
white-space: normal;
font-w... | @import 'vars';
/* Material overrides */
cherry-form {
white-space: normal;
}
md-input-container {
padding: 0;
.md-char-counter {
padding-right: 5px;
}
label,
.md-input,
[ng-message]:not(.md-char-counter) {
padding-left: 5px !important;
}
}
md-input-container textarea.md-input {
heigh... | Add some padding to the signin form | Add some padding to the signin form
| SCSS | mit | robotnoises/CherryTask,robotnoises/CherryTask | scss | ## Code Before:
@import 'vars';
/* Material overrides */
cherry-form {
white-space: normal;
}
md-input-container {
padding: 0;
}
md-input-container textarea.md-input {
height: auto;
min-height: 0;
}
md-content {
background-color: transparent;
color: $brand-black;
}
md-content form h1 {
white-space: ... | @import 'vars';
/* Material overrides */
cherry-form {
white-space: normal;
}
md-input-container {
+
padding: 0;
+
+ .md-char-counter {
+ padding-right: 5px;
+ }
+
+ label,
+ .md-input,
+ [ng-message]:not(.md-char-counter) {
+ padding-left: 5px !important;
+ }
}
... | 11 | 0.289474 | 11 | 0 |
a141f0f9781f013ca313db5f97a261f8fa95c1a2 | multi-arch-manifest.yaml | multi-arch-manifest.yaml | image: bkimminich/juice-shop:snapshot
manifests:
- image: bkimminich/juice-shop:snapshot-amd64
platform:
architecture: amd64
os: linux
- image: bkimminich/juice-shop:snapshot-arm64v8
platform:
architecture: arm64
os: linux
variant: v8 | image: bkimminich/juice-shop:snapshot
manifests:
- image: bkimminich/juice-shop:snapshot-amd64
platform:
architecture: amd64
os: linux | Remove Arm64 manifest entry for initial testing from Travis-CI | Remove Arm64 manifest entry for initial testing from Travis-CI
| YAML | mit | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | yaml | ## Code Before:
image: bkimminich/juice-shop:snapshot
manifests:
- image: bkimminich/juice-shop:snapshot-amd64
platform:
architecture: amd64
os: linux
- image: bkimminich/juice-shop:snapshot-arm64v8
platform:
architecture: arm64
os: linux
variant: v8
## Instruction:
Remove Arm6... | image: bkimminich/juice-shop:snapshot
manifests:
- image: bkimminich/juice-shop:snapshot-amd64
platform:
architecture: amd64
os: linux
- - image: bkimminich/juice-shop:snapshot-arm64v8
- platform:
- architecture: arm64
- os: linux
- variant: v8 | 5 | 0.454545 | 0 | 5 |
6c3821507a40b0844a8b7a1b0d73e1d11b8ca8f5 | docs/rtd-conda-environment.yml | docs/rtd-conda-environment.yml | dependencies:
- ipykernel
- sphinx >= 1.4
- scikit-learn
- numpy
- scipy
- lxml <= 3.6.1
- pandas >= 0.18,<0.19
- patsy
- pytz
- requests
- pip:
- nbsphinx
- sphinx-rtd-theme
- sphinxcontrib-napoleon
- holidays
| dependencies:
- ipykernel
- sphinx >= 1.4
- scikit-learn
- numpy
- scipy
- lxml <= 3.6.1
- pandas >= 0.18,<0.19
- patsy
- pytz
- requests
- statsmodels
- pip:
- nbsphinx
- sphinx-rtd-theme
- sphinxcontrib-napoleon
- holidays
| Add statsmodels dependency to docs | Add statsmodels dependency to docs
| YAML | apache-2.0 | openeemeter/eemeter,openeemeter/eemeter | yaml | ## Code Before:
dependencies:
- ipykernel
- sphinx >= 1.4
- scikit-learn
- numpy
- scipy
- lxml <= 3.6.1
- pandas >= 0.18,<0.19
- patsy
- pytz
- requests
- pip:
- nbsphinx
- sphinx-rtd-theme
- sphinxcontrib-napoleon
- holidays
## Instruction:
Add statsmodels dependency to docs
##... | dependencies:
- ipykernel
- sphinx >= 1.4
- scikit-learn
- numpy
- scipy
- lxml <= 3.6.1
- pandas >= 0.18,<0.19
- patsy
- pytz
- requests
+ - statsmodels
- pip:
- nbsphinx
- sphinx-rtd-theme
- sphinxcontrib-napoleon
- holidays | 1 | 0.0625 | 1 | 0 |
be00af0a0e87af5b4c82107d2f1356f378b65cb4 | obj_sys/management/commands/tag_the_file.py | obj_sys/management/commands/tag_the_file.py | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
make_option('--tag... | Fix the issue that get_or_create returns a tuple instead of one object. | Fix the issue that get_or_create returns a tuple instead of one object.
| Python | bsd-3-clause | weijia/obj_sys,weijia/obj_sys | python | ## Code Before:
import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
ma... | import os
from optparse import make_option
from django.core.management import BaseCommand
from djangoautoconf.cmd_handler_base.msg_process_cmd_base import DjangoCmdBase
from obj_sys.models_ufs_obj import UfsObj
class FileTagger(DjangoCmdBase):
option_list = BaseCommand.option_list + (
... | 2 | 0.05 | 1 | 1 |
87fc65d6820def0974b2f35437dc77c2da3f5957 | examples/index.php | examples/index.php | <?php
session_start();
require __DIR__.'/../vendor/autoload.php';
use \BW\Vkontakte as Vk;
$vk = new Vk([
'client_id' => '5759854',
'client_secret' => 'a556FovqtUBHArlXlAAO',
'redirect_uri' => 'http://localhost:8000',
]);
if (isset($_GET['code'])) {
$vk->authenticate($_GET['code']);
$_SESSION['... | <?php
session_start();
require __DIR__.'/../vendor/autoload.php';
use \BW\Vkontakte as Vk;
$vk = new Vk([
'client_id' => '5759854',
'client_secret' => 'a556FovqtUBHArlXlAAO',
'redirect_uri' => 'http://localhost:8000',
]);
if (isset($_GET['code'])) {
$vk->authenticate($_GET['code']);
$_SESSION['... | Fix request scheme: REQUEST_SCHEME doesn't exist for PHP 7 built-in server | Fix request scheme: REQUEST_SCHEME doesn't exist for PHP 7 built-in server
| PHP | mit | bocharsky-bw/vkontakte-php-sdk | php | ## Code Before:
<?php
session_start();
require __DIR__.'/../vendor/autoload.php';
use \BW\Vkontakte as Vk;
$vk = new Vk([
'client_id' => '5759854',
'client_secret' => 'a556FovqtUBHArlXlAAO',
'redirect_uri' => 'http://localhost:8000',
]);
if (isset($_GET['code'])) {
$vk->authenticate($_GET['code']);... | <?php
session_start();
require __DIR__.'/../vendor/autoload.php';
use \BW\Vkontakte as Vk;
$vk = new Vk([
'client_id' => '5759854',
'client_secret' => 'a556FovqtUBHArlXlAAO',
'redirect_uri' => 'http://localhost:8000',
]);
if (isset($_GET['code'])) {
$vk->authenticate... | 2 | 0.042553 | 1 | 1 |
d836455d890374406da531eb2e5f777320ba8539 | lib/rrj/rspec.rb | lib/rrj/rspec.rb |
require 'rrj/tools/gem/config'
# :reek:UtilityFunction
module RubyRabbitmqJanus
# # RRJRSpec
#
# Initializer to use with RSpec execution
class RRJRSpec < RRJTaskAdmin
def initialize
RubyRabbitmqJanus::Tools::Config.instance
end
def session_endpoint_public(_options)
yield(RubyRabbitmq... |
require 'rrj/tools/gem/config'
# :reek:UtilityFunction
module RubyRabbitmqJanus
# # RRJRSpec
#
# Initializer to use with RSpec execution
class RRJRSpec < RRJTaskAdmin
def initialize
RubyRabbitmqJanus::Tools::Config.instance
end
# @see RubyRabbitmqJanus::RRJ::session_endpoint_public
def... | Add reference about similary medthods | Add reference about similary medthods
| Ruby | mit | dazzl-tv/ruby-rabbitmq-janus | ruby | ## Code Before:
require 'rrj/tools/gem/config'
# :reek:UtilityFunction
module RubyRabbitmqJanus
# # RRJRSpec
#
# Initializer to use with RSpec execution
class RRJRSpec < RRJTaskAdmin
def initialize
RubyRabbitmqJanus::Tools::Config.instance
end
def session_endpoint_public(_options)
yi... |
require 'rrj/tools/gem/config'
# :reek:UtilityFunction
module RubyRabbitmqJanus
# # RRJRSpec
#
# Initializer to use with RSpec execution
class RRJRSpec < RRJTaskAdmin
def initialize
RubyRabbitmqJanus::Tools::Config.instance
end
+ # @see RubyRabbitmqJanus::RRJ::s... | 3 | 0.09375 | 3 | 0 |
776c7a86607d2d28990f6877716bfea0bd61bc3c | src/main/java/com/telus/training/ex1/ClockNeedles.java | src/main/java/com/telus/training/ex1/ClockNeedles.java | package com.telus.training.ex1;
public class ClockNeedles {
public double calculateAngle(int hours, int minutes) {
double hoursAngle = hours*30;
double minutesAngle = minutes*6;
double angle = Math.abs(hoursAngle - minutesAngle);
if(angle > 180.0) angle = angle - 180.0;
return angle;
}
}
| package com.telus.training.ex1;
public class ClockNeedles {
public double calculateAngleBetween(int hours, int minutes) {
double hoursAngle = convertHoursToAngle(hours);
double minutesAngle = convertMinutesToAngle(minutes);
double angle = Math.abs(hoursAngle - minutesAngle);
return (angle > 180.0) ? (angl... | Add checks for hours and minutes | Add checks for hours and minutes
| Java | mit | tristanles/tdd-ex1-java | java | ## Code Before:
package com.telus.training.ex1;
public class ClockNeedles {
public double calculateAngle(int hours, int minutes) {
double hoursAngle = hours*30;
double minutesAngle = minutes*6;
double angle = Math.abs(hoursAngle - minutesAngle);
if(angle > 180.0) angle = angle - 180.0;
return angle;
}
... | package com.telus.training.ex1;
public class ClockNeedles {
- public double calculateAngle(int hours, int minutes) {
+ public double calculateAngleBetween(int hours, int minutes) {
? +++++++
- double hoursAngle = hours*30;
- double minutesAngle = minutes*6;
+ double hours... | 23 | 1.769231 | 18 | 5 |
070a7541edd38e14e13fa607388a7c24a6c1d402 | _protected/app/system/core/classes/VisitorCore.php | _protected/app/system/core/classes/VisitorCore.php | <?php
/**
* @author Pierre-Henry Soria <hello@ph7cms.com>
* @copyright (c) 2017-2019, Pierre-Henry Soria. All Rights Reserved.
* @license GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
* @package PH7 / App / System / Core / Class
*/
namespac... | <?php
/**
* @author Pierre-Henry Soria <hello@ph7cms.com>
* @copyright (c) 2017-2019, Pierre-Henry Soria. All Rights Reserved.
* @license GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
* @package PH7 / App / System / Core / Class
*/
namespac... | Store `Y-m-d H:i:s` into a readable constant name | Store `Y-m-d H:i:s` into a readable constant name
| PHP | mit | pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS | php | ## Code Before:
<?php
/**
* @author Pierre-Henry Soria <hello@ph7cms.com>
* @copyright (c) 2017-2019, Pierre-Henry Soria. All Rights Reserved.
* @license GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
* @package PH7 / App / System / Core / Cla... | <?php
/**
* @author Pierre-Henry Soria <hello@ph7cms.com>
* @copyright (c) 2017-2019, Pierre-Henry Soria. All Rights Reserved.
* @license GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
* @package PH7 / App / System / Core / Class
... | 4 | 0.086957 | 3 | 1 |
ce9aae297d5004700951948df69bab4a6f56280c | core/update_translations.sh | core/update_translations.sh |
cd $(dirname $0)
tx pull -l de,el_GR,es,hu_HU,pt,ro,ru,sr,zh_CN,vi,th_TH,fa,fr
translations="translations/bisq-desktop.displaystringsproperties"
i18n="src/main/resources/i18n"
mv "$translations/de.properties" "$i18n/displayStrings_de.properties"
mv "$translations/el_GR.properties" "$i18n/displayStrings_el.properties... |
cd $(dirname $0)
tx pull -l de,el_GR,es,pt,ru,zh_CN,vi,th_TH,fa,fr
translations="translations/bisq-desktop.displaystringsproperties"
i18n="src/main/resources/i18n"
mv "$translations/de.properties" "$i18n/displayStrings_de.properties"
mv "$translations/el_GR.properties" "$i18n/displayStrings_el.properties"
mv "$trans... | Update transifex script with new core languages | Update transifex script with new core languages
| Shell | agpl-3.0 | bisq-network/exchange,bisq-network/exchange,bitsquare/bitsquare,bitsquare/bitsquare | shell | ## Code Before:
cd $(dirname $0)
tx pull -l de,el_GR,es,hu_HU,pt,ro,ru,sr,zh_CN,vi,th_TH,fa,fr
translations="translations/bisq-desktop.displaystringsproperties"
i18n="src/main/resources/i18n"
mv "$translations/de.properties" "$i18n/displayStrings_de.properties"
mv "$translations/el_GR.properties" "$i18n/displayStrin... |
cd $(dirname $0)
- tx pull -l de,el_GR,es,hu_HU,pt,ro,ru,sr,zh_CN,vi,th_TH,fa,fr
? ------ --- ---
+ tx pull -l de,el_GR,es,pt,ru,zh_CN,vi,th_TH,fa,fr
translations="translations/bisq-desktop.displaystringsproperties"
i18n="src/main/resources/i18n"
mv "$translations/de.properti... | 5 | 0.227273 | 1 | 4 |
3e730eb226cb32a699ae41351691d3507c9deef0 | README.md | README.md | README
======
What is symfony-installer?
--------------------------
symfony-installer is a Docker image to use [Symfony Installer](http://symfony.com/download)
Running symfony-installer
-------------------------
This is the same commands from Symfony Installer.
Just replace `symfony` with
`docker run --rm --inte... | README
======
What is symfony-installer?
--------------------------
symfony-installer is a Docker image to use [Symfony Installer](https://github.com/symfony/symfony-installer)
Running symfony-installer
-------------------------
This is the same commands from [Symfony Installer](https://github.com/symfony/symfony-i... | Update link of Symfony Installer | Update link of Symfony Installer
| Markdown | mit | roukmoute/symfony-installer | markdown | ## Code Before:
README
======
What is symfony-installer?
--------------------------
symfony-installer is a Docker image to use [Symfony Installer](http://symfony.com/download)
Running symfony-installer
-------------------------
This is the same commands from Symfony Installer.
Just replace `symfony` with
`docker... | README
======
What is symfony-installer?
--------------------------
- symfony-installer is a Docker image to use [Symfony Installer](http://symfony.com/download)
? ^^ ----- ^^^
+ symfony-installer is a Docker image to use [Symf... | 4 | 0.088889 | 2 | 2 |
cae45d4ea0b01b70d2c4579ea84391be5317e872 | geoconnect/apps/worldmap_layers/templates/metadata/unmatched_tabular_rows.html | geoconnect/apps/worldmap_layers/templates/metadata/unmatched_tabular_rows.html | <!-- START: Unmatched rows -->
<p>The tabular data below was <b>NOT</b> mapped.</p>
<br />Count: <b>{{ failed_records_list|length }} row{{ failed_records_list|pluralize }}</b>
</p>
<div class="row">
<div class="col-sm-12">
<table id="unmatched-tbl" class="table table-bordered table-hover table-striped t... | <!-- START: Unmatched rows -->
<p>The tabular data below was <b>NOT</b> mapped.</p>
<br />Count: <b>{{ failed_records_list|length }} row{{ failed_records_list|pluralize }}</b>
</p>
<div class="row">
<div class="col-sm-12">
<table id="unmatched-tbl" class="table table-bordered table-hover table-striped t... | Clean up layout of preview table in View Map Metadata popup. | Clean up layout of preview table in View Map Metadata popup.
| HTML | apache-2.0 | IQSS/geoconnect,IQSS/geoconnect,IQSS/geoconnect,IQSS/geoconnect | html | ## Code Before:
<!-- START: Unmatched rows -->
<p>The tabular data below was <b>NOT</b> mapped.</p>
<br />Count: <b>{{ failed_records_list|length }} row{{ failed_records_list|pluralize }}</b>
</p>
<div class="row">
<div class="col-sm-12">
<table id="unmatched-tbl" class="table table-bordered table-hover... | <!-- START: Unmatched rows -->
<p>The tabular data below was <b>NOT</b> mapped.</p>
<br />Count: <b>{{ failed_records_list|length }} row{{ failed_records_list|pluralize }}</b>
</p>
<div class="row">
<div class="col-sm-12">
- <table id="unmatched-tbl" class="table table-bordered table-hover t... | 11 | 0.244444 | 5 | 6 |
d2a4be714df8cfa8d47410a173a980c44259348b | src/ie.js | src/ie.js | // Zepto.js
// (c) 2010-2013 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
;(function(){
// __proto__ doesn't exist on IE<11, so redefine
// the Z function to use object extension instead
if (!('__proto__' in {})) {
$.extend($.zepto, {
Z: function(dom, selector) ... | // Zepto.js
// (c) 2010-2013 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
;(function(){
// __proto__ doesn't exist on IE<11, so redefine
// the Z function to use object extension instead
if (!('__proto__' in {})) {
$.extend($.zepto, {
Z: function(dom, selector){... | Implement $.zepto.isZ in IE support module | Implement $.zepto.isZ in IE support module
| JavaScript | mit | laispace/zepto,rayrc/zepto,huaziHear/zepto,mscienski/zepto,afgoulart/zepto,Genie77998/zepto,evilemon/zepto,baiyanghese/zepto,vincent1988/zepto,xuechunL/zepto,modulexcite/zepto,wushuyi/zepto,chenruixuan/zepto,fbiz/zepto,Jiasm/zepto,yuhualingfeng/zepto,alatvanas9/zepto,wanglam/zepto,Genie77998/zepto,treejames/zepto,SlaF/... | javascript | ## Code Before:
// Zepto.js
// (c) 2010-2013 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
;(function(){
// __proto__ doesn't exist on IE<11, so redefine
// the Z function to use object extension instead
if (!('__proto__' in {})) {
$.extend($.zepto, {
Z: function... | // Zepto.js
// (c) 2010-2013 Thomas Fuchs
// Zepto.js may be freely distributed under the MIT license.
;(function(){
// __proto__ doesn't exist on IE<11, so redefine
// the Z function to use object extension instead
if (!('__proto__' in {})) {
$.extend($.zepto, {
- Z: func... | 7 | 0.212121 | 6 | 1 |
2b3c8a3917e9a6972dcde10cc899b7fd4b5b8fe4 | .tmuxinator/dns.yml | .tmuxinator/dns.yml | name: dns
root: ~/
windows:
- dns: >
PORT=53
CNAMES=forever.dev:nginx.nginx.dev.docker
SELF=self
LOOP=dev
SERVERS='docker/127.0.0.1:5553,home/10.30.30.7:9753'
RESOLV=/etc/resolv.conf.upstream
BOGUS='193.234.222.38,199.101.28.20,64.94.110.11,67.215.65.130,67.215.65.132,92.242.... | name: dns
root: ~/
windows:
- dns: >
sudo capsh
--caps='cap_net_bind_service+iep cap_setpcap,cap_setuid,cap_setgid+ep'
--keep=1
--user=$(id -un)
--addamb=cap_net_bind_service
--print
--
-c 'exec env GOPATH=/opt/go/path/go1.9.5-nix PORT=53 CNAMES=forever.dev:nginx.nginx.... | Fix `.tmuxinator` DNS to use `capsh` | Fix `.tmuxinator` DNS to use `capsh`
Not ideal, but it's working at this point.
| YAML | mit | benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles,benizi/dotfiles | yaml | ## Code Before:
name: dns
root: ~/
windows:
- dns: >
PORT=53
CNAMES=forever.dev:nginx.nginx.dev.docker
SELF=self
LOOP=dev
SERVERS='docker/127.0.0.1:5553,home/10.30.30.7:9753'
RESOLV=/etc/resolv.conf.upstream
BOGUS='193.234.222.38,199.101.28.20,64.94.110.11,67.215.65.130,67.21... | name: dns
root: ~/
windows:
- dns: >
- PORT=53
- CNAMES=forever.dev:nginx.nginx.dev.docker
- SELF=self
- LOOP=dev
- SERVERS='docker/127.0.0.1:5553,home/10.30.30.7:9753'
- RESOLV=/etc/resolv.conf.upstream
- BOGUS='193.234.222.38,199.101.28.20,64.94.110.11,67.215.65.130... | 16 | 1.333333 | 8 | 8 |
619581fca6399ce2e624c16881785f8e21147911 | README.md | README.md | An example of automated JUnit testing, code analysis and deployment of a Java Spark application to Heroku, utilizing GitHub, Travis CI, and CodeClimate.
[](https://travis-ci.org/tarisatram/heroku-java-ci) [](https://travis-ci.org/tarisatram/heroku-java-ci) [](https://travis-ci.org/tarisatram/heroku-java-ci) [](https://travis-ci.org/tarisatram/heroku-java-ci) [
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @edition.form... | <% content_for :page_title, "New #{@edition.type.titleize}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
href: admin_editions_path
})
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @edition.form... | Add secondary nav component to the new editions page | Add secondary nav component to the new editions page
| HTML+ERB | mit | alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall | html+erb | ## Code Before:
<% content_for :page_title, "New #{@edition.type.titleize}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
href: admin_editions_path
})
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_nam... | <% content_for :page_title, "New #{@edition.type.titleize}" %>
<% content_for :back_link, (render "govuk_publishing_components/components/back_link", {
href: admin_editions_path
})
%>
<% content_for :error_summary, render('shared/error_summary', object: @edition, parent_class: "edition", class_name: @... | 13 | 0.8125 | 9 | 4 |
2a5d20dbbf525dd1f9e41fcf05c7291ca3f20861 | packages/nslu2-binary-only/nslu2-linksys-firmware_2.3r63.bb | packages/nslu2-binary-only/nslu2-linksys-firmware_2.3r63.bb | SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r2"
SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"
COMPATIBLE_MACHINE = "nslu2"
do_compile () {
install -d ${STAGING_LIBDIR}/nslu2-binaries
install -m 0755 ${S}/RedBoot ${STAGING_LIBDIR}/nslu2... | SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r3"
SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"
COMPATIBLE_MACHINE = "(nslu2|ixp4xx)"
do_compile () {
install -d ${STAGING_LIBDIR}/nslu2-binaries
install -m 0755 ${S}/RedBoot ${STAGING_LIBD... | Enable for ixp4xx machines too. | nslu2-linksys-firmware: Enable for ixp4xx machines too.
| BitBake | mit | scottellis/overo-oe,John-NY/overo-oe,crystalfontz/openembedded,libo/openembedded,BlackPole/bp-openembedded,BlackPole/bp-openembedded,scottellis/overo-oe,trini/openembedded,trini/openembedded,giobauermeister/openembedded,sampov2/audio-openembedded,philb/pbcl-oe-2010,bticino/openembedded,demsey/openenigma2,libo/openembed... | bitbake | ## Code Before:
SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
PR = "r2"
SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"
COMPATIBLE_MACHINE = "nslu2"
do_compile () {
install -d ${STAGING_LIBDIR}/nslu2-binaries
install -m 0755 ${S}/RedBoot ${STAGI... | SECTION = "base"
PACKAGES = ""
LICENSE = "GPL"
INHIBIT_DEFAULT_DEPS = "1"
- PR = "r2"
? ^
+ PR = "r3"
? ^
SRC_URI = "http://nslu.sf.net/downloads/${PN}-${PV}.tar.bz2"
S = "${WORKDIR}/${PN}-${PV}"
- COMPATIBLE_MACHINE = "nslu2"
+ COMPATIBLE_MACHINE = "(nslu2|ixp4xx)"
? ... | 4 | 0.222222 | 2 | 2 |
62b92fa48eceebe0d427807cd684e580fed75ab5 | stylesheets/blue/components/_grid_cell.scss | stylesheets/blue/components/_grid_cell.scss | // GridCell
//
// Center its content and limits it to a threshold
//
// default - Aligns content to the left
// .GridCell--alignCenter - Centers the content
// .GridCell--alignRight - Aligns content to the right
//
// markup:
// <div class="GridCell {$modifiers}">
// <div class="GridCell-content">
// <div>Cell 1<... | // GridCell
//
// Center its content and limits it to a threshold
//
// default - Aligns content to the left
// .GridCell--alignCenter - Centers the content
// .GridCell--alignRight - Aligns content to the right
//
// markup:
// <div class="GridCell {$modifiers}">
// <div class="GridCell-content">
// <div>Cell 1<... | Change the max-width to the one required by the designs | Change the max-width to the one required by the designs
Could not find a good reason to have this weird number as a max width
| SCSS | mit | subvisual/blue,subvisual/blue | scss | ## Code Before:
// GridCell
//
// Center its content and limits it to a threshold
//
// default - Aligns content to the left
// .GridCell--alignCenter - Centers the content
// .GridCell--alignRight - Aligns content to the right
//
// markup:
// <div class="GridCell {$modifiers}">
// <div class="GridCell-content">
// ... | // GridCell
//
// Center its content and limits it to a threshold
//
// default - Aligns content to the left
// .GridCell--alignCenter - Centers the content
// .GridCell--alignRight - Aligns content to the right
//
// markup:
// <div class="GridCell {$modifiers}">
// <div class="GridCell-content... | 2 | 0.042553 | 1 | 1 |
7e5d8eb0d6eabb427d7e9bd02bac3ee7b90d228d | src/config.py | src/config.py |
import urllib
import urllib.request
proxies = [
False,
False
] |
import urllib
import urllib.request
from pprint import pprint
proxies = [
'',
''
]
_tested_proxies = False
def test_proxies():
global _tested_proxies
if _tested_proxies:
return
_tested_proxies = {}
def _testproxy(proxyid):
if proxyid=='':
return True
if _tested_proxies.get(proxyid) is not No... | Test proxies before using them. | Test proxies before using them.
| Python | mit | koivunen/whoisabusetool | python | ## Code Before:
import urllib
import urllib.request
proxies = [
False,
False
]
## Instruction:
Test proxies before using them.
## Code After:
import urllib
import urllib.request
from pprint import pprint
proxies = [
'',
''
]
_tested_proxies = False
def test_proxies():
global _tested_proxies
if _tested_pro... |
import urllib
import urllib.request
+ from pprint import pprint
+ proxies = [
+ '',
+ ''
+ ]
- proxies = [
- False,
- False
- ]
+
+ _tested_proxies = False
+ def test_proxies():
+ global _tested_proxies
+
+ if _tested_proxies:
+ return
+
+ _tested_proxies = {}
+
+ def _testproxy(proxyid):
+ ... | 56 | 7 | 52 | 4 |
dea6978cadec646f8942e426a475698165ebd306 | modules/core/client/controllers/header.client.controller.js | modules/core/client/controllers/header.client.controller.js | 'use strict';
angular.module('core').controller('HeaderController', ['$scope', '$state', 'Authentication', 'Menus',
function ($scope, $state, Authentication, Menus) {
// Expose view variables
$scope.$state = $state;
$scope.authentication = Authentication;
// Get the topbar menu
$scope.menu = doc... | 'use strict';
angular.module('core').controller('HeaderController', ['$scope', '$state', 'Authentication', 'Menus',
function ($scope, $state, Authentication, Menus) {
// Expose view variables
$scope.$state = $state;
$scope.authentication = Authentication;
// Get the topbar menu
$scope.menu = doc... | Fix some grunt / linting issues | Fix some grunt / linting issues
| JavaScript | mit | CEN3031GroupA/US-Hackathon,CEN3031GroupA/US-Hackathon,CEN3031GroupA/US-Hackathon | javascript | ## Code Before:
'use strict';
angular.module('core').controller('HeaderController', ['$scope', '$state', 'Authentication', 'Menus',
function ($scope, $state, Authentication, Menus) {
// Expose view variables
$scope.$state = $state;
$scope.authentication = Authentication;
// Get the topbar menu
$... | 'use strict';
angular.module('core').controller('HeaderController', ['$scope', '$state', 'Authentication', 'Menus',
function ($scope, $state, Authentication, Menus) {
// Expose view variables
$scope.$state = $state;
$scope.authentication = Authentication;
// Get the topbar menu
- ... | 16 | 0.457143 | 8 | 8 |
b2f60b739ae730db502f7a33af185c58a6b7580e | roles/haskell/tasks/main.yml | roles/haskell/tasks/main.yml | ---
- name: Enable GCC
homebrew: name=gcc state=linked
- name: Install Haskell Platform
homebrew: name=haskell-platform state=installed
- name: Update cabal
shell: 'cabal update'
tags: update
- name: Install packages
shell: 'cabal install {{ dotfiles.haskell.packages | join(" ")}}'
- name: Link dotfiles
... | ---
- name: Install Haskell packages
homebrew: name={{ item }} state=latest
with_items:
- cabal-install
- gcc
- ghc
- name: Update cabal
shell: 'cabal update'
tags: update
- name: Install packages
shell: 'cabal install {{ dotfiles.haskell.packages | join(" ")}}'
- name: Link dotfiles
file: sr... | Replace haskell-platform with cabal-install and ghc | Replace haskell-platform with cabal-install and ghc
| YAML | mit | jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles | yaml | ## Code Before:
---
- name: Enable GCC
homebrew: name=gcc state=linked
- name: Install Haskell Platform
homebrew: name=haskell-platform state=installed
- name: Update cabal
shell: 'cabal update'
tags: update
- name: Install packages
shell: 'cabal install {{ dotfiles.haskell.packages | join(" ")}}'
- name:... | ---
- - name: Enable GCC
- homebrew: name=gcc state=linked
-
- - name: Install Haskell Platform
? ^^ ^^^^^
+ - name: Install Haskell packages
? ^ ^^^^^^
- homebrew: name=haskell-platform state=installed
+ homebrew: name={{ item }} state=latest
+ with_items:
+... | 11 | 0.611111 | 6 | 5 |
c51ad6b0efe09473b9796774ebedf04cef03cbb0 | README.md | README.md |
[](LICENSE.md)
Easy access control for PHP
> This library is currently under development. Things will change. Things will break.
## Install
Via Composer
``` bash
$ composer require jpkleemans/firewall:dev-master
```
## Usage
``` php
use Firewal... |
[](LICENSE.md)
Easy access control for PHP
> This library is currently under development. Things will change. Things will break.
## Install
Via Composer
``` bash
$ composer require jpkleemans/firewall:dev-master
```
## Usage
``` php
use Firewal... | Add HHVM and lighttpd to Planned Adapters | Add HHVM and lighttpd to Planned Adapters | Markdown | mit | jpkleemans/firewall | markdown | ## Code Before:
[](LICENSE.md)
Easy access control for PHP
> This library is currently under development. Things will change. Things will break.
## Install
Via Composer
``` bash
$ composer require jpkleemans/firewall:dev-master
```
## Usage
```... |
[](LICENSE.md)
Easy access control for PHP
> This library is currently under development. Things will change. Things will break.
## Install
Via Composer
``` bash
$ composer require jpkleemans/firewall:dev-master
```
... | 2 | 0.046512 | 2 | 0 |
5e68b23f804398cfee84cc1d52c478308ea8cde5 | .circleci/config.yml | .circleci/config.yml | version: 2
defaults:
container: &default_container
working_directory: ~/build
docker:
- image: circleci/openjdk:8-jdk
release_filter: &release_filter
filters:
tags:
only: /.*/
jobs:
build_and_deploy_image:
<<: *default_container
steps:
- checkout
- set... | version: 2
defaults:
container: &default_container
working_directory: ~/build
docker:
- image: circleci/openjdk:8-jdk
release_filter: &release_filter
filters:
tags:
only: /.*/
branches:
ignore: /.*/
jobs:
build_and_deploy_image:
<<: *default_container
... | Fix circle ci release filter | Fix circle ci release filter
run image script only for releases
| YAML | apache-2.0 | hleb-albau/kafka-manager-docker | yaml | ## Code Before:
version: 2
defaults:
container: &default_container
working_directory: ~/build
docker:
- image: circleci/openjdk:8-jdk
release_filter: &release_filter
filters:
tags:
only: /.*/
jobs:
build_and_deploy_image:
<<: *default_container
steps:
- check... | version: 2
defaults:
container: &default_container
working_directory: ~/build
docker:
- image: circleci/openjdk:8-jdk
release_filter: &release_filter
filters:
tags:
only: /.*/
+ branches:
+ ignore: /.*/
jobs:
build_and_deploy_... | 2 | 0.04878 | 2 | 0 |
15461c3a4f16fcb147ce84f8e702005703cff587 | TODO.md | TODO.md | Issues
======
- PyPI packages that depends on another package's `extra_requires` are not
supported (needs upstream support from `pip show`).
- `scikit-image` depends on `dask[array]`.
- Special flags may be required (?) for optimized builds of `numpy` and `scipy`.
- License support is incomplete.
- e.g. `m... | Issues
======
- PyPI packages that depends on another package's `extra_requires` are not
supported (needs upstream support from `pip show`).
- `scikit-image` depends on `dask[array]`.
- PyPI does not prevent uploading of wheels using local version
identifiers, despite PEP440's explicit disallowance (see
htt... | Add note about invalid versions on PyPI. | Add note about invalid versions on PyPI.
| Markdown | mit | anntzer/pypi2pkgbuild,anntzer/pypi2pkgbuild | markdown | ## Code Before:
Issues
======
- PyPI packages that depends on another package's `extra_requires` are not
supported (needs upstream support from `pip show`).
- `scikit-image` depends on `dask[array]`.
- Special flags may be required (?) for optimized builds of `numpy` and `scipy`.
- License support is incomplet... | Issues
======
- PyPI packages that depends on another package's `extra_requires` are not
supported (needs upstream support from `pip show`).
- `scikit-image` depends on `dask[array]`.
+
+ - PyPI does not prevent uploading of wheels using local version
+ identifiers, despite PEP440's explicit disal... | 6 | 0.181818 | 6 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.