commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201 values | license stringclasses 13 values | repos stringlengths 6 116k | config stringclasses 201 values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3e717a2a77dcf18f9a281e68462b5809010e1835 | setup.py | setup.py | from setuptools import setup
setup(name='pyW215',
version='0.4',
description='Interface for d-link W215 Smart Plugs.',
url='https://github.com/linuxchristian/pyW215',
author='Christian Juncker Brædstrup',
author_email='christian@fredborg-braedstrup.dk',
license='MIT',
packages=['pyW215'],
install_requires=[],
zip_safe=False)
| from setuptools import setup
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(name='pyW215',
version='0.4',
description='Interface for d-link W215 Smart Plugs.',
long_description=long_description,
url='https://github.com/linuxchristian/pyW215',
author='Christian Juncker Brædstrup',
author_email='christian@junckerbraedstrup.dk',
license='MIT',
keywords='D-Link W215 W110 Smartplug',
packages=['pyW215'],
install_requires=[],
zip_safe=False)
| Prepare for publication on pypi | Prepare for publication on pypi
| Python | mit | LinuxChristian/pyW215 | python | ## Code Before:
from setuptools import setup
setup(name='pyW215',
version='0.4',
description='Interface for d-link W215 Smart Plugs.',
url='https://github.com/linuxchristian/pyW215',
author='Christian Juncker Brædstrup',
author_email='christian@fredborg-braedstrup.dk',
license='MIT',
packages=['pyW215'],
install_requires=[],
zip_safe=False)
## Instruction:
Prepare for publication on pypi
## Code After:
from setuptools import setup
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(name='pyW215',
version='0.4',
description='Interface for d-link W215 Smart Plugs.',
long_description=long_description,
url='https://github.com/linuxchristian/pyW215',
author='Christian Juncker Brædstrup',
author_email='christian@junckerbraedstrup.dk',
license='MIT',
keywords='D-Link W215 W110 Smartplug',
packages=['pyW215'],
install_requires=[],
zip_safe=False)
| from setuptools import setup
+ from os import path
+
+ here = path.abspath(path.dirname(__file__))
+
+ # Get the long description from the README file
+ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
+ long_description = f.read()
setup(name='pyW215',
- version='0.4',
? ------
+ version='0.4',
- description='Interface for d-link W215 Smart Plugs.',
? ------
+ description='Interface for d-link W215 Smart Plugs.',
+ long_description=long_description,
- url='https://github.com/linuxchristian/pyW215',
? ------
+ url='https://github.com/linuxchristian/pyW215',
- author='Christian Juncker Brædstrup',
? ------
+ author='Christian Juncker Brædstrup',
- author_email='christian@fredborg-braedstrup.dk',
? ------ ^ -------
+ author_email='christian@junckerbraedstrup.dk',
? ^^^^^^
- license='MIT',
? ------
+ license='MIT',
+ keywords='D-Link W215 W110 Smartplug',
- packages=['pyW215'],
? ------
+ packages=['pyW215'],
- install_requires=[],
? ------
+ install_requires=[],
- zip_safe=False)
? ------
+ zip_safe=False) | 27 | 2.25 | 18 | 9 |
250d9289cd85068cd9c624c9ec878725e05ff839 | lib/license_finder.rb | lib/license_finder.rb | require 'pathname'
require 'yaml'
module LicenseFinder
ROOT_PATH = Pathname.new(__FILE__).dirname
class Configuration
attr_reader :whitelist, :ignore_groups, :dependencies_dir
def initialize
config = {}
if File.exists?('./config/license_finder.yml')
yaml = File.open('./config/license_finder.yml').readlines.join
config = YAML.load(yaml)
end
@whitelist = config['whitelist'] || []
@ignore_groups = (config["ignore_groups"] || []).map(&:to_sym)
@dependencies_dir = config['dependencies_file_dir'] || '.'
end
def dependencies_yaml
"#{dependencies_dir}/dependencies.yml"
end
def dependencies_text
"#{dependencies_dir}/dependencies.txt"
end
end
def self.config
@config ||= Configuration.new
end
end
require 'license_finder/railtie' if defined?(Rails)
require 'license_finder/finder'
require 'license_finder/gem_spec_details'
require 'license_finder/file_parser'
require 'license_finder/license_file'
require 'license_finder/dependency'
require 'license_finder/dependency_list'
| require 'pathname'
require 'yaml'
module LicenseFinder
ROOT_PATH = Pathname.new(__FILE__).dirname
class Configuration
attr_reader :whitelist, :ignore_groups, :dependencies_dir
def initialize
config = {}
if File.exists?('./config/license_finder.yml')
yaml = File.open('./config/license_finder.yml').readlines.join
config = YAML.load(yaml)
end
@whitelist = config['whitelist'] || []
@ignore_groups = (config["ignore_groups"] || []).map(&:to_sym)
@dependencies_dir = config['dependencies_file_dir'] || '.'
end
def dependencies_yaml
File.join(dependencies_dir, "dependencies.yml")
end
def dependencies_text
File.join(dependencies_dir, "dependencies.txt")
end
end
def self.config
@config ||= Configuration.new
end
end
require 'license_finder/railtie' if defined?(Rails)
require 'license_finder/finder'
require 'license_finder/gem_spec_details'
require 'license_finder/file_parser'
require 'license_finder/license_file'
require 'license_finder/dependency'
require 'license_finder/dependency_list'
| Use File.join for great justice | Use File.join for great justice
| Ruby | mit | JasonMSwrve/LicenseFinder,sschuberth/LicenseFinder,pivotal/LicenseFinder,Swrve/LicenseFinder,SimantovYousoufov/LicenseFinder,chef/LicenseFinder,tinfoil/LicenseFinder,bdshroyer/LicenseFinder,alexderz/LicenseFinder,SimantovYousoufov/LicenseFinder,sschuberth/LicenseFinder,bspeck/LicenseFinder,LukeWinikates/LicenseFinder,sschuberth/LicenseFinder,sschuberth/LicenseFinder,tinfoil/LicenseFinder,joemoore/LicenseFinder,chef/LicenseFinder,phusion/LicenseFinder,pivotal/LicenseFinder,joemoore/LicenseFinder,bdshroyer/LicenseFinder,bspeck/LicenseFinder,joemoore/LicenseFinder,SimantovYousoufov/LicenseFinder,JasonMSwrve/LicenseFinder,Swrve/LicenseFinder,bspeck/LicenseFinder,LukeWinikates/LicenseFinder,pivotal/LicenseFinder,sschuberth/LicenseFinder,LukeWinikates/LicenseFinder,tinfoil/LicenseFinder,alexderz/LicenseFinder,joemoore/LicenseFinder,pivotal/LicenseFinder,JasonMSwrve/LicenseFinder,phusion/LicenseFinder,JasonMSwrve/LicenseFinder,JasonMSwrve/LicenseFinder,phusion/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,LukeWinikates/LicenseFinder,tinfoil/LicenseFinder,pivotal/LicenseFinder,alexderz/LicenseFinder,phusion/LicenseFinder,bspeck/LicenseFinder,LukeWinikates/LicenseFinder,bspeck/LicenseFinder,phusion/LicenseFinder,bdshroyer/LicenseFinder,bdshroyer/LicenseFinder,alexderz/LicenseFinder,SimantovYousoufov/LicenseFinder,SimantovYousoufov/LicenseFinder,joemoore/LicenseFinder,chef/LicenseFinder,tinfoil/LicenseFinder,bdshroyer/LicenseFinder,chef/LicenseFinder,alexderz/LicenseFinder | ruby | ## Code Before:
require 'pathname'
require 'yaml'
module LicenseFinder
ROOT_PATH = Pathname.new(__FILE__).dirname
class Configuration
attr_reader :whitelist, :ignore_groups, :dependencies_dir
def initialize
config = {}
if File.exists?('./config/license_finder.yml')
yaml = File.open('./config/license_finder.yml').readlines.join
config = YAML.load(yaml)
end
@whitelist = config['whitelist'] || []
@ignore_groups = (config["ignore_groups"] || []).map(&:to_sym)
@dependencies_dir = config['dependencies_file_dir'] || '.'
end
def dependencies_yaml
"#{dependencies_dir}/dependencies.yml"
end
def dependencies_text
"#{dependencies_dir}/dependencies.txt"
end
end
def self.config
@config ||= Configuration.new
end
end
require 'license_finder/railtie' if defined?(Rails)
require 'license_finder/finder'
require 'license_finder/gem_spec_details'
require 'license_finder/file_parser'
require 'license_finder/license_file'
require 'license_finder/dependency'
require 'license_finder/dependency_list'
## Instruction:
Use File.join for great justice
## Code After:
require 'pathname'
require 'yaml'
module LicenseFinder
ROOT_PATH = Pathname.new(__FILE__).dirname
class Configuration
attr_reader :whitelist, :ignore_groups, :dependencies_dir
def initialize
config = {}
if File.exists?('./config/license_finder.yml')
yaml = File.open('./config/license_finder.yml').readlines.join
config = YAML.load(yaml)
end
@whitelist = config['whitelist'] || []
@ignore_groups = (config["ignore_groups"] || []).map(&:to_sym)
@dependencies_dir = config['dependencies_file_dir'] || '.'
end
def dependencies_yaml
File.join(dependencies_dir, "dependencies.yml")
end
def dependencies_text
File.join(dependencies_dir, "dependencies.txt")
end
end
def self.config
@config ||= Configuration.new
end
end
require 'license_finder/railtie' if defined?(Rails)
require 'license_finder/finder'
require 'license_finder/gem_spec_details'
require 'license_finder/file_parser'
require 'license_finder/license_file'
require 'license_finder/dependency'
require 'license_finder/dependency_list'
| require 'pathname'
require 'yaml'
module LicenseFinder
ROOT_PATH = Pathname.new(__FILE__).dirname
class Configuration
attr_reader :whitelist, :ignore_groups, :dependencies_dir
def initialize
config = {}
if File.exists?('./config/license_finder.yml')
yaml = File.open('./config/license_finder.yml').readlines.join
config = YAML.load(yaml)
end
@whitelist = config['whitelist'] || []
@ignore_groups = (config["ignore_groups"] || []).map(&:to_sym)
@dependencies_dir = config['dependencies_file_dir'] || '.'
end
def dependencies_yaml
- "#{dependencies_dir}/dependencies.yml"
? ^^^ ^^
+ File.join(dependencies_dir, "dependencies.yml")
? ^^^^^^^^^^ ^^^ +
end
def dependencies_text
- "#{dependencies_dir}/dependencies.txt"
? ^^^ ^^
+ File.join(dependencies_dir, "dependencies.txt")
? ^^^^^^^^^^ ^^^ +
end
end
def self.config
@config ||= Configuration.new
end
end
require 'license_finder/railtie' if defined?(Rails)
require 'license_finder/finder'
require 'license_finder/gem_spec_details'
require 'license_finder/file_parser'
require 'license_finder/license_file'
require 'license_finder/dependency'
require 'license_finder/dependency_list' | 4 | 0.090909 | 2 | 2 |
afb30ec567b6ea7fb6e80400bf9db17c8c546845 | pay/lib/src/widgets/google_pay_button_widget.dart | pay/lib/src/widgets/google_pay_button_widget.dart | part of '../../pay.dart';
typedef PayGestureTapCallback = void Function(Pay client);
class GooglePayButtonWidget extends StatelessWidget {
final Pay _googlePayClient;
final GooglePayButton _googlePayButton;
final Widget _childOnError;
final Widget _loadingIndicator;
GooglePayButtonWidget._(
Key key,
this._googlePayClient,
this._googlePayButton,
this._childOnError,
this._loadingIndicator,
) : super(key: key);
factory GooglePayButtonWidget({
Key key,
@required paymentConfigurationAsset,
@required PayGestureTapCallback onPressed,
type,
color,
childOnError,
loadingIndicator,
}) {
Pay googlePayClient = Pay.fromAsset(paymentConfigurationAsset);
GooglePayButton googlePayButton = GooglePayButton(
onPressed: () => onPressed(googlePayClient),
type: type,
color: color,
);
return GooglePayButtonWidget._(
key,
googlePayClient,
googlePayButton,
childOnError,
loadingIndicator,
);
}
@override
Widget build(BuildContext context) {
return FutureBuilder<bool>(
future: _googlePayClient.userCanPay(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.data == true) {
return SizedBox(
width: double.infinity,
child: _googlePayButton,
);
} else if (snapshot.hasError) {
return _childOnError ?? SizedBox.shrink();
}
}
return _loadingIndicator ?? SizedBox.shrink();
},
);
}
}
| part of '../../pay.dart';
typedef PayGestureTapCallback = void Function(Pay client);
class GooglePayButtonWidget extends StatelessWidget {
final Pay _googlePayClient;
final GooglePayButton _googlePayButton;
final Widget _childOnError;
final Widget _loadingIndicator;
GooglePayButtonWidget._(
Key key,
this._googlePayClient,
this._googlePayButton,
this._childOnError,
this._loadingIndicator,
) : super(key: key);
factory GooglePayButtonWidget({
Key key,
@required paymentConfigurationAsset,
@required PayGestureTapCallback onPressed,
type,
color,
childOnError,
loadingIndicator,
}) {
Pay googlePayClient = Pay.fromAsset(paymentConfigurationAsset);
GooglePayButton googlePayButton = GooglePayButton(
onPressed: () => onPressed(googlePayClient),
type: type,
color: color,
);
return GooglePayButtonWidget._(
key,
googlePayClient,
googlePayButton,
childOnError,
loadingIndicator,
);
}
@override
Widget build(BuildContext context) {
return FutureBuilder<bool>(
future: _googlePayClient.userCanPay(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.data == true) {
return _googlePayButton;
} else if (snapshot.hasError) {
return _childOnError ?? SizedBox.shrink();
}
}
return _loadingIndicator ?? SizedBox.shrink();
},
);
}
}
| Remove sizing opinion on the widget | Remove sizing opinion on the widget
| Dart | apache-2.0 | google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin | dart | ## Code Before:
part of '../../pay.dart';
typedef PayGestureTapCallback = void Function(Pay client);
class GooglePayButtonWidget extends StatelessWidget {
final Pay _googlePayClient;
final GooglePayButton _googlePayButton;
final Widget _childOnError;
final Widget _loadingIndicator;
GooglePayButtonWidget._(
Key key,
this._googlePayClient,
this._googlePayButton,
this._childOnError,
this._loadingIndicator,
) : super(key: key);
factory GooglePayButtonWidget({
Key key,
@required paymentConfigurationAsset,
@required PayGestureTapCallback onPressed,
type,
color,
childOnError,
loadingIndicator,
}) {
Pay googlePayClient = Pay.fromAsset(paymentConfigurationAsset);
GooglePayButton googlePayButton = GooglePayButton(
onPressed: () => onPressed(googlePayClient),
type: type,
color: color,
);
return GooglePayButtonWidget._(
key,
googlePayClient,
googlePayButton,
childOnError,
loadingIndicator,
);
}
@override
Widget build(BuildContext context) {
return FutureBuilder<bool>(
future: _googlePayClient.userCanPay(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.data == true) {
return SizedBox(
width: double.infinity,
child: _googlePayButton,
);
} else if (snapshot.hasError) {
return _childOnError ?? SizedBox.shrink();
}
}
return _loadingIndicator ?? SizedBox.shrink();
},
);
}
}
## Instruction:
Remove sizing opinion on the widget
## Code After:
part of '../../pay.dart';
typedef PayGestureTapCallback = void Function(Pay client);
class GooglePayButtonWidget extends StatelessWidget {
final Pay _googlePayClient;
final GooglePayButton _googlePayButton;
final Widget _childOnError;
final Widget _loadingIndicator;
GooglePayButtonWidget._(
Key key,
this._googlePayClient,
this._googlePayButton,
this._childOnError,
this._loadingIndicator,
) : super(key: key);
factory GooglePayButtonWidget({
Key key,
@required paymentConfigurationAsset,
@required PayGestureTapCallback onPressed,
type,
color,
childOnError,
loadingIndicator,
}) {
Pay googlePayClient = Pay.fromAsset(paymentConfigurationAsset);
GooglePayButton googlePayButton = GooglePayButton(
onPressed: () => onPressed(googlePayClient),
type: type,
color: color,
);
return GooglePayButtonWidget._(
key,
googlePayClient,
googlePayButton,
childOnError,
loadingIndicator,
);
}
@override
Widget build(BuildContext context) {
return FutureBuilder<bool>(
future: _googlePayClient.userCanPay(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.data == true) {
return _googlePayButton;
} else if (snapshot.hasError) {
return _childOnError ?? SizedBox.shrink();
}
}
return _loadingIndicator ?? SizedBox.shrink();
},
);
}
}
| part of '../../pay.dart';
typedef PayGestureTapCallback = void Function(Pay client);
class GooglePayButtonWidget extends StatelessWidget {
final Pay _googlePayClient;
final GooglePayButton _googlePayButton;
final Widget _childOnError;
final Widget _loadingIndicator;
GooglePayButtonWidget._(
Key key,
this._googlePayClient,
this._googlePayButton,
this._childOnError,
this._loadingIndicator,
) : super(key: key);
factory GooglePayButtonWidget({
Key key,
@required paymentConfigurationAsset,
@required PayGestureTapCallback onPressed,
type,
color,
childOnError,
loadingIndicator,
}) {
Pay googlePayClient = Pay.fromAsset(paymentConfigurationAsset);
GooglePayButton googlePayButton = GooglePayButton(
onPressed: () => onPressed(googlePayClient),
type: type,
color: color,
);
return GooglePayButtonWidget._(
key,
googlePayClient,
googlePayButton,
childOnError,
loadingIndicator,
);
}
@override
Widget build(BuildContext context) {
return FutureBuilder<bool>(
future: _googlePayClient.userCanPay(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
if (snapshot.data == true) {
- return SizedBox(
- width: double.infinity,
- child: _googlePayButton,
? ^^^^^^^^ ^
+ return _googlePayButton;
? ^^^^^^ ^
- );
} else if (snapshot.hasError) {
return _childOnError ?? SizedBox.shrink();
}
}
return _loadingIndicator ?? SizedBox.shrink();
},
);
}
} | 5 | 0.076923 | 1 | 4 |
4832fca577a12578e739a778eaed476964d3754b | stagecraft/apps/datasets/tests/fixtures/backdrop_users_import_testdata.json | stagecraft/apps/datasets/tests/fixtures/backdrop_users_import_testdata.json | [{
"_id" : "someemail@mailtime.com",
"data_sets" : [
"evl_ceg_data",
"evl_services_volumetrics",
"evl_services_failures",
"evl_channel_volumetrics",
"evl_customer_satisfaction",
"evl_volumetrics"
],
"email" : "someemail@mailtime.com"
},
{
"_id" : "angela.merkel@deutschland.de",
"data_sets" : [
"lpa_volumes"
],
"email" : "angela.merkel@deutschland.de"
},
{
"_id" : "mike.bracken@gov.uk",
"data_sets" : [
"govuk_big_stats"
],
"email" : "mike.bracken@gov.uk"
}]
| [{
"_id" : "someemail@mailtime.com",
"data_sets" : [
"evl_ceg_data",
"evl_customer_satisfaction"
],
"email" : "someemail@mailtime.com"
},
{
"_id" : "angela.merkel@deutschland.de",
"data_sets" : [
"lpa_volumes"
],
"email" : "angela.merkel@deutschland.de"
},
{
"_id" : "mike.bracken@gov.uk",
"data_sets" : [
"govuk_nonexistant_big_stats"
],
"email" : "mike.bracken@gov.uk"
}]
| Reduce the number of data-sets | Reduce the number of data-sets
- Drastically reduces the amount of hand coded fixutre information we'll need to write to test dataset lookups in the backdrop user import script tests
| JSON | mit | alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft | json | ## Code Before:
[{
"_id" : "someemail@mailtime.com",
"data_sets" : [
"evl_ceg_data",
"evl_services_volumetrics",
"evl_services_failures",
"evl_channel_volumetrics",
"evl_customer_satisfaction",
"evl_volumetrics"
],
"email" : "someemail@mailtime.com"
},
{
"_id" : "angela.merkel@deutschland.de",
"data_sets" : [
"lpa_volumes"
],
"email" : "angela.merkel@deutschland.de"
},
{
"_id" : "mike.bracken@gov.uk",
"data_sets" : [
"govuk_big_stats"
],
"email" : "mike.bracken@gov.uk"
}]
## Instruction:
Reduce the number of data-sets
- Drastically reduces the amount of hand coded fixutre information we'll need to write to test dataset lookups in the backdrop user import script tests
## Code After:
[{
"_id" : "someemail@mailtime.com",
"data_sets" : [
"evl_ceg_data",
"evl_customer_satisfaction"
],
"email" : "someemail@mailtime.com"
},
{
"_id" : "angela.merkel@deutschland.de",
"data_sets" : [
"lpa_volumes"
],
"email" : "angela.merkel@deutschland.de"
},
{
"_id" : "mike.bracken@gov.uk",
"data_sets" : [
"govuk_nonexistant_big_stats"
],
"email" : "mike.bracken@gov.uk"
}]
| [{
"_id" : "someemail@mailtime.com",
"data_sets" : [
"evl_ceg_data",
- "evl_services_volumetrics",
- "evl_services_failures",
- "evl_channel_volumetrics",
- "evl_customer_satisfaction",
? -
+ "evl_customer_satisfaction"
- "evl_volumetrics"
],
"email" : "someemail@mailtime.com"
},
{
"_id" : "angela.merkel@deutschland.de",
"data_sets" : [
"lpa_volumes"
],
"email" : "angela.merkel@deutschland.de"
},
{
"_id" : "mike.bracken@gov.uk",
"data_sets" : [
- "govuk_big_stats"
+ "govuk_nonexistant_big_stats"
? ++++++++++++
],
"email" : "mike.bracken@gov.uk"
}] | 8 | 0.307692 | 2 | 6 |
a39ba14b6b7cb0ffd66131c2418c21c3e43f7c5a | recipes/default.rb | recipes/default.rb |
include_recipe "apache2"
if node['platform_family'] == "rhel"
include_recipe "yum-epel"
end
# Install relevant package
pkg = value_for_platform(
[ "centos", "fedora", "redhat" ] => {
"default" => "mod_evasive"
},
[ "debian", "ubuntu" ] => {
"default" => "libapache2-mod-evasive"
}
)
package pkg do
action :install
end
# Remove the RPM packaged config if necessary
%w{ conf.d/mod_evasive.conf
mods-available/evasive.conf
mods-available/evasive.load }.each do |f|
file "#{node['apache']['dir']}/#{f}" do
action :delete
end
end
# Drop off debian-style config
template "#{node['apache']['dir']}/mods-available/evasive20.conf" do
source "evasive.conf.erb"
owner "root"
group "root"
mode "0644"
end
apache_module "evasive20"
|
include_recipe "apache2"
if node['platform_family'] == "rhel"
include_recipe "yum-epel"
end
# Install relevant package
pkg = value_for_platform(
[ "centos", "fedora", "redhat" ] => {
"default" => "mod_evasive"
},
[ "debian", "ubuntu" ] => {
"default" => "libapache2-mod-evasive"
}
)
package pkg do
action :install
end
# Remove the packaged config if necessary
%w{ conf.d/mod_evasive.conf
mods-available/evasive.conf
mods-available/evasive.load }.each do |f|
file "#{node['apache']['dir']}/#{f}" do
action :delete
end
end
# Remove symlinks created by apt-get
%w{ mods-enabled/evasive.conf
mods-enabled/evasive.load }.each do |l|
link "#{node['apache']['dir']}/#{l}" do
action :delete
end
end
# Drop off debian-style config
template "#{node['apache']['dir']}/mods-available/evasive20.conf" do
source "evasive.conf.erb"
owner "root"
group "root"
mode "0644"
end
apache_module "evasive20"
| Remove symlinks created by apt-get | Remove symlinks created by apt-get
| Ruby | apache-2.0 | azteknative/chef-mod_evasive,azteknative/chef-mod_evasive | ruby | ## Code Before:
include_recipe "apache2"
if node['platform_family'] == "rhel"
include_recipe "yum-epel"
end
# Install relevant package
pkg = value_for_platform(
[ "centos", "fedora", "redhat" ] => {
"default" => "mod_evasive"
},
[ "debian", "ubuntu" ] => {
"default" => "libapache2-mod-evasive"
}
)
package pkg do
action :install
end
# Remove the RPM packaged config if necessary
%w{ conf.d/mod_evasive.conf
mods-available/evasive.conf
mods-available/evasive.load }.each do |f|
file "#{node['apache']['dir']}/#{f}" do
action :delete
end
end
# Drop off debian-style config
template "#{node['apache']['dir']}/mods-available/evasive20.conf" do
source "evasive.conf.erb"
owner "root"
group "root"
mode "0644"
end
apache_module "evasive20"
## Instruction:
Remove symlinks created by apt-get
## Code After:
include_recipe "apache2"
if node['platform_family'] == "rhel"
include_recipe "yum-epel"
end
# Install relevant package
pkg = value_for_platform(
[ "centos", "fedora", "redhat" ] => {
"default" => "mod_evasive"
},
[ "debian", "ubuntu" ] => {
"default" => "libapache2-mod-evasive"
}
)
package pkg do
action :install
end
# Remove the packaged config if necessary
%w{ conf.d/mod_evasive.conf
mods-available/evasive.conf
mods-available/evasive.load }.each do |f|
file "#{node['apache']['dir']}/#{f}" do
action :delete
end
end
# Remove symlinks created by apt-get
%w{ mods-enabled/evasive.conf
mods-enabled/evasive.load }.each do |l|
link "#{node['apache']['dir']}/#{l}" do
action :delete
end
end
# Drop off debian-style config
template "#{node['apache']['dir']}/mods-available/evasive20.conf" do
source "evasive.conf.erb"
owner "root"
group "root"
mode "0644"
end
apache_module "evasive20"
|
include_recipe "apache2"
if node['platform_family'] == "rhel"
include_recipe "yum-epel"
end
# Install relevant package
pkg = value_for_platform(
[ "centos", "fedora", "redhat" ] => {
"default" => "mod_evasive"
},
[ "debian", "ubuntu" ] => {
"default" => "libapache2-mod-evasive"
}
)
package pkg do
action :install
end
- # Remove the RPM packaged config if necessary
? ----
+ # Remove the packaged config if necessary
%w{ conf.d/mod_evasive.conf
mods-available/evasive.conf
mods-available/evasive.load }.each do |f|
file "#{node['apache']['dir']}/#{f}" do
+ action :delete
+ end
+ end
+
+ # Remove symlinks created by apt-get
+ %w{ mods-enabled/evasive.conf
+ mods-enabled/evasive.load }.each do |l|
+
+ link "#{node['apache']['dir']}/#{l}" do
action :delete
end
end
# Drop off debian-style config
template "#{node['apache']['dir']}/mods-available/evasive20.conf" do
source "evasive.conf.erb"
owner "root"
group "root"
mode "0644"
end
apache_module "evasive20"
| 11 | 0.268293 | 10 | 1 |
1ec4c8a3d8153af9f7e2063136a09b5b84f83668 | README.md | README.md | Drupal User Registry - a Codeception module for managing test users
===
A Codeception module for managing test users on Drupal sites.
## Install with Composer
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/pfaocle/codeception-module-drupal-user-registry.git"
}
],
"require": {
"codeception/codeception": "2.0.*",
"pfaocle/codeception-module-drupal-user-registry": "dev-master"
}
}
## Example suite configuration
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser
- AcceptanceHelper
- DrupalUserRegistry
config:
PhpBrowser:
url: 'http://localhost/myapp/'
DrupalUserRegistry:
roles: ['administrator', 'editor', 'sub editor', 'lowly-user', 'authenticated'] # A list of user roles.
password: 'test123!' # The password to use for all test users.
create: true # Whether to create all defined test users at the start of the suite.
delete: true # Whether to delete all defined test users at the end of the suite.
drush-alias: '@mysite.local' # The Drush alias to use when managing users via DrushTestUserManager.
## Acknowledgements
Props to [Andy Rigby](https://github.com/ixisandyr) for the storage code and inspiration.
| Drupal User Registry - a Codeception module for managing test users
===
A Codeception module for managing test users on Drupal sites.
## Install with Composer
This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer:
{
"require": {
"codeception/codeception": "2.0.*",
"pfaocle/codeception-module-drupal-user-registry": "dev-master"
}
}
## Example suite configuration
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser
- AcceptanceHelper
- DrupalUserRegistry
config:
PhpBrowser:
url: 'http://localhost/myapp/'
DrupalUserRegistry:
roles: ['administrator', 'editor', 'sub editor', 'lowly-user', 'authenticated'] # A list of user roles.
password: 'test123!' # The password to use for all test users.
create: true # Whether to create all defined test users at the start of the suite.
delete: true # Whether to delete all defined test users at the end of the suite.
drush-alias: '@mysite.local' # The Drush alias to use when managing users via DrushTestUserManager.
## Acknowledgements
Props to [Andy Rigby](https://github.com/ixisandyr) for the storage code and inspiration.
| Remove VCS declaration: module now available on Packagist. | Remove VCS declaration: module now available on Packagist. | Markdown | mit | ixis/codeception-module-drupal-user-registry,chriscohen/codeception-module-drupal-user-registry,pfaocle/codeception-module-drupal-user-registry | markdown | ## Code Before:
Drupal User Registry - a Codeception module for managing test users
===
A Codeception module for managing test users on Drupal sites.
## Install with Composer
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/pfaocle/codeception-module-drupal-user-registry.git"
}
],
"require": {
"codeception/codeception": "2.0.*",
"pfaocle/codeception-module-drupal-user-registry": "dev-master"
}
}
## Example suite configuration
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser
- AcceptanceHelper
- DrupalUserRegistry
config:
PhpBrowser:
url: 'http://localhost/myapp/'
DrupalUserRegistry:
roles: ['administrator', 'editor', 'sub editor', 'lowly-user', 'authenticated'] # A list of user roles.
password: 'test123!' # The password to use for all test users.
create: true # Whether to create all defined test users at the start of the suite.
delete: true # Whether to delete all defined test users at the end of the suite.
drush-alias: '@mysite.local' # The Drush alias to use when managing users via DrushTestUserManager.
## Acknowledgements
Props to [Andy Rigby](https://github.com/ixisandyr) for the storage code and inspiration.
## Instruction:
Remove VCS declaration: module now available on Packagist.
## Code After:
Drupal User Registry - a Codeception module for managing test users
===
A Codeception module for managing test users on Drupal sites.
## Install with Composer
This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer:
{
"require": {
"codeception/codeception": "2.0.*",
"pfaocle/codeception-module-drupal-user-registry": "dev-master"
}
}
## Example suite configuration
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser
- AcceptanceHelper
- DrupalUserRegistry
config:
PhpBrowser:
url: 'http://localhost/myapp/'
DrupalUserRegistry:
roles: ['administrator', 'editor', 'sub editor', 'lowly-user', 'authenticated'] # A list of user roles.
password: 'test123!' # The password to use for all test users.
create: true # Whether to create all defined test users at the start of the suite.
delete: true # Whether to delete all defined test users at the end of the suite.
drush-alias: '@mysite.local' # The Drush alias to use when managing users via DrushTestUserManager.
## Acknowledgements
Props to [Andy Rigby](https://github.com/ixisandyr) for the storage code and inspiration.
| Drupal User Registry - a Codeception module for managing test users
===
A Codeception module for managing test users on Drupal sites.
## Install with Composer
+ This module is available on [Packagist](https://packagist.org/packages/pfaocle/codeception-module-drupal-user-registry) and can be installed with Composer:
+
{
- "repositories": [
- {
- "type": "vcs",
- "url": "https://github.com/pfaocle/codeception-module-drupal-user-registry.git"
- }
- ],
"require": {
"codeception/codeception": "2.0.*",
"pfaocle/codeception-module-drupal-user-registry": "dev-master"
}
}
## Example suite configuration
class_name: AcceptanceTester
modules:
enabled:
- PhpBrowser
- AcceptanceHelper
- DrupalUserRegistry
config:
PhpBrowser:
url: 'http://localhost/myapp/'
DrupalUserRegistry:
roles: ['administrator', 'editor', 'sub editor', 'lowly-user', 'authenticated'] # A list of user roles.
password: 'test123!' # The password to use for all test users.
create: true # Whether to create all defined test users at the start of the suite.
delete: true # Whether to delete all defined test users at the end of the suite.
drush-alias: '@mysite.local' # The Drush alias to use when managing users via DrushTestUserManager.
## Acknowledgements
Props to [Andy Rigby](https://github.com/ixisandyr) for the storage code and inspiration. | 8 | 0.186047 | 2 | 6 |
47949a496fa752910f8b6af1525141fa832850ab | test/unit/testEvent.js | test/unit/testEvent.js | 'use strict';
var jf = require('../../'),
expect = require('chai').expect,
fs = require('fs'),
path = require('path');
const obj1 = { msg: 'This is 1' };
const obj2 = { msg: 'This is 2' };
const objToIgnore = { msg: 'ignored' };
describe('Event executer ', function () {
it('works without error', function (done) {
jf
.event(
function( receiveListner, stopListener ){
setTimeout(() => {
receiveListner( obj1 );
setTimeout(() => {
receiveListner( obj2 );
stopListener();
receiveListner( objToIgnore );
}, 200 );
}, 200 );
},
function( obj ) { return './' + Math.random() + '.json'; } ,
function( err ){ console.log(err); }
)
.collect(
function(obj){
expect( obj[0] ).to.be.eql( obj1 );
expect( obj[1] ).to.be.eql( obj2 );
expect( obj.length ).to.be.equal( 2 );
done();
},
'./' + Math.random() + '.json',
function(err){ console.log(err); }
)
.exec();
});
});
| 'use strict';
var jf = require('../../'),
expect = require('chai').expect,
fs = require('fs'),
path = require('path');
const obj1 = { msg: 'This is 1' };
const obj2 = { msg: 'This is 2' };
const objToIgnore = { msg: 'ignored' };
describe('Event executer ', function () {
it('works without error', function (done) {
jf
.event(
function( receiveListner, stopListener ){
setTimeout(() => {
receiveListner( obj1 );
setTimeout(() => {
receiveListner( obj2 );
stopListener();
receiveListner( objToIgnore );
}, 200 );
}, 200 );
},
function( obj ) { return './' + Math.random() + '.json'; } ,
function( err ){ console.log(err); }
)
.collect(
function(obj){
expect( obj[0] ).to.be.eql( obj1 );
expect( obj[1] ).to.be.eql( obj2 );
expect( obj.length ).to.be.equal( 2 );
done();
return obj;
},
'./' + Math.random() + '.json',
function(err){ console.log(err); }
)
.exec();
});
});
| Add code to write collected JSON. This code does not affect current test result but tester get chance to see output | Add code to write collected JSON. This code does not affect current test result but tester get chance to see output
| JavaScript | bsd-3-clause | 7k8m/json.filed,7k8m/json.filed | javascript | ## Code Before:
'use strict';
var jf = require('../../'),
expect = require('chai').expect,
fs = require('fs'),
path = require('path');
const obj1 = { msg: 'This is 1' };
const obj2 = { msg: 'This is 2' };
const objToIgnore = { msg: 'ignored' };
describe('Event executer ', function () {
it('works without error', function (done) {
jf
.event(
function( receiveListner, stopListener ){
setTimeout(() => {
receiveListner( obj1 );
setTimeout(() => {
receiveListner( obj2 );
stopListener();
receiveListner( objToIgnore );
}, 200 );
}, 200 );
},
function( obj ) { return './' + Math.random() + '.json'; } ,
function( err ){ console.log(err); }
)
.collect(
function(obj){
expect( obj[0] ).to.be.eql( obj1 );
expect( obj[1] ).to.be.eql( obj2 );
expect( obj.length ).to.be.equal( 2 );
done();
},
'./' + Math.random() + '.json',
function(err){ console.log(err); }
)
.exec();
});
});
## Instruction:
Add code to write collected JSON. This code does not affect current test result but tester get chance to see output
## Code After:
'use strict';
var jf = require('../../'),
expect = require('chai').expect,
fs = require('fs'),
path = require('path');
const obj1 = { msg: 'This is 1' };
const obj2 = { msg: 'This is 2' };
const objToIgnore = { msg: 'ignored' };
describe('Event executer ', function () {
it('works without error', function (done) {
jf
.event(
function( receiveListner, stopListener ){
setTimeout(() => {
receiveListner( obj1 );
setTimeout(() => {
receiveListner( obj2 );
stopListener();
receiveListner( objToIgnore );
}, 200 );
}, 200 );
},
function( obj ) { return './' + Math.random() + '.json'; } ,
function( err ){ console.log(err); }
)
.collect(
function(obj){
expect( obj[0] ).to.be.eql( obj1 );
expect( obj[1] ).to.be.eql( obj2 );
expect( obj.length ).to.be.equal( 2 );
done();
return obj;
},
'./' + Math.random() + '.json',
function(err){ console.log(err); }
)
.exec();
});
});
| 'use strict';
var jf = require('../../'),
expect = require('chai').expect,
fs = require('fs'),
path = require('path');
const obj1 = { msg: 'This is 1' };
const obj2 = { msg: 'This is 2' };
const objToIgnore = { msg: 'ignored' };
describe('Event executer ', function () {
it('works without error', function (done) {
jf
.event(
function( receiveListner, stopListener ){
setTimeout(() => {
receiveListner( obj1 );
setTimeout(() => {
receiveListner( obj2 );
stopListener();
receiveListner( objToIgnore );
}, 200 );
}, 200 );
},
function( obj ) { return './' + Math.random() + '.json'; } ,
function( err ){ console.log(err); }
)
.collect(
function(obj){
expect( obj[0] ).to.be.eql( obj1 );
expect( obj[1] ).to.be.eql( obj2 );
expect( obj.length ).to.be.equal( 2 );
done();
+
+ return obj;
+
},
'./' + Math.random() + '.json',
function(err){ console.log(err); }
)
.exec();
});
}); | 3 | 0.0625 | 3 | 0 |
6c3a4589f56d0aaf00827b2c9b5771f7a9fe755b | docs/README.md | docs/README.md |
This documentation is designed to help you get your own hubot up and running.
### Deploying
You can deploy hubot to Heroku, which is the officially supported method.
Additionally you are able to deploy hubot to a UNIX-like system or Windows.
Please note the support for deploying to Windows isn't officially supported.
* [Deploying Hubot onto Heroku](deploying/heroku.md)
* [Deploying Hubot onto UNIX](deploying/unix.md)
* [Deploying Hubot onto Windows](deploying/windows.md)
## Adapters
Adapters are the part of hubot which interfaces with the service you wish to
communicate with hubot on. Hubot has two built in adapters for Campfire and
shell. There are also many community provided adapters for a variety of other
services.
### Core
* [Campfire](adapters/campfire.md)
* [Shell](adapters/shell.md)
### Community Provided
For more information on community provided adapters you should visit the
repositories and read the provided documentation.
* [Flowdock](https://github.com/flowdock/hubot-flowdock)
* [HipChat](https://github.com/hipchat/hubot-hipchat)
* [IRC](https://github.com/nandub/hubot-irc)
* [Partychat](https://github.com/iangreenleaf/hubot-partychat-hooks)
* [Talker](https://github.com/unixcharles/hubot-talker)
* [Twilio](https://github.com/egparedes/hubot-twilio)
* [Twitter](https://github.com/MathildeLemee/hubot-twitter)
* [XMPP](https://github.com/markstory/hubot-xmpp)
* [Gtalk](https://github.com/atmos/hubot-gtalk)
* [Yammer](https://github.com/athieriot/hubot-yammer)
* [Skype](https://github.com/netpro2k/hubot-skype)
* [Jabbr](https://github.com/smoak/hubot-jabbr)
* [iMessage](https://github.com/lazerwalker/hubot-imessage)
|
This documentation is designed to help you get your own hubot up and running.
### Deploying
You can deploy hubot to Heroku, which is the officially supported method.
Additionally you are able to deploy hubot to a UNIX-like system or Windows.
Please note the support for deploying to Windows isn't officially supported.
* [Deploying Hubot onto Heroku](deploying/heroku.md)
* [Deploying Hubot onto UNIX](deploying/unix.md)
* [Deploying Hubot onto Windows](deploying/windows.md)
| Remove adapters section already in adapters.md | Remove adapters section already in adapters.md
| Markdown | mit | blackwellops/hubot,msound/hubot,craig5/hubot,doudoupower/hubot,github/hubot,ajayanandgit/hubot,github/hubot,mauricionr/hubot,nandub/hubot,yujiroarai/hws-hubot,davidkassa/hubot,vkhang55/hubot,hubotio/hubot,keyvanakbary/hubot,scboucher/hubot,brodul/hubot,PropertyUX/nubot,minted/hubot,scboucher/hubot,fstehle/hubot,markstory/hubot,armilam/lessonly-bort,fgbreel/hubot,mutewinter/hubot,poppingtonic/hubot,iDTLabssl/hubot,sdimkov/hubot,kgrz/hubot,leohmoraes/hubot,WaleedAshraf/hubot,awbauer/hubot,zvelo/hubot,Mattlk13/Hubot,jschell/hubot,jasonrhodes/botzero,skcript/skubot,ToriTomyuTomyu/nothing-yet,bradparks/hubot__github_chat_bot,mjurczyk/hubot,RavenB/hubot,cameronmcefee/hubot,michaelansel/hubot,melexis/melexis-hubot,decaffeinate-examples/hubot,makii42/hubot,mrb/hubot,kkirsche/hubot,b3nj4m/hubot,tiagochiavericosta/hubot,alexchenfeng/hubot,decaffeinate-examples/hubot,ajschex/hubot,daudich/hubot,ClaudeBot/hubot,lisb/hubot,ouadie-lahdioui/hubot,rafaell-lycan/Hubot-X9,PopExpert/hubot,wieden-kennedy/hubot,Snorlock/hubot,chadfurman/hubot,jasonkarns/hubot,Drooids/hubot,PopExpert/hubot,hcxiong/hubot,RiddickSky/hubot,sharabash/hubot,eetuuuu/hubot,hotrannam/hubot,alex-zhang/hubot,pchaigno/hubot,ToriTomyuTomyu/nothing-yet,mcanthony/hubot,lisb/hubot,lisb/hubot,nandub/hubot,edorsey/hubot,alexchenfeng/hubot,shinvdu/hubot,alexchenfeng/hubot,rlugojr/hubot,danielcompton/hubot,rmdelo/appboy-hubot,krahman/hubot,markstory/hubot,AlexandrPuryshev/hubot,andrewpong/awp-hubot,aslihandincer/hubot,alexchenfeng/hubot,limianwang/hubot,gregkare/hubot,kristenmills/hubot,dopeboy/hubot,alexchenfeng/hubot,rayatbuzzfeed/hubot,GrimDerp/hubot,alucardzhou/hubot,hubotio/hubot,mujiansu/hubot,eshamow/gutterbot,ddmng/brazil82-hubot,CobyR/hubot,wyncode/hubot,mchill/hubot,plated/hubot,Arthraim/merlin,Hartmarken/hubot,ykelvis/hubot,ooohiroyukiooo/hubot,joshsobota/hubot,SIOPCO/hubot,cycomachead/hubot,geoffreyanderson/hubot,lukw00/hubot,taojuntjpp/hubot,bgranberry/hubot,PropertyUX/nubot,julianromera/hubot,jianchen2580/hubot,nakaearth/myhubot,howprice/hubot,codydaig/hubot,andrewpong/awp-hubot,voltsdigital/hubot,ykusumi/test-hubot | markdown | ## Code Before:
This documentation is designed to help you get your own hubot up and running.
### Deploying
You can deploy hubot to Heroku, which is the officially supported method.
Additionally you are able to deploy hubot to a UNIX-like system or Windows.
Please note the support for deploying to Windows isn't officially supported.
* [Deploying Hubot onto Heroku](deploying/heroku.md)
* [Deploying Hubot onto UNIX](deploying/unix.md)
* [Deploying Hubot onto Windows](deploying/windows.md)
## Adapters
Adapters are the part of hubot which interfaces with the service you wish to
communicate with hubot on. Hubot has two built in adapters for Campfire and
shell. There are also many community provided adapters for a variety of other
services.
### Core
* [Campfire](adapters/campfire.md)
* [Shell](adapters/shell.md)
### Community Provided
For more information on community provided adapters you should visit the
repositories and read the provided documentation.
* [Flowdock](https://github.com/flowdock/hubot-flowdock)
* [HipChat](https://github.com/hipchat/hubot-hipchat)
* [IRC](https://github.com/nandub/hubot-irc)
* [Partychat](https://github.com/iangreenleaf/hubot-partychat-hooks)
* [Talker](https://github.com/unixcharles/hubot-talker)
* [Twilio](https://github.com/egparedes/hubot-twilio)
* [Twitter](https://github.com/MathildeLemee/hubot-twitter)
* [XMPP](https://github.com/markstory/hubot-xmpp)
* [Gtalk](https://github.com/atmos/hubot-gtalk)
* [Yammer](https://github.com/athieriot/hubot-yammer)
* [Skype](https://github.com/netpro2k/hubot-skype)
* [Jabbr](https://github.com/smoak/hubot-jabbr)
* [iMessage](https://github.com/lazerwalker/hubot-imessage)
## Instruction:
Remove adapters section already in adapters.md
## Code After:
This documentation is designed to help you get your own hubot up and running.
### Deploying
You can deploy hubot to Heroku, which is the officially supported method.
Additionally you are able to deploy hubot to a UNIX-like system or Windows.
Please note the support for deploying to Windows isn't officially supported.
* [Deploying Hubot onto Heroku](deploying/heroku.md)
* [Deploying Hubot onto UNIX](deploying/unix.md)
* [Deploying Hubot onto Windows](deploying/windows.md)
|
This documentation is designed to help you get your own hubot up and running.
### Deploying
You can deploy hubot to Heroku, which is the officially supported method.
Additionally you are able to deploy hubot to a UNIX-like system or Windows.
Please note the support for deploying to Windows isn't officially supported.
* [Deploying Hubot onto Heroku](deploying/heroku.md)
* [Deploying Hubot onto UNIX](deploying/unix.md)
* [Deploying Hubot onto Windows](deploying/windows.md)
-
- ## Adapters
-
- Adapters are the part of hubot which interfaces with the service you wish to
- communicate with hubot on. Hubot has two built in adapters for Campfire and
- shell. There are also many community provided adapters for a variety of other
- services.
-
- ### Core
-
- * [Campfire](adapters/campfire.md)
- * [Shell](adapters/shell.md)
-
- ### Community Provided
-
- For more information on community provided adapters you should visit the
- repositories and read the provided documentation.
-
- * [Flowdock](https://github.com/flowdock/hubot-flowdock)
- * [HipChat](https://github.com/hipchat/hubot-hipchat)
- * [IRC](https://github.com/nandub/hubot-irc)
- * [Partychat](https://github.com/iangreenleaf/hubot-partychat-hooks)
- * [Talker](https://github.com/unixcharles/hubot-talker)
- * [Twilio](https://github.com/egparedes/hubot-twilio)
- * [Twitter](https://github.com/MathildeLemee/hubot-twitter)
- * [XMPP](https://github.com/markstory/hubot-xmpp)
- * [Gtalk](https://github.com/atmos/hubot-gtalk)
- * [Yammer](https://github.com/athieriot/hubot-yammer)
- * [Skype](https://github.com/netpro2k/hubot-skype)
- * [Jabbr](https://github.com/smoak/hubot-jabbr)
- * [iMessage](https://github.com/lazerwalker/hubot-imessage) | 31 | 0.72093 | 0 | 31 |
d270dda908b0bb94acdf26d2780996b1639244fa | app/assets/stylesheets/components/search/_search-main.scss | app/assets/stylesheets/components/search/_search-main.scss | //--------------------------------------------------
// class - main
//--------------------------------------------------
&--main {
position: relative;
.search {
&__pane {
width: 100%;
&.popout {
@include responsive(width, calc(100vw - 2*#{$gutter-small}), rem-calc(600), rem-calc(600));
display: none;
position: absolute;
top: 0;
right: 0;
z-index: $z-300;
}
&.popout.active { display: block; }
}
&__close {
@include button-close;
position: absolute;
top: 50%;
right: rem-calc(16);
transform: translateY(-50%) scale(.7);
}
&__icon {
@include icon-search-green;
position: absolute;
top: 50%;
left: rem-calc(16);
transform: translateY(-50%);
}
&__input {
padding-left: rem-calc(50);
width: 100%;
}
&__trigger {
@include button-search;
display: block;
}
}
} | //--------------------------------------------------
// class - main
//--------------------------------------------------
&--main {
position: relative;
.search {
&__pane {
width: 100%;
&.popout {
background-color: $white;
height: 100vh;
display: none;
position: fixed;
top: 0;
right: 0;
z-index: $z-300;
@include breakpoint($small) {
background-color: transparent;
width: rem-calc(600); height: auto;
position: absolute;
}
}
&.popout.active { display: block; }
}
&__close {
@include button-close;
position: absolute;
top: rem-calc(28);
right: rem-calc(16);
transform: translateY(-50%) scale(.7);
@include breakpoint($small) { top: 50%; }
}
&__icon {
@include icon-search-green;
position: absolute;
top: rem-calc(104);
left: rem-calc(20);
transform: translateY(-50%);
@include breakpoint($small) {
left: rem-calc(16);
top: 50%;
}
}
&__input {
@include breakpoint-down($small) {
border: none;
border-bottom: black 1px solid;
border-radius: 0;
margin-top: rem-calc(80);
margin-left: $gutter-small;
}
padding-left: rem-calc(32);
width: calc(100vw - 2*#{$gutter-small});
@include breakpoint($small) {
padding-left: rem-calc(50);
width: 100%;
}
}
&__trigger {
@include button-search;
display: block;
}
}
} | Update styling of the search on mobile | Update styling of the search on mobile
| SCSS | bsd-3-clause | unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet | scss | ## Code Before:
//--------------------------------------------------
// class - main
//--------------------------------------------------
&--main {
position: relative;
.search {
&__pane {
width: 100%;
&.popout {
@include responsive(width, calc(100vw - 2*#{$gutter-small}), rem-calc(600), rem-calc(600));
display: none;
position: absolute;
top: 0;
right: 0;
z-index: $z-300;
}
&.popout.active { display: block; }
}
&__close {
@include button-close;
position: absolute;
top: 50%;
right: rem-calc(16);
transform: translateY(-50%) scale(.7);
}
&__icon {
@include icon-search-green;
position: absolute;
top: 50%;
left: rem-calc(16);
transform: translateY(-50%);
}
&__input {
padding-left: rem-calc(50);
width: 100%;
}
&__trigger {
@include button-search;
display: block;
}
}
}
## Instruction:
Update styling of the search on mobile
## Code After:
//--------------------------------------------------
// class - main
//--------------------------------------------------
&--main {
position: relative;
.search {
&__pane {
width: 100%;
&.popout {
background-color: $white;
height: 100vh;
display: none;
position: fixed;
top: 0;
right: 0;
z-index: $z-300;
@include breakpoint($small) {
background-color: transparent;
width: rem-calc(600); height: auto;
position: absolute;
}
}
&.popout.active { display: block; }
}
&__close {
@include button-close;
position: absolute;
top: rem-calc(28);
right: rem-calc(16);
transform: translateY(-50%) scale(.7);
@include breakpoint($small) { top: 50%; }
}
&__icon {
@include icon-search-green;
position: absolute;
top: rem-calc(104);
left: rem-calc(20);
transform: translateY(-50%);
@include breakpoint($small) {
left: rem-calc(16);
top: 50%;
}
}
&__input {
@include breakpoint-down($small) {
border: none;
border-bottom: black 1px solid;
border-radius: 0;
margin-top: rem-calc(80);
margin-left: $gutter-small;
}
padding-left: rem-calc(32);
width: calc(100vw - 2*#{$gutter-small});
@include breakpoint($small) {
padding-left: rem-calc(50);
width: 100%;
}
}
&__trigger {
@include button-search;
display: block;
}
}
} | //--------------------------------------------------
// class - main
//--------------------------------------------------
&--main {
position: relative;
.search {
&__pane {
width: 100%;
&.popout {
- @include responsive(width, calc(100vw - 2*#{$gutter-small}), rem-calc(600), rem-calc(600));
+ background-color: $white;
+ height: 100vh;
display: none;
- position: absolute;
? ^^^^^^^
+ position: fixed;
? ^^^ +
top: 0;
right: 0;
z-index: $z-300;
+
+ @include breakpoint($small) {
+ background-color: transparent;
+ width: rem-calc(600); height: auto;
+
+ position: absolute;
+ }
}
&.popout.active { display: block; }
}
&__close {
@include button-close;
position: absolute;
- top: 50%;
+ top: rem-calc(28);
right: rem-calc(16);
transform: translateY(-50%) scale(.7);
+
+ @include breakpoint($small) { top: 50%; }
}
&__icon {
@include icon-search-green;
position: absolute;
- top: 50%;
+ top: rem-calc(104);
- left: rem-calc(16);
? ^^
+ left: rem-calc(20);
? ^^
transform: translateY(-50%);
+
+ @include breakpoint($small) {
+ left: rem-calc(16);
+
+ top: 50%;
+ }
}
&__input {
+ @include breakpoint-down($small) {
+ border: none;
+ border-bottom: black 1px solid;
+ border-radius: 0;
+ margin-top: rem-calc(80);
+ margin-left: $gutter-small;
+ }
+
+ padding-left: rem-calc(32);
+ width: calc(100vw - 2*#{$gutter-small});
+
+ @include breakpoint($small) {
- padding-left: rem-calc(50);
+ padding-left: rem-calc(50);
? ++
- width: 100%;
+ width: 100%;
? ++ +
+ }
}
&__trigger {
@include button-search;
display: block;
}
}
} | 43 | 0.796296 | 36 | 7 |
438326cc3aa285a4d05fa8830381e6d3716262b2 | noetikon/files/templates/files/directory_list.html | noetikon/files/templates/files/directory_list.html | {% extends "base.html" %}
{% block content %}
<h2>Directories:</h2>
<table class="inventory-table">
<tr>
<th>Name:</th>
<th>Size:</th>
<th>Last modified:</th>
</tr>
{% for directory in object_list %}
<td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}</a></td>
<td class="meta">{{ file.size|filesizeformat }}</td>
<td class="meta">{{ file.modified_time|timesince }}</td>
{% endfor %}
</table>
{% endblock %}
| {% extends "base.html" %}
{% block content %}
<h2>Directories:</h2>
<table class="inventory-table">
<tr>
<th>Name:</th>
<th>Size:</th>
<th>Last modified:</th>
</tr>
{% for directory in object_list %}
<tr>
<td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}</a></td>
<td class="meta">{{ file.size|filesizeformat }}</td>
<td class="meta">{{ file.modified_time|timesince }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
| Add missing tr tag in directory-list | Add missing tr tag in directory-list
| HTML | mit | webkom/noetikon,webkom/noetikon | html | ## Code Before:
{% extends "base.html" %}
{% block content %}
<h2>Directories:</h2>
<table class="inventory-table">
<tr>
<th>Name:</th>
<th>Size:</th>
<th>Last modified:</th>
</tr>
{% for directory in object_list %}
<td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}</a></td>
<td class="meta">{{ file.size|filesizeformat }}</td>
<td class="meta">{{ file.modified_time|timesince }}</td>
{% endfor %}
</table>
{% endblock %}
## Instruction:
Add missing tr tag in directory-list
## Code After:
{% extends "base.html" %}
{% block content %}
<h2>Directories:</h2>
<table class="inventory-table">
<tr>
<th>Name:</th>
<th>Size:</th>
<th>Last modified:</th>
</tr>
{% for directory in object_list %}
<tr>
<td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}</a></td>
<td class="meta">{{ file.size|filesizeformat }}</td>
<td class="meta">{{ file.modified_time|timesince }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
| {% extends "base.html" %}
{% block content %}
<h2>Directories:</h2>
<table class="inventory-table">
<tr>
<th>Name:</th>
<th>Size:</th>
<th>Last modified:</th>
</tr>
{% for directory in object_list %}
+ <tr>
- <td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}</a></td>
+ <td><a href="{% url 'directory-detail' directory.slug %}">{{ directory.name }}</a></td>
? ++
- <td class="meta">{{ file.size|filesizeformat }}</td>
+ <td class="meta">{{ file.size|filesizeformat }}</td>
? ++
- <td class="meta">{{ file.modified_time|timesince }}</td>
+ <td class="meta">{{ file.modified_time|timesince }}</td>
? ++
+ </tr>
{% endfor %}
</table>
{% endblock %} | 8 | 0.470588 | 5 | 3 |
e98d0592047b35fd92b0fc8873ee806d22b7591a | ci/pipelines/dockerfile.yml | ci/pipelines/dockerfile.yml | resources:
- name: LicenseFinder
type: git
source:
uri: https://github.com/pivotal/LicenseFinder
branch: master
- name: image
type: docker-image
source:
repository: licensefinder/license_finder
email: ((LicenseFinderDockerEmail))
username: ((LicenseFinderDockerUserName))
password: ((LicenseFinderDockerPassword))
jobs:
- name: docker
plan:
- get: LicenseFinder
- put: image
params:
build: LicenseFinder
build-arg:
- key: no-cache
value: true | resources:
- name: LicenseFinder
type: git
source:
uri: https://github.com/pivotal/LicenseFinder
branch: master
- name: image
type: docker-image
source:
repository: licensefinder/license_finder
email: ((LicenseFinderDockerEmail))
username: ((LicenseFinderDockerUserName))
password: ((LicenseFinderDockerPassword))
jobs:
- name: docker
plan:
- get: LicenseFinder
- put: image
params:
build: LicenseFinder
| Remove unneccesary no-cache build arg | Remove unneccesary no-cache build arg
| YAML | mit | bdshroyer/LicenseFinder,pivotal/LicenseFinder,bdshroyer/LicenseFinder,sschuberth/LicenseFinder,sschuberth/LicenseFinder,bdshroyer/LicenseFinder,sschuberth/LicenseFinder,bdshroyer/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,sschuberth/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,pivotal/LicenseFinder,bdshroyer/LicenseFinder,pivotal/LicenseFinder,sschuberth/LicenseFinder | yaml | ## Code Before:
resources:
- name: LicenseFinder
type: git
source:
uri: https://github.com/pivotal/LicenseFinder
branch: master
- name: image
type: docker-image
source:
repository: licensefinder/license_finder
email: ((LicenseFinderDockerEmail))
username: ((LicenseFinderDockerUserName))
password: ((LicenseFinderDockerPassword))
jobs:
- name: docker
plan:
- get: LicenseFinder
- put: image
params:
build: LicenseFinder
build-arg:
- key: no-cache
value: true
## Instruction:
Remove unneccesary no-cache build arg
## Code After:
resources:
- name: LicenseFinder
type: git
source:
uri: https://github.com/pivotal/LicenseFinder
branch: master
- name: image
type: docker-image
source:
repository: licensefinder/license_finder
email: ((LicenseFinderDockerEmail))
username: ((LicenseFinderDockerUserName))
password: ((LicenseFinderDockerPassword))
jobs:
- name: docker
plan:
- get: LicenseFinder
- put: image
params:
build: LicenseFinder
| resources:
- name: LicenseFinder
type: git
source:
uri: https://github.com/pivotal/LicenseFinder
branch: master
- name: image
type: docker-image
source:
repository: licensefinder/license_finder
email: ((LicenseFinderDockerEmail))
username: ((LicenseFinderDockerUserName))
password: ((LicenseFinderDockerPassword))
jobs:
- name: docker
plan:
- get: LicenseFinder
- put: image
params:
build: LicenseFinder
- build-arg:
- - key: no-cache
- value: true | 3 | 0.12 | 0 | 3 |
2270f50628218d160aed112f8f90cb3fde9a6028 | releasenotes/source/ocata.rst | releasenotes/source/ocata.rst | ===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Removed the ``sahara`` client in favor of the ``openstack`` client.
| ===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Removed the ``sahara`` client in favor of the ``openstack`` client.
Configuration Reference
~~~~~~~~~~~~~~~~~~~~~~~
* Cleaned up content that is not directly configuration options.
* Created a few vendor plug-in sections newly added for Ocata.
| Add Configuration Reference release notes for Ocata | Add Configuration Reference release notes for Ocata
Change-Id: Id5edfaff2c3cb53fabe313ed73360ca86cd4e830
| reStructuredText | apache-2.0 | openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals | restructuredtext | ## Code Before:
===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Removed the ``sahara`` client in favor of the ``openstack`` client.
## Instruction:
Add Configuration Reference release notes for Ocata
Change-Id: Id5edfaff2c3cb53fabe313ed73360ca86cd4e830
## Code After:
===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Removed the ``sahara`` client in favor of the ``openstack`` client.
Configuration Reference
~~~~~~~~~~~~~~~~~~~~~~~
* Cleaned up content that is not directly configuration options.
* Created a few vendor plug-in sections newly added for Ocata.
| ===========================
Next release: Ocata release
===========================
* The documentation sites ``developer.openstack.org`` and
``docs.openstack.org`` are now set up with ``https`` and links to
pages have been changed to use ``https`` by default.
Command-Line Interface Reference
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Removed the ``sahara`` client in favor of the ``openstack`` client.
+
+ Configuration Reference
+ ~~~~~~~~~~~~~~~~~~~~~~~
+
+ * Cleaned up content that is not directly configuration options.
+
+ * Created a few vendor plug-in sections newly added for Ocata. | 7 | 0.583333 | 7 | 0 |
5186e59df09b6dc01f18c0536bca085120a2d828 | circle.yml | circle.yml | machine:
node:
version: 6.1
test:
override:
- npm run build
- npm run link
- danger
post:
- npm run flow
- npm run lint
| machine:
node:
version: 6.1
test:
override:
- npm run build
- npm run link
- danger
post:
- npm run lint
| Remove flow from CircleCI build config | Remove flow from CircleCI build config
| YAML | mit | danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js | yaml | ## Code Before:
machine:
node:
version: 6.1
test:
override:
- npm run build
- npm run link
- danger
post:
- npm run flow
- npm run lint
## Instruction:
Remove flow from CircleCI build config
## Code After:
machine:
node:
version: 6.1
test:
override:
- npm run build
- npm run link
- danger
post:
- npm run lint
| machine:
node:
version: 6.1
test:
override:
- npm run build
- npm run link
- danger
post:
- - npm run flow
- npm run lint | 1 | 0.083333 | 0 | 1 |
0aee10e7d450d8d0b697f35fdf4cea49867e279f | cmd/dep/testdata/harness_tests/init/glide/case4/final/Gopkg.toml | cmd/dep/testdata/harness_tests/init/glide/case4/final/Gopkg.toml |
[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
|
[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
[prune]
go-tests = true
unused-packages = true
| Fix broken test from prune init | dep: Fix broken test from prune init
| TOML | bsd-3-clause | golang/dep,golang/dep,golang/dep | toml | ## Code Before:
[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
## Instruction:
dep: Fix broken test from prune init
## Code After:
[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
[prune]
go-tests = true
unused-packages = true
|
[[constraint]]
name = "github.com/sdboyer/deptestdos"
version = "2.0.0"
+
+ [prune]
+ go-tests = true
+ unused-packages = true | 4 | 1 | 4 | 0 |
f100327053dd9cf8a328418c030f6ceb5d3e4b4e | spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js | spec/dummy/app/assets/javascripts/features/user_visits_admin_page_spec.js | test('User visits the admin page.', function() {
visit('/');
andThen(function() {
// List of posts
equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.');
equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post');
equal(find('.posts-list .post:first .summary').text().trim(), 'Hello world.', 'The summary should be displayed for each post');
// Main content area
ok(find('article.post .logo').length, 'The logo should be in the main content area.');
});
});
| test('User visits the admin page.', function() {
visit('/');
andThen(function() {
// List of posts
equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.');
equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post');
equal(find('.posts-list .post:first .summary').text().trim(), 'Hello world.', 'The summary should be displayed for each post');
// Main content area
equal(find('article.post h1').text().trim(), 'Ember Is Fun!', 'The first post title should be displayed');
});
});
| Fix test for visiting admin page | Fix test for visiting admin page
| JavaScript | mit | codelation/blogelator,codelation/blogelator,codelation/blogelator | javascript | ## Code Before:
test('User visits the admin page.', function() {
visit('/');
andThen(function() {
// List of posts
equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.');
equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post');
equal(find('.posts-list .post:first .summary').text().trim(), 'Hello world.', 'The summary should be displayed for each post');
// Main content area
ok(find('article.post .logo').length, 'The logo should be in the main content area.');
});
});
## Instruction:
Fix test for visiting admin page
## Code After:
test('User visits the admin page.', function() {
visit('/');
andThen(function() {
// List of posts
equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.');
equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post');
equal(find('.posts-list .post:first .summary').text().trim(), 'Hello world.', 'The summary should be displayed for each post');
// Main content area
equal(find('article.post h1').text().trim(), 'Ember Is Fun!', 'The first post title should be displayed');
});
});
| test('User visits the admin page.', function() {
visit('/');
andThen(function() {
// List of posts
equal(find('.posts-list .post').length, 2, 'The index page should have 2 posts.');
equal(find('.posts-list .post:first .date').text().trim(), 'January 12, 2014', 'The date should be displayed for each post');
equal(find('.posts-list .post:first .summary').text().trim(), 'Hello world.', 'The summary should be displayed for each post');
// Main content area
- ok(find('article.post .logo').length, 'The logo should be in the main content area.');
+ equal(find('article.post h1').text().trim(), 'Ember Is Fun!', 'The first post title should be displayed');
});
}); | 2 | 0.166667 | 1 | 1 |
5c9912f509e00c238e61f67ed3b14a4b12850eb9 | app/models/railgun/asset.rb | app/models/railgun/asset.rb | class Railgun::Asset < ActiveRecord::Base
mount_uploader :image, ImageUploader
attr_accessible :caption, :image
validates :caption, :image, :presence => true
before_validation :guess_caption
def to_s
caption
end
private
def guess_caption
self.caption = self.caption.presence
self.caption ||= File.basename(image.path, ".*").gsub("_", " ")
end
end
| class Railgun::Asset < ActiveRecord::Base
mount_uploader :image, ImageUploader
attr_accessible :caption, :image
validates :caption, :image, :presence => true
before_validation :guess_caption
def to_s
caption
end
private
def guess_caption
self.caption = self.caption.presence
self.caption ||= File.basename(image.path, ".*").gsub("_", " ") if image.path
end
end
| Handle nil image path when guessing caption | Handle nil image path when guessing caption
| Ruby | mit | lateralstudios/railgun_content,lateralstudios/railgun_content,lateralstudios/railgun_content | ruby | ## Code Before:
class Railgun::Asset < ActiveRecord::Base
mount_uploader :image, ImageUploader
attr_accessible :caption, :image
validates :caption, :image, :presence => true
before_validation :guess_caption
def to_s
caption
end
private
def guess_caption
self.caption = self.caption.presence
self.caption ||= File.basename(image.path, ".*").gsub("_", " ")
end
end
## Instruction:
Handle nil image path when guessing caption
## Code After:
class Railgun::Asset < ActiveRecord::Base
mount_uploader :image, ImageUploader
attr_accessible :caption, :image
validates :caption, :image, :presence => true
before_validation :guess_caption
def to_s
caption
end
private
def guess_caption
self.caption = self.caption.presence
self.caption ||= File.basename(image.path, ".*").gsub("_", " ") if image.path
end
end
| class Railgun::Asset < ActiveRecord::Base
mount_uploader :image, ImageUploader
attr_accessible :caption, :image
validates :caption, :image, :presence => true
before_validation :guess_caption
def to_s
caption
end
private
def guess_caption
self.caption = self.caption.presence
- self.caption ||= File.basename(image.path, ".*").gsub("_", " ")
+ self.caption ||= File.basename(image.path, ".*").gsub("_", " ") if image.path
? ++++++++++++++
end
end | 2 | 0.090909 | 1 | 1 |
32c57c1595268b7e91dc26185e040603563ea7fe | src/config/firebase-admin.js | src/config/firebase-admin.js | import admin from 'firebase-admin';
const serviceAccount = require('./firebase-admin-key.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://bolg-d1098.firebaseio.com',
storageBucket: 'bolg-d1098.appspot.com',
});
export default admin;
| import admin from 'firebase-admin';
const serviceAccount = require('./firebase-admin-key.json');
if (!admin.apps.length) {
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://bolg-d1098.firebaseio.com',
storageBucket: 'bolg-d1098.appspot.com',
});
}
export default admin;
| Check if app is already initialized | Check if app is already initialized
| JavaScript | mit | tuelsch/bolg,tuelsch/bolg | javascript | ## Code Before:
import admin from 'firebase-admin';
const serviceAccount = require('./firebase-admin-key.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://bolg-d1098.firebaseio.com',
storageBucket: 'bolg-d1098.appspot.com',
});
export default admin;
## Instruction:
Check if app is already initialized
## Code After:
import admin from 'firebase-admin';
const serviceAccount = require('./firebase-admin-key.json');
if (!admin.apps.length) {
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: 'https://bolg-d1098.firebaseio.com',
storageBucket: 'bolg-d1098.appspot.com',
});
}
export default admin;
| import admin from 'firebase-admin';
const serviceAccount = require('./firebase-admin-key.json');
+ if (!admin.apps.length) {
- admin.initializeApp({
+ admin.initializeApp({
? ++
- credential: admin.credential.cert(serviceAccount),
+ credential: admin.credential.cert(serviceAccount),
? ++
- databaseURL: 'https://bolg-d1098.firebaseio.com',
+ databaseURL: 'https://bolg-d1098.firebaseio.com',
? ++
- storageBucket: 'bolg-d1098.appspot.com',
+ storageBucket: 'bolg-d1098.appspot.com',
? ++
- });
+ });
? ++
+ }
export default admin; | 12 | 1.090909 | 7 | 5 |
7f340a814b3843f572bc7e21f8a9748172828bed | app/views/projects/protected_tags/_create_protected_tag.html.haml | app/views/projects/protected_tags/_create_protected_tag.html.haml | - content_for :create_access_levels do
.create_access_levels-container
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-create wide',
dropdown_class: 'dropdown-menu-selectable',
data: { field_name: 'protected_tag[create_access_levels_attributes][0][access_level]', input_id: 'create_access_levels_attributes' }})
= render 'projects/protected_tags/shared/create_protected_tag'
| - content_for :create_access_levels do
.create_access_levels-container
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-create wide',
dropdown_class: 'dropdown-menu-selectable capitalize-header',
data: { field_name: 'protected_tag[create_access_levels_attributes][0][access_level]', input_id: 'create_access_levels_attributes' }})
= render 'projects/protected_tags/shared/create_protected_tag'
| Add missing CSS class to capitalize the protectec tag header dropdown | Add missing CSS class to capitalize the protectec tag header dropdown
| Haml | mit | jirutka/gitlabhq,iiet/iiet-git,dreampet/gitlab,mmkassem/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,iiet/iiet-git,dreampet/gitlab,stoplightio/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,iiet/iiet-git,mmkassem/gitlabhq,axilleas/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,stoplightio/gitlabhq | haml | ## Code Before:
- content_for :create_access_levels do
.create_access_levels-container
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-create wide',
dropdown_class: 'dropdown-menu-selectable',
data: { field_name: 'protected_tag[create_access_levels_attributes][0][access_level]', input_id: 'create_access_levels_attributes' }})
= render 'projects/protected_tags/shared/create_protected_tag'
## Instruction:
Add missing CSS class to capitalize the protectec tag header dropdown
## Code After:
- content_for :create_access_levels do
.create_access_levels-container
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-create wide',
dropdown_class: 'dropdown-menu-selectable capitalize-header',
data: { field_name: 'protected_tag[create_access_levels_attributes][0][access_level]', input_id: 'create_access_levels_attributes' }})
= render 'projects/protected_tags/shared/create_protected_tag'
| - content_for :create_access_levels do
.create_access_levels-container
= dropdown_tag('Select',
options: { toggle_class: 'js-allowed-to-create wide',
- dropdown_class: 'dropdown-menu-selectable',
+ dropdown_class: 'dropdown-menu-selectable capitalize-header',
? ++++++++++++++++++
data: { field_name: 'protected_tag[create_access_levels_attributes][0][access_level]', input_id: 'create_access_levels_attributes' }})
= render 'projects/protected_tags/shared/create_protected_tag' | 2 | 0.25 | 1 | 1 |
d3ccc13f20f04b640ad77c6b997b2142ee69fe71 | composer.json | composer.json | {
"name": "typo3-themes/theme-bootstrap4",
"type": "typo3-cms-extension",
"description": "TYPO3 THEMES Base-theme using Bootstrap 4",
"homepage": "http://typo3-themes.org",
"license": [
"GPL-2.0+"
],
"keywords": [
"TYPO3 CMS",
"TYPO3 THEMES",
"THEMES",
"BOOTSTRAP",
"FLUID",
"CUSTOMIZE"
],
"support": {
"issues": "https://github.com/typo3-themes/theme_bootstrap4/issues"
},
"replace": {
"theme_bootstrap4": "self.version",
"typo3-ter/theme_bootstrap4": "self.version"
},
"require": {
"typo3-ter/dyncss-scss": ">=1.1.0,<2.0.0",
"typo3-themes/themes": ">=8.7.6,<8.8",
"gridelementsteam/gridelements": ">=8.0.0,<8.8"
}
}
| {
"name": "typo3-themes/theme-bootstrap4",
"type": "typo3-cms-extension",
"description": "TYPO3 THEMES Base-theme using Bootstrap 4",
"homepage": "http://typo3-themes.org",
"license": [
"GPL-2.0+"
],
"keywords": [
"TYPO3 CMS",
"TYPO3 THEMES",
"THEMES",
"BOOTSTRAP",
"FLUID",
"CUSTOMIZE"
],
"support": {
"issues": "https://github.com/typo3-themes/theme_bootstrap4/issues"
},
"replace": {
"theme_bootstrap4": "self.version",
"typo3-ter/theme_bootstrap4": "self.version"
},
"require": {
"kaystrobach/dyncss_scss": ">=1.2.0",
"typo3-themes/themes": ">=8.7.6",
"gridelementsteam/gridelements": ">=8.0.0"
}
}
| Change requirements to make master branch installable with TYPO3 9 | [TASK] Change requirements to make master branch installable with TYPO3 9
| JSON | mit | typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4,typo3-themes/theme_bootstrap4 | json | ## Code Before:
{
"name": "typo3-themes/theme-bootstrap4",
"type": "typo3-cms-extension",
"description": "TYPO3 THEMES Base-theme using Bootstrap 4",
"homepage": "http://typo3-themes.org",
"license": [
"GPL-2.0+"
],
"keywords": [
"TYPO3 CMS",
"TYPO3 THEMES",
"THEMES",
"BOOTSTRAP",
"FLUID",
"CUSTOMIZE"
],
"support": {
"issues": "https://github.com/typo3-themes/theme_bootstrap4/issues"
},
"replace": {
"theme_bootstrap4": "self.version",
"typo3-ter/theme_bootstrap4": "self.version"
},
"require": {
"typo3-ter/dyncss-scss": ">=1.1.0,<2.0.0",
"typo3-themes/themes": ">=8.7.6,<8.8",
"gridelementsteam/gridelements": ">=8.0.0,<8.8"
}
}
## Instruction:
[TASK] Change requirements to make master branch installable with TYPO3 9
## Code After:
{
"name": "typo3-themes/theme-bootstrap4",
"type": "typo3-cms-extension",
"description": "TYPO3 THEMES Base-theme using Bootstrap 4",
"homepage": "http://typo3-themes.org",
"license": [
"GPL-2.0+"
],
"keywords": [
"TYPO3 CMS",
"TYPO3 THEMES",
"THEMES",
"BOOTSTRAP",
"FLUID",
"CUSTOMIZE"
],
"support": {
"issues": "https://github.com/typo3-themes/theme_bootstrap4/issues"
},
"replace": {
"theme_bootstrap4": "self.version",
"typo3-ter/theme_bootstrap4": "self.version"
},
"require": {
"kaystrobach/dyncss_scss": ">=1.2.0",
"typo3-themes/themes": ">=8.7.6",
"gridelementsteam/gridelements": ">=8.0.0"
}
}
| {
"name": "typo3-themes/theme-bootstrap4",
"type": "typo3-cms-extension",
"description": "TYPO3 THEMES Base-theme using Bootstrap 4",
"homepage": "http://typo3-themes.org",
"license": [
"GPL-2.0+"
],
"keywords": [
"TYPO3 CMS",
"TYPO3 THEMES",
"THEMES",
"BOOTSTRAP",
"FLUID",
"CUSTOMIZE"
],
"support": {
"issues": "https://github.com/typo3-themes/theme_bootstrap4/issues"
},
"replace": {
"theme_bootstrap4": "self.version",
"typo3-ter/theme_bootstrap4": "self.version"
},
"require": {
- "typo3-ter/dyncss-scss": ">=1.1.0,<2.0.0",
+ "kaystrobach/dyncss_scss": ">=1.2.0",
- "typo3-themes/themes": ">=8.7.6,<8.8",
? -----
+ "typo3-themes/themes": ">=8.7.6",
- "gridelementsteam/gridelements": ">=8.0.0,<8.8"
? -----
+ "gridelementsteam/gridelements": ">=8.0.0"
}
} | 6 | 0.206897 | 3 | 3 |
57103d1f7e4eee6f4405de13c9650663395b0007 | src/storage-queue/index.js | src/storage-queue/index.js | var azure = require("azure-storage");
//
var nconf = require("nconf");
nconf.env()
.file({
file: "config.json",
search: true
});
var storageName = nconf.get("StorageName");
var storageKey = nconf.get("StorageKey");
var dev = nconf.get("NODE_ENV");
| var azure = require("azure-storage");
//
var nconf = require("nconf");
nconf.env()
.file({
file: "config.json",
search: true
});
var QueueName = "my-queue";
var storageName = nconf.get("StorageName");
var storageKey = nconf.get("StorageKey");
var dev = nconf.get("NODE_ENV");
//
var retryOperations = new azure.ExponentialRetryPolicyFilter();
var queueSvc = azure.createQueueService(storageName,
storageKey).withFilter(retryOperations);
if(queueSvc) {
queueSvc.createQueueIfNotExists(QueueName, function(error, results, response) {
if(error) {
return;
}
var created = results;
if(created) {
console.log("created new queue");
} else {
console.log("queue already exists");
}
var ticket = {
EventId: 4711,
Email: "peter@example.com",
NumberOfTickets: 2,
OrderDate: Date.UTC
};
var msg = JSON.stringify(ticket);
queueSvc.createMessage(QueueName, msg, function(error, result, response) {
if(error) {
return;
}
queueSvc.peekMessages(QueueName, {
numOfMessages: 32
}, function(error, result, response){
if(!error){
// Message text is in messages[0].messagetext
}
});
});
});
} | Add couple of simple queue access methods | Add couple of simple queue access methods
| JavaScript | mit | peterblazejewicz/azure-aspnet5-examples,peterblazejewicz/azure-aspnet5-examples | javascript | ## Code Before:
var azure = require("azure-storage");
//
var nconf = require("nconf");
nconf.env()
.file({
file: "config.json",
search: true
});
var storageName = nconf.get("StorageName");
var storageKey = nconf.get("StorageKey");
var dev = nconf.get("NODE_ENV");
## Instruction:
Add couple of simple queue access methods
## Code After:
var azure = require("azure-storage");
//
var nconf = require("nconf");
nconf.env()
.file({
file: "config.json",
search: true
});
var QueueName = "my-queue";
var storageName = nconf.get("StorageName");
var storageKey = nconf.get("StorageKey");
var dev = nconf.get("NODE_ENV");
//
var retryOperations = new azure.ExponentialRetryPolicyFilter();
var queueSvc = azure.createQueueService(storageName,
storageKey).withFilter(retryOperations);
if(queueSvc) {
queueSvc.createQueueIfNotExists(QueueName, function(error, results, response) {
if(error) {
return;
}
var created = results;
if(created) {
console.log("created new queue");
} else {
console.log("queue already exists");
}
var ticket = {
EventId: 4711,
Email: "peter@example.com",
NumberOfTickets: 2,
OrderDate: Date.UTC
};
var msg = JSON.stringify(ticket);
queueSvc.createMessage(QueueName, msg, function(error, result, response) {
if(error) {
return;
}
queueSvc.peekMessages(QueueName, {
numOfMessages: 32
}, function(error, result, response){
if(!error){
// Message text is in messages[0].messagetext
}
});
});
});
} | var azure = require("azure-storage");
//
var nconf = require("nconf");
nconf.env()
.file({
file: "config.json",
search: true
});
+ var QueueName = "my-queue";
var storageName = nconf.get("StorageName");
var storageKey = nconf.get("StorageKey");
var dev = nconf.get("NODE_ENV");
+ //
+ var retryOperations = new azure.ExponentialRetryPolicyFilter();
+ var queueSvc = azure.createQueueService(storageName,
+ storageKey).withFilter(retryOperations);
+ if(queueSvc) {
+ queueSvc.createQueueIfNotExists(QueueName, function(error, results, response) {
+ if(error) {
+ return;
+ }
+ var created = results;
+ if(created) {
+ console.log("created new queue");
+ } else {
+ console.log("queue already exists");
+ }
+ var ticket = {
+ EventId: 4711,
+ Email: "peter@example.com",
+ NumberOfTickets: 2,
+ OrderDate: Date.UTC
+ };
+ var msg = JSON.stringify(ticket);
+ queueSvc.createMessage(QueueName, msg, function(error, result, response) {
+ if(error) {
+ return;
+ }
+ queueSvc.peekMessages(QueueName, {
+ numOfMessages: 32
+ }, function(error, result, response){
+ if(!error){
+ // Message text is in messages[0].messagetext
+ }
+ });
+ });
+ });
+ } | 37 | 3.363636 | 37 | 0 |
c8cac3d3d55a1fa97bbc2ba6d2698b3f82aefe8f | metadata/com.stevenschoen.putionew.txt | metadata/com.stevenschoen.putionew.txt | Categories:Internet
License:Apache2
Web Site:https://github.com/DSteve595/Put.io
Source Code:https://github.com/DSteve595/Put.io
Issue Tracker:https://github.com/DSteve595/Put.io/issues
Auto Name:Put.io
Summary:Client for the Put.io online download service
Description:
Manage your Put.io download queue.
.
Repo Type:git
Repo:https://github.com/DSteve595/Put.io.git
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
Maintainer Notes:
* no license set
* description
* GoogleCast jars ??
.
Auto Update Mode:None
Update Check Mode:Tags
Current Version:2.0.0-beta6
Current Version Code:65
| Disabled:Relies on non-free libraries
AntiFeatures:UpstreamNonFree
Categories:Internet
License:Apache2
Web Site:https://github.com/DSteve595/Put.io
Source Code:https://github.com/DSteve595/Put.io
Issue Tracker:https://github.com/DSteve595/Put.io/issues
Auto Name:Put.io
Summary:Client for the Put.io online download service
Description:
Manage your Put.io download queue.
.
Repo Type:git
Repo:https://github.com/DSteve595/Put.io.git
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
Maintainer Notes:
* no license set
* description
* GoogleCast jars ??
* Play services
* non maven-central repo
* reset UCM:Tags when upstream is free
.
Auto Update Mode:None
Update Check Mode:Static
Current Version:2.0.0-beta6
Current Version Code:65
| Disable until upstream is free | Put.io: Disable until upstream is free
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Internet
License:Apache2
Web Site:https://github.com/DSteve595/Put.io
Source Code:https://github.com/DSteve595/Put.io
Issue Tracker:https://github.com/DSteve595/Put.io/issues
Auto Name:Put.io
Summary:Client for the Put.io online download service
Description:
Manage your Put.io download queue.
.
Repo Type:git
Repo:https://github.com/DSteve595/Put.io.git
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
Maintainer Notes:
* no license set
* description
* GoogleCast jars ??
.
Auto Update Mode:None
Update Check Mode:Tags
Current Version:2.0.0-beta6
Current Version Code:65
## Instruction:
Put.io: Disable until upstream is free
## Code After:
Disabled:Relies on non-free libraries
AntiFeatures:UpstreamNonFree
Categories:Internet
License:Apache2
Web Site:https://github.com/DSteve595/Put.io
Source Code:https://github.com/DSteve595/Put.io
Issue Tracker:https://github.com/DSteve595/Put.io/issues
Auto Name:Put.io
Summary:Client for the Put.io online download service
Description:
Manage your Put.io download queue.
.
Repo Type:git
Repo:https://github.com/DSteve595/Put.io.git
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
Maintainer Notes:
* no license set
* description
* GoogleCast jars ??
* Play services
* non maven-central repo
* reset UCM:Tags when upstream is free
.
Auto Update Mode:None
Update Check Mode:Static
Current Version:2.0.0-beta6
Current Version Code:65
| + Disabled:Relies on non-free libraries
+ AntiFeatures:UpstreamNonFree
Categories:Internet
License:Apache2
Web Site:https://github.com/DSteve595/Put.io
Source Code:https://github.com/DSteve595/Put.io
Issue Tracker:https://github.com/DSteve595/Put.io/issues
Auto Name:Put.io
Summary:Client for the Put.io online download service
Description:
Manage your Put.io download queue.
.
Repo Type:git
Repo:https://github.com/DSteve595/Put.io.git
Build:2.0.0-beta1,59
disable=see maintainer notes
commit=2.0_beta_1
subdir=app
submodules=yes
gradle=yes
srclibs=CastCompanion@v1.0
Maintainer Notes:
* no license set
* description
* GoogleCast jars ??
+ * Play services
+ * non maven-central repo
+ * reset UCM:Tags when upstream is free
+
.
Auto Update Mode:None
- Update Check Mode:Tags
? ^ ^^
+ Update Check Mode:Static
? ^^ ^^^
Current Version:2.0.0-beta6
Current Version Code:65
| 8 | 0.235294 | 7 | 1 |
d5010db1ddf59158991fc001333d1f857fb9ff58 | packages/hw/hw-int.yaml | packages/hw/hw-int.yaml | homepage: http://github.com/haskell-works/hw-int#readme
changelog-type: ''
hash: 8adf260df9d8a4ce8c929d9016b3b598c41b0490b5105a23f1003dc841e6c482
test-bench-deps: {}
maintainer: newhoggy@gmail.com
synopsis: Integers
changelog: ''
basic-deps:
base: ! '>=4 && <5'
all-versions:
- '0.0.0.1'
author: John Ky
latest: '0.0.0.1'
description-type: markdown
description: ! '# hw-int
[](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch)
'
license-name: BSD3
| homepage: http://github.com/haskell-works/hw-int#readme
changelog-type: ''
hash: 620e5aac29cc4233955352b0ef77bd8d24a1afe351aa27a6492c4d5bb9d18911
test-bench-deps: {}
maintainer: newhoggy@gmail.com
synopsis: Integers
changelog: ''
basic-deps:
base: ! '>=4 && <5'
all-versions:
- '0.0.0.1'
- '0.0.0.3'
author: John Ky
latest: '0.0.0.3'
description-type: markdown
description: ! '# hw-int
[](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch)
'
license-name: BSD3
| Update from Hackage at 2017-08-26T13:53:40Z | Update from Hackage at 2017-08-26T13:53:40Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/haskell-works/hw-int#readme
changelog-type: ''
hash: 8adf260df9d8a4ce8c929d9016b3b598c41b0490b5105a23f1003dc841e6c482
test-bench-deps: {}
maintainer: newhoggy@gmail.com
synopsis: Integers
changelog: ''
basic-deps:
base: ! '>=4 && <5'
all-versions:
- '0.0.0.1'
author: John Ky
latest: '0.0.0.1'
description-type: markdown
description: ! '# hw-int
[](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch)
'
license-name: BSD3
## Instruction:
Update from Hackage at 2017-08-26T13:53:40Z
## Code After:
homepage: http://github.com/haskell-works/hw-int#readme
changelog-type: ''
hash: 620e5aac29cc4233955352b0ef77bd8d24a1afe351aa27a6492c4d5bb9d18911
test-bench-deps: {}
maintainer: newhoggy@gmail.com
synopsis: Integers
changelog: ''
basic-deps:
base: ! '>=4 && <5'
all-versions:
- '0.0.0.1'
- '0.0.0.3'
author: John Ky
latest: '0.0.0.3'
description-type: markdown
description: ! '# hw-int
[](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch)
'
license-name: BSD3
| homepage: http://github.com/haskell-works/hw-int#readme
changelog-type: ''
- hash: 8adf260df9d8a4ce8c929d9016b3b598c41b0490b5105a23f1003dc841e6c482
+ hash: 620e5aac29cc4233955352b0ef77bd8d24a1afe351aa27a6492c4d5bb9d18911
test-bench-deps: {}
maintainer: newhoggy@gmail.com
synopsis: Integers
changelog: ''
basic-deps:
base: ! '>=4 && <5'
all-versions:
- '0.0.0.1'
+ - '0.0.0.3'
author: John Ky
- latest: '0.0.0.1'
? ^
+ latest: '0.0.0.3'
? ^
description-type: markdown
description: ! '# hw-int
[](https://circleci.com/gh/haskell-works/hw-int/tree/0-branch)
'
license-name: BSD3 | 5 | 0.25 | 3 | 2 |
1435bb6fd5d907f4d3fa09b7e73498c6c48cabf5 | templates/print/types/invoice/labor.tex | templates/print/types/invoice/labor.tex | <%
groups = []
groups.push(
{ title: 'Labor', lines: @invoice.lines.time_entry,
footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
{ title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
<%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
\\[-5ex]
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
footer: groups.many? ? false : 'labor_lines_footer.tex',
groups: groups.many? ? groups : false %>
\end{document}
| <%
groups = []
groups.push(
{ title: 'Labor', lines: @invoice.lines.time_entry,
footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
{ title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
\setlength{\LTpre}{0pt}
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
<%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
footer: groups.many? ? false : 'labor_lines_footer.tex',
groups: groups.many? ? groups : false %>
\end{document}
| Adjust LTpre vs negative adjustment | Adjust LTpre vs negative adjustment
| TeX | agpl-3.0 | argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor | tex | ## Code Before:
<%
groups = []
groups.push(
{ title: 'Labor', lines: @invoice.lines.time_entry,
footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
{ title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
<%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
\\[-5ex]
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
footer: groups.many? ? false : 'labor_lines_footer.tex',
groups: groups.many? ? groups : false %>
\end{document}
## Instruction:
Adjust LTpre vs negative adjustment
## Code After:
<%
groups = []
groups.push(
{ title: 'Labor', lines: @invoice.lines.time_entry,
footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
{ title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
\setlength{\LTpre}{0pt}
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
<%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
footer: groups.many? ? false : 'labor_lines_footer.tex',
groups: groups.many? ? groups : false %>
\end{document}
| <%
groups = []
groups.push(
{ title: 'Labor', lines: @invoice.lines.time_entry,
footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
{ title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
+ \setlength{\LTpre}{0pt}
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
<%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
- \\[-5ex]
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
footer: groups.many? ? false : 'labor_lines_footer.tex',
groups: groups.many? ? groups : false %>
\end{document} | 2 | 0.08 | 1 | 1 |
b4dcffde18c018ef44cef6112ce724bbf7b5ffac | README.md | README.md | [](https://travis-ci.org/jleclanche/fireplace)
A Hearthstone simulator and implementation, written in Python.
### Requirements
* Python 3.4+
### IRC
Join us on `#hearthsim` on [Freenode](https://freenode.net)
| [](https://travis-ci.org/jleclanche/fireplace)
A Hearthstone simulator and implementation, written in Python.
### Requirements
* Python 3.4+
### Documentation
The [Fireplace Wiki](https://github.com/jleclanche/fireplace/wiki) is the best
source of documentation, along with the actual code.
### License
Fireplace is licensed GPLv3. This may change in the future.
### IRC
Join us on `#hearthsim` on [Freenode](https://freenode.net)
| Add a note about the wiki and the license | Add a note about the wiki and the license
| Markdown | agpl-3.0 | oftc-ftw/fireplace,Ragowit/fireplace,smallnamespace/fireplace,Meerkov/fireplace,amw2104/fireplace,oftc-ftw/fireplace,liujimj/fireplace,Meerkov/fireplace,Ragowit/fireplace,amw2104/fireplace,NightKev/fireplace,butozerca/fireplace,smallnamespace/fireplace,liujimj/fireplace,butozerca/fireplace,jleclanche/fireplace,beheh/fireplace | markdown | ## Code Before:
[](https://travis-ci.org/jleclanche/fireplace)
A Hearthstone simulator and implementation, written in Python.
### Requirements
* Python 3.4+
### IRC
Join us on `#hearthsim` on [Freenode](https://freenode.net)
## Instruction:
Add a note about the wiki and the license
## Code After:
[](https://travis-ci.org/jleclanche/fireplace)
A Hearthstone simulator and implementation, written in Python.
### Requirements
* Python 3.4+
### Documentation
The [Fireplace Wiki](https://github.com/jleclanche/fireplace/wiki) is the best
source of documentation, along with the actual code.
### License
Fireplace is licensed GPLv3. This may change in the future.
### IRC
Join us on `#hearthsim` on [Freenode](https://freenode.net)
| [](https://travis-ci.org/jleclanche/fireplace)
A Hearthstone simulator and implementation, written in Python.
### Requirements
* Python 3.4+
+ ### Documentation
+
+ The [Fireplace Wiki](https://github.com/jleclanche/fireplace/wiki) is the best
+ source of documentation, along with the actual code.
+
+ ### License
+
+ Fireplace is licensed GPLv3. This may change in the future.
+
### IRC
Join us on `#hearthsim` on [Freenode](https://freenode.net) | 9 | 0.818182 | 9 | 0 |
89f489bc95abf1a4f5442d0150c8adbccab24956 | src/main/webapp/WEB-INF/web.xml | src/main/webapp/WEB-INF/web.xml | <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>JMX Proxy Application</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JMX Proxy Application</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
| <?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>JMX Proxy Application</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JMX Proxy Application</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
| Fix schema URLs to new Oracle locations. | Fix schema URLs to new Oracle locations. | XML | mit | mk23/jmxproxy,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy-test,mk23/jmxproxy,mk23/jmxproxy-test,mk23/jmxproxy-test | xml | ## Code Before:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>JMX Proxy Application</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JMX Proxy Application</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
## Instruction:
Fix schema URLs to new Oracle locations.
## Code After:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>JMX Proxy Application</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JMX Proxy Application</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
| <?xml version="1.0" encoding="ISO-8859-1"?>
- <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ <web-app xmlns="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
+ xsi:schemaLocation="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<servlet>
<servlet-name>JMX Proxy Application</servlet-name>
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JMX Proxy Application</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app> | 4 | 0.142857 | 2 | 2 |
28f504dccd02046604761e997f929015a285dffd | pyQuantuccia/tests/test_get_holiday_date.py | pyQuantuccia/tests/test_get_holiday_date.py | from datetime import date
import calendar
print(calendar.__dir__())
print(calendar.__dict__)
def test_united_kingdom_is_business_day():
""" Check a single day to see that we
can identify holidays.
"""
assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False)
| from datetime import date
import calendar
def test_foo():
assert(calendar.__dir__() == "")
def test_dummy():
assert(calendar.__dict__ == "")
def test_united_kingdom_is_business_day():
""" Check a single day to see that we
can identify holidays.
"""
assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False)
| Add some bogus tests to try and get this info. | Add some bogus tests to try and get this info.
| Python | bsd-3-clause | jwg4/pyQuantuccia,jwg4/pyQuantuccia | python | ## Code Before:
from datetime import date
import calendar
print(calendar.__dir__())
print(calendar.__dict__)
def test_united_kingdom_is_business_day():
""" Check a single day to see that we
can identify holidays.
"""
assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False)
## Instruction:
Add some bogus tests to try and get this info.
## Code After:
from datetime import date
import calendar
def test_foo():
assert(calendar.__dir__() == "")
def test_dummy():
assert(calendar.__dict__ == "")
def test_united_kingdom_is_business_day():
""" Check a single day to see that we
can identify holidays.
"""
assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False)
| from datetime import date
import calendar
- print(calendar.__dir__())
- print(calendar.__dict__)
+
+ def test_foo():
+ assert(calendar.__dir__() == "")
+
+
+ def test_dummy():
+ assert(calendar.__dict__ == "")
def test_united_kingdom_is_business_day():
""" Check a single day to see that we
can identify holidays.
"""
assert(calendar.united_kingdom_is_business_day(date(2017, 4, 17)) is False) | 9 | 0.692308 | 7 | 2 |
6f4fedcd20aa38a6275e5396557d6871cea6753d | src/transpile-if-ts.ts | src/transpile-if-ts.ts | import * as tsc from 'typescript';
import { getTSConfig } from './utils';
export function transpileIfTypescript(path, contents, config?) {
if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) {
let transpiled = tsc.transpileModule(contents, {
compilerOptions: getTSConfig(config || { __TS_CONFIG__: global['__TS_CONFIG__'] }, true),
fileName: path
});
return transpiled.outputText;
}
return contents;
} | import * as tsc from 'typescript';
import { getTSConfigOptionFromConfig, getTSConfig } from './utils';
export function transpileIfTypescript(path, contents, config?) {
if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) {
let transpiled = tsc.transpileModule(contents, {
compilerOptions: getTSConfig(config || { 'ts-jest': { tsConfigFile: getTSConfigOptionFromConfig(global) }}, true),
fileName: path
});
return transpiled.outputText;
}
return contents;
}
| Add new schema for config | Add new schema for config
| TypeScript | mit | kulshekhar/ts-jest,kulshekhar/ts-jest | typescript | ## Code Before:
import * as tsc from 'typescript';
import { getTSConfig } from './utils';
export function transpileIfTypescript(path, contents, config?) {
if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) {
let transpiled = tsc.transpileModule(contents, {
compilerOptions: getTSConfig(config || { __TS_CONFIG__: global['__TS_CONFIG__'] }, true),
fileName: path
});
return transpiled.outputText;
}
return contents;
}
## Instruction:
Add new schema for config
## Code After:
import * as tsc from 'typescript';
import { getTSConfigOptionFromConfig, getTSConfig } from './utils';
export function transpileIfTypescript(path, contents, config?) {
if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) {
let transpiled = tsc.transpileModule(contents, {
compilerOptions: getTSConfig(config || { 'ts-jest': { tsConfigFile: getTSConfigOptionFromConfig(global) }}, true),
fileName: path
});
return transpiled.outputText;
}
return contents;
}
| import * as tsc from 'typescript';
- import { getTSConfig } from './utils';
+ import { getTSConfigOptionFromConfig, getTSConfig } from './utils';
export function transpileIfTypescript(path, contents, config?) {
if (path && (path.endsWith('.tsx') || path.endsWith('.ts'))) {
let transpiled = tsc.transpileModule(contents, {
- compilerOptions: getTSConfig(config || { __TS_CONFIG__: global['__TS_CONFIG__'] }, true),
+ compilerOptions: getTSConfig(config || { 'ts-jest': { tsConfigFile: getTSConfigOptionFromConfig(global) }}, true),
fileName: path
});
return transpiled.outputText;
}
return contents;
} | 4 | 0.266667 | 2 | 2 |
d53fe82947953a5fefe40a0d8e239846c810796a | Rocket.Chat/API/Clients/AuthClient.swift | Rocket.Chat/API/Clients/AuthClient.swift | //
// AuthClient.swift
// Rocket.Chat
//
// Created by Matheus Cardoso on 5/5/18.
// Copyright © 2018 Rocket.Chat. All rights reserved.
//
import RealmSwift
struct AuthClient: APIClient {
let api: AnyAPIFetcher
func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) {
api.fetch(LoginRequest(params: params)) { response in
switch response {
case .resource(let resource):
guard resource.status == "success" else {
return completion(.resource(.init(raw: ["error": resource.error ?? ""])))
}
let auth = Auth()
auth.internalFirstChannelOpened = false
auth.lastSubscriptionFetchWithLastMessage = nil
auth.lastRoomFetchWithLastMessage = nil
auth.lastAccess = Date()
auth.serverURL = (self.api as? API)?.host.absoluteString ?? ""
auth.token = resource.authToken
auth.userId = resource.userId
AuthManager.persistAuthInformation(auth)
DatabaseManager.changeDatabaseInstance()
Realm.executeOnMainThread({ (realm) in
// Delete all the Auth objects, since we don't
// support multiple-server per database
realm.delete(realm.objects(Auth.self))
PushManager.updatePushToken()
realm.add(auth)
})
SocketManager.sharedInstance.isUserAuthenticated = true
ServerManager.timestampSync()
completion(response)
case .error:
completion(response)
}
}
}
}
| //
// AuthClient.swift
// Rocket.Chat
//
// Created by Matheus Cardoso on 5/5/18.
// Copyright © 2018 Rocket.Chat. All rights reserved.
//
import RealmSwift
struct AuthClient: APIClient {
let api: AnyAPIFetcher
func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) {
api.fetch(LoginRequest(params: params)) { response in
switch response {
case .resource(let resource):
guard resource.status == "success" else {
return completion(.resource(.init(raw: ["error": resource.error ?? ""])))
}
let auth = Auth()
auth.internalFirstChannelOpened = false
auth.lastSubscriptionFetchWithLastMessage = nil
auth.lastRoomFetchWithLastMessage = nil
auth.lastAccess = Date()
auth.serverURL = (self.api as? API)?.host.absoluteString ?? ""
auth.token = resource.authToken
auth.userId = resource.userId
AuthManager.persistAuthInformation(auth)
DatabaseManager.changeDatabaseInstance()
Realm.executeOnMainThread({ (realm) in
// Delete all the Auth objects, since we don't
// support multiple-server per database
realm.delete(realm.objects(Auth.self))
PushManager.updatePushToken()
realm.add(auth)
})
ServerManager.timestampSync()
completion(response)
case .error:
completion(response)
}
}
}
}
| Stop setting websocket connection as authenticated on LoginRequest callback because it doesn't authenticate the websocket connection | Stop setting websocket connection as authenticated on LoginRequest callback because it doesn't authenticate the websocket connection
| Swift | mit | RocketChat/Rocket.Chat.iOS,RocketChat/Rocket.Chat.iOS,RocketChat/Rocket.Chat.iOS | swift | ## Code Before:
//
// AuthClient.swift
// Rocket.Chat
//
// Created by Matheus Cardoso on 5/5/18.
// Copyright © 2018 Rocket.Chat. All rights reserved.
//
import RealmSwift
struct AuthClient: APIClient {
let api: AnyAPIFetcher
func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) {
api.fetch(LoginRequest(params: params)) { response in
switch response {
case .resource(let resource):
guard resource.status == "success" else {
return completion(.resource(.init(raw: ["error": resource.error ?? ""])))
}
let auth = Auth()
auth.internalFirstChannelOpened = false
auth.lastSubscriptionFetchWithLastMessage = nil
auth.lastRoomFetchWithLastMessage = nil
auth.lastAccess = Date()
auth.serverURL = (self.api as? API)?.host.absoluteString ?? ""
auth.token = resource.authToken
auth.userId = resource.userId
AuthManager.persistAuthInformation(auth)
DatabaseManager.changeDatabaseInstance()
Realm.executeOnMainThread({ (realm) in
// Delete all the Auth objects, since we don't
// support multiple-server per database
realm.delete(realm.objects(Auth.self))
PushManager.updatePushToken()
realm.add(auth)
})
SocketManager.sharedInstance.isUserAuthenticated = true
ServerManager.timestampSync()
completion(response)
case .error:
completion(response)
}
}
}
}
## Instruction:
Stop setting websocket connection as authenticated on LoginRequest callback because it doesn't authenticate the websocket connection
## Code After:
//
// AuthClient.swift
// Rocket.Chat
//
// Created by Matheus Cardoso on 5/5/18.
// Copyright © 2018 Rocket.Chat. All rights reserved.
//
import RealmSwift
struct AuthClient: APIClient {
let api: AnyAPIFetcher
func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) {
api.fetch(LoginRequest(params: params)) { response in
switch response {
case .resource(let resource):
guard resource.status == "success" else {
return completion(.resource(.init(raw: ["error": resource.error ?? ""])))
}
let auth = Auth()
auth.internalFirstChannelOpened = false
auth.lastSubscriptionFetchWithLastMessage = nil
auth.lastRoomFetchWithLastMessage = nil
auth.lastAccess = Date()
auth.serverURL = (self.api as? API)?.host.absoluteString ?? ""
auth.token = resource.authToken
auth.userId = resource.userId
AuthManager.persistAuthInformation(auth)
DatabaseManager.changeDatabaseInstance()
Realm.executeOnMainThread({ (realm) in
// Delete all the Auth objects, since we don't
// support multiple-server per database
realm.delete(realm.objects(Auth.self))
PushManager.updatePushToken()
realm.add(auth)
})
ServerManager.timestampSync()
completion(response)
case .error:
completion(response)
}
}
}
}
| //
// AuthClient.swift
// Rocket.Chat
//
// Created by Matheus Cardoso on 5/5/18.
// Copyright © 2018 Rocket.Chat. All rights reserved.
//
import RealmSwift
struct AuthClient: APIClient {
let api: AnyAPIFetcher
func login(params: LoginParams, completion: @escaping (APIResponse<LoginResource>) -> Void) {
api.fetch(LoginRequest(params: params)) { response in
switch response {
case .resource(let resource):
guard resource.status == "success" else {
return completion(.resource(.init(raw: ["error": resource.error ?? ""])))
}
let auth = Auth()
auth.internalFirstChannelOpened = false
auth.lastSubscriptionFetchWithLastMessage = nil
auth.lastRoomFetchWithLastMessage = nil
auth.lastAccess = Date()
auth.serverURL = (self.api as? API)?.host.absoluteString ?? ""
auth.token = resource.authToken
auth.userId = resource.userId
AuthManager.persistAuthInformation(auth)
DatabaseManager.changeDatabaseInstance()
Realm.executeOnMainThread({ (realm) in
// Delete all the Auth objects, since we don't
// support multiple-server per database
realm.delete(realm.objects(Auth.self))
PushManager.updatePushToken()
realm.add(auth)
})
- SocketManager.sharedInstance.isUserAuthenticated = true
ServerManager.timestampSync()
completion(response)
case .error:
completion(response)
}
}
}
} | 1 | 0.019608 | 0 | 1 |
d0563e724bff1cf2cdd3899abde46225a06d47e6 | index.html | index.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modalon | Ultra simple and light</title>
<link rel="stylesheet" href="modalon.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300">
<style>
body {
font-family: 'Lato';
}
h4, p {
margin-top: 0;
}
button {
padding: 7px 24px;
}
</style>
</head>
<body>
<button class="modal-open">AbraKadabra</button>
<!-- Modal -->
<div class="modal">
<div class="modal-header">
<h4>Modal Example</h4>
</div>
<div class="modal-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="modal-footer">
<button class="modal-close">Close</button>
</div>
</div>
<!-- /Modal -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="modalon.js"></script>
</body>
</html> | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modalon | Ultra simple and light</title>
<link rel="stylesheet" href="modalon.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300">
<style>
body {
font-family: 'Lato';
}
h4, p {
margin-top: 0;
}
button {
padding: 7px 24px;
}
</style>
</head>
<body>
<button class="modal-open">AbraKadabra</button>
<!-- Modal -->
<div class="modal">
<div class="modal-header">
<h4>Modal Example</h4>
</div>
<div class="modal-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="modal-footer">
<button class="modal-close">Close</button>
</div>
</div>
<!-- /Modal -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="modalon.js"></script>
</body>
</html> | Use 2 spaces for indentation | Use 2 spaces for indentation
| HTML | mit | drihup/modalon,drihup/modalon | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modalon | Ultra simple and light</title>
<link rel="stylesheet" href="modalon.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300">
<style>
body {
font-family: 'Lato';
}
h4, p {
margin-top: 0;
}
button {
padding: 7px 24px;
}
</style>
</head>
<body>
<button class="modal-open">AbraKadabra</button>
<!-- Modal -->
<div class="modal">
<div class="modal-header">
<h4>Modal Example</h4>
</div>
<div class="modal-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="modal-footer">
<button class="modal-close">Close</button>
</div>
</div>
<!-- /Modal -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="modalon.js"></script>
</body>
</html>
## Instruction:
Use 2 spaces for indentation
## Code After:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modalon | Ultra simple and light</title>
<link rel="stylesheet" href="modalon.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300">
<style>
body {
font-family: 'Lato';
}
h4, p {
margin-top: 0;
}
button {
padding: 7px 24px;
}
</style>
</head>
<body>
<button class="modal-open">AbraKadabra</button>
<!-- Modal -->
<div class="modal">
<div class="modal-header">
<h4>Modal Example</h4>
</div>
<div class="modal-content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="modal-footer">
<button class="modal-close">Close</button>
</div>
</div>
<!-- /Modal -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="modalon.js"></script>
</body>
</html> | <!DOCTYPE html>
<html>
- <head>
? --
+ <head>
- <meta charset="utf-8">
? ----
+ <meta charset="utf-8">
- <title>Modalon | Ultra simple and light</title>
? ----
+ <title>Modalon | Ultra simple and light</title>
- <link rel="stylesheet" href="modalon.css">
? ----
+ <link rel="stylesheet" href="modalon.css">
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300">
+ <style>
+ body {
+ font-family: 'Lato';
+ }
+ h4, p {
+ margin-top: 0;
+ }
+ button {
+ padding: 7px 24px;
+ }
+ </style>
+ </head>
+ <body>
+ <button class="modal-open">AbraKadabra</button>
- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300">
- <style>
- body {
- font-family: 'Lato';
- }
- h4, p {
- margin-top: 0;
- }
- button {
- padding: 7px 24px;
- }
- </style>
- </head>
- <body>
+ <!-- Modal -->
+ <div class="modal">
+ <div class="modal-header">
+ <h4>Modal Example</h4>
+ </div>
+ <div class="modal-content">
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
+ </div>
+ <div class="modal-footer">
- <button class="modal-open">AbraKadabra</button>
? ^ - ^^^^^^^^^^^
+ <button class="modal-close">Close</button>
? ++ ^ ^^^^^
+ </div>
+ </div>
+ <!-- /Modal -->
- <!-- Modal -->
- <div class="modal">
- <div class="modal-header">
- <h4>Modal Example</h4>
- </div>
- <div class="modal-content">
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
- </div>
- <div class="modal-footer">
- <button class="modal-close">Close</button>
- </div>
- </div>
- <!-- /Modal -->
-
- <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
? ----
+ <script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
- <script src="modalon.js"></script>
? ----
+ <script src="modalon.js"></script>
- </body>
? --
+ </body>
</html> | 71 | 1.690476 | 35 | 36 |
b85a4f97f58e10f521e5591fec65ef1006616d14 | src/routes/index.js | src/routes/index.js | let express = require('express');
let router = express.Router();
const spacyNLP = require('spacy-nlp');
const nlp = spacyNLP.nlp;
router.get('/', (req, res) => {
res.send({title: 'SpaCy JSON service'});
});
router.post('/', (req, res, next) => {
let body = req.body;
if (body && body.input) {
nlp.parse(body.input).then((output) => {
res.send(output[0]);
}).catch((e) => {
next(e);
});
} else {
let error = { message: "Missing field: input" };
error.status = 400;
next(error);
}
});
module.exports = router;
| let express = require('express');
let router = express.Router();
const spacyNLP = require('spacy-nlp');
const nlp = spacyNLP.nlp;
let fs = require('fs');
router.get('/', (req, res, next) => {
try {
fs.readFile('/etc/spacy_info', 'utf8', function (err, fileContents) {
if (err) {
next(err);
}
let response = {
title: 'SpaCy JSON service',
spacyInfo: {}
};
let spacyInfoKeys = ["Name", "Version" ];
let lines = fileContents.split(/\r?\n/);
for (let line of lines) {
let splits = line.split(':');
if (splits.length === 2 && splits[0] && splits[1] && spacyInfoKeys.indexOf(splits[0].trim()) !== -1) {
response.spacyInfo[splits[0].trim().toLowerCase()] = splits[1].trim();
}
}
response.spacyInfo['website'] = "https://spacy.io/";
res.send(response);
});
} catch (e) {
next(e);
}
});
router.post('/', (req, res, next) => {
let body = req.body;
if (body && body.input) {
nlp.parse(body.input).then((output) => {
res.send(output[0]);
}).catch((e) => {
next(e);
});
} else {
let error = {message: "Missing field: input"};
error.status = 400;
next(error);
}
});
module.exports = router;
| Implement returning SpaCy info when calling the root with GET | Implement returning SpaCy info when calling the root with GET
| JavaScript | mit | jlundan/spacy-nodejs-alpine,jlundan/spacy-nodejs-alpine | javascript | ## Code Before:
let express = require('express');
let router = express.Router();
const spacyNLP = require('spacy-nlp');
const nlp = spacyNLP.nlp;
router.get('/', (req, res) => {
res.send({title: 'SpaCy JSON service'});
});
router.post('/', (req, res, next) => {
let body = req.body;
if (body && body.input) {
nlp.parse(body.input).then((output) => {
res.send(output[0]);
}).catch((e) => {
next(e);
});
} else {
let error = { message: "Missing field: input" };
error.status = 400;
next(error);
}
});
module.exports = router;
## Instruction:
Implement returning SpaCy info when calling the root with GET
## Code After:
let express = require('express');
let router = express.Router();
const spacyNLP = require('spacy-nlp');
const nlp = spacyNLP.nlp;
let fs = require('fs');
router.get('/', (req, res, next) => {
try {
fs.readFile('/etc/spacy_info', 'utf8', function (err, fileContents) {
if (err) {
next(err);
}
let response = {
title: 'SpaCy JSON service',
spacyInfo: {}
};
let spacyInfoKeys = ["Name", "Version" ];
let lines = fileContents.split(/\r?\n/);
for (let line of lines) {
let splits = line.split(':');
if (splits.length === 2 && splits[0] && splits[1] && spacyInfoKeys.indexOf(splits[0].trim()) !== -1) {
response.spacyInfo[splits[0].trim().toLowerCase()] = splits[1].trim();
}
}
response.spacyInfo['website'] = "https://spacy.io/";
res.send(response);
});
} catch (e) {
next(e);
}
});
router.post('/', (req, res, next) => {
let body = req.body;
if (body && body.input) {
nlp.parse(body.input).then((output) => {
res.send(output[0]);
}).catch((e) => {
next(e);
});
} else {
let error = {message: "Missing field: input"};
error.status = 400;
next(error);
}
});
module.exports = router;
| let express = require('express');
let router = express.Router();
const spacyNLP = require('spacy-nlp');
const nlp = spacyNLP.nlp;
+ let fs = require('fs');
- router.get('/', (req, res) => {
+ router.get('/', (req, res, next) => {
? ++++++
- res.send({title: 'SpaCy JSON service'});
+ try {
+ fs.readFile('/etc/spacy_info', 'utf8', function (err, fileContents) {
+ if (err) {
+ next(err);
+ }
+
+ let response = {
+ title: 'SpaCy JSON service',
+ spacyInfo: {}
+ };
+
+ let spacyInfoKeys = ["Name", "Version" ];
+
+ let lines = fileContents.split(/\r?\n/);
+
+ for (let line of lines) {
+ let splits = line.split(':');
+ if (splits.length === 2 && splits[0] && splits[1] && spacyInfoKeys.indexOf(splits[0].trim()) !== -1) {
+ response.spacyInfo[splits[0].trim().toLowerCase()] = splits[1].trim();
+ }
+ }
+
+ response.spacyInfo['website'] = "https://spacy.io/";
+
+ res.send(response);
+ });
+ } catch (e) {
+ next(e);
+ }
});
router.post('/', (req, res, next) => {
let body = req.body;
if (body && body.input) {
nlp.parse(body.input).then((output) => {
res.send(output[0]);
}).catch((e) => {
next(e);
});
} else {
- let error = { message: "Missing field: input" };
? - -
+ let error = {message: "Missing field: input"};
error.status = 400;
next(error);
}
});
module.exports = router; | 35 | 1.346154 | 32 | 3 |
36d7c61c7d6f7c6dc4e9bb9191f20890ab148e8c | lib/support/browser_script.js | lib/support/browser_script.js | 'use strict';
let fs = require('fs'),
path = require('path'),
Promise = require('bluebird'),
filters = require('./filters');
Promise.promisifyAll(fs);
/*
Find and parse any browser scripts in rootFolder.
Returns a Promise that resolves to an array of scripts.
Each script is represented by an object with the following keys:
- default: true if script is bundled with Browsertime.
- path: the path to the script file on disk
- source: the javascript source
*/
function parseBrowserScripts(rootFolder, isDefault) {
function toFullPath(filename) {
return path.join(rootFolder, filename);
}
function fileToScriptObject(filepath) {
return fs.readFileAsync(filepath, 'utf8')
.then((contents) => {
return {
default: isDefault,
path: filepath,
source: contents
};
});
}
return fs.readdirAsync(rootFolder)
.map(toFullPath)
.filter(filters.onlyFiles)
.filter(filters.onlyWithExtension('.js'))
.map(fileToScriptObject);
}
module.exports = {
parseBrowserScripts: parseBrowserScripts,
defaultScripts: parseBrowserScripts(path.resolve(__dirname, '..', '..', 'browserscripts'))
};
| 'use strict';
let fs = require('fs'),
path = require('path'),
Promise = require('bluebird'),
filters = require('./filters');
Promise.promisifyAll(fs);
/*
Find and parse any browser scripts in rootFolder.
Returns a Promise that resolves to an array of scripts.
Each script is represented by an object with the following keys:
- default: true if script is bundled with Browsertime.
- path: the path to the script file on disk
- source: the javascript source
*/
function parseBrowserScripts(rootFolder, isDefault) {
function toFullPath(filename) {
return path.join(rootFolder, filename);
}
function fileToScriptObject(filepath) {
return fs.readFileAsync(filepath, 'utf8')
.then((contents) => {
return {
default: isDefault,
path: filepath,
source: contents
};
});
}
return fs.readdirAsync(rootFolder)
.map(toFullPath)
.filter(filters.onlyFiles)
.filter(filters.onlyWithExtension('.js'))
.map(fileToScriptObject);
}
module.exports = {
parseBrowserScripts: parseBrowserScripts,
get defaultScripts() {
return parseBrowserScripts(path.resolve(__dirname, '..', '..', 'browserscripts'));
}
};
| Configure Bluebird before first use of Promise. | Configure Bluebird before first use of Promise.
Turn browser_scripts#defaultScripts into a get property, so it's not executed when the file is being required. This to avoid:
Error: cannot enable long stack traces after promises have been created
| JavaScript | apache-2.0 | sitespeedio/browsertime,tobli/browsertime,sitespeedio/browsertime,sitespeedio/browsertime,sitespeedio/browsertime | javascript | ## Code Before:
'use strict';
let fs = require('fs'),
path = require('path'),
Promise = require('bluebird'),
filters = require('./filters');
Promise.promisifyAll(fs);
/*
Find and parse any browser scripts in rootFolder.
Returns a Promise that resolves to an array of scripts.
Each script is represented by an object with the following keys:
- default: true if script is bundled with Browsertime.
- path: the path to the script file on disk
- source: the javascript source
*/
function parseBrowserScripts(rootFolder, isDefault) {
function toFullPath(filename) {
return path.join(rootFolder, filename);
}
function fileToScriptObject(filepath) {
return fs.readFileAsync(filepath, 'utf8')
.then((contents) => {
return {
default: isDefault,
path: filepath,
source: contents
};
});
}
return fs.readdirAsync(rootFolder)
.map(toFullPath)
.filter(filters.onlyFiles)
.filter(filters.onlyWithExtension('.js'))
.map(fileToScriptObject);
}
module.exports = {
parseBrowserScripts: parseBrowserScripts,
defaultScripts: parseBrowserScripts(path.resolve(__dirname, '..', '..', 'browserscripts'))
};
## Instruction:
Configure Bluebird before first use of Promise.
Turn browser_scripts#defaultScripts into a get property, so it's not executed when the file is being required. This to avoid:
Error: cannot enable long stack traces after promises have been created
## Code After:
'use strict';
let fs = require('fs'),
path = require('path'),
Promise = require('bluebird'),
filters = require('./filters');
Promise.promisifyAll(fs);
/*
Find and parse any browser scripts in rootFolder.
Returns a Promise that resolves to an array of scripts.
Each script is represented by an object with the following keys:
- default: true if script is bundled with Browsertime.
- path: the path to the script file on disk
- source: the javascript source
*/
function parseBrowserScripts(rootFolder, isDefault) {
function toFullPath(filename) {
return path.join(rootFolder, filename);
}
function fileToScriptObject(filepath) {
return fs.readFileAsync(filepath, 'utf8')
.then((contents) => {
return {
default: isDefault,
path: filepath,
source: contents
};
});
}
return fs.readdirAsync(rootFolder)
.map(toFullPath)
.filter(filters.onlyFiles)
.filter(filters.onlyWithExtension('.js'))
.map(fileToScriptObject);
}
module.exports = {
parseBrowserScripts: parseBrowserScripts,
get defaultScripts() {
return parseBrowserScripts(path.resolve(__dirname, '..', '..', 'browserscripts'));
}
};
| 'use strict';
let fs = require('fs'),
path = require('path'),
Promise = require('bluebird'),
filters = require('./filters');
Promise.promisifyAll(fs);
/*
Find and parse any browser scripts in rootFolder.
Returns a Promise that resolves to an array of scripts.
Each script is represented by an object with the following keys:
- default: true if script is bundled with Browsertime.
- path: the path to the script file on disk
- source: the javascript source
*/
function parseBrowserScripts(rootFolder, isDefault) {
function toFullPath(filename) {
return path.join(rootFolder, filename);
}
function fileToScriptObject(filepath) {
return fs.readFileAsync(filepath, 'utf8')
.then((contents) => {
return {
default: isDefault,
path: filepath,
source: contents
};
});
}
return fs.readdirAsync(rootFolder)
.map(toFullPath)
.filter(filters.onlyFiles)
.filter(filters.onlyWithExtension('.js'))
.map(fileToScriptObject);
}
module.exports = {
parseBrowserScripts: parseBrowserScripts,
+ get defaultScripts() {
- defaultScripts: parseBrowserScripts(path.resolve(__dirname, '..', '..', 'browserscripts'))
? ^ ^^ ---- ^^^^^
+ return parseBrowserScripts(path.resolve(__dirname, '..', '..', 'browserscripts'));
? ^^^ ^ ^ +
+ }
}; | 4 | 0.090909 | 3 | 1 |
a21a646af2231224ee6ec5a4d2363edeb776754c | src/Cryptol/Prelude.hs | src/Cryptol/Prelude.hs | -- |
-- Module : $Header$
-- Copyright : (c) 2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
--
-- Include the prelude when building with -fself-contained
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
module Cryptol.Prelude (writePreludeContents) where
import Cryptol.ModuleSystem.Monad
#ifdef SELF_CONTAINED
import System.Directory (getTemporaryDirectory)
import System.IO (hClose, hPutStr, openTempFile)
import Text.Heredoc (there)
preludeContents :: String
preludeContents = [there|lib/Cryptol.cry|]
-- | Write the contents of the Prelude to a temporary file so that
-- Cryptol can load the module.
writePreludeContents :: ModuleM FilePath
writePreludeContents = io $ do
tmpdir <- getTemporaryDirectory
(path, h) <- openTempFile tmpdir "Cryptol.cry"
hPutStr h preludeContents
hClose h
return path
#else
import Cryptol.Parser.AST as P
-- | If we're not self-contained, the Prelude is just missing
writePreludeContents :: ModuleM FilePath
writePreludeContents = moduleNotFound (P.ModName ["Cryptol"]) =<< getSearchPath
#endif
| -- |
-- Module : $Header$
-- Copyright : (c) 2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
--
-- Include the prelude when building with -fself-contained
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
module Cryptol.Prelude (writePreludeContents) where
import Cryptol.ModuleSystem.Monad
#ifdef SELF_CONTAINED
import System.Directory (getTemporaryDirectory)
import System.IO (hClose, hPutStr, openTempFile)
import Text.Heredoc (there)
preludeContents :: String
preludeContents = [there|lib/Cryptol.cry|]
-- | Write the contents of the Prelude to a temporary file so that
-- Cryptol can load the module.
writePreludeContents :: ModuleM FilePath
writePreludeContents = io $ do
tmpdir <- getTemporaryDirectory
(path, h) <- openTempFile tmpdir "Cryptol.cry"
hPutStr h preludeContents
hClose h
return path
#else
import Cryptol.Parser.AST as P
-- | If we're not self-contained, the Prelude is just missing
writePreludeContents :: ModuleM FilePath
writePreludeContents = moduleNotFound (P.ModName ["Cryptol"]) =<< getSearchPath
#endif
| Enable OverloadedStrings to fix a build error | Enable OverloadedStrings to fix a build error
| Haskell | bsd-3-clause | GaloisInc/cryptol,GaloisInc/cryptol,GaloisInc/cryptol | haskell | ## Code Before:
-- |
-- Module : $Header$
-- Copyright : (c) 2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
--
-- Include the prelude when building with -fself-contained
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
module Cryptol.Prelude (writePreludeContents) where
import Cryptol.ModuleSystem.Monad
#ifdef SELF_CONTAINED
import System.Directory (getTemporaryDirectory)
import System.IO (hClose, hPutStr, openTempFile)
import Text.Heredoc (there)
preludeContents :: String
preludeContents = [there|lib/Cryptol.cry|]
-- | Write the contents of the Prelude to a temporary file so that
-- Cryptol can load the module.
writePreludeContents :: ModuleM FilePath
writePreludeContents = io $ do
tmpdir <- getTemporaryDirectory
(path, h) <- openTempFile tmpdir "Cryptol.cry"
hPutStr h preludeContents
hClose h
return path
#else
import Cryptol.Parser.AST as P
-- | If we're not self-contained, the Prelude is just missing
writePreludeContents :: ModuleM FilePath
writePreludeContents = moduleNotFound (P.ModName ["Cryptol"]) =<< getSearchPath
#endif
## Instruction:
Enable OverloadedStrings to fix a build error
## Code After:
-- |
-- Module : $Header$
-- Copyright : (c) 2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
--
-- Include the prelude when building with -fself-contained
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
module Cryptol.Prelude (writePreludeContents) where
import Cryptol.ModuleSystem.Monad
#ifdef SELF_CONTAINED
import System.Directory (getTemporaryDirectory)
import System.IO (hClose, hPutStr, openTempFile)
import Text.Heredoc (there)
preludeContents :: String
preludeContents = [there|lib/Cryptol.cry|]
-- | Write the contents of the Prelude to a temporary file so that
-- Cryptol can load the module.
writePreludeContents :: ModuleM FilePath
writePreludeContents = io $ do
tmpdir <- getTemporaryDirectory
(path, h) <- openTempFile tmpdir "Cryptol.cry"
hPutStr h preludeContents
hClose h
return path
#else
import Cryptol.Parser.AST as P
-- | If we're not self-contained, the Prelude is just missing
writePreludeContents :: ModuleM FilePath
writePreludeContents = moduleNotFound (P.ModName ["Cryptol"]) =<< getSearchPath
#endif
| -- |
-- Module : $Header$
-- Copyright : (c) 2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
--
-- Include the prelude when building with -fself-contained
{-# LANGUAGE CPP #-}
{-# LANGUAGE QuasiQuotes #-}
+ {-# LANGUAGE OverloadedStrings #-}
module Cryptol.Prelude (writePreludeContents) where
import Cryptol.ModuleSystem.Monad
#ifdef SELF_CONTAINED
import System.Directory (getTemporaryDirectory)
import System.IO (hClose, hPutStr, openTempFile)
import Text.Heredoc (there)
preludeContents :: String
preludeContents = [there|lib/Cryptol.cry|]
-- | Write the contents of the Prelude to a temporary file so that
-- Cryptol can load the module.
writePreludeContents :: ModuleM FilePath
writePreludeContents = io $ do
tmpdir <- getTemporaryDirectory
(path, h) <- openTempFile tmpdir "Cryptol.cry"
hPutStr h preludeContents
hClose h
return path
#else
import Cryptol.Parser.AST as P
-- | If we're not self-contained, the Prelude is just missing
writePreludeContents :: ModuleM FilePath
writePreludeContents = moduleNotFound (P.ModName ["Cryptol"]) =<< getSearchPath
#endif | 1 | 0.022222 | 1 | 0 |
5f0f0a75b380392b6e15acfcf46b30853dd2fb7b | setup.py | setup.py | from setuptools import setup
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learning data analysis statistics mining',
author='Ken Van Haren',
author_email='kvh@science.io',
url='http://github.com/kvh/ramp',
license='BSD',
packages=['ramp'],
zip_safe=False,
install_requires=[
'numpy',
'pandas',
]
)
| from setuptools import setup, find_packages
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learning data analysis statistics mining',
author='Ken Van Haren',
author_email='kvh@science.io',
url='http://github.com/kvh/ramp',
license='BSD',
packages=find_packages(exclude=["*.tests"]),
zip_safe=False,
install_requires=[
'numpy',
'pandas',
]
)
| Include subdirectories when building the package. | Include subdirectories when building the package.
| Python | mit | kvh/ramp | python | ## Code Before:
from setuptools import setup
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learning data analysis statistics mining',
author='Ken Van Haren',
author_email='kvh@science.io',
url='http://github.com/kvh/ramp',
license='BSD',
packages=['ramp'],
zip_safe=False,
install_requires=[
'numpy',
'pandas',
]
)
## Instruction:
Include subdirectories when building the package.
## Code After:
from setuptools import setup, find_packages
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learning data analysis statistics mining',
author='Ken Van Haren',
author_email='kvh@science.io',
url='http://github.com/kvh/ramp',
license='BSD',
packages=find_packages(exclude=["*.tests"]),
zip_safe=False,
install_requires=[
'numpy',
'pandas',
]
)
| - from setuptools import setup
+ from setuptools import setup, find_packages
? +++++++++++++++
version = '0.1'
setup(name='ramp',
version=version,
description="Rapid machine learning prototyping",
long_description=open("README.md").read(),
classifiers=[
'License :: OSI Approved :: BSD License'
],
keywords='machine learning data analysis statistics mining',
author='Ken Van Haren',
author_email='kvh@science.io',
url='http://github.com/kvh/ramp',
license='BSD',
- packages=['ramp'],
+ packages=find_packages(exclude=["*.tests"]),
zip_safe=False,
install_requires=[
'numpy',
'pandas',
]
)
| 4 | 0.166667 | 2 | 2 |
03cd62ab772b2b91d1b67446501d1fcb40a1bd97 | app/controllers/comments_controller.rb | app/controllers/comments_controller.rb | class CommentsController < ApplicationController
def new
@comment = Comment.new
end
end
| class CommentsController < ApplicationController
def new
@resource = Resource.find_by(id: params[:resource_id])
@comment = @resource.comments.build
end
end
| Build comment off of resource in new comments action. | Build comment off of resource in new comments action.
| Ruby | mit | abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/sorter | ruby | ## Code Before:
class CommentsController < ApplicationController
def new
@comment = Comment.new
end
end
## Instruction:
Build comment off of resource in new comments action.
## Code After:
class CommentsController < ApplicationController
def new
@resource = Resource.find_by(id: params[:resource_id])
@comment = @resource.comments.build
end
end
| class CommentsController < ApplicationController
def new
- @comment = Comment.new
+ @resource = Resource.find_by(id: params[:resource_id])
+ @comment = @resource.comments.build
end
end | 3 | 0.428571 | 2 | 1 |
0ce2e8ccf016c559653363fa94c3b82bcc76a153 | src/views/authPage/AuthInputField.js | src/views/authPage/AuthInputField.js | import React, { PropTypes } from 'react';
import styles from './AuthPage.css';
function AuthInputField(props) {
const {
input, type, placeholder, className, meta,
} = props;
const {
touched, error,
} = meta;
return (
<div>
<div>
<input
{...input}
type={type}
placeholder={placeholder}
className={className}
autoFocus
/>
{(touched && error)
&& <span className={styles.errors}>{error}</span>}
</div>
</div>
);
}
AuthInputField.propTypes = {
input: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
className: PropTypes.string.isRequired,
meta: PropTypes.shape({
touched: PropTypes.bool.isRequired,
error: PropTypes.string,
}),
};
export default AuthInputField;
| import React, { PropTypes } from 'react';
import styles from './AuthPage.css';
function AuthInputField(props) {
const {
input, type, placeholder, className, meta,
} = props;
const {
dirty, error,
} = meta;
return (
<div>
<div>
<input
{...input}
type={type}
placeholder={placeholder}
className={className}
autoFocus
/>
{(dirty && error)
&& <span className={styles.errors}>{error}</span>}
</div>
</div>
);
}
AuthInputField.propTypes = {
input: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
className: PropTypes.string.isRequired,
meta: PropTypes.shape({
dirty: PropTypes.bool.isRequired,
error: PropTypes.string,
}),
};
export default AuthInputField;
| Fix blur issue with auth form validation | Fix blur issue with auth form validation
| JavaScript | mit | VirtualClub/vclub,VirtualClub/vclub,BudIT/vclub,BudIT/vclub | javascript | ## Code Before:
import React, { PropTypes } from 'react';
import styles from './AuthPage.css';
function AuthInputField(props) {
const {
input, type, placeholder, className, meta,
} = props;
const {
touched, error,
} = meta;
return (
<div>
<div>
<input
{...input}
type={type}
placeholder={placeholder}
className={className}
autoFocus
/>
{(touched && error)
&& <span className={styles.errors}>{error}</span>}
</div>
</div>
);
}
AuthInputField.propTypes = {
input: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
className: PropTypes.string.isRequired,
meta: PropTypes.shape({
touched: PropTypes.bool.isRequired,
error: PropTypes.string,
}),
};
export default AuthInputField;
## Instruction:
Fix blur issue with auth form validation
## Code After:
import React, { PropTypes } from 'react';
import styles from './AuthPage.css';
function AuthInputField(props) {
const {
input, type, placeholder, className, meta,
} = props;
const {
dirty, error,
} = meta;
return (
<div>
<div>
<input
{...input}
type={type}
placeholder={placeholder}
className={className}
autoFocus
/>
{(dirty && error)
&& <span className={styles.errors}>{error}</span>}
</div>
</div>
);
}
AuthInputField.propTypes = {
input: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
className: PropTypes.string.isRequired,
meta: PropTypes.shape({
dirty: PropTypes.bool.isRequired,
error: PropTypes.string,
}),
};
export default AuthInputField;
| import React, { PropTypes } from 'react';
import styles from './AuthPage.css';
function AuthInputField(props) {
const {
input, type, placeholder, className, meta,
} = props;
const {
- touched, error,
+ dirty, error,
} = meta;
return (
<div>
<div>
<input
{...input}
type={type}
placeholder={placeholder}
className={className}
autoFocus
/>
- {(touched && error)
? ^^^^^^
+ {(dirty && error)
? +++ ^
&& <span className={styles.errors}>{error}</span>}
</div>
</div>
);
}
AuthInputField.propTypes = {
input: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,
placeholder: PropTypes.string.isRequired,
className: PropTypes.string.isRequired,
meta: PropTypes.shape({
- touched: PropTypes.bool.isRequired,
? ^^^^^^
+ dirty: PropTypes.bool.isRequired,
? +++ ^
error: PropTypes.string,
}),
};
export default AuthInputField; | 6 | 0.146341 | 3 | 3 |
8836efb5be3839ce92445cadde4a0cf769018001 | static/css/styles.css | static/css/styles.css | /* Base styles */
body {
background-color: #FFF;
color: #222;
padding-top: 50px;
}
#map {
height: 300px;
margin-bottom: 20px;
}
.measurement div .description {
margin-top: 10px;
font-size: 1.8em;
}
.measurement div .value {
padding-top: 10px;
font-size: 3em;
font-weight: bold;
}
.measurement {
margin-bottom: 20px;
}
| /* Base styles */
body {
background-color: #FFF;
color: #222;
padding-top: 50px;
}
#map {
height: 300px;
margin-bottom: 20px;
}
.measurement div .description {
margin-top: 10px;
font-size: 1.8em;
}
.measurement div .value {
padding-top: 10px;
font-size: 3em;
font-weight: bold;
}
.measurement {
margin-bottom: 20px;
}
#chart {
height: 300px;
}
| Make chart a little narrower to fit on 1 screen. | Make chart a little narrower to fit on 1 screen.
| CSS | bsd-3-clause | openxc/web-logging-example,openxc/web-logging-example | css | ## Code Before:
/* Base styles */
body {
background-color: #FFF;
color: #222;
padding-top: 50px;
}
#map {
height: 300px;
margin-bottom: 20px;
}
.measurement div .description {
margin-top: 10px;
font-size: 1.8em;
}
.measurement div .value {
padding-top: 10px;
font-size: 3em;
font-weight: bold;
}
.measurement {
margin-bottom: 20px;
}
## Instruction:
Make chart a little narrower to fit on 1 screen.
## Code After:
/* Base styles */
body {
background-color: #FFF;
color: #222;
padding-top: 50px;
}
#map {
height: 300px;
margin-bottom: 20px;
}
.measurement div .description {
margin-top: 10px;
font-size: 1.8em;
}
.measurement div .value {
padding-top: 10px;
font-size: 3em;
font-weight: bold;
}
.measurement {
margin-bottom: 20px;
}
#chart {
height: 300px;
}
| /* Base styles */
body {
background-color: #FFF;
color: #222;
padding-top: 50px;
}
#map {
height: 300px;
margin-bottom: 20px;
}
.measurement div .description {
margin-top: 10px;
font-size: 1.8em;
}
.measurement div .value {
padding-top: 10px;
font-size: 3em;
font-weight: bold;
}
.measurement {
margin-bottom: 20px;
}
+
+ #chart {
+ height: 300px;
+ } | 4 | 0.148148 | 4 | 0 |
e2a1658ab311e4db5c26d758869c923ba4d6f056 | static/email-frame.less | static/email-frame.less | @import 'variables/ui-variables';
@import 'ui-variables';
.ignore-in-parent-frame {
html, body {
font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif;
font-size: 16px;
line-height: 1.5;
color: @text-color;
background-color: transparent !important;
border: 0;
margin: 0;
padding: 0;
-webkit-text-size-adjust: auto;
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;
}
strong, b, .bold {
font-weight: 600;
}
body {
padding: 0;
margin: auto;
max-width: 840px;
overflow-y: hidden;
word-break: break-word;
-webkit-font-smoothing: antialiased;
}
pre {
white-space: normal;
}
a {
color: @text-color-link;
}
a:hover {
color: @text-color-link-hover;
}
a:visited {
color: darken(@text-color-link, 10%);
}
a img {
border-bottom: 0;
}
body.heightDetermined {
overflow-y: hidden;
}
div,pre {
max-width: 100%;
}
img {
max-width: 100%;
height: auto;
border: 0;
}
}
| @import 'variables/ui-variables';
@import 'ui-variables';
.ignore-in-parent-frame {
html, body {
font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif;
font-size: 16px;
line-height: 1.5;
color: @text-color;
background-color: transparent !important;
border: 0;
margin: 0;
padding: 0;
-webkit-text-size-adjust: auto;
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;
}
strong, b, .bold {
font-weight: 600;
}
body {
padding: 0;
margin: auto;
max-width: 840px;
overflow-y: hidden;
word-break: break-word;
-webkit-font-smoothing: antialiased;
}
pre {
white-space: normal;
}
a {
color: @text-color-link;
}
a:hover {
color: @text-color-link-hover;
}
a:visited {
color: darken(@text-color-link, 10%);
}
a img {
border-bottom: 0;
}
body.heightDetermined {
overflow-y: hidden;
}
div,pre {
max-width: 100%;
}
img {
max-width: 100%;
border: 0;
}
}
| Remove img height:auto; causing images to stretch based on their intrinsic size | fix(email-styles): Remove img height:auto; causing images to stretch based on their intrinsic size
We constrain images to a max-width of 600px. We have logic to change width and height attributes of inline attachments when both specified (and larger than 600px). This `height:auto` flag causes the image below to render at 600x600 because it's a 1x1 image:
<img src="http://image.lyftmail.com/lib/fe6915707166047a7d14/m/1/spacer.gif" height="1" width="600" style="display: block; width: 600px; min-width: 600px;" border="0">
I think the height:auto case only happens when A) the image is more than 600px wide B) the image has a hard-coded height and not a hard-coded width. In this case our max-width rule will change the width and the height will be fixed. I think we should disregard this case unless we find scenarios where it happens.
| Less | mit | nirmit/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail | less | ## Code Before:
@import 'variables/ui-variables';
@import 'ui-variables';
.ignore-in-parent-frame {
html, body {
font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif;
font-size: 16px;
line-height: 1.5;
color: @text-color;
background-color: transparent !important;
border: 0;
margin: 0;
padding: 0;
-webkit-text-size-adjust: auto;
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;
}
strong, b, .bold {
font-weight: 600;
}
body {
padding: 0;
margin: auto;
max-width: 840px;
overflow-y: hidden;
word-break: break-word;
-webkit-font-smoothing: antialiased;
}
pre {
white-space: normal;
}
a {
color: @text-color-link;
}
a:hover {
color: @text-color-link-hover;
}
a:visited {
color: darken(@text-color-link, 10%);
}
a img {
border-bottom: 0;
}
body.heightDetermined {
overflow-y: hidden;
}
div,pre {
max-width: 100%;
}
img {
max-width: 100%;
height: auto;
border: 0;
}
}
## Instruction:
fix(email-styles): Remove img height:auto; causing images to stretch based on their intrinsic size
We constrain images to a max-width of 600px. We have logic to change width and height attributes of inline attachments when both specified (and larger than 600px). This `height:auto` flag causes the image below to render at 600x600 because it's a 1x1 image:
<img src="http://image.lyftmail.com/lib/fe6915707166047a7d14/m/1/spacer.gif" height="1" width="600" style="display: block; width: 600px; min-width: 600px;" border="0">
I think the height:auto case only happens when A) the image is more than 600px wide B) the image has a hard-coded height and not a hard-coded width. In this case our max-width rule will change the width and the height will be fixed. I think we should disregard this case unless we find scenarios where it happens.
## Code After:
@import 'variables/ui-variables';
@import 'ui-variables';
.ignore-in-parent-frame {
html, body {
font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif;
font-size: 16px;
line-height: 1.5;
color: @text-color;
background-color: transparent !important;
border: 0;
margin: 0;
padding: 0;
-webkit-text-size-adjust: auto;
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;
}
strong, b, .bold {
font-weight: 600;
}
body {
padding: 0;
margin: auto;
max-width: 840px;
overflow-y: hidden;
word-break: break-word;
-webkit-font-smoothing: antialiased;
}
pre {
white-space: normal;
}
a {
color: @text-color-link;
}
a:hover {
color: @text-color-link-hover;
}
a:visited {
color: darken(@text-color-link, 10%);
}
a img {
border-bottom: 0;
}
body.heightDetermined {
overflow-y: hidden;
}
div,pre {
max-width: 100%;
}
img {
max-width: 100%;
border: 0;
}
}
| @import 'variables/ui-variables';
@import 'ui-variables';
.ignore-in-parent-frame {
html, body {
font-family: "Nylas-FaktPro", "Helvetica", "Lucidia Grande", sans-serif;
font-size: 16px;
line-height: 1.5;
color: @text-color;
background-color: transparent !important;
border: 0;
margin: 0;
padding: 0;
-webkit-text-size-adjust: auto;
word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;
}
strong, b, .bold {
font-weight: 600;
}
body {
padding: 0;
margin: auto;
max-width: 840px;
overflow-y: hidden;
word-break: break-word;
-webkit-font-smoothing: antialiased;
}
pre {
white-space: normal;
}
a {
color: @text-color-link;
}
a:hover {
color: @text-color-link-hover;
}
a:visited {
color: darken(@text-color-link, 10%);
}
a img {
border-bottom: 0;
}
body.heightDetermined {
overflow-y: hidden;
}
div,pre {
max-width: 100%;
}
img {
max-width: 100%;
- height: auto;
border: 0;
}
} | 1 | 0.014925 | 0 | 1 |
c45c602e9cae985fae3c62f3021e1d74bbe77ffb | systemjs.config.js | systemjs.config.js | (function(global) {
config.map['papaparse'] = '@node/papaparse';
System.config(config);
})(this); | (function(global) {
if(typeof process != 'object') {
console.log('Running in browser, disabling NodeJS functionality.');
config.map['fs'] = '@empty';
config.map['electron'] = '@empty';
config.map['express'] = '@empty';
config.map['express-pouchdb'] = '@empty';
} else {
console.log('Running as electron app, enabling NodeJS functionality.');
// ensure that pouchdb is loaded using node's require
// in order to trigger use of leveldb backend
//config.map['pouchdb'] = '@node/pouchdb';
// make sure papaparse is loaded using node's require
// in order to avoid errors
config.map['papaparse'] = '@node/papaparse';
}
System.config(config);
})(this); | Revert "remove obsolete browser electron distinction" | Revert "remove obsolete browser electron distinction"
This reverts commit 1709ee9ea51c1838cac5b13c803c186ff0f26c4e.
| JavaScript | apache-2.0 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | javascript | ## Code Before:
(function(global) {
config.map['papaparse'] = '@node/papaparse';
System.config(config);
})(this);
## Instruction:
Revert "remove obsolete browser electron distinction"
This reverts commit 1709ee9ea51c1838cac5b13c803c186ff0f26c4e.
## Code After:
(function(global) {
if(typeof process != 'object') {
console.log('Running in browser, disabling NodeJS functionality.');
config.map['fs'] = '@empty';
config.map['electron'] = '@empty';
config.map['express'] = '@empty';
config.map['express-pouchdb'] = '@empty';
} else {
console.log('Running as electron app, enabling NodeJS functionality.');
// ensure that pouchdb is loaded using node's require
// in order to trigger use of leveldb backend
//config.map['pouchdb'] = '@node/pouchdb';
// make sure papaparse is loaded using node's require
// in order to avoid errors
config.map['papaparse'] = '@node/papaparse';
}
System.config(config);
})(this); | (function(global) {
+
+ if(typeof process != 'object') {
+ console.log('Running in browser, disabling NodeJS functionality.');
+ config.map['fs'] = '@empty';
+ config.map['electron'] = '@empty';
+ config.map['express'] = '@empty';
+ config.map['express-pouchdb'] = '@empty';
+ } else {
+ console.log('Running as electron app, enabling NodeJS functionality.');
+ // ensure that pouchdb is loaded using node's require
+ // in order to trigger use of leveldb backend
+ //config.map['pouchdb'] = '@node/pouchdb';
+ // make sure papaparse is loaded using node's require
+ // in order to avoid errors
- config.map['papaparse'] = '@node/papaparse';
+ config.map['papaparse'] = '@node/papaparse';
? ++++
+ }
System.config(config);
+
})(this); | 18 | 4.5 | 17 | 1 |
2cb220ea6e877b18324816dfcc9bac4e00ef0d67 | README.md | README.md |
v0.1 by Evan Coury
## Introduction
Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp
aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2
module.
## License
Sslurp is released under the BSD license. See the included LICENSE file.
|
v0.1 by Evan Coury
## Introduction
Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp
aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2
module.
### CLI Root CA Bundle Updater
[update-ca-bundle.php](https://github.com/EvanDotPro/Sslurp/blob/master/bin/update-ca-bundle.php)
is a handy command-line tool for fetching and building a PEM certificate bundle
from the latest trusted CAs in the [Mozilla source
tree](https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt).
As a parameter, it requires that you pass it the proper SHA1 fingerprint of the
SSL certificate on mxr.mozilla.org. You can easily find the latest fingerprint
by going to [https://evan.pro/ssl/](https://evan.pro/ssl/).
```
Sslurp Root CA Bundle Updater
Usage:
./update-ca-bundle.php [-o output_file] [sha1_fingerprint]
Arguments
sha1_fingerprint The expected SHA1 fingerprint of the SSL certificate on mxr.mozilla.org.
Options
-o Path/filename to the file to (over)write he update root CA bundle. Default to stdout.
To get the expected SHA1 fingerprint, go to https://evan.pro/ssl/ in your web browser.
Be sure that your browser shows a proper SSL connection with no warnings.
```
## License
Sslurp is released under the BSD license. See the included LICENSE file.
| Update readme to explain update-ca-bundle.php | Update readme to explain update-ca-bundle.php
| Markdown | bsd-2-clause | EvanDotPro/Sslurp,EvanDotPro/Sslurp | markdown | ## Code Before:
v0.1 by Evan Coury
## Introduction
Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp
aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2
module.
## License
Sslurp is released under the BSD license. See the included LICENSE file.
## Instruction:
Update readme to explain update-ca-bundle.php
## Code After:
v0.1 by Evan Coury
## Introduction
Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp
aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2
module.
### CLI Root CA Bundle Updater
[update-ca-bundle.php](https://github.com/EvanDotPro/Sslurp/blob/master/bin/update-ca-bundle.php)
is a handy command-line tool for fetching and building a PEM certificate bundle
from the latest trusted CAs in the [Mozilla source
tree](https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt).
As a parameter, it requires that you pass it the proper SHA1 fingerprint of the
SSL certificate on mxr.mozilla.org. You can easily find the latest fingerprint
by going to [https://evan.pro/ssl/](https://evan.pro/ssl/).
```
Sslurp Root CA Bundle Updater
Usage:
./update-ca-bundle.php [-o output_file] [sha1_fingerprint]
Arguments
sha1_fingerprint The expected SHA1 fingerprint of the SSL certificate on mxr.mozilla.org.
Options
-o Path/filename to the file to (over)write he update root CA bundle. Default to stdout.
To get the expected SHA1 fingerprint, go to https://evan.pro/ssl/ in your web browser.
Be sure that your browser shows a proper SSL connection with no warnings.
```
## License
Sslurp is released under the BSD license. See the included LICENSE file.
|
v0.1 by Evan Coury
## Introduction
Unforunately, dealing with SSL properly in PHP is a pain in the ass. Sslurp
aims to make it suck less. Sslurp can be used as a stand-alone library or a ZF2
module.
+
+ ### CLI Root CA Bundle Updater
+
+ [update-ca-bundle.php](https://github.com/EvanDotPro/Sslurp/blob/master/bin/update-ca-bundle.php)
+ is a handy command-line tool for fetching and building a PEM certificate bundle
+ from the latest trusted CAs in the [Mozilla source
+ tree](https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt).
+ As a parameter, it requires that you pass it the proper SHA1 fingerprint of the
+ SSL certificate on mxr.mozilla.org. You can easily find the latest fingerprint
+ by going to [https://evan.pro/ssl/](https://evan.pro/ssl/).
+
+ ```
+ Sslurp Root CA Bundle Updater
+
+ Usage:
+ ./update-ca-bundle.php [-o output_file] [sha1_fingerprint]
+
+ Arguments
+ sha1_fingerprint The expected SHA1 fingerprint of the SSL certificate on mxr.mozilla.org.
+
+ Options
+ -o Path/filename to the file to (over)write he update root CA bundle. Default to stdout.
+
+ To get the expected SHA1 fingerprint, go to https://evan.pro/ssl/ in your web browser.
+ Be sure that your browser shows a proper SSL connection with no warnings.
+ ```
+
## License
Sslurp is released under the BSD license. See the included LICENSE file. | 27 | 2.25 | 27 | 0 |
a6604e0ed18042bb729ba726199fb21d7eb816ec | src/TableRow/System/PageDetailsTableRow.php | src/TableRow/System/PageDetailsTableRow.php | <?php
//----------------------------------------------------------------------------------------------------------------------
namespace SetBased\Abc\Core\TableRow\System;
use SetBased\Abc\Core\Page\System\PageDetailsPage;
use SetBased\Abc\Helper\Html;
use SetBased\Abc\Table\DetailTable;
//----------------------------------------------------------------------------------------------------------------------
/**
*
*/
class PageDetailsTableRow
{
//--------------------------------------------------------------------------------------------------------------------
/**
* Adds a row with a class name of a page with link to the page details to a detail table.
*
* @param DetailTable $table The (detail) table.
* @param string $header The row header text.
* @param array $data The page details.
*/
public static function addRow($table, $header, $data)
{
$row = '<tr><th>';
$row .= Html::txt2Html($header);
$row .= '</th><td class="text"><a';
$row .= Html::generateAttribute('href', PageDetailsPage::getUrl($data['pag_id_org']));
$row .= '>';
$row .= $data['pag_id_org'];
$row .= '</a></td></tr>';
$table->addRow($row);
}
//--------------------------------------------------------------------------------------------------------------------
}
//----------------------------------------------------------------------------------------------------------------------
| <?php
//----------------------------------------------------------------------------------------------------------------------
namespace SetBased\Abc\Core\TableRow\System;
use SetBased\Abc\Core\Page\System\PageDetailsPage;
use SetBased\Abc\Helper\Html;
use SetBased\Abc\Table\DetailTable;
//----------------------------------------------------------------------------------------------------------------------
/**
* Table row showing the original page of a page.
*/
class PageDetailsTableRow
{
//--------------------------------------------------------------------------------------------------------------------
/**
* Adds a row with a class name of a page with link to the page details to a detail table.
*
* @param DetailTable $table The (detail) table.
* @param string $header The row header text.
* @param array $data The page details.
*/
public static function addRow($table, $header, $data)
{
$a = Html::generateElement('a', ['href' => PageDetailsPage::getUrl($data['pag_id_org'])], $data['pag_id_org']);
$table->addRow($header, ['class' => 'text'], $a, true);
}
//--------------------------------------------------------------------------------------------------------------------
}
//----------------------------------------------------------------------------------------------------------------------
| Align with changes in abc-table-detail. | Align with changes in abc-table-detail.
| PHP | mit | SetBased/php-abc-core,SetBased/php-abc-core | php | ## Code Before:
<?php
//----------------------------------------------------------------------------------------------------------------------
namespace SetBased\Abc\Core\TableRow\System;
use SetBased\Abc\Core\Page\System\PageDetailsPage;
use SetBased\Abc\Helper\Html;
use SetBased\Abc\Table\DetailTable;
//----------------------------------------------------------------------------------------------------------------------
/**
*
*/
class PageDetailsTableRow
{
//--------------------------------------------------------------------------------------------------------------------
/**
* Adds a row with a class name of a page with link to the page details to a detail table.
*
* @param DetailTable $table The (detail) table.
* @param string $header The row header text.
* @param array $data The page details.
*/
public static function addRow($table, $header, $data)
{
$row = '<tr><th>';
$row .= Html::txt2Html($header);
$row .= '</th><td class="text"><a';
$row .= Html::generateAttribute('href', PageDetailsPage::getUrl($data['pag_id_org']));
$row .= '>';
$row .= $data['pag_id_org'];
$row .= '</a></td></tr>';
$table->addRow($row);
}
//--------------------------------------------------------------------------------------------------------------------
}
//----------------------------------------------------------------------------------------------------------------------
## Instruction:
Align with changes in abc-table-detail.
## Code After:
<?php
//----------------------------------------------------------------------------------------------------------------------
namespace SetBased\Abc\Core\TableRow\System;
use SetBased\Abc\Core\Page\System\PageDetailsPage;
use SetBased\Abc\Helper\Html;
use SetBased\Abc\Table\DetailTable;
//----------------------------------------------------------------------------------------------------------------------
/**
* Table row showing the original page of a page.
*/
class PageDetailsTableRow
{
//--------------------------------------------------------------------------------------------------------------------
/**
* Adds a row with a class name of a page with link to the page details to a detail table.
*
* @param DetailTable $table The (detail) table.
* @param string $header The row header text.
* @param array $data The page details.
*/
public static function addRow($table, $header, $data)
{
$a = Html::generateElement('a', ['href' => PageDetailsPage::getUrl($data['pag_id_org'])], $data['pag_id_org']);
$table->addRow($header, ['class' => 'text'], $a, true);
}
//--------------------------------------------------------------------------------------------------------------------
}
//----------------------------------------------------------------------------------------------------------------------
| <?php
//----------------------------------------------------------------------------------------------------------------------
namespace SetBased\Abc\Core\TableRow\System;
use SetBased\Abc\Core\Page\System\PageDetailsPage;
use SetBased\Abc\Helper\Html;
use SetBased\Abc\Table\DetailTable;
//----------------------------------------------------------------------------------------------------------------------
/**
- *
+ * Table row showing the original page of a page.
*/
class PageDetailsTableRow
{
//--------------------------------------------------------------------------------------------------------------------
/**
* Adds a row with a class name of a page with link to the page details to a detail table.
*
* @param DetailTable $table The (detail) table.
* @param string $header The row header text.
* @param array $data The page details.
*/
public static function addRow($table, $header, $data)
{
- $row = '<tr><th>';
- $row .= Html::txt2Html($header);
- $row .= '</th><td class="text"><a';
- $row .= Html::generateAttribute('href', PageDetailsPage::getUrl($data['pag_id_org']));
? ^^^ - ^ ------- ^
+ $a = Html::generateElement('a', ['href' => PageDetailsPage::getUrl($data['pag_id_org'])], $data['pag_id_org']);
? ^ ^^^^^^ ++++++ ^^^ ++++++++++++++++++++++
- $row .= '>';
- $row .= $data['pag_id_org'];
- $row .= '</a></td></tr>';
- $table->addRow($row);
+ $table->addRow($header, ['class' => 'text'], $a, true);
}
//--------------------------------------------------------------------------------------------------------------------
}
//---------------------------------------------------------------------------------------------------------------------- | 12 | 0.307692 | 3 | 9 |
586e0b014ad587289b0b4dde22332601bd4c55bc | .travis.yml | .travis.yml | sudo: false
language: node_js
node_js:
- "4.0"
- "4.1"
- "5.0"
- "5.1"
after_script:
- npm run coveralls
| sudo: false
language: node_js
node_js:
- 4.0
- 5.0
- stable
after_script:
- npm run coveralls
| Test against the latest stable node | Test against the latest stable node
| YAML | mit | chriso/validator.js | yaml | ## Code Before:
sudo: false
language: node_js
node_js:
- "4.0"
- "4.1"
- "5.0"
- "5.1"
after_script:
- npm run coveralls
## Instruction:
Test against the latest stable node
## Code After:
sudo: false
language: node_js
node_js:
- 4.0
- 5.0
- stable
after_script:
- npm run coveralls
| sudo: false
language: node_js
node_js:
- - "4.0"
? - -
+ - 4.0
- - "4.1"
- - "5.0"
? - -
+ - 5.0
- - "5.1"
+ - stable
after_script:
- npm run coveralls | 7 | 0.777778 | 3 | 4 |
cf2d6f21940d13cc20aeffeb64d817ccdae37e74 | .appveyor.yml | .appveyor.yml | branches:
except:
- circleci
- travisci
- gh-pages
- build_linux_64
- build_osx_64
install:
- ps: choco install -y -r swig --version 3.0.9
- ps: choco install -y -r lua
- ps: refreshenv
before_build:
- cmake -G "Visual Studio 14 2015 Win64" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_ENABLE_D=TRUE -DTINYSPLINE_ENABLE_JAVA=TRUE.
build:
project: tinyspline.sln
| branches:
except:
- circleci
- travisci
- gh-pages
- build_linux_64
- build_osx_64
environment:
matrix:
- COMPILER: mingw
GENERATOR: MinGW Makefiles
PLATFORM: Win32
- COMPILER: mingw-w64
GENERATOR: MinGW Makefiles
PLATFORM: x64
- COMPILER: msvc
GENERATOR: Visual Studio 15 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: Win32
- COMPILER: msvc
GENERATOR: Visual Studio 15 2017 Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x64
install:
- if "%COMPILER%"=="mingw" set PATH=C:\MinGW\bin;%PATH%
- if "%COMPILER%"=="mingw-w64" set PATH=C:\MinGW\bin;%PATH%
- ps: choco install -y -r swig --version 3.0.9
- ps: choco install -y -r lua
- ps: refreshenv
build_script:
- mkdir build
- cd build
- cmake -G "%GENERATOR%" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_ENABLE_D=TRUE -DTINYSPLINE_ENABLE_JAVA=TRUE ..
- cmake --build .
| Build with msvc and mingw for 32 and 64 bit. | Build with msvc and mingw for 32 and 64 bit.
| YAML | mit | msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline | yaml | ## Code Before:
branches:
except:
- circleci
- travisci
- gh-pages
- build_linux_64
- build_osx_64
install:
- ps: choco install -y -r swig --version 3.0.9
- ps: choco install -y -r lua
- ps: refreshenv
before_build:
- cmake -G "Visual Studio 14 2015 Win64" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_ENABLE_D=TRUE -DTINYSPLINE_ENABLE_JAVA=TRUE.
build:
project: tinyspline.sln
## Instruction:
Build with msvc and mingw for 32 and 64 bit.
## Code After:
branches:
except:
- circleci
- travisci
- gh-pages
- build_linux_64
- build_osx_64
environment:
matrix:
- COMPILER: mingw
GENERATOR: MinGW Makefiles
PLATFORM: Win32
- COMPILER: mingw-w64
GENERATOR: MinGW Makefiles
PLATFORM: x64
- COMPILER: msvc
GENERATOR: Visual Studio 15 2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: Win32
- COMPILER: msvc
GENERATOR: Visual Studio 15 2017 Win64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
PLATFORM: x64
install:
- if "%COMPILER%"=="mingw" set PATH=C:\MinGW\bin;%PATH%
- if "%COMPILER%"=="mingw-w64" set PATH=C:\MinGW\bin;%PATH%
- ps: choco install -y -r swig --version 3.0.9
- ps: choco install -y -r lua
- ps: refreshenv
build_script:
- mkdir build
- cd build
- cmake -G "%GENERATOR%" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_ENABLE_D=TRUE -DTINYSPLINE_ENABLE_JAVA=TRUE ..
- cmake --build .
| branches:
except:
- circleci
- travisci
- gh-pages
- build_linux_64
- build_osx_64
+ environment:
+ matrix:
+ - COMPILER: mingw
+ GENERATOR: MinGW Makefiles
+ PLATFORM: Win32
+
+ - COMPILER: mingw-w64
+ GENERATOR: MinGW Makefiles
+ PLATFORM: x64
+
+ - COMPILER: msvc
+ GENERATOR: Visual Studio 15 2017
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ PLATFORM: Win32
+
+ - COMPILER: msvc
+ GENERATOR: Visual Studio 15 2017 Win64
+ APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
+ PLATFORM: x64
+
install:
+ - if "%COMPILER%"=="mingw" set PATH=C:\MinGW\bin;%PATH%
+ - if "%COMPILER%"=="mingw-w64" set PATH=C:\MinGW\bin;%PATH%
- ps: choco install -y -r swig --version 3.0.9
- ps: choco install -y -r lua
- ps: refreshenv
- before_build:
+ build_script:
+ - mkdir build
+ - cd build
- - cmake -G "Visual Studio 14 2015 Win64" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_ENABLE_D=TRUE -DTINYSPLINE_ENABLE_JAVA=TRUE.
? ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ - cmake -G "%GENERATOR%" -DTINYSPLINE_ENABLE_CSHARP=TRUE -DTINYSPLINE_ENABLE_D=TRUE -DTINYSPLINE_ENABLE_JAVA=TRUE ..
? ^^^^^^^^^^^ + +
+ - cmake --build .
-
- build:
- project: tinyspline.sln | 32 | 1.777778 | 27 | 5 |
cd084fced40beb429474fabf33dff675e9ccb522 | syncplay/__init__.py | syncplay/__init__.py | version = '1.6.7'
revision = ''
milestone = 'Yoitsu'
release_number = '94'
projectURL = 'https://syncplay.pl/'
| version = '1.6.8'
revision = ' development'
milestone = 'Yoitsu'
release_number = '95'
projectURL = 'https://syncplay.pl/'
| Mark as 1.6.8 dev (build 95) | Mark as 1.6.8 dev (build 95)
| Python | apache-2.0 | alby128/syncplay,alby128/syncplay,Syncplay/syncplay,Syncplay/syncplay | python | ## Code Before:
version = '1.6.7'
revision = ''
milestone = 'Yoitsu'
release_number = '94'
projectURL = 'https://syncplay.pl/'
## Instruction:
Mark as 1.6.8 dev (build 95)
## Code After:
version = '1.6.8'
revision = ' development'
milestone = 'Yoitsu'
release_number = '95'
projectURL = 'https://syncplay.pl/'
| - version = '1.6.7'
? ^
+ version = '1.6.8'
? ^
- revision = ''
+ revision = ' development'
milestone = 'Yoitsu'
- release_number = '94'
? ^
+ release_number = '95'
? ^
projectURL = 'https://syncplay.pl/' | 6 | 1.2 | 3 | 3 |
6d1626327f3577a86cdd3c54e5732b65e59a3402 | test2.py | test2.py | import json
import itertools
with open('products.json') as data_file:
data = json.load(data_file)
products = data['products']
products_temp = []
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = [] # delete the variable
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = None
computers,keyboards = [],[]
for index, item in enumerate(products):
if item ['product_type'] == 'Computer':
computers.append((item['title'],item['options']))
print item
print "====="
else: pass
if item ['product_type'] == 'Keyboard':
keyboards.append(item)
print item
print "==="
else: pass
print computers
| import json
import itertools
with open('products.json') as data_file:
data = json.load(data_file)
products = data['products']
products_temp = []
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = [] # delete the variable
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = None
computers,keyboards = [],[]
for index, item in enumerate(products):
if item ['product_type'] == 'Computer':
computers.append((item['title'],item['options']))
else: pass
if item ['product_type'] == 'Keyboard':
keyboards.append((item['title'],item['options']))
print item
else: pass
for index, item in enumerate(item):
# Do the second step
pass
print computers
| Add an additional layer for the for loop | Add an additional layer for the for loop
| Python | mit | zhang96/JSONWithPython | python | ## Code Before:
import json
import itertools
with open('products.json') as data_file:
data = json.load(data_file)
products = data['products']
products_temp = []
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = [] # delete the variable
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = None
computers,keyboards = [],[]
for index, item in enumerate(products):
if item ['product_type'] == 'Computer':
computers.append((item['title'],item['options']))
print item
print "====="
else: pass
if item ['product_type'] == 'Keyboard':
keyboards.append(item)
print item
print "==="
else: pass
print computers
## Instruction:
Add an additional layer for the for loop
## Code After:
import json
import itertools
with open('products.json') as data_file:
data = json.load(data_file)
products = data['products']
products_temp = []
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = [] # delete the variable
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = None
computers,keyboards = [],[]
for index, item in enumerate(products):
if item ['product_type'] == 'Computer':
computers.append((item['title'],item['options']))
else: pass
if item ['product_type'] == 'Keyboard':
keyboards.append((item['title'],item['options']))
print item
else: pass
for index, item in enumerate(item):
# Do the second step
pass
print computers
| import json
import itertools
with open('products.json') as data_file:
data = json.load(data_file)
products = data['products']
products_temp = []
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = [] # delete the variable
for index, item in enumerate(products):
products_temp.append(item)
products = products_temp
products_temp = None
computers,keyboards = [],[]
for index, item in enumerate(products):
if item ['product_type'] == 'Computer':
computers.append((item['title'],item['options']))
- print item
- print "====="
-
- else: pass
- if item ['product_type'] == 'Keyboard':
- keyboards.append(item)
- print item
- print "==="
else: pass
+ if item ['product_type'] == 'Keyboard':
+ keyboards.append((item['title'],item['options']))
+ print item
+ else: pass
+
+ for index, item in enumerate(item):
+ # Do the second step
+ pass
+
print computers | 17 | 0.472222 | 9 | 8 |
e29bf8087a9f0dbd63cc979ff70de15cd390fe3d | etc/config/gcc-explorer.amazon-rust.properties | etc/config/gcc-explorer.amazon-rust.properties | port=10242
compileTimeoutMs=5000
compilers=r100:nightly
defaultCompiler=r100
compiler.r100.exe=/opt/rust-1.0.0/bin/rustc
compiler.r100.name=rustc 1.0.0
compiler.nightly.exe=/opt/rust-nightly/bin/rustc
compiler.nightly.name=rustc nightly (version varies)
compileFilename=example.rs
compileToAsm=--emit asm --crate-type staticlib
compiler-wrapper=./c-preload/compiler-wrapper
max-asm-size=262144
cacheMb=100
language=Rust
options=-O --crate-type staticlib
clientGoogleAnalyticsEnabled=true
| port=10242
compileTimeoutMs=5000
compilers=r100:nightly
defaultCompiler=r100
compiler.r100.exe=/opt/rust-1.0.0/bin/rustc
compiler.r100.name=rustc 1.0.0
compiler.r100.intelAsm=-Cllvm-args=--x86-asm-syntax=intel
compiler.nightly.exe=/opt/rust-nightly/bin/rustc
compiler.nightly.name=rustc nightly (version varies)
compiler.nightly.intelAsm=-Cllvm-args=--x86-asm-syntax=intel
compileFilename=example.rs
compileToAsm=--emit asm --crate-type staticlib
compiler-wrapper=./c-preload/compiler-wrapper
max-asm-size=262144
cacheMb=100
language=Rust
options=-O --crate-type staticlib
clientGoogleAnalyticsEnabled=true
| Enable intel asm for rust | Enable intel asm for rust
| INI | bsd-2-clause | ibuclaw/gcc-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,zengyuleo/gcc-explorer,dkm/gcc-explorer,ibuclaw/gcc-explorer,mcanthony/gcc-explorer,mattgodbolt/gcc-explorer,mattgodbolt/gcc-explorer,olajep/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,mcanthony/gcc-explorer,dkm/gcc-explorer,olajep/gcc-explorer,olajep/gcc-explorer,olajep/gcc-explorer,ibuclaw/gcc-explorer,dkm/gcc-explorer,ibuclaw/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,olajep/gcc-explorer,mattgodbolt/compiler-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,zengyuleo/gcc-explorer,olajep/gcc-explorer,mcanthony/gcc-explorer,mattgodbolt/compiler-explorer,mattgodbolt/compiler-explorer,zengyuleo/gcc-explorer,dkm/gcc-explorer,mattgodbolt/gcc-explorer,dkm/gcc-explorer | ini | ## Code Before:
port=10242
compileTimeoutMs=5000
compilers=r100:nightly
defaultCompiler=r100
compiler.r100.exe=/opt/rust-1.0.0/bin/rustc
compiler.r100.name=rustc 1.0.0
compiler.nightly.exe=/opt/rust-nightly/bin/rustc
compiler.nightly.name=rustc nightly (version varies)
compileFilename=example.rs
compileToAsm=--emit asm --crate-type staticlib
compiler-wrapper=./c-preload/compiler-wrapper
max-asm-size=262144
cacheMb=100
language=Rust
options=-O --crate-type staticlib
clientGoogleAnalyticsEnabled=true
## Instruction:
Enable intel asm for rust
## Code After:
port=10242
compileTimeoutMs=5000
compilers=r100:nightly
defaultCompiler=r100
compiler.r100.exe=/opt/rust-1.0.0/bin/rustc
compiler.r100.name=rustc 1.0.0
compiler.r100.intelAsm=-Cllvm-args=--x86-asm-syntax=intel
compiler.nightly.exe=/opt/rust-nightly/bin/rustc
compiler.nightly.name=rustc nightly (version varies)
compiler.nightly.intelAsm=-Cllvm-args=--x86-asm-syntax=intel
compileFilename=example.rs
compileToAsm=--emit asm --crate-type staticlib
compiler-wrapper=./c-preload/compiler-wrapper
max-asm-size=262144
cacheMb=100
language=Rust
options=-O --crate-type staticlib
clientGoogleAnalyticsEnabled=true
| port=10242
compileTimeoutMs=5000
compilers=r100:nightly
defaultCompiler=r100
compiler.r100.exe=/opt/rust-1.0.0/bin/rustc
compiler.r100.name=rustc 1.0.0
+ compiler.r100.intelAsm=-Cllvm-args=--x86-asm-syntax=intel
compiler.nightly.exe=/opt/rust-nightly/bin/rustc
compiler.nightly.name=rustc nightly (version varies)
+ compiler.nightly.intelAsm=-Cllvm-args=--x86-asm-syntax=intel
compileFilename=example.rs
compileToAsm=--emit asm --crate-type staticlib
compiler-wrapper=./c-preload/compiler-wrapper
max-asm-size=262144
cacheMb=100
language=Rust
options=-O --crate-type staticlib
clientGoogleAnalyticsEnabled=true | 2 | 0.125 | 2 | 0 |
8b00eb57cb848742ce6329e9a690ff5ab16245e4 | lib/pathto.js | lib/pathto.js | /*
Copyright (c) 2013, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
'use strict';
// The `pathTo()` function is written in ES3 so it's serializable and able to
// run in all JavaScript environments.
module.exports = function pathTo(routeMap) {
return function (routeName, context) {
var route = routeMap[routeName],
path, keys, i, len, key, param, regex;
if (!route) { return ''; }
path = route.path;
keys = route.keys;
if (context && (len = keys.length)) {
for (i = 0; i < len; i += 1) {
key = keys[i];
param = key.name || key;
regex = new RegExp('[:*]' + param + '\\b');
path = path.replace(regex, context[param]);
}
}
// TMN Specific
if(!context.site && window && window.TMNState && window.TMNState.site){
context.site = window.TMNState.site;
}
// Replace missing params with empty strings.
// pathTo is not correctly handling express optional parameters of the form /blogs/:id/:tag?
// lop off the ? off the end of the result
return path.replace(/([:*])([\w\-]+)?/g, '').replace(/[?]$/, '');
};
};
| /*
Copyright (c) 2013, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
'use strict';
// The `pathTo()` function is written in ES3 so it's serializable and able to
// run in all JavaScript environments.
module.exports = function pathTo(routeMap) {
return function (routeName, context) {
var route = routeMap[routeName],
path, keys, i, len, key, param, regex;
if (!route) { return ''; }
path = route.path;
keys = route.keys;
if (context && (len = keys.length)) {
for (i = 0; i < len; i += 1) {
key = keys[i];
param = key.name || key;
regex = new RegExp('[:*]' + param + '\\b');
path = path.replace(regex, context[param]);
}
}
// TMN Specific
// apply site option if not specified.
if(!context.site){
try{
var isServer = typeof window === "undefined";
if(isServer){
context.site = global.appConfig.app.sport;
} else {
context.site = window.TMNState.site;
}
} catch(e){
console.error("Failed to apply missing site param to pathTo", e);
}
}
// Replace missing params with empty strings.
// pathTo is not correctly handling express optional parameters of the form /blogs/:id/:tag?
// lop off the ? off the end of the result
return path.replace(/([:*])([\w\-]+)?/g, '').replace(/[?]$/, '');
};
};
| Fix TMN specific site param | Fix TMN specific site param
| JavaScript | bsd-3-clause | brian-ledbetter/express-map | javascript | ## Code Before:
/*
Copyright (c) 2013, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
'use strict';
// The `pathTo()` function is written in ES3 so it's serializable and able to
// run in all JavaScript environments.
module.exports = function pathTo(routeMap) {
return function (routeName, context) {
var route = routeMap[routeName],
path, keys, i, len, key, param, regex;
if (!route) { return ''; }
path = route.path;
keys = route.keys;
if (context && (len = keys.length)) {
for (i = 0; i < len; i += 1) {
key = keys[i];
param = key.name || key;
regex = new RegExp('[:*]' + param + '\\b');
path = path.replace(regex, context[param]);
}
}
// TMN Specific
if(!context.site && window && window.TMNState && window.TMNState.site){
context.site = window.TMNState.site;
}
// Replace missing params with empty strings.
// pathTo is not correctly handling express optional parameters of the form /blogs/:id/:tag?
// lop off the ? off the end of the result
return path.replace(/([:*])([\w\-]+)?/g, '').replace(/[?]$/, '');
};
};
## Instruction:
Fix TMN specific site param
## Code After:
/*
Copyright (c) 2013, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
'use strict';
// The `pathTo()` function is written in ES3 so it's serializable and able to
// run in all JavaScript environments.
module.exports = function pathTo(routeMap) {
return function (routeName, context) {
var route = routeMap[routeName],
path, keys, i, len, key, param, regex;
if (!route) { return ''; }
path = route.path;
keys = route.keys;
if (context && (len = keys.length)) {
for (i = 0; i < len; i += 1) {
key = keys[i];
param = key.name || key;
regex = new RegExp('[:*]' + param + '\\b');
path = path.replace(regex, context[param]);
}
}
// TMN Specific
// apply site option if not specified.
if(!context.site){
try{
var isServer = typeof window === "undefined";
if(isServer){
context.site = global.appConfig.app.sport;
} else {
context.site = window.TMNState.site;
}
} catch(e){
console.error("Failed to apply missing site param to pathTo", e);
}
}
// Replace missing params with empty strings.
// pathTo is not correctly handling express optional parameters of the form /blogs/:id/:tag?
// lop off the ? off the end of the result
return path.replace(/([:*])([\w\-]+)?/g, '').replace(/[?]$/, '');
};
};
| /*
Copyright (c) 2013, Yahoo! Inc. All rights reserved.
Copyrights licensed under the New BSD License.
See the accompanying LICENSE file for terms.
*/
'use strict';
// The `pathTo()` function is written in ES3 so it's serializable and able to
// run in all JavaScript environments.
module.exports = function pathTo(routeMap) {
return function (routeName, context) {
var route = routeMap[routeName],
path, keys, i, len, key, param, regex;
if (!route) { return ''; }
path = route.path;
keys = route.keys;
if (context && (len = keys.length)) {
for (i = 0; i < len; i += 1) {
key = keys[i];
param = key.name || key;
regex = new RegExp('[:*]' + param + '\\b');
path = path.replace(regex, context[param]);
}
}
// TMN Specific
- if(!context.site && window && window.TMNState && window.TMNState.site){
+ // apply site option if not specified.
+ if(!context.site){
+ try{
+ var isServer = typeof window === "undefined";
+
+ if(isServer){
+ context.site = global.appConfig.app.sport;
+ } else {
- context.site = window.TMNState.site;
+ context.site = window.TMNState.site;
? ++++++++
+ }
+ } catch(e){
+ console.error("Failed to apply missing site param to pathTo", e);
+ }
}
// Replace missing params with empty strings.
// pathTo is not correctly handling express optional parameters of the form /blogs/:id/:tag?
// lop off the ? off the end of the result
return path.replace(/([:*])([\w\-]+)?/g, '').replace(/[?]$/, '');
};
}; | 15 | 0.384615 | 13 | 2 |
5b195f691fb81ace7d25c61edacc1425682830b1 | spec/support/runnables_link_matcher.rb | spec/support/runnables_link_matcher.rb | module RunnablesLinkMatcher
class BeLinkLike
def initialize(href, css_class, image, link_text)
@href, @css_class, @image, @link_text = href, css_class, image, link_text
end
def matches?(target)
@target = target
@target.should =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i
end
def failure_message
"Expected a properly formed link."
end
def negative_failure_message
"Expected an improperly formed link."
end
end
def be_link_like(href, css_class, image, link_text="")
BeLinkLike.new(href, css_class, image, link_text)
end
end
|
module RunnablesLinkMatcher
extend RSpec::Matchers::DSL
matcher :be_link_like do |href, css_class, image, link_text|
match do |actual|
actual =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i
end
failure_message_for_should { 'Expected a properly formed link.' }
failure_message_for_should_not { 'Expected an improperly formed link.' }
end
end
| Rewrite be_link_like matcher for rspec 3.x | Rewrite be_link_like matcher for rspec 3.x
| Ruby | mit | concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse | ruby | ## Code Before:
module RunnablesLinkMatcher
class BeLinkLike
def initialize(href, css_class, image, link_text)
@href, @css_class, @image, @link_text = href, css_class, image, link_text
end
def matches?(target)
@target = target
@target.should =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i
end
def failure_message
"Expected a properly formed link."
end
def negative_failure_message
"Expected an improperly formed link."
end
end
def be_link_like(href, css_class, image, link_text="")
BeLinkLike.new(href, css_class, image, link_text)
end
end
## Instruction:
Rewrite be_link_like matcher for rspec 3.x
## Code After:
module RunnablesLinkMatcher
extend RSpec::Matchers::DSL
matcher :be_link_like do |href, css_class, image, link_text|
match do |actual|
actual =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i
end
failure_message_for_should { 'Expected a properly formed link.' }
failure_message_for_should_not { 'Expected an improperly formed link.' }
end
end
| +
module RunnablesLinkMatcher
- class BeLinkLike
- def initialize(href, css_class, image, link_text)
- @href, @css_class, @image, @link_text = href, css_class, image, link_text
+ extend RSpec::Matchers::DSL
+
+ matcher :be_link_like do |href, css_class, image, link_text|
+ match do |actual|
+ actual =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i
end
+ failure_message_for_should { 'Expected a properly formed link.' }
+ failure_message_for_should_not { 'Expected an improperly formed link.' }
-
- def matches?(target)
- @target = target
- @target.should =~ /(.*)#{@href}(.*)#{@css_class}(.*)#{@image}(.*)(#{@link_text}(.*))?/i
- end
-
- def failure_message
- "Expected a properly formed link."
- end
-
- def negative_failure_message
- "Expected an improperly formed link."
- end
- end
-
- def be_link_like(href, css_class, image, link_text="")
- BeLinkLike.new(href, css_class, image, link_text)
end
end | 28 | 1.166667 | 8 | 20 |
f6e92991a12265797fe7e5d5a74076bbcb4be79a | modules/clients/server/models/client.server.model.js | modules/clients/server/models/client.server.model.js | 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Client Schema
*/
var ClientSchema = new Schema({
clientID: {
type: String,
trim: true
},
clientName: {
type: String,
trim: true
},
clientSecret: {
type: String,
trim: true
},
redirectURI: {
type: String,
trim: true
},
user: {
type: Schema.ObjectId,
ref: 'User'
}
});
mongoose.model('Client', ClientSchema);
| 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Client Schema
*/
var ClientSchema = new Schema({
created: {
type: Date,
default: Date.now
},
clientID: {
type: String,
trim: true
},
clientName: {
type: String,
trim: true
},
clientSecret: {
type: String,
trim: true
},
redirectURI: {
type: String,
trim: true
},
user: {
type: Schema.ObjectId,
ref: 'User'
}
});
mongoose.model('Client', ClientSchema);
| Add field 'created' to Client collection | Add field 'created' to Client collection
| JavaScript | agpl-3.0 | BuggleInc/PLM-accounts,BuggleInc/PLM-accounts,MatthieuNICOLAS/PLMAccounts,MatthieuNICOLAS/PLMAccounts,MatthieuNICOLAS/PLMAccounts,BuggleInc/PLM-accounts | javascript | ## Code Before:
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Client Schema
*/
var ClientSchema = new Schema({
clientID: {
type: String,
trim: true
},
clientName: {
type: String,
trim: true
},
clientSecret: {
type: String,
trim: true
},
redirectURI: {
type: String,
trim: true
},
user: {
type: Schema.ObjectId,
ref: 'User'
}
});
mongoose.model('Client', ClientSchema);
## Instruction:
Add field 'created' to Client collection
## Code After:
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Client Schema
*/
var ClientSchema = new Schema({
created: {
type: Date,
default: Date.now
},
clientID: {
type: String,
trim: true
},
clientName: {
type: String,
trim: true
},
clientSecret: {
type: String,
trim: true
},
redirectURI: {
type: String,
trim: true
},
user: {
type: Schema.ObjectId,
ref: 'User'
}
});
mongoose.model('Client', ClientSchema);
| 'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Client Schema
*/
var ClientSchema = new Schema({
+ created: {
+ type: Date,
+ default: Date.now
+ },
clientID: {
type: String,
trim: true
},
clientName: {
type: String,
trim: true
},
clientSecret: {
type: String,
trim: true
},
redirectURI: {
type: String,
trim: true
},
user: {
type: Schema.ObjectId,
ref: 'User'
}
});
mongoose.model('Client', ClientSchema); | 4 | 0.114286 | 4 | 0 |
20d63ba3fa1a9780d4a13c5119ae97a772efb502 | teardown_tests.py | teardown_tests.py |
import os
import shutil
import sys
if not os.environ.get("TEST_NOTEBOOKS"):
sys.exit(0)
for each in list(sys.argv[1:]) + [
"reg.h5",
"reg_sub.h5",
"reg_f_f0.h5",
"reg_wt.h5",
"reg_norm.h5",
"reg_dict.h5",
"reg_post.h5",
"reg_traces.h5",
"reg_rois.h5",
"reg_proj.h5",
"reg_proj.html"]:
if os.path.isfile(each):
os.remove(each)
elif os.path.isdir(each):
shutil.rmtree(each)
|
import os
import shutil
import sys
if not os.environ.get("TEST_NOTEBOOKS"):
sys.exit(0)
for each in list(sys.argv[1:]) + [
"reg.h5",
"reg_sub.h5",
"reg_f_f0.h5",
"reg_wt.h5",
"reg_norm.h5",
"reg_dict.h5",
"reg_post.h5",
"reg_traces.h5",
"reg_rois.h5",
"reg_proj.h5",
"reg.zarr",
"reg_sub.zarr",
"reg_f_f0.zarr",
"reg_wt.zarr",
"reg_norm.zarr",
"reg_dict.zarr",
"reg_post.zarr",
"reg_traces.zarr",
"reg_rois.zarr",
"reg_proj.zarr",
"reg_proj.html"]:
if os.path.isfile(each):
os.remove(each)
elif os.path.isdir(each):
shutil.rmtree(each)
| Remove test Zarr files after completion. | Remove test Zarr files after completion.
| Python | apache-2.0 | nanshe-org/nanshe_workflow,DudLab/nanshe_workflow | python | ## Code Before:
import os
import shutil
import sys
if not os.environ.get("TEST_NOTEBOOKS"):
sys.exit(0)
for each in list(sys.argv[1:]) + [
"reg.h5",
"reg_sub.h5",
"reg_f_f0.h5",
"reg_wt.h5",
"reg_norm.h5",
"reg_dict.h5",
"reg_post.h5",
"reg_traces.h5",
"reg_rois.h5",
"reg_proj.h5",
"reg_proj.html"]:
if os.path.isfile(each):
os.remove(each)
elif os.path.isdir(each):
shutil.rmtree(each)
## Instruction:
Remove test Zarr files after completion.
## Code After:
import os
import shutil
import sys
if not os.environ.get("TEST_NOTEBOOKS"):
sys.exit(0)
for each in list(sys.argv[1:]) + [
"reg.h5",
"reg_sub.h5",
"reg_f_f0.h5",
"reg_wt.h5",
"reg_norm.h5",
"reg_dict.h5",
"reg_post.h5",
"reg_traces.h5",
"reg_rois.h5",
"reg_proj.h5",
"reg.zarr",
"reg_sub.zarr",
"reg_f_f0.zarr",
"reg_wt.zarr",
"reg_norm.zarr",
"reg_dict.zarr",
"reg_post.zarr",
"reg_traces.zarr",
"reg_rois.zarr",
"reg_proj.zarr",
"reg_proj.html"]:
if os.path.isfile(each):
os.remove(each)
elif os.path.isdir(each):
shutil.rmtree(each)
|
import os
import shutil
import sys
if not os.environ.get("TEST_NOTEBOOKS"):
sys.exit(0)
for each in list(sys.argv[1:]) + [
"reg.h5",
"reg_sub.h5",
"reg_f_f0.h5",
"reg_wt.h5",
"reg_norm.h5",
"reg_dict.h5",
"reg_post.h5",
"reg_traces.h5",
"reg_rois.h5",
"reg_proj.h5",
+ "reg.zarr",
+ "reg_sub.zarr",
+ "reg_f_f0.zarr",
+ "reg_wt.zarr",
+ "reg_norm.zarr",
+ "reg_dict.zarr",
+ "reg_post.zarr",
+ "reg_traces.zarr",
+ "reg_rois.zarr",
+ "reg_proj.zarr",
"reg_proj.html"]:
if os.path.isfile(each):
os.remove(each)
elif os.path.isdir(each):
shutil.rmtree(each) | 10 | 0.384615 | 10 | 0 |
3396a1fd483909794ac12651b6f04541581ae680 | util/logger.go | util/logger.go | package util
import (
"fmt"
"io"
"log"
"os"
)
// Create a logger with the given prefix
func CreateLogger(prefix string) *log.Logger {
return CreateLoggerWithWriter(os.Stderr, prefix)
// return log.New(os.Stderr, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
// CreateLoggerWithWriter Create a lgogger around the given output stream and prefix
func CreateLoggerWithWriter(writer io.Writer, prefix string) *log.Logger {
if prefix != "" {
prefix = fmt.Sprintf("[%s] ", prefix)
}
return log.New(writer, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
| package util
import (
"fmt"
"io"
"log"
"os"
)
// Create a logger with the given prefix
func CreateLogger(prefix string) *log.Logger {
return CreateLoggerWithWriter(os.Stderr, prefix)
}
// CreateLoggerWithWriter Create a lgogger around the given output stream and prefix
func CreateLoggerWithWriter(writer io.Writer, prefix string) *log.Logger {
if prefix != "" {
prefix = fmt.Sprintf("[%s] ", prefix)
}
return log.New(writer, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
| Remove commented out old logic | Remove commented out old logic
| Go | mit | gruntwork-io/terragrunt,gruntwork-io/terragrunt,tamsky/terragrunt,tamsky/terragrunt | go | ## Code Before:
package util
import (
"fmt"
"io"
"log"
"os"
)
// Create a logger with the given prefix
func CreateLogger(prefix string) *log.Logger {
return CreateLoggerWithWriter(os.Stderr, prefix)
// return log.New(os.Stderr, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
// CreateLoggerWithWriter Create a lgogger around the given output stream and prefix
func CreateLoggerWithWriter(writer io.Writer, prefix string) *log.Logger {
if prefix != "" {
prefix = fmt.Sprintf("[%s] ", prefix)
}
return log.New(writer, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
## Instruction:
Remove commented out old logic
## Code After:
package util
import (
"fmt"
"io"
"log"
"os"
)
// Create a logger with the given prefix
func CreateLogger(prefix string) *log.Logger {
return CreateLoggerWithWriter(os.Stderr, prefix)
}
// CreateLoggerWithWriter Create a lgogger around the given output stream and prefix
func CreateLoggerWithWriter(writer io.Writer, prefix string) *log.Logger {
if prefix != "" {
prefix = fmt.Sprintf("[%s] ", prefix)
}
return log.New(writer, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
| package util
import (
"fmt"
"io"
"log"
"os"
)
// Create a logger with the given prefix
func CreateLogger(prefix string) *log.Logger {
return CreateLoggerWithWriter(os.Stderr, prefix)
- // return log.New(os.Stderr, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
}
// CreateLoggerWithWriter Create a lgogger around the given output stream and prefix
func CreateLoggerWithWriter(writer io.Writer, prefix string) *log.Logger {
if prefix != "" {
prefix = fmt.Sprintf("[%s] ", prefix)
}
return log.New(writer, fmt.Sprintf("[terragrunt] %s", prefix), log.LstdFlags)
} | 1 | 0.045455 | 0 | 1 |
bfa9189bd22d1e1e5dd5642110ed7f05bfff5803 | config/routes.rb | config/routes.rb | Rails.application.routes.draw do
mount GovukPublishingComponents::Engine, at: "/component-guide"
scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do
get "/:prefix/:manual_id", to: "manuals#index"
get "/:prefix/:manual_id/updates", to: "manuals#updates"
get "/:prefix/:manual_id/:section_id", to: "manuals#show"
end
root to: proc { [404, {}, ["Not found"]] }
get "/healthcheck", to: GovukHealthcheck.rack_response
end
| Rails.application.routes.draw do
mount GovukPublishingComponents::Engine, at: "/component-guide"
scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do
get "/:prefix/:manual_id", to: "manuals#index"
get "/:prefix/:manual_id/updates", to: "manuals#updates"
get "/:prefix/:manual_id/:section_id", to: "manuals#show"
end
root to: proc { [404, {}, ["Not found"]] }
get "/healthcheck", to: GovukHealthcheck.rack_response
get "/healthcheck/live", to: proc { [200, {}, %w[OK]] }
get "/healthcheck/ready", to: GovukHealthcheck.rack_response
end
| Add RFC 141 healthcheck endpoints | Add RFC 141 healthcheck endpoints
Once govuk-puppet has been updated, the old endpoint can be removed.
See the RFC for more details.
| Ruby | mit | alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend,alphagov/manuals-frontend | ruby | ## Code Before:
Rails.application.routes.draw do
mount GovukPublishingComponents::Engine, at: "/component-guide"
scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do
get "/:prefix/:manual_id", to: "manuals#index"
get "/:prefix/:manual_id/updates", to: "manuals#updates"
get "/:prefix/:manual_id/:section_id", to: "manuals#show"
end
root to: proc { [404, {}, ["Not found"]] }
get "/healthcheck", to: GovukHealthcheck.rack_response
end
## Instruction:
Add RFC 141 healthcheck endpoints
Once govuk-puppet has been updated, the old endpoint can be removed.
See the RFC for more details.
## Code After:
Rails.application.routes.draw do
mount GovukPublishingComponents::Engine, at: "/component-guide"
scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do
get "/:prefix/:manual_id", to: "manuals#index"
get "/:prefix/:manual_id/updates", to: "manuals#updates"
get "/:prefix/:manual_id/:section_id", to: "manuals#show"
end
root to: proc { [404, {}, ["Not found"]] }
get "/healthcheck", to: GovukHealthcheck.rack_response
get "/healthcheck/live", to: proc { [200, {}, %w[OK]] }
get "/healthcheck/ready", to: GovukHealthcheck.rack_response
end
| Rails.application.routes.draw do
mount GovukPublishingComponents::Engine, at: "/component-guide"
scope constraints: { prefix: /(guidance|hmrc-internal-manuals)/, format: "html" } do
get "/:prefix/:manual_id", to: "manuals#index"
get "/:prefix/:manual_id/updates", to: "manuals#updates"
get "/:prefix/:manual_id/:section_id", to: "manuals#show"
end
root to: proc { [404, {}, ["Not found"]] }
get "/healthcheck", to: GovukHealthcheck.rack_response
+
+ get "/healthcheck/live", to: proc { [200, {}, %w[OK]] }
+ get "/healthcheck/ready", to: GovukHealthcheck.rack_response
end | 3 | 0.230769 | 3 | 0 |
f3a586870c7c8c9dc510645e8b195a5d04e4e606 | src/Hydrator/Strategy/WebEntitiesStrategy.php | src/Hydrator/Strategy/WebEntitiesStrategy.php | <?php
namespace Vision\Hydrator\Strategy;
use Vision\Annotation\Property;
use Vision\Annotation\WebEntity;
use Zend\Hydrator\Strategy\StrategyInterface;
class WebEntitiesStrategy implements StrategyInterface
{
/**
* @param WebEntity[] $value
* @return array
*/
public function extract($value)
{
return array_map(function(WebEntity $webEntity) {
return array_filter([
'entityId' => $webEntity->getEntityId(),
'score' => $webEntity->getScore(),
'description' => $webEntity->getDescription(),
]);
}, $value);
}
/**
* @param array $value
* @return WebEntity[]
*/
public function hydrate($value)
{
$webEntities = [];
foreach ($value as $webEntityInfo) {
$webEntities[] = new WebEntity($webEntityInfo['entityId'], $webEntityInfo['description'], isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null);
}
return $webEntities;
}
}
| <?php
namespace Vision\Hydrator\Strategy;
use Vision\Annotation\Property;
use Vision\Annotation\WebEntity;
use Zend\Hydrator\Strategy\StrategyInterface;
class WebEntitiesStrategy implements StrategyInterface
{
/**
* @param WebEntity[] $value
* @return array
*/
public function extract($value)
{
return array_map(function(WebEntity $webEntity) {
return array_filter([
'entityId' => $webEntity->getEntityId(),
'score' => $webEntity->getScore(),
'description' => $webEntity->getDescription(),
]);
}, $value);
}
/**
* @param array $value
* @return WebEntity[]
*/
public function hydrate($value)
{
$webEntities = [];
foreach ($value as $webEntityInfo) {
$webEntities[] = new WebEntity(
$webEntityInfo['entityId'],
isset($webEntityInfo['description']) ? $webEntityInfo['description'] : null,
isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null
);
}
return $webEntities;
}
}
| Allow description to be null | Allow description to be null
| PHP | mit | jordi12100/Php-Google-Vision-Api,jordikroon/Php-Google-Vision-Api | php | ## Code Before:
<?php
namespace Vision\Hydrator\Strategy;
use Vision\Annotation\Property;
use Vision\Annotation\WebEntity;
use Zend\Hydrator\Strategy\StrategyInterface;
class WebEntitiesStrategy implements StrategyInterface
{
/**
* @param WebEntity[] $value
* @return array
*/
public function extract($value)
{
return array_map(function(WebEntity $webEntity) {
return array_filter([
'entityId' => $webEntity->getEntityId(),
'score' => $webEntity->getScore(),
'description' => $webEntity->getDescription(),
]);
}, $value);
}
/**
* @param array $value
* @return WebEntity[]
*/
public function hydrate($value)
{
$webEntities = [];
foreach ($value as $webEntityInfo) {
$webEntities[] = new WebEntity($webEntityInfo['entityId'], $webEntityInfo['description'], isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null);
}
return $webEntities;
}
}
## Instruction:
Allow description to be null
## Code After:
<?php
namespace Vision\Hydrator\Strategy;
use Vision\Annotation\Property;
use Vision\Annotation\WebEntity;
use Zend\Hydrator\Strategy\StrategyInterface;
class WebEntitiesStrategy implements StrategyInterface
{
/**
* @param WebEntity[] $value
* @return array
*/
public function extract($value)
{
return array_map(function(WebEntity $webEntity) {
return array_filter([
'entityId' => $webEntity->getEntityId(),
'score' => $webEntity->getScore(),
'description' => $webEntity->getDescription(),
]);
}, $value);
}
/**
* @param array $value
* @return WebEntity[]
*/
public function hydrate($value)
{
$webEntities = [];
foreach ($value as $webEntityInfo) {
$webEntities[] = new WebEntity(
$webEntityInfo['entityId'],
isset($webEntityInfo['description']) ? $webEntityInfo['description'] : null,
isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null
);
}
return $webEntities;
}
}
| <?php
namespace Vision\Hydrator\Strategy;
use Vision\Annotation\Property;
use Vision\Annotation\WebEntity;
use Zend\Hydrator\Strategy\StrategyInterface;
class WebEntitiesStrategy implements StrategyInterface
{
/**
* @param WebEntity[] $value
* @return array
*/
public function extract($value)
{
return array_map(function(WebEntity $webEntity) {
return array_filter([
'entityId' => $webEntity->getEntityId(),
'score' => $webEntity->getScore(),
'description' => $webEntity->getDescription(),
]);
}, $value);
}
/**
* @param array $value
* @return WebEntity[]
*/
public function hydrate($value)
{
$webEntities = [];
foreach ($value as $webEntityInfo) {
- $webEntities[] = new WebEntity($webEntityInfo['entityId'], $webEntityInfo['description'], isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null);
+ $webEntities[] = new WebEntity(
+ $webEntityInfo['entityId'],
+ isset($webEntityInfo['description']) ? $webEntityInfo['description'] : null,
+ isset($webEntityInfo['score']) ? $webEntityInfo['score'] : null
+ );
}
return $webEntities;
}
} | 6 | 0.15 | 5 | 1 |
980f9abc5b95c9f9ed089b13e9538173bcac0952 | app/user_administration/urls.py | app/user_administration/urls.py | from django.conf.urls import url
from .views import HomePage
urlpatterns = [
url(r'^', HomePage.as_view(), name='HomePage'),
]
| from django.conf.urls import url
from .views import HomePage, LoginPage
from django.contrib.auth.views import logout_then_login
urlpatterns = [
url(r'^$', HomePage.as_view(), name='HomePage'),
url(r'^login/', LoginPage.as_view(), name='LoginPage'),
url(r'^logout/', logout_then_login, name='LoginPage'),
]
| Add Login & Logout Routing | Add Login & Logout Routing
| Python | mit | rexhepberlajolli/RHChallenge,rexhepberlajolli/RHChallenge | python | ## Code Before:
from django.conf.urls import url
from .views import HomePage
urlpatterns = [
url(r'^', HomePage.as_view(), name='HomePage'),
]
## Instruction:
Add Login & Logout Routing
## Code After:
from django.conf.urls import url
from .views import HomePage, LoginPage
from django.contrib.auth.views import logout_then_login
urlpatterns = [
url(r'^$', HomePage.as_view(), name='HomePage'),
url(r'^login/', LoginPage.as_view(), name='LoginPage'),
url(r'^logout/', logout_then_login, name='LoginPage'),
]
| from django.conf.urls import url
- from .views import HomePage
+ from .views import HomePage, LoginPage
? +++++++++++
+ from django.contrib.auth.views import logout_then_login
urlpatterns = [
- url(r'^', HomePage.as_view(), name='HomePage'),
+ url(r'^$', HomePage.as_view(), name='HomePage'),
? +
+ url(r'^login/', LoginPage.as_view(), name='LoginPage'),
+ url(r'^logout/', logout_then_login, name='LoginPage'),
] | 7 | 1.166667 | 5 | 2 |
5521951957a55680f3a42107195d3e59e32916c5 | app/assets/javascripts/charts/intervention_plot_band.js | app/assets/javascripts/charts/intervention_plot_band.js | (function(root) {
var InterventionPlotBand = function initializeInterventionPlotBand (intervention) {
this.name = intervention.name;
this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date);
this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date);
}
InterventionPlotBand.toHighChartsDate = function interventionDatesToHighChartsDate (date) {
return Date.UTC(date['year'],
date['month'] - 1, // JavaScript months start with 0, Ruby months start with 1
date['day'])
}
InterventionPlotBand.prototype.toHighCharts = function interventionToHighCharts () {
return $.extend({},
InterventionPlotBand.base_options, {
from: this.from,
to: this.to,
label: { text: this.name }
}
);
}
InterventionPlotBand.base_options = {
color: '#FCFCC8',
zIndex: 2,
label: {
style: {
color: '#999999'
}
}
}
root.InterventionPlotBand = InterventionPlotBand;
})(window)
| (function(root) {
var InterventionPlotBand = function initializeInterventionPlotBand (intervention) {
this.name = intervention.name;
this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date);
this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date);
}
InterventionPlotBand.toHighChartsDate = function interventionDatesToHighChartsDate (date) {
return Date.UTC(date['year'],
date['month'] - 1, // JavaScript months start with 0, Ruby months start with 1
date['day'])
}
InterventionPlotBand.prototype.toHighCharts = function interventionToHighCharts () {
return $.extend({},
InterventionPlotBand.base_options, {
from: this.from,
to: this.to,
}
);
}
InterventionPlotBand.base_options = {
color: 'rgba(248,231,28,.23)',
zIndex: 2,
}
root.InterventionPlotBand = InterventionPlotBand;
})(window)
| Add alpha to interventions block | Add alpha to interventions block
In the Profile on the graph #234
| JavaScript | mit | studentinsights/studentinsights,erose/studentinsights,erose/studentinsights,hunterowens/somerville-teacher-tool,jhilde/studentinsights,codeforamerica/somerville-teacher-tool,jhilde/studentinsights,codeforamerica/somerville-teacher-tool,hunterowens/somerville-teacher-tool,studentinsights/studentinsights,codeforamerica/somerville-teacher-tool,erose/studentinsights,hunterowens/somerville-teacher-tool,studentinsights/studentinsights,jhilde/studentinsights,jamestyack/somerville-teacher-tool,erose/studentinsights,jamestyack/somerville-teacher-tool,codeforamerica/somerville-teacher-tool,jamestyack/somerville-teacher-tool,jhilde/studentinsights,studentinsights/studentinsights | javascript | ## Code Before:
(function(root) {
var InterventionPlotBand = function initializeInterventionPlotBand (intervention) {
this.name = intervention.name;
this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date);
this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date);
}
InterventionPlotBand.toHighChartsDate = function interventionDatesToHighChartsDate (date) {
return Date.UTC(date['year'],
date['month'] - 1, // JavaScript months start with 0, Ruby months start with 1
date['day'])
}
InterventionPlotBand.prototype.toHighCharts = function interventionToHighCharts () {
return $.extend({},
InterventionPlotBand.base_options, {
from: this.from,
to: this.to,
label: { text: this.name }
}
);
}
InterventionPlotBand.base_options = {
color: '#FCFCC8',
zIndex: 2,
label: {
style: {
color: '#999999'
}
}
}
root.InterventionPlotBand = InterventionPlotBand;
})(window)
## Instruction:
Add alpha to interventions block
In the Profile on the graph #234
## Code After:
(function(root) {
var InterventionPlotBand = function initializeInterventionPlotBand (intervention) {
this.name = intervention.name;
this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date);
this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date);
}
InterventionPlotBand.toHighChartsDate = function interventionDatesToHighChartsDate (date) {
return Date.UTC(date['year'],
date['month'] - 1, // JavaScript months start with 0, Ruby months start with 1
date['day'])
}
InterventionPlotBand.prototype.toHighCharts = function interventionToHighCharts () {
return $.extend({},
InterventionPlotBand.base_options, {
from: this.from,
to: this.to,
}
);
}
InterventionPlotBand.base_options = {
color: 'rgba(248,231,28,.23)',
zIndex: 2,
}
root.InterventionPlotBand = InterventionPlotBand;
})(window)
| (function(root) {
var InterventionPlotBand = function initializeInterventionPlotBand (intervention) {
this.name = intervention.name;
this.from = InterventionPlotBand.toHighChartsDate(intervention.start_date);
this.to = InterventionPlotBand.toHighChartsDate(intervention.end_date);
}
InterventionPlotBand.toHighChartsDate = function interventionDatesToHighChartsDate (date) {
return Date.UTC(date['year'],
date['month'] - 1, // JavaScript months start with 0, Ruby months start with 1
date['day'])
}
InterventionPlotBand.prototype.toHighCharts = function interventionToHighCharts () {
return $.extend({},
InterventionPlotBand.base_options, {
from: this.from,
to: this.to,
- label: { text: this.name }
}
);
}
InterventionPlotBand.base_options = {
- color: '#FCFCC8',
+ color: 'rgba(248,231,28,.23)',
zIndex: 2,
- label: {
- style: {
- color: '#999999'
- }
- }
}
root.InterventionPlotBand = InterventionPlotBand;
})(window) | 8 | 0.216216 | 1 | 7 |
17ebdcfb9d6b494260aa6bcb9d285a603938cfab | README.md | README.md |
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.
## Installation
Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.
## Configuration
The configuration goes in the plugins/DiscordChat folder, named config.yml.
```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)
channels:
channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
tag: Tag # Tag to show on Minecraft chat
discord-listen: true # Enable Discord -> Minecraft connection
minecraft-listen: true # Enable Minecraft -> Discord connection
```
## Commands and permission nodes
* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op) |
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.
## Installation
Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.
## Configuration
The configuration goes in the plugins/DiscordChat folder, named config.yml.
```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)
channels:
channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
tag: Tag # Tag to show on Minecraft chat
discord-listen: true # Enable Discord -> Minecraft connection
minecraft-listen: true # Enable Minecraft -> Discord connection
```
## Commands and permission nodes
* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op)
## Languages and translations
You can switch between available languages. Actually, English (en) and Spanish.
You can use custom languages, by putting a file like "lang_{lang}.yml" in plugin folder, and set the "{lang}" in
the config. Use the file [lang.yml](src/main/resources/lang.yml) as base. | Update readme with language information | Update readme with language information
| Markdown | mit | jkcgs/DiscordChat | markdown | ## Code Before:
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.
## Installation
Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.
## Configuration
The configuration goes in the plugins/DiscordChat folder, named config.yml.
```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)
channels:
channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
tag: Tag # Tag to show on Minecraft chat
discord-listen: true # Enable Discord -> Minecraft connection
minecraft-listen: true # Enable Minecraft -> Discord connection
```
## Commands and permission nodes
* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op)
## Instruction:
Update readme with language information
## Code After:
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.
## Installation
Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.
## Configuration
The configuration goes in the plugins/DiscordChat folder, named config.yml.
```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)
channels:
channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
tag: Tag # Tag to show on Minecraft chat
discord-listen: true # Enable Discord -> Minecraft connection
minecraft-listen: true # Enable Minecraft -> Discord connection
```
## Commands and permission nodes
* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op)
## Languages and translations
You can switch between available languages. Actually, English (en) and Spanish.
You can use custom languages, by putting a file like "lang_{lang}.yml" in plugin folder, and set the "{lang}" in
the config. Use the file [lang.yml](src/main/resources/lang.yml) as base. |
This is a Spigot plugin that connects a Discord client with a Minecraft server, by showing the Discord messages sent to
a channel to the Minecraft chat, and vise versa.
## Installation
Put the plugin jar into the plugins server, and, before starting the server, create the configuration file with the
following example.
## Configuration
The configuration goes in the plugins/DiscordChat folder, named config.yml.
```yml
discord-email: 'Your Discord email'
discord-password: 'Your Discord password'
lang: en # Switch between available languages
filter-different-recipients: true # Toggles display of messages not sent to all (e.g., FactionChat)
channels:
channel-id: # The channel ID obtainable from the URL (e.g.: https://discordapp.com/channels/{server-id}/{channel-id}
tag: Tag # Tag to show on Minecraft chat
discord-listen: true # Enable Discord -> Minecraft connection
minecraft-listen: true # Enable Minecraft -> Discord connection
```
## Commands and permission nodes
* /dcreload (/dcr): Reloads the plugin configuration - discordbot.reload (default: op)
+
+ ## Languages and translations
+
+ You can switch between available languages. Actually, English (en) and Spanish.
+ You can use custom languages, by putting a file like "lang_{lang}.yml" in plugin folder, and set the "{lang}" in
+ the config. Use the file [lang.yml](src/main/resources/lang.yml) as base. | 6 | 0.206897 | 6 | 0 |
d8cc9b3470b905d5557ebfae11ebc770337bdf0d | Assets/Plugins/iOS/FrispSocial/FrispSocial.mm | Assets/Plugins/iOS/FrispSocial/FrispSocial.mm |
@implementation FrispSocial
static FrispSocial * _instance = [[FrispSocial alloc] init];
+ (id) instance {
return _instance;
}
- (void) share:(NSString *)text media:(NSString *)media {
UIActivityViewController *socialViewController;
// Create image from image data
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:media options: 0];
UIImage *image = [[UIImage alloc] initWithData:imageData];
socialViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, image] applicationActivities:nil];
UIViewController *rootViewController = UnityGetGLViewController();
[rootViewController presentViewController:socialViewController animated:YES completion:nil];
}
extern "C" {
void _Share(char* text, char* encodedMedia) {
NSString *status = [NSString stringWithUTF8String: text];
NSString *media = [NSString stringWithUTF8String: encodedMedia];
[[FrispSocial instance] share:status media:media];
}
}
@end |
@implementation FrispSocial
static FrispSocial * _instance = [[FrispSocial alloc] init];
+ (id) instance {
return _instance;
}
- (void) share:(NSString *)text media:(NSString *)media {
UIActivityViewController *socialViewController;
// Create image from image data
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:media options: 0];
UIImage *image = [[UIImage alloc] initWithData:imageData];
socialViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, image] applicationActivities:nil];
UIViewController *rootViewController = UnityGetGLViewController();
if ([socialViewController respondsToSelector:@selector(popoverPresentationController)]) {
// IOS8 iPad
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:socialViewController];
[popup presentPopoverFromRect:CGRectMake(rootViewController.view.frame.size.width/2, rootViewController.view.frame.size.height/4, 0, 0)inView:rootViewController.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
} else {
[rootViewController presentViewController:socialViewController animated:YES completion:nil];
}
}
extern "C" {
void _Share(char* text, char* encodedMedia) {
NSString *status = [NSString stringWithUTF8String: text];
NSString *media = [NSString stringWithUTF8String: encodedMedia];
[[FrispSocial instance] share:status media:media];
}
}
@end | Support iPad for iOS8 + | Support iPad for iOS8 +
| Objective-C++ | mit | frispgames/frisp-social-unity-asset | objective-c++ | ## Code Before:
@implementation FrispSocial
static FrispSocial * _instance = [[FrispSocial alloc] init];
+ (id) instance {
return _instance;
}
- (void) share:(NSString *)text media:(NSString *)media {
UIActivityViewController *socialViewController;
// Create image from image data
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:media options: 0];
UIImage *image = [[UIImage alloc] initWithData:imageData];
socialViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, image] applicationActivities:nil];
UIViewController *rootViewController = UnityGetGLViewController();
[rootViewController presentViewController:socialViewController animated:YES completion:nil];
}
extern "C" {
void _Share(char* text, char* encodedMedia) {
NSString *status = [NSString stringWithUTF8String: text];
NSString *media = [NSString stringWithUTF8String: encodedMedia];
[[FrispSocial instance] share:status media:media];
}
}
@end
## Instruction:
Support iPad for iOS8 +
## Code After:
@implementation FrispSocial
static FrispSocial * _instance = [[FrispSocial alloc] init];
+ (id) instance {
return _instance;
}
- (void) share:(NSString *)text media:(NSString *)media {
UIActivityViewController *socialViewController;
// Create image from image data
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:media options: 0];
UIImage *image = [[UIImage alloc] initWithData:imageData];
socialViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, image] applicationActivities:nil];
UIViewController *rootViewController = UnityGetGLViewController();
if ([socialViewController respondsToSelector:@selector(popoverPresentationController)]) {
// IOS8 iPad
UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:socialViewController];
[popup presentPopoverFromRect:CGRectMake(rootViewController.view.frame.size.width/2, rootViewController.view.frame.size.height/4, 0, 0)inView:rootViewController.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
} else {
[rootViewController presentViewController:socialViewController animated:YES completion:nil];
}
}
extern "C" {
void _Share(char* text, char* encodedMedia) {
NSString *status = [NSString stringWithUTF8String: text];
NSString *media = [NSString stringWithUTF8String: encodedMedia];
[[FrispSocial instance] share:status media:media];
}
}
@end |
@implementation FrispSocial
static FrispSocial * _instance = [[FrispSocial alloc] init];
+ (id) instance {
return _instance;
}
- (void) share:(NSString *)text media:(NSString *)media {
UIActivityViewController *socialViewController;
// Create image from image data
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:media options: 0];
UIImage *image = [[UIImage alloc] initWithData:imageData];
socialViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, image] applicationActivities:nil];
-
+
UIViewController *rootViewController = UnityGetGLViewController();
-
+
+ if ([socialViewController respondsToSelector:@selector(popoverPresentationController)]) {
+ // IOS8 iPad
+ UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:socialViewController];
+ [popup presentPopoverFromRect:CGRectMake(rootViewController.view.frame.size.width/2, rootViewController.view.frame.size.height/4, 0, 0)inView:rootViewController.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
+ } else {
- [rootViewController presentViewController:socialViewController animated:YES completion:nil];
+ [rootViewController presentViewController:socialViewController animated:YES completion:nil];
? ++++++
+ }
}
extern "C" {
void _Share(char* text, char* encodedMedia) {
NSString *status = [NSString stringWithUTF8String: text];
NSString *media = [NSString stringWithUTF8String: encodedMedia];
[[FrispSocial instance] share:status media:media];
}
}
@end | 12 | 0.363636 | 9 | 3 |
adbd258f52886d01c7ccf253f4bae01f4bf23b4f | app/views/teams/_invitation.html.erb | app/views/teams/_invitation.html.erb | <h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4>
<%= form_tag do |f| %>
<div class="actions">
<%= submit_tag "Accept", name: 'accept', :class => 'button--invited', :id => 'accept' %>
<%= submit_tag "Decline", name: 'decline', :class => 'button--invited', :id => 'decline' %>
</div>
<% end %>
| <h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4>
<%= form_tag do |f| %>
<div class="actions">
<%= submit_tag "Accept", name: 'accept', :class => 'button--discrete', :id => 'success' %>
<%= submit_tag "Decline", name: 'decline', :class => 'button--discrete', :id => 'warning' %>
</div>
<% end %>
| Modify invitation partial to use more generalized id's | Modify invitation partial to use more generalized id's
| HTML+ERB | mit | codeforboston/cambridge_energy_app,codeforboston/cambridge_energy_app,codeforboston/cambridge_energy_app | html+erb | ## Code Before:
<h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4>
<%= form_tag do |f| %>
<div class="actions">
<%= submit_tag "Accept", name: 'accept', :class => 'button--invited', :id => 'accept' %>
<%= submit_tag "Decline", name: 'decline', :class => 'button--invited', :id => 'decline' %>
</div>
<% end %>
## Instruction:
Modify invitation partial to use more generalized id's
## Code After:
<h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4>
<%= form_tag do |f| %>
<div class="actions">
<%= submit_tag "Accept", name: 'accept', :class => 'button--discrete', :id => 'success' %>
<%= submit_tag "Decline", name: 'decline', :class => 'button--discrete', :id => 'warning' %>
</div>
<% end %>
| <h4 class = 'invited'><%= @user.inviter_name %> wants you to join <%= @user.inviter_team.name %></h4>
<%= form_tag do |f| %>
<div class="actions">
- <%= submit_tag "Accept", name: 'accept', :class => 'button--invited', :id => 'accept' %>
? ^^^ - ^ ^^
+ <%= submit_tag "Accept", name: 'accept', :class => 'button--discrete', :id => 'success' %>
? + ^^^^ ^^ ^^
- <%= submit_tag "Decline", name: 'decline', :class => 'button--invited', :id => 'decline' %>
? ^^^ - ^^^^ ^
+ <%= submit_tag "Decline", name: 'decline', :class => 'button--discrete', :id => 'warning' %>
? + ^^^^ ^^^^ ^
</div>
<% end %> | 4 | 0.4 | 2 | 2 |
01df39487a15003dd9b8c3d868ca6016014d5576 | app/assets/stylesheets/application.scss | app/assets/stylesheets/application.scss | $govuk-compatibility-govuktemplate: true;
$govuk-use-legacy-palette: false;
@import 'govuk_publishing_components/govuk_frontend_support';
@import 'govuk_publishing_components/component_support';
@import 'govuk_publishing_components/components/breadcrumbs';
@import 'govuk_publishing_components/components/contextual-sidebar';
@import 'govuk_publishing_components/components/feedback';
@import 'govuk_publishing_components/components/panel';
@import 'govuk_publishing_components/components/related-navigation';
@import 'govuk_publishing_components/components/step-by-step-nav';
@import 'govuk_publishing_components/components/step-by-step-nav-header';
@import 'govuk_publishing_components/components/step-by-step-nav-related';
@import 'govuk_publishing_components/components/table';
@import 'govuk_publishing_components/components/tabs';
@import 'govuk_publishing_components/components/title';
@import "objects/bunting";
@import "objects/related-container";
@import "components/calendar";
@import "components/metadata";
@import "components/subscribe";
@import "utilities/overwrites";
| $govuk-compatibility-govuktemplate: true;
$govuk-use-legacy-palette: false;
@import 'govuk_publishing_components/govuk_frontend_support';
@import 'govuk_publishing_components/component_support';
@import 'govuk_publishing_components/components/breadcrumbs';
@import 'govuk_publishing_components/components/button'; // not in application but needed for cookie banner
@import 'govuk_publishing_components/components/contextual-sidebar';
@import 'govuk_publishing_components/components/feedback';
@import 'govuk_publishing_components/components/panel';
@import 'govuk_publishing_components/components/related-navigation';
@import 'govuk_publishing_components/components/step-by-step-nav';
@import 'govuk_publishing_components/components/step-by-step-nav-header';
@import 'govuk_publishing_components/components/step-by-step-nav-related';
@import 'govuk_publishing_components/components/table';
@import 'govuk_publishing_components/components/tabs';
@import 'govuk_publishing_components/components/title';
@import "objects/bunting";
@import "objects/related-container";
@import "components/calendar";
@import "components/metadata";
@import "components/subscribe";
@import "utilities/overwrites";
| Add button sass to calendars | Add button sass to calendars
- buttons aren't used in the application, but they do appear in the cookie banner, and are presently unstyled
- we might need a better fix for this as buttons don't appear in the suggested sass for this application, so there is a risk they could be removed accidentally, but I've added a comment to reduce that risk
- don't need the print styles for buttons, because the cookie banner is not shown in print
| SCSS | mit | alphagov/calendars,alphagov/calendars,alphagov/calendars,alphagov/calendars | scss | ## Code Before:
$govuk-compatibility-govuktemplate: true;
$govuk-use-legacy-palette: false;
@import 'govuk_publishing_components/govuk_frontend_support';
@import 'govuk_publishing_components/component_support';
@import 'govuk_publishing_components/components/breadcrumbs';
@import 'govuk_publishing_components/components/contextual-sidebar';
@import 'govuk_publishing_components/components/feedback';
@import 'govuk_publishing_components/components/panel';
@import 'govuk_publishing_components/components/related-navigation';
@import 'govuk_publishing_components/components/step-by-step-nav';
@import 'govuk_publishing_components/components/step-by-step-nav-header';
@import 'govuk_publishing_components/components/step-by-step-nav-related';
@import 'govuk_publishing_components/components/table';
@import 'govuk_publishing_components/components/tabs';
@import 'govuk_publishing_components/components/title';
@import "objects/bunting";
@import "objects/related-container";
@import "components/calendar";
@import "components/metadata";
@import "components/subscribe";
@import "utilities/overwrites";
## Instruction:
Add button sass to calendars
- buttons aren't used in the application, but they do appear in the cookie banner, and are presently unstyled
- we might need a better fix for this as buttons don't appear in the suggested sass for this application, so there is a risk they could be removed accidentally, but I've added a comment to reduce that risk
- don't need the print styles for buttons, because the cookie banner is not shown in print
## Code After:
$govuk-compatibility-govuktemplate: true;
$govuk-use-legacy-palette: false;
@import 'govuk_publishing_components/govuk_frontend_support';
@import 'govuk_publishing_components/component_support';
@import 'govuk_publishing_components/components/breadcrumbs';
@import 'govuk_publishing_components/components/button'; // not in application but needed for cookie banner
@import 'govuk_publishing_components/components/contextual-sidebar';
@import 'govuk_publishing_components/components/feedback';
@import 'govuk_publishing_components/components/panel';
@import 'govuk_publishing_components/components/related-navigation';
@import 'govuk_publishing_components/components/step-by-step-nav';
@import 'govuk_publishing_components/components/step-by-step-nav-header';
@import 'govuk_publishing_components/components/step-by-step-nav-related';
@import 'govuk_publishing_components/components/table';
@import 'govuk_publishing_components/components/tabs';
@import 'govuk_publishing_components/components/title';
@import "objects/bunting";
@import "objects/related-container";
@import "components/calendar";
@import "components/metadata";
@import "components/subscribe";
@import "utilities/overwrites";
| $govuk-compatibility-govuktemplate: true;
$govuk-use-legacy-palette: false;
@import 'govuk_publishing_components/govuk_frontend_support';
@import 'govuk_publishing_components/component_support';
@import 'govuk_publishing_components/components/breadcrumbs';
+ @import 'govuk_publishing_components/components/button'; // not in application but needed for cookie banner
@import 'govuk_publishing_components/components/contextual-sidebar';
@import 'govuk_publishing_components/components/feedback';
@import 'govuk_publishing_components/components/panel';
@import 'govuk_publishing_components/components/related-navigation';
@import 'govuk_publishing_components/components/step-by-step-nav';
@import 'govuk_publishing_components/components/step-by-step-nav-header';
@import 'govuk_publishing_components/components/step-by-step-nav-related';
@import 'govuk_publishing_components/components/table';
@import 'govuk_publishing_components/components/tabs';
@import 'govuk_publishing_components/components/title';
@import "objects/bunting";
@import "objects/related-container";
@import "components/calendar";
@import "components/metadata";
@import "components/subscribe";
@import "utilities/overwrites"; | 1 | 0.041667 | 1 | 0 |
c1aa8d11fe2f8f3f077d58c98fdac4251794e324 | lib/rusen/middleware/rusen_rack.rb | lib/rusen/middleware/rusen_rack.rb | require 'rusen/settings'
require 'rusen/notifier'
require 'rusen/notification'
module Rusen
module Middleware
class RusenRack
def initialize(app, settings = {})
@app = app
@rusen_settings = Settings.new
@rusen_settings.outputs = settings[:outputs]
@rusen_settings.sections = settings[:sections]
@rusen_settings.email_prefix = settings[:email_prefix]
@rusen_settings.sender_address = settings[:sender_address]
@rusen_settings.exception_recipients = settings[:exception_recipients]
@rusen_settings.smtp_settings = settings[:smtp_settings]
@rusen_settings.exclude_if = settings[:exclude_if]
@notifier = Notifier.new(@rusen_settings)
end
def call(env)
begin
@app.call(env)
rescue Exception => error
unless @rusen_settings.exclude_if.call(error)
request = Rack::Request.new(env)
@notifier.notify(error, request.GET.merge(request.POST), env, request.session)
end
raise
end
end
end
end
end | require 'rusen/settings'
require 'rusen/notifier'
require 'rusen/notification'
module Rusen
module Middleware
class RusenRack
def initialize(app, settings = {})
@app = app
if settings.is_a?(::Rusen::Settings)
@rusen_settings = settings
else
@rusen_settings = Settings.new
@rusen_settings.outputs = settings[:outputs]
@rusen_settings.sections = settings[:sections]
@rusen_settings.email_prefix = settings[:email_prefix]
@rusen_settings.sender_address = settings[:sender_address]
@rusen_settings.exception_recipients = settings[:exception_recipients]
@rusen_settings.smtp_settings = settings[:smtp_settings]
@rusen_settings.exclude_if = settings[:exclude_if]
end
@notifier = Notifier.new(@rusen_settings)
end
def call(env)
begin
@app.call(env)
rescue Exception => error
unless @rusen_settings.exclude_if.call(error)
request = Rack::Request.new(env)
@notifier.notify(error, request.GET.merge(request.POST), env, request.session)
end
raise
end
end
end
end
end | Allow sending an instance of Rusen::Settings to the middleware | Allow sending an instance of Rusen::Settings to the middleware
| Ruby | mit | Moove-it/rusen,Moove-it/rusen,elpic/rusen,elpic/rusen | ruby | ## Code Before:
require 'rusen/settings'
require 'rusen/notifier'
require 'rusen/notification'
module Rusen
module Middleware
class RusenRack
def initialize(app, settings = {})
@app = app
@rusen_settings = Settings.new
@rusen_settings.outputs = settings[:outputs]
@rusen_settings.sections = settings[:sections]
@rusen_settings.email_prefix = settings[:email_prefix]
@rusen_settings.sender_address = settings[:sender_address]
@rusen_settings.exception_recipients = settings[:exception_recipients]
@rusen_settings.smtp_settings = settings[:smtp_settings]
@rusen_settings.exclude_if = settings[:exclude_if]
@notifier = Notifier.new(@rusen_settings)
end
def call(env)
begin
@app.call(env)
rescue Exception => error
unless @rusen_settings.exclude_if.call(error)
request = Rack::Request.new(env)
@notifier.notify(error, request.GET.merge(request.POST), env, request.session)
end
raise
end
end
end
end
end
## Instruction:
Allow sending an instance of Rusen::Settings to the middleware
## Code After:
require 'rusen/settings'
require 'rusen/notifier'
require 'rusen/notification'
module Rusen
module Middleware
class RusenRack
def initialize(app, settings = {})
@app = app
if settings.is_a?(::Rusen::Settings)
@rusen_settings = settings
else
@rusen_settings = Settings.new
@rusen_settings.outputs = settings[:outputs]
@rusen_settings.sections = settings[:sections]
@rusen_settings.email_prefix = settings[:email_prefix]
@rusen_settings.sender_address = settings[:sender_address]
@rusen_settings.exception_recipients = settings[:exception_recipients]
@rusen_settings.smtp_settings = settings[:smtp_settings]
@rusen_settings.exclude_if = settings[:exclude_if]
end
@notifier = Notifier.new(@rusen_settings)
end
def call(env)
begin
@app.call(env)
rescue Exception => error
unless @rusen_settings.exclude_if.call(error)
request = Rack::Request.new(env)
@notifier.notify(error, request.GET.merge(request.POST), env, request.session)
end
raise
end
end
end
end
end | require 'rusen/settings'
require 'rusen/notifier'
require 'rusen/notification'
module Rusen
module Middleware
class RusenRack
def initialize(app, settings = {})
@app = app
+ if settings.is_a?(::Rusen::Settings)
+ @rusen_settings = settings
+ else
- @rusen_settings = Settings.new
+ @rusen_settings = Settings.new
? ++
- @rusen_settings.outputs = settings[:outputs]
+ @rusen_settings.outputs = settings[:outputs]
? ++
- @rusen_settings.sections = settings[:sections]
+ @rusen_settings.sections = settings[:sections]
? ++
- @rusen_settings.email_prefix = settings[:email_prefix]
+ @rusen_settings.email_prefix = settings[:email_prefix]
? ++
- @rusen_settings.sender_address = settings[:sender_address]
+ @rusen_settings.sender_address = settings[:sender_address]
? ++
- @rusen_settings.exception_recipients = settings[:exception_recipients]
+ @rusen_settings.exception_recipients = settings[:exception_recipients]
? ++
- @rusen_settings.smtp_settings = settings[:smtp_settings]
+ @rusen_settings.smtp_settings = settings[:smtp_settings]
? ++
- @rusen_settings.exclude_if = settings[:exclude_if]
+ @rusen_settings.exclude_if = settings[:exclude_if]
? ++
+ end
@notifier = Notifier.new(@rusen_settings)
end
def call(env)
begin
@app.call(env)
rescue Exception => error
unless @rusen_settings.exclude_if.call(error)
request = Rack::Request.new(env)
@notifier.notify(error, request.GET.merge(request.POST), env, request.session)
end
raise
end
end
end
end
end | 20 | 0.47619 | 12 | 8 |
e2ecc6968eb4108a3c15d16898e60e0962eba9f8 | invocations/checks.py | invocations/checks.py |
from __future__ import unicode_literals
from invoke import task
@task(name='blacken', iterable=['folder'])
def blacken(c, line_length=79, folder=None):
"""Run black on the current source"""
default_folders = ["."]
configured_folders = c.config.get("blacken", {}).get("folders", default_folders)
folders = configured_folders if not folder else folder
black_command_line = "black -l {0}".format(line_length)
cmd = "find {0} -name '*.py' | xargs {1}".format(
" ".join(folders), black_command_line
)
c.run(cmd, pty=True)
|
from __future__ import unicode_literals
from invoke import task
@task(name="blacken", iterable=["folder"])
def blacken(c, line_length=79, folder=None, check=False):
"""Run black on the current source"""
default_folders = ["."]
configured_folders = c.config.get("blacken", {}).get(
"folders", default_folders
)
folders = configured_folders if not folder else folder
black_command_line = "black -l {0}".format(line_length)
if check:
black_command_line = "{0} --check".format(black_command_line)
cmd = "find {0} -name '*.py' | xargs {1}".format(
" ".join(folders), black_command_line
)
c.run(cmd, pty=True)
| Add --check support to the invocations.blacken task | Add --check support to the invocations.blacken task
| Python | bsd-2-clause | pyinvoke/invocations | python | ## Code Before:
from __future__ import unicode_literals
from invoke import task
@task(name='blacken', iterable=['folder'])
def blacken(c, line_length=79, folder=None):
"""Run black on the current source"""
default_folders = ["."]
configured_folders = c.config.get("blacken", {}).get("folders", default_folders)
folders = configured_folders if not folder else folder
black_command_line = "black -l {0}".format(line_length)
cmd = "find {0} -name '*.py' | xargs {1}".format(
" ".join(folders), black_command_line
)
c.run(cmd, pty=True)
## Instruction:
Add --check support to the invocations.blacken task
## Code After:
from __future__ import unicode_literals
from invoke import task
@task(name="blacken", iterable=["folder"])
def blacken(c, line_length=79, folder=None, check=False):
"""Run black on the current source"""
default_folders = ["."]
configured_folders = c.config.get("blacken", {}).get(
"folders", default_folders
)
folders = configured_folders if not folder else folder
black_command_line = "black -l {0}".format(line_length)
if check:
black_command_line = "{0} --check".format(black_command_line)
cmd = "find {0} -name '*.py' | xargs {1}".format(
" ".join(folders), black_command_line
)
c.run(cmd, pty=True)
|
from __future__ import unicode_literals
from invoke import task
+
- @task(name='blacken', iterable=['folder'])
? ^ ^ ^ ^
+ @task(name="blacken", iterable=["folder"])
? ^ ^ ^ ^
- def blacken(c, line_length=79, folder=None):
+ def blacken(c, line_length=79, folder=None, check=False):
? +++++++++++++
"""Run black on the current source"""
default_folders = ["."]
- configured_folders = c.config.get("blacken", {}).get("folders", default_folders)
? ---------------------------
+ configured_folders = c.config.get("blacken", {}).get(
+ "folders", default_folders
+ )
folders = configured_folders if not folder else folder
black_command_line = "black -l {0}".format(line_length)
+ if check:
+ black_command_line = "{0} --check".format(black_command_line)
+
cmd = "find {0} -name '*.py' | xargs {1}".format(
" ".join(folders), black_command_line
)
c.run(cmd, pty=True) | 12 | 0.666667 | 9 | 3 |
58dc21fc45023660d4f4103ed0e40892514f8f90 | 201-encrypt-create-new-vm-gallery-image/README.md | 201-encrypt-create-new-vm-gallery-image/README.md |
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
This template creates a new encrypted windows vm using the server 2k12 gallery image. |
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
This template creates a new encrypted windows vm using the server 2k12 gallery image. It internally calls the "201-encrypt-running-windows-vm" template. | Update based upon Kay's feedback | Update based upon Kay's feedback
| Markdown | mit | satyarapelly/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,lizzha/azure-quickstart-templates,satyarapelly/azure-quickstart-templates,CharlPels/azure-quickstart-templates,arroyc/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,johndowns/azure-quickstart-templates,arsenvlad/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,forensiclogic/azure-quickstart-templates,sedouard/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,mumian/azure-quickstart-templates,simongdavies/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,anhowe/azure-quickstart-templates,klondon71/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,jreid143/azure-quickstart-templates,amitsriva/azure-quickstart-templates,knithinc/azure-quickstart-templates,ishtein/azure-public,CJRocK/AzureSQLalwaysOn,hlmstone/stone-china-azure-quickstart-templates,MahendraAgrawal/azure-quickstart-templates,uday31in/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,johndowns/azure-quickstart-templates,benofben/azure-quickstart-templates,jackyjngwn/azure-quickstart-templates,smartpcr/azure-quickstart-templates,jasonbw/azure-quickstart-templates,ninarn/azure-quickstart-templates,knithinc/azure-quickstart-templates,sazeesha/azure-quickstart-templates,alinefr/azure-quickstart-templates,krnese/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,krkhan/azure-quickstart-templates,klondon71/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,samhodgkinson/azure-quickstart-templates,alvadb/azure-quickstart-templates,JF6/azure-quickstart-templates,jwendl/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,kenazk/azure-quickstart-templates,slapointe/azure-quickstart-templates,YidingZhou/azure-quickstart-templates,lizzha/azure-quickstart-templates,iouri-s/azure-quickstart-templates,Envera/azure-quickstart-templates,anhowe/azure-quickstart-templates,hglkrijger/azure-quickstart-templates,ALM-Rangers/azure-quickstart-templates,mukulkgupta/azure-quickstart-templates,matt1883/azure-quickstart-templates,ChackDan/azure-quickstart-templates,Thorlandus/azure-quickstart-templates,Envera/azure-quickstart-templates,haritshah33/azuretemplates,BorisB2015/azure-quickstart-templates,kotzenjh/DCOS-JSON,pelagos/azure-quickstart-templates,jmservera/azure-quickstart-templates,Jaganod/azure-quickstart-templates,robklausems/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,iwooden/azure-quickstart-templates,squillace/azure-quickstart-templates,zechariahks/azure-quickstart-templates,chenriksson/azure-quickstart-templates,sedouard/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,hlmstone/stone-china-azure-quickstart-templates,neudesic/azure-quickstart-templates,hglkrijger/azure-quickstart-templates,gossion/azure-quickstart-templates,RuudBorst/azure-quickstart-templates,YidingZhou/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,tagliateller/azure-quickstart-templates,scrypter/azure-quickstart-templates,anweiss/azure-quickstart-templates,MahendraAgrawal/azure-quickstart-templates,Azure/azure-quickstart-templates,rarsan/azure-quickstart-templates,Jaganod/azure-quickstart-templates,Volkanco/azure-quickstart-templates,tagliateller/azure-quickstart-templates,CharlPels/azure-quickstart-templates,neudesic/azure-quickstart-templates,ishtein/azure-public,benofben/azure-quickstart-templates,matt1883/azure-quickstart-templates,moisedo/azure-quickstart-templates,CJRocK/AzureSQLalwaysOn,moisedo/azure-quickstart-templates,rsponholtz/azure-quickstart-templates,emondek/azure-quickstart-templates,RuudBorst/azure-quickstart-templates,steved0x/azure-quickstart-templates,Thorlandus/azure-quickstart-templates,ALM-Rangers/azure-quickstart-templates,mumian/azure-quickstart-templates,pelagos/azure-quickstart-templates,BorisB2015/azure-quickstart-templates,jv1992/pqr,Nepomuceno/azure-quickstart-templates,anhowe/azure-quickstart-templates,philon-msft/azure-quickstart-templates,Alan-AcutePath/azure-quickstart-templates,AbelHu/azure-quickstart-templates,jarobey/azure-quickstart-templates,netwmr01/azure-quickstart-templates,johndowns/azure-quickstart-templates,tracsman/azure-quickstart-templates,tagliateller/azure-quickstart-templates,Supraconductor/azure-quickstart-templates,simongdavies/azure-quickstart-templates,marleyg/azure-quickstart-templates,olandese/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,lizzha/azure-quickstart-templates,ritazh/azure-quickstart-templates,spcrux/azure-quickstart-templates,klondon71/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,ChackDan/azure-quickstart-templates,Jaganod/azure-quickstart-templates,jreid143/azure-quickstart-templates,Jaganod/azure-quickstart-templates,bcdev-/azure-quickstart-templates,grwilson/azure-quickstart-templates,ishtein/azure-public,stevenlivz/azure-quickstart-templates,arsenvlad/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,mmarch/azure-quickstart-templates,introp-software/azure-quickstart-templates,zechariahks/azure-quickstart-templates,rgardler/azure-quickstart-templates,cr0550ver/azure-quickstart-templates,ne-msft/azure-quickstart-templates,rsponholtz/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,Thorlandus/azure-quickstart-templates,jv1992/pqr,ishtein/azure-public,singhkay/azure-quickstart-templates,jumbucks/azure-quickstart-templates,jimdial/azure-quickstart-templates,dipakmsft/azure-quickstart-templates,gossion/azure-quickstart-templates,akurmi/azure-quickstart-templates,jmspring/azure-quickstart-templates,Teodelas/azure-quickstart-templates,steved0x/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,krkhan/azure-quickstart-templates,zhongyi-zhang/azure-quickstart-templates,sedouard/azure-quickstart-templates,bingosummer/azure-quickstart-templates,cerdmann-pivotal/azure-quickstart-templates,daltskin/azure-quickstart-templates,YidingZhou/azure-quickstart-templates,lizzha/azure-quickstart-templates,rarsan/azure-quickstart-templates,jarobey/azure-quickstart-templates,SunBuild/azure-quickstart-templates,krkhan/azure-quickstart-templates,Envera/azure-quickstart-templates,haritshah33/azuretemplates,krkhan/azure-quickstart-templates,vglafirov/azure-quickstart-templates,andrewelizondo/azure-quickstart-templates,nzthiago/azure-quickstart-templates,cerdmann-pivotal/azure-quickstart-templates,introp-software/azure-quickstart-templates,CharlPels/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,vglafirov/azure-quickstart-templates,rkotti/azure-quickstart-templates,richstep/azure-quickstart-templates,vicperdana/azure-quickstart-templates,SunBuild/azure-quickstart-templates,mmarch/azure-quickstart-templates,iamshital/azure-quickstart-templates,svk2/azure-quickstart-templates,jwendl/azure-quickstart-templates,RuudBorst/azure-quickstart-templates,matt1883/azure-quickstart-templates,jmservera/azure-quickstart-templates,castilhoa/azure,CharlPels/azure-quickstart-templates,arroyc/azure-quickstart-templates,sazeesha/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,sebastus/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,asheniam/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,bwanner/azure-quickstart-templates,adhurwit/azure-quickstart-templates,bingosummer/azure-quickstart-templates,sidkri/azure-quickstart-templates,akurmi/azure-quickstart-templates,alinefr/azure-quickstart-templates,pateixei/azure-quickstart-templates,eshaparmar/azure-quickstart-templates,dipakmsft/azure-quickstart-templates,ninarn/azure-quickstart-templates,CJRocK/AzureSQLalwaysOn,ritazh/azure-quickstart-templates,pcgeek86/azure-quickstart-templates,MSBrett/azure-quickstart-templates,iamshital/azure-quickstart-templates,nzthiago/azure-quickstart-templates,slapointe/azure-quickstart-templates,arroyc/azure-quickstart-templates,eissi/azure-quickstart-templates,satyarapelly/azure-quickstart-templates,sunbinzhu/azure-quickstart-templates,jackyjngwn/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,rgardler/azure-quickstart-templates,sazeesha/azure-quickstart-templates,bmoore-msft/azure-quickstart-templates,MSBrett/azure-quickstart-templates,sebastus/azure-quickstart-templates,maniSbindra/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,zhongyi-zhang/azure-quickstart-templates,Jaganod/azure-quickstart-templates,gbowerman/azure-quickstart-templates,neudesic/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,samhodgkinson/azure-quickstart-templates,ShubhaVijayasarathy/azure-quickstart-templates,rlfmendes/azure-quickstart-templates,mumian/azure-quickstart-templates,apachipa/Azure-JSON-Custom,YidingZhou/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,lizzha/azure-quickstart-templates,gbowerman/azure-quickstart-templates,kotzenjh/DCOS-JSON,alinefr/azure-quickstart-templates,Alan-AcutePath/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,samhodgkinson/azure-quickstart-templates,blockapps/azure-quickstart-templates,rlfmendes/azure-quickstart-templates,tfitzmac/azure-quickstart-templates,sabbour/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,jmspring/azure-quickstart-templates,willhighland/azure-quickstart-templates,jackyjngwn/azure-quickstart-templates,jasonbw/azure-quickstart-templates,jreid143/azure-quickstart-templates,vglafirov/azure-quickstart-templates,sazeesha/azure-quickstart-templates,rkotti/azure-quickstart-templates,CalCof/azure-quickstart-templates,forensiclogic/azure-quickstart-templates,castilhoa/azure,Volkanco/azure-quickstart-templates,rivierni/azure-quickstart-templates,RuudBorst/azure-quickstart-templates,krnese/azure-quickstart-templates,zechariahks/azure-quickstart-templates,CalCof/azure-quickstart-templates,forensiclogic/azure-quickstart-templates,nilaydshah/azure-quickstart-templates,willhighland/azure-quickstart-templates,bcdev-/azure-quickstart-templates,krkhan/azure-quickstart-templates,tfitzmac/azure-quickstart-templates,iwooden/azure-quickstart-templates,grwilson/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,moisedo/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,forensiclogic/azure-quickstart-templates,uday31in/azure-quickstart-templates,oignatenko/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,MSBrett/azure-quickstart-templates,mmarch/azure-quickstart-templates,iouri-s/azure-quickstart-templates,liupeirong/azure-quickstart-templates,zhongyi-zhang/azure-quickstart-templates,satyarapelly/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,alinefr/azure-quickstart-templates,bharathsreenivas/azure-quickstart-templates,travismc1/azure-quickstart-templates,Azure/azure-quickstart-templates,anhowe/azure-quickstart-templates,ChackDan/azure-quickstart-templates,knithinc/azure-quickstart-templates,andyliuliming/azure-quickstart-templates,ninarn/azure-quickstart-templates,ttmc/azure-quickstart-templates,honcao/azure-quickstart-templates,ShubhaVijayasarathy/azure-quickstart-templates,iamshital/azure-quickstart-templates,mumian/azure-quickstart-templates,netwmr01/azure-quickstart-templates,jreid143/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,ALM-Rangers/azure-quickstart-templates,georgewallace/azure-quickstart-templates,ne-msft/azure-quickstart-templates,bingosummer/azure-quickstart-templates,klondon71/azure-quickstart-templates,ALM-Rangers/azure-quickstart-templates,rnithish/MyOpenGit,mukulkgupta/azure-quickstart-templates,cr0550ver/azure-quickstart-templates,haritshah33/azuretemplates,AbelHu/azure-quickstart-templates,olandese/azure-quickstart-templates,neudesic/azure-quickstart-templates,mukulkgupta/azure-quickstart-templates,zechariahks/azure-quickstart-templates,smartpcr/azure-quickstart-templates,rnithish/MyOpenGit,cdavid/azure-quickstart-templates,olandese/azure-quickstart-templates,sebastus/azure-quickstart-templates,liupeirong/azure-quickstart-templates,introp-software/azure-quickstart-templates,dmakogon/azure-quickstart-templates,grandhiramesh/azure-quickstart-templates,slapointe/azure-quickstart-templates,grandhiramesh/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,scrypter/azure-quickstart-templates,liupeirong/azure-quickstart-templates,tibor19/azure-quickstart-templates,olandese/azure-quickstart-templates,emondek/azure-quickstart-templates,ttmc/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,dmakogon/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,philon-msft/azure-quickstart-templates,travismc1/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,amitsriva/azure-quickstart-templates,nzthiago/azure-quickstart-templates,apachipa/Azure-JSON-Custom,mumian/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,ishtein/azure-public,sazeesha/azure-quickstart-templates,telmosampaio/azure-quickstart-templates,Azure/azure-quickstart-templates,pateixei/azure-quickstart-templates,singhkays/azure-quickstart-templates,jv1992/pqr,sunbinzhu/azure-quickstart-templates,hrboyceiii/azure-quickstart-templates,moisedo/azure-quickstart-templates,knithinc/azure-quickstart-templates,JF6/azure-quickstart-templates,AlekseiPolkovnikov/azure-quickstart-templates,tagliateller/azure-quickstart-templates,singhkay/azure-quickstart-templates,mukulkgupta/azure-quickstart-templates,jarobey/azure-quickstart-templates,ShubhaVijayasarathy/azure-quickstart-templates,AbelHu/azure-quickstart-templates,mumian/azure-quickstart-templates,netwmr01/azure-quickstart-templates,satyarapelly/azure-quickstart-templates,grandhiramesh/azure-quickstart-templates,CharlPels/azure-quickstart-templates,bwanner/azure-quickstart-templates,gbowerman/azure-quickstart-templates,rsponholtz/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,anweiss/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,Alan-AcutePath/azure-quickstart-templates,Teodelas/azure-quickstart-templates,telmosampaio/azure-quickstart-templates,cerdmann-pivotal/azure-quickstart-templates,marleyg/azure-quickstart-templates,bcdev-/azure-quickstart-templates,anhowe/azure-quickstart-templates,tibor19/azure-quickstart-templates,grwilson/azure-quickstart-templates,Supraconductor/azure-quickstart-templates,dipakmsft/azure-quickstart-templates,slapointe/azure-quickstart-templates,castilhoa/azure,Supraconductor/azure-quickstart-templates,johndowns/azure-quickstart-templates,pateixei/azure-quickstart-templates,squillace/azure-quickstart-templates,ritazh/azure-quickstart-templates,251744647/azure-quickstart-templates,steved0x/azure-quickstart-templates,blockapps/azure-quickstart-templates,tagliateller/azure-quickstart-templates,satyarapelly/azure-quickstart-templates,stevenlivz/azure-quickstart-templates,ShubhaVijayasarathy/azure-quickstart-templates,gatneil/azure-quickstart-templates,tfitzmac/azure-quickstart-templates,Kegeruneku/azure-quickstart-templates,bmoore-msft/azure-quickstart-templates,neudesic/azure-quickstart-templates,tfitzmac/azure-quickstart-templates,eissi/azure-quickstart-templates,robklausems/azure-quickstart-templates,pdiniz13/azure-quickstart-templates,sunbinzhu/azure-quickstart-templates,iwooden/azure-quickstart-templates,MahendraAgrawal/azure-quickstart-templates,ChackDan/azure-quickstart-templates,simongdavies/azure-quickstart-templates,eissi/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,matt1883/azure-quickstart-templates,sabbour/azure-quickstart-templates,kotzenjh/DCOS-JSON,hglkrijger/azure-quickstart-templates,grwilson/azure-quickstart-templates,bmoore-msft/azure-quickstart-templates,ShubhaVijayasarathy/azure-quickstart-templates,ne-msft/azure-quickstart-templates,gbowerman/azure-quickstart-templates,richstep/azure-quickstart-templates,rivierni/azure-quickstart-templates,neudesic/azure-quickstart-templates,jwendl/azure-quickstart-templates,hrboyceiii/azure-quickstart-templates,grandhiramesh/azure-quickstart-templates,johndowns/azure-quickstart-templates,Envera/azure-quickstart-templates,liupeirong/azure-quickstart-templates,hglkrijger/azure-quickstart-templates,akurmi/azure-quickstart-templates,bmoore-msft/azure-quickstart-templates,sivaedupuganti/azure-quickstart-templates,amitsriva/azure-quickstart-templates,Volkanco/azure-quickstart-templates,akurmi/azure-quickstart-templates,svk2/azure-quickstart-templates,pcgeek86/azure-quickstart-templates,rarsan/azure-quickstart-templates,rkotti/azure-quickstart-templates,simongdavies/azure-quickstart-templates,bharathsreenivas/azure-quickstart-templates,Volkanco/azure-quickstart-templates,tibor19/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,jmspring/azure-quickstart-templates,251744647/azure-quickstart-templates,jreid143/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,singhkays/azure-quickstart-templates,chenriksson/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,sazeesha/azure-quickstart-templates,rsponholtz/azure-quickstart-templates,Volkanco/azure-quickstart-templates,mmarch/azure-quickstart-templates,SunBuild/azure-quickstart-templates,ezubatov/azure-quickstart-templates,Kegeruneku/azure-quickstart-templates,251744647/azure-quickstart-templates,CJRocK/AzureSQLalwaysOn,sunbinzhu/azure-quickstart-templates,nzthiago/azure-quickstart-templates,rnithish/MyOpenGit,willhighland/azure-quickstart-templates,zechariahks/azure-quickstart-templates,CharlPels/azure-quickstart-templates,ne-msft/azure-quickstart-templates,tracsman/azure-quickstart-templates,gbowerman/azure-quickstart-templates,apachipa/Azure-JSON-Custom,tibor19/azure-quickstart-templates,kenazk/azure-quickstart-templates,rnithish/MyOpenGit,iamshital/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,arsenvlad/azure-quickstart-templates,andrewelizondo/azure-quickstart-templates,Jaganod/azure-quickstart-templates,iamshital/azure-quickstart-templates,jackyjngwn/azure-quickstart-templates,cdavid/azure-quickstart-templates,rnithish/MyOpenGit,grandhiramesh/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,spcrux/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,arsenvlad/azure-quickstart-templates,nzthiago/azure-quickstart-templates,krnese/azure-quickstart-templates,Envera/azure-quickstart-templates,singhkays/azure-quickstart-templates,vicperdana/azure-quickstart-templates,RuudBorst/azure-quickstart-templates,haritshah33/azuretemplates,pdiniz13/azure-quickstart-templates,iwooden/azure-quickstart-templates,Teodelas/azure-quickstart-templates,svk2/azure-quickstart-templates,rlfmendes/azure-quickstart-templates,philon-msft/azure-quickstart-templates,hrboyceiii/azure-quickstart-templates,honcao/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,bcdev-/azure-quickstart-templates,cdavid/azure-quickstart-templates,pateixei/azure-quickstart-templates,iamshital/azure-quickstart-templates,liupeirong/azure-quickstart-templates,rnithish/MyOpenGit,nilaydshah/azure-quickstart-templates,ShubhaVijayasarathy/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,rivierni/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,pelagos/azure-quickstart-templates,ritazh/azure-quickstart-templates,willhighland/azure-quickstart-templates,spcrux/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,Envera/azure-quickstart-templates,Thorlandus/azure-quickstart-templates,ezubatov/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,rkotti/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,mumian/azure-quickstart-templates,arroyc/azure-quickstart-templates,chenriksson/azure-quickstart-templates,andrewelizondo/azure-quickstart-templates,sedouard/azure-quickstart-templates,sebastus/azure-quickstart-templates,MSBrett/azure-quickstart-templates,liupeirong/azure-quickstart-templates,BorisB2015/azure-quickstart-templates,haritshah33/azuretemplates,pdiniz13/azure-quickstart-templates,singhkays/azure-quickstart-templates,knithinc/azure-quickstart-templates,krkhan/azure-quickstart-templates,robklausems/azure-quickstart-templates,gossion/azure-quickstart-templates,maniSbindra/azure-quickstart-templates,sunbinzhu/azure-quickstart-templates,CalCof/azure-quickstart-templates,rgardler/azure-quickstart-templates,hglkrijger/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,georgewallace/azure-quickstart-templates,sebastus/azure-quickstart-templates,blockapps/azure-quickstart-templates,gbowerman/azure-quickstart-templates,ttmc/azure-quickstart-templates,ttmc/azure-quickstart-templates,andrewelizondo/azure-quickstart-templates,alvadb/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,cerdmann-pivotal/azure-quickstart-templates,travismc1/azure-quickstart-templates,moisedo/azure-quickstart-templates,jimdial/azure-quickstart-templates,sebastus/azure-quickstart-templates,cr0550ver/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,vicperdana/azure-quickstart-templates,robklausems/azure-quickstart-templates,gossion/azure-quickstart-templates,benofben/azure-quickstart-templates,anweiss/azure-quickstart-templates,cr0550ver/azure-quickstart-templates,Kegeruneku/azure-quickstart-templates,CalCof/azure-quickstart-templates,iouri-s/azure-quickstart-templates,SunBuild/azure-quickstart-templates,daltskin/azure-quickstart-templates,honcao/azure-quickstart-templates,Supraconductor/azure-quickstart-templates,Azure/azure-quickstart-templates,cerdmann-pivotal/azure-quickstart-templates,ezubatov/azure-quickstart-templates,maniSbindra/azure-quickstart-templates,ne-msft/azure-quickstart-templates,arroyc/azure-quickstart-templates,sunbinzhu/azure-quickstart-templates,bwanner/azure-quickstart-templates,grwilson/azure-quickstart-templates,eissi/azure-quickstart-templates,netwmr01/azure-quickstart-templates,vglafirov/azure-quickstart-templates,smartpcr/azure-quickstart-templates,jimdial/azure-quickstart-templates,RuudBorst/azure-quickstart-templates,anhowe/azure-quickstart-templates,krnese/azure-quickstart-templates,marleyg/azure-quickstart-templates,willhighland/azure-quickstart-templates,dmakogon/azure-quickstart-templates,anweiss/azure-quickstart-templates,hlmstone/stone-china-azure-quickstart-templates,johndowns/azure-quickstart-templates,Volkanco/azure-quickstart-templates,travismc1/azure-quickstart-templates,uday31in/azure-quickstart-templates,jmservera/azure-quickstart-templates,pcgeek86/azure-quickstart-templates,rlfmendes/azure-quickstart-templates,ttmc/azure-quickstart-templates,bmoore-msft/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,jimdial/azure-quickstart-templates,bingosummer/azure-quickstart-templates,lizzha/azure-quickstart-templates,daltskin/azure-quickstart-templates,bmoore-msft/azure-quickstart-templates,bcdev-/azure-quickstart-templates,travismc1/azure-quickstart-templates,forensiclogic/azure-quickstart-templates,jwendl/azure-quickstart-templates,jv1992/pqr,jimdial/azure-quickstart-templates,rkotti/azure-quickstart-templates,spcrux/azure-quickstart-templates,zechariahks/azure-quickstart-templates,AlekseiPolkovnikov/azure-quickstart-templates,chenriksson/azure-quickstart-templates,MahendraAgrawal/azure-quickstart-templates,jv1992/pqr,uday31in/azure-quickstart-templates,akurmi/azure-quickstart-templates,gbowerman/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,CalCof/azure-quickstart-templates,chenriksson/azure-quickstart-templates,tibor19/azure-quickstart-templates,cdavid/azure-quickstart-templates,squillace/azure-quickstart-templates,jwendl/azure-quickstart-templates,adhurwit/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,richstep/azure-quickstart-templates,liupeirong/azure-quickstart-templates,singhkay/azure-quickstart-templates,telmosampaio/azure-quickstart-templates,sidkri/azure-quickstart-templates,iwooden/azure-quickstart-templates,jimdial/azure-quickstart-templates,singhkays/azure-quickstart-templates,ALM-Rangers/azure-quickstart-templates,jarobey/azure-quickstart-templates,rsponholtz/azure-quickstart-templates,AbelHu/azure-quickstart-templates,singhkays/azure-quickstart-templates,apachipa/Azure-JSON-Custom,mumian/azure-quickstart-templates,castilhoa/azure,svk2/azure-quickstart-templates,MSBrett/azure-quickstart-templates,jumbucks/azure-quickstart-templates,bwanner/azure-quickstart-templates,bingosummer/azure-quickstart-templates,sivaedupuganti/azure-quickstart-templates,sidkri/azure-quickstart-templates,emondek/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,realcodywburns/azure-quickstart-templates,gossion/azure-quickstart-templates,tracsman/azure-quickstart-templates,svk2/azure-quickstart-templates,daltskin/azure-quickstart-templates,blockapps/azure-quickstart-templates,tracsman/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,Kegeruneku/azure-quickstart-templates,adhurwit/azure-quickstart-templates,iouri-s/azure-quickstart-templates,samhodgkinson/azure-quickstart-templates,SunBuild/azure-quickstart-templates,asheniam/azure-quickstart-templates,mukulkgupta/azure-quickstart-templates,smartpcr/azure-quickstart-templates,olandese/azure-quickstart-templates,netwmr01/azure-quickstart-templates,zhongyi-zhang/azure-quickstart-templates,dipakmsft/azure-quickstart-templates,samhodgkinson/azure-quickstart-templates,stevenlivz/azure-quickstart-templates,ChackDan/azure-quickstart-templates,jv1992/pqr,pateixei/azure-quickstart-templates,251744647/azure-quickstart-templates,simongdavies/azure-quickstart-templates,hglkrijger/azure-quickstart-templates,chenriksson/azure-quickstart-templates,sazeesha/azure-quickstart-templates,andyliuliming/azure-quickstart-templates,honcao/azure-quickstart-templates,ttmc/azure-quickstart-templates,knithinc/azure-quickstart-templates,rgardler/azure-quickstart-templates,nilaydshah/azure-quickstart-templates,uday31in/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,simongdavies/azure-quickstart-templates,jasonbw/azure-quickstart-templates,tracsman/azure-quickstart-templates,jasonbw/azure-quickstart-templates,georgewallace/azure-quickstart-templates,gatneil/azure-quickstart-templates,eshaparmar/azure-quickstart-templates,sivaedupuganti/azure-quickstart-templates,zhongyi-zhang/azure-quickstart-templates,svk2/azure-quickstart-templates,jmservera/azure-quickstart-templates,JF6/azure-quickstart-templates,dmakogon/azure-quickstart-templates,benofben/azure-quickstart-templates,andyliuliming/azure-quickstart-templates,MSBrett/azure-quickstart-templates,Alan-AcutePath/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,maniSbindra/azure-quickstart-templates,introp-software/azure-quickstart-templates,alvadb/azure-quickstart-templates,gossion/azure-quickstart-templates,richstep/azure-quickstart-templates,Kegeruneku/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,Teodelas/azure-quickstart-templates,knithinc/azure-quickstart-templates,haritshah33/azuretemplates,tibor19/azure-quickstart-templates,pdiniz13/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,tagliateller/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,ttmc/azure-quickstart-templates,juvchan/azure-quickstart-templates,JF6/azure-quickstart-templates,sunbinzhu/azure-quickstart-templates,jasonbw/azure-quickstart-templates,simongdavies/azure-quickstart-templates,tracsman/azure-quickstart-templates,sabbour/azure-quickstart-templates,eshaparmar/azure-quickstart-templates,akurmi/azure-quickstart-templates,sidkri/azure-quickstart-templates,steved0x/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,bingosummer/azure-quickstart-templates,introp-software/azure-quickstart-templates,ishtein/azure-public,asheniam/azure-quickstart-templates,rlfmendes/azure-quickstart-templates,CalCof/azure-quickstart-templates,vicperdana/azure-quickstart-templates,hlmstone/stone-china-azure-quickstart-templates,hlmstone/stone-china-azure-quickstart-templates,mumian/azure-quickstart-templates,sidkri/azure-quickstart-templates,ChackDan/azure-quickstart-templates,MSSedusch/azure-quickstart-templates,eshaparmar/azure-quickstart-templates,bhummerstone/azure-quickstart-templates,slapointe/azure-quickstart-templates,rivierni/azure-quickstart-templates,Alan-AcutePath/azure-quickstart-templates,ne-msft/azure-quickstart-templates,spcrux/azure-quickstart-templates,MSBrett/azure-quickstart-templates,smartpcr/azure-quickstart-templates,rivierni/azure-quickstart-templates,MahendraAgrawal/azure-quickstart-templates,jmspring/azure-quickstart-templates,rkotti/azure-quickstart-templates,asheniam/azure-quickstart-templates,Teodelas/azure-quickstart-templates,jimdial/azure-quickstart-templates,asheniam/azure-quickstart-templates,jackyjngwn/azure-quickstart-templates,grandhiramesh/azure-quickstart-templates,AlekseiPolkovnikov/azure-quickstart-templates,philon-msft/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,tibor19/azure-quickstart-templates,netwmr01/azure-quickstart-templates,alinefr/azure-quickstart-templates,pateixei/azure-quickstart-templates,sebastus/azure-quickstart-templates,gatneil/azure-quickstart-templates,SudhakaraReddyEvuri/azure-quickstart-templates,jwendl/azure-quickstart-templates,nilaydshah/azure-quickstart-templates,singhkay/azure-quickstart-templates,jimdial/azure-quickstart-templates,BorisB2015/azure-quickstart-templates,mmarch/azure-quickstart-templates,simongdavies/azure-quickstart-templates,arroyc/azure-quickstart-templates,rgardler/azure-quickstart-templates,introp-software/azure-quickstart-templates,gatneil/azure-quickstart-templates,scrypter/azure-quickstart-templates,bingosummer/azure-quickstart-templates,ALM-Rangers/azure-quickstart-templates,rgardler/azure-quickstart-templates,nilaydshah/azure-quickstart-templates,sabbour/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,AlekseiPolkovnikov/azure-quickstart-templates,rlfmendes/azure-quickstart-templates,arsenvlad/azure-quickstart-templates,emondek/azure-quickstart-templates,marleyg/azure-quickstart-templates,andyliuliming/azure-quickstart-templates,sunbinzhu/azure-quickstart-templates,Volkanco/azure-quickstart-templates,kenazk/azure-quickstart-templates,georgewallace/azure-quickstart-templates,simongdavies/azure-quickstart-templates,alinefr/azure-quickstart-templates,iwooden/azure-quickstart-templates,AbelHu/azure-quickstart-templates,forensiclogic/azure-quickstart-templates,andyliuliming/azure-quickstart-templates,jmspring/azure-quickstart-templates,knithinc/azure-quickstart-templates,Azure/azure-quickstart-templates,SunBuild/azure-quickstart-templates,eissi/azure-quickstart-templates,tfitzmac/azure-quickstart-templates,sidkri/azure-quickstart-templates,ninarn/azure-quickstart-templates,takekazuomi/azure-quickstart-templates,krnese/azure-quickstart-templates,iouri-s/azure-quickstart-templates,bwanner/azure-quickstart-templates,jumbucks/azure-quickstart-templates,bharathsreenivas/azure-quickstart-templates,BorisB2015/azure-quickstart-templates,hlmstone/stone-china-azure-quickstart-templates,takekazuomi/azure-quickstart-templates,xiaoyingLJ/azure-quickstart-templates,AbelHu/azure-quickstart-templates,AlekseiPolkovnikov/azure-quickstart-templates,kotzenjh/DCOS-JSON,jreid143/azure-quickstart-templates,irwinwilliams/azure-quickstart-templates,kenazk/azure-quickstart-templates,introp-software/azure-quickstart-templates,nzthiago/azure-quickstart-templates,zhongyi-zhang/azure-quickstart-templates,grwilson/azure-quickstart-templates,jackyjngwn/azure-quickstart-templates,Kegeruneku/azure-quickstart-templates,tfitzmac/azure-quickstart-templates,SunBuild/azure-quickstart-templates,moisedo/azure-quickstart-templates,mmarch/azure-quickstart-templates,BorisB2015/azure-quickstart-templates,travismc1/azure-quickstart-templates,juvchan/azure-quickstart-templates,hrboyceiii/azure-quickstart-templates,Azure/azure-quickstart-templates,juvchan/azure-quickstart-templates,eissi/azure-quickstart-templates,realcodywburns/azure-quickstart-templates,krnese/azure-quickstart-templates,telmosampaio/azure-quickstart-templates,juvchan/azure-quickstart-templates,rarsan/azure-quickstart-templates,smartpcr/azure-quickstart-templates,realcodywburns/azure-quickstart-templates,benofben/azure-quickstart-templates,jasonbw/azure-quickstart-templates,bharathsreenivas/azure-quickstart-templates,Teodelas/azure-quickstart-templates,rarsan/azure-quickstart-templates,puneetsaraswat/azure-quickstart-templates,mathieu-benoit/azure-quickstart-templates,olandese/azure-quickstart-templates,CJRocK/AzureSQLalwaysOn,pcgeek86/azure-quickstart-templates,iouri-s/azure-quickstart-templates,adhurwit/azure-quickstart-templates,jmspring/azure-quickstart-templates,jmspring/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,AvyanConsultingCorp/azure-quickstart-templates,rarsan/azure-quickstart-templates,asheniam/azure-quickstart-templates,vglafirov/azure-quickstart-templates,alvadb/azure-quickstart-templates,jmservera/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,Nepomuceno/azure-quickstart-templates,realcodywburns/azure-quickstart-templates,robotechredmond/azure-quickstart-templates,SunBuild/azure-quickstart-templates,willhighland/azure-quickstart-templates,gossion/azure-quickstart-templates,gossion/azure-quickstart-templates,slapointe/azure-quickstart-templates,samhodgkinson/azure-quickstart-templates,Alan-AcutePath/azure-quickstart-templates,MahendraAgrawal/azure-quickstart-templates,rsponholtz/azure-quickstart-templates,uday31in/azure-quickstart-templates,introp-software/azure-quickstart-templates,rgardler/azure-quickstart-templates,benofben/azure-quickstart-templates,MCKLMT/azure-quickstart-templates,realcodywburns/azure-quickstart-templates,georgewallace/azure-quickstart-templates,realcodywburns/azure-quickstart-templates,cerdmann-pivotal/azure-quickstart-templates,jumbucks/azure-quickstart-templates,CJRocK/AzureSQLalwaysOn,jmspring/azure-quickstart-templates,sidkri/azure-quickstart-templates,lizzha/azure-quickstart-templates,tibor19/azure-quickstart-templates,andyliuliming/azure-quickstart-templates,vglafirov/azure-quickstart-templates,ezubatov/azure-quickstart-templates,jmservera/azure-quickstart-templates,sivaedupuganti/azure-quickstart-templates,mukulkgupta/azure-quickstart-templates,stevenlivz/azure-quickstart-templates,bingosummer/azure-quickstart-templates,bwanner/azure-quickstart-templates,scrypter/azure-quickstart-templates,nilaydshah/azure-quickstart-templates,arsenvlad/azure-quickstart-templates,amitsriva/azure-quickstart-templates | markdown | ## Code Before:
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
This template creates a new encrypted windows vm using the server 2k12 gallery image.
## Instruction:
Update based upon Kay's feedback
## Code After:
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
This template creates a new encrypted windows vm using the server 2k12 gallery image. It internally calls the "201-encrypt-running-windows-vm" template. |
<a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fazure%2Fazure-quickstart-templates%2Fmaster%2F201-encrypt-create-new-vm-gallery-image%2Fazuredeploy.json" target="_blank">
<img src="http://azuredeploy.net/deploybutton.png"/>
</a>
- This template creates a new encrypted windows vm using the server 2k12 gallery image.
+ This template creates a new encrypted windows vm using the server 2k12 gallery image. It internally calls the "201-encrypt-running-windows-vm" template. | 2 | 0.333333 | 1 | 1 |
e35c32aa14681689c905ab62a4fdc390f4d14c00 | vim/config/languages/javascript.vim | vim/config/languages/javascript.vim | au FileType javascript set tabstop=2
| au FileType javascript set shiftwidth=2
au FileType javascript set softtabstop=2
au FileType javascript set tabstop=2
au FileType javascript set expandtab
| Fix tabstop / shiftwidth for JavaScript | Fix tabstop / shiftwidth for JavaScript
| VimL | mit | sebdah/vim-ide | viml | ## Code Before:
au FileType javascript set tabstop=2
## Instruction:
Fix tabstop / shiftwidth for JavaScript
## Code After:
au FileType javascript set shiftwidth=2
au FileType javascript set softtabstop=2
au FileType javascript set tabstop=2
au FileType javascript set expandtab
| + au FileType javascript set shiftwidth=2
+ au FileType javascript set softtabstop=2
au FileType javascript set tabstop=2
+ au FileType javascript set expandtab | 3 | 3 | 3 | 0 |
b0a1e47a4bc4391da711ea230f6577d3d7e9ccff | project.clj | project.clj | (defproject ring "1.8.0"
:description "A Clojure web applications library."
:url "https://github.com/ring-clojure/ring"
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[ring/ring-core "1.8.0"]
[ring/ring-devel "1.8.0"]
[ring/ring-jetty-adapter "1.8.0"]
[ring/ring-servlet "1.8.0"]]
:plugins [[lein-sub "0.2.4"]
[lein-codox "0.10.3"]]
:sub ["ring-core"
"ring-devel"
"ring-jetty-adapter"
"ring-servlet"]
:codox {:output-path "codox"
:source-uri "http://github.com/ring-clojure/ring/blob/{version}/{filepath}#L{line}"
:source-paths ["ring-core/src"
"ring-devel/src"
"ring-jetty-adapter/src"
"ring-servlet/src"]})
| (defproject ring "1.8.0"
:description "A Clojure web applications library."
:url "https://github.com/ring-clojure/ring"
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[ring/ring-core "1.8.0"]
[ring/ring-devel "1.8.0"]
[ring/ring-jetty-adapter "1.8.0"]
[ring/ring-servlet "1.8.0"]]
:plugins [[lein-sub "0.3.0"]
[lein-codox "0.10.3"]]
:sub ["ring-core"
"ring-devel"
"ring-jetty-adapter"
"ring-servlet"]
:codox {:output-path "codox"
:source-uri "http://github.com/ring-clojure/ring/blob/{version}/{filepath}#L{line}"
:source-paths ["ring-core/src"
"ring-devel/src"
"ring-jetty-adapter/src"
"ring-servlet/src"]}
:aliases {"test" ["sub" "test"]
"test-all" ["sub" "test-all"]
"bench" ["sub" "-s" "ring-bench" "run"]})
| Add aliases for testing and benchmarking | Add aliases for testing and benchmarking
| Clojure | mit | ring-clojure/ring,ring-clojure/ring | clojure | ## Code Before:
(defproject ring "1.8.0"
:description "A Clojure web applications library."
:url "https://github.com/ring-clojure/ring"
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[ring/ring-core "1.8.0"]
[ring/ring-devel "1.8.0"]
[ring/ring-jetty-adapter "1.8.0"]
[ring/ring-servlet "1.8.0"]]
:plugins [[lein-sub "0.2.4"]
[lein-codox "0.10.3"]]
:sub ["ring-core"
"ring-devel"
"ring-jetty-adapter"
"ring-servlet"]
:codox {:output-path "codox"
:source-uri "http://github.com/ring-clojure/ring/blob/{version}/{filepath}#L{line}"
:source-paths ["ring-core/src"
"ring-devel/src"
"ring-jetty-adapter/src"
"ring-servlet/src"]})
## Instruction:
Add aliases for testing and benchmarking
## Code After:
(defproject ring "1.8.0"
:description "A Clojure web applications library."
:url "https://github.com/ring-clojure/ring"
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[ring/ring-core "1.8.0"]
[ring/ring-devel "1.8.0"]
[ring/ring-jetty-adapter "1.8.0"]
[ring/ring-servlet "1.8.0"]]
:plugins [[lein-sub "0.3.0"]
[lein-codox "0.10.3"]]
:sub ["ring-core"
"ring-devel"
"ring-jetty-adapter"
"ring-servlet"]
:codox {:output-path "codox"
:source-uri "http://github.com/ring-clojure/ring/blob/{version}/{filepath}#L{line}"
:source-paths ["ring-core/src"
"ring-devel/src"
"ring-jetty-adapter/src"
"ring-servlet/src"]}
:aliases {"test" ["sub" "test"]
"test-all" ["sub" "test-all"]
"bench" ["sub" "-s" "ring-bench" "run"]})
| (defproject ring "1.8.0"
:description "A Clojure web applications library."
:url "https://github.com/ring-clojure/ring"
:license {:name "The MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[ring/ring-core "1.8.0"]
[ring/ring-devel "1.8.0"]
[ring/ring-jetty-adapter "1.8.0"]
[ring/ring-servlet "1.8.0"]]
- :plugins [[lein-sub "0.2.4"]
? ^ ^
+ :plugins [[lein-sub "0.3.0"]
? ^ ^
[lein-codox "0.10.3"]]
:sub ["ring-core"
"ring-devel"
"ring-jetty-adapter"
"ring-servlet"]
:codox {:output-path "codox"
:source-uri "http://github.com/ring-clojure/ring/blob/{version}/{filepath}#L{line}"
:source-paths ["ring-core/src"
"ring-devel/src"
"ring-jetty-adapter/src"
- "ring-servlet/src"]})
? -
+ "ring-servlet/src"]}
+ :aliases {"test" ["sub" "test"]
+ "test-all" ["sub" "test-all"]
+ "bench" ["sub" "-s" "ring-bench" "run"]}) | 7 | 0.333333 | 5 | 2 |
72d96423109937690f6189aa912cfbbfb472fd1e | frontend/vite.config.ts | frontend/vite.config.ts | import { fileURLToPath, URL } from 'url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
| import { fileURLToPath, URL } from 'url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
watch: {
usePolling: true
}
}
})
| Use polling for HMR because SSHFS does not send iNotify events | Use polling for HMR because SSHFS does not send iNotify events
Signed-off-by: Aurélien Bompard <bceb368e7f2cb351af47298f32034f0587bbe4a6@bompard.org>
| TypeScript | lgpl-2.1 | fedora-infra/fmn,fedora-infra/fmn,fedora-infra/fmn,fedora-infra/fmn,fedora-infra/fmn | typescript | ## Code Before:
import { fileURLToPath, URL } from 'url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
## Instruction:
Use polling for HMR because SSHFS does not send iNotify events
Signed-off-by: Aurélien Bompard <bceb368e7f2cb351af47298f32034f0587bbe4a6@bompard.org>
## Code After:
import { fileURLToPath, URL } from 'url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
watch: {
usePolling: true
}
}
})
| import { fileURLToPath, URL } from 'url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
+ },
+ server: {
+ watch: {
+ usePolling: true
+ }
}
}) | 5 | 0.357143 | 5 | 0 |
02f987243d5493188091b38a040ef10d1ba6ab06 | config/nvim/config/fuzzy.vim | config/nvim/config/fuzzy.vim | set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ }
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 0
endif
| set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_extensions = ['tag', 'buffertag']
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ }
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 0
endif
nnoremap <Leader><Space> :CtrlPTag<cr>
| Enable tag search using leader-space | Enable tag search using leader-space
| VimL | mit | owickstrom/dotfiles | viml | ## Code Before:
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ }
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 0
endif
## Instruction:
Enable tag search using leader-space
## Code After:
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
let g:ctrlp_extensions = ['tag', 'buffertag']
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ }
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 0
endif
nnoremap <Leader><Space> :CtrlPTag<cr>
| set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
+
+ let g:ctrlp_extensions = ['tag', 'buffertag']
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(exe|so|dll)$',
\ }
if executable('rg')
set grepprg=rg\ --color=never
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
let g:ctrlp_use_caching = 0
endif
+
+ nnoremap <Leader><Space> :CtrlPTag<cr> | 4 | 0.285714 | 4 | 0 |
a049ef306a4728b32a2b46de0d6d9939e4c9456c | packages/hs/hspec2.yaml | packages/hs/hspec2.yaml | homepage: http://hspec.github.io/
changelog-type: ''
hash: d41ebaf2f80c6ae149a944cd77e31fce98c0eea45cf47a561c5c25d48e03107f
test-bench-deps: {}
maintainer: Simon Hengel <sol@typeful.net>
synopsis: Alpha version of Hspec 2.0
changelog: ''
basic-deps:
base: ==4.*
hspec: ==2.*
hspec-discover: ==2.*
all-versions:
- 0.0.0
- 0.0.1
- 0.1.0
- 0.1.1
- 0.2.0
- 0.2.1
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.4.0
- 0.4.1
- 0.4.2
- 0.5.0
- 0.5.1
- 0.6.0
- 0.6.1
author: ''
latest: 0.6.1
description-type: haddock
description: ! 'This is an alpha release of Hspec 2.0.
If you are looking for a stable solution for testing Haskell
code, use the 1.x series of Hspec: <http://hspec.github.io/>'
license-name: MIT
| homepage: http://hspec.github.io/
changelog-type: ''
hash: 7200bea6db0946b6e101646426710aa22e4a2998c2b128d340f0c4f95ee017e0
test-bench-deps: {}
maintainer: Simon Hengel <sol@typeful.net>
synopsis: Alpha version of Hspec 2.0
changelog: ''
basic-deps:
base: ==4.*
hspec: ! '>=2 && <2.6'
hspec-discover: ==2.*
all-versions:
- 0.0.0
- 0.0.1
- 0.1.0
- 0.1.1
- 0.2.0
- 0.2.1
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.4.0
- 0.4.1
- 0.4.2
- 0.5.0
- 0.5.1
- 0.6.0
- 0.6.1
author: ''
latest: 0.6.1
description-type: haddock
description: |-
This is an alpha release of Hspec 2.0.
If you are looking for a stable solution for testing Haskell
code, use the 1.x series of Hspec: <http://hspec.github.io/>
license-name: MIT
| Update from Hackage at 2019-05-20T20:46:49Z | Update from Hackage at 2019-05-20T20:46:49Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://hspec.github.io/
changelog-type: ''
hash: d41ebaf2f80c6ae149a944cd77e31fce98c0eea45cf47a561c5c25d48e03107f
test-bench-deps: {}
maintainer: Simon Hengel <sol@typeful.net>
synopsis: Alpha version of Hspec 2.0
changelog: ''
basic-deps:
base: ==4.*
hspec: ==2.*
hspec-discover: ==2.*
all-versions:
- 0.0.0
- 0.0.1
- 0.1.0
- 0.1.1
- 0.2.0
- 0.2.1
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.4.0
- 0.4.1
- 0.4.2
- 0.5.0
- 0.5.1
- 0.6.0
- 0.6.1
author: ''
latest: 0.6.1
description-type: haddock
description: ! 'This is an alpha release of Hspec 2.0.
If you are looking for a stable solution for testing Haskell
code, use the 1.x series of Hspec: <http://hspec.github.io/>'
license-name: MIT
## Instruction:
Update from Hackage at 2019-05-20T20:46:49Z
## Code After:
homepage: http://hspec.github.io/
changelog-type: ''
hash: 7200bea6db0946b6e101646426710aa22e4a2998c2b128d340f0c4f95ee017e0
test-bench-deps: {}
maintainer: Simon Hengel <sol@typeful.net>
synopsis: Alpha version of Hspec 2.0
changelog: ''
basic-deps:
base: ==4.*
hspec: ! '>=2 && <2.6'
hspec-discover: ==2.*
all-versions:
- 0.0.0
- 0.0.1
- 0.1.0
- 0.1.1
- 0.2.0
- 0.2.1
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.4.0
- 0.4.1
- 0.4.2
- 0.5.0
- 0.5.1
- 0.6.0
- 0.6.1
author: ''
latest: 0.6.1
description-type: haddock
description: |-
This is an alpha release of Hspec 2.0.
If you are looking for a stable solution for testing Haskell
code, use the 1.x series of Hspec: <http://hspec.github.io/>
license-name: MIT
| homepage: http://hspec.github.io/
changelog-type: ''
- hash: d41ebaf2f80c6ae149a944cd77e31fce98c0eea45cf47a561c5c25d48e03107f
+ hash: 7200bea6db0946b6e101646426710aa22e4a2998c2b128d340f0c4f95ee017e0
test-bench-deps: {}
maintainer: Simon Hengel <sol@typeful.net>
synopsis: Alpha version of Hspec 2.0
changelog: ''
basic-deps:
base: ==4.*
- hspec: ==2.*
+ hspec: ! '>=2 && <2.6'
hspec-discover: ==2.*
all-versions:
- 0.0.0
- 0.0.1
- 0.1.0
- 0.1.1
- 0.2.0
- 0.2.1
- 0.3.0
- 0.3.1
- 0.3.2
- 0.3.3
- 0.3.4
- 0.4.0
- 0.4.1
- 0.4.2
- 0.5.0
- 0.5.1
- 0.6.0
- 0.6.1
author: ''
latest: 0.6.1
description-type: haddock
+ description: |-
- description: ! 'This is an alpha release of Hspec 2.0.
? ------------ - -
+ This is an alpha release of Hspec 2.0.
-
If you are looking for a stable solution for testing Haskell
-
- code, use the 1.x series of Hspec: <http://hspec.github.io/>'
? -
+ code, use the 1.x series of Hspec: <http://hspec.github.io/>
license-name: MIT | 11 | 0.282051 | 5 | 6 |
f26c253480973261f7506f705078be7d89c1fada | spec/spec_helper.rb | spec/spec_helper.rb | require 'cassandra/mapper'
TEST_KEYSPACE = 'test_mapper'
# create testing keyspace if needed
cassandra = Cassandra.new('system')
unless cassandra.keyspaces.include? TEST_KEYSPACE
cassandra.add_keyspace Cassandra::Keyspace.new \
name: TEST_KEYSPACE,
strategy_options: { 'replication_factor' => '1' },
cf_defs: []
end
| require 'cassandra/mapper'
TEST_KEYSPACE = 'test_mapper'
# create testing keyspace if needed
cassandra = Cassandra.new('system')
unless cassandra.keyspaces.include? TEST_KEYSPACE
cassandra.add_keyspace Cassandra::Keyspace.new \
name: TEST_KEYSPACE,
strategy_class: 'SimpleStrategy',
strategy_options: { 'replication_factor' => '1' },
cf_defs: []
end
| Add missing declaration to create testing keyspace | Add missing declaration to create testing keyspace
| Ruby | mit | brainopia/cassandra-mapper | ruby | ## Code Before:
require 'cassandra/mapper'
TEST_KEYSPACE = 'test_mapper'
# create testing keyspace if needed
cassandra = Cassandra.new('system')
unless cassandra.keyspaces.include? TEST_KEYSPACE
cassandra.add_keyspace Cassandra::Keyspace.new \
name: TEST_KEYSPACE,
strategy_options: { 'replication_factor' => '1' },
cf_defs: []
end
## Instruction:
Add missing declaration to create testing keyspace
## Code After:
require 'cassandra/mapper'
TEST_KEYSPACE = 'test_mapper'
# create testing keyspace if needed
cassandra = Cassandra.new('system')
unless cassandra.keyspaces.include? TEST_KEYSPACE
cassandra.add_keyspace Cassandra::Keyspace.new \
name: TEST_KEYSPACE,
strategy_class: 'SimpleStrategy',
strategy_options: { 'replication_factor' => '1' },
cf_defs: []
end
| require 'cassandra/mapper'
TEST_KEYSPACE = 'test_mapper'
# create testing keyspace if needed
cassandra = Cassandra.new('system')
unless cassandra.keyspaces.include? TEST_KEYSPACE
cassandra.add_keyspace Cassandra::Keyspace.new \
name: TEST_KEYSPACE,
+ strategy_class: 'SimpleStrategy',
strategy_options: { 'replication_factor' => '1' },
cf_defs: []
end | 1 | 0.083333 | 1 | 0 |
793cecbc26f5f68c47b2a69aea4c769eb151881b | README.md | README.md | ECoG_preproc
============
Wagner Lab preprocessing pipeline for ECoG data.
Requirements
---------------------------
- Matlab
- cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima) | katja
============
Wagner Lab preprocessing pipeline for ECoG data.
Requirements
---------------------------
- Matlab
- cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima)
| Update readme title to repo name | Update readme title to repo name | Markdown | bsd-3-clause | sgagnon/katja | markdown | ## Code Before:
ECoG_preproc
============
Wagner Lab preprocessing pipeline for ECoG data.
Requirements
---------------------------
- Matlab
- cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima)
## Instruction:
Update readme title to repo name
## Code After:
katja
============
Wagner Lab preprocessing pipeline for ECoG data.
Requirements
---------------------------
- Matlab
- cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima)
| - ECoG_preproc
+ katja
============
Wagner Lab preprocessing pipeline for ECoG data.
Requirements
---------------------------
- Matlab
- cosima from [Stanford Memory Lab](https://github.com/WagnerLab/cosima) | 2 | 0.222222 | 1 | 1 |
5970b784543cfedc8aa09dd405ab79d50e327bdb | index.js | index.js | 'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var Parser = this.Parser;
var Compiler = this.Compiler;
var block = Parser && Parser.prototype.blockTokenizers;
var inline = Parser && Parser.prototype.inlineTokenizers;
var compiler = Compiler && Compiler.prototype.visitors;
if (block && block.html) {
block.html = factory(block.html);
}
if (inline && inline.html) {
inline.html = factory(inline.html);
}
if (compiler && compiler.html) {
compiler.html = factory(compiler.html);
}
}
/* Wrapper factory. */
function factory(original) {
replacement.locator = original.locator;
return replacement;
/* Replacer for tokeniser or visitor. */
function replacement(node) {
var self = this;
var result = original.apply(self, arguments);
var marker = commentMarker(result && result.type ? result : node);
if (marker && marker.name === 'remark') {
try {
self.setOptions(marker.parameters);
} catch (err) {
self.file.fail(err.message, marker.node);
}
}
return result;
}
}
| 'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var proto = this.Parser && this.Parser.prototype;
var Compiler = this.Compiler;
var block = proto && proto.blockTokenizers;
var inline = proto && proto.inlineTokenizers;
var compiler = Compiler && Compiler.prototype && Compiler.prototype.visitors;
if (block && block.html) {
block.html = factory(block.html);
}
if (inline && inline.html) {
inline.html = factory(inline.html);
}
if (compiler && compiler.html) {
compiler.html = factory(compiler.html);
}
}
/* Wrapper factory. */
function factory(original) {
replacement.locator = original.locator;
return replacement;
/* Replacer for tokeniser or visitor. */
function replacement(node) {
var self = this;
var result = original.apply(self, arguments);
var marker = commentMarker(result && result.type ? result : node);
if (marker && marker.name === 'remark') {
try {
self.setOptions(marker.parameters);
} catch (err) {
self.file.fail(err.message, marker.node);
}
}
return result;
}
}
| Fix for non-remark parsers or compilers | Fix for non-remark parsers or compilers
| JavaScript | mit | wooorm/mdast-comment-config,wooorm/remark-comment-config | javascript | ## Code Before:
'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var Parser = this.Parser;
var Compiler = this.Compiler;
var block = Parser && Parser.prototype.blockTokenizers;
var inline = Parser && Parser.prototype.inlineTokenizers;
var compiler = Compiler && Compiler.prototype.visitors;
if (block && block.html) {
block.html = factory(block.html);
}
if (inline && inline.html) {
inline.html = factory(inline.html);
}
if (compiler && compiler.html) {
compiler.html = factory(compiler.html);
}
}
/* Wrapper factory. */
function factory(original) {
replacement.locator = original.locator;
return replacement;
/* Replacer for tokeniser or visitor. */
function replacement(node) {
var self = this;
var result = original.apply(self, arguments);
var marker = commentMarker(result && result.type ? result : node);
if (marker && marker.name === 'remark') {
try {
self.setOptions(marker.parameters);
} catch (err) {
self.file.fail(err.message, marker.node);
}
}
return result;
}
}
## Instruction:
Fix for non-remark parsers or compilers
## Code After:
'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
var proto = this.Parser && this.Parser.prototype;
var Compiler = this.Compiler;
var block = proto && proto.blockTokenizers;
var inline = proto && proto.inlineTokenizers;
var compiler = Compiler && Compiler.prototype && Compiler.prototype.visitors;
if (block && block.html) {
block.html = factory(block.html);
}
if (inline && inline.html) {
inline.html = factory(inline.html);
}
if (compiler && compiler.html) {
compiler.html = factory(compiler.html);
}
}
/* Wrapper factory. */
function factory(original) {
replacement.locator = original.locator;
return replacement;
/* Replacer for tokeniser or visitor. */
function replacement(node) {
var self = this;
var result = original.apply(self, arguments);
var marker = commentMarker(result && result.type ? result : node);
if (marker && marker.name === 'remark') {
try {
self.setOptions(marker.parameters);
} catch (err) {
self.file.fail(err.message, marker.node);
}
}
return result;
}
}
| 'use strict';
var commentMarker = require('mdast-comment-marker');
module.exports = commentconfig;
/* Modify `processor` to read configuration from comments. */
function commentconfig() {
- var Parser = this.Parser;
+ var proto = this.Parser && this.Parser.prototype;
var Compiler = this.Compiler;
- var block = Parser && Parser.prototype.blockTokenizers;
- var inline = Parser && Parser.prototype.inlineTokenizers;
+ var block = proto && proto.blockTokenizers;
+ var inline = proto && proto.inlineTokenizers;
- var compiler = Compiler && Compiler.prototype.visitors;
+ var compiler = Compiler && Compiler.prototype && Compiler.prototype.visitors;
? ++++++++++++++++++++++
if (block && block.html) {
block.html = factory(block.html);
}
if (inline && inline.html) {
inline.html = factory(inline.html);
}
if (compiler && compiler.html) {
compiler.html = factory(compiler.html);
}
}
/* Wrapper factory. */
function factory(original) {
replacement.locator = original.locator;
return replacement;
/* Replacer for tokeniser or visitor. */
function replacement(node) {
var self = this;
var result = original.apply(self, arguments);
var marker = commentMarker(result && result.type ? result : node);
if (marker && marker.name === 'remark') {
try {
self.setOptions(marker.parameters);
} catch (err) {
self.file.fail(err.message, marker.node);
}
}
return result;
}
} | 8 | 0.16 | 4 | 4 |
818af599e9fa538fa629e24d1a49b659243e00cc | app/src/main/java/com/github/pockethub/android/ui/item/news/MemberEventItem.kt | app/src/main/java/com/github/pockethub/android/ui/item/news/MemberEventItem.kt | package com.github.pockethub.android.ui.item.news
import android.view.View
import androidx.core.text.bold
import androidx.core.text.buildSpannedString
import com.github.pockethub.android.ui.view.OcticonTextView
import com.github.pockethub.android.util.AvatarLoader
import com.meisolsson.githubsdk.model.GitHubEvent
import com.meisolsson.githubsdk.model.payload.MemberPayload
import com.xwray.groupie.kotlinandroidextensions.ViewHolder
import kotlinx.android.synthetic.main.news_item.*
class MemberEventItem(
avatarLoader: AvatarLoader,
gitHubEvent: GitHubEvent
) : NewsItem(avatarLoader, gitHubEvent) {
override fun bind(holder: ViewHolder, position: Int) {
super.bind(holder, position)
holder.tv_event_icon.text = OcticonTextView.ICON_ADD_MEMBER
holder.tv_event.text = buildSpannedString {
val context = holder.root.context
val payload = gitHubEvent.payload() as MemberPayload?
boldActor(context, this, gitHubEvent)
append(" added ")
bold {
append(payload?.member()?.login())
}
append(" as a collaborator to ")
boldRepo(context, this, gitHubEvent)
}
holder.tv_event_details.visibility = View.GONE
}
}
| package com.github.pockethub.android.ui.item.news
import android.view.View
import androidx.core.text.buildSpannedString
import com.github.pockethub.android.ui.view.OcticonTextView
import com.github.pockethub.android.util.AvatarLoader
import com.meisolsson.githubsdk.model.GitHubEvent
import com.meisolsson.githubsdk.model.payload.MemberPayload
import com.xwray.groupie.kotlinandroidextensions.ViewHolder
import kotlinx.android.synthetic.main.news_item.*
class MemberEventItem(
avatarLoader: AvatarLoader,
gitHubEvent: GitHubEvent
) : NewsItem(avatarLoader, gitHubEvent) {
override fun bind(holder: ViewHolder, position: Int) {
super.bind(holder, position)
holder.tv_event_icon.text = OcticonTextView.ICON_ADD_MEMBER
holder.tv_event.text = buildSpannedString {
val context = holder.root.context
val payload = gitHubEvent.payload() as MemberPayload?
boldActor(context, this, gitHubEvent)
append(" added ")
boldUser(context, this, payload?.member())
append(" as a collaborator to ")
boldRepo(context, this, gitHubEvent)
}
holder.tv_event_details.visibility = View.GONE
}
}
| Make person made collaborator in news title clickable | Make person made collaborator in news title clickable
| Kotlin | apache-2.0 | PKRoma/PocketHub,pockethub/PocketHub,pockethub/PocketHub,PKRoma/PocketHub,pockethub/PocketHub,Meisolsson/PocketHub,PKRoma/github-android,PKRoma/PocketHub,Meisolsson/PocketHub,pockethub/PocketHub,forkhubs/android,forkhubs/android,PKRoma/github-android,Meisolsson/PocketHub,PKRoma/github-android,forkhubs/android,Meisolsson/PocketHub,PKRoma/PocketHub | kotlin | ## Code Before:
package com.github.pockethub.android.ui.item.news
import android.view.View
import androidx.core.text.bold
import androidx.core.text.buildSpannedString
import com.github.pockethub.android.ui.view.OcticonTextView
import com.github.pockethub.android.util.AvatarLoader
import com.meisolsson.githubsdk.model.GitHubEvent
import com.meisolsson.githubsdk.model.payload.MemberPayload
import com.xwray.groupie.kotlinandroidextensions.ViewHolder
import kotlinx.android.synthetic.main.news_item.*
class MemberEventItem(
avatarLoader: AvatarLoader,
gitHubEvent: GitHubEvent
) : NewsItem(avatarLoader, gitHubEvent) {
override fun bind(holder: ViewHolder, position: Int) {
super.bind(holder, position)
holder.tv_event_icon.text = OcticonTextView.ICON_ADD_MEMBER
holder.tv_event.text = buildSpannedString {
val context = holder.root.context
val payload = gitHubEvent.payload() as MemberPayload?
boldActor(context, this, gitHubEvent)
append(" added ")
bold {
append(payload?.member()?.login())
}
append(" as a collaborator to ")
boldRepo(context, this, gitHubEvent)
}
holder.tv_event_details.visibility = View.GONE
}
}
## Instruction:
Make person made collaborator in news title clickable
## Code After:
package com.github.pockethub.android.ui.item.news
import android.view.View
import androidx.core.text.buildSpannedString
import com.github.pockethub.android.ui.view.OcticonTextView
import com.github.pockethub.android.util.AvatarLoader
import com.meisolsson.githubsdk.model.GitHubEvent
import com.meisolsson.githubsdk.model.payload.MemberPayload
import com.xwray.groupie.kotlinandroidextensions.ViewHolder
import kotlinx.android.synthetic.main.news_item.*
class MemberEventItem(
avatarLoader: AvatarLoader,
gitHubEvent: GitHubEvent
) : NewsItem(avatarLoader, gitHubEvent) {
override fun bind(holder: ViewHolder, position: Int) {
super.bind(holder, position)
holder.tv_event_icon.text = OcticonTextView.ICON_ADD_MEMBER
holder.tv_event.text = buildSpannedString {
val context = holder.root.context
val payload = gitHubEvent.payload() as MemberPayload?
boldActor(context, this, gitHubEvent)
append(" added ")
boldUser(context, this, payload?.member())
append(" as a collaborator to ")
boldRepo(context, this, gitHubEvent)
}
holder.tv_event_details.visibility = View.GONE
}
}
| package com.github.pockethub.android.ui.item.news
import android.view.View
- import androidx.core.text.bold
import androidx.core.text.buildSpannedString
import com.github.pockethub.android.ui.view.OcticonTextView
import com.github.pockethub.android.util.AvatarLoader
import com.meisolsson.githubsdk.model.GitHubEvent
import com.meisolsson.githubsdk.model.payload.MemberPayload
import com.xwray.groupie.kotlinandroidextensions.ViewHolder
import kotlinx.android.synthetic.main.news_item.*
class MemberEventItem(
avatarLoader: AvatarLoader,
gitHubEvent: GitHubEvent
) : NewsItem(avatarLoader, gitHubEvent) {
override fun bind(holder: ViewHolder, position: Int) {
super.bind(holder, position)
holder.tv_event_icon.text = OcticonTextView.ICON_ADD_MEMBER
holder.tv_event.text = buildSpannedString {
val context = holder.root.context
val payload = gitHubEvent.payload() as MemberPayload?
boldActor(context, this, gitHubEvent)
append(" added ")
+ boldUser(context, this, payload?.member())
- bold {
- append(payload?.member()?.login())
- }
append(" as a collaborator to ")
boldRepo(context, this, gitHubEvent)
}
holder.tv_event_details.visibility = View.GONE
}
} | 5 | 0.147059 | 1 | 4 |
7660b601d068652487cc97a704ae54acc33c6889 | setup.py | setup.py | from distutils.core import setup
setup(name='hermes-gui',
version='0.1',
packages=[
'acme',
'acme.acmelab',
'acme.core',
'acme.core.views',
],
package_data={
'acme.acmelab': ['images/*'],
'acme.core': ['images/*.png'],
}
)
| from distutils.core import setup
setup(name='hermes-gui',
version='0.1',
packages=[
'acme',
'acme.acmelab',
'acme.core',
'acme.core.views',
],
package_data={
'acme.acmelab': ['images/*'],
'acme.core': ['images/*.png'],
},
scripts = ['hermes-gui.py'],
)
| Install the hermes-gui.py executable too | Install the hermes-gui.py executable too
| Python | bsd-3-clause | certik/hermes-gui | python | ## Code Before:
from distutils.core import setup
setup(name='hermes-gui',
version='0.1',
packages=[
'acme',
'acme.acmelab',
'acme.core',
'acme.core.views',
],
package_data={
'acme.acmelab': ['images/*'],
'acme.core': ['images/*.png'],
}
)
## Instruction:
Install the hermes-gui.py executable too
## Code After:
from distutils.core import setup
setup(name='hermes-gui',
version='0.1',
packages=[
'acme',
'acme.acmelab',
'acme.core',
'acme.core.views',
],
package_data={
'acme.acmelab': ['images/*'],
'acme.core': ['images/*.png'],
},
scripts = ['hermes-gui.py'],
)
| from distutils.core import setup
setup(name='hermes-gui',
version='0.1',
packages=[
'acme',
'acme.acmelab',
'acme.core',
'acme.core.views',
],
package_data={
'acme.acmelab': ['images/*'],
'acme.core': ['images/*.png'],
- }
+ },
? +
+ scripts = ['hermes-gui.py'],
) | 3 | 0.214286 | 2 | 1 |
3cc1cb9894fdb1b88a84ad8315669ad2f0858fdb | cloud_logging.py | cloud_logging.py |
import google.cloud.logging as glog
import logging
import contextlib
import io
import sys
import os
LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '')
def configure(project=LOGGING_PROJECT):
if not project:
print('!! Error: The $LOGGING_PROJECT enviroment '
'variable is required in order to set up cloud logging. '
'Cloud logging is disabled.')
return
logging.basicConfig(level=logging.INFO)
try:
# if this fails, redirect stderr to /dev/null so no startup spam.
with contextlib.redirect_stderr(io.StringIO()):
client = glog.Client(project)
client.setup_logging(logging.INFO)
except:
print('!! Cloud logging disabled')
|
import google.cloud.logging as glog
import logging
import contextlib
import io
import sys
import os
LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '')
def configure(project=LOGGING_PROJECT):
if not project:
sys.stderr.write('!! Error: The $LOGGING_PROJECT enviroment '
'variable is required in order to set up cloud logging. '
'Cloud logging is disabled.\n')
return
logging.basicConfig(level=logging.INFO)
try:
# if this fails, redirect stderr to /dev/null so no startup spam.
with contextlib.redirect_stderr(io.StringIO()):
client = glog.Client(project)
client.setup_logging(logging.INFO)
except:
sys.stderr.write('!! Cloud logging disabled\n')
| Change some errors to go to stderr. | Change some errors to go to stderr.
These non-fatal errors violated GTP protocol.
| Python | apache-2.0 | tensorflow/minigo,tensorflow/minigo,tensorflow/minigo,tensorflow/minigo,tensorflow/minigo,tensorflow/minigo | python | ## Code Before:
import google.cloud.logging as glog
import logging
import contextlib
import io
import sys
import os
LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '')
def configure(project=LOGGING_PROJECT):
if not project:
print('!! Error: The $LOGGING_PROJECT enviroment '
'variable is required in order to set up cloud logging. '
'Cloud logging is disabled.')
return
logging.basicConfig(level=logging.INFO)
try:
# if this fails, redirect stderr to /dev/null so no startup spam.
with contextlib.redirect_stderr(io.StringIO()):
client = glog.Client(project)
client.setup_logging(logging.INFO)
except:
print('!! Cloud logging disabled')
## Instruction:
Change some errors to go to stderr.
These non-fatal errors violated GTP protocol.
## Code After:
import google.cloud.logging as glog
import logging
import contextlib
import io
import sys
import os
LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '')
def configure(project=LOGGING_PROJECT):
if not project:
sys.stderr.write('!! Error: The $LOGGING_PROJECT enviroment '
'variable is required in order to set up cloud logging. '
'Cloud logging is disabled.\n')
return
logging.basicConfig(level=logging.INFO)
try:
# if this fails, redirect stderr to /dev/null so no startup spam.
with contextlib.redirect_stderr(io.StringIO()):
client = glog.Client(project)
client.setup_logging(logging.INFO)
except:
sys.stderr.write('!! Cloud logging disabled\n')
|
import google.cloud.logging as glog
import logging
import contextlib
import io
import sys
import os
LOGGING_PROJECT = os.environ.get('LOGGING_PROJECT', '')
def configure(project=LOGGING_PROJECT):
if not project:
- print('!! Error: The $LOGGING_PROJECT enviroment '
? ^ -
+ sys.stderr.write('!! Error: The $LOGGING_PROJECT enviroment '
? ^^^^^^^^^^^^ +
'variable is required in order to set up cloud logging. '
- 'Cloud logging is disabled.')
+ 'Cloud logging is disabled.\n')
? ++
return
logging.basicConfig(level=logging.INFO)
try:
# if this fails, redirect stderr to /dev/null so no startup spam.
with contextlib.redirect_stderr(io.StringIO()):
client = glog.Client(project)
client.setup_logging(logging.INFO)
except:
- print('!! Cloud logging disabled')
? ^ -
+ sys.stderr.write('!! Cloud logging disabled\n')
? ^^^^^^^^^^^^ + ++
| 6 | 0.24 | 3 | 3 |
b9897060092575a43baedb12ddc5f0d8a684b152 | app/views/people/new.html.erb | app/views/people/new.html.erb | <% content_for :sidebar do %><% end %>
<h2><%= t('people.new_person') %></h2>
<%= error_messages_for(@person) %>
<%= render partial: 'form' %>
| <% content_for :sidebar do %><!-- placeholder --><% end %>
<h2><%= t('people.new_person') %></h2>
<%= error_messages_for(@person) %>
<%= render partial: 'form' %>
| Put something in the sidebar to make it show. | Put something in the sidebar to make it show.
| HTML+ERB | agpl-3.0 | nerdnorth/remote-workers-app,pgmcgee/onebody,cessien/onebody,brunoocasali/onebody,hooray4me/onebody,AVee/onebody,davidleach/onebody,tochman/onebody,calsaviour/onebody,tmecklem/onebody,ferdinandrosario/onebody,brunoocasali/onebody,nerdnorth/remote-workers-app,kevinjqiu/onebody,Capriatto/onebody,dorman/onebody,seethemhigh/onebody,kevinjqiu/onebody,AVee/onebody,calsaviour/onebody,ebennaga/onebody,dorman/onebody,tmecklem/onebody,fadiwissa/onebody,tochman/onebody,ferdinandrosario/onebody,ebennaga/onebody,fadiwissa/onebody,seethemhigh/onebody,tmecklem/onebody,hschin/onebody,klarkc/onebody,AVee/onebody,davidleach/onebody,acbilimoria/onebody,fadiwissa/onebody,ferdinandrosario/onebody,hschin/onebody,klarkc/onebody,AVee/onebody,brunoocasali/onebody,dorman/onebody,mattraykowski/onebody,seethemhigh/onebody,hooray4me/onebody2,nerdnorth/remote-workers-app,hooray4me/onebody2,cessien/onebody,hschin/onebody,kevinjqiu/onebody,pgmcgee/onebody,tochman/onebody,Capriatto/onebody,acbilimoria/onebody,pgmcgee/onebody,hschin/onebody,nerdnorth/remote-workers-app,calsaviour/onebody,klarkc/onebody,hooray4me/onebody2,tmecklem/onebody,Capriatto/onebody,hooray4me/onebody,acbilimoria/onebody,acbilimoria/onebody,hooray4me/onebody2,calsaviour/onebody,tochman/onebody,hooray4me/onebody,hooray4me/onebody,cessien/onebody,davidleach/onebody,ferdinandrosario/onebody,mattraykowski/onebody,Capriatto/onebody,ebennaga/onebody,brunoocasali/onebody,ebennaga/onebody,fadiwissa/onebody,klarkc/onebody,dorman/onebody,seethemhigh/onebody,pgmcgee/onebody,mattraykowski/onebody,cessien/onebody,mattraykowski/onebody,davidleach/onebody,kevinjqiu/onebody | html+erb | ## Code Before:
<% content_for :sidebar do %><% end %>
<h2><%= t('people.new_person') %></h2>
<%= error_messages_for(@person) %>
<%= render partial: 'form' %>
## Instruction:
Put something in the sidebar to make it show.
## Code After:
<% content_for :sidebar do %><!-- placeholder --><% end %>
<h2><%= t('people.new_person') %></h2>
<%= error_messages_for(@person) %>
<%= render partial: 'form' %>
| - <% content_for :sidebar do %><% end %>
+ <% content_for :sidebar do %><!-- placeholder --><% end %>
? ++++++++++++++++++++
<h2><%= t('people.new_person') %></h2>
<%= error_messages_for(@person) %>
<%= render partial: 'form' %> | 2 | 0.333333 | 1 | 1 |
7a50f7385465757b933241b491599b0208eeb472 | _drafts/clojure-app-engine.md | _drafts/clojure-app-engine.md | guide:
http://lambda-startup.com/developing-clojure-on-app-engine/
errors:
Compilation failed: No method in multimethod 'print-dup' for dispatch value:
class org.sonatype.aether.repository.RemoteRepository
upgrade lein-ring to 0.9.7
No API environment is registered for this thread
don't use datastore from repl; use it from program only
| guide:
http://lambda-startup.com/developing-clojure-on-app-engine/
errors:
Compilation failed: No method in multimethod 'print-dup' for dispatch value:
class org.sonatype.aether.repository.RemoteRepository
upgrade lein-ring to 0.9.7
No API environment is registered for this thread
don't use datastore from repl; use it from program only
Compiling app-engine in uberwar
move the source into a separate dir and only have it in the :dev profile
| Document dev profile with uberwars | Document dev profile with uberwars
| Markdown | mit | jeaye/jeaye.github.io,jeaye/jeaye.github.io | markdown | ## Code Before:
guide:
http://lambda-startup.com/developing-clojure-on-app-engine/
errors:
Compilation failed: No method in multimethod 'print-dup' for dispatch value:
class org.sonatype.aether.repository.RemoteRepository
upgrade lein-ring to 0.9.7
No API environment is registered for this thread
don't use datastore from repl; use it from program only
## Instruction:
Document dev profile with uberwars
## Code After:
guide:
http://lambda-startup.com/developing-clojure-on-app-engine/
errors:
Compilation failed: No method in multimethod 'print-dup' for dispatch value:
class org.sonatype.aether.repository.RemoteRepository
upgrade lein-ring to 0.9.7
No API environment is registered for this thread
don't use datastore from repl; use it from program only
Compiling app-engine in uberwar
move the source into a separate dir and only have it in the :dev profile
| guide:
http://lambda-startup.com/developing-clojure-on-app-engine/
errors:
Compilation failed: No method in multimethod 'print-dup' for dispatch value:
class org.sonatype.aether.repository.RemoteRepository
upgrade lein-ring to 0.9.7
No API environment is registered for this thread
don't use datastore from repl; use it from program only
+
+ Compiling app-engine in uberwar
+
+ move the source into a separate dir and only have it in the :dev profile | 4 | 0.333333 | 4 | 0 |
2406abdc7ee5087a752fe9e1d3657fdbbe9f29af | app/controllers/admin/github_repositories_controller.rb | app/controllers/admin/github_repositories_controller.rb | class Admin::GithubRepositoriesController < Admin::ApplicationController
def show
@github_repository = GithubRepository.find(params[:id])
end
def update
@github_repository = GithubRepository.find(params[:id])
if @github_repository.update_attributes(github_repository_params)
redirect_to github_repository_path(@github_repository.owner_name, @github_repository.project_name)
else
redirect_to admin_github_repository_path(@github_repository.id)
end
end
def index
@github_repositories = GithubRepository.without_license.with_projects.group('github_repositories.id').order('github_repositories.stargazers_count DESC').paginate(page: params[:page])
end
def mit
@github_repositories = GithubRepository.with_projects.language('Go').without_license.group('github_repositories.id').includes(:readme).order('github_repositories.stargazers_count DESC').paginate(page: params[:page], per_page: 100)
end
private
def github_repository_params
params.require(:github_repository).permit(:license)
end
end
| class Admin::GithubRepositoriesController < Admin::ApplicationController
def show
@github_repository = GithubRepository.find(params[:id])
end
def update
@github_repository = GithubRepository.find(params[:id])
if @github_repository.update_attributes(github_repository_params)
@github_repository.update_all_info_async
redirect_to github_repository_path(@github_repository.owner_name, @github_repository.project_name)
else
redirect_to admin_github_repository_path(@github_repository.id)
end
end
def index
@github_repositories = GithubRepository.without_license.with_projects.group('github_repositories.id').order('github_repositories.stargazers_count DESC').paginate(page: params[:page])
end
def mit
@github_repositories = GithubRepository.with_projects.language('Go').without_license.group('github_repositories.id').includes(:readme).order('github_repositories.stargazers_count DESC').paginate(page: params[:page], per_page: 100)
end
private
def github_repository_params
params.require(:github_repository).permit(:license)
end
end
| Update github repos after being edited in the admin | Update github repos after being edited in the admin | Ruby | agpl-3.0 | samjacobclift/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,samjacobclift/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,samjacobclift/libraries.io,abrophy/libraries.io | ruby | ## Code Before:
class Admin::GithubRepositoriesController < Admin::ApplicationController
def show
@github_repository = GithubRepository.find(params[:id])
end
def update
@github_repository = GithubRepository.find(params[:id])
if @github_repository.update_attributes(github_repository_params)
redirect_to github_repository_path(@github_repository.owner_name, @github_repository.project_name)
else
redirect_to admin_github_repository_path(@github_repository.id)
end
end
def index
@github_repositories = GithubRepository.without_license.with_projects.group('github_repositories.id').order('github_repositories.stargazers_count DESC').paginate(page: params[:page])
end
def mit
@github_repositories = GithubRepository.with_projects.language('Go').without_license.group('github_repositories.id').includes(:readme).order('github_repositories.stargazers_count DESC').paginate(page: params[:page], per_page: 100)
end
private
def github_repository_params
params.require(:github_repository).permit(:license)
end
end
## Instruction:
Update github repos after being edited in the admin
## Code After:
class Admin::GithubRepositoriesController < Admin::ApplicationController
def show
@github_repository = GithubRepository.find(params[:id])
end
def update
@github_repository = GithubRepository.find(params[:id])
if @github_repository.update_attributes(github_repository_params)
@github_repository.update_all_info_async
redirect_to github_repository_path(@github_repository.owner_name, @github_repository.project_name)
else
redirect_to admin_github_repository_path(@github_repository.id)
end
end
def index
@github_repositories = GithubRepository.without_license.with_projects.group('github_repositories.id').order('github_repositories.stargazers_count DESC').paginate(page: params[:page])
end
def mit
@github_repositories = GithubRepository.with_projects.language('Go').without_license.group('github_repositories.id').includes(:readme).order('github_repositories.stargazers_count DESC').paginate(page: params[:page], per_page: 100)
end
private
def github_repository_params
params.require(:github_repository).permit(:license)
end
end
| class Admin::GithubRepositoriesController < Admin::ApplicationController
def show
@github_repository = GithubRepository.find(params[:id])
end
def update
@github_repository = GithubRepository.find(params[:id])
if @github_repository.update_attributes(github_repository_params)
+ @github_repository.update_all_info_async
redirect_to github_repository_path(@github_repository.owner_name, @github_repository.project_name)
else
redirect_to admin_github_repository_path(@github_repository.id)
end
end
def index
@github_repositories = GithubRepository.without_license.with_projects.group('github_repositories.id').order('github_repositories.stargazers_count DESC').paginate(page: params[:page])
end
def mit
@github_repositories = GithubRepository.with_projects.language('Go').without_license.group('github_repositories.id').includes(:readme).order('github_repositories.stargazers_count DESC').paginate(page: params[:page], per_page: 100)
end
private
def github_repository_params
params.require(:github_repository).permit(:license)
end
end | 1 | 0.035714 | 1 | 0 |
5d971a1589b1efa143944d0b922c4eea1fc5bc64 | samples/react-search-refiners/src/webparts/searchResults/components/Layouts/SearchResultsTemplate.scss | samples/react-search-refiners/src/webparts/searchResults/components/Layouts/SearchResultsTemplate.scss | .template_root {
@import '~office-ui-fabric/dist/sass/Fabric.scss';
@import '~office-ui-fabric/dist/components/Label/Label.scss';
@import '~office-ui-fabric/dist/components/List/List.scss';
@import '~office-ui-fabric/dist/components/ListItem/ListItem.scss';
.template_defaultList {
.template_icon {
background-position: top;
background-repeat: no-repeat;
}
strong {
color: "[theme: themePrimary]"
}
}
.template_defaultCard {
.singleCard {
margin: 10px;
border: 1px solid #eaeaea;
min-height: 200px;
.previewImg {
width: 100%;
height: 111px;
background-size: cover;
background-color: #eaeaea;
position: relative;
border-bottom: 1px solid #eaeaea;
}
.cardInfo {
padding-left: 10px;
padding-right: 10px;
}
.cardFileIcon {
left: 10px;
bottom: 8px;
position: absolute;
}
}
.singleCard:hover {
border-color: #c8c8c8;
cursor: pointer;
}
}
.template_resultCount {
padding-left: 10px;
margin-bottom: 10px;
}
}
| .searchWp {
@import '~office-ui-fabric/dist/sass/Fabric.scss';
@import '~office-ui-fabric/dist/components/Label/Label.scss';
@import '~office-ui-fabric/dist/components/List/List.scss';
@import '~office-ui-fabric/dist/components/ListItem/ListItem.scss';
@import '~@microsoft/sp-office-ui-fabric-core/dist/sass/FabricCore.scss';
.template_defaultList {
.template_icon {
background-position: top;
background-repeat: no-repeat;
}
strong {
color: "[theme: themePrimary]"
}
}
.template_defaultCard {
.singleCard {
margin: 10px;
border: 1px solid #eaeaea;
min-height: 200px;
.previewImg {
width: 100%;
height: 111px;
background-size: cover;
background-color: #eaeaea;
position: relative;
border-bottom: 1px solid #eaeaea;
}
.cardInfo {
padding-left: 10px;
padding-right: 10px;
}
.cardFileIcon {
left: 10px;
bottom: 8px;
position: absolute;
}
}
.singleCard:hover {
border-color: #c8c8c8;
cursor: pointer;
}
}
.template_resultCount {
padding-left: 10px;
margin-bottom: 10px;
}
} | Include SPFx ouif styles as they render the correct colors. Moved import to root of wp as template styles can change. | Include SPFx ouif styles as they render the correct colors.
Moved import to root of wp as template styles can change.
| SCSS | mit | SharePoint/sp-dev-fx-webparts,AJIXuMuK/sp-dev-fx-webparts,rgarita/sp-dev-fx-webparts,AJIXuMuK/sp-dev-fx-webparts,rgarita/sp-dev-fx-webparts,vman/sp-dev-fx-webparts,AJIXuMuK/sp-dev-fx-webparts,SharePoint/sp-dev-fx-webparts,vman/sp-dev-fx-webparts | scss | ## Code Before:
.template_root {
@import '~office-ui-fabric/dist/sass/Fabric.scss';
@import '~office-ui-fabric/dist/components/Label/Label.scss';
@import '~office-ui-fabric/dist/components/List/List.scss';
@import '~office-ui-fabric/dist/components/ListItem/ListItem.scss';
.template_defaultList {
.template_icon {
background-position: top;
background-repeat: no-repeat;
}
strong {
color: "[theme: themePrimary]"
}
}
.template_defaultCard {
.singleCard {
margin: 10px;
border: 1px solid #eaeaea;
min-height: 200px;
.previewImg {
width: 100%;
height: 111px;
background-size: cover;
background-color: #eaeaea;
position: relative;
border-bottom: 1px solid #eaeaea;
}
.cardInfo {
padding-left: 10px;
padding-right: 10px;
}
.cardFileIcon {
left: 10px;
bottom: 8px;
position: absolute;
}
}
.singleCard:hover {
border-color: #c8c8c8;
cursor: pointer;
}
}
.template_resultCount {
padding-left: 10px;
margin-bottom: 10px;
}
}
## Instruction:
Include SPFx ouif styles as they render the correct colors.
Moved import to root of wp as template styles can change.
## Code After:
.searchWp {
@import '~office-ui-fabric/dist/sass/Fabric.scss';
@import '~office-ui-fabric/dist/components/Label/Label.scss';
@import '~office-ui-fabric/dist/components/List/List.scss';
@import '~office-ui-fabric/dist/components/ListItem/ListItem.scss';
@import '~@microsoft/sp-office-ui-fabric-core/dist/sass/FabricCore.scss';
.template_defaultList {
.template_icon {
background-position: top;
background-repeat: no-repeat;
}
strong {
color: "[theme: themePrimary]"
}
}
.template_defaultCard {
.singleCard {
margin: 10px;
border: 1px solid #eaeaea;
min-height: 200px;
.previewImg {
width: 100%;
height: 111px;
background-size: cover;
background-color: #eaeaea;
position: relative;
border-bottom: 1px solid #eaeaea;
}
.cardInfo {
padding-left: 10px;
padding-right: 10px;
}
.cardFileIcon {
left: 10px;
bottom: 8px;
position: absolute;
}
}
.singleCard:hover {
border-color: #c8c8c8;
cursor: pointer;
}
}
.template_resultCount {
padding-left: 10px;
margin-bottom: 10px;
}
} | - .template_root {
+ .searchWp {
@import '~office-ui-fabric/dist/sass/Fabric.scss';
@import '~office-ui-fabric/dist/components/Label/Label.scss';
@import '~office-ui-fabric/dist/components/List/List.scss';
@import '~office-ui-fabric/dist/components/ListItem/ListItem.scss';
+ @import '~@microsoft/sp-office-ui-fabric-core/dist/sass/FabricCore.scss';
.template_defaultList {
.template_icon {
background-position: top;
background-repeat: no-repeat;
}
-
strong {
color: "[theme: themePrimary]"
}
}
-
.template_defaultCard {
.singleCard {
margin: 10px;
border: 1px solid #eaeaea;
min-height: 200px;
-
.previewImg {
width: 100%;
height: 111px;
background-size: cover;
background-color: #eaeaea;
position: relative;
border-bottom: 1px solid #eaeaea;
}
-
.cardInfo {
padding-left: 10px;
padding-right: 10px;
}
-
.cardFileIcon {
left: 10px;
bottom: 8px;
position: absolute;
- }
+ }
}
-
.singleCard:hover {
border-color: #c8c8c8;
cursor: pointer;
}
}
-
.template_resultCount {
padding-left: 10px;
margin-bottom: 10px;
}
} | 12 | 0.218182 | 3 | 9 |
78d3b8eb8f08e8bf5090db6545e70b680e847bea | src/styles/base.css | src/styles/base.css | p {
margin: 0;
}
button {
background-color: transparent;
border: 0 none;
padding: 0;
}
button:focus, button:active {
outline: 0 none;
}
| :root {
overflow-x: hidden;
}
p {
margin: 0;
}
button {
background-color: transparent;
border: 0 none;
padding: 0;
}
button:focus, button:active {
outline: 0 none;
}
| Fix sidebar causing overflow on root element | Fix sidebar causing overflow on root element
| CSS | mit | quiaro/chunches,quiaro/chunches | css | ## Code Before:
p {
margin: 0;
}
button {
background-color: transparent;
border: 0 none;
padding: 0;
}
button:focus, button:active {
outline: 0 none;
}
## Instruction:
Fix sidebar causing overflow on root element
## Code After:
:root {
overflow-x: hidden;
}
p {
margin: 0;
}
button {
background-color: transparent;
border: 0 none;
padding: 0;
}
button:focus, button:active {
outline: 0 none;
}
| + :root {
+ overflow-x: hidden;
+ }
+
p {
margin: 0;
}
button {
background-color: transparent;
border: 0 none;
padding: 0;
}
button:focus, button:active {
outline: 0 none;
} | 4 | 0.307692 | 4 | 0 |
8b9e6db7d537419e7b3e2036e0e197d6f4e8cd4e | src/Laravel4ServiceProvider.php | src/Laravel4ServiceProvider.php | <?php
namespace Michaeljennings\Carpenter;
class Laravel4ServiceProvider extends CarpenterServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
* @codeCoverageIgnore
*/
public function boot()
{
$this->package('michaeljennings/carpenter', 'carpenter', realpath(__DIR__ . '/../'));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('michaeljennings.carpenter', function ($app) {
return new Carpenter([
'store' => $app['config']['carpenter::store'],
'paginator' => $app['config']['carpenter::paginator'],
'session' => $app['config']['carpenter::session'],
'view' => $app['config']['carpenter::view'],
]);
});
$this->app->alias('michaeljennings.carpenter', 'Michaeljennings\Carpenter\Contracts\Carpenter');
}
} | <?php
namespace Michaeljennings\Carpenter;
class Laravel4ServiceProvider extends CarpenterServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Bootstrap the application events.
*
* @return void
* @codeCoverageIgnore
*/
public function boot()
{
$this->package('michaeljennings/carpenter', 'carpenter', realpath(__DIR__ . '/../'));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('michaeljennings.carpenter', function ($app) {
return new Carpenter([
'store' => $app['config']['carpenter::store'],
'paginator' => $app['config']['carpenter::paginator'],
'session' => $app['config']['carpenter::session'],
'view' => $app['config']['carpenter::view'],
]);
});
$this->app->alias('michaeljennings.carpenter', 'Michaeljennings\Carpenter\Contracts\Carpenter');
}
}
| Update the laravel 4 service provider so it is not deferred | Update the laravel 4 service provider so it is not deferred
This fixes issues with the config not loading correctly for laravel 4. | PHP | mit | michaeljennings/carpenter,michaeljennings/carpenter,michaeljennings/carpenter | php | ## Code Before:
<?php
namespace Michaeljennings\Carpenter;
class Laravel4ServiceProvider extends CarpenterServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
* @codeCoverageIgnore
*/
public function boot()
{
$this->package('michaeljennings/carpenter', 'carpenter', realpath(__DIR__ . '/../'));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('michaeljennings.carpenter', function ($app) {
return new Carpenter([
'store' => $app['config']['carpenter::store'],
'paginator' => $app['config']['carpenter::paginator'],
'session' => $app['config']['carpenter::session'],
'view' => $app['config']['carpenter::view'],
]);
});
$this->app->alias('michaeljennings.carpenter', 'Michaeljennings\Carpenter\Contracts\Carpenter');
}
}
## Instruction:
Update the laravel 4 service provider so it is not deferred
This fixes issues with the config not loading correctly for laravel 4.
## Code After:
<?php
namespace Michaeljennings\Carpenter;
class Laravel4ServiceProvider extends CarpenterServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Bootstrap the application events.
*
* @return void
* @codeCoverageIgnore
*/
public function boot()
{
$this->package('michaeljennings/carpenter', 'carpenter', realpath(__DIR__ . '/../'));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('michaeljennings.carpenter', function ($app) {
return new Carpenter([
'store' => $app['config']['carpenter::store'],
'paginator' => $app['config']['carpenter::paginator'],
'session' => $app['config']['carpenter::session'],
'view' => $app['config']['carpenter::view'],
]);
});
$this->app->alias('michaeljennings.carpenter', 'Michaeljennings\Carpenter\Contracts\Carpenter');
}
}
| <?php
namespace Michaeljennings\Carpenter;
class Laravel4ServiceProvider extends CarpenterServiceProvider
{
+ /**
+ * Indicates if loading of the provider is deferred.
+ *
+ * @var bool
+ */
+ protected $defer = false;
+
/**
* Bootstrap the application events.
*
* @return void
* @codeCoverageIgnore
*/
public function boot()
{
$this->package('michaeljennings/carpenter', 'carpenter', realpath(__DIR__ . '/../'));
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->singleton('michaeljennings.carpenter', function ($app) {
return new Carpenter([
'store' => $app['config']['carpenter::store'],
'paginator' => $app['config']['carpenter::paginator'],
'session' => $app['config']['carpenter::session'],
'view' => $app['config']['carpenter::view'],
]);
});
$this->app->alias('michaeljennings.carpenter', 'Michaeljennings\Carpenter\Contracts\Carpenter');
}
} | 7 | 0.194444 | 7 | 0 |
22f3d6d6fdc3e5f07ead782828b406c9a27d0199 | UDPSender.py | UDPSender.py | from can import Listener
import socket
class UDPSender(Listener):
dataConvert = {"0x600": {"String":"RPM:",
"Slot":0,
"Conversion":1},
"0x601": {"String":"OIL:",
"Slot":2,
"Conversion":(1/81.92)}}
def __init__(self, IP="10.0.0.4", PORT=5555):
self.ip = IP
self.port = PORT
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def on_message_received(self, msg):
udpMessage = self.can_to_udp_message(msg)
if udpMessage:
self.sock.sendto(udpMessage.encode(), (self.ip, self.port))
def can_to_udp_message(self, msg):
hexId = msg.arbritation_id
if self.dataConvert.get(hexId):
dataId = self.dataConvert[hexId]["String"]
dataSlot = self.dataConvert[hexId]["Slot"]
dataConversion = self.dataConvert[hexID]["Conversion"]
data = ( (msg.data[dataSlot] << 8) + msg.data[dataSlot + 1] ) * dataConversion
udpMessage = dataId + data
return udpMessage
else:
return None
def __del__(self):
self.sock.close()
| from can import Listener
from socket import socket
class UDPSender(Listener):
dataConvert = {"0x600": {"String":"RPM:",
"Slot":0,
"Conversion":1},
"0x601": {"String":"OIL:",
"Slot":2,
"Conversion":(1/81.92)}}
def __init__(self, IP="10.0.0.4", PORT=5555):
self.ip = IP
self.port = PORT
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def on_message_received(self, msg):
udpMessage = self.can_to_udp_message(msg)
if udpMessage:
self.sock.sendto(udpMessage.encode(), (self.ip, self.port))
def can_to_udp_message(self, msg):
hexId = msg.arbritation_id
if self.dataConvert.get(hexId):
dataId = self.dataConvert[hexId]["String"]
dataSlot = self.dataConvert[hexId]["Slot"]
dataConversion = self.dataConvert[hexID]["Conversion"]
data = ( (msg.data[dataSlot] << 8) + msg.data[dataSlot + 1] ) * dataConversion
udpMessage = dataId + data
return udpMessage
else:
return None
def __del__(self):
self.sock.close()
| Change of import of libraries. | Change of import of libraries.
Tried to fix issue displayed below.
[root@alarm BeagleDash]# python3.3 CANtoUDP.py
Traceback (most recent call last):
File "CANtoUDP.py", line 10, in <module>
listeners = [csv, UDPSender()]
TypeError: 'module' object is not callable
Exception AttributeError: "'super' object has no attribute '__del__'" in
<bound method CSVWriter.__del__ of <can.CAN.CSVWriter object at
0xb6867730>> ignored
| Python | mit | TAURacing/BeagleDash | python | ## Code Before:
from can import Listener
import socket
class UDPSender(Listener):
dataConvert = {"0x600": {"String":"RPM:",
"Slot":0,
"Conversion":1},
"0x601": {"String":"OIL:",
"Slot":2,
"Conversion":(1/81.92)}}
def __init__(self, IP="10.0.0.4", PORT=5555):
self.ip = IP
self.port = PORT
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def on_message_received(self, msg):
udpMessage = self.can_to_udp_message(msg)
if udpMessage:
self.sock.sendto(udpMessage.encode(), (self.ip, self.port))
def can_to_udp_message(self, msg):
hexId = msg.arbritation_id
if self.dataConvert.get(hexId):
dataId = self.dataConvert[hexId]["String"]
dataSlot = self.dataConvert[hexId]["Slot"]
dataConversion = self.dataConvert[hexID]["Conversion"]
data = ( (msg.data[dataSlot] << 8) + msg.data[dataSlot + 1] ) * dataConversion
udpMessage = dataId + data
return udpMessage
else:
return None
def __del__(self):
self.sock.close()
## Instruction:
Change of import of libraries.
Tried to fix issue displayed below.
[root@alarm BeagleDash]# python3.3 CANtoUDP.py
Traceback (most recent call last):
File "CANtoUDP.py", line 10, in <module>
listeners = [csv, UDPSender()]
TypeError: 'module' object is not callable
Exception AttributeError: "'super' object has no attribute '__del__'" in
<bound method CSVWriter.__del__ of <can.CAN.CSVWriter object at
0xb6867730>> ignored
## Code After:
from can import Listener
from socket import socket
class UDPSender(Listener):
dataConvert = {"0x600": {"String":"RPM:",
"Slot":0,
"Conversion":1},
"0x601": {"String":"OIL:",
"Slot":2,
"Conversion":(1/81.92)}}
def __init__(self, IP="10.0.0.4", PORT=5555):
self.ip = IP
self.port = PORT
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def on_message_received(self, msg):
udpMessage = self.can_to_udp_message(msg)
if udpMessage:
self.sock.sendto(udpMessage.encode(), (self.ip, self.port))
def can_to_udp_message(self, msg):
hexId = msg.arbritation_id
if self.dataConvert.get(hexId):
dataId = self.dataConvert[hexId]["String"]
dataSlot = self.dataConvert[hexId]["Slot"]
dataConversion = self.dataConvert[hexID]["Conversion"]
data = ( (msg.data[dataSlot] << 8) + msg.data[dataSlot + 1] ) * dataConversion
udpMessage = dataId + data
return udpMessage
else:
return None
def __del__(self):
self.sock.close()
| from can import Listener
- import socket
+ from socket import socket
class UDPSender(Listener):
dataConvert = {"0x600": {"String":"RPM:",
"Slot":0,
"Conversion":1},
"0x601": {"String":"OIL:",
"Slot":2,
"Conversion":(1/81.92)}}
def __init__(self, IP="10.0.0.4", PORT=5555):
self.ip = IP
self.port = PORT
self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def on_message_received(self, msg):
udpMessage = self.can_to_udp_message(msg)
if udpMessage:
self.sock.sendto(udpMessage.encode(), (self.ip, self.port))
def can_to_udp_message(self, msg):
hexId = msg.arbritation_id
if self.dataConvert.get(hexId):
dataId = self.dataConvert[hexId]["String"]
dataSlot = self.dataConvert[hexId]["Slot"]
dataConversion = self.dataConvert[hexID]["Conversion"]
data = ( (msg.data[dataSlot] << 8) + msg.data[dataSlot + 1] ) * dataConversion
udpMessage = dataId + data
return udpMessage
else:
return None
def __del__(self):
self.sock.close() | 2 | 0.057143 | 1 | 1 |
bfb0a7d0cb257bec940f9725e26a744c927fc40a | libravatar/templates/public/home.html | libravatar/templates/public/home.html | {% extends 'base.html' %}
{% block title %}Libravatar{% endblock title %}
{% block content %}
<p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p>
<p>You are most likely looking for one of these pages:</p>
<ul>
{% if not user.is_authenticated %}
<li><a href="{% url django.contrib.auth.views.login %}">Login</a>{% if not disable_signup %} (or <a href="{% url libravatar.account.views.new %}">sign-up</a> for an account){% endif %}</li>
{% else %}
<li><a href="{% url libravatar.account.views.profile %}">View your profile</a></li>
<li><a href="{% url libravatar.tools.views.check %}">Check your email address</a></li>
{% endif %}
</ul>
<p>Did you know that Libravatar is released under the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a>? This means that as a user accessing the site remotely, you are entitled to receive the <a href=="https://code.launchpad.net/libravatar">complete source code</a> for the software. How cool is that!</p>
{% endblock content %}
| {% extends 'base.html' %}
{% block title %}Libravatar{% endblock title %}
{% block content %}
<p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p>
<p>You are most likely looking for one of these pages:</p>
<ul>
{% if not user.is_authenticated %}
<li><a href="{% url django.contrib.auth.views.login %}">Login</a>{% if not disable_signup %} (or <a href="{% url libravatar.account.views.new %}">sign-up</a> for an account){% endif %}</li>
{% else %}
<li><a href="{% url libravatar.account.views.profile %}">View your profile</a></li>
{% endif %}
<li><a href="{% url libravatar.tools.views.check %}">Check your email address</a></li>
</ul>
<p>Did you know that Libravatar is released under the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a>? This means that as a user accessing the site remotely, you are entitled to receive the <a href=="https://code.launchpad.net/libravatar">complete source code</a> for the software. How cool is that!</p>
{% endblock content %}
| Check tool now available publicly. | Check tool now available publicly.
| HTML | agpl-3.0 | libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar,libravatar/libravatar | html | ## Code Before:
{% extends 'base.html' %}
{% block title %}Libravatar{% endblock title %}
{% block content %}
<p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p>
<p>You are most likely looking for one of these pages:</p>
<ul>
{% if not user.is_authenticated %}
<li><a href="{% url django.contrib.auth.views.login %}">Login</a>{% if not disable_signup %} (or <a href="{% url libravatar.account.views.new %}">sign-up</a> for an account){% endif %}</li>
{% else %}
<li><a href="{% url libravatar.account.views.profile %}">View your profile</a></li>
<li><a href="{% url libravatar.tools.views.check %}">Check your email address</a></li>
{% endif %}
</ul>
<p>Did you know that Libravatar is released under the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a>? This means that as a user accessing the site remotely, you are entitled to receive the <a href=="https://code.launchpad.net/libravatar">complete source code</a> for the software. How cool is that!</p>
{% endblock content %}
## Instruction:
Check tool now available publicly.
## Code After:
{% extends 'base.html' %}
{% block title %}Libravatar{% endblock title %}
{% block content %}
<p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p>
<p>You are most likely looking for one of these pages:</p>
<ul>
{% if not user.is_authenticated %}
<li><a href="{% url django.contrib.auth.views.login %}">Login</a>{% if not disable_signup %} (or <a href="{% url libravatar.account.views.new %}">sign-up</a> for an account){% endif %}</li>
{% else %}
<li><a href="{% url libravatar.account.views.profile %}">View your profile</a></li>
{% endif %}
<li><a href="{% url libravatar.tools.views.check %}">Check your email address</a></li>
</ul>
<p>Did you know that Libravatar is released under the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a>? This means that as a user accessing the site remotely, you are entitled to receive the <a href=="https://code.launchpad.net/libravatar">complete source code</a> for the software. How cool is that!</p>
{% endblock content %}
| {% extends 'base.html' %}
{% block title %}Libravatar{% endblock title %}
{% block content %}
<p>Sorry to disappoint you, but there's not much on the Libravatar homepage at the moment.</p>
<p>You are most likely looking for one of these pages:</p>
<ul>
{% if not user.is_authenticated %}
<li><a href="{% url django.contrib.auth.views.login %}">Login</a>{% if not disable_signup %} (or <a href="{% url libravatar.account.views.new %}">sign-up</a> for an account){% endif %}</li>
{% else %}
<li><a href="{% url libravatar.account.views.profile %}">View your profile</a></li>
+ {% endif %}
<li><a href="{% url libravatar.tools.views.check %}">Check your email address</a></li>
- {% endif %}
</ul>
<p>Did you know that Libravatar is released under the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License</a>? This means that as a user accessing the site remotely, you are entitled to receive the <a href=="https://code.launchpad.net/libravatar">complete source code</a> for the software. How cool is that!</p>
{% endblock content %} | 2 | 0.1 | 1 | 1 |
6cd2f4f1f2f4a4dca74fcfd6484278cc90e6f77a | tests/test_security_object.py | tests/test_security_object.py | from unittest import TestCase
from zipline.assets._securities import Security
class TestSecurityRichCmp(TestCase):
def test_lt(self):
self.assertTrue(Security(3) < Security(4))
self.assertFalse(Security(4) < Security(4))
self.assertFalse(Security(5) < Security(4))
def test_le(self):
self.assertTrue(Security(3) <= Security(4))
self.assertTrue(Security(4) <= Security(4))
self.assertFalse(Security(5) <= Security(4))
def test_eq(self):
self.assertFalse(Security(3) == Security(4))
self.assertTrue(Security(4) == Security(4))
self.assertFalse(Security(5) == Security(4))
def test_ge(self):
self.assertFalse(Security(3) >= Security(4))
self.assertTrue(Security(4) >= Security(4))
self.assertTrue(Security(5) >= Security(4))
def test_gt(self):
self.assertFalse(Security(3) > Security(4))
self.assertFalse(Security(4) > Security(4))
self.assertTrue(Security(5) > Security(4))
def test_type_mismatch(self):
self.assertIsNotNone(Security(3) < 'a')
self.assertIsNotNone('a' < Security(3))
| import sys
from unittest import TestCase
from zipline.assets._securities import Security
class TestSecurityRichCmp(TestCase):
def test_lt(self):
self.assertTrue(Security(3) < Security(4))
self.assertFalse(Security(4) < Security(4))
self.assertFalse(Security(5) < Security(4))
def test_le(self):
self.assertTrue(Security(3) <= Security(4))
self.assertTrue(Security(4) <= Security(4))
self.assertFalse(Security(5) <= Security(4))
def test_eq(self):
self.assertFalse(Security(3) == Security(4))
self.assertTrue(Security(4) == Security(4))
self.assertFalse(Security(5) == Security(4))
def test_ge(self):
self.assertFalse(Security(3) >= Security(4))
self.assertTrue(Security(4) >= Security(4))
self.assertTrue(Security(5) >= Security(4))
def test_gt(self):
self.assertFalse(Security(3) > Security(4))
self.assertFalse(Security(4) > Security(4))
self.assertTrue(Security(5) > Security(4))
def test_type_mismatch(self):
if sys.version_info.major < 3:
self.assertIsNotNone(Security(3) < 'a')
self.assertIsNotNone('a' < Security(3))
else:
with self.assertRaises(TypeError):
Security(3) < 'a'
with self.assertRaises(TypeError):
'a' < Security(3)
| Update Security class unit tests for Python3 compatibility | TEST: Update Security class unit tests for Python3 compatibility
| Python | apache-2.0 | sketchytechky/zipline,stkubr/zipline,wubr2000/zipline,michaeljohnbennett/zipline,jimgoo/zipline-fork,kmather73/zipline,morrisonwudi/zipline,cmorgan/zipline,keir-rex/zipline,grundgruen/zipline,umuzungu/zipline,zhoulingjun/zipline,jordancheah/zipline,florentchandelier/zipline,nborggren/zipline,joequant/zipline,ronalcc/zipline,ChinaQuants/zipline,ronalcc/zipline,florentchandelier/zipline,gwulfs/zipline,chrjxj/zipline,jordancheah/zipline,stkubr/zipline,enigmampc/catalyst,dmitriz/zipline,magne-max/zipline-ja,dkushner/zipline,semio/zipline,quantopian/zipline,otmaneJai/Zipline,bartosh/zipline,humdings/zipline,dkushner/zipline,Scapogo/zipline,michaeljohnbennett/zipline,dmitriz/zipline,gwulfs/zipline,otmaneJai/Zipline,StratsOn/zipline,iamkingmaker/zipline,humdings/zipline,iamkingmaker/zipline,magne-max/zipline-ja,joequant/zipline,enigmampc/catalyst,CDSFinance/zipline,zhoulingjun/zipline,YuepengGuo/zipline,AlirezaShahabi/zipline,euri10/zipline,aajtodd/zipline,umuzungu/zipline,AlirezaShahabi/zipline,DVegaCapital/zipline,semio/zipline,wilsonkichoi/zipline,sketchytechky/zipline,jimgoo/zipline-fork,chrjxj/zipline,nborggren/zipline,MonoCloud/zipline,morrisonwudi/zipline,alphaBenj/zipline,CDSFinance/zipline,kmather73/zipline,alphaBenj/zipline,StratsOn/zipline,bartosh/zipline,quantopian/zipline,grundgruen/zipline,cmorgan/zipline,aajtodd/zipline,wilsonkichoi/zipline,ChinaQuants/zipline,Scapogo/zipline,YuepengGuo/zipline,euri10/zipline,DVegaCapital/zipline,MonoCloud/zipline,wubr2000/zipline,keir-rex/zipline | python | ## Code Before:
from unittest import TestCase
from zipline.assets._securities import Security
class TestSecurityRichCmp(TestCase):
def test_lt(self):
self.assertTrue(Security(3) < Security(4))
self.assertFalse(Security(4) < Security(4))
self.assertFalse(Security(5) < Security(4))
def test_le(self):
self.assertTrue(Security(3) <= Security(4))
self.assertTrue(Security(4) <= Security(4))
self.assertFalse(Security(5) <= Security(4))
def test_eq(self):
self.assertFalse(Security(3) == Security(4))
self.assertTrue(Security(4) == Security(4))
self.assertFalse(Security(5) == Security(4))
def test_ge(self):
self.assertFalse(Security(3) >= Security(4))
self.assertTrue(Security(4) >= Security(4))
self.assertTrue(Security(5) >= Security(4))
def test_gt(self):
self.assertFalse(Security(3) > Security(4))
self.assertFalse(Security(4) > Security(4))
self.assertTrue(Security(5) > Security(4))
def test_type_mismatch(self):
self.assertIsNotNone(Security(3) < 'a')
self.assertIsNotNone('a' < Security(3))
## Instruction:
TEST: Update Security class unit tests for Python3 compatibility
## Code After:
import sys
from unittest import TestCase
from zipline.assets._securities import Security
class TestSecurityRichCmp(TestCase):
def test_lt(self):
self.assertTrue(Security(3) < Security(4))
self.assertFalse(Security(4) < Security(4))
self.assertFalse(Security(5) < Security(4))
def test_le(self):
self.assertTrue(Security(3) <= Security(4))
self.assertTrue(Security(4) <= Security(4))
self.assertFalse(Security(5) <= Security(4))
def test_eq(self):
self.assertFalse(Security(3) == Security(4))
self.assertTrue(Security(4) == Security(4))
self.assertFalse(Security(5) == Security(4))
def test_ge(self):
self.assertFalse(Security(3) >= Security(4))
self.assertTrue(Security(4) >= Security(4))
self.assertTrue(Security(5) >= Security(4))
def test_gt(self):
self.assertFalse(Security(3) > Security(4))
self.assertFalse(Security(4) > Security(4))
self.assertTrue(Security(5) > Security(4))
def test_type_mismatch(self):
if sys.version_info.major < 3:
self.assertIsNotNone(Security(3) < 'a')
self.assertIsNotNone('a' < Security(3))
else:
with self.assertRaises(TypeError):
Security(3) < 'a'
with self.assertRaises(TypeError):
'a' < Security(3)
| + import sys
from unittest import TestCase
from zipline.assets._securities import Security
class TestSecurityRichCmp(TestCase):
def test_lt(self):
self.assertTrue(Security(3) < Security(4))
self.assertFalse(Security(4) < Security(4))
self.assertFalse(Security(5) < Security(4))
def test_le(self):
self.assertTrue(Security(3) <= Security(4))
self.assertTrue(Security(4) <= Security(4))
self.assertFalse(Security(5) <= Security(4))
def test_eq(self):
self.assertFalse(Security(3) == Security(4))
self.assertTrue(Security(4) == Security(4))
self.assertFalse(Security(5) == Security(4))
def test_ge(self):
self.assertFalse(Security(3) >= Security(4))
self.assertTrue(Security(4) >= Security(4))
self.assertTrue(Security(5) >= Security(4))
def test_gt(self):
self.assertFalse(Security(3) > Security(4))
self.assertFalse(Security(4) > Security(4))
self.assertTrue(Security(5) > Security(4))
def test_type_mismatch(self):
+ if sys.version_info.major < 3:
- self.assertIsNotNone(Security(3) < 'a')
+ self.assertIsNotNone(Security(3) < 'a')
? ++++
- self.assertIsNotNone('a' < Security(3))
+ self.assertIsNotNone('a' < Security(3))
? ++++
+ else:
+ with self.assertRaises(TypeError):
+ Security(3) < 'a'
+ with self.assertRaises(TypeError):
+ 'a' < Security(3) | 11 | 0.333333 | 9 | 2 |
ea180a007c1a5bfaeb56e6b223610876b0619e63 | webmaster_verification/views.py | webmaster_verification/views.py | import logging
logger = logging.getLogger(__name__)
from django.http import Http404
from django.views.generic import TemplateView
import settings
class VerificationView(TemplateView):
"""
This simply adds the verification key to the view context and makes sure
we return a 404 if the key wasn't set for the provider
"""
def get_context_data(self, **kwargs):
context = super(VerificationView, self).get_context_data(**kwargs)
try:
context['%s_verification' % self.provider] = settings.WEBMASTER_VERIFICATION[self.provider]
except KeyError:
raise Http404
except AttributeError:
logger.info("WEBMASTER_VERIFICATION not defined in settings")
raise Http404
return context
class GoogleVerificationView(VerificationView):
template_name = 'webmaster_verification/google_verify_template.html'
provider = 'google'
class BingVerificationView(VerificationView):
template_name = 'webmaster_verification/bing_verify_template.xml'
provider = 'bing'
class MajesticVerificationView(VerificationView):
template_name = 'webmaster_verification/majestic_verify_template.txt'
provider = 'majestic'
| import logging
logger = logging.getLogger(__name__)
from django.http import Http404
from django.views.generic import TemplateView
import settings
class VerificationView(TemplateView):
"""
This simply adds the verification key to the view context and makes sure
we return a 404 if the key wasn't set for the provider
"""
def get_context_data(self, **kwargs):
context = super(VerificationView, self).get_context_data(**kwargs)
try:
context['%s_verification' % self.provider] = settings.WEBMASTER_VERIFICATION[self.provider]
except KeyError:
raise Http404
except AttributeError:
logger.info("WEBMASTER_VERIFICATION not defined in settings")
raise Http404
return context
class VerificationTextView(VerificationView):
"""
Return proper content type
"""
def render_to_response(self, context, **kwargs):
return super(VerificationTextView, self).render_to_response(
context,
content_type='text/plain',
**kwargs
)
class VerificationXMLView(VerificationView):
"""
Return proper content type
"""
def render_to_response(self, context, **kwargs):
return super(VerificationXMLView, self).render_to_response(
context,
content_type='text/xml',
**kwargs
)
class GoogleVerificationView(VerificationView):
template_name = 'webmaster_verification/google_verify_template.html'
provider = 'google'
class BingVerificationView(VerificationXMLView):
template_name = 'webmaster_verification/bing_verify_template.xml'
provider = 'bing'
class MajesticVerificationView(VerificationTextView):
template_name = 'webmaster_verification/majestic_verify_template.txt'
provider = 'majestic'
| Use proper content-type for all files | Use proper content-type for all files
| Python | bsd-3-clause | nkuttler/django-webmaster-verification,nkuttler/django-webmaster-verification | python | ## Code Before:
import logging
logger = logging.getLogger(__name__)
from django.http import Http404
from django.views.generic import TemplateView
import settings
class VerificationView(TemplateView):
"""
This simply adds the verification key to the view context and makes sure
we return a 404 if the key wasn't set for the provider
"""
def get_context_data(self, **kwargs):
context = super(VerificationView, self).get_context_data(**kwargs)
try:
context['%s_verification' % self.provider] = settings.WEBMASTER_VERIFICATION[self.provider]
except KeyError:
raise Http404
except AttributeError:
logger.info("WEBMASTER_VERIFICATION not defined in settings")
raise Http404
return context
class GoogleVerificationView(VerificationView):
template_name = 'webmaster_verification/google_verify_template.html'
provider = 'google'
class BingVerificationView(VerificationView):
template_name = 'webmaster_verification/bing_verify_template.xml'
provider = 'bing'
class MajesticVerificationView(VerificationView):
template_name = 'webmaster_verification/majestic_verify_template.txt'
provider = 'majestic'
## Instruction:
Use proper content-type for all files
## Code After:
import logging
logger = logging.getLogger(__name__)
from django.http import Http404
from django.views.generic import TemplateView
import settings
class VerificationView(TemplateView):
"""
This simply adds the verification key to the view context and makes sure
we return a 404 if the key wasn't set for the provider
"""
def get_context_data(self, **kwargs):
context = super(VerificationView, self).get_context_data(**kwargs)
try:
context['%s_verification' % self.provider] = settings.WEBMASTER_VERIFICATION[self.provider]
except KeyError:
raise Http404
except AttributeError:
logger.info("WEBMASTER_VERIFICATION not defined in settings")
raise Http404
return context
class VerificationTextView(VerificationView):
"""
Return proper content type
"""
def render_to_response(self, context, **kwargs):
return super(VerificationTextView, self).render_to_response(
context,
content_type='text/plain',
**kwargs
)
class VerificationXMLView(VerificationView):
"""
Return proper content type
"""
def render_to_response(self, context, **kwargs):
return super(VerificationXMLView, self).render_to_response(
context,
content_type='text/xml',
**kwargs
)
class GoogleVerificationView(VerificationView):
template_name = 'webmaster_verification/google_verify_template.html'
provider = 'google'
class BingVerificationView(VerificationXMLView):
template_name = 'webmaster_verification/bing_verify_template.xml'
provider = 'bing'
class MajesticVerificationView(VerificationTextView):
template_name = 'webmaster_verification/majestic_verify_template.txt'
provider = 'majestic'
| import logging
logger = logging.getLogger(__name__)
from django.http import Http404
from django.views.generic import TemplateView
import settings
class VerificationView(TemplateView):
"""
This simply adds the verification key to the view context and makes sure
we return a 404 if the key wasn't set for the provider
"""
def get_context_data(self, **kwargs):
context = super(VerificationView, self).get_context_data(**kwargs)
try:
context['%s_verification' % self.provider] = settings.WEBMASTER_VERIFICATION[self.provider]
except KeyError:
raise Http404
except AttributeError:
logger.info("WEBMASTER_VERIFICATION not defined in settings")
raise Http404
return context
+ class VerificationTextView(VerificationView):
+ """
+ Return proper content type
+ """
+ def render_to_response(self, context, **kwargs):
+ return super(VerificationTextView, self).render_to_response(
+ context,
+ content_type='text/plain',
+ **kwargs
+ )
+
+
+ class VerificationXMLView(VerificationView):
+ """
+ Return proper content type
+ """
+ def render_to_response(self, context, **kwargs):
+ return super(VerificationXMLView, self).render_to_response(
+ context,
+ content_type='text/xml',
+ **kwargs
+ )
+
class GoogleVerificationView(VerificationView):
template_name = 'webmaster_verification/google_verify_template.html'
provider = 'google'
- class BingVerificationView(VerificationView):
+ class BingVerificationView(VerificationXMLView):
? +++
template_name = 'webmaster_verification/bing_verify_template.xml'
provider = 'bing'
- class MajesticVerificationView(VerificationView):
+ class MajesticVerificationView(VerificationTextView):
? ++++
template_name = 'webmaster_verification/majestic_verify_template.txt'
provider = 'majestic' | 27 | 0.692308 | 25 | 2 |
454bcd3c6b943a127607d396f15791ee808c8e00 | mingle.srv/resolve.js | mingle.srv/resolve.js | var cadence = require('cadence')
var logger = require('prolific.logger').createLogger('mingle.srv')
var sprintf = require('sprintf-js').sprintf
module.exports = cadence(function (async, dns, name, format) {
async([function () {
dns.resolve(name, 'SRV', async())
}, function (error) {
logger.error('resolve.SRV', { stack: error.stack })
return [ async.break, [] ]
}], function (records) {
async.map(function (record) {
async([function () {
dns.resolve(record.name, 'A', async())
}, function (error) {
logger.error('resolve.A', { stack: error.stack, record: record })
return [ async.break, null ]
}], function (address) {
return [ sprintf(format, address, +record.port) ]
})
})(records)
}, function (discovered) {
return [ discovered ]
})
})
| var cadence = require('cadence')
var logger = require('prolific.logger').createLogger('mingle.srv')
var sprintf = require('sprintf-js').sprintf
module.exports = cadence(function (async, dns, name, format) {
async([function () {
dns.resolve(name, 'SRV', async())
}, function (error) {
logger.error('resolve.SRV', { stack: error.stack })
return [ async.break, [] ]
}], function (records) {
async.map(function (record) {
var block = async([function () {
dns.resolve(record.name, 'A', async())
}, function (error) {
logger.error('resolve.A', { stack: error.stack, record: record })
return [ block.break, null ]
}], function (address) {
return [ block.break, sprintf(format, address, +record.port) ]
})()
})(records)
}, function (discovered) {
return [ discovered ]
})
})
| Fix break caused by Cadence changes. | Fix break caused by Cadence changes.
| JavaScript | mit | bigeasy/mingle | javascript | ## Code Before:
var cadence = require('cadence')
var logger = require('prolific.logger').createLogger('mingle.srv')
var sprintf = require('sprintf-js').sprintf
module.exports = cadence(function (async, dns, name, format) {
async([function () {
dns.resolve(name, 'SRV', async())
}, function (error) {
logger.error('resolve.SRV', { stack: error.stack })
return [ async.break, [] ]
}], function (records) {
async.map(function (record) {
async([function () {
dns.resolve(record.name, 'A', async())
}, function (error) {
logger.error('resolve.A', { stack: error.stack, record: record })
return [ async.break, null ]
}], function (address) {
return [ sprintf(format, address, +record.port) ]
})
})(records)
}, function (discovered) {
return [ discovered ]
})
})
## Instruction:
Fix break caused by Cadence changes.
## Code After:
var cadence = require('cadence')
var logger = require('prolific.logger').createLogger('mingle.srv')
var sprintf = require('sprintf-js').sprintf
module.exports = cadence(function (async, dns, name, format) {
async([function () {
dns.resolve(name, 'SRV', async())
}, function (error) {
logger.error('resolve.SRV', { stack: error.stack })
return [ async.break, [] ]
}], function (records) {
async.map(function (record) {
var block = async([function () {
dns.resolve(record.name, 'A', async())
}, function (error) {
logger.error('resolve.A', { stack: error.stack, record: record })
return [ block.break, null ]
}], function (address) {
return [ block.break, sprintf(format, address, +record.port) ]
})()
})(records)
}, function (discovered) {
return [ discovered ]
})
})
| var cadence = require('cadence')
var logger = require('prolific.logger').createLogger('mingle.srv')
var sprintf = require('sprintf-js').sprintf
module.exports = cadence(function (async, dns, name, format) {
async([function () {
dns.resolve(name, 'SRV', async())
}, function (error) {
logger.error('resolve.SRV', { stack: error.stack })
return [ async.break, [] ]
}], function (records) {
async.map(function (record) {
- async([function () {
+ var block = async([function () {
? ++++++++++++
dns.resolve(record.name, 'A', async())
}, function (error) {
logger.error('resolve.A', { stack: error.stack, record: record })
- return [ async.break, null ]
? ^^^^
+ return [ block.break, null ]
? ^^^ +
}], function (address) {
- return [ sprintf(format, address, +record.port) ]
+ return [ block.break, sprintf(format, address, +record.port) ]
? +++++++++++++
- })
+ })()
? ++
})(records)
}, function (discovered) {
return [ discovered ]
})
}) | 8 | 0.32 | 4 | 4 |
09908c1a343d235171d36794c2e3d5868b4d1305 | Casks/truecrypt.rb | Casks/truecrypt.rb | class Truecrypt < Cask
url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg'
homepage 'http://truecrypt.org/'
version '7.2'
sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e'
install 'TrueCrypt 7.2.mpkg'
caveats do
files_in_usr_local
<<-EOS.undent
Warning: TrueCrypt IS NOT SECURE and the development was ended, see more:
http://truecrypt.sourceforge.net/
EOS
end
end
| class Truecrypt < Cask
url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg'
homepage 'http://truecrypt.org/'
version '7.2'
sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e'
install 'TrueCrypt 7.2.mpkg'
caveats do
files_in_usr_local
<<-EOS.undent
Warning: TrueCrypt IS NOT SECURE and the development was ended, see more:
http://truecrypt.sourceforge.net/
EOS
end
uninstall :pkgutil => 'org.TrueCryptFoundation.TrueCrypt'
end
| Add uninstall stanza for TrueCrypt | Add uninstall stanza for TrueCrypt
| Ruby | bsd-2-clause | markhuber/homebrew-cask,puffdad/homebrew-cask,leipert/homebrew-cask,sgnh/homebrew-cask,fwiesel/homebrew-cask,d/homebrew-cask,stephenwade/homebrew-cask,joshka/homebrew-cask,paour/homebrew-cask,AnastasiaSulyagina/homebrew-cask,fwiesel/homebrew-cask,christophermanning/homebrew-cask,jspahrsummers/homebrew-cask,haha1903/homebrew-cask,renard/homebrew-cask,cfillion/homebrew-cask,buo/homebrew-cask,mikem/homebrew-cask,KosherBacon/homebrew-cask,neil-ca-moore/homebrew-cask,mwean/homebrew-cask,squid314/homebrew-cask,mjdescy/homebrew-cask,claui/homebrew-cask,mwean/homebrew-cask,larseggert/homebrew-cask,githubutilities/homebrew-cask,chuanxd/homebrew-cask,bric3/homebrew-cask,freeslugs/homebrew-cask,unasuke/homebrew-cask,xyb/homebrew-cask,dunn/homebrew-cask,LaurentFough/homebrew-cask,joschi/homebrew-cask,sebcode/homebrew-cask,Whoaa512/homebrew-cask,jppelteret/homebrew-cask,MatzFan/homebrew-cask,xalep/homebrew-cask,adriweb/homebrew-cask,mAAdhaTTah/homebrew-cask,thehunmonkgroup/homebrew-cask,elseym/homebrew-cask,shoichiaizawa/homebrew-cask,athrunsun/homebrew-cask,buo/homebrew-cask,sanyer/homebrew-cask,toonetown/homebrew-cask,dwihn0r/homebrew-cask,remko/homebrew-cask,asbachb/homebrew-cask,Fedalto/homebrew-cask,ksylvan/homebrew-cask,neverfox/homebrew-cask,singingwolfboy/homebrew-cask,squid314/homebrew-cask,mchlrmrz/homebrew-cask,julionc/homebrew-cask,wizonesolutions/homebrew-cask,jacobbednarz/homebrew-cask,vin047/homebrew-cask,vigosan/homebrew-cask,0xadada/homebrew-cask,decrement/homebrew-cask,CameronGarrett/homebrew-cask,chrisfinazzo/homebrew-cask,scribblemaniac/homebrew-cask,jen20/homebrew-cask,FredLackeyOfficial/homebrew-cask,nrlquaker/homebrew-cask,ftiff/homebrew-cask,asbachb/homebrew-cask,wmorin/homebrew-cask,mjgardner/homebrew-cask,jellyfishcoder/homebrew-cask,qbmiller/homebrew-cask,dspeckhard/homebrew-cask,mikem/homebrew-cask,otaran/homebrew-cask,rubenerd/homebrew-cask,jalaziz/homebrew-cask,axodys/homebrew-cask,vmrob/homebrew-cask,aguynamedryan/homebrew-cask,slnovak/homebrew-cask,danielgomezrico/homebrew-cask,lvicentesanchez/homebrew-cask,dezon/homebrew-cask,dwkns/homebrew-cask,remko/homebrew-cask,lucasmezencio/homebrew-cask,dlackty/homebrew-cask,nivanchikov/homebrew-cask,renard/homebrew-cask,exherb/homebrew-cask,stevehedrick/homebrew-cask,kesara/homebrew-cask,pablote/homebrew-cask,xcezx/homebrew-cask,colindunn/homebrew-cask,Saklad5/homebrew-cask,anbotero/homebrew-cask,chrisRidgers/homebrew-cask,pgr0ss/homebrew-cask,kryhear/homebrew-cask,paulombcosta/homebrew-cask,shorshe/homebrew-cask,antogg/homebrew-cask,sirodoht/homebrew-cask,farmerchris/homebrew-cask,alloy/homebrew-cask,aktau/homebrew-cask,rcuza/homebrew-cask,ftiff/homebrew-cask,zeusdeux/homebrew-cask,zmwangx/homebrew-cask,carlmod/homebrew-cask,kongslund/homebrew-cask,Cottser/homebrew-cask,sanyer/homebrew-cask,coeligena/homebrew-customized,chuanxd/homebrew-cask,bdhess/homebrew-cask,rhendric/homebrew-cask,rickychilcott/homebrew-cask,crmne/homebrew-cask,seanzxx/homebrew-cask,petmoo/homebrew-cask,diogodamiani/homebrew-cask,dictcp/homebrew-cask,cblecker/homebrew-cask,franklouwers/homebrew-cask,yutarody/homebrew-cask,kesara/homebrew-cask,MisumiRize/homebrew-cask,jpodlech/homebrew-cask,ksylvan/homebrew-cask,n0ts/homebrew-cask,catap/homebrew-cask,ohammersmith/homebrew-cask,faun/homebrew-cask,tjnycum/homebrew-cask,iAmGhost/homebrew-cask,johndbritton/homebrew-cask,skyyuan/homebrew-cask,pinut/homebrew-cask,lauantai/homebrew-cask,dcondrey/homebrew-cask,claui/homebrew-cask,ywfwj2008/homebrew-cask,larseggert/homebrew-cask,kevyau/homebrew-cask,FinalDes/homebrew-cask,codeurge/homebrew-cask,xyb/homebrew-cask,Gasol/homebrew-cask,wolflee/homebrew-cask,dezon/homebrew-cask,devmynd/homebrew-cask,ingorichter/homebrew-cask,mazehall/homebrew-cask,gmkey/homebrew-cask,jayshao/homebrew-cask,tedski/homebrew-cask,taherio/homebrew-cask,elyscape/homebrew-cask,stephenwade/homebrew-cask,retbrown/homebrew-cask,tyage/homebrew-cask,miku/homebrew-cask,rhendric/homebrew-cask,bric3/homebrew-cask,fharbe/homebrew-cask,JacopKane/homebrew-cask,shishi/homebrew-cask,jtriley/homebrew-cask,shanonvl/homebrew-cask,optikfluffel/homebrew-cask,puffdad/homebrew-cask,carlmod/homebrew-cask,stevehedrick/homebrew-cask,jeroenj/homebrew-cask,jtriley/homebrew-cask,lalyos/homebrew-cask,phpwutz/homebrew-cask,prime8/homebrew-cask,tangestani/homebrew-cask,sgnh/homebrew-cask,jaredsampson/homebrew-cask,tedski/homebrew-cask,scw/homebrew-cask,sysbot/homebrew-cask,jiashuw/homebrew-cask,bendoerr/homebrew-cask,jayshao/homebrew-cask,hvisage/homebrew-cask,n8henrie/homebrew-cask,ahundt/homebrew-cask,bosr/homebrew-cask,kirikiriyamama/homebrew-cask,githubutilities/homebrew-cask,AndreTheHunter/homebrew-cask,gwaldo/homebrew-cask,adelinofaria/homebrew-cask,howie/homebrew-cask,timsutton/homebrew-cask,johndbritton/homebrew-cask,af/homebrew-cask,ddm/homebrew-cask,13k/homebrew-cask,lieuwex/homebrew-cask,ksato9700/homebrew-cask,askl56/homebrew-cask,gord1anknot/homebrew-cask,vuquoctuan/homebrew-cask,hackhandslabs/homebrew-cask,alloy/homebrew-cask,dictcp/homebrew-cask,artdevjs/homebrew-cask,michelegera/homebrew-cask,robbiethegeek/homebrew-cask,danielbayley/homebrew-cask,dlackty/homebrew-cask,BahtiyarB/homebrew-cask,danielbayley/homebrew-cask,jaredsampson/homebrew-cask,tan9/homebrew-cask,segiddins/homebrew-cask,winkelsdorf/homebrew-cask,ldong/homebrew-cask,flada-auxv/homebrew-cask,fanquake/homebrew-cask,Philosoft/homebrew-cask,ayohrling/homebrew-cask,xiongchiamiov/homebrew-cask,gibsjose/homebrew-cask,pkq/homebrew-cask,Hywan/homebrew-cask,Ketouem/homebrew-cask,brianshumate/homebrew-cask,cclauss/homebrew-cask,samnung/homebrew-cask,paour/homebrew-cask,petmoo/homebrew-cask,rkJun/homebrew-cask,lolgear/homebrew-cask,jconley/homebrew-cask,alebcay/homebrew-cask,asins/homebrew-cask,markthetech/homebrew-cask,Gasol/homebrew-cask,rickychilcott/homebrew-cask,shoichiaizawa/homebrew-cask,ldong/homebrew-cask,lolgear/homebrew-cask,zmwangx/homebrew-cask,nanoxd/homebrew-cask,ponychicken/homebrew-customcask,frapposelli/homebrew-cask,jhowtan/homebrew-cask,ahvigil/homebrew-cask,syscrusher/homebrew-cask,mhubig/homebrew-cask,arronmabrey/homebrew-cask,haha1903/homebrew-cask,nelsonjchen/homebrew-cask,FredLackeyOfficial/homebrew-cask,muan/homebrew-cask,tangestani/homebrew-cask,kteru/homebrew-cask,JikkuJose/homebrew-cask,chino/homebrew-cask,hanxue/caskroom,Ngrd/homebrew-cask,wickedsp1d3r/homebrew-cask,tsparber/homebrew-cask,lcasey001/homebrew-cask,fly19890211/homebrew-cask,hristozov/homebrew-cask,Ibuprofen/homebrew-cask,kronicd/homebrew-cask,cohei/homebrew-cask,akiomik/homebrew-cask,tmoreira2020/homebrew,mariusbutuc/homebrew-cask,jgarber623/homebrew-cask,lcasey001/homebrew-cask,jeanregisser/homebrew-cask,kuno/homebrew-cask,inz/homebrew-cask,kTitan/homebrew-cask,johnste/homebrew-cask,valepert/homebrew-cask,enriclluelles/homebrew-cask,jpmat296/homebrew-cask,shishi/homebrew-cask,rajiv/homebrew-cask,victorpopkov/homebrew-cask,jbeagley52/homebrew-cask,sirodoht/homebrew-cask,moimikey/homebrew-cask,wolflee/homebrew-cask,deiga/homebrew-cask,kievechua/homebrew-cask,sosedoff/homebrew-cask,3van/homebrew-cask,cfillion/homebrew-cask,stephenwade/homebrew-cask,samshadwell/homebrew-cask,L2G/homebrew-cask,cliffcotino/homebrew-cask,jgarber623/homebrew-cask,mokagio/homebrew-cask,hellosky806/homebrew-cask,doits/homebrew-cask,jacobdam/homebrew-cask,antogg/homebrew-cask,vuquoctuan/homebrew-cask,mishari/homebrew-cask,otzy007/homebrew-cask,seanzxx/homebrew-cask,bkono/homebrew-cask,qnm/homebrew-cask,ptb/homebrew-cask,elnappo/homebrew-cask,kingthorin/homebrew-cask,RJHsiao/homebrew-cask,gabrielizaias/homebrew-cask,gord1anknot/homebrew-cask,nathansgreen/homebrew-cask,giannitm/homebrew-cask,sjackman/homebrew-cask,fkrone/homebrew-cask,gustavoavellar/homebrew-cask,nathanielvarona/homebrew-cask,kesara/homebrew-cask,delphinus35/homebrew-cask,theoriginalgri/homebrew-cask,caskroom/homebrew-cask,phpwutz/homebrew-cask,gwaldo/homebrew-cask,tarwich/homebrew-cask,rogeriopradoj/homebrew-cask,asins/homebrew-cask,riyad/homebrew-cask,qbmiller/homebrew-cask,guerrero/homebrew-cask,m3nu/homebrew-cask,Saklad5/homebrew-cask,stonehippo/homebrew-cask,nightscape/homebrew-cask,huanzhang/homebrew-cask,skyyuan/homebrew-cask,johntrandall/homebrew-cask,0rax/homebrew-cask,ianyh/homebrew-cask,mattfelsen/homebrew-cask,ky0615/homebrew-cask-1,crzrcn/homebrew-cask,royalwang/homebrew-cask,bdhess/homebrew-cask,MatzFan/homebrew-cask,boecko/homebrew-cask,gyugyu/homebrew-cask,linc01n/homebrew-cask,adrianchia/homebrew-cask,claui/homebrew-cask,jeroenseegers/homebrew-cask,jmeridth/homebrew-cask,shonjir/homebrew-cask,miguelfrde/homebrew-cask,pkq/homebrew-cask,santoshsahoo/homebrew-cask,catap/homebrew-cask,mfpierre/homebrew-cask,thomanq/homebrew-cask,joaoponceleao/homebrew-cask,forevergenin/homebrew-cask,sohtsuka/homebrew-cask,diogodamiani/homebrew-cask,kei-yamazaki/homebrew-cask,SentinelWarren/homebrew-cask,taherio/homebrew-cask,feigaochn/homebrew-cask,scribblemaniac/homebrew-cask,kassi/homebrew-cask,hovancik/homebrew-cask,genewoo/homebrew-cask,joschi/homebrew-cask,wastrachan/homebrew-cask,jrwesolo/homebrew-cask,zeusdeux/homebrew-cask,MoOx/homebrew-cask,morganestes/homebrew-cask,yurikoles/homebrew-cask,atsuyim/homebrew-cask,sebcode/homebrew-cask,kongslund/homebrew-cask,JacopKane/homebrew-cask,nanoxd/homebrew-cask,skatsuta/homebrew-cask,englishm/homebrew-cask,aki77/homebrew-cask,esebastian/homebrew-cask,andyli/homebrew-cask,mgryszko/homebrew-cask,johan/homebrew-cask,cobyism/homebrew-cask,mhubig/homebrew-cask,a1russell/homebrew-cask,bcaceiro/homebrew-cask,miku/homebrew-cask,mjgardner/homebrew-cask,zerrot/homebrew-cask,gilesdring/homebrew-cask,djakarta-trap/homebrew-myCask,mishari/homebrew-cask,axodys/homebrew-cask,koenrh/homebrew-cask,samdoran/homebrew-cask,kuno/homebrew-cask,christer155/homebrew-cask,zchee/homebrew-cask,kkdd/homebrew-cask,ywfwj2008/homebrew-cask,tdsmith/homebrew-cask,jamesmlees/homebrew-cask,L2G/homebrew-cask,giannitm/homebrew-cask,joaocc/homebrew-cask,jpmat296/homebrew-cask,opsdev-ws/homebrew-cask,nathanielvarona/homebrew-cask,malob/homebrew-cask,boydj/homebrew-cask,esebastian/homebrew-cask,ebraminio/homebrew-cask,wickedsp1d3r/homebrew-cask,cprecioso/homebrew-cask,reitermarkus/homebrew-cask,gguillotte/homebrew-cask,nathanielvarona/homebrew-cask,MisumiRize/homebrew-cask,segiddins/homebrew-cask,neil-ca-moore/homebrew-cask,anbotero/homebrew-cask,lumaxis/homebrew-cask,rogeriopradoj/homebrew-cask,n0ts/homebrew-cask,nshemonsky/homebrew-cask,moonboots/homebrew-cask,julionc/homebrew-cask,tan9/homebrew-cask,BenjaminHCCarr/homebrew-cask,athrunsun/homebrew-cask,cobyism/homebrew-cask,ch3n2k/homebrew-cask,alexg0/homebrew-cask,napaxton/homebrew-cask,xakraz/homebrew-cask,miccal/homebrew-cask,pkq/homebrew-cask,mjdescy/homebrew-cask,nrlquaker/homebrew-cask,Fedalto/homebrew-cask,chadcatlett/caskroom-homebrew-cask,jiashuw/homebrew-cask,inta/homebrew-cask,tdsmith/homebrew-cask,andrewdisley/homebrew-cask,sosedoff/homebrew-cask,hyuna917/homebrew-cask,kevyau/homebrew-cask,epmatsw/homebrew-cask,RickWong/homebrew-cask,bchatard/homebrew-cask,pacav69/homebrew-cask,drostron/homebrew-cask,lvicentesanchez/homebrew-cask,djmonta/homebrew-cask,rkJun/homebrew-cask,ninjahoahong/homebrew-cask,ohammersmith/homebrew-cask,sohtsuka/homebrew-cask,a1russell/homebrew-cask,ashishb/homebrew-cask,Bombenleger/homebrew-cask,dictcp/homebrew-cask,yumitsu/homebrew-cask,samdoran/homebrew-cask,morganestes/homebrew-cask,gregkare/homebrew-cask,dlovitch/homebrew-cask,scottsuch/homebrew-cask,reitermarkus/homebrew-cask,wayou/homebrew-cask,casidiablo/homebrew-cask,hvisage/homebrew-cask,jalaziz/homebrew-cask,frapposelli/homebrew-cask,mrmachine/homebrew-cask,reitermarkus/homebrew-cask,mauricerkelly/homebrew-cask,zchee/homebrew-cask,lieuwex/homebrew-cask,coeligena/homebrew-customized,nshemonsky/homebrew-cask,hakamadare/homebrew-cask,ptb/homebrew-cask,cohei/homebrew-cask,bgandon/homebrew-cask,scottsuch/homebrew-cask,MicTech/homebrew-cask,schneidmaster/homebrew-cask,wuman/homebrew-cask,feniix/homebrew-cask,bkono/homebrew-cask,mazehall/homebrew-cask,jawshooah/homebrew-cask,imgarylai/homebrew-cask,theoriginalgri/homebrew-cask,AdamCmiel/homebrew-cask,vigosan/homebrew-cask,fazo96/homebrew-cask,zhuzihhhh/homebrew-cask,SentinelWarren/homebrew-cask,qnm/homebrew-cask,nickpellant/homebrew-cask,helloIAmPau/homebrew-cask,andrewschleifer/homebrew-cask,perfide/homebrew-cask,tmoreira2020/homebrew,hanxue/caskroom,johan/homebrew-cask,mindriot101/homebrew-cask,prime8/homebrew-cask,troyxmccall/homebrew-cask,opsdev-ws/homebrew-cask,blogabe/homebrew-cask,dvdoliveira/homebrew-cask,iamso/homebrew-cask,nicolas-brousse/homebrew-cask,reelsense/homebrew-cask,moimikey/homebrew-cask,jeroenseegers/homebrew-cask,0xadada/homebrew-cask,y00rb/homebrew-cask,nicolas-brousse/homebrew-cask,mfpierre/homebrew-cask,yurikoles/homebrew-cask,afh/homebrew-cask,gerrymiller/homebrew-cask,dvdoliveira/homebrew-cask,dwkns/homebrew-cask,skatsuta/homebrew-cask,blainesch/homebrew-cask,guerrero/homebrew-cask,ponychicken/homebrew-customcask,psibre/homebrew-cask,lifepillar/homebrew-cask,greg5green/homebrew-cask,chrisfinazzo/homebrew-cask,dieterdemeyer/homebrew-cask,Dremora/homebrew-cask,inta/homebrew-cask,bric3/homebrew-cask,hristozov/homebrew-cask,robbiethegeek/homebrew-cask,andersonba/homebrew-cask,MichaelPei/homebrew-cask,wmorin/homebrew-cask,donbobka/homebrew-cask,djmonta/homebrew-cask,moogar0880/homebrew-cask,delphinus35/homebrew-cask,bgandon/homebrew-cask,bcomnes/homebrew-cask,sanchezm/homebrew-cask,xakraz/homebrew-cask,slack4u/homebrew-cask,illusionfield/homebrew-cask,gmkey/homebrew-cask,BenjaminHCCarr/homebrew-cask,mlocher/homebrew-cask,optikfluffel/homebrew-cask,sysbot/homebrew-cask,tonyseek/homebrew-cask,jedahan/homebrew-cask,sscotth/homebrew-cask,kievechua/homebrew-cask,SamiHiltunen/homebrew-cask,adrianchia/homebrew-cask,andyshinn/homebrew-cask,hanxue/caskroom,gyugyu/homebrew-cask,renaudguerin/homebrew-cask,nysthee/homebrew-cask,joshka/homebrew-cask,gilesdring/homebrew-cask,flaviocamilo/homebrew-cask,janlugt/homebrew-cask,bsiddiqui/homebrew-cask,chino/homebrew-cask,optikfluffel/homebrew-cask,royalwang/homebrew-cask,JacopKane/homebrew-cask,uetchy/homebrew-cask,gyndav/homebrew-cask,bosr/homebrew-cask,andyli/homebrew-cask,bchatard/homebrew-cask,zorosteven/homebrew-cask,norio-nomura/homebrew-cask,scribblemaniac/homebrew-cask,ianyh/homebrew-cask,tranc99/homebrew-cask,jawshooah/homebrew-cask,gustavoavellar/homebrew-cask,nightscape/homebrew-cask,KosherBacon/homebrew-cask,kostasdizas/homebrew-cask,andrewdisley/homebrew-cask,helloIAmPau/homebrew-cask,mjgardner/homebrew-cask,gabrielizaias/homebrew-cask,BenjaminHCCarr/homebrew-cask,jeanregisser/homebrew-cask,JoelLarson/homebrew-cask,jconley/homebrew-cask,freeslugs/homebrew-cask,timsutton/homebrew-cask,dustinblackman/homebrew-cask,paulbreslin/homebrew-cask,thomanq/homebrew-cask,kingthorin/homebrew-cask,mchlrmrz/homebrew-cask,unasuke/homebrew-cask,AdamCmiel/homebrew-cask,johntrandall/homebrew-cask,patresi/homebrew-cask,jen20/homebrew-cask,boydj/homebrew-cask,miguelfrde/homebrew-cask,gurghet/homebrew-cask,danielgomezrico/homebrew-cask,atsuyim/homebrew-cask,tyage/homebrew-cask,mathbunnyru/homebrew-cask,Hywan/homebrew-cask,mrmachine/homebrew-cask,devmynd/homebrew-cask,lifepillar/homebrew-cask,samnung/homebrew-cask,dustinblackman/homebrew-cask,illusionfield/homebrew-cask,andersonba/homebrew-cask,yuhki50/homebrew-cask,kronicd/homebrew-cask,otzy007/homebrew-cask,dunn/homebrew-cask,winkelsdorf/homebrew-cask,klane/homebrew-cask,feniix/homebrew-cask,astorije/homebrew-cask,thii/homebrew-cask,sachin21/homebrew-cask,maxnordlund/homebrew-cask,ericbn/homebrew-cask,psibre/homebrew-cask,aktau/homebrew-cask,dwihn0r/homebrew-cask,usami-k/homebrew-cask,coeligena/homebrew-customized,seanorama/homebrew-cask,mariusbutuc/homebrew-cask,RJHsiao/homebrew-cask,ch3n2k/homebrew-cask,tangestani/homebrew-cask,johnste/homebrew-cask,m3nu/homebrew-cask,albertico/homebrew-cask,fly19890211/homebrew-cask,sachin21/homebrew-cask,wesen/homebrew-cask,Labutin/homebrew-cask,joschi/homebrew-cask,mindriot101/homebrew-cask,nathancahill/homebrew-cask,decrement/homebrew-cask,pablote/homebrew-cask,stevenmaguire/homebrew-cask,hackhandslabs/homebrew-cask,alexg0/homebrew-cask,spruceb/homebrew-cask,Philosoft/homebrew-cask,casidiablo/homebrew-cask,mokagio/homebrew-cask,mauricerkelly/homebrew-cask,mahori/homebrew-cask,jacobdam/homebrew-cask,tjnycum/homebrew-cask,a-x-/homebrew-cask,onlynone/homebrew-cask,cprecioso/homebrew-cask,franklouwers/homebrew-cask,napaxton/homebrew-cask,rajiv/homebrew-cask,ebraminio/homebrew-cask,Amorymeltzer/homebrew-cask,tjnycum/homebrew-cask,gguillotte/homebrew-cask,boecko/homebrew-cask,amatos/homebrew-cask,retbrown/homebrew-cask,gerrypower/homebrew-cask,jacobbednarz/homebrew-cask,6uclz1/homebrew-cask,mgryszko/homebrew-cask,xcezx/homebrew-cask,astorije/homebrew-cask,jspahrsummers/homebrew-cask,singingwolfboy/homebrew-cask,slack4u/homebrew-cask,MerelyAPseudonym/homebrew-cask,mahori/homebrew-cask,Nitecon/homebrew-cask,perfide/homebrew-cask,d/homebrew-cask,deanmorin/homebrew-cask,j13k/homebrew-cask,My2ndAngelic/homebrew-cask,esebastian/homebrew-cask,maxnordlund/homebrew-cask,malford/homebrew-cask,wmorin/homebrew-cask,arranubels/homebrew-cask,JosephViolago/homebrew-cask,fazo96/homebrew-cask,kkdd/homebrew-cask,morsdyce/homebrew-cask,kiliankoe/homebrew-cask,Whoaa512/homebrew-cask,otaran/homebrew-cask,elseym/homebrew-cask,daften/homebrew-cask,greg5green/homebrew-cask,imgarylai/homebrew-cask,fanquake/homebrew-cask,wayou/homebrew-cask,blogabe/homebrew-cask,moimikey/homebrew-cask,stigkj/homebrew-caskroom-cask,LaurentFough/homebrew-cask,donbobka/homebrew-cask,arronmabrey/homebrew-cask,cblecker/homebrew-cask,flada-auxv/homebrew-cask,My2ndAngelic/homebrew-cask,ashishb/homebrew-cask,yumitsu/homebrew-cask,norio-nomura/homebrew-cask,3van/homebrew-cask,hswong3i/homebrew-cask,vitorgalvao/homebrew-cask,toonetown/homebrew-cask,malob/homebrew-cask,englishm/homebrew-cask,a-x-/homebrew-cask,alebcay/homebrew-cask,retrography/homebrew-cask,thii/homebrew-cask,koenrh/homebrew-cask,Labutin/homebrew-cask,christer155/homebrew-cask,Nitecon/homebrew-cask,wizonesolutions/homebrew-cask,afdnlw/homebrew-cask,cedwardsmedia/homebrew-cask,gyndav/homebrew-cask,wastrachan/homebrew-cask,dieterdemeyer/homebrew-cask,hakamadare/homebrew-cask,colindean/homebrew-cask,deiga/homebrew-cask,Bombenleger/homebrew-cask,afh/homebrew-cask,genewoo/homebrew-cask,coneman/homebrew-cask,FranklinChen/homebrew-cask,wKovacs64/homebrew-cask,leonmachadowilcox/homebrew-cask,tsparber/homebrew-cask,okket/homebrew-cask,doits/homebrew-cask,lukasbestle/homebrew-cask,elnappo/homebrew-cask,epmatsw/homebrew-cask,pgr0ss/homebrew-cask,cblecker/homebrew-cask,uetchy/homebrew-cask,uetchy/homebrew-cask,sparrc/homebrew-cask,pinut/homebrew-cask,codeurge/homebrew-cask,nickpellant/homebrew-cask,dspeckhard/homebrew-cask,onlynone/homebrew-cask,retrography/homebrew-cask,barravi/homebrew-cask,jrwesolo/homebrew-cask,gregkare/homebrew-cask,Keloran/homebrew-cask,tjt263/homebrew-cask,xiongchiamiov/homebrew-cask,jasmas/homebrew-cask,underyx/homebrew-cask,faun/homebrew-cask,yurikoles/homebrew-cask,mwek/homebrew-cask,seanorama/homebrew-cask,jangalinski/homebrew-cask,cedwardsmedia/homebrew-cask,corbt/homebrew-cask,kiliankoe/homebrew-cask,chrisfinazzo/homebrew-cask,scw/homebrew-cask,bcaceiro/homebrew-cask,epardee/homebrew-cask,jhowtan/homebrew-cask,AnastasiaSulyagina/homebrew-cask,klane/homebrew-cask,supriyantomaftuh/homebrew-cask,Cottser/homebrew-cask,diguage/homebrew-cask,jedahan/homebrew-cask,xtian/homebrew-cask,ericbn/homebrew-cask,stevenmaguire/homebrew-cask,artdevjs/homebrew-cask,williamboman/homebrew-cask,Keloran/homebrew-cask,AndreTheHunter/homebrew-cask,miccal/homebrew-cask,Ngrd/homebrew-cask,janlugt/homebrew-cask,paulbreslin/homebrew-cask,okket/homebrew-cask,xtian/homebrew-cask,mathbunnyru/homebrew-cask,sparrc/homebrew-cask,barravi/homebrew-cask,mahori/homebrew-cask,vitorgalvao/homebrew-cask,underyx/homebrew-cask,kryhear/homebrew-cask,xight/homebrew-cask,jangalinski/homebrew-cask,albertico/homebrew-cask,singingwolfboy/homebrew-cask,enriclluelles/homebrew-cask,alebcay/homebrew-cask,garborg/homebrew-cask,yutarody/homebrew-cask,BahtiyarB/homebrew-cask,nathancahill/homebrew-cask,dcondrey/homebrew-cask,JikkuJose/homebrew-cask,mathbunnyru/homebrew-cask,markhuber/homebrew-cask,mwilmer/homebrew-cask,FranklinChen/homebrew-cask,blogabe/homebrew-cask,mwek/homebrew-cask,jppelteret/homebrew-cask,guylabs/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,a1russell/homebrew-cask,leipert/homebrew-cask,ajbw/homebrew-cask,linc01n/homebrew-cask,patresi/homebrew-cask,Ephemera/homebrew-cask,santoshsahoo/homebrew-cask,wesen/homebrew-cask,brianshumate/homebrew-cask,ajbw/homebrew-cask,forevergenin/homebrew-cask,nathansgreen/homebrew-cask,wKovacs64/homebrew-cask,ky0615/homebrew-cask-1,xight/homebrew-cask,epardee/homebrew-cask,crmne/homebrew-cask,zhuzihhhh/homebrew-cask,kamilboratynski/homebrew-cask,sscotth/homebrew-cask,MircoT/homebrew-cask,josa42/homebrew-cask,shonjir/homebrew-cask,antogg/homebrew-cask,elyscape/homebrew-cask,vmrob/homebrew-cask,rednoah/homebrew-cask,ctrevino/homebrew-cask,mattrobenolt/homebrew-cask,amatos/homebrew-cask,gibsjose/homebrew-cask,shanonvl/homebrew-cask,neverfox/homebrew-cask,kingthorin/homebrew-cask,af/homebrew-cask,deizel/homebrew-cask,sanyer/homebrew-cask,JosephViolago/homebrew-cask,usami-k/homebrew-cask,mattrobenolt/homebrew-cask,kassi/homebrew-cask,deanmorin/homebrew-cask,Amorymeltzer/homebrew-cask,sanchezm/homebrew-cask,ctrevino/homebrew-cask,robertgzr/homebrew-cask,cliffcotino/homebrew-cask,mwilmer/homebrew-cask,thehunmonkgroup/homebrew-cask,neverfox/homebrew-cask,daften/homebrew-cask,Dremora/homebrew-cask,nrlquaker/homebrew-cask,diguage/homebrew-cask,drostron/homebrew-cask,wickles/homebrew-cask,dlovitch/homebrew-cask,reelsense/homebrew-cask,wickles/homebrew-cask,exherb/homebrew-cask,johnjelinek/homebrew-cask,colindean/homebrew-cask,ericbn/homebrew-cask,jalaziz/homebrew-cask,tarwich/homebrew-cask,caskroom/homebrew-cask,bsiddiqui/homebrew-cask,mingzhi22/homebrew-cask,farmerchris/homebrew-cask,johnjelinek/homebrew-cask,JosephViolago/homebrew-cask,guylabs/homebrew-cask,goxberry/homebrew-cask,mkozjak/homebrew-cask,MircoT/homebrew-cask,xight/homebrew-cask,shonjir/homebrew-cask,askl56/homebrew-cask,csmith-palantir/homebrew-cask,ddm/homebrew-cask,feigaochn/homebrew-cask,andrewschleifer/homebrew-cask,tedbundyjr/homebrew-cask,MerelyAPseudonym/homebrew-cask,christophermanning/homebrew-cask,adriweb/homebrew-cask,m3nu/homebrew-cask,0rax/homebrew-cask,howie/homebrew-cask,shorshe/homebrew-cask,zerrot/homebrew-cask,ninjahoahong/homebrew-cask,gerrypower/homebrew-cask,morsdyce/homebrew-cask,lantrix/homebrew-cask,danielbayley/homebrew-cask,jonathanwiesel/homebrew-cask,syscrusher/homebrew-cask,markthetech/homebrew-cask,djakarta-trap/homebrew-myCask,Ephemera/homebrew-cask,iamso/homebrew-cask,kolomiichenko/homebrew-cask,bcomnes/homebrew-cask,ingorichter/homebrew-cask,ksato9700/homebrew-cask,tolbkni/homebrew-cask,MoOx/homebrew-cask,iAmGhost/homebrew-cask,alexg0/homebrew-cask,rubenerd/homebrew-cask,aguynamedryan/homebrew-cask,sjackman/homebrew-cask,akiomik/homebrew-cask,katoquro/homebrew-cask,SamiHiltunen/homebrew-cask,ayohrling/homebrew-cask,hyuna917/homebrew-cask,nysthee/homebrew-cask,pacav69/homebrew-cask,jonathanwiesel/homebrew-cask,MicTech/homebrew-cask,troyxmccall/homebrew-cask,julienlavergne/homebrew-cask,schneidmaster/homebrew-cask,huanzhang/homebrew-cask,samshadwell/homebrew-cask,lucasmezencio/homebrew-cask,mkozjak/homebrew-cask,riyad/homebrew-cask,mingzhi22/homebrew-cask,jmeridth/homebrew-cask,FinalDes/homebrew-cask,jeroenj/homebrew-cask,corbt/homebrew-cask,lukasbestle/homebrew-cask,jgarber623/homebrew-cask,goxberry/homebrew-cask,colindunn/homebrew-cask,tranc99/homebrew-cask,yurrriq/homebrew-cask,julienlavergne/homebrew-cask,flaviocamilo/homebrew-cask,valepert/homebrew-cask,joaocc/homebrew-cask,moogar0880/homebrew-cask,fharbe/homebrew-cask,CameronGarrett/homebrew-cask,michelegera/homebrew-cask,victorpopkov/homebrew-cask,rednoah/homebrew-cask,arranubels/homebrew-cask,paulombcosta/homebrew-cask,j13k/homebrew-cask,JoelLarson/homebrew-cask,scottsuch/homebrew-cask,vin047/homebrew-cask,mchlrmrz/homebrew-cask,kostasdizas/homebrew-cask,gyndav/homebrew-cask,RogerThiede/homebrew-cask,mattrobenolt/homebrew-cask,kteru/homebrew-cask,ahundt/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,xyb/homebrew-cask,renaudguerin/homebrew-cask,inz/homebrew-cask,miccal/homebrew-cask,tjt263/homebrew-cask,rogeriopradoj/homebrew-cask,kTitan/homebrew-cask,blainesch/homebrew-cask,kamilboratynski/homebrew-cask,jellyfishcoder/homebrew-cask,malob/homebrew-cask,imgarylai/homebrew-cask,winkelsdorf/homebrew-cask,hellosky806/homebrew-cask,crzrcn/homebrew-cask,Amorymeltzer/homebrew-cask,jbeagley52/homebrew-cask,deizel/homebrew-cask,rajiv/homebrew-cask,tonyseek/homebrew-cask,gerrymiller/homebrew-cask,kolomiichenko/homebrew-cask,Ketouem/homebrew-cask,RickWong/homebrew-cask,aki77/homebrew-cask,tedbundyjr/homebrew-cask,hovancik/homebrew-cask,adrianchia/homebrew-cask,fkrone/homebrew-cask,andyshinn/homebrew-cask,moonboots/homebrew-cask,wuman/homebrew-cask,malford/homebrew-cask,spruceb/homebrew-cask,josa42/homebrew-cask,shoichiaizawa/homebrew-cask,lukeadams/homebrew-cask,kpearson/homebrew-cask,kpearson/homebrew-cask,stigkj/homebrew-caskroom-cask,kei-yamazaki/homebrew-cask,MichaelPei/homebrew-cask,robertgzr/homebrew-cask,deiga/homebrew-cask,joaoponceleao/homebrew-cask,stonehippo/homebrew-cask,stonehippo/homebrew-cask,tolbkni/homebrew-cask,Ibuprofen/homebrew-cask,slnovak/homebrew-cask,cclauss/homebrew-cask,yurrriq/homebrew-cask,y00rb/homebrew-cask,lantrix/homebrew-cask,coneman/homebrew-cask,mlocher/homebrew-cask,zorosteven/homebrew-cask,yutarody/homebrew-cask,timsutton/homebrew-cask,lalyos/homebrew-cask,jamesmlees/homebrew-cask,hswong3i/homebrew-cask,nivanchikov/homebrew-cask,garborg/homebrew-cask,chrisRidgers/homebrew-cask,josa42/homebrew-cask,adelinofaria/homebrew-cask,bendoerr/homebrew-cask,afdnlw/homebrew-cask,paour/homebrew-cask,williamboman/homebrew-cask,13k/homebrew-cask,csmith-palantir/homebrew-cask,sscotth/homebrew-cask,ahvigil/homebrew-cask,lumaxis/homebrew-cask,jasmas/homebrew-cask,nelsonjchen/homebrew-cask,gurghet/homebrew-cask,andrewdisley/homebrew-cask,kirikiriyamama/homebrew-cask,xalep/homebrew-cask,lauantai/homebrew-cask,mattfelsen/homebrew-cask,lukeadams/homebrew-cask,rcuza/homebrew-cask,mAAdhaTTah/homebrew-cask,Ephemera/homebrew-cask,joshka/homebrew-cask,n8henrie/homebrew-cask,katoquro/homebrew-cask,cobyism/homebrew-cask,chadcatlett/caskroom-homebrew-cask,muan/homebrew-cask,yuhki50/homebrew-cask,julionc/homebrew-cask,leonmachadowilcox/homebrew-cask,supriyantomaftuh/homebrew-cask,jpodlech/homebrew-cask,6uclz1/homebrew-cask,RogerThiede/homebrew-cask | ruby | ## Code Before:
class Truecrypt < Cask
url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg'
homepage 'http://truecrypt.org/'
version '7.2'
sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e'
install 'TrueCrypt 7.2.mpkg'
caveats do
files_in_usr_local
<<-EOS.undent
Warning: TrueCrypt IS NOT SECURE and the development was ended, see more:
http://truecrypt.sourceforge.net/
EOS
end
end
## Instruction:
Add uninstall stanza for TrueCrypt
## Code After:
class Truecrypt < Cask
url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg'
homepage 'http://truecrypt.org/'
version '7.2'
sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e'
install 'TrueCrypt 7.2.mpkg'
caveats do
files_in_usr_local
<<-EOS.undent
Warning: TrueCrypt IS NOT SECURE and the development was ended, see more:
http://truecrypt.sourceforge.net/
EOS
end
uninstall :pkgutil => 'org.TrueCryptFoundation.TrueCrypt'
end
| class Truecrypt < Cask
url 'http://downloads.sourceforge.net/sourceforge/truecrypt/TrueCrypt-7.2-Mac-OS-X.dmg'
homepage 'http://truecrypt.org/'
version '7.2'
sha256 '01acf85be9b23a1c718193c40f3ecaaf6551695e0dc67c28345e560cca56c94e'
install 'TrueCrypt 7.2.mpkg'
caveats do
files_in_usr_local
<<-EOS.undent
Warning: TrueCrypt IS NOT SECURE and the development was ended, see more:
http://truecrypt.sourceforge.net/
EOS
end
+ uninstall :pkgutil => 'org.TrueCryptFoundation.TrueCrypt'
end | 1 | 0.071429 | 1 | 0 |
c072cb901965b82b1e0fbfcb85d74d471ebe4cad | test/Ulrichsg/Getopt/ArgumentTest.php | test/Ulrichsg/Getopt/ArgumentTest.php | <?php
namespace Ulrichsg\Getopt;
class ArgumentTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$argument1 = new Argument();
$argument2 = new Argument(10);
$this->assertFalse($argument1->hasDefaultValue());
$this->assertEquals(10, $argument2->getDefaultValue());
}
public function testSetDefaultValueNotScalar()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setDefaultValue(array());
}
public function testValidates()
{
$argument = new Argument();
$argument->setValidation(function($arg) use ($argument) {
$this->assertEquals('test', $arg);
return true;
});
$this->assertTrue($argument->hasValidation());
$this->assertTrue($argument->validates('test'));
}
public function testSetValidationUncallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation('');
}
public function testSetValidationInvalidCallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation(function() {});
}
} | <?php
namespace Ulrichsg\Getopt;
class ArgumentTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$argument1 = new Argument();
$argument2 = new Argument(10);
$this->assertFalse($argument1->hasDefaultValue());
$this->assertEquals(10, $argument2->getDefaultValue());
}
public function testSetDefaultValueNotScalar()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setDefaultValue(array());
}
public function testValidates()
{
$test = $this;
$argument = new Argument();
$argument->setValidation(function($arg) use ($test, $argument) {
$this->assertEquals('test', $arg);
return true;
});
$this->assertTrue($argument->hasValidation());
$this->assertTrue($argument->validates('test'));
}
public function testSetValidationUncallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation('');
}
public function testSetValidationInvalidCallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation(function() {});
}
} | Fix compatibility with PHP 5.3 | Fix compatibility with PHP 5.3
Using inside of anonymous functions is not supported in PHP 5.3
-> Injected reference to test object into anonymous function (testValidates)
| PHP | mit | mbaynton/getopt-php,xinc-develop/xinc-getopt,ulrichsg/getopt-php,getopt-php/getopt-php | php | ## Code Before:
<?php
namespace Ulrichsg\Getopt;
class ArgumentTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$argument1 = new Argument();
$argument2 = new Argument(10);
$this->assertFalse($argument1->hasDefaultValue());
$this->assertEquals(10, $argument2->getDefaultValue());
}
public function testSetDefaultValueNotScalar()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setDefaultValue(array());
}
public function testValidates()
{
$argument = new Argument();
$argument->setValidation(function($arg) use ($argument) {
$this->assertEquals('test', $arg);
return true;
});
$this->assertTrue($argument->hasValidation());
$this->assertTrue($argument->validates('test'));
}
public function testSetValidationUncallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation('');
}
public function testSetValidationInvalidCallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation(function() {});
}
}
## Instruction:
Fix compatibility with PHP 5.3
Using inside of anonymous functions is not supported in PHP 5.3
-> Injected reference to test object into anonymous function (testValidates)
## Code After:
<?php
namespace Ulrichsg\Getopt;
class ArgumentTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$argument1 = new Argument();
$argument2 = new Argument(10);
$this->assertFalse($argument1->hasDefaultValue());
$this->assertEquals(10, $argument2->getDefaultValue());
}
public function testSetDefaultValueNotScalar()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setDefaultValue(array());
}
public function testValidates()
{
$test = $this;
$argument = new Argument();
$argument->setValidation(function($arg) use ($test, $argument) {
$this->assertEquals('test', $arg);
return true;
});
$this->assertTrue($argument->hasValidation());
$this->assertTrue($argument->validates('test'));
}
public function testSetValidationUncallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation('');
}
public function testSetValidationInvalidCallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation(function() {});
}
} | <?php
namespace Ulrichsg\Getopt;
class ArgumentTest extends \PHPUnit_Framework_TestCase
{
public function testConstructor()
{
$argument1 = new Argument();
$argument2 = new Argument(10);
$this->assertFalse($argument1->hasDefaultValue());
$this->assertEquals(10, $argument2->getDefaultValue());
}
public function testSetDefaultValueNotScalar()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setDefaultValue(array());
}
public function testValidates()
{
+ $test = $this;
$argument = new Argument();
- $argument->setValidation(function($arg) use ($argument) {
+ $argument->setValidation(function($arg) use ($test, $argument) {
? +++++++
$this->assertEquals('test', $arg);
return true;
});
$this->assertTrue($argument->hasValidation());
$this->assertTrue($argument->validates('test'));
}
public function testSetValidationUncallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation('');
}
public function testSetValidationInvalidCallable()
{
$this->setExpectedException('InvalidArgumentException');
$argument = new Argument();
$argument->setValidation(function() {});
}
} | 3 | 0.065217 | 2 | 1 |
eccea853092cb1d42fdb98d439dd97674ad8a2b0 | pip-dep/requirements.txt | pip-dep/requirements.txt | openmined.threepio==0.2.0
aiortc==0.9.28
dill~=0.3.1
flask_socketio~=4.2.1
Flask~=1.1.1
git+https://github.com/facebookresearch/CrypTen.git#egg=crypten
importlib-resources~=1.5.0
lz4~=3.0.2
msgpack~=1.0.0
numpy~=1.18.1
phe~=1.4.0
Pillow~=6.2.2
psutil==5.7.0
requests~=2.22.0
RestrictedPython~=5.0
requests-toolbelt==0.9.1
scipy~=1.4.1
syft-proto~=0.5.0
tblib~=1.6.0
torchvision~=0.5.0
torch~=1.4.0
tornado==4.5.3
websocket_client~=0.57.0
websockets~=8.1.0
notebook==5.7.8
| openmined.threepio==0.2.0
aiortc==0.9.28
dill~=0.3.1
flask_socketio~=4.2.1
Flask~=1.1.1
git+https://github.com/facebookresearch/CrypTen.git@cdecc8de1514d7f36a5268a50c714caba5e57318#egg=crypten
importlib-resources~=1.5.0
lz4~=3.0.2
msgpack~=1.0.0
numpy~=1.18.1
phe~=1.4.0
Pillow~=6.2.2
psutil==5.7.0
requests~=2.22.0
RestrictedPython~=5.0
requests-toolbelt==0.9.1
scipy~=1.4.1
syft-proto~=0.5.0
tblib~=1.6.0
torchvision~=0.5.0
torch~=1.4.0
tornado==4.5.3
websocket_client~=0.57.0
websockets~=8.1.0
notebook==5.7.8
| Fix Crypten to latest commit | Fix Crypten to latest commit
| Text | apache-2.0 | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | text | ## Code Before:
openmined.threepio==0.2.0
aiortc==0.9.28
dill~=0.3.1
flask_socketio~=4.2.1
Flask~=1.1.1
git+https://github.com/facebookresearch/CrypTen.git#egg=crypten
importlib-resources~=1.5.0
lz4~=3.0.2
msgpack~=1.0.0
numpy~=1.18.1
phe~=1.4.0
Pillow~=6.2.2
psutil==5.7.0
requests~=2.22.0
RestrictedPython~=5.0
requests-toolbelt==0.9.1
scipy~=1.4.1
syft-proto~=0.5.0
tblib~=1.6.0
torchvision~=0.5.0
torch~=1.4.0
tornado==4.5.3
websocket_client~=0.57.0
websockets~=8.1.0
notebook==5.7.8
## Instruction:
Fix Crypten to latest commit
## Code After:
openmined.threepio==0.2.0
aiortc==0.9.28
dill~=0.3.1
flask_socketio~=4.2.1
Flask~=1.1.1
git+https://github.com/facebookresearch/CrypTen.git@cdecc8de1514d7f36a5268a50c714caba5e57318#egg=crypten
importlib-resources~=1.5.0
lz4~=3.0.2
msgpack~=1.0.0
numpy~=1.18.1
phe~=1.4.0
Pillow~=6.2.2
psutil==5.7.0
requests~=2.22.0
RestrictedPython~=5.0
requests-toolbelt==0.9.1
scipy~=1.4.1
syft-proto~=0.5.0
tblib~=1.6.0
torchvision~=0.5.0
torch~=1.4.0
tornado==4.5.3
websocket_client~=0.57.0
websockets~=8.1.0
notebook==5.7.8
| openmined.threepio==0.2.0
aiortc==0.9.28
dill~=0.3.1
flask_socketio~=4.2.1
Flask~=1.1.1
- git+https://github.com/facebookresearch/CrypTen.git#egg=crypten
+ git+https://github.com/facebookresearch/CrypTen.git@cdecc8de1514d7f36a5268a50c714caba5e57318#egg=crypten
? +++++++++++++++++++++++++++++++++++++++++
importlib-resources~=1.5.0
lz4~=3.0.2
msgpack~=1.0.0
numpy~=1.18.1
phe~=1.4.0
Pillow~=6.2.2
psutil==5.7.0
requests~=2.22.0
RestrictedPython~=5.0
requests-toolbelt==0.9.1
scipy~=1.4.1
syft-proto~=0.5.0
tblib~=1.6.0
torchvision~=0.5.0
torch~=1.4.0
tornado==4.5.3
websocket_client~=0.57.0
websockets~=8.1.0
notebook==5.7.8 | 2 | 0.08 | 1 | 1 |
cbee7a559e4f8870638a4d78798aa1a1dbd023ec | .travis.yml | .travis.yml | language: php
php:
- '7.0'
before_script:
- composer install
script:
- mkdir -p build/logs
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional
after_success:
- travis_retry php bin/coveralls | language: php
php:
- '7.0'
- '7.1'
- '7.2'
before_script:
- composer install
script:
- mkdir -p build/logs
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional
after_success:
- travis_retry php bin/coveralls | Add PHP 7.1 and 7.2 to Travis config | Add PHP 7.1 and 7.2 to Travis config
| YAML | mit | fintem/MQNotificationBundle | yaml | ## Code Before:
language: php
php:
- '7.0'
before_script:
- composer install
script:
- mkdir -p build/logs
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional
after_success:
- travis_retry php bin/coveralls
## Instruction:
Add PHP 7.1 and 7.2 to Travis config
## Code After:
language: php
php:
- '7.0'
- '7.1'
- '7.2'
before_script:
- composer install
script:
- mkdir -p build/logs
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional
after_success:
- travis_retry php bin/coveralls | language: php
php:
- '7.0'
+ - '7.1'
+ - '7.2'
before_script:
- composer install
script:
- mkdir -p build/logs
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Unit --coverage-clover build/logs/clover.xml
- vendor/bin/phpunit -c phpunit.xml.dist Tests/Functional
after_success:
- travis_retry php bin/coveralls | 2 | 0.181818 | 2 | 0 |
87bb8305e7c02abf26d2155e499afa25a17ae975 | lib/github_cli/commands/forks.rb | lib/github_cli/commands/forks.rb |
module GithubCLI
class Commands::Forks < Command
namespace :fork
desc 'list <user> <repo>', 'Lists forks'
long_desc <<-DESC
List repository forks
Parameters
sort - newest, oldest, watchers, default: newest
DESC
method_option :sort, :type => :string, :aliases => ["-s"],
:desc => 'Sort by newest, oldest or watchers',
:banner => '<sort-category>'
def list(user, repo)
if options[:sort]
options[:params]['sort'] = options[:sort]
end
Fork.all user, repo, options[:params], options[:format]
end
desc 'create <user> <repo>', 'Create a new fork'
method_option :org, :type => :string,
:desc => ' Organization login. The repository will be forked into this organization.'
def create(user, repo)
if options[:org]
options[:params]['org'] = options[:org]
end
Fork.create user, repo, options[:params], options[:format]
end
end # Forks
end # GithubCLI
|
module GithubCLI
class Commands::Forks < Command
namespace :fork
option :sort, :type => :string, :aliases => ["-s"],
:banner => '<sort-category>',
:desc => 'Sort by newest, oldest or watchers'
desc 'list <user> <repo>', 'Lists forks'
long_desc <<-DESC
List repository forks
Parameters
sort - newest, oldest, watchers, default: newest
DESC
def list(user, repo)
params = options[:params].dup
params['sort'] = options[:sort] if options[:sort]
Fork.all user, repo, params, options[:format]
end
option :org, :type => :string,
:desc => 'Organization login. The repository will be forked into this organization.'
desc 'create <user> <repo>', 'Create a new fork'
def create(user, repo)
params = options[:params].dup
params['organization'] = options[:org] if options[:org]
Fork.create user, repo, params, options[:format]
end
end # Forks
end # GithubCLI
| Update fork commands to take options. | Update fork commands to take options.
| Ruby | mit | pjump/github_cli,piotrmurach/github_cli,ecliptik/github_cli,peter-murach/github_cli,pjump/github_cli,ecliptik/github_cli,peter-murach/github_cli | ruby | ## Code Before:
module GithubCLI
class Commands::Forks < Command
namespace :fork
desc 'list <user> <repo>', 'Lists forks'
long_desc <<-DESC
List repository forks
Parameters
sort - newest, oldest, watchers, default: newest
DESC
method_option :sort, :type => :string, :aliases => ["-s"],
:desc => 'Sort by newest, oldest or watchers',
:banner => '<sort-category>'
def list(user, repo)
if options[:sort]
options[:params]['sort'] = options[:sort]
end
Fork.all user, repo, options[:params], options[:format]
end
desc 'create <user> <repo>', 'Create a new fork'
method_option :org, :type => :string,
:desc => ' Organization login. The repository will be forked into this organization.'
def create(user, repo)
if options[:org]
options[:params]['org'] = options[:org]
end
Fork.create user, repo, options[:params], options[:format]
end
end # Forks
end # GithubCLI
## Instruction:
Update fork commands to take options.
## Code After:
module GithubCLI
class Commands::Forks < Command
namespace :fork
option :sort, :type => :string, :aliases => ["-s"],
:banner => '<sort-category>',
:desc => 'Sort by newest, oldest or watchers'
desc 'list <user> <repo>', 'Lists forks'
long_desc <<-DESC
List repository forks
Parameters
sort - newest, oldest, watchers, default: newest
DESC
def list(user, repo)
params = options[:params].dup
params['sort'] = options[:sort] if options[:sort]
Fork.all user, repo, params, options[:format]
end
option :org, :type => :string,
:desc => 'Organization login. The repository will be forked into this organization.'
desc 'create <user> <repo>', 'Create a new fork'
def create(user, repo)
params = options[:params].dup
params['organization'] = options[:org] if options[:org]
Fork.create user, repo, params, options[:format]
end
end # Forks
end # GithubCLI
|
module GithubCLI
class Commands::Forks < Command
namespace :fork
+ option :sort, :type => :string, :aliases => ["-s"],
+ :banner => '<sort-category>',
+ :desc => 'Sort by newest, oldest or watchers'
desc 'list <user> <repo>', 'Lists forks'
long_desc <<-DESC
List repository forks
Parameters
sort - newest, oldest, watchers, default: newest
DESC
- method_option :sort, :type => :string, :aliases => ["-s"],
- :desc => 'Sort by newest, oldest or watchers',
- :banner => '<sort-category>'
def list(user, repo)
- if options[:sort]
- options[:params]['sort'] = options[:sort]
- end
+ params = options[:params].dup
+ params['sort'] = options[:sort] if options[:sort]
+
- Fork.all user, repo, options[:params], options[:format]
? --------- -
+ Fork.all user, repo, params, options[:format]
end
+ option :org, :type => :string,
+ :desc => 'Organization login. The repository will be forked into this organization.'
desc 'create <user> <repo>', 'Create a new fork'
- method_option :org, :type => :string,
- :desc => ' Organization login. The repository will be forked into this organization.'
def create(user, repo)
- if options[:org]
- options[:params]['org'] = options[:org]
- end
+ params = options[:params].dup
+ params['organization'] = options[:org] if options[:org]
+
- Fork.create user, repo, options[:params], options[:format]
? --------- -
+ Fork.create user, repo, params, options[:format]
end
end # Forks
end # GithubCLI | 26 | 0.722222 | 13 | 13 |
4f6297d67521fc3037066517681224b92ac0250b | static/fonts/stylesheet.css | static/fonts/stylesheet.css | @font-face {
font-family: 'Linux Biolinum';
src: url('linbiolinum_r.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: url('linbiolinum_rb.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: url('linbiolinum_ri.woff') format('woff');
font-weight: normal;
font-style: italic;
}
| @font-face {
font-family: 'Linux Biolinum';
src: local('Linux Biolinum') url('linbiolinum_r.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: local('Linux Biolinum') url('linbiolinum_rb.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: local('Linux Biolinum') url('linbiolinum_ri.woff') format('woff');
font-weight: normal;
font-style: italic;
}
| Use local fonts if available. | Use local fonts if available.
| CSS | agpl-3.0 | wffurr/osmium,copyliu/osmium,osmium-org/osmium,osmium-org/osmium,wffurr/osmium,copyliu/osmium,copyliu/osmium,osmium-org/osmium,wffurr/osmium,osmium-org/osmium,wffurr/osmium | css | ## Code Before:
@font-face {
font-family: 'Linux Biolinum';
src: url('linbiolinum_r.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: url('linbiolinum_rb.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: url('linbiolinum_ri.woff') format('woff');
font-weight: normal;
font-style: italic;
}
## Instruction:
Use local fonts if available.
## Code After:
@font-face {
font-family: 'Linux Biolinum';
src: local('Linux Biolinum') url('linbiolinum_r.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: local('Linux Biolinum') url('linbiolinum_rb.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
src: local('Linux Biolinum') url('linbiolinum_ri.woff') format('woff');
font-weight: normal;
font-style: italic;
}
| @font-face {
font-family: 'Linux Biolinum';
- src: url('linbiolinum_r.woff') format('woff');
+ src: local('Linux Biolinum') url('linbiolinum_r.woff') format('woff');
? ++++++++++++++++++++++++
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
- src: url('linbiolinum_rb.woff') format('woff');
+ src: local('Linux Biolinum') url('linbiolinum_rb.woff') format('woff');
? ++++++++++++++++++++++++
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Linux Biolinum';
- src: url('linbiolinum_ri.woff') format('woff');
+ src: local('Linux Biolinum') url('linbiolinum_ri.woff') format('woff');
? ++++++++++++++++++++++++
font-weight: normal;
font-style: italic;
} | 6 | 0.3 | 3 | 3 |
6e0682250f75c056722e4e176e2909b4a41b100d | MsgPackSerialization.podspec | MsgPackSerialization.podspec | Pod::Spec.new do |s|
s.name = 'MsgPackSerialization'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.'
s.homepage = 'https://github.com/mattt/MsgPackSerialization'
s.social_media_url = 'https://twitter.com/mattt'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => 'https://github.com/mattt/MsgPackSerialization.git', :tag => '0.0.1' }
s.source_files = 'MsgPackSerialization'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end
| Pod::Spec.new do |s|
s.name = 'MsgPackSerialization'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.'
s.homepage = 'https://github.com/mattt/MsgPackSerialization'
s.social_media_url = 'https://twitter.com/mattt'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => 'https://github.com/mattt/MsgPackSerialization.git', :tag => '0.0.1' }
s.source_files = 'MsgPackSerialization', 'MsgPackSerialization/msgpack_src/*.{c,h}', 'MsgPackSerialization/msgpack_src/msgpack/*.h'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end
| Add msgpack_src to pod source files. | Add msgpack_src to pod source files.
| Ruby | mit | mattt/MsgPackSerialization,mattt/MsgPackSerialization,mattt/MsgPackSerialization | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = 'MsgPackSerialization'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.'
s.homepage = 'https://github.com/mattt/MsgPackSerialization'
s.social_media_url = 'https://twitter.com/mattt'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => 'https://github.com/mattt/MsgPackSerialization.git', :tag => '0.0.1' }
s.source_files = 'MsgPackSerialization'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end
## Instruction:
Add msgpack_src to pod source files.
## Code After:
Pod::Spec.new do |s|
s.name = 'MsgPackSerialization'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.'
s.homepage = 'https://github.com/mattt/MsgPackSerialization'
s.social_media_url = 'https://twitter.com/mattt'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => 'https://github.com/mattt/MsgPackSerialization.git', :tag => '0.0.1' }
s.source_files = 'MsgPackSerialization', 'MsgPackSerialization/msgpack_src/*.{c,h}', 'MsgPackSerialization/msgpack_src/msgpack/*.h'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end
| Pod::Spec.new do |s|
s.name = 'MsgPackSerialization'
s.version = '0.0.1'
s.license = 'MIT'
s.summary = 'Encodes and decodes between Objective-C objects and MsgPack.'
s.homepage = 'https://github.com/mattt/MsgPackSerialization'
s.social_media_url = 'https://twitter.com/mattt'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => 'https://github.com/mattt/MsgPackSerialization.git', :tag => '0.0.1' }
- s.source_files = 'MsgPackSerialization'
+ s.source_files = 'MsgPackSerialization', 'MsgPackSerialization/msgpack_src/*.{c,h}', 'MsgPackSerialization/msgpack_src/msgpack/*.h'
s.requires_arc = true
s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
end | 2 | 0.133333 | 1 | 1 |
7ece85d1ab3d789ee1f91ce77d1934927339ae16 | react/frontpage/components/PromoBanner.scss | react/frontpage/components/PromoBanner.scss | // Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
cursor: pointer;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
}
.promoBanner:hover .overlay {
background-color: $link-image-active-color;
}
| // Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
cursor: pointer;
z-index: 1; // So overlay is on top of all other promo banner divs (need this to trigger :hover)
&:hover {
background-color: $link-image-active-color;
}
}
| Fix some hover weirdness in the promo banner | Fix some hover weirdness in the promo banner
| SCSS | agpl-3.0 | uclaradio/uclaradio,uclaradio/uclaradio,uclaradio/uclaradio | scss | ## Code Before:
// Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
cursor: pointer;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
}
.promoBanner:hover .overlay {
background-color: $link-image-active-color;
}
## Instruction:
Fix some hover weirdness in the promo banner
## Code After:
// Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
cursor: pointer;
z-index: 1; // So overlay is on top of all other promo banner divs (need this to trigger :hover)
&:hover {
background-color: $link-image-active-color;
}
}
| // Banner
@import '../common';
.promoBanner {
margin-bottom: 20pt;
- cursor: pointer;
}
.promoBanner .overlay {
width: 100%;
height: 100%;
top: 0;
left: 0;
position: absolute;
+ cursor: pointer;
+ z-index: 1; // So overlay is on top of all other promo banner divs (need this to trigger :hover)
+
+ &:hover {
+ background-color: $link-image-active-color;
+ }
}
-
- .promoBanner:hover .overlay {
- background-color: $link-image-active-color;
- } | 11 | 0.578947 | 6 | 5 |
3844d05d0d96f55076a1bad53784c3da4e81ce39 | recipes-kernel/linux/config/xilinx-base/bsp/xilinx/soc/linux-xlnx/drivers/zynqmp.cfg | recipes-kernel/linux/config/xilinx-base/bsp/xilinx/soc/linux-xlnx/drivers/zynqmp.cfg | CONFIG_XILINX_DMA_ENGINES=y
CONFIG_XILINX_DPDMA=y
CONFIG_XILINX_ZYNQMP_DMA=y
# NAND
CONFIG_MTD_NAND_ARASAN=y
# PCIe
CONFIG_PCI_MSI=y
CONFIG_PCI_XILINX_NWL=y
# CONFIG_ARM_MALI is not set
| CONFIG_DMADEVICES=y
CONFIG_XILINX_DMA_ENGINES=y
CONFIG_XILINX_DPDMA=y
CONFIG_XILINX_ZYNQMP_DMA=y
# NAND
CONFIG_MTD_NAND_ARASAN=y
# PCIe
CONFIG_PCI=y
CONFIG_PCI_MSI=y
CONFIG_PCI_XILINX_NWL=y
# CONFIG_ARM_MALI is not set
| Add dependent configs for linux-xlnx ZynqMP features | linux/config: Add dependent configs for linux-xlnx ZynqMP features
Enable config dependencies for DMA and PCI which are required for ZynqMP
drivers/features.
Signed-off-by: Nathan Rossi <2e8aa918660411855c6d44d5bb2da677aa033255@nathanrossi.com>
| INI | mit | nathanrossi/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx | ini | ## Code Before:
CONFIG_XILINX_DMA_ENGINES=y
CONFIG_XILINX_DPDMA=y
CONFIG_XILINX_ZYNQMP_DMA=y
# NAND
CONFIG_MTD_NAND_ARASAN=y
# PCIe
CONFIG_PCI_MSI=y
CONFIG_PCI_XILINX_NWL=y
# CONFIG_ARM_MALI is not set
## Instruction:
linux/config: Add dependent configs for linux-xlnx ZynqMP features
Enable config dependencies for DMA and PCI which are required for ZynqMP
drivers/features.
Signed-off-by: Nathan Rossi <2e8aa918660411855c6d44d5bb2da677aa033255@nathanrossi.com>
## Code After:
CONFIG_DMADEVICES=y
CONFIG_XILINX_DMA_ENGINES=y
CONFIG_XILINX_DPDMA=y
CONFIG_XILINX_ZYNQMP_DMA=y
# NAND
CONFIG_MTD_NAND_ARASAN=y
# PCIe
CONFIG_PCI=y
CONFIG_PCI_MSI=y
CONFIG_PCI_XILINX_NWL=y
# CONFIG_ARM_MALI is not set
| + CONFIG_DMADEVICES=y
CONFIG_XILINX_DMA_ENGINES=y
CONFIG_XILINX_DPDMA=y
CONFIG_XILINX_ZYNQMP_DMA=y
# NAND
CONFIG_MTD_NAND_ARASAN=y
# PCIe
+ CONFIG_PCI=y
CONFIG_PCI_MSI=y
CONFIG_PCI_XILINX_NWL=y
# CONFIG_ARM_MALI is not set | 2 | 0.166667 | 2 | 0 |
802e01cc032b38cff0faa08d0ede7ebf2be3f7c3 | docs/implementation/selectors.rst | docs/implementation/selectors.rst | .. _implementation-selectors:
Selector classes
================
:ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content through specified selector expressions and to extract links from anchor tags to be crawled through.
There are two selector types that are supported in Scrapple :
* XPath expressions
* CSS selector expressions
These selector types are implemented through the ``XpathSelector`` and ``CssSelector`` classes, respectively. These two classes use the ``Selector`` class as their super class.
In the super class, the URL of the web page to be loaded is validated - ensuring the schema has been specified, and that the URL is valid. A HTTP GET request is made to load the web page, and the HTML content of this fetched web page is used to generate the :ref:`element tree <concepts-structure>`. This is the element tree that will be parsed to extract the necessary content.
.. automodule:: scrapple.selectors.xpath
.. autoclass:: scrapple.selectors.xpath.XpathSelector
:members:
.. automodule:: scrapple.selectors.css
.. autoclass:: scrapple.selectors.css.CssSelector
:members:
| .. _implementation-selectors:
Selector classes
================
:ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content through specified selector expressions and to extract links from anchor tags to be crawled through.
There are two selector types that are supported in Scrapple :
* XPath expressions
* CSS selector expressions
These selector types are implemented through the ``XpathSelector`` and ``CssSelector`` classes, respectively. These two classes use the ``Selector`` class as their super class.
In the super class, the URL of the web page to be loaded is validated - ensuring the schema has been specified, and that the URL is valid. A HTTP GET request is made to load the web page, and the HTML content of this fetched web page is used to generate the :ref:`element tree <concepts-structure>`. This is the element tree that will be parsed to extract the necessary content.
.. automodule:: scrapple.selectors.selector
.. autoclass:: scrapple.selectors.selector.Selector
:members:
.. automodule:: scrapple.selectors.xpath
.. autoclass:: scrapple.selectors.xpath.XpathSelector
:members:
.. automodule:: scrapple.selectors.css
.. autoclass:: scrapple.selectors.css.CssSelector
:members:
| Add base selector class in docs | Add base selector class in docs
| reStructuredText | mit | scrappleapp/scrapple,AlexMathew/scrapple,AlexMathew/scrapple,scrappleapp/scrapple,AlexMathew/scrapple | restructuredtext | ## Code Before:
.. _implementation-selectors:
Selector classes
================
:ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content through specified selector expressions and to extract links from anchor tags to be crawled through.
There are two selector types that are supported in Scrapple :
* XPath expressions
* CSS selector expressions
These selector types are implemented through the ``XpathSelector`` and ``CssSelector`` classes, respectively. These two classes use the ``Selector`` class as their super class.
In the super class, the URL of the web page to be loaded is validated - ensuring the schema has been specified, and that the URL is valid. A HTTP GET request is made to load the web page, and the HTML content of this fetched web page is used to generate the :ref:`element tree <concepts-structure>`. This is the element tree that will be parsed to extract the necessary content.
.. automodule:: scrapple.selectors.xpath
.. autoclass:: scrapple.selectors.xpath.XpathSelector
:members:
.. automodule:: scrapple.selectors.css
.. autoclass:: scrapple.selectors.css.CssSelector
:members:
## Instruction:
Add base selector class in docs
## Code After:
.. _implementation-selectors:
Selector classes
================
:ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content through specified selector expressions and to extract links from anchor tags to be crawled through.
There are two selector types that are supported in Scrapple :
* XPath expressions
* CSS selector expressions
These selector types are implemented through the ``XpathSelector`` and ``CssSelector`` classes, respectively. These two classes use the ``Selector`` class as their super class.
In the super class, the URL of the web page to be loaded is validated - ensuring the schema has been specified, and that the URL is valid. A HTTP GET request is made to load the web page, and the HTML content of this fetched web page is used to generate the :ref:`element tree <concepts-structure>`. This is the element tree that will be parsed to extract the necessary content.
.. automodule:: scrapple.selectors.selector
.. autoclass:: scrapple.selectors.selector.Selector
:members:
.. automodule:: scrapple.selectors.xpath
.. autoclass:: scrapple.selectors.xpath.XpathSelector
:members:
.. automodule:: scrapple.selectors.css
.. autoclass:: scrapple.selectors.css.CssSelector
:members:
| .. _implementation-selectors:
Selector classes
================
:ref:`Selectors <concepts-selectors>` are used to specifically point to certain tags on a web page, from which content has to be extracted. In Scrapple, selectors are implemented through selector classes, which define methods to extract necessary content through specified selector expressions and to extract links from anchor tags to be crawled through.
There are two selector types that are supported in Scrapple :
* XPath expressions
* CSS selector expressions
These selector types are implemented through the ``XpathSelector`` and ``CssSelector`` classes, respectively. These two classes use the ``Selector`` class as their super class.
In the super class, the URL of the web page to be loaded is validated - ensuring the schema has been specified, and that the URL is valid. A HTTP GET request is made to load the web page, and the HTML content of this fetched web page is used to generate the :ref:`element tree <concepts-structure>`. This is the element tree that will be parsed to extract the necessary content.
+ .. automodule:: scrapple.selectors.selector
+
+ .. autoclass:: scrapple.selectors.selector.Selector
+ :members:
+
.. automodule:: scrapple.selectors.xpath
.. autoclass:: scrapple.selectors.xpath.XpathSelector
:members:
.. automodule:: scrapple.selectors.css
.. autoclass:: scrapple.selectors.css.CssSelector
:members: | 5 | 0.192308 | 5 | 0 |
1d5054b6a89f910223682fa38406e8080e8ed550 | config/rubocop.yml | config/rubocop.yml | AllCops:
Includes:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.devtools'
Excludes:
- '**/vendor/**'
- '**/benchmarks/**'
# Avoid parameter lists longer than five parameters.
ParameterLists:
Max: 3
CountKeywordArgs: true
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 3
# Align with the style guide.
CollectionMethods:
PreferredMethods:
collect: 'map'
inject: 'reduce'
find: 'detect'
find_all: 'select'
# Do not force public/protected/private keyword to be indented at the same
# level as the def keyword. My personal preference is to outdent these keywords
# because I think when scanning code it makes it easier to identify the
# sections of code and visually separate them. When the keyword is at the same
# level I think it sort of blends in with the def keywords and makes it harder
# to scan the code and see where the sections are.
AccessControl:
Enabled: false
# Limit line length
LineLength:
Max: 80
# Disable documentation checking until a class needs to be documented once
Documentation:
Enabled: false
# Do not favor modifier if/unless usage when you have a single-line body
IfUnlessModifier:
Enabled: false
# Allow case equality operator (in limited use within the specs)
CaseEquality:
Enabled: false
# Constants do not always have to use SCREAMING_SNAKE_CASE
ConstantName:
Enabled: false
# Not all trivial readers/writers can be defined with attr_* methods
TrivialAccessors:
Enabled: false
| AllCops:
Includes:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.devtools'
Excludes:
- '**/vendor/**'
- '**/benchmarks/**'
# Avoid parameter lists longer than five parameters.
ParameterLists:
Max: 3
CountKeywordArgs: true
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 3
# Align with the style guide.
CollectionMethods:
PreferredMethods:
collect: 'map'
inject: 'reduce'
find: 'detect'
find_all: 'select'
# Limit line length
LineLength:
Max: 80
# Disable documentation checking until a class needs to be documented once
Documentation:
Enabled: false
# Do not favor modifier if/unless usage when you have a single-line body
IfUnlessModifier:
Enabled: false
# Allow case equality operator (in limited use within the specs)
CaseEquality:
Enabled: false
# Constants do not always have to use SCREAMING_SNAKE_CASE
ConstantName:
Enabled: false
# Not all trivial readers/writers can be defined with attr_* methods
TrivialAccessors:
Enabled: false
# Default seems to be 10, which I think is a little ridiculous :-)
MethodLength:
Max: 12
| Change some Rubocop settings for my personal taste | Change some Rubocop settings for my personal taste
| YAML | mit | L2G/guard-xmllint | yaml | ## Code Before:
AllCops:
Includes:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.devtools'
Excludes:
- '**/vendor/**'
- '**/benchmarks/**'
# Avoid parameter lists longer than five parameters.
ParameterLists:
Max: 3
CountKeywordArgs: true
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 3
# Align with the style guide.
CollectionMethods:
PreferredMethods:
collect: 'map'
inject: 'reduce'
find: 'detect'
find_all: 'select'
# Do not force public/protected/private keyword to be indented at the same
# level as the def keyword. My personal preference is to outdent these keywords
# because I think when scanning code it makes it easier to identify the
# sections of code and visually separate them. When the keyword is at the same
# level I think it sort of blends in with the def keywords and makes it harder
# to scan the code and see where the sections are.
AccessControl:
Enabled: false
# Limit line length
LineLength:
Max: 80
# Disable documentation checking until a class needs to be documented once
Documentation:
Enabled: false
# Do not favor modifier if/unless usage when you have a single-line body
IfUnlessModifier:
Enabled: false
# Allow case equality operator (in limited use within the specs)
CaseEquality:
Enabled: false
# Constants do not always have to use SCREAMING_SNAKE_CASE
ConstantName:
Enabled: false
# Not all trivial readers/writers can be defined with attr_* methods
TrivialAccessors:
Enabled: false
## Instruction:
Change some Rubocop settings for my personal taste
## Code After:
AllCops:
Includes:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.devtools'
Excludes:
- '**/vendor/**'
- '**/benchmarks/**'
# Avoid parameter lists longer than five parameters.
ParameterLists:
Max: 3
CountKeywordArgs: true
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 3
# Align with the style guide.
CollectionMethods:
PreferredMethods:
collect: 'map'
inject: 'reduce'
find: 'detect'
find_all: 'select'
# Limit line length
LineLength:
Max: 80
# Disable documentation checking until a class needs to be documented once
Documentation:
Enabled: false
# Do not favor modifier if/unless usage when you have a single-line body
IfUnlessModifier:
Enabled: false
# Allow case equality operator (in limited use within the specs)
CaseEquality:
Enabled: false
# Constants do not always have to use SCREAMING_SNAKE_CASE
ConstantName:
Enabled: false
# Not all trivial readers/writers can be defined with attr_* methods
TrivialAccessors:
Enabled: false
# Default seems to be 10, which I think is a little ridiculous :-)
MethodLength:
Max: 12
| AllCops:
Includes:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.devtools'
Excludes:
- '**/vendor/**'
- '**/benchmarks/**'
# Avoid parameter lists longer than five parameters.
ParameterLists:
Max: 3
CountKeywordArgs: true
# Avoid more than `Max` levels of nesting.
BlockNesting:
Max: 3
# Align with the style guide.
CollectionMethods:
PreferredMethods:
collect: 'map'
inject: 'reduce'
find: 'detect'
find_all: 'select'
- # Do not force public/protected/private keyword to be indented at the same
- # level as the def keyword. My personal preference is to outdent these keywords
- # because I think when scanning code it makes it easier to identify the
- # sections of code and visually separate them. When the keyword is at the same
- # level I think it sort of blends in with the def keywords and makes it harder
- # to scan the code and see where the sections are.
- AccessControl:
- Enabled: false
-
# Limit line length
LineLength:
Max: 80
# Disable documentation checking until a class needs to be documented once
Documentation:
Enabled: false
# Do not favor modifier if/unless usage when you have a single-line body
IfUnlessModifier:
Enabled: false
# Allow case equality operator (in limited use within the specs)
CaseEquality:
Enabled: false
# Constants do not always have to use SCREAMING_SNAKE_CASE
ConstantName:
Enabled: false
# Not all trivial readers/writers can be defined with attr_* methods
TrivialAccessors:
Enabled: false
+
+ # Default seems to be 10, which I think is a little ridiculous :-)
+ MethodLength:
+ Max: 12 | 13 | 0.224138 | 4 | 9 |
04416cd9652a9fdc3ab58664ab4b96cbaff3f698 | simuvex/s_event.py | simuvex/s_event.py | import itertools
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_type
self.ins_addr = state.scratch.ins_addr
self.bbl_addr = state.scratch.bbl_addr
self.stmt_idx = state.scratch.stmt_idx
self.sim_procedure = state.scratch.sim_procedure.__class__
self.objects = dict(kwargs)
def __repr__(self):
return "<SimEvent %s %d, with fields %s>" % (self.type, self.id, self.objects.keys())
def _copy_event(self):
c = self.__class__.__new__(self.__class__)
c.id = self.id
c.type = self.type
c.bbl_addr = self.bbl_addr
c.stmt_idx = self.stmt_idx
c.sim_procedure = self.sim_procedure
c.objects = dict(self.objects)
return c
| import itertools
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_type
self.ins_addr = state.scratch.ins_addr
self.bbl_addr = state.scratch.bbl_addr
self.stmt_idx = state.scratch.stmt_idx
self.sim_procedure = None if state.scratch.sim_procedure is None else state.scratch.sim_procedure.__class__
self.objects = dict(kwargs)
def __repr__(self):
return "<SimEvent %s %d, with fields %s>" % (self.type, self.id, self.objects.keys())
def _copy_event(self):
c = self.__class__.__new__(self.__class__)
c.id = self.id
c.type = self.type
c.bbl_addr = self.bbl_addr
c.stmt_idx = self.stmt_idx
c.sim_procedure = self.sim_procedure
c.objects = dict(self.objects)
return c
| Set None instead of NoneType to SimEvent.sim_procedure to make pickle happy. | Set None instead of NoneType to SimEvent.sim_procedure to make pickle happy.
| Python | bsd-2-clause | axt/angr,schieb/angr,angr/angr,tyb0807/angr,f-prettyland/angr,tyb0807/angr,chubbymaggie/angr,chubbymaggie/angr,f-prettyland/angr,angr/angr,axt/angr,tyb0807/angr,iamahuman/angr,iamahuman/angr,chubbymaggie/angr,angr/simuvex,schieb/angr,iamahuman/angr,axt/angr,angr/angr,f-prettyland/angr,schieb/angr | python | ## Code Before:
import itertools
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_type
self.ins_addr = state.scratch.ins_addr
self.bbl_addr = state.scratch.bbl_addr
self.stmt_idx = state.scratch.stmt_idx
self.sim_procedure = state.scratch.sim_procedure.__class__
self.objects = dict(kwargs)
def __repr__(self):
return "<SimEvent %s %d, with fields %s>" % (self.type, self.id, self.objects.keys())
def _copy_event(self):
c = self.__class__.__new__(self.__class__)
c.id = self.id
c.type = self.type
c.bbl_addr = self.bbl_addr
c.stmt_idx = self.stmt_idx
c.sim_procedure = self.sim_procedure
c.objects = dict(self.objects)
return c
## Instruction:
Set None instead of NoneType to SimEvent.sim_procedure to make pickle happy.
## Code After:
import itertools
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_type
self.ins_addr = state.scratch.ins_addr
self.bbl_addr = state.scratch.bbl_addr
self.stmt_idx = state.scratch.stmt_idx
self.sim_procedure = None if state.scratch.sim_procedure is None else state.scratch.sim_procedure.__class__
self.objects = dict(kwargs)
def __repr__(self):
return "<SimEvent %s %d, with fields %s>" % (self.type, self.id, self.objects.keys())
def _copy_event(self):
c = self.__class__.__new__(self.__class__)
c.id = self.id
c.type = self.type
c.bbl_addr = self.bbl_addr
c.stmt_idx = self.stmt_idx
c.sim_procedure = self.sim_procedure
c.objects = dict(self.objects)
return c
| import itertools
event_id_count = itertools.count()
class SimEvent(object):
#def __init__(self, address=None, stmt_idx=None, message=None, exception=None, traceback=None):
def __init__(self, state, event_type, **kwargs):
self.id = event_id_count.next()
self.type = event_type
self.ins_addr = state.scratch.ins_addr
self.bbl_addr = state.scratch.bbl_addr
self.stmt_idx = state.scratch.stmt_idx
- self.sim_procedure = state.scratch.sim_procedure.__class__
+ self.sim_procedure = None if state.scratch.sim_procedure is None else state.scratch.sim_procedure.__class__
self.objects = dict(kwargs)
def __repr__(self):
return "<SimEvent %s %d, with fields %s>" % (self.type, self.id, self.objects.keys())
def _copy_event(self):
c = self.__class__.__new__(self.__class__)
c.id = self.id
c.type = self.type
c.bbl_addr = self.bbl_addr
c.stmt_idx = self.stmt_idx
c.sim_procedure = self.sim_procedure
c.objects = dict(self.objects)
return c | 2 | 0.074074 | 1 | 1 |
94072012bf8fd92cbce08d025b3909d79719d94d | src/test/groovy/dev/kkorolyov/sqlob/integration/MysqlSessionInt.groovy | src/test/groovy/dev/kkorolyov/sqlob/integration/MysqlSessionInt.groovy | package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false&serverTimezone=America/Los_Angeles")
ds.setUser("travis")
return ds
}
}
| package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false")
ds.setUser("travis")
return ds
}
}
| Handle collections: Remove mysql serverTimezone property | Handle collections: Remove mysql serverTimezone property
| Groovy | bsd-3-clause | kkorolyov/SQLOb | groovy | ## Code Before:
package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false&serverTimezone=America/Los_Angeles")
ds.setUser("travis")
return ds
}
}
## Instruction:
Handle collections: Remove mysql serverTimezone property
## Code After:
package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false")
ds.setUser("travis")
return ds
}
}
| package dev.kkorolyov.sqlob.integration
import com.mysql.cj.jdbc.MysqlDataSource
import javax.sql.DataSource
class MysqlSessionInt extends SessionInt {
protected DataSource buildDataSource() {
MysqlDataSource ds = new MysqlDataSource()
- ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false&serverTimezone=America/Los_Angeles")
? -----------------------------------
+ ds.setUrl("jdbc:mysql://127.1/sqlobtest?useLegacyDatetimeCode=false")
ds.setUser("travis")
return ds
}
} | 2 | 0.133333 | 1 | 1 |
74a9cd24616b843877e2dc4f7dd65b11d3a7f176 | content/en/user-manual/publishing/mobile/index.md | content/en/user-manual/publishing/mobile/index.md | ---
title: Mobile
template: usermanual-page.tmpl.html
position: 2
---
PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Google Play or the Apple App Store, then you somehow need to convert your PlayCanvas game to a native app. There are 3 options for this:
* [Intel XDK][1]
* [Ludei's CocoonJS][2]
* [Firefox OS][3]
* [PlayCanvas iOS Xcode project downloader][4]
[1]: /user-manual/publishing/mobile/xdk
[2]: /user-manual/publishing/mobile/cocoonjs
[2]: /user-manual/publishing/mobile/firefoxos
[3]: /user-manual/publishing/mobile/xcode
| ---
title: Mobile
template: usermanual-page.tmpl.html
position: 2
---
PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Google Play or the Apple App Store, then you somehow need to convert your PlayCanvas game to a native app. There are 3 options for this:
* [Intel XDK][1]
* [Ludei's CocoonJS][2]
* [Firefox OS][3]
[1]: /user-manual/publishing/mobile/xdk
[2]: /user-manual/publishing/mobile/cocoonjs
[2]: /user-manual/publishing/mobile/firefoxos | Remove link to iOS project download page for now. | Remove link to iOS project download page for now.
| Markdown | mit | playcanvas/developer.playcanvas.com,playcanvas/developer.playcanvas.com | markdown | ## Code Before:
---
title: Mobile
template: usermanual-page.tmpl.html
position: 2
---
PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Google Play or the Apple App Store, then you somehow need to convert your PlayCanvas game to a native app. There are 3 options for this:
* [Intel XDK][1]
* [Ludei's CocoonJS][2]
* [Firefox OS][3]
* [PlayCanvas iOS Xcode project downloader][4]
[1]: /user-manual/publishing/mobile/xdk
[2]: /user-manual/publishing/mobile/cocoonjs
[2]: /user-manual/publishing/mobile/firefoxos
[3]: /user-manual/publishing/mobile/xcode
## Instruction:
Remove link to iOS project download page for now.
## Code After:
---
title: Mobile
template: usermanual-page.tmpl.html
position: 2
---
PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Google Play or the Apple App Store, then you somehow need to convert your PlayCanvas game to a native app. There are 3 options for this:
* [Intel XDK][1]
* [Ludei's CocoonJS][2]
* [Firefox OS][3]
[1]: /user-manual/publishing/mobile/xdk
[2]: /user-manual/publishing/mobile/cocoonjs
[2]: /user-manual/publishing/mobile/firefoxos | ---
title: Mobile
template: usermanual-page.tmpl.html
position: 2
---
PlayCanvas games are just web pages. An index.html file and a collection of resources (JavaScript files, JSON files, images and so on). They work great in web browsers, of course, but if you want to submit your game to a mobile app store such as Google Play or the Apple App Store, then you somehow need to convert your PlayCanvas game to a native app. There are 3 options for this:
* [Intel XDK][1]
* [Ludei's CocoonJS][2]
* [Firefox OS][3]
- * [PlayCanvas iOS Xcode project downloader][4]
[1]: /user-manual/publishing/mobile/xdk
[2]: /user-manual/publishing/mobile/cocoonjs
[2]: /user-manual/publishing/mobile/firefoxos
- [3]: /user-manual/publishing/mobile/xcode | 2 | 0.117647 | 0 | 2 |
48bf10bc07e58eec83a2b8318d4cddb6a2cbdc83 | test/mongo_test_hash.json | test/mongo_test_hash.json | { "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "meta" : {}, "name" : "fake-1.0.jar", "status" : "RELEASED", "submittedon" : { "$date" : 1364154123976 }, "submitter" : {"$ref": "users", "$id": {"$oid": "51983e5220f35e4c6270f2eb"}}, "vendor" : "Unknown", "version" : "1.0.0" }
| { "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "meta" : {}, "name" : "fake-1.0.jar", "status" : "RELEASED", "submittedon" : { "$date" : 1364154123976 }, "submitter" : "defaulttest", "vendor" : "Unknown", "version" : "1.0.0" }
| Update user for test data | Update user for test data
| JSON | agpl-3.0 | jasinner/victims-web,jasinner/victims-web,victims/victims-web,victims/victims-web | json | ## Code Before:
{ "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "meta" : {}, "name" : "fake-1.0.jar", "status" : "RELEASED", "submittedon" : { "$date" : 1364154123976 }, "submitter" : {"$ref": "users", "$id": {"$oid": "51983e5220f35e4c6270f2eb"}}, "vendor" : "Unknown", "version" : "1.0.0" }
## Instruction:
Update user for test data
## Code After:
{ "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "meta" : {}, "name" : "fake-1.0.jar", "status" : "RELEASED", "submittedon" : { "$date" : 1364154123976 }, "submitter" : "defaulttest", "vendor" : "Unknown", "version" : "1.0.0" }
| - { "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "meta" : {}, "name" : "fake-1.0.jar", "status" : "RELEASED", "submittedon" : { "$date" : 1364154123976 }, "submitter" : {"$ref": "users", "$id": {"$oid": "51983e5220f35e4c6270f2eb"}}, "vendor" : "Unknown", "version" : "1.0.0" }
? ^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ { "_id" : { "$oid" : "514f571120f35e13398d59ba" }, "_v1" : { "db_version" : 1 }, "cves" : [{"id": "CVE-1969-0001", "addedon": {"$date" : 1364154129966 }}], "date" : { "$date" : 1364154129966 }, "format" : "Jar", "hashes" : { "sha512" : { "combined" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } }, "meta" : {}, "name" : "fake-1.0.jar", "status" : "RELEASED", "submittedon" : { "$date" : 1364154123976 }, "submitter" : "defaulttest", "vendor" : "Unknown", "version" : "1.0.0" }
? ^^ ^ ^^^^^^^
| 2 | 2 | 1 | 1 |
12f4f47d0f9a4a24d37e16fb1afc0841399ccadf | setup.py | setup.py | try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
packages=['gast'],
description='Python AST that abstracts the underlying Python version',
long_description='''
A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST).
GAST provides a compatibility layer between the AST of various Python versions,
as produced by ``ast.parse`` from the standard ``ast`` module.''',
author='serge-sans-paille',
author_email='serge.guelton@telecom-bretagne.eu',
license="BSD 3-Clause",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3'],
**kw
)
| try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
packages=['gast'],
description='Python AST that abstracts the underlying Python version',
long_description='''
A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST).
GAST provides a compatibility layer between the AST of various Python versions,
as produced by ``ast.parse`` from the standard ``ast`` module.''',
author='serge-sans-paille',
author_email='serge.guelton@telecom-bretagne.eu',
license="BSD 3-Clause",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
**kw
)
| Add python_requires to help pip, and Trove classifiers | Add python_requires to help pip, and Trove classifiers
| Python | bsd-3-clause | serge-sans-paille/gast | python | ## Code Before:
try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
packages=['gast'],
description='Python AST that abstracts the underlying Python version',
long_description='''
A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST).
GAST provides a compatibility layer between the AST of various Python versions,
as produced by ``ast.parse`` from the standard ``ast`` module.''',
author='serge-sans-paille',
author_email='serge.guelton@telecom-bretagne.eu',
license="BSD 3-Clause",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3'],
**kw
)
## Instruction:
Add python_requires to help pip, and Trove classifiers
## Code After:
try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
packages=['gast'],
description='Python AST that abstracts the underlying Python version',
long_description='''
A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST).
GAST provides a compatibility layer between the AST of various Python versions,
as produced by ``ast.parse`` from the standard ``ast`` module.''',
author='serge-sans-paille',
author_email='serge.guelton@telecom-bretagne.eu',
license="BSD 3-Clause",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
**kw
)
| try:
from setuptools import setup
kw = {
'test_suite': 'tests',
'tests_require': ['astunparse'],
}
except ImportError:
from distutils.core import setup
kw = {}
setup(name='gast', # gast, daou naer!
version='0.2.0',
packages=['gast'],
description='Python AST that abstracts the underlying Python version',
long_description='''
A generic AST to represent Python2 and Python3's Abstract Syntax Tree(AST).
GAST provides a compatibility layer between the AST of various Python versions,
as produced by ``ast.parse`` from the standard ``ast`` module.''',
author='serge-sans-paille',
author_email='serge.guelton@telecom-bretagne.eu',
license="BSD 3-Clause",
classifiers=['Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3'],
? -
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5',
+ 'Programming Language :: Python :: 3.6',
+ ],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
**kw
) | 8 | 0.258065 | 7 | 1 |
3c9ee788a70eabc4af838e8e911795b0dc781c54 | server/config/config.json | server/config/config.json | {
"development": {
"username": "fleviankanaiza",
"password": null,
"database": "database_development",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"loggig": false
},
"test": {
"username": "fleviankanaiza",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"logging": false
},
"production": {
"use_env_variable": "DATABASE_URL",
"port": "5432",
"ssl": true,
"dialectOptions": {
"ssl": {
"require": true
}
},
"dialect": "postgres"
}
}
| {
"development": {
"username": "postgres",
"password": null,
"database": "database_development",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"loggig": false
},
"test": {
"username": "fleviankanaiza",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"logging": false
},
"production": {
"use_env_variable": "DATABASE_URL",
"port": "5432",
"ssl": true,
"dialectOptions": {
"ssl": {
"require": true
}
},
"dialect": "postgres"
}
}
| Change development db user from fleviankanaiza to postgres | Change development db user from fleviankanaiza to postgres
| JSON | mit | FlevianK/cp2-document-management-system,FlevianK/cp2-document-management-system | json | ## Code Before:
{
"development": {
"username": "fleviankanaiza",
"password": null,
"database": "database_development",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"loggig": false
},
"test": {
"username": "fleviankanaiza",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"logging": false
},
"production": {
"use_env_variable": "DATABASE_URL",
"port": "5432",
"ssl": true,
"dialectOptions": {
"ssl": {
"require": true
}
},
"dialect": "postgres"
}
}
## Instruction:
Change development db user from fleviankanaiza to postgres
## Code After:
{
"development": {
"username": "postgres",
"password": null,
"database": "database_development",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"loggig": false
},
"test": {
"username": "fleviankanaiza",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"logging": false
},
"production": {
"use_env_variable": "DATABASE_URL",
"port": "5432",
"ssl": true,
"dialectOptions": {
"ssl": {
"require": true
}
},
"dialect": "postgres"
}
}
| {
"development": {
- "username": "fleviankanaiza",
+ "username": "postgres",
"password": null,
"database": "database_development",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"loggig": false
},
"test": {
"username": "fleviankanaiza",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"port": 5432,
"dialect": "postgres",
"logging": false
},
"production": {
"use_env_variable": "DATABASE_URL",
"port": "5432",
"ssl": true,
"dialectOptions": {
"ssl": {
"require": true
}
},
"dialect": "postgres"
}
} | 2 | 0.064516 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.