text:
@charset "UTF-8";
html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.65em; }

@media (min-width: 768px) {
  body {
    width: 100%; } }

p, ul {
  margin: 0;
  color: #313131;
  font-weight: 400;
  word-wrap: break-word; }

p {
  text-align: justify; }

ul {
  padding: 0 0 0 1em;
  list-style-type: none; }
  @media (max-width: 768px) {
    ul {
      font-size: 12px; } }
  ul li:before {
    position: relative;
    bottom: 0.2ex;
    margin-right: 1em;
    content: "";
    color: #1560fb;
    font-family: "FontAwesome";
    font-size: 8px; }

a {
  transition: border 0.1s linear, color 0.1s linear, background-color 0.1s linear;
  -webkit-transition: border 0.1s linear, color 0.1s linear, background-color 0.1s linear;
  color: #313131;
  background-color: transparent;
  text-decoration: none;
  white-space: nowrap; }

h1 {
  font-size: 28px;
  font-weight: 700; }

h2 {
  font-size: 18px;
  font-weight: 700; }

.fa {
  font-size: 1.15em; }

.external, .main__copy a {
  padding: 0 0 2px 0;
  border-bottom: 2px solid #a3c0fc;
  transition: background-color 0.3s, border-color 0.3s; }
  .external:hover, .main__copy a:hover, .external:focus, .main__copy a:focus, .external:active, .main__copy a:active {
    background-color: #e9f0ff;
    border-color: #1560fb; }

#tag, .info__tag, .main__tag {
  margin: 0 0 20px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase; }
  @media (min-width: 1024px) {
    #tag, .info__tag, .main__tag {
      margin: 0px 30px 0 0; } }

#fadeUp-animation, .info-footer__left, .info-footer__social-icon, .info-footer__social-icon--envelope, .info-footer__social-icon--skype, .info-footer__social-icon--linkedin, .info-footer__social-icon--github, .info-footer__social-icon--code, .main__container-about, .main__container-education, .main__container-experiences, .main__container-projects, .main__container-resume {
  opacity: 0;
  animation: fadeUp ease-in 1;
  animation-fill-mode: forwards;
  animation-duration: 0.5s; }

#grow {
  -ms-transform: scale(1.2, 1.2);
  -webkit-transform: scale(1.2, 1.2);
  transform: scale(1.2, 1.2); }

#mix-container .mix {
  display: none; }

.after-arrow, .wobble, .main__section-left-title:after, .main__resume:after, .rotate {
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 1px transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale; }

.wobble, .main__section-left-title:after, .main__resume:after {
  -webkit-transform: translateZ(0);
  transform: translateZ(0); }
  .wobble:hover, .main__section-left-title:hover:after, .main__resume:hover:after, .wobble:focus, .main__section-left-title:focus:after, .main__resume:focus:after, .wobble:active, .main__section-left-title:active:after, .main__resume:active:after {
    -webkit-animation-name: hvr-wobble-horizontal;
    animation-name: hvr-wobble-horizontal;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: 1;
    animation-iteration-count: 1; }

.rotate {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg); }

.read-more {
  display: none; }

.clearfix:before, .clearfix:after {
  content: " ";
  display: table; }

.clearfix:after {
  clear: both; }

/* Wobble Horizontal */
@-webkit-keyframes hvr-wobble-horizontal {
  16.65% {
    -webkit-transform: translateX(8px);
    transform: translateX(8px); }
  33.3% {
    -webkit-transform: translateX(-6px);
    transform: translateX(-6px); }
  49.95% {
    -webkit-transform: translateX(4px);
    transform: translateX(4px); }
  66.6% {
    -webkit-transform: translateX(-2px);
    transform: translateX(-2px); }
  83.25% {
    -webkit-transform: translateX(1px);
    transform: translateX(1px); }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0); } }

@keyframes hvr-wobble-horizontal {
  16.65% {
    -webkit-transform: translateX(8px);
    transform: translateX(8px); }
  33.3% {
    -webkit-transform: translateX(-6px);
    transform: translateX(-6px); }
  49.95% {
    -webkit-transform: translateX(4px);
    transform: translateX(4px); }
  66.6% {
    -webkit-transform: translateX(-2px);
    transform: translateX(-2px); }
  83.25% {
    -webkit-transform: translateX(1px);
    transform: translateX(1px); }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0); } }

/* Fade In Animation */
@-webkit-keyframes fadeUp {
  0% {
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    opacity: 0; }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1; } }

@keyframes fadeUp {
  0% {
    -webkit-transform: translateY(20px);
    transform: translateY(20px);
    opacity: 0; }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1; } }

/* Fade In Animation */
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }

@keyframes fadeIn {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }

@keyframes animStar {
  from {
    transform: translateY(0px); }
  to {
    transform: translateY(-2000px); } }

.container-info {
  display: inline-block;
  position: relative;
  width: 100%;
  min-height: 660px;
  background-color: #1560fb; }
  @media (min-width: 768px) {
    .container-info {
      float: left;
      position: fixed;
      left: 0;
      top: 0;
      height: 100%;
      width: 45%; } }

.container-main {
  display: inline-block;
  padding: 20px; }
  @media (min-width: 768px) {
    .container-main {
      float: right;
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: 50%;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      overflow-x: hidden; } }

.info-main {
  opacity: 0;
  width: 100%;
  animation: fadeIn ease-in 1;
  animation-fill-mode: forwards;
  animation-duration: 0.3s;
  animation-delay: 0.1s; }
  @media (min-width: 768px) {
    .info-main {
      margin: 0;
      position: relative;
      top: 50%;
      transform: translateY(-60%); } }

.info__headshot, .info__headshot-img {
  display: block;
  margin: auto;
  width: 170px;
  height: 170px;
  border-radius: 200px;
  box-shadow: 0 5px 10px #0a4dd9;
  margin: 30px auto; }

.info__tag {
  display: block;
  margin: 30px auto auto auto;
  opacity: 0.6;
  color: white;
  text-align: center; }

.info__elevator-text {
  display: block;
  margin: 30px auto auto auto;
  padding: 0 20px;
  max-width: 460px;
  color: white;
  font-size: 22px;
  line-height: 1.15em;
  text-align: center; }
  @media (min-width: 420px) {
    .info__elevator-text {
      font-size: 28px; } }
  @media (min-width: 1024px) {
    .info__elevator-text {
      max-width: 550px;
      padding: 0 40px; } }
  .info__elevator-text-link {
    padding: 0 0px 1px 0px;
    color: white;
    text-decoration: none;
    word-wrap: break-word;
    white-space: initial;
    transition: border-color 0.3s;
    border-bottom: 2px solid transparent; }
    .info__elevator-text-link:hover, .info__elevator-text-link:focus, .info__elevator-text-link:active {
      border-color: white; }

.info__button, .info__button--dark {
  display: block;
  position: relative;
  width: 200px;
  margin: 30px auto auto auto;
  padding: 11px 24px;
  color: #1560fb;
  background: white;
  border-color: #1560fb;
  border-radius: 3px;
  border-style: solid;
  border-width: 1px;
  font-weight: 700;
  text-decoration: none; }
  .info__button:after, .info__button--dark:after {
    float: right;
    content: "";
    font-family: "FontAwesome";
    font-size: 12px; }
  .info__button:hover, .info__button--dark:hover, .info__button:focus, .info__button--dark:focus, .info__button:active, .info__button--dark:active {
    color: white;
    background-color: #1560fb;
    text-decoration: none; }
  @media (min-width: 768px) {
    .info__button, .info__button--dark {
      margin: 40px auto auto auto; } }
  .info__button--dark {
    color: white;
    background: #1560fb;
    border-color: white; }
    .info__button--dark:hover, .info__button--dark:focus, .info__button--dark:active {
      color: #1560fb;
      background-color: white; }
    @media (min-width: 768px) {
      .info__button--dark {
        margin: 40px auto auto auto; } }

.info__button__center {
  text-align: center; }
  .info__button__center__or {
    display: inline-block;
    position: relative;
    margin: 30px auto auto auto; }
    @media (min-width: 768px) {
      .info__button__center__or {
        border: 1px solid white;
        border-radius: 3px; } }
    .info__button__center__or__span {
      display: none; }
      @media (min-width: 768px) {
        .info__button__center__or__span {
          display: block;
          position: absolute;
          left: 50.5%;
          top: 49.5%;
          width: 2em;
          height: 2em;
          margin-top: -1em;
          margin-left: -1em;
          border-radius: 100px;
          font-size: 1em;
          line-height: 1.9em;
          text-align: center;
          color: #1560fb;
          border: 1px solid #1560fb;
          background-color: white; } }
    .info__button__center__or__link {
      display: block;
      color: white;
      text-decoration: none;
      text-align: center;
      padding: 1em 2.5em;
      background: #1560fb;
      border: 1px solid white;
      border-radius: 3px;
      margin-bottom: 1em; }
      @media (min-width: 768px) {
        .info__button__center__or__link {
          display: inline-block;
          float: left;
          margin: 0;
          border: none;
          border-radius: 0; }
          .info__button__center__or__link:last-child {
            border-left: 1px solid white; } }
      .info__button__center__or__link:hover, .info__button__center__or__link:focus, .info__button__center__or__link:active {
        color: #1560fb;
        background-color: white;
        text-decoration: none; }
        @media (min-width: 768px) {
          .info__button__center__or__link:hover, .info__button__center__or__link:focus, .info__button__center__or__link:active {
            border-color: #1560fb; } }

.info-footer__left {
  animation-delay: 1.2s;
  position: absolute;
  left: 20px;
  bottom: 20px;
  height: 27px; }
  @media (max-width: 768px) {
    .info-footer__left {
      animation-delay: 0.6s; } }
  .info-footer__left-img {
    float: left; }
  .info-footer__left-text {
    float: left;
    margin: 0 0 0 10px;
    padding-top: 7px;
    font-size: 12px;
    color: white;
    transition: 0.3s opacity ease;
    opacity: 0.6; }
    .info-footer__left-text:hover, .info-footer__left-text:focus, .info-footer__left-text:active {
      opacity: 1; }

.info-footer__social {
  position: absolute;
  right: 20px;
  bottom: 20px;
  height: 27px; }
  @media (max-width: 768px) {
    .info-footer__social {
      position: absolute;
      right: 20px;
      bottom: 20px;
      height: 27px; } }
  .info-footer__social-icon, .info-footer__social-icon--envelope, .info-footer__social-icon--skype, .info-footer__social-icon--linkedin, .info-footer__social-icon--github, .info-footer__social-icon--code {
    float: right;
    margin-left: 10px;
    padding-top: 4px;
    color: white;
    text-decoration: none;
    float: right;
    transition: 0.3s color ease; }
    .info-footer__social-icon:hover, .info-footer__social-icon--envelope:hover, .info-footer__social-icon--skype:hover, .info-footer__social-icon--linkedin:hover, .info-footer__social-icon--github:hover, .info-footer__social-icon--code:hover, .info-footer__social-icon:focus, .info-footer__social-icon--envelope:focus, .info-footer__social-icon--skype:focus, .info-footer__social-icon--linkedin:focus, .info-footer__social-icon--github:focus, .info-footer__social-icon--code:focus, .info-footer__social-icon:active, .info-footer__social-icon--envelope:active, .info-footer__social-icon--skype:active, .info-footer__social-icon--linkedin:active, .info-footer__social-icon--github:active, .info-footer__social-icon--code:active {
      color: #a3c0fc; }
    .info-footer__social-icon--envelope {
      animation-delay: 1s; }
      @media (max-width: 768px) {
        .info-footer__social-icon--envelope {
          animation-delay: 0.4s; } }
    .info-footer__social-icon--skype {
      animation-delay: 1.2s; }
      @media (max-width: 768px) {
        .info-footer__social-icon--skype {
          animation-delay: 0.6s; } }
    .info-footer__social-icon--linkedin {
      animation-delay: 1.4s; }
      @media (max-width: 768px) {
        .info-footer__social-icon--linkedin {
          animation-delay: 0.8s; } }
    .info-footer__social-icon--github {
      animation-delay: 1.6s; }
      @media (max-width: 768px) {
        .info-footer__social-icon--github {
          animation-delay: 0.8s; } }
    .info-footer__social-icon--code {
      animation-delay: 1.8s; }
      @media (max-width: 768px) {
        .info-footer__social-icon--code {
          animation-delay: 1.2s; } }

.main__container, .main__container-about, .main__container-education, .main__container-experiences, .main__container-projects, .main__container-resume {
  clear: both;
  display: block;
  margin: 2em 0 0 0;
  overflow: hidden; }
  .main__container-about {
    animation-delay: 0.2s; }
    @media (max-width: 768px) {
      .main__container-about {
        animation-delay: 0.6s; } }
  .main__container-education {
    animation-delay: 0.4s; }
    @media (max-width: 768px) {
      .main__container-education {
        animation-delay: 0.8s; } }
  .main__container-experiences {
    animation-delay: 0.6s; }
    @media (max-width: 768px) {
      .main__container-experiences {
        animation-delay: 1s; } }
  .main__container-projects {
    animation-delay: 0.8s; }
    @media (max-width: 768px) {
      .main__container-projects {
        animation-delay: 1.2s; } }
  .main__container-resume {
    margin-bottom: 40px;
    animation-delay: 1s; }
    @media (max-width: 768px) {
      .main__container-resume {
        animation-delay: 1.4s; } }
    @media (min-width: 768px) {
      .main__container-resume {
        margin-bottom: 80px; } }

.main__tag {
  color: #1560fb; }
  @media (min-width: 1024px) {
    .main__tag {
      clear: both;
      float: left;
      width: 80px;
      margin-right: 30px; } }

@media (min-width: 1024px) {
  .main__copy {
    float: left;
    max-width: 500px; } }

.main__copy a {
  padding: 0 4px 2px 4px;
  font-weight: 400; }

.main__list {
  clear: both;
  padding: 0;
  list-style-type: none; }
  @media (min-width: 1024px) {
    .main__list {
      float: left;
      margin: 10px 0 0 110px; } }
  .main__list-item {
    font-weight: 700; }
    .main__list-item:before {
      position: relative;
      bottom: 0.2ex;
      margin-right: 1em;
      content: "";
      color: #1560fb;
      font-family: "FontAwesome";
      font-size: 8px; }
      @media (min-width: 1024px) {
        .main__list-item:before {
          margin-right: 2em; } }

.main__section, .main__filters {
  position: relative;
  margin-bottom: 1em; }
  @media (min-width: 1024px) {
    .main__section, .main__filters {
      max-width: 500px;
      margin-left: 110px; }
      .main__section:first-of-type, .main__filters:first-of-type {
        margin-top: 3px; } }
  .main__section:last-child, .main__filters:last-child {
    margin-bottom: 1px; }
  @media (min-width: 1024px) {
    .main__section-right {
      float: right;
      text-align: right; } }
  .main__section-right-title, .main__section-left-title-without, .main__section-left-title-base, .main__section-left-title, .main__resume, .main__section-left-title-active {
    float: left;
    display: block;
    line-height: 1.8em; }
    @media (min-width: 1024px) {
      .main__section-right-title, .main__section-left-title-without, .main__section-left-title-base, .main__section-left-title, .main__resume, .main__section-left-title-active {
        font-weight: 700;
        float: none; } }
  .main__section-right-subtitle, .main__section-left-subtitle {
    float: left;
    display: block;
    line-height: 1.8em;
    margin-left: 1em; }
    @media (min-width: 1024px) {
      .main__section-right-subtitle, .main__section-left-subtitle {
        margin-left: 0;
        float: none; } }
  @media (min-width: 1024px) {
    .main__section-left {
      float: left; } }
  .main__section-left-title-without, .main__section-left-title-base, .main__section-left-title, .main__resume, .main__section-left-title-active {
    float: none;
    transition: 0.3s opacity ease;
    font-weight: 700; }
    .main__section-left-title-without:first-child, .main__section-left-title-base:first-child, .main__section-left-title:first-child, .main__resume:first-child, .main__section-left-title-active:first-child {
      margin-top: -2px; }
  .main__section-left-title-base, .main__section-left-title, .main__resume, .main__section-left-title-active {
    cursor: pointer; }
    .main__section-left-title-base:hover, .main__section-left-title:hover, .main__resume:hover, .main__section-left-title-active:hover, .main__section-left-title-base:focus, .main__section-left-title:focus, .main__resume:focus, .main__section-left-title-active:focus, .main__section-left-title-base:active, .main__section-left-title:active, .main__resume:active, .main__section-left-title-active:active {
      opacity: 0.6; }
    .main__section-left-title-base:after, .main__section-left-title:after, .main__resume:after, .main__section-left-title-active:after {
      position: relative;
      bottom: 0.2ex;
      margin-left: 20px;
      color: #1560fb;
      font-family: "FontAwesome";
      font-size: 12px; }
  .main__section-left-title:after, .main__resume:after {
    content: ""; }
  .main__section-left-title-active:after {
    content: ""; }
  .main__section-left-subtitle {
    float: none;
    margin-left: 0; }
  .main__section-description, .main__container-projects .main__section-left-subtitle {
    font-size: 12px;
    line-height: 1.65em; }
    .main__section-description p, .main__container-projects .main__section-left-subtitle p, .main__section-description ul, .main__container-projects .main__section-left-subtitle ul {
      cursor: pointer; }
  .main__section-links {
    clear: both; }
    .main__section-links a {
      margin: 0 0.5em 0 0; }
      .main__section-links a:hover, .main__section-links a:focus, .main__section-links a:active {
        color: #1560fb; }
    @media (min-width: 1024px) {
      .main__section-links {
        position: absolute;
        top: 30px;
        left: -110px;
        width: 90px; }
        .main__section-links a {
          float: right;
          margin: 0 0 0 0.5em; } }

.main__filters {
  margin-top: 1em; }
  .main__filters-active, .main__filters .filter.active, .main__filters .filter:hover, .main__filters .filter:focus, .main__filters .filter:active {
    color: white;
    background-color: #1560fb;
    text-decoration: none; }
  .main__filters .filter {
    display: inline-block;
    font-size: 12px;
    color: #1560fb;
    background: white;
    border-color: #1560fb;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    padding: 3px 15px;
    cursor: pointer;
    margin: 0 0.5em 0.5em 0; }
    @media (min-width: 1024px) {
      .main__filters .filter {
        margin: 0 0.5em 0 0; } }

.main__resume {
  margin: 0; }
  .main__resume:after {
    content: ""; }
  @media (min-width: 1024px) {
    .main__resume {
      margin-left: 110px; } }


text:
namespace sandbox {

class TargetPolicy {
 public:
  // Windows subsystems that can have specific rules.
  // Note: The process subsystem(SUBSY_PROCESS) does not evaluate the request
  // exactly like the CreateProcess API does. See the comment at the top of
  // process_thread_dispatcher.cc for more details.
  enum SubSystem {
    SUBSYS_FILES,             // Creation and opening of files and pipes.
    SUBSYS_NAMED_PIPES,       // Creation of named pipes.
    SUBSYS_PROCESS,           // Creation of child processes.
    SUBSYS_REGISTRY,          // Creation and opening of registry keys.
    SUBSYS_SYNC,              // Creation of named sync objects.
    SUBSYS_HANDLES,           // Duplication of handles to other processes.
    SUBSYS_WIN32K_LOCKDOWN    // Win32K Lockdown related policy.
  };

  // Allowable semantics when a rule is matched.
  enum Semantics {
    FILES_ALLOW_ANY,       // Allows open or create for any kind of access that
                           // the file system supports.
    FILES_ALLOW_READONLY,  // Allows open or create with read access only.
    FILES_ALLOW_QUERY,     // Allows access to query the attributes of a file.
    FILES_ALLOW_DIR_ANY,   // Allows open or create with directory semantics
                           // only.
    HANDLES_DUP_ANY,       // Allows duplicating handles opened with any
                           // access permissions.
    HANDLES_DUP_BROKER,    // Allows duplicating handles to the broker process.
    NAMEDPIPES_ALLOW_ANY,  // Allows creation of a named pipe.
    PROCESS_MIN_EXEC,      // Allows to create a process with minimal rights
                           // over the resulting process and thread handles.
                           // No other parameters besides the command line are
                           // passed to the child process.
    PROCESS_ALL_EXEC,      // Allows the creation of a process and return fill
                           // access on the returned handles.
                           // This flag can be used only when the main token of
                           // the sandboxed application is at least INTERACTIVE.
    EVENTS_ALLOW_ANY,      // Allows the creation of an event with full access.
    EVENTS_ALLOW_READONLY, // Allows opening an even with synchronize access.
    REG_ALLOW_READONLY,    // Allows readonly access to a registry key.
    REG_ALLOW_ANY,         // Allows read and write access to a registry key.
    FAKE_USER_GDI_INIT     // Fakes user32 and gdi32 initialization. This can
                           // be used to allow the DLLs to load and initialize
                           // even if the process cannot access that subsystem.
  };

  // Increments the reference count of this object. The reference count must
  // be incremented if this interface is given to another component.
  virtual void AddRef() = 0;

  // Decrements the reference count of this object. When the reference count
  // is zero the object is automatically destroyed.
  // Indicates that the caller is done with this interface. After calling
  // release no other method should be called.
  virtual void Release() = 0;

  // Sets the security level for the target process' two tokens.
  // This setting is permanent and cannot be changed once the target process is
  // spawned.
  // initial: the security level for the initial token. This is the token that
  //   is used by the process from the creation of the process until the moment
  //   the process calls TargetServices::LowerToken() or the process calls
  //   win32's ReverToSelf(). Once this happens the initial token is no longer
  //   available and the lockdown token is in effect. Using an initial token is
  //   not compatible with AppContainer, see SetAppContainer.
  // lockdown: the security level for the token that comes into force after the
  //   process calls TargetServices::LowerToken() or the process calls
  //   ReverToSelf(). See the explanation of each level in the TokenLevel
  //   definition.
  // Return value: SBOX_ALL_OK if the setting succeeds and false otherwise.
  //   Returns false if the lockdown value is more permissive than the initial
  //   value.
  //
  // Important: most of the sandbox-provided security relies on this single
  // setting. The caller should strive to set the lockdown level as restricted
  // as possible.
  virtual ResultCode SetTokenLevel(TokenLevel initial, TokenLevel lockdown) = 0;

  // Returns the initial token level.
  virtual TokenLevel GetInitialTokenLevel() const = 0;

  // Returns the lockdown token level.
  virtual TokenLevel GetLockdownTokenLevel() const = 0;

  // Sets the security level of the Job Object to which the target process will
  // belong. This setting is permanent and cannot be changed once the target
  // process is spawned. The job controls the global security settings which
  // can not be specified in the token security profile.
  // job_level: the security level for the job. See the explanation of each
  //   level in the JobLevel definition.
  // ui_exceptions: specify what specific rights that are disabled in the
  //   chosen job_level that need to be granted. Use this parameter to avoid
  //   selecting the next permissive job level unless you need all the rights
  //   that are granted in such level.
  //   The exceptions can be specified as a combination of the following
  //   constants:
  // JOB_OBJECT_UILIMIT_HANDLES : grant access to all user-mode handles. These
  //   include windows, icons, menus and various GDI objects. In addition the
  //   target process can set hooks, and broadcast messages to other processes
  //   that belong to the same desktop.
  // JOB_OBJECT_UILIMIT_READCLIPBOARD : grant read-only access to the clipboard.
  // JOB_OBJECT_UILIMIT_WRITECLIPBOARD : grant write access to the clipboard.
  // JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS : allow changes to the system-wide
  //   parameters as defined by the Win32 call SystemParametersInfo().
  // JOB_OBJECT_UILIMIT_DISPLAYSETTINGS : allow programmatic changes to the
  //  display settings.
  // JOB_OBJECT_UILIMIT_GLOBALATOMS : allow access to the global atoms table.
  // JOB_OBJECT_UILIMIT_DESKTOP : allow the creation of new desktops.
  // JOB_OBJECT_UILIMIT_EXITWINDOWS : allow the call to ExitWindows().
  //
  // Return value: SBOX_ALL_OK if the setting succeeds and false otherwise.
  //
  // Note: JOB_OBJECT_XXXX constants are defined in winnt.h and documented at
  // length in:
  //   http://msdn2.microsoft.com/en-us/library/ms684152.aspx
  //
  // Note: the recommended level is JOB_RESTRICTED or JOB_LOCKDOWN.
  virtual ResultCode SetJobLevel(JobLevel job_level, uint32 ui_exceptions) = 0;

  // Sets a hard limit on the size of the commit set for the sandboxed process.
  // If the limit is reached, the process will be terminated with
  // SBOX_FATAL_MEMORY_EXCEEDED (7012).
  virtual ResultCode SetJobMemoryLimit(size_t memory_limit) = 0;

  // Specifies the desktop on which the application is going to run. If the
  // desktop does not exist, it will be created. If alternate_winstation is
  // set to true, the desktop will be created on an alternate window station.
  virtual ResultCode SetAlternateDesktop(bool alternate_winstation) = 0;

  // Returns the name of the alternate desktop used. If an alternate window
  // station is specified, the name is prepended by the window station name,
  // followed by a backslash.
  virtual base::string16 GetAlternateDesktop() const = 0;

  // Precreates the desktop and window station, if any.
  virtual ResultCode CreateAlternateDesktop(bool alternate_winstation) = 0;

  // Destroys the desktop and windows station.
  virtual void DestroyAlternateDesktop() = 0;

  // Sets the integrity level of the process in the sandbox. Both the initial
  // token and the main token will be affected by this. If the integrity level
  // is set to a level higher than the current level, the sandbox will fail
  // to start.
  virtual ResultCode SetIntegrityLevel(IntegrityLevel level) = 0;

  // Returns the initial integrity level used.
  virtual IntegrityLevel GetIntegrityLevel() const = 0;

  // Sets the integrity level of the process in the sandbox. The integrity level
  // will not take effect before you call LowerToken. User Interface Privilege
  // Isolation is not affected by this setting and will remain off for the
  // process in the sandbox. If the integrity level is set to a level higher
  // than the current level, the sandbox will fail to start.
  virtual ResultCode SetDelayedIntegrityLevel(IntegrityLevel level) = 0;

  // Sets the AppContainer to be used for the sandboxed process. Any capability
  // to be enabled for the process should be added before this method is invoked
  // (by calling SetCapability() as many times as needed).
  // The desired AppContainer must be already installed on the system, otherwise
  // launching the sandboxed process will fail. See BrokerServices for details
  // about installing an AppContainer.
  // Note that currently Windows restricts the use of impersonation within
  // AppContainers, so this function is incompatible with the use of an initial
  // token.
  virtual ResultCode SetAppContainer(const wchar_t* sid) = 0;

  // Sets a capability to be enabled for the sandboxed process' AppContainer.
  virtual ResultCode SetCapability(const wchar_t* sid) = 0;

  // Sets the mitigations enabled when the process is created. Most of these
  // are implemented as attributes passed via STARTUPINFOEX. So they take
  // effect before any thread in the target executes. The declaration of
  // MitigationFlags is followed by a detailed description of each flag.
  virtual ResultCode SetProcessMitigations(MitigationFlags flags) = 0;

  // Returns the currently set mitigation flags.
  virtual MitigationFlags GetProcessMitigations() = 0;

  // Sets process mitigation flags that don't take effect before the call to
  // LowerToken().
  virtual ResultCode SetDelayedProcessMitigations(MitigationFlags flags) = 0;

  // Returns the currently set delayed mitigation flags.
  virtual MitigationFlags GetDelayedProcessMitigations() const = 0;

  // Sets the interceptions to operate in strict mode. By default, interceptions
  // are performed in "relaxed" mode, where if something inside NTDLL.DLL is
  // already patched we attempt to intercept it anyway. Setting interceptions
  // to strict mode means that when we detect that the function is patched we'll
  // refuse to perform the interception.
  virtual void SetStrictInterceptions() = 0;

  // Set the handles the target process should inherit for stdout and
  // stderr.  The handles the caller passes must remain valid for the
  // lifetime of the policy object.  This only has an effect on
  // Windows Vista and later versions.  These methods accept pipe and
  // file handles, but not console handles.
  virtual ResultCode SetStdoutHandle(HANDLE handle) = 0;
  virtual ResultCode SetStderrHandle(HANDLE handle) = 0;

  // Adds a policy rule effective for processes spawned using this policy.
  // subsystem: One of the above enumerated windows subsystems.
  // semantics: One of the above enumerated FileSemantics.
  // pattern: A specific full path or a full path with wildcard patterns.
  //   The valid wildcards are:
  //   '*' : Matches zero or more character. Only one in series allowed.
  //   '?' : Matches a single character. One or more in series are allowed.
  // Examples:
  //   "c:\\documents and settings\\vince\\*.dmp"
  //   "c:\\documents and settings\\*\\crashdumps\\*.dmp"
  //   "c:\\temp\\app_log_?????_chrome.txt"
  virtual ResultCode AddRule(SubSystem subsystem, Semantics semantics,
                             const wchar_t* pattern) = 0;

  // Adds a dll that will be unloaded in the target process before it gets
  // a chance to initialize itself. Typically, dlls that cause the target
  // to crash go here.
  virtual ResultCode AddDllToUnload(const wchar_t* dll_name) = 0;

  // Adds a handle that will be closed in the target process after lockdown.
  // A NULL value for handle_name indicates all handles of the specified type.
  // An empty string for handle_name indicates the handle is unnamed.
  virtual ResultCode AddKernelObjectToClose(const wchar_t* handle_type,
                                            const wchar_t* handle_name) = 0;
};

}  // namespace sandbox

#endif  // SANDBOX_WIN_SRC_SANDBOX_POLICY_H_

redpajama_set_name: RedPajamaGithub


text:
package de.asw.courses.web2016.demo.backend.di;

import javax.enterprise.context.RequestScoped;

@RequestScoped
public class RequestScopedBean {
}


text:
using UnityEngine;

namespace Hydra.HydraCommon.Utils
{
	/// <summary>
	/// 	Matrix4x4Utils provides utility methods for working with matrices.
	/// </summary>
	public static class Matrix4x4Utils
	{
		/// <summary>
		/// 	Creates a translation matrix.
		/// </summary>
		/// <param name="translation">Translation.</param>
		public static Matrix4x4 Translate(Vector3 translation)
		{
			return Matrix4x4.TRS(translation, Quaternion.identity, Vector3.one);
		}

		/// <summary>
		/// 	Creates a rotation matrix.
		/// </summary>
		/// <param name="rotation">Rotation.</param>
		public static Matrix4x4 Rotate(Quaternion rotation)
		{
			return Matrix4x4.TRS(Vector3.zero, rotation, Vector3.one);
		}

		/// <summary>
		/// 	Creates a rotation matrix.
		/// </summary>
		/// <param name="forwards">Forwards.</param>
		/// <param name="up">Up.</param>
		public static Matrix4x4 Rotate(Vector3 forwards, Vector3 up)
		{
			Quaternion rotation = Quaternion.LookRotation(forwards, up);

			return Rotate(rotation);
		}

		/// <summary>
		/// 	Creates a rotation taking normal as up.
		/// </summary>
		/// <returns>The normal.</returns>
		/// <param name="normal">Normal.</param>
		public static Matrix4x4 FromNormal(Vector3 normal)
		{
			Vector3 tangent = HydraMathUtils.Tangent(normal);

			return Rotate(tangent, normal);
		}
	}
}


text:
"""
Default settings module for a :ref:`polly` project.
"""

from __future__ import unicode_literals

from lino.projects.std.settings import *

from django.utils.translation import gettext_lazy as _

class Site(Site):

    """
    Base class for a :ref:`polly` application,
    designed to be instantiated into the :setting:`SITE` setting.
    """

    verbose_name = "Lino Polly"
    description = _("a Lino application to make surveys and polls.")
    version = "0.1"
    url = "http://www.lino-framework.org/examples/polly"
    author = 'Luc Saffre'
    author_email = 'luc.saffre@gmail.com'

    demo_fixtures = 'std demo feedback compass demo2'.split()
    # user_types_module = 'lino_book.projects.polly.user_types'
    user_types_module = 'lino_xl.lib.xl.user_types'

    languages = 'en de et'

    def get_installed_apps(self):
        yield super(Site, self).get_installed_apps()
        yield 'lino.modlib.gfks'
        yield 'lino.modlib.users'
        yield 'lino_xl.lib.polls'


text:
<!DOCTYPE html>

    <title>On the Sea Wall | Lyrics of the Hearthside | Paul Laurence Dunbar | Lit2Go ETC</title>
    <link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8">
    <link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/printless.css" type="text/css" media="print" title="no title" charset="utf-8">

          Lit2Go

<form action="http://etc.usf.edu/lit2go/search/"><input type="text" name="q" placeholder="Search" value=""></form>

Authors

Books

Genres

Collections

Readability

      Lyrics of the Hearthside

      by Paul Laurence Dunbar

      On the Sea Wall

        Additional Information

            Year Published:
            1913

            Language:
            English

            Country of Origin:
            United States of America

            Source:
            Dunbar, P.L. (1913). The Complete Poems of Paul Laurence Dunbar. New York: Dodd, Mead, and Company.

            Readability:

                Flesch–Kincaid Level:
                6.5

            Word Count:
            232

            Genre:
            Poetry

            Keywords:
            death, dreams, sea

            ✎ Cite This

  Share
  |

Downloads

          Audio

          Passage PDF

Student Activity

            APA

            MLA

            Chicago

            Dunbar, P. (1913). On the Sea Wall. Lyrics of the Hearthside (Lit2Go Edition). Retrieved February 15, 2016, from http://etc.usf.edu/lit2go/190/lyrics-of-the-hearthside/4051/on-the-sea-wall/

            Dunbar, Paul Laurence. "On the Sea Wall." Lyrics of the Hearthside. Lit2Go Edition. 1913. Web. <http://etc.usf.edu/lit2go/190/lyrics-of-the-hearthside/4051/on-the-sea-wall/>. February 15, 2016.

            Paul Laurence Dunbar, "On the Sea Wall," Lyrics of the Hearthside, Lit2Go Edition, (1913), accessed February 15, 2016, http://etc.usf.edu/lit2go/190/lyrics-of-the-hearthside/4051/on-the-sea-wall/.

Back

Next

                  <audio controls style="width:99%;">
            <source src="http://etc.usf.edu/lit2go/audio/mp3/lyrics-of-the-hearthside-056-on-the-sea-wall.4051.mp3" type="audio/mpeg" />
                          <source src="http://etc.usf.edu/lit2go/audio/ogg/lyrics-of-the-hearthside-056-on-the-sea-wall.4051.ogg" type="audio/ogg" />
                        The embedded audio player requires a modern internet browser. You should visit Browse Happy and update your internet browser today!
          </audio>

	I sit upon the old sea wall,

	And watch the shimmering sea,

	Where soft and white the moonbeams fall,

	Till, in a fantasy,

	Some pure white maiden’s funeral pall

	The strange light seems to me.

	The waters break upon the shore

	And shiver at my feet,

	While I dream old dreams o’er and o’er,

	And dim old scenes repeat;

	Tho’ all have dreamed the same before,

	They still seem new and sweet.

	The waves still sing the same old song

	That knew an elder time;

	The breakers’ beat is not more strong,

	Their music more sublime;

	And poets thro’ the ages long

	Have set these notes to rhyme.

	But this shall not deter my lyre,

	Nor check my simple strain;

	If I have not the old–time fire,

	I know the ancient pain:

	The hurt of unfulfilled desire,—

	The ember quenched by rain.

	I know the softly shining sea

	That rolls this gentle swell

	Has snarled and licked its tongues at me

	And bared its fangs as well;

	That ‘neath its smile so heavenly,

	There lurks the scowl of hell!

	But what of that? I strike my string

	(For songs in youth are sweet);

	I ‘ll wait and hear the waters bring

	Their loud resounding beat;

	Then, in her own bold numbers sing

	The Ocean’s dear deceit!

Back

Next

            This collection of children's literature is a part of the Educational Technology Clearinghouse and is funded by various grants.

            Copyright © 2006—2016 by the Florida Center for Instructional Technology, College of Education, University of South Florida.

License

Credits

FAQ

Giving

This document was downloaded from Lit2Go, a free online collection of stories and poems in Mp3 (audiobook) format published by the Florida Center for Instructional Technology. For more information, including classroom activities, readability data, and original sources, please visit http://etc.usf.edu/lit2go/190/lyrics-of-the-hearthside/4051/on-the-sea-wall/.

Lit2Go: Lyrics of the Hearthside

On the Sea Wall


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

This file is processed by the bin/SConsDoc.py module.
See its __doc__ string for a discussion of the format.
-->

<!DOCTYPE sconsdoc [
<!ENTITY % scons SYSTEM '../../../../doc/scons.mod'>
%scons;
<!ENTITY % builders-mod SYSTEM '../../../../doc/generated/builders.mod'>
%builders-mod;
<!ENTITY % functions-mod SYSTEM '../../../../doc/generated/functions.mod'>
%functions-mod;
<!ENTITY % tools-mod SYSTEM '../../../../doc/generated/tools.mod'>
%tools-mod;
<!ENTITY % variables-mod SYSTEM '../../../../doc/generated/variables.mod'>
%variables-mod;
]>

<sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">

<tool name="mslink">
<summary>
<para>
Sets construction variables for the Microsoft linker.
</para>
</summary>
<sets>
<item>SHLINK</item>
<item>SHLINKFLAGS</item>
<item>SHLINKCOM</item>
<item>LINK</item>
<item>LINKFLAGS</item>
<item>LINKCOM</item>
<item>LIBDIRPREFIX</item>
<item>LIBDIRSUFFIX</item>
<item>LIBLINKPREFIX</item>
<item>LIBLINKSUFFIX</item>
<item>WIN32DEFPREFIX</item>
<item>WIN32DEFSUFFIX</item>
<item>WINDOWSDEFPREFIX</item>
<item>WINDOWSDEFSUFFIX</item>
<item>WINDOWS_INSERT_DEF</item>
<item>WIN32EXPPREFIX</item>
<item>WIN32EXPSUFFIX</item>
<item>WINDOWSEXPPREFIX</item>
<item>WINDOWSEXPSUFFIX</item>
<item>WINDOWSSHLIBMANIFESTPREFIX</item>
<item>WINDOWSSHLIBMANIFESTSUFFIX</item>
<item>WINDOWSPROGMANIFESTPREFIX</item>
<item>WINDOWSPROGMANIFESTSUFFIX</item>
<item><!--REGSVRACTION--></item>
<item>REGSVR</item>
<item>REGSVRFLAGS</item>
<item>REGSVRCOM</item>
<item>LDMODULE</item>
<item>LDMODULEPREFIX</item>
<item>LDMODULESUFFIX</item>
<item>LDMODULEFLAGS</item>
<item>LDMODULECOM</item>
</sets>
<uses>
<item>SHLINKCOMSTR</item>
<item>LINKCOMSTR</item>
<item>REGSVRCOMSTR</item>
<item>LDMODULECOMSTR</item>
</uses>
</tool>

<cvar name="no_import_lib">
<summary>
<para>
When set to non-zero,
suppresses creation of a corresponding Windows static import lib by the
<literal>SharedLibrary</literal>
builder when used with
MinGW, Microsoft Visual Studio or Metrowerks.
This also suppresses creation
of an export (.exp) file
when using Microsoft Visual Studio.
</para>
</summary>
</cvar>

<cvar name="PDB">
<summary>
<para>
The Microsoft Visual C++ PDB file that will store debugging information for
object files, shared libraries, and programs. This variable is ignored by
tools other than Microsoft Visual C++.
When this variable is
defined SCons will add options to the compiler and linker command line to
cause them to generate external debugging information, and will also set up the
dependencies for the PDB file.
Example:
</para>

<example_commands>
env['PDB'] = 'hello.pdb'
</example_commands>

<para>
The Visual C++ compiler switch that SCons uses by default
to generate PDB information is <option>/Z7</option>.
This works correctly with parallel (<option>-j</option>) builds
because it embeds the debug information in the intermediate object files,
as opposed to sharing a single PDB file between multiple object files.
This is also the only way to get debug information
embedded into a static library.
Using the <option>/Zi</option> instead may yield improved
link-time performance,
although parallel builds will no longer work.
You can generate PDB files with the <option>/Zi</option>
switch by overriding the default &cv-link-CCPDBFLAGS; variable;
see the entry for that variable for specific examples.
</para>
</summary>
</cvar>

<cvar name="WINDOWS_EMBED_MANIFEST">
<summary>
<para>
Set this variable to True or 1 to embed the compiler-generated manifest
(normally <literal>${TARGET}.manifest</literal>)
into all Windows exes and DLLs built with this environment,
as a resource during their link step.
This is done using &cv-link-MT; and &cv-link-MTEXECOM; and &cv-link-MTSHLIBCOM;.
</para>
</summary>
</cvar>

<cvar name="MT">
<summary>
<para>
The program used on Windows systems to embed manifests into DLLs and EXEs.
See also &cv-link-WINDOWS_EMBED_MANIFEST;.
</para>
</summary>
</cvar>

<cvar name="MTFLAGS">
<summary>
<para>
Flags passed to the &cv-link-MT; manifest embedding program (Windows only).
</para>
</summary>
</cvar>

<cvar name="MTEXECOM">
<summary>
<para>
The Windows command line used to embed manifests into executables.
See also &cv-link-MTSHLIBCOM;.
</para>
</summary>
</cvar>

<cvar name="MTSHLIBCOM">
<summary>
<para>
The Windows command line used to embed manifests into shared libraries (DLLs).
See also &cv-link-MTEXECOM;.
</para>
</summary>
</cvar>

<cvar name="REGSVR">
<summary>
<para>
The program used on Windows systems
to register a newly-built DLL library
whenever the &b-SharedLibrary; builder
is passed a keyword argument of <literal>register=1</literal>.
</para>
</summary>
</cvar>

<cvar name="REGSVRCOM">
<summary>
<para>
The command line used on Windows systems
to register a newly-built DLL library
whenever the &b-SharedLibrary; builder
is passed a keyword argument of <literal>register=1</literal>.
</para>
</summary>
</cvar>

<cvar name="REGSVRCOMSTR">
<summary>
<para>
The string displayed when registering a newly-built DLL file.
If this is not set, then &cv-link-REGSVRCOM; (the command line) is displayed.
</para>
</summary>
</cvar>

<cvar name="REGSVRFLAGS">
<summary>
<para>
Flags passed to the DLL registration program
on Windows systems when a newly-built DLL library is registered.
By default,
this includes the <option>/s</option>
that prevents dialog boxes from popping up
and requiring user attention.
</para>
</summary>
</cvar>

<cvar name="WIN32_INSERT_DEF">
<summary>
<para>
A deprecated synonym for &cv-link-WINDOWS_INSERT_DEF;.
</para>
</summary>
</cvar>

<cvar name="WIN32DEFPREFIX">
<summary>
<para>
A deprecated synonym for &cv-link-WINDOWSDEFPREFIX;.
</para>
</summary>
</cvar>

<cvar name="WIN32DEFSUFFIX">
<summary>
<para>
A deprecated synonym for &cv-link-WINDOWSDEFSUFFIX;.
</para>
</summary>
</cvar>

<cvar name="WIN32EXPPREFIX">
<summary>
<para>
A deprecated synonym for &cv-link-WINDOWSEXPSUFFIX;.
</para>
</summary>
</cvar>

<cvar name="WIN32EXPSUFFIX">
<summary>
<para>
A deprecated synonym for &cv-link-WINDOWSEXPSUFFIX;.
</para>
</summary>
</cvar>

<cvar name="WINDOWS_INSERT_DEF">
<summary>
<para>
When this is set to true,
a library build of a Windows shared library
(<filename>.dll</filename> file)
will also build a corresponding <filename>.def</filename> file
at the same time,
if a <filename>.def</filename> file
is not already listed as a build target.
The default is 0 (do not build a <filename>.def</filename> file).
</para>
</summary>
</cvar>

<cvar name="WINDOWS_INSERT_MANIFEST">
<summary>
<para>
When this is set to true,
&scons;
will be aware of the
<filename>.manifest</filename>
files generated by Microsoft Visua C/C++ 8.
</para>
</summary>
</cvar>

<cvar name="WINDOWSDEFPREFIX">
<summary>
<para>
The prefix used for Windows <filename>.def</filename> file names.
</para>
</summary>
</cvar>

<cvar name="WINDOWSDEFSUFFIX">
<summary>
<para>
The suffix used for Windows <filename>.def</filename> file names.
</para>
</summary>
</cvar>

<cvar name="WINDOWSEXPPREFIX">
<summary>
<para>
The prefix used for Windows <filename>.exp</filename> file names.
</para>
</summary>
</cvar>

<cvar name="WINDOWSEXPSUFFIX">
<summary>
<para>
The suffix used for Windows <filename>.exp</filename> file names.
</para>
</summary>
</cvar>

<cvar name="WINDOWSPROGMANIFESTPREFIX">
<summary>
<para>
The prefix used for executable program <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</para>
</summary>
</cvar>

<cvar name="WINDOWSPROGMANIFESTSUFFIX">
<summary>
<para>
The suffix used for executable program <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</para>
</summary>
</cvar>

<cvar name="WINDOWSSHLIBMANIFESTPREFIX">
<summary>
<para>
The prefix used for shared library <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</para>
</summary>
</cvar>

<cvar name="WINDOWSSHLIBMANIFESTSUFFIX">
<summary>
<para>
The suffix used for shared library <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</para>
</summary>
</cvar>

</sconsdoc>


text:
package com.hortonworks.hdf.android.sitetosite.service;

import android.app.PendingIntent;
import android.app.job.JobInfo;
import android.app.job.JobScheduler;
import android.content.Context;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.support.test.InstrumentationRegistry;

import com.hortonworks.hdf.android.sitetosite.client.QueuedSiteToSiteClientConfig;
import com.hortonworks.hdf.android.sitetosite.client.SiteToSiteRemoteCluster;
import com.hortonworks.hdf.android.sitetosite.client.peer.Peer;
import com.hortonworks.hdf.android.sitetosite.client.persistence.SiteToSiteDB;
import com.hortonworks.hdf.android.sitetosite.client.persistence.SiteToSiteDBTestUtil;
import com.hortonworks.hdf.android.sitetosite.client.protocol.ResponseCode;
import com.hortonworks.hdf.android.sitetosite.packet.ByteArrayDataPacket;
import com.hortonworks.hdf.android.sitetosite.packet.DataPacket;
import com.hortonworks.hdf.android.sitetosite.util.Charsets;
import com.hortonworks.hdf.android.sitetosite.util.MockNiFiS2SServer;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import static org.junit.Assert.assertEquals;

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public class SiteToSiteJobServiceTest {
    private MockNiFiS2SServer mockNiFiS2SServer;
    private QueuedSiteToSiteClientConfig queuedSiteToSiteClientConfig;
    private Context context;
    private String portIdentifier;
    private String transactionIdentifier;
    private Peer peer;
    private SiteToSiteDB siteToSiteDB;
    private ParcelableQueuedOperationResultCallbackTestImpl parcelableQueuedOperationResultCallback;

    @Before
    public void setup() throws IOException {
        context = InstrumentationRegistry.getContext();
        siteToSiteDB = SiteToSiteDBTestUtil.getCleanSiteToSiteDB(context);

        mockNiFiS2SServer = new MockNiFiS2SServer();
        portIdentifier = "testPortIdentifier";
        transactionIdentifier = "testTransactionId";
        peer = new Peer(mockNiFiS2SServer.getNifiApiUrl(), 0);

        queuedSiteToSiteClientConfig = new QueuedSiteToSiteClientConfig();
        queuedSiteToSiteClientConfig.setPortIdentifier(portIdentifier);
        SiteToSiteRemoteCluster siteToSiteRemoteCluster = new SiteToSiteRemoteCluster();
        siteToSiteRemoteCluster.setUrls(Collections.singleton(mockNiFiS2SServer.getNifiApiUrl()));
        queuedSiteToSiteClientConfig.setRemoteClusters(Collections.singletonList(siteToSiteRemoteCluster));

        parcelableQueuedOperationResultCallback = new ParcelableQueuedOperationResultCallbackTestImpl();
    }

    @Test(timeout = 5000)
    public void testProcessNoPackets() throws PendingIntent.CanceledException, InterruptedException {
        JobInfo.Builder processJobInfoBuilder = SiteToSiteJobService.createProcessJobInfoBuilder(context, 1, queuedSiteToSiteClientConfig, parcelableQueuedOperationResultCallback);
        processJobInfoBuilder.setOverrideDeadline(0);
        JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
        assertEquals(JobScheduler.RESULT_SUCCESS, jobScheduler.schedule(processJobInfoBuilder.build()));
        assertEquals(1, parcelableQueuedOperationResultCallback.getInvocations().size());
        SiteToSiteDBTestUtil.assertNoQueuedPackets(siteToSiteDB);
    }

    @Test(timeout = 5000)
    public void testProcessOnePacket() throws Exception {
        DataPacket dataPacket = new ByteArrayDataPacket(Collections.singletonMap("id", "testId"), "testPayload".getBytes(Charsets.UTF_8));
        queuedSiteToSiteClientConfig.createQueuedClient(context).enqueue(dataPacket);

        mockNiFiS2SServer.enqueueSiteToSitePeers(Collections.singletonList(peer));
        String transactionPath = mockNiFiS2SServer.enqueuCreateTransaction(portIdentifier, transactionIdentifier, 30);
        mockNiFiS2SServer.enqueuDataPackets(transactionPath, Collections.singletonList(dataPacket), queuedSiteToSiteClientConfig);
        mockNiFiS2SServer.enqueueTransactionComplete(transactionPath, 2, ResponseCode.CONFIRM_TRANSACTION, ResponseCode.CONFIRM_TRANSACTION);

        JobInfo.Builder processJobInfoBuilder = SiteToSiteJobService.createProcessJobInfoBuilder(context, 1, queuedSiteToSiteClientConfig, parcelableQueuedOperationResultCallback);
        processJobInfoBuilder.setOverrideDeadline(0);
        JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
        assertEquals(JobScheduler.RESULT_SUCCESS, jobScheduler.schedule(processJobInfoBuilder.build()));
        assertEquals(1, parcelableQueuedOperationResultCallback.getInvocations().size());
        SiteToSiteDBTestUtil.assertNoQueuedPackets(siteToSiteDB);
        mockNiFiS2SServer.verifyAssertions();
    }

    @Test(timeout = 25000)
    public void testProcessAThousandPackets() throws Exception {
        int numPackets = 1000;
        List<DataPacket> dataPackets = new ArrayList<>(numPackets);
        for (int i = 0; i < numPackets; i++) {
            dataPackets.add(new ByteArrayDataPacket(Collections.singletonMap("id", "testId" + i), ("testPayload" + i).getBytes(Charsets.UTF_8)));
        }
        queuedSiteToSiteClientConfig.createQueuedClient(context).enqueue(dataPackets.iterator());
        SiteToSiteDBTestUtil.assertQueuedPacketCount(siteToSiteDB, numPackets);

        Collections.reverse(dataPackets);
        mockNiFiS2SServer.enqueueSiteToSitePeers(Collections.singletonList(peer));

        for (int i = 0; i < numPackets; i+= 100) {
            String transactionPath = mockNiFiS2SServer.enqueuCreateTransaction(portIdentifier, transactionIdentifier, 30);
            mockNiFiS2SServer.enqueuDataPackets(transactionPath, dataPackets.subList(i, i + 100), queuedSiteToSiteClientConfig);
            mockNiFiS2SServer.enqueueTransactionComplete(transactionPath, 2, ResponseCode.CONFIRM_TRANSACTION, ResponseCode.CONFIRM_TRANSACTION);
        }

        JobInfo.Builder processJobInfoBuilder = SiteToSiteJobService.createProcessJobInfoBuilder(context, 3, queuedSiteToSiteClientConfig, parcelableQueuedOperationResultCallback);
        processJobInfoBuilder.setOverrideDeadline(0);
        JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
        assertEquals(JobScheduler.RESULT_SUCCESS, jobScheduler.schedule(processJobInfoBuilder.build()));
        assertEquals(1, parcelableQueuedOperationResultCallback.getInvocations().size());
        SiteToSiteDBTestUtil.assertNoQueuedPackets(siteToSiteDB);
        mockNiFiS2SServer.verifyAssertions();
    }
}


text:
//
//  2_2_DefineVariables.cpp
//  CPP
//
//  Created by akshay raj gollahalli on 2/02/16.
//  Copyright © 2016 akshay raj gollahalli. All rights reserved.
//

#include <cstdio>

int main(int argc, char ** argv) {
	int someNumber = 10;
	/*
	this can also be written as
	int someNumber;
	someNumber = 10;
	 */
	const int constantNumber = 10;
	// constantNumber = 11; // this cannot be changed once initalized.
	printf("some number is %d\n", someNumber);
	printf("constant number is %d\n", constantNumber);
	return 0;
}


text:
use std::collections::hash_set::HashSet;
use std::collections::hash_map::{HashMap, Hasher};
use std::collections::hash_map::Entry::{Occupied, Vacant};
use std::hash::Hash;

pub use self::Freshness::{Fresh, Dirty};

pub struct DependencyQueue<K, V> {
    /// A list of all known keys to build.
    ///
    /// The value of the hash map is list of dependencies which still need to be
    /// built before the package can be built. Note that the set is dynamically
    /// updated as more dependencies are built.
    dep_map: HashMap<K, (HashSet<K>, V)>,

    /// A reverse mapping of a package to all packages that depend on that
    /// package.
    ///
    /// This map is statically known and does not get updated throughout the
    /// lifecycle of the DependencyQueue.
    reverse_dep_map: HashMap<K, HashSet<K>>,

    /// A set of dirty packages.
    ///
    /// Packages may become dirty over time if their dependencies are rebuilt.
    dirty: HashSet<K>,

    /// The packages which are currently being built, waiting for a call to
    /// `finish`.
    pending: HashSet<K>,
}

/// Indication of the freshness of a package.
///
/// A fresh package does not necessarily need to be rebuilt (unless a dependency
/// was also rebuilt), and a dirty package must always be rebuilt.
#[derive(PartialEq, Eq, Show, Copy)]
pub enum Freshness {
    Fresh,
    Dirty,
}

/// A trait for discovering the dependencies of a piece of data.
pub trait Dependency: Hash<Hasher> + Eq + Clone {
    type Context;
    fn dependencies(&self, cx: &Self::Context) -> Vec<Self>;
}

impl Freshness {
    pub fn combine(&self, other: Freshness) -> Freshness {
        match *self { Fresh => other, Dirty => Dirty }
    }
}

impl<K: Dependency, V> DependencyQueue<K, V> {
    /// Creates a new dependency queue with 0 packages.
    pub fn new() -> DependencyQueue<K, V> {
        DependencyQueue {
            dep_map: HashMap::new(),
            reverse_dep_map: HashMap::new(),
            dirty: HashSet::new(),
            pending: HashSet::new(),
        }
    }

    /// Adds a new package to this dependency queue.
    ///
    /// It is assumed that any dependencies of this package will eventually also
    /// be added to the dependency queue.
    pub fn enqueue(&mut self, cx: &K::Context, fresh: Freshness, key: K,
                   value: V) {
        // ignore self-deps
        if self.dep_map.contains_key(&key) { return }

        if fresh == Dirty {
            self.dirty.insert(key.clone());
        }

        let mut my_dependencies = HashSet::new();
        for dep in key.dependencies(cx).into_iter() {
            assert!(my_dependencies.insert(dep.clone()));
            let rev = match self.reverse_dep_map.entry(dep) {
                Occupied(entry) => entry.into_mut(),
                Vacant(entry) => entry.insert(HashSet::new()),
            };
            assert!(rev.insert(key.clone()));
        }
        assert!(self.dep_map.insert(key, (my_dependencies, value)).is_none());
    }

    /// Dequeues a package that is ready to be built.
    ///
    /// A package is ready to be built when it has 0 un-built dependencies. If
    /// `None` is returned then no packages are ready to be built.
    pub fn dequeue(&mut self) -> Option<(Freshness, K, V)> {
        let key = match self.dep_map.iter()
                                    .find(|&(_, &(ref deps, _))| deps.len() == 0)
                                    .map(|(key, _)| key.clone()) {
            Some(key) => key,
            None => return None
        };
        let (_, data) = self.dep_map.remove(&key).unwrap();
        let fresh = if self.dirty.contains(&key) {Dirty} else {Fresh};
        self.pending.insert(key.clone());
        Some((fresh, key, data))
    }

    /// Returns the number of remaining packages to be built.
    pub fn len(&self) -> usize {
        self.dep_map.len() + self.pending.len()
    }

    /// Indicate that a package has been built.
    ///
    /// This function will update the dependency queue with this information,
    /// possibly allowing the next invocation of `dequeue` to return a package.
    pub fn finish(&mut self, key: &K, fresh: Freshness) {
        assert!(self.pending.remove(key));
        let reverse_deps = match self.reverse_dep_map.get(key) {
            Some(deps) => deps,
            None => return,
        };
        for dep in reverse_deps.iter() {
            if fresh == Dirty {
                self.dirty.insert(dep.clone());
            }
            assert!(self.dep_map[*dep].0.remove(key));
        }
    }
}


text:
package nu.validator.htmlparser.gwt;

import com.google.gwt.core.client.JavaScriptObject;

public class ParseEndListener {

    private final JavaScriptObject callback;

    /**
     * @param callback
     */
    public ParseEndListener(JavaScriptObject callback) {
        this.callback = callback;
    }

    public void parseComplete() {
        call(callback);
    }

    private static native void call(JavaScriptObject callback) /*-{
        callback();
    }-*/;

}


text:
/*
 *  This file is part of the Heritrix web crawler (crawler.archive.org).
 *
 *  Licensed to the Internet Archive (IA) by one or more individual
 *  contributors.
 *
 *  The IA licenses this file to You under the Apache License, Version 2.0
 *  (the "License"); you may not use this file except in compliance with
 *  the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.archive.modules.net;

import java.io.Serializable;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.archive.bdb.AutoKryo;
import org.archive.modules.fetcher.FetchStats;
import org.archive.util.IdentityCacheable;
import org.archive.util.InetAddressUtil;
import org.archive.util.ObjectIdentityCache;

/**
 * Represents a single remote "host".
 *
 * An host is a name for which there is a dns record or an IP-address. This
 * might be a machine or a virtual host.
 *
 * @author gojomo
 */
public class CrawlHost implements Serializable, FetchStats.HasFetchStats, IdentityCacheable {

    private static final long serialVersionUID = -5494573967890942895L;

    private static final Logger logger = Logger.getLogger(CrawlHost.class.getName());
    /** Flag value indicating always-valid IP */
    public static final long IP_NEVER_EXPIRES = -1;
    /** Flag value indicating an IP has not yet been looked up */
    public static final long IP_NEVER_LOOKED_UP = -2;
    private String hostname;
    private String countryCode;
    private InetAddress ip;
    private long ipFetched = IP_NEVER_LOOKED_UP;
    protected FetchStats substats = new FetchStats();
    /**
     * TTL gotten from dns record.
     *
     * From rfc2035:
     * <pre>
     * TTL       a 32 bit unsigned integer that specifies the time
     *           interval (in seconds) that the resource record may be
     *           cached before it should be discarded.  Zero values are
     *           interpreted to mean that the RR can only be used for the
     *           transaction in progress, and should not be cached.
     * </pre>
     */
    private long ipTTL = IP_NEVER_LOOKED_UP;

    // Used when bandwith constraint are used
    private long earliestNextURIEmitTime = 0;

    /**
     * Create a new CrawlHost object.
     *
     * @param hostname the host name for this host.
     */
    public CrawlHost(String hostname) {
    		this(hostname, null);
    }

    /**
     * Create a new CrawlHost object.
     *
     * @param hostname the host name for this host.
     * @param countryCode the country code for this host.
     */
    public CrawlHost(String hostname, String countryCode) {
        this.hostname = hostname;
        this.countryCode = countryCode;
        InetAddress tmp = InetAddressUtil.getIPHostAddress(hostname);
        if (tmp != null) {
            setIP(tmp, IP_NEVER_EXPIRES);
        }
    }

    /** Return true if the IP for this host has been looked up.
     *
     * Returns true even if the lookup failed.
     *
     * @return true if the IP for this host has been looked up.
     */
    public boolean hasBeenLookedUp() {
        return ipFetched != IP_NEVER_LOOKED_UP;
    }

    /**
     * Set the IP address for this host.
     *
     * @param address
     * @param ttl the TTL from the dns record in seconds or -1 if it should live
     * forever (is a numeric IP).
     */
    public void setIP(InetAddress address, long ttl) {
        this.ip = address;
        // Assume that a lookup as occurred by the time
        // a caller decides to set this (even to null)
        this.ipFetched = System.currentTimeMillis();
        this.ipTTL = ttl;
        if (logger.isLoggable(Level.FINE)) {
            logger.fine(hostname + ": " +
                ((address != null)? address.toString(): "null"));
        }
    }

    /** Get the IP address for this host.
     *
     * @return the IP address for this host.
     */
    public InetAddress getIP() {
        return ip;
    }

    /** Get the time when the IP address for this host was last looked up.
     *
     * @return the time when the IP address for this host was last looked up.
     */
    public long getIpFetched() {
        return ipFetched;
    }

    /**
     * Get the TTL value from the dns record for this host.
     *
     * @return the TTL value from the dns record for this host -- in seconds --
     * or -1 if this lookup should be valid forever (numeric ip).
     */
    public long getIpTTL() {
        return this.ipTTL;
    }

    public String toString() {
        return "CrawlHost<" + hostname + "(ip:" + ip + ")>";
    }

    @Override
    public int hashCode() {
        return this.hostname != null ? this.hostname.hashCode() : 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final CrawlHost other = (CrawlHost) obj;
        if (this.hostname != other.hostname   // identity compare
                && (this.hostname == null
                    || !this.hostname.equals(other.hostname))) {
            return false;
        }
        return true;
    }

    /**
     * Get the host name.
     * @return Returns the host name.
     */
    public String getHostName() {
        return hostname;
    }

    /**
     * Get the earliest time a URI for this host could be emitted.
     * This only has effect if constraints on bandwidth per host is set.
     *
     * @return Returns the earliestNextURIEmitTime.
     */
    public long getEarliestNextURIEmitTime() {
        return earliestNextURIEmitTime;
    }

    /**
     * Set the earliest time a URI for this host could be emitted.
     * This only has effect if constraints on bandwidth per host is set.
     *
     * @param earliestNextURIEmitTime The earliestNextURIEmitTime to set.
     */
    public void setEarliestNextURIEmitTime(long earliestNextURIEmitTime) {
        this.earliestNextURIEmitTime = earliestNextURIEmitTime;
    }

    /**
     * Get country code of this host
     *
     * @return Retruns country code or null if not availabe
     */
	public String getCountryCode() {
		return countryCode;
	}

	/**
	 * Set country code for this hos
	 *
	 * @param countryCode The country code of this host
	 */
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

    /* (non-Javadoc)
     * @see org.archive.crawler.datamodel.CrawlSubstats.HasCrawlSubstats#getSubstats()
     */
    public FetchStats getSubstats() {
        return substats;
    }

    // Kryo support
//    public CrawlHost() {}
    public static void autoregisterTo(AutoKryo kryo) {
        kryo.register(CrawlHost.class);
        kryo.autoregister(FetchStats.class);
        kryo.autoregister(Inet4Address.class);
        kryo.setRegistrationOptional(true);
    }

    //
    // IdentityCacheable support
    //
    transient private ObjectIdentityCache<?> cache;
    @Override
    public String getKey() {
        return getHostName();
    }

    @Override
    public void makeDirty() {
        cache.dirtyKey(getKey());
    }

    @Override
    public void setIdentityCache(ObjectIdentityCache<?> cache) {
        this.cache = cache;
    }
}


text:
package com.mmnaseri.utils.spring.data.domain;

/**
 * This interface encapsulates the responsibility of matching a given entity to a set of parameters
 * based on the operation defined for that parameter.
 *
 * @author Milad Naseri (m.m.naseri@gmail.com)
 * @since 1.0 (9/17/15)
 */
public interface Matcher {

  /**
   * Determines if the value matches the properties or not, based on the underlying operation.
   *
   * @param parameter the parameter for which the match is happening.
   * @param value the value being matched against.
   * @param properties the properties for the invocation
   * @return {@literal true} if it was a match
   */
  boolean matches(Parameter parameter, Object value, Object... properties);

  boolean isApplicableTo(Class<?> parameterType, Class<?>[] propertiesTypes);
}


text:
from setuptools import setup

setup(
    name='django-pdf-tables',
    version='0.3.0',
    description='A Django app for processing PDF documents with tables',
    long_description=open('README.rst').read(),
    author='Pragmatic Mates',
    author_email='info@pragmaticmates.com',
    maintainer='Pragmatic Mates',
    maintainer_email='info@pragmaticmates.com',
    url='https://github.com/PragmaticMates/django-pdf-tables',
    packages=[
        'pdf_tables',
    ],
    include_package_data=True,
    install_requires=('fpdf', 'django'),
    classifiers=[
        'Programming Language :: Python',
        'Programming Language :: Python :: 2.5',
        'Programming Language :: Python :: 2.6',
        'Programming Language :: Python :: 2.7',
        'Operating System :: OS Independent',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'Framework :: Django',
        'License :: OSI Approved :: BSD License',
        'Development Status :: 3 - Alpha'
    ],
    license='Apache2 License',
    keywords = "django pdf table document export render",
)


text:
using UnityEditor;
using UnityEngine;
using Spine;

namespace Spine.Unity.Editor {

	[CustomEditor(typeof(SkeletonAnimation))]
	[CanEditMultipleObjects]
	public class SkeletonAnimationInspector : SkeletonRendererInspector {
		protected SerializedProperty animationName, loop, timeScale, autoReset;
		protected bool wasAnimationNameChanged;
		protected bool requireRepaint;
		readonly GUIContent LoopLabel = new GUIContent("Loop", "Whether or not .AnimationName should loop. This only applies to the initial animation specified in the inspector, or any subsequent Animations played through .AnimationName. Animations set through state.SetAnimation are unaffected.");
		readonly GUIContent TimeScaleLabel = new GUIContent("Time Scale", "The rate at which animations progress over time. 1 means normal speed. 0.5 means 50% speed.");

		protected override void OnEnable () {
			base.OnEnable();
			animationName = serializedObject.FindProperty("_animationName");
			loop = serializedObject.FindProperty("loop");
			timeScale = serializedObject.FindProperty("timeScale");
		}

		protected override void DrawInspectorGUI (bool multi) {
			base.DrawInspectorGUI(multi);
			if (!TargetIsValid) return;
			bool sameData = SpineInspectorUtility.TargetsUseSameData(serializedObject);

			if (multi) {
				foreach (var o in targets)
					TrySetAnimation(o, multi);

				EditorGUILayout.Space();
				if (!sameData) {
					#if UNITY_5_3_OR_NEWER
					EditorGUILayout.DelayedTextField(animationName);
					#else
					animationName.stringValue = EditorGUILayout.TextField(animationName.displayName, animationName.stringValue);
					#endif
				} else {
					EditorGUI.BeginChangeCheck();
					EditorGUILayout.PropertyField(animationName);
					wasAnimationNameChanged |= EditorGUI.EndChangeCheck(); // Value used in the next update.
				}
				EditorGUILayout.PropertyField(loop);
				EditorGUILayout.PropertyField(timeScale);
				foreach (var o in targets) {
					var component = o as SkeletonAnimation;
					component.timeScale = Mathf.Max(component.timeScale, 0);
				}
			} else {
				TrySetAnimation(target, multi);

				EditorGUILayout.Space();
				EditorGUI.BeginChangeCheck();
				EditorGUILayout.PropertyField(animationName);
				wasAnimationNameChanged |= EditorGUI.EndChangeCheck(); // Value used in the next update.
				EditorGUILayout.PropertyField(loop, LoopLabel);
				EditorGUILayout.PropertyField(timeScale, TimeScaleLabel);
				var component = (SkeletonAnimation)target;
				component.timeScale = Mathf.Max(component.timeScale, 0);
				EditorGUILayout.Space();
			}

			if (!isInspectingPrefab) {
				if (requireRepaint) {
					SceneView.RepaintAll();
					requireRepaint = false;
				}
			}
		}

		protected void TrySetAnimation (Object o, bool multi) {
			var skeletonAnimation = o as SkeletonAnimation;
			if (skeletonAnimation == null) return;
			if (!skeletonAnimation.valid)
				return;

			if (!isInspectingPrefab) {
				if (wasAnimationNameChanged) {
					if (!Application.isPlaying) {
						if (skeletonAnimation.state != null) skeletonAnimation.state.ClearTrack(0);
						skeletonAnimation.skeleton.SetToSetupPose();
					}

					Spine.Animation animationToUse = skeletonAnimation.skeleton.Data.FindAnimation(animationName.stringValue);

					if (!Application.isPlaying) {
						if (animationToUse != null) animationToUse.PoseSkeleton(skeletonAnimation.Skeleton, 0f);
						skeletonAnimation.Update(0);
						skeletonAnimation.LateUpdate();
						requireRepaint = true;
					} else {
						if (animationToUse != null)
							skeletonAnimation.state.SetAnimation(0, animationToUse, loop.boolValue);
						else
							skeletonAnimation.state.ClearTrack(0);
					}

					wasAnimationNameChanged = false;
				}

				// Reflect animationName serialized property in the inspector even if SetAnimation API was used.
				if (!multi && Application.isPlaying) {
					TrackEntry current = skeletonAnimation.state.GetCurrent(0);
					if (current != null) {
						if (skeletonAnimation.AnimationName != animationName.stringValue)
							animationName.stringValue = current.Animation.Name;
					}
				}
			}
		}
	}
}


text:
package com.continuuity.test;

import org.junit.BeforeClass;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

import java.util.ArrayList;

import static com.continuuity.test.drivers.Global.driverWait;
import static com.continuuity.test.drivers.Global.getDriver;
import static com.continuuity.test.drivers.Global.globalDriver;

/** Generic Test is parent object for all tests classes
 * Created for common helpers methods
 *
 */
public class GenericTest {

  @BeforeClass
  public static void setUp() throws Exception {
    getDriver();
    globalDriver.get(Constants.LOGIN_URL);
    driverWait(1);
    globalDriver.findElement(By.cssSelector("#username")).sendKeys("admin");
    globalDriver.findElement(By.cssSelector("#password")).sendKeys("admin");
    globalDriver.findElement(By.cssSelector("#create-provider-form")).submit();
  }

  public String switchToNewTab(WebElement elemForClick, String url) {
    String oldTab = globalDriver.getWindowHandle();
    elemForClick.click();
    driverWait(5);
    ArrayList<String> newTab = new ArrayList<String>(globalDriver.getWindowHandles());
    newTab.remove(oldTab);
    // change focus to new tab
    globalDriver.switchTo().window(newTab.get(0));
    String newUrl = globalDriver.getCurrentUrl();
    globalDriver.close();
    // change focus back to old tab
    globalDriver.switchTo().window(oldTab);

    return newUrl;
  }
  public static void closeDriver() {
    globalDriver.close();
    globalDriver.quit();
    globalDriver = null;
  }

}


text:
namespace leveldb {

class Block;
class BlockHandle;
class Footer;
struct Options;
class RandomAccessFile;
struct ReadOptions;
class TableCache;

// A Table is a sorted map from strings to strings.  Tables are
// immutable and persistent.  A Table may be safely accessed from
// multiple threads without external synchronization.
class Table {
 public:
  // Attempt to open the table that is stored in bytes [0..file_size)
  // of "file", and read the metadata entries necessary to allow
  // retrieving data from the table.
  //
  // If successful, returns ok and sets "*table" to the newly opened
  // table.  The client should delete "*table" when no longer needed.
  // If there was an error while initializing the table, sets "*table"
  // to NULL and returns a non-ok status.  Does not take ownership of
  // "*source", but the client must ensure that "source" remains live
  // for the duration of the returned table's lifetime.
  //
  // *file must remain live while this Table is in use.
  static Status Open(const Options& options,
                     RandomAccessFile* file,
                     uint64_t file_size,
                     Table** table);

  ~Table();

  // Returns a new iterator over the table contents.
  // The result of NewIterator() is initially invalid (caller must
  // call one of the Seek methods on the iterator before using it).
  Iterator* NewIterator(const ReadOptions&) const;

  // Given a key, return an approximate byte offset in the file where
  // the data for that key begins (or would begin if the key were
  // present in the file).  The returned value is in terms of file
  // bytes, and so includes effects like compression of the underlying data.
  // E.g., the approximate offset of the last key in the table will
  // be close to the file length.
  uint64_t ApproximateOffsetOf(const Slice& key) const;

 private:
  struct Rep;
  Rep* rep_;

  explicit Table(Rep* rep) { rep_ = rep; }
  static Iterator* BlockReader(void*, const ReadOptions&, const Slice&);

  // Calls (*handle_result)(arg, ...) with the entry found after a call
  // to Seek(key).  May not make such a call if filter policy says
  // that key is not present.
  friend class TableCache;
  Status InternalGet(
      const ReadOptions&, const Slice& key,
      void* arg,
      void (*handle_result)(void* arg, const Slice& k, const Slice& v));

  void ReadMeta(const Footer& footer);
  void ReadFilter(const Slice& filter_handle_value);

  // No copying allowed
  Table(const Table&);
  void operator=(const Table&);
};

}  // namespace leveldb

#endif  // STORAGE_LEVELDB_INCLUDE_TABLE_H_


text:
using System;
using System.ComponentModel;
//using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CommonSenseSoft.Log {
	/// <summary>
	/// Renders a drop-down of Log Levels
	/// </summary>
	[ToolboxData("<{0}:ComboBox_LogLevel runat=server></{0}:ComboBox_LogLevel>")]
	public class ComboBox_LogLevel:DropDownList {
	    public event EventHandler TextChanged;
        #region Properties
        //This value is assigned before the items are created, therefore we either override it or no item will be selected
        LogLevels _SelectedValue;
		bool _IgnoreValueFromRequest;
        public LogLevels SelectedValue{
		    set{
				if(value==null)_SelectedValue=value;
				else _SelectedValue=value;
			}
			get{
				ResolveValue();
				return _SelectedValue;
			}
        }
 		/// <summary>
		/// When used in grid, the grid fails to propagate the UnregisterRequiresControlState further to this control,
		/// and has other vierd things happening. Use this property to tell when the value of this control should not be taken from Request
		/// Use OnRowDataBound event of the grid to set this property to true if required
		/// </summary>
		public bool IgnoreValueFromRequest{
			set{_IgnoreValueFromRequest=value;}
			get{return _IgnoreValueFromRequest;}
		}
       #endregion

		protected override void OnPreRender(EventArgs e){//The last event you can do anything
			this.Items.Add(new ListItem("None","-1"));
			this.Items.Add(new ListItem("Fatal","0"));
			this.Items.Add(new ListItem("Exceptions","1"));
			this.Items.Add(new ListItem("Warnings","2"));
			this.Items.Add(new ListItem("Information","4"));
			this.Items.Add(new ListItem("Functions Calls","6"));
			this.Items.Add(new ListItem("Parameters values","7"));
			this.Items.Add(new ListItem("Debug","9"));
			ResolveValue();
       }

		#region IPostBackDataHandler Members

		#region LoadPostData - that what we get in Request
		//DOES NOT WORK IN GRID. RATHER THAN RELYING ON THIS EVENT WE GET THE VALUE WHENEVER IT IS REQUIRED USING ResolveValue()
		//[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
		//public bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)	{
		//    _SelectedValue=Context.Request[postDataKey];
		//    return true;
		//}
		#endregion

		#region RaisePostDataChangedEvent
		[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
		public void RaisePostDataChangedEvent()	{
			if (TextChanged != null){
				TextChanged (this, new EventArgs ()); // Fire the event
			}
		}
		#endregion
		#endregion

		#region private methods
		void ResolveValue(){
			//that ensures that the control maintains its value between posts unless assigned to
			if(Context.Request[this.UniqueID]==null || _IgnoreValueFromRequest){
				//Leave it as it is_SelectedValue=LogLevels.Fatal;
			}
			else{
				if(Context.Request[this.UniqueID]!=null){
					_SelectedValue=(LogLevels)int.Parse(Context.Request[this.UniqueID].ToString().Trim());
				}
			}
			base.SelectedValue=((int)_SelectedValue).ToString();
		}
		#endregion
	}
}


text:
package org.apache.hadoop.hive.ql.udf.generic;

import org.apache.hadoop.hive.common.type.Date;
import org.apache.hadoop.hive.common.type.HiveChar;
import org.apache.hadoop.hive.common.type.HiveVarchar;
import org.apache.hadoop.hive.ql.exec.UDFArgumentException;
import org.apache.hadoop.hive.ql.metadata.HiveException;
import org.apache.hadoop.hive.ql.udf.generic.GenericUDF.DeferredObject;
import org.apache.hadoop.hive.serde2.io.ByteWritable;
import org.apache.hadoop.hive.serde2.io.DateWritableV2;
import org.apache.hadoop.hive.serde2.io.HiveCharWritable;
import org.apache.hadoop.hive.serde2.io.HiveVarcharWritable;
import org.apache.hadoop.hive.serde2.io.ShortWritable;
import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.ByteObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.DateObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveCharObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveVarcharObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.IntObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.LongObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorFactory;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.ShortObjectInspector;
import org.apache.hadoop.hive.serde2.objectinspector.primitive.StringObjectInspector;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class BaseMaskUDF extends GenericUDF {
  private static final Logger LOG = LoggerFactory.getLogger(BaseMaskUDF.class);

  final protected AbstractTransformer  transformer;
  final protected String               displayName;
  protected AbstractTransformerAdapter transformerAdapter = null;

  protected BaseMaskUDF(AbstractTransformer transformer, String displayName) {
    this.transformer = transformer;
    this.displayName = displayName;
  }

  public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException {
    LOG.debug("==> BaseMaskUDF.initialize()");

    checkArgPrimitive(arguments, 0); // first argument is the column to be transformed

    PrimitiveObjectInspector columnType = ((PrimitiveObjectInspector) arguments[0]);

    transformer.init(arguments, 1);

    transformerAdapter = AbstractTransformerAdapter.getTransformerAdapter(columnType, transformer);

    ObjectInspector ret = PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(columnType.getPrimitiveCategory());

    LOG.debug("<== BaseMaskUDF.initialize()");

    return ret;
  }

  @Override
  public Object evaluate(DeferredObject[] arguments) throws HiveException {
    Object ret = transformerAdapter.getTransformedWritable(arguments[0]);

    return ret;
  }

  @Override
  public String getDisplayString(String[] children) {
    return getStandardDisplayString(displayName, children);
  }
}

/**
 * Interface to be implemented by transformers which transform a given value according to its specification.
 */
abstract class AbstractTransformer {
  /**
   * Initialzie the transformer object
   * @param arguments arguments given to GenericUDF.initialzie()
   * @param startIdx index into array, from which the transformer should read values
   */
  abstract void init(ObjectInspector[] arguments, int startIdx);

  /**
   * Transform a String value
   * @param value value to transform
   * @return transformed value
   */
  abstract String transform(String value);

  /**
   * Transform a Byte value
   * @param value value to transform
   * @return transformed value
   */
  abstract Byte transform(Byte value);

  /**
   * Transform a Short value
   * @param value value to transform
   * @return transformed value
   */
  abstract Short transform(Short value);

  /**
   * Transform a Integer value
   * @param value value to transform
   * @return transformed value
   */
  abstract Integer transform(Integer value);

  /**
   * Transform a Long value
   * @param value value to transform
   * @return transformed value
   */
  abstract Long transform(Long value);

  /**
   * Transform a Date value
   * @param value value to transform
   * @return transformed value
   */
  abstract Date transform(Date value);
}

/**
 * Interface to be implemented by datatype specific adapters that handle necessary conversion of the transformed value
 * into appropriate Writable object, which GenericUDF.evaluate() is expected to return.
 */
abstract class AbstractTransformerAdapter {
  final AbstractTransformer transformer;

  AbstractTransformerAdapter(AbstractTransformer transformer) {
    this.transformer = transformer;
  }

  abstract Object getTransformedWritable(DeferredObject value) throws HiveException;

  static AbstractTransformerAdapter getTransformerAdapter(PrimitiveObjectInspector columnType, AbstractTransformer transformer) {
    final AbstractTransformerAdapter ret;

    switch(columnType.getPrimitiveCategory()) {
      case STRING:
        ret = new StringTransformerAdapter((StringObjectInspector)columnType, transformer);
        break;

      case CHAR:
        ret = new HiveCharTransformerAdapter((HiveCharObjectInspector)columnType, transformer);
        break;

      case VARCHAR:
        ret = new HiveVarcharTransformerAdapter((HiveVarcharObjectInspector)columnType, transformer);
        break;

      case BYTE:
        ret = new ByteTransformerAdapter((ByteObjectInspector)columnType, transformer);
        break;

      case SHORT:
        ret = new ShortTransformerAdapter((ShortObjectInspector)columnType, transformer);
        break;

      case INT:
        ret = new IntegerTransformerAdapter((IntObjectInspector)columnType, transformer);
        break;

      case LONG:
        ret = new LongTransformerAdapter((LongObjectInspector)columnType, transformer);
        break;

      case DATE:
        ret = new DateTransformerAdapter((DateObjectInspector)columnType, transformer);
        break;

      default:
        ret = new UnsupportedDatatypeTransformAdapter(columnType, transformer);
        break;
    }

    return ret;
  }
}

class ByteTransformerAdapter extends AbstractTransformerAdapter {
  final ByteObjectInspector columnType;
  final ByteWritable        writable;

  public ByteTransformerAdapter(ByteObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new ByteWritable());
  }

  public ByteTransformerAdapter(ByteObjectInspector columnType, AbstractTransformer transformer, ByteWritable writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    Byte value = (Byte)columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      Byte transformedValue = transformer.transform(value);

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class DateTransformerAdapter extends AbstractTransformerAdapter {
  final DateObjectInspector columnType;
  final DateWritableV2 writable;

  public DateTransformerAdapter(DateObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new DateWritableV2());
  }

  public DateTransformerAdapter(DateObjectInspector columnType, AbstractTransformer transformer, DateWritableV2 writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    Date value = columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      Date transformedValue = transformer.transform(value);

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class HiveCharTransformerAdapter extends AbstractTransformerAdapter {
  final HiveCharObjectInspector columnType;
  final HiveCharWritable        writable;

  public HiveCharTransformerAdapter(HiveCharObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new HiveCharWritable());
  }

  public HiveCharTransformerAdapter(HiveCharObjectInspector columnType, AbstractTransformer transformer, HiveCharWritable writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    HiveChar value = columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      String transformedValue = transformer.transform(value.getValue());

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class HiveVarcharTransformerAdapter extends AbstractTransformerAdapter {
  final HiveVarcharObjectInspector columnType;
  final HiveVarcharWritable        writable;

  public HiveVarcharTransformerAdapter(HiveVarcharObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new HiveVarcharWritable());
  }

  public HiveVarcharTransformerAdapter(HiveVarcharObjectInspector columnType, AbstractTransformer transformer, HiveVarcharWritable writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    HiveVarchar value = columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      String transformedValue = transformer.transform(value.getValue());

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class IntegerTransformerAdapter extends AbstractTransformerAdapter {
  final IntObjectInspector columnType;
  final IntWritable        writable;

  public IntegerTransformerAdapter(IntObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new IntWritable());
  }

  public IntegerTransformerAdapter(IntObjectInspector columnType, AbstractTransformer transformer, IntWritable writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    Integer value = (Integer)columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      Integer transformedValue = transformer.transform(value);

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class LongTransformerAdapter extends AbstractTransformerAdapter {
  final LongObjectInspector columnType;
  final LongWritable        writable;

  public LongTransformerAdapter(LongObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new LongWritable());
  }

  public LongTransformerAdapter(LongObjectInspector columnType, AbstractTransformer transformer, LongWritable writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    Long value = (Long)columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      Long transformedValue = transformer.transform(value);

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class ShortTransformerAdapter extends AbstractTransformerAdapter {
  final ShortObjectInspector columnType;
  final ShortWritable        writable;

  public ShortTransformerAdapter(ShortObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new ShortWritable());
  }

  public ShortTransformerAdapter(ShortObjectInspector columnType, AbstractTransformer transformer, ShortWritable writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    Short value = (Short)columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      Short transformedValue = transformer.transform(value);

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class StringTransformerAdapter extends AbstractTransformerAdapter {
  final StringObjectInspector columnType;
  final Text                  writable;

  public StringTransformerAdapter(StringObjectInspector columnType, AbstractTransformer transformer) {
    this(columnType, transformer, new Text());
  }

  public StringTransformerAdapter(StringObjectInspector columnType, AbstractTransformer transformer, Text writable) {
    super(transformer);

    this.columnType = columnType;
    this.writable   = writable;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    String value = columnType.getPrimitiveJavaObject(object.get());

    if(value != null) {
      String transformedValue = transformer.transform(value);

      if(transformedValue != null) {
        writable.set(transformedValue);

        return writable;
      }
    }

    return null;
  }
}

class UnsupportedDatatypeTransformAdapter extends AbstractTransformerAdapter {
  final PrimitiveObjectInspector columnType;

  public UnsupportedDatatypeTransformAdapter(PrimitiveObjectInspector columnType, AbstractTransformer transformer) {
    super(transformer);

    this.columnType = columnType;
  }

  @Override
  public Object getTransformedWritable(DeferredObject object) throws HiveException {
    return null;
  }
}


text:
package parser

import (
	"github.com/yyyar/yamp-go/utils"
	"io"
)

const SYSTEM_HANDSHAKE FrameType = 0x00

//
// SystemHandshake frame
//
type SystemHandshake struct {
	Version uint16
}

func (this *SystemHandshake) GetType() FrameType {
	return SYSTEM_HANDSHAKE
}

func (this *SystemHandshake) Parse(buffer io.Reader) error {

	// Version
	if err := utils.Parse(buffer, &this.Version); err != nil {
		return err
	}

	return nil
}

func (this *SystemHandshake) Serialize(writer io.Writer) error {

	utils.Serialize(writer, this.GetType())

	utils.Serialize(writer, this.Version)

	return nil
}


text:
function attachEvents() {
    $('#items li').on('click', select);

    function select() {
        if($(this).attr('data-selected')){
            $(this).removeAttr('data-selected');
            $(this).css('background', "");
        } else {
            $(this).attr("data-selected", true);
            $(this).css('background',"#DDD");
        }
    }

    $('#showTownsButton').on('click', function () {
        $('#selectedTowns').text($('#items li[data-selected]').toArray().map(li => li.textContent).join(', '));
    })
}


text:
package azure

import (
	"context"
	"fmt"

	"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network"
	"github.com/Azure/go-autorest/autorest"
)

// SubnetsClient is a client for managing Subnets.
type SubnetsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName, virtualNetworkName, subnetName string, parameters network.Subnet) error
	List(ctx context.Context, resourceGroupName, virtualNetworkName string) ([]network.Subnet, error)
	Delete(ctx context.Context, resourceGroupName, vnetName, subnetName string) error
}

type subnetsClientImpl struct {
	c *network.SubnetsClient
}

var _ SubnetsClient = &subnetsClientImpl{}

func (c *subnetsClientImpl) CreateOrUpdate(ctx context.Context, resourceGroupName, virtualNetworkName, subnetName string, parameters network.Subnet) error {
	_, err := c.c.CreateOrUpdate(ctx, resourceGroupName, virtualNetworkName, subnetName, parameters)
	return err
}

func (c *subnetsClientImpl) List(ctx context.Context, resourceGroupName, virtualNetworkName string) ([]network.Subnet, error) {
	var l []network.Subnet
	for iter, err := c.c.ListComplete(ctx, resourceGroupName, virtualNetworkName); iter.NotDone(); err = iter.Next() {
		if err != nil {
			return nil, err
		}
		l = append(l, iter.Value())
	}
	return l, nil
}

func (c *subnetsClientImpl) Delete(ctx context.Context, resourceGroupName, vnetName, subnetName string) error {
	future, err := c.c.Delete(ctx, resourceGroupName, vnetName, subnetName)
	if err != nil {
		return fmt.Errorf("error deleting subnet: %s", err)
	}
	if err := future.WaitForCompletionRef(ctx, c.c.Client); err != nil {
		return fmt.Errorf("error waiting for subnet deletion completion: %s", err)
	}
	return nil
}

func newSubnetsClientImpl(subscriptionID string, authorizer autorest.Authorizer) *subnetsClientImpl {
	c := network.NewSubnetsClient(subscriptionID)
	c.Authorizer = authorizer
	return &subnetsClientImpl{
		c: &c,
	}
}