commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 5 4.84k | subject stringlengths 15 778 | message stringlengths 16 6.86k | lang stringlengths 1 30 | license stringclasses 13
values | repos stringlengths 5 116k | config stringlengths 1 30 | content stringlengths 105 8.72k |
|---|---|---|---|---|---|---|---|---|---|---|---|
8997f57d21a21aaafd036b990ecfd11a6dc5e509 | app/assets/javascripts/new_design/toggle_chart.js | app/assets/javascripts/new_design/toggle_chart.js | var TPS = TPS || {};
TPS.toggleChart = function(event, chartClass) {
var nextSelectorItem = $(event.target),
nextChart = $(chartClass),
nextChartId = nextChart.children().first().attr("id"),
currentSelectorItem = nextSelectorItem.parent().find(".segmented-control-item-active"),
currentChart =... | TPS.toggleChart = function(event, chartClass) {
var nextSelectorItem = $(event.target),
nextChart = $(chartClass),
nextChartId = nextChart.children().first().attr("id"),
currentSelectorItem = nextSelectorItem.parent().find(".segmented-control-item-active"),
currentChart = nextSelectorItem.pare... | Remove a now useless JS statement | Remove a now useless JS statement
This is now done in init.js | JavaScript | agpl-3.0 | sgmap/tps,sgmap/tps,sgmap/tps | javascript | ## Code Before:
var TPS = TPS || {};
TPS.toggleChart = function(event, chartClass) {
var nextSelectorItem = $(event.target),
nextChart = $(chartClass),
nextChartId = nextChart.children().first().attr("id"),
currentSelectorItem = nextSelectorItem.parent().find(".segmented-control-item-active"),
... |
b5b9d62d394bb771a66a0d956d4bf4e30d9d3517 | mail_form.gemspec | mail_form.gemspec | $:.push File.expand_path("../lib", __FILE__)
require "mail_form/version"
Gem::Specification.new do |s|
s.name = "mail_form"
s.version = MailForm::VERSION.dup
s.platform = Gem::Platform::RUBY
s.summary = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request ... | $:.push File.expand_path("../lib", __FILE__)
require "mail_form/version"
Gem::Specification.new do |s|
s.name = "mail_form"
s.version = MailForm::VERSION.dup
s.platform = Gem::Platform::RUBY
s.summary = "Send e-mail straight from forms in Rails with I18n, validations, attachments and request ... | Remove "rubyforge_project" from .gemspec file | Remove "rubyforge_project" from .gemspec file
This option has been deprecated. | Ruby | mit | plataformatec/mail_form,plataformatec/mail_form | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
require "mail_form/version"
Gem::Specification.new do |s|
s.name = "mail_form"
s.version = MailForm::VERSION.dup
s.platform = Gem::Platform::RUBY
s.summary = "Send e-mail straight from forms in Rails with I18n, validations, attachme... |
c8cbd2c660a2e10cc021bdc0a2fead872f77967d | ynr/apps/uk_results/migrations/0054_update_is_winner_to_elected.py | ynr/apps/uk_results/migrations/0054_update_is_winner_to_elected.py |
from django.db import migrations
def update_versions(versions, current_key, new_key):
for version in versions:
for result in version["candidate_results"]:
try:
result[new_key] = result.pop(current_key)
except KeyError:
continue
def forwards(apps, ... |
from django.db import migrations
def update_versions(versions, current_key, new_key):
for version in versions:
for result in version["candidate_results"]:
try:
result[new_key] = result.pop(current_key)
except KeyError:
continue
def forwards(apps, ... | Use iterator in resultset data migration | Use iterator in resultset data migration
| Python | agpl-3.0 | DemocracyClub/yournextrepresentative,DemocracyClub/yournextrepresentative,DemocracyClub/yournextrepresentative | python | ## Code Before:
from django.db import migrations
def update_versions(versions, current_key, new_key):
for version in versions:
for result in version["candidate_results"]:
try:
result[new_key] = result.pop(current_key)
except KeyError:
continue
def... |
82584ed8dd92cb8ef3f8b0c689e66c795a9ad9c6 | README.md | README.md | Profiles
========
This repository includes configuration files, scripts and tiny commands for our daily life, especially for myself.
License
=======
These files inside this repository is under MIT License, see MIT-LICENSE.txt.
This repository also contains some third party scripts, files and commands so that I and y... | Profiles
========
This repository includes configuration files, scripts and tiny commands for our daily life, especially for myself.
License
-------
These files inside this repository is under MIT License, see MIT-LICENSE.txt.
This repository also contains some third party scripts, files and commands so that I and y... | Change sub sections from weaker level. | Change sub sections from weaker level.
| Markdown | mit | niw/profiles,niw/profiles | markdown | ## Code Before:
Profiles
========
This repository includes configuration files, scripts and tiny commands for our daily life, especially for myself.
License
=======
These files inside this repository is under MIT License, see MIT-LICENSE.txt.
This repository also contains some third party scripts, files and commands... |
c0dac5fc24dd29a7551adbaeea38347392089385 | test/scenario-requirejs.html | test/scenario-requirejs.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit</title>
<link rel="stylesheet" href="../lib/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../lib/require-2.1.9.js"></script>
<script src="../lib/qunit.js"></script>
<script src="../lib/sinon.js"></script>
<... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit</title>
<link rel="stylesheet" href="../lib/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../lib/require-2.1.9.js"></script>
<script src="../lib/qunit.js"></script>
<script src="../lib/sinon.js"></script>
<... | Make the require js pass | Make the require js pass
| HTML | mit | hilios/jQuery.countdown,heriwahyudianto/jQuery.countdown,adrianha/jQuery.countdown,baffolobill/jQuery.countdown,tbilous/jQuery.countdown,Renji/jQuery.countdown,davidBearinTokyo/jQuery.countdown,loki315zx/jQuery.countdown,nsekecharles/count-down,DigitalCoder/jQuery.countdown,masterweb121/jQuery.countdown,fashionsun/jQue... | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QUnit</title>
<link rel="stylesheet" href="../lib/qunit.css">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="../lib/require-2.1.9.js"></script>
<script src="../lib/qunit.js"></script>
<script src="../lib/sinon... |
83af6aff625eae4a64b067b554d007517e23e06b | templates/checkout/shipping_method.html | templates/checkout/shipping_method.html | {% extends "checkout/details.html" %}
{% load i18n %}
{% load gross from prices_i18n %}
{% load bootstrap_form from bootstrap3 %}
{% block forms %}
<h1>{% trans "Shipping address" %}</h1>
{% include "userprofile/snippets/address-short.html" with address=checkout.shipping_address only %}
<form method="post"... | {% extends "checkout/details.html" %}
{% load i18n %}
{% load gross from prices_i18n %}
{% load bootstrap_form from bootstrap3 %}
{% block forms %}
<h1>{% trans "Shipping address" %}</h1>
{% include "userprofile/snippets/address-short.html" with address=checkout.shipping_address only %}
<form method="post"... | Fix button text on shipping method step | Fix button text on shipping method step
| HTML | bsd-3-clause | car3oon/saleor,HyperManTT/ECommerceSaleor,jreigel/saleor,maferelo/saleor,car3oon/saleor,UITools/saleor,tfroehlich82/saleor,KenMutemi/saleor,tfroehlich82/saleor,maferelo/saleor,mociepka/saleor,itbabu/saleor,mociepka/saleor,KenMutemi/saleor,UITools/saleor,HyperManTT/ECommerceSaleor,UITools/saleor,car3oon/saleor,jreigel/s... | html | ## Code Before:
{% extends "checkout/details.html" %}
{% load i18n %}
{% load gross from prices_i18n %}
{% load bootstrap_form from bootstrap3 %}
{% block forms %}
<h1>{% trans "Shipping address" %}</h1>
{% include "userprofile/snippets/address-short.html" with address=checkout.shipping_address only %}
<fo... |
0cc4378f34e51e781d2e15dcf1944d33271fe1f5 | viewer.css | viewer.css |
/*
body {
background-color: #BCD2EE;
}
.container {
width:1210px;
height:700px;
margin-right:auto;
margin-left:auto;
background-color:#ffffff;
}
*/
.viewer {
width:100%;
height:100%;
overflow:hidden;
float:left;
z-index:20;
position:relative;
}
.form {
width:300px... |
/*
body {
background-color: #BCD2EE;
}
.container {
width:1210px;
height:700px;
margin-right:auto;
margin-left:auto;
background-color:#ffffff;
}
*/
.viewer {
width:100%;
height:100%;
overflow:hidden;
float:left;
z-index:20;
position:relative;
-moz-user-select : none... | Fix for unintended selection on the div | Fix for unintended selection on the div
| CSS | apache-2.0 | SlideAtlas/SlideAtlas-viewer | css | ## Code Before:
/*
body {
background-color: #BCD2EE;
}
.container {
width:1210px;
height:700px;
margin-right:auto;
margin-left:auto;
background-color:#ffffff;
}
*/
.viewer {
width:100%;
height:100%;
overflow:hidden;
float:left;
z-index:20;
position:relative;
}
.form {... |
22c6ae2ce5e896c7f202120275eca63303aeccbe | README.md | README.md |
Camera Color Picker is an Android application that lets you capture, in real time, the colors around you using the camera of your device.
Contributing
=======
Contributions are welcome (: You can contribute through GitHub by forking the repository and sending a pull request.
When submitting code, please make every e... |
[Camera Color Picker](http://tvbarthel.github.io/CameraColorPicker/) is an Android application that lets you capture, in real time, the colors around you using the camera of your device.
Contributing
=======
Contributions are welcome (: You can contribute through GitHub by forking the repository and sending a pull re... | Add a link to the website in the readme.md file. | Add a link to the website in the readme.md file.
| Markdown | apache-2.0 | Learn-Android-app/CameraColorPicker,0359xiaodong/CameraColorPicker,tvbarthel/CameraColorPicker,0359xiaodong/CameraColorPicker,AmniX/CameraColorPicker,tvbarthel/CameraColorPicker,AmniX/CameraColorPicker,Learn-Android-app/CameraColorPicker | markdown | ## Code Before:
Camera Color Picker is an Android application that lets you capture, in real time, the colors around you using the camera of your device.
Contributing
=======
Contributions are welcome (: You can contribute through GitHub by forking the repository and sending a pull request.
When submitting code, ple... |
aad1f8ab5829c1a2a40441684b1249e6d69bb137 | .travis.yml | .travis.yml | language: generic
notifications:
email: false
# The test script for each build
script:
# Build embeddable docker image if the dockerfile changed
- >
if [ $EMBEDDABLE_CHANGED != 0 ]; then
DOCKER_IMG=niclabs/embeddable
echo "Embeddable docker image changed, build from Dockerfile"
docker build... | language: generic
notifications:
email: false
# The test script for each build
script:
# Build embeddable docker image if the dockerfile changed
- >
if [ $EMBEDDABLE_CHANGED != 0 ]; then
DOCKER_IMG=niclabs/embeddable
echo "Embeddable docker image changed, build from Dockerfile"
docker build... | Allow builds from master to push to docker hub | Allow builds from master to push to docker hub
| YAML | mit | niclabs/docker,niclabs/docker,niclabs/docker | yaml | ## Code Before:
language: generic
notifications:
email: false
# The test script for each build
script:
# Build embeddable docker image if the dockerfile changed
- >
if [ $EMBEDDABLE_CHANGED != 0 ]; then
DOCKER_IMG=niclabs/embeddable
echo "Embeddable docker image changed, build from Dockerfile"
... |
4055221aadee59a496e3bdb36a15cff4c45adaaa | webserver/templates/account/password_set.html | webserver/templates/account/password_set.html | {% extends "account/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block head_title %}{% trans "Set Password" %}{% endblock %}
{% block content %}
<h1>{% trans "Set Password" %}</h1>
<form method="POST" action="" class="form-horizontal">
{% csrf_token %}
{{ form|crispy }}
... | {% extends "account/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block head_title %}{% trans "Set Password" %}{% endblock %}
{% block content %}
<h1>{% trans "Set Password" %}</h1>
<form method="POST" action="" class="form-horizontal">
{% csrf_token %}
{{ form|crispy }}
... | Add sidebar to password set page | Add sidebar to password set page
| HTML | bsd-3-clause | siggame/webserver,siggame/webserver,siggame/webserver | html | ## Code Before:
{% extends "account/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block head_title %}{% trans "Set Password" %}{% endblock %}
{% block content %}
<h1>{% trans "Set Password" %}</h1>
<form method="POST" action="" class="form-horizontal">
{% csrf_token %}
{{ for... |
60a2b50f5c49c3c109f3f90e53897a1601bdd256 | plugins/cache_reload.js | plugins/cache_reload.js | /**
* \file cache_reload.js
* Plugin that forces a cache reload of boomerang (assuming you have server side support)
* Copyright (c) 2013, SOASTA, Inc. All rights reserved.
*/
(function() {
BOOMR = BOOMR || {};
BOOMR.plugins = BOOMR.plugins || {};
var impl = {
url: "",
initialized: false
};
BOOMR.plugins.CAC... | /**
* \file cache_reload.js
* Plugin that forces a cache reload of boomerang (assuming you have server side support)
* Copyright (c) 2013, SOASTA, Inc. All rights reserved.
*/
(function() {
BOOMR = BOOMR || {};
BOOMR.plugins = BOOMR.plugins || {};
var impl = {
url: ""
};
BOOMR.plugins.CACHE_RELOAD = {
init: ... | Load cache reload iframe as soon as we have a url | Load cache reload iframe as soon as we have a url
We should not wait for onload to fire because it might never fire.
Instead, we run the cache reload code as soon as we have a url, and
allow it to reload the user's browser cache.
| JavaScript | bsd-3-clause | lognormal/boomerang,lognormal/boomerang | javascript | ## Code Before:
/**
* \file cache_reload.js
* Plugin that forces a cache reload of boomerang (assuming you have server side support)
* Copyright (c) 2013, SOASTA, Inc. All rights reserved.
*/
(function() {
BOOMR = BOOMR || {};
BOOMR.plugins = BOOMR.plugins || {};
var impl = {
url: "",
initialized: false
};
B... |
d76cbdd768964a2583cf28ab9efaf46964c815ae | swf/core.py | swf/core.py |
from boto.swf.layer1 import Layer1
AWS_CREDENTIALS = {
'aws_access_key_id': None,
'aws_secret_access_key': None
}
def set_aws_credentials(aws_access_key_id, aws_secret_access_key):
"""Set default credentials."""
AWS_CREDENTIALS.update({
'aws_access_key_id': aws_access_key_id,
'aws_se... |
from boto.swf.layer1 import Layer1
AWS_CREDENTIALS = {
#'aws_access_key_id': AWS_ACCESS_KEY_ID,
#'aws_secret_access_key': AWS_SECRET_ACCESS_KEY,
}
def set_aws_credentials(aws_access_key_id, aws_secret_access_key):
"""Set default credentials."""
AWS_CREDENTIALS.update({
'aws_access_key_id': a... | Update ConnectedSWFObject: raise KeyError if credentials are not set | Update ConnectedSWFObject: raise KeyError if credentials are not set
| Python | mit | botify-labs/python-simple-workflow,botify-labs/python-simple-workflow | python | ## Code Before:
from boto.swf.layer1 import Layer1
AWS_CREDENTIALS = {
'aws_access_key_id': None,
'aws_secret_access_key': None
}
def set_aws_credentials(aws_access_key_id, aws_secret_access_key):
"""Set default credentials."""
AWS_CREDENTIALS.update({
'aws_access_key_id': aws_access_key_id,... |
800f84b9947c6e111258a9ccb4755a432a251551 | composer.json | composer.json | {
"name": "senseexception/intl-format-bundle",
"description": "A Symfony bundle of the IntlFormat wrapper library for PHP intl messages",
"type": "symfony-bundle",
"keywords": ["intl", "i18n", "formatter", "icu", "i18n", "internationalization", "Symfony", "Bundle", "messages", "sprintf"],
"license":... | {
"name": "senseexception/intl-format-bundle",
"description": "A Symfony bundle of the IntlFormat wrapper library for PHP intl messages",
"type": "symfony-bundle",
"keywords": ["intl", "i18n", "formatter", "icu", "i18n", "internationalization", "Symfony", "Bundle", "messages", "sprintf"],
"license":... | Use stable release of intl-format 2 | Use stable release of intl-format 2
| JSON | mit | SenseException/IntlFormatBundle | json | ## Code Before:
{
"name": "senseexception/intl-format-bundle",
"description": "A Symfony bundle of the IntlFormat wrapper library for PHP intl messages",
"type": "symfony-bundle",
"keywords": ["intl", "i18n", "formatter", "icu", "i18n", "internationalization", "Symfony", "Bundle", "messages", "sprintf"]... |
31451295beb6c0dbaf30873132908c701ad5ab9e | README.md | README.md |
- [Ilios Frontend](https://github.com/ilios/common)
- [Ilios LTI App](https://github.com/ilios/lti-app)
## Usage
`ember install ilios-common`
Contributing
------------------------------------------------------------------------------
See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------... |
- [Ilios Frontend](https://github.com/ilios/common)
- [Ilios LTI App](https://github.com/ilios/lti-app)
## Usage
`ember install ilios-common`
Open Source Heroes
------------------------------------------------------------------------------
Every day these for-profit companies make developing Ilios possible. With... | Add open source heroes list | Add open source heroes list
Brought this over from the frontend section with the same name.
| Markdown | mit | ilios/common,ilios/common | markdown | ## Code Before:
- [Ilios Frontend](https://github.com/ilios/common)
- [Ilios LTI App](https://github.com/ilios/lti-app)
## Usage
`ember install ilios-common`
Contributing
------------------------------------------------------------------------------
See the [Contributing](CONTRIBUTING.md) guide for details.
Lice... |
064a415cc4f90da466422aa262c95b4fda7e67f6 | application/helpers/bootstrap_helper.php | application/helpers/bootstrap_helper.php | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if(!function_exists('bs_icon'))
{
function bs_icon($sIcon = FALSE)
{
return '<span class="glyphicon glyphicon-' . $sIcon . '" aria-hidden="true"></span>';
}
} | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// "$this" works under light testing, but experience shows that it won't
// necessarily work in every context, so let's use a $CI variable
$CI =& get_instance();
// we use the CI form helper's _attributes_to_string()
$CI->load->helper('form')... | Load and use form_helper's _attributes_to_string | Load and use form_helper's _attributes_to_string
| PHP | mit | gbrock/bootstrap_helper.php | php | ## Code Before:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if(!function_exists('bs_icon'))
{
function bs_icon($sIcon = FALSE)
{
return '<span class="glyphicon glyphicon-' . $sIcon . '" aria-hidden="true"></span>';
}
}
## Instruction:
Load and use form_helper's _attributes_to_string... |
dd94c1ac2383755d11c2db7ea7a91cedffb4b567 | tasks/install-apache-agent-linux.yml | tasks/install-apache-agent-linux.yml | - name: Inject the Dynatrace Apache Agent into Apache's config file {{ dynatrace_apache_agent_linux_apache_config_path }}
lineinfile: >
dest={{ dynatrace_apache_agent_linux_apache_config_path }}
regexp='LoadModule dtagent_module "{{ dynatrace_apache_agent_linux_agent_path }}"'
line='LoadModule dtagent_mod... | - name: Inject the Dynatrace Apache Agent into Apache's config file {{ dynatrace_apache_agent_linux_apache_config_path }}
lineinfile: >
dest={{ dynatrace_apache_agent_linux_apache_config_path }}
regexp='LoadModule dtagent_module "{{ dynatrace_apache_agent_linux_agent_path }}"'
line='LoadModule dtagent_mod... | Create missing apache config if missing. | Create missing apache config if missing.
| YAML | mit | dynaTrace/Dynatrace-Apache-HTTPServer-Agent-Ansible,dynaTrace/Dynatrace-Apache-HTTPD-Agent-Ansible | yaml | ## Code Before:
- name: Inject the Dynatrace Apache Agent into Apache's config file {{ dynatrace_apache_agent_linux_apache_config_path }}
lineinfile: >
dest={{ dynatrace_apache_agent_linux_apache_config_path }}
regexp='LoadModule dtagent_module "{{ dynatrace_apache_agent_linux_agent_path }}"'
line='LoadMo... |
b2366ebfd529f769685d84bb9d8cbee5f06749df | src/main.rs | src/main.rs | extern crate clap;
extern crate riscan_pro;
extern crate serde_json;
use clap::{App, Arg, SubCommand};
use riscan_pro::Project;
fn main() {
let matches = App::new("RiSCAN Pro")
.author("Pete Gadomski <pete@gadom.ski>")
.about("Query RiSCAN Pro projects")
.subcommand(
SubCommand... | extern crate clap;
extern crate riscan_pro;
extern crate serde_json;
use clap::{App, Arg, SubCommand};
use riscan_pro::Project;
fn main() {
let matches = App::new("RiSCAN Pro")
.author("Pete Gadomski <pete@gadom.ski>")
.about("Query RiSCAN Pro projects")
.subcommand(
SubCommand... | Add compact option to info command line | Add compact option to info command line
| Rust | mit | gadomski/riscan-pro | rust | ## Code Before:
extern crate clap;
extern crate riscan_pro;
extern crate serde_json;
use clap::{App, Arg, SubCommand};
use riscan_pro::Project;
fn main() {
let matches = App::new("RiSCAN Pro")
.author("Pete Gadomski <pete@gadom.ski>")
.about("Query RiSCAN Pro projects")
.subcommand(
... |
00d520ec50c73bbdfe1355cf49354bc843eb7504 | source/oc/ast/Scope.ooc | source/oc/ast/Scope.ooc |
import structs/[ArrayList, List]
import oc/middle/Resolver
import Inquisitor
import Node, Statement, Var, Access
Scope: class extends Node {
body: List<Statement> { get set }
init: func {
body = ArrayList<Statement> new()
}
resolve: func (task: Task) {
task queueList(body)
}
... |
import structs/[ArrayList, List]
import oc/middle/Resolver
import Inquisitor
import Node, Statement, Var, Access
Scope: class extends Node {
body: List<Statement> { get set }
init: func {
body = ArrayList<Statement> new()
}
resolve: func (task: Task) {
task queueList(body)
}
... | Fix crash when resolving calls to other modules' functions | Fix crash when resolving calls to other modules' functions
| ooc | mit | fasterthanlime/oc,nddrylliog/oc | ooc | ## Code Before:
import structs/[ArrayList, List]
import oc/middle/Resolver
import Inquisitor
import Node, Statement, Var, Access
Scope: class extends Node {
body: List<Statement> { get set }
init: func {
body = ArrayList<Statement> new()
}
resolve: func (task: Task) {
task queueLi... |
b668a53ca74319bfe37cf42dfbf23e769d419a60 | releasenotes/notes/15.0.0-remove-deprecated-compute-validation-config-options-e3d1b89ce074d71c.yaml | releasenotes/notes/15.0.0-remove-deprecated-compute-validation-config-options-e3d1b89ce074d71c.yaml | ---
upgrade:
- |
Below deprecated config options from compute group have been removed.
Corresponding config options already been available in validation group.
- ``compute.use_floatingip_for_ssh`` (available as ``validation.connect_method``)
- ``compute.ssh_auth_method`` (available as ``validation.au... | ---
prelude: >
This release is marking the start of Ocata release support in Tempest
upgrade:
- |
Below deprecated config options from compute group have been removed.
Corresponding config options already been available in validation group.
- ``compute.use_floatingip_for_ssh`` (available as ``validat... | Fix tempest 15.0.0 release notes | Fix tempest 15.0.0 release notes
This commit fixes the release notes for tempest 15.0.0 so that the
prelude and other sections explaining the supported releases actually
show up in the 15.0.0 release notes.
Change-Id: I689d51fb48a2ee5daad703db90b596d1d6fb7f6d
| YAML | apache-2.0 | masayukig/tempest,masayukig/tempest,Juniper/tempest,openstack/tempest,cisco-openstack/tempest,vedujoshi/tempest,cisco-openstack/tempest,openstack/tempest,Juniper/tempest,vedujoshi/tempest | yaml | ## Code Before:
---
upgrade:
- |
Below deprecated config options from compute group have been removed.
Corresponding config options already been available in validation group.
- ``compute.use_floatingip_for_ssh`` (available as ``validation.connect_method``)
- ``compute.ssh_auth_method`` (available as... |
aa172b3ca6cd9c902abdc6629cd23c0a1bd67cb9 | .travis.yml | .travis.yml | language: ruby
cache: bundler
sudo: false
branches:
only:
- master
before_install:
- bundle --version
- gem --version
rvm:
- 2.0
- 2.1
- 2.2
- 2.3.0
script:
- bundle exec chefstyle
- bundle exec rake spec
| language: ruby
cache: bundler
sudo: false
branches:
only:
- master
before_install:
- bundle --version
- gem --version
rvm:
- 2.2.5
- 2.3.1
script:
- bundle exec chefstyle
- bundle exec rake spec
| Remove Travis testing on Ruby 2.0/2.1 | Remove Travis testing on Ruby 2.0/2.1
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| YAML | apache-2.0 | chef/mixlib-cli,chef/mixlib-cli | yaml | ## Code Before:
language: ruby
cache: bundler
sudo: false
branches:
only:
- master
before_install:
- bundle --version
- gem --version
rvm:
- 2.0
- 2.1
- 2.2
- 2.3.0
script:
- bundle exec chefstyle
- bundle exec rake spec
## Instruction:
Remove Travis testing on Ruby 2.0/2.1
Signed-off-by: Ti... |
2b16d79a0fe20bcaedc9fef27c5a2b34d602bd29 | ManifoldTests/TagTests.swift | ManifoldTests/TagTests.swift | // Copyright © 2015 Rob Rix. All rights reserved.
final class TagTests: XCTestCase {
func testTagTypechecksAsFunction() {
let expected = Expression.FunctionType([ Term("Enumeration"), Term(.Type(0)) ])
let actual = Term("Tag").out.typecheck(context, against: expected)
assert(actual.left, ==, nil)
assert(actu... | // Copyright © 2015 Rob Rix. All rights reserved.
final class TagTests: XCTestCase {
func testTagTypechecksAsFunction() {
let expected = Expression.FunctionType([ Term("Enumeration"), Term(.Type(0)) ])
let actual = Term("Tag").out.typecheck(context, against: expected)
assert(actual.left, ==, nil)
assert(actu... | Test that Branches produces a type. | Test that Branches produces a type.
| Swift | mit | antitypical/Manifold,antitypical/Manifold | swift | ## Code Before:
// Copyright © 2015 Rob Rix. All rights reserved.
final class TagTests: XCTestCase {
func testTagTypechecksAsFunction() {
let expected = Expression.FunctionType([ Term("Enumeration"), Term(.Type(0)) ])
let actual = Term("Tag").out.typecheck(context, against: expected)
assert(actual.left, ==, ni... |
f8f4aa7a30d2d053a86bf94d32309481ede35eed | requirements-dev.txt | requirements-dev.txt | aiounittest==1.4.0
black==20.8b1
codecov==2.1.10
coverage[toml]==5.3
flit==3.0.0
mypy==0.790
pylint==2.6.0
sphinx==3.2.1
twine==1.15.0 # pyup: >=1.15,<2
usort==0.5.0
git+https://github.com/miyakogi/m2r
| aiounittest==1.4.0
black==20.8b1
codecov==2.1.10
coverage[toml]==5.3
flit==3.0.0
mypy==0.790
pylint==2.6.0
sphinx==3.2.1
usort==0.5.0
git+https://github.com/miyakogi/m2r
| Remove twine from dev requirements | Remove twine from dev requirements
| Text | mit | jreese/aiosqlite | text | ## Code Before:
aiounittest==1.4.0
black==20.8b1
codecov==2.1.10
coverage[toml]==5.3
flit==3.0.0
mypy==0.790
pylint==2.6.0
sphinx==3.2.1
twine==1.15.0 # pyup: >=1.15,<2
usort==0.5.0
git+https://github.com/miyakogi/m2r
## Instruction:
Remove twine from dev requirements
## Code After:
aiounittest==1.4.0
black==20.8b1
... |
35e26d2ad2c056708670a40cbd3d9917b2b84d35 | generators/app/templates/__pwa._ngsw-config.json | generators/app/templates/__pwa._ngsw-config.json | {
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.json",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
... | {
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.json",
"/*.css",
"/*.js"
]
}
},
{
"name": "assets",
... | Add missing font caching for PWA | Add missing font caching for PWA
| JSON | mit | angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket,ngx-rocket/generator-ngx-rocket,ngx-rocket/generator-ngx-rocket,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket | json | ## Code Before:
{
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.json",
"/*.css",
"/*.js"
]
}
},
{
"na... |
034ceaba6d42453953201cc8efdbb36fdb96a595 | .travis.yml | .travis.yml | language: java
jdk:
- oraclejdk8
install: /bin/true
sudo: false
script:
- bash -c 'cd gradle; ./gradlew build'
- bash -c 'cd liferay-gradle; ./gradlew build'
- bash -c 'cd liferay-workspace; ./gradlew build'
- bash -c 'cd maven; mvn --fail-at-end package'
- bash -c 'cd bndtools; ./gradlew build'
- bash -c './gradlew ... | language: java
jdk:
- oraclejdk8
install: /bin/true
sudo: false
script:
- bash -c 'cd gradle; ./gradlew build'
- bash -c 'cd liferay-gradle; ./gradlew build'
- bash -c 'cd liferay-workspace; ./gradlew build'
- bash -c 'cd maven; mvn --fail-at-end package'
- bash -c 'cd bndtools; ./gradlew build'
- bash -c './gradlew ... | Add Blade Sample Tests to Travis | Add Blade Sample Tests to Travis
| YAML | apache-2.0 | rafoli/liferay-blade-samples,rafoli/liferay-blade-samples,rafoli/liferay-blade-samples,gamerson/liferay-blade-samples,gamerson/liferay-blade-samples,gamerson/liferay-blade-samples,rafoli/liferay-blade-samples,gamerson/liferay-blade-samples,rafoli/liferay-blade-samples,gamerson/liferay-blade-samples,gamerson/liferay-bla... | yaml | ## Code Before:
language: java
jdk:
- oraclejdk8
install: /bin/true
sudo: false
script:
- bash -c 'cd gradle; ./gradlew build'
- bash -c 'cd liferay-gradle; ./gradlew build'
- bash -c 'cd liferay-workspace; ./gradlew build'
- bash -c 'cd maven; mvn --fail-at-end package'
- bash -c 'cd bndtools; ./gradlew build'
- bas... |
d3cf190b8522cdec78c5dfb58d23c9e0e6f996d9 | tools/scripts/run.sh | tools/scripts/run.sh | set -e
JOB_NAME=$1
CLUSTER_SIZE=5
echo "Deleting tasks"
dart sintr_analysis_server_example/bin/delete_all_tasks.dart
echo "Deploying Sintr"
./tools/scripts/deploy_image.sh
echo "Deploying Client code"
./tools/scripts/upload_sample_src.sh
# The next part is slow and can be done in parrallel
echo "Deploying cluster... | set -e
JOB_NAME=$1
CLUSTER_SIZE=5
# echo "Starting run for: " $JOB_NAME
# echo "Delete logs"
# gsutil -m rm gs://liftoff-dev-worker-logs/*
echo "Deleting tasks"
dart sintr_analysis_server_example/bin/delete_all_tasks.dart
echo "Deploying Sintr"
./tools/scripts/deploy_image.sh
echo "Deploying Client code"
./tools/... | Use more efficent task query | Use more efficent task query
| Shell | apache-2.0 | lukechurch/sintr,lukechurch/sintr | shell | ## Code Before:
set -e
JOB_NAME=$1
CLUSTER_SIZE=5
echo "Deleting tasks"
dart sintr_analysis_server_example/bin/delete_all_tasks.dart
echo "Deploying Sintr"
./tools/scripts/deploy_image.sh
echo "Deploying Client code"
./tools/scripts/upload_sample_src.sh
# The next part is slow and can be done in parrallel
echo "D... |
d618d902e813604d892212953667c6d47187c649 | dist/src/main/etc/conf/services/org.ops4j.pax.logging.properties | dist/src/main/etc/conf/services/org.ops4j.pax.logging.properties | log4j.rootLogger=INFO, out, osgi:VmLogAppender
# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n
#... | log4j.rootLogger=INFO, out, osgi:VmLogAppender
# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n
#... | Use a relative path for log configuration | Use a relative path for log configuration
| INI | apache-2.0 | realityforge/jml,realityforge/jml | ini | ## Code Before:
log4j.rootLogger=INFO, out, osgi:VmLogAppender
# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.3... |
e0efec485dcebf0d8941bac2105fc152e475b78a | source/stylesheets/modules/_sidebar.scss | source/stylesheets/modules/_sidebar.scss | aside {
@include rhythm-padding;
background: white;
@include card(4);
menu {
list-style: none;
}
li:hover {
background: rgba(black, .05);
}
a {
display: block;
@include adjust-leading-to(2);
text-indent: 1em;
font-weight: bold;
color: $base-font-color;
}
}
@include breakp... | aside {
@include rhythm-padding;
background: white;
@include card(4);
menu {
list-style: none;
}
li:hover {
background: rgba(black, .05);
}
a {
display: block;
@include adjust-leading-to(2);
text-indent: 1em;
font-weight: bold;
color: $base-font-color;
position: relative... | Add ripple effect (CSS only) | Add ripple effect (CSS only)
| SCSS | mit | bazzel/grupodelsur-website,bazzel/grupodelsur-website,bazzel/grupodelsur-website | scss | ## Code Before:
aside {
@include rhythm-padding;
background: white;
@include card(4);
menu {
list-style: none;
}
li:hover {
background: rgba(black, .05);
}
a {
display: block;
@include adjust-leading-to(2);
text-indent: 1em;
font-weight: bold;
color: $base-font-color;
}
}
... |
eafd45c022863b0ad01a61a000d0b19ea60d80a6 | terminal_size_windows.go | terminal_size_windows.go | // +build windows
package uilive
import (
"os"
"unsafe"
)
func getTermSize() (int, int) {
out, err := os.Open("CONOUT$")
if err != nil {
return 0, 0
}
var csbi consoleScreenBufferInfo
ret, _, _ := procGetConsoleScreenBufferInfo.Call(out.Fd(), uintptr(unsafe.Pointer(&csbi)))
if ret == 0 {
return 0, 0
}
... | // +build windows
package uilive
import (
"os"
"unsafe"
)
func getTermSize() (int, int) {
out, err := os.Open("CONOUT$")
if err != nil {
return 0, 0
}
defer out.Close()
var csbi consoleScreenBufferInfo
ret, _, _ := procGetConsoleScreenBufferInfo.Call(out.Fd(), uintptr(unsafe.Pointer(&csbi)))
if ret == 0 ... | Add forgotten Close() for opened console output | Add forgotten Close() for opened console output
| Go | mit | gosuri/uilive | go | ## Code Before:
// +build windows
package uilive
import (
"os"
"unsafe"
)
func getTermSize() (int, int) {
out, err := os.Open("CONOUT$")
if err != nil {
return 0, 0
}
var csbi consoleScreenBufferInfo
ret, _, _ := procGetConsoleScreenBufferInfo.Call(out.Fd(), uintptr(unsafe.Pointer(&csbi)))
if ret == 0 {
... |
12b15cc373b9bf19f75951845c26d2ffb3673013 | js/boot.js | js/boot.js | /*
* boot.js
* Sets up game and loads preloader assets
*/
/* Sets a global object to hold all the states of the game */
YINS = {
/* declare global variables, these will persist across different states */
score: 0,
/* Declare global colors used throughout the game
Usage example: YINS.color.purple */
c... | /*
* boot.js
* Sets up game and loads preloader assets
*/
/* Sets a global object to hold all the states of the game */
YINS = {
/* declare global variables, these will persist across different states */
score: 0,
/* Declare global colors used throughout the game
Usage example: YINS.color.purple */
c... | Add vars & disable auto pausing | Add vars & disable auto pausing
| JavaScript | mpl-2.0 | Vogeltak/YINS,Vogeltak/YINS | javascript | ## Code Before:
/*
* boot.js
* Sets up game and loads preloader assets
*/
/* Sets a global object to hold all the states of the game */
YINS = {
/* declare global variables, these will persist across different states */
score: 0,
/* Declare global colors used throughout the game
Usage example: YINS.col... |
459057a7dbc779f57d68f22b75fcb69d6fe3efe3 | app/serializers/api/admin/subscription_customer_serializer.rb | app/serializers/api/admin/subscription_customer_serializer.rb | require 'spec_helper'
module Api
module Admin
# Used by admin subscription form
# Searches for a ship and bill addresses for the customer
# where they are not already explicitly set
class SubscriptionCustomerSerializer < CustomerSerializer
delegate :bill_address, to: :finder
delegate :shi... | module Api
module Admin
# Used by admin subscription form
# Searches for a ship and bill addresses for the customer
# where they are not already explicitly set
class SubscriptionCustomerSerializer < CustomerSerializer
delegate :bill_address, to: :finder
delegate :ship_address, to: :finder
... | Revert accidental copy and paste | Revert accidental copy and paste
| Ruby | agpl-3.0 | Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/ope... | ruby | ## Code Before:
require 'spec_helper'
module Api
module Admin
# Used by admin subscription form
# Searches for a ship and bill addresses for the customer
# where they are not already explicitly set
class SubscriptionCustomerSerializer < CustomerSerializer
delegate :bill_address, to: :finder
... |
8496ba409b9a340858e4473157aab87593868db7 | pytask/views.py | pytask/views.py | from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... | from django.shortcuts import render_to_response
from pytask.profile import models as profile_models
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'mess... | Use the right name for the profile role's values. | Use the right name for the profile role's values.
| Python | agpl-3.0 | madhusudancs/pytask,madhusudancs/pytask,madhusudancs/pytask | python | ## Code Before:
from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... |
2818fca376a2dd1b1b23b40c09f1505648da022a | templates/outputs.yml | templates/outputs.yml |
Outputs:
AutoScalingGroupName:
Value: { Ref: AgentAutoScaleGroup }
InstanceRoleName:
Value: { Ref: InstanceRoleName }
|
Outputs:
AutoScalingGroupName:
Value: { Ref: AgentAutoScaleGroup }
InstanceRoleName:
Value: !GetAtt IAMRole.RoleName
| Set InstanceRoleName output from IAMRole resource | Set InstanceRoleName output from IAMRole resource
If the `InstanceRoleName` parameter (optional) is unset, the
CloudFormation stack generates a name for you based on the stack name.
This commit updates the output to extract the name from the resource
directly which accounts for both cases, and should be more reliable... | YAML | mit | holmesjr/elastic-ci-stack-for-aws,buildkite/elastic-ci-stack-for-aws,holmesjr/elastic-ci-stack-for-aws | yaml | ## Code Before:
Outputs:
AutoScalingGroupName:
Value: { Ref: AgentAutoScaleGroup }
InstanceRoleName:
Value: { Ref: InstanceRoleName }
## Instruction:
Set InstanceRoleName output from IAMRole resource
If the `InstanceRoleName` parameter (optional) is unset, the
CloudFormation stack generates a name for yo... |
a0c9c5a0416a9c3115a799b1332157f03ee353db | docs/bugpattern/ImmutableAnnotationChecker.md | docs/bugpattern/ImmutableAnnotationChecker.md | Annotations should always be immutable.
Static state is dangerous to begin with, but much worse for annotations.
Annotation instances are usually constants, and it is very surprising if their
state ever changes, or if they are not thread-safe.
TIP: prefer [`@AutoAnnotation`] to writing annotation implementations by h... | Annotations should always be immutable.
Static state is dangerous to begin with, but much worse for annotations.
Annotation instances are usually constants, and it is very surprising if their
state ever changes, or if they are not thread-safe.
TIP: prefer [`@AutoAnnotation`] to writing annotation implementations by h... | Fix a simple copy/paste error from ImmutableEnumChecker.md | Fix a simple copy/paste error from ImmutableEnumChecker.md
MOE_MIGRATED_REVID=147408782
| Markdown | apache-2.0 | cushon/error-prone,cushon/error-prone,google/error-prone,google/error-prone,cushon/error-prone,cushon/error-prone | markdown | ## Code Before:
Annotations should always be immutable.
Static state is dangerous to begin with, but much worse for annotations.
Annotation instances are usually constants, and it is very surprising if their
state ever changes, or if they are not thread-safe.
TIP: prefer [`@AutoAnnotation`] to writing annotation impl... |
55052febb75e9f91e942c3a01eb17b7e2affea1d | basic/om-tut/src/om_tut/core.cljs | basic/om-tut/src/om_tut/core.cljs | (ns om-tut.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(println "A new developer message. Pay attention, dev guy!")
;; define your app data so that it doesn't get over-written on reload
(defonce app-state (atom {:list ["Lion" "Ze... | (ns om-tut.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(println "A new developer message. Pay attention, dev guy!")
;; define your app data so that it doesn't get over-written on reload
(defonce app-state (atom {:list ["Lion" "Ze... | Implement code to render a list of things. | Implement code to render a list of things.
| Clojure | epl-1.0 | mrwizard82d1/om-tutorials | clojure | ## Code Before:
(ns om-tut.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(println "A new developer message. Pay attention, dev guy!")
;; define your app data so that it doesn't get over-written on reload
(defonce app-state (atom {:... |
ce2466431db21f4be23e51c4f366261fcf46f6bc | app/assets/javascripts/lights.coffee | app/assets/javascripts/lights.coffee |
$ ->
$('.update').on 'input', (event) ->
$(this).parent().find('.update').val(this.value)
$('#select_all_btn').on 'click', (e) ->
$('.checkbox').prop 'checked', true
$('#deselect_all_btn').on 'click', (e) ->
$('.checkbox').prop 'checked', false
$('#toggle_all_btn').on 'click',... |
$ ->
$('.update').on 'input', (event) ->
$(this).parent().find('.update').val(this.value)
$('#select_all_btn').on 'click', (e) ->
$('.checkbox').prop 'checked', true
$('#deselect_all_btn').on 'click', (e) ->
$('.checkbox').prop 'checked', false
$('#toggle_all_btn').on 'click',... | Update canvases when a bulb is pressed | Update canvases when a bulb is pressed
| CoffeeScript | mit | cthit/HueIT-Rails,cthit/HueIT-Rails,cthit/HueIT-Rails,cthit/HueIT-Rails | coffeescript | ## Code Before:
$ ->
$('.update').on 'input', (event) ->
$(this).parent().find('.update').val(this.value)
$('#select_all_btn').on 'click', (e) ->
$('.checkbox').prop 'checked', true
$('#deselect_all_btn').on 'click', (e) ->
$('.checkbox').prop 'checked', false
$('#toggle_all_b... |
9dfb4e522bf27498df8047bce30f83aa16b1a3c0 | upload/library/SV/EmailQueue/Listener.php | upload/library/SV/EmailQueue/Listener.php | <?php
class SV_EmailQueue_Listener
{
const AddonNameSpace = 'SV_EmailQueue';
public static function install($installedAddon, array $addonData, SimpleXMLElement $xml)
{
$db = XenForo_Application::getDb();
XenForo_Db::beginTransaction($db);
$db->query("CREATE TABLE IF NOT EXISTS `x... | <?php
class SV_EmailQueue_Listener
{
const AddonNameSpace = 'SV_EmailQueue';
public static function install($installedAddon, array $addonData, SimpleXMLElement $xml)
{
$db = XenForo_Application::getDb();
XenForo_Db::beginTransaction($db);
$db->query("CREATE TABLE IF NOT EXISTS `x... | Use utf8 unicode for collation set | Use utf8 unicode for collation set
| PHP | mit | Xon/XenForo-EmailQueue | php | ## Code Before:
<?php
class SV_EmailQueue_Listener
{
const AddonNameSpace = 'SV_EmailQueue';
public static function install($installedAddon, array $addonData, SimpleXMLElement $xml)
{
$db = XenForo_Application::getDb();
XenForo_Db::beginTransaction($db);
$db->query("CREATE TABLE ... |
d06ef628138eabebf5853ef2a330599083f4925a | assets/styles/components/agreement-details.scss | assets/styles/components/agreement-details.scss | .agreement-details{
.agreement-subject,
.agreement-type{
display: block;
margin-bottom: 1rem;
}
.agreement-partners{
@include clearfix;
margin-bottom: 1rem;
}
.agreement-pis {
@include normalize-listing;
@include clearfix;
display: inline... | .agreement-details{
.agreement-subject,
.agreement-type{
display: block;
margin-bottom: 1rem;
}
.agreement-partners{
@include clearfix;
margin-bottom: 1rem;
}
.agreement-pis {
@include normalize-listing;
@include clearfix;
display: inline... | Set link on new line | Set link on new line
| SCSS | mit | scientilla/scientilla,scientilla/scientilla,scientilla/scientilla | scss | ## Code Before:
.agreement-details{
.agreement-subject,
.agreement-type{
display: block;
margin-bottom: 1rem;
}
.agreement-partners{
@include clearfix;
margin-bottom: 1rem;
}
.agreement-pis {
@include normalize-listing;
@include clearfix;
... |
45f2a26a9bc0c44cee7bad6ddce73f44018b4a41 | .travis.yml | .travis.yml | dist: trusty
sudo: required
language: ruby
cache: bundler
rvm:
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
before_install:
- gem install bundler
before_script:
- sudo service mysql stop
- sudo service postgresql stop
- docker-compose up -d
- function mysql_ping { mysqladmin -u root -h 127.0.0.1 -ppassword ping > ... | dist: trusty
sudo: required
language: ruby
cache: bundler
rvm:
- 2.2.4
- 2.3.0
before_install:
- gem install bundler
before_script:
- sudo service mysql stop
- sudo service postgresql stop
- docker-compose up -d
- function mysql_ping { mysqladmin -u root -h 127.0.0.1 -ppassword ping > /dev/null 2> /dev/nu... | Fix ruby version for spec | Fix ruby version for spec
| YAML | mit | winebarrel/ridgepole | yaml | ## Code Before:
dist: trusty
sudo: required
language: ruby
cache: bundler
rvm:
- 2.0.0
- 2.1.8
- 2.2.4
- 2.3.0
before_install:
- gem install bundler
before_script:
- sudo service mysql stop
- sudo service postgresql stop
- docker-compose up -d
- function mysql_ping { mysqladmin -u root -h 127.0.0.1 -p... |
6c107e1e2cdda46f3682743c511a56aabf5d1efe | .travis.yml | .travis.yml | language: node_js
# Is `sudo` required? If not, jobs are run on container-based infrastructure.
sudo: true
node_js:
# Node.js
- 'node'
- '6'
- '5'
- '4'
# io.js
- '3'
- '2'
- '1'
# Node.js
- '0.12'
- '0.10'
before_install:
# Update the npm client. Older clients cannot, e.g., handle scoped m... | language: node_js
# Is `sudo` required? If not, jobs are run on container-based infrastructure.
sudo: true
os:
- linux
- osx
node_js:
# Node.js
- 'node'
- '6'
- '5'
- '4'
# io.js
- '3'
- '2'
- '1'
# Node.js
- '0.12'
- '0.10'
before_install:
# Update the npm client. Older clients cannot... | Add OS X to build matrix | Add OS X to build matrix
| YAML | apache-2.0 | stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib | yaml | ## Code Before:
language: node_js
# Is `sudo` required? If not, jobs are run on container-based infrastructure.
sudo: true
node_js:
# Node.js
- 'node'
- '6'
- '5'
- '4'
# io.js
- '3'
- '2'
- '1'
# Node.js
- '0.12'
- '0.10'
before_install:
# Update the npm client. Older clients cannot, e.g.,... |
8c2bac0ea3b8edf24b6dc6b6d91f9f95b0e5a782 | scripts/configure_packages.sh | scripts/configure_packages.sh | PACKAGES="emacs24-nox \
git \
nginx-full \
tmux \
openvpn \
python-pillow \
python-virtualenv \
python-pip \
postgresql \
python-psycopg2"
. util.sh
# Ensure that we have root privileges
checkroot
# Install requisite packages
apt-get in... | PACKAGES="emacs24-nox \
git \
nginx-full \
tmux \
openvpn \
python-dev \
python-virtualenv \
python-pip \
postgresql \
libpg-dev"
. util.sh
# Ensure that we have root privileges
checkroot
# Install requisite packages
apt-get i... | Install build dependencies in order for pip to be able to build virtualenv packages. | Install build dependencies in order for pip to be able to build virtualenv packages.
| Shell | mit | ppruitt/site,ppruitt/site | shell | ## Code Before:
PACKAGES="emacs24-nox \
git \
nginx-full \
tmux \
openvpn \
python-pillow \
python-virtualenv \
python-pip \
postgresql \
python-psycopg2"
. util.sh
# Ensure that we have root privileges
checkroot
# Install requisite pac... |
ce95e50b7cb3ef9bbabddb033352aacb96b9237a | pywikibot/families/wikivoyage_family.py | pywikibot/families/wikivoyage_family.py | """Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot import family
class Family(family.Subdomai... | """Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
# The new wikivoyage family that is hosted at wikimedia
from __future__ import absolute_import, unicode_literals
from pywikibot import family
__version__ = '$Id$'
class Family(family.Subdomain... | Add fi:wikivoyage and sort by current article count | Add fi:wikivoyage and sort by current article count
Fix also pycodestyle (former PEP8) E402 problem
Bug: T153470
Change-Id: Id9bc980c7a9cfb21063597a3d5eae11c31d8040c
| Python | mit | Darkdadaah/pywikibot-core,magul/pywikibot-core,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,happy5214/pywikibot-core,magul/pywikibot-core,happy5214/pywikibot-core,Darkdadaah/pywikibot-core,npdoty/pywikibot,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core,hasteur/g13bot_tools_new,jayvdb/pywikibot-core,hasteur/... | python | ## Code Before:
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot import family
class Family... |
344b2d6018ba63f139da4529978587e209d9566b | lib/run_cmd.js | lib/run_cmd.js | 'use strict'
var path = require('path')
var async = require('async')
var config = require('./config')
var child_process = require('child_process')
function runCmd (cwd, argv) {
var scripts = argv._.slice(1)
var pkg = require(path.join(cwd, 'package.json'))
if (!scripts.length) {
var availableScripts = Obje... | 'use strict'
var path = require('path')
var async = require('async')
var config = require('./config')
var child_process = require('child_process')
var assign = require('object-assign')
function runCmd (cwd, argv) {
var scripts = argv._.slice(1)
var pkg = require(path.join(cwd, 'package.json'))
if (!scripts.len... | Refactor env in run command | Refactor env in run command
| JavaScript | mit | alexanderGugel/ied,alexanderGugel/mpm | javascript | ## Code Before:
'use strict'
var path = require('path')
var async = require('async')
var config = require('./config')
var child_process = require('child_process')
function runCmd (cwd, argv) {
var scripts = argv._.slice(1)
var pkg = require(path.join(cwd, 'package.json'))
if (!scripts.length) {
var availab... |
ed3071b753c8dec83a2c054624e49b204553ecd3 | docs/content/en/functions/readfile.md | docs/content/en/functions/readfile.md | ---
title: readFile
description: Reads a file from disk relative to the current project working directory and returns a string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
categories: [functions]
menu:
docs:
parent: "functions"
keywords: [files]
signature: ["readFile PATH"]
workson: []
... | ---
title: readFile
description: Reads a file from disk relative to the current project working directory and returns a string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
categories: [functions]
menu:
docs:
parent: "functions"
keywords: [files]
signature: ["readFile PATH"]
workson: []
... | Remove mention of a file size limit for readFile | docs: Remove mention of a file size limit for readFile
The limit itself was removed in this PR: https://github.com/gohugoio/hugo/pull/8172. | Markdown | apache-2.0 | gohugoio/hugo,gohugoio/hugo,anthonyfok/hugo,gohugoio/hugo,anthonyfok/hugo,anthonyfok/hugo | markdown | ## Code Before:
---
title: readFile
description: Reads a file from disk relative to the current project working directory and returns a string.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-04-30
categories: [functions]
menu:
docs:
parent: "functions"
keywords: [files]
signature: ["readFile PAT... |
ecace3ce31c9bc4b4ab927b43c48645806ac02dc | source/src/main/java/com/linkedin/uif/source/extractor/extract/restapi/SalesforceSource.java | source/src/main/java/com/linkedin/uif/source/extractor/extract/restapi/SalesforceSource.java | package com.linkedin.uif.source.extractor.extract.restapi;
import java.io.IOException;
import com.linkedin.uif.configuration.WorkUnitState;
import com.linkedin.uif.source.extractor.Extractor;
import com.linkedin.uif.source.extractor.exception.ExtractPrepareException;
import com.linkedin.uif.source.extractor.extract.B... | package com.linkedin.uif.source.extractor.extract.restapi;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.linkedin.uif.configuration.WorkUnitState;
import com.linkedin.uif.source.extractor.Extractor;
import com.linkedin.uif.source.extractor... | Use Logging instead of printStackTrace() | Use Logging instead of printStackTrace()
RB=279101
R=stakiar,kgoodhop,lqiao,ynli
A=ynli
| Java | apache-2.0 | yukuai518/gobblin,ydai1124/gobblin-1,pcadabam/gobblin,lbendig/gobblin,yukuai518/gobblin,abti/gobblin,aditya1105/gobblin,sahilTakiar/gobblin,arjun4084346/gobblin,jordancheah/gobblin,mwol/gobblin,jack-moseley/gobblin,chavdar/gobblin-1,jenniferzheng/gobblin,jinhyukchang/gobblin,linkedin/gobblin,ibuenros/gobblin,the100rabh... | java | ## Code Before:
package com.linkedin.uif.source.extractor.extract.restapi;
import java.io.IOException;
import com.linkedin.uif.configuration.WorkUnitState;
import com.linkedin.uif.source.extractor.Extractor;
import com.linkedin.uif.source.extractor.exception.ExtractPrepareException;
import com.linkedin.uif.source.ext... |
d5d9c843a5d9421af28c5a1b4d0607138c69845e | build.sbt | build.sbt | import com.trueaccord.scalapb.{ScalaPbPlugin => PB}
enablePlugins(ScalaJSPlugin)
PB.protobufSettings
PB.runProtoc in PB.protobufConfig := (args =>
com.github.os72.protocjar.Protoc.runProtoc("-v300" +: args.toArray))
name := "ScalaPB on ScalaJS demo"
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"com.t... | import com.trueaccord.scalapb.{ScalaPbPlugin => PB}
enablePlugins(ScalaJSPlugin)
PB.protobufSettings
PB.runProtoc in PB.protobufConfig := (args =>
com.github.os72.protocjar.Protoc.runProtoc("-v300" +: args.toArray))
name := "ScalaPB on ScalaJS demo"
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
"com.t... | Remove explicit dependency on lenses. | Remove explicit dependency on lenses.
| Scala | apache-2.0 | thesamet/scalapbjs-test,thesamet/scalapbjs-test | scala | ## Code Before:
import com.trueaccord.scalapb.{ScalaPbPlugin => PB}
enablePlugins(ScalaJSPlugin)
PB.protobufSettings
PB.runProtoc in PB.protobufConfig := (args =>
com.github.os72.protocjar.Protoc.runProtoc("-v300" +: args.toArray))
name := "ScalaPB on ScalaJS demo"
scalaVersion := "2.11.7"
libraryDependencies +... |
2ede8bae16a1f12187f4f88fc61ef2c8719fadf7 | setup.cfg | setup.cfg | [egg_info]
tag_build = dev
tag_svn_revision = false
[nosetests]
where=tests
verbose=True
detailed-errors=True
with-doctest=True
#with-coverage=True
cover-package=beaker
cover-inclusive=True
|
[nosetests]
where=tests
verbose=True
detailed-errors=True
with-doctest=True
#with-coverage=True
cover-package=beaker
cover-inclusive=True
| Comment to prevent dev releases | Comment to prevent dev releases
| INI | bsd-3-clause | masayuko/beaker,jvanasco/beaker | ini | ## Code Before:
[egg_info]
tag_build = dev
tag_svn_revision = false
[nosetests]
where=tests
verbose=True
detailed-errors=True
with-doctest=True
#with-coverage=True
cover-package=beaker
cover-inclusive=True
## Instruction:
Comment to prevent dev releases
## Code After:
[nosetests]
where=tests
verbose=True
detailed-e... |
4b8f3ae44e26fa4b81895fe7a24d4b9e9435e71e | features/support/header.rb | features/support/header.rb | module HeaderUtils
def set_header(key, value)
header_method = nil
if defined?(page) && ! page.driver.nil?
header_method = [:add_header, :header].find(&page.driver.method(:respond_to?))
end
raise StandardError.new("No header setting method available in current driver: #{page.driver}") unless hea... | module HeaderUtils
def set_header(key, value)
header_method = nil
if defined?(page) && ! page.driver.nil?
header_method = [:add_header, :header].find(&page.driver.method(:respond_to?))
end
raise StandardError.new("No header setting method available in current driver: #{page.driver}") unless hea... | Fix HeaderUtils to support ruby version on CentOS 7 | Fix HeaderUtils to support ruby version on CentOS 7
Apparently, the ruby 2.0.0-p598 (CentOS 7 default) breaks with the code
we were using. This commit replace it with a different syntax that
should be reverted when CentOS 7 updates its ruby.
| Ruby | agpl-3.0 | mezuro/prezento,mezuro/prezento,mezuro/prezento | ruby | ## Code Before:
module HeaderUtils
def set_header(key, value)
header_method = nil
if defined?(page) && ! page.driver.nil?
header_method = [:add_header, :header].find(&page.driver.method(:respond_to?))
end
raise StandardError.new("No header setting method available in current driver: #{page.driv... |
440ee2344609dd37d15b39d030124c22d67e636d | gradle.properties | gradle.properties | ARTIFACT_GROUP=com.jaynewstrom.composite
ARTIFACT_VERSION=0.5.1
ARTIFACT_REPO=Composite
ARTIFACT_DESCRIPTION=Composite - The thing
ARTIFACT_VCS_URL=https://github.com/JayNewstrom/Composite.git
| ARTIFACT_GROUP=com.jaynewstrom.composite
ARTIFACT_VERSION=0.5.2-SNAPSHOT
ARTIFACT_REPO=Composite
ARTIFACT_DESCRIPTION=Composite - The thing
ARTIFACT_VCS_URL=https://github.com/JayNewstrom/Composite.git
| Prepare for next development iteration | Prepare for next development iteration
| INI | apache-2.0 | JayNewstrom/Composite,JayNewstrom/Composite | ini | ## Code Before:
ARTIFACT_GROUP=com.jaynewstrom.composite
ARTIFACT_VERSION=0.5.1
ARTIFACT_REPO=Composite
ARTIFACT_DESCRIPTION=Composite - The thing
ARTIFACT_VCS_URL=https://github.com/JayNewstrom/Composite.git
## Instruction:
Prepare for next development iteration
## Code After:
ARTIFACT_GROUP=com.jaynewstrom.composit... |
b3d9ac20e4fdb9f85665036aba24d42eb6809049 | wm/no-firefox-ctrl-q.sh | wm/no-firefox-ctrl-q.sh | set -euo pipefail
# Based on https://github.com/sasawat/firefox-ctrl-q-workaround
readonly window="$(xdotool getactivewindow)"
readonly name="$(xprop -id "$window" | awk -F '"' '/WM_CLASS/{print $4}')"
if [[ $name != 'Firefox' ]] && [[ $name != 'Firefox Developer Edition' ]]; then
xvkbd -xsendevent -text "\Cq"
fi
| set -euo pipefail
# Based on https://github.com/sasawat/firefox-ctrl-q-workaround
readonly window="$(xdotool getactivewindow)"
readonly name="$(xprop -id "$window" | awk -F '"' '/WM_CLASS/{print $4}')"
case "$name" in
Firefox) ;;
Firefox Developer Edition) ;;
firefoxdeveloperedition) ;;
*) xvkbd -xsendevent -tex... | Add new WM_NAME to Ctrl-Q script. | Add new WM_NAME to Ctrl-Q script.
| Shell | mit | ammongit/scripts,ammongit/scripts,ammongit/scripts,ammongit/scripts | shell | ## Code Before:
set -euo pipefail
# Based on https://github.com/sasawat/firefox-ctrl-q-workaround
readonly window="$(xdotool getactivewindow)"
readonly name="$(xprop -id "$window" | awk -F '"' '/WM_CLASS/{print $4}')"
if [[ $name != 'Firefox' ]] && [[ $name != 'Firefox Developer Edition' ]]; then
xvkbd -xsendevent ... |
32555d56b493f5fb05c7409bd0028072cd1247d1 | README.md | README.md | A Sample Project to be used for examples in https://ralphavalon.wordpress.com/ and https://ralphavalonbr.wordpress.com/
### How to configure ###
* Execute the command:
```
mvn package
```
### About the project ###
* It's a simple project with Spring Boot + Thymeleaf exposing 4 endpoints:
```
/
/create
/rest/
/rest/:... | A Sample Project to be used for examples in https://ralphavalon.wordpress.com/ and https://ralphavalonbr.wordpress.com/
### How to configure ###
* Execute the command:
```
mvn package
```
### About the project ###
* It's a simple project with Spring Boot + Thymeleaf exposing 4 endpoints:
```
/
/create
/rest/
/rest/:... | Add Docker information on Readme | Add Docker information on Readme
| Markdown | mit | ralphavalon/java-sample-project,ralphavalon/java-sample-project | markdown | ## Code Before:
A Sample Project to be used for examples in https://ralphavalon.wordpress.com/ and https://ralphavalonbr.wordpress.com/
### How to configure ###
* Execute the command:
```
mvn package
```
### About the project ###
* It's a simple project with Spring Boot + Thymeleaf exposing 4 endpoints:
```
/
/creat... |
3b23c09c507e3e5b66d85bdc5797c0144b7db949 | data/sql/db-world/trasm_world_NPC.sql | data/sql/db-world/trasm_world_NPC.sql | SET
@Entry = 190010,
@Name = "Warpweaver";
DELETE FROM `creature_template` WHERE `entry` = 190010;
INSERT INTO `creature_template` (`entry`, `modelid1`, `modelid2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `scale`, `rank`, `dmgschool`, `baseattacktime`, `ran... | SET
@Entry = 190010,
@Name = "Warpweaver";
DELETE FROM `creature_template` WHERE `entry` = 190010;
INSERT INTO `creature_template` (`entry`, `modelid1`, `modelid2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `scale`, `rank`, `dmgschool`, `baseattacktime`, `ran... | Remove Inhabit Type for upcoming PR | Remove Inhabit Type for upcoming PR
Remove Inhabit Type for upcoming PR to remove Inhabit Type | SQL | agpl-3.0 | azerothcore/mod-transmog,azerothcore/mod-transmog | sql | ## Code Before:
SET
@Entry = 190010,
@Name = "Warpweaver";
DELETE FROM `creature_template` WHERE `entry` = 190010;
INSERT INTO `creature_template` (`entry`, `modelid1`, `modelid2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `scale`, `rank`, `dmgschool`, `basea... |
c001a1bf9f2b68a39b09f1a66863afc3a72f2a46 | gem_config.rb | gem_config.rb | args = []
ARGV.each { |arg| args << arg if arg =~ /\A--/ }
cmd = "sh configure #{args.join(' ')}"
puts "\n#{cmd}\n\n"
rc = system(cmd)
if rc
puts "RMagick configuration completed successfully."
else
puts "RMagick configuration failed with status #{$?.exitstatus}."
end
exit $?.exitstatus
| OPTIONS = %w{ bindir sbindir libexecdir datadir sysconfdir sharedstatedir
localstatedir libdir includedir oldincludedir infodir mandir
disable enable with without help version quiet silent cache-file
config-cache no-create srcdir prefix exec-prefix}.join('|')
args = []
ARGV.e... | Discard options that are not valid for the configure script | Discard options that are not valid for the configure script
| Ruby | mit | rmagick-temp/rmagick,pecha7x/rmagick,rmagick/rmagick,antonifs/rmagick,btakita/rmagick,chand3040/Rmagic,prognostikos/rmagick,modulexcite/rmagick,carsonreinke/rmagick,apecherin/rmagick,mockdeep/rmagick,tvon/rmagick,antonifs/rmagick,btakita/rmagick,mockdeep/rmagick,carsonreinke/rmagick,tvon/rmagick,mockdeep/rmagick,pecha7... | ruby | ## Code Before:
args = []
ARGV.each { |arg| args << arg if arg =~ /\A--/ }
cmd = "sh configure #{args.join(' ')}"
puts "\n#{cmd}\n\n"
rc = system(cmd)
if rc
puts "RMagick configuration completed successfully."
else
puts "RMagick configuration failed with status #{$?.exitstatus}."
end
exit $?.exitstatus
## ... |
d81f8dc52e0102f14958c2cb2bb61b26d22895a9 | composer.json | composer.json | {
"name": "silverstripe/externallinks",
"description": "Adds tracking of external broken links to the SilverStripe CMS",
"type": "silverstripe-module",
"keywords": [
"silverstripe",
"broken",
"links",
"href"
],
"license": "BSD-3-Clause",
"authors": [
{... | {
"name": "silverstripe/externallinks",
"description": "Adds tracking of external broken links to the SilverStripe CMS",
"type": "silverstripe-module",
"keywords": [
"silverstripe",
"broken",
"links",
"href"
],
"license": "BSD-3-Clause",
"authors": [
{... | Update branch alias for 1.1.x-dev | Update branch alias for 1.1.x-dev
| JSON | bsd-3-clause | silverstripe-labs/silverstripe-externallinks,silverstripe-labs/silverstripe-externallinks | json | ## Code Before:
{
"name": "silverstripe/externallinks",
"description": "Adds tracking of external broken links to the SilverStripe CMS",
"type": "silverstripe-module",
"keywords": [
"silverstripe",
"broken",
"links",
"href"
],
"license": "BSD-3-Clause",
"autho... |
d83fdab2850e735a29b957630dd4d23a9e45cee1 | .travis.yml | .travis.yml | branches:
only:
- master
language:
- c
compiler:
- gcc
- clang
install:
- sudo apt-get update -qq
- sudo apt-get install -y irssi-dev libssl-dev cmake
- cd ${TRAVIS_BUILD_DIR}
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz
- tar xf lcov_1.13.orig.tar.gz
- sudo... | branches:
only:
- master
- refactoring
language:
- c
compiler:
- gcc
- clang
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y irssi-dev libssl-dev cmake
script:
- cmake .
- make
| Revert "Try to add coveralls.io support" | Revert "Try to add coveralls.io support"
This reverts commit 06f99655e2596b567c034e2ee450477d2a7b9678.
| YAML | mit | falsovsky/FiSH-irssi | yaml | ## Code Before:
branches:
only:
- master
language:
- c
compiler:
- gcc
- clang
install:
- sudo apt-get update -qq
- sudo apt-get install -y irssi-dev libssl-dev cmake
- cd ${TRAVIS_BUILD_DIR}
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.13.orig.tar.gz
- tar xf lcov_1.13.orig... |
9cbd457d1a5e07cfe96a1c73ef5603f26b83cb35 | src/typing/refinement.mli | src/typing/refinement.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val key : allow_optional:bool -> ('loc, 'loc) Flow_ast.Expression.t -> Key.t option
val get :
allow_optional:bool -> Context.t -... | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val key : allow_optional:bool -> ('loc, 't) Flow_ast.Expression.t -> Key.t option
val get :
allow_optional:bool -> Context.t -> ... | Make Refinement API accept typed AST as well | Make Refinement API accept typed AST as well
Summary: It doesn't matter functionality wise for refinement.ml if the AST is typed or not. So allow the typed AST to be able to be passed.
Reviewed By: mroch
Differential Revision: D21343900
fbshipit-source-id: 6c6a882cf773985bab63dbedf91afa1cc0fac4d8
| OCaml | mit | nmote/flow,nmote/flow,nmote/flow,nmote/flow,nmote/flow,nmote/flow,nmote/flow | ocaml | ## Code Before:
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val key : allow_optional:bool -> ('loc, 'loc) Flow_ast.Expression.t -> Key.t option
val get :
allow_optional:boo... |
d97a8336415975326aed310853e8f0db8fdfc351 | week-1/web-basics-reflection.md | week-1/web-basics-reflection.md |
- Browser:
- DNS:
- Domain:
- Internet:
- IP address:
- Web app:
- Web server:
- Website:
- World wide web:
Explain how the internet displays your website after you push your changes.
## Part 2: Reflection
- What 2 new things did you learn about the web?
- How did you feel when you saw your web page live?
- Did you... |
- Browser: software on your local computer that displays websites
- DNS: Domain name server, mechanism for converting textual web address (www.cnn.com) to IP address
- Domain:
- Internet: The "wire" that carries digital traffic of all sorts
- IP address: The unique numeric code for a given "place" on the internet, m... | Create content for web-basics reflection | Create content for web-basics reflection
| Markdown | mit | JonClayton/phase-0,JonClayton/phase-0,JonClayton/phase-0 | markdown | ## Code Before:
- Browser:
- DNS:
- Domain:
- Internet:
- IP address:
- Web app:
- Web server:
- Website:
- World wide web:
Explain how the internet displays your website after you push your changes.
## Part 2: Reflection
- What 2 new things did you learn about the web?
- How did you feel when you saw your web page... |
f2681dcb366c05f5beb4eb04ba08dcdca624a92f | .gitlab-ci.yml | .gitlab-ci.yml | image: mvdan/fdroid-ci:latest
test:
script:
- apt-get update
- apt-get install -y python-dev gcc
- cd tests
- ./complete-ci-tests
| image: mvdan/fdroid-ci:latest
test:
script:
- apt-get update
- apt-get install -y python3-dev gcc
- pip3 install -e .
- cd tests
- ./complete-ci-tests
| Use pip install to grab all deps | CI: Use pip install to grab all deps
| YAML | agpl-3.0 | f-droid/fdroidserver,f-droid/fdroidserver,f-droid/fdroidserver,f-droid/fdroid-server,f-droid/fdroidserver,fdroidtravis/fdroidserver,fdroidtravis/fdroidserver,fdroidtravis/fdroidserver,f-droid/fdroid-server,f-droid/fdroid-server,f-droid/fdroid-server,fdroidtravis/fdroidserver,f-droid/fdroidserver,f-droid/fdroid-server | yaml | ## Code Before:
image: mvdan/fdroid-ci:latest
test:
script:
- apt-get update
- apt-get install -y python-dev gcc
- cd tests
- ./complete-ci-tests
## Instruction:
CI: Use pip install to grab all deps
## Code After:
image: mvdan/fdroid-ci:latest
test:
script:
- apt-get update
- apt-get ins... |
00b11ba3f47580e592b29bac70a4f2678e3f4379 | mikemcquaid.com-backup.sh | mikemcquaid.com-backup.sh | set -e
LOCAL=/home/mike/Documents/Backup/Local
REMOTE=/home/mike/Documents/Backup/Remote
# Backup Wordpress files
cd /var/www/
tar jvcf $LOCAL/wordpress.tar.bz2 *
# Backup home directory web files
cd /home/mike/Sites/work/
tar jvcf $LOCAL/work.tar.bz2 *
# Backup Wordpress database
USERNAME=$(grep DB_USER /var/www/w... | set -e
LOCAL=/home/mike/Documents/Backup/Local
REMOTE=/home/mike/Documents/Backup/Remote
# Backup Wordpress files
cd /var/www/
tar jvcf $LOCAL/wordpress.tar.bz2 *
# Backup Wordpress database
USERNAME=$(grep DB_USER /var/www/wp-config.php | awk -F "'" '{print $4}')
DATABASE=$(grep DB_NAME /var/www/wp-config.php | awk... | Stop backing up non-existent work directory. | Stop backing up non-existent work directory.
| Shell | mit | mikemcquaid/scripts,mikemcquaid/scripts | shell | ## Code Before:
set -e
LOCAL=/home/mike/Documents/Backup/Local
REMOTE=/home/mike/Documents/Backup/Remote
# Backup Wordpress files
cd /var/www/
tar jvcf $LOCAL/wordpress.tar.bz2 *
# Backup home directory web files
cd /home/mike/Sites/work/
tar jvcf $LOCAL/work.tar.bz2 *
# Backup Wordpress database
USERNAME=$(grep DB... |
fb649a547fb4f93e356b7df01885ab66075e6149 | app/views/exercise_submissions/_form.html.erb | app/views/exercise_submissions/_form.html.erb | <%= form_for([@exercise, @submission], html: {role: 'form'}) do |f| %>
<% if @submission.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@submission.errors.count, "error") %> prohibited this submission from being saved:</h2>
<ul>
<% @submission.errors.full_messages.each do |messag... | <%= form_for([@exercise, @submission], html: {role: 'form'}) do |f| %>
<% if @submission.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@submission.errors.count, "error") %> prohibited this submission from being saved:</h2>
<ul>
<% @submission.errors.full_messages.each do |messag... | Add exercise description on new submission | Add exercise description on new submission
| HTML+ERB | agpl-3.0 | mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory | html+erb | ## Code Before:
<%= form_for([@exercise, @submission], html: {role: 'form'}) do |f| %>
<% if @submission.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@submission.errors.count, "error") %> prohibited this submission from being saved:</h2>
<ul>
<% @submission.errors.full_messages... |
ef40391595632b620b97fea2d61f89484b193c2b | css/editor.css | css/editor.css | .text-editor {
position: absolute;
top: 0;
left: 0;
padding: 0;
margin: 0;
}
.text-editor div {
overflow: hidden;
margin: 0;
padding: 0;
}
.edit-name {
margin-top: 1px;
height: 30%;
-moz-user-modify: read-write-plaintext-only;
-webkit-user-modify: read-write-plainte... | .text-editor {
position: absolute;
top: 0;
left: 0;
padding: 0;
margin: 0;
}
.text-editor div {
overflow: hidden;
margin: 0;
padding: 0;
}
.edit-name {
margin-top: 1px;
height: 50%;
-moz-user-modify: read-write-plaintext-only;
-webkit-user-modify: read-write-plainte... | Put a dividing line between name and description in edit mode. Made them take up half the space each. Description now has smaller text. | Put a dividing line between name and description in edit mode. Made them
take up half the space each. Description now has smaller text.
| CSS | mit | cse-bristol/process-model,cse-bristol/process-model,cse-bristol/process-model | css | ## Code Before:
.text-editor {
position: absolute;
top: 0;
left: 0;
padding: 0;
margin: 0;
}
.text-editor div {
overflow: hidden;
margin: 0;
padding: 0;
}
.edit-name {
margin-top: 1px;
height: 30%;
-moz-user-modify: read-write-plaintext-only;
-webkit-user-modify: re... |
f04feb3b502ea507ae83b55be61809c289c20625 | README.md | README.md |
This is my attempt at fixing all [Advent Of Code](http://adventofcode.com/2016) challanges. i know, i know. Advent is quite some time ago now but what gives, it still seems like a fun challange to me. Also note that I'm new to [Rust](http://rust-lang.org) and I'm using these challanges to get familiar with it so the c... |
This is my attempt at fixing all [Advent Of Code](http://adventofcode.com/2016) challanges. i know, i know. Advent is quite some time ago now but what gives, it still seems like a fun challange to me. Also note that I'm new to [Rust](http://rust-lang.org) and I'm using these challanges to get familiar with it so the c... | Add day 4 to readme | Add day 4 to readme | Markdown | mit | Tmw/advent-of-code-2016 | markdown | ## Code Before:
This is my attempt at fixing all [Advent Of Code](http://adventofcode.com/2016) challanges. i know, i know. Advent is quite some time ago now but what gives, it still seems like a fun challange to me. Also note that I'm new to [Rust](http://rust-lang.org) and I'm using these challanges to get familiar ... |
6d400878da6b8cbf7092bd57c5eefac935d6cff8 | src/main/groovy/org/geocommands/vector/LayerOutCommand.groovy | src/main/groovy/org/geocommands/vector/LayerOutCommand.groovy | package org.geocommands.vector
import geoscript.layer.Layer
import geoscript.workspace.Memory
import org.geocommands.Command
/**
* A Command base class for writing Layers.
* @author Jared Erickson
*/
abstract class LayerOutCommand<T extends LayerOutOptions> extends Command<T> {
abstract String getName()
... | package org.geocommands.vector
import geoscript.layer.Layer
import geoscript.workspace.Memory
import org.geocommands.Command
/**
* A Command base class for writing Layers.
* @author Jared Erickson
*/
abstract class LayerOutCommand<T extends LayerOutOptions> extends Command<T> {
abstract String getName()
... | Fix output layer default name calculation. | Fix output layer default name calculation.
| Groovy | mit | jericks/geoc,jericks/geoc | groovy | ## Code Before:
package org.geocommands.vector
import geoscript.layer.Layer
import geoscript.workspace.Memory
import org.geocommands.Command
/**
* A Command base class for writing Layers.
* @author Jared Erickson
*/
abstract class LayerOutCommand<T extends LayerOutOptions> extends Command<T> {
abstract String... |
6b473271967984ecb8788a87da0eefcc3f94a5ff | src/gitlab.ts | src/gitlab.ts | import Renderer from './renderer'
class GitLabRenderer extends Renderer {
renderSwitch() {
}
getCodeDOM() {
return <HTMLElement>document.querySelector('.blob-content code')
}
getFontWidth() {
const $ = <HTMLElement>document.querySelector('#LC1 > span')
return $.getBoundingClientRect().width / $... | import Renderer from './renderer'
class GitLabRenderer extends Renderer {
renderSwitch() {
}
getCodeDOM() {
return <HTMLElement>document.querySelector('.blob-content code')
}
getCode() {
const lines = this.$code.children
return [].map.call(lines, line => line.innerText).join('\n')
}
getFon... | Fix GitLab missing empty line | Fix GitLab missing empty line
| TypeScript | mit | pd4d10/intelli-octo,pd4d10/intelli-octo,pd4d10/intelli-octo | typescript | ## Code Before:
import Renderer from './renderer'
class GitLabRenderer extends Renderer {
renderSwitch() {
}
getCodeDOM() {
return <HTMLElement>document.querySelector('.blob-content code')
}
getFontWidth() {
const $ = <HTMLElement>document.querySelector('#LC1 > span')
return $.getBoundingClient... |
08082d5413d9d96edefed1d2b124008567793e06 | app/assets/stylesheets/videos.css | app/assets/stylesheets/videos.css | .filters {
display: flex;
flex-direction: row;
.filters-left {
display: flex;
flex: 4;
justify-content: flex-start;
.sort {
margin-right: 10px;
.form-control {
width: auto;
height: 46px;
}
}
.add-filter {
margin-right: 10px;
align-self: fle... | .filters {
display: flex;
flex-direction: row;
.filters-left {
display: flex;
flex: 4;
justify-content: flex-start;
.sort {
margin-right: 10px;
margin-bottom: 10px;
.form-control {
width: auto;
height: 46px;
}
}
.add-filter {
margin-right: ... | Add margin to sort to prevent jumping when adding filter | Add margin to sort to prevent jumping when adding filter
| CSS | mit | schneidmaster/debatevid.io,schneidmaster/debatevid.io,schneidmaster/debatevid.io | css | ## Code Before:
.filters {
display: flex;
flex-direction: row;
.filters-left {
display: flex;
flex: 4;
justify-content: flex-start;
.sort {
margin-right: 10px;
.form-control {
width: auto;
height: 46px;
}
}
.add-filter {
margin-right: 10px;
... |
bfbaa05aaed6c4f0d50729f0638e9e78058ea0c6 | packages/hp/HPhone.yaml | packages/hp/HPhone.yaml | homepage: https://github.com/vijayanant/HPhone
changelog-type: markdown
hash: d11079e4be2f559145989fa393758a9dc0eb5d8e00f46c51b99ce5028816a48f
test-bench-deps:
base: -any
hspec: -any
HPhone: -any
maintainer: ! 'vijay.hassan@gmail.com,
raghu.ugare@gmail.com'
synopsis: Phone number parser and validator
changelog... | homepage: ''
changelog-type: markdown
hash: 7a1f8fcd862807860fe7369674d2e0a44dc8eb6850e756f17024a92da185470c
test-bench-deps:
base: -any
hspec: -any
HPhone: -any
maintainer: ! 'vijay.hassan@gmail.com,
raghu.ugare@gmail.com'
synopsis: Phone number parser and validator
changelog: ! '# Revision history for HPhone... | Update from Hackage at 2016-06-23T09:42:49+0000 | Update from Hackage at 2016-06-23T09:42:49+0000
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/vijayanant/HPhone
changelog-type: markdown
hash: d11079e4be2f559145989fa393758a9dc0eb5d8e00f46c51b99ce5028816a48f
test-bench-deps:
base: -any
hspec: -any
HPhone: -any
maintainer: ! 'vijay.hassan@gmail.com,
raghu.ugare@gmail.com'
synopsis: Phone number parser and val... |
da1ba5381fddb1e52b8c73b5e6ff4754fb10120e | .travis.yml | .travis.yml | sudo: required
dist: trusty
language: generic
services:
- docker
install:
# Setup tools.
- sudo ./tools/setup_tools.sh
# Build images.
- ./server/build.sh
- ./client/build.sh
script:
# Test server.
- ./server/test.sh
- ./server/run.sh
# Test client.
- ./client/test.sh
# Verify that docs build... | sudo: required
dist: trusty
language: generic
services:
- docker
install:
# Setup tools.
- sudo ./tools/setup_tools.sh
# Build images.
- ./server/build.sh
- ./client/build.sh
script:
# Test server.
- ./server/test.sh
- ./server/run.sh && sleep 30
# Test client.
- ./client/test.sh
# Verify tha... | Add sleep to decrease flakiness. | Add sleep to decrease flakiness.
| YAML | apache-2.0 | auvsi-suas/interop,auvsi-suas/interop,auvsi-suas/interop,auvsi-suas/interop | yaml | ## Code Before:
sudo: required
dist: trusty
language: generic
services:
- docker
install:
# Setup tools.
- sudo ./tools/setup_tools.sh
# Build images.
- ./server/build.sh
- ./client/build.sh
script:
# Test server.
- ./server/test.sh
- ./server/run.sh
# Test client.
- ./client/test.sh
# Verify... |
d5e7c8e0a1403fbed577a4953760031c48f2ad06 | README.rdoc | README.rdoc | {<img src="https://hakiri.io/github/jordimassaguerpla/dc-update-web/master.svg" alt="security" />}[https://hakiri.io/github/jordimassaguerpla/dc-update-web/master]
Web interface for updating docker containments (see dc-update project)
| Web interface for updating docker containments (see dc-update project)
| Revert "add hakiri badge for security review" | Revert "add hakiri badge for security review"
This reverts commit 9d61b49422d54c7f85b85ae03c8100e7030e97bd.
| RDoc | mit | jordimassaguerpla/dc-update-web,jordimassaguerpla/dc-update-web,jordimassaguerpla/dc-update-web | rdoc | ## Code Before:
{<img src="https://hakiri.io/github/jordimassaguerpla/dc-update-web/master.svg" alt="security" />}[https://hakiri.io/github/jordimassaguerpla/dc-update-web/master]
Web interface for updating docker containments (see dc-update project)
## Instruction:
Revert "add hakiri badge for security review"
This... |
79278824c6433ef6634532a1b5192961acc248a4 | libqimessaging/c/qimessaging/c/object_c.h | libqimessaging/c/qimessaging/c/object_c.h | /*
**
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#ifndef _QIMESSAGING_OBJECT_H_
#define _QIMESSAGING_OBJECT_H_
#include <qimessaging/c/api_c.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct qi_object_t_s {} qi_object_t;
//forward de... | /*
**
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#ifndef _QIMESSAGING_OBJECT_H_
#define _QIMESSAGING_OBJECT_H_
#include <qimessaging/c/api_c.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct qi_object_t_s {} qi_object_t;
//forward de... | Remove unnecessary API export on typedef | Remove unnecessary API export on typedef
Change-Id: Id9b225ad5a7a645763f4377c7f949e9c9bd4f890
Reviewed-on: http://gerrit.aldebaran.lan:8080/4588
Reviewed-by: llec <42f1a1c02cacc0f5b0188f0127ea77bedfdcf21a@aldebaran-robotics.com>
Tested-by: llec <42f1a1c02cacc0f5b0188f0127ea77bedfdcf21a@aldebaran-robotics.com>
| C | bsd-3-clause | bsautron/libqi,aldebaran/libqi,aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi-java,vbarbaresi/libqi | c | ## Code Before:
/*
**
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#ifndef _QIMESSAGING_OBJECT_H_
#define _QIMESSAGING_OBJECT_H_
#include <qimessaging/c/api_c.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct qi_object_t_s {} qi_object_t;... |
85d1b882b5967977e7aa7518f35283527f4b366b | .eslintrc.yml | .eslintrc.yml |
extends:
- modular/best-practices
- modular/style
- modular/es6
- modular/node
|
root: true
extends:
- modular/best-practices
- modular/style
- modular/es6
- modular/node
| Mark the ESLint config as the root one for the project | Mark the ESLint config as the root one for the project
| YAML | mit | BigstickCarpet/sourcemapify | yaml | ## Code Before:
extends:
- modular/best-practices
- modular/style
- modular/es6
- modular/node
## Instruction:
Mark the ESLint config as the root one for the project
## Code After:
root: true
extends:
- modular/best-practices
- modular/style
- modular/es6
- modular/node
|
25bccfb716b0be0d7f9aff744ba9b48f14262f5e | lib/fba_reconcile.rb | lib/fba_reconcile.rb | require 'tiny_tds'
require 'mws-rb'
require 'yaml'
require_relative 'fba_reconcile/tools'
require_relative 'fba_reconcile/process'
require_relative 'fba_reconcile/api'
require_relative 'fba_reconcile/fba'
require_relative 'fba_reconcile/database'
require_relative 'fba_reconcile/version'
# load config params
CFG = YAM... | require 'tiny_tds'
require 'mws-rb'
require 'yaml'
require_relative 'fba_reconcile/tools'
require_relative 'fba_reconcile/process'
require_relative 'fba_reconcile/api'
require_relative 'fba_reconcile/fba'
require_relative 'fba_reconcile/database'
require_relative 'fba_reconcile/version'
# load config params
CFG = YAM... | Add recommendation report request + output | Add recommendation report request + output
| Ruby | mit | dlachasse/fba_reconciler,dlachasse/fba_reconciler | ruby | ## Code Before:
require 'tiny_tds'
require 'mws-rb'
require 'yaml'
require_relative 'fba_reconcile/tools'
require_relative 'fba_reconcile/process'
require_relative 'fba_reconcile/api'
require_relative 'fba_reconcile/fba'
require_relative 'fba_reconcile/database'
require_relative 'fba_reconcile/version'
# load config ... |
eb674c1f09b59bbce3e2a9e41d68544af9a2aa33 | locales/fy-NL/addon.properties | locales/fy-NL/addon.properties | experiment_list_enabled = Ynskeakele
experiment_list_new_experiment = Nij eksperimint
experiment_list_view_all = Alle eksperiminten besjen
experiment_eol_tomorrow_message = Einiget moarn
experiment_eol_soon_message = Einiget ynkoarten
experiment_eol_complete_message = Eksperimint foltôge
installed_message = <strong>T... | experiment_list_enabled = Ynskeakele
experiment_list_new_experiment = Nij eksperimint
experiment_list_view_all = Alle eksperiminten besjen
experiment_eol_tomorrow_message = Einiget moarn
experiment_eol_soon_message = Einiget ynkoarten
experiment_eol_complete_message = Eksperimint foltôge
installed_message = <strong>T... | Update Frisian (fy-NL) localization of Test Pilot Website | Pontoon: Update Frisian (fy-NL) localization of Test Pilot Website
| INI | mpl-2.0 | lmorchard/testpilot,flodolo/testpilot,flodolo/testpilot,lmorchard/testpilot,meandavejustice/testpilot,lmorchard/testpilot,chuckharmston/testpilot,lmorchard/idea-town,mozilla/idea-town,lmorchard/idea-town-server,flodolo/testpilot,fzzzy/testpilot,mozilla/idea-town-server,chuckharmston/testpilot,flodolo/testpilot,mozilla/... | ini | ## Code Before:
experiment_list_enabled = Ynskeakele
experiment_list_new_experiment = Nij eksperimint
experiment_list_view_all = Alle eksperiminten besjen
experiment_eol_tomorrow_message = Einiget moarn
experiment_eol_soon_message = Einiget ynkoarten
experiment_eol_complete_message = Eksperimint foltôge
installed_mes... |
08f624580e3d500e2c84bf5d9804755194bdc68a | test/unit/webhookr/ostruct_utils_test.rb | test/unit/webhookr/ostruct_utils_test.rb |
require 'test_helper'
require 'webhookr/ostruct_utils'
require 'ostruct'
class OstructUtilsTest < ActiveSupport::TestCase
def setup
@hash = { a: { b: { c: 1 } }, a1: [ { b1: { c1: 1 } } ] }
@converted = Webhookr::OstructUtils.to_ostruct(@hash)
end
test "should be an OpenStruct" do
assert(@converted... |
require 'test_helper'
require 'webhookr/ostruct_utils'
require 'ostruct'
class OstructUtilsTest < ActiveSupport::TestCase
def setup
@hash = { a: { b: { c: 1 } }, a1: [ { b1: { c1: 1 } } ] }
@converted = Webhookr::OstructUtils.to_ostruct(@hash)
end
test "should be an OpenStruct" do
assert_instance_o... | Use specific assertions instead of `assert`. | Use specific assertions instead of `assert`.
| Ruby | mit | zoocasa/webhookr,dark-panda/webhookr,dark-panda/webhookr,zoocasa/webhookr,dark-panda/webhookr,zoocasa/webhookr | ruby | ## Code Before:
require 'test_helper'
require 'webhookr/ostruct_utils'
require 'ostruct'
class OstructUtilsTest < ActiveSupport::TestCase
def setup
@hash = { a: { b: { c: 1 } }, a1: [ { b1: { c1: 1 } } ] }
@converted = Webhookr::OstructUtils.to_ostruct(@hash)
end
test "should be an OpenStruct" do
a... |
cb717d1fd8bad44e9627e8056fb33a66850b0c83 | src/main/java/it/sieradzki/userscript_parser/Userscript.java | src/main/java/it/sieradzki/userscript_parser/Userscript.java | package it.sieradzki.userscript_parser;
import it.sieradzki.userscript_parser.metadata.ExecuteRules;
import it.sieradzki.userscript_parser.metadata.GrantedApi;
import it.sieradzki.userscript_parser.metadata.RunAt;
import it.sieradzki.userscript_parser.metadata.Version;
import java.net.URL;
import java.util.Set;
/**
... | package it.sieradzki.userscript_parser;
import it.sieradzki.userscript_parser.metadata.ExecuteRules;
import it.sieradzki.userscript_parser.metadata.GrantedApi;
import it.sieradzki.userscript_parser.metadata.RunAt;
import it.sieradzki.userscript_parser.metadata.Version;
import java.net.URL;
import java.util.Set;
/**
... | Add opening and closing tag constants | Add opening and closing tag constants
| Java | mit | kuc/Userscript-parser | java | ## Code Before:
package it.sieradzki.userscript_parser;
import it.sieradzki.userscript_parser.metadata.ExecuteRules;
import it.sieradzki.userscript_parser.metadata.GrantedApi;
import it.sieradzki.userscript_parser.metadata.RunAt;
import it.sieradzki.userscript_parser.metadata.Version;
import java.net.URL;
import java... |
3e7c9e5c906954baa08855753153af1179708694 | README.md | README.md | [](https://travis-ci.org/limitd/protocol)
This repository contains the definition of the limitd protocol.
> **Warning:** it contains some `.js` files for tests but it is not intended for node.js only.
Implementors of client libraries are supposed to use this ... | [](https://travis-ci.org/limitd/protocol)
This repository contains the definition of the limitd protocol.
> **Warning:** it contains some `.js` files for tests but it is not intended for node.js only.
Implementors of client libraries are supposed to use this ... | Add warning about generating files | Add warning about generating files
| Markdown | mit | limitd/protocol | markdown | ## Code Before:
[](https://travis-ci.org/limitd/protocol)
This repository contains the definition of the limitd protocol.
> **Warning:** it contains some `.js` files for tests but it is not intended for node.js only.
Implementors of client libraries are suppo... |
a26b7700d7db7da8aeaed94e9ab0406d70893354 | gradle.properties | gradle.properties | ehcacheVersion = 3.10-SNAPSHOT
# Terracotta third parties
offheapVersion = 2.5.3
statisticVersion = 2.1.2
jcacheVersion = 1.1.0
slf4jVersion = 1.7.36
sizeofVersion = 0.4.3
# Terracotta clustered
terracottaPlatformVersion = 5.9.10
terracottaApisVersion = 1.8.2
terracottaCoreVersion = 5.9.5
terracottaPassthroughTesting... | ehcacheVersion = 3.10-SNAPSHOT
# Terracotta third parties
offheapVersion = 2.5.3
statisticVersion = 2.1.2
jcacheVersion = 1.1.0
slf4jVersion = 1.7.36
sizeofVersion = 0.4.3
# Terracotta clustered
terracottaPlatformVersion = 5.9.11
terracottaApisVersion = 1.8.2
terracottaCoreVersion = 5.9.5
terracottaPassthroughTesting... | Update to Platform 5.9.11 and Jackson 2.13.4 | Update to Platform 5.9.11 and Jackson 2.13.4
| INI | apache-2.0 | ehcache/ehcache3,albinsuresh/ehcache3,chrisdennis/ehcache3,cljohnso/ehcache3,chrisdennis/ehcache3,jhouserizer/ehcache3,cljohnso/ehcache3,albinsuresh/ehcache3,jhouserizer/ehcache3,ehcache/ehcache3 | ini | ## Code Before:
ehcacheVersion = 3.10-SNAPSHOT
# Terracotta third parties
offheapVersion = 2.5.3
statisticVersion = 2.1.2
jcacheVersion = 1.1.0
slf4jVersion = 1.7.36
sizeofVersion = 0.4.3
# Terracotta clustered
terracottaPlatformVersion = 5.9.10
terracottaApisVersion = 1.8.2
terracottaCoreVersion = 5.9.5
terracottaPa... |
e624f510a79aaa2b7264b55ce0d59c80a0321ee6 | clients/mobile-lib/src/main/java/org/openecard/mobile/activation/EacControllerFactory.java | clients/mobile-lib/src/main/java/org/openecard/mobile/activation/EacControllerFactory.java | /****************************************************************************
* Copyright (C) 2019 ecsec GmbH.
* All rights reserved.
* Contact: ecsec GmbH (info@ecsec.de)
*
* This file is part of the Open eCard App.
*
* GNU General Public License Usage
* This file may be used under the terms of the GNU General... | /****************************************************************************
* Copyright (C) 2019 ecsec GmbH.
* All rights reserved.
* Contact: ecsec GmbH (info@ecsec.de)
*
* This file is part of the Open eCard App.
*
* GNU General Public License Usage
* This file may be used under the terms of the GNU General... | Make URL a string because of iOS build problems. | Make URL a string because of iOS build problems.
| Java | apache-2.0 | ecsec/open-ecard,ecsec/open-ecard,ecsec/open-ecard | java | ## Code Before:
/****************************************************************************
* Copyright (C) 2019 ecsec GmbH.
* All rights reserved.
* Contact: ecsec GmbH (info@ecsec.de)
*
* This file is part of the Open eCard App.
*
* GNU General Public License Usage
* This file may be used under the terms of... |
a02c2b6365780999ab03c959a070ba1f633af9e8 | registry-integration-tests/src/test/java/org/gbif/ws/client/filter/SimplePrincipalProvider.java | registry-integration-tests/src/test/java/org/gbif/ws/client/filter/SimplePrincipalProvider.java | /*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | /*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | Replace deprecated auth class with alternatives | Replace deprecated auth class with alternatives
| Java | apache-2.0 | gbif/registry,gbif/registry | java | ## Code Before:
/*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
a4fc144d379ad8110eef7df94ac8ba1a713b5440 | package.json | package.json | {
"name": "gulp-maven-deploy",
"version": "1.0.0-beta.1",
"description": "Simple gulp plugin for the maven-deploy module",
"main": "index.js",
"scripts": {
"test": "mocha --require test/setup.js test/**/*Test.js && jshint --config .jshintrc index.js lib test"
},
"keywords": [
"maven",
"gulp",
... | {
"name": "gulp-maven-deploy",
"version": "1.0.0-beta.1",
"description": "Simple gulp plugin for the maven-deploy module",
"main": "index.js",
"scripts": {
"test": "mocha --require test/setup.js test/**/*Test.js && jshint --config .jshintrc index.js lib test"
},
"keywords": [
"maven",
"gulp",
... | Add peer dependency to vinyl 1.1.1 | Add peer dependency to vinyl 1.1.1
| JSON | mit | micha149/gulp-maven-deploy | json | ## Code Before:
{
"name": "gulp-maven-deploy",
"version": "1.0.0-beta.1",
"description": "Simple gulp plugin for the maven-deploy module",
"main": "index.js",
"scripts": {
"test": "mocha --require test/setup.js test/**/*Test.js && jshint --config .jshintrc index.js lib test"
},
"keywords": [
"mave... |
28da72f4dc1c2167636053bf734f466dff9bd4b8 | src/components/game/current-game-title.jsx | src/components/game/current-game-title.jsx | // @flow
import {h} from 'preact'
import {connect} from 'preact-redux'
import {translate} from 'react-i18next'
import {GameStage} from '../../game-stage'
import style from '../titles.css'
import type {GameState} from '../../reducer/current-game'
import type {T} from '../../types'
function DisconnectedCurrentGameTitle... | // @flow
import {h} from 'preact'
import {connect} from 'preact-redux'
import {translate} from 'react-i18next'
import {gameTitleSelector} from '../../selectors/game-title'
import style from '../titles.css'
function DisconnectedCurrentGameTitle({title}) {
return <h1 className={style.title}>{title}</h1>
}
function ma... | Use game title selector in current game title component | Use game title selector in current game title component
| JSX | mit | Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc | jsx | ## Code Before:
// @flow
import {h} from 'preact'
import {connect} from 'preact-redux'
import {translate} from 'react-i18next'
import {GameStage} from '../../game-stage'
import style from '../titles.css'
import type {GameState} from '../../reducer/current-game'
import type {T} from '../../types'
function Disconnected... |
eec3e233cc9aaf8609c8606b01a53bb88173dd02 | views/fragments/header.html.twig | views/fragments/header.html.twig | <div id="title"><a href="{{ path('list') }}">Micrometa</a></div>
<nav>
<ul>
<li><a href="{{ path('list') }}">Liste</a></li>
<li><a href="{{ path('upload') }}">Ajouter</a></li>
<!-- <li>Carte</li> -->
</ul>
</nav>
| <div id="title"><a href="{{ path('list') }}">Micrometa</a></div>
<nav>
<ul>
<li><a href="{{ path('list') }}">Liste</a></li>
<li><a href="{{ path('map') }}">Carte</a></li>
<li><a href="{{ path('upload') }}">Ajouter</a></li>
</ul>
</nav>
| Add map link in menu | Add map link in menu
| Twig | mit | yboyer/micrometa,yboyer/micrometa,yboyer/micrometa | twig | ## Code Before:
<div id="title"><a href="{{ path('list') }}">Micrometa</a></div>
<nav>
<ul>
<li><a href="{{ path('list') }}">Liste</a></li>
<li><a href="{{ path('upload') }}">Ajouter</a></li>
<!-- <li>Carte</li> -->
</ul>
</nav>
## Instruction:
Add map link in menu
## Code After:
<div id="title"><a h... |
7be1b2aec262fa5d96603f422a208a6a2edb0ee6 | addons/logging/functions/fnc_onMarkerDeleted.sqf | addons/logging/functions/fnc_onMarkerDeleted.sqf | params ["_marker", "_local"];
if (!_local || {
!isMultiplayer || {
("ACE_BFT_" in _marker) || {
(getPlayerUID player) in _marker}}}) exitWith {};
private _info = ["Just deleted"];
switch (markerShape _marker) do {
case "POLYLINE": {
_info pushBack "a line"
};
case "ICON": {
_inf... | params ["_marker", "_local"];
if (missionNamespace getVariable [QGVAR(disabled),false]) exitWith {};
if (!_local || {
!isMultiplayer || {
("ACE_BFT_" in _marker) || {
(getPlayerUID player) in _marker}}}) exitWith {};
private _info = ["Just deleted"];
switch (markerShape _marker) do {
case "POLYLINE":... | Allow missions to disable marker deletion reporting | Allow missions to disable marker deletion reporting
| SQF | mit | fparma/fparma-mods,fparma/fparma-mods,fparma/fparma-mods | sqf | ## Code Before:
params ["_marker", "_local"];
if (!_local || {
!isMultiplayer || {
("ACE_BFT_" in _marker) || {
(getPlayerUID player) in _marker}}}) exitWith {};
private _info = ["Just deleted"];
switch (markerShape _marker) do {
case "POLYLINE": {
_info pushBack "a line"
};
case "ICON"... |
d84a3dbf61dd48b8cf43ae0dae18aefbae3d7b70 | lib/ext/model.rb | lib/ext/model.rb | module FHIR
class Model
class << self
cattr_accessor :client
end
def client
@client || self.class.client
end
def client=(client)
@client = client
# Ensure the client-setting cascades to all child models
instance_values.each do |_key, values|
Array.wrap(valu... | module FHIR
class Model
class << self
cattr_accessor :client
end
def client
@client || self.class.client
end
def client=(client)
@client = client
# Ensure the client-setting cascades to all child models
instance_values.each do |_key, values|
Array.wrap(valu... | Add conditional update and create to new api | Add conditional update and create to new api
| Ruby | apache-2.0 | tambling/fhir_client,fhir-crucible/fhir_client,tambling/fhir_client,fhir-crucible/fhir_client | ruby | ## Code Before:
module FHIR
class Model
class << self
cattr_accessor :client
end
def client
@client || self.class.client
end
def client=(client)
@client = client
# Ensure the client-setting cascades to all child models
instance_values.each do |_key, values|
... |
992edb9ec2184f3029f1d964d6079dc28876d8ff | src/Note/tests.py | src/Note/tests.py | from django.test import TestCase
# Create your tests here.
| from django.test import TestCase
from note.models import Page
# Create your tests here.
class PageMethodTests(TestCase):
def test_extract_tags(self):
""" Test la méthode d'extraction de tag """
p = Page()
p.text = """#test
Un test #plus long
Test un #tag.compose
Pi... | Test unitaire pour l'extraction des Tags | Test unitaire pour l'extraction des Tags
| Python | mit | MaximeRaynal/SimpleNote,MaximeRaynal/SimpleNote,MaximeRaynal/SimpleNote,MaximeRaynal/SimpleNote | python | ## Code Before:
from django.test import TestCase
# Create your tests here.
## Instruction:
Test unitaire pour l'extraction des Tags
## Code After:
from django.test import TestCase
from note.models import Page
# Create your tests here.
class PageMethodTests(TestCase):
def test_extract_tags(self):
""" T... |
8758fa37328498436494005ee757e8a1edb88a9d | lib/daimon_skycrawlers/generator/templates/new/docker-compose.yml.erb | lib/daimon_skycrawlers/generator/templates/new/docker-compose.yml.erb | version: "2"
services:
<%= name %>-rabbitmq:
image: rabbitmq
<%= name %>-db:
build:
context: .
dockerfile: Dockerfile.db
env_file: .env.db
<%= name %>-common: &common
build:
context: .
args:
- SKYCRAWLERS_ENV=development
links:
- <%= name %>-rabbitmq
... | version: "2"
services:
<%= name %>-rabbitmq:
image: rabbitmq
volumes:
- <%= name %>-rabbitmq-storage:/var/lib/rabbitmq
<%= name %>-db:
build:
context: .
dockerfile: Dockerfile.db
volumes:
- <%= name %>-db-storage:/var/lib/postgresql/data
env_file: .env.db
<%= name %>-... | Use named volume to create volume for each app | Use named volume to create volume for each app
Create 2 crawler applications:
```
$ daimon_skycrawlers new crawler1
$ daimon_skycrawlers new crawler2
```
In previous version, crawler1 and crawler2 use shared volume (for
PostgreSQL and rabbitmq-server)
In this version, crawler1 uses crawler1-db-storage and
crawler1-... | HTML+ERB | mit | bm-sms/daimon-skycrawlers,bm-sms/daimon-skycrawlers,bm-sms/daimon_skycrawlers,yucao24hours/daimon-skycrawlers,yucao24hours/daimon-skycrawlers,yucao24hours/daimon-skycrawlers,bm-sms/daimon_skycrawlers,bm-sms/daimon_skycrawlers | html+erb | ## Code Before:
version: "2"
services:
<%= name %>-rabbitmq:
image: rabbitmq
<%= name %>-db:
build:
context: .
dockerfile: Dockerfile.db
env_file: .env.db
<%= name %>-common: &common
build:
context: .
args:
- SKYCRAWLERS_ENV=development
links:
- <%= name... |
039b0047d68dbb48ce3d7da24bed46a954ebf4ef | core/src/main/java/tripleplay/flump/PlayMovie.java | core/src/main/java/tripleplay/flump/PlayMovie.java | //
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2013, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.flump;
import tripleplay.anim.Animation;
/** Plays through an entire movie once. */
public class Pla... | //
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2013, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.flump;
import tripleplay.anim.Animation;
/** Plays a movie until it ends. */
public class PlayMovie ... | Use paint() instead of setPosition() here. | Use paint() instead of setPosition() here.
setPosition() doesn't work nicely with nested movies. Should probably
fix that.
| Java | bsd-3-clause | joansmith/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,tomfisher/tripleplay,tomfisher/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,tomfisher/tripleplay,joansmith/tripleplay,joansmith/tripleplay | java | ## Code Before:
//
// Triple Play - utilities for use in PlayN-based games
// Copyright (c) 2011-2013, Three Rings Design, Inc. - All rights reserved.
// http://github.com/threerings/tripleplay/blob/master/LICENSE
package tripleplay.flump;
import tripleplay.anim.Animation;
/** Plays through an entire movie once. */
... |
bd2ce5327c4c3d295832c2cdd8a8a6ee9b1ab0ff | atom/browser/api/atom_api_web_contents_mac.mm | atom/browser/api/atom_api_web_contents_mac.mm | // Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_web_contents.h"
@interface NSWindow
- (BOOL)isKeyWindow;
@end
namespace atom {
namespace api {
bool WebContents::IsFocused() const {
if (GetTy... | // Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_web_contents.h"
@interface NSWindow
- (BOOL)isKeyWindow;
@end
namespace atom {
namespace api {
bool WebContents::IsFocused() const {
auto view... | Return early when render widget host view is null | Return early when render widget host view is null
| Objective-C++ | mit | brave/muon,rajatsingla28/electron,voidbridge/electron,leethomas/electron,the-ress/electron,noikiy/electron,bpasero/electron,thomsonreuters/electron,posix4e/electron,joaomoreno/atom-shell,shiftkey/electron,Floato/electron,noikiy/electron,tinydew4/electron,renaesop/electron,seanchas116/electron,bpasero/electron,twolfson/... | objective-c++ | ## Code Before:
// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_web_contents.h"
@interface NSWindow
- (BOOL)isKeyWindow;
@end
namespace atom {
namespace api {
bool WebContents::IsFocused() con... |
32d0b594a1c2a03d5a1c8b4019e2307af6d91483 | src/url.rs | src/url.rs | // Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | // Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unl... | Add channel support to builder-worker | Add channel support to builder-worker
Signed-off-by: Salim Alam <18ae4dd1e3db1d49a738226169e3b099325c79a0@chef.io>
| Rust | apache-2.0 | habitat-sh/habitat,rsertelon/habitat,rsertelon/habitat,habitat-sh/habitat,habitat-sh/habitat,rsertelon/habitat,habitat-sh/habitat,habitat-sh/habitat,rsertelon/habitat,rsertelon/habitat,habitat-sh/habitat,habitat-sh/habitat,habitat-sh/habitat,rsertelon/habitat,rsertelon/habitat | rust | ## Code Before:
// Copyright (c) 2016-2017 Chef Software Inc. and/or applicable contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICEN... |
46d2977eb56472962889e81053d26870432ab81a | src/Furniture/FactoryBundle/Security/Voter/ViewFactoryVoter.php | src/Furniture/FactoryBundle/Security/Voter/ViewFactoryVoter.php | <?php
namespace Furniture\FactoryBundle\Security\Voter;
use Furniture\UserBundle\Entity\User;
use Furniture\FactoryBundle\Entity\Factory;
use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter;
class ViewFactoryVoter extends AbstractVoter
{
/**
* {@inheritDoc}
*/
protected function g... | <?php
namespace Furniture\FactoryBundle\Security\Voter;
use Furniture\UserBundle\Entity\User;
use Furniture\FactoryBundle\Entity\Factory;
use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter;
class ViewFactoryVoter extends AbstractVoter
{
/**
* {@inheritDoc}
*/
protected function g... | Update factory voter ACTIVE_RELATION statement | Update factory voter ACTIVE_RELATION statement
| PHP | mit | Viktor-s/f,Viktor-s/f,Viktor-s/f,Viktor-s/f,Viktor-s/f | php | ## Code Before:
<?php
namespace Furniture\FactoryBundle\Security\Voter;
use Furniture\UserBundle\Entity\User;
use Furniture\FactoryBundle\Entity\Factory;
use Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter;
class ViewFactoryVoter extends AbstractVoter
{
/**
* {@inheritDoc}
*/
prot... |
fd3cfa0e7103825791413aa14324c4fae91a42c3 | src/edu/wpi/first/wpilibj/templates/commands/ReadSetCamera.java | src/edu/wpi/first/wpilibj/templates/commands/ReadSetCamera.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.camera.AxisCamera;
/**
*
* @author profplump
*/
public class ReadSetCamera extends ... | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.camera.AxisCamera;
/**
*
* @author profplump
*/
public class ReadSetCamera extends ... | Exit quickly to avoid side effects | Exit quickly to avoid side effects | Java | bsd-3-clause | FIRST-4030/2013 | java | ## Code Before:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.camera.AxisCamera;
/**
*
* @author profplump
*/
public class ReadSe... |
2176f3f47330249df97b535a7b7bda6220350941 | doc/source/index.rst | doc/source/index.rst | ============================================
Welcome to oslo.concurrency's documentation!
============================================
The `oslo`_ concurrency library has utilities for safely running multi-thread,
multi-process applications using locking mechanisms and for running
external processes.
.. toctree::
... | ============================================
Welcome to oslo.concurrency's documentation!
============================================
The `oslo`_ concurrency library has utilities for safely running multi-thread,
multi-process applications using locking mechanisms and for running
external processes.
.. toctree::
... | Move 'history' -> release notes section | Move 'history' -> release notes section
This seems to better match what the other oslo
libraries are calling this section, so we might as
well call it that to.
Change-Id: I4a486d0ca61f81413ea398d5955b4027d66ce360
| reStructuredText | apache-2.0 | openstack/oslo.concurrency | restructuredtext | ## Code Before:
============================================
Welcome to oslo.concurrency's documentation!
============================================
The `oslo`_ concurrency library has utilities for safely running multi-thread,
multi-process applications using locking mechanisms and for running
external processes.
... |
a190955545efb3d2e73e3d63bd4a1886e45199df | docs/acme-cert.yaml | docs/acme-cert.yaml | apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: cm-http-nginx-k8s-group
spec:
secretName: cm-http-nginx-k8s-group
issuer: letsencrypt-staging
domains:
- cm-http-nginx.k8s.group
acme:
config:
- domains:
- cm-http-nginx.k8s.group
http-01:
ingressClass: ngi... | apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: cm-http-nginx-k8s-group
spec:
secretName: cm-http-nginx-k8s-group
issuer: letsencrypt-staging
domains:
- cm-http-nginx.k8s.group
- cm-http-nginx2.k8s.group
- cm-http-gce.k8s.group
- cm-http-clouddns.k8s.group
- cm-http-cloudflar... | Update example cert to be bundled into one | Update example cert to be bundled into one
| YAML | apache-2.0 | cert-manager/cert-manager,jetstack-experimental/cert-manager,jetstack-experimental/cert-manager,jetstack/cert-manager,dippynark/cert-manager,cert-manager/cert-manager,jetstack/cert-manager,jetstack/cert-manager,cert-manager/cert-manager,dippynark/cert-manager,jetstack-experimental/cert-manager,dippynark/cert-manager | yaml | ## Code Before:
apiVersion: certmanager.k8s.io/v1alpha1
kind: Certificate
metadata:
name: cm-http-nginx-k8s-group
spec:
secretName: cm-http-nginx-k8s-group
issuer: letsencrypt-staging
domains:
- cm-http-nginx.k8s.group
acme:
config:
- domains:
- cm-http-nginx.k8s.group
http-01:
i... |
e4899ab8f6729badfbbfac7ee62f662450c76e90 | server/handlers/auth.js | server/handlers/auth.js | import {unauthorized} from 'boom'
import Logger from '@modulus/logger'
import Config from '../../config'
let logger = Logger('handlers/auth')
function validate(token, callback) {
if (token === Config.authToken) {
logger.info(`Request validated with token ${token}`)
callback(null, true, { token: token })
... | import {unauthorized} from 'boom'
import Logger from '@modulus/logger'
import Config from '../../config'
let logger = Logger('handlers/auth')
function validate(token, callback) {
let request = this
if (token === Config.authToken) {
logger.info(`Request to ${request.path} validated with token ${token}`)
... | Add request path to logging | Add request path to logging
| JavaScript | mit | franvarney/franvarney-api | javascript | ## Code Before:
import {unauthorized} from 'boom'
import Logger from '@modulus/logger'
import Config from '../../config'
let logger = Logger('handlers/auth')
function validate(token, callback) {
if (token === Config.authToken) {
logger.info(`Request validated with token ${token}`)
callback(null, true, { to... |
a53cba6cbc598ac2ab8550372222dd9987d294dd | src/main/java/de/fernunihagen/dna/jkn/scalephant/storage/StorageInterface.java | src/main/java/de/fernunihagen/dna/jkn/scalephant/storage/StorageInterface.java | package de.fernunihagen.dna.jkn.scalephant.storage;
import java.util.HashMap;
import java.util.Map;
public class StorageInterface {
private static Map<String, StorageManager> instances;
/**
* Get the storage manager for a given table. If the storage manager does not
* exist, it will be created
*
* @ret... | package de.fernunihagen.dna.jkn.scalephant.storage;
import java.util.HashMap;
import java.util.Map;
public class StorageInterface {
/**
* A map with all created storage instances
*/
protected static Map<String, StorageManager> instances;
/**
* The used storage configuration
*/
protected static StorageC... | Allow to change the default storage configuration | Allow to change the default storage configuration | Java | apache-2.0 | jnidzwetzki/bboxdb,jnidzwetzki/bboxdb,jnidzwetzki/scalephant,jnidzwetzki/bboxdb,jnidzwetzki/scalephant | java | ## Code Before:
package de.fernunihagen.dna.jkn.scalephant.storage;
import java.util.HashMap;
import java.util.Map;
public class StorageInterface {
private static Map<String, StorageManager> instances;
/**
* Get the storage manager for a given table. If the storage manager does not
* exist, it will be creat... |
6d0fffa23853d6d1a56ed4fbffcdd169db504118 | sample/sample-server/src/main/webapp/WEB-INF/appengine-web.xml | sample/sample-server/src/main/webapp/WEB-INF/appengine-web.xml | <?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<runtime>java8</runtime>
<!-- Allows App Engine to send multiple requests to one instance in parallel: -->
<threadsafe>true</threadsafe>
<!-- Configure serving/caching of GWT files -->
<static-files>
<i... | <?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<runtime>java8</runtime>
<!-- Allows App Engine to send multiple requests to one instance in parallel: -->
<threadsafe>true</threadsafe>
<!-- Configure serving/caching of GWT files -->
<static-files>
<i... | Update sample App Engine settings | Update sample App Engine settings
| XML | apache-2.0 | freddyboucher/gwt-oauth2,freddyboucher/gwt-oauth2 | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<runtime>java8</runtime>
<!-- Allows App Engine to send multiple requests to one instance in parallel: -->
<threadsafe>true</threadsafe>
<!-- Configure serving/caching of GWT files -->
<stat... |
86d294bed591d54edda63b5287d67fd1db9b3f08 | index.html | index.html | <h1 id="header">Hello</h1>
<script src="./app.js">
<script type="text/javascript">
turnGreen();
</script>
end
| <h1 id="header">Hello</h1>
<script src="./app.js" type="text/javascript" />
<script type="text/javascript">
turnGreen();
</script>
end
| Update the way to load the external script. | Update the way to load the external script. | HTML | mit | arumtaunsaram/Kuramoto-Model,arumtaunsaram/Kuramoto-Model | html | ## Code Before:
<h1 id="header">Hello</h1>
<script src="./app.js">
<script type="text/javascript">
turnGreen();
</script>
end
## Instruction:
Update the way to load the external script.
## Code After:
<h1 id="header">Hello</h1>
<script src="./app.js" type="text/javascript" />
<script type="text/javascript">
turnGreen(... |
c5b954786c83c7b6efdf1eee472ece09abd115bf | circle.yml | circle.yml | dependencies:
pre:
- sudo apt-get update; sudo apt-get install pdftk
- wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo cp chromedriver /usr/local/bin/chromedriver
- curl -L -o google-chrome.deb https://dl.google.com/linux/direc... | dependencies:
pre:
- sudo apt-get update; sudo apt-get install pdftk
- wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo cp chromedriver /usr/local/bin/chromedriver
- curl -L -o google-chrome.deb https://dl.google.com/linux/direc... | Revert back to original config | Revert back to original config | YAML | mit | codeforamerica/michigan-benefits,codeforamerica/michigan-benefits,codeforamerica/michigan-benefits,codeforamerica/michigan-benefits | yaml | ## Code Before:
dependencies:
pre:
- sudo apt-get update; sudo apt-get install pdftk
- wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo cp chromedriver /usr/local/bin/chromedriver
- curl -L -o google-chrome.deb https://dl.google... |
e875d3d4c9ab215429e649b3881de5b7381bc0b9 | app/views/application_drafts/index.html.slim | app/views/application_drafts/index.html.slim | h1.header
= icon('inbox')
span Application drafts
table.table.table-striped.table-bordered.table-condensed
thead
tr
th Project Name
th Team
th Created
tbody
- @application_drafts.each do |draft|
tr
td= link_to (draft.project_name.presence || '<Pending>'), edit_applicatio... | h1.header
= icon('inbox')
span Application drafts
table.table.table-striped.table-bordered.table-condensed
thead
tr
th Project Name
th Team
th Created
th Your Role
tbody
- @application_drafts.each do |draft|
tr
td= link_to (draft.project_name.presence || '<Pending>... | Add team role to drafts index | Add team role to drafts index
| Slim | mit | rails-girls-summer-of-code/rgsoc-teams,ramonh/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams,beanieboi/rgsoc-teams,beanieboi/rgsoc-teams,michaelem/rgsoc-teams,TeamCheesy/rgsoc-teams,rails-girls-summer-of-code/rgsoc-teams,michaelem/rgsoc-teams,TeamCheesy/rgsoc-teams,michaelem/rgsoc-teams,ramonh/rgsoc-teams,beanieboi... | slim | ## Code Before:
h1.header
= icon('inbox')
span Application drafts
table.table.table-striped.table-bordered.table-condensed
thead
tr
th Project Name
th Team
th Created
tbody
- @application_drafts.each do |draft|
tr
td= link_to (draft.project_name.presence || '<Pending>'),... |
4084db515ff305649583ef2a2d1b901b1e3bf9b9 | lib/merb_global.rb | lib/merb_global.rb | require 'pathname'
if defined? Merb::Plugins
require Pathname(__FILE__).dirname.expand_path + 'merb_global/base'
require Pathname(__FILE__).dirname.expand_path + 'merb_global/controller'
Merb::Plugins.add_rakefiles 'merb_global/rake'
end
| require 'pathname'
if defined? Merb::Plugins
require Pathname(__FILE__).dirname.expand_path + 'merb_global/base'
require Pathname(__FILE__).dirname.expand_path + 'merb_global/controller'
Merb::Plugins.add_rakefiles(Pathname(__FILE__).dirname.expand_path + 'merb_global/merbrake')
end
| Load correct file with extra rake tasks | Load correct file with extra rake tasks
| Ruby | mit | myabc/merb_global | ruby | ## Code Before:
require 'pathname'
if defined? Merb::Plugins
require Pathname(__FILE__).dirname.expand_path + 'merb_global/base'
require Pathname(__FILE__).dirname.expand_path + 'merb_global/controller'
Merb::Plugins.add_rakefiles 'merb_global/rake'
end
## Instruction:
Load correct file with extra rake tasks
... |
5c23d4746c76412798399b07ad9d20b8f0a05c47 | data/triggers.json | data/triggers.json | {
"cheese": "petril",
"coi": false,
"doot": false,
"ed balls": false,
"eight": false,
"now we know": false,
"number one": "This morning I had meetings with ministerial colleagues and others. In addition to my duties in the House, I shall have further such meetings later today.",
"petril": "cheese",
"rip": "s... | {
"cheese": "petril",
"doot": false,
"ed balls": false,
"eight": false,
"now we know": false,
"number one": "This morning I had meetings with ministerial colleagues and others. In addition to my duties in the House, I shall have further such meetings later today.",
"petril": "cheese",
"rip": "so it goes",
"t... | Remove lojban call and response | Remove lojban call and response
it was very annoying | JSON | isc | zuzakistan/civilservant,zuzakistan/civilservant | json | ## Code Before:
{
"cheese": "petril",
"coi": false,
"doot": false,
"ed balls": false,
"eight": false,
"now we know": false,
"number one": "This morning I had meetings with ministerial colleagues and others. In addition to my duties in the House, I shall have further such meetings later today.",
"petril": "che... |
2c3bcafbf0464b66023ccd9bdb3ace43aa239fe7 | portal/templates/portal/form_template.html | portal/templates/portal/form_template.html | {% for field in form %}
<div class="form-group">
<div>
<span class="text-danger small">{{ field.errors }}</span>
</div>
<label>{{ field.label_tag }}</label>
<div>{{ field }}</div>
</div>
{% endfor %}
| {% for field in form %}
<div class="form-group">
<div>
<span class="text-danger small">{{ field.errors }}</span>
</div>
<label>{{ field.label_tag }}</label>
<div>{{ field }}</div>
<p class="small text-muted mt-2">{{ field.help_text|safe }}</p>
</div>
{% endfor %}
| Add help text to form | Add help text to form
| HTML | mit | huangsam/chowist,huangsam/chowist,huangsam/chowist | html | ## Code Before:
{% for field in form %}
<div class="form-group">
<div>
<span class="text-danger small">{{ field.errors }}</span>
</div>
<label>{{ field.label_tag }}</label>
<div>{{ field }}</div>
</div>
{% endfor %}
## Instruction:
Add help text to form
## Code After:
{% for field in form %}
<div class="f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.