#!/usr/bin/perl

#
# Markdown -- A text-to-HTML conversion tool for web writers
#
# Copyright (c) 2004 John Gruber
# <http://daringfireball.net/projects/markdown/>
#

package Markdown;
require 5.006_000;
use strict;
use warnings;

use Digest::MD5 qw(md5_hex);
use vars qw($VERSION);
$VERSION = '1.0.1';
# Tue 14 Dec 2004

## Disabled; causes problems under Perl 5.6.1:
# use utf8;
# binmode( STDOUT, ":utf8" );  # c.f.: http://acis.openlib.org/dev/perl-unicode-struggle.html

#
# Global default settings:
#
my $g_empty_element_suffix = " />";     # Change to ">" for HTML output
my $g_tab_width = 4;

#
# Globals:
#

# Regex to match balanced [brackets]. See Friedl's
# "Mastering Regular Expressions", 2nd Ed., pp. 328-331.
my $g_nested_brackets;
$g_nested_brackets = qr{
	(?> 								# Atomic matching
	   [^\[\]]+							# Anything other than brackets
	 |
	   \[
		 (??{ $g_nested_brackets })		# Recursive set of nested brackets
	   \]
	)*
}x;

# Table of hash values for escaped characters:
my %g_escape_table;
foreach my $char (split //, '\\`*_{}[]()>#+-.!') {
	$g_escape_table{$char} = md5_hex($char);
}

# Global hashes, used by various utility routines
my %g_urls;
my %g_titles;
my %g_html_blocks;

# Used to track when we're inside an ordered or unordered list
# (see _ProcessListItems() for details):
my $g_list_level = 0;

#### Blosxom plug-in interface ##########################################

# Set $g_blosxom_use_meta to 1 to use Blosxom's meta plug-in to determine
# which posts Markdown should process, using a "meta-markup: markdown"
# header. If it's set to 0 (the default), Markdown will process all
# entries.
my $g_blosxom_use_meta = 0;

sub start { 1; }
sub story {
	my($pkg, $path, $filename, $story_ref, $title_ref, $body_ref) = @_;

	if ( (! $g_blosxom_use_meta) or
	     (defined($meta::markup) and ($meta::markup =~ /^\s*markdown\s*$/i))
	     ){
			$$body_ref  = Markdown($$body_ref);
     }
     1;
}

#### Movable Type plug-in interface #####################################
eval {require MT};  # Test to see if we're running in MT.
unless ($@) {
    require MT;
    import  MT;
    require MT::Template::Context;
    import  MT::Template::Context;

	eval {require MT::Plugin};  # Test to see if we're running >= MT 3.0.
	unless ($@) {
		require MT::Plugin;
		import  MT::Plugin;
		my $plugin = new MT::Plugin({
			name => "Markdown",
			description => "A plain-text-to-HTML formatting plugin. (Version: $VERSION)",
			doc_link => 'http://daringfireball.net/projects/markdown/'
		});
		MT->add_plugin( $plugin );
	}

	MT::Template::Context->add_container_tag(MarkdownOptions => sub {
		my $ctx	 = shift;
		my $args = shift;
		my $builder = $ctx->stash('builder');
		my $tokens = $ctx->stash('tokens');

		if (defined ($args->{'output'}) ) {
			$ctx->stash('markdown_output', lc $args->{'output'});
		}

		defined (my $str = $builder->build($ctx, $tokens) )
			or return $ctx->error($builder->errstr);
		$str;		# return value
	});

	MT->add_text_filter('markdown' => {
		label     => 'Markdown',
		docs      => 'http://daringfireball.net/projects/markdown/',
		on_format => sub {
			my $text = shift;
			my $ctx  = shift;
			my $raw  = 0;
		    if (defined $ctx) {
		    	my $output = $ctx->stash('markdown_output');
				if (defined $output  &&  $output =~ m/^html/i) {
					$g_empty_element_suffix = ">";
					$ctx->stash('markdown_output', '');
				}
				elsif (defined $output  &&  $output eq 'raw') {
					$raw = 1;
					$ctx->stash('markdown_output', '');
				}
				else {
					$raw = 0;
					$g_empty_element_suffix = " />";
				}
			}
			$text = $raw ? $text : Markdown($text);
			$text;
		},
	});

	# If SmartyPants is loaded, add a combo Markdown/SmartyPants text filter:
	my $smartypants;

	{
		no warnings "once";
		$smartypants = $MT::Template::Context::Global_filters{'smarty_pants'};
	}

	if ($smartypants) {
		MT->add_text_filter('markdown_with_smartypants' => {
			label     => 'Markdown With SmartyPants',
			docs      => 'http://daringfireball.net/projects/markdown/',
			on_format => sub {
				my $text = shift;
				my $ctx  = shift;
				if (defined $ctx) {
					my $output = $ctx->stash('markdown_output');
					if (defined $output  &&  $output eq 'html') {
						$g_empty_element_suffix = ">";
					}
					else {
						$g_empty_element_suffix = " />";
					}
				}
				$text = Markdown($text);
				$text = $smartypants->($text, '1');
			},
		});
	}
}
else {
#### BBEdit/command-line text filter interface ##########################
# Needs to be hidden from MT (and Blosxom when running in static mode).

    # We're only using $blosxom::version once; tell Perl not to warn us:
	no warnings 'once';
    unless ( defined($blosxom::version) ) {
		use warnings;

		#### Check for command-line switches: #################
		my %cli_opts;
		use Getopt::Long;
		Getopt::Long::Configure('pass_through');
		GetOptions(\%cli_opts,
			'version',
			'shortversion',
			'html4tags',
		);
		if ($cli_opts{'version'}) {		# Version info
			print "\nThis is Markdown, version $VERSION.\n";
			print "Copyright 2004 John Gruber\n";
			print "http://daringfireball.net/projects/markdown/\n\n";
			exit 0;
		}
		if ($cli_opts{'shortversion'}) {		# Just the version number string.
			print $VERSION;
			exit 0;
		}
		if ($cli_opts{'html4tags'}) {			# Use HTML tag style instead of XHTML
			$g_empty_element_suffix = ">";
		}

		#### Process incoming text: ###########################
		my $text;
		{
			local $/;               # Slurp the whole file
			$text = <>;
		}
        print Markdown($text);
    }
}

sub Markdown {
#
# Main function. The order in which other subs are called here is
# essential. Link and image substitutions need to happen before
# _EscapeSpecialChars(), so that any *'s or _'s in the
# and  tags get encoded.
#
	my $text = shift;

	# Clear the global hashes. If we don't clear these, you get conflicts
	# from other articles when generating a page which contains more than
	# one article (e.g. an index page that shows the N most recent
	# articles):
	%g_urls = ();
	%g_titles = ();
	%g_html_blocks = ();

	# Standardize line endings:
	$text =~ s{\r\n}{\n}g; 	# DOS to Unix
	$text =~ s{\r}{\n}g; 	# Mac to Unix

	# Make sure $text ends with a couple of newlines:
	$text .= "\n\n";

	# Convert all tabs to spaces.
	$text = _Detab($text);

	# Strip any lines consisting only of spaces and tabs.
	# This makes subsequent regexen easier to write, because we can
	# match consecutive blank lines with /\n+/ instead of something
	# contorted like /[ \t]*\n+/ .
	$text =~ s/^[ \t]+$//mg;

	# Turn block-level HTML blocks into hash entries
	$text = _HashHTMLBlocks($text);

	# Strip link definitions, store in hashes.
	$text = _StripLinkDefinitions($text);

	$text = _RunBlockGamut($text);

	$text = _UnescapeSpecialChars($text);

	return $text . "\n";
}

sub _StripLinkDefinitions {
#
# Strips link definitions from text, stores the URLs and titles in
# hash references.
#
	my $text = shift;
	my $less_than_tab = $g_tab_width - 1;

	# Link defs are in the form: ^[id]: url "optional title"
	while ($text =~ s{
						^[ ]{0,$less_than_tab}\[(.+)\]:	# id = $1
						  [ \t]*
						  \n?				# maybe *one* newline
						  [ \t]*
						<?(\S+?)>?			# url = $2
						  [ \t]*
						  \n?				# maybe one newline
						  [ \t]*
						(?:
							(?<=\s)			# lookbehind for whitespace
							["(]
							(.+?)			# title = $3
							[")]
							[ \t]*
						)?	# title is optional
						(?:\n+|\Z)
					}
					{}mx) {
		$g_urls{lc $1} = _EncodeAmpsAndAngles( $2 );	# Link IDs are case-insensitive
		if ($3) {
			$g_titles{lc $1} = $3;
			$g_titles{lc $1} =~ s/"/"/g;
		}
	}

	return $text;
}

sub _HashHTMLBlocks {
	my $text = shift;
	my $less_than_tab = $g_tab_width - 1;

	# Hashify HTML blocks:
	# We only want to do this for block-level HTML tags, such as headers,
	# lists, and tables. That's because we still want to wrap
s around
	# "paragraphs" that are wrapped in non-block-level tags, such as anchors,
	# phrase emphasis, and spans. The list of tags we're looking for is
	# hard-coded:
	my $block_tags_a = qr/p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del/;
	my $block_tags_b = qr/p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math/;

	# First, look for nested blocks, e.g.:
	#

	#

	# 		tags for inner block must be indented.
	#

	#

	#
	# The outermost tags must start at the left margin for this to match, and
	# the inner nested divs must be indented.
	# We need to do this before the next, more liberal match, because the next
	# match will start at the first `<div>` and stop at the first `</div>`.
	$text =~ s{
				(						# save in $1
					^					# start of line  (with /m)
					<($block_tags_a)	# start tag = $2
					\b					# word break
					(.*\n)*?			# any number of lines, minimally matching
					</\2>				# the matching end tag
					[ \t]*				# trailing spaces/tabs
					(?=\n+|\Z)	# followed by a newline or end of document
				)
			}{
				my $key = md5_hex($1);
				$g_html_blocks{$key} = $1;
				"\n\n" . $key . "\n\n";
			}egmx;

	#
	# Now match more liberally, simply from `\n<tag>` to `</tag>\n`
	#
	$text =~ s{
				(						# save in $1
					^					# start of line  (with /m)
					<($block_tags_b)	# start tag = $2
					\b					# word break
					(.*\n)*?			# any number of lines, minimally matching
					.*</\2>				# the matching end tag
					[ \t]*				# trailing spaces/tabs
					(?=\n+|\Z)	# followed by a newline or end of document
				)
			}{
				my $key = md5_hex($1);
				$g_html_blocks{$key} = $1;
				"\n\n" . $key . "\n\n";
			}egmx;
	# Special case just for
. It was easier to make a special case than
	# to make the other regex more complicated.
	$text =~ s{
				(?:
					(?<=\n\n)		# Starting after a blank line
					|				# or
					\A\n?			# the beginning of the doc
				)
				(						# save in $1
					[ ]{0,$less_than_tab}
					<(hr)				# start tag = $2
					\b					# word break
					([^<>])*?			#
					/?>					# the matching end tag
					[ \t]*
					(?=\n{2,}|\Z)		# followed by a blank line or end of document
				)
			}{
				my $key = md5_hex($1);
				$g_html_blocks{$key} = $1;
				"\n\n" . $key . "\n\n";
			}egx;

	# Special case for standalone HTML comments:
	$text =~ s{
				(?:
					(?<=\n\n)		# Starting after a blank line
					|				# or
					\A\n?			# the beginning of the doc
				)
				(						# save in $1
					[ ]{0,$less_than_tab}
					(?s:
						<!
						(--.*?--\s*)+
						>
					)
					[ \t]*
					(?=\n{2,}|\Z)		# followed by a blank line or end of document
				)
			}{
				my $key = md5_hex($1);
				$g_html_blocks{$key} = $1;
				"\n\n" . $key . "\n\n";
			}egx;

	return $text;
}

sub _RunBlockGamut {
#
# These are all the transformations that form block-level
# tags like paragraphs, headers, and list items.
#
	my $text = shift;

	$text = _DoHeaders($text);

	# Do Horizontal Rules:
	$text =~ s{^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$}{\n<hr$g_empty_element_suffix\n}gmx;
	$text =~ s{^[ ]{0,2}([ ]? -[ ]?){3,}[ \t]*$}{\n<hr$g_empty_element_suffix\n}gmx;
	$text =~ s{^[ ]{0,2}([ ]? _[ ]?){3,}[ \t]*$}{\n<hr$g_empty_element_suffix\n}gmx;

	$text = _DoLists($text);

	$text = _DoCodeBlocks($text);

	$text = _DoBlockQuotes($text);

	# We already ran _HashHTMLBlocks() before, in Markdown(), but that
	# was to escape raw HTML in the original Markdown source. This time,
	# we're escaping the markup we've just created, so that we don't wrap
	#
 tags around block-level tags.
	$text = _HashHTMLBlocks($text);

	$text = _FormParagraphs($text);

	return $text;
}

sub _RunSpanGamut {
#
# These are all the transformations that occur *within* block-level
# tags like paragraphs, headers, and list items.
#
	my $text = shift;

	$text = _DoCodeSpans($text);

	$text = _EscapeSpecialChars($text);

	# Process anchor and image tags. Images must come first,
	# because ![foo][f] looks like an anchor.
	$text = _DoImages($text);
	$text = _DoAnchors($text);

	# Make links out of things like `<http://example.com/>`
	# Must come after _DoAnchors(), because you can use < and >
	# delimiters in inline links like [this](<url>).
	$text = _DoAutoLinks($text);

	$text = _EncodeAmpsAndAngles($text);

	$text = _DoItalicsAndBold($text);

	# Do hard breaks:
	$text =~ s/ {2,}\n/ <br$g_empty_element_suffix\n/g;

	return $text;
}

sub _EscapeSpecialChars {
	my $text = shift;
	my $tokens ||= _TokenizeHTML($text);

	$text = '';   # rebuild $text from the tokens
# 	my $in_pre = 0;	 # Keep track of when we're inside
 or  tags.
# 	my $tags_to_skip = qr!<(/?)(?:pre|code|kbd|script|math)[\s>]!;

	foreach my $cur_token (@$tokens) {
		if ($cur_token->[0] eq "tag") {
			# Within tags, encode * and _ so they don't conflict
			# with their use in Markdown for italics and strong.
			# We're replacing each such character with its
			# corresponding MD5 checksum value; this is likely
			# overkill, but it should prevent us from colliding
			# with the escape values by accident.
			$cur_token->[1] =~  s! \* !$g_escape_table{'*'}!gx;
			$cur_token->[1] =~  s! _  !$g_escape_table{'_'}!gx;
			$text .= $cur_token->[1];
		} else {
			my $t = $cur_token->[1];
			$t = _EncodeBackslashEscapes($t);
			$text .= $t;
		}
	}
	return $text;
}

sub _DoAnchors {
#
# Turn Markdown link shortcuts into XHTML  tags.
#
	my $text = shift;

	#
	# First, handle reference-style links: [link text] [id]
	#
	$text =~ s{
		(					# wrap whole match in $1
		  \[
		    ($g_nested_brackets)	# link text = $2
		  \]

		  [ ]?				# one optional space
		  (?:\n[ ]*)?		# one optional newline followed by spaces

		  \[
		    (.*?)		# id = $3
		  \]
		)
	}{
		my $result;
		my $whole_match = $1;
		my $link_text   = $2;
		my $link_id     = lc $3;

		if ($link_id eq "") {
			$link_id = lc $link_text;     # for shortcut links like [this][].
		}

		if (defined $g_urls{$link_id}) {
			my $url = $g_urls{$link_id};
			$url =~ s! \* !$g_escape_table{'*'}!gx;		# We've got to encode these to avoid
			$url =~ s!  _ !$g_escape_table{'_'}!gx;		# conflicting with italics/bold.
			$result = "$link_text";
		}
		else {
			$result = $whole_match;
		}
		$result;
	}xsge;

	#
	# Next, inline-style links: [link text](url "optional title")
	#
	$text =~ s{
		(				# wrap whole match in $1
		  \[
		    ($g_nested_brackets)	# link text = $2
		  \]
		  \(			# literal paren
		  	[ \t]*
			<?(.*?)>?	# href = $3
		  	[ \t]*
			(			# $4
			  (['"])	# quote char = $5
			  (.*?)		# Title = $6
			  \5		# matching quote
			)?			# title is optional
		  \)
		)
	}{
		my $result;
		my $whole_match = $1;
		my $link_text   = $2;
		my $url	  		= $3;
		my $title		= $6;

		$url =~ s! \* !$g_escape_table{'*'}!gx;		# We've got to encode these to avoid
		$url =~ s!  _ !$g_escape_table{'_'}!gx;		# conflicting with italics/bold.
		$result = "$link_text";

		$result;
	}xsge;

	return $text;
}

sub _DoImages {
#
# Turn Markdown image shortcuts into  tags.
#
	my $text = shift;

	#
	# First, handle reference-style labeled images: ![alt text][id]
	#
	$text =~ s{
		(				# wrap whole match in $1
		  !\[
		    (.*?)		# alt text = $2
		  \]

		  [ ]?				# one optional space
		  (?:\n[ ]*)?		# one optional newline followed by spaces

		  \[
		    (.*?)		# id = $3
		  \]

		)
	}{
		my $result;
		my $whole_match = $1;
		my $alt_text    = $2;
		my $link_id     = lc $3;

		if ($link_id eq "") {
			$link_id = lc $alt_text;     # for shortcut links like ![this][].
		}

		$alt_text =~ s/"/"/g;
		if (defined $g_urls{$link_id}) {
			my $url = $g_urls{$link_id};
			$url =~ s! \* !$g_escape_table{'*'}!gx;		# We've got to encode these to avoid
			$url =~ s!  _ !$g_escape_table{'_'}!gx;		# conflicting with italics/bold.
			$result = "<img src=\"$url\" alt=\"$alt_text\"";
			if (defined $g_titles{$link_id}) {
				my $title = $g_titles{$link_id};
				$title =~ s! \* !$g_escape_table{'*'}!gx;
				$title =~ s!  _ !$g_escape_table{'_'}!gx;
				$result .=  " title=\"$title\"";
			}
			$result .= $g_empty_element_suffix;
		}
		else {
			# If there's no such link ID, leave intact:
			$result = $whole_match;
		}

		$result;
	}xsge;

	#
	# Next, handle inline images:  ![alt text](url "optional title")
	# Don't forget: encode * and _

	$text =~ s{
		(				# wrap whole match in $1
		  !\[
		    (.*?)		# alt text = $2
		  \]
		  \(			# literal paren
		  	[ \t]*
			<?(\S+?)>?	# src url = $3
		  	[ \t]*
			(			# $4
			  (['"])	# quote char = $5
			  (.*?)		# title = $6
			  \5		# matching quote
			  [ \t]*
			)?			# title is optional
		  \)
		)
	}{
		my $result;
		my $whole_match = $1;
		my $alt_text    = $2;
		my $url	  		= $3;
		my $title		= '';
		if (defined($6)) {
			$title		= $6;
		}

		$alt_text =~ s/"/"/g;
		$title    =~ s/"/"/g;
		$url =~ s! \* !$g_escape_table{'*'}!gx;		# We've got to encode these to avoid
		$url =~ s!  _ !$g_escape_table{'_'}!gx;		# conflicting with italics/bold.
		$result = "<img src=\"$url\" alt=\"$alt_text\"";
		if (defined $title) {
			$title =~ s! \* !$g_escape_table{'*'}!gx;
			$title =~ s!  _ !$g_escape_table{'_'}!gx;
			$result .=  " title=\"$title\"";
		}
		$result .= $g_empty_element_suffix;

		$result;
	}xsge;

	return $text;
}

sub _DoHeaders {
	my $text = shift;

	# Setext-style headers:
	#	  Header 1
	#	  ========
	#
	#	  Header 2
	#	  --------
	#
	$text =~ s{ ^(.+)[ \t]*\n=+[ \t]*\n+ }{
		"
"  .  _RunSpanGamut($1)  .  "
\n\n";
	}egmx;

	$text =~ s{ ^(.+)[ \t]*\n-+[ \t]*\n+ }{
		"
"  .  _RunSpanGamut($1)  .  "
\n\n";
	}egmx;

	# atx-style headers:
	#	# Header 1
	#	## Header 2
	#	## Header 2 with closing hashes ##
	#	...
	#	###### Header 6
	#
	$text =~ s{
			^(\#{1,6})	# $1 = string of #'s
			[ \t]*
			(.+?)		# $2 = Header text
			[ \t]*
			\#*			# optional closing #'s (not counted)
			\n+
		}{
			my $h_level = length($1);
			"<h$h_level>"  .  _RunSpanGamut($2)  .  "</h$h_level>\n\n";
		}egmx;

	return $text;
}

sub _DoLists {
#
# Form HTML ordered (numbered) and unordered (bulleted) lists.
#
	my $text = shift;
	my $less_than_tab = $g_tab_width - 1;

	# Re-usable patterns to match list item bullets and number markers:
	my $marker_ul  = qr/[*+-]/;
	my $marker_ol  = qr/\d+[.]/;
	my $marker_any = qr/(?:$marker_ul|$marker_ol)/;

	# Re-usable pattern to match any entirel ul or ol list:
	my $whole_list = qr{
		(								# $1 = whole list
		  (								# $2
			[ ]{0,$less_than_tab}
			(${marker_any})				# $3 = first list item marker
			[ \t]+
		  )
		  (?s:.+?)
		  (								# $4
			  \z
			|
			  \n{2,}
			  (?=\S)
			  (?!						# Negative lookahead for another list item marker
				[ \t]*
				${marker_any}[ \t]+
			  )
		  )
		)
	}mx;

	# We use a different prefix before nested lists than top-level lists.
	# See extended comment in _ProcessListItems().
	#
	# Note: There's a bit of duplication here. My original implementation
	# created a scalar regex pattern as the conditional result of the test on
	# $g_list_level, and then only ran the $text =~ s{...}{...}egmx
	# substitution once, using the scalar as the pattern. This worked,
	# everywhere except when running under MT on my hosting account at Pair
	# Networks. There, this caused all rebuilds to be killed by the reaper (or
	# perhaps they crashed, but that seems incredibly unlikely given that the
	# same script on the same server ran fine *except* under MT. I've spent
	# more time trying to figure out why this is happening than I'd like to
	# admit. My only guess, backed up by the fact that this workaround works,
	# is that Perl optimizes the substition when it can figure out that the
	# pattern will never change, and when this optimization isn't on, we run
	# afoul of the reaper. Thus, the slightly redundant code to that uses two
	# static s/// patterns rather than one conditional pattern.

	if ($g_list_level) {
		$text =~ s{
				^
				$whole_list
			}{
				my $list = $1;
				my $list_type = ($3 =~ m/$marker_ul/) ? "ul" : "ol";
				# Turn double returns into triple returns, so that we can make a
				# paragraph for the last item in a list, if necessary:
				$list =~ s/\n{2,}/\n\n\n/g;
				my $result = _ProcessListItems($list, $marker_any);
				$result = "<$list_type>\n" . $result . "</$list_type>\n";
				$result;
			}egmx;
	}
	else {
		$text =~ s{
				(?:(?<=\n\n)|\A\n?)
				$whole_list
			}{
				my $list = $1;
				my $list_type = ($3 =~ m/$marker_ul/) ? "ul" : "ol";
				# Turn double returns into triple returns, so that we can make a
				# paragraph for the last item in a list, if necessary:
				$list =~ s/\n{2,}/\n\n\n/g;
				my $result = _ProcessListItems($list, $marker_any);
				$result = "<$list_type>\n" . $result . "</$list_type>\n";
				$result;
			}egmx;
	}

	return $text;
}

sub _ProcessListItems {
#
#	Process the contents of a single ordered or unordered list, splitting it
#	into individual list items.
#

	my $list_str = shift;
	my $marker_any = shift;

	# The $g_list_level global keeps track of when we're inside a list.
	# Each time we enter a list, we increment it; when we leave a list,
	# we decrement. If it's zero, we're not in a list anymore.
	#
	# We do this because when we're not inside a list, we want to treat
	# something like this:
	#
	#		I recommend upgrading to version
	#		8. Oops, now this line is treated
	#		as a sub-list.
	#
	# As a single paragraph, despite the fact that the second line starts
	# with a digit-period-space sequence.
	#
	# Whereas when we're inside a list (or sub-list), that line will be
	# treated as the start of a sub-list. What a kludge, huh? This is
	# an aspect of Markdown's syntax that's hard to parse perfectly
	# without resorting to mind-reading. Perhaps the solution is to
	# change the syntax rules such that sub-lists must start with a
	# starting cardinal number; e.g. "1." or "a.".

	$g_list_level++;

	# trim trailing blank lines:
	$list_str =~ s/\n{2,}\z/\n/;

	$list_str =~ s{
		(\n)?							# leading line = $1
		(^[ \t]*)						# leading whitespace = $2
		($marker_any) [ \t]+			# list marker = $3
		((?s:.+?)						# list item text   = $4
		(\n{1,2}))
		(?= \n* (\z | \2 ($marker_any) [ \t]+))
	}{
		my $item = $4;
		my $leading_line = $1;
		my $leading_space = $2;

		if ($leading_line or ($item =~ m/\n{2,}/)) {
			$item = _RunBlockGamut(_Outdent($item));
		}
		else {
			# Recursion for sub-lists:
			$item = _DoLists(_Outdent($item));
			chomp $item;
			$item = _RunSpanGamut($item);
		}

		"
" . $item . "
\n";
	}egmx;

	$g_list_level--;
	return $list_str;
}

sub _DoCodeBlocks {
#
#	Process Markdown `<pre><code>` blocks.
#

	my $text = shift;

	$text =~ s{
			(?:\n\n|\A)
			(	            # $1 = the code block -- one or more lines, starting with a space/tab
			  (?:
			    (?:[ ]{$g_tab_width} | \t)  # Lines must start with a tab or a tab-width of spaces
			    .*\n+
			  )+
			)
			((?=^[ ]{0,$g_tab_width}\S)|\Z)	# Lookahead for non-space at line-start, or end of doc
		}{
			my $codeblock = $1;
			my $result; # return value

			$codeblock = _EncodeCode(_Outdent($codeblock));
			$codeblock = _Detab($codeblock);
			$codeblock =~ s/\A\n+//; # trim leading newlines
			$codeblock =~ s/\s+\z//; # trim trailing whitespace

			$result = "\n\n
" . $codeblock . "\n
\n\n";

			$result;
		}egmx;

	return $text;
}

sub _DoCodeSpans {
#
# 	*	Backtick quotes are used for  spans.
#
# 	*	You can use multiple backticks as the delimiters if you want to
# 		include literal backticks in the code span. So, this input:
#
#         Just type ``foo `bar` baz`` at the prompt.
#
#     	Will translate to:
#
#
Just type foo `bar` baz at the prompt.

#
#		There's no arbitrary limit to the number of backticks you
#		can use as delimters. If you need three consecutive backticks
#		in your code, use four for delimiters, etc.
#
#	*	You can use spaces to get literal backticks at the edges:
#
#         ... type `` `bar` `` ...
#
#     	Turns to:
#
#         ... type `bar` ...
#

	my $text = shift;

	$text =~ s@
			(`+)		# $1 = Opening run of `
			(.+?)		# $2 = The code block
			(?<!`)
			\1			# Matching closer
			(?!`)
		@
 			my $c = "$2";
 			$c =~ s/^[ \t]*//g; # leading whitespace
 			$c =~ s/[ \t]*$//g; # trailing whitespace
 			$c = _EncodeCode($c);
			"$c";
		@egsx;

	return $text;
}

sub _EncodeCode {
#
# Encode/escape certain characters inside Markdown code runs.
# The point is that in code, these characters are literals,
# and lose their special Markdown meanings.
#
    local $_ = shift;

	# Encode all ampersands; HTML entities are not
	# entities within a Markdown code span.
	s/&/&/g;

	# Encode $'s, but only if we're running under Blosxom.
	# (Blosxom interpolates Perl variables in article bodies.)
	{
		no warnings 'once';
    	if (defined($blosxom::version)) {
    		s/\$/$/g;
    	}
    }

	# Do the angle bracket song and dance:
	s! <  !<!gx;
	s! >  !>!gx;

	# Now, escape characters that are magic in Markdown:
	s! \* !$g_escape_table{'*'}!gx;
	s! _  !$g_escape_table{'_'}!gx;
	s! {  !$g_escape_table{'{'}!gx;
	s! }  !$g_escape_table{'}'}!gx;
	s! \[ !$g_escape_table{'['}!gx;
	s! \] !$g_escape_table{']'}!gx;
	s! \\ !$g_escape_table{'\\'}!gx;

	return $_;
}

sub _DoItalicsAndBold {
	my $text = shift;

	#  must go first:
	$text =~ s{ (\*\*|__) (?=\S) (.+?[*_]*) (?<=\S) \1 }
		{$2}gsx;

	$text =~ s{ (\*|_) (?=\S) (.+?) (?<=\S) \1 }
		{$2}gsx;

	return $text;
}

sub _DoBlockQuotes {
	my $text = shift;

	$text =~ s{
		  (								# Wrap whole match in $1
			(
			  ^[ \t]*>[ \t]?			# '>' at the start of a line
			    .+\n					# rest of the first line
			  (.+\n)*					# subsequent consecutive lines
			  \n*						# blanks
			)+
		  )
		}{
			my $bq = $1;
			$bq =~ s/^[ \t]*>[ \t]?//gm;	# trim one level of quoting
			$bq =~ s/^[ \t]+$//mg;			# trim whitespace-only lines
			$bq = _RunBlockGamut($bq);		# recurse

			$bq =~ s/^/  /g;
			# These leading spaces screw with
 content, so we need to fix that:
			$bq =~ s{
					(\s*
.+?
)
				}{
					my $pre = $1;
					$pre =~ s/^  //mg;
					$pre;
				}egsx;

			"
\n$bq\n
\n\n";
		}egmx;

	return $text;
}

sub _FormParagraphs {
#
#	Params:
#		$text - string to process with html
 tags
#
	my $text = shift;

	# Strip leading and trailing lines:
	$text =~ s/\A\n+//;
	$text =~ s/\n+\z//;

	my @grafs = split(/\n{2,}/, $text);

	#
	# Wrap
 tags.
	#
	foreach (@grafs) {
		unless (defined( $g_html_blocks{$_} )) {
			$_ = _RunSpanGamut($_);
			s/^([ \t]*)/
/;
			$_ .= "
";
		}
	}

	#
	# Unhashify HTML blocks
	#
	foreach (@grafs) {
		if (defined( $g_html_blocks{$_} )) {
			$_ = $g_html_blocks{$_};
		}
	}

	return join "\n\n", @grafs;
}

sub _EncodeAmpsAndAngles {
# Smart processing for ampersands and angle brackets that need to be encoded.

	my $text = shift;

	# Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin:
	#   http://bumppo.net/projects/amputator/
 	$text =~ s/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/&/g;

	# Encode naked <'s
 	$text =~ s{<(?![a-z/?\$!])}{<}gi;

	return $text;
}

sub _EncodeBackslashEscapes {
#
#   Parameter:  String.
#   Returns:    The string, with after processing the following backslash
#               escape sequences.
#
    local $_ = shift;

    s! \\\\  !$g_escape_table{'\\'}!gx;		# Must process escaped backslashes first.
    s! \\`   !$g_escape_table{'`'}!gx;
    s! \\\*  !$g_escape_table{'*'}!gx;
    s! \\_   !$g_escape_table{'_'}!gx;
    s! \\\{  !$g_escape_table{'{'}!gx;
    s! \\\}  !$g_escape_table{'}'}!gx;
    s! \\\[  !$g_escape_table{'['}!gx;
    s! \\\]  !$g_escape_table{']'}!gx;
    s! \\\(  !$g_escape_table{'('}!gx;
    s! \\\)  !$g_escape_table{')'}!gx;
    s! \\>   !$g_escape_table{'>'}!gx;
    s! \\\#  !$g_escape_table{'#'}!gx;
    s! \\\+  !$g_escape_table{'+'}!gx;
    s! \\\-  !$g_escape_table{'-'}!gx;
    s! \\\.  !$g_escape_table{'.'}!gx;
    s{ \\!  }{$g_escape_table{'!'}}gx;

    return $_;
}

sub _DoAutoLinks {
	my $text = shift;

	$text =~ s{<((https?|ftp):[^'">\s]+)>}{$1}gi;

	# Email addresses: <address@domain.foo>
	$text =~ s{
		<
        (?:mailto:)?
		(
			[-.\w]+
			\@
			[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+
		)
		>
	}{
		_EncodeEmailAddress( _UnescapeSpecialChars($1) );
	}egix;

	return $text;
}

sub _EncodeEmailAddress {
#
#	Input: an email address, e.g. "foo@example.com"
#
#	Output: the email address as a mailto link, with each character
#		of the address encoded as either a decimal or hex entity, in
#		the hopes of foiling most address harvesting spam bots. E.g.:
#
#	  foo
#       @example.com
#
#	Based on a filter by Matthew Wickline, posted to the BBEdit-Talk
#	mailing list: <http://tinyurl.com/yu7ue>
#

	my $addr = shift;

	srand;
	my @encode = (
		sub { '&#' .                 ord(shift)   . ';' },
		sub { '&#x' . sprintf( "%X", ord(shift) ) . ';' },
		sub {                            shift          },
	);

	$addr = "mailto:" . $addr;

	$addr =~ s{(.)}{
		my $char = $1;
		if ( $char eq '@' ) {
			# this *must* be encoded. I insist.
			$char = $encode[int rand 1]->($char);
		} elsif ( $char ne ':' ) {
			# leave ':' alone (to spot mailto: later)
			my $r = rand;
			# roughly 10% raw, 45% hex, 45% dec
			$char = (
				$r > .9   ?  $encode[2]->($char)  :
				$r < .45  ?  $encode[1]->($char)  :
							 $encode[0]->($char)
			);
		}
		$char;
	}gex;

	$addr = qq{$addr};
	$addr =~ s{">.+?:}{">}; # strip the mailto: from the visible part

	return $addr;
}

sub _UnescapeSpecialChars {
#
# Swap back in all the special characters we've hidden.
#
	my $text = shift;

	while( my($char, $hash) = each(%g_escape_table) ) {
		$text =~ s/$hash/$char/g;
	}
    return $text;
}

sub _TokenizeHTML {
#
#   Parameter:  String containing HTML markup.
#   Returns:    Reference to an array of the tokens comprising the input
#               string. Each token is either a tag (possibly with nested,
#               tags contained therein, such as <a href="<MTFoo>">, or a
#               run of text between tags. Each element of the array is a
#               two-element array; the first is either 'tag' or 'text';
#               the second is the actual value.
#
#
#   Derived from the _tokenize() subroutine from Brad Choate's MTRegex plugin.
#       <http://www.bradchoate.com/past/mtregex.php>
#

    my $str = shift;
    my $pos = 0;
    my $len = length $str;
    my @tokens;

    my $depth = 6;
    my $nested_tags = join('|', ('(?:<[a-z/!$](?:[^<>]') x $depth) . (')*>)' x  $depth);
    my $match = qr/(?s: <! ( -- .*? -- \s* )+ > ) |  # comment
                   (?s: <\? .*? \?> ) |              # processing instruction
                   $nested_tags/ix;                   # nested tags

    while ($str =~ m/($match)/g) {
        my $whole_tag = $1;
        my $sec_start = pos $str;
        my $tag_start = $sec_start - length $whole_tag;
        if ($pos < $tag_start) {
            push @tokens, ['text', substr($str, $pos, $tag_start - $pos)];
        }
        push @tokens, ['tag', $whole_tag];
        $pos = pos $str;
    }
    push @tokens, ['text', substr($str, $pos, $len - $pos)] if $pos < $len;
    \@tokens;
}

sub _Outdent {
#
# Remove one level of line-leading tabs or spaces
#
	my $text = shift;

	$text =~ s/^(\t|[ ]{1,$g_tab_width})//gm;
	return $text;
}

sub _Detab {
#
# Cribbed from a post by Bart Lateur:
# <http://www.nntp.perl.org/group/perl.macperl.anyperl/154>
#
	my $text = shift;

	$text =~ s{(.*?)\t}{$1.(' ' x ($g_tab_width - length($1) % $g_tab_width))}ge;
	return $text;
}

1;

__END__

=pod

=head1 NAME

B<Markdown>

=head1 SYNOPSIS

B<Markdown.pl> [ B<--html4tags> ] [ B<--version> ] [ B<-shortversion> ]
    [ I<file> ... ]

=head1 DESCRIPTION

Markdown is a text-to-HTML filter; it translates an easy-to-read /
easy-to-write structured text format into HTML. Markdown's text format
is most similar to that of plain text email, and supports features such
as headers, *emphasis*, code blocks, blockquotes, and links.

Markdown's syntax is designed not as a generic markup language, but
specifically to serve as a front-end to (X)HTML. You can  use span-level
HTML tags anywhere in a Markdown document, and you can use block level
HTML tags (like
 and
 as well).

For more information about Markdown's syntax, see:

    http://daringfireball.net/projects/markdown/

=head1 OPTIONS

Use "--" to end switch parsing. For example, to open a file named "-z", use:

	Markdown.pl -- -z

=over 4

=item B<--html4tags>

Use HTML 4 style for empty element tags, e.g.:

instead of Markdown's default XHTML style tags, e.g.:

=item B<-v>, B<--version>

Display Markdown's version number and copyright information.

=item B<-s>, B<--shortversion>

Display the short-form version number.

=back

=head1 BUGS

To file bug reports or feature requests (other than topics listed in the
Caveats section above) please send email to:

    support@daringfireball.net

Please include with your report: (1) the example input; (2) the output
you expected; (3) the output Markdown actually produced.

=head1 VERSION HISTORY

See the readme file for detailed release notes for this version.

1.0.1 - 14 Dec 2004

1.0 - 28 Aug 2004

=head1 AUTHOR

    John Gruber
    http://daringfireball.net

    PHP port and other contributions by Michel Fortin
    http://michelf.com

=head1 COPYRIGHT AND LICENSE

Copyright (c) 2003-2004 John Gruber
<http://daringfireball.net/>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.

* Neither the name "Markdown" nor the names of its contributors may
  be used to endorse or promote products derived from this software
  without specific prior written permission.

This software is provided by the copyright holders and contributors "as
is" and any express or implied warranties, including, but not limited
to, the implied warranties of merchantability and fitness for a
particular purpose are disclaimed. In no event shall the copyright owner
or contributors be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement of substitute goods or services; loss of use, data, or
profits; or business interruption) however caused and on any theory of
liability, whether in contract, strict liability, or tort (including
negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.

=cut


![](https://github.trello.services/images/mini-trello-icon.png) [new](https://trello.com/c/ivcvzyIv/1-new)


![](https://github.trello.services/images/mini-trello-icon.png) [edwin](https://trello.com/c/Q6y9vbSC/17-edwin)


![](https://github.trello.services/images/mini-trello-icon.png) [c](https://trello.com/c/JtrluayA/16-c)


Hi Lorenzo,

Sorry to borther you. Your work is really a good way to achieve the goal of domain adaptation. However, there are some mistakes happening when I compiled your code, which made me confuse about it.  I tried to export MKL_CBWR=AUTO and CUDA_VISIBLE_DEVICES=0, but all of those methods fails. Could you please tell me how to address this issue?

[ RUN      ] DialLayerTest/1.TestGradient
./include/caffe/test/test_gradient_check_util.hpp:175: Failure
The difference between computed_gradient and estimated_gradient is 0.10912135025491004, which exceeds threshold_ * scale, where
computed_gradient evaluates to -0.21838170664645956,
estimated_gradient evaluates to -0.10926035639154952, and
threshold_ * scale evaluates to 0.0001.
debug: (top_id, top_data_id, blob_id, feat_id)=0,0,0,0; feat = 0.51000000000000001; objective+ = -1.9541122446042289; objective- = -1.951927037476398

[  FAILED  ] 4 tests, listed below:
[  FAILED  ] DialLayerTest/0.TestGradient, where TypeParam = caffe::CPUDevice<float>
[  FAILED  ] DialLayerTest/1.TestGradient, where TypeParam = caffe::CPUDevice<double>
[  FAILED  ] DialLayerTest/2.TestGradient, where TypeParam = caffe::GPUDevice<float>
[  FAILED  ] DialLayerTest/3.TestGradient, where TypeParam = caffe::GPUDevice<double>

 4 FAILED TESTS
make: *** [runtest] Error 1

Thanks a lot. Looking forword to your reply.


![](https://github.trello.services/images/mini-trello-icon.png) [Think of a god damn web application](https://trello.com/c/AUSSawm3/3-think-of-a-god-damn-web-application)


Its just a fucking gui what the fuck


I thought the option tag has `selected` attribute, it is fine like that if it is hard to make it working with VDOM


Do not see any error here :(


soon find out
https://ci.appveyor.com/project/Jhno591/citra/build/1.0.62/job/66y981gifw6wvx6o


Thank you! It'll be fixed in the next commit :)


![](https://github.trello.services/images/mini-trello-icon.png) [Seekanten korrekt einfärben](https://trello.com/c/7YGBLpnD/19-seekanten-korrekt-einf%C3%A4rben)


Why is the APK_SIGNATURE_PRODUCTION a char[1] instead of char[29]?
You have 28 char for the signature and 1 for null.
char[29] = "", you have first char as null.
Do you even C bro?


@poqudrof I think you are right on using something more descriptive name than magic, but the idea of a using a module only came to me last night. I'm in the process of fleshing out a few more examples, before I submit a PR.


![](https://github.trello.services/images/mini-trello-icon.png) [Seekanten: Kantenende wird zu Beginn statt zum Schluss gezeichnet](https://trello.com/c/Tbqbronh/18-seekanten-kantenende-wird-zu-beginn-statt-zum-schluss-gezeichnet)


I will try to set the selected attribute, if that does not work, I will leave it as is then. We can open a follow-up if the _"Changing the real DOM can lead to troubles."_ is a real problem.


Bluemix [toolchain](https://console.stage1.bluemix.net/devops/toolchains/ee7af0c7-eb4b-4808-84ae-65a1ebf892f4 "UI-ys1int-KEEP-TC"): [Delivery Pipeline](https://console.stage1.bluemix.net/devops/pipelines/91fde061-3564-4ded-a29e-3c930cc52871 "UI-ys1int-KEEP-TC") deployed [UI-ys1int-KEEP-TC](https://github.com/idsb3t1/UI-ys1int-KEEP-TC/releases/tag/deploy-ibm-ys1-us-south-idsb3t2-us.ibm.com-dev-20171023-095149 "deploy-ibm-ys1-us-south-idsb3t2-us.ibm.com-dev-20171023-095149") to [dev](https://console.stage1.bluemix.net/apps/7c5988dd-213c-4b93-8ca1-26ae146c1c05?env_id=ibm:ys1:us-south "ibm:ys1:us-south:idsb3t2@us.ibm.com:dev"), including this commit


"Unknown CoAP options SHALL be processed as class E (and no special processing). Specifications of new CoAP options SHOULD define how they are processed with OSCORE."

This combination of unknown and SHOULD is not enough. The current text does not say what to do with a known option that does not specify processing. Need to reformulate "unknown".


What happens if the next is not a newline?


sudo


+1 Cool, thanks.


hhjj


The issue was about a double or extra indentation. I think we actually *want* to have one level of indentation in this case.


on 6c23ae7


Also, `sudo systemctl start ssh`


Hmm, that's one funny number of hours...


Hier stimmt etwas nicht.
Warum eigentlich der Kursname?


Да так можно сделать, исправляет проблему AreEqual, но тебе не кажется, что это как то костыльно выглядит?)
У fluentassertions есть прекрасный метод сравнения объектов, предлагаю тебе его поискать в документации, если будут проблемы, то пиши.


Это из-за того что не ко всем файлам есть доступ у этого логина!
Сейчас пытаюсь это пофиксить


Есть еще одна причина, будет круто если сможешь догадаться)


This is no longer an issue in the current version of Protractor: `5.2.0`.


Created multidev environment [sushd8#pr-sushantp](https://dashboard.pantheon.io/sites/fff84385-21b1-4e45-831c-18644431324c#pr-sushantp).

[![Visit Site](https://raw.githubusercontent.com/pantheon-systems/ci-drops-8/0.1.0/data/img/visit-site-36.png)](https://pr-sushantp-sushd8.pantheonsite.io/)


@wtaferner

We changed in v11 (not in saas-16) something about the onchanges: we keep track on the serverside of the id/virtual_id of the line, and returns it to the web client:

https://github.com/odoo/odoo/commit/6cf98c4c87d644928897a76b9985947ab2ebc607

https://github.com/odoo/odoo/commit/2728fe1ec1ac7e99819d0f30f29a1814b00#diff-86d6d41b5bb7499bf055258d05549d59R95

In theory, this allows us to track records (even virtual ones) on the server and on the web client.  This commit (the one I am writing here) is about the list of changed fields in a command.

An update command look like this: [1, some_id, {some changed fields}].  The id does not change, and should not be in the list of changed fields.

About the recordset on the server side, do yo still have that issue?  When does this happen, when you create a new record and add an existing one2many?  In that case, are the commands sent by the webclient correct?


Nah, this is bullshit. [libxpcc.a is being built](https://github.com/roboterclubaachen/xpcc/blob/develop/scons/site_tools/xpcc.py#L154) but its prepended, not appended. I think xpcc just works by accident.


When installing with homebrew, this error is emitted, seemingly generated by this commit:
xargs -a json_whitelist -L 1 tools/format/json_formatter.cgi
xargs: illegal option -- a


I'm a little worried about that approach... IMO the data a test uses should be contained to that test... in the past / in other repos we've had "test data" shared across a slew of tests, and subtle changes to the test data would cause a lot of headaches updating assumptions that tests made about the data

This is why i created a new state machine definition to specifically test choice / success states


@greglandrum , something really weird happened in this commit, an empty 'if' block was created. Are there  side-effects of `atom->hasProp` happening I'm not aware of?


nit: you now have a function that directly checks state transitions 👏. We could use that here.


Just curious about where this check would fail but the loop above would exit?


is the *HTLC* index of the entry that this update settles or times out


This is the one where I fixed the automatic documentation generation. Sorry about lack of commit documentation, but every commit was me trying something new, so it took a while.


This is what I do to create a commit?


thanks, dkl.


I have noticed that consensus.BTGPremineWindow on my client downloaded from  BTCGPU/BTCGPU a couple of days ago is set to `consensus.BTGPremineWindow=16000`.


@vondele Thanks for explaining.  I may try the combo for an elo gain after everything gets committed just to see if keeping track of the 3rd ply in previous search is worth anything on top of current search stability.


Room for improvement in the implementation of ADPB. Remove dynamic allocation if possible, also std::multimap may or may not be fast. Getting about 2-3 frames a second through it before CPU saturates. It could easily be chunked and run on a few cores.


I'm just going to leave this as is... this is the same code that existed before

sidenote but I'm a little uneasy about starting down the path of validating state machines here on creation, since there's a lot more work to be done to fully validate a state machine (basically all the work AWS has put into https://github.com/awslabs/j2119 and https://github.com/awslabs/statelint)

it also seems rare that state machines will change, so giving the user feedback at this point seems like a rare occurrence / not a huge benefit


When doing a transaction, we don't even have this returned... It's only a transaction id until the transaction is mined. Correct me if I'm wrong.


All the changes run in Fedora 25


the loop above will always exit... can you clarify?


I have just checked the relevant file on  BTCGPU github repo, and see that it was changed a few days ago, so it must have changed the consensus.BTGPremineWindow from 16000 to 8000 shortly after I downloaded the client.


@snicolet Nice catch!  I will definitely try a fixed and modified version.  Please don't hesitate to submit your own variations of this idea.


:boom:


**Cool**


Agree, With the statelint addition I think this is much less useful. I added this since when we moved to step-functions we got no validation until a workflow was created.


Hmm. I understand -> the purpose of KitchenSinkWorkflowDefinition was more of a demonstration rather than as test data. Should revisit it's usefulness. Can punt for now.


I'm a little confused about a case where the above loop exists but hasValidTransitions fails.


if you think about the state machine as a directed graph, one way to think about the two loops / checks:

1. reachability check: for every node *n* in the graph, there must exist another node *m* with an edge *m*->*n*
2. valid transitions check: for every edge *m*->*n* in the graph, *n* must exist

An example of when the first check would fail but the second would pass:

```
{
  "StartAt": "ChoiceState",
  "States": {
    "ChoiceState": {
      "Type" : "Choice",
      "Default": "DoesntExist"
      "Choices": [
        {
          "Variable": "$.foo",
          "NumericEquals": 1,
          "Next": "FirstMatchState"
        },
        {
          "Variable": "$.foo",
          "NumericEquals": 2,
          "Next": "SecondMatchState"
        }
      ],
    },
   "FirstMatchState": {
      "Type" : "Task",
      "Resource": "arn:aws:lambda:REGION:ACCOUNT_ID:function:OnFirstMatch",
      "End": true
    },
   "SecondMatchState": {
      "Type" : "Task",
      "Resource": "arn:aws:lambda:REGION:ACCOUNT_ID:function:OnSecondMatch",
      "End": true
    }
  }
}
```


forget this one?


Oops, will fix tomorrow


C’Est parfait ça good job :)


Thanks!!!


Hi!, Sorry if i'm asking on the wrong place.
Do you know if this is Odoo 10 compatible?


Also, starting now, I have a more streamlined Xcode workflow, so expect non-tested features that (hopefully) shouldn't break the code from now on.


That's "Captain" to you.

I must ask you to reconsider.  Did you know Phalcon's efficiency can save you AWS server costs for your mobile app that no one uses?  Phalcon allows for unnecessary premature optimizations that you won't want to miss out on.


What 's the commit


Apols but slightly confused as if not maintained what is the difference and state of the above arm64 tree?


Fixed, I must have deleted it when messing with things


## Don't forget to push your changes up


should use Node v8.2.1


Let's see http://tests.stockfishchess.org/tests/view/59ee8d460ebc590ccbb898cf


Is it right that Status = PortFdoConnectInterrupt(DeviceEXtension) overwrites by Status = MiniportHwInitialize(&DeviceExtension->Miniport)?


oh god, having stared at production code there's no way I'd store a phone number as an int...


[XMLLab2 (2).zip](https://github.com/chuchuho990/file/files/1409166/XMLLab2.2.zip)


Why are these being changed?  It breaks libs that just looks for the http id.  The specs and vocab itself all use plain http for the ids.


You don't have to add detailed documentation like this when it's obvious :).


Line 70: comments not required. Need modification


No premining == no developers working in the future => coin dies as all other coins that took no money for future development. 60% of the premining is time locked. Check this doc: https://btcgpu.org/wp-content/uploads/2017/10/BitcoinGold-Roadmap.pdf


The were some fundamental changes in the [networkx 2.0 release](https://networkx.github.io/documentation/stable/release/release_2.0.html)

 Before the commit, cell 6 in go-obonet.ipynb becomes:
 ```python
 # Retreive properties of phagocytosis
 graph.node['GO:0006909']

 {'attr_dict': {'def': '"An endocytosis process that results in the engulfment of external particulate material by phagocytes. The particles are initially contained within phagocytic vacuoles (phagosomes), which  then fuse with primary lysosomes to effect digestion of the particles." [ISBN:0198506732]',
   'name': 'phagocytosis',
     'namespace': 'biological_process',
       'xref': ['Wikipedia:Phagocytosis']}}
       ```

       The commit follows convention from this [networkx GH issue](https://github.com/networkx/networkx/pull/2107). The change should be backwards compatible with networkx<2.0 (I checked with 1.11)


There is no much differences between them, just we don't want to do repeated work and it doesn't make much sense for us.

If you need a arm64 rootfs, then yocto can build arm64 rootfs.
If you need a arm64 distribution, then you have to do it by yourself, it's not difficult.


this  repository is a document for store the R file of exercise


l


@ZogStriP hehe @eviltrout makes the same typo as me. Hardcore height :grin:


Thanks for fixing! :+1:


Does this really work? It doesn't on my machine, and neither on CI nightly, apparently.


all fine, was just a delay...  scusi


comment says 12, script actually used 52..


 When trying to execute cell 2 from go-obonet.ipynb, the error below is raised. I'm not sure if this is the best method to handle it, but wanted to propose a solution. It seems to be specific to the go-basic.obo file, as I loaded http://purl.obolibrary.org/obo/hp.obo without issue.

```python
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<timed exec> in <module>()

~/anaconda3/envs/nx2/lib/python3.6/site-packages/obonet-0.2.1-py3.6.egg/obonet/read.py in read_obo(path_or_file)
     21         inferred from the file extension.
     22     """
---> 23     obo_file = open_read_file(path_or_file)
     24     typedefs, terms, instances, header = get_sections(obo_file)
     25     obo_file.close()

~/anaconda3/envs/nx2/lib/python3.6/site-packages/obonet-0.2.1-py3.6.egg/obonet/io.py in open_read_file(path)
     25         if opener == io.open:
     26             encoding = response.headers.get_content_charset()
---> 27             text = content.decode(encoding)
     28             #if encoding:
     29             #    text = content.decode(encoding)

TypeError: decode() argument 1 must be str, not None
```


I think there's a typo here :-(

Shouldn't `(MonoAndroidIntermediateAssemblyDir)` be `$(MonoAndroidIntermediateAssemblyDir)`, i.e. missing `$`?


You're right. I just got a clarification online that `an` is used with an unsounding `H`


database'de bu `status` alanını `integer`'a çevirmeyi unutma 👍  commit'te göremedim.


test_obo_reading.py passed with both networkx 1.11 and 2.0.


Neden bu eski syntax?

`has_many :offers, foreign_key: 'translator_id', primary_key: 'id', class_name: 'Offer'`


Наверное, всё-таки, в задании предполагалось просто получить перечисление используемых в списке элементов, но идея с получением элементов, встречающихся только 1 раз, выглядит лучше.

Замечание только по строке 10.
```new_list = list(set_one - set_two)```
Преобразование set в list в данном случае не обязательно, тк нам нужно просто вывести результат.


わああああああできました！ありがとうございます。


Nice


@datnhvn : nếu tên column trong db trùng với tên thuộc tính thì không cần đặt annotation "[Column("PromotionPrice")]" nha

chỉ cần :
```
public double? PromotionPrice { get; set; }
```


@datnhvn : đổi tên column lại thành SortNumber thôi, không vần setup
[Column("Sort_Number")]

```
Sort_Number -> SortNumber
```


Also 9x versions of Terror with SmokeLoader.


![](https://github.trello.services/images/mini-trello-icon.png) [Stairs](https://trello.com/c/lpjKEwmq/1-stairs)


Would be best to make an issue/PR with all the changes that make sense, so they can be more easily discussed.


muito bom


ai sim meu patrão


exemplar


Actually, this is a better place to leave a comment.  Can you load the Rmd file?  thanks


Ikuu receh toqq wesss azzuu

On Oct 24, 2017 5:42 AM, "Aguel Satria Wijaya" <notifications@github.com>
wrote:

> namanya dikondisikan mz
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/alam3211/LatihanModul3/commit/7c05cc9abb39a71bd7dee276d9aa1842346018c0#commitcomment-25144417>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Ae6fQvRJWbnoU5ljJcUCoXatgkN8OmiBks5svRZmgaJpZM4QC04l>
> .
>


This is the data


Hahahah no way!


Whats this do?!


How do we download the fix?


merge


I still get the missing texture


Isso torna desnecessário o `.idea/libraries`. Apesar de que isso deveria ser colocado no `.gitignore`global e não do projeto.


我的锅... 😿


Was this the principal change, other than the heroku/githubpages updates on the urls, etc.?


buen trabajo, te felicito


nice


Possible solution for keeping the original `Locale` to which the phone was set when the application was launched.
See https://github.com/VREMSoftwareDevelopment/WiFiAnalyzer/commit/685c4b99b0637bcb90f89e831efce0a5c7c46b1c

No solution yet, for the application to pickup change in Android OS locale while it is running.


@ausminternet please add margin-right instead of this for RTL mode.


how do i know my request its done


apply


We don't encourage to use author etc as Pivotal employee :)

While you will get credits from commit history :)


change 2012 to 2017,

remove 'portions' unless we it is an old file.


filename mismatch


as palloc0 has zero out whole memory, do we still need set numPartScanned explicitly?


Hmm, I'll re-sync soon. Ta


it is good


I would like to test it, but I got errors:
```
$ go run .\bench\moleculer-go-bench.go
# command-line-arguments
bench\moleculer-go-bench.go:78:16: undefined: ServiceName
bench\moleculer-go-bench.go:131:2: undefined: initFlag
bench\moleculer-go-bench.go:133:2: undefined: printFlag
bench\moleculer-go-bench.go:144:13: undefined: gNatsHosts
bench\moleculer-go-bench.go:145:13: undefined: gNodeID
bench\moleculer-go-bench.go:164:27: undefined: gPerThreadCount
bench\moleculer-go-bench.go:166:16: undefined: gMethodName
bench\moleculer-go-bench.go:191:51: undefined: gMethodName
bench\moleculer-go-bench.go:194:19: undefined: gThreadNum
bench\moleculer-go-bench.go:203:49: undefined: gMethodName
bench\moleculer-go-bench.go:203:49: too many errors
```


## New experiment: Activity Feed


In my case, users are authenticated by NGINX using HTTP Basic Auth and LDAP lookup, therefore I don't use any authentication features of Xataface. Still, it's good to be aware of that. Thanks for the notice.

Regards,
Jiri Kapoun


[R/create_beast2_input_state.R:41:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L41) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"birthRate.t:", ids, "\" name=\"stateNode\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:43:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L43) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"BDBirthRate.t:", ids, "\" lower=\"0.0\" name=\"stateNode\" upper=\"10000.0\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:44:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L44) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"BDDeathRate.t:", ids, "\" lower=\"0.0\" name=\"stateNode\" upper=\"1.0\">0.5</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:46:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L46) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"popSize.t:", ids, "\" name=\"stateNode\">0.3</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:48:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L48) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"bPopSizes.t:", ids, "\" dimension=\"5\" lower=\"0.0\" name=\"stateNode\" upper=\"380000.0\">380.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:49:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L49) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <stateNode id=\"bGroupSizes.t:", ids, "\" spec=\"parameter.IntegerParameter\" dimension=\"5\">1</stateNode>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:54:14:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L54) *warning:* **no visible global function definition for ‘get_kappa’**
```r
    kappa <- get_kappa(site_models)
             ^~~~~~~~~
```
[R/create_beast2_input_state.R:55:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L55) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"kappa.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">", kappa, "</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:56:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L56) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"freqParameter.s:", ids, "\" dimension=\"4\" lower=\"0.0\" name=\"stateNode\" upper=\"1.0\">0.25</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:58:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L58) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"kappa1.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">2.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:59:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L59) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"kappa2.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">2.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:60:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L60) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"freqParameter.s:", ids, "\" dimension=\"4\" lower=\"0.0\" name=\"stateNode\" upper=\"1.0\">0.25</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:62:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L62) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"rateAC.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:63:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L63) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"rateAG.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:64:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L64) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"rateAT.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:65:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L65) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"rateCG.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:66:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L66) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"rateGT.s:", ids, "\" lower=\"0.0\" name=\"stateNode\">1.0</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:67:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L67) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"freqParameter.s:", ids, "\" dimension=\"4\" lower=\"0.0\" name=\"stateNode\" upper=\"1.0\">0.25</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:72:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L72) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <parameter id=\"ucldStdev.c:", ids, "\" lower=\"0.0\" name=\"stateNode\">0.1</parameter>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_beast2_input_state.R:73:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_beast2_input_state.R#L73) *style:* **Lines should not be more than 80 characters.**
```r
    text <- c(text, paste0("        <stateNode id=\"rateCategories.c:", ids, "\" spec=\"parameter.IntegerParameter\" dimension=\"8\">1</stateNode>"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/create_clock_model.R:33:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_clock_model.R#L33) *warning:* **no visible global function definition for ‘create_clock_model’**
```r
  return(create_clock_model(name = "relaxed_log_normal"))
         ^~~~~~~~~~~~~~~~~~
```
[R/create_site_model.R:34:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_site_model.R#L34) *warning:* **no visible global function definition for ‘create_site_model’**
```r
  return(create_site_model(name = "JC69"))
         ^~~~~~~~~~~~~~~~~
```
[R/create_site_model.R:63:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_site_model.R#L63) *warning:* **no visible global function definition for ‘create_site_model’**
```r
  return(create_site_model(name = "TN93"))
         ^~~~~~~~~~~~~~~~~
```
[R/create_site_model.R:70:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_site_model.R#L70) *warning:* **no visible global function definition for ‘create_site_model’**
```r
  return(create_site_model(name = "GTR"))
         ^~~~~~~~~~~~~~~~~
```
[R/create_tree_prior.R:34:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_tree_prior.R#L34) *warning:* **no visible global function definition for ‘create_tree_prior’**
```r
  return(create_tree_prior(name = "yule"))
         ^~~~~~~~~~~~~~~~~
```
[R/create_tree_prior.R:41:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_tree_prior.R#L41) *warning:* **no visible global function definition for ‘create_tree_prior’**
```r
  return(create_tree_prior(name = "birth_death"))
         ^~~~~~~~~~~~~~~~~
```
[R/create_tree_prior.R:48:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_tree_prior.R#L48) *warning:* **no visible global function definition for ‘create_tree_prior’**
```r
  return(create_tree_prior(name = "coalescent_bayesian_skyline"))
         ^~~~~~~~~~~~~~~~~
```
[R/create_tree_prior.R:55:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/create_tree_prior.R#L55) *warning:* **no visible global function definition for ‘create_tree_prior’**
```r
  return(create_tree_prior(name = "coalescent_constant_population"))
         ^~~~~~~~~~~~~~~~~
```
[R/get_clock_model_rate.R:15:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/get_clock_model_rate.R#L15) *warning:* **no visible global function definition for ‘get_default_clock_model_rate’**
```r
  return(get_default_clock_model_rate())
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/get_gamma_cat_count.R:14:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/get_gamma_cat_count.R#L14) *warning:* **no visible global function definition for ‘get_default_gamma_cat_count’**
```r
  return(get_default_gamma_cat_count())
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/get_kappa.R:14:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/get_kappa.R#L14) *warning:* **no visible global function definition for ‘get_default_kappa’**
```r
  return(get_default_kappa())
         ^~~~~~~~~~~~~~~~~
```
[R/get_prop_invariant.R:14:10:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/get_prop_invariant.R#L14) *warning:* **no visible global function definition for ‘get_default_prop_invariant’**
```r
  return(get_default_prop_invariant())
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/get_prop_invariant.R:25:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/get_prop_invariant.R#L25) *style:* **Trailing blank lines are superfluous.**
```r

^
```
[R/is_cbs_tree_prior.R:2:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/is_cbs_tree_prior.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @param x an object, to be determined if it is a valid constant coalescent Bayesian skyline prior
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/is_cbs_tree_prior.R:3:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/is_cbs_tree_prior.R#L3) *style:* **Lines should not be more than 80 characters.**
```r
#' @return TRUE if x is a valid constant coalescent Bayesian skyline prior, FALSE otherwise
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/is_ccp_tree_prior.R:2:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/is_ccp_tree_prior.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @param x an object, to be determined if it is a valid constant coalescence population tree prior
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/is_ccp_tree_prior.R:3:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/is_ccp_tree_prior.R#L3) *style:* **Lines should not be more than 80 characters.**
```r
#' @return TRUE if x is a valid constant coalescence population tree prior, FALSE otherwise
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/is_relaxed_log_normal_clock_model.R:2:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/is_relaxed_log_normal_clock_model.R#L2) *style:* **Lines should not be more than 80 characters.**
```r
#' @param x an object, to be determined if it is a valid relaxed log normal clock model
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[R/is_relaxed_log_normal_clock_model.R:6:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/R/is_relaxed_log_normal_clock_model.R#L6) *style:* **Variable and function names should not be longer than 30 characters.**
```r
is_relaxed_log_normal_clock_model <- function(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input_data.R:8:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input_data.R#L8) *style:* **Lines should not be more than 80 characters.**
```r
  expected <- "                    <sequence id=\"seq_t1\" taxon=\"t1\" totalcount=\"4\" value=\"acttgttgcgactgcgcctg\"/>"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input_data.R:19:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input_data.R#L19) *style:* **Lines should not be more than 80 characters.**
```r
  expected <- "                    <sequence id=\"seq_t1\" taxon=\"t1\" totalcount=\"4\" value=\"acttgttgcgactgcgcctg\"/>"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input_file.R:150:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input_file.R#L150) *style:* **Lines should not be more than 80 characters.**
```r
test_that("All site models produce a valid BEAST2 input file, fixed crown age", {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input_file.R:190:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input_file.R#L190) *style:* **Lines should not be more than 80 characters.**
```r
test_that("All clock models produce a valid BEAST2 input file, fixed crown age", {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input_file.R:232:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input_file.R#L232) *style:* **Lines should not be more than 80 characters.**
```r
test_that("All tree priors produce a valid BEAST2 input file, fixed crown age", {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:45:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L45) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:57:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L57) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "birth_death_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:67:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L67) *style:* **Lines should not be more than 80 characters.**
```r
    tree_priors = beastscriptr::create_tree_prior(name = "coalescent_constant_population")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:70:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L70) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "coalescent_constant_population_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:82:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L82) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "yule_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:91:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L91) *style:* **Lines should not be more than 80 characters.**
```r
    tree_priors = beastscriptr::create_tree_prior(name = "coalescent_bayesian_skyline")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:94:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L94) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "coalescent_bayesian_skyline_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:102:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L102) *style:* **Lines should not be more than 80 characters.**
```r
  filename <- system.file("extdata", "coalescent_bayesian_skyline_2_4.xml", package = "beastscriptr")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:113:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L113) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "jc69_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:124:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L124) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "hky_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:135:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L135) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "tn93_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:146:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L146) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "gtr_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:158:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L158) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "strict_clock_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:168:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L168) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "relaxed_clock_log_normal_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:179:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L179) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "hky_kappa_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:192:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L192) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "hky_prop_invariant_0_5_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:206:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L206) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "hky_gcc_4_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_beast2_input.R:220:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_beast2_input.R#L220) *style:* **Lines should not be more than 80 characters.**
```r
  expected_lines <- readLines(system.file("extdata", "strict_clock_rate_0_5_2_4.xml", package = "beastscriptr"))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_clock_model.R:18:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_clock_model.R#L18) *style:* **Trailing blank lines are superfluous.**
```r

^
```
[tests/testthat/test-create_clock_model.R:19:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_clock_model.R#L19) *style:* **Trailing blank lines are superfluous.**
```r

^
```
[tests/testthat/test-create_tree_prior.R:8:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_tree_prior.R#L8) *style:* **Lines should not be more than 80 characters.**
```r
  tree_prior <- beastscriptr::create_tree_prior(name = "coalescent_bayesian_skyline")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_tree_prior.R:11:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_tree_prior.R#L11) *style:* **Lines should not be more than 80 characters.**
```r
  tree_prior <- beastscriptr::create_tree_prior(name = "coalescent_constant_population")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
[tests/testthat/test-create_tree_priors.R:12:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-create_tree_priors.R#L12) *style:* **Trailing blank lines are superfluous.**
```r

^
```
[tests/testthat/test-is_yule_tree_prior.R:6:1:](https://github.com/richelbilderbeek/beastscriptr/blob/110df210da928f5509a94f75bed04a68f2c2b14b/tests/testthat/test-is_yule_tree_prior.R#L6) *style:* **Lines should not be more than 80 characters.**
```r
  testthat::expect_false(is_yule_tree_prior(create_tree_prior(name = "birth_death")))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```