text:
package com.google.ads.googleads.v12.enums;

public interface CriterionTypeEnumOrBuilder extends
    // @@protoc_insertion_point(interface_extends:google.ads.googleads.v12.enums.CriterionTypeEnum)
    com.google.protobuf.MessageOrBuilder {
}


text:
// 'path' module extracted from Node.js v8.11.1 (only the posix part)
// transplited with Babel

// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';

function assertPath(path) {
  if (typeof path !== 'string') {
    throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));
  }
}

// Resolves . and .. elements in a path with directory names
function normalizeStringPosix(path, allowAboveRoot) {
  var res = '';
  var lastSegmentLength = 0;
  var lastSlash = -1;
  var dots = 0;
  var code;
  for (var i = 0; i <= path.length; ++i) {
    if (i < path.length)
      code = path.charCodeAt(i);
    else if (code === 47 /*/*/)
      break;
    else
      code = 47 /*/*/;
    if (code === 47 /*/*/) {
      if (lastSlash === i - 1 || dots === 1) {
        // NOOP
      } else if (lastSlash !== i - 1 && dots === 2) {
        if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {
          if (res.length > 2) {
            var lastSlashIndex = res.lastIndexOf('/');
            if (lastSlashIndex !== res.length - 1) {
              if (lastSlashIndex === -1) {
                res = '';
                lastSegmentLength = 0;
              } else {
                res = res.slice(0, lastSlashIndex);
                lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
              }
              lastSlash = i;
              dots = 0;
              continue;
            }
          } else if (res.length === 2 || res.length === 1) {
            res = '';
            lastSegmentLength = 0;
            lastSlash = i;
            dots = 0;
            continue;
          }
        }
        if (allowAboveRoot) {
          if (res.length > 0)
            res += '/..';
          else
            res = '..';
          lastSegmentLength = 2;
        }
      } else {
        if (res.length > 0)
          res += '/' + path.slice(lastSlash + 1, i);
        else
          res = path.slice(lastSlash + 1, i);
        lastSegmentLength = i - lastSlash - 1;
      }
      lastSlash = i;
      dots = 0;
    } else if (code === 46 /*.*/ && dots !== -1) {
      ++dots;
    } else {
      dots = -1;
    }
  }
  return res;
}

function _format(sep, pathObject) {
  var dir = pathObject.dir || pathObject.root;
  var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');
  if (!dir) {
    return base;
  }
  if (dir === pathObject.root) {
    return dir + base;
  }
  return dir + sep + base;
}

var posix = {
  // path.resolve([from ...], to)
  resolve: function resolve() {
    var resolvedPath = '';
    var resolvedAbsolute = false;
    var cwd;

    for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
      var path;
      if (i >= 0)
        path = arguments[i];
      else {
        if (cwd === undefined)
          cwd = process.cwd();
        path = cwd;
      }

      assertPath(path);

      // Skip empty entries
      if (path.length === 0) {
        continue;
      }

      resolvedPath = path + '/' + resolvedPath;
      resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;
    }

    // At this point the path should be resolved to a full absolute path, but
    // handle relative paths to be safe (might happen when process.cwd() fails)

    // Normalize the path
    resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);

    if (resolvedAbsolute) {
      if (resolvedPath.length > 0)
        return '/' + resolvedPath;
      else
        return '/';
    } else if (resolvedPath.length > 0) {
      return resolvedPath;
    } else {
      return '.';
    }
  },

  normalize: function normalize(path) {
    assertPath(path);

    if (path.length === 0) return '.';

    var isAbsolute = path.charCodeAt(0) === 47 /*/*/;
    var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;

    // Normalize the path
    path = normalizeStringPosix(path, !isAbsolute);

    if (path.length === 0 && !isAbsolute) path = '.';
    if (path.length > 0 && trailingSeparator) path += '/';

    if (isAbsolute) return '/' + path;
    return path;
  },

  isAbsolute: function isAbsolute(path) {
    assertPath(path);
    return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;
  },

  join: function join() {
    if (arguments.length === 0)
      return '.';
    var joined;
    for (var i = 0; i < arguments.length; ++i) {
      var arg = arguments[i];
      assertPath(arg);
      if (arg.length > 0) {
        if (joined === undefined)
          joined = arg;
        else
          joined += '/' + arg;
      }
    }
    if (joined === undefined)
      return '.';
    return posix.normalize(joined);
  },

  relative: function relative(from, to) {
    assertPath(from);
    assertPath(to);

    if (from === to) return '';

    from = posix.resolve(from);
    to = posix.resolve(to);

    if (from === to) return '';

    // Trim any leading backslashes
    var fromStart = 1;
    for (; fromStart < from.length; ++fromStart) {
      if (from.charCodeAt(fromStart) !== 47 /*/*/)
        break;
    }
    var fromEnd = from.length;
    var fromLen = fromEnd - fromStart;

    // Trim any leading backslashes
    var toStart = 1;
    for (; toStart < to.length; ++toStart) {
      if (to.charCodeAt(toStart) !== 47 /*/*/)
        break;
    }
    var toEnd = to.length;
    var toLen = toEnd - toStart;

    // Compare paths to find the longest common path from root
    var length = fromLen < toLen ? fromLen : toLen;
    var lastCommonSep = -1;
    var i = 0;
    for (; i <= length; ++i) {
      if (i === length) {
        if (toLen > length) {
          if (to.charCodeAt(toStart + i) === 47 /*/*/) {
            // We get here if `from` is the exact base path for `to`.
            // For example: from='/foo/bar'; to='/foo/bar/baz'
            return to.slice(toStart + i + 1);
          } else if (i === 0) {
            // We get here if `from` is the root
            // For example: from='/'; to='/foo'
            return to.slice(toStart + i);
          }
        } else if (fromLen > length) {
          if (from.charCodeAt(fromStart + i) === 47 /*/*/) {
            // We get here if `to` is the exact base path for `from`.
            // For example: from='/foo/bar/baz'; to='/foo/bar'
            lastCommonSep = i;
          } else if (i === 0) {
            // We get here if `to` is the root.
            // For example: from='/foo'; to='/'
            lastCommonSep = 0;
          }
        }
        break;
      }
      var fromCode = from.charCodeAt(fromStart + i);
      var toCode = to.charCodeAt(toStart + i);
      if (fromCode !== toCode)
        break;
      else if (fromCode === 47 /*/*/)
        lastCommonSep = i;
    }

    var out = '';
    // Generate the relative path based on the path difference between `to`
    // and `from`
    for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
      if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {
        if (out.length === 0)
          out += '..';
        else
          out += '/..';
      }
    }

    // Lastly, append the rest of the destination (`to`) path that comes after
    // the common path parts
    if (out.length > 0)
      return out + to.slice(toStart + lastCommonSep);
    else {
      toStart += lastCommonSep;
      if (to.charCodeAt(toStart) === 47 /*/*/)
        ++toStart;
      return to.slice(toStart);
    }
  },

  _makeLong: function _makeLong(path) {
    return path;
  },

  dirname: function dirname(path) {
    assertPath(path);
    if (path.length === 0) return '.';
    var code = path.charCodeAt(0);
    var hasRoot = code === 47 /*/*/;
    var end = -1;
    var matchedSlash = true;
    for (var i = path.length - 1; i >= 1; --i) {
      code = path.charCodeAt(i);
      if (code === 47 /*/*/) {
          if (!matchedSlash) {
            end = i;
            break;
          }
        } else {
        // We saw the first non-path separator
        matchedSlash = false;
      }
    }

    if (end === -1) return hasRoot ? '/' : '.';
    if (hasRoot && end === 1) return '//';
    return path.slice(0, end);
  },

  basename: function basename(path, ext) {
    if (ext !== undefined && typeof ext !== 'string') throw new TypeError('"ext" argument must be a string');
    assertPath(path);

    var start = 0;
    var end = -1;
    var matchedSlash = true;
    var i;

    if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
      if (ext.length === path.length && ext === path) return '';
      var extIdx = ext.length - 1;
      var firstNonSlashEnd = -1;
      for (i = path.length - 1; i >= 0; --i) {
        var code = path.charCodeAt(i);
        if (code === 47 /*/*/) {
            // If we reached a path separator that was not part of a set of path
            // separators at the end of the string, stop now
            if (!matchedSlash) {
              start = i + 1;
              break;
            }
          } else {
          if (firstNonSlashEnd === -1) {
            // We saw the first non-path separator, remember this index in case
            // we need it if the extension ends up not matching
            matchedSlash = false;
            firstNonSlashEnd = i + 1;
          }
          if (extIdx >= 0) {
            // Try to match the explicit extension
            if (code === ext.charCodeAt(extIdx)) {
              if (--extIdx === -1) {
                // We matched the extension, so mark this as the end of our path
                // component
                end = i;
              }
            } else {
              // Extension does not match, so our result is the entire path
              // component
              extIdx = -1;
              end = firstNonSlashEnd;
            }
          }
        }
      }

      if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;
      return path.slice(start, end);
    } else {
      for (i = path.length - 1; i >= 0; --i) {
        if (path.charCodeAt(i) === 47 /*/*/) {
            // If we reached a path separator that was not part of a set of path
            // separators at the end of the string, stop now
            if (!matchedSlash) {
              start = i + 1;
              break;
            }
          } else if (end === -1) {
          // We saw the first non-path separator, mark this as the end of our
          // path component
          matchedSlash = false;
          end = i + 1;
        }
      }

      if (end === -1) return '';
      return path.slice(start, end);
    }
  },

  extname: function extname(path) {
    assertPath(path);
    var startDot = -1;
    var startPart = 0;
    var end = -1;
    var matchedSlash = true;
    // Track the state of characters (if any) we see before our first dot and
    // after any path separator we find
    var preDotState = 0;
    for (var i = path.length - 1; i >= 0; --i) {
      var code = path.charCodeAt(i);
      if (code === 47 /*/*/) {
          // If we reached a path separator that was not part of a set of path
          // separators at the end of the string, stop now
          if (!matchedSlash) {
            startPart = i + 1;
            break;
          }
          continue;
        }
      if (end === -1) {
        // We saw the first non-path separator, mark this as the end of our
        // extension
        matchedSlash = false;
        end = i + 1;
      }
      if (code === 46 /*.*/) {
          // If this is our first dot, mark it as the start of our extension
          if (startDot === -1)
            startDot = i;
          else if (preDotState !== 1)
            preDotState = 1;
      } else if (startDot !== -1) {
        // We saw a non-dot and non-path separator before our dot, so we should
        // have a good chance at having a non-empty extension
        preDotState = -1;
      }
    }

    if (startDot === -1 || end === -1 ||
        // We saw a non-dot character immediately before the dot
        preDotState === 0 ||
        // The (right-most) trimmed path component is exactly '..'
        preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
      return '';
    }
    return path.slice(startDot, end);
  },

  format: function format(pathObject) {
    if (pathObject === null || typeof pathObject !== 'object') {
      throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
    }
    return _format('/', pathObject);
  },

  parse: function parse(path) {
    assertPath(path);

    var ret = { root: '', dir: '', base: '', ext: '', name: '' };
    if (path.length === 0) return ret;
    var code = path.charCodeAt(0);
    var isAbsolute = code === 47 /*/*/;
    var start;
    if (isAbsolute) {
      ret.root = '/';
      start = 1;
    } else {
      start = 0;
    }
    var startDot = -1;
    var startPart = 0;
    var end = -1;
    var matchedSlash = true;
    var i = path.length - 1;

    // Track the state of characters (if any) we see before our first dot and
    // after any path separator we find
    var preDotState = 0;

    // Get non-dir info
    for (; i >= start; --i) {
      code = path.charCodeAt(i);
      if (code === 47 /*/*/) {
          // If we reached a path separator that was not part of a set of path
          // separators at the end of the string, stop now
          if (!matchedSlash) {
            startPart = i + 1;
            break;
          }
          continue;
        }
      if (end === -1) {
        // We saw the first non-path separator, mark this as the end of our
        // extension
        matchedSlash = false;
        end = i + 1;
      }
      if (code === 46 /*.*/) {
          // If this is our first dot, mark it as the start of our extension
          if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;
        } else if (startDot !== -1) {
        // We saw a non-dot and non-path separator before our dot, so we should
        // have a good chance at having a non-empty extension
        preDotState = -1;
      }
    }

    if (startDot === -1 || end === -1 ||
    // We saw a non-dot character immediately before the dot
    preDotState === 0 ||
    // The (right-most) trimmed path component is exactly '..'
    preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
      if (end !== -1) {
        if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);
      }
    } else {
      if (startPart === 0 && isAbsolute) {
        ret.name = path.slice(1, startDot);
        ret.base = path.slice(1, end);
      } else {
        ret.name = path.slice(startPart, startDot);
        ret.base = path.slice(startPart, end);
      }
      ret.ext = path.slice(startDot, end);
    }

    if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';

    return ret;
  },

  sep: '/',
  delimiter: ':',
  win32: null,
  posix: null
};

posix.posix = posix;

module.exports = posix;

redpajama_set_name: RedPajamaGithub


text:
north_america = Spree::Zone.find_by_name!("North America")
clothing = Spree::TaxCategory.find_by_name!("Clothing")
tax_rate = Spree::TaxRate.create({
  :name => "North America",
  :zone => north_america,
  :amount => 0.05,
  :tax_category => clothing},
  :without_protection => true)
tax_rate.calculator = Spree::Calculator::DefaultTax.create!
tax_rate.save!


text:
export const isDrinkInFav = (drink) => {
  let favdrinks = JSON.parse(localStorage.getItem('favorite_drinks'))
  let adding = true
  if (favdrinks !== null) {
    let drinkAlreadyInFav = favdrinks.some(d => d.id === drink.id)
    if (drinkAlreadyInFav) {
      let newfavdrinks = favdrinks.filter(d => d.id !== drink.id)
      localStorage.setItem('favorite_drinks', JSON.stringify(newfavdrinks))
      adding = false
    } else {
      favdrinks.push(drink)
      localStorage.setItem('favorite_drinks', JSON.stringify(favdrinks))
    }
  } else {
    let newfavdrink = [drink]
    localStorage.setItem('favorite_drinks', JSON.stringify(newfavdrink))
  }
  return adding
}

export const saveSearchAndResults = (query, results) => {
  let searchAndResult = {
    query: query,
    drinkList: results,
  }

  localStorage.setItem('searchAndResult', JSON.stringify(searchAndResult));
}

export const getSearchAndResults = () => {
  return JSON.parse(localStorage.getItem('searchAndResult'));
}


text:
module ActsAsSolr #:nodoc:

  # TODO: Possibly looking into hooking it up with Solr::Response::Standard
  #
  # Class that returns the search results with four methods.
  #
  #   books = Book.find_by_solr 'ruby'
  #
  # the above will return a SearchResults class with 4 methods:
  #
  # docs|results|records: will return an array of records found
  #
  #   books.records.empty?
  #   => false
  #
  # total|num_found|total_hits: will return the total number of records found
  #
  #   books.total
  #   => 2
  #
  # facets: will return the facets when doing a faceted search
  #
  # max_score|highest_score: returns the highest score found
  #
  #   books.max_score
  #   => 1.3213213
  #
  #
  class SearchResults

    include Enumerable

    def initialize(solr_data={})
      @solr_data = solr_data
    end

    def each(&block)
      self.results.each &block
    end

    # Returns an array with the instances. This method
    # is also aliased as docs and records
    def results
      @solr_data[:docs]
    end

    # Returns the total records found. This method is
    # also aliased as num_found and total_hits
    def total
      @solr_data[:total]
    end

    # Returns the facets when doing a faceted search
    def facets
      @solr_data[:facets]
    end

    # Returns the highest score found. This method is
    # also aliased as highest_score
    def max_score
      @solr_data[:max_score]
    end

    def query_time
      @solr_data[:query_time]
    end

    # Returns the highlighted fields which one has asked for..
    def highlights
      @solr_data[:highlights]
    end

    # Returns a suggested query
    def suggest
      Hash[@solr_data[:spellcheck]['suggestions']]['collation']
    end

    # Returns the number of documents per page
    def per_page
      @solr_data[:rows].to_i
    end

    # Returns the number of pages found
    def total_pages
      per_page.zero? ? 0 : (total / per_page.to_f).ceil
    end

    # Returns the current page
    def current_page
      per_page.zero? ? 0 : (@solr_data[:start].to_i / per_page) + 1
    end

    def blank?
      total_entries == 0
    end

    def size
      total_entries
    end

    def offset
      (current_page - 1) * per_page
    end

    def previous_page
      if current_page > 1
        current_page - 1
      else
        false
      end
    end

    def next_page
      if current_page < total_pages
        current_page + 1
      else
        false
      end
    end

    def method_missing(symbol, *args, &block)
      self.results.send(symbol, *args, &block)
    rescue NoMethodError
      raise NoMethodError, "There is no method called #{symbol} at #{self.class.name} - #{self.inspect}"
    end

    alias docs results
    alias records results
    alias num_found total
    alias total_hits total
    alias total_entries total
    alias highest_score max_score
  end

end


text:
module DovecotCookbook
  module Conf
    # Helper module to force some requirements
    module Requirements
      def self.enable_protocol(node, proto)
        node.normal['dovecot']['protocols'][proto] = Mash.new
      end

      def self.disable_protocol(node, proto)
        node.normal['dovecot']['protocols'][proto] = 'disabled'
      end

      def self.enable_sieve(node)
        node.normal['dovecot']['conf']['mail_plugins'] = %w[sieve]
      end

      def self.disable_sieve(node)
        node.normal['dovecot']['conf']['mail_plugins'] = %w[]
      end

      def self.enable_ldap(node)
        node.normal['dovecot']['conf']['ldap']['auth_bind'] = true
      end

      def self.disable_ldap(node)
        node.normal['dovecot']['conf']['ldap']['auth_bind'] = 'disabled'
      end

      def self.enable_driver(node, driver)
        node.normal['dovecot']['conf']['sql']['driver'] = driver
      end

      # def self.disable_driver(node)
      #   node.normal['dovecot']['conf']['sql']['driver'] = 'disabled'
      # end

      def self.set(type, node)
        case type
        when 'imap', 'pop3', 'lmtp' then enable_protocol(node, type)
        when 'sieve' then enable_sieve(node)
        when 'ldap' then enable_ldap(node)
        when 'sqlite', 'mysql', 'pgsql' then enable_driver(node, type)
        end
      end

      def self.unset(type, node)
        case type
        when 'imap', 'pop3', 'lmtp' then disable_protocol(node, type)
        when 'sieve' then disable_sieve(node)
        when 'ldap' then disable_ldap(node)
          # when 'sqlite', 'mysql', 'pgsql' then disable_driver(node)
        end
      end
    end
  end
end


text:
<?php

namespace Cob\ORM\Fixture;

use Doctrine\ORM\EntityManager,
    Symfony\Component\Console\Output\OutputInterface,
    Symfony\Component\Console\Output\Output;

/**
 * Responsible for loading and fixtures; and resolving dependencies
 *
 * @author Andrew Cobby <cobby@cobbweb.me>
 */
class FixtureRunner
{

    /**
     * Loaded fixtures
     *
     * @var array
     */
    protected $_fixtures = array();

    /**
     * Executed fixtures
     *
     * @var array
     */
    protected $_executedFixtures = array();

    /**
     * Instance of the EntityManager
     *
     * @var Doctrine\ORM\EntityManager
     */
    private $em;

    /**
     * Instance of the console output writer
     *
     * @var \Symfony\Components\Console\Output\ConsoleOutput
     */
    protected $_writer;

    protected $_loaders;

    /**
     * Class constructor
     *
     * @param EntityManager $entityManager
     * @param ConsoleOutput $writer
     */
    public function __construct(EntityManager $em, OutputInterface $writer)
    {
        $this->em = $em;
        $this->_writer = $writer;
    }

    public function addLoader(Loader $loader)
    {
        $this->_loaders[] = $loader;
    }

    public function addLoaders(array $loaders)
    {
        array_map(array($this, 'addLoader'), $loaders);
    }

    /**
     * Enable/disable quite mode
     *
     * @param bool $flag
     */
    public function quietMode($flag)
    {
        if($flag){
            $this->_writer->setVerbosity(Output::VERBOSITY_QUIET);
        }else{
            $this->_writer->setVerbosity(Output::VERBOSITY_NORMAL);
        }
    }

    public function run()
    {
        foreach($this->_loaders as $loader){
            $this->_runLoader($loader);
        }

        $this->em->flush();
    }

    protected function _runLoader(Loader $loader)
    {
        $this->executeFixtures($loader->getFixtures());
    }

    /**
     * Execute an array of fixture classes
     *
     * @param array $fixtureClasses
     */
    public function executeFixtures(array $fixtures)
    {
        foreach($fixtures as $fixture){
            $this->executeFixture($fixture);
        }
    }

    /**
     * Execute a fixture
     *
     * @param Fixture $fixture
     * @return void
     */
    public function executeFixture(Fixture $fixture)
    {
        $fixtureClass = get_class($fixture);

        if($this->_isExecuted($fixture)){
            return; // already executed
        }

        $this->_resolveDependencies($fixture);

        $this->_writer->writeln("Running fixture {$fixtureClass}");

        $fixture->setEntityManager($this->em);
        $fixture->run();

        $this->_executedFixtures[] = $fixtureClass;

        $this->_writer->writeln("{$fixtureClass} loaded");
        $this->_writer->writeln('');
    }

    /**
     * Resolve dependencies for a fixture
     *
     * @param Fixture $fixture
     */
    protected function _resolveDependencies(Fixture $fixture)
    {
        $dependencies = $fixture->getDependencies();

        if($dependencies){
            if(is_string($dependencies)){
                $dependentClass = new $dependencies;
                $this->executeFixture($dependentClass);
            }else if(is_array($dependencies)){
                foreach($dependencies as $dependency){
                    $fixtureClass = new $dependency;
                    $this->executeFixture($fixtureClass);
                }
            }
        }
    }

    /**
     * Returns true if the fixture has already been executed
     *
     * @param Fixture $class
     * @return bool
     */
    protected function _isExecuted(Fixture $fixture)
    {
        return in_array(get_class($fixture), $this->_executedFixtures);
    }

}


text:
      <form class="panel panel-default" name="loginForm" ng-submit="submit()">

          MemeBook

            Registra tu nick
            <input type="text" class="form-control" id="inputNick" ng-model="nick">

          <button class="btn btn-info pull-right" type="submit">Ingresar</button>

      </form>


text:
package com.android.dx.dex.file;

import com.android.dex.util.ExceptionWithContext;
import com.android.dx.util.AnnotatedOutput;

/**
 * An item in a Dalvik file which is referenced by absolute offset.
 */
public abstract class OffsettedItem extends Item
        implements Comparable<OffsettedItem> {
    /** {@code > 0;} alignment requirement */
    private final int alignment;

    /** {@code >= -1;} the size of this instance when written, in bytes, or
     * {@code -1} if not yet known */
    private int writeSize;

    /**
     * {@code null-ok;} section the item was added to, or {@code null} if
     * not yet added
     */
    private Section addedTo;

    /**
     * {@code >= -1;} assigned offset of the item from the start of its section,
     * or {@code -1} if not yet assigned
     */
    private int offset;

    /**
     * Gets the absolute offset of the given item, returning {@code 0}
     * if handed {@code null}.
     *
     * @param item {@code null-ok;} the item in question
     * @return {@code >= 0;} the item's absolute offset, or {@code 0}
     * if {@code item == null}
     */
    public static int getAbsoluteOffsetOr0(OffsettedItem item) {
        if (item == null) {
            return 0;
        }

        return item.getAbsoluteOffset();
    }

    /**
     * Constructs an instance. The offset is initially unassigned.
     *
     * @param alignment {@code > 0;} output alignment requirement; must be a
     * power of 2
     * @param writeSize {@code >= -1;} the size of this instance when written,
     * in bytes, or {@code -1} if not immediately known
     */
    public OffsettedItem(int alignment, int writeSize) {
        Section.validateAlignment(alignment);

        if (writeSize < -1) {
            throw new IllegalArgumentException("writeSize < -1");
        }

        this.alignment = alignment;
        this.writeSize = writeSize;
        this.addedTo = null;
        this.offset = -1;
    }

    /**
     * {@inheritDoc}
     *
     * Comparisons for this class are defined to be type-major (if the
     * types don't match then the objects are not equal), with
     * {@link #compareTo0} deciding same-type comparisons.
     */
    @Override
    public final boolean equals(Object other) {
        if (this == other) {
            return true;
        }

        OffsettedItem otherItem = (OffsettedItem) other;
        ItemType thisType = itemType();
        ItemType otherType = otherItem.itemType();

        if (thisType != otherType) {
            return false;
        }

        return (compareTo0(otherItem) == 0);
    }

    /**
     * {@inheritDoc}
     *
     * Comparisons for this class are defined to be class-major (if the
     * classes don't match then the objects are not equal), with
     * {@link #compareTo0} deciding same-class comparisons.
     */
    public final int compareTo(OffsettedItem other) {
        if (this == other) {
            return 0;
        }

        ItemType thisType = itemType();
        ItemType otherType = other.itemType();

        if (thisType != otherType) {
            return thisType.compareTo(otherType);
        }

        return compareTo0(other);
    }

    /**
     * Sets the write size of this item. This may only be called once
     * per instance, and only if the size was unknown upon instance
     * creation.
     *
     * @param writeSize {@code > 0;} the write size, in bytes
     */
    public final void setWriteSize(int writeSize) {
        if (writeSize < 0) {
            throw new IllegalArgumentException("writeSize < 0");
        }

        if (this.writeSize >= 0) {
            throw new UnsupportedOperationException("writeSize already set");
        }

        this.writeSize = writeSize;
    }

    /** {@inheritDoc}
     *
     * @throws UnsupportedOperationException thrown if the write size
     * is not yet known
     */
    @Override
    public final int writeSize() {
        if (writeSize < 0) {
            throw new UnsupportedOperationException("writeSize is unknown");
        }

        return writeSize;
    }

    /** {@inheritDoc} */
    @Override
    public final void writeTo(DexFile file, AnnotatedOutput out) {
        out.alignTo(alignment);

        try {
            if (writeSize < 0) {
                throw new UnsupportedOperationException(
                        "writeSize is unknown");
            }
            out.assertCursor(getAbsoluteOffset());
        } catch (RuntimeException ex) {
            throw ExceptionWithContext.withContext(ex,
                    "...while writing " + this);
        }

        writeTo0(file, out);
    }

    /**
     * Gets the relative item offset. The offset is from the start of
     * the section which the instance was written to.
     *
     * @return {@code >= 0;} the offset
     * @throws RuntimeException thrown if the offset is not yet known
     */
    public final int getRelativeOffset() {
        if (offset < 0) {
            throw new RuntimeException("offset not yet known");
        }

        return offset;
    }

    /**
     * Gets the absolute item offset. The offset is from the start of
     * the file which the instance was written to.
     *
     * @return {@code >= 0;} the offset
     * @throws RuntimeException thrown if the offset is not yet known
     */
    public final int getAbsoluteOffset() {
        if (offset < 0) {
            throw new RuntimeException("offset not yet known");
        }

        return addedTo.getAbsoluteOffset(offset);
    }

    /**
     * Indicates that this item has been added to the given section at
     * the given offset. It is only valid to call this method once per
     * instance.
     *
     * @param addedTo {@code non-null;} the section this instance has
     * been added to
     * @param offset {@code >= 0;} the desired offset from the start of the
     * section where this instance was placed
     * @return {@code >= 0;} the offset that this instance should be placed at
     * in order to meet its alignment constraint
     */
    public final int place(Section addedTo, int offset) {
        if (addedTo == null) {
            throw new NullPointerException("addedTo == null");
        }

        if (offset < 0) {
            throw new IllegalArgumentException("offset < 0");
        }

        if (this.addedTo != null) {
            throw new RuntimeException("already written");
        }

        int mask = alignment - 1;
        offset = (offset + mask) & ~mask;

        this.addedTo = addedTo;
        this.offset = offset;

        place0(addedTo, offset);

        return offset;
    }

    /**
     * Gets the alignment requirement of this instance. An instance should
     * only be written when so aligned.
     *
     * @return {@code > 0;} the alignment requirement; must be a power of 2
     */
    public final int getAlignment() {
        return alignment;
    }

    /**
     * Gets the absolute offset of this item as a string, suitable for
     * including in annotations.
     *
     * @return {@code non-null;} the offset string
     */
    public final String offsetString() {
        return '[' + Integer.toHexString(getAbsoluteOffset()) + ']';
    }

    /**
     * Gets a short human-readable string representing this instance.
     *
     * @return {@code non-null;} the human form
     */
    public abstract String toHuman();

    /**
     * Compares this instance to another which is guaranteed to be of
     * the same class. The default implementation of this method is to
     * throw an exception (unsupported operation). If a particular
     * class needs to actually sort, then it should override this
     * method.
     *
     * @param other {@code non-null;} instance to compare to
     * @return {@code -1}, {@code 0}, or {@code 1}, depending
     * on the sort order of this instance and the other
     */
    protected int compareTo0(OffsettedItem other) {
        throw new UnsupportedOperationException("unsupported");
    }

    /**
     * Does additional work required when placing an instance. The
     * default implementation of this method is a no-op. If a
     * particular class needs to do something special, then it should
     * override this method. In particular, if this instance did not
     * know its write size up-front, then this method is responsible
     * for setting it.
     *
     * @param addedTo {@code non-null;} the section this instance has been added to
     * @param offset {@code >= 0;} the offset from the start of the
     * section where this instance was placed
     */
    protected void place0(Section addedTo, int offset) {
        // This space intentionally left blank.
    }

    /**
     * Performs the actual write of the contents of this instance to
     * the given data section. This is called by {@link #writeTo},
     * which will have taken care of ensuring alignment.
     *
     * @param file {@code non-null;} the file to use for reference
     * @param out {@code non-null;} where to write to
     */
    protected abstract void writeTo0(DexFile file, AnnotatedOutput out);
}


text:
subs=$(ps aux | grep '[/]Volumes/CFMI-CFS/opt/fs6/bin/recon-all -all -parallel -make all -qcache -3T -noappend -brainstem-structures -hippocampal-subfields-T1 -s' | awk '{print $NF}')

echo '📌  Status of Current Recon Jobs'
counter=1
# loop through and print current status
for sub in $subs; do
echo "⚙  $counter $sub ::"
printf '\t%s' "$(tail -n 1 $sub/scripts/recon-all-status.log)"
echo -e '\n'
((counter ++))
done


text:
using System;
using System.Collections.Generic;
using System.Linq;
using ElasticUp.Tests.Sample;
using ElasticUp.Util;
using Nest;
using NUnit.Framework;

namespace ElasticUp.Tests
{
    public abstract class AbstractIntegrationTest
    {
        private const string ElasticSearchUrl = "http://localhost:9201";
        protected VersionedIndexName TestIndex;
        protected VersionedIndexName MigrationHistoryTestIndex;

        protected IElasticClient ElasticClient;

        [SetUp]
        protected void SetUp()
        {
            MigrationHistoryTestIndex = new VersionedIndexName(TestContext.CurrentContext.Test.MethodName.ToLowerInvariant() + "-" + "migrationhistory", 0);
            TestIndex = new VersionedIndexName(TestContext.CurrentContext.Test.MethodName.ToLowerInvariant(), 0);

            var settings = new ConnectionSettings(new Uri(ElasticSearchUrl))
                .DefaultIndex(TestIndex.IndexNameWithVersion())
                .DisableDirectStreaming(true)
                .ThrowExceptions(true)
                .RequestTimeout(TimeSpan.FromHours(8));

            ElasticClient = new ElasticClient(settings);

            CreateMigrationHistoryTestIndex();
            CreateTestIndex();
            CreateNextTestIndex();
        }

        private void CreateMigrationHistoryTestIndex()
        {
            CreateIndex(MigrationHistoryTestIndex.IndexNameWithVersion());
            ElasticClient.PutAlias(MigrationHistoryTestIndex.IndexNameWithVersion(), MigrationHistoryTestIndex.AliasName);
        }

        protected void CreateTestIndex()
        {
            CreateIndex(TestIndex.IndexNameWithVersion());
            ElasticClient.PutAlias(TestIndex.IndexNameWithVersion(), TestIndex.AliasName);
        }

        protected void CreateNextTestIndex()
        {
            CreateIndex(TestIndex.NextIndexNameWithVersion());
        }

        protected void CreateIndex(string index)
        {
            ElasticClient.CreateIndex(
                index,
                indexDescriptor => indexDescriptor.Settings(indexSettings => indexSettings
                    .NumberOfShards(1)
                    .NumberOfReplicas(0)));
        }

        [TearDown]
        protected void TearDown()
        {
            TryDeleteIndex(TestIndex.IndexNameWithVersion());
            TryDeleteIndex(TestIndex.NextIndexNameWithVersion());
            TryDeleteIndex(MigrationHistoryTestIndex);
        }

        protected void TryDeleteIndex(string indexName)
        {
            try
            {
                ElasticClient.DeleteIndex(indexName);
            }
            catch(Exception) { }
        }

        protected void BulkIndexSampleObjects(int numberOfObjects, int chunkSize = 5000)
        {

            SplitList(Enumerable.Range(0, numberOfObjects).ToList(), chunkSize)
                .AsParallel()
                .WithDegreeOfParallelism(10)
                .ForAll(BulkIndexFrom);

            ElasticClient.Refresh(Indices.All);
        }

        private void BulkIndexFrom(List<int> numbers)
        {
            var bulkDescriptor = new BulkDescriptor();

            foreach (var number in numbers)
            {
                bulkDescriptor.Index<SampleObject>(
                    descr => descr.Index(TestIndex.IndexNameWithVersion())
                        .Id($"{number}")
                        .Document(new SampleObject { Number = number }));
            }

            ElasticClient.Bulk(bulkDescriptor);
        }

        private static List<List<int>> SplitList(List<int> locations, int nSize=30)
        {
            var output = new List<List<int>>();

            for (var i=0; i < locations.Count; i+= nSize)
            {
                output.Add(locations.GetRange(i, Math.Min(nSize, locations.Count - i)));
            }

            return output;
        }

    }
}


text:
require 'active_support'

begin
  require 'rails'
rescue LoadError
  # nothing to do! yay!
end

if defined? Rails
  require 'activerecord-mysql-unsigned/railtie'
else
  ActiveSupport.on_load :active_record do
    require 'activerecord-mysql-unsigned/base'
  end
end


text:
package com.helpplusapp.amit.helpplus;

import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

/**
 * Created by amit on 7/31/2016.
 */
public class AddTagDialogFragment extends DialogFragment {

    public AddTagDialogFragment() {
        // Empty constructor required for DialogFragment
    }

    public static AddTagDialogFragment newInstance() {
//        AddTagDialogFragment f = new AddTagDialogFragment();
        return new AddTagDialogFragment();
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_dialog_addtag, container);
        EditText mEditText = (EditText) view.findViewById(R.id.txt_your_name);
        getDialog().setTitle("Add tag");

        return view;
    }
}


text:
package org.gaurav.webapp.biz;

import java.io.IOException;
import java.util.Properties;

public class PropsLoader {

	public String getPropertyDetails(String detailType){
		String propertyPath ="com/gaurav/webapp/context/SystemConfig.properties";
		Properties properties = new Properties();

		try {
			properties.load(ClassLoader.getSystemResourceAsStream(propertyPath));
		} catch (IOException e) {
			e.printStackTrace();
		}

		String returnType = properties.getProperty(detailType);
		return returnType;

	}

	public static void main(String[] agrs){

		PropsLoader props = new PropsLoader();

        String mailBox = props.getPropertyDetails("mailAddress");
        String password= props.getPropertyDetails("password");

        System.out.println("\n MailBox --> "+mailBox);
        System.out.println("\n password --> "+password);
	}

}


text:
const DrawCard = require('../../drawcard.js');

class ChatayasBrothel extends DrawCard {
    setupCardAbilities(ability) {
        this.action({
            title: 'Gain gold',
            phase: 'marshal',
            limit: ability.limit.perPhase(2),
            condition: () => this.controller.canGainGold(),
            cost: ability.costs.kneel(card => card.hasIcon('intrigue')),
            handler: context => {
                this.game.addGold(context.player, 1);
                this.game.addMessage('{0} uses {1} and kneels {2} to gain 1 gold', context.player, context.source, context.costs.kneel);
            }
        });
    }
}

ChatayasBrothel.code = '04090';

module.exports = ChatayasBrothel;


text:
var wildpad = wildpad || { };

/**
 * Instance of headless Wildpad for use in NodeJS. Supports get/set on text/html.
 */
wildpad.Headless = (function() {

  var TextOperation   = wildpad.TextOperation;
  var WilddogAdapter = wildpad.WilddogAdapter;
  var EntityManager   = wildpad.EntityManager;
  var ParseHtml       = wildpad.ParseHtml;

  function Headless(refOrPath) {
    // Allow calling without new.
    if (!(this instanceof Headless)) { return new Headless(refOrPath); }

    if (typeof refOrPath === 'string') {
      if (typeof Wilddog !== 'function') {
        var wilddog = require('wilddog');
      } else {
        var wilddog = Wilddog;
      }
      var ref = new wilddog(refOrPath);
    } else {
      var ref = refOrPath;
    }

    this.entityManager_  = new EntityManager();

    this.wilddogAdapter_ = new WilddogAdapter(ref);
    this.ready_ = false;
    this.zombie_ = false;
  }

  Headless.prototype.getDocument = function(callback) {
    var self = this;

    if (self.ready_) {
      return callback(self.wilddogAdapter_.getDocument());
    }

    self.wilddogAdapter_.on('ready', function() {
      self.ready_ = true;
      callback(self.wilddogAdapter_.getDocument());
    });
  }

  Headless.prototype.getText = function(callback) {
    if (this.zombie_) {
      throw new Error('You can\'t use a wildpad.Headless after calling dispose()!');
    }

    this.getDocument(function(doc) {
      var text = doc.apply('');

      // Strip out any special characters from Rich Text formatting
      for (key in wildpad.sentinelConstants) {
        text = text.replace(new RegExp(wildpad.sentinelConstants[key], 'g'), '');
      }
      callback(text);
    });
  }

  Headless.prototype.setText = function(text, callback) {
    if (this.zombie_) {
      throw new Error('You can\'t use a wildpad.Headless after calling dispose()!');
    }

    var op = TextOperation().insert(text);
    this.sendOperationWithRetry(op, callback);
  }

  Headless.prototype.initializeFakeDom = function(callback) {
    if (typeof document === 'object' || typeof wildpad.document === 'object') {
      callback();
    } else {
      require('jsdom').env('', function(err, window) {
        if (wildpad.document) {
          // Return if we've already made a jsdom to avoid making more than one
          // This would be easier with promises but we want to avoid introducing
          // another dependency for just headless mode.
          window.close();
          return callback();
        }
        wildpad.document = window.document;
        callback();
      });
    }
  }

  Headless.prototype.getHtml = function(callback) {
    var self = this;

    if (this.zombie_) {
      throw new Error('You can\'t use a wildpad.Headless after calling dispose()!');
    }

    self.initializeFakeDom(function() {
      self.getDocument(function(doc) {
        callback(wildpad.SerializeHtml(doc, self.entityManager_));
      });
    });
  }

  Headless.prototype.setHtml = function(html, callback) {
    var self = this;

    if (this.zombie_) {
      throw new Error('You can\'t use a wildpad.Headless after calling dispose()!');
    }

    self.initializeFakeDom(function() {
      var textPieces = ParseHtml(html, self.entityManager_);
      var inserts    = wildpad.textPiecesToInserts(true, textPieces);
      var op         = new TextOperation();

      for (var i = 0; i < inserts.length; i++) {
        op.insert(inserts[i].string, inserts[i].attributes);
      }

      self.sendOperationWithRetry(op, callback);
    });
  }

  Headless.prototype.sendOperationWithRetry = function(operation, callback) {
    var self = this;

    self.getDocument(function(doc) {
      var op = operation.clone()['delete'](doc.targetLength);
      self.wilddogAdapter_.sendOperation(op, function(err, committed) {
        if (committed) {
          if (typeof callback !== "undefined") {
            callback(null, committed);
          }
        } else {
          self.sendOperationWithRetry(operation, callback);
        }
      });
    });
  }

  Headless.prototype.dispose = function() {
    this.zombie_ = true; // We've been disposed.  No longer valid to do anything.

    this.wilddogAdapter_.dispose();
  };

  return Headless;
})();


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<TITLE></TITLE>

March 12, 2015

Victoria Siemieniewski

Regulatory Specialist

OASIS PETROLEUM NORTH AMERICA LLC

1001 FANNIN ST, SUITE 1500

HOUSTON, TX 77002

RE:

HORIZONTAL WELL

ANDERSMADSON 5201 43-24 8T

SWSE Section 24-152N-101W

McKenzie County

Well File # 30893

Dear Victoria:

Pursuant to Commission Order No. 25998, approval to drill the above captioned well is hereby given. The approval

is granted on the condition that all portions of the well bore not isolated by cement, be no closer than the 200' setback

from the north & south boundaries and 500' setback from the east & west boundaries within the 1280 acre spacing unit

consisting of Sections 13 and 24 T152N R101W.

PERMIT STIPULATIONS: This well is located on an aquifer: An onsite inspection is required. Contact

NDIC Field Inspector for site specific stipulations to include but not limited to: Closed Mud System, no

drilling pit, and impermeable liner is required on the entire location and a string of casing must be placed in

the rat and mouse hole and cemented to ground level.

Furthermore, the operator must take into

consideration the production facility when placing the liner on location. Due to surficial water adjacent to

the well site, a dike is required surrounding the entire location. Effective June 1, 2014, a covered leak-proof

container (with placard) for filter sock disposal must be maintained on the well site beginning when the well

is spud, and must remain on-site during clean-out, completion, and flow-back whenever filtration operations

are conducted. OASIS PETRO NO AMER must contact NDIC Field Inspector Richard Dunn at 701-770-

3554 prior to location construction.

Drilling pit

NDAC 43-02-03-19.4 states that "a pit may be utilized to bury drill cuttings and solids generated during well drilling

and completion operations, providing the pit can be constructed, used and reclaimed in a manner that will prevent

pollution of the land surface and freshwaters. Reserve and circulation of mud system through earthen pits are

prohibited. All pits shall be inspected by an authorized representative of the director prior to lining and use. Drill

cuttings and solids must be stabilized in a manner approved by the director prior to placement in a cuttings pit."

Form 1 Changes & Hard Lines

Any changes, shortening of casing point or lengthening at Total Depth must have prior approval by the NDIC. The

proposed directional plan is at a legal location. Based on the azimuth of the proposed lateral the maximum legal

coordinate from the well head is: 10069 N.

Location Construction Commencement (Three Day Waiting Period)

Operators shall not commence operations on a drill site until the 3rd business day following publication of the

approved drilling permit on the NDIC - OGD Daily Activity Report. If circumstances require operations to

commence before the 3rd business day following publication on the Daily Activity Report, the waiting period may be

waived by the Director. Application for a waiver must be by sworn affidavit providing the information necessary to

evaluate the extenuating circumstances, the factors of NDAC 43-02-03-16.2 (1), (a)-(f), and any other information that

would allow the Director to conclude that in the event another owner seeks revocation of the drilling permit, the

applicant should retain the permit.

Victoria Siemieniewski

March 12, 2015

Page 2

Permit Fee & Notification

Payment was received in the amount of $100 via credit card .The permit fee has been received. It is requested that

notification be given immediately upon the spudding of the well. This information should be relayed to the Oil & Gas

Division, Bismarck, via telephone. The following information must be included: Well name, legal location, permit

number, drilling contractor, company representative, date and time of spudding. Office hours are 8:00 a.m. to 12:00

p.m. and 1:00 p.m. to 5:00 p.m. Central Time. Our telephone number is (701) 328-8020, leave a message if after hours

or on the weekend.

Survey Requirements for Horizontal, Horizontal Re-entry, and Directional Wells

NDAC Section 43-02-03-25 (Deviation Tests and Directional Surveys) states in part (that) the survey contractor shall

file a certified copy of all surveys with the director free of charge within thirty days of completion. Surveys must be

submitted as one electronic copy, or in a form approved by the director. However, the director may require the

directional survey to be filed immediately after completion if the survey is needed to conduct the operation of the

director's office in a timely manner. Certified surveys must be submitted via email in one adobe document, with a

certification cover page to certsurvey@nd.gov.

Survey points shall be of such frequency to accurately determine the entire location of the well bore.

Specifically, the Horizontal and Directional well survey frequency is 100 feet in the vertical, 30 feet in the curve (or

when sliding) and 90 feet in the lateral.

Surface casing cement

Tail cement utilized on surface casing must have a minimum compressive strength of 500 psi within 12 hours,

and tail cement utilized on production casing must have a minimum compressive strength of 500 psi before drilling the

plug or initiating tests.

Logs NDAC Section 43-02-03-31 requires the running of (1) a suite of open hole logs from which formation tops and

porosity zones can be determined, (2) a Gamma Ray Log run from total depth to ground level elevation of the well

bore, and (3) a log from which the presence and quality of cement can be determined (Standard CBL or Ultrasonic

cement evaluation log) in every well in which production or intermediate casing has been set, this log must be run prior

to completing the well. All logs run must be submitted free of charge, as one digital TIFF (tagged image file format)

copy and one digital LAS (log ASCII) formatted copy. Digital logs may be submitted on a standard CD, DVD, or

attached to an email sent to digitallogs@nd.gov

Thank you for your cooperation.

Sincerely,

David Burns

Engineering Technician

INDUSTRIAL COMMISSION OF NORTH DAKOTA

OIL AND GAS DIVISION

600 EAST BOULEVARD DEPT 405

BISMARCK, ND 58505-0840

SFN 54269 (08-2005)

PLEASE READ INSTRUCTIONS BEFORE FILLING OUT FORM.

PLEASE SUBMIT THE ORIGINAL AND ONE COPY.

Type of Work

Type of Well

Approximate Date Work Will Start

Confidential Status

New Location

Oil & Gas

4/ 20 /2015

No

Operator

Telephone Number

OASIS PETROLEUM NORTH AMERICA LLC

281-404-9500

Address

City

State

Zip Code

1001 FANNIN ST, SUITE 1500

HOUSTON

TX

77002

 Notice has been provided to the owner of any

 This well is not located within five hundred

permanently occupied dwelling within 1,320 feet.

feet of an occupied dwelling.

enter data for additional laterals on page 2)

Well Name

Well Number

ANDERSMADSON

5201 43-24 8T

Surface Footages

Qtr-Qtr

Section

Township

Range

County

295 FL

S

1969 F E

L

SWSE

24

152

101

McKenzie

Longstring Casing Point Footages

Qtr-Qtr

Section

Township

Range

County

759 F S

L

1846 F E

L

SWSE

24

152

101

McKenzie

Longstring Casing Point Coordinates From Well Head

Azimuth

Longstring Total Depth

464 N From WH

123 E From WH

15

11068 Feet MD

10793 Feet TVD

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

254 F N

LF

1750

E

L

NWNE

13

152

101

McKenzie

Bottom Hole Coordinates From Well Head

KOP Lateral 1

Azimuth Lateral 1

Estimated Total Depth Lateral 1

10015 N From WH

219 E From WH

10316 Feet MD

0

20627 Feet MD

10751 Feet TVD

Latitude of Well Head

Longitude of Well Head

NAD Reference

Description of

(Subject to NDIC Approval)

47

57

53.69

-103

32

54.51

NAD83

Spacing Unit:

Sections 13 and 24 T152N R101W

Ground Elevation

Acres in Spacing/Drilling Unit

Spacing/Drilling Unit Setback Requirement

Industrial Commission Order

1937 Feet Above S.L.

1280

200 Feet N/S

500

Feet

Feet E/W

25998

North Line of Spacing/Drilling Unit

South Line of Spacing/Drilling Unit

East Line of Spacing/Drilling Unit

West Line of Spacing/Drilling Unit

5288 Feet

5286 Feet

10564 Feet

10562 Feet

Objective Horizons

Pierre Shale Top

Three Forks B1

1918

Proposed

Size

Weight

Depth

Cement Volume

Surface Casing

13

3/8

55 Lb./Ft. 2019

Feet

975

Sacks

Proposed

Size

Weight(s)

Longstring Total Depth

Cement Volume

Cement Top

Top Dakota Sand

Longstring Casing

732

Lb./Ft.

11068 Feet MD

10793 Feet TVD

466

Sacks

4853 Feet

5353

Feet

Base of Last

Last

Salt (If

Charles Applicable)

Salt (If Applicable)

9170 Feet

Proposed Logs

CBL/GR: Above top of cmt/GR to BSC MWD GR: KOP to lateral TD

Drilling Mud Type (Vertical Hole - Below Surface Casing)

Drilling Mud Type (Lateral)

Invert

Salt Water Gel

Survey Type in Vertical Portion of Well

Survey Frequency: Build Section

Survey Frequency: Lateral

Survey Contractor

MWD Every 100 Feet

30 Feet

90 Feet

RYAN

proposed mud/cementing plan,

directional plot/plan, $100 fee.

Page 2

SFN 54269 (08-2005)

Additional information emailed to Todd Holweger.

Lateral 2

KOP Lateral 2

Azimuth Lateral 2

Estimated Total Depth Lateral 2

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

F

L

Lateral 3

KOP Lateral 3

Azimuth Lateral 3

Estimated Total Depth Lateral 3

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

F

L

FL

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

F

L

FL

Lateral 4

KOP Lateral 4

Azimuth Lateral 4

Estimated Total Depth Lateral 4

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

Lateral 5

KOP Lateral 5

Azimuth Lateral 5

Estimated Total Depth Lateral 5

KOP Coordinates From Well Head

Feet MD

Feet MD

Feet TVD

From WH

From WH

Formation Entry Point Coordinates From Well Head

Bottom Hole Coordinates From Well Head

From WH

From WH

From WH

From WH

KOP Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

Bottom Hole Footages From Nearest Section Line

Qtr-Qtr

Section

Township

Range

County

FL

FL

Date

I hereby swear or affirm the information provided is true, complete and correct as determined from all available records.

2 / 20 / 2015

Signature

Printed Name

Title

ePermit

Victoria Siemieniewski

Regulatory Specialist

Email Address(es)

Permit and File Number

API Number

Date Approved

30893

053

06796

3 / 12 / 2015

Field

By

CAMP

David Burns

Pool

Permit Type

Title

BAKKEN

DEVELOPMENT

Engineering Technician

April 9, 2014

RE:

Filter Socks and Other Filter Media

Leakproof Container Required

Oil and Gas Wells

Dear Operator,

North Dakota Administrative Code Section 43-02-03-19.2 states in part that all waste material associated with

exploration or production of oil and gas must be properly disposed of in an authorized facility in accord with all

applicable local, state, and federal laws and regulations.

Filtration systems are commonly used during oil and gas operations in North Dakota. The Commission is very

concerned about the proper disposal of used filters (including filter socks) used by the oil and gas industry.

Effective June 1, 2014, a container must be maintained on each well drilled in North Dakota beginning when the

well is spud and must remain on-site during clean-out, completion, and flow-back whenever filtration operations

are conducted. The on-site container must be used to store filters until they can be properly disposed of in an

authorized facility. Such containers must be:

 leakproof to prevent any fluids from escaping the container

 covered to prevent precipitation from entering the container

 placard to indicate only filters are to be placed in the container

If the operator will not utilize a filtration system, a waiver to the container requirement will be considered, but

only upon the operator submitting a Sundry Notice (Form 4) justifying their request.

As previously stated in our March 13, 2014 letter, North Dakota Administrative Code Section 33-20-02.1-01

states in part that every person who transports solid waste (which includes oil and gas exploration and production

wastes) is required to have a valid permit issued by the North Dakota Department of Health, Division of Waste

Management. Please contact the Division of Waste Management at (701) 328-5166 with any questions on the

solid waste program. Note oil and gas exploration and production wastes include produced water, drilling mud,

invert mud, tank bottom sediment, pipe scale, filters, and fly ash.

Thank you for your cooperation.

Sincerely,

Bruce E. Hicks

Assistant Director

DRILLING PLAN

OPERATOR

Oasis Petroleum

COUNTY/STATE

McKenzie Co. , ND

WELL NAME

Anders Madson 5201 43-24 8T

RIG

488

WELL TYPE

Horizontal Three Forks

LOCATION

SW SE 24-152N-101W

Surface Location (survey plat): 295' FSL

1969' FEL

EST. T.D.

20,627'

GROUND ELEV:

1,936'

Sub Height:

32'

TOTAL LATERAL:

9,559'

KB ELEV:

1,968'

MARKER

TVD

Subsea TVD LOGS:

Type

Interval

OH Logs: Request a Sundry for an Open Hole Log Waiver: Statoil WILLIAM 25-36 1-H 0.55 mi to

Pierre

NDIC MAP

1,918

50

W sec 25 152N 101W

Greenhorn

4,455

-2,487

CBL/GR: Above top of cement/GR to base of casing

Mowry

4,884

-2,916

MWD GR: KOP to lateral TD

Dakota

5,353

-3,385

Rierdon

6,245

-4,277 DEVIATION:

Surf:

3 deg. max., 1 deg / 100'; srvy every 500'

Dunham Salt

6,764

-4,796

Prod:

5 deg. max., 1 deg / 100'; srvy every 100'

Dunham Salt Base

6,810

-4,842

Pine Salt

7,113

-5,145

Pine Salt Base

7,171

-5,203

Opeche Salt

7,260

-5,292

Opeche Salt Base

7,368

-5,400

Amsden

7,571

-5,603

Tyler

7,777

-5,809

Otter/Base Minnelusa

8,010

-6,042 DST'S:

None planned

Kibbey Lime

8,356

-6,388

Charles Salt

8,503

-6,535 CORES:

None planned

Base Last Salt

9,170

-7,202

Mission Canyon

9,390

-7,422

Lodgepole

9,928

-7,960

False Bakken

10,672

-8,704

Upper Bakken Shale

10,683

-8,715 MUDLOGGING:

Two-Man:

Begin 200' above Kibbey

Middle Bakken

10,700

-8,732

30' samples in curve and lateral

Lower Bakken Shale

10,736

-8,768

Pronghorn

10,746

-8,778

Threeforks

10,772

-8,804

Threeforks(Top of Target)

10,787

-8,819

Threeforks(Base of Target)

10,797

-8,829

Claystone

10,797

-8,829 BOP:

11" 5000 psi blind, pipe & annular

Est. Dip Rate:

+ 0.25

Max. Anticipated BHP:

4679

Surface Formation: Glacial till

MUD:

Interval

Type

WT

Vis

WL

Remarks

Surface:

0'

-

2,019'

FW

8.4-9.0

28-32

NC

Circ Mud Tanks

Intermediate:

2,019'

-

11,068'

Invert

9.5-10.4

40-50

30+HtHp

Circ Mud Tanks

Lateral:

11,068' -

20,627'

Salt Water

9.8-10.2

28-32

NC

Circ Mud Tanks

CASING:

Size

Wt ppf

Hole

Depth

Cement

WOC

Remarks

Surface:

13-3/8"

54.5#

17-1/2"

2,019'

To Surface

12

100' into Pierre

Intermediate (dakota):

9-5/8"

36#

12-1/4"

6,245'

To Surface

24

Acoss Dakota

Intermediate:

7"

32#

8-3/4"

11,068'

4853

24

500' avobe Dakota

Production Liner:

4.5"

13.5#

6"

20,627'

TOL @ 10,266'

50' above KOP

PROBABLE PLUGS, IF REQ'D:

OTHER:

MD

TVD

FNL/FSL

FEL/FWL

S-T-R

AZI

Surface:

2,019

2,019

295 FSL

1969 FEL

Sec 24 T152N R101W

Survey Company:

KOP:

10,316'

10,316'

295 FSL

1969 FEL

Sec 24 T152N R101W

Build Rate:

12 deg /100'

EOC:

11,068'

10,793'

759 FSL

1846 FEL

Sec 24 T152N R101W

14.9

Casing Point:

11,068'

10,793'

759 FSL

1846 FEL

Sec 24 T152N R101W

14.9

Three Forks Lateral TD:

20,627'

10,751'

250 FNL

1750 FEL

Sec 13 T152N R101W

0.0

Comments:

Request a Sundry for an Open Hole Log Waiver: Statoil WILLIAM 25-36 1-H 0.55 mi to W sec 25 152N 101W

35 packers, 35 sleeves, no frac string

Oasis Petroleum does not use Diesel Fuel, as defined by the US EPA in the list below, in our hydraulic fracture operations.

68334-30-5 (Primary Name: Fuels, diesel) 68476-34-6 (Primary Name: Fuels, diesel, No. 2)68476-30-2 (Primary Name: Fuel oil No. 2)

68476-31-3 (Primary Name: Fuel oil, No. 4)8008-20-6 (Primary Name: Kerosene)

Geology: M.Steed

10/15/2014

Engineering: agonzalez13/10/14

TR 2/11/15

Oasis Petroleum

Well Summary

AndersMadson 5201 42-24 8T

Section 24 T152N R101W

McKenzie County, ND

SURFACE CASING AND CEMENT DESIGN

Make-up Torque (ft-lbs)

Size

Interval

Weight

Grade

Coupling

I.D.

Drift

Minimum Optimum

Max

13-3/8"

0' - 2019'

54.5

J-55

STC

12.615" 12.459"

4100

5470

6840

Interval

Description

Collapse

Burst

Tension

(psi) / a

(psi) / b

(1000 lbs) / c

0' - 2019'

13-3/8", 54.5#, J-55, LTC, 8rd

1130 / 1.19

2730 / 2.00

514 / 2.63

API Rating & Safety Factor

a)

Collapse based on full casing evacuation with 9 ppg fluid on backside (2019' setting depth).

b)

Burst pressure based on 13 ppg fluid with no fluid on backside (2019' setting depth).

c)

Based on string weight in 9 ppg fluid at 2019' TVD plus 100k# overpull. (Buoyed weight

equals 95k lbs.)

Cement volumes are based on 13-3/8'' casing set in 17-1/2 '' hole with 60% excess to circulate cement back to surface.

Mix and pump the following slurry.

Pre-flush (Spacer):

20 bbls fresh water

Lead Slurry:

675 sks (349 bbls), 11.5 lb/gal, 2.97 cu. Ft./sk Varicem Cement with 0.125 il/sk Lost Circulation

Additive

Tail Slurry:

300 sks (62 bbls), 13.0 lb/gal, 2.01 cu.ft./sk Varicem with .125 lb/sk Lost Circulation Agent

Oasis Petroleum

Well Summary

AndersMadson 5201 42-24 8T

Section 24 T152N R101W

McKenzie County, ND

Contingency INTERMEDIATE CASING AND CEMENT DESIGN

Make-up Torque (ft-lbs)

Size

Interval

Weight

Grade

Coupling

I.D.

Drift

Minimum

Optimum

Max

9-5/8"

0' - 6245'

36

HCL-80

LTC

8.835"

8.75"

5450

7270

9090

Interval

Description

Collapse

Burst

Tension

(psi) / a

(psi) / b

(1000 lbs) / c

0' - 6245'

9-5/8", 36#, J-55, LTC, 8rd

2020 / 2.26

3520 / 1.32

453 / 1.56

API Rating & Safety Factor

a)

Collapse based on full casing evacuation with 10.4 ppg fluid on backside (6245' setting depth).

b)

Burst pressure calculated from a gas kick coming from the production zone (Bakken Pool) at 9,000psi and a

subsequent breakdown at the 9-5/8" shoe, based on a 15.2#/ft fracture gradient. Backup of 9 ppg fluid..

c)

Tension based on string weight in 10.4 ppg fluid at 6245' TVD plus 100k# overpull. (Buoyed weight equals 189k

lbs.)

Cement volumes are based on 9-5/8'' casing set in 12-1/4 '' hole with 10% excess to circulate cement back to surface.

Pre-flush (Spacer):

20 bbls Chem wash

Lead Slurry:

556 sks (287 bbls), 2.90 ft3/sk, 11.5 lb/gal Conventional system with 94 lb/sk cement, 4% D079 extender, 2% D053

expanding agent, 2% CaCl2 and 0.250 lb/sk D130 lost circulation control agent.

Tail Slurry:

578 sks (119 bbls), 1.16 ft3/sk 15.8 lb/gal Conventional system with 94 lb/sk cement, 0.25% CaCl2, and 0.250 lb/sk lost

circulation control agent

Oasis Petroleum

Well Summary

AndersMadson 5201 42-24 8T

Section 24 T152N R101W

McKenzie County, ND

INTERMEDIATE CASING AND CEMENT DESIGN

Make-up Torque (ft-lbs)

Size

Interval

Weight

Grade

Coupling

I.D.

Drift**

Minimum

Optimum

Max

7"

0' - 11068'

32

HCP-110

LTC

6.094"

6.000"**

6730

8970

9870

**Special Drift 7"32# to 6.0"

Interval

Length

Description

Collapse

Burst

Tension

(psi) a

(psi) b

(1000 lbs) / c

0' - 11068'

11068'

7", 32#, HCP-110, LTC, 8rd

11820 / 2.10*

12460 / 1.28

897 / 2.24

6764' - 9170'

2406'

7", 32#, HCP-110, LTC, 8rd

11820 / 1.07**

12460 / 1.30

API Rating & Safety Factor

a)

*Assume full casing evacuation with 10 ppg fluid on backside. **Assume full casing evacuation

with 1.2 psi/ft equivalent fluid gradient across salt intervals.

b)

Burst pressure based on 9000 psig max press for stimulation plus 10.2 ppg fluid in casing and 9

ppg fluid on backside-to 10793' TVD.

c)

Based on string weight in 10 ppg fluid, (300k lbs buoyed weight) plus 100k lbs overpull.

Cement volumes are estimates based on 7'' casing set in an 8-3/4'' hole with 30% excess.

Mix and pump the following slurry

Pre-flush (Spacer):

100 bbls Saltwater

20 bbls Tuned Spacer III

Lead Slurry:

182 sks (84 bbls), 11.8 ppg, 2.55 cu. ft./sk Econocem Cement with .3% Fe-2 and

.25 lb/sk Lost Circulation Additive

Tail Slurry:

587 sks (171 bbls), 14.0 ppg, 1.55 cu. ft./sk Extendcem System with .2% HR-5

Retarder and .25 lb/sk Lost Circulation Additive

Oasis Petroleum

Well Summary

AndersMadson 5201 42-24 8T

Section 24 T152N R101W

McKenzie County, ND

PRODUCTION LINER

Make-up Torque (ft-lbs)

Size

Interval

Weight

Grade

Coupling

I.D.

Drift

Minimum

Optimum

Max

4-1/2"

10266' - 20627'

13.5

P-110

BTC

3.920"

3.795"

2270

3020

3780

Interval

Length

Desctiption

Collapse

Burst

Tension

(psi) a

(psi) b

(1000 lbs) c

10266' - 20627'

10361

4-1/2", 13.5 lb, P-110, BTC

10670 / 2.00

12410 / 1.28

443 / 2.01

API Rating & Safety Factor

a)

Based on full casing evacuation with 9.5 ppg fluid on backside @ 10793' TVD.

b)

Burst pressure based on 9000 psi treating pressure with 10.2 ppg internal fluid gradient

and 9 ppg external fluid gradient @ 10793' TVD.

c)

Based on string weight in 9.5 ppg fluid (Buoyed weight: 120k lbs.) plus 100k lbs overpull.

5

6

7

8

9

10

11

16

17

18

19

20

Burns, David J.

From:

Michael Kukuk <mkukuk@oasispetroleum.com>

Sent:

Thursday, March 12, 2015 12:36 PM

To:

Burns, David J.

Cc:

Damon Jorgensen

Subject:

Cuttings for AndersMadson pads

Hi Dave,

The cuttings for both pads are going to be disposed offsite, specifically at R360 Environmental Solutions.

Please let me know if you need anything else.

Thank you,

Michael P. Kukuk

Regulatory Supervisor

1001 Fannin, Suite 1500

Houston, Texas 77002

2814049575

2813825877 (cell)

mkukuk@oasispetroleum.com

The linked image cannot be

displayed. The file may hav e

been mov ed, renamed, or

deleted. Verify that the link

points to the correct file and

location.

The information contained in this electronic mail transmission is confidential and intended to be sent only to the intended recipient of the transmission. If you are

not the intended recipient or the intended recipient's agent, you are hereby notified that any review, use, dissemination, distribution or copying of this

communication is strictly prohibited. You are also asked to notify the sender immediately by telephone and to delete this transmission with any attachments and

destroy all copies in any form. Thank you in advance for your cooperation.

1

From:

Victoria Siemieniewski

To:

Nelson, Catherine M.

Cc:

Alexis Gonzalez; Chelsea Covington; Damon Jorgensen; Daniel Alfaro; David Copeland; Eli Puckett; Eric Ocwieja;

Garrick Olson; Heather Bader; James Demorrett; James Erickson; Jennifer Swenson; John Beard; John Gallaty;

John Lee; Jon Barnhardt; Karyme Martin; Keith Oyloe; Laura Strong; Lauri Stanfield; Lu Heerup; Michael Kukuk;

Mike Bader; Nicole Meredith; Roger Perttu; Scott Folda; Terry Weisz; Thomas Osen; Vern Barman; Victoria

Siemieniewski

Subject:

RE: ANDERSMADSON 5201 43-24 7B, 8T, 9B, 10T

Date:

Monday, February 23, 2015 2:17:11 PM

Hi Catherine,

Oasis has contacted the owner and operator of the waterline, JMAC Resources. The line will be

relocated around the pad site prior to construction. Please let me know if you need more

information. Thank you for your time.

Sincerely,

Victoria Siemieniewski

Regulatory Specialist

Oasis Petroleum

281.404.9652 (o)

701.870.2961 (c)

From: Nelson, Catherine M. [mailto:catherinenelson@nd.gov]

Sent: Monday, February 23, 2015 2:01 PM

To: Victoria Siemieniewski; APD Distribution

Subject: ANDERSMADSON 5201 43-24 7B, 8T, 9B, 10T

Victoria,

What are you planning to do with the existing waterline that runs under the pad and into the Pit

area? Also, whose water line is it and what is going to be done with it to prevent future mishaps.

Thanks

Catherine Nelson

Permitting Technician

NDIC, Dept. Mineral Resources

Oil and Gas Division

701-328-8093

catherinenelson@nd.gov

The information contained in this electronic mail transmission is confidential and intended to be sent only to the intended recipient of the

transmission. If you are not the intended recipient or the intended recipient's agent, you are hereby notified that any review, use,

dissemination, distribution or copying of this communication is strictly prohibited. You are also asked to notify the sender immediately by

telephone and to delete this transmission with any attachments and destroy all copies in any form. Thank you in advance for your

Document Outline

Form 4

4-intent- waiver to rule Rule 43-02-03-31

Form 1


text:
cask 'racket-cs' do
  version '7.4.0.4'
  sha256 'aa07477625d7cd8167a2418b28cc2bda17249ffaac518505c07130a87be8be6a'

  url "https://www.cs.utah.edu/plt/snapshots/20190805-044c15ec8f/installers/racket-#{version}-x86_64-macosx-cs.dmg"
  appcast 'https://www.cs.utah.edu/plt/snapshots/'
  name 'Racket on Chez Scheme'
  homepage 'https://www.cs.utah.edu/plt/snapshots/'

  suite "Racket v#{version}"
  binary "#{appdir}/Racket v#{version}/bin/drracket"
  binary "#{appdir}/Racket v#{version}/bin/gracket"
  binary "#{appdir}/Racket v#{version}/bin/gracket-text"
  binary "#{appdir}/Racket v#{version}/bin/mred"
  binary "#{appdir}/Racket v#{version}/bin/mred-text"
  binary "#{appdir}/Racket v#{version}/bin/mzc"
  binary "#{appdir}/Racket v#{version}/bin/mzpp"
  binary "#{appdir}/Racket v#{version}/bin/mzscheme"
  binary "#{appdir}/Racket v#{version}/bin/mztext"
  binary "#{appdir}/Racket v#{version}/bin/pdf-slatex"
  binary "#{appdir}/Racket v#{version}/bin/plt-games"
  binary "#{appdir}/Racket v#{version}/bin/plt-help"
  binary "#{appdir}/Racket v#{version}/bin/plt-r5rs"
  binary "#{appdir}/Racket v#{version}/bin/plt-r6rs"
  binary "#{appdir}/Racket v#{version}/bin/plt-web-server"
  binary "#{appdir}/Racket v#{version}/bin/racket"
  binary "#{appdir}/Racket v#{version}/bin/raco"
  binary "#{appdir}/Racket v#{version}/bin/scribble"
  binary "#{appdir}/Racket v#{version}/bin/setup-plt"
  binary "#{appdir}/Racket v#{version}/bin/slatex"
  binary "#{appdir}/Racket v#{version}/bin/slideshow"
  binary "#{appdir}/Racket v#{version}/bin/swindle"
end


text:
using Senparc.Weixin.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Senparc.Weixin.TenPayV3
{
    public class TenpayApiRequestException : WeixinException
    {
        public TenpayApiRequestException(string message, Exception inner, bool logged = false) : base(message, inner, logged)
        {
        }

        public TenpayApiRequestException(string message, bool logged = false) : this(message, null, logged)
        {
        }
    }
}


text:
package tiger

import org.scalatest.FlatSpec
import tiger.TigerTestUtil.TypesToFromString
import tiger.Types.INT

/**
 * Created by jose on 6/27/14.
 */
class TranslateSpec extends FlatSpec with TypesToFromString {

  "translate" should "awesome" in {
    " 2 > 4 " should typeTo(INT())

  }
}


text:
package uk.gov.dvla.services.authentication.exceptions;

import uk.gov.dvla.services.authentication.exceptions.AuthenticationException;

public class AuthenticationServiceException extends AuthenticationException {

    public AuthenticationServiceException(String msg) {
        super(msg);
    }

    public AuthenticationServiceException(String msg, Throwable t) {
        super(msg, t);
    }
}


text:
class FoodChain
  VERSION = 2
  def self.song
    @persons = [
      { person: 'fly',
        remark: '' },
      { person: 'spider',
        remark: 'It wriggled and jiggled and tickled inside her.' },
      { person: 'bird',
        remark: 'How absurd to swallow a bird!' },
      { person: 'cat',
        remark: 'Imagine that, to swallow a cat!' },
      { person: 'dog',
        remark: 'What a hog, to swallow a dog!' },
      { person: 'goat',
        remark: 'Just opened her throat and swallowed a goat!' },
      { person: 'cow',
        remark: "I don't know how she swallowed a cow!" },
      { person: 'horse',
        remark: '' }
    ]

    lyrics = ''

    0.upto(7) do |iteration|
      lyrics +=  "#{generate_part(iteration)}\n"
    end
    lyrics
  end

  def self.generate_part(person_num)
    lyrics = ''
    if person_num == 0
      lyrics = "I know an old lady who swallowed a fly.\n"
    elsif person_num == 7
      lyrics = 'I know an old lady who swallowed a horse.'\
        "\nShe's dead, of course!"
      return lyrics
    else
      lyrics += 'I know an old lady who swallowed a'\
        " #{@persons[person_num][:person]}.\n"
      lyrics += "#{@persons[person_num][:remark]}\n"
      person_num.downto(1) do |num|
        if @persons[num][:person] == 'bird'
          modified_remark = @persons[num - 1][:remark]
          modified_remark.gsub!(/It /, '')
          lyrics += "She swallowed the #{@persons[num][:person]}"\
            " to catch the #{@persons[num - 1][:person]}"\
            " that #{modified_remark}\n"
        else
          lyrics += "She swallowed the #{@persons[num][:person]}"\
            " to catch the #{@persons[num - 1][:person]}.\n"
        end
      end
    end
    lyrics += "I don't know why she swallowed the fly. Perhaps she'll die.\n"
    lyrics
  end
end


text:
package sc.fiji.filamentdetector.overlay;

import net.imagej.ImageJService;
import net.imagej.display.ImageDisplay;
import sc.fiji.filamentdetector.model.Filament;
import sc.fiji.filamentdetector.model.Filaments;
import sc.fiji.filamentdetector.model.TrackedFilament;
import sc.fiji.filamentdetector.model.TrackedFilaments;

public interface FilamentOverlayService extends ImageJService {

	void add(Filament filament);

	void add(Filaments filaments);

	void add(TrackedFilament trackedFilament);

	void add(TrackedFilaments trackedFilaments);

	void clearSelection();

	void disableOverlay(boolean disable);

	void exportToROIManager();

	int getColorAlpha();

	int getFilamentWidth();

	ImageDisplay getImageDisplay();

	void refresh();

	void remove(Filament filament);

	void remove(Filaments filaments);

	void remove(TrackedFilament trackedFilament);

	void remove(TrackedFilaments trackedFilaments);

	void reset();

	void setColorAlpha(int colorAlpha);

	void setFilamentWidth(int filamentWidth);

	void setImageDisplay(ImageDisplay imageDisplay);

	void setSelected(Filament filament, boolean moveToFrame, boolean clearSelection);

	void setSelected(TrackedFilament trackedFilament, boolean moveToFrame, boolean clearSelection);

	boolean isDrawBoundingBoxes();

	void setDrawBoundingBoxes(boolean drawBoundingBoxes);

	boolean isDrawPlusTips();

	boolean isDrawMinusTips();

	void setDrawPlusTips(boolean drawPlusTips);

	void setDrawMinusTips(boolean drawMinusTips);

	void setTipDiameter(int tipDiameter);

	int getTipDiameter();

	void updateTransparency();

	void updateLineWidth();

	void setViewMode(ImageDisplayMode viewMode);

	void autoScaleImage();
}


text:
using System;
using System.Xml.Serialization;
using Newtonsoft.Json;
using System.Collections.Generic;

namespace Gx.Types
{

    /// <remarks>
    ///  Enumeration of standard fact types.
    /// </remarks>
    /// <summary>
    ///  Enumeration of standard fact types.
    /// </summary>
    public enum FactType
    {

        /// <summary>
        ///  Unspecified enum value.
        /// </summary>
        [XmlEnumAttribute(Name = "__NULL__")]
        NULL,

        /// <summary>
        ///   A fact of a person's adoption. In the context of a parent-child relationship, it describes a fact of the adoption of a child by a parent.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Adoption")]
        Adoption,

        /// <summary>
        ///   A fact of a person's christening as an adult.
        /// </summary>
        [XmlEnum("http://gedcomx.org/AdultChristening")]
        AdultChristening,

        /// <summary>
        ///   A fact of a person's amnesty.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Amnesty")]
        Amnesty,

        /// <summary>
        ///   A fact of a person's apprenticeship.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Apprenticeship")]
        Apprenticeship,

        /// <summary>
        ///   A fact of a person's arrest.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Arrest")]
        Arrest,

        /// <summary>
        ///   A fact of a person's baptism.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Baptism")]
        Baptism,

        /// <summary>
        ///   A fact of a person's bar mitzvah.
        /// </summary>
        [XmlEnum("http://gedcomx.org/BarMitzvah")]
        BarMitzvah,

        /// <summary>
        ///   A fact of a person's bat mitzvah.
        /// </summary>
        [XmlEnum("http://gedcomx.org/BatMitzvah")]
        BatMitzvah,

        /// <summary>
        ///   A fact of a person's birth.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Birth")]
        Birth,

        /// <summary>
        ///   A fact of an official blessing received by a person, such as at the hands of a clergy member or at another religious rite.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Blessing")]
        Blessing,

        /// <summary>
        ///   A fact of the burial of person's body after death.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Burial")]
        Burial,

        /// <summary>
        ///   A fact of a person's caste.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Caste")]
        Caste,

        /// <summary>
        ///   A fact of a person's participation in a census.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Census")]
        Census,

        /// <summary>
        ///   A fact of a person's christening *at birth*. Note: use `AdultChristening` for the christening as an adult.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Christening")]
        Christening,

        /// <summary>
        ///   A fact of a person's circumcision.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Circumcision")]
        Circumcision,

        /// <summary>
        ///   A fact of a person's clan.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Clan")]
        Clan,

        /// <summary>
        ///   A fact of a person's confirmation (or other rite of initiation) in a church or religion.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Confirmation")]
        Confirmation,

        /// <summary>
        ///   A fact of the cremation of person's body after death.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Cremation")]
        Cremation,

        /// <summary>
        ///   A fact of the death of a person.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Death")]
        Death,

        /// <summary>
        ///   A fact of an education of a person.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Education")]
        Education,

        /// <summary>
        ///   A fact of a person's enrollment in an educational program or institution.
        /// </summary>
        [XmlEnum("http://gedcomx.org/EducationEnrollment")]
        EducationEnrollment,

        /// <summary>
        ///   A fact of the emigration of a person.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Emigration")]
        Emigration,

        /// <summary>
        ///   A fact of a person's ethnicity or race.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Ethnicity")]
        Ethnicity,

        /// <summary>
        ///   A fact of a person's excommunication from a church.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Excommunication")]
        Excommunication,

        /// <summary>
        ///   A fact of a person's first communion in a church.
        /// </summary>
        [XmlEnum("http://gedcomx.org/FirstCommunion")]
        FirstCommunion,

        /// <summary>
        ///   A fact of a person's funeral.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Funeral")]
        Funeral,

        /// <summary>
        ///   A fact of a person's gender change.
        /// </summary>
        [XmlEnum("http://gedcomx.org/GenderChange")]
        GenderChange,

        /// <summary>
        ///   A fact of a person's graduation from a scholastic institution.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Graduation")]
        Graduation,

        /// <summary>
        ///   A fact of a person's immigration.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Immigration")]
        Immigration,

        /// <summary>
        ///   A fact of a person's imprisonment.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Imprisonment")]
        Imprisonment,

        /// <summary>
        ///   A fact of a land transaction enacted by a person.
        /// </summary>
        [XmlEnum("http://gedcomx.org/LandTransaction")]
        LandTransaction,

        /// <summary>
        ///   A fact of a language spoken by a person.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Language")]
        Language,

        /// <summary>
        ///   A fact of a record of a person's living for a specific period. This is designed to include "flourish", defined to mean the time period
        ///   in an adult's life where he was most productive, perhaps as a writer or member of the state assembly. It does not reflect the person's birth and death dates.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Living")]
        Living,

        /// <summary>
        ///   A fact of a person's marital status.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MaritalStatus")]
        MaritalStatus,

        /// <summary>
        ///   A fact of a person's medical record, such as for an illness or hospital stay.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Medical")]
        Medical,

        /// <summary>
        ///   A fact of a person's military award.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MilitaryAward")]
        MilitaryAward,

        /// <summary>
        ///   A fact of a person's military discharge.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MilitaryDischarge")]
        MilitaryDischarge,

        /// <summary>
        ///   A fact of a person's registration for a military draft.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MilitaryDraftRegistration")]
        MilitaryDraftRegistration,

        /// <summary>
        ///   A fact of a person's military induction.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MilitaryInduction")]
        MilitaryInduction,

        /// <summary>
        ///   A fact of a person's militray service.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MilitaryService")]
        MilitaryService,

        /// <summary>
        ///   A fact of a person's church mission.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Mission")]
        Mission,

        /// <summary>
        ///   A fact of a person's move (i.e. change of residence) from a location.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MoveFrom")]
        MoveFrom,

        /// <summary>
        ///   A fact of a person's move (i.e. change of residence) to a new location.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MoveTo")]
        MoveTo,

        /// <summary>
        ///   A fact that a person was born as part of a multiple birth (e.g. twin, triplet, etc.)
        /// </summary>
        [XmlEnum("http://gedcomx.org/MultipleBirth")]
        MultipleBirth,

        /// <summary>
        ///   A fact of a person's national id (e.g. social security number).
        /// </summary>
        [XmlEnum("http://gedcomx.org/NationalId")]
        NationalId,

        /// <summary>
        ///   A fact of a person's nationality.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Nationality")]
        Nationality,

        /// <summary>
        ///   A fact of a person's naturalization (i.e. acquisition of citizenship and nationality).
        /// </summary>
        [XmlEnum("http://gedcomx.org/Naturalization")]
        Naturalization,

        /// <summary>
        ///   A fact of a person's number of marriages.
        /// </summary>
        [XmlEnum("http://gedcomx.org/NumberOfMarriages")]
        NumberOfMarriages,

        /// <summary>
        ///   A fact of a person's occupation or employment.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Occupation")]
        Occupation,

        /// <summary>
        ///   A fact of a person's ordination to a stewardship in a church.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Ordination")]
        Ordination,

        /// <summary>
        ///   A fact of a person's legal pardon.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Pardon")]
        Pardon,

        /// <summary>
        ///   A fact of a person's physical description.
        /// </summary>
        [XmlEnum("http://gedcomx.org/PhysicalDescription")]
        PhysicalDescription,

        /// <summary>
        ///   A fact of a receipt of probate of a person's property.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Probate")]
        Probate,

        /// <summary>
        ///   A fact of a person's property or possessions.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Property")]
        Property,

        /// <summary>
        ///   A fact of a person's religion.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Religion")]
        Religion,

        /// <summary>
        ///   A fact of a person's residence.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Residence")]
        Residence,

        /// <summary>
        ///   A fact of a person's retirement.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Retirement")]
        Retirement,

        /// <summary>
        ///   A fact of a person's stillbirth.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Stillbirth")]
        Stillbirth,

        /// <summary>
        ///   A fact of a person's tax assessment.
        /// </summary>
        [XmlEnum("http://gedcomx.org/TaxAssessment")]
        TaxAssessment,

        /// <summary>
        ///   A fact of a person's will.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Will")]
        Will,

        /// <summary>
        ///   A fact of a person's visit to a place different from the person's residence.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Visit")]
        Visit,

        /// <summary>
        ///   A fact of a person's _yahrzeit_ date.  A person's yahzeit is the anniversary of their death as measured by the Hebrew calendar.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Yahrzeit")]
        Yahrzeit,

        /// <summary>
        ///   The fact of an annulment of a marriage.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Annulment")]
        Annulment,

        /// <summary>
        ///   The fact of a marriage by common law.
        /// </summary>
        [XmlEnum("http://gedcomx.org/CommonLawMarriage")]
        CommonLawMarriage,

        /// <summary>
        ///   The fact of a civil union.
        /// </summary>
        [XmlEnum("http://gedcomx.org/CivilUnion")]
        CivilUnion,

        /// <summary>
        ///   The fact of a divorce of a couple.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Divorce")]
        Divorce,

        /// <summary>
        ///   The fact of a filing for divorce.
        /// </summary>
        [XmlEnum("http://gedcomx.org/DivorceFiling")]
        DivorceFiling,

        /// <summary>
        ///   The fact of a domestic partnership.
        /// </summary>
        [XmlEnum("http://gedcomx.org/DomesticPartnership")]
        DomesticPartnership,

        /// <summary>
        ///   The fact of an engagement to be married.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Engagement")]
        Engagement,

        /// <summary>
        ///   The fact of a marriage.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Marriage")]
        Marriage,

        /// <summary>
        ///   The fact of a marriage banns.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MarriageBanns")]
        MarriageBanns,

        /// <summary>
        ///   The fact of a marriage contract.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MarriageContract")]
        MarriageContract,

        /// <summary>
        ///   The fact of a marriage license.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MarriageLicense")]
        MarriageLicense,

        /// <summary>
        ///   The fact of a marriage notice.
        /// </summary>
        [XmlEnum("http://gedcomx.org/MarriageNotice")]
        MarriageNotice,

        /// <summary>
        ///   A fact of the number of children of a person or relationship.
        /// </summary>
        [XmlEnum("http://gedcomx.org/NumberOfChildren")]
        NumberOfChildren,

        /// <summary>
        ///   A fact of a couple's separation.
        /// </summary>
        [XmlEnum("http://gedcomx.org/Separation")]
        Separation,

        /// <summary>
        ///   A fact about an adoptive relationship between a parent an a child.
        /// </summary>
        [XmlEnum("http://gedcomx.org/AdoptiveParent")]
        AdoptiveParent,

        /// <summary>
        ///   A fact the biological relationship between a parent and a child.
        /// </summary>
        [XmlEnum("http://gedcomx.org/BiologicalParent")]
        BiologicalParent,

        /// <summary>
        ///   A fact about a foster relationship between a foster parent and a child.
        /// </summary>
        [XmlEnum("http://gedcomx.org/FosterParent")]
        FosterParent,

        /// <summary>
        ///   A fact about a legal guardianship between a parent and a child.
        /// </summary>
        [XmlEnum("http://gedcomx.org/GuardianParent")]
        GuardianParent,

        /// <summary>
        ///   A fact about the step relationship between a parent and a child.
        /// </summary>
        [XmlEnum("http://gedcomx.org/StepParent")]
        StepParent,

        /// <summary>
        ///   A fact about a sociological relationship between a parent and a child, but not definable in typical legal or biological terms.
        /// </summary>
        [XmlEnum("http://gedcomx.org/SociologicalParent")]
        SociologicalParent,

        /// <summary>
        ///  (no documentation provided)
        /// </summary>
        [XmlEnum("http://gedcomx.org/OTHER")]
        OTHER
    }
}


text:
from django.apps import AppConfig

class EntertainmentTonightConfig(AppConfig):
    name = 'entertainment_tonight'


text:
@interface RRVideo ()
@property (nonatomic, strong) RRVideoWritter *videoWritter;
@property (nonatomic, strong) NSMutableArray *urlsChunckVideo;
@property (nonatomic, assign) NSInteger currentIndexChunck;
@property (nonatomic, strong) NSArray *chuncks;
@end

@implementation RRVideo

- (instancetype)init {
    self = [super init];

    if (self) {
        self.videoWritter = [RRVideoWritter new];
        self.frames = [NSMutableArray array];
        self.speedFrame = RRVideoSpeedFrameNormal;
        self.repeatFrame = RRVideoRepeatFrameX1;
        self.mirroirFrame = false;
        self.sizeVideo = CGSizeMake(480, 480);
        self.videoFile = @"tmp.mov";
    }
    return self;
}

- (instancetype)initWithFrames:(NSArray * _Nonnull)images {
    self = [self init];

    if (self) {
        [self.frames addObjectsFromArray:images];
    }
    return self;
}

- (NSArray *)tasks {
    NSMutableArray *tasksArray = [NSMutableArray array];
    for (RRVideoChunck *currentChunk in self.chuncks) {
        [tasksArray addObject:[self.videoWritter writteVideo:self currentChunck:currentChunk]];
    }
    return tasksArray;
}

- (BFTask *)writeVideo {
    BFTaskCompletionSource *taskCompletion = [BFTaskCompletionSource taskCompletionSource];

    self.urlsChunckVideo = [NSMutableArray array];
    self.videoWritter.video = self;
    self.currentIndexChunck = 0;
    self.chuncks = [RRVideoChunck initializeChuncks:self framesChunck:RRVideoKitDefaultNumberFramePerChunck];

    [[BFTask taskForCompletionOfAllTasksWithResults:[self tasks]] continueWithBlock:^id(BFTask *task) {
        self.urlsChunckVideo = task.result;

        [[RRVideoMerge mergeVideo:self.urlsChunckVideo nameFile:self.videoFile] continueWithSuccessBlock:^id(BFTask *task) {
            [taskCompletion setResult:task.result];
            return nil;
        }];
        return nil;
    }];
    return taskCompletion.task;
}

@end


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

  Copyright 2003 - 2010 The eFaps Team

  Licensed 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.

  Author:          The eFaps Team
  Revision:        $Rev: 6408 $
  Last Changed:    $Date: 2011-04-06 16:30:27 -0500 (mié, 06 abr 2011) $
  Last Changed By: $Author: melissa.rojas@moxter.net $

--><help-menu xmlns="http://www.efaps.org/xsd"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://www.efaps.org/xsd http://www.efaps.org/xsd/eFaps_1.0.xsd">
    <uuid>c3873f7f-96ce-4741-98dc-dc1d74868962</uuid>
    <file-application>eFaps-Sales</file-application>
    <file-revision>$Rev: 6408 $</file-revision>
    <definition>
        <version-expression>(version==latest)</version-expression>
        <name>Showreferralguide_Sales</name>
        <!-- targets -->
        <target>
            <wiki>org.efaps.wiki.sales.Showreferralguide.wiki</wiki>
        </target>
    </definition>
</help-menu>