commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
6c2d21022b67e09004651dc953cb5279bc45fa8b | ubuntu/install_docker.sh | ubuntu/install_docker.sh |
if [ $UID -ne 0 ]; then
echo 'requires superuser privilege' 1>&2
exit 13
fi
# Install packages to allow apt to use a repository over HTTPS:
https_packages=(
apt-transport-https
ca-certificates
curl
software-properties-common
)
apt update
apt -y install "${https_packages[@]}"
# Add Docker’s o... |
if [ $UID -ne 0 ]; then
echo 'requires superuser privilege' 1>&2
exit 13
fi
# Uninstall older versions of Docker
sudo apt remove docker docker-engine docker.io
# Install packages to allow apt to use a repository over HTTPS:
https_packages=(
apt-transport-https
ca-certificates
curl
software-p... | Update the docker installation script | Update the docker installation script
| Shell | mit | thombashi/dotfiles,thombashi/dotfiles | shell | ## Code Before:
if [ $UID -ne 0 ]; then
echo 'requires superuser privilege' 1>&2
exit 13
fi
# Install packages to allow apt to use a repository over HTTPS:
https_packages=(
apt-transport-https
ca-certificates
curl
software-properties-common
)
apt update
apt -y install "${https_packages[@]}"
... |
3450f3f8730c061183fb8898b9c1fe11e2d98a22 | project_1.html | project_1.html | <!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="d3/d3.min.js"></script>
</head>
<body>
<p>Hello!</p>
</body>
</html> | <!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="d3/d3.min.js"></script>
</head>
<body>
</body>
<script>
var jsonCircles = [
{ "x_axis": 30, "y_axis": 30, "radius": 20, "color" : "green" },
{ "x_axis": 100, "y_axis": 100, "radius": 40, "color" : "purple"},
{ "x_axis": 20... | Add JSON based data to create SVG circles | Add JSON based data to create SVG circles
| HTML | apache-2.0 | gsluthra/d3js_projects | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="d3/d3.min.js"></script>
</head>
<body>
<p>Hello!</p>
</body>
</html>
## Instruction:
Add JSON based data to create SVG circles
## Code After:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="d3/d3.min.js"></s... |
d3019abd9e043cb088caa62ccc33056604f485e1 | src/services/fileStorage/utils/filePathHelper.js | src/services/fileStorage/utils/filePathHelper.js | const removeLeadingSlash = path => (path[0] === '/' ? path.substring(1) : path);
const generateFileNameSuffix = fileName => `${Date.now()}-${fileName}`;
const returnFileType = fileName => ({
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
xlsx: 'application/vnd.openxmlformats-office... | const removeLeadingSlash = path => (path[0] === '/' ? path.substring(1) : path);
const generateFileNameSuffix = fileName => `${Date.now()}-${fileName}`;
const returnFileType = fileName => ({
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
xlsx: 'application/vnd.openxmlformats-office... | Add some image mime types. | Add some image mime types.
| JavaScript | agpl-3.0 | schul-cloud/schulcloud-server,schul-cloud/schulcloud-server,schul-cloud/schulcloud-server | javascript | ## Code Before:
const removeLeadingSlash = path => (path[0] === '/' ? path.substring(1) : path);
const generateFileNameSuffix = fileName => `${Date.now()}-${fileName}`;
const returnFileType = fileName => ({
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
xlsx: 'application/vnd.openx... |
e549552a6e0f8da38cd4ffee99be79a2cb1656bf | .travis.yml | .travis.yml | language: python
python:
- "2.7"
install: "pip install -r pytx/requirements.txt"
env:
- TEST_DIR=pytx
script: cd $TEST_DIR && make test
| language: python
python:
- "2.7"
install: "pip install -r pytx/requirements.txt"
env:
- TEST_DIR=pytx
before_install:
- pip install tox
script: cd $TEST_DIR && make test
| Test requires tox to be installed. | Test requires tox to be installed.
Travis needs to know to install tox so tests can be run.
| YAML | bsd-3-clause | theCatWisel/ThreatExchange,RyPeck/ThreatExchange,tiegz/ThreatExchange,theCatWisel/ThreatExchange,mgoffin/ThreatExchange,wxsBSD/ThreatExchange,mgoffin/ThreatExchange,RyPeck/ThreatExchange,wxsBSD/ThreatExchange,wxsBSD/ThreatExchange,theCatWisel/ThreatExchange,mgoffin/ThreatExchange,mgoffin/ThreatExchange,mgoffin/ThreatEx... | yaml | ## Code Before:
language: python
python:
- "2.7"
install: "pip install -r pytx/requirements.txt"
env:
- TEST_DIR=pytx
script: cd $TEST_DIR && make test
## Instruction:
Test requires tox to be installed.
Travis needs to know to install tox so tests can be run.
## Code After:
language: python
python:
- "2.7"
ins... |
14752671d56eb3004083b47df88b29b1105e4819 | scripts/ubuntu/networking.sh | scripts/ubuntu/networking.sh |
rm /etc/udev/rules.d/70-persistent-net.rules
mkdir /etc/udev/rules.d/70-persistent-net.rules
rm /lib/udev/rules.d/75-persistent-net-generator.rules
rm -rf /dev/.udev/ /var/lib/dhcp3/*
echo "pre-up sleep 2" >> /etc/network/interfaces
|
rm /etc/udev/rules.d/70-persistent-net.rules
mkdir /etc/udev/rules.d/70-persistent-net.rules
rm /lib/udev/rules.d/75-persistent-net-generator.rules
rm -rf /dev/.udev/ /var/lib/dhcp3/*
| Remove unnecessary 2s sleep in interface pre-up | Remove unnecessary 2s sleep in interface pre-up
| Shell | mit | mayflower/baseboxes | shell | ## Code Before:
rm /etc/udev/rules.d/70-persistent-net.rules
mkdir /etc/udev/rules.d/70-persistent-net.rules
rm /lib/udev/rules.d/75-persistent-net-generator.rules
rm -rf /dev/.udev/ /var/lib/dhcp3/*
echo "pre-up sleep 2" >> /etc/network/interfaces
## Instruction:
Remove unnecessary 2s sleep in interface pre-up
## C... |
345794f454642d3a313b8da4c87a874ed9521c09 | preprocessing/collect_unigrams.py | preprocessing/collect_unigrams.py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
from model.unigrams import Unigrams
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
ARTICLES_FILEPATH = "/media/aj/grab/nlp/corpus/processed/wikipedia-ner/annotated-fulltext.txt"
WRITE_UNIGRAMS_FILEPATH = os.path.joi... | from __future__ import absolute_import, division, print_function, unicode_literals
import os
from model.unigrams import Unigrams
from config import *
def main():
"""Main function."""
# collect all unigrams (all labels, including "O")
print("Collecting unigrams...")
ug_all = Unigrams()
ug_all.f... | Add documentation, refactor to use config | Add documentation, refactor to use config
| Python | mit | aleju/ner-crf | python | ## Code Before:
from __future__ import absolute_import, division, print_function, unicode_literals
import os
from model.unigrams import Unigrams
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
ARTICLES_FILEPATH = "/media/aj/grab/nlp/corpus/processed/wikipedia-ner/annotated-fulltext.txt"
WRITE_UNIGRAMS_FILEPA... |
39649bbf59bb62085d26d7314f2cd0ed2bce893b | config/schedule.rb | config/schedule.rb | set :output, { error: 'log/cron.error.log', standard: 'log/cron.log'}
every 1.hour do
rake "tariff:download"
end
every 1.day, at: '5am' do
rake "tariff:sync"
end
| set :output, { error: 'log/cron.error.log', standard: 'log/cron.log'}
every 1.hour do
rake "tariff:sync:download"
end
every 1.day, at: '5am' do
rake "tariff:sync:apply"
end
| Fix task names, add sync namespace. | Fix task names, add sync namespace.
| Ruby | mit | alphagov/trade-tariff-backend,alphagov/trade-tariff-backend,leftees/trade-tariff-backend,leftees/trade-tariff-backend,bitzesty/trade-tariff-backend,alphagov/trade-tariff-backend,bitzesty/trade-tariff-backend,bitzesty/trade-tariff-backend,leftees/trade-tariff-backend | ruby | ## Code Before:
set :output, { error: 'log/cron.error.log', standard: 'log/cron.log'}
every 1.hour do
rake "tariff:download"
end
every 1.day, at: '5am' do
rake "tariff:sync"
end
## Instruction:
Fix task names, add sync namespace.
## Code After:
set :output, { error: 'log/cron.error.log', standard: 'log/cron.log... |
b32e73bd0090bcb2dc661141a4196416391a75e0 | emacs/.doom.d/config.el | emacs/.doom.d/config.el | ;;; ~/.doom.d/config.el -*- lexical-binding: t; -*-
(setq doom-font (font-spec :family "Source Code Pro" :size 20)
doom-big-font (font-spec :family "Source Code Pro" :size 26)
display-line-numbers-type nil
org-log-done 'time
evil-escape-excluded-states '(normal multiedit emacs motion)
)
... | ;;; ~/.doom.d/config.el -*- lexical-binding: t; -*-
(setq doom-font (font-spec :family "Source Code Pro" :size 20)
doom-big-font (font-spec :family "Source Code Pro" :size 26)
display-line-numbers-type nil
org-log-done 'time
evil-escape-excluded-states '(normal multiedit emacs motion)
)
... | Support universal argument when searching project | Support universal argument when searching project
| Emacs Lisp | unlicense | jdnavarro/dotfiles | emacs-lisp | ## Code Before:
;;; ~/.doom.d/config.el -*- lexical-binding: t; -*-
(setq doom-font (font-spec :family "Source Code Pro" :size 20)
doom-big-font (font-spec :family "Source Code Pro" :size 26)
display-line-numbers-type nil
org-log-done 'time
evil-escape-excluded-states '(normal multiedit emacs m... |
8be6da3b9e29bc5701fad75f3253a30805f28cf4 | writer_unsafe.go | writer_unsafe.go | // +build !appengine,!tinygo
package fwd
import (
"reflect"
"unsafe"
)
// unsafe cast string as []byte
func unsafestr(b string) []byte {
l := len(b)
return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{
Len: l,
Cap: l,
Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data,
}))
}
| // +build !appengine,!tinygo
package fwd
import (
"reflect"
"unsafe"
)
// unsafe cast string as []byte
func unsafestr(s string) []byte {
var b []byte
sHdr := (*reflect.StringHeader)(unsafe.Pointer(&s))
bHdr := (*reflect.SliceHeader)(unsafe.Pointer(&b))
bHdr.Data = sHdr.Data
bHdr.Len = sHdr.Len
bHdr.Cap = sHd... | Fix invalid usage of reflect.SliceHeader | Fix invalid usage of reflect.SliceHeader
Using plain reflect.SliceHeader struct violates unsafe pointer 6th rule.
| Go | mit | philhofer/fwd | go | ## Code Before:
// +build !appengine,!tinygo
package fwd
import (
"reflect"
"unsafe"
)
// unsafe cast string as []byte
func unsafestr(b string) []byte {
l := len(b)
return *(*[]byte)(unsafe.Pointer(&reflect.SliceHeader{
Len: l,
Cap: l,
Data: (*reflect.StringHeader)(unsafe.Pointer(&b)).Data,
}))
}
## In... |
0b387150ba1906e912d66f70fb094612eb86564c | kernel/sources.cmake | kernel/sources.cmake | cmake_minimum_required(VERSION 3.2)
set(
KERNEL_NOARCH_SOURCES_GLOB
"${CMAKE_SOURCE_DIR}/kernel/*.c"
"${CMAKE_SOURCE_DIR}/kernel/*/*.c"
"${CMAKE_SOURCE_DIR}/kernel/fs/*/*.c"
"${CMAKE_SOURCE_DIR}/common/*.c"
"${CMAKE_SOURCE_DIR}/common/3rd_party/datetime.c"
"${CMAKE_SOURCE_DIR}/common/3rd_party/cr... | cmake_minimum_required(VERSION 3.2)
set(
KERNEL_NOARCH_SOURCES_GLOB
"${CMAKE_SOURCE_DIR}/kernel/*.c"
"${CMAKE_SOURCE_DIR}/kernel/*.cpp"
"${CMAKE_SOURCE_DIR}/kernel/*/*.c"
"${CMAKE_SOURCE_DIR}/kernel/*/*.cpp"
"${CMAKE_SOURCE_DIR}/kernel/fs/*/*.c"
"${CMAKE_SOURCE_DIR}/kernel/fs/*/*.cpp"
"${CMAKE... | Allow C++ files also in the kernel/ directory | [cmake] Allow C++ files also in the kernel/ directory
| CMake | bsd-2-clause | vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs,vvaltchev/experimentOs | cmake | ## Code Before:
cmake_minimum_required(VERSION 3.2)
set(
KERNEL_NOARCH_SOURCES_GLOB
"${CMAKE_SOURCE_DIR}/kernel/*.c"
"${CMAKE_SOURCE_DIR}/kernel/*/*.c"
"${CMAKE_SOURCE_DIR}/kernel/fs/*/*.c"
"${CMAKE_SOURCE_DIR}/common/*.c"
"${CMAKE_SOURCE_DIR}/common/3rd_party/datetime.c"
"${CMAKE_SOURCE_DIR}/com... |
fb66bb4a8adb122cf73ee126d06c6ae0f2801517 | src/main/scripts/PageRank.sh | src/main/scripts/PageRank.sh |
hadoop jar page-rank.jar com.github.ygf.pagerank.PageRank \
-D pagerank.block_size=10000 \
-D pagerank.damping_factor=0.85 \
-D pagerank.max_iterations=2 \
-D pagerank.top_results=100 \
-D yarn.am.liveness-monitor.expiry-interval-ms=3600000 \
-D yarn.nm.liveness-monitor.expiry-interval-ms=36000... |
hadoop jar page-rank.jar com.github.ygf.pagerank.PageRank \
-D pagerank.block_size=10000 \
-D pagerank.damping_factor=0.85 \
-D pagerank.max_iterations=2 \
-D pagerank.top_results=100 \
"$@"
| Remove the timeout settings used during development in pseudo-distributed mode. | Remove the timeout settings used during development in pseudo-distributed mode.
| Shell | apache-2.0 | yasserglez/pagerank-hadoop,yasserglez/pagerank-hadoop | shell | ## Code Before:
hadoop jar page-rank.jar com.github.ygf.pagerank.PageRank \
-D pagerank.block_size=10000 \
-D pagerank.damping_factor=0.85 \
-D pagerank.max_iterations=2 \
-D pagerank.top_results=100 \
-D yarn.am.liveness-monitor.expiry-interval-ms=3600000 \
-D yarn.nm.liveness-monitor.expiry-i... |
3b7b15db24ac738c143e3d2d38c740500ac73fd0 | jinja2_time/jinja2_time.py | jinja2_time/jinja2_time.py |
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environment.extend(
date_fo... |
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environment.extend(
datetim... | Change environment attribute name to datetime_format | Change environment attribute name to datetime_format
| Python | mit | hackebrot/jinja2-time | python | ## Code Before:
import arrow
from jinja2 import nodes
from jinja2.ext import Extension
class TimeExtension(Extension):
tags = set(['now'])
def __init__(self, environment):
super(TimeExtension, self).__init__(environment)
# add the defaults to the environment
environment.extend(
... |
5c40cbfcb89649738945eda02c1bfb804e2ecdae | us_ignite/mailinglist/views.py | us_ignite/mailinglist/views.py | import hashlib
import mailchimp
from django.contrib import messages
from django.conf import settings
from django.shortcuts import redirect
from django.template.response import TemplateResponse
from us_ignite.mailinglist.forms import EmailForm
def subscribe_email(email):
master = mailchimp.Mailchimp(settings.MAI... | import hashlib
import logging
import mailchimp
from django.contrib import messages
from django.conf import settings
from django.shortcuts import redirect
from django.template.response import TemplateResponse
from us_ignite.mailinglist.forms import EmailForm
logger = logging.getLogger('us_ignite.mailinglist.views')
... | Improve handling of errors during mailing list subscription. | Improve handling of errors during mailing list subscription.
https://github.com/madewithbytes/us_ignite/issues/209
Any exception thrown by the mailchimp component will
be handled gracefully and logged.
| Python | bsd-3-clause | us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite | python | ## Code Before:
import hashlib
import mailchimp
from django.contrib import messages
from django.conf import settings
from django.shortcuts import redirect
from django.template.response import TemplateResponse
from us_ignite.mailinglist.forms import EmailForm
def subscribe_email(email):
master = mailchimp.Mailch... |
3d2529bf96735b419295ff0a8ab62c6fb235f853 | private.html | private.html | <html>
<body>
</body>
<a href="https://mega.co.nz/#F!nh9nHYjD!iqC350Q-09JUEqwfnTXcHg">Image Library</a>
<a href="http://www.smbc-comics.com/?id=3432">Object Sense Organ</a><br />
<a href="http://imgur.com/a/tgcdw">Pranking Cats</a><br />
<a href="http://i.imgur.com/KlDDjhf.gif">Crow asking for water</a><br />
</html>
| <html>
<body>
</body>
<a href="https://mega.co.nz/#F!nh9nHYjD!iqC350Q-09JUEqwfnTXcHg">Image Library</a>
<a href="http://www.smbc-comics.com/?id=3432">Object Sense Organ</a><br />
<a href="http://imgur.com/a/tgcdw">Pranking Cats</a><br />
<a href="http://i.imgur.com/KlDDjhf.gif">Crow asking for water</a><br />
<a href="... | Add best buy's outdate world video. | Add best buy's outdate world video.
| HTML | apache-2.0 | wparad/wparad.github.io,wparad/wparad.github.io | html | ## Code Before:
<html>
<body>
</body>
<a href="https://mega.co.nz/#F!nh9nHYjD!iqC350Q-09JUEqwfnTXcHg">Image Library</a>
<a href="http://www.smbc-comics.com/?id=3432">Object Sense Organ</a><br />
<a href="http://imgur.com/a/tgcdw">Pranking Cats</a><br />
<a href="http://i.imgur.com/KlDDjhf.gif">Crow asking for water</a>... |
d30ccade13f8937c1662aee95a7abb259b996d27 | packages/st/stable-marriage.yaml | packages/st/stable-marriage.yaml | homepage: http://github.com/cutsea110/stable-marriage
changelog-type: markdown
hash: 1e29215f2d71ce5b4ec698fc49dd5264cbb58a6baca67183ccdca1fed56394aa
test-bench-deps: {}
maintainer: cutsea110@gmail.com
synopsis: algorithms around stable marriage
changelog: |+
RELEASE-0.1.3.0
================
* maintenance
basi... | homepage: http://github.com/cutsea110/stable-marriage
changelog-type: markdown
hash: 7ee37f2c44cf79b513614a1a7b48d0576f4c50b6e30cf7db726ce80d0178c508
test-bench-deps:
base: '>=4.12.0.0 && <4.14'
ghc-prim: ^>=0.5.3
maintainer: cutsea110@gmail.com
synopsis: algorithms around stable marriage
changelog: |+
RELEASE-0.... | Update from Hackage at 2020-07-12T05:28:10Z | Update from Hackage at 2020-07-12T05:28:10Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/cutsea110/stable-marriage
changelog-type: markdown
hash: 1e29215f2d71ce5b4ec698fc49dd5264cbb58a6baca67183ccdca1fed56394aa
test-bench-deps: {}
maintainer: cutsea110@gmail.com
synopsis: algorithms around stable marriage
changelog: |+
RELEASE-0.1.3.0
================
* ma... |
bc58effd53f4b2d3968b4cbe375bf5ea1fac4d0c | fcrepo-integrationtest/fcrepo-integrationtest-core/src/main/resources/scripts/tomcat-run.xml | fcrepo-integrationtest/fcrepo-integrationtest-core/src/main/resources/scripts/tomcat-run.xml | <project name="tomcat-run">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<target name="tomcat-start">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="yes" dir="${tomcat.home}" spawn="true">
<jvmarg value="-Djava.io.tmpdir=${tomcat.home}/temp" />
<jvmarg value="-XX:MaxPermSize=5... | <project name="tomcat-run">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<target name="tomcat-start">
<parallel>
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="yes" dir="${tomcat.home}" spawn="true">
<jvmarg value="-Djava.io.tmpdir=${tomcat.home}/temp" />
<jvmarg val... | Check that tomcat is started bedore tests start | FCREPO-829: Check that tomcat is started bedore tests start
| XML | apache-2.0 | andreasnef/fcrepo,DBCDK/fcrepo-3.5-patched,DBCDK/fcrepo-3.5-patched,fcrepo3/fcrepo,DBCDK/fcrepo-3.5-patched,fcrepo3/fcrepo,DBCDK/fcrepo-3.5-patched,andreasnef/fcrepo,fcrepo3/fcrepo,andreasnef/fcrepo,andreasnef/fcrepo,fcrepo3/fcrepo | xml | ## Code Before:
<project name="tomcat-run">
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<target name="tomcat-start">
<java jar="${tomcat.home}/bin/bootstrap.jar" fork="yes" dir="${tomcat.home}" spawn="true">
<jvmarg value="-Djava.io.tmpdir=${tomcat.home}/temp" />
<jvmarg value="-... |
de9fa610b9e6d0a8fa3cfd49bc76c08e80cc14f7 | requirements_demo.txt | requirements_demo.txt | https://github.com/django-oscar/django-oscar-stores/archive/feature/oscar-1.1.zip#egg=django-oscar-stores==1.0-dev
django-oscar-paypal==0.9.1
django-oscar-datacash==0.8.3
# We need PostGIS as the stores extension uses GeoDjango.
psycopg2==2.5.1
# To use Solr, we need pysolr
pysolr==3.2
raven==4.0.3
| https://github.com/django-oscar/django-oscar-stores/archive/630aa146066cd327085fe9206dc50f6e520cc023.zip#egg=django-oscar-stores==1.0-dev
django-oscar-paypal==0.9.1
django-oscar-datacash==0.8.3
# We need PostGIS as the stores extension uses GeoDjango.
psycopg2==2.5.1
# To use Solr, we need pysolr
pysolr==3.2
raven==... | Update requirement for django-oscar-stores (demo site) | Update requirement for django-oscar-stores (demo site)
| Text | bsd-3-clause | lijoantony/django-oscar,pdonadeo/django-oscar,john-parton/django-oscar,kapari/django-oscar,pdonadeo/django-oscar,john-parton/django-oscar,nfletton/django-oscar,bschuon/django-oscar,spartonia/django-oscar,MatthewWilkes/django-oscar,monikasulik/django-oscar,solarissmoke/django-oscar,sonofatailor/django-oscar,taedori81/dj... | text | ## Code Before:
https://github.com/django-oscar/django-oscar-stores/archive/feature/oscar-1.1.zip#egg=django-oscar-stores==1.0-dev
django-oscar-paypal==0.9.1
django-oscar-datacash==0.8.3
# We need PostGIS as the stores extension uses GeoDjango.
psycopg2==2.5.1
# To use Solr, we need pysolr
pysolr==3.2
raven==4.0.3
... |
938840b27fd218eeaf9c253e9162392e653dff0b | snippet_parser/it.py | snippet_parser/it.py | from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def strip_template(self, template, normalize, c... | from __future__ import unicode_literals
from core import *
class SnippetParser(SnippetParserBase):
def strip_template(self, template, normalize, collapse):
if template.name.matches('bandiera'):
return self.handle_bandiera(template)
elif template.name.matches('citazione'):
r... | Fix snippet parser for Italian. | Fix snippet parser for Italian.
Former-commit-id: bb8d10f5f8301fbcd4f4232612bf722d380a3d10 | Python | mit | guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt,guilherme-pg/citationhunt,eggpi/citationhunt,eggpi/citationhunt,guilherme-pg/citationhunt | python | ## Code Before:
from __future__ import unicode_literals
from core import *
def handle_bandiera(template):
return template.get(1)
def handle_citazione(template):
if template.params:
return '« ' + sp(template.params[0]) + ' »'
class SnippetParser(SnippetParserBase):
def strip_template(self, templa... |
e9080e6b220b585cbb17d4e36a633d389ca234d0 | .github/workflows/build.yml | .github/workflows/build.yml | name: Build
on: [push]
jobs:
extras:
# Run coverage and extra tests only once
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 3.8
- run: pip install --upgrade pip
- run: make install
- run: make... | name: Build
on: [push, pull_request]
jobs:
extras:
# Run coverage and extra tests only once
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 3.8
- run: pip install --upgrade pip
- run: make install
... | Build on PRs as well | Build on PRs as well
| YAML | bsd-3-clause | jakubroztocil/httpie,PKRoma/httpie,jkbrzt/httpie,jakubroztocil/httpie,jakubroztocil/httpie,jkbrzt/httpie,jkbrzt/httpie,PKRoma/httpie | yaml | ## Code Before:
name: Build
on: [push]
jobs:
extras:
# Run coverage and extra tests only once
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: 3.8
- run: pip install --upgrade pip
- run: make install
... |
2c1f0be44943e324debafec303490b698ad5d91b | bootstrap.php | bootstrap.php | <?php
require_once __DIR__.'/vendor/autoload.php';
define('MANALIZE_DIR', __DIR__);
define('MANALIZE_TMP_ROOT_DIR', sys_get_temp_dir().'/Manala');
define('UPDATE_FIXTURES', filter_var(getenv('UPDATE_FIXTURES'), FILTER_VALIDATE_BOOLEAN));
/**
* Creates a unique tmp dir.
*
* @param string $prefix
*
* @return stri... | <?php
foreach (array(__DIR__.'/../../autoload.php', __DIR__.'/../vendor/autoload.php', __DIR__.'/vendor/autoload.php') as $autoload) {
if (file_exists($autoload)) {
require_once $autoload;
break;
}
}
define('MANALIZE_DIR', __DIR__);
define('MANALIZE_TMP_ROOT_DIR', sys_get_temp_dir().'/Manala'... | Fix not found autoload on local install | Fix not found autoload on local install
| PHP | mit | manala/manalize,manala/manalize | php | ## Code Before:
<?php
require_once __DIR__.'/vendor/autoload.php';
define('MANALIZE_DIR', __DIR__);
define('MANALIZE_TMP_ROOT_DIR', sys_get_temp_dir().'/Manala');
define('UPDATE_FIXTURES', filter_var(getenv('UPDATE_FIXTURES'), FILTER_VALIDATE_BOOLEAN));
/**
* Creates a unique tmp dir.
*
* @param string $prefix
*... |
64538943aeaf3008ba8e2ca5e3f39a0a15868835 | js/app/views/templates/item-listing.html | js/app/views/templates/item-listing.html | <div class="thumbnail media listing">
<img class="pull-left" height="64px" width="64px" src="<%= imageUrl %>" />
<div class="media-body">
<h4 class="media-heading"><%= name %></h4>
<div class="item-expiry"><span class="glyphicon glyphicon-calendar"></span><%= dateExpire %></div>
<div class="item-location"><span... | <div class="thumbnail media listing">
<img class="pull-left" height="64px" width="64px" src="<%= imageUrl %>" />
<div class="media-body">
<h4 class="media-heading"><%= name %></h4>
<div class="item-expiry"><span class="glyphicon glyphicon-calendar"></span><%= dateExpire %></div>
<div class="item-location"><span... | Remove message saying you're buying an item. It's obvious. | Remove message saying you're buying an item. It's obvious.
| HTML | mit | burnflare/CrowdBuy,burnflare/CrowdBuy | html | ## Code Before:
<div class="thumbnail media listing">
<img class="pull-left" height="64px" width="64px" src="<%= imageUrl %>" />
<div class="media-body">
<h4 class="media-heading"><%= name %></h4>
<div class="item-expiry"><span class="glyphicon glyphicon-calendar"></span><%= dateExpire %></div>
<div class="item... |
0373a7750a8a35521ad7afb854379434c9da7ad1 | rules/babel.js | rules/babel.js | 'use strict'
const _ = require('lodash')
const extendConfig = require('../lib/extendConfig')
const mainRules = require('./main')
const eslintConfigAirbnb = extendConfig({
extends: 'airbnb'
})
const migratedRules = {}
const migrateRuleNames = [
'array-bracket-spacing',
'arrow-parens',
'generator-star-spacing... | 'use strict'
const _ = require('lodash')
const extendConfig = require('../lib/extendConfig')
const mainRules = require('./main')
const eslintConfigAirbnb = extendConfig({
extends: 'eslint-config-airbnb'
})
const migratedRules = {}
const migrateRuleNames = [
'array-bracket-spacing',
'arrow-parens',
'generato... | Use full path for eslint-config-airbnb | Use full path for eslint-config-airbnb
| JavaScript | mit | foray1010/eslint-config-foray1010,foray1010/eslint-config-foray1010 | javascript | ## Code Before:
'use strict'
const _ = require('lodash')
const extendConfig = require('../lib/extendConfig')
const mainRules = require('./main')
const eslintConfigAirbnb = extendConfig({
extends: 'airbnb'
})
const migratedRules = {}
const migrateRuleNames = [
'array-bracket-spacing',
'arrow-parens',
'genera... |
faa007e535289ee435df9ec4a92f3b229bbd9227 | app_server/app/controllers/AdminController.js | app_server/app/controllers/AdminController.js | /**
* Admin Controller
* @module AdminController
*/
var rfr = require('rfr');
var Joi = require('joi');
var Boom = require('boom');
var Utility = rfr('app/util/Utility');
var Service = rfr('app/services/Service');
var logger = Utility.createLogger(__filename);
function AdminController(server, options) {
this.se... | /**
* Admin Controller
* @module AdminController
*/
var rfr = require('rfr');
var Joi = require('joi');
var Boom = require('boom');
var bcrypt = require('bcryptjs');
var Utility = rfr('app/util/Utility');
var Authenticator = rfr('app/policies/Authenticator');
var Service = rfr('app/services/Service');
var logger =... | Implement basic create admin with username / password only | Implement basic create admin with username / password only
| JavaScript | mit | nus-mtp/worldscope,nus-mtp/worldscope,nus-mtp/worldscope,nus-mtp/worldscope | javascript | ## Code Before:
/**
* Admin Controller
* @module AdminController
*/
var rfr = require('rfr');
var Joi = require('joi');
var Boom = require('boom');
var Utility = rfr('app/util/Utility');
var Service = rfr('app/services/Service');
var logger = Utility.createLogger(__filename);
function AdminController(server, opti... |
2f4b8c712601edde144aaeeddf3b1dad5eddb8f2 | lib/ruby-lint/helper/methods.rb | lib/ruby-lint/helper/methods.rb | module RubyLint
module Helper
##
# Helper module that provides various methods for looking up methods,
# checking if they exist, etc.
#
module Methods
include CurrentScope
##
# Checks if the method for the given node is defined or not.
#
# @param [RubyLint::Node] nod... | module RubyLint
module Helper
##
# Helper module that provides various methods for looking up methods,
# checking if they exist, etc.
#
module Methods
include CurrentScope
##
# Checks if the method for the given node is defined or not.
#
# @param [RubyLint::Node] nod... | Handle non existing method scopes. | Handle non existing method scopes.
Signed-off-by: Yorick Peterse <82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com>
| Ruby | mpl-2.0 | cabo/ruby-lint,cabo/ruby-lint,YorickPeterse/ruby-lint,YorickPeterse/ruby-lint | ruby | ## Code Before:
module RubyLint
module Helper
##
# Helper module that provides various methods for looking up methods,
# checking if they exist, etc.
#
module Methods
include CurrentScope
##
# Checks if the method for the given node is defined or not.
#
# @param [Rub... |
a1d1c0d75e20aae8890915705ced7816efd7045c | CHANGELOG.md | CHANGELOG.md |
* Initial release
|
* Add support for `data-lazy-url-horizontal` and `data-lazy-url-context` options
### 0.0.1
* Initial release
| Update changelog for 0.0.2 release | Update changelog for 0.0.2 release
Change-Id: If51488778aca979e75b817f5b05936b6575f978f
Reviewed-on: https://gerrit.causes.com/26497
Reviewed-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@causes.com>
Tested-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@causes.com>
| Markdown | mit | causes/replacejs | markdown | ## Code Before:
* Initial release
## Instruction:
Update changelog for 0.0.2 release
Change-Id: If51488778aca979e75b817f5b05936b6575f978f
Reviewed-on: https://gerrit.causes.com/26497
Reviewed-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@causes.com>
Tested-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b... |
89926dac73b54d6afec341be485f5e905daae970 | app/index.html | app/index.html | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hotshot</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="css/app.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="main" class="container-fluid">
<div class="row">
<ul class="shot... | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hotshot</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="css/app.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<header class="site-header header-down">
<button class="btn btn-default nav-... | Add button to html to allow for easy scrolling to top. Begin implementation of header bar and settings | Add button to html to allow for easy scrolling to top. Begin implementation of header bar and settings
| HTML | cc0-1.0 | andrewnaumann/hotshot,andrewnaumann/hotshot | html | ## Code Before:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hotshot</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css"/>
<link href="css/app.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="main" class="container-fluid">
<div class="row">
... |
64ee9131d68eb195dd7ce5af3db47fab0d0402d9 | templates/Includes/Picturefill.ss | templates/Includes/Picturefill.ss |
<%-- Args: $Title, $Link, $DesktopImage [, $MobileImage [, $TabletImage ]] --%>
<span class="picturefill" data-picture="" data-alt="$Title.ATT" data-link="$Link">
<% if $DesktopImage.exists %>
<noscript>
<img src="$DesktopImage.getURL" alt="$Title.ATT" />
</noscript>
<span data-src="$DesktopImage.getURL"></span... |
<%-- Args: $Title, $Link, $DesktopImage [, $MobileImage [, $TabletImage ]] --%>
<span class="picturefill" data-picture="" data-alt="$Title.ATT" data-link="$Link">
<% if $DesktopImage.exists %>
<noscript>
<img src="$DesktopImage.getURL" alt="$Title.ATT" />
</noscript>
<span data-src="$DesktopImage.getURL"></span... | Allow the MobileImage to be displayed. | Allow the MobileImage to be displayed.
| Scheme | bsd-3-clause | edlund/silverstripe-patchwork,edlund/silverstripe-patchwork,redema/silverstripe-patchwork,redema/silverstripe-patchwork,edlund/silverstripe-patchwork,redema/silverstripe-patchwork | scheme | ## Code Before:
<%-- Args: $Title, $Link, $DesktopImage [, $MobileImage [, $TabletImage ]] --%>
<span class="picturefill" data-picture="" data-alt="$Title.ATT" data-link="$Link">
<% if $DesktopImage.exists %>
<noscript>
<img src="$DesktopImage.getURL" alt="$Title.ATT" />
</noscript>
<span data-src="$DesktopImag... |
85db1ae442e9fcc559da1a12e1cc5be4f026f514 | govuk_frontend_toolkit.gemspec | govuk_frontend_toolkit.gemspec | $:.push File.expand_path("../lib", __FILE__)
require "govuk_frontend_toolkit/version"
Gem::Specification.new do |s|
s.name = "govuk_frontend_toolkit"
s.version = GovUKFrontendToolkit::VERSION
s.summary = 'Tools for building frontend applications'
s.authors = ['Bradley Wright']
s.email... | $:.push File.expand_path("../lib", __FILE__)
require "govuk_frontend_toolkit/version"
Gem::Specification.new do |s|
s.name = "govuk_frontend_toolkit"
s.version = GovUKFrontendToolkit::VERSION
s.summary = 'Tools for building frontend applications'
s.authors = ['Bradley Wright']
s.email... | Fix built files in Gemspec | Fix built files in Gemspec
| Ruby | mit | TFOH/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,ministryofjustice/govuk_frontend_toolkit,ministryofjustice/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,alphagov/govuk_frontend_toolki... | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
require "govuk_frontend_toolkit/version"
Gem::Specification.new do |s|
s.name = "govuk_frontend_toolkit"
s.version = GovUKFrontendToolkit::VERSION
s.summary = 'Tools for building frontend applications'
s.authors = ['Bradley Wr... |
15c8215415d36da4fac9c7333e62239f7b81c12d | test/support/mock_definitions.py | test/support/mock_definitions.py | class MockDefinitions(object):
def __init__(self, session_key=None):
self.session_key = session_key if session_key is not None else '123456789'
@property
def metadata(self):
host = os.getenv('SPLUNK_API_HOST', 'localhost')
port = os.getenv('SPLUNK_API_PORT', 8089),
return {'... | import os
# Generates validation/input definitions as if they were created by splunk for tests
class MockDefinitions(object):
def __init__(self, session_key=None):
self.session_key = session_key if session_key is not None else '123456789'
@property
def metadata(self):
host = os.getenv('SPLU... | Change mock to be env dependant | Change mock to be env dependant
| Python | bsd-2-clause | Cisco-AMP/amp4e_splunk_events_input,Cisco-AMP/amp4e_splunk_events_input,Cisco-AMP/amp4e_splunk_events_input,Cisco-AMP/amp4e_splunk_events_input | python | ## Code Before:
class MockDefinitions(object):
def __init__(self, session_key=None):
self.session_key = session_key if session_key is not None else '123456789'
@property
def metadata(self):
host = os.getenv('SPLUNK_API_HOST', 'localhost')
port = os.getenv('SPLUNK_API_PORT', 8089),
... |
04212886e3c20af7e86183c170bc66d266a6d23f | authentication.html | authentication.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script src="scripts/lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
var host = 'https://login.zooniverse.org/';
if (!!~location.host.indexOf('localhost')) host = 'ht... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script src="scripts/lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
var host = 'https://login.zooniverse.org/';
if (!!~location.host.indexOf('localhost')) host = 'ht... | Check for current user on load. | Check for current user on load. | HTML | apache-2.0 | powolnymarcel/Bat-Detective,powolnymarcel/Bat-Detective,powolnymarcel/Bat-Detective,zooniverse/Bat-Detective,zooniverse/Bat-Detective,zooniverse/Bat-Detective | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script src="scripts/lib/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
var host = 'https://login.zooniverse.org/';
if (!!~location.host.indexOf('localho... |
3ec2d2e2a24bc8f6f54e7e38bdfc78aca2c10f8b | lib/autocomplete/provider.coffee | lib/autocomplete/provider.coffee | {filter} = require 'fuzzaldrin'
AutoCompletePlusProvider =
selector: '.source.dart'
disableForSelector: '.source.dart .comment'
inclusionPriority: 1
excludeLowerPriority: true
# Our analysis API service object
analysisApi: null
# Required: Return a promise, an array of suggestions, or null.
getSugge... | {filter} = require 'fuzzaldrin'
{_} = require 'lodash'
AutoCompletePlusProvider =
selector: '.source.dart'
disableForSelector: '.source.dart .comment'
inclusionPriority: 1
excludeLowerPriority: true
# Our analysis API service object
analysisApi: null
# Required: Return a promise, an array of suggestio... | Make some fixes to the autocompleter. | Make some fixes to the autocompleter.
Missing "element" no longer causes failures.
Also, sorting is slightly improved, maybe.
Probably.
Possibly.
| CoffeeScript | mit | radicaled/dart-tools | coffeescript | ## Code Before:
{filter} = require 'fuzzaldrin'
AutoCompletePlusProvider =
selector: '.source.dart'
disableForSelector: '.source.dart .comment'
inclusionPriority: 1
excludeLowerPriority: true
# Our analysis API service object
analysisApi: null
# Required: Return a promise, an array of suggestions, or ... |
44aed626bf56b72af4934768e9fa31ad4439935a | src/test/run-pass/syntax-extension-fmt.rs | src/test/run-pass/syntax-extension-fmt.rs | // xfail-boot
// xfail-stage0
use std;
import std._str;
fn test(str actual, str expected) {
log actual;
log expected;
check (_str.eq(actual, expected));
}
fn main() {
test(#fmt("hello %d friends and %s things", 10, "formatted"),
"hello 10 friends and formatted things");
// Simple tests for types
test... | // xfail-boot
// xfail-stage0
use std;
import std._str;
fn test(str actual, str expected) {
log actual;
log expected;
check (_str.eq(actual, expected));
}
fn main() {
test(#fmt("hello %d friends and %s things", 10, "formatted"),
"hello 10 friends and formatted things");
// Simple tests for types
test... | Add ExtFmt test for unsigned type | Add ExtFmt test for unsigned type
| Rust | apache-2.0 | mitsuhiko/rust,LeoTestard/rust,vhbit/rust,rohitjoshi/rust,barosl/rust,kmcallister/rust,l0kod/rust,andars/rust,kimroen/rust,dinfuehr/rust,defuz/rust,fabricedesre/rust,0x73/rust,GBGamer/rust,seanrivera/rust,j16r/rust,robertg/rust,SiegeLord/rust,ktossell/rust,GBGamer/rust,AerialX/rust,ejjeong/rust,kimroen/rust,zachwick/ru... | rust | ## Code Before:
// xfail-boot
// xfail-stage0
use std;
import std._str;
fn test(str actual, str expected) {
log actual;
log expected;
check (_str.eq(actual, expected));
}
fn main() {
test(#fmt("hello %d friends and %s things", 10, "formatted"),
"hello 10 friends and formatted things");
// Simple tests ... |
d119d6e3b0e4fd1afd7a38542e1c70df3e719572 | validation-test/IDE/crashers_fixed/extension-protocol-composition.swift | validation-test/IDE/crashers_fixed/extension-protocol-composition.swift | // RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | FileCheck %s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s | FileCheck %s
typealias X = protocol<CustomStringConvertible>
typealias Y = protocol<CustomStringConvertible>
extensi... | // RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | FileCheck %s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s | FileCheck %s
typealias X = protocol<CustomStringConvertible>
typealias Y = protocol<CustomStringConvertible>
extensi... | Update validation-test/IDE after keyword changes | [CodeCompletion] Update validation-test/IDE after keyword changes
| Swift | apache-2.0 | JaSpa/swift,parkera/swift,kperryua/swift,khizkhiz/swift,tkremenek/swift,ben-ng/swift,khizkhiz/swift,austinzheng/swift,tinysun212/swift-windows,emilstahl/swift,kentya6/swift,danielmartin/swift,huonw/swift,kstaring/swift,rudkx/swift,devincoughlin/swift,ahoppen/swift,calebd/swift,sschiau/swift,jckarter/swift,Jnosh/swift,s... | swift | ## Code Before:
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | FileCheck %s
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s | FileCheck %s
typealias X = protocol<CustomStringConvertible>
typealias Y = protocol<CustomStringConv... |
957637fdd18d860b759c07312916d4cf0ee2dcc8 | src/Windows/Setup/WixInstall/project.json | src/Windows/Setup/WixInstall/project.json | {
"dependencies": {
"MicroBuild.Core": "0.2.0",
"WiX": "3.11.0"
},
"frameworks": {
"net46": {}
},
"runtimes": {
"win": {}
}
} | {
"dependencies": {
"MicroBuild.Core": "0.2.0",
"VS.Tools.Wix": "1.0.15100801",
"DDWixExt": "14.0.22823.1",
"WiX": "3.11.0"
},
"frameworks": {
"net46": {}
},
"runtimes": {
"win": {}
}
} | Add Vs Wix to the install list | Add Vs Wix to the install list
| JSON | mit | karthiknadig/RTVS,MikhailArkhipov/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,karthiknadig/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,MikhailArkhipov/RTVS,AlexanderSher/RTVS,karthiknadig/RTVS,MikhailArkhipov/RTVS,AlexanderSher... | json | ## Code Before:
{
"dependencies": {
"MicroBuild.Core": "0.2.0",
"WiX": "3.11.0"
},
"frameworks": {
"net46": {}
},
"runtimes": {
"win": {}
}
}
## Instruction:
Add Vs Wix to the install list
## Code After:
{
"dependencies": {
"MicroBuild.Core": "0.2.0",
"VS.Tools.Wix": "1.0.151008... |
9f90f64aa998c814b4994bba3e3c82c350363b41 | www/deviceinformation.js | www/deviceinformation.js | var DeviceInformationLoader = function (require, exports, module) {
var exec = require("cordova/exec");
function DeviceInformation () {}
DeviceInformation.prototype.get = function (successFunc, failFunc) {
exec(successFunc, failFunc, "DeviceInformation","get",[]);
};
var d... | var exec = require("cordova/exec");
var DeviceInformationLoader = function (require, exports, module) {
function DeviceInformation () {}
DeviceInformation.prototype.get = function (successFunc, failFunc) {
exec(successFunc, failFunc, "DeviceInformation","get",[]);
};
var deviceInformation = ... | Move require outside of function call. Maybe this will help. | Move require outside of function call. Maybe this will help.
| JavaScript | mit | UpChannel/DeviceInformationPlugin,UpChannel/DeviceInformationPlugin | javascript | ## Code Before:
var DeviceInformationLoader = function (require, exports, module) {
var exec = require("cordova/exec");
function DeviceInformation () {}
DeviceInformation.prototype.get = function (successFunc, failFunc) {
exec(successFunc, failFunc, "DeviceInformation","get",[]);
}... |
e2e161eb238762c54e31ffa07aa2f641eedc3e21 | src/mac/helper-scripts/build.sh | src/mac/helper-scripts/build.sh |
set -e
project=$1
if [ ! -d $project ]; then
git clone https://github.com/evancz/$project.git
fi
cd $project
# May report a "fatal" error, but that is okay.
tag=$(git describe --exact-match HEAD || echo "failure")
if [ $tag != $2 ]; then
git checkout master
git pull
git checkout tags/$2
fi
cabal i... |
set -e
project=$1
# Clone the project if necessary
if [ ! -d $project ]; then
git clone https://github.com/evancz/$project.git
fi
cd $project
# Build the project if necessary.
# "git describe" may report a fatal error, but it does not matter if that happens.
tag=$(git describe --exact-match HEAD || echo "failu... | Add comments and run "cabal install" only if we had to jump to the correct tag | Add comments and run "cabal install" only if we had to jump to the correct tag
| Shell | bsd-3-clause | mseri/elm-platform,rtorr/elm-platform,jonathanperret/elm-platform,wskplho/elm-platform,jvoigtlaender/elm-platform,jvoigtlaender/elm-platform,cored/elm-platform | shell | ## Code Before:
set -e
project=$1
if [ ! -d $project ]; then
git clone https://github.com/evancz/$project.git
fi
cd $project
# May report a "fatal" error, but that is okay.
tag=$(git describe --exact-match HEAD || echo "failure")
if [ $tag != $2 ]; then
git checkout master
git pull
git checkout tag... |
d5dec78e34e1ad983292774e15fbd4d3edb618a2 | command_line/dash_r_spec.rb | command_line/dash_r_spec.rb | require_relative '../spec_helper'
describe "The -r command line option" do
before :each do
@script = fixture __FILE__, "require.rb"
@test_file = fixture __FILE__, "test_file"
end
it "requires the specified file" do
out = ruby_exe(@script, options: "-r #{@test_file}")
out.should include("REQUIRED... | require_relative '../spec_helper'
describe "The -r command line option" do
before :each do
@script = fixture __FILE__, "require.rb"
@test_file = fixture __FILE__, "test_file"
end
it "requires the specified file" do
out = ruby_exe(@script, options: "-r #{@test_file}")
out.should include("REQUIRED... | Add spec for -r when the main script file does not exist | Add spec for -r when the main script file does not exist
| Ruby | mit | nobu/rubyspec,eregon/rubyspec,nobu/rubyspec,ruby/spec,eregon/rubyspec,ruby/spec,nobu/rubyspec,eregon/rubyspec,ruby/spec | ruby | ## Code Before:
require_relative '../spec_helper'
describe "The -r command line option" do
before :each do
@script = fixture __FILE__, "require.rb"
@test_file = fixture __FILE__, "test_file"
end
it "requires the specified file" do
out = ruby_exe(@script, options: "-r #{@test_file}")
out.should i... |
23d24a47df06ba1efb26d63af7edbc52d36e4d56 | src/join-arrays.ts | src/join-arrays.ts | import { cloneDeep, isFunction, isPlainObject, mergeWith } from "lodash";
import { Customize, Key } from "./types";
const isArray = Array.isArray;
export default function joinArrays({
customizeArray,
customizeObject,
key,
}: {
customizeArray?: Customize;
customizeObject?: Customize;
key?: Key;
} = {}) {
... | import { cloneDeep, isPlainObject, mergeWith } from "lodash";
import { Customize, Key } from "./types";
const isArray = Array.isArray;
export default function joinArrays({
customizeArray,
customizeObject,
key,
}: {
customizeArray?: Customize;
customizeObject?: Customize;
key?: Key;
} = {}) {
return func... | Drop dependency on lodash isFunction | refactor: Drop dependency on lodash isFunction
Related to #134.
| TypeScript | mit | survivejs/webpack-merge,survivejs/webpack-merge | typescript | ## Code Before:
import { cloneDeep, isFunction, isPlainObject, mergeWith } from "lodash";
import { Customize, Key } from "./types";
const isArray = Array.isArray;
export default function joinArrays({
customizeArray,
customizeObject,
key,
}: {
customizeArray?: Customize;
customizeObject?: Customize;
key?: ... |
9a39d3b95887e1dd1acb9722b7d05b3eba7fc3f6 | package.json | package.json | {
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
"test": "yarn build && jest",
"lint": "tslint --project tsconfig.json --type-check",
"build": "tsc",
"build:watch": "tsc --watch"
},
"jest":... | {
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
"android": "node node_modules/react-native/local-cli/cli.js run-android",
"ios": "node node_modules/react-native/local-cli/cli.js run-ios",
"test": ... | Add android and ios npm script for development | Add android and ios npm script for development
| JSON | mit | y0za/trumpet,y0za/trumpet,y0za/trumpet,y0za/trumpet | json | ## Code Before:
{
"name": "trumpet",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --skipflow",
"test": "yarn build && jest",
"lint": "tslint --project tsconfig.json --type-check",
"build": "tsc",
"build:watch": "tsc --watch... |
607a98e1038ac8cfda62e6b9b00d1e1387cfeca3 | Set/Set.h | Set/Set.h | //
// Set.h
// Set
//
// Created by Rob Rix on 2014-06-22.
// Copyright (c) 2014 Rob Rix. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for Set.
FOUNDATION_EXPORT double SetVersionNumber;
//! Project version string for Set.
FOUNDATION_EXPORT const unsigned char SetVersionString[];
/... | // Copyright (c) 2014 Rob Rix. All rights reserved.
/// Project version number for Set.
extern double SetVersionNumber;
/// Project version string for Set.
extern const unsigned char SetVersionString[];
| Tidy up the umbrella header. | Tidy up the umbrella header.
| C | mit | IngmarStein/Set,IngmarStein/Set,madbat/Set,IngmarStein/Set,robrix/Set,robrix/Set,natecook1000/Set,natecook1000/Set,natecook1000/Set,madbat/Set,madbat/Set,robrix/Set | c | ## Code Before:
//
// Set.h
// Set
//
// Created by Rob Rix on 2014-06-22.
// Copyright (c) 2014 Rob Rix. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for Set.
FOUNDATION_EXPORT double SetVersionNumber;
//! Project version string for Set.
FOUNDATION_EXPORT const unsigned char SetVer... |
6e9d992e8b771797538db6639fecfb298b402686 | includes/inject-loader.js | includes/inject-loader.js |
describe('My module', () => {
beforeEach(() => {
myModule = injectLoaderCompatibility(
__dirname,
'../src/my-module.js',
{
'events': eventsMock,
'../lib/dispatcher': dispatcherMock,
'../lib/handle-action': handleActionMock
}
);
});
});
| import injector from 'inject!../src/my-module.js';
describe('My module', () => {
beforeEach(() => {
myModule = injector({
'events': eventsMock,
'../lib/dispatcher': dispatcherMock,
'../lib/handle-action': handleActionMock
});
});
});
| Undo applying macro to example | Undo applying macro to example
| JavaScript | mit | 0xR/graphql-clients-slides,0xR/graphql-clients-slides | javascript | ## Code Before:
describe('My module', () => {
beforeEach(() => {
myModule = injectLoaderCompatibility(
__dirname,
'../src/my-module.js',
{
'events': eventsMock,
'../lib/dispatcher': dispatcherMock,
'../lib/handle-action': handleActionMock
}
);
});
});
## Ins... |
a89c4711deaaf37b1fb32ccd2d58c5630ec1099a | .travis.yml | .travis.yml | language: d
d:
- dmd-2.073.1
- ldc-1.1.0
- ldc-1.0.0
script:
- dub build
| language: d
d:
- dmd-2.073.1
- ldc-1.1.0
cript:
- dub build
| Remove ldc-1.0.0 from Travis, too old to deal with anymore | Remove ldc-1.0.0 from Travis, too old to deal with anymore
| YAML | mpl-2.0 | gnunn1/tilix,gnunn1/terminix,gnunn1/terminix,dsboger/tilix,dsboger/tilix,gnunn1/tilix,gnunn1/tilix | yaml | ## Code Before:
language: d
d:
- dmd-2.073.1
- ldc-1.1.0
- ldc-1.0.0
script:
- dub build
## Instruction:
Remove ldc-1.0.0 from Travis, too old to deal with anymore
## Code After:
language: d
d:
- dmd-2.073.1
- ldc-1.1.0
cript:
- dub build
|
e380d669bc09e047282be1d91cc95a7651300141 | farms/tests/test_models.py | farms/tests/test_models.py | """Unit test the farms models."""
from farms.factories import AddressFactory
from mock import MagicMock
def test_address_factory_generates_valid_addresses_sort_of(mocker):
"""Same test, but using pytest-mock."""
mocker.patch('farms.models.Address.save', MagicMock(name="save"))
address = AddressFactory.... | """Unit test the farms models."""
from ..factories import AddressFactory
from ..models import Address
import pytest
def test_address_factory_generates_valid_address():
# GIVEN any state
# WHEN building a new address
address = AddressFactory.build()
# THEN it has all the information we want
asse... | Add integration test for Address model | Add integration test for Address model
| Python | mit | FlowFX/sturdy-potato,FlowFX/sturdy-potato,FlowFX/sturdy-potato | python | ## Code Before:
"""Unit test the farms models."""
from farms.factories import AddressFactory
from mock import MagicMock
def test_address_factory_generates_valid_addresses_sort_of(mocker):
"""Same test, but using pytest-mock."""
mocker.patch('farms.models.Address.save', MagicMock(name="save"))
address =... |
77567b0280eb5f326b0860096f473bb69064e672 | iOSNativeiPadApp/EdKeyNote/EdKeyNote/EdKeyNote/EKNAppDelegate.h | iOSNativeiPadApp/EdKeyNote/EdKeyNote/EdKeyNote/EKNAppDelegate.h | //
// EKNAppDelegate.h
// EdKeyNote
//
// Created by canviz on 9/22/14.
// Copyright (c) 2014 canviz. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "EKNDeskTopViewController.h"
#import "EKNLoginViewController.h"
@interface EKNAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomi... | //
// EKNAppDelegate.h
// EdKeyNote
//
// Created by canviz on 9/22/14.
// Copyright (c) 2014 canviz. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "EKNLoginViewController.h"
@interface EKNAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (stro... | Remove the import for EKNDeskTopViewController.h | Remove the import for EKNDeskTopViewController.h
| C | apache-2.0 | weshackett/Property-Inspection-Code-Sample,mslaugh/Property-Inspection-Code-Sample,OfficeDev/Property-Inspection-Code-Sample,weshackett/Property-Inspection-Code-Sample,OfficeDev/Property-Inspection-Code-Sample,mslaugh/Property-Inspection-Code-Sample,OfficeDev/Property-Inspection-Code-Sample,weshackett/Property-Inspecti... | c | ## Code Before:
//
// EKNAppDelegate.h
// EdKeyNote
//
// Created by canviz on 9/22/14.
// Copyright (c) 2014 canviz. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "EKNDeskTopViewController.h"
#import "EKNLoginViewController.h"
@interface EKNAppDelegate : UIResponder <UIApplicationDelegate>
@property (... |
e209c667a3c3e43f15cd598627da079654ec3cbb | src/DateFns.js | src/DateFns.js | import moment from "moment";
function initLocale(name, config) {
try {
moment.locale(name, config);
} catch (error) {
throw new Error(
"Locale prop is not in the correct format. \n Locale has to be in form of object, with keys of name and config. " +
error.message
);
}
}
function initM... | import moment from "moment";
function initLocale(name, config) {
try {
moment.locale(name, config);
} catch (error) {
throw new Error(
"Locale prop is not in the correct format. \n Locale has to be in form of object, with keys of name and config. " +
error.message
);
}
}
function initM... | Remove unnecessary call to isoWeekday | Remove unnecessary call to isoWeekday
| JavaScript | mit | samcolby/react-native-date-slider | javascript | ## Code Before:
import moment from "moment";
function initLocale(name, config) {
try {
moment.locale(name, config);
} catch (error) {
throw new Error(
"Locale prop is not in the correct format. \n Locale has to be in form of object, with keys of name and config. " +
error.message
);
}
}... |
6654352253f41597fd1ba79a06d839a09f57514d | app/controllers/File.java | app/controllers/File.java | package controllers;
import play.db.jpa.JPA;
import play.db.jpa.Transactional;
import play.mvc.Result;
import java.io.IOException;
import static play.mvc.Results.ok;
public class File {
@Transactional
public Result get(Long id) {
models.FileMeta fileMeta = JPA.em().find(models.FileMeta.class, id);
... | package controllers;
import play.db.jpa.JPA;
import play.db.jpa.Transactional;
import play.mvc.Result;
import java.io.IOException;
import static play.mvc.Results.ok;
public class File {
@Transactional
public Result get(Long id) {
models.FileMeta fileMeta = JPA.em().find(models.FileMeta.class, id);
... | Fix wrong Content-Type header in /file/min/ | Fix wrong Content-Type header in /file/min/
| Java | agpl-3.0 | m4tx/arroch,m4tx/arroch | java | ## Code Before:
package controllers;
import play.db.jpa.JPA;
import play.db.jpa.Transactional;
import play.mvc.Result;
import java.io.IOException;
import static play.mvc.Results.ok;
public class File {
@Transactional
public Result get(Long id) {
models.FileMeta fileMeta = JPA.em().find(models.FileMe... |
479eb7901f7087bac243ab1894adde80d49d5296 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
dist: bionic
env:
- DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenant-schemas"
- DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenants"
matrix:
exclude:
- python: "2.7"
env: DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="djang... | language: python
python:
- "2.7"
- "3.5"
- "3.6"
dist: trusty
env:
- DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenant-schemas"
- DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenants"
matrix:
exclude:
- python: "2.7"
env: DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenants"
install:... | Rollback python and ubuntu bump | Rollback python and ubuntu bump
| YAML | mit | maciej-gol/tenant-schemas-celery,maciej-gol/tenant-schemas-celery | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
dist: bionic
env:
- DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenant-schemas"
- DJANGO_SPEC= CELERY_SPEC= TENANT_SCHEMAS="django-tenants"
matrix:
exclude:
- python: "2.7"
env: DJANGO_SPEC= CELERY_SPEC= TENAN... |
395e258d18fa000b74c1af33e0dfcb21fdfd2375 | src/components/search-box.jsx | src/components/search-box.jsx | import React, {PropTypes} from "react"
const SearchBox = React.createClass({
propTypes: {
query: PropTypes.string,
onQueryChange: PropTypes.func,
},
onInputChange(event) {
this.props.onQueryChange(event.target.value)
},
render() {
return (
<div className="panel panel-default">
... | import React, {PropTypes} from "react"
const SearchBox = React.createClass({
propTypes: {
query: PropTypes.string,
onQueryChange: PropTypes.func,
},
handleSubmit(event) {
event.preventDefault();
this.props.onQueryChange(this.input.value)
},
render() {
return (
<div className="panel... | Use a search button to reduce computations on each char typed | Use a search button to reduce computations on each char typed
| JSX | agpl-3.0 | openfisca/legislation-explorer | jsx | ## Code Before:
import React, {PropTypes} from "react"
const SearchBox = React.createClass({
propTypes: {
query: PropTypes.string,
onQueryChange: PropTypes.func,
},
onInputChange(event) {
this.props.onQueryChange(event.target.value)
},
render() {
return (
<div className="panel panel-de... |
81a02c41a4489953352178a01360f63fe5bbf255 | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- ruby-head
| language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- ruby-head
env:
- WITH_LIBXML=true
- WITH_LIBXML=false
before_script: |
if [ "$WITH_LIBXML" == "false" ]; then
sudo apt-get remove libxml2-dev
fi
| Build with and without libxml | Build with and without libxml
| YAML | apache-2.0 | rubys/nokogumbo,jbotelho2-bb/nokogumbo,rubys/nokogumbo,jbotelho2-bb/nokogumbo,rubys/nokogumbo,rubys/nokogumbo | yaml | ## Code Before:
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- ruby-head
## Instruction:
Build with and without libxml
## Code After:
language: ruby
rvm:
- 1.9.3
- 2.0.0
- 2.1.2
- ruby-head
env:
- WITH_LIBXML=true
- WITH_LIBXML=false
before_script: |
if [ "$WITH_LIBXML" == "false" ]; then
sud... |
5c660b471c394d7d143d10ebf575a460fbf2b583 | memento/lib/velvet_fog_machine.dart | memento/lib/velvet_fog_machine.dart | library velvet_fog_machine;
import 'dart:math';
// The "Originator"
class VelvetFogMachine {
// The Memento
Playing _nowPlaying;
// Set the state
void play(String title, String album, [double time = 0.0]) {
print("Playing $title // $album @ ${time.toStringAsFixed(2)}");
_nowPlaying = new Playing(titl... | library velvet_fog_machine;
import 'dart:math';
final rand = new Random(1);
// The "Originator"
class VelvetFogMachine {
Song currentSong;
double currentTime;
// Set the state
void play(String title, String album, [double time = 0.0]) {
_play(new Song(title, album), time);
}
void _play(Song s, doubl... | Improve memento example w/ more realistic originator structure | Improve memento example w/ more realistic originator structure
| Dart | mit | eee-c/design-patterns-in-dart,eee-c/design-patterns-in-dart,eee-c/design-patterns-in-dart | dart | ## Code Before:
library velvet_fog_machine;
import 'dart:math';
// The "Originator"
class VelvetFogMachine {
// The Memento
Playing _nowPlaying;
// Set the state
void play(String title, String album, [double time = 0.0]) {
print("Playing $title // $album @ ${time.toStringAsFixed(2)}");
_nowPlaying = ... |
cc8cc05480e85c9a66450f1655083e87d00ba3f4 | usersettings/shortcuts.py | usersettings/shortcuts.py | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
def get_usersettings_model():
"""
Returns the ``UserSettings`` model that is active in this project.
"""
from django.db.models import get_model
try:
app_label, model_name = settings.USERSETTINGS_MODEL... | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
def get_usersettings_model():
"""
Returns the ``UserSettings`` model that is active in this project.
"""
from django.db.models import get_model
try:
app_label, model_name = settings.USERSETTINGS_MODEL... | Update 'get_current_usersettings' to catch 'DoesNotExist' error | Update 'get_current_usersettings' to catch 'DoesNotExist' error
| Python | bsd-3-clause | mishbahr/django-usersettings2,mishbahr/django-usersettings2 | python | ## Code Before:
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
def get_usersettings_model():
"""
Returns the ``UserSettings`` model that is active in this project.
"""
from django.db.models import get_model
try:
app_label, model_name = settings.US... |
6d5e21db305efbf31b9f888cf4168c2c4a90dd74 | src/Entities/Spawner.ts | src/Entities/Spawner.ts |
import Entity, {EntityState, EntityStateOptions} from "../Engine/Entity"
/**
* Spawns stuff.
*/
export default class Spawner extends Entity {
static type = "Nanoshooter/Entities/Spawner"
private mesh: BABYLON.Mesh
private keybindCallback
protected initialize() {
this.keybindCallback = (e... |
import Entity, {EntityState, EntityStateOptions} from "../Engine/Entity"
/**
* Spawns stuff.
*/
export default class Spawner extends Entity {
static type = "Nanoshooter/Entities/Spawner"
private mesh: BABYLON.Mesh
private keyupAction: (event: KeyboardEvent) => void
protected initialize() {
... | Tweak spawner semantics slightly for almost no reason. | Tweak spawner semantics slightly for almost no reason.
| TypeScript | mit | ChaseMoskal/Nanoshooter,ChaseMoskal/Nanoshooter | typescript | ## Code Before:
import Entity, {EntityState, EntityStateOptions} from "../Engine/Entity"
/**
* Spawns stuff.
*/
export default class Spawner extends Entity {
static type = "Nanoshooter/Entities/Spawner"
private mesh: BABYLON.Mesh
private keybindCallback
protected initialize() {
this.keyb... |
8eaaab332616469bec567ad159b315cc0d1e35fc | vumi/persist/tests/test_fields.py | vumi/persist/tests/test_fields.py |
"""Tests for vumi.persist.fields."""
from twisted.trial.unittest import TestCase
from vumi.persist.fields import Field, ValidationError, Integer, Unicode
class TestInteger(TestCase):
def test_unbounded(self):
i = Integer()
i.validate(5)
i.validate(-3)
self.assertRaises(Validatio... |
"""Tests for vumi.persist.fields."""
from twisted.trial.unittest import TestCase
from vumi.persist.fields import (
ValidationError, Field, FieldDescriptor, Integer, Unicode, ForeignKey,
ForeignKeyDescriptor)
class TestBaseField(TestCase):
def test_validate(self):
f = Field()
f.validate(... | Add tests for the Field class. | Add tests for the Field class.
| Python | bsd-3-clause | TouK/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi,harrissoerja/vumi,vishwaprakashmishra/xmatrix | python | ## Code Before:
"""Tests for vumi.persist.fields."""
from twisted.trial.unittest import TestCase
from vumi.persist.fields import Field, ValidationError, Integer, Unicode
class TestInteger(TestCase):
def test_unbounded(self):
i = Integer()
i.validate(5)
i.validate(-3)
self.assert... |
27499c6ee648742be9eac1300fe3936381e7886a | scripts/configure_brew.sh | scripts/configure_brew.sh |
echo "Configuring brew autoupdate..."
brew autoupdate --upgrade --cleanup --enable-notificationn --start
|
echo "Configuring brew autoupdate..."
if brew autoupdate --status | grep -v 'Autoupdate is installed and running.' > /dev/null; then
brew autoupdate --upgrade --cleanup --enable-notification --start
else
echo "Autoupdate is enabled. Nothing to do."
fi
| Check before enabling brew autoupdate | Check before enabling brew autoupdate
| Shell | mit | ikuwow/dotfiles,ikuwow/dotfiles,ikuwow/dotfiles | shell | ## Code Before:
echo "Configuring brew autoupdate..."
brew autoupdate --upgrade --cleanup --enable-notificationn --start
## Instruction:
Check before enabling brew autoupdate
## Code After:
echo "Configuring brew autoupdate..."
if brew autoupdate --status | grep -v 'Autoupdate is installed and running.' > /dev/null... |
5c5ed45289c2f0a1dac9533155a28cacf56c4a76 | app/assets/stylesheets/comfortable_mexican_sofa/admin/components/_toolbar-button.scss | app/assets/stylesheets/comfortable_mexican_sofa/admin/components/_toolbar-button.scss | // Toolbar button
//
// Styleguide Toolbar button
.toolbar-button {
background: lighten($color-toolbar-button-disabled-background, .5);
border: none;
border-radius: 3px;
color: white;
font-size: 15px;
font-weight: bold;
height: 30px;
line-height: 25px;
position: relative;
text-align: center;
tran... | // Toolbar button
//
// Styleguide Toolbar button
.toolbar-button {
background: lighten($color-toolbar-button-disabled-background, .5);
border: none;
border-radius: 3px;
color: white;
font-size: 15px;
font-weight: bold;
height: 30px;
line-height: 25px;
position: relative;
text-align: center;
tran... | Add outline on toolbar buttons | Add outline on toolbar buttons
| SCSS | mit | moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms | scss | ## Code Before:
// Toolbar button
//
// Styleguide Toolbar button
.toolbar-button {
background: lighten($color-toolbar-button-disabled-background, .5);
border: none;
border-radius: 3px;
color: white;
font-size: 15px;
font-weight: bold;
height: 30px;
line-height: 25px;
position: relative;
text-align... |
4fed2df34384730bd020899444e051acff041ab7 | .travis.yml | .travis.yml | language: csharp
mono: none
dotnet: 2.1.300
install:
- dotnet restore
script:
- dotnet build
- dotnet test
| language: csharp
mono: none
dotnet: 2.1.300
install:
- dotnet restore
script:
- dotnet build
- dotnet test ./Core/Msg.Core.Specs/Msg.Core.Specs.csproj
| Use more specific test command | Use more specific test command
I think that the older version of MSBuild/dotnet being used on Travis
causes the build to fail where newer versions don't. By using a more
specific path to the test assembly it should hopefully solve this.
| YAML | apache-2.0 | jagrem/msg | yaml | ## Code Before:
language: csharp
mono: none
dotnet: 2.1.300
install:
- dotnet restore
script:
- dotnet build
- dotnet test
## Instruction:
Use more specific test command
I think that the older version of MSBuild/dotnet being used on Travis
causes the build to fail where newer versions don't. By using a more
spe... |
40bdc9112450727c63fc292ea6663d4c72b52f99 | lib/path/separator.js | lib/path/separator.js | 'use strict';
module.exports = (process.env.OS === 'Windows_NT') ? '\\' : '/';
| 'use strict';
module.exports = (process.platform === 'win32') ? '\\' : '/';
| Check for Windows as they do internally in Node | Check for Windows as they do internally in Node
| JavaScript | mit | medikoo/node-ext | javascript | ## Code Before:
'use strict';
module.exports = (process.env.OS === 'Windows_NT') ? '\\' : '/';
## Instruction:
Check for Windows as they do internally in Node
## Code After:
'use strict';
module.exports = (process.platform === 'win32') ? '\\' : '/';
|
7d39a0c9c3c399a3abdda5287662a242344e657a | proxy.php | proxy.php | <?php
header("Content-Type:application/json");
if(isset($_GET["channel"])){
$channel = $_GET["channel"];
}
else{
$channel = "aia_0094";
}
$rss_feed = file_get_contents('http://sdo.gsfc.nasa.gov/feeds/' . $channel . '.rss');
$rss_feed = str_replace(array("\n", "\r", "\t"), "", $rss_feed);
$simpleXml = simpl... | <?php
header("Content-Type:application/json; charset=utf-8");
if(isset($_GET["channel"])){
$channel = $_GET["channel"];
}
else{
$channel = "aia_0094";
}
/*
Test code to simulate network error.
if($channel == "aia_0094"){
header("HTTP/1.0 404 Not Found");
exit();
}*/
$rss_feed = file_get_contents('ht... | Include character encoding in header | Include character encoding in header
| PHP | mit | deVinnnie/SDO_Live,deVinnnie/SDO_Live,deVinnnie/SDO_Live | php | ## Code Before:
<?php
header("Content-Type:application/json");
if(isset($_GET["channel"])){
$channel = $_GET["channel"];
}
else{
$channel = "aia_0094";
}
$rss_feed = file_get_contents('http://sdo.gsfc.nasa.gov/feeds/' . $channel . '.rss');
$rss_feed = str_replace(array("\n", "\r", "\t"), "", $rss_feed);
$s... |
44c45f87837a7d45be7eac14d383907ec95fd91e | _includes/category_posts.html | _includes/category_posts.html | {% assign current_category = page.category %}
{% if current_category == blank %}
{% assign current_category = page.categories | first %}
{% endif %}
{% assign sorted_posts = site.categories[current_category] | sort: 'position' %}
{% assign first_post = sorted_posts.first %}
<ul class="clear">
{% if curre... | {% assign current_category = page.category %}
{% if current_category == blank %}
{% assign current_category = page.categories | first %}
{% endif %}
{% assign sorted_posts = site.categories[current_category] | sort: 'position' %}
{% assign first_post = sorted_posts.first %}
<ul class="clear">
{% if curre... | Add link to B2C page | Add link to B2C page
| HTML | mit | ello/wtf,ello/wtf,ello/wtf | html | ## Code Before:
{% assign current_category = page.category %}
{% if current_category == blank %}
{% assign current_category = page.categories | first %}
{% endif %}
{% assign sorted_posts = site.categories[current_category] | sort: 'position' %}
{% assign first_post = sorted_posts.first %}
<ul class="clear... |
91323d951ca78fad97e73db2d98df7d2c2d676af | app/styles/ilios-common/components/offering-url-display.scss | app/styles/ilios-common/components/offering-url-display.scss | .offering-url-display {
.copy-btn {
@include ilios-link-button;
&.copying {
color: $ilios-green;
}
}
}
// tooltips are outside the document flow so have to be styled outside the component
.offering-url-display-success-message-tooltip {
padding: 0;
.arrow {
display: none;
}
.content {... | .offering-url-display {
.copy-btn {
@include ilios-link-button;
margin-left: .25em;
&.copying {
color: $ilios-green;
}
}
}
// tooltips are outside the document flow so have to be styled outside the component
.offering-url-display-success-message-tooltip {
padding: 0;
.arrow {
display... | Add a bit of space between text and button | Add a bit of space between text and button
| SCSS | mit | ilios/common,ilios/common | scss | ## Code Before:
.offering-url-display {
.copy-btn {
@include ilios-link-button;
&.copying {
color: $ilios-green;
}
}
}
// tooltips are outside the document flow so have to be styled outside the component
.offering-url-display-success-message-tooltip {
padding: 0;
.arrow {
display: none;
... |
166478814b8e5000d7721c8af72fa71835502dc7 | UM/Qt/qml/UM/Preferences/PreferencesPage.qml | UM/Qt/qml/UM/Preferences/PreferencesPage.qml | import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
ColumnLayout {
property alias title: titleLabel.text;
property alias contents: contentsItem.children;
Label {
id: titleLabel;
}
Item {
id: contentsItem;
Layout.fillWidth: true;
Layout.fillHei... | import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
import QtQuick.Window 2.1
import UM 1.0 as UM
ColumnLayout {
property alias title: titleLabel.text;
property alias contents: contentsItem.children;
function reset()
{
}
Label {
id: titleLabel;
Layout.f... | Update preferences page styling and add a reset() base method | Update preferences page styling and add a reset() base method
| QML | agpl-3.0 | onitake/Uranium,onitake/Uranium | qml | ## Code Before:
import QtQuick 2.1
import QtQuick.Controls 1.1
import QtQuick.Layouts 1.1
ColumnLayout {
property alias title: titleLabel.text;
property alias contents: contentsItem.children;
Label {
id: titleLabel;
}
Item {
id: contentsItem;
Layout.fillWidth: true;
... |
15e493c5402d07cb735fb8773ad499d1e5b19e19 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | Update author to CSC - IT Center for Science Ltd. | Update author to CSC - IT Center for Science Ltd.
| Python | agpl-3.0 | kata-csc/ckanext-oaipmh,kata-csc/ckanext-oaipmh,kata-csc/ckanext-oaipmh | python | ## Code Before:
from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
key... |
c80c695be5f785fd45fb282a38ff6dad3e5e69e8 | src/CSBill/CoreBundle/Menu/Core/AuthenticatedMenu.php | src/CSBill/CoreBundle/Menu/Core/AuthenticatedMenu.php | <?php
namespace CSBill\CoreBundle\Menu\Core;
use CSBill\CoreBundle\Menu\Builder\BuilderInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
use SYmfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
class AuthenticatedMenu extends ContainerAware implements BuilderInterf... | <?php
namespace CSBill\CoreBundle\Menu\Core;
use CSBill\CoreBundle\Menu\Builder\BuilderInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
use SYmfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
class AuthenticatedMenu extends ContainerAware implements BuilderInterf... | Change authenticated menu to check for authenticated remembered | [CoreBundle] Change authenticated menu to check for authenticated remembered
| PHP | mit | SolidInvoice/SolidInvoice,CSBill/CSBill,pierredup/CSBill,pierredup/CSBill,pierredup/CSBill,CSBill/CSBill,pierredup/CSBill,pierredup/SolidInvoice,SolidInvoice/SolidInvoice,SolidInvoice/SolidInvoice,pierredup/SolidInvoice,CSBill/CSBill,CSBill/CSBill | php | ## Code Before:
<?php
namespace CSBill\CoreBundle\Menu\Core;
use CSBill\CoreBundle\Menu\Builder\BuilderInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
use SYmfony\Component\Security\Core\Exception\AuthenticationCredentialsNotFoundException;
class AuthenticatedMenu extends ContainerAware implemen... |
fe4d01e1c1d7e2e788e18a392cbefec83d817857 | attributes/default.rb | attributes/default.rb | default['aws-sdk'] = {
'version' => '1.41.0'
}
default['consul'] = {
'install_type' => 'binary',
'version' => '0.2.1',
'user' => 'root',
'group' => 'root',
'agent' => {
'path' => '/usr/local/bin/consul',
'config' => {
'name' => node.fqdn,
'adv... | default['consul']['install_type'] = 'binary'
default['consul']['version'] = '0.2.1'
default['consul']['user'] = 'root'
default['consul']['group'] = 'root'
default['consul']['agent']['path'] = '/usr/local/bin/consul'
default['consul']['agent']['config']['name'] = node.fqdn
default['con... | Change atributes to 'chef style' | Change atributes to 'chef style'
| Ruby | mit | KYCK/consul_cookbook | ruby | ## Code Before:
default['aws-sdk'] = {
'version' => '1.41.0'
}
default['consul'] = {
'install_type' => 'binary',
'version' => '0.2.1',
'user' => 'root',
'group' => 'root',
'agent' => {
'path' => '/usr/local/bin/consul',
'config' => {
'name' => node.... |
1e0b8cf8ec46453a41373c61451c516975dc1902 | src/kolmogorov_music/kolmogorov.clj | src/kolmogorov_music/kolmogorov.clj | (ns kolmogorov-music.kolmogorov
(:require [clojure.repl :as repl]))
(defn in-ns? [sym ns]
(contains? (ns-interns ns) sym))
(defn sexpr [sym]
(-> sym repl/source-fn read-string))
(defn definition [sym]
(-> sym sexpr last))
(defn complexity-sym [sym ns]
(if (in-ns? sym ns)
(->> (definition sym)
... | (ns kolmogorov-music.kolmogorov
(:require [clojure.repl :as repl]))
(defn in-ns? [sym ns]
(contains? (ns-interns ns) sym))
(defn sexpr [sym]
(-> sym repl/source-fn read-string))
(defn definition [sym]
(-> sym sexpr last))
(declare complexity-sexpr)
(defn complexity-sym [sym ns]
(if (in-ns? sym ns)
(-... | Use mutual recursion to make the sym/sexpr dance clearer. | Use mutual recursion to make the sym/sexpr dance clearer.
| Clojure | mit | ctford/kolmogorov-music,ctford/kolmogorov-music | clojure | ## Code Before:
(ns kolmogorov-music.kolmogorov
(:require [clojure.repl :as repl]))
(defn in-ns? [sym ns]
(contains? (ns-interns ns) sym))
(defn sexpr [sym]
(-> sym repl/source-fn read-string))
(defn definition [sym]
(-> sym sexpr last))
(defn complexity-sym [sym ns]
(if (in-ns? sym ns)
(->> (definiti... |
d533a00235e2e93776a3823f6e34b8db4641ae2a | spf13-vim-windows-install.cmd | spf13-vim-windows-install.cmd | @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@set BASE_DIR=%HOME%\.spf13-vim-3
call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git "%BASE_DIR%"
call mkdir "%BASE_DIR%\.vim\bundle"
call mklink /J "%HOME%\.vim" "%BASE_DIR%\.vim"
call mklink "%HO... | @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@set BASE_DIR=%HOME%\.spf13-vim-3
IF NOT EXIST "%BASE_DIR%" (
call git clone --recursive -b 3.0 https://github.com/spf13/spf13-vim.git "%BASE_DIR%"
) ELSE (
@set ORIGINAL_DIR=%CD%
echo updating spf13-vim
ch... | Make Windows Installer more robust & auto updating | Make Windows Installer more robust & auto updating | Batchfile | apache-2.0 | jswk/spf13-vim,lhh411291769/spf13-vim,lightcn/spf13-vim,wongsyrone/spf13-vim,qingzew/spf13-vim,jadewizard/spf13-vim,IdVincentYang/spf13-vim,dawnsong/spf13-vim,darcylee/magic-vim,diogro/spf13-vim,fuhongxue/spf13-vim,carakan/supra-vim,huhuang03/spf13-vim,dawnsong/spf13-vim,xiaoDC/vim,zzzzzsh/spf13-vim,millerdw06/spf13-vi... | batchfile | ## Code Before:
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@set BASE_DIR=%HOME%\.spf13-vim-3
call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git "%BASE_DIR%"
call mkdir "%BASE_DIR%\.vim\bundle"
call mklink /J "%HOME%\.vim" "%BASE_DIR%\.vim"
... |
9ed27e3fa3fd6e684a9b5f13772acea015351533 | config/scripts/post-config.d/hooks.sh | config/scripts/post-config.d/hooks.sh | source /config/user-data/edgerouter-backup.conf
# This script runs at boot of the EdgeRouter
# Generate symlinks to hook script(s)
sudo ln -fs /config/user-data/hooks/* /etc/commit/post-hooks.d/
# Ensure scripts are executable
sudo chmod +x /config/user-data/hooks/*
exit 0 | source /config/user-data/edgerouter-backup.conf
# Fix ownership
sudo chown -R root:vyattacfg /config/userdata
sudo chown -R root:vyattacfg /config/scripts
# Ensure scripts are executable
sudo chmod +x /config/user-data/hooks/*
# Generate symlinks to hook script(s)
sudo ln -fs /config/user-data/hooks/* /etc/commit/po... | Update ownship of /config/scripts and /config/userdata to root:vyattacfg. | Update ownship of /config/scripts and /config/userdata to root:vyattacfg.
| Shell | mit | tbyehl/edgerouter-backup | shell | ## Code Before:
source /config/user-data/edgerouter-backup.conf
# This script runs at boot of the EdgeRouter
# Generate symlinks to hook script(s)
sudo ln -fs /config/user-data/hooks/* /etc/commit/post-hooks.d/
# Ensure scripts are executable
sudo chmod +x /config/user-data/hooks/*
exit 0
## Instruction:
Update owns... |
5841c48ffd9cfc97f4c2d8f1aee4be875a18fd2a | step-capstone/src/components/Map.js | step-capstone/src/components/Map.js | import React, { createRef } from 'react'
/**
* Props:
* zoom : 13 - higher the number, the more zoomed the map is on center
* center: {lat:0.0, lng:0.0} - coordinates for center of map
*/
class Map extends React.Component {
componentDidMount() {
const loadGoogleMapScript = document.createElement('script... | import React, { createRef } from 'react'
/**
* Props:
* zoom : 13 - higher the number, the more zoomed the map is on center
* center: {lat:0.0, lng:0.0} - coordinates for center of map
*/
class Map extends React.Component {
constructor(props) {
super(props);
this.state = {
coordinates: [
... | Add markers on map and adjust window size based on all markers | Add markers on map and adjust window size based on all markers
| JavaScript | apache-2.0 | googleinterns/step98-2020,googleinterns/step98-2020 | javascript | ## Code Before:
import React, { createRef } from 'react'
/**
* Props:
* zoom : 13 - higher the number, the more zoomed the map is on center
* center: {lat:0.0, lng:0.0} - coordinates for center of map
*/
class Map extends React.Component {
componentDidMount() {
const loadGoogleMapScript = document.creat... |
fa047159f72a3746438a6914488f8b221d17bfc2 | public/css/theme.css | public/css/theme.css | /* This file is used for custom styles */
.messages-wrapper {
margin-top: 10px;
}
.radio-station {
cursor: default;
}
.swipe-container > div {
min-height: 100%;
height: 100% !important;
}
.swipe-view-content {
padding: 0 5px;
}
| /* This file is used for custom styles */
.messages-wrapper {
margin-top: 10px;
}
.radio-station {
cursor: default;
}
.nav a {
cursor: pointer;
}
.swipe-container > div {
min-height: 100%;
height: 100% !important;
}
.swipe-view-content {
padding: 0 5px;
}
| Use correct cursor on nav menu | Use correct cursor on nav menu
| CSS | apache-2.0 | JustBlackBird/bluethroat,JustBlackBird/bluethroat,JustBlackBird/bluethroat | css | ## Code Before:
/* This file is used for custom styles */
.messages-wrapper {
margin-top: 10px;
}
.radio-station {
cursor: default;
}
.swipe-container > div {
min-height: 100%;
height: 100% !important;
}
.swipe-view-content {
padding: 0 5px;
}
## Instruction:
Use correct cursor on nav menu
## C... |
16f3bcfc027dca3dc3d62a4bdd170dddeb0463ac | lib/erlef/admins/notifications.ex | lib/erlef/admins/notifications.ex | defmodule Erlef.Admins.Notifications do
@moduledoc false
import Swoosh.Email
@type notification_type() :: :new_email_request
@type params() :: map()
@spec new(notification_type(), params()) :: Swoosh.Email.t()
def new(:new_email_request, _) do
msg = """
A new email request was created. Visit htt... | defmodule Erlef.Admins.Notifications do
@moduledoc false
import Swoosh.Email
@type notification_type() :: :new_email_request
@type params() :: map()
@spec new(notification_type(), params()) :: Swoosh.Email.t()
def new(:new_email_request, _) do
msg = """
A new email request was created. Visit htt... | Remove redundant (overloaded) spec from Admins.notify/2 | Remove redundant (overloaded) spec from Admins.notify/2
| Elixir | apache-2.0 | simplabs/website,simplabs/website | elixir | ## Code Before:
defmodule Erlef.Admins.Notifications do
@moduledoc false
import Swoosh.Email
@type notification_type() :: :new_email_request
@type params() :: map()
@spec new(notification_type(), params()) :: Swoosh.Email.t()
def new(:new_email_request, _) do
msg = """
A new email request was cr... |
6c30e96cae58f0c61f78ae7386f9640daf18e0dd | app/src/main/java/com/samourai/wallet/bip47/SendNotifTxFactory.java | app/src/main/java/com/samourai/wallet/bip47/SendNotifTxFactory.java | package com.samourai.wallet.bip47;
import com.samourai.wallet.SamouraiWallet;
import java.math.BigInteger;
public class SendNotifTxFactory {
public static final BigInteger _bNotifTxValue = SamouraiWallet.bDust;
public static final BigInteger _bSWFee = SamouraiWallet.bFee;
// public static final BigIntege... | package com.samourai.wallet.bip47;
import android.util.Log;
import com.samourai.wallet.SamouraiWallet;
import java.math.BigInteger;
public class SendNotifTxFactory {
public static final BigInteger _bNotifTxValue = SamouraiWallet.bDust;
public static final BigInteger _bSWFee = SamouraiWallet.bFee;
// pub... | Allow BIP47 custom fee address option | Allow BIP47 custom fee address option
| Java | unlicense | Samourai-Wallet/samourai-wallet-android | java | ## Code Before:
package com.samourai.wallet.bip47;
import com.samourai.wallet.SamouraiWallet;
import java.math.BigInteger;
public class SendNotifTxFactory {
public static final BigInteger _bNotifTxValue = SamouraiWallet.bDust;
public static final BigInteger _bSWFee = SamouraiWallet.bFee;
// public static... |
92d43dcefe87199e3c7b541b81565ad4164039dd | .travis.yml | .travis.yml | language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
| language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
notifications:
email: false
irc:
channels:
- "irc.freenode.org#gittip"
on_success: change
on_failure: always
template:
- "%{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
skip_... | Make Travis behave similarly to how it behaves on the www.gittip.com repository. | Make Travis behave similarly to how it behaves on the www.gittip.com repository.
| YAML | mit | gratipay/grtp.co,gratipay/grtp.co,gratipay/grtp.co | yaml | ## Code Before:
language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
## Instruction:
Make Travis behave similarly to how it behaves on the www.gittip.com repository.
## Code After:
language: node_js
node_js:
- 0.10
before_script:
- npm install -g grunt-cli
notifications:
e... |
8c82b987c373f4e47dea80e7d3837aaea0bad162 | README.md | README.md |
When compressing a tarball it is far more efficient to have similar files one after the other so that the compression can find the similarities close by and get a better compression ratio. The similar files may be across different directories and a common trick is to do:
find $DIR | rev | sort | rev | tar -cvj -T... |
When compressing a tarball it is far more efficient to have similar files one after the other so that the compression can find the similarities close by and get a better compression ratio. The similar files may be across different directories and a common trick is to do:
find $DIR | rev | sort | rev | tar -cvj -T... | Document another command line method only | Document another command line method only
| Markdown | mit | baruch/sortedtar,baruch/sortedtar | markdown | ## Code Before:
When compressing a tarball it is far more efficient to have similar files one after the other so that the compression can find the similarities close by and get a better compression ratio. The similar files may be across different directories and a common trick is to do:
find $DIR | rev | sort | r... |
d0f2cab9c8a671445e3c2d8c1b7a9206d8d5811d | Cargo.toml | Cargo.toml | [package]
name = "cjdrs"
version = "0.0.1"
authors = ["Vanhala Antti <antti.vanhala@aalto.fi>"]
license = "MIT"
[lib]
name = "cjdrs"
path = "src/cjdrs/lib.rs"
[dependencies.tuntap]
#git = "https://github.com/randati/tuntap-rust.git"
path = "../tuntap-rust"
[dependencies.rust-crypto]
git = "https://github.com/DaGenix... | [package]
name = "cjdrs"
version = "0.0.1"
authors = ["Vanhala Antti <antti.vanhala@aalto.fi>"]
license = "MIT"
[lib]
name = "cjdrs"
path = "src/cjdrs/lib.rs"
[dependencies.tuntap]
git = "https://github.com/Randati/tuntap-rust.git"
#path = "../tuntap-rust"
[dependencies.rust-crypto]
git = "https://github.com/DaGenix... | Use Github repositories for dependecies | Use Github repositories for dependecies | TOML | mit | Randati/cjdrs | toml | ## Code Before:
[package]
name = "cjdrs"
version = "0.0.1"
authors = ["Vanhala Antti <antti.vanhala@aalto.fi>"]
license = "MIT"
[lib]
name = "cjdrs"
path = "src/cjdrs/lib.rs"
[dependencies.tuntap]
#git = "https://github.com/randati/tuntap-rust.git"
path = "../tuntap-rust"
[dependencies.rust-crypto]
git = "https://gi... |
5af61cae2ca438880357f88533cfa77ea161efac | corehq/ex-submodules/pillow_retry/admin.py | corehq/ex-submodules/pillow_retry/admin.py | from django.contrib import admin
from .models import PillowError
class PillowErrorAdmin(admin.ModelAdmin):
model = PillowError
list_display = [
'pillow',
'doc_id',
'error_type',
'date_created',
'date_last_attempt',
'date_next_attempt'
]
list_filter = ('... | from django.contrib import admin
from pillow_retry.models import PillowError
@admin.register(PillowError)
class PillowErrorAdmin(admin.ModelAdmin):
model = PillowError
list_display = [
'pillow',
'doc_id',
'error_type',
'date_created',
'date_last_attempt',
'dat... | Add delete action to PillowRetry | Add delete action to PillowRetry
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | python | ## Code Before:
from django.contrib import admin
from .models import PillowError
class PillowErrorAdmin(admin.ModelAdmin):
model = PillowError
list_display = [
'pillow',
'doc_id',
'error_type',
'date_created',
'date_last_attempt',
'date_next_attempt'
]
... |
e7f6d125c44cea71a99a4ebf81e5089209ac6f75 | metadata/us.spotco.maps.yml | metadata/us.spotco.maps.yml | AntiFeatures:
- NonFreeNet
Categories:
- Navigation
License: GPL-3.0-or-later
AuthorName: Divested Computing Group
AuthorWebSite: https://divestos.org
SourceCode: https://gitlab.com/divested-mobile/maps
IssueTracker: https://gitlab.com/divested-mobile/maps/issues
Donate: https://divestos.org/index.php?page=about#do... | AntiFeatures:
- NonFreeNet
Categories:
- Navigation
License: GPL-3.0-or-later
AuthorName: Divested Computing Group
AuthorWebSite: https://divestos.org
SourceCode: https://gitlab.com/divested-mobile/maps
IssueTracker: https://gitlab.com/divested-mobile/maps/issues
Donate: https://divestos.org/index.php?page=about#do... | Update GMaps WV to 1.4 (16) | Update GMaps WV to 1.4 (16)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
AntiFeatures:
- NonFreeNet
Categories:
- Navigation
License: GPL-3.0-or-later
AuthorName: Divested Computing Group
AuthorWebSite: https://divestos.org
SourceCode: https://gitlab.com/divested-mobile/maps
IssueTracker: https://gitlab.com/divested-mobile/maps/issues
Donate: https://divestos.org/index.p... |
2a55fe08c7ab9b2162f191bc95a9b48c58684506 | tox.ini | tox.ini | [tox]
envlist = py27,py35
[testenv]
commands =
{envpython} setup.py test
deps = cython
| [tox]
envlist = py26,py27,py33,py34,py35
[testenv]
commands =
{envpython} setup.py test
deps = cython
| Add a few more python environments. | Add a few more python environments.
py26: commands succeeded
py27: commands succeeded
py33: commands succeeded
py34: commands succeeded
py35: commands succeeded
congratulations :)
| INI | mit | aeroevan/pysnappy | ini | ## Code Before:
[tox]
envlist = py27,py35
[testenv]
commands =
{envpython} setup.py test
deps = cython
## Instruction:
Add a few more python environments.
py26: commands succeeded
py27: commands succeeded
py33: commands succeeded
py34: commands succeeded
py35: commands succeeded
congratulations :)
#... |
39132175178dd8dfb0861f30630e4a06003670b7 | packages/ht/http-client-extra.yaml | packages/ht/http-client-extra.yaml | homepage: ''
changelog-type: ''
hash: f05a14b55f7b469517f018f7d4f8b6313baed835ee93b946a26c10faa92bfbfd
test-bench-deps: {}
maintainer: tolysz@gmail.com
synopsis: wrapper for http-client exposing cookies
changelog: ''
basic-deps:
http-client: -any
exceptions: -any
bytestring: -any
case-insensitive: -any
base: ... | homepage: ''
changelog-type: ''
hash: a86cd56c917e9b616c11c48c2ee7d6875f0de7cf277a1dbf182bb87e6f8b3dde
test-bench-deps: {}
maintainer: tolysz@gmail.com
synopsis: wrapper for http-client exposing cookies
changelog: ''
basic-deps:
http-client: -any
exceptions: -any
bytestring: -any
case-insensitive: -any
base: ... | Update from Hackage at 2018-06-29T18:19:04Z | Update from Hackage at 2018-06-29T18:19:04Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: f05a14b55f7b469517f018f7d4f8b6313baed835ee93b946a26c10faa92bfbfd
test-bench-deps: {}
maintainer: tolysz@gmail.com
synopsis: wrapper for http-client exposing cookies
changelog: ''
basic-deps:
http-client: -any
exceptions: -any
bytestring: -any
case-insensitiv... |
d5e3d6c3ca285f1037f284cfb78e279c2d1032ec | dojopuzzles/core/urls.py | dojopuzzles/core/urls.py | from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("home/", views.home, name="home"),
path("about/", views.about, name="about"),
]
| from core import views
from django.urls import path
app_name = "core"
urlpatterns = [
path("", views.home, name="home"),
path("about/", views.about, name="about"),
]
| Fix route for main page | Fix route for main page
| Python | mit | rennerocha/dojopuzzles | python | ## Code Before:
from django.urls import path
from core import views
app_name = "core"
urlpatterns = [
path("home/", views.home, name="home"),
path("about/", views.about, name="about"),
]
## Instruction:
Fix route for main page
## Code After:
from core import views
from django.urls import path
app_name = ... |
4607c2fdb39301cc60d49280dd1253e3d62845be | st2api/setup.py | st2api/setup.py |
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='st2api',
version='0.4.0',
description='',
author='StackStorm',
author_email='info@stackstorm.com',
... |
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='st2api',
version='0.4.0',
description='',
author='StackStorm',
author_email='info@stackstorm.com',
... | Fix a packaging bug and make sure we also include templates directory. | Fix a packaging bug and make sure we also include templates directory.
| Python | apache-2.0 | pixelrebel/st2,jtopjian/st2,nzlosh/st2,Itxaka/st2,Plexxi/st2,grengojbo/st2,lakshmi-kannan/st2,armab/st2,Plexxi/st2,peak6/st2,pixelrebel/st2,emedvedev/st2,emedvedev/st2,Plexxi/st2,Itxaka/st2,tonybaloney/st2,lakshmi-kannan/st2,pixelrebel/st2,jtopjian/st2,jtopjian/st2,dennybaa/st2,punalpatel/st2,dennybaa/st2,alfasin/st2,a... | python | ## Code Before:
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='st2api',
version='0.4.0',
description='',
author='StackStorm',
author_email='info@stack... |
dd7513f4146679d11aff6d528f11927131dc692f | feder/monitorings/factories.py | feder/monitorings/factories.py | from .models import Monitoring
from feder.users.factories import UserFactory
import factory
class MonitoringFactory(factory.django.DjangoModelFactory):
name = factory.Sequence(lambda n: 'monitoring-%04d' % n)
user = factory.SubFactory(UserFactory)
class Meta:
model = Monitoring
django_get... | from .models import Monitoring
from feder.users.factories import UserFactory
import factory
class MonitoringFactory(factory.django.DjangoModelFactory):
name = factory.Sequence(lambda n: 'monitoring-%04d' % n)
user = factory.SubFactory(UserFactory)
description = factory.Sequence(lambda n: 'description no.%... | Add description and template to MonitoringFactory | Add description and template to MonitoringFactory
| Python | mit | watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder | python | ## Code Before:
from .models import Monitoring
from feder.users.factories import UserFactory
import factory
class MonitoringFactory(factory.django.DjangoModelFactory):
name = factory.Sequence(lambda n: 'monitoring-%04d' % n)
user = factory.SubFactory(UserFactory)
class Meta:
model = Monitoring
... |
0a6dcc84a2a7562229599a03cbcc2a2d720e581c | Configuration/Settings.yaml | Configuration/Settings.yaml | Neos:
Neos:
userInterface:
translation:
autoInclude:
'Flownative.Neos.CacheManagement': ['Modules']
modules:
administration:
submodules:
flownativeCacheManagementCaches:
label: 'Caches'
icon: 'icon-bolt'
controller: 'Flownati... | Neos:
Neos:
modules:
administration:
submodules:
flownativeCacheManagementCaches:
label: 'Caches'
icon: 'icon-bolt'
controller: 'Flownative\Neos\CacheManagement\Controller\Module\Administration\CachesController'
description: 'Provides adminis... | Remove translation auto includes because there are no translations | Remove translation auto includes because there are no translations
Flownative.Cachemanagement does not have own translation files, yet they are included in the Settings.yaml. | YAML | mit | Flownative/neos-cachemanagement,Flownative/neos-cachemanagement | yaml | ## Code Before:
Neos:
Neos:
userInterface:
translation:
autoInclude:
'Flownative.Neos.CacheManagement': ['Modules']
modules:
administration:
submodules:
flownativeCacheManagementCaches:
label: 'Caches'
icon: 'icon-bolt'
contr... |
612052c8003861cf719f8f68687e672e6d5d0d1a | settings/settings.php | settings/settings.php | <?php
/**
* ownCloud - spreedwebrtc
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Leon <leon@struktur.de>
* @copyright Leon 2015
*/
namespace OCA\SpreedWebRTC\Settings;
class Settings {
const APP_ID = 'spreedwebrtc';
const APP_TITL... | <?php
/**
* ownCloud - spreedwebrtc
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Leon <leon@struktur.de>
* @copyright Leon 2015
*/
namespace OCA\SpreedWebRTC\Settings;
class Settings {
const APP_ID = 'spreedwebrtc';
const APP_TITL... | Decrease SPREED_WEBRTC_MAX_USERCOMBO_AGE to 20 seconds | Decrease SPREED_WEBRTC_MAX_USERCOMBO_AGE to 20 seconds
| PHP | agpl-3.0 | strukturag/owncloud-spreedme,strukturag/owncloud-spreedme,strukturag/nextcloud-spreedme,strukturag/owncloud-spreedme,strukturag/nextcloud-spreedme,strukturag/nextcloud-spreedme,strukturag/nextcloud-spreedme | php | ## Code Before:
<?php
/**
* ownCloud - spreedwebrtc
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Leon <leon@struktur.de>
* @copyright Leon 2015
*/
namespace OCA\SpreedWebRTC\Settings;
class Settings {
const APP_ID = 'spreedwebrtc';... |
458b35d82cbe72a1f8d22070c9c032ef186ee4c6 | src/navigation/replace.tsx | src/navigation/replace.tsx | import React from "react";
import { domToReact } from "html-react-parser";
import attributesToProps from "html-react-parser/lib/attributes-to-props";
import { HashLink as Link } from "react-router-hash-link";
export function replace(domNode: any) {
if (domNode.name && domNode.name === "a") {
const { href, ...res... | import React from "react";
import { domToReact } from "html-react-parser";
import attributesToProps from "html-react-parser/lib/attributes-to-props";
import { HashLink as Link } from "react-router-hash-link";
export function replace(domNode: any) {
if (domNode.name && domNode.name === "a") {
const { href, ...res... | Fix external links for example reports breaking | DS: Fix external links for example reports breaking
| TypeScript | apache-2.0 | saasquatch/saasquatch-docs,saasquatch/saasquatch-docs,saasquatch/saasquatch-docs | typescript | ## Code Before:
import React from "react";
import { domToReact } from "html-react-parser";
import attributesToProps from "html-react-parser/lib/attributes-to-props";
import { HashLink as Link } from "react-router-hash-link";
export function replace(domNode: any) {
if (domNode.name && domNode.name === "a") {
cons... |
d1eb1eab0e768b1960b50cae2b3d3836c27e8d48 | awa/plugins/awa-counters/db/counter-update.xml | awa/plugins/awa-counters/db/counter-update.xml | <query-mapping package='AWA.Counters.Models'>
<description>
Queries to update counters
</description>
<class name="AWA.Counters.Models.Stat_Info" bean="yes">
<comment>The month statistics.</comment>
<property type='Date' name="date">
<comment>the counter date.</comment>
... | <query-mapping package='AWA.Counters.Models'>
<description>
Queries to update counters
</description>
<class name="AWA.Counters.Models.Stat_Info" bean="yes">
<comment>The month statistics.</comment>
<property type='Date' name="date">
<comment>the counter date.</comment>
... | Add specific query for Postgresql to update the counter | Add specific query for Postgresql to update the counter
| XML | apache-2.0 | stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa,stcarrez/ada-awa | xml | ## Code Before:
<query-mapping package='AWA.Counters.Models'>
<description>
Queries to update counters
</description>
<class name="AWA.Counters.Models.Stat_Info" bean="yes">
<comment>The month statistics.</comment>
<property type='Date' name="date">
<comment>the counter da... |
148e386aa9d053188e68489670d2225753182b0a | tox.ini | tox.ini | [tox]
envlist =
py{36,37,38,39}-dj{22,30,31,32}
py{38,39}-dj{main}
style
[testenv]
usedevelop = true
extras = tests
commands =
python -Wd {envbindir}/coverage run tests/manage.py test -v2 --keepdb {posargs:testapp}
coverage report -m
deps =
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
... | [tox]
envlist =
py{36,37,38,39}-dj{22,30,31,32}
py{38,39}-dj{40,main}
style
[testenv]
usedevelop = true
extras = tests
commands =
python -Wd {envbindir}/coverage run tests/manage.py test -v2 --keepdb {posargs:testapp}
coverage report -m
deps =
dj22: Django>=2.2,<3.0
dj30: Django>=3.0,<3.1
... | Add Django 4.0a1 to the CI matrix | Add Django 4.0a1 to the CI matrix
| INI | bsd-3-clause | feincms/form_designer,feincms/form_designer | ini | ## Code Before:
[tox]
envlist =
py{36,37,38,39}-dj{22,30,31,32}
py{38,39}-dj{main}
style
[testenv]
usedevelop = true
extras = tests
commands =
python -Wd {envbindir}/coverage run tests/manage.py test -v2 --keepdb {posargs:testapp}
coverage report -m
deps =
dj22: Django>=2.2,<3.0
dj30: Djang... |
17514b14e9b4bddacc72dcb6fe273e93f74523af | Libraries/Http/native_method_type_info.txt | Libraries/Http/native_method_type_info.txt | bool _lib_graphicstext_loadFont(bool isSystemFont, string fontNameOrPath, int id);
void _lib_http_getResponseBytes(object obj, Array<Value> intCache, List<Value> list);
bool _lib_http_pollRequest(Array<object> objArray);
void _lib_http_readResponseData(object nativeRequestObject, Array<int> intOut, Array<string> str... | void _lib_http_getResponseBytes(object obj, Array<Value> intCache, List<Value> list);
bool _lib_http_pollRequest(Array<object> objArray);
void _lib_http_readResponseData(object nativeRequestObject, Array<int> intOut, Array<string> stringOut, Array<object> objOut, List<string> headerPairs);
void _lib_http_sendRequest... | Remove stray function type definition in the HTTP library, likely a copy-and-paste artifact at some point. | Remove stray function type definition in the HTTP library, likely a copy-and-paste artifact at some point.
| Text | mit | blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon,blakeohare/crayon | text | ## Code Before:
bool _lib_graphicstext_loadFont(bool isSystemFont, string fontNameOrPath, int id);
void _lib_http_getResponseBytes(object obj, Array<Value> intCache, List<Value> list);
bool _lib_http_pollRequest(Array<object> objArray);
void _lib_http_readResponseData(object nativeRequestObject, Array<int> intOut, Arra... |
ecf61fcd79817c0396292faf75fd72b50728171c | es6.js | es6.js | 'use strict';
const path = require('path');
/*
* ECMAScript 6
*/
module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
rules: {
'arrow-body-style': [
'error',
'as-needed',
{
requireReturnForObjectLiteral: true
... | 'use strict';
const path = require('path');
/*
* ECMAScript 6
*/
module.exports = {
extends: path.resolve(__dirname, './index.js'),
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
env: {
es6: true
},
rules: {
'arrow-body-style': [
... | Move `extends` and `env` up | :recycle: Move `extends` and `env` up
| JavaScript | mit | gluons/eslint-config-gluons,gluons/eslint-config-gluons | javascript | ## Code Before:
'use strict';
const path = require('path');
/*
* ECMAScript 6
*/
module.exports = {
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
rules: {
'arrow-body-style': [
'error',
'as-needed',
{
requireReturnForObjec... |
d1e345a13ca28825b672aa8e75e9f5d0f48be1bd | overseer.c | overseer.c | // vim: sw=4 ts=4 et filetype=c
#include <stdio.h>
#include <stdlib.h>
#include "overseer.h"
#include "iface_lcd.h"
#include "iface_uart.h"
#include "iface_w1_gpio.h"
int main()
{
sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array));
size_t actualsize = getSensorList(sensor_array)... | // vim: sw=4 ts=4 et filetype=c
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "overseer.h"
#include "iface_lcd.h"
#include "iface_uart.h"
#include "iface_w1_gpio.h"
int main()
{
sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array));
size_t actualsize = getSensor... | Adjust output to LCD and console | Adjust output to LCD and console
Better kitchen usefulness w/ a timestamp.
Also munin support!
| C | mit | rtucker/raspi-fridge-overseer,rtucker/raspi-fridge-overseer | c | ## Code Before:
// vim: sw=4 ts=4 et filetype=c
#include <stdio.h>
#include <stdlib.h>
#include "overseer.h"
#include "iface_lcd.h"
#include "iface_uart.h"
#include "iface_w1_gpio.h"
int main()
{
sensor_t *sensor_array = malloc(SENSOR_ARRAY_LENGTH * sizeof(*sensor_array));
size_t actualsize = getSensorLi... |
009bb0f4c07ff18b7e0b29bb9410face0a384680 | src/actions/options.js | src/actions/options.js | import {
SET_SPEED,
SET_PAUSE,
SET_PAUSE_HOVER,
SET_FALLOFF,
SET_RADII_SCALE,
SET_BOUNCE_BODIES,
SET_BOUNCE_SCREEN,
} from './types'
export function speed(s) {
return {
type: SET_SPEED,
speed: s,
}
}
export function pause(pause) {
return {
type: SET_PAUSE,
paused: pause,
}
}
ex... | import {
SET_SPEED,
SET_PAUSE,
SET_PAUSE_HOVER,
SET_FALLOFF,
SET_RADII_SCALE,
SET_BOUNCE_BODIES,
SET_BOUNCE_SCREEN,
} from './types'
export function speed(speed) {
return {
type: SET_SPEED,
speed,
}
}
export function pause(paused) {
return {
type: SET_PAUSE,
paused,
}
}
export ... | Clean up option action creators | Clean up option action creators
| JavaScript | mit | JohnTasto/EverythingIsFalling,JohnTasto/EverythingIsFalling | javascript | ## Code Before:
import {
SET_SPEED,
SET_PAUSE,
SET_PAUSE_HOVER,
SET_FALLOFF,
SET_RADII_SCALE,
SET_BOUNCE_BODIES,
SET_BOUNCE_SCREEN,
} from './types'
export function speed(s) {
return {
type: SET_SPEED,
speed: s,
}
}
export function pause(pause) {
return {
type: SET_PAUSE,
paused: ... |
586a8129f7fecb97fd123d75863a197edc95bb37 | usr/vendor/genivi/pkg/persistence-client-library.lua | usr/vendor/genivi/pkg/persistence-client-library.lua | return {
source = {
type = 'git',
location = 'https://github.com/GENIVI/persistence-client-library.git',
branch = 'v1.1.0',
},
build = {
type = 'GNU',
autoreconf = true,
in_source = true
},
requires = {
'dbus',
'persistence-common-objec... | return {
source = {
type = 'git',
location = 'https://github.com/GENIVI/persistence-client-library.git',
branch = 'v1.1.0',
},
build = {
type = 'GNU',
autoreconf = true,
in_source = true,
options = {
'--enable-pasinterface'
}
},... | Add '--enable-pasinterface' to PCL pkg | Add '--enable-pasinterface' to PCL pkg
| Lua | mit | bazurbat/jagen | lua | ## Code Before:
return {
source = {
type = 'git',
location = 'https://github.com/GENIVI/persistence-client-library.git',
branch = 'v1.1.0',
},
build = {
type = 'GNU',
autoreconf = true,
in_source = true
},
requires = {
'dbus',
'persiste... |
a5b387cdd4baaa04d205da4a218d1ce8ec637d34 | lib/liquid/interrupts.rb | lib/liquid/interrupts.rb | module Liquid
# An interrupt is any command that breaks processing of a block (ex: a for loop).
class Interrupt
attr_reader :message
def initialize(message = nil)
@message = message || "interrupt".freeze
end
end
# Interrupt that is thrown whenever a {% break %} is called.
class BreakInterr... | module Liquid
# A block interrupt is any command that breaks processing of a block (ex: a for loop).
class BlockInterrupt
attr_reader :message
def initialize(message = nil)
@message = message || "interrupt".freeze
end
end
# Interrupt that is thrown whenever a {% break %} is called.
class B... | Remove reserved word Interrupt to avoid confusion | Remove reserved word Interrupt to avoid confusion
Also resolves rubocop conflicts
| Ruby | mit | Shopify/liquid,locomotivecms/liquid | ruby | ## Code Before:
module Liquid
# An interrupt is any command that breaks processing of a block (ex: a for loop).
class Interrupt
attr_reader :message
def initialize(message = nil)
@message = message || "interrupt".freeze
end
end
# Interrupt that is thrown whenever a {% break %} is called.
c... |
8823acb41f9810e07f09ea9fe660deebc657f451 | lib/menus/contextMenu.js | lib/menus/contextMenu.js | 'use babel';
const init = () => {
const copyEnabled = () => atom.config.get('remote-ftp.context.enableCopyFilename');
const contextMenu = {
'.remote-ftp-view .entries.list-tree:not(.multi-select) .directory .header': {
enabled: copyEnabled(),
command: [{
label: 'Copy name',
command:... | 'use babel';
const init = () => {
const contextMenu = {
'.remote-ftp-view .entries.list-tree:not(.multi-select) .directory': {
enabled: atom.config.get('remote-ftp.context.enableCopyFilename'),
command: [{
label: 'Copy name',
command: 'remote-ftp:copy-name',
}, {
type: '... | Fix directory "Copy name" function | Fix directory "Copy name" function
| JavaScript | mit | mgrenier/remote-ftp,icetee/remote-ftp | javascript | ## Code Before:
'use babel';
const init = () => {
const copyEnabled = () => atom.config.get('remote-ftp.context.enableCopyFilename');
const contextMenu = {
'.remote-ftp-view .entries.list-tree:not(.multi-select) .directory .header': {
enabled: copyEnabled(),
command: [{
label: 'Copy name',
... |
c942ddd009f51e6e115e7dc527dbdab27698a9b2 | Source/Shared/RawRepresentable+SwiftKit.swift | Source/Shared/RawRepresentable+SwiftKit.swift | import Foundation
/// Extension that enables enums with a Number raw value to be strideable
public extension RawRepresentable where RawValue: Number {
/// Go to the next member of the enum
public func next() -> Self? {
return Self(rawValue: RawValue(self.rawValue.toDouble() + 1))
}
/// Go ... | import Foundation
/// SwiftKit extensions to Number-based enums
public extension RawRepresentable where RawValue: Number, Self:Hashable {
/// Iterate through each member of this enum (see EnumIterator for more options)
public static func forEach(closure: Self -> Void) {
EnumIterator.iterate(closure)
... | Add convenience forEach iterator to RawRepresentable extension | Add convenience forEach iterator to RawRepresentable extension | Swift | mit | JohnSundell/SwiftKit | swift | ## Code Before:
import Foundation
/// Extension that enables enums with a Number raw value to be strideable
public extension RawRepresentable where RawValue: Number {
/// Go to the next member of the enum
public func next() -> Self? {
return Self(rawValue: RawValue(self.rawValue.toDouble() + 1))
}
... |
d668f65c3b7c8096d73452bb9b1ad764c17e7678 | circle.yml | circle.yml | machine:
environment:
GO15VENDOREXPERIMENT: 1
PROJECT_PATH: ${GOPATH%%:*}/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
pre:
- wget https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf go1.5.2.linux-amd64.ta... | machine:
environment:
GO15VENDOREXPERIMENT: 1
PROJECT_PATH: ${GOPATH%%:*}/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
pre:
- wget https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf go1.5.2.linux-amd64.ta... | Use race checking and go vet | Use race checking and go vet
To identify issues.
| YAML | mit | zefer/mothership,zefer/mothership,zefer/mothership,zefer/mothership | yaml | ## Code Before:
machine:
environment:
GO15VENDOREXPERIMENT: 1
PROJECT_PATH: ${GOPATH%%:*}/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
pre:
- wget https://storage.googleapis.com/golang/go1.5.2.linux-amd64.tar.gz
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf go1.5.... |
92bfaafe806b6f2fdd1fca3fdb6fbe591dc02305 | README.rst | README.rst | ==============================
Redis cache backend for Django
==============================
Full featured redis cache backend for Django.
.. image:: https://travis-ci.org/niwibe/django-redis.png?branch=master
:target: https://travis-ci.org/niwibe/django-redis
.. image:: https://pypip.in/v/django-redis/badge.png... | ==============================
Redis cache backend for Django
==============================
Full featured redis cache backend for Django.
.. image:: https://travis-ci.org/niwibe/django-redis.png?branch=master
:target: https://travis-ci.org/niwibe/django-redis
.. image:: https://pypip.in/v/django-redis/badge.png... | Update documentation url on readme. | Update documentation url on readme.
| reStructuredText | bsd-3-clause | GetAmbassador/django-redis,lucius-feng/django-redis,yanheng/django-redis,zl352773277/django-redis,smahs/django-redis | restructuredtext | ## Code Before:
==============================
Redis cache backend for Django
==============================
Full featured redis cache backend for Django.
.. image:: https://travis-ci.org/niwibe/django-redis.png?branch=master
:target: https://travis-ci.org/niwibe/django-redis
.. image:: https://pypip.in/v/django... |
2d7da7b416b460aaa646e6662a622990bda1a07b | src/components/services/ConfigService.js | src/components/services/ConfigService.js | (function() {
'use strict';
angular.module('civic.services')
.constant('ConfigService', {
serverUrl: 'http://localhost:3000/',
mainMenuItems: [
{
label: 'Collaborate',
state: 'collaborate'
},
{
label: 'Help',
state: 'help'
},
... | (function() {
'use strict';
angular.module('civic.services')
.constant('ConfigService', {
serverUrl: 'http://localhost:3000/',
mainMenuItems: [
{
label: 'Collaborate',
state: 'collaborate'
},
{
label: 'Help',
state: 'help'
},
... | Replace the Contact page with the FAQ page | Replace the Contact page with the FAQ page
| JavaScript | mit | yanyangfeng/civic-client,yanyangfeng/civic-client,genome/civic-client,genome/civic-client | javascript | ## Code Before:
(function() {
'use strict';
angular.module('civic.services')
.constant('ConfigService', {
serverUrl: 'http://localhost:3000/',
mainMenuItems: [
{
label: 'Collaborate',
state: 'collaborate'
},
{
label: 'Help',
state: 'hel... |
19d19ae0a8c783457f9a88266fecabdf8e9eac00 | demo.js | demo.js | var cluster = require('cluster');
/**
* The clustering stuff is courtesy of Rowan Manning
* http://rowanmanning.com/posts/node-cluster-and-express/
* 2014-2-28
*/
if (cluster.isMaster) {
require('strong-cluster-express-store').setup();
// Count the machine's CPUs
var cpuCount = require('os').cpus().length... | var cluster = require('cluster'),
nconf = require('nconf'),
winston = require('winston');
nconf.file({ file: './gebo.json' });
var logLevel = nconf.get('logLevel');
var logger = new (winston.Logger)({ transports: [ new (winston.transports.Console)({ colorize: true }) ] });
/**
* The clustering stuff is court... | Deploy logger and log levels | Deploy logger and log levels
| JavaScript | mit | RaphaelDeLaGhetto/gebo-server,RaphaelDeLaGhetto/gebo-server | javascript | ## Code Before:
var cluster = require('cluster');
/**
* The clustering stuff is courtesy of Rowan Manning
* http://rowanmanning.com/posts/node-cluster-and-express/
* 2014-2-28
*/
if (cluster.isMaster) {
require('strong-cluster-express-store').setup();
// Count the machine's CPUs
var cpuCount = require('os... |
26f02ee1d137d48aa51b17d9ab34a2cf569c471d | app/scripts/app.js | app/scripts/app.js | 'use strict';
var etcdApp = angular.module('etcdApp', ['ngRoute', 'etcdResource', 'timeRelative'])
.config(['$routeProvider', function ($routeProvider) {
//read localstorage
var previous_path = localStorage.getItem('etcd_path');
if(previous_path != null) {
var redirect_path = previous_path
} el... | 'use strict';
var etcdApp = angular.module('etcdApp', ['ngRoute', 'etcdResource', 'timeRelative'])
.config(['$routeProvider', function ($routeProvider) {
//read localstorage
var previous_path = localStorage.getItem('etcd_path');
if(previous_path != null && previous_path.indexOf('/v1/keys/') !== -1) {
... | Use localstorage location only if it is valid | Use localstorage location only if it is valid
| JavaScript | apache-2.0 | philips/nya | javascript | ## Code Before:
'use strict';
var etcdApp = angular.module('etcdApp', ['ngRoute', 'etcdResource', 'timeRelative'])
.config(['$routeProvider', function ($routeProvider) {
//read localstorage
var previous_path = localStorage.getItem('etcd_path');
if(previous_path != null) {
var redirect_path = previo... |
faa2a33db55002b687e219c5ddef395d16b56b52 | templates/contrail/contrail-dns.conf.erb | templates/contrail/contrail-dns.conf.erb | [DEFAULT]
rndc_config_file=rndc.conf
rndc_secret=xvysmOR8lnUQRBcunkC6vg==
log_file=/var/log/contrail/contrail-dns.log
log_level=SYS_NOTICE
log_local=1
[DISCOVERY]
server=<%= @discovery_server %>
[IFMAP]
user = <%= @ifmap_username %>
password = <%= @ifmap_password %>
| [DEFAULT]
named_config_file=named.conf
named_config_directory=/etc/contrail/dns
named_log_file=/var/log/named/bind.log
rndc_config_file=rndc.conf
rndc_secret=xvysmOR8lnUQRBcunkC6vg==
log_file=/var/log/contrail/contrail-dns.log
log_level=SYS_NOTICE
log_local=1
[DISCOVERY]
server=<%= @discovery_server %>
[IFMAP]
user =... | Add additional parameters for 2.0 | Add additional parameters for 2.0
| HTML+ERB | apache-2.0 | syseleven/puppet-contrail,syseleven/puppet-contrail,syseleven/puppet-contrail,syseleven/puppet-contrail | html+erb | ## Code Before:
[DEFAULT]
rndc_config_file=rndc.conf
rndc_secret=xvysmOR8lnUQRBcunkC6vg==
log_file=/var/log/contrail/contrail-dns.log
log_level=SYS_NOTICE
log_local=1
[DISCOVERY]
server=<%= @discovery_server %>
[IFMAP]
user = <%= @ifmap_username %>
password = <%= @ifmap_password %>
## Instruction:
Add additional par... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.