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 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4