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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f4649acdc37a914560eca2d6cd0d2bb550f39ce4 | tasks/persist-redhat.yml | tasks/persist-redhat.yml | ---
- name: Ensure iptables service is installed
yum: name=iptables-services state=present
- name: Ensure iptables service is enabled & started
service: name=iptables enabled=yes state=started
| ---
- name: Ensure iptables service is installed
yum: name=iptables-services state=present
when: ansible_distribution_major_version >= '7'
- name: Ensure iptables service is installed
yum: name=iptables state=present
when: ansible_distribution_major_version < '7'
- name: Ensure iptables service is enabled & s... | Add support for rhel/centos < 7 | Add support for rhel/centos < 7
In at least rhel/centos 6 the package providing iptables is called "iptables" | YAML | bsd-2-clause | mikegleasonjr/ansible-role-firewall | yaml | ## Code Before:
---
- name: Ensure iptables service is installed
yum: name=iptables-services state=present
- name: Ensure iptables service is enabled & started
service: name=iptables enabled=yes state=started
## Instruction:
Add support for rhel/centos < 7
In at least rhel/centos 6 the package providing iptables... |
3c1245b31011d25f7c660592d456cf9109766195 | libyaul/math/color.h | libyaul/math/color.h |
typedef union {
struct {
unsigned int r:5;
unsigned int g:5;
unsigned int b:5;
unsigned int :1;
} __packed;
uint8_t comp[3];
uint16_t raw;
} __aligned (4) color_rgb_t;
typedef union {
struct {
fix1... |
typedef union {
struct {
unsigned int :1;
unsigned int b:5;
unsigned int g:5;
unsigned int r:5;
} __packed;
uint8_t comp[3];
uint16_t raw;
} __aligned (4) color_rgb_t;
typedef union {
struct {
fix1... | Change R and B components | Change R and B components
| C | mit | ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul,ijacquez/libyaul | c | ## Code Before:
typedef union {
struct {
unsigned int r:5;
unsigned int g:5;
unsigned int b:5;
unsigned int :1;
} __packed;
uint8_t comp[3];
uint16_t raw;
} __aligned (4) color_rgb_t;
typedef union {
struct {
... |
2df979c6533fa7b5301e5ca0135da177bab3ed97 | scripts/pip-install.sh | scripts/pip-install.sh | _python_version=`python -c 'import sys; version=sys.version_info[:3]; print("{0}.{1}.{2}".format(*version))'`
if [ "$_python_version" == "2.6.6" ]
then
pip install -r pyinstaller-requirements-2.6.txt
else
pip install -r pyinstaller-requirements.txt
fi
| _python_version=`python -c 'import sys; version=sys.version_info[:3]; print("{0}.{1}.{2}".format(*version))'`
if [ "$_python_version" == "2.6.6" ]
then
pip install -r pyinstaller-requirements-2.6.txt
pip uninstall jinja2
else
pip install -r pyinstaller-requirements.txt
fi
| Remove the Jinja2 package since it cannot work with python2.6 and fails the packaging | Remove the Jinja2 package since it cannot work with python2.6 and fails the packaging
| Shell | apache-2.0 | madchills/hubble,madchills/hubble,basepi/hubble,basepi/hubble | shell | ## Code Before:
_python_version=`python -c 'import sys; version=sys.version_info[:3]; print("{0}.{1}.{2}".format(*version))'`
if [ "$_python_version" == "2.6.6" ]
then
pip install -r pyinstaller-requirements-2.6.txt
else
pip install -r pyinstaller-requirements.txt
fi
## Instruction:
Remove the Jinja2 package sinc... |
3598313c087651a85dce5e31d9fdc227dea0ccf4 | binary-search.py | binary-search.py |
def binary_search(arr, data):
low = 0 # first element in array
high = len(arr) - 1 # last item in array
while low <= high: # iterate through "entire" array
middle = (low + high)/2
if arr[middle] == data:
return middle
elif arr[middle] < data:
low = middle + 1 # narrow down search to upper half
else:
... |
def binary_search(arr, data):
low = 0 # first element position in array
high = len(arr) - 1 # last element position in array
while low <= high: # iterate through "entire" array
middle = (low + high)/2
if arr[middle] == data:
return middle
elif arr[middle] < data:
low = middle + 1 # narrow down search t... | Add test cases for python implementation of binary search function | Add test cases for python implementation of binary search function
| Python | mit | derekmpham/interview-prep,derekmpham/interview-prep | python | ## Code Before:
def binary_search(arr, data):
low = 0 # first element in array
high = len(arr) - 1 # last item in array
while low <= high: # iterate through "entire" array
middle = (low + high)/2
if arr[middle] == data:
return middle
elif arr[middle] < data:
low = middle + 1 # narrow down search to upp... |
61d09b41736051532c6fac0d2a987b442726d31a | src/Illuminate/Foundation/Inspiring.php | src/Illuminate/Foundation/Inspiring.php | <?php namespace Illuminate\Foundation;
use Illuminate\Support\Collection;
class Inspiring {
/**
* Get an inspiring quote.
*
* Taylor & Dayle made this commit from Jungfraujoch. (11,333 ft.)
*
* @return string
*/
public static function quote()
{
return Collection::make([
'When there is no desire,... | <?php namespace Illuminate\Foundation;
use Illuminate\Support\Collection;
class Inspiring {
/**
* Get an inspiring quote.
*
* Taylor & Dayle made this commit from Jungfraujoch. (11,333 ft.)
*
* @return string
*/
public static function quote()
{
return Collection::make([
'When there is no desire,... | Add a few more quotes. | Add a few more quotes.
| PHP | mit | andersonef/framework,willrowe/laravel-framework,5outh/framework,RobvH/framework,xiphiaz/framework,deefour/framework,timfeid/framework-1,jarnovanleeuwen/framework,CurosMJ/framework,moura137/framework,stevebauman/framework,antonybudianto/framework,5outh/framework,mbernson/framework,proshanto/framework,mul14/laravel-frame... | php | ## Code Before:
<?php namespace Illuminate\Foundation;
use Illuminate\Support\Collection;
class Inspiring {
/**
* Get an inspiring quote.
*
* Taylor & Dayle made this commit from Jungfraujoch. (11,333 ft.)
*
* @return string
*/
public static function quote()
{
return Collection::make([
'When the... |
e8cfba38eeee88123f2de9022aee974f8a86a39a | CHANGELOG.md | CHANGELOG.md |
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog], and this project adheres to
[Semantic Versioning].
<!-- references -->
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
## [Unreleased]
... |
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog], and this project adheres to
[Semantic Versioning].
<!-- references -->
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
## [0.1.0] - 2020... | Add v0.1.0 release to changelog. | Add v0.1.0 release to changelog.
| Markdown | mit | IcecaveStudios/dialekt | markdown | ## Code Before:
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog], and this project adheres to
[Semantic Versioning].
<!-- references -->
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
#... |
67f4b60b3a2a2fcaedebfe028453f6592af6c509 | tools/python.mk | tools/python.mk | .ONESHELL:
SHELL = bash
CPU_CORES = $(shell nproc)
# PIP_INSTALL = --editable .
# PYLINT_ARG =
# MYPY_ARG =
# PYTEST_ARG =
SHARED_DEV_REQUIREMENTS = \
black \
isort \
mypy \
pylint \
pytest \
pytest-cov \
pytest-xdist
VENV = venv
$(VENV):
python3 -m venv $(VENV)
source $(VENV)/bin/activate
pip install --u... | .ONESHELL:
SHELL = bash
CPU_CORES = $(shell nproc)
# PIP_INSTALL = --editable .
# PYLINT_ARG =
# MYPY_ARG =
# PYTEST_ARG =
SHARED_DEV_REQUIREMENTS = \
black \
isort \
mypy \
pylint \
pytest \
pytest-cov \
pytest-xdist
VENV = venv
$(VENV):
python3 -m venv $(VENV)
source $(VENV)/bin/activate
$(MAKE) install... | Split venv setup and package install targets | Split venv setup and package install targets
This allow to reinstall the packages without
rebuilding the venv in case of dependencies change.
| Makefile | agpl-3.0 | LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime | makefile | ## Code Before:
.ONESHELL:
SHELL = bash
CPU_CORES = $(shell nproc)
# PIP_INSTALL = --editable .
# PYLINT_ARG =
# MYPY_ARG =
# PYTEST_ARG =
SHARED_DEV_REQUIREMENTS = \
black \
isort \
mypy \
pylint \
pytest \
pytest-cov \
pytest-xdist
VENV = venv
$(VENV):
python3 -m venv $(VENV)
source $(VENV)/bin/activate
... |
31b70041a9fc7da87774bffd59a9f93917200f18 | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as readme:
long_description = ''.join(readme).strip()
setup(
name='rsocks',
version='0.3.3',
author='Jiangge Zhang',
author_email='tonyseek@gmail.com',
description='A SOCKS reverse proxy server.',
long_description=long_d... | from setuptools import setup, find_packages
with open('README.rst') as readme:
long_description = ''.join(readme).strip()
setup(
name='rsocks',
version='0.3.3',
author='Jiangge Zhang',
author_email='tonyseek@gmail.com',
description='A SOCKS reverse proxy server.',
long_description=long_d... | Upgrade PySocks to fix Python 3.10 compatbility | Upgrade PySocks to fix Python 3.10 compatbility
| Python | mit | tonyseek/rsocks,tonyseek/rsocks | python | ## Code Before:
from setuptools import setup, find_packages
with open('README.rst') as readme:
long_description = ''.join(readme).strip()
setup(
name='rsocks',
version='0.3.3',
author='Jiangge Zhang',
author_email='tonyseek@gmail.com',
description='A SOCKS reverse proxy server.',
long_de... |
7ab465aaaf69ba114b3411204dd773781a147c41 | longclaw/project_template/products/models.py | longclaw/project_template/products/models.py | from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase
class ProductVariant(ProductVariantBase):
# Enter your custom product variant fields here
# e.g. colour, size, stock and so on.
# Remember, ProductVariantBase p... | from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase
class ProductVariant(ProductVariantBase):
# Enter your custom product variant fields here
# e.g. colour, size, stock and so on.
# Remember, ProductVariantBase p... | Remove 'stock' field from template products | Remove 'stock' field from template products
| Python | mit | JamesRamm/longclaw,JamesRamm/longclaw,JamesRamm/longclaw,JamesRamm/longclaw | python | ## Code Before:
from django.db import models
from wagtail.wagtailcore.fields import RichTextField
from longclaw.longclawproducts.models import ProductVariantBase
class ProductVariant(ProductVariantBase):
# Enter your custom product variant fields here
# e.g. colour, size, stock and so on.
# Remember, Prod... |
c1785e0713a5af6b849baaa1b314a13ac777f3f5 | tests/test_str_py3.py | tests/test_str_py3.py | from os import SEEK_SET
from random import choice, seed
from string import ascii_uppercase, digits
import fastavro
from fastavro.compat import BytesIO
letters = ascii_uppercase + digits
id_size = 100
seed('str_py3') # Repeatable results
def gen_id():
return ''.join(choice(letters) for _ in range(id_size))
k... | """Python3 string tests for fastavro"""
from __future__ import absolute_import
from os import SEEK_SET
from random import choice, seed
from string import ascii_uppercase, digits
try:
from cStringIO import StringIO as BytesIO
except ImportError:
from io import BytesIO
import fastavro
letters = ascii_upperc... | Test files shouldn't import 'fastavro.compat'. Just import BytesIO manually. | Test files shouldn't import 'fastavro.compat'. Just import BytesIO
manually.
| Python | mit | e-heller/fastavro,e-heller/fastavro | python | ## Code Before:
from os import SEEK_SET
from random import choice, seed
from string import ascii_uppercase, digits
import fastavro
from fastavro.compat import BytesIO
letters = ascii_uppercase + digits
id_size = 100
seed('str_py3') # Repeatable results
def gen_id():
return ''.join(choice(letters) for _ in ran... |
5506af9cae733f4089e32e33e9d7436b6b3bf112 | spec/helper.rb | spec/helper.rb | require 'webmock/rspec'
require "yaml"
def stub_api_key
file = File.dirname(__FILE__) + '/support/fanfeedr.yml'
YAML::load( File.open(file) )["key"]
end
def json_fixture(file)
filename = File.dirname(__FILE__) + "/fixtures/#{file}"
File.open(filename).read
end
def stub_json_request(url, file)
json = json_f... | require 'webmock/rspec'
require "yaml"
def stub_api_key
file = File.dirname(__FILE__) + '/support/fanfeedr.yml'
YAML::load( File.open(file) )["key"]
end
def stub_api_endpoint
'http://ffapi.fanfeedr.com/basic/api'
end
def stub_leagues_url
"#{stub_api_endpoint}/leagues?api_key=#{stub_api_key}"
end
def stub_le... | Add stub methods for league specs | Add stub methods for league specs
| Ruby | mit | chip/fanfeedr | ruby | ## Code Before:
require 'webmock/rspec'
require "yaml"
def stub_api_key
file = File.dirname(__FILE__) + '/support/fanfeedr.yml'
YAML::load( File.open(file) )["key"]
end
def json_fixture(file)
filename = File.dirname(__FILE__) + "/fixtures/#{file}"
File.open(filename).read
end
def stub_json_request(url, file)... |
5936c2ebe246d603ccd1a01610ddbfbada8a9a9e | importScripts/sql/transformations/ImportMediaDirectoryListing.sql | importScripts/sql/transformations/ImportMediaDirectoryListing.sql | DROP TABLE IF EXISTS MediaDirectoryListing;
CREATE TABLE MediaDirectoryListing(
FileName VARCHAR(255) NOT NULL PRIMARY KEY );
LOAD DATA LOCAL INFILE 'source/media-list.txt' INTO TABLE MediaDirectoryListing;
| DROP TABLE IF EXISTS MediaDirectoryListing;
CREATE TABLE MediaDirectoryListing(
FileName VARCHAR(255) NOT NULL PRIMARY KEY );
LOAD DATA LOCAL INFILE 'source/media-list.txt' INTO TABLE MediaDirectoryListing;
DELETE FROM MediaDirectoryListing WHERE FileName IS NULL OR FileName = '';
| Remove blank images from directory listing | Remove blank images from directory listing
| SQL | mit | rwahs/import-scripts | sql | ## Code Before:
DROP TABLE IF EXISTS MediaDirectoryListing;
CREATE TABLE MediaDirectoryListing(
FileName VARCHAR(255) NOT NULL PRIMARY KEY );
LOAD DATA LOCAL INFILE 'source/media-list.txt' INTO TABLE MediaDirectoryListing;
## Instruction:
Remove blank images from directory listing
## Code After:
DROP TABLE IF EXIST... |
59badfa50d645ac64c70fc6a0c2f7fe826999a1f | xpath.gemspec | xpath.gemspec | lib = File.expand_path('lib', File.dirname(__FILE__))
$:.unshift lib unless $:.include?(lib)
require 'xpath/version'
Gem::Specification.new do |s|
s.name = "xpath"
s.rubyforge_project = "xpath"
s.version = XPath::VERSION
s.authors = ["Jonas Nicklas"]
s.email = ["jonas.nicklas@gmail.com"]
s.description = ... | lib = File.expand_path('lib', File.dirname(__FILE__))
$:.unshift lib unless $:.include?(lib)
require 'xpath/version'
Gem::Specification.new do |s|
s.name = "xpath"
s.rubyforge_project = "xpath"
s.version = XPath::VERSION
s.authors = ["Jonas Nicklas"]
s.email = ["jonas.nicklas@gmail.com"]
s.description = ... | Document project license in gemspec | Document project license in gemspec | Ruby | mit | teamcapybara/xpath | ruby | ## Code Before:
lib = File.expand_path('lib', File.dirname(__FILE__))
$:.unshift lib unless $:.include?(lib)
require 'xpath/version'
Gem::Specification.new do |s|
s.name = "xpath"
s.rubyforge_project = "xpath"
s.version = XPath::VERSION
s.authors = ["Jonas Nicklas"]
s.email = ["jonas.nicklas@gmail.com"]
... |
6ab44c4d5dbbff49f0ae5afce90bf4d85dd0ebb4 | app/templates/user/sign_in.htm | app/templates/user/sign_in.htm | {% from "macros/form.htm" import render_form %}
{% extends "content.htm" %}
{% block content %}
<legend>{{_('Log in')}}</legend>
{{ render_form(form) }}
{% endblock %}
| {% from "macros/form.htm" import render_form %}
{% extends "content.htm" %}
{% block content %}
<legend>{{_('Log in')}}</legend>
{{ render_form(form) }}
<ul class='list-unstyled' id='dropmenu-list'>
<li><a href="{{ url_for('user.sign_up')}}">{{_('Register new user')}}</a></li>
<li><a href="{{ url_for('user.... | Add new user signup and forgot password links | Add new user signup and forgot password links
| HTML | mit | viaict/viaduct,viaict/viaduct,viaict/viaduct,viaict/viaduct,viaict/viaduct | html | ## Code Before:
{% from "macros/form.htm" import render_form %}
{% extends "content.htm" %}
{% block content %}
<legend>{{_('Log in')}}</legend>
{{ render_form(form) }}
{% endblock %}
## Instruction:
Add new user signup and forgot password links
## Code After:
{% from "macros/form.htm" import render_form %}
{% ... |
24093369bb1dbd2e9034db9425920ffdc14ee070 | abusehelper/bots/abusech/feodoccbot.py | abusehelper/bots/abusech/feodoccbot.py |
from abusehelper.core import bot
from . import host_or_ip, split_description, AbuseCHFeedBot
class FeodoCcBot(AbuseCHFeedBot):
feed_type = "c&c"
feed_name = "feodo c&c"
feeds = bot.ListParam(default=["https://feodotracker.abuse.ch/feodotracker.rss"])
# The timestamp in the title appears to be the ... |
from abusehelper.core import bot
from . import host_or_ip, split_description, AbuseCHFeedBot
class FeodoCcBot(AbuseCHFeedBot):
feed_type = "c&c"
feed_name = "feodo c&c"
feeds = bot.ListParam(default=["https://feodotracker.abuse.ch/feodotracker.rss"])
# The timestamp in the title appears to be the ... | Include status information in abuse.ch's Feodo C&C feed | Include status information in abuse.ch's Feodo C&C feed
| Python | mit | abusesa/abusehelper | python | ## Code Before:
from abusehelper.core import bot
from . import host_or_ip, split_description, AbuseCHFeedBot
class FeodoCcBot(AbuseCHFeedBot):
feed_type = "c&c"
feed_name = "feodo c&c"
feeds = bot.ListParam(default=["https://feodotracker.abuse.ch/feodotracker.rss"])
# The timestamp in the title ap... |
de68f2c753e5608d9624b80de3390936e2043076 | app/stylesheets/partials/_people.sass | app/stylesheets/partials/_people.sass | .people-section
#person
dl
+clearfix
dt
clear: left
float: left
width: 100px
font-weight: bold
dd.gender
margin-bottom: 10px
.siblings
margin-top: 10px
p
font-weight: bold
ul
list-style: disc
#comments
textarea
wid... | .people-section
.student-status
margin-bottom: 5px
#person
dl
+clearfix
dt
clear: left
float: left
width: 100px
font-weight: bold
dd.gender
margin-bottom: 10px
.siblings
margin-top: 10px
p
font-weight: bold
ul
list-style... | Add margin to 'make student' button | Add margin to 'make student' button
| Sass | mit | edendevelopment/cfi,edendevelopment/cfi,edendevelopment/cfi,edendevelopment/cfi | sass | ## Code Before:
.people-section
#person
dl
+clearfix
dt
clear: left
float: left
width: 100px
font-weight: bold
dd.gender
margin-bottom: 10px
.siblings
margin-top: 10px
p
font-weight: bold
ul
list-style: disc
#comments
te... |
5fd23d7b20f08d0af47ba74f3d814769c0612ebc | static/views/dashboard.jade | static/views/dashboard.jade | include top_menu.jade
.col-lg-12.row.top-row.enabled-projects-row.dashboard-row
h2
| Enabled projects
a.btn.btn-default.add-project-button(
href='#/projects/manage/', tooltip='Add new project',
tooltip-placement='right'
)
i.icon-plus
table.table.table... | include top_menu.jade
.col-lg-12.row.top-row.enabled-projects-row.dashboard-row
h2
| Enabled projects
a.btn.btn-default.add-project-button(
href='#/projects/manage/', tooltip='Add new project',
tooltip-placement='right'
)
i.icon-plus
table.table.table... | Add you don't have enabled projects badge | Add you don't have enabled projects badge
| Jade | mit | nvbn/coviolations_web,nvbn/coviolations_web | jade | ## Code Before:
include top_menu.jade
.col-lg-12.row.top-row.enabled-projects-row.dashboard-row
h2
| Enabled projects
a.btn.btn-default.add-project-button(
href='#/projects/manage/', tooltip='Add new project',
tooltip-placement='right'
)
i.icon-plus
t... |
86a9d0b78131e819960c0f8b93290dc360d48b65 | lib/pipedrive_api/organization.rb | lib/pipedrive_api/organization.rb | module PipedriveAPI
class Organization < Base
class << self
end
end
end
| module PipedriveAPI
class Organization < Base
class << self
def deals(id, **params)
response = get "#{resource_path}/#{id}/deals", query: params
handle response
end
end
end
end
| Add deals method to Organization | Add deals method to Organization
| Ruby | mit | bitbond/pipedrive_api,bitbond/pipedrive_api | ruby | ## Code Before:
module PipedriveAPI
class Organization < Base
class << self
end
end
end
## Instruction:
Add deals method to Organization
## Code After:
module PipedriveAPI
class Organization < Base
class << self
def deals(id, **params)
response = get "#{resource_path}/#{id}/deal... |
c0039c5d46814c355a12c4fb5af520e6c9eea476 | source/manual/alerts/whitehall-scheduled-publishing.html.md | source/manual/alerts/whitehall-scheduled-publishing.html.md | ---
owner_slack: "#2ndline"
title: Whitehall scheduled publishing
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-09-14
review_in: 6 months
---
### 'overdue publications in Whitehall'
This alert means that there are scheduled editions which have passed
their publication due ... | ---
owner_slack: "#2ndline"
title: Whitehall scheduled publishing
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2018-03-22
review_in: 6 months
---
### 'overdue publications in Whitehall'
This alert means that there are scheduled editions which have passed
their publication due ... | Add info about requeueing from a database restore | Add info about requeueing from a database restore
The process is slightly different. | Markdown | mit | alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs | markdown | ## Code Before:
---
owner_slack: "#2ndline"
title: Whitehall scheduled publishing
parent: "/manual.html"
layout: manual_layout
section: Icinga alerts
last_reviewed_on: 2017-09-14
review_in: 6 months
---
### 'overdue publications in Whitehall'
This alert means that there are scheduled editions which have passed
their ... |
bff61be70a5ee73c69de92c72b65475e471de445 | .travis.yml | .travis.yml | language: java
addons:
sonarcloud:
organization: "hobynye"
token: ${SONAR_TOKEN}
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/*/plugin-resolution
cache:
directories:
- $HOME/.gradle/caches
- $HOME/.gradle/wrapper
before_install:
- git fet... | language: java
addons:
sonarcloud:
organization: "hobynye"
token: ${SONAR_TOKEN}
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/*/plugin-resolution
cache:
directories:
- $HOME/.gradle/caches
- $HOME/.gradle/wrapper
before_install:
- chmod +... | Revert "Testing sonar warning about refs/head not containing main" | Revert "Testing sonar warning about refs/head not containing main"
This reverts commit 49d6f940
| YAML | epl-1.0 | HOBY-NYE/thank-you-matcher | yaml | ## Code Before:
language: java
addons:
sonarcloud:
organization: "hobynye"
token: ${SONAR_TOKEN}
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/*/plugin-resolution
cache:
directories:
- $HOME/.gradle/caches
- $HOME/.gradle/wrapper
before_inst... |
a57208656a8bc822202a050cb04b4372989196f1 | app/config.json | app/config.json | {
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:blackberry": {},
"os:ios": {},
"os:mobileweb": {},
"dependencies": {}
} | {
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:blackberry": {},
"os:ios": {},
"os:mobileweb": {},
"dependencies": {
"nl.fokkezb.button": "1.2.1"
}
} | Add dependency for button widget. | Add dependency for button widget.
| JSON | apache-2.0 | joliva/piglet,joliva/piglet | json | ## Code Before:
{
"global": {},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:blackberry": {},
"os:ios": {},
"os:mobileweb": {},
"dependencies": {}
}
## Instruction:
Add dependency for button widget.
## Code After:
{
"global": {},
"env:development": {},
"env:test"... |
68be3d63ab5a5a99ef66f3cb49314e72533bec0b | ee-design/ee.json | ee-design/ee.json | {
"files" : {
"ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignIfcBase.kt" : {
"path" : "ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignIfcBase.kt",
"date" : 1516729229440
},
"ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignApiBase.kt" : {
"path" : "ee-design\\src-gen\\main\... | {
"files" : {
"ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignIfcBase.kt" : {
"path" : "ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignIfcBase.kt",
"date" : 1516975256618
},
"ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignApiBase.kt" : {
"path" : "ee-design\\src-gen\\main\... | Work on Checks(Predicates) for conditions/checks of state machine | Work on Checks(Predicates) for conditions/checks of state machine
| JSON | apache-2.0 | eugeis/ee,eugeis/ee | json | ## Code Before:
{
"files" : {
"ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignIfcBase.kt" : {
"path" : "ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignIfcBase.kt",
"date" : 1516729229440
},
"ee-design\\src-gen\\main\\kotlin\\ee\\design\\DesignApiBase.kt" : {
"path" : "ee-design... |
83f28da821e1f4f08cca4091a02c82f48533288b | test/elf2/relocation-absolute.s | test/elf2/relocation-absolute.s | // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/abs.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: lld -flavor gnu2 %tabs %t -o %tout
// RUN: llvm-objdump -s %tout
// REQUIRES: x86
.global _start
_start:
movl $abs, %edx
#CHECK: Contents of section .text:
#CHEC... | // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/abs.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: lld -flavor gnu2 %tabs %t -o %tout
// RUN: llvm-objdump -d %tout | FileCheck %s
// REQUIRES: x86
.global _start
_start:
movl $abs, %edx
//CHECK: start:
//CHECK-N... | Fix test to actually test something. | Fix test to actually test something.
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@247790 91177308-0d34-0410-b5e6-96231b3b80d8
| GAS | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld | gas | ## Code Before:
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/abs.s -o %tabs
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: lld -flavor gnu2 %tabs %t -o %tout
// RUN: llvm-objdump -s %tout
// REQUIRES: x86
.global _start
_start:
movl $abs, %edx
#CHECK: Contents of sect... |
3874ca578c52879d9861213e321f6ece9e67f10b | sopel/modules/ping.py | sopel/modules/ping.py | from __future__ import unicode_literals
import random
from sopel.module import rule, priority, thread
@rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
def hello(bot, trigger):
if trigger.owner:
greeting = random.choice(('Fuck off,', 'Screw you,', 'Go away'))
else:
greeting = random.choice(('Hi... | from __future__ import unicode_literals
import random
from sopel.module import rule, priority, thread
@rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
def hello(bot, trigger):
greeting = random.choice(('Hi', 'Hey', 'Hello'))
punctuation = random.choice(('', '!'))
bot.say(greeting + ' ' + trigger.nick + pu... | Stop Sopel from relying rudely to the bot's owner. | Stop Sopel from relying rudely to the bot's owner.
| Python | mit | Uname-a/knife_scraper,Uname-a/knife_scraper,Uname-a/knife_scraper | python | ## Code Before:
from __future__ import unicode_literals
import random
from sopel.module import rule, priority, thread
@rule(r'(?i)(hi|hello|hey),? $nickname[ \t]*$')
def hello(bot, trigger):
if trigger.owner:
greeting = random.choice(('Fuck off,', 'Screw you,', 'Go away'))
else:
greeting = ra... |
1bdc83cd1d651a3c96868f3e7b6fc4e9ad83e93d | src/Resources/views/CRUD/base_edit_form_macro.html.twig | src/Resources/views/CRUD/base_edit_form_macro.html.twig | {% macro render_groups(admin, form, groups, has_tab) %}
<div class="row">
{% for code in groups if admin.formgroups[code] is defined %}
{% set form_group = admin.formgroups[code] %}
<div class="{{ form_group.class|default('col-md-12') }}">
<div class="{{ form_group.box_class }}">
... | {% macro render_groups(admin, form, groups, has_tab) %}
<div class="row">
{% for code in groups if admin.formgroups[code] is defined %}
{% set form_group = admin.formgroups[code] %}
<div class="{{ form_group.class|default('col-md-12') }}">
<div class="{{ form_group.box_class }}">
... | Add trans filter to form_group description | Add trans filter to form_group description | Twig | mit | ossinkine/SonataAdminBundle,Armstrong1992/SonataAdminBundle,peter-gribanov/SonataAdminBundle,sonata-project/SonataAdminBundle,greg0ire/SonataAdminBundle,Armstrong1992/SonataAdminBundle,ARTACK/SonataAdminBundle,OskarStark/SonataAdminBundle,mweimerskirch/SonataAdminBundle,osavchenko/SonataAdminBundle,osavchenko/SonataAdm... | twig | ## Code Before:
{% macro render_groups(admin, form, groups, has_tab) %}
<div class="row">
{% for code in groups if admin.formgroups[code] is defined %}
{% set form_group = admin.formgroups[code] %}
<div class="{{ form_group.class|default('col-md-12') }}">
<div class="{{ form_group.... |
d503494d18b3af9df9e27ddcc8eaa4c97914e9b8 | example/webpack.config.server.js | example/webpack.config.server.js | var api = require("./webpack.config.defaults")
.entry("./src/server.js")
// @TODO Auto-installed deps aren't in node_modules (yet),
// so let's see if this is a problem or not
.externals(/^@?\w[a-z\-0-9\./]+$/)
// .externals(...require("fs").readdirSync("./node_modules"))
.output("build/server")
.target("... | var api = require("./webpack.config.defaults")
.entry("./src/server.js")
.externals(/^@?\w[a-z\-0-9\./]+$/)
.output("build/server")
.target("node")
.when("development", function(api) {
return api
.entry({
server: [
"webpack/hot/poll?1000",
"./src/server.js",
],
... | Add comment that externals RegExp does work | Add comment that externals RegExp does work
| JavaScript | mit | ericclemmons/terse-webpack | javascript | ## Code Before:
var api = require("./webpack.config.defaults")
.entry("./src/server.js")
// @TODO Auto-installed deps aren't in node_modules (yet),
// so let's see if this is a problem or not
.externals(/^@?\w[a-z\-0-9\./]+$/)
// .externals(...require("fs").readdirSync("./node_modules"))
.output("build/serv... |
c86d4265b09058f647729dd612035810cbaad8e3 | app/config/phansible/boxes.yml | app/config/phansible/boxes.yml | boxes:
virtualbox:
trusty32:
name: Ubuntu Trusty Tahr (14.04) [LTS] 32
deb: trusty
cloud: ubuntu/trusty32
url: https://vagrantcloud.com/ubuntu/boxes/trusty32/versions/14.04/providers/virtualbox.box
trusty64:
name: Ubuntu Trusty Tahr (14.04) [LTS] 64
deb: trusty
cloud:... | boxes:
virtualbox:
trusty32:
name: Ubuntu Trusty Tahr (14.04) [LTS] 32
deb: trusty
cloud: ubuntu/trusty32
url: https://atlas.hashicorp.com/ubuntu/boxes/trusty32/versions/20160406.0.0/providers/virtualbox.box
trusty64:
name: Ubuntu Trusty Tahr (14.04) [LTS] 64
deb: trusty
... | Update Ubuntu LTS Trusty origin | Update Ubuntu LTS Trusty origin
| YAML | mit | phansible/phansible,phansible/phansible,phansible/phansible,phansible/phansible,phansible/phansible | yaml | ## Code Before:
boxes:
virtualbox:
trusty32:
name: Ubuntu Trusty Tahr (14.04) [LTS] 32
deb: trusty
cloud: ubuntu/trusty32
url: https://vagrantcloud.com/ubuntu/boxes/trusty32/versions/14.04/providers/virtualbox.box
trusty64:
name: Ubuntu Trusty Tahr (14.04) [LTS] 64
deb: tru... |
2b39012dd4a75fc6e9222b95ae68a5cf30d377c6 | README.md | README.md | These tiny scripts add the ability to quickly show a button in the inspector for any zero-argument method.
## How to use
1. Clone the repo or download the latest release
2. Add the EasyButtons folder to your Unity project or import the .unitypackage
3. Add the Button attribute to a method
 {
assert(1); // reachable!
return NULL;
}
int main() {
pthread_once(&once,t_fun);
return 0;
}
| //PARAM: --disable sem.unknown_function.spawn
#include <pthread.h>
#include <assert.h>
int g;
pthread_once_t once = PTHREAD_ONCE_INIT;
void t_fun() {
assert(1); // reachable!
return NULL;
}
int main() {
pthread_once(&once,t_fun);
return 0;
}
| Correct type of `pthread_once` argument | 02/71: Correct type of `pthread_once` argument
Co-authored-by: Simmo Saan <43bc63fd4e818c04906d6ad710460794fe32296e@gmail.com> | C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | c | ## Code Before:
//PARAM: --disable sem.unknown_function.spawn
#include <pthread.h>
#include <assert.h>
int g;
pthread_once_t once = PTHREAD_ONCE_INIT;
void *t_fun(void *arg) {
assert(1); // reachable!
return NULL;
}
int main() {
pthread_once(&once,t_fun);
return 0;
}
## Instruction:
02/71: Correct type of `... |
8a101461a5a113858870b5bd54ec2192ecab740f | .github/pull_request_template.md | .github/pull_request_template.md | <!--
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: ./CONTRIBUTING.md
-->
<!-- _Please make sure to review and check all of these items:_ -->
##### Checklist
<!-- Rem... | <!--
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: ./CONTRIBUTING.md
-->
<!-- _Please make sure to review and check all of these items:_ -->
##### Checklist
<!-- Rem... | Add Issue reference message to PR template | Add Issue reference message to PR template
| Markdown | apache-2.0 | aelsabbahy/goss,aelsabbahy/goss | markdown | ## Code Before:
<!--
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: ./CONTRIBUTING.md
-->
<!-- _Please make sure to review and check all of these items:_ -->
##### Ch... |
888354be1b65ccd9d008e19f537cbf3ba7594dba | src/CoverageBase.jl | src/CoverageBase.jl | module CoverageBase
using Coverage
export testnames, runtests
const need_inlining = ["reflection", "meta"]
function julia_top()
dir = joinpath(JULIA_HOME, "..", "share", "julia")
if isdir(joinpath(dir,"base")) && isdir(joinpath(dir,"test"))
return dir
end
dir = JULIA_HOME
while !isdir(join... | module CoverageBase
using Coverage
export testnames, runtests
const need_inlining = []
function julia_top()
dir = joinpath(JULIA_HOME, "..", "share", "julia")
if isdir(joinpath(dir,"base")) && isdir(joinpath(dir,"test"))
return dir
end
dir = JULIA_HOME
while !isdir(joinpath(dir,"base"))
... | Remove need_inline tests and enable coverage run with inlining on | Remove need_inline tests and enable coverage run with inlining on
Fix #18
| Julia | mit | timholy/CoverageBase.jl | julia | ## Code Before:
module CoverageBase
using Coverage
export testnames, runtests
const need_inlining = ["reflection", "meta"]
function julia_top()
dir = joinpath(JULIA_HOME, "..", "share", "julia")
if isdir(joinpath(dir,"base")) && isdir(joinpath(dir,"test"))
return dir
end
dir = JULIA_HOME
w... |
eab9fb83aed7c061551afd5d7b07147f5cefbdc7 | CMake/hoomd/HOOMDMacros.cmake | CMake/hoomd/HOOMDMacros.cmake | macro(fix_cudart_rpath target)
if (ENABLE_CUDA AND APPLE)
get_target_property(_target_exe ${target} LOCATION)
add_custom_command(TARGET ${target} POST_BUILD
COMMAND install_name_tool ARGS -change @rpath/libcudart.dylib ${CUDA_CUDART_LIBRARY} ${_target_exe})
add_custom_command(TARGET ${target} ... | macro(fix_cudart_rpath target)
if (ENABLE_CUDA AND APPLE)
get_target_property(_target_exe ${target} LOCATION)
add_custom_command(TARGET ${target} POST_BUILD
COMMAND install_name_tool ARGS -change @rpath/libcudart.dylib ${CUDA_CUDART_LIBRARY} ${_target_exe})
add_custom_command(TARGET ${target} ... | Fix bug that prevented mac os x builds from running in the build directory | Fix bug that prevented mac os x builds from running in the build directory
git-svn-id: 4ba210d0a933e3fb1aa9ab096f190cd38965d92a@3903 fa922fa7-2fde-0310-acd8-f43f465a7996
| CMake | bsd-3-clause | joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue | cmake | ## Code Before:
macro(fix_cudart_rpath target)
if (ENABLE_CUDA AND APPLE)
get_target_property(_target_exe ${target} LOCATION)
add_custom_command(TARGET ${target} POST_BUILD
COMMAND install_name_tool ARGS -change @rpath/libcudart.dylib ${CUDA_CUDART_LIBRARY} ${_target_exe})
add_custom_command(T... |
255d7025283d0bd939d8e83520b29d9aa0d0eb6d | source/partials/_nav.html.erb | source/partials/_nav.html.erb | <nav class="navbar" role="navigation" aria-label="main navigation">
<ul class="navbar-list">
<%# <li class="navbar-item">
<a href="#" title="Sobre">Sobre</a>
</li> %>
<li class="navbar-item">
<a href="#speakers" title="Palestrantes">Palestrantes</a>
</li>
<li class="navbar-item">
... | <nav class="navbar" role="navigation" aria-label="main navigation">
<ul class="navbar-list">
<%# <li class="navbar-item">
<a href="#" title="Sobre">Sobre</a>
</li> %>
<li class="navbar-item">
<a href="#speakers" title="Palestrantes">Palestrantes</a>
</li>
<li class="navbar-item">
... | Add target blank to buy tickets link | Add target blank to buy tickets link
| HTML+ERB | mit | insiter/insiter.io,insiter/insiter.io,insiter/insiter.io | html+erb | ## Code Before:
<nav class="navbar" role="navigation" aria-label="main navigation">
<ul class="navbar-list">
<%# <li class="navbar-item">
<a href="#" title="Sobre">Sobre</a>
</li> %>
<li class="navbar-item">
<a href="#speakers" title="Palestrantes">Palestrantes</a>
</li>
<li class="nav... |
95fa71c4439343764cac95a1667e08dc21cb6ebe | plugins.py | plugins.py | from fabric.api import *
import os
import re
__all__ = []
@task
def test(plugin_path):
"""
Symbolically link a host file that contains a redcap plugin into the ./redcap/plugins folder
:param plugin_path: path to plugin folder relative to VagrantFile
:return:
"""
if not os.path.exists(plugin_p... | from fabric.api import *
import os
import re
__all__ = []
@task
def test(plugin_path):
"""
Symbolically link a host file that contains a redcap plugin into the ./redcap/plugins folder
:param plugin_path: path to plugin folder relative to VagrantFile
:return:
"""
if not os.path.exists(plugin_p... | Fix plugin test by running scripts as user deploy | Fix plugin test by running scripts as user deploy
| Python | bsd-3-clause | ctsit/redcap_deployment,ctsit/redcap_deployment,ctsit/redcap_deployment,ctsit/redcap_deployment | python | ## Code Before:
from fabric.api import *
import os
import re
__all__ = []
@task
def test(plugin_path):
"""
Symbolically link a host file that contains a redcap plugin into the ./redcap/plugins folder
:param plugin_path: path to plugin folder relative to VagrantFile
:return:
"""
if not os.path... |
f7351c4ef617866123546c9b4f715e3f1ef2ee89 | README.md | README.md | github-flow-demo
================
| github-flow-demo
================
[](https://travis-ci.org/linjunpop/github-flow-demo)
| Add Travis CI status image. | Add Travis CI status image.
[CI skip]
| Markdown | mit | linjunpop/github-flow-demo | markdown | ## Code Before:
github-flow-demo
================
## Instruction:
Add Travis CI status image.
[CI skip]
## Code After:
github-flow-demo
================
[](https://travis-ci.org/linjunpop/github-flow-demo)
|
9790776a3df7304f60800a96cd47ee84f25b29f6 | pivot/templates/handlebars/distribution-help-popover.html | pivot/templates/handlebars/distribution-help-popover.html | <!-- Template for the distribution help popover (explaining quartiles/median) -->
{% load templatetag_handlebars %}
{% tplhandlebars "distribution-help-popover" %}
<p>
<b>Distribution</b>
</p>
<p>
<img src="{{ boxplot_image }}" alt="GPA distribution graph, called Boxplot, shows 50% of GPAs fall in between lower quar... | <!-- Template for the distribution help popover (explaining quartiles/median) -->
{% load templatetag_handlebars %}
{% tplhandlebars "distribution-help-popover" %}
<p>
<b>Distribution</b>
</p>
<p>
<!-- Note: Hardcoded the width/height of the image so bootstrap popover
would recognize it. If the image/popover dim... | Fix for GPS-215. Hardcoded distribution popover image width/height | Fix for GPS-215. Hardcoded distribution popover image width/height
| HTML | apache-2.0 | uw-it-aca/pivot,uw-it-aca/pivot,uw-it-aca/pivot,uw-it-aca/pivot,uw-it-aca/pivot | html | ## Code Before:
<!-- Template for the distribution help popover (explaining quartiles/median) -->
{% load templatetag_handlebars %}
{% tplhandlebars "distribution-help-popover" %}
<p>
<b>Distribution</b>
</p>
<p>
<img src="{{ boxplot_image }}" alt="GPA distribution graph, called Boxplot, shows 50% of GPAs fall in be... |
9dddc4d6af970d789277f6e84a87eb664e882bb3 | xadmin/templates/xadmin/blocks/model_list.top_toolbar.saveorder.html | xadmin/templates/xadmin/blocks/model_list.top_toolbar.saveorder.html | {% load i18n %}
<div class="btn-group">
<a href="#" id="save-order" class="btn btn-primary btn-sm" style="display: None" post-url="{{ save_order_url }}">
{% trans "Save Order" %}
</a>
</div>
| {% load i18n %}
<div class="btn-group">
<a href="#" id="save-order" class="btn btn-success btn-sm" style="display: None" post-url="{{ save_order_url }}">
<i class="fa fa-save"> </i>{% trans "Save Order" %}
</a>
</div>
| Add icon sotablelist; Change buttom theme. | Add icon sotablelist; Change buttom theme.
| HTML | bsd-3-clause | alexsilva/django-xadmin,alexsilva/django-xadmin,alexsilva/django-xadmin,alexsilva/django-xadmin | html | ## Code Before:
{% load i18n %}
<div class="btn-group">
<a href="#" id="save-order" class="btn btn-primary btn-sm" style="display: None" post-url="{{ save_order_url }}">
{% trans "Save Order" %}
</a>
</div>
## Instruction:
Add icon sotablelist; Change buttom theme.
## Code After:
{% load i18n %}
<div class=... |
73f3741631465c490117974a896accf18008e486 | config/resources.php | config/resources.php | <?php
/**
* Resources. Each consists of:
* 'resource' - url on which the data you'll be requested
* 'controller' - name of the controller
* 'action' - name of the action
*/
return array(
array(
'resource' => 'group',
'controller' => 'AuxiliaryDataController',
'action' => 'getGroup... | <?php
/**
* Resources. Each consists of:
* 'resource' - url on which the data you'll be requested
* 'method' - method of the request
* 'controller' - name of the controller
* 'action' - name of the action
*/
return array(
array(
'resource' => 'groups',
'method' => 'GET',
'control... | Change structure of the 'resource' file according to new routing | Change structure of the 'resource' file according to new routing
| PHP | unlicense | DanilBaibak/rest_api | php | ## Code Before:
<?php
/**
* Resources. Each consists of:
* 'resource' - url on which the data you'll be requested
* 'controller' - name of the controller
* 'action' - name of the action
*/
return array(
array(
'resource' => 'group',
'controller' => 'AuxiliaryDataController',
'action' ... |
5f49fb8c7c0f9e7a05d4f9b730d7f3e872229d60 | test/completion/definition.py | test/completion/definition.py |
#? isinstance
isinstance(
)
#? isinstance
isinstance(None,
)
#? isinstance
isinstance(None,
)
|
#? isinstance
isinstance(
)
#? isinstance
isinstance(None,
)
#? isinstance
isinstance(None,
)
# Note: len('isinstance(') == 11
#? 11 isinstance
isinstance()
# Note: len('isinstance(None,') == 16
##? 16 isinstance
isinstance(None,)
# Note: len('isinstance(None,') == 16
##? 16 isinstance
isinstance(None, )
# Note... | Add blackbox tests using column number | Add blackbox tests using column number
| Python | mit | flurischt/jedi,WoLpH/jedi,mfussenegger/jedi,dwillmer/jedi,tjwei/jedi,jonashaag/jedi,jonashaag/jedi,tjwei/jedi,flurischt/jedi,dwillmer/jedi,mfussenegger/jedi,WoLpH/jedi | python | ## Code Before:
#? isinstance
isinstance(
)
#? isinstance
isinstance(None,
)
#? isinstance
isinstance(None,
)
## Instruction:
Add blackbox tests using column number
## Code After:
#? isinstance
isinstance(
)
#? isinstance
isinstance(None,
)
#? isinstance
isinstance(None,
)
# Note: len('isinstance(') == 11
#?... |
82cf63a97093841af49b13e19b19f59c90f33da8 | wercker-step.yml | wercker-step.yml | name: pretty-slack-notify
version: 0.0.1
description: Posts wercker build/deploy status to a Slack channel
keywords:
- notification
- slack
- webhook
properties:
| name: pretty-slack-notify
version: 0.0.1
description: Posts wercker build/deploy status to a Slack channel
keywords:
- notification
- slack
- webhook
properties:
team:
type: string
required: true
token:
type: string
required: true
channel:
type: string
required: true
username:
... | Add properties to this step | Add properties to this step
| YAML | mit | dlanileonardo/step-pretty-slack-notify,dlanileonardo/step-pretty-slack-notify,wantedly/step-pretty-slack-notify,wantedly/step-pretty-slack-notify,wantedly/step-pretty-slack-notify,dlanileonardo/step-pretty-slack-notify | yaml | ## Code Before:
name: pretty-slack-notify
version: 0.0.1
description: Posts wercker build/deploy status to a Slack channel
keywords:
- notification
- slack
- webhook
properties:
## Instruction:
Add properties to this step
## Code After:
name: pretty-slack-notify
version: 0.0.1
description: Posts wercker build/d... |
a2ce7f991405e10886ecbe83c6577526a7480ca6 | views/teams/show.html.erb | views/teams/show.html.erb | <% content_for(:title) { "#{I18n.t('.teams_page.title')} #{I18n.t(".teams.#{team.iso_code}")}" } %>
<div class="row">
<div class="col-12 col-md-8 ml-auto mr-auto">
<div class="card">
<div class="card-header">
<div class="select-team row form-group">
<div class="col-6 col-sm-4 ml-auto pr-1"... | <% content_for(:title) { "#{I18n.t('.teams_page.title')} #{I18n.t(".teams.#{team.iso_code}")}" } %>
<div class="row">
<div class="col-12 col-md-8 ml-auto mr-auto">
<div class="card">
<div class="card-header">
<div class="select-team row form-group">
<div class="col-6 col-sm-4 ml-auto pr-1"... | Remove table-striped for team matches. | Remove table-striped for team matches.
| HTML+ERB | mit | threefunkymonkeys/funky-world-cup,threefunkymonkeys/funky-world-cup,threefunkymonkeys/funky-world-cup,threefunkymonkeys/funky-world-cup | html+erb | ## Code Before:
<% content_for(:title) { "#{I18n.t('.teams_page.title')} #{I18n.t(".teams.#{team.iso_code}")}" } %>
<div class="row">
<div class="col-12 col-md-8 ml-auto mr-auto">
<div class="card">
<div class="card-header">
<div class="select-team row form-group">
<div class="col-6 col-sm... |
11206608bc55609f22837f1f56a85edbd781dd85 | app/views/articles/show.html.erb | app/views/articles/show.html.erb | <h1><%= @article.title %></h1>
<p><%= @article.body %></p>
<div>
<%= link_to 'delete', article_path(@article), method: :delete %>
</div>
<%= link_to "<< Back to Articles List", articles_path %>
| <h1><%= @article.title %></h1>
<p><%= @article.body %></p>
<div>
<%= link_to 'delete', article_path(@article), method: :delete, data: {confirm: "Are you sure you want to delete this article?"} %>
</div>
<%= link_to "<< Back to Articles List", articles_path %>
| Add article deletion confirmation to show view | Add article deletion confirmation to show view
| HTML+ERB | mit | xenochrysalis/shippers_bay_fandom_blogger,eksmith/shippers_bay_fandom_blogger,xenochrysalis/shippers_bay_fandom_blogger,eksmith/shippers_bay_fandom_blogger,eksmith/shippers_bay_fandom_blogger,xenochrysalis/shippers_bay_fandom_blogger | html+erb | ## Code Before:
<h1><%= @article.title %></h1>
<p><%= @article.body %></p>
<div>
<%= link_to 'delete', article_path(@article), method: :delete %>
</div>
<%= link_to "<< Back to Articles List", articles_path %>
## Instruction:
Add article deletion confirmation to show view
## Code After:
<h1><%= @article.title %></h1... |
85ef4d2fb654499079a33326166146dbcd134f37 | requirements.txt | requirements.txt | Flask==0.10.1
PyYAML==3.11
matterhook==0.1
py-trello==0.4.3
python-slugify==1.2.0
pyopenssl==0.14
ndg-httpsclient==0.4.1
pyasn1==0.1.9
| Flask==0.10.1
PyYAML==3.11
matterhook==0.1
ndg-httpsclient==0.4.1
py-trello==0.4.3
pyasn1==0.1.9
pyopenssl==0.14
python-slugify==1.2.0
urllib3==1.16
| Add the missing urllib3 dependancy | Add the missing urllib3 dependancy
| Text | mit | Lujeni/matterllo,Lujeni/matterllo,Lujeni/matterllo,Lujeni/matterllo | text | ## Code Before:
Flask==0.10.1
PyYAML==3.11
matterhook==0.1
py-trello==0.4.3
python-slugify==1.2.0
pyopenssl==0.14
ndg-httpsclient==0.4.1
pyasn1==0.1.9
## Instruction:
Add the missing urllib3 dependancy
## Code After:
Flask==0.10.1
PyYAML==3.11
matterhook==0.1
ndg-httpsclient==0.4.1
py-trello==0.4.3
pyasn1==0.1.9
pyop... |
7782fc4d22078f0b741d20678143bd8d80876609 | git/routes.js | git/routes.js | var router = require("express").Router();
var db = require("./db");
router.get("/", function (req, res) {
var o = {
map: function () {
if (this.parents.length === 1) {
for (var i = 0; i < this.files.length; i++) {
emit(this.author,
{
additions: this.files[i].addi... | var router = require("express").Router();
var db = require("./db");
router.get("/", function (req, res) {
var o = {
map: function () {
if (this.parents.length === 1) {
for (var i = 0; i < this.files.length; i++) {
emit(this.author,
{
additions: this.files[i].addi... | Return more sane data through API | Return more sane data through API
| JavaScript | mit | bjornarg/dev-dashboard,bjornarg/dev-dashboard | javascript | ## Code Before:
var router = require("express").Router();
var db = require("./db");
router.get("/", function (req, res) {
var o = {
map: function () {
if (this.parents.length === 1) {
for (var i = 0; i < this.files.length; i++) {
emit(this.author,
{
additions: th... |
bc0022c32ef912eba9cc3d9683c1649443d6aa35 | pyfibot/modules/module_btc.py | pyfibot/modules/module_btc.py | from __future__ import unicode_literals, print_function, division
def command_btc(bot, user, channel, args):
"""Display current BTC exchange rates from mtgox. Usage: btc [whitespace separated list of currency codes]"""
currencies = ["EUR"]
if args:
currencies = args.split(" ")
rates = []
... | from __future__ import unicode_literals, print_function, division
def command_btc(bot, user, channel, args):
"""Display current BTC exchange rates from mtgox. Usage: btc [whitespace separated list of currency codes]"""
currencies = ["EUR"]
if args:
currencies = args.split(" ")
return bot.say... | Add support for LTC in mtgox | Add support for LTC in mtgox
| Python | bsd-3-clause | rnyberg/pyfibot,EArmour/pyfibot,EArmour/pyfibot,aapa/pyfibot,lepinkainen/pyfibot,huqa/pyfibot,rnyberg/pyfibot,huqa/pyfibot,aapa/pyfibot,lepinkainen/pyfibot | python | ## Code Before:
from __future__ import unicode_literals, print_function, division
def command_btc(bot, user, channel, args):
"""Display current BTC exchange rates from mtgox. Usage: btc [whitespace separated list of currency codes]"""
currencies = ["EUR"]
if args:
currencies = args.split(" ")
... |
94ce4240f2ec1c0e76950467ecbc698b74a66a47 | src/test/java/com/reduks/reduks/StoreTest.kt | src/test/java/com/reduks/reduks/StoreTest.kt | package com.reduks.reduks
import com.reduks.reduks.repository.FakeActions
import com.reduks.reduks.repository.FakeData
import com.reduks.reduks.repository.FakeState
import com.reduks.reduks.subscription.Subscriber
import com.reduks.reduks.subscription.Subscription
import org.jetbrains.spek.api.Spek
import org.jetbrain... | package com.reduks.reduks
import com.reduks.reduks.repository.FakeActions
import com.reduks.reduks.repository.FakeData
import com.reduks.reduks.repository.FakeState
import com.reduks.reduks.subscription.Subscriber
import com.reduks.reduks.subscription.Subscription
import org.jetbrains.spek.api.Spek
import org.jetbrain... | Create store get state test | Create store get state test
| Kotlin | mit | Reduks/Reduks | kotlin | ## Code Before:
package com.reduks.reduks
import com.reduks.reduks.repository.FakeActions
import com.reduks.reduks.repository.FakeData
import com.reduks.reduks.repository.FakeState
import com.reduks.reduks.subscription.Subscriber
import com.reduks.reduks.subscription.Subscription
import org.jetbrains.spek.api.Spek
imp... |
04b49aa57b2141b3c032318d5c4125134157642b | widgy/contrib/page_builder/templates/widgy/page_builder/image/render.html | widgy/contrib/page_builder/templates/widgy/page_builder/image/render.html | {% load thumbnail_libs %}
{% sorl_thumbnail self.image.file.name "500x500" upscale=False as im %}
<img src="{% media im.name %}">
{% endthumbnail %}
| {% load thumbnail_libs %}
{% sorl_thumbnail self.image.file.name "500x500" upscale=False as im %}
<img src="{% media im.name %}" alt="{{ self.image.label }}">
{% endthumbnail %}
| Add alt text for image widget | Add alt text for image widget
| HTML | apache-2.0 | j00bar/django-widgy,j00bar/django-widgy,j00bar/django-widgy | html | ## Code Before:
{% load thumbnail_libs %}
{% sorl_thumbnail self.image.file.name "500x500" upscale=False as im %}
<img src="{% media im.name %}">
{% endthumbnail %}
## Instruction:
Add alt text for image widget
## Code After:
{% load thumbnail_libs %}
{% sorl_thumbnail self.image.file.name "500x500" upscale=False... |
9f7a4a72eaa37c32105889b8cfd4786c4a6895f3 | examples/hello_world.rs | examples/hello_world.rs | extern crate rouille;
use std::io;
fn main() {
rouille::start_server("localhost:8000", move |request| {
let _entry = rouille::LogEntry::start(io::stdout(), request);
if let Ok(r) = rouille::match_assets(request, "examples") {
return r;
}
let response = router!(request... | extern crate rouille;
use std::io;
fn main() {
rouille::start_server("localhost:8000", move |request| {
let _entry = rouille::LogEntry::start(io::stdout(), request);
if let Ok(r) = rouille::match_assets(request, "examples") {
return r;
}
let response = router!(request... | Add a "/panic" route in the hello world example | Add a "/panic" route in the hello world example
| Rust | apache-2.0 | tomaka/rouille | rust | ## Code Before:
extern crate rouille;
use std::io;
fn main() {
rouille::start_server("localhost:8000", move |request| {
let _entry = rouille::LogEntry::start(io::stdout(), request);
if let Ok(r) = rouille::match_assets(request, "examples") {
return r;
}
let response =... |
a8057b98c51fd1c0532090cc8575e86e60990ac0 | st2tests/st2tests/fixtures/generic/executions/execution1.yaml | st2tests/st2tests/fixtures/generic/executions/execution1.yaml | ---
action:
enabled: true
entry_point: ''
id: 54c6bb640640fd5211edef0c
name: local
pack: core
parameters:
sudo:
immutable: true
runner_type: run-local
end_timestamp: '2014-09-01T00:00:05.000000Z'
id: 54c6bb640640fd5211edef0d
liveaction:
action: core.someworkflow
callback: {}
context:
u... | ---
action:
enabled: true
entry_point: ''
id: 54c6bb640640fd5211edef0c
uid: action:core:local
ref: core.local
name: local
pack: core
parameters:
sudo:
immutable: true
runner_type: run-local
end_timestamp: '2014-09-01T00:00:05.000000Z'
id: 54c6bb640640fd5211edef0d
liveaction:
action: core.s... | Update out of date fixture. | Update out of date fixture.
| YAML | apache-2.0 | armab/st2,pixelrebel/st2,lakshmi-kannan/st2,tonybaloney/st2,lakshmi-kannan/st2,tonybaloney/st2,peak6/st2,Plexxi/st2,pixelrebel/st2,punalpatel/st2,nzlosh/st2,alfasin/st2,peak6/st2,punalpatel/st2,StackStorm/st2,armab/st2,alfasin/st2,Plexxi/st2,nzlosh/st2,dennybaa/st2,peak6/st2,lakshmi-kannan/st2,emedvedev/st2,pixelrebel/... | yaml | ## Code Before:
---
action:
enabled: true
entry_point: ''
id: 54c6bb640640fd5211edef0c
name: local
pack: core
parameters:
sudo:
immutable: true
runner_type: run-local
end_timestamp: '2014-09-01T00:00:05.000000Z'
id: 54c6bb640640fd5211edef0d
liveaction:
action: core.someworkflow
callback: {}
... |
dde1e8a05d93b83abbd3821cb4bd352ef8263b58 | mkdocs.yml | mkdocs.yml | site_name: LARA Interactive API
theme: readthedocs
site_dir: dist/docs
repo_name: Github
repo_url: https://github.com/concord-consortium/lara-interactive-api
sute_url: http://concord-consortium.github.io/lara-interactive-api/
pages:
- ['index.md','LARA API']
- ['about-mkdocs.md','About the documentation generator':W
]
| site_name: LARA Interactive API
theme: readthedocs
site_dir: dist/docs
repo_name: Github
repo_url: https://github.com/concord-consortium/lara-interactive-api
site_url: http://concord-consortium.github.io/lara-interactive-api/
pages:
- LARA API: 'index.md'
- About the documentation generator: 'about-mkdocs.md'
| Fix some docs config typos/deprecation | Fix some docs config typos/deprecation
| YAML | mit | concord-consortium/lara-interactive-api,concord-consortium/lara-interactive-api,concord-consortium/lara-interactive-api | yaml | ## Code Before:
site_name: LARA Interactive API
theme: readthedocs
site_dir: dist/docs
repo_name: Github
repo_url: https://github.com/concord-consortium/lara-interactive-api
sute_url: http://concord-consortium.github.io/lara-interactive-api/
pages:
- ['index.md','LARA API']
- ['about-mkdocs.md','About the documentation... |
300c0376b5a85233dea9b1c9414a60ba585751d1 | tests/parser/tcommand_as_expr.nim | tests/parser/tcommand_as_expr.nim |
proc optarg(x:int):int = x
proc singlearg(x:int):int = 20*x
echo optarg 1, singlearg 2
proc foo(x: int): int = x-1
proc foo(x, y: int): int = x-y
let x = optarg foo 7.foo
let y = singlearg foo(1, foo 8)
echo x, y
| import math
proc optarg(x:int, y:int = 0):int = x + 3 * y
proc singlearg(x:int):int = 20*x
echo optarg 1, singlearg 2
proc foo(x: int): int = x-1
proc foo(x, y: int): int = x-y
let x = optarg foo 7.foo
let y = singlearg foo(1, foo 8)
let z = singlearg 1.foo foo 8
echo x, y, z
let a = [2,4,8].map do (d:int) ->... | Fix optarg() and added two more tests. | Fix optarg() and added two more tests.
One for 'do notation' in a single function in an expression, another the trick of using the method call syntax to pass two parameters.
| Nimrod | mit | BlaXpirit/nim,tmm1/Nim,nanoant/Nim,jsanjuas/Nim,JCavallo/Nim,russpowers/Nim,msmith491/Nim,sferik/Nim,bvssvni/Nim,sarvex/Nim-lang,Dhertz/Nim,mbaulch/Nim,Dhertz/Nim,Salafit/Nim,reactormonk/nim,haiodo/Nim,Matt14916/Nim,dom96/Nim,jsanjuas/Nim,SSPkrolik/Nim,SSPkrolik/Nim,fredericksilva/Nim,dom96/Nim,Matt14916/Nim,sarvex/Nim... | nimrod | ## Code Before:
proc optarg(x:int):int = x
proc singlearg(x:int):int = 20*x
echo optarg 1, singlearg 2
proc foo(x: int): int = x-1
proc foo(x, y: int): int = x-y
let x = optarg foo 7.foo
let y = singlearg foo(1, foo 8)
echo x, y
## Instruction:
Fix optarg() and added two more tests.
One for 'do notation' in a si... |
97a2106826809947182af00f734415bab1336008 | lib/node_modules/@stdlib/math/base/special/riemann-zeta/docs/repl.txt | lib/node_modules/@stdlib/math/base/special/riemann-zeta/docs/repl.txt |
{{alias}}( x )
Evaluates the Riemann zeta function as a function of a real variable `s`
(i.e., `t = 0`).
The Riemann zeta function is the analytic continuation of the infinite
series
__ oo 1
zeta(s) = \ -----
/__ k = 1 s
... |
{{alias}}( s )
Evaluates the Riemann zeta function as a function of a real variable `s`.
Parameters
----------
s: number
Input value.
Returns
-------
y: number
Function value.
Examples
--------
> var y = {{alias}}( 1.1 )
~10.584
> y = {{alias}}( -4.0 )... | Rename parameter, remove ASCII equation, and update example | Rename parameter, remove ASCII equation, and update example
| Text | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | text | ## Code Before:
{{alias}}( x )
Evaluates the Riemann zeta function as a function of a real variable `s`
(i.e., `t = 0`).
The Riemann zeta function is the analytic continuation of the infinite
series
__ oo 1
zeta(s) = \ -----
/__ k = 1 s
... |
dae06edc35abb18aea05d2d6e24bb44977301dd3 | lib/git_release_notes/cli.rb | lib/git_release_notes/cli.rb | require "thor"
module GitReleaseNotes
class CLI < Thor
include Thor::Actions
desc "html", "Generates a HTML release notes document"
method_option :from, type: :string, required: true, aliases: "-f"
method_option :to, type: :string, required: true, aliases: "-t"
method_option :git_web_url, type: :... | require "thor"
module GitReleaseNotes
class CLI < Thor
include Thor::Actions
desc "html", "Generates an HTML release notes document showing all commits between two refs\n" +
"including commits within submodules"
method_option :from,
desc: "SHA, tag, or other tree-ish reference for the start of th... | Improve usage, and make github.com/cloudfoundry/cf-release default web URL | Improve usage, and make github.com/cloudfoundry/cf-release default web URL
| Ruby | mit | cloudfoundry/git-release-notes,cloudfoundry/git-release-notes | ruby | ## Code Before:
require "thor"
module GitReleaseNotes
class CLI < Thor
include Thor::Actions
desc "html", "Generates a HTML release notes document"
method_option :from, type: :string, required: true, aliases: "-f"
method_option :to, type: :string, required: true, aliases: "-t"
method_option :git_... |
1b6111755eed270dda4fd5e33afb24522465ba0d | resources/styles/services/windowService.css | resources/styles/services/windowService.css | .l-popup {
height: 600px;
width: 700px;
max-width: 80%;
max-height: 80%;
min-height: 300px;
margin: auto;
padding: 20px 30px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #fff;
}
.fadingPanel {
background-color: #023f67;
... | .l-popup {
height: 600px;
width: 700px;
max-width: 80%;
max-height: 80%;
min-height: 300px;
margin: auto;
padding: 20px 30px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #fff;
}
.fadingPanel {
background-color: #023f67;
... | Add transition to fading mask. | Add transition to fading mask.
| CSS | mit | comindware/core-ui,comindware/core-ui,comindware/core-ui,comindware/core-ui | css | ## Code Before:
.l-popup {
height: 600px;
width: 700px;
max-width: 80%;
max-height: 80%;
min-height: 300px;
margin: auto;
padding: 20px 30px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #fff;
}
.fadingPanel {
background-color: #023f67;
... |
4c218793f11a73662f47db0b9b543f6f8fc12238 | web_external/templates/body/listingPage.jade | web_external/templates/body/listingPage.jade | .isic-listing-header
.isic-listing-title
h2
block title
= title
h4
if loaded
if models.length === 0
| (no items)
else if models.length === 1
| 1 item
else
= models.length + ' items'
else
.isic-listing-loading-animation-con... | .isic-listing-header
.isic-listing-title
h2
block title
= title
h4
if loaded
if models.length === 0
| (no items)
else if models.length === 1
| 1 item
else
= models.length + ' items'
else
.isic-listing-loading-animation-con... | Allow templates to customize listing page heading | Allow templates to customize listing page heading
| Jade | apache-2.0 | ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive | jade | ## Code Before:
.isic-listing-header
.isic-listing-title
h2
block title
= title
h4
if loaded
if models.length === 0
| (no items)
else if models.length === 1
| 1 item
else
= models.length + ' items'
else
.isic-listing-loadi... |
5fdaab3a80bd031851fa030112e704fae7c4971a | .travis.yml | .travis.yml | language: go
go:
- 1.3
before_install:
- sudo pip install codecov
install:
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/smartystreets/goconvey
- go get ./...
script:
- go test -v -coverprofile=coverage.txt -covermode=count
after_success:
- codecov
env:
- TEST_PARSE_APPLICATION_ID=ABn7cwPXMCDU6eAy8w... | language: go
go:
- 1.4.1
env:
global:
- TEST_PARSE_APPLICATION_ID=ABn7cwPXMCDU6eAy8wLIMRRwww73OGG7e8fQ3EKu
- TEST_PARSE_REST_API_KEY=6eRwDWn5qnLEMd1V5xvDBxRq4QlXbBin78TSWpnK
- secure: RUZJ39ewNwMP/XCyygTeByd6boi5jGprA9++6yIuM7Q0bX0tz5uCO95wpq3a7TX0rMgg07TLUUz58w+Twkc0vThLnZnuGRFAaBeE+lzGEUjlHyimWTZHPz... | Add secure key for Parse | Add secure key for Parse
| YAML | mit | dogenzaka/goparse,suzujun/goparse | yaml | ## Code Before:
language: go
go:
- 1.3
before_install:
- sudo pip install codecov
install:
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/smartystreets/goconvey
- go get ./...
script:
- go test -v -coverprofile=coverage.txt -covermode=count
after_success:
- codecov
env:
- TEST_PARSE_APPLICATION_ID=AB... |
1fbf7513c94fa3f7466ecba2256a276455b7ab0b | src/plugins/system.js | src/plugins/system.js | export default function systemPlugin () {
return (mp) => {
function onMessage (text) {
mp.emit('systemMessage', text)
}
mp.on('connected', () => {
mp.ws.on('plugMessage', onMessage)
})
}
}
| export default function systemPlugin () {
return (mp) => {
function onMessage (text) {
mp.emit('systemMessage', text)
}
function onMaintenanceAlert (minutesLeft) {
mp.emit('maintenanceAlert', minutesLeft)
}
function onMaintenance () {
mp.emit('maintenance')
}
mp.on('co... | Implement `maintenance` and `maintenanceAlert` events. | Implement `maintenance` and `maintenanceAlert` events.
| JavaScript | mit | goto-bus-stop/miniplug | javascript | ## Code Before:
export default function systemPlugin () {
return (mp) => {
function onMessage (text) {
mp.emit('systemMessage', text)
}
mp.on('connected', () => {
mp.ws.on('plugMessage', onMessage)
})
}
}
## Instruction:
Implement `maintenance` and `maintenanceAlert` events.
## Code A... |
a06739083e48bdc11823e5299823aefc54c5501f | lib/fog/google/models/compute/images.rb | lib/fog/google/models/compute/images.rb | require 'fog/core/collection'
require 'fog/google/models/compute/image'
module Fog
module Compute
class Google
class Images < Fog::Collection
model Fog::Compute::Google::Image
GLOBAL_PROJECTS = [ 'google',
'debian-cloud',
'centos-cl... | require 'fog/core/collection'
require 'fog/google/models/compute/image'
module Fog
module Compute
class Google
class Images < Fog::Collection
model Fog::Compute::Google::Image
GLOBAL_PROJECTS = [ 'google',
'debian-cloud',
'centos-cl... | Add rhel-cloud to project search list | [google][compute] Add rhel-cloud to project search list
| Ruby | mit | github/fog,NETWAYS/fog,ack/fog,covario-cdiaz/fog,sapcc/fog,surminus/fog,bryanl/fog,martinb3/fog,brandondunne/fog,dhague/fog,b0ric/fog,brilliomsinterop/fog,MSOpenTech/fog,lwander/fog,mavenlink/fog,yyuu/fog,unorthodoxgeek/fog,phillbaker/fog,eLobato/fog,petems/fog,phillbaker/fog,pravi/fog,joshmyers/fog,covario-cdiaz/fog,M... | ruby | ## Code Before:
require 'fog/core/collection'
require 'fog/google/models/compute/image'
module Fog
module Compute
class Google
class Images < Fog::Collection
model Fog::Compute::Google::Image
GLOBAL_PROJECTS = [ 'google',
'debian-cloud',
... |
427a4e5669781af0ee66e3c61414bc9d74510ae8 | src/main/java/net/techcable/jstruct/JStruct.java | src/main/java/net/techcable/jstruct/JStruct.java | package net.techcable.jstruct;
/**
* All classes annotated with this field will be <href a=https://wikipedia.org/wiki/PassByValue>pass by value</href>
* <p/>
* In order to preserve the contract of objects in the java language, JStructs can only have final fields.
* Otherwise modifications to a JStruct would not be... | package net.techcable.jstruct;
/**
* All classes annotated with this field will be <href a=https://wikipedia.org/wiki/PassByValue>pass by value</href>
* <p/>
* In order to preserve the contract of objects in the java language, JStructs can only have final fields.
* Otherwise modifications to a JStruct would not be... | Remove some in completed documentation. | Remove some in completed documentation.
Fixes #1 | Java | mit | Techcable/JStruct | java | ## Code Before:
package net.techcable.jstruct;
/**
* All classes annotated with this field will be <href a=https://wikipedia.org/wiki/PassByValue>pass by value</href>
* <p/>
* In order to preserve the contract of objects in the java language, JStructs can only have final fields.
* Otherwise modifications to a JStr... |
b4bb6ffbe4d5836f2513d02b7d70734664988674 | scripts/bootstrap.sh | scripts/bootstrap.sh |
git submodule update --init --recursive
if [[ ! "$(type -p lessc)" ]]; then
printf "\e[0;32mlessc not found! less must be installed and lessc on your path to build socorro.\e[0m\n" && exit 1
fi
if [ ! -d "$VIRTUAL_ENV" ]; then
virtualenv -p python2.6 ${PWD}/socorro-virtualenv
source ${PWD}/socorro-virtua... |
export VIRTUAL_ENV=${VIRTUAL_ENV:-"$PWD/socorro-virtualenv"}
git submodule update --init --recursive
if [[ ! "$(type -p lessc)" ]]; then
printf "\e[0;32mlessc not found! less must be installed and lessc on your path to build socorro.\e[0m\n" && exit 1
fi
if [ ! -d "$VIRTUAL_ENV" ]; then
virtualenv -p python... | Set a default for VIRTUAL_ENV | Set a default for VIRTUAL_ENV
| Shell | mpl-2.0 | luser/socorro,linearregression/socorro,lonnen/socorro,KaiRo-at/socorro,linearregression/socorro,Tayamarn/socorro,lonnen/socorro,spthaolt/socorro,cliqz/socorro,rhelmer/socorro,spthaolt/socorro,yglazko/socorro,m8ttyB/socorro,Tchanders/socorro,KaiRo-at/socorro,adngdb/socorro,m8ttyB/socorro,Tchanders/socorro,twobraids/soco... | shell | ## Code Before:
git submodule update --init --recursive
if [[ ! "$(type -p lessc)" ]]; then
printf "\e[0;32mlessc not found! less must be installed and lessc on your path to build socorro.\e[0m\n" && exit 1
fi
if [ ! -d "$VIRTUAL_ENV" ]; then
virtualenv -p python2.6 ${PWD}/socorro-virtualenv
source ${PWD... |
413146be21307805c67d982f77ceeb3f760b38ad | recipes-multimedia/libdce/libdce_3.00.12.00.bb | recipes-multimedia/libdce/libdce_3.00.12.00.bb | DESCRIPTION = "Library used for remotely invoking the hw accelerated codec on IVA-HD"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
inherit autotools pkgconfig
DEPENDS = "libdrm ti-ipc"
SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
... | DESCRIPTION = "Library used for remotely invoking the hw accelerated codec on IVA-HD"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
inherit autotools pkgconfig
DEPENDS = "libdrm ti-ipc"
SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
... | Update SRCREV add MJPEG Encoder support | libdce: Update SRCREV add MJPEG Encoder support
Signed-off-by: Karthik Ramanan <6de1dcae9ab07cd18361f3588c5fcaba210b4a8e@ti.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>
| BitBake | mit | rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti,rcn-ee/meta-ti | bitbake | ## Code Before:
DESCRIPTION = "Library used for remotely invoking the hw accelerated codec on IVA-HD"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
inherit autotools pkgconfig
DEPENDS = "libdrm ti-ipc"
SRC_URI = "git://git.omapzoom.org/repo/libdce.gi... |
e9ac9dbb5e454f09e7bc798718de1101448ec812 | data/main_topics.json | data/main_topics.json | [
{ "title": "Culture", "url": "culture" },
{ "title": "Economie & Travail", "url": "economie-travail" },
{ "title": "Éducation & Recherche", "url": "education-et-recherche" },
{ "title": "État, Europe & International", "url": "etat-europe-et-international" },
{ "title": "Habitat & Écologie", "url":... | [
{ "title": "Culture", "url": "{group}/culture" },
{ "title": "Economie & Travail", "url": "{group}/economie-travail" },
{ "title": "Éducation & Recherche", "url": "{group}/education-et-recherche" },
{ "title": "État, Europe & International", "url": "{group}/etat-europe-et-international" },
{ "titl... | Include url prefix (either {group} or {wiki} | Include url prefix (either {group} or {wiki}
| JSON | agpl-3.0 | etalab/etalab-assets | json | ## Code Before:
[
{ "title": "Culture", "url": "culture" },
{ "title": "Economie & Travail", "url": "economie-travail" },
{ "title": "Éducation & Recherche", "url": "education-et-recherche" },
{ "title": "État, Europe & International", "url": "etat-europe-et-international" },
{ "title": "Habitat & É... |
6ccd4bc210966fd4347082c419109678e14d5a92 | blender/CMakeLists.txt | blender/CMakeLists.txt |
set(INC
../render
../device
../kernel
../kernel/svm
../util
../subd
../../guardedalloc
../../mikktspace
../../../source/blender/makesdna
../../../source/blender/makesrna
../../../source/blender/blenlib
${CMAKE_BINARY_DIR}/source/blender/makesrna/intern
)
set(INC_SYS
${PYTHON_INCLUDE_DIRS}
${GLEW_INCLUDE... |
set(INC
../render
../device
../kernel
../kernel/svm
../util
../subd
../../guardedalloc
../../mikktspace
../../../source/blender/makesdna
../../../source/blender/makesrna
../../../source/blender/blenlib
${CMAKE_BINARY_DIR}/source/blender/makesrna/intern
)
set(INC_SYS
${PYTHON_INCLUDE_DIRS}
${GLEW_INCLUDE... | Add GLEW_STATIC definition for CMake as well. | Add GLEW_STATIC definition for CMake as well.
| Text | apache-2.0 | tangent-opensource/coreBlackbird,pyrochlore/cycles,pyrochlore/cycles,pyrochlore/cycles,tangent-opensource/coreBlackbird,tangent-opensource/coreBlackbird | text | ## Code Before:
set(INC
../render
../device
../kernel
../kernel/svm
../util
../subd
../../guardedalloc
../../mikktspace
../../../source/blender/makesdna
../../../source/blender/makesrna
../../../source/blender/blenlib
${CMAKE_BINARY_DIR}/source/blender/makesrna/intern
)
set(INC_SYS
${PYTHON_INCLUDE_DIRS}... |
fe1ea08a709a290702b9a252a37b999b2dac1063 | app/views/course/assessment/question/programming/_form_test_cases.html.slim | app/views/course/assessment/question/programming/_form_test_cases.html.slim | - public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)
h2 = t('.test_cases')
table.table.table-striped.table-hover
thead
tr
th = t('.identifier')
th = t('.expression')
th ... | - public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)
h2 = t('.test_cases')
table.table.table-striped.table-hover
thead
tr
th = t('.identifier')
th = t('.expression')
th ... | Apply expected div to test case question form. | Apply expected div to test case question form.
Allows the expected value of the test cases on the question edit form
to be shortened.
| Slim | mit | Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2 | slim | ## Code Before:
- public_test_cases = test_cases.select(&:public_test?)
- private_test_cases = test_cases.select(&:private_test?)
- evaluation_test_cases = test_cases.select(&:evaluation_test?)
h2 = t('.test_cases')
table.table.table-striped.table-hover
thead
tr
th = t('.identifier')
th = t('.expres... |
12fc327a90f7ff6dcb372728270a6275215bb52a | gulpfile.js | gulpfile.js | var gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
jasmine = require('gulp-jasmine'),
jshint = require('gulp-jshint'),
plumber = require('gulp-plumber');
var paths = {
src: ['index.js'],
test: ['spec/**/*.spec.js'],
coverage: './coverage'
};
gulp.task('lint', function() {
return ... | var gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
jasmine = require('gulp-jasmine'),
jshint = require('gulp-jshint'),
plumber = require('gulp-plumber');
var paths = {
src: ['index.js'],
test: ['spec/**/*.spec.js'],
coverage: './coverage'
};
gulp.task('lint', function() {
return ... | Remove task completion callback from the `coverage` task | Remove task completion callback from the `coverage` task
| JavaScript | mit | yuanqing/mitch | javascript | ## Code Before:
var gulp = require('gulp'),
istanbul = require('gulp-istanbul'),
jasmine = require('gulp-jasmine'),
jshint = require('gulp-jshint'),
plumber = require('gulp-plumber');
var paths = {
src: ['index.js'],
test: ['spec/**/*.spec.js'],
coverage: './coverage'
};
gulp.task('lint', functi... |
463359038908a85f8624483473b29fe720050c06 | lib/markdown.js | lib/markdown.js | /* globals atom:false */
'use strict';
exports.provideBuilder = function () {
return {
niceName: 'Markdown',
isEligable: function () {
var textEditor = atom.workspace.getActiveTextEditor();
if (!textEditor || !textEditor.getPath()) {
return false;
}
var path = textEditor.get... | /* globals atom:false */
'use strict';
exports.provideBuilder = function () {
return {
niceName: 'Markdown',
isEligable: function () {
var textEditor = atom.workspace.getActiveTextEditor();
if (!textEditor || !textEditor.getPath()) {
return false;
}
var path = textEditor.get... | Use `open` to find Marked.app, because of path problems finding the `mark` command. | Use `open` to find Marked.app, because of path problems finding the `mark` command. | JavaScript | mpl-2.0 | bwinton/atom-build-markdown | javascript | ## Code Before:
/* globals atom:false */
'use strict';
exports.provideBuilder = function () {
return {
niceName: 'Markdown',
isEligable: function () {
var textEditor = atom.workspace.getActiveTextEditor();
if (!textEditor || !textEditor.getPath()) {
return false;
}
var path ... |
e0525e140bddc9f3a4d4071bf725d69260e8ae85 | src/main/java/de/prob2/ui/states/ClassBlacklist.java | src/main/java/de/prob2/ui/states/ClassBlacklist.java | package de.prob2.ui.states;
import java.util.HashSet;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.sun.javafx.collections.ObservableSetWrapper;
import de.prob.model.representation.AbstractElement;
import javafx.collections.ObservableSet;
@Singleton
public class ClassBlacklist {
p... | package de.prob2.ui.states;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import de.prob.model.representation.AbstractElement;
import javafx.collections.FXCollections;
import javafx.collections.ObservableSet;
@Singleton
public final class ClassBlacklist {
private final ObservableSet<Class<? ex... | Replace use of com.sun ObservableSetWrapper with FXCollections | Replace use of com.sun ObservableSetWrapper with FXCollections
| Java | epl-1.0 | bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui,bendisposto/prob2-ui | java | ## Code Before:
package de.prob2.ui.states;
import java.util.HashSet;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.sun.javafx.collections.ObservableSetWrapper;
import de.prob.model.representation.AbstractElement;
import javafx.collections.ObservableSet;
@Singleton
public class Cla... |
49ad1e4378f81738f8ed59ab94dc603c4d5c1938 | webpack.config.js | webpack.config.js | const path = require("path");
module.exports = {
entry: path.resolve(__dirname, "./source/index.js"),
externals: {
buttercup: "buttercup"
},
module: {
rules : [
{
test: /\.(js|esm)$/,
use: {
loader: "babel-loader",
... | const path = require("path");
module.exports = {
entry: path.resolve(__dirname, "./source/index.js"),
externals: {
argon2: "argon2",
buttercup: "buttercup",
kdbxweb: "kdbxweb"
},
module: {
rules : [
{
test: /\.(js|esm)$/,
use... | Split dependencies out in webpack to reduce bundle size | Split dependencies out in webpack to reduce bundle size
| JavaScript | mit | perry-mitchell/buttercup-importer | javascript | ## Code Before:
const path = require("path");
module.exports = {
entry: path.resolve(__dirname, "./source/index.js"),
externals: {
buttercup: "buttercup"
},
module: {
rules : [
{
test: /\.(js|esm)$/,
use: {
loader: "babel... |
2210f88687219f2b5d1d92731d6a7aaa9ba25c8b | _layouts/post.html | _layouts/post.html | ---
layout: default
---
<article class="post">
<h1 class="post-title">{{ page.title }}</h1>
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
{{ content }}
</article>
{% include comments.html %}
| ---
layout: default
---
<article class="post">
<h1 class="post-title">{{ page.title }}</h1>
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
{{ content }}
</article>
<div id="page-navigation">
<div class="clear"> </div>
<div cl... | Add next and previous links | Add next and previous links | HTML | mit | reducingwip/reducingwip.github.io,reducingwip/reducingwip.github.io | html | ## Code Before:
---
layout: default
---
<article class="post">
<h1 class="post-title">{{ page.title }}</h1>
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
{{ content }}
</article>
{% include comments.html %}
## Instruction:
Add next and previous l... |
2c53233bfe77601c6fc0a4a50226d5641709863a | lib/data_mapper/relationship/one_to_many.rb | lib/data_mapper/relationship/one_to_many.rb | module DataMapper
class Relationship
class OneToMany < self
module Iterator
# Iterate over the loaded domain objects
#
# TODO: refactor this and add support for multi-include
#
# @see Mapper::Relation#each
#
# @example
#
# DataMapp... | module DataMapper
class Relationship
class OneToMany < self
# Returns if the relationship has collection target
#
# @return [Boolean]
#
# @api private
def collection_target?
true
end
# @see Options#default_source_key
#
def default_source_key
... | Remove Iterator from OneToMany since it was moved to a separate file | Remove Iterator from OneToMany since it was moved to a separate file
| Ruby | mit | cored/rom,pvcarrera/rom,denyago/rom,endash/rom,pdswan/rom,dcarral/rom,pxlpnk/rom,dekz/rom,rom-rb/rom,rom-rb/rom,Snuff/rom,jeremyf/rom,vrish88/rom,kwando/rom,rom-rb/rom | ruby | ## Code Before:
module DataMapper
class Relationship
class OneToMany < self
module Iterator
# Iterate over the loaded domain objects
#
# TODO: refactor this and add support for multi-include
#
# @see Mapper::Relation#each
#
# @example
#
... |
0d815d9386dce4406bff727fe8f9b82f247485aa | config/passport-jwt-config.js | config/passport-jwt-config.js | 'use strict';
const Passport = require('passport');
const JwtStrategy = require('passport-jwt').Strategy;
const ExtractJwt = require('passport-jwt').ExtractJwt;
const SecurityConfig = require('./security-config');
const User = require('../models/user');
const CustomErrors = require('../helpers/custom-errors');
module... | 'use strict';
const Passport = require('passport');
const JwtStrategy = require('passport-jwt').Strategy;
const ExtractJwt = require('passport-jwt').ExtractJwt;
const SecurityConfig = require('./security-config');
const User = require('../models/user');
module.exports = function() {
const opts = {};
opts.jwtF... | Remove useless CustomErrors from passport config | Remove useless CustomErrors from passport config
| JavaScript | mit | IlalaSwinGolf/sg_api | javascript | ## Code Before:
'use strict';
const Passport = require('passport');
const JwtStrategy = require('passport-jwt').Strategy;
const ExtractJwt = require('passport-jwt').ExtractJwt;
const SecurityConfig = require('./security-config');
const User = require('../models/user');
const CustomErrors = require('../helpers/custom-e... |
34c257a9053fb68677a94ba0dcbbe99838379844 | db/migrate/20101108134714_add_generation_to_stops.rb | db/migrate/20101108134714_add_generation_to_stops.rb | class AddGenerationToStops < ActiveRecord::Migration
def self.up
add_column :stops, :generation_high, :integer
add_column :stops, :generation_low, :integer
end
def self.down
remove_column :stops, :generation
end
end
| class AddGenerationToStops < ActiveRecord::Migration
def self.up
add_column :stops, :generation_high, :integer
add_column :stops, :generation_low, :integer
end
def self.down
remove_column :stops, :generation_low
remove_column :stops, :generation_high
end
end
| Fix down method to match up. | Fix down method to match up.
| Ruby | agpl-3.0 | mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport,mysociety/fixmytransport | ruby | ## Code Before:
class AddGenerationToStops < ActiveRecord::Migration
def self.up
add_column :stops, :generation_high, :integer
add_column :stops, :generation_low, :integer
end
def self.down
remove_column :stops, :generation
end
end
## Instruction:
Fix down method to match up.
## Code After:
class... |
bd50f1db3fc4a8da919a9ff52eac4f32ec9ec966 | components/font_icon/index.jsx | components/font_icon/index.jsx | /* global React */
import { addons } from 'react/addons';
import style from './style';
import CSSModules from 'react-css-modules';
const FontIcon = React.createClass({
mixins: [addons.PureRenderMixin],
displayName: 'FontIcon',
propTypes: {
className: React.PropTypes.string,
value: React.PropTypes.stri... | /* global React */
import { addons } from 'react/addons';
import style from './style';
export default React.createClass({
mixins: [addons.PureRenderMixin],
displayName: 'FontIcon',
propTypes: {
className: React.PropTypes.string,
value: React.PropTypes.string
},
getDefaultProps () {
return {
... | Remove react css modules from font ico | Remove react css modules from font ico
| JSX | mit | jasonleibowitz/react-toolbox,showings/react-toolbox,showings/react-toolbox,KerenChandran/react-toolbox,rubenmoya/react-toolbox,rubenmoya/react-toolbox,react-toolbox/react-toolbox,react-toolbox/react-toolbox,jasonleibowitz/react-toolbox,Magneticmagnum/react-atlas,rubenmoya/react-toolbox,react-toolbox/react-toolbox,soyja... | jsx | ## Code Before:
/* global React */
import { addons } from 'react/addons';
import style from './style';
import CSSModules from 'react-css-modules';
const FontIcon = React.createClass({
mixins: [addons.PureRenderMixin],
displayName: 'FontIcon',
propTypes: {
className: React.PropTypes.string,
value: Reac... |
c774414e1486450a965dee7c1dd2e40f1cd6cf15 | appveyor.yml | appveyor.yml | version: 1.0.{build}+{branch}
branches:
except:
- gh-pages
image: Visual Studio 2017
before_build:
- nuget restore
- npm install
| version: 1.0.{build}+{branch}
branches:
except:
- gh-pages
image: Visual Studio 2017
before_build:
- nuget restore
- cd "src/seriView" && npm install
| Change Path for npm install | Change Path for npm install
| YAML | mit | SebastianLng/SerilogMSSqlLogViewer,SebastianLng/SerilogMSSqlLogViewer,SebastianLng/SerilogMSSqlLogViewer | yaml | ## Code Before:
version: 1.0.{build}+{branch}
branches:
except:
- gh-pages
image: Visual Studio 2017
before_build:
- nuget restore
- npm install
## Instruction:
Change Path for npm install
## Code After:
version: 1.0.{build}+{branch}
branches:
except:
- gh-pages
image: Visual Studio 2017
before_buil... |
906d60089dbe6b263ae55d91ba73d6b6e41ebbb5 | api/admin.py | api/admin.py | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_interface", "... | from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences, HelpLink
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_beta_int... | Add entire in Admin for managing HelpLink | Add entire in Admin for managing HelpLink
An admin can _only_ modify the hyperlink associated with a HelpLink.
As a consequence, you cannot add new instances of the model nor delete
them. Only the existing HelpLinks can be modified because their
inclusion (or existence) is dependent upon the usage within the UI.
If ... | Python | apache-2.0 | CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend | python | ## Code Before:
from django.contrib import admin
from .models import MaintenanceRecord, UserPreferences
@admin.register(UserPreferences)
class UserPreferencesAdmin(admin.ModelAdmin):
list_display = ["user", "show_beta_interface", "airport_ui", "created_date", "modified_date"]
list_filter = [
"show_be... |
b541846e3bf608cd17b596be05bf6b62c93c94ec | src/themes/apex/toolgroups/MenuToolgroup.less | src/themes/apex/toolgroups/MenuToolgroup.less | .oo-ui-menuToolGroup {
border-color: rgba(0,0,0,0.1);
&.oo-ui-widget-enabled {
&:hover {
border-color: rgba(0,0,0,0.2);
}
}
&.oo-ui-popupToolGroup-active {
border-color: rgba(0,0,0,0.25);
}
.oo-ui-tool {
&.oo-ui-widget-enabled {
&:hover {
background-color: #e1f3ff;
}
}
&.oo-ui-widget-... | .oo-ui-menuToolGroup {
border-color: rgba(0,0,0,0.1);
&.oo-ui-widget-enabled {
&:hover {
border-color: rgba(0,0,0,0.2);
}
}
&.oo-ui-popupToolGroup-active {
border-color: rgba(0,0,0,0.25);
}
.oo-ui-tool {
&.oo-ui-widget-enabled {
&:hover {
background-color: #e1f3ff;
}
}
&.oo-ui-widget-... | Remove grey background from disabled MenuToolgrop in apex | Remove grey background from disabled MenuToolgrop in apex
Also use transparency on border, like enabled state.
Change-Id: I7bd77de49745fc54568810fe1a9cefa942805fb6
| Less | mit | wikimedia/oojs-ui,wikimedia/oojs-ui,wikimedia/oojs-ui,wikimedia/oojs-ui | less | ## Code Before:
.oo-ui-menuToolGroup {
border-color: rgba(0,0,0,0.1);
&.oo-ui-widget-enabled {
&:hover {
border-color: rgba(0,0,0,0.2);
}
}
&.oo-ui-popupToolGroup-active {
border-color: rgba(0,0,0,0.25);
}
.oo-ui-tool {
&.oo-ui-widget-enabled {
&:hover {
background-color: #e1f3ff;
}
}
... |
b6f361870410774ff41f7de25fa9a2e1e637f0ca | tenets/codelingo/code-review-comments/context-first-arg/codelingo.yaml | tenets/codelingo/code-review-comments/context-first-arg/codelingo.yaml | tenets:
- name: context-first-arg
flows:
codelingo/docs:
title: Context as First Argument
body: |
Values of the context.Context type carry security credentials, tracing information,
deadlines, and cancellation signals across API and process boundaries. Go programs
... | tenets:
- name: context-first-arg
flows:
codelingo/docs:
title: Context as First Argument
body: |
Values of the context.Context type carry security credentials, tracing information,
deadlines, and cancellation signals across API and process boundaries. Go programs
... | Exclude first param in list as it is valid | Exclude first param in list as it is valid
| YAML | agpl-3.0 | lingo-reviews/lingo,lingo-reviews/lingo | yaml | ## Code Before:
tenets:
- name: context-first-arg
flows:
codelingo/docs:
title: Context as First Argument
body: |
Values of the context.Context type carry security credentials, tracing information,
deadlines, and cancellation signals across API and process boundaries. Go... |
6ccec05a0ae4d6e0c65d8791ed6666a4c559446e | angularjs-rails.gemspec | angularjs-rails.gemspec | require File.expand_path('../lib/angularjs-rails/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'angularjs-rails'
s.version = AngularJS::Rails::VERSION
s.date = '2013-09-06'
s.summary = 'Angular.js on Rails'
s.description = 'Injects Angular.js into your asset pipeline as well as other Angular mo... | require File.expand_path('../lib/angularjs-rails/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'angularjs-rails'
s.version = AngularJS::Rails::VERSION
s.date = '2013-09-06'
s.summary = 'Angular.js on Rails'
s.description = 'Injects Angular.js into your asset pipeline as well as other Angular mo... | Add forgotten dev dependency. Needed for updater to work. | Add forgotten dev dependency. Needed for updater to work.
| Ruby | mit | jedisct1/angularjs-rails,hiravgandhi/angularjs-rails,nbrookie/angularjs-rails | ruby | ## Code Before:
require File.expand_path('../lib/angularjs-rails/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'angularjs-rails'
s.version = AngularJS::Rails::VERSION
s.date = '2013-09-06'
s.summary = 'Angular.js on Rails'
s.description = 'Injects Angular.js into your asset pipeline as well as ... |
6805b5e5d39b2d0268690817ad65ac0d9451c0bc | tool/_upversion.sh | tool/_upversion.sh |
MAJOR=$1
MINOR=$2
PATCH=$3
HOTFIX=$4
cd $OLDPWD "$(dirname "${BASH_SOURCE}")"
readonly CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
readonly SERVER_ALIAS="origin"
if [[ "$CURRENT_BRANCH" != "master" ]]; then
>&2 echo "Update version is available only for master branch."
exit 1
fi
current_version=`sh ve... |
MAJOR=$1
MINOR=$2
PATCH=$3
HOTFIX=$4
cd $OLDPWD "$(dirname "${BASH_SOURCE}")"
readonly CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
readonly SERVER_ALIAS="origin"
if [[ "$CURRENT_BRANCH" != "master" ]]; then
>&2 echo "Update version is available only for master branch."
exit 1
fi
current_version=`sh ve... | Fix stdout message on up version | Fix stdout message on up version
| Shell | bsd-3-clause | AndyTyurin/ose,AndyTyurin/ose,AndyTyurin/ose | shell | ## Code Before:
MAJOR=$1
MINOR=$2
PATCH=$3
HOTFIX=$4
cd $OLDPWD "$(dirname "${BASH_SOURCE}")"
readonly CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
readonly SERVER_ALIAS="origin"
if [[ "$CURRENT_BRANCH" != "master" ]]; then
>&2 echo "Update version is available only for master branch."
exit 1
fi
curren... |
56415d857b49a427736679050a0b59cddbbfb65f | index.js | index.js | 'use strict'
const driver = require('node-phantom-simple')
function genPromiseFunc(originalFunc) {
return function () {
const _args = Array.prototype.slice.call(arguments)
const _this = this
return new Promise(function (resolve, reject) {
_args.push(function () {
const _args2 = Array.prot... | 'use strict'
const driver = require('node-phantom-simple')
function genPromiseFunc(originalFunc) {
return function () {
const _args = Array.prototype.slice.call(arguments)
const _this = this
return new Promise(function (resolve, reject) {
_args.push(function () {
const _args2 = Array.prot... | Use module.exports instead of return | Use module.exports instead of return
| JavaScript | mit | foray1010/node-phantom-promise | javascript | ## Code Before:
'use strict'
const driver = require('node-phantom-simple')
function genPromiseFunc(originalFunc) {
return function () {
const _args = Array.prototype.slice.call(arguments)
const _this = this
return new Promise(function (resolve, reject) {
_args.push(function () {
const _ar... |
1ee42d314c26c5d5f25146ecb2979f19e3b5cc5e | templates/blog/_post_tags.html.twig | templates/blog/_post_tags.html.twig | {% if not post.tags.empty %}
<p class="post-tags">
{% for tag in post.tags %}
<a href="{{ path('blog_index', {'tag': tag.name}) }}"
class="label label-{{ tag.name == app.request.query.get('tag') ? 'success' : 'default' }}"
>
<i class="fa fa-tag"></i> {{... | {% if not post.tags.empty %}
<p class="post-tags">
{% for tag in post.tags %}
<a href="{{ path('blog_index', {'tag': tag.name == app.request.query.get('tag') ? null : tag.name}) }}"
class="label label-{{ tag.name == app.request.query.get('tag') ? 'success' : 'default' }}"
... | Reset tag filter if it's link was clicked again | Reset tag filter if it's link was clicked again
| Twig | mit | TomasVotruba/symfony-demo,javiereguiluz/symfony-demo,symfony/symfony-demo,Codeception/symfony-demo,javiereguiluz/symfony-demo,Codeception/symfony-demo,voronkovich/symfony-demo,symfony/symfony-demo,javiereguiluz/symfony-demo,voronkovich/symfony-demo,yceruto/symfony-demo,Codeception/symfony-demo,yceruto/symfony-demo,boch... | twig | ## Code Before:
{% if not post.tags.empty %}
<p class="post-tags">
{% for tag in post.tags %}
<a href="{{ path('blog_index', {'tag': tag.name}) }}"
class="label label-{{ tag.name == app.request.query.get('tag') ? 'success' : 'default' }}"
>
<i class="fa... |
774fb9f3a435a2e28c29237bfc743d59f7b7d881 | setup/setup_dotfiles.sh | setup/setup_dotfiles.sh |
set -u
BASH_ALIASES=~/.bash_aliases
if [ ! -f $BASH_ALIASES ]; then
cat > $BASH_ALIASES <<EOF
alias ll='ls -l'
alias lla='ls -la'
alias la='ls -A'
alias l='ls -CF'
alias rt='ls -lsrta'
CDPATH="."
for dir in \\
/home/pi/ \\
/home/pi/develop \\
/home/pi/develop/raspi_code/ \\
/home/pi/develop/rasp... |
set -u
# to force this script to run:
# \rm ~/.bash_aliases
# ./setup_dotfiles.sh
# . ~/.bash_aliases
BASH_ALIASES=~/.bash_aliases
if [ ! -f $BASH_ALIASES ]; then
cat > $BASH_ALIASES <<EOF
alias ll='ls -l'
alias lla='ls -la'
alias la='ls -A'
alias l='ls -CF'
alias rt='ls -lsrta'
alias gstat='for dir in *... | Add some git aliases and some comments | Add some git aliases and some comments
| Shell | mit | claremacrae/raspi_code,claremacrae/raspi_code,claremacrae/raspi_code | shell | ## Code Before:
set -u
BASH_ALIASES=~/.bash_aliases
if [ ! -f $BASH_ALIASES ]; then
cat > $BASH_ALIASES <<EOF
alias ll='ls -l'
alias lla='ls -la'
alias la='ls -A'
alias l='ls -CF'
alias rt='ls -lsrta'
CDPATH="."
for dir in \\
/home/pi/ \\
/home/pi/develop \\
/home/pi/develop/raspi_code/ \\
/home... |
a41c8b8f9d3901e8d2794981c6cec050bf086e92 | conjureup/controllers/clouds/common.py | conjureup/controllers/clouds/common.py | import asyncio
from juju.utils import run_with_interrupt
from conjureup import events
from conjureup.models.provider import LocalhostError, LocalhostJSONError
class BaseCloudController:
cancel_monitor = asyncio.Event()
async def _monitor_localhost(self, provider, cb):
""" Checks that localhost/lxd... | import asyncio
from juju.utils import run_with_interrupt
from conjureup import events
from conjureup.models.provider import LocalhostError, LocalhostJSONError
class BaseCloudController:
cancel_monitor = asyncio.Event()
async def _monitor_localhost(self, provider, cb):
""" Checks that localhost/lxd... | Make sure _set_lxd_dir_env is always called in monitor loop | Make sure _set_lxd_dir_env is always called in monitor loop
Signed-off-by: Adam Stokes <49c255c1d074742f60d19fdba5e2aa5a34add567@users.noreply.github.com>
| Python | mit | Ubuntu-Solutions-Engineering/conjure,ubuntu/conjure-up,ubuntu/conjure-up,conjure-up/conjure-up,Ubuntu-Solutions-Engineering/conjure,conjure-up/conjure-up | python | ## Code Before:
import asyncio
from juju.utils import run_with_interrupt
from conjureup import events
from conjureup.models.provider import LocalhostError, LocalhostJSONError
class BaseCloudController:
cancel_monitor = asyncio.Event()
async def _monitor_localhost(self, provider, cb):
""" Checks th... |
1f1d294a1a5a467554d873b4c076d79fbf7b42fb | Sources/FluentTester/Tester+InsertAndFind.swift | Sources/FluentTester/Tester+InsertAndFind.swift | extension Tester {
public func testInsertAndFind() throws {
Atom.database = database
try Atom.prepare(database)
defer {
try! Atom.revert(database)
}
let hydrogen = Atom(id: "asdf", name: "Hydrogen", protons: 1, weight: 1.007)
guard hydrogen.exists == fal... | extension Tester {
public func testInsertAndFind() throws {
Atom.database = database
try Atom.prepare(database)
defer {
try! Atom.revert(database)
}
let uuid = UUID()
let hydrogen = Atom(id: Identifier(uuid.uuidString), name: "Hydrogen", protons: 1, weigh... | Use valid UUID for insert-and-fix | Use valid UUID for insert-and-fix
Postgres – unlike MySQL – actually validates the UUIDs sent as values, so the tests of postgresql-driver were silently broken by the Fluent 2.0.1 release. This commit fixes the test by using a valid UUID instead of just `"asdf"`.
I noticed that PG returns UUID fields as all lowerca... | Swift | mit | qutheory/fluent,vapor/fluent | swift | ## Code Before:
extension Tester {
public func testInsertAndFind() throws {
Atom.database = database
try Atom.prepare(database)
defer {
try! Atom.revert(database)
}
let hydrogen = Atom(id: "asdf", name: "Hydrogen", protons: 1, weight: 1.007)
guard hydrog... |
115f43890213cb3ae22e87fed8a30ab724a04c28 | spec/commands/deploy_spec.rb | spec/commands/deploy_spec.rb | describe "Invoking the 'vh' command in a project" do
before :each do
Dir.chdir root('test_env')
end
describe "to do a simulated deploy" do
before :each do
vh 'deploy', 'simulate=1'
end
it "should take care of the lockfile" do
stdout.should =~ /ERROR: another deployment is ongoing/
... | describe "Invoking the 'vh' command in a project" do
before :each do
Dir.chdir root('test_env')
end
describe "to do a simulated deploy" do
before :each do
vh 'deploy', 'simulate=1'
end
it "should take care of the lockfile" do
stdout.should =~ /ERROR: another deployment is ongoing/
... | Update the deploy spec which got outta sync. | Update the deploy spec which got outta sync.
| Ruby | mit | scalp42/mina,Zhomart/mina,dcalixto/mina,flowerett/mina,openaustralia/mina,scalp42/mina,ianks/mina,cyberwolfru/mina,ianks/mina,Zhomart/mina,allantatter/mina,openaustralia/mina,mfinelli/mina,cyberwolfru/mina,chip/mina,mfinelli/mina,estum/mina,allantatter/mina,flowerett/mina,dcalixto/mina,stereodenis/mina,whhx/mina,whhx/m... | ruby | ## Code Before:
describe "Invoking the 'vh' command in a project" do
before :each do
Dir.chdir root('test_env')
end
describe "to do a simulated deploy" do
before :each do
vh 'deploy', 'simulate=1'
end
it "should take care of the lockfile" do
stdout.should =~ /ERROR: another deploymen... |
53de3acce6562e1d48265dcf31ddbac533d4ba3d | rust/core-lib/Cargo.toml | rust/core-lib/Cargo.toml | [package]
name = "xi-core-lib"
version = "0.2.0"
license = "Apache-2.0"
authors = ["Raph Levien <raph@google.com>"]
description = "Library module for xi-core"
repository = "https://github.com/google/xi-editor"
[dependencies]
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
time = "0.1"
xi-rope = { path = "../rop... | [package]
name = "xi-core-lib"
version = "0.2.0"
license = "Apache-2.0"
authors = ["Raph Levien <raph@google.com>"]
description = "Library module for xi-core"
repository = "https://github.com/google/xi-editor"
[dependencies]
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
time = "0.1"
xi-rope = { path = "../rop... | Use new pure Rust syntect config | Use new pure Rust syntect config
Bumps the syntect version so that we can use the new dump-load-rs feature,
avoiding an indirect dependency on miniz-sys, so that we can build on Fuchsia
without any transitive dependencies on C.
| TOML | apache-2.0 | modelorganism/xi-editor,fuchsia-mirror/third_party-xi-editor,google/xi-editor,modelorganism/xi-editor,google/xi-editor,modelorganism/xi-editor,google/xi-editor,fuchsia-mirror/third_party-xi-editor,google/xi-editor,fuchsia-mirror/third_party-xi-editor,fuchsia-mirror/third_party-xi-editor | toml | ## Code Before:
[package]
name = "xi-core-lib"
version = "0.2.0"
license = "Apache-2.0"
authors = ["Raph Levien <raph@google.com>"]
description = "Library module for xi-core"
repository = "https://github.com/google/xi-editor"
[dependencies]
serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
time = "0.1"
xi-rope = ... |
54514ac4146823f16835a914af01c2b55dd7a1cf | src/views/editProfile.blade.php | src/views/editProfile.blade.php |
@extends('panelViews::mainTemplate')
@section('page-wrapper')
@if (!empty($message))
<div class="alert-box success">
<h2>{{ $message }}</h2>
</div>
@endif
<div class="row">
<div class="col-xs-4" >
{!!
Form::model($admin, array( $admin->id))
!!}
{!! Form::label('first_name', \Lang::get('panel:... |
@extends('panelViews::mainTemplate')
@section('page-wrapper')
@if (!empty($message))
<div class="alert-box success">
<h2>{{ $message }}</h2>
</div>
@endif
@if ($demo_status == true)
<h4>You are not allowed to edit the profile in demo version of panel.</h4>
@else
<div class="row">
<div class="co... | Edit Profile feature is removed in demo status. | Edit Profile feature is removed in demo status.
| PHP | mit | serverfireteam/panel,serverfireteam/panel,serverfireteam/panel | php | ## Code Before:
@extends('panelViews::mainTemplate')
@section('page-wrapper')
@if (!empty($message))
<div class="alert-box success">
<h2>{{ $message }}</h2>
</div>
@endif
<div class="row">
<div class="col-xs-4" >
{!!
Form::model($admin, array( $admin->id))
!!}
{!! Form::label('first_name', \L... |
9f7fb134ac04f889a2e6482e0eb6a916b93242df | .zuul.yml | .zuul.yml | ui: tape
browsers:
- name: chrome
version: 34..latest
# - name: safari
# version: latest
# - name: ie
# version: 9..latest
- name: firefox
version: 30..latest
| ui: tape
browsers:
- name: firefox
version: 30..latest
- name: chrome
version: [35,36,beta]
| Fix chrome versions so chrome testing works again | Fix chrome versions so chrome testing works again
| YAML | apache-2.0 | rtc-io/rtc-dcstream | yaml | ## Code Before:
ui: tape
browsers:
- name: chrome
version: 34..latest
# - name: safari
# version: latest
# - name: ie
# version: 9..latest
- name: firefox
version: 30..latest
## Instruction:
Fix chrome versions so chrome testing works again
## Code After:
ui: tape
browsers:
- name: firefo... |
0526df95deb81c409af3b78251b5fd66f3e5c9e9 | config/initializers/s3_direct_upload.rb | config/initializers/s3_direct_upload.rb | S3DirectUpload.config do |c|
c.access_key_id = ENV['AWS_ACCESS_KEY']
c.secret_access_key = ENV['AWS_SECRET_KEY']
c.bucket = ENV['AWS_BUCKET'],
c.region = 'sa-east-1'
c.url = "https://#{ENV['AWS_BUCKET']}.s3.amazonaws.com"
end
| S3DirectUpload.config do |c|
c.access_key_id = ENV['AWS_ACCESS_KEY']
c.secret_access_key = ENV['AWS_SECRET_KEY']
c.bucket = ENV['AWS_BUCKET']
c.region = 'sa-east-1'
c.url = "https://#{c.bucket}.s3.amazonaws.com"
end
| Fix typo on S3 Direct Upload configuration | Fix typo on S3 Direct Upload configuration
An unecessary comma caused an Invalid Policy error while trying to
upload files do Amazon S3.
| Ruby | mit | engageis/juntos.com.vc,juntos-com-vc/juntos.com.vc,juntos-com-vc/juntos.com.vc,engageis/juntos.com.vc,juntos-com-vc/juntos.com.vc,engageis/juntos.com.vc | ruby | ## Code Before:
S3DirectUpload.config do |c|
c.access_key_id = ENV['AWS_ACCESS_KEY']
c.secret_access_key = ENV['AWS_SECRET_KEY']
c.bucket = ENV['AWS_BUCKET'],
c.region = 'sa-east-1'
c.url = "https://#{ENV['AWS_BUCKET']}.s3.amazonaws.com"
end
## Instruction:
Fix typo on S3 Direct Upload configuration
An unec... |
b101ee7b8f89ba5d8b557d19a0507b4bf43b671e | app/views/layouts/_footer.html.erb | app/views/layouts/_footer.html.erb | <div id="footer">
<%= link_to 'donebox', home_path %>
<% if logged_in? %>
<%= link_to 'logout', logout_path %>
<% else %>
<%= link_to 'login', login_path %>
<%= link_to 'sign up', signup_path %>
<% end %>
<%= link_to 'about', about_path %>
<%= link_to 'syntax', syntax_path %>
<%= link_to 'api'... | <div id="footer">
<%= link_to 'donebox', home_path %>
<% if logged_in? %>
<%= link_to 'logout', logout_path %>
<% else %>
<%= link_to 'login', login_path %>
<%= link_to 'sign up', signup_path %>
<% end %>
<%= link_to 'about', about_path %>
<%= link_to 'syntax', syntax_path %>
<%= link_to 'api'... | Add my little nickname in the footer, just after marcournoyer... :x | Add my little nickname in the footer, just after marcournoyer... :x
| HTML+ERB | mit | ook/donebox,ook/donebox | html+erb | ## Code Before:
<div id="footer">
<%= link_to 'donebox', home_path %>
<% if logged_in? %>
<%= link_to 'logout', logout_path %>
<% else %>
<%= link_to 'login', login_path %>
<%= link_to 'sign up', signup_path %>
<% end %>
<%= link_to 'about', about_path %>
<%= link_to 'syntax', syntax_path %>
<... |
940303e9c596aa6a526f4844f8adf6cc1643a13d | lib/core/types/media_type.dart | lib/core/types/media_type.dart | enum MediaType {
album,
clip,
collection,
episode,
movie,
photo,
playlist,
season,
show,
track,
unknown,
}
| enum MediaType {
album,
artist,
clip,
collection,
episode,
movie,
photo,
playlist,
season,
show,
track,
unknown,
}
| Add artist option to MediaType type. | Add artist option to MediaType type.
| Dart | mit | wcomartin/PlexPy-Remote | dart | ## Code Before:
enum MediaType {
album,
clip,
collection,
episode,
movie,
photo,
playlist,
season,
show,
track,
unknown,
}
## Instruction:
Add artist option to MediaType type.
## Code After:
enum MediaType {
album,
artist,
clip,
collection,
episode,
movie,
photo,
playlist,
seas... |
43f856b99f0aa01f8c4db0e0be4771b0d8958105 | config.toml | config.toml | baseurl = "https://fallthrough.io"
languageCode = "en-us"
title = "Usman Mahmood"
theme = "hyde"
copyright = "Usman Mahmood"
[Author]
name = "Usman Mahmood"
[Permalinks]
blog = "/:year/:month/:filename/"
[Taxonomies]
tag = "tags"
series = "series"
series-desc = "series-desc"
[params]
description = "Algori... | baseurl = "https://www.usman.me.uk"
languageCode = "en-us"
title = "Usman Mahmood"
theme = "hyde"
copyright = "Usman Mahmood"
[Author]
name = "Usman Mahmood"
[Permalinks]
blog = "/:year/:month/:filename/"
[Taxonomies]
tag = "tags"
series = "series"
series-desc = "series-desc"
[params]
description = "Algor... | Update baseurl to new domain | Update baseurl to new domain
| TOML | mit | umahmood/fallthrough | toml | ## Code Before:
baseurl = "https://fallthrough.io"
languageCode = "en-us"
title = "Usman Mahmood"
theme = "hyde"
copyright = "Usman Mahmood"
[Author]
name = "Usman Mahmood"
[Permalinks]
blog = "/:year/:month/:filename/"
[Taxonomies]
tag = "tags"
series = "series"
series-desc = "series-desc"
[params]
descr... |
4bfb27abdf865f3701a05b3e9bf40cd35cc63836 | home/.config/fish/functions/fish_prompt.fish | home/.config/fish/functions/fish_prompt.fish | function fish_prompt --description 'Write out the prompt'
set -l home_escaped (echo -n $HOME | sed 's/\//\\\\\//g')
set -l pwd (echo -n $PWD | sed "s/^$home_escaped/~/" | sed 's/ /%20/g')
# SSH
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostname)' '
test "$... | function fish_prompt --description 'Write out the prompt'
set -l last_status $status
set -l home_escaped (echo -n $HOME | sed 's/\//\\\\\//g')
set -l pwd (echo -n $PWD | sed "s/^$home_escaped/~/" | sed 's/ /%20/g')
# SSH
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(... | Change prompt color by latest exit code | Change prompt color by latest exit code
| fish | mit | s-osa/dotfiles | fish | ## Code Before:
function fish_prompt --description 'Write out the prompt'
set -l home_escaped (echo -n $HOME | sed 's/\//\\\\\//g')
set -l pwd (echo -n $PWD | sed "s/^$home_escaped/~/" | sed 's/ /%20/g')
# SSH
test $SSH_TTY
and printf (set_color red)$USER(set_color brwhite)'@'(set_color yellow)(prompt_hostna... |
cf52726065dad37205ab0874ec179087d4556e24 | server/contentSecurityPolicy.js | server/contentSecurityPolicy.js | // @flow
/**
* Part of GDL gdl-frontend.
* Copyright (C) 2018 GDL
*
* See LICENSE
*/
const directives = {
defaultSrc: ["'self'"],
scriptSrc: [
"'self'",
"'unsafe-inline'",
'https://cdn.polyfill.io',
'https://www.google-analytics.com'
],
styleSrc: ["'self'", "'unsafe-inline'"],
imgSrc: ["... | // @flow
/**
* Part of GDL gdl-frontend.
* Copyright (C) 2018 GDL
*
* See LICENSE
*/
const googleAnalytics = 'www.google-analytics.com';
const directives = {
defaultSrc: ["'self'"],
scriptSrc: [
"'self'",
"'unsafe-inline'",
'https://cdn.polyfill.io',
googleAnalytics
],
styleSrc: ["'self'"... | Add google analytics to CSP img-src | Add google analytics to CSP img-src
| JavaScript | apache-2.0 | GlobalDigitalLibraryio/gdl-frontend,GlobalDigitalLibraryio/gdl-frontend | javascript | ## Code Before:
// @flow
/**
* Part of GDL gdl-frontend.
* Copyright (C) 2018 GDL
*
* See LICENSE
*/
const directives = {
defaultSrc: ["'self'"],
scriptSrc: [
"'self'",
"'unsafe-inline'",
'https://cdn.polyfill.io',
'https://www.google-analytics.com'
],
styleSrc: ["'self'", "'unsafe-inline'... |
5cc35c18b5b3eeb5cc78ffb74f4fc893dc39646b | src/controllers/version.js | src/controllers/version.js | const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = v... | const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
tag = v... | Send response while database is still updating | Send response while database is still updating
| JavaScript | mit | 4minitz/version-check | javascript | ## Code Before:
const slaveService = require('../services/slave');
const versionService = require('../services/version');
const version = {
currentVersion(req, res) {
const {slaveUID, slaveVersion} = req.params,
remoteAddress = req.headers['x-forwarded-for'] || req.connection.remoteAddress,
... |
18d87c64dd7353edaac41f4f07b22e100f751f9e | patches/minecraft/net/minecraft/client/renderer/RenderEngine.java.patch | patches/minecraft/net/minecraft/client/renderer/RenderEngine.java.patch | --- ../src_base/minecraft/net/minecraft/client/renderer/RenderEngine.java
+++ ../src_work/minecraft/net/minecraft/client/renderer/RenderEngine.java
@@ -28,6 +28,8 @@
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
+import net.minecraftforge.client.ForgeHooksClient;
+
@SideOnly(Side.CLIENT)
public clas... | --- ../src_base/minecraft/net/minecraft/client/renderer/RenderEngine.java
+++ ../src_work/minecraft/net/minecraft/client/renderer/RenderEngine.java
@@ -28,6 +28,8 @@
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
+import net.minecraftforge.client.ForgeHooksClient;
+
@SideOnly(Side.CLIENT)
public clas... | Fix potential GL issue when atlas animations bind textures without informating RenderEngine. | Fix potential GL issue when atlas animations bind textures without informating RenderEngine.
| Diff | lgpl-2.1 | RainWarrior/MinecraftForge,Ghostlyr/MinecraftForge,dmf444/MinecraftForge,ThiagoGarciaAlves/MinecraftForge,blay09/MinecraftForge,brubo1/MinecraftForge,shadekiller666/MinecraftForge,simon816/MinecraftForge,Theerapak/MinecraftForge,Vorquel/MinecraftForge,bonii-xx/MinecraftForge,CrafterKina/MinecraftForge,Mathe172/Minecraf... | diff | ## Code Before:
--- ../src_base/minecraft/net/minecraft/client/renderer/RenderEngine.java
+++ ../src_work/minecraft/net/minecraft/client/renderer/RenderEngine.java
@@ -28,6 +28,8 @@
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;
+import net.minecraftforge.client.ForgeHooksClient;
+
@SideOnly(Side.CLIE... |
029ba91b90dd6971e9c9ff5eca53f537218d709f | nvd-cli.go | nvd-cli.go | package main
import (
"fmt"
"github.com/docopt/docopt-go"
)
func main() {
usage := `Usage: nvd-search [-c CVE | -k KEY] [-v VENDOR] [-p PRODUCT] [-n NVD]
Options:
-h --help show this
-c CVE --cve CVE CVE-ID of the vulnerability [default: ]
-k KEY --key KEY keyw... | package main
import (
"log"
"github.com/docopt/docopt-go"
"github.com/mitchellh/go-homedir"
)
func main() {
usage := `Usage: nvd-search [-c CVE | -k KEY] [-v VENDOR] [-p PRODUCT] [-n NVD]
Options:
-h --help show this
-c CVE --cve CVE CVE-ID of the vulnerability [default: ]
... | Clean the local NVD dir using homedir.Expand | Clean the local NVD dir using homedir.Expand
| Go | mit | okuuva/nvd-search-cli | go | ## Code Before:
package main
import (
"fmt"
"github.com/docopt/docopt-go"
)
func main() {
usage := `Usage: nvd-search [-c CVE | -k KEY] [-v VENDOR] [-p PRODUCT] [-n NVD]
Options:
-h --help show this
-c CVE --cve CVE CVE-ID of the vulnerability [default: ]
-k KEY --key KEY ... |
5e231666a8c611fcac4683c33f6d92920b6b024d | setup.py | setup.py | import os
import re
from setuptools import setup, find_packages
def get_ini_variable(name):
with open(os.path.join(os.path.dirname(__file__), 'src', 'ros_get', '__init__.py')) as f:
return re.compile(r".*%s = '(.*?)'" % name, re.S).match(f.read()).group(1)
with open(os.path.join(os.path.dirname(__file__... | import os
import re
from setuptools import setup, find_packages
def get_ini_variable(name):
with open(os.path.join(os.path.dirname(__file__), 'src', 'ros_get', '__init__.py')) as f:
return re.compile(r".*%s = '(.*?)'" % name, re.S).match(f.read()).group(1)
with open(os.path.join(os.path.dirname(__file__... | Revert "Remove dependency that was fixed upstream" | Revert "Remove dependency that was fixed upstream"
This reverts commit 9ee219d85849629eac53a28e72fa374a6c805ea4.
| Python | mit | Rayman/ros-get,Rayman/ros-get | python | ## Code Before:
import os
import re
from setuptools import setup, find_packages
def get_ini_variable(name):
with open(os.path.join(os.path.dirname(__file__), 'src', 'ros_get', '__init__.py')) as f:
return re.compile(r".*%s = '(.*?)'" % name, re.S).match(f.read()).group(1)
with open(os.path.join(os.path.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.