text:
@charset "UTF-8";
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
/* line 10, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */ }

/**
 * Remove default margin.
 */
/* line 20, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
body {
  margin: 0; }

/* HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
/* line 34, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block; }

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */
/* line 55, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
audio,
canvas,
progress,
video {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */ }

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
/* line 68, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
audio:not([controls]) {
  display: none;
  height: 0; }

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */
/* line 78, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
[hidden],
template {
  display: none; }

/* Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
/* line 90, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
a {
  background-color: transparent; }

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */
/* line 98, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
a:active,
a:hover {
  outline: 0; }

/* Text-level semantics
   ========================================================================== */
/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */
/* line 110, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
abbr[title] {
  border-bottom: 1px dotted; }

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */
/* line 118, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
b,
strong {
  font-weight: bold; }

/**
 * Address styling not present in Safari and Chrome.
 */
/* line 127, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
dfn {
  font-style: italic; }

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */
/* line 136, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
h1 {
  font-size: 2em;
  margin: 0.67em 0; }

/**
 * Address styling not present in IE 8/9.
 */
/* line 145, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
mark {
  background: #ff0;
  color: #000; }

/**
 * Address inconsistent and variable font size in all browsers.
 */
/* line 154, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
small {
  font-size: 80%; }

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
/* line 162, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

/* line 170, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
sup {
  top: -0.5em; }

/* line 174, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
sub {
  bottom: -0.25em; }

/* Embedded content
   ========================================================================== */
/**
 * Remove border when inside `a` element in IE 8/9/10.
 */
/* line 185, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
img {
  border: 0; }

/**
 * Correct overflow not hidden in IE 9/10/11.
 */
/* line 193, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
svg:not(:root) {
  overflow: hidden; }

/* Grouping content
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari.
 */
/* line 204, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
figure {
  margin: 1em 40px; }

/**
 * Address differences between Firefox and other browsers.
 */
/* line 212, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0; }

/**
 * Contain overflow in all browsers.
 */
/* line 222, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
pre {
  overflow: auto; }

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */
/* line 230, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em; }

/* Forms
   ========================================================================== */
/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */
/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */
/* line 253, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  /* 1 */
  font: inherit;
  /* 2 */
  margin: 0;
  /* 3 */ }

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */
/* line 267, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
button {
  overflow: visible; }

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */
/* line 278, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
button,
select {
  text-transform: none; }

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
/* line 291, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
  cursor: pointer;
  /* 3 */ }

/**
 * Re-set default cursor for disabled elements.
 */
/* line 303, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
button[disabled],
html input[disabled] {
  cursor: default; }

/**
 * Remove inner padding and border in Firefox 4+.
 */
/* line 312, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0; }

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
/* line 323, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
input {
  line-height: normal; }

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
/* line 335, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */
/* line 347, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto; }

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */
/* line 358, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
input[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */
  box-sizing: content-box; }

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */
/* line 371, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
 * Define consistent border, margin, and padding.
 */
/* line 380, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em; }

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
/* line 391, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
legend {
  border: 0;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */
/* line 400, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
textarea {
  overflow: auto; }

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */
/* line 409, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
optgroup {
  font-weight: bold; }

/* Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
/* line 420, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
table {
  border-collapse: collapse;
  border-spacing: 0; }

/* line 425, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/vendor/normalize.css */
td,
th {
  padding: 0; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_buttons.scss */
button, input[type="button"], input[type="reset"], input[type="submit"],
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
  background-color: #477dca;
  border-radius: 3px;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  padding: 0.75em 1em;
  text-decoration: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap; }
  /* line 21, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_buttons.scss */
  button:hover, button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="reset"]:hover, input[type="reset"]:focus, input[type="submit"]:hover, input[type="submit"]:focus,
  button:hover,
  button:focus {
    background-color: #2c5999;
    color: #fff; }
  /* line 27, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_buttons.scss */
  button:disabled, input[type="button"]:disabled, input[type="reset"]:disabled, input[type="submit"]:disabled,
  button:disabled {
    cursor: not-allowed;
    opacity: 0.5; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
fieldset {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  margin: 0 0 0.75em;
  padding: 1.5em; }

/* line 8, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
input,
label,
select {
  display: block;
  font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
  font-size: 1em; }

/* line 16, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
label {
  font-weight: 600;
  margin-bottom: 0.375em; }
  /* line 20, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
  label.required::after {
    content: "*"; }
  /* line 24, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
  label abbr {
    display: none; }

/* line 29, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"], textarea,
select[multiple=multiple],
textarea {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
  font-size: 1em;
  margin-bottom: 0.75em;
  padding: 0.5em;
  transition: border-color;
  width: 100%; }
  /* line 44, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
  input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="email"]:hover, input[type="month"]:hover, input[type="number"]:hover, input[type="password"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="text"]:hover, input[type="time"]:hover, input[type="url"]:hover, input[type="week"]:hover, textarea:hover,
  select[multiple=multiple]:hover,
  textarea:hover {
    border-color: #c4c4c4; }
  /* line 48, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
  input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, textarea:focus,
  select[multiple=multiple]:focus,
  textarea:focus {
    border-color: #477dca;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 5px rgba(55, 112, 192, 0.7);
    outline: none; }

/* line 55, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
textarea {
  resize: vertical; }

/* line 59, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
input[type="search"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none; }

/* line 63, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
input[type="checkbox"],
input[type="radio"] {
  display: inline;
  margin-right: 0.375em; }

/* line 69, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
input[type="file"] {
  padding-bottom: 0.75em;
  width: 100%; }

/* line 74, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_forms.scss */
select {
  margin-bottom: 1.5em;
  max-width: 100%;
  width: auto; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_lists.scss */
ul,
ol {
  list-style-type: none;
  margin: 0;
  padding: 0; }
/* line 20, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_lists.scss */
dl {
  margin-bottom: 0.75em; }
  /* line 23, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_lists.scss */
  dl dt {
    font-weight: bold;
    margin-top: 0.75em; }
  /* line 28, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_lists.scss */
  dl dd {
    margin: 0; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_tables.scss */
table {
  -webkit-font-feature-settings: "kern", "liga", "tnum";
  -moz-font-feature-settings: "kern", "liga", "tnum";
  -ms-font-feature-settings: "kern", "liga", "tnum";
  font-feature-settings: "kern", "liga", "tnum";
  border-collapse: collapse;
  margin: 0.75em 0;
  table-layout: fixed;
  width: 100%; }

/* line 9, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_tables.scss */
th {
  border-bottom: 1px solid #b7b7b7;
  font-weight: 600;
  padding: 0.75em 0;
  text-align: left; }

/* line 16, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_tables.scss */
td {
  border-bottom: 1px solid #ddd;
  padding: 0.75em 0; }

/* line 21, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_tables.scss */
tr,
td,
th {
  vertical-align: middle; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
body {
  -webkit-font-feature-settings: "kern", "liga", "pnum";
  -moz-font-feature-settings: "kern", "liga", "pnum";
  -ms-font-feature-settings: "kern", "liga", "pnum";
  font-feature-settings: "kern", "liga", "pnum";
  -webkit-font-smoothing: antialiased;
  color: #333;
  font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
  font-size: 1em;
  line-height: 1.5; }

/* line 10, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
  font-size: 1em;
  line-height: 1.2;
  margin: 0 0 0.75em; }

/* line 22, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
p {
  margin: 0 0 0.75em; }

/* line 26, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
a {
  color: #477dca;
  text-decoration: none;
  transition: color 0.1s linear; }
  /* line 31, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
  a:active, a:focus, a:hover {
    color: #2c5999; }
  /* line 37, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
  a:active, a:focus {
    outline: none; }

/* line 43, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
hr {
  border-bottom: 1px solid #ddd;
  border-left: none;
  border-right: none;
  border-top: none;
  margin: 1.5em 0; }

/* line 51, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/base/_typography.scss */
img,
picture {
  margin: 0;
  max-width: 100%; }

/* line 4, /home/gleb/.rvm/gems/ruby-2.2.1/gems/neat-1.7.2/app/assets/stylesheets/grid/_box-sizing.scss */
html {
  box-sizing: border-box; }

/* line 9, /home/gleb/.rvm/gems/ruby-2.2.1/gems/neat-1.7.2/app/assets/stylesheets/grid/_box-sizing.scss */
*, *::after, *::before {
  box-sizing: inherit; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
body {
  background-color: #ddd;
  color: #999; }

/* line 6, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
.delete-me {
  -webkit-box-align: center;
  -moz-box-align: center;
  box-align: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -ms-flex-align: center;
  display: -webkit-box;
  display: -moz-box;
  display: box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  box-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -ms-flex-pack: center;
  height: 50vh; }
  /* line 12, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
  .delete-me .container {
    text-align: center; }
    /* line 15, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
    .delete-me .container h1 {
      font-weight: 200; }

/* line 21, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
.boxes {
  max-width: 68em;
  margin-left: auto;
  margin-right: auto; }
  /* line 20, /home/gleb/.rvm/gems/ruby-2.2.1/gems/bourbon-4.2.3/app/assets/stylesheets/addons/_clearfix.scss */
  .boxes::after {
    clear: both;
    content: "";
    display: table; }

/* line 25, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
.box {
  background: #ff6666;
  height: 100px;
  width: 100px;
  margin: 20px;
  float: left;
  float: left;
  display: block;
  margin-right: 2.35765%;
  width: 23.23176%; }
  /* line 89, /home/gleb/.rvm/gems/ruby-2.2.1/gems/neat-1.7.2/app/assets/stylesheets/grid/_span-columns.scss */
  .box:last-child {
    margin-right: 0; }

/* line 33, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/_global.scss */
p {
  font-family: "Georgia", "Cambria", "Times New Roman", "Times", serif; }

/* line 1, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
header.navigation {
  background-color: #333;
  border-bottom: 1px solid #1a1a1a;
  min-height: 60px;
  width: 100%;
  z-index: 999; }
  /* line 28, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation .navigation-wrapper {
    max-width: 68em;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 9999; }
    /* line 20, /home/gleb/.rvm/gems/ruby-2.2.1/gems/bourbon-4.2.3/app/assets/stylesheets/addons/_clearfix.scss */
    header.navigation .navigation-wrapper::after {
      clear: both;
      content: "";
      display: table; }
    /* line 20, /home/gleb/.rvm/gems/ruby-2.2.1/gems/bourbon-4.2.3/app/assets/stylesheets/addons/_clearfix.scss */
    header.navigation .navigation-wrapper::after {
      clear: both;
      content: "";
      display: table; }
  /* line 35, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation .logo {
    float: left;
    max-height: 60px;
    padding-left: 1em;
    padding-right: 2em; }
    /* line 41, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation .logo img {
      max-height: 60px;
      padding: 0.8em 0; }
  /* line 49, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation .navigation-menu-button {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    float: right;
    font-weight: 700;
    line-height: 60px;
    margin: 0;
    padding-right: 1em;
    text-transform: uppercase; }
    @media screen and (min-width: 53.75em) {
      /* line 49, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation .navigation-menu-button {
        display: none; } }
    /* line 63, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation .navigation-menu-button:focus, header.navigation .navigation-menu-button:hover {
      color: white; }
  /* line 71, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation nav {
    float: none;
    min-height: 60px;
    z-index: 9999999; }
    @media screen and (min-width: 53.75em) {
      /* line 71, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation nav {
        float: left; } }
  /* line 81, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation ul.navigation-menu {
    -webkit-transform-style: preserve-3d;
    clear: both;
    display: none;
    margin: 0 auto;
    overflow: visible;
    padding: 0;
    width: 100%;
    z-index: 9999; }
    /* line 91, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation ul.navigation-menu.show {
      display: block; }
    @media screen and (min-width: 53.75em) {
      /* line 81, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation ul.navigation-menu {
        display: inline;
        margin: 0;
        padding: 0; } }
  /* line 104, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation ul li.nav-link {
    background: #333;
    display: block;
    line-height: 60px;
    overflow: hidden;
    padding-right: 0.8em;
    text-align: right;
    width: 100%;
    z-index: 9999; }
    @media screen and (min-width: 53.75em) {
      /* line 104, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation ul li.nav-link {
        background: transparent;
        display: inline;
        line-height: 60px;
        text-decoration: none;
        width: auto; } }
    /* line 122, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation ul li.nav-link a {
      color: rgba(255, 255, 255, 0.7);
      display: inline-block;
      font-weight: 400;
      text-decoration: none; }
      @media screen and (min-width: 53.75em) {
        /* line 122, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
        header.navigation ul li.nav-link a {
          padding-right: 1em; } }
      /* line 132, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation ul li.nav-link a:focus, header.navigation ul li.nav-link a:hover {
        color: white; }
  /* line 139, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation .active-nav-item a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 3px; }
  /* line 146, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation li.more.nav-link {
    padding-right: 0; }
    @media screen and (min-width: 53.75em) {
      /* line 146, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation li.more.nav-link {
        padding-right: 1em; } }
    /* line 153, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more.nav-link > ul > li:first-child a {
      padding-top: 1em; }
    /* line 157, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more.nav-link a {
      margin-right: 1em; }
    /* line 161, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more.nav-link > a {
      padding-right: 0.6em; }
    /* line 165, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more.nav-link > a:after {
      position: absolute;
      top: auto;
      right: -0.4em;
      bottom: auto;
      left: auto;
      content: '\25BE';
      color: rgba(255, 255, 255, 0.7); }
  /* line 172, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation li.more {
    overflow: visible;
    padding-right: 0; }
    /* line 176, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more a {
      padding-right: 0.8em; }
    /* line 180, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more > a {
      padding-right: 1.6em;
      position: relative; }
      @media screen and (min-width: 53.75em) {
        /* line 180, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
        header.navigation li.more > a {
          margin-right: 1em; } }
      /* line 188, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation li.more > a:after {
        content: '›';
        font-size: 1.2em;
        position: absolute;
        right: 0.5em; }
    /* line 196, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation li.more:focus > .submenu, header.navigation li.more:hover > .submenu {
      display: block; }
    @media screen and (min-width: 53.75em) {
      /* line 172, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation li.more {
        padding-right: 0.8em;
        position: relative; } }
  /* line 207, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation ul.submenu {
    display: none;
    padding-left: 0; }
    @media screen and (min-width: 53.75em) {
      /* line 207, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation ul.submenu {
        left: -1em;
        position: absolute;
        top: 1.5em; } }
    @media screen and (min-width: 53.75em) {
      /* line 217, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation ul.submenu .submenu {
        left: 11.8em;
        top: 0; } }
    /* line 224, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation ul.submenu li {
      display: block;
      padding-right: 0; }
      @media screen and (min-width: 53.75em) {
        /* line 224, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
        header.navigation ul.submenu li {
          line-height: 46.15385px; }
          /* line 231, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
          header.navigation ul.submenu li:first-child > a {
            border-top-left-radius: 3px;
            border-top-right-radius: 3px; }
          /* line 236, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
          header.navigation ul.submenu li:last-child > a {
            border-bottom-left-radius: 3px;
            border-bottom-right-radius: 3px;
            padding-bottom: 0.7em; } }
      /* line 243, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation ul.submenu li a {
        background-color: #2b2b2b;
        display: inline-block;
        text-align: right;
        width: 100%; }
        @media screen and (min-width: 53.75em) {
          /* line 243, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
          header.navigation ul.submenu li a {
            background-color: #333;
            padding-left: 1em;
            text-align: left;
            width: 12em; } }
  /* line 261, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation .navigation-tools {
    background: #505050;
    clear: both;
    display: block;
    height: 60px; }
    @media screen and (min-width: 53.75em) {
      /* line 261, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation .navigation-tools {
        background: transparent;
        clear: none;
        float: right; } }
  /* line 276, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
  header.navigation .search-bar {
    float: left;
    padding: 0.85em 0.85em 0.7em 0.6em;
    width: 60%; }
    /* line 285, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
    header.navigation .search-bar form {
      position: relative; }
      /* line 288, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation .search-bar form input[type=search] {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        background: #404040;
        border-radius: 6px;
        border: 1px solid #262626;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9em;
        font-style: italic;
        margin: 0;
        padding: 0.5em 0.8em;
        width: 100%; }
        @media screen and (min-width: 53.75em) {
          /* line 288, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
          header.navigation .search-bar form input[type=search] {
            width: 100%; } }
      /* line 305, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation .search-bar form button[type=submit] {
        background: #404040;
        border: none;
        bottom: 0.3em;
        left: auto;
        outline: none;
        padding: 0 9px;
        position: absolute;
        right: 0.3em;
        top: 0.3em; }
        /* line 316, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
        header.navigation .search-bar form button[type=submit] img {
          height: 12px;
          opacity: 0.7;
          padding: 1px; }
    @media screen and (min-width: 53.75em) {
      /* line 276, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
      header.navigation .search-bar {
        display: inline-block;
        position: relative;
        width: 16em; }
        /* line 329, /home/gleb/Projects/middlemanSites/homepage/source/assets/stylesheets/modules/_navigation.scss */
        header.navigation .search-bar input {
          -webkit-box-sizing: border-box;
          -moz-box-sizing: border-box;
          box-sizing: border-box;
          display: block; } }


text:
@interface DVTVerticalCapacityViewController : DVTCapacityViewController
{
}

@end

redpajama_set_name: RedPajamaGithub


text:
<LINK REL="stylesheet" HREF="../static/styles.css">

<TITLE>ChannelControl::getLowPassGain</TITLE>

Firelight Technologies FMOD Studio API

ChannelControl::getLowPassGain

Retrieves the gain of the dry signal when lowpass filtering is applied.

C++ Syntax

FMOD_RESULT ChannelControl::getLowPassGain(
  float *gain
);

Parameters

gain

Address of a variable that receives the linear gain level, from 0 (silent) to 1.0 (full volume).

Return Values

If the function succeeds then the return value is FMOD_OK.

If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.

See Also

ChannelControl::setLowPassGain

Version 1.08.02 Built on Apr 14, 2016


text:
package in.twizmwaz.cardinal.command;

import com.sk89q.minecraft.util.commands.Command;
import com.sk89q.minecraft.util.commands.CommandContext;
import com.sk89q.minecraft.util.commands.CommandException;
import in.twizmwaz.cardinal.GameHandler;
import in.twizmwaz.cardinal.chat.ChatConstant;
import in.twizmwaz.cardinal.chat.LocalizedChatMessage;
import in.twizmwaz.cardinal.match.MatchState;
import in.twizmwaz.cardinal.module.GameObjective;
import in.twizmwaz.cardinal.module.modules.proximity.GameObjectiveProximityHandler;
import in.twizmwaz.cardinal.module.modules.team.TeamModule;
import in.twizmwaz.cardinal.module.modules.wools.WoolObjective;
import in.twizmwaz.cardinal.util.MiscUtil;
import in.twizmwaz.cardinal.util.Teams;
import org.apache.commons.lang.WordUtils;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import java.util.Locale;

public class ProximityCommand {

    @Command(aliases = {"proximity"}, desc = "Shows the proximity of the objectives in the match.")
    public static void proximity(final CommandContext cmd, CommandSender sender) throws CommandException {
        if (!(sender instanceof Player) || (Teams.getTeamByPlayer((Player) sender).isPresent() && Teams.getTeamByPlayer((Player) sender).get().isObserver()) ||
                !GameHandler.getGameHandler().getMatch().getState().equals(MatchState.PLAYING) || sender.hasPermission("cardinal.proximity")){
            boolean hasObjectives = false;
            for (GameObjective obj : GameHandler.getGameHandler().getMatch().getModules().getModules(GameObjective.class)) {
                if (obj.showOnScoreboard()) {
                    hasObjectives = true;
                }
            }
            if (hasObjectives){
                for (TeamModule team : Teams.getTeams()) {
                    if (!team.isObserver()) {
                        sender.sendMessage(team.getCompleteName());
                        for (GameObjective objective : Teams.getShownObjectives(team)) {
                            GameObjectiveProximityHandler proximityHandler = objective.getProximityHandler();
                            String message = "  ";
                            if (objective instanceof WoolObjective) message += MiscUtil.convertDyeColorToChatColor(((WoolObjective)objective).getColor());
                            message += WordUtils.capitalizeFully(objective.getName().replaceAll("_", " ")) + " ";
                            message += objective.isComplete() ? ChatColor.GREEN + "COMPLETE " : objective.isTouched() ? ChatColor.YELLOW + "TOUCHED " : ChatColor.RED + "UNTOUCHED ";
                            if (proximityHandler != null) {
                                message += ChatColor.GRAY + proximityHandler.getProximityName() + ": ";
                                message += ChatColor.AQUA + proximityHandler.getProximityAsString();
                            }
                            sender.sendMessage(message);
                        }
                    }
                }
            } else {
                sender.sendMessage(ChatColor.RED + new LocalizedChatMessage(ChatConstant.ERROR_PROXIMITY_NO_SCORING).getMessage(sender instanceof Player ? ((Player) sender).getLocale() : Locale.getDefault().toString()));
            }
        } else {
            sender.sendMessage(ChatColor.RED + new LocalizedChatMessage(ChatConstant.ERROR_PROXIMITY_OBS_ONLY).getMessage(((Player) sender).getLocale()));
        }
    }
}


text:
namespace ArduinoJson {
namespace Internals {
class DefaultAllocator {
 public:
  void* allocate(size_t size) { return malloc(size); }
  void deallocate(void* pointer) { free(pointer); }
};

template <typename TAllocator>
class BlockJsonBuffer : public JsonBuffer {
  struct Block;
  struct EmptyBlock {
    Block* next;
    size_t capacity;
    size_t size;
  };
  struct Block : EmptyBlock {
    uint8_t data[1];
  };

 public:
  BlockJsonBuffer(size_t initialSize = 256)
      : _head(NULL), _nextBlockSize(initialSize) {}

  ~BlockJsonBuffer() {
    Block* currentBlock = _head;

    while (currentBlock != NULL) {
      Block* nextBlock = currentBlock->next;
      _allocator.deallocate(currentBlock);
      currentBlock = nextBlock;
    }
  }

  size_t size() const {
    size_t total = 0;
    for (const Block* b = _head; b; b = b->next) total += b->size;
    return total;
  }

 protected:
  virtual void* alloc(size_t bytes) {
    return canAllocInHead(bytes) ? allocInHead(bytes) : allocInNewBlock(bytes);
  }

 private:
  bool canAllocInHead(size_t bytes) const {
    return _head != NULL && _head->size + bytes <= _head->capacity;
  }

  void* allocInHead(size_t bytes) {
    void* p = _head->data + _head->size;
    _head->size += round_size_up(bytes);
    return p;
  }

  void* allocInNewBlock(size_t bytes) {
    size_t capacity = _nextBlockSize;
    if (bytes > capacity) capacity = bytes;
    if (!addNewBlock(capacity)) return NULL;
    _nextBlockSize *= 2;
    return allocInHead(bytes);
  }

  bool addNewBlock(size_t capacity) {
    size_t bytes = sizeof(EmptyBlock) + capacity;
    Block* block = static_cast<Block*>(_allocator.allocate(bytes));
    if (block == NULL) return false;
    block->capacity = capacity;
    block->size = 0;
    block->next = _head;
    _head = block;
    return true;
  }

  TAllocator _allocator;
  Block* _head;
  size_t _nextBlockSize;
};
}
}


text:
package com.qingbo.ginkgo.ygb.base.util;

import net.sf.ehcache.Ehcache;

import org.springframework.cache.Cache;
import org.springframework.cache.ehcache.EhCacheCache;
import org.springframework.cache.ehcache.EhCacheCacheManager;

public class MyEhCacheCacheManager extends EhCacheCacheManager {
	/**
	 * add cache using default configs
	 */
	public Cache getCache(String name) {
		Cache cache = super.getCache(name);
		if (cache == null) {
			// Check the EhCache cache again (in case the cache was added at runtime)
			Ehcache ehcache = getCacheManager().addCacheIfAbsent(name);
			if (ehcache != null) {
				addCache(new EhCacheCache(ehcache));
				cache = super.getCache(name);  // potentially decorated
			}
		}
		return cache;
	}
}


text:
package com.sequenceiq.cloudbreak.datalakedr.model;

import java.util.Optional;

public class DatalakeRestoreStatusResponse extends DatalakeBackupStatusResponse {

    private final String restoreId;

    public DatalakeRestoreStatusResponse(String backupId, String restoreId, State state, Optional<String> failureReason) {
        super(backupId, state, failureReason);
        this.restoreId = restoreId;
    }

    public String getRestoreId() {
        return restoreId;
    }
}


text:
try:
    from selenium.webdriver.common.by import By
except ImportError:
    pass

from mailpile.tests.gui import MailpileSeleniumTest

class TagGuiTest(MailpileSeleniumTest):
    def test_mark_read_unread(self):
        return  # FIXME: Test disabled

        self.go_to_mailpile_home()
        self.wait_until_element_is_visible('pile-message-2')
        self._assert_element_has_class('pile-message-2', 'in_new')
        self._toggle_tag_bar()
        self._click_on_visible_element_with_class_name('bulk-action-read')
        self._assert_element_not_class('pile-message-2', 'in_new')
        self._toggle_tag_bar()
        self.wait_until_element_is_invisible_by_locator((By.CLASS_NAME, 'bulk-action-read'))
        self._toggle_tag_bar()
        self._click_on_visible_element_with_class_name('bulk-action-unread')
        self._assert_element_has_class('pile-message-2', 'in_new')
        self._toggle_tag_bar()
        self.wait_until_element_is_invisible_by_locator((By.CLASS_NAME, 'bulk-action-unread'))

    def _click_on_visible_element_with_class_name(self, class_name):
        self.wait_until_element_is_visible_by_locator((By.CLASS_NAME, class_name))
        unread_btn = self.find_element_by_class_name(class_name)
        unread_btn.click()

    def _toggle_tag_bar(self):
        checkbox = self.find_element_by_xpath('//*[@id="pile-message-2"]/td[6]/input')
        checkbox.click()
        return checkbox

    def _assert_element_has_class(self, element_id, class_name):
        self.wait_until_element_has_class((By.ID, element_id), class_name)

    def _assert_element_not_class(self, element_id, class_name):
        self.wait_until_element_has_not_class((By.ID, element_id), class_name)


text:
<?php

namespace Drupal\Tests\Core\Routing;

use Drupal\Core\Routing\MethodFilter;
use Drupal\Tests\UnitTestCase;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

/**
 * @coversDefaultClass \Drupal\Core\Routing\MethodFilter
 * @group Routing
 */
class MethodFilterTest extends UnitTestCase {

  /**
   * @covers ::filter
   */
  public function testWithAllowedMethod() {
    $request = Request::create('/test', 'GET');
    $collection = new RouteCollection();
    $collection->add('test_route.get', new Route('/test', [], [], [], '', [], ['GET']));
    $collection_before = clone $collection;

    $method_filter = new MethodFilter();
    $result_collection = $method_filter->filter($collection, $request);

    $this->assertEquals($collection_before, $result_collection);
  }

  /**
   * @covers ::filter
   */
  public function testWithAllowedMethodAndMultipleMatchingRoutes() {
    $request = Request::create('/test', 'GET');
    $collection = new RouteCollection();
    $collection->add('test_route.get', new Route('/test', [], [], [], '', [], ['GET']));
    $collection->add('test_route2.get', new Route('/test', [], [], [], '', [], ['GET']));
    $collection->add('test_route3.get', new Route('/test', [], [], [], '', [], ['GET']));

    $collection_before = clone $collection;

    $method_filter = new MethodFilter();
    $result_collection = $method_filter->filter($collection, $request);

    $this->assertEquals($collection_before, $result_collection);
  }

  /**
   * @covers ::filter
   */
  public function testMethodNotAllowedException() {
    $request = Request::create('/test', 'PATCH');
    $collection = new RouteCollection();
    $collection->add('test_route.get', new Route('/test', [], [], [], '', [], ['GET']));

    $this->setExpectedException(MethodNotAllowedException::class);

    $method_filter = new MethodFilter();
    $method_filter->filter($collection, $request);
  }

  /**
   * @covers ::filter
   */
  public function testMethodNotAllowedExceptionWithMultipleRoutes() {
    $request = Request::create('/test', 'PATCH');
    $collection = new RouteCollection();
    $collection->add('test_route.get', new Route('/test', [], [], [], '', [], ['GET']));
    $collection->add('test_route2.get', new Route('/test', [], [], [], '', [], ['GET']));
    $collection->add('test_route3.get', new Route('/test', [], [], [], '', [], ['GET']));

    $this->setExpectedException(MethodNotAllowedException::class);

    $method_filter = new MethodFilter();
    $method_filter->filter($collection, $request);
  }

  /**
   * @covers ::filter
   */
  public function testFilteredMethods() {
    $request = Request::create('/test', 'PATCH');
    $collection = new RouteCollection();
    $collection->add('test_route.get', new Route('/test', [], [], [], '', [], ['GET']));
    $collection->add('test_route2.get', new Route('/test', [], [], [], '', [], ['PATCH']));
    $collection->add('test_route3.get', new Route('/test', [], [], [], '', [], ['POST']));

    $expected_collection = new RouteCollection();
    $expected_collection->add('test_route2.get', new Route('/test', [], [], [], '', [], ['PATCH']));

    $method_filter = new MethodFilter();
    $result_collection = $method_filter->filter($collection, $request);

    $this->assertEquals($expected_collection, $result_collection);
  }

  /**
   * Ensures that the incoming and outgoing collections have the same order.
   *
   * @covers ::filter
   */
  public function testCollectionOrder() {
    $request = Request::create('/test', 'GET');

    $collection = new RouteCollection();
    $collection->add('entity.taxonomy_term.canonical', new Route('/test'));
    $collection->add('views.view.taxonomy_term_page', new Route('/test', [], [], [], '', [], ['GET', 'POST']));

    $method_filter = new MethodFilter();
    $result_collection = $method_filter->filter($collection, $request);

    $this->assertEquals(['entity.taxonomy_term.canonical', 'views.view.taxonomy_term_page'], array_keys($result_collection->all()));
  }

}


text:
package com.thoughtworks.go.api.representers;

import com.google.gson.JsonParseException;
import com.thoughtworks.go.api.base.OutputListWriter;
import com.thoughtworks.go.api.base.OutputWriter;
import com.thoughtworks.go.domain.config.ConfigurationProperty;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;

import static org.apache.commons.lang3.StringUtils.isBlank;

public class ConfigurationPropertyRepresenter {
    public static void toJSON(OutputListWriter propertiesWriter, List<ConfigurationProperty> configurationProperties) {
        configurationProperties.forEach(configurationProperty -> {
            if (configurationProperty == null) {
                return;
            }
            propertiesWriter.addChild(propertyWriter -> toJSON(propertyWriter, configurationProperty));
        });
    }

    public static void toJSON(OutputWriter writer, ConfigurationProperty configurationProperty) {
        writer.add("key", configurationProperty.getKey().getName());
        if (!configurationProperty.isSecure() && !isBlank(configurationProperty.getConfigValue())) {
            writer.add("value", configurationProperty.getConfigurationValue().getValue());
        }
        if (configurationProperty.isSecure() && !isBlank(configurationProperty.getEncryptedValue())) {
            writer.add("encrypted_value", configurationProperty.getEncryptedValue());
        }
        if (configurationProperty.hasErrors()) {
            writer.addChild("errors", errorWriter -> new ErrorGetter(new LinkedHashMap<String, String>() {{
                put("encryptedValue", "encrypted_value");
                put("configurationValue", "configuration_value");
                put("configurationKey", "configuration_key");
            }}).toJSON(errorWriter, configurationProperty));
        }
    }

    public static List<ConfigurationProperty> fromJSONArray(JsonReader jsonReader, String arrayKey) {
        List<ConfigurationProperty> configurationProperties = new ArrayList<>();
        jsonReader.readArrayIfPresent(arrayKey, properties -> {
            properties.forEach(property -> {
                JsonReader configPropertyReader = new JsonReader(property.getAsJsonObject());
                ConfigurationProperty configurationProperty = fromJSON(configPropertyReader);
                configurationProperties.add(configurationProperty);
            });

        });
        return configurationProperties;
    }

    public static ConfigurationProperty fromJSON(JsonReader jsonReader) {
        try {
            String key = jsonReader.getString("key");
            String value = jsonReader.optString("value").orElse(null);
            String encryptedValue = jsonReader.optString("encrypted_value").orElse(null);
            return new ConfigurationProperty().deserialize(key, value, encryptedValue);
        } catch (Exception e) {
            throw new JsonParseException("Could not parse configuration property");
        }
    }
}


text:
<blueprint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs"
           xmlns:cxf="http://cxf.apache.org/blueprint/core" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:authz="http://aries.apache.org/xmlns/authorization/v1.0.0"
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://cxf.apache.org/blueprint/jaxrs http://cxf.apache.org/schemas/blueprint/jaxrs.xsd">

  <authz:enable />

  <cxf:bus id="cxfBusPeerManager">
    <cxf:features>
      <cxf:logging />
    </cxf:features>
  </cxf:bus>

  <reference id="peerManager" availability="mandatory"
             interface="io.subutai.core.peer.api.PeerManager" />

  <reference id="hostRegistry" availability="mandatory"
             interface="io.subutai.core.hostregistry.api.HostRegistry" />

  <bean id="peerRestUIServiceImpl" class="io.subutai.core.peer.rest.ui.RestServiceImpl">
    <argument ref="peerManager" />
    <argument ref="hostRegistry" />
  </bean>

  <jaxrs:server address="/ui/peers" id="peerRestUIService">
    <jaxrs:serviceBeans>
      <ref component-id="peerRestUIServiceImpl" />
    </jaxrs:serviceBeans>
  </jaxrs:server>

</blueprint>


text:
package com.kylantraynor.civilizations.territories;

public interface InfluentSite extends InfluentEntity{
	float getX();
	float getZ();
	String getName();
	Region getRegion();
}


text:
class StandardHour < ApplicationRecord
  belongs_to :area

  WEEKDAYS = %w[monday tuesday wednesday thursday friday
                saturday sunday].freeze

  validates :day, inclusion: { in: WEEKDAYS, message: 'Invalid weekday' }
  validates :day, :area, presence: true
  validates :open_time, :close_time, presence: { if: :open? }
  validates :day, uniqueness: { scope: :area_id }

  # attr_accessible :close_time, :open_time, :day, :open

  scope :open_today, -> { today.where(open: true) }

  scope :today, lambda {
    where(day: (Time.current - 4.hours).strftime('%A').downcase)
  }
end

# == Schema Information
#
# Table name: standard_hours
#
#  id         :bigint           not null, primary key
#  open       :boolean
#  open_time  :time
#  close_time :time
#  area_id    :integer
#  day        :string
#  created_at :datetime         not null
#  updated_at :datetime         not null
#


text:
class AddDefaultItemToLineItems < ActiveRecord::Migration
  def change
    add_column :line_items, :default_item, :boolean, default: false
  end
end


text:
@interface StorageManager ()
@property (strong, nonatomic) FIRDatabaseReference * ref;
@end

@implementation StorageManager

+ (StorageManager *)sharedInstance
{
    static id _sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{ _sharedInstance = [self new]; });
    return _sharedInstance;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        _ref = [[FIRDatabase database] reference];
    }
    return self;
}

- (void)saveSearchText:(NSDictionary*)obj forKey:(NSString*)key
{
    [_ref runTransactionBlock:^FIRTransactionResult * _Nonnull(FIRMutableData * _Nonnull currentData) {
        NSMutableDictionary *post = currentData.value;
        if (!post || [post isEqual:[NSNull null]]) {
            return [FIRTransactionResult successWithValue:currentData];
        }

        NSMutableDictionary *searchText = [post objectForKey:@"searchText"];
        if (!searchText) {
            searchText = [NSMutableDictionary new];
        }

        int count = 0;;
        if([searchText objectForKey:key]){
            count = [[[searchText objectForKey:key] objectForKey:@"count"] intValue];
            count +=1;
            post[@"searchText"][key][@"count"] = [NSNumber numberWithInt:count];
        }else{
            [searchText setValue:obj forKey:key];
            post[@"searchText"] = searchText;
            post[@"searchText"][key][@"count"] = [NSNumber numberWithInt:1];
        }
        [currentData setValue:post];
        return [FIRTransactionResult successWithValue:currentData];
    } andCompletionBlock:^(NSError * _Nullable error,
                           BOOL committed,
                           FIRDataSnapshot * _Nullable snapshot) {
        if (error) {
            NSLog(@"%@", error.localizedDescription);
        }
    }];
}

- (void)loadSearchTextWithBlock:(void (^)(FIRDataSnapshot *snapshot))block withCancelBlock:(nullable void (^)(NSError* error))cancelBlock
{
    [[_ref child:@"searchText"] observeSingleEventOfType:FIRDataEventTypeValue withBlock:block withCancelBlock:cancelBlock];
}

@end


text:
@echo off

set msbuild="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe"
set config=Release
set platform=AnyCPU
set warnings=1591,1572,1573,1570,1000,1587
if "%CI%"=="True" (
    set logger=/l:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
)
set buildargs=/p:Configuration="%config%" /p:Platform="%platform%" /p:NoWarn="%warnings%" /v:minimal %logger%

cd source

echo Restoring NuGets...

nuget restore -MsbuildPath "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin"
dotnet restore

echo Building Xamvvm...

%msbuild% Xamvvm.Core/Xamvvm.Core.csproj %buildargs%
%msbuild% Xamvvm.Forms/Xamvvm.Forms.csproj %buildargs%
%msbuild% Xamvvm.Forms.RxUI/Xamvvm.Forms.RxUI.csproj %buildargs%
%msbuild% Xamvvm.Mock/Xamvvm.Mock.csproj %buildargs%

echo Packaging NuGets...

nuget pack Xamvvm.Core.nuspec
nuget pack Xamvvm.Forms.nuspec
nuget pack Xamvvm.Forms.RxUI.nuspec
nuget pack Xamvvm.Mock.nuspec

echo All done.


text:
package com.spryrocks.android.modules.ui.routing.context;

import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment;

public interface IDialogTarget extends ITarget {
    void showDialog(@NonNull DialogFragment dialogFragment);
}


text:
"""RDF processing module.

This is tailored for the MutopiaProject but has a few generic
mechanisms that can be applied to other projects using RDF.

"""

__docformat__ = 'reStructuredText'

import xml.etree.ElementTree as ET

RDF_NS = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
MP_NS = 'http://www.mutopiaproject.org/piece-data/0.1/'

# A simple class to simplify namespace usage.
# From effbot (Fredrik Lundh)
class NS:
    def __init__(self, uri):
        self.uri = '{'+uri+'}'
    def __getattr__(self, tag):
        return self.uri + tag
    def __call__(self, path):
        return "/".join(getattr(self, tag) for tag in path.split("/"))

# Convenient namespace definitions for this module
_MP = NS(MP_NS)
_RDF = NS(RDF_NS)

# This list sets the order for the RDF output. This is not strictly
# necessary --- RDF parsers really don't care about order --- but it
# is more human friendly to have a consistent order.
_MU_KEYS = ['title', 'composer', 'opus',
            'lyricist', 'for', 'date', 'style',
            'metre', 'arranger', 'source',
            'licence',
            'lyFile', 'midFile',
            'psFileA4', 'pdfFileA4',
            'psFileLet', 'pdfFileLet',
            'pngFile', 'pngHeight', 'pngWidth',
            'id',
            'maintainer', 'maintainerEmail', 'maintainerWeb',
            'moreInfo', 'lilypondVersion',
]

class MuRDF:
    def __init__(self):
        # Start an RDF document
        self.top = ET.Element(_RDF('RDF'))

        # The RDF document tree has a description as its sole element.
        self.description = ET.SubElement(self.top,
                                         _RDF('Description'),
                                         {_RDF('about'): '.'})
        # Generate the RDF with all elements in the order we want.
        # Ordering is mostly cosmetic but we still want to create a
        # blank-filled RDF of our expected elements.
        for key in _MU_KEYS:
            ET.SubElement(self.description, _MP(key))

    def update_description(self, name, value):
        """Update a description element in the RDF.

        This is an update not an insert so it expects to find `name`
        in the description of the RDF.

        :param str name: The name of an existing node in
            description.
        :param str value: The new value of the named node.
        :returns: True if node is found and updated.
        :rtype: boolean

        """
        node = self.description.find(_MP(name))
        if node is None:
            return False
        node.text = value
        return True

    @classmethod
    def indent(cls, elem, level=0):
        """Indent xml tree in place.

        :param xml.etree.ElementTree elem: RDF to indent.
        :param int level: level for indent (recursive routine).

        """
        # also from effbot (Fredrik Lundh)

        i = "\n" + level*"  "
        if len(elem):
            if not elem.text or not elem.text.strip():
                elem.text = i + "  "
            if not elem.tail or not elem.tail.strip():
                elem.tail = i
            for elem in elem:
                cls.indent(elem, level+1)
            if not elem.tail or not elem.tail.strip():
                elem.tail = i
        else:
            if level and (not elem.tail or not elem.tail.strip()):
                elem.tail = i

    def write_xml(self, path):
        """Write the ElementTree to RDF/XML.

        :param path: Name of output file.

        """
        # Registration of the namespace allows the output to define
        # xmlns attributes in the RDF header.
        ET.register_namespace('rdf', RDF_NS)
        ET.register_namespace('mp', MP_NS)
        MuRDF.indent(self.top)
        root = ET.ElementTree(element=self.top)
        with open(path, 'wb') as rdfout:
            root.write(rdfout, encoding='UTF-8', xml_declaration=True)


text:
* * *

title: <%= hoc_s(:title_stats) %> layout: wide nav: promote_nav

* * *

<%= view :signup_button %>

# Blurbs and Useful Stats

## Use this short blurb in newsletters

### Bring computer science to your school. Start with an Hour of Code

أجهزة الكمبيوتر موجودة في كل مكان، ولكن هناك أقل مدارس تعلم علوم الحاسوب مقارنة مع 10 سنوات مضت. الخبر السار، أننا في طريقنا لنغير ذلك. If you heard about the [Hour of Code](%= resolve_url('/') %) last year, you might know it made history. In the first Hour of Code, 15 million students tried computer science. Last year, that number increased to 60 million students! The [Hour of Code](%= resolve_url('/') %) is a one-hour introduction to computer science, designed to demystify code and show that anybody can learn the basics. [Sign up](%= resolve_url('/') %) to host an Hour of Code this <%= campaign_date('full') %> during Computer Science Education Week. To add your school to the map, go to https://hourofcode.com/<%= @country %>

## Infographics

<%= view :stats_carousel %>

<%= view :signup_button %>


text:
<project name="ECLIPSE" default="main" basedir=".">

  <property file="ant.properties" />

  <!-- the build path -->

   <path id="build.path">
   	  <fileset dir="${dist.dir}">
   	        <include name="*.jar"/>
      </fileset>
   </path>

	<target name="main" depends="copy">
	</target>

	<target name="copy" depends="init">
		<copy todir="${plugin.lib}">
			<fileset dir="${dist.dir}">
				<include name="morse.jar"/>
				<include name="mhu-lib.jar"/>
			</fileset>
		</copy>
	</target>

  <target name="jar" depends="compile">
  	<delete file="${jar}" failonerror="false"/>
	<jar jarfile="${jar}" manifest="${manifest.file}">
     	 <fileset dir="${build.classes.dir}" includes="**/**"/>
		 <fileset dir="${src.dir}" excludes="**/*.java" />
	</jar>
  </target>

<!-- compilation options -->

   <target name="compile" depends="init">
   <javac srcdir="${src.dir}"
      destdir="${build.classes.dir}"
      classpathref="build.path"
      includes="**/*.java"

      optimize="${compiler.optimize}"
      debug="${compiler.debug}"
      deprecation="${compiler.deprecation}"
      compiler="${compiler.type}"
	  target="${compiler.target}"
	  source="${compiler.source}"
   />
   </target>

	<target name="clean">
		<delete dir="${build.dir}"/>
		<delete file="${jar}"/>
	</target>

	<target name="init" depends="clean">
		<mkdir dir="${build.dir}"/>
		<mkdir dir="${build.classes.dir}"/>
		<mkdir dir="${dist.dir}"/>
	</target>

</project>


text:
#import <UIKit/UIKit.h>

// Runtime
int HMSystemMajorVersion();
float HMStatusBarHeight();


text:
export namespace MT {
    const POS_INT: number;
    const NEG_INT: number;
    const BYTE_STRING: number;
    const UTF8_STRING: number;
    const ARRAY: number;
    const MAP: number;
    const TAG: number;
    const SIMPLE_FLOAT: number;
}
export type MT = number;
export namespace TAG {
    const DATE_STRING: number;
    const DATE_EPOCH: number;
    const POS_BIGINT: number;
    const NEG_BIGINT: number;
    const DECIMAL_FRAC: number;
    const BIGFLOAT: number;
    const BASE64URL_EXPECTED: number;
    const BASE64_EXPECTED: number;
    const BASE16_EXPECTED: number;
    const CBOR: number;
    const URI: number;
    const BASE64URL: number;
    const BASE64: number;
    const REGEXP: number;
    const MIME: number;
    const SET: number;
}
export type TAG = number;
export namespace NUMBYTES {
    const ZERO: number;
    const ONE: number;
    const TWO: number;
    const FOUR: number;
    const EIGHT: number;
    const INDEFINITE: number;
}
export type NUMBYTES = number;
export namespace SIMPLE {
    const FALSE: number;
    const TRUE: number;
    const NULL: number;
    const UNDEFINED: number;
}
export type SIMPLE = number;
export namespace SYMS {
    const NULL_1: symbol;
    export { NULL_1 as NULL };
    const UNDEFINED_1: symbol;
    export { UNDEFINED_1 as UNDEFINED };
    export const PARENT: symbol;
    export const BREAK: symbol;
    export const STREAM: symbol;
}
export const SHIFT32: 4294967296;
export namespace BI {
    const MINUS_ONE: bigint;
    const NEG_MAX: bigint;
    const MAXINT32: bigint;
    const MAXINT64: bigint;
    const SHIFT32: bigint;
}


text:
describe('classes should be created and extended by using "alias" and "extend" ', function(){

    var root = classy

    it('should extend properly', function(){

        var Vehicle = root.define({
            alias: 'vehicle',

            speed: 10,

            getSpeed: function(){
                return this.speed
            }
        })

        var Car = root.define({
            alias: 'car',
            extend: 'vehicle',
            speed: 100
        })

        var v = new Vehicle(),
            c = new Car()

        expect(c instanceof Car).toBe(true)
        expect(c instanceof Vehicle).toBe(true)

        expect(v.getSpeed()).toBe(10)
        expect(c.getSpeed()).toBe(100)

        Vehicle.destroy()
        Car.destroy()
    })

    it('should find classes using root.getClass', function(){
        var Vehicle = root.define({
            alias: 'vehicle'
        })

        var Car = root.define({
            extend: 'vehicle',
            alias: 'car'
        })

        var c = new Car()

        expect(root.getClass(c)).toBe(Car)
        expect(root.getClass(Car)).toBe(Car)
        expect(root.getClass('car')).toBe(Car)
        expect(root.getClass('vehicle')).toBe(Vehicle)
        expect(root.getClass()).toBe(root.BaseClass)

        Vehicle.destroy()
        Car.destroy()
    })

    it('should destroy classes properly', function(){
        var VehicleDestroyed = false,
            inited = false,
            initedCount = 0

        var Vehicle = root.define({
            alias : 'vehicle',

            price: 100,

            statics: {
                init: function(){
                    inited = true
                    initedCount++
                },
                destroy: function(){
                    VehicleDestroyed = true
                }
            }
        })

        expect(inited).toBe(true)
        expect(initedCount).toBe(1)

        var Car = root.define({
            extend: 'vehicle'
        })

        expect(initedCount).toBe(2)

        expect(typeof Car.destroy).toBe('function')
        expect(typeof Vehicle.destroy).toBe('function')
        expect(root.getClass('vehicle')).toBe(Vehicle)

        Vehicle.destroy()

        expect(VehicleDestroyed).toBe(true)
        expect(root.getClass('vehicle')).toBe(undefined)
        expect(root.getClass('xxx')).toBe(undefined)
    })

    it('should extend class when root.define has 2 parameters', function(){
        var Vehicle = root.define({
            speed: 10,
            getSpeed: function(){
                return this.speed
            }
        })

        var Car = root.define(Vehicle, {
            speed: 100
        })

        var c = new Car()

        expect(c instanceof Car).toBe(true)
        expect(c instanceof Vehicle).toBe(true)
    })

    it('should work with extend being called on superclass', function(){
        var Vehicle = root.define({
            speed: 10
        })

        var Car = Vehicle.extend({
            name: 'car'
        })

        var c = new Car()

        expect(c instanceof Vehicle).toBe(true)
    })
})


text:
"""
=================================
Plotting EEG sensors on the scalp
=================================

In this example, digitized EEG sensor locations are shown on the scalp.
"""
# Author: Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD (3-clause)

import mne
from mne.viz import plot_alignment, set_3d_view

print(__doc__)

data_path = mne.datasets.sample.data_path()
subjects_dir = data_path + '/subjects'
trans = mne.read_trans(data_path + '/MEG/sample/sample_audvis_raw-trans.fif')
raw = mne.io.read_raw_fif(data_path + '/MEG/sample/sample_audvis_raw.fif')
# Plot electrode locations on scalp
fig = plot_alignment(raw.info, trans, subject='sample', dig=False,
                     eeg=['original', 'projected'], meg=[],
                     coord_frame='head', subjects_dir=subjects_dir)
# Set viewing angle
set_3d_view(figure=fig, azimuth=135, elevation=80)


text:
/**
 * @file DynamicsPriors.h
 *
 * @brief Priors to be used with dynamic systems (Specifically PoseRTV)
 *
 * @date Nov 22, 2011
 * @author Alex Cunningham
 */

#pragma once

#include <gtsam_unstable/slam/PartialPriorFactor.h>

#include <gtsam_unstable/dynamics/PoseRTV.h>

namespace gtsam {

/**
 * Forces the value of the height in a PoseRTV to a specific value
 * Dim: 1
 */
struct DHeightPrior : public gtsam::PartialPriorFactor<PoseRTV> {
	typedef gtsam::PartialPriorFactor<PoseRTV> Base;
	DHeightPrior(Key key, double height, const gtsam::SharedNoiseModel& model)
	: Base(key, 5, height, model)	{	}
};

/**
 * Forces the roll to a particular value - useful for flying robots
 * Implied value is zero
 * Dim: 1
 */
struct DRollPrior : public gtsam::PartialPriorFactor<PoseRTV> {
	typedef gtsam::PartialPriorFactor<PoseRTV> Base;

	/** allows for explicit roll parameterization - uses canonical coordinate */
	DRollPrior(Key key, double wx, const gtsam::SharedNoiseModel& model)
	: Base(key, 0, wx, model)	{	}

	/** Forces roll to zero */
	DRollPrior(Key key, const gtsam::SharedNoiseModel& model)
	: Base(key, 0, 0.0, model)	{	}
};

/**
 * Constrains the full velocity of a state to a particular value
 * Useful for enforcing a stationary state
 * Dim: 3
 */
struct VelocityPrior : public gtsam::PartialPriorFactor<PoseRTV> {
	typedef gtsam::PartialPriorFactor<PoseRTV> Base;
	VelocityPrior(Key key, const gtsam::Vector& vel, const gtsam::SharedNoiseModel& model)
	: Base(key, model) {
		this->prior_ = vel;
		assert(vel.size() == 3);
		this->mask_.resize(3);
		this->mask_[0] = 6;
		this->mask_[1] = 7;
		this->mask_[2] = 8;
		this->H_ = zeros(3, 9);
		this->fillH();
	}
};

/**
 * Ground constraint: forces the robot to be upright (no roll, pitch), a fixed height, and no
 * velocity in z direction
 * Dim: 4
 */
struct DGroundConstraint : public gtsam::PartialPriorFactor<PoseRTV> {
	typedef gtsam::PartialPriorFactor<PoseRTV> Base;

	/**
	 * Primary constructor allows for variable height of the "floor"
	 */
	DGroundConstraint(Key key, double height, const gtsam::SharedNoiseModel& model)
	: Base(key, model) {
		this->prior_ = delta(4, 0, height); // [z, vz, roll, pitch]
		this->mask_.resize(4);
		this->mask_[0] = 5; // z = height
		this->mask_[1] = 8; // vz
		this->mask_[2] = 0; // roll
		this->mask_[3] = 1; // pitch
		this->H_ = zeros(3, 9);
		this->fillH();
	}

	/**
	 * Fully specify vector - use only for debugging
	 */
	DGroundConstraint(Key key, const Vector& constraint, const gtsam::SharedNoiseModel& model)
	: Base(key, model) {
		assert(constraint.size() == 4);
		this->prior_ = constraint; // [z, vz, roll, pitch]
		this->mask_.resize(4);
		this->mask_[0] = 5; // z = height
		this->mask_[1] = 8; // vz
		this->mask_[2] = 0; // roll
		this->mask_[3] = 1; // pitch
		this->H_ = zeros(3, 9);
		this->fillH();
	}
};

} // \namespace gtsam


text:
namespace Ductus.FluentDocker.Model.Containers
{
  /// <summary>
  /// A item with a <see cref="Ulimit"/> and at least a soft limit but may include a hard as well.
  /// </summary>
  public class ULimitItem
  {
    public ULimitItem(Ulimit ulimit, string soft, string hard = null)
    {
      Ulimit = ulimit;
      Soft = soft;
      Hard = hard;
    }

    public Ulimit Ulimit { get; }
    public string Soft { get; }
    public string Hard { get; }

    public override string ToString()
    {
      return !string.IsNullOrEmpty(Hard) ? $"{Ulimit.ToString().ToLower()}={Soft}:{Hard}" : $"{Ulimit}={Soft}";
    }
  }
}


text:
<?php
$form = $this->beginWidget(
    'bootstrap.widgets.TbActiveForm',
    array(
        'id'                     => 'menu-item-form',
        'enableAjaxValidation'   => false,
        'enableClientValidation' => true,
        'type'                   => 'vertical',
        'htmlOptions'            => array('class' => 'well'),
    )
); ?>

    <?php echo Yii::t('MenuModule.menu', 'Fields with'); ?>
    *
    <?php echo Yii::t('MenuModule.menu', 'are required.'); ?>

<?php echo $form->errorSummary($model); ?>

    <?php
    $menu_id = '#' . CHtml::activeId($model, 'menu_id');
    $parent_id = '#' . CHtml::activeId($model, 'parent_id');
    ?>

        <?php echo $form->dropDownListGroup(
            $model,
            'menu_id',
            array(
                'widgetOptions' => array(
                    'data'        => CHtml::listData(Menu::model()->findAll(), 'id', 'name'),
                    'htmlOptions' => array(
                        'class'               => 'popover-help',
                        'data-original-title' => $model->getAttributeLabel('menu_id'),
                        'data-content'        => $model->getAttributeDescription('menu_id'),
                        'empty'               => Yii::t('MenuModule.menu', '--choose menu--'),
                        'ajax'                => array(
                            'type'       => 'POST',
                            'url'        => $this->createUrl(
                                    '/menu/menuitemBackend/dynamicparent',
                                    (!$model->isNewRecord ? array('id' => $model->id) : array())
                                ),
                            'update'     => $parent_id,
                            'beforeSend' => "function () {
                            $('" . $parent_id . "').attr('disabled', true);
                            if ($('" . $menu_id . " option:selected').val() == '')
                                return false;
                        }",
                            'complete'   => "function () {
                            $('" . $parent_id . "').attr('disabled', false);
                        }",
                        ),
                    ),
                ),
            )
        ); ?>

        <?php echo $form->dropDownListGroup(
            $model,
            'parent_id',
            array(
                'widgetOptions' => array(
                    'data'        => $model->getParentTree(),
                    'htmlOptions' => array(
                        'disabled'            => ($model->menu_id) ? false : true,
                        'encode'              => false,
                        'class'               => 'popover-help',
                        'data-original-title' => $model->getAttributeLabel('parent_id'),
                        'data-content'        => $model->getAttributeDescription('parent_id'),
                    ),
                ),
            )
        ); ?>

        <?php echo $form->textFieldGroup(
            $model,
            'title',
            array(
                'widgetOptions' => array(
                    'htmlOptions' => array(
                        'class'               => 'popover-help',
                        'data-original-title' => $model->getAttributeLabel('title'),
                        'data-content'        => $model->getAttributeDescription('title'),
                    ),
                ),
            )
        ); ?>

        <?php echo $form->checkBoxGroup(
            $model,
            'regular_link',
            array(
                'widgetOptions' => array(
                    'htmlOptions' => array(
                        'class'               => 'popover-help',
                        'data-original-title' => $model->getAttributeLabel('regular_link'),
                        'data-content'        => $model->getAttributeDescription('regular_link'),
                    ),
                ),
            )
        ); ?>

        <?php echo $form->textFieldGroup(
            $model,
            'href',
            array(
                'widgetOptions' => array(
                    'htmlOptions' => array(
                        'class'               => 'popover-help',
                        'data-original-title' => $model->getAttributeLabel('href'),
                        'data-content'        => $model->getAttributeDescription('href'),
                    ),
                ),
            )
        ); ?>

        <?php echo $form->textFieldGroup($model, 'sort'); ?>

        <?php echo $form->dropDownListGroup(
            $model,
            'status',
            array(
                'widgetOptions' => array(
                    'data'        => $model->getStatusList(),
                    'htmlOptions' => array(
                        'class'               => 'popover-help',
                        'data-original-title' => $model->getAttributeLabel('status'),
                        'data-content'        => $model->getAttributeDescription('status'),
                    ),
                ),
            )
        ); ?>

<?php $collapse = $this->beginWidget('booster.widgets.TbCollapse'); ?>

                    <?php echo Yii::t('MenuModule.menu', 'Extended settings'); ?>

                        <?php echo $form->textFieldGroup(
                            $model,
                            'title_attr',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getStatusList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('title_attr'),
                                        'data-content'        => $model->getAttributeDescription('title_attr'),
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->textFieldGroup(
                            $model,
                            'class',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getStatusList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('class'),
                                        'data-content'        => $model->getAttributeDescription('class'),
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->textFieldGroup(
                            $model,
                            'before_link',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getStatusList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('before_link'),
                                        'data-content'        => $model->getAttributeDescription('before_link'),
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->textFieldGroup(
                            $model,
                            'after_link',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getStatusList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('after_link'),
                                        'data-content'        => $model->getAttributeDescription('after_link'),
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->textFieldGroup(
                            $model,
                            'target',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getStatusList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('target'),
                                        'data-content'        => $model->getAttributeDescription('target'),
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->textFieldGroup(
                            $model,
                            'rel',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getStatusList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('rel'),
                                        'data-content'        => $model->getAttributeDescription('rel'),
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->dropDownListGroup(
                            $model,
                            'condition_name',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getConditionList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('condition_name'),
                                        'data-content'        => $model->getAttributeDescription('condition_name'),
                                        'empty'               => '',
                                    ),
                                ),
                            )
                        ); ?>

                        <?php echo $form->dropDownListGroup(
                            $model,
                            'condition_denial',
                            array(
                                'widgetOptions' => array(
                                    'data'        => $model->getConditionDenialList(),
                                    'htmlOptions' => array(
                                        'class'               => 'popover-help',
                                        'data-original-title' => $model->getAttributeLabel('condition_denial'),
                                        'data-content'        => $model->getAttributeDescription('condition_denial'),
                                    ),
                                ),
                            )
                        ); ?>

<?php $this->endWidget(); ?>

<?php $this->widget(
    'bootstrap.widgets.TbButton',
    array(
        'buttonType' => 'submit',
        'context'    => 'primary',
        'label'      => $model->isNewRecord ? Yii::t('MenuModule.menu', 'Create menu item and continue') : Yii::t(
                'MenuModule.menu',
                'Save menu item and continue'
            ),
    )
); ?>

<?php $this->widget(
    'bootstrap.widgets.TbButton',
    array(
        'buttonType'  => 'submit',
        'htmlOptions' => array('name' => 'submit-type', 'value' => 'index'),
        'label'       => $model->isNewRecord ? Yii::t('MenuModule.menu', 'Create menu item and close') : Yii::t(
                'MenuModule.menu',
                'Save menu item and close'
            ),
    )
); ?>

<?php $this->endWidget(); ?>


text:
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand

class pytest(TestCommand):

    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        sys.exit(os.system('py.test tests'))

setup(
    name='Beer Tweeting',
    version='1.0',
    author='Pablo Lanaspa',
    author_email='planaspa@gmail.com',
    description='Description........',
    license='MIT',
    url='https://github.com/planaspa/Data-Mining',
    keywords='beer twitter',
    py_modules=['src'],
    test_suite="tests",
    install_requires=[
        'numpy>=1.8.2',
        'six>=1.5.2',
        'pytz>=2014.9',
        'tornado>=3.1.1',
        'pyparsing>=2.0.3',
        'matplotlib>=1.4.2',
        'networkx>=1.9.1',
        'docopt>=0.6.0,<0.7.0',
    ],
    dependency_links = [
        "https://github.com/matplotlib/basemap" #BaseMap
    ],
    packages=find_packages('src'),
    long_description=open('README.md').read(),
    cmdclass={'test': pytest},
    tests_require=['pytest'],
    scripts=['src/'],
    classifiers=[
        'Programming Language :: Python :: 2.7',
        'Programming Language :: Python :: 3.4',
        'License :: OSI Approved :: MIT License',
    ],
    zip_safe=False,
)


text:
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

namespace SunshineAttack.Azure.Common
{
    public static class TaskExtentions
    {

        private static Task _task;

        public static Task<T> Empty<T>(this Task task)
        {
            if (_task == null) _task = Task.FromResult(default(T));

            return (Task<T>)_task;
        }

        public static Task ForEachAsync<T>(this TaskFactory factory, IEnumerable<T> items,
                                           Func<T, int, Task> getProcessItemTask)
        {
            var tcs = new TaskCompletionSource<object>();

            IEnumerator<T> enumerator = items.GetEnumerator();
            var i = 0;

            Action<Task> continuationAction = null;
            continuationAction = ante =>
                {
                    if (ante.IsFaulted)
                        tcs.SetException(ante.Exception);
                    else if (ante.IsCanceled)
                        tcs.TrySetCanceled();
                    else
                        StartNextForEachIteration(factory, tcs, getProcessItemTask, enumerator, ref i,
                                                  continuationAction);
                };

            StartNextForEachIteration(factory, tcs, getProcessItemTask, enumerator, ref i, continuationAction);

            tcs.Task.ContinueWith(_ => enumerator.Dispose(), TaskContinuationOptions.ExecuteSynchronously);

            return tcs.Task;
        }

        private static void StartNextForEachIteration<T>(TaskFactory factory, TaskCompletionSource<object> tcs,
                                                         Func<T, int, Task> getProcessItemTask,
                                                         IEnumerator<T> enumerator, ref int i,
                                                         Action<Task> continuationAction)
        {
            bool moveNext;
            try
            {
                moveNext = enumerator.MoveNext();
            }
            catch (Exception ex)
            {
                tcs.SetException(ex);
                return;
            }

            if (!moveNext)
            {
                tcs.SetResult(null);
                return;
            }

            Task iterationTask = null;
            try
            {
                iterationTask = getProcessItemTask(enumerator.Current, i);
            }
            catch (Exception ex)
            {
                tcs.SetException(ex);
            }

            i++;

            if (iterationTask != null)
                iterationTask.ContinueWith(continuationAction, CancellationToken.None,
                                           TaskContinuationOptions.ExecuteSynchronously,
                                           factory.Scheduler ?? TaskScheduler.Default);
        }

    }

    public static class Empty<T>
    {
        public static Task<T> Task
        {
            get { return _task; }
        }

        private static readonly Task<T> _task = System.Threading.Tasks.Task.FromResult(default(T));
    }
}