<commit_before>%% -*- mode: nitrogen -*-
-module (common).
-compile(export_all).
-include_lib("nitrogen_core/include/wf.hrl").
-include("records.hrl").

rand_str() ->
%% http://blog.teemu.im/2009/11/07/generating-random-strings-in-erlang/
	lists:foldl(fun(_, Acc) ->
                        [lists:nth(random:uniform(length("abcdefghijklmnopqrstuvwxyz")),
                                   "abcdefghijklmnopqrstuvwxyz")]
                            ++ Acc
                end, [], lists:seq(1, 5)).


header() ->
        #html5_header{ body= [
	    #image{ image="/images/cobsd_trimmed.png", class="logo" },
	    #h2{ text="Colorado BSD Users Group", class="pullright" }
	] }.

footer() ->
	#html5_footer{ body="CoBUG.org - 2014" }.

sidebar() ->
	[
		#h3 { text="CoBUG", class="co" },
		#list {
			body= [
				#listitem { body=[#link{ text="Home", url="/"}]},
				#listitem { body=[#link{ text="News", url="/news"}]},
				#listitem { body=[#link{ text="Contact", url="/contact"}]},
				#listitem { body=[#link{ text="Meetings", url="/meetings"}]},
				#listitem { body=[#link{ text="Tutorials", url="/tutorials"}]},
				#listitem { body=[#link{ text="Membership", url="https://cobug.org/members"}]},
				#listitem { body=[#link{ text="Around the Web", url="/aroundtheweb"}]},
				#listitem { body=[#link{ text="Mailing List", url="/mailing/list"}]},
				#listitem { body=[#link{ text="XMPP", url="/xmpp"}]},
				#listitem { body=[#link{ text="Friends", url="/friends"}]}
			]
		},
		#h3 { text="Events", class="co" },
		#list {
			body= [
				#listitem { body= [
						#bubble{
							text="2014-06-04",
							bubble_title="Meeting at Trinity Brewery in Colorado Springs",
							bubble_body= [
								"Meeting starts at 7pm. Topic to be announced later!"
							]},
						#bubble{
							text="2014-05-28",
							bubble_title="Meeting at The Daily Grind",
							bubble_body= [
								"Meeting starts at 6:30pm. Topics will include OpenSSH and why you should use it!"
							]},
						#bubble{
							text="2014-04-30",
							bubble_title="Meeting at The Daily Grind",
							bubble_body= [
								"Meeting starts at 6:30pm. Topics will include PF style things like PF and OpenSMTPD."
							]}
					]}
			]
		},
		#h3 { text="*BSD", class="co" },
		#list {
			body= [
				#listitem { body=[#link{ text="PC-BSD", url="http://www.pcbsd.org/"}]},
				#listitem { body=[#link{ text="OpenBSD", url="http://www.openbsd.org"}]},
				#listitem { body=[#link{ text="NetBSD", url="http://www.netbsd.org"}]},
				#listitem { body=[#link{ text="FreeBSD", url="http://www.freebsd.org"}]},
				#listitem { body=[#link{ text="DragonFlyBSD", url="http://www.dragonflybsd.org"}]},
				#listitem { body=[#link{ text="EdgeBSD", url="http://edgebsd.org/"}]},
				#listitem { body=[#link{ text="Bitrig", url="http://www.bitrig.org"}]}
			]
		}
	].
<commit_msg>add tonights meeting<commit_after>%% -*- mode: nitrogen -*-
-module (common).
-compile(export_all).
-include_lib("nitrogen_core/include/wf.hrl").
-include("records.hrl").

rand_str() ->
%% http://blog.teemu.im/2009/11/07/generating-random-strings-in-erlang/
	lists:foldl(fun(_, Acc) ->
                        [lists:nth(random:uniform(length("abcdefghijklmnopqrstuvwxyz")),
                                   "abcdefghijklmnopqrstuvwxyz")]
                            ++ Acc
                end, [], lists:seq(1, 5)).


header() ->
        #html5_header{ body= [
	    #image{ image="/images/cobsd_trimmed.png", class="logo" },
	    #h2{ text="Colorado BSD Users Group", class="pullright" }
	] }.

footer() ->
	#html5_footer{ body="CoBUG.org - 2014" }.

sidebar() ->
	[
		#h3 { text="CoBUG", class="co" },
		#list {
			body= [
				#listitem { body=[#link{ text="Home", url="/"}]},
				#listitem { body=[#link{ text="News", url="/news"}]},
				#listitem { body=[#link{ text="Contact", url="/contact"}]},
				#listitem { body=[#link{ text="Meetings", url="/meetings"}]},
				#listitem { body=[#link{ text="Tutorials", url="/tutorials"}]},
				#listitem { body=[#link{ text="Membership", url="https://cobug.org/members"}]},
				#listitem { body=[#link{ text="Around the Web", url="/aroundtheweb"}]},
				#listitem { body=[#link{ text="Mailing List", url="/mailing/list"}]},
				#listitem { body=[#link{ text="XMPP", url="/xmpp"}]},
				#listitem { body=[#link{ text="Friends", url="/friends"}]}
			]
		},
		#h3 { text="Events", class="co" },
		#list {
			body= [
				#listitem { body= [
					    #bubble{
						text="2014-07-02",
						bubble_title="Meeting at Tthe Daily Grind",
						bubble_body=[
							"Meeting starts at 6:30pm. Topic will be PF!"
						]},
						#bubble{
							text="2014-06-04",
							bubble_title="Meeting at Trinity Brewery in Colorado Springs",
							bubble_body= [
								"Meeting starts at 7pm. Topic to be announced later!"
							]},
						#bubble{
							text="2014-05-28",
							bubble_title="Meeting at The Daily Grind",
							bubble_body= [
								"Meeting starts at 6:30pm. Topics will include OpenSSH and why you should use it!"
							]},
						#bubble{
							text="2014-04-30",
							bubble_title="Meeting at The Daily Grind",
							bubble_body= [
								"Meeting starts at 6:30pm. Topics will include PF style things like PF and OpenSMTPD."
							]}
					]}
			]
		},
		#h3 { text="*BSD", class="co" },
		#list {
			body= [
				#listitem { body=[#link{ text="PC-BSD", url="http://www.pcbsd.org/"}]},
				#listitem { body=[#link{ text="OpenBSD", url="http://www.openbsd.org"}]},
				#listitem { body=[#link{ text="NetBSD", url="http://www.netbsd.org"}]},
				#listitem { body=[#link{ text="FreeBSD", url="http://www.freebsd.org"}]},
				#listitem { body=[#link{ text="DragonFlyBSD", url="http://www.dragonflybsd.org"}]},
				#listitem { body=[#link{ text="EdgeBSD", url="http://edgebsd.org/"}]},
				#listitem { body=[#link{ text="Bitrig", url="http://www.bitrig.org"}]}
			]
		}
	].

{'fraction_non_alphanumeric': 0.21050841693589525, 'fraction_numerical': 0.01921441931644278, 'mean_word_length': 2.934448160535117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 12, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '876092', 'n_tokens_mistral': 2640, 'n_tokens_neox': 2100, 'n_words': 390}