text:
<!DOCTYPE html>

	<title>Olympus Shortcodes</title>

	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="x-ua-compatible" content="ie=edge">

	<link rel="stylesheet" type="text/css" href="Bootstrap/dist/css/bootstrap-reboot.css">
	<link rel="stylesheet" type="text/css" href="Bootstrap/dist/css/bootstrap.css">
	<link rel="stylesheet" type="text/css" href="Bootstrap/dist/css/bootstrap-grid.css">

	<link rel="stylesheet" type="text/css" href="css/theme-styles.css">
	<link rel="stylesheet" type="text/css" href="css/blocks.css">

	<link rel="stylesheet" type="text/css" href="css/fonts.css">

	<link rel="stylesheet" type="text/css" href="css/daterangepicker.css">
	<link rel="stylesheet" type="text/css" href="css/jquery.mCustomScrollbar.min.css">
	<link rel="stylesheet" type="text/css" href="css/bootstrap-select.css">

						<svg class="olymp-menu-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="OPEN MENU"><use xlink:href="icons/icons.svg#olymp-menu-icon"></use></svg>

						<svg class="olymp-newsfeed-icon left-menu-icon" data-toggle="tooltip" data-placement="right" title="" data-original-title="NEWSFEED"><use xlink:href="icons/icons.svg#olymp-newsfeed-icon"></use></svg>

						<svg class="olymp-star-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FAV PAGE"><use xlink:href="icons/icons.svg#olymp-star-icon"></use></svg>

						<svg class="olymp-happy-faces-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FRIEND GROUPS"><use xlink:href="icons/icons.svg#olymp-happy-faces-icon"></use></svg>

						<svg class="olymp-headphones-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="MUSIC&PLAYLISTS"><use xlink:href="icons/icons.svg#olymp-headphones-icon"></use></svg>

						<svg class="olymp-weather-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="WEATHER APP"><use xlink:href="icons/icons.svg#olymp-weather-icon"></use></svg>

						<svg class="olymp-calendar-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="CALENDAR AND EVENTS"><use xlink:href="icons/icons.svg#olymp-calendar-icon"></use></svg>

						<svg class="olymp-badge-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Community Badges"><use xlink:href="icons/icons.svg#olymp-badge-icon"></use></svg>

						<svg class="olymp-cupcake-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Friends Birthdays"><use xlink:href="icons/icons.svg#olymp-cupcake-icon"></use></svg>

						<svg class="olymp-stats-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Account Stats"><use xlink:href="icons/icons.svg#olymp-stats-icon"></use></svg>

						<svg class="olymp-manage-widgets-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Manage Widgets"><use xlink:href="icons/icons.svg#olymp-manage-widgets-icon"></use></svg>

olympus

						<svg class="olymp-close-icon left-menu-icon"><use xlink:href="icons/icons.svg#olymp-close-icon"></use></svg>
						Collapse Menu

						<svg class="olymp-newsfeed-icon left-menu-icon" data-toggle="tooltip" data-placement="right" title="" data-original-title="NEWSFEED"><use xlink:href="icons/icons.svg#olymp-newsfeed-icon"></use></svg>
						Newsfeed

						<svg class="olymp-star-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FAV PAGE"><use xlink:href="icons/icons.svg#olymp-star-icon"></use></svg>
						Fav Pages Feed

						<svg class="olymp-happy-faces-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FRIEND GROUPS"><use xlink:href="icons/icons.svg#olymp-happy-faces-icon"></use></svg>
						Friend Groups

						<svg class="olymp-headphones-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="MUSIC&PLAYLISTS"><use xlink:href="icons/icons.svg#olymp-headphones-icon"></use></svg>
						Music & Playlists

						<svg class="olymp-weather-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="WEATHER APP"><use xlink:href="icons/icons.svg#olymp-weather-icon"></use></svg>
						Weather App

						<svg class="olymp-calendar-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="CALENDAR AND EVENTS"><use xlink:href="icons/icons.svg#olymp-calendar-icon"></use></svg>
						Calendar and Events

						<svg class="olymp-badge-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Community Badges"><use xlink:href="icons/icons.svg#olymp-badge-icon"></use></svg>
						Community Badges

						<svg class="olymp-cupcake-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Friends Birthdays"><use xlink:href="icons/icons.svg#olymp-cupcake-icon"></use></svg>
						Friends Birthdays

						<svg class="olymp-stats-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Account Stats"><use xlink:href="icons/icons.svg#olymp-stats-icon"></use></svg>
						Account Stats

						<svg class="olymp-manage-widgets-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Manage Widgets"><use xlink:href="icons/icons.svg#olymp-manage-widgets-icon"></use></svg>
						Manage Widgets

						Profile Completion
						76%

				Complete your profile so people can know more about you!

olympus

							James Spiegel <svg class="olymp-dropdown-arrow-icon"><use xlink:href="icons/icons.svg#olymp-dropdown-arrow-icon"></use></svg>

						SPACE COWBOY

MAIN SECTIONS

						<svg class="olymp-close-icon left-menu-icon"><use xlink:href="icons/icons.svg#olymp-close-icon"></use></svg>
						Collapse Menu

						<svg class="olymp-newsfeed-icon left-menu-icon" data-toggle="tooltip" data-placement="right" title="" data-original-title="NEWSFEED"><use xlink:href="icons/icons.svg#olymp-newsfeed-icon"></use></svg>
						Newsfeed

						<svg class="olymp-star-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FAV PAGE"><use xlink:href="icons/icons.svg#olymp-star-icon"></use></svg>
						Fav Pages Feed

						<svg class="olymp-happy-faces-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FRIEND GROUPS"><use xlink:href="icons/icons.svg#olymp-happy-faces-icon"></use></svg>
						Friend Groups

						<svg class="olymp-headphones-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="MUSIC&PLAYLISTS"><use xlink:href="icons/icons.svg#olymp-headphones-icon"></use></svg>
						Music & Playlists

						<svg class="olymp-weather-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="WEATHER APP"><use xlink:href="icons/icons.svg#olymp-weather-icon"></use></svg>
						Weather App

						<svg class="olymp-calendar-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="CALENDAR AND EVENTS"><use xlink:href="icons/icons.svg#olymp-calendar-icon"></use></svg>
						Calendar and Events

						<svg class="olymp-badge-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Community Badges"><use xlink:href="icons/icons.svg#olymp-badge-icon"></use></svg>
						Community Badges

						<svg class="olymp-cupcake-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Friends Birthdays"><use xlink:href="icons/icons.svg#olymp-cupcake-icon"></use></svg>
						Friends Birthdays

						<svg class="olymp-stats-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Account Stats"><use xlink:href="icons/icons.svg#olymp-stats-icon"></use></svg>
						Account Stats

						<svg class="olymp-manage-widgets-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="Manage Widgets"><use xlink:href="icons/icons.svg#olymp-manage-widgets-icon"></use></svg>
						Manage Widgets

YOUR ACCOUNT

						<svg class="olymp-menu-icon"><use xlink:href="icons/icons.svg#olymp-menu-icon"></use></svg>

						Profile Settings

						<svg class="olymp-star-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FAV PAGE"><use xlink:href="icons/icons.svg#olymp-star-icon"></use></svg>

						Create Fav Page

						<svg class="olymp-logout-icon"><use xlink:href="icons/icons.svg#olymp-logout-icon"></use></svg>

						Log Out

About Olympus

						Terms and Conditions

						FAQs

						Careers

						Contact

				<svg class="olymp-menu-icon"><use xlink:href="icons/icons.svg#olymp-menu-icon"></use></svg>

			<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

				Close Friends
				Settings

						Carol Summers
						ONLINE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Mathilda Brinker
						AT WORK!

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Carol Summers
						ONLINE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Michael Maximoff
						AWAY

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Rachel Howlett
						OFFLINE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

				MY FAMILY
				Settings

						Sarah Hetfield
						ONLINE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

				UNCATEGORIZED
				Settings

						Bruce Peterson
						ONLINE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Chris Greyson
						AWAY

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Nicholas Grisom
						INVISIBLE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Chris Greyson
						AWAY

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

						Bruce Peterson
						ONLINE

<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="START CONVERSATION" class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="ADD TO CONVERSATION" class="olymp-add-to-conversation-icon"><use xlink:href="icons/icons.svg#olymp-add-to-conversation-icon"></use></svg>

								<svg data-toggle="tooltip" data-placement="top" data-original-title="BLOCK FROM CHAT" class="olymp-block-from-chat-icon"><use xlink:href="icons/icons.svg#olymp-block-from-chat-icon"></use></svg>

			<form class="form-group">
				<input class="form-control" placeholder="Search Friends..." value="" type="text">
			</form>

				<svg class="olymp-settings-icon"><use xlink:href="icons/icons.svg#olymp-settings-icon"></use></svg>

				<svg class="olymp-close-icon"><use xlink:href="icons/icons.svg#olymp-close-icon"></use></svg>

OLYMPUS CHAT

			<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

			<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

SHORTCODES

		<form class="search-bar w-search notification-list friend-requests">

				<input class="form-control js-user-search" placeholder="Search here people or pages..." type="text">
				<button>
					<svg class="olymp-magnifying-glass-icon"><use xlink:href="icons/icons.svg#olymp-magnifying-glass-icon"></use></svg>
				</button>

		</form>

		Find Friends

				<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

6

FRIEND REQUESTS

						Find Friends
						Settings

									Tamara Romanoff
									Mutual Friend: Sarah Hetfield

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

									Tony Stevens
									4 Friends in Common

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

									You and Mary Jane Stark just became friends. Write on her wall.

									<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
									<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

									Stagg Clothing
									9 Friends in Common

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

					Check all your Events

				<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

2

Chat / Messages

						Mark all as read
						Settings

									Diana Jameson
									Hi James! It's Diana, I just wanted to let you know that we have to reschedule...
									<time class="entry-date updated" datetime="2004-07-24T18:18">4 hours ago</time>

									<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

									Jake Parker
									Great, I'll see you tomorrow!.
									<time class="entry-date updated" datetime="2004-07-24T18:18">4 hours ago</time>

									<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

									Elaine Dreyfuss
									We'll have to check that at the office and see if the client is on board with...
									<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 9:56pm</time>

										<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

									You, Faye, Ed & Jet +3
									Ed:
									Yeah! Seems fine by me!
									<time class="entry-date updated" datetime="2004-07-24T18:18">March 16th at 10:23am</time>

										<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

					View All Messages

				<svg class="olymp-thunder-icon"><use xlink:href="icons/icons.svg#olymp-thunder-icon"></use></svg>

8

Notifications

						Mark all as read
						Settings

Mathilda Brinker commented on your new profile status.

									<time class="entry-date updated" datetime="2004-07-24T18:18">4 hours ago</time>

										<svg class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
									<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

You and Nicholas Grissom just became friends. Write on his wall.

									<time class="entry-date updated" datetime="2004-07-24T18:18">9 hours ago</time>

										<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
									<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

Sarah Hetfield commented on your photo.

									<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 5:32am</time>

										<svg class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

									"She looks incredible in that outfit! We should see each..."

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
									<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

Green Goo Rock invited you to attend to his event Goo in Gotham Bar.

									<time class="entry-date updated" datetime="2004-07-24T18:18">March 5th at 6:43pm</time>

										<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
									<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

James Summers commented on your new profile status.

									<time class="entry-date updated" datetime="2004-07-24T18:18">March 2nd at 8:29pm</time>

										<svg class="olymp-heart-icon"><use xlink:href="icons/icons.svg#olymp-heart-icon"></use></svg>

									<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
									<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

					View All Notifications

Your Account

										<svg class="olymp-menu-icon"><use xlink:href="icons/icons.svg#olymp-menu-icon"></use></svg>

										Profile Settings

										<svg class="olymp-star-icon left-menu-icon"  data-toggle="tooltip" data-placement="right" title="" data-original-title="FAV PAGE"><use xlink:href="icons/icons.svg#olymp-star-icon"></use></svg>

										Create Fav Page

										<svg class="olymp-logout-icon"><use xlink:href="icons/icons.svg#olymp-logout-icon"></use></svg>

										Log Out

Chat Settings

										Online

										Away

										Disconnected

										Invisible

Custom Status

							<form class="form-group with-button custom-status">
								<input class="form-control" placeholder="" type="text" value="Space Cowboy">

								<button class="bg-purple">
									<svg class="olymp-check-icon"><use xlink:href="icons/icons.svg#olymp-check-icon"></use></svg>
								</button>
							</form>

About Olympus

										Terms and Conditions

										FAQs

										Careers

										Contact

						James Spiegel <svg class="olymp-dropdown-arrow-icon"><use xlink:href="icons/icons.svg#olymp-dropdown-arrow-icon"></use></svg>

					SPACE COWBOY

						<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

6

						<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

2

						<svg class="olymp-thunder-icon"><use xlink:href="icons/icons.svg#olymp-thunder-icon"></use></svg>

8

					<svg class="olymp-magnifying-glass-icon"><use xlink:href="icons/icons.svg#olymp-magnifying-glass-icon"></use></svg>
					<svg class="olymp-close-icon"><use xlink:href="icons/icons.svg#olymp-close-icon"></use></svg>

FRIEND REQUESTS

					Find Friends
					Settings

							Tamara Romanoff
							Mutual Friend: Sarah Hetfield

												<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

												<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

							Tony Stevens
							4 Friends in Common

												<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

												<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

							You and Mary Jane Stark just became friends. Write on her wall.

										<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
							<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

							Stagg Clothing
							9 Friends in Common

												<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

												<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

				Check all your Events

Chat / Messages

					Mark all as read
					Settings

							Diana Jameson
							Hi James! It's Diana, I just wanted to let you know that we have to reschedule...
							<time class="entry-date updated" datetime="2004-07-24T18:18">4 hours ago</time>

										<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

							Jake Parker
							Great, I'll see you tomorrow!.
							<time class="entry-date updated" datetime="2004-07-24T18:18">4 hours ago</time>

										<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

							Elaine Dreyfuss
							We'll have to check that at the office and see if the client is on board with...
							<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 9:56pm</time>

											<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

							You, Faye, Ed & Jet +3
							Ed:
							Yeah! Seems fine by me!
							<time class="entry-date updated" datetime="2004-07-24T18:18">March 16th at 10:23am</time>

											<svg class="olymp-chat---messages-icon"><use xlink:href="icons/icons.svg#olymp-chat---messages-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>

				View All Messages

Notifications

					Mark all as read
					Settings

Mathilda Brinker commented on your new profile status.

							<time class="entry-date updated" datetime="2004-07-24T18:18">4 hours ago</time>

											<svg class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
							<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

You and Nicholas Grissom just became friends. Write on his wall.

							<time class="entry-date updated" datetime="2004-07-24T18:18">9 hours ago</time>

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
							<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

Sarah Hetfield commented on your photo.

							<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 5:32am</time>

											<svg class="olymp-comments-post-icon"><use xlink:href="icons/icons.svg#olymp-comments-post-icon"></use></svg>

							"She looks incredible in that outfit! We should see each..."

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
							<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

Green Goo Rock invited you to attend to his event Goo in Gotham Bar.

							<time class="entry-date updated" datetime="2004-07-24T18:18">March 5th at 6:43pm</time>

											<svg class="olymp-happy-face-icon"><use xlink:href="icons/icons.svg#olymp-happy-face-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
							<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

James Summers commented on your new profile status.

							<time class="entry-date updated" datetime="2004-07-24T18:18">March 2nd at 8:29pm</time>

											<svg class="olymp-heart-icon"><use xlink:href="icons/icons.svg#olymp-heart-icon"></use></svg>

							<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
							<svg class="olymp-little-delete"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

				View All Notifications

				<form class="search-bar w-search notification-list friend-requests">

						<input class="form-control js-user-search" placeholder="Search here people or pages..." type="text">

				</form>

Color Palette

3f4257

515365

888da8

9a9fbf

ff5e3a

7c5ac2

38a9ff

08ddc1

2aebcb

ffdc1b

e6ecf5

Hello, world! - 40px

Hello, world! - 32px

Hello, world! - 28px

Hello, world! - 22px

Hello, world! - 16px

Hello, world! - 14px

Button Versions

							Big Button
							Medium Button
							Medium Button V2
							Small Button

							Big Button
							Medium Button
							Medium Button V2
							Small Button

							Big Button

							Big Button

							Big Button

							Big Button

							Big Button

							Big Button

							Big Button

							Big Button

							Big Button

							Big Button

Form Elements

								Default Input
								<input class="form-control" type="text" placeholder="">

								Success Input
								<input type="text" class="form-control form-control-success">

								Error Input
								<input type="text" class="form-control form-control-danger">

							<fieldset disabled>

									<input type="text" class="form-control" placeholder="Disabled input">

							</fieldset>

							Dropdown Field
							<fieldset class="form-group">
								<select class="selectpicker form-control" size="auto">
									<option value="AL">Alabama</option>
									<option value="2">Oklahoma</option>
									<option value="WY">Wyoming</option>
								</select>
							</fieldset>

Completed Input V2

								<input class="form-control" type="text" placeholder="James Spiegel">

								Input with Icon
								<input class="form-control" type="text">

							Calendar Field

								<input type="text" name="datetimepicker" value="10/24/1984"/>

									<svg class="olymp-month-calendar-icon icon"><use xlink:href="icons/icons.svg#olymp-month-calendar-icon"></use></svg>

Switch On

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.

									<input type="checkbox" checked="">

Switch Off

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor.

									<input type="checkbox">

Checkboxes

									<input type="checkbox" name="optionsCheckboxes">
									Unchecked

									<input type="checkbox" name="optionsCheckboxes" checked>
									Checked

									<input type="checkbox" name="optionsCheckboxes" disabled>
									Disabled Unchecked

									<input type="checkbox" name="optionsCheckboxes" disabled checked>
									Disabled Checked

Radio Buttons

									<input type="radio" name="optionsRadios">
									Radio is off

									<input type="radio" name="optionsRadios" checked="true">
									Radio is on

									<input type="radio" name="optionsRadiosDisabled" disabled>
									Disabled Radio is off

									<input type="radio" name="optionsRadiosDisabled" checked="true" disabled>
									Disabled Radio is on

Tooltips

							<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="top" title="Tooltip on top">
								Tooltip on top
							</button>
							<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="right" title="Tooltip on right">
								Tooltip on right
							</button>
							<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="left" title="Tooltip on left">
								Tooltip on left
							</button>
							<button type="button" class="btn btn-secondary" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">
								Tooltip on bottom
							</button>

Chat

			<svg class="olymp-three-dots-icon"><use xlink:href="icons/icons.svg#olymp-three-dots-icon"></use></svg>
			<svg class="olymp-little-delete js-chat-open"><use xlink:href="icons/icons.svg#olymp-little-delete"></use></svg>

					Hi James! Please remember to buy the food for tomorrow! I'm gonna be handling the gifts and Jake's gonna get the drinks
					<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 8:10pm</time>

					Don't worry Mathilda!
					I already bought everything
					<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 8:29pm</time>

					Hi James! Please remember to buy the food for tomorrow! I'm gonna be handling the gifts and Jake's gonna get the drinks
					<time class="entry-date updated" datetime="2004-07-24T18:18">Yesterday at 8:10pm</time>

	<form>

			Press enter to post...
			<textarea class="form-control" placeholder=""></textarea>

					<svg class="olymp-computer-icon"><use xlink:href="icons/icons.svg#olymp-computer-icon"></use></svg>

					<svg class="olymp-happy-sticker-icon"><use xlink:href="icons/icons.svg#olymp-happy-sticker-icon"></use></svg>

	</form>


text:
<?php

namespace App\Http\Controllers;

use App\Models\WebSite;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Symfony\Component\Finder\Exception\AccessDeniedException;

class WebSiteController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function create()
    {
        //
    }

    /**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function store(Request $request)
    {
        $user = Auth::user();
        $site = $user->webSites()->create(['website_url' => $request->get('website_url')]);
        return ['status' => 'success', 'id' => $site->id];
    }

    /**
     * Display the specified resource.
     *
     * @param  \App\Models\WebSite  $webSite
     * @return \Illuminate\Http\Response
     */
    public function show(WebSite $webSite)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\WebSite  $webSite
     * @return \Illuminate\Http\Response
     */
    public function edit(WebSite $webSite)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\WebSite  $webSite
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, WebSite $webSite)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @return \Illuminate\Http\Response
     */
    public function destroy()
    {
        $user = Auth::user();
        $website = WebSite::findOrFail(request('website_id'));
        if ($website->user_id != $user->id) {
            throw new AccessDeniedException();
        }

        $website->delete();
        return ['status' => 'success'];
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Symfony\Component\Messenger\Tests\Handler\Locator;

use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\Messenger\Handler\Locator\ContainerHandlerLocator;
use Symfony\Component\Messenger\Tests\Fixtures\ChildDummyMessage;
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessageInterface;

class ContainerHandlerLocatorTest extends TestCase
{
    public function testItLocatesHandlerUsingTheMessageClass()
    {
        $handler = function () {};

        $container = new Container();
        $container->set('handler.'.DummyMessage::class, $handler);

        $locator = new ContainerHandlerLocator($container);
        $resolvedHandler = $locator->resolve(new DummyMessage('Hey'));

        $this->assertSame($handler, $resolvedHandler);
    }

    /**
     * @expectedException \Symfony\Component\Messenger\Exception\NoHandlerForMessageException
     * @expectedExceptionMessage No handler for message "Symfony\Component\Messenger\Tests\Fixtures\DummyMessage"
     */
    public function testThrowsNoHandlerException()
    {
        $locator = new ContainerHandlerLocator(new Container());
        $locator->resolve(new DummyMessage('Hey'));
    }

    public function testResolveMessageViaTheirInterface()
    {
        $handler = function () {};

        $container = new Container();
        $container->set('handler.'.DummyMessageInterface::class, $handler);

        $locator = new ContainerHandlerLocator($container);
        $resolvedHandler = $locator->resolve(new DummyMessage('Hey'));

        $this->assertSame($handler, $resolvedHandler);
    }

    public function testResolveMessageViaTheirParentClass()
    {
        $handler = function () {};

        $container = new Container();
        $container->set('handler.'.DummyMessage::class, $handler);

        $locator = new ContainerHandlerLocator($container);
        $resolvedHandler = $locator->resolve(new ChildDummyMessage('Hey'));

        $this->assertSame($handler, $resolvedHandler);
    }
}


text:
import {combineReducers, Reducer} from 'redux';
import {
  EnhanceGridReducer,
  EnhanceGridState, INITIAL_ENHANCE_GRID_STATE,
  INITIAL_PALETTE_ITEM_STATE,
  INITIAL_PALETTE_OPENED_STATE,
  PaletteItemReducer,
  PaletteItemState,
  PaletteOpenedReducer,
  PaletteOpenedState,
} from '../reducers/palette.reducer';
import {ButtonsState, ButtonsStateReducer, INITIAL_BUTTONS_STATE} from '../reducers/topologyRenderer.reducer';

export interface AppState {
  paletteItem: PaletteItemState;
  paletteOpened: PaletteOpenedState;
  enhanceGrid: EnhanceGridState;
  buttonsState: ButtonsState;
}

export const INITIAL_APP_STATE: AppState = {
  paletteItem: INITIAL_PALETTE_ITEM_STATE,
  paletteOpened: INITIAL_PALETTE_OPENED_STATE,
  enhanceGrid: INITIAL_ENHANCE_GRID_STATE,
  buttonsState: INITIAL_BUTTONS_STATE
};

export const paletteRootReducer: Reducer<AppState> = combineReducers<AppState>({
  paletteItem: PaletteItemReducer,
  paletteOpened: PaletteOpenedReducer,
  enhanceGrid: EnhanceGridReducer,
  buttonsState: ButtonsStateReducer
});


text:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const chai = require("chai");
const ioc = require("../index");
const define_1 = require("../lib/decorators/define");
const singleton_1 = require("../lib/decorators/singleton");
const lazy_1 = require("../lib/decorators/lazy");
const inject_1 = require("../lib/decorators/inject");
const factory_1 = require("../lib/decorators/factory");
let should = chai.should();
describe('Wire', function () {
    describe('should wire class', function () {
        let injector, CalcManager;
        beforeEach(async function () {
            injector = ioc.createContainer();
        });
        it('should wire class ', async function () {
            let injector1 = ioc.createContainer();
            let injector2 = ioc.createContainer();
            let B = class B {
                name() {
                    return "B";
                }
            };
            B = tslib_1.__decorate([
                (0, define_1.define)(),
                (0, singleton_1.singleton)()
            ], B);
            let C = class C {
                get() {
                    return "C";
                }
            };
            C = tslib_1.__decorate([
                (0, define_1.define)(),
                (0, singleton_1.singleton)(),
                (0, factory_1.factory)()
            ], C);
            let A = class A {
                constructor(a) {
                }
            };
            tslib_1.__decorate([
                (0, lazy_1.lazy)()
            ], A.prototype, "b", void 0);
            tslib_1.__decorate([
                (0, inject_1.inject)()
            ], A.prototype, "c", void 0);
            A = tslib_1.__decorate([
                (0, define_1.define)()
            ], A);
            injector1.register(B);
            injector2.register(C);
            injector1.parent = injector2;
            await injector1.initialize();
            await injector2.initialize();
            let rectangle = injector1.wire(A, ["1"]);
            should.exist(rectangle.b);
            rectangle.b.name().should.be.eq("B");
            rectangle.c.should.be.eq("C");
        });
    });
});
//# sourceMappingURL=wire.js.map


text:
<?xml version="1.0" encoding="UTF-8"?>

<!-- MAVEN PROFILE TEMPLATE

     THIS FILE IS ONLY AN EXAMPLE. THE ACTUAL FILE IS STORED IN THE
     MAVEN DIRECTORY (which is not under subversion).
-->

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

	<profiles>
		<!-- You can have multiple profiles in a single settings.xml file (if you have more than one
			Dryad instance/profile on a machine) but you can also have just one like this example -->
		<profile>
			<!-- may be: env-staging, env-prod, env-demo, etc. -->
			<id>env-dev</id>
			<properties>
				<!-- Where is this Dryad instance? British Library? NCSU? -->
				<default.dryad.home>North Carolina State University</default.dryad.home>
				<!-- Where the Dryad runtime/deployed directory is on the machine -->
				<default.dspace.dir>/opt/dryad</default.dspace.dir>
				<!-- The hostname... set to what displays in browser: dev.datadryad.org,  etc. -->
				<default.dspace.hostname>localhost</default.dspace.hostname>
				<!-- Port at which Dryad/Tomcat responds -->
				<default.dspace.port>9999</default.dspace.port>
				<!-- Location and name of the Dryad PostgreSQL database -->
				<default.db.url>jdbc:postgresql://karya.nescent.org:5432/[PUT_DB_HERE]</default.db.url>
				<!-- PostgreSQL/Dryad username and password -->
				<default.db.username>[PUT_DB_USERNAME_HERE]</default.db.username>
				<default.db.password>[PUT_DB_PASSWORD_HERE]</default.db.password>
				<!-- DOI registration (EZID currently) username and password -->
				<default.doi.username>[PUT_DOI_REG_USERNAME_HERE]</default.doi.username>
				<default.doi.password>[PUT_DOI_REG_PASSWORD_HERE]</default.doi.password>
				<!-- Dryad's DOI prefix -->
				<default.doi.prefix>10.5061</default.doi.prefix>
				<!-- Location of Dryad's DOI webapp/API -->
				<default.doi.service>http://localhost:9999/doi</default.doi.service>
				<!-- Whether DOIs/Handles should be rewritten to resolve locally (instead of going to dx.doi.org, etc., to be resolved) -->
				<default.dryad.localize>true</default.dryad.localize>
				<!-- Whether we really register DOIs or just pretend to -->
				<default.doi.datacite.connected>false</default.doi.datacite.connected>
				<!-- Mail server can be setup to use GMail or the local mailserver -->
				<default.mail.server>smtp.gmail.com</default.mail.server>
				<!-- localhost mail would just be:
					<default.mail.server>localhost</default.mail.server>
				-->
				<!-- If needed, mail server username and password -->
				<default.mail.server.username>[PUT_MAIL_SERVER_USER_HERE]</default.mail.server.username>
				<default.mail.server.password>[PUT_MAIL_SERVER_PASSWORD_HERE]</default.mail.server.password>
				<!-- Email values for where emails from Dryad go -->
				<default.mail.admin>admin@datadryad.org</default.mail.admin>
				<default.mail.help>help@datadryad.org</default.mail.help>
				<!-- Extra properties required if you're using Gmail as mail server (remove line breaks) -->
				<default.mail.extraproperties>mail.smtp.socketFactory.port=465, mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, mail.smtp.socketFactory.fallback=false</default.mail.extraproperties>
				<!-- If you're not using Gmail:
					<default.mail.extraproperties>mail.smtp.localhost=machine.domain.edu</default.mail.extraproperties>
				-->
				<!-- Who does the harvester run as? -->
				<default.harvester.eperson>rscherle@nescent.org</default.harvester.eperson>
				<!-- Location of Solr cores; ports should match dspace.port -->
				<!-- Dryad uses different ports to indicate: dev, demo, etc. -->
				<default.solr.search.server>http://localhost:9999/solr/search/</default.solr.search.server>
				<default.solr.stats.server>http://localhost:9999/solr/statistics/</default.solr.stats.server>
				<default.solr.dryad.server>http://localhost:9999/solr/dryad/</default.solr.dryad.server>
                <default.solr.authority.server>http://localhost:9999/solr/authority/</default.solr.authority.server>
				<!-- Location for the LoC BagIt software; we call from the cmdline -->
				<default.bagit.executable>/home/dryad/bagit-3.6/bin/bag</default.bagit.executable>
				<!-- Whether we should send bagit to test/dev server or production -->
				<default.bagit.testing.mode>true</default.bagit.testing.mode>
				<!-- Location for the journal-submit config file -->
				<default.submit.journal.config>/opt/dryad/config/DryadJournalSubmission.properties</default.submit.journal.config>

				<!-- Payment System -->
				<paypal.vendor>PayPal</paypal.vendor>
				<paypal.user>[user name in paypal manager]</paypal.user>
				<paypal.pwd>[password in paypal manager]</paypal.pwd>
				<paypal.payflow.link>[paypal payflow link]</paypal.payflow.link>
				<paypal.link>[paypal link like:https://payflowlink.paypal.com]</paypal.link>
				<paypal.partner>PayPal</paypal.partner>
				<paypal.verbosity>HIGH</paypal.verbosity>
				<paypal.slienttran>TRUE</paypal.slienttran>
				<paypal.mode>test</paypal.mode>
				<!-- System curator account -->
				<default.system.curator.account>system.curator@datadryad.org</default.system.curator.account>
			</properties>
		</profile>
	</profiles>
</settings>


text:
var nodemailer = require('nodemailer');

var EmailHandler = function (log, config) {
    this.log = log;
    this.readConfiguration(config.email || {});

    // Nodemailer configuration
    this.transporter = nodemailer.createTransport(this.nodemailerConfig);
};

// Configuration handling
EmailHandler.prototype.readConfiguration = function(config) {
    this.log.debug("Email handler configuration: " + JSON.stringify(config, null, "  "));
    this.enabled = config.enabled || false;
    this.emailAddress = config.emailAddress || "";
    this.nodemailerConfig = config.nodemailerConfig || null;
}

EmailHandler.prototype.generateConfiguration = function() {
    return { "enabled": this.enabled,
             "emailAddress": this.emailAddress,
             "nodemailerConfig": this.nodemailerConfig
    };
}

EmailHandler.prototype.validConfiguration = function() {
    if (!this.enabled) {
        return false;
    } else if (!this.emailAddress) {
        this.log.warn("No valid email address configured, can not send email notification.");
        return false;
    } else if (!this.nodemailerConfig) {
        this.log.warn("No valid nodemailer config, can not send email notification.");
        return false;
    }

    return true;
}

// Nodemailer handling
EmailHandler.prototype.sendNotification = function(alarmData) {
    if (this.validConfiguration()) {
        var mailOptions = {
            from: alarmData.title + this.nodemailerConfig.auth.user,
            to: this.emailAddress,
            subject: alarmData.subject,
            text: alarmData.text
        }
        var log = this.log;
        this.transporter.sendMail(mailOptions, function(error, info) {
            if (error) {
                return log.error("Could not send email notification: " + error);
            }
            log.info('Sent email notification: ' + info.response);
        });
    }
}

// Getters / Setters
EmailHandler.prototype.getEnabled = function() {
    return this.enabled;
}

EmailHandler.prototype.setEnabled = function(enabled) {
    this.log.info("Setting email notifications enabled to: " + enabled);
    this.enabled = (enabled == true);
}

EmailHandler.prototype.getEmailAddress = function() {
    return this.emailAddress;
}
EmailHandler.prototype.setEmailAddress = function(emailAddress) {
    this.log.info("Setting email notification address to: " + emailAddress);
    this.emailAddress = emailAddress;
}

module.exports = EmailHandler;


text:
/* Handle an opaque blob of data */

#include "blob.h"
#include "common.h"
#include "console.h"
#include "printf.h"
#include "queue.h"
#include "task.h"
#include "util.h"

#define CPRINTS(format, args...) cprints(CC_USB, format, ## args)

#define INCOMING_QUEUE_SIZE 100
#define OUTGOING_QUEUE_SIZE 100

static void incoming_add(struct queue_policy const *queue_policy, size_t count)
{
	task_wake(TASK_ID_BLOB);
}

static void incoming_remove(struct queue_policy const *queue_policy,
			    size_t count)
{
	blob_is_ready_for_more_bytes();
}

static struct queue_policy const incoming_policy = {
	.add = incoming_add,
	.remove = incoming_remove,
};

static void outgoing_add(struct queue_policy const *queue_policy, size_t count)
{
	blob_is_ready_to_emit_bytes();
}

static void outgoing_remove(struct queue_policy const *queue_policy,
			    size_t count)
{
	/* we don't care */
}

static struct queue_policy const outgoing_policy = {
	.add = outgoing_add,
	.remove = outgoing_remove,
};

static struct queue const incoming_q = QUEUE(INCOMING_QUEUE_SIZE, uint8_t,
					     incoming_policy);

static struct queue const outgoing_q = QUEUE(OUTGOING_QUEUE_SIZE, uint8_t,
					     outgoing_policy);

/* Call this to send data to the blob-handler */
size_t put_bytes_to_blob(uint8_t *buffer, size_t count)
{
	return QUEUE_ADD_UNITS(&incoming_q, buffer, count);
}

/* Call this to get data back fom the blob-handler */
size_t get_bytes_from_blob(uint8_t *buffer, size_t count)
{
	return QUEUE_REMOVE_UNITS(&outgoing_q, buffer, count);
}

#define WEAK_FUNC(FOO)							\
	void __ ## FOO(void) {}						\
	void FOO(void)							\
		__attribute__((weak, alias(STRINGIFY(CONCAT2(__, FOO)))))

/* Default callbacks for outsiders */
WEAK_FUNC(blob_is_ready_for_more_bytes);
WEAK_FUNC(blob_is_ready_to_emit_bytes);

/* Do the magic */
void blob_task(void)
{
	static uint8_t buf[INCOMING_QUEUE_SIZE];
	size_t count, i;
	task_id_t me = task_get_current();

	while (1) {
		CPRINTS("task %d waiting for events...", me);
		task_wait_event(-1);
		CPRINTS("task %d awakened!", me);

		count = QUEUE_REMOVE_UNITS(&incoming_q, buf, sizeof(buf));

		CPRINTS("task %d gets: count=%d buf=((%s))", me, count, buf);

		/*
		 * Just to have something to test to begin with, we'll
		 * implement "tr a-zA-Z A-Za-z" and return the result.
		 */
		for (i = 0; i < count; i++) {
			char tmp = buf[i];
			if (tmp >= 'a' && tmp <= 'z')
				buf[i] = tmp - ('a' - 'A');
			else if (tmp >= 'A' && tmp <= 'Z')
				buf[i] = tmp + ('a' - 'A');
		}

		count = QUEUE_ADD_UNITS(&outgoing_q, buf, count);
		CPRINTS("task %d puts: count=%d buf=((%s))", me, buf);
	}
}


text:
  <title>talks</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <link rel="stylesheet" href="https://necolas.github.io/normalize.css/3.0.2/normalize.css">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">

  <link rel="stylesheet" href="css/bootstrap-datetimepicker.css">


text:
All URIs are relative to *https://wireless.twilio.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateRatePlan**](RatePlansApi.md#CreateRatePlan) | **Post** /v1/RatePlans |
[**DeleteRatePlan**](RatePlansApi.md#DeleteRatePlan) | **Delete** /v1/RatePlans/{Sid} |
[**FetchRatePlan**](RatePlansApi.md#FetchRatePlan) | **Get** /v1/RatePlans/{Sid} |
[**ListRatePlan**](RatePlansApi.md#ListRatePlan) | **Get** /v1/RatePlans |
[**UpdateRatePlan**](RatePlansApi.md#UpdateRatePlan) | **Post** /v1/RatePlans/{Sid} |

## CreateRatePlan

> WirelessV1RatePlan CreateRatePlan(ctx, optional)

### Path Parameters

This endpoint does not need any path parameter.

### Other Parameters

Other parameters are passed through a pointer to a CreateRatePlanParams struct

Name | Type | Description
------------- | ------------- | -------------
**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It does not have to be unique.
**DataEnabled** | **bool** | Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
**DataLimit** | **int** | The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`.
**DataMetering** | **string** | The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans).
**MessagingEnabled** | **bool** | Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource).
**VoiceEnabled** | **bool** | Deprecated.
**NationalRoamingEnabled** | **bool** | Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming).
**InternationalRoaming** | **[]string** | The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
**NationalRoamingDataLimit** | **int** | The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info.
**InternationalRoamingDataLimit** | **int** | The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.

### Return type

[**WirelessV1RatePlan**](WirelessV1RatePlan.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

## DeleteRatePlan

> DeleteRatePlan(ctx, Sid)

### Path Parameters

Name | Type | Description
------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**Sid** | **string** | The SID of the RatePlan resource to delete.

### Other Parameters

Other parameters are passed through a pointer to a DeleteRatePlanParams struct

Name | Type | Description
------------- | ------------- | -------------

### Return type

 (empty response body)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

## FetchRatePlan

> WirelessV1RatePlan FetchRatePlan(ctx, Sid)

### Path Parameters

Name | Type | Description
------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**Sid** | **string** | The SID of the RatePlan resource to fetch.

### Other Parameters

Other parameters are passed through a pointer to a FetchRatePlanParams struct

Name | Type | Description
------------- | ------------- | -------------

### Return type

[**WirelessV1RatePlan**](WirelessV1RatePlan.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

## ListRatePlan

> []WirelessV1RatePlan ListRatePlan(ctx, optional)

### Path Parameters

This endpoint does not need any path parameter.

### Other Parameters

Other parameters are passed through a pointer to a ListRatePlanParams struct

Name | Type | Description
------------- | ------------- | -------------
**PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000.
**Limit** | **int** | Max number of records to return.

### Return type

[**[]WirelessV1RatePlan**](WirelessV1RatePlan.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)

## UpdateRatePlan

> WirelessV1RatePlan UpdateRatePlan(ctx, Sidoptional)

### Path Parameters

Name | Type | Description
------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**Sid** | **string** | The SID of the RatePlan resource to update.

### Other Parameters

Other parameters are passed through a pointer to a UpdateRatePlanParams struct

Name | Type | Description
------------- | ------------- | -------------
**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It does not have to be unique.

### Return type

[**WirelessV1RatePlan**](WirelessV1RatePlan.md)

### Authorization

[accountSid_authToken](../README.md#accountSid_authToken)

### HTTP request headers

- **Content-Type**: application/x-www-form-urlencoded
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)


text:
<?php

namespace Zend\Mvc;

use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;

/**
 * @category   Zend
 * @package    Zend_Mvc
 */
class ModuleRouteListener implements ListenerAggregateInterface
{
    const MODULE_NAMESPACE    = '__NAMESPACE__';
    const ORIGINAL_CONTROLLER = '__CONTROLLER__';

    /**
     * @var \Zend\Stdlib\CallbackHandler[]
     */
    protected $listeners = array();

    /**
     * Attach to an event manager
     *
     * @param  EventManagerInterface $events
     * @param  integer $priority
     */
    public function attach(EventManagerInterface $events, $priority = 1)
    {
        $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), $priority);
    }

    /**
     * Detach all our listeners from the event manager
     *
     * @param  EventManagerInterface $events
     * @return void
     */
    public function detach(EventManagerInterface $events)
    {
        foreach ($this->listeners as $index => $listener) {
            if ($events->detach($listener)) {
                unset($this->listeners[$index]);
            }
        }
    }

    /**
     * Listen to the "route" event and determine if the module namespace should
     * be prepended to the controller name.
     *
     * If the route match contains a parameter key matching the MODULE_NAMESPACE
     * constant, that value will be prepended, with a namespace separator, to
     * the matched controller parameter.
     *
     * @param  MvcEvent $e
     * @return null
     */
    public function onRoute(MvcEvent $e)
    {
        $matches = $e->getRouteMatch();
        if (!$matches instanceof Router\RouteMatch) {
            // Can't do anything without a route match
            return;
        }

        $module = $matches->getParam(self::MODULE_NAMESPACE, false);
        if (!$module) {
            // No module namespace found; nothing to do
            return;
        }

        $controller = $matches->getParam('controller', false);
        if (!$controller) {
            // no controller matched, nothing to do
            return;
        }

        // Ensure the module namespace has not already been applied
        if (0 === strpos($controller, $module)) {
            return;
        }

        // Keep the originally matched controller name around
        $matches->setParam(self::ORIGINAL_CONTROLLER, $controller);

        // Prepend the controllername with the module, and replace it in the
        // matches
        $controller = $module . '\\' . str_replace(' ', '', ucwords(str_replace('-', ' ', $controller)));
        $matches->setParam('controller', $controller);
    }
}


text:
using namespace DT3;

//==============================================================================
//==============================================================================

EdLevelHierarchyWindowMIME::EdLevelHierarchyWindowMIME(void)
{

}

EdLevelHierarchyWindowMIME::~EdLevelHierarchyWindowMIME(void)
{

}

//==============================================================================
//==============================================================================

void EdLevelHierarchyWindowMIME::addObject (const std::shared_ptr<PlugNode> &node)
{
    if (std::find(_nodes.begin(), _nodes.end(), node) == _nodes.end()) {
        _nodes.push_back(node);
    }
}

const std::list<std::shared_ptr<PlugNode>>& EdLevelHierarchyWindowMIME::getNodes (void) const
{
    return _nodes;
}

//==============================================================================
//==============================================================================

bool EdLevelHierarchyWindowMIME::hasFormat (const QString &mimeType) const
{
    if (mimeType == "DT3/HierItem")
        return true;
    else
        return false;
}

QStringList EdLevelHierarchyWindowMIME::formats (void) const
{
    QStringList m;
    m << "DT3/HierItem";
    return m;
}

QVariant EdLevelHierarchyWindowMIME::retrieveData (const QString & mimeType, QVariant::Type type ) const
{
    if (mimeType == "DT3/HierItem") {
        return QString("DT3/HierItem");
    } else {
        return QMimeData::retrieveData (mimeType, type);
    }

}

//==============================================================================
//==============================================================================

#include "moc_EdLevelHierarchyWindowMIME.cpp"


text:
/* We are given a school. In the school there are classes of students. Each class has a set of teachers.
   Each teacher teaches, a set of disciplines. Students have a name and unique class number.
   Classes have unique text identifier. Teachers have a name. Disciplines have a name, number of lectures and number of exercises.
   Both teachers and students are people. Students, classes, teachers and disciplines could have optional comments (free text block).
   Your task is to identify the classes (in terms of OOP) and their attributes and operations,
   encapsulate their fields, define the class hierarchy and create a class diagram with Visual Studio.*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SchoolClasses
{
    class Class
    {
        #region Fields

        protected List<Student> studentList;
        protected List<Teacher> teacherList;

        #endregion

        #region Properties
        public List<Student> ListOfStudents
        {
            get
            {
                return new List<Student>(this.studentList);
            }
        }
        public List<Teacher> ListOfTeachers
        {
            get
            {
                return new List<Teacher>(this.teacherList);
            }
        }

        #endregion

        #region Constructors

        public Class()
        {
            this.studentList = new List<Student>();
            this.teacherList = new List<Teacher>();
        }

        #endregion
    }
}


text:
var alexa = require('alexa-app');

// Allow this module to be reloaded by hotswap when changed
module.change_code = 1;

// Define an alexa-app
var app = new alexa.app('helloworld');
app.launch(function(req,res) {
	res.say("Hello World!!");
});
app.intent('NameIntent', {
		"slots":{"NAME":"LITERAL","AGE":"NUMBER"}
		,"utterances":["{My name is|my name's} {matt|bob|bill|jake|nancy|mary|jane|NAME} and I am {1-100|AGE}{ years old|}"]
	},function(req,res) {
		res.say('Your name is '+req.slot('NAME')+' and you are '+req.slot('AGE')+' years old');
	}
);
app.intent('AgeIntent', {
		"slots":{"AGE":"NUMBER"}
		,"utterances":["My age is {1-100|AGE}"]
	},function(req,res) {
		res.say('Your age is '+req.slot('AGE'));
	}
);
module.exports = app;


text:
package com.esotericsoftware.reflectasm.benchmark;

import com.esotericsoftware.reflectasm.ClassAccess;
import com.esotericsoftware.reflectasm.ConstructorAccess;

import java.lang.invoke.MethodHandle;

public class ConstructorAccessBenchmark extends Benchmark {
    public static String[] result;

    public ConstructorAccessBenchmark() throws Throwable {
        final int count = Benchmark.testRounds;
        final int rounds = Benchmark.testCount;
        Object[] dontCompileMeAway = new Object[count];

        Class type = SomeClass.class;
        ConstructorAccess<SomeClass> access = ConstructorAccess.access(type);
        MethodHandle handle = access.console.getHandle(null, null, ClassAccess.NEW);

        for (int i = 0; i < rounds / 3; i++)
            for (int ii = 0; ii < count; ii++) {
                dontCompileMeAway[ii] = access.console.accessor.newInstance();
                dontCompileMeAway[ii] = type.newInstance();
                dontCompileMeAway[ii] = (SomeClass) handle.invokeExact();
            }

        for (int i = 0; i < rounds; i++)
            for (int ii = 0; ii < count; ii++)

                warmup = false;
        start();
        for (int i = 0; i < rounds; i++) {
            for (int ii = 0; ii < count; ii++)
                dontCompileMeAway[ii] = access.newInstance();
        }
        end("Constructor - ReflectASM");
        start();
        for (int i = 0; i < rounds; i++) {
            for (int ii = 0; ii < count; ii++)
                dontCompileMeAway[ii] = (SomeClass) handle.invokeExact();
        }
        end("Constructor - DirectMethodHandle");
        start();
        for (int i = 0; i < rounds; i++) {
            for (int ii = 0; ii < count; ii++)
                dontCompileMeAway[ii] = type.newInstance();
        }
        end("Constructor - Reflection");
        start();
        for (int i = 0; i < rounds; i++) {
            for (int ii = 0; ii < count; ii++)
                dontCompileMeAway[ii] = new SomeClass();
        }
        end("Constructor - Direct");
        result = chart("Constructor");
    }

    public static void main(String[] args) throws Throwable {
        new ConstructorAccessBenchmark();
    }

    static public class SomeClass {
        public String name;
    }
}


text:
package org.swtk.commons.dict.wordnet;

import org.swtk.common.dict.dto.wordnet.DataNounFrame;
import org.swtk.common.dict.dto.wordnet.DataNounFrames;
import org.swtk.common.dict.types.DataNounFrameType;

public final class DataNounFramesHelper {

	public static DataNounFrames filter(DataNounFrames dataNounFrames, DataNounFrameType frameType) {
		DataNounFrames filtered = new DataNounFrames();
		for (DataNounFrame dataNounFrame : dataNounFrames)
			if (frameType == dataNounFrame.getFrameType()) filtered.add(dataNounFrame);

		return filtered;
	}
}


text:
using Qowaiv;
using Qowaiv.Financial;
using Qowaiv.IO;
using Qowaiv.Statistics;

namespace System.Linq;

/// Extensions on <see cref="IEnumerable{T}"/>.
public static class QowaivEnumerableExtensions
{
    /// Computes the average of a sequence of <see cref="Amount"/> values that are obtained
    /// by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The average of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="InvalidOperationException">
    /// source contains no elements.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount Average<TSource>(this IEnumerable<TSource> source, Func<TSource, Amount> selector)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;
        var count = 0L;

        foreach (var item in source)
        {
            count++;
            var amount = selector(item);
            checked
            {
                total += (decimal)amount;
            }
        }

        return count == 0
            ? throw NoElements()
            : (total / count).Amount();
    }

    /// Computes the average of a sequence of nullable <see cref="Amount"/> values that are
    /// obtained by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The average of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, Amount?> selector)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;
        var count = 0L;

        foreach (var item in source)
        {
            var value = selector(item);

            if (value.HasValue)
            {
                count++;
                var amount = value.GetValueOrDefault();
                checked
                {
                    total += (decimal)amount;
                }
            }
        }
        if (count == 0)
        {
            return null;
        }
        return (total / count).Amount();
    }

    /// Computes the average of a sequence of <see cref="Amount"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <returns>
    /// The average of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="InvalidOperationException">
    /// source contains no elements.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount Average(this IEnumerable<Amount> source)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;
        var count = 0L;

        foreach (var amount in source)
        {
            count++;
            checked
            {
                total += (decimal)amount;
            }
        }
        return count == 0
            ? throw NoElements()
            : (total / count).Amount();
    }

    /// Computes the average of a sequence of nullable <see cref="Amount"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <returns>
    /// The average of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount? Average(this IEnumerable<Amount?> source)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;
        var count = 0L;

        foreach (var value in source)
        {
            if (value.HasValue)
            {
                count++;
                var amount = value.GetValueOrDefault();
                checked
                {
                    total += (decimal)amount;
                }
            }
        }
        if (count == 0)
        {
            return null;
        }
        return (total / count).Amount();
    }

    /// Computes the average of a sequence of <see cref="Money"/> values that are obtained
    /// by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The average of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="InvalidOperationException">
    /// source contains no elements.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money Average<TSource>(this IEnumerable<TSource> source, Func<TSource, Money> selector)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;
        var count = 0L;

        foreach (var item in source)
        {
            count++;
            var money = selector(item);

            if (first)
            {
                first = false;
                currency = money.Currency;
            }
            if (currency != money.Currency)
            {
                throw new CurrencyMismatchException(currency, money.Currency, nameof(Average));
            }
            checked
            {
                total += (decimal)money;
            }
        }

        return count == 0
            ? throw NoElements()
            : (total / count) + currency;
    }

    /// Computes the average of a sequence of nullable <see cref="Money"/> values that are
    /// obtained by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The average of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money? Average<TSource>(this IEnumerable<TSource> source, Func<TSource, Money?> selector)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;
        var count = 0L;

        foreach (var item in source)
        {
            var value = selector(item);

            if (value.HasValue)
            {
                count++;
                var money = value.GetValueOrDefault();

                if (first)
                {
                    first = false;
                    currency = money.Currency;
                }
                if (currency != money.Currency)
                {
                    throw new CurrencyMismatchException(currency, money.Currency, nameof(Average));
                }
                checked
                {
                    total += (decimal)money;
                }
            }
        }
        if (count == 0)
        {
            return null;
        }
        return (total / count) + currency;
    }

    /// Computes the average of a sequence of <see cref="Money"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <returns>
    /// The average of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="InvalidOperationException">
    /// source contains no elements.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money Average(this IEnumerable<Money> source)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;
        var count = 0L;

        foreach (var money in source)
        {
            count++;

            if (first)
            {
                first = false;
                currency = money.Currency;
            }
            if (currency != money.Currency)
            {
                throw new CurrencyMismatchException(currency, money.Currency, nameof(Average));
            }
            checked
            {
                total += (decimal)money;
            }
        }

        return count == 0
            ? throw NoElements()
            : (total / count) + currency;
    }

    /// Computes the average of a sequence of nullable <see cref="Money"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an average.
    /// </param>
    /// <returns>
    /// The average of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money? Average(this IEnumerable<Money?> source)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;
        var count = 0L;

        foreach (var value in source)
        {
            if (value.HasValue)
            {
                count++;
                var money = value.GetValueOrDefault();

                if (first)
                {
                    first = false;
                    currency = money.Currency;
                }
                if (currency != money.Currency)
                {
                    throw new CurrencyMismatchException(currency, money.Currency, nameof(Average));
                }
                checked
                {
                    total += (decimal)money;
                }
            }
        }
        if (count == 0)
        {
            return null;
        }
        return (total / count) + currency;
    }

    /// Gets the average Elo.
    [Pure]
    public static Elo Average(this IEnumerable<Elo> elos) => elos.Select(elo => (double)elo).Average();

    /// Computes the average of a sequence of stream sizes.
    [Pure]
    public static StreamSize Average(this IEnumerable<StreamSize> streamSizes)
        => new((long)streamSizes.Average(streamSize => (long)streamSize));

    /// Computes the sum of a sequence of <see cref="Amount"/> values that are obtained
    /// by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The sum of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, Amount> selector)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;

        foreach (var item in source)
        {
            var amount = selector(item);
            checked
            {
                total += (decimal)amount;
            }
        }

        return total.Amount();
    }

    /// Computes the sum of a sequence of nullable <see cref="Amount"/> values that are
    /// obtained by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The sum of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, Amount?> selector)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;
        var none = true;

        foreach (var item in source)
        {
            var value = selector(item);

            if (value.HasValue)
            {
                none = false;
                var amount = value.GetValueOrDefault();
                checked
                {
                    total += (decimal)amount;
                }
            }
        }
        return none ? null : total.Amount();
    }

    /// Computes the sum of a sequence of <see cref="Amount"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <returns>
    /// The sum of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount Sum(this IEnumerable<Amount> source)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;

        foreach (var amount in source)
        {
            checked
            {
                total += (decimal)amount;
            }
        }
        return total.Amount();
    }

    /// Computes the sum of a sequence of nullable <see cref="Amount"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <returns>
    /// The sum of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all amount elements have the same currency.
    /// </exception>
    [Pure]
    public static Amount? Sum(this IEnumerable<Amount?> source)
    {
        Guard.NotNull(source, nameof(source));

        var total = decimal.Zero;
        var none = true;

        foreach (var value in source)
        {
            if (value.HasValue)
            {
                none = false;
                var amount = value.GetValueOrDefault();
                checked
                {
                    total += (decimal)amount;
                }
            }
        }
       return none ? null : total.Amount();
    }

    /// Computes the sum of a sequence of <see cref="Money"/> values that are obtained
    /// by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The sum of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, Money> selector)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;

        foreach (var item in source)
        {
            var money = selector(item);

            if (first)
            {
                first = false;
                currency = money.Currency;
            }
            if (currency != money.Currency)
            {
                throw new CurrencyMismatchException(currency, money.Currency, nameof(Sum));
            }
            checked
            {
                total += (decimal)money;
            }
        }
        return total + currency;
    }

    /// Computes the sum of a sequence of nullable <see cref="Money"/> values that are
    /// obtained by invoking a transform function on each element of the input sequence.
    ///
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <param name="selector">
    /// A transform function to apply to each element.
    /// </param>
    /// <typeparam name="TSource">
    /// The type of the elements of source.
    /// </typeparam>
    /// <returns>
    /// The sum of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money? Sum<TSource>(this IEnumerable<TSource> source, Func<TSource, Money?> selector)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;
        var none = true;

        foreach (var item in source)
        {
            var value = selector(item);

            if (value.HasValue)
            {
                none = false;
                var money = value.GetValueOrDefault();

                if (first)
                {
                    first = false;
                    currency = money.Currency;
                }
                if (currency != money.Currency)
                {
                    throw new CurrencyMismatchException(currency, money.Currency, nameof(Sum));
                }
                checked
                {
                    total += (decimal)money;
                }
            }
        }
        return none ? null : total + currency;
    }

    /// Computes the sum of a sequence of <see cref="Money"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <returns>
    /// The sum of the sequence of values.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money Sum(this IEnumerable<Money> source)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;

        foreach (var money in source)
        {
            if (first)
            {
                first = false;
                currency = money.Currency;
            }
            if (currency != money.Currency)
            {
                throw new CurrencyMismatchException(currency, money.Currency, nameof(Sum));
            }
            checked
            {
                total += (decimal)money;
            }
        }
        return total + currency;
    }

    /// Computes the sum of a sequence of nullable <see cref="Money"/> values.
    /// <param name="source">
    /// A sequence of values that are used to calculate an sum.
    /// </param>
    /// <returns>
    /// The sum of the sequence of values, or null if the source sequence is empty
    /// or contains only values that are null.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    /// source or selector is null.
    /// </exception>
    /// <exception cref="CurrencyMismatchException">
    /// not all money elements have the same currency.
    /// </exception>
    [Pure]
    public static Money? Sum(this IEnumerable<Money?> source)
    {
        Guard.NotNull(source, nameof(source));

        var currency = Currency.Empty;
        var first = true;
        var total = decimal.Zero;
        var none = true;

        foreach (var value in source)
        {
            if (value.HasValue)
            {
                none = false;
                var money = value.GetValueOrDefault();

                if (first)
                {
                    first = false;
                    currency = money.Currency;
                }
                if (currency != money.Currency)
                {
                    throw new CurrencyMismatchException(currency, money.Currency, nameof(Sum));
                }
                checked
                {
                    total += (decimal)money;
                }
            }
        }
        return none ? null : total + currency;
    }

    /// Computes the sum of a sequence of stream sizes.
    [Pure]
    public static StreamSize Sum(this IEnumerable<StreamSize> streamSizes)
        => new(streamSizes.Sum(streamSize => (long)streamSize));

    /// Converts the enumeration into an <see cref="EmailAddressCollection"/>.
    [Pure]
    public static EmailAddressCollection ToCollection(this IEnumerable<EmailAddress> adresses)
        => new(adresses);

    [Pure]
    private static InvalidOperationException NoElements() => new(QowaivMessages.InvalidOperationException_NoElements);
}