text:
<?php

namespace Acme\DemoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\DemoBundle\Entity\DbTransactions
 *
 * @ORM\Table(name="db_transactions")
 * @ORM\Entity
 */
class DbTransactions
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="ID", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer $userid
     *
     * @ORM\Column(name="UserID", type="integer", nullable=false)
     */
    private $userid;

    /**
     * @var string $username
     *
     * @ORM\Column(name="UserName", type="string", length=50, nullable=false)
     */
    private $username;

    /**
     * @var string $useraddress
     *
     * @ORM\Column(name="UserAddress", type="string", length=80, nullable=true)
     */
    private $useraddress;

    /**
     * @var \DateTime $starttime
     *
     * @ORM\Column(name="StartTime", type="datetime", nullable=false)
     */
    private $starttime;

    /**
     * @var \DateTime $endtime
     *
     * @ORM\Column(name="EndTime", type="datetime", nullable=false)
     */
    private $endtime;

    /**
     * @var boolean $deleted
     *
     * @ORM\Column(name="Deleted", type="boolean", nullable=false)
     */
    private $deleted;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set userid
     *
     * @param integer $userid
     * @return DbTransactions
     */
    public function setUserid($userid)
    {
        $this->userid = $userid;

        return $this;
    }

    /**
     * Get userid
     *
     * @return integer
     */
    public function getUserid()
    {
        return $this->userid;
    }

    /**
     * Set username
     *
     * @param string $username
     * @return DbTransactions
     */
    public function setUsername($username)
    {
        $this->username = $username;

        return $this;
    }

    /**
     * Get username
     *
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * Set useraddress
     *
     * @param string $useraddress
     * @return DbTransactions
     */
    public function setUseraddress($useraddress)
    {
        $this->useraddress = $useraddress;

        return $this;
    }

    /**
     * Get useraddress
     *
     * @return string
     */
    public function getUseraddress()
    {
        return $this->useraddress;
    }

    /**
     * Set starttime
     *
     * @param \DateTime $starttime
     * @return DbTransactions
     */
    public function setStarttime($starttime)
    {
        $this->starttime = $starttime;

        return $this;
    }

    /**
     * Get starttime
     *
     * @return \DateTime
     */
    public function getStarttime()
    {
        return $this->starttime;
    }

    /**
     * Set endtime
     *
     * @param \DateTime $endtime
     * @return DbTransactions
     */
    public function setEndtime($endtime)
    {
        $this->endtime = $endtime;

        return $this;
    }

    /**
     * Get endtime
     *
     * @return \DateTime
     */
    public function getEndtime()
    {
        return $this->endtime;
    }

    /**
     * Set deleted
     *
     * @param boolean $deleted
     * @return DbTransactions
     */
    public function setDeleted($deleted)
    {
        $this->deleted = $deleted;

        return $this;
    }

    /**
     * Get deleted
     *
     * @return boolean
     */
    public function getDeleted()
    {
        return $this->deleted;
    }
}


text:
// MESSAGE COMMAND_LONG support class

#pragma once

namespace mavlink {
namespace common {
namespace msg {

/**
 * @brief COMMAND_LONG message
 *
 * Send a command with up to seven parameters to the MAV
 */
struct COMMAND_LONG : mavlink::Message {
    static constexpr msgid_t MSG_ID = 76;
    static constexpr size_t LENGTH = 33;
    static constexpr size_t MIN_LENGTH = 33;
    static constexpr uint8_t CRC_EXTRA = 152;
    static constexpr auto NAME = "COMMAND_LONG";

    uint8_t target_system; /*< System which should execute the command */
    uint8_t target_component; /*< Component which should execute the command, 0 for all components */
    uint16_t command; /*< Command ID, as defined by MAV_CMD enum. */
    uint8_t confirmation; /*< 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command) */
    float param1; /*< Parameter 1, as defined by MAV_CMD enum. */
    float param2; /*< Parameter 2, as defined by MAV_CMD enum. */
    float param3; /*< Parameter 3, as defined by MAV_CMD enum. */
    float param4; /*< Parameter 4, as defined by MAV_CMD enum. */
    float param5; /*< Parameter 5, as defined by MAV_CMD enum. */
    float param6; /*< Parameter 6, as defined by MAV_CMD enum. */
    float param7; /*< Parameter 7, as defined by MAV_CMD enum. */

    inline std::string get_name(void) const override
    {
            return NAME;
    }

    inline Info get_message_info(void) const override
    {
            return { MSG_ID, LENGTH, MIN_LENGTH, CRC_EXTRA };
    }

    inline std::string to_yaml(void) const override
    {
        std::stringstream ss;

        ss << NAME << ":" << std::endl;
        ss << "  target_system: " << +target_system << std::endl;
        ss << "  target_component: " << +target_component << std::endl;
        ss << "  command: " << command << std::endl;
        ss << "  confirmation: " << +confirmation << std::endl;
        ss << "  param1: " << param1 << std::endl;
        ss << "  param2: " << param2 << std::endl;
        ss << "  param3: " << param3 << std::endl;
        ss << "  param4: " << param4 << std::endl;
        ss << "  param5: " << param5 << std::endl;
        ss << "  param6: " << param6 << std::endl;
        ss << "  param7: " << param7 << std::endl;

        return ss.str();
    }

    inline void serialize(mavlink::MsgMap &map) const override
    {
        map.reset(MSG_ID, LENGTH);

        map << param1;                        // offset: 0
        map << param2;                        // offset: 4
        map << param3;                        // offset: 8
        map << param4;                        // offset: 12
        map << param5;                        // offset: 16
        map << param6;                        // offset: 20
        map << param7;                        // offset: 24
        map << command;                       // offset: 28
        map << target_system;                 // offset: 30
        map << target_component;              // offset: 31
        map << confirmation;                  // offset: 32
    }

    inline void deserialize(mavlink::MsgMap &map) override
    {
        map >> param1;                        // offset: 0
        map >> param2;                        // offset: 4
        map >> param3;                        // offset: 8
        map >> param4;                        // offset: 12
        map >> param5;                        // offset: 16
        map >> param6;                        // offset: 20
        map >> param7;                        // offset: 24
        map >> command;                       // offset: 28
        map >> target_system;                 // offset: 30
        map >> target_component;              // offset: 31
        map >> confirmation;                  // offset: 32
    }
};

} // namespace msg
} // namespace common
} // namespace mavlink

redpajama_set_name: RedPajamaGithub


text:
#pragma once

#include <folly/io/async/SSLContext.h>
#include <proxygen/lib/http/session/HTTPSession.h>
#include <proxygen/lib/http/session/HTTPSessionStats.h>

namespace proxygen {

class HTTPSessionStats;
class HTTPUpstreamSession final: public HTTPSession {
 public:
  /**
   * @param sock       An open socket on which any applicable TLS handshaking
   *                     has been completed already.
   * @param localAddr  Address and port of the local end of the socket.
   * @param peerAddr   Address and port of the remote end of the socket.
   * @param codec      A codec with which to parse/generate messages in
   *                     whatever HTTP-like wire format this session needs.
   */
  HTTPUpstreamSession(
      folly::HHWheelTimer* transactionTimeouts,
      folly::AsyncTransportWrapper::UniquePtr&& sock,
      const folly::SocketAddress& localAddr,
      const folly::SocketAddress& peerAddr,
      std::unique_ptr<HTTPCodec> codec,
      const wangle::TransportInfo& tinfo,
      InfoCallback* infoCallback):
    HTTPSession(transactionTimeouts, std::move(sock), localAddr, peerAddr,
                nullptr, std::move(codec), tinfo, infoCallback) {
    auto asyncSocket = sock->getUnderlyingTransport<folly::AsyncSocket>();
    if (asyncSocket) {
      asyncSocket->setBufferCallback(this);
    }
    CHECK_EQ(codec_->getTransportDirection(), TransportDirection::UPSTREAM);
  }

  /**
   * Creates a new transaction on this upstream session. Invoking this function
   * also has the side-affect of starting reads after this event loop completes.
   *
   * @param handler The request handler to attach to this transaction. It must
   *                not be null.
   */
  HTTPTransaction* newTransaction(HTTPTransaction::Handler* handler);

  /**
   * Returns true if this session has no open transactions and the underlying
   * transport can be used again in a new request.
   */
  bool isReusable() const;

  /**
   * Returns true if the session is shutting down
   */
  bool isClosing() const;

  /**
   * Drains the current transactions and prevents new transactions from being
   * created on this session. When the number of transactions reaches zero, this
   * session will shutdown the transport and delete itself.
   */
  void drain() {
    HTTPSession::drain();
  }

 private:
  ~HTTPUpstreamSession() override;

  /**
   * Called by onHeadersComplete(). Currently a no-op for upstream.
   */
  void setupOnHeadersComplete(HTTPTransaction* txn,
                              HTTPMessage* msg) override {}

  /**
   * Called by processParseError() if the transaction has no handler.
   */
  HTTPTransaction::Handler* getParseErrorHandler(
    HTTPTransaction* txn, const HTTPException& error) override;

  /**
   * Called by transactionTimeout() if the transaction has no handler.
   */
  HTTPTransaction::Handler* getTransactionTimeoutHandler(
    HTTPTransaction* txn) override;

  bool allTransactionsStarted() const override;
};

} // proxygen


text:
class NameData

	attr_reader :name

	def initialize
	@name = "Ovi"
    end
end

class Greetings

	def initialize     #this class will initialize an instance of the NameData class in the Greetings class
	@my = NameData.new
	end

	def hello          #this class will also be able to print out a greeting to the console
	p "Hello #{@my.name}! How wonderful to see you today!"
	end
end

say = Greetings.new
say.hello

# Reflection
=begin

1) RELEASE-1: Read & Research

What are these methods doing?

You first have a class 'Profile' initialized with instance varaibles: age, name, and occupation. You next have a method
'print_info' that when called, will print out the values of these instance variables. Following that you have a grouping
of methods that either contain the initial value of the instance variables, or take arguments of new values for each of
the instance variables, with the intention of changing those values. Then you have a method that makes a new 'Profile' object
under the name 'instance_of_profile'. Finally through interprolation, we first have some methods that print out the
original instance variables in the class, followed by a method that prints out the new instance variables that have changed,
using the 'print_info' method that was defined before.

How are they modifying or returning the value of instance variables?

The instance variables are being modified or returned within the methods themselves, which have access to them. This is possible
because the methods themselves end with the instance variables and their respective values being returned at the end; this allows
access to them in further methods where we want to modify the instances or print them out.

2) RELEASE-2: Identify the Changes

What changed between the last release and this release?

The main difference between the two was that an attr: reader method was added for the instance variable 'age'. An
attr: reader is an attribute for the class that can be read outside of the class itself, but does not change
the value.

What was replaced?

In the previous release, there was a method that allowed access to the instance variable "age" outside of the class;
now that the attr: reader method is being used, that previous method is now redundant and was therefore removed from
the program.

Is this code simpler than the last?

The code is now slightly more DRY, so it is definitely a little bit simpler than the last

3) RELEASE-3:

What changed between the last release and this release?

In this release, the 'age' instance variable has now been granted 'attr: writer' access, meaning that it can now
be changed outside of the definition of the 'Profile' class, but it can not be read. As a result of this new ability,
the method that was written to access and then change the value of the instance variable has been deleted because it is
no longer needed. Finally, the method written to actually change the instance variable has been shortened to reflect that
we can now access the 'attr: writer' ability for 'age' by simply calling the '.age' method.

What was replaced?

The method that was written to access the instance variable and then reassign it has been nixed in favor of the
'attr: writer' functionality.

Is this code simpler than the last?

The code has been made more DRY and efficient; it is easier to read and thus has become simplier.

6) RELEASE-6: Reflect

What is a reader method?

A reader method is one that allows the return of a value/state ( of an instance variable) outside of the class
but does not change it.

What is a writer method?

A writer method is one that allows you to change the value of an instance variable outside of the class, but
is not readable.

What do the attr methods do for you?

Attr methods make instance variables accessible (with varying degrees of functionality) outside of the boundaries
of a class definition.

Should you always use an accessor to cover your bases? Why or Why not?

Though in the short-term an attr: accessor may seem like a more efficient, or convenient option since it grants access
to reader and writer abilities for instance variables, it can also cause problems for you.  The open-ended nature
of this method makes the root of bugs in your code potentially hard to pinpoint. Also the accessibility that these
variables are able to grant can compromise the security of your program.

What is confusing to you about these methods?

The fifth release got a little tricky because of the "interwoven" nature between the various classes and the instances
being called within or outside of themselves. I had to correct several times how I called the different methods between
the two classes in order to get the code to run properly

=end


text:
package com.google.android.apps.forscience.whistlepunk.opensource.accounts;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import androidx.fragment.app.Fragment;
import com.google.android.apps.forscience.whistlepunk.ActivityWithNavigationView;
import com.google.android.apps.forscience.whistlepunk.accounts.AbstractAccountsProvider;
import com.google.android.apps.forscience.whistlepunk.accounts.AppAccount;
import com.google.android.apps.forscience.whistlepunk.accounts.NonSignedInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignIn;
import com.google.android.gms.auth.api.signin.GoogleSignInAccount;
import com.google.android.gms.auth.api.signin.GoogleSignInClient;
import com.google.android.gms.auth.api.signin.GoogleSignInOptions;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.tasks.Task;
import io.reactivex.Single;

/** An accounts provider which is backed by Google Accounts. */
@SuppressWarnings("RedundantIfStatement")
public final class GoogleAccountsProvider extends AbstractAccountsProvider {
  private static final String TAG = "GoogleAccountsProvider";

  GoogleSignInClient googleSignInClient;
  Context context;

  public GoogleAccountsProvider(Context context) {
    super(context);
    this.context = context;
    setShowSignInActivityIfNotSignedIn(false);
    GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
        .requestEmail()
        .build();
    googleSignInClient = GoogleSignIn.getClient(context, gso);

    GoogleSignInAccount googleSignInAccount = GoogleSignIn.getLastSignedInAccount(context);
    if (googleSignInAccount != null) {
      signInCurrentAccount(googleSignInAccount);
    }
  }

  @Override
  protected void afterSetCurrentAccount(AppAccount currentAccount) {
    super.afterSetCurrentAccount(currentAccount);
  }

  @Override
  public boolean supportSignedInAccount() {
    return true;
  }

  @Override
  public boolean isSignedIn() {
    GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(context);
    return account != null;
  }

  @Override
  public int getAccountCount() {
    GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(context);
    return account == null ? 0 : 1;
  }

  @Override
  public void installAccountSwitcher(ActivityWithNavigationView activity) {

  }

  @Override
  public void disconnectAccountSwitcher(ActivityWithNavigationView activity) {
    return;
  }

  @Override
  public void onLoginAccountsChanged(Intent data) {
    try {
      Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);
      GoogleSignInAccount account = task.getResult(ApiException.class);
      GoogleSignInAccount googleSignInAccount = GoogleSignIn.getLastSignedInAccount(context);
      signInCurrentAccount(googleSignInAccount);
    } catch (ApiException apiException) {
      Log.e(TAG, "GoogleSignIn api exception");
    }
  }

  private void signInCurrentAccount(GoogleSignInAccount googleSignInAccount) {
    GoogleAccount googleAccount = new GoogleAccount(context, null, googleSignInAccount);
    if (googleAccount == null) {
      return;
    }

    AppAccount currentAccount = getCurrentAccount();
    boolean sameAsCurrentAccount = googleAccount.equals(currentAccount);
    if (sameAsCurrentAccount) {
      return;
    }

    setCurrentAccount(googleAccount);
  }

  @Override
  public void showAddAccountDialog(Activity activity) {
    return;
  }

  @Override
  public void showAccountSwitcherDialog(Fragment fragment, int requestCode) {
    if (getCurrentAccount() instanceof GoogleAccount) {
      googleSignInClient.signOut();
      setCurrentAccount(NonSignedInAccount.getInstance(context));
      return;
    }
    Intent signInIntent = googleSignInClient.getSignInIntent();
    fragment.getActivity().startActivityForResult(signInIntent, requestCode);
  }
}


text:
<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 *
 *
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package  		Module_Group
 * @version 		$Id: index.class.php 3469 2011-11-07 16:51:48Z Raymond_Benc $
 */
class Group_Component_Controller_Index extends Phpfox_Component
{
	/**
	 * Class process method wnich is used to execute this component.
	 */
	public function process()
	{
		if (($sLegacyTitle = $this->request()->get('req2')) && !empty($sLegacyTitle))
		{
			Phpfox::getService('core')->getLegacyItem(array(
					'field' => array('group_id', 'title'),
					'table' => 'group',
					'redirect' => 'pages',
					'title' => $sLegacyTitle
				)
			);
		}

		$this->url()->send('pages', array(), null, 301);
	}

	/**
	 * Garbage collector. Is executed after this class has completed
	 * its job and the template has also been displayed.
	 */
	public function clean()
	{
		(($sPlugin = Phpfox_Plugin::get('group.component_controller_index_clean')) ? eval($sPlugin) : false);
	}
}

?>


text:
Scorpio - To Be The intelligent investor.
===============


text:
<!DOCTYPE html>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta content="#97d0e1" name="theme-color">
    <meta content="#97d0e1" name="msapplication-navbutton-color">
    <meta content="#97d0e1" name="apple-mobile-web-app-status-bar-style">
    <link rel="stylesheet" href="css/main.css"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="description" content="">
    <meta name="author" content="Gabriel Furmuzachi">
    <meta name="copyright" content="Gabriel Furmuzachi">
	<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
	<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
	<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
	<link rel="manifest" href="/site.webmanifest">
	<meta name="msapplication-TileColor" content="#97d0e1">

    <title>CENTO.RED</title>

 <link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Fauna+One&display=swap" rel="stylesheet">

  <meta name="description" content="Gabriel Furmuzachi: graphic designer, web developer, philosopher, and writer.">
    <meta name="robots" content="index">
    <meta name="Keywords" content="Gabriel Furmuzachi graphic design web developer philosopher writer Vienna Wien">

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@fugabite">
    <meta name="twitter:title" content="Gabriel Furmuzachi | Graphic Designer / Web Developer / Philosopher / Writer">
    <meta name="twitter:description" content="Gabriel Furmuzachi">

    <meta property="og:title" content="Gabriel Furmuzachi">
    <meta property="og:type" content="product">

    <meta property="og:description" content="Gabriel Furmuzachi.">
    <meta property="og:site_name" content="cento.red">

    <link href='https://fonts.googleapis.com/css?family=Raleway:400,100,300,500,800' rel='stylesheet' type='text/css'>

philosophy

web/dev

storytelling

blog

CENTO.RED


text:
(function() {

var fs = require('fs');
var path = require('path');

var loadSettings = null;
var loadSettingsError = null;

window.onload = function() {
  try {
    var startTime = Date.now();

    process.on('unhandledRejection', function(error, promise) {
      console.error('Unhandled promise rejection %o with error: %o', promise, error);
    });

    // Ensure ATOM_HOME is always set before anything else is required
    setupAtomHome();

    // Normalize to make sure drive letter case is consistent on Windows
    process.resourcesPath = path.normalize(process.resourcesPath);

    if (loadSettingsError) {
      throw loadSettingsError;
    }

    var devMode = loadSettings.devMode || !loadSettings.resourcePath.startsWith(process.resourcesPath + path.sep);

    if (loadSettings.profileStartup) {
      profileStartup(loadSettings, Date.now() - startTime);
    } else {
      setupWindow(loadSettings);
      setLoadTime(Date.now() - startTime);
    }
  } catch (error) {
    handleSetupError(error);
  }
}

var getCacheDirectory = function() {
  var cacheDir = path.join(process.env.ATOM_HOME, 'compile-cache');
  // Use separate compile cache when sudo'ing as root to avoid permission issues
  if (process.env.USER === 'root' && process.env.SUDO_USER && process.env.SUDO_USER !== process.env.USER) {
    cacheDir = path.join(cacheDir, 'root');
  }
  return cacheDir;
}

var setLoadTime = function(loadTime) {
  if (global.atom) {
    global.atom.loadTime = loadTime;
    console.log('Window load time: ' + global.atom.getWindowLoadTime() + 'ms');
  }
}

var handleSetupError = function(error) {
  var currentWindow = require('remote').getCurrentWindow();
  currentWindow.setSize(800, 600);
  currentWindow.center();
  currentWindow.show();
  currentWindow.openDevTools();
  console.error(error.stack || error);
}

var setupWindow = function(loadSettings) {
  var cacheDir = getCacheDirectory();

  setupCoffeeCache(cacheDir);

  ModuleCache = require('../src/module-cache');
  ModuleCache.register(loadSettings);
  ModuleCache.add(loadSettings.resourcePath);

  require('grim').includeDeprecatedAPIs = !loadSettings.apiPreviewMode;

  // Start the crash reporter before anything else.
  require('crash-reporter').start({
    productName: 'Atom',
    companyName: 'GitHub',
    // By explicitly passing the app version here, we could save the call
    // of "require('remote').require('app').getVersion()".
    extra: {_version: loadSettings.appVersion}
  });

  setupVmCompatibility();
  setupCsonCache(cacheDir);
  setupSourceMapCache(cacheDir);
  setupBabel(cacheDir);
  setupTypeScript(cacheDir);

  require(loadSettings.bootstrapScript);
  require('ipc').sendChannel('window-command', 'window:loaded');
}

var setupCoffeeCache = function(cacheDir) {
  var CoffeeCache = require('coffee-cash');
  CoffeeCache.setCacheDirectory(path.join(cacheDir, 'coffee'));
  CoffeeCache.register();
}

var setupAtomHome = function() {
  if (!process.env.ATOM_HOME) {
    var home;
    if (process.platform === 'win32') {
      home = process.env.USERPROFILE;
    } else {
      home = process.env.HOME;
    }
    var atomHome = path.join(home, '.atom');
    try {
      atomHome = fs.realpathSync(atomHome);
    } catch (error) {
      // Ignore since the path might just not exist yet.
    }
    process.env.ATOM_HOME = atomHome;
  }
}

var setupBabel = function(cacheDir) {
  var babel = require('../src/babel');
  babel.setCacheDirectory(path.join(cacheDir, 'js', 'babel'));
  babel.register();
}

var setupTypeScript = function(cacheDir) {
  var typescript = require('../src/typescript');
  typescript.setCacheDirectory(path.join(cacheDir, 'typescript'));
  typescript.register();
}

var setupCsonCache = function(cacheDir) {
  require('season').setCacheDir(path.join(cacheDir, 'cson'));
}

var setupSourceMapCache = function(cacheDir) {
  require('coffeestack').setCacheDirectory(path.join(cacheDir, 'coffee', 'source-maps'));
}

var setupVmCompatibility = function() {
  var vm = require('vm');
  if (!vm.Script.createContext) {
    vm.Script.createContext = vm.createContext;
  }
}

var profileStartup = function(loadSettings, initialTime) {
  var profile = function() {
    console.profile('startup');
    try {
      var startTime = Date.now()
      setupWindow(loadSettings);
      setLoadTime(Date.now() - startTime + initialTime);
    } catch (error) {
      handleSetupError(error);
    } finally {
      console.profileEnd('startup');
      console.log("Switch to the Profiles tab to view the created startup profile")
    }
  };

  var currentWindow = require('remote').getCurrentWindow();
  if (currentWindow.devToolsWebContents) {
    profile();
  } else {
    currentWindow.openDevTools();
    currentWindow.once('devtools-opened', function() {
      setTimeout(profile, 100);
    });
  }
}

var parseLoadSettings = function() {
  var rawLoadSettings = decodeURIComponent(location.hash.substr(1));
  try {
    loadSettings = JSON.parse(rawLoadSettings);
  } catch (error) {
    console.error("Failed to parse load settings: " + rawLoadSettings);
    loadSettingsError = error;
  }
}

var setupWindowBackground = function() {
  if (loadSettings && loadSettings.isSpec) {
    return;
  }

  var backgroundColor = window.localStorage.getItem('atom:window-background-color');
  if (!backgroundColor) {
    return;
  }

  var backgroundStylesheet = document.createElement('style');
  backgroundStylesheet.type = 'text/css';
  backgroundStylesheet.innerText = 'html, body { background: ' + backgroundColor + '; }';
  document.head.appendChild(backgroundStylesheet);

  // Remove once the page loads
  window.addEventListener("load", function loadWindow() {
    window.removeEventListener("load", loadWindow, false);
    setTimeout(function() {
      backgroundStylesheet.remove();
      backgroundStylesheet = null;
    }, 1000);
  }, false);
}

parseLoadSettings();
setupWindowBackground();

})();


text:
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />

<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.0/mapbox.css' rel='stylesheet' />


text:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.cardpay.pccredit.intopieces.dao.AdditionalCashFlowDao" >
  <resultMap id="BaseResultMap" type="com.cardpay.pccredit.intopieces.model.AdditionalCashFlow" >
    <id column="ID" property="id" jdbcType="DECIMAL" />
    <result column="LOAN_APPLY_ID" property="loanApplyId" jdbcType="DECIMAL" />
    <result column="BUSINESS_TYPE" property="businessType" jdbcType="CHAR" />
    <result column="DATA_TYPE" property="dataType" jdbcType="CHAR" />
    <result column="COST_NAME" property="costName" jdbcType="VARCHAR" />
    <result column="MONTH" property="month" jdbcType="VARCHAR" />
    <result column="JANUARY" property="january" jdbcType="VARCHAR" />
    <result column="FEBRUARY" property="february" jdbcType="VARCHAR" />
    <result column="MARCH" property="march" jdbcType="VARCHAR" />
    <result column="APRIL" property="april" jdbcType="VARCHAR" />
    <result column="MAY" property="may" jdbcType="VARCHAR" />
    <result column="JUNE" property="june" jdbcType="VARCHAR" />
    <result column="JULY" property="july" jdbcType="VARCHAR" />
    <result column="AUGUST" property="august" jdbcType="VARCHAR" />
    <result column="SEPTEMBER" property="september" jdbcType="VARCHAR" />
    <result column="OCTOBER" property="october" jdbcType="VARCHAR" />
    <result column="NOVEMBER" property="november" jdbcType="VARCHAR" />
    <result column="DECEMBER" property="december" jdbcType="VARCHAR" />
  </resultMap>
  <sql id="Base_Column_List" >
    ID, LOAN_APPLY_ID, BUSINESS_TYPE, DATA_TYPE, COST_NAME, MONTH, JANUARY, FEBRUARY,
    MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select
    <include refid="Base_Column_List" />
    from ADDITIONAL_CASH_FLOW
    where ID = #{id,jdbcType=DECIMAL}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from ADDITIONAL_CASH_FLOW
    where ID = #{id,jdbcType=DECIMAL}
  </delete>
  <insert id="insert" parameterType="com.cardpay.pccredit.intopieces.model.AdditionalCashFlow" >
    insert into ADDITIONAL_CASH_FLOW (ID, LOAN_APPLY_ID, BUSINESS_TYPE,
      DATA_TYPE, COST_NAME, MONTH,
      JANUARY, FEBRUARY, MARCH,
      APRIL, MAY, JUNE, JULY,
      AUGUST, SEPTEMBER, OCTOBER,
      NOVEMBER, DECEMBER)
    values (#{id,jdbcType=DECIMAL}, #{loanApplyId,jdbcType=DECIMAL}, #{businessType,jdbcType=CHAR},
      #{dataType,jdbcType=CHAR}, #{costName,jdbcType=VARCHAR}, #{month,jdbcType=VARCHAR},
      #{january,jdbcType=VARCHAR}, #{february,jdbcType=VARCHAR}, #{march,jdbcType=VARCHAR},
      #{april,jdbcType=VARCHAR}, #{may,jdbcType=VARCHAR}, #{june,jdbcType=VARCHAR}, #{july,jdbcType=VARCHAR},
      #{august,jdbcType=VARCHAR}, #{september,jdbcType=VARCHAR}, #{october,jdbcType=VARCHAR},
      #{november,jdbcType=VARCHAR}, #{december,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="com.cardpay.pccredit.intopieces.model.AdditionalCashFlow" >
    insert into ADDITIONAL_CASH_FLOW
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        ID,
      </if>
      <if test="loanApplyId != null" >
        LOAN_APPLY_ID,
      </if>
      <if test="businessType != null" >
        BUSINESS_TYPE,
      </if>
      <if test="dataType != null" >
        DATA_TYPE,
      </if>
      <if test="costName != null" >
        COST_NAME,
      </if>
      <if test="month != null" >
        MONTH,
      </if>
      <if test="january != null" >
        JANUARY,
      </if>
      <if test="february != null" >
        FEBRUARY,
      </if>
      <if test="march != null" >
        MARCH,
      </if>
      <if test="april != null" >
        APRIL,
      </if>
      <if test="may != null" >
        MAY,
      </if>
      <if test="june != null" >
        JUNE,
      </if>
      <if test="july != null" >
        JULY,
      </if>
      <if test="august != null" >
        AUGUST,
      </if>
      <if test="september != null" >
        SEPTEMBER,
      </if>
      <if test="october != null" >
        OCTOBER,
      </if>
      <if test="november != null" >
        NOVEMBER,
      </if>
      <if test="december != null" >
        DECEMBER,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=DECIMAL},
      </if>
      <if test="loanApplyId != null" >
        #{loanApplyId,jdbcType=DECIMAL},
      </if>
      <if test="businessType != null" >
        #{businessType,jdbcType=CHAR},
      </if>
      <if test="dataType != null" >
        #{dataType,jdbcType=CHAR},
      </if>
      <if test="costName != null" >
        #{costName,jdbcType=VARCHAR},
      </if>
      <if test="month != null" >
        #{month,jdbcType=VARCHAR},
      </if>
      <if test="january != null" >
        #{january,jdbcType=VARCHAR},
      </if>
      <if test="february != null" >
        #{february,jdbcType=VARCHAR},
      </if>
      <if test="march != null" >
        #{march,jdbcType=VARCHAR},
      </if>
      <if test="april != null" >
        #{april,jdbcType=VARCHAR},
      </if>
      <if test="may != null" >
        #{may,jdbcType=VARCHAR},
      </if>
      <if test="june != null" >
        #{june,jdbcType=VARCHAR},
      </if>
      <if test="july != null" >
        #{july,jdbcType=VARCHAR},
      </if>
      <if test="august != null" >
        #{august,jdbcType=VARCHAR},
      </if>
      <if test="september != null" >
        #{september,jdbcType=VARCHAR},
      </if>
      <if test="october != null" >
        #{october,jdbcType=VARCHAR},
      </if>
      <if test="november != null" >
        #{november,jdbcType=VARCHAR},
      </if>
      <if test="december != null" >
        #{december,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.cardpay.pccredit.intopieces.model.AdditionalCashFlow" >
    update ADDITIONAL_CASH_FLOW
    <set >
      <if test="loanApplyId != null" >
        LOAN_APPLY_ID = #{loanApplyId,jdbcType=DECIMAL},
      </if>
      <if test="businessType != null" >
        BUSINESS_TYPE = #{businessType,jdbcType=CHAR},
      </if>
      <if test="dataType != null" >
        DATA_TYPE = #{dataType,jdbcType=CHAR},
      </if>
      <if test="costName != null" >
        COST_NAME = #{costName,jdbcType=VARCHAR},
      </if>
      <if test="month != null" >
        MONTH = #{month,jdbcType=VARCHAR},
      </if>
      <if test="january != null" >
        JANUARY = #{january,jdbcType=VARCHAR},
      </if>
      <if test="february != null" >
        FEBRUARY = #{february,jdbcType=VARCHAR},
      </if>
      <if test="march != null" >
        MARCH = #{march,jdbcType=VARCHAR},
      </if>
      <if test="april != null" >
        APRIL = #{april,jdbcType=VARCHAR},
      </if>
      <if test="may != null" >
        MAY = #{may,jdbcType=VARCHAR},
      </if>
      <if test="june != null" >
        JUNE = #{june,jdbcType=VARCHAR},
      </if>
      <if test="july != null" >
        JULY = #{july,jdbcType=VARCHAR},
      </if>
      <if test="august != null" >
        AUGUST = #{august,jdbcType=VARCHAR},
      </if>
      <if test="september != null" >
        SEPTEMBER = #{september,jdbcType=VARCHAR},
      </if>
      <if test="october != null" >
        OCTOBER = #{october,jdbcType=VARCHAR},
      </if>
      <if test="november != null" >
        NOVEMBER = #{november,jdbcType=VARCHAR},
      </if>
      <if test="december != null" >
        DECEMBER = #{december,jdbcType=VARCHAR},
      </if>
    </set>
    where ID = #{id,jdbcType=DECIMAL}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.cardpay.pccredit.intopieces.model.AdditionalCashFlow" >
    update ADDITIONAL_CASH_FLOW
    set LOAN_APPLY_ID = #{loanApplyId,jdbcType=DECIMAL},
      BUSINESS_TYPE = #{businessType,jdbcType=CHAR},
      DATA_TYPE = #{dataType,jdbcType=CHAR},
      COST_NAME = #{costName,jdbcType=VARCHAR},
      MONTH = #{month,jdbcType=VARCHAR},
      JANUARY = #{january,jdbcType=VARCHAR},
      FEBRUARY = #{february,jdbcType=VARCHAR},
      MARCH = #{march,jdbcType=VARCHAR},
      APRIL = #{april,jdbcType=VARCHAR},
      MAY = #{may,jdbcType=VARCHAR},
      JUNE = #{june,jdbcType=VARCHAR},
      JULY = #{july,jdbcType=VARCHAR},
      AUGUST = #{august,jdbcType=VARCHAR},
      SEPTEMBER = #{september,jdbcType=VARCHAR},
      OCTOBER = #{october,jdbcType=VARCHAR},
      NOVEMBER = #{november,jdbcType=VARCHAR},
      DECEMBER = #{december,jdbcType=VARCHAR}
    where ID = #{id,jdbcType=DECIMAL}
  </update>
</mapper>


text:
/**
 * Constructs a new graph editor
 */
EditorUi = function(editor, container)
{
	this.editor = editor || new Editor();
	this.container = container || document.body;
	var graph = editor.graph;

	// Disables scrollbars
	this.container.style.overflow = 'hidden';

	var textEditing =  mxUtils.bind(this, function(evt)
	{
		if (evt == null)
		{
			evt = window.event;
		}

		if (this.isSelectionAllowed(evt))
		{
			return true;
		}

		return graph.isEditing() || this.dialog != null;
	});

	// Disables text selection while not editing and no dialog visible
	if (this.container == document.body)
	{
		document.onselectstart = textEditing;
		document.onmousedown = textEditing;
	}

	// And uses built-in context menu while editing
	if (mxClient.IS_IE && document.documentMode != 9)
	{
		mxEvent.addListener(this.container, 'contextmenu', textEditing);
	}
	else
	{
		this.container.oncontextmenu = textEditing;
	}

	// Pre-fetches submenu image
	new Image().src = mxPopupMenu.prototype.submenuImage;

	// Pre-fetches connect image
	if (mxConnectionHandler.prototype.connectImage != null)
	{
		new Image().src = mxConnectionHandler.prototype.connectImage.src;
	}

    // Creates the user interface
	this.actions = new Actions(this);
	this.menus = new Menus(this);
	this.createDivs();
	this.refresh();
	this.createUi();

	// Contains the main graph instance inside the given panel
	graph.init(this.diagramContainer);
	graph.refresh();

    // Enables scrollbars and sets cursor style for the container
	graph.container.setAttribute('tabindex', '0');
   	graph.container.style.overflow = (touchStyle) ? 'hidden' : 'auto';
   	graph.container.style.cursor = 'default';
    graph.container.style.backgroundImage = 'url(' + IMAGE_PATH + '/grid.gif)';
   	graph.container.focus();

   	// Keeps graph container focused on mouse down
   	var graphFireMouseEvent = graph.fireMouseEvent;
   	graph.fireMouseEvent = function(evtName, me, sender)
   	{
   		if (evtName == mxEvent.MOUSE_DOWN)
   		{
   			this.container.focus();
   		}

   		graphFireMouseEvent.apply(this, arguments);
   	};

   	// Configures automatic expand on mouseover
	graph.panningHandler.autoExpand = true;

    // Installs context menu
	graph.panningHandler.factoryMethod = mxUtils.bind(this, function(menu, cell, evt)
	{
		this.menus.createPopupMenu(menu, cell, evt);
	});

	// Initializes the outline
	editor.outline.init(this.outlineContainer);

	// Hides context menu
	var md = (mxClient.IS_TOUCH) ? 'touchstart' : 'mousedown';
	mxEvent.addListener(document, md, mxUtils.bind(this, function(evt)
	{
		graph.panningHandler.hideMenu();
	}));

	// Adds gesture handling (pinch to zoom)
	if (mxClient.IS_TOUCH)
	{
		mxEvent.addListener(graph.container, 'gesturechange',
			mxUtils.bind(this, function(evt)
			{
				graph.view.getDrawPane().setAttribute('transform', 'scale(' + evt.scale + ')');
				graph.view.getOverlayPane().style.visibility = 'hidden';
			})
		);

		mxEvent.addListener(graph.container, 'gestureend',
			mxUtils.bind(this, function(evt)
			{
				graph.view.getDrawPane().removeAttribute('transform');
				graph.zoomToCenter = true;
				graph.zoom(evt.scale);
				graph.view.getOverlayPane().style.visibility = 'visible';
			})
		);
	}

    // Create handler for key events
	var keyHandler = this.createKeyHandler(editor);

	// Getter for key handler
	this.getKeyHandler = function()
	{
		return keyHandler;
	};

	// Shows dialog if changes are lost
	window.onbeforeunload = function()
	{
		if (editor.modified)
		{
			return mxResources.get('allChangesLost');
		}
	};

	// Updates the editor UI after the window has been resized
   	mxEvent.addListener(window, 'resize', mxUtils.bind(this, function()
   	{
   		this.refresh();
   		graph.sizeDidChange();
   		this.editor.outline.update(false);
   		this.editor.outline.outline.sizeDidChange();
   	}));

	// Updates action and menu states
   	this.init();
   	this.open();
};

/**
 * Specifies the size of the split bar.
 */
EditorUi.prototype.splitSize = (mxClient.IS_TOUCH) ? 16 : 8;

/**
 * Specifies the height of the menubar. Default is 34.
 */
EditorUi.prototype.menubarHeight = 34;

/**
 * Specifies the height of the toolbar. Default is 46.
 */
EditorUi.prototype.toolbarHeight = 46;

/**
 * Specifies the height of the footer. Default is 28.
 */
EditorUi.prototype.footerHeight = 28;

/**
 * Specifies the position of the horizontal split bar. Default is 190.
 */
EditorUi.prototype.hsplitPosition = 190;

/**
 * Specifies the position of the vertical split bar. Default is 190.
 */
EditorUi.prototype.vsplitPosition = 190;

/**
 * Installs the listeners to update the action states.
 */
EditorUi.prototype.init = function()
{
	// Updates action states
	this.addUndoListener();
	this.addSelectionListener();

	// Overrides clipboard to update paste action state
	var paste = this.actions.get('paste');

	var updatePaste = function()
	{
		paste.setEnabled(!mxClipboard.isEmpty());
	};

	var mxClipboardCut = mxClipboard.cut;
	mxClipboard.cut = function()
	{
		mxClipboardCut.apply(this, arguments);
		updatePaste();
	};

	var mxClipboardCopy = mxClipboard.copy;
	mxClipboard.copy = function()
	{
		mxClipboardCopy.apply(this, arguments);
		updatePaste();
	};
};

/**
 * Hook for allowing selection and context menu for certain events.
 */
EditorUi.prototype.isSelectionAllowed = function(evt)
{
	return false;
};

/**
 * Opens the current diagram via the window.opener if one exists.
 */
EditorUi.prototype.open = function()
{
	// Cross-domain window access is not allowed in FF, so if we
	// were opened from another domain then this will fail.
	try
	{
		if (window.opener != null && window.opener.openFile != null)
		{
			window.opener.openFile.setConsumer(mxUtils.bind(this, function(xml, filename)
			{
				try
				{
					var doc = mxUtils.parseXml(xml);
					this.editor.setGraphXml(doc.documentElement);
					this.editor.modified = false;
					this.editor.undoManager.clear();

					if (filename != null)
					{
						this.editor.filename = filename;
					}
				}
				catch (e)
				{
					mxUtils.alert(mxResources.get('invalidOrMissingFile') + ': ' + e.message);
				}
			}));
		}
	}
	catch(e)
	{
		// ignore
	}
};

/**
 * Saves the current graph under the given filename.
 */
EditorUi.prototype.save = function(name)
{
	if (name != null)
	{
		var xml = mxUtils.getXml(this.editor.getGraphXml());

		try
		{
			if (useLocalStorage)
			{
				if (localStorage.getItem(name) != null &&
					!mxUtils.confirm(mxResources.get('replace', [name])))
				{
					return;
				}

				localStorage.setItem(name, xml);
				this.editor.setStatus(mxResources.get('saved'));
			}
			else
			{
				if (xml.length < MAX_REQUEST_SIZE)
				{
					xml = encodeURIComponent(xml);
					new mxXmlRequest(SAVE_URL, 'filename=' + name + '&xml=' + xml).simulate(document, "_blank");
				}
				else
				{
					mxUtils.alert(mxResources.get('drawingTooLarge'));
					mxUtils.popup(xml);

					return;
				}
			}

			this.editor.filename = name;
			this.editor.modified = false;
		}
		catch (e)
		{
			this.editor.setStatus('Error saving file');
		}
	}
};

/**
 * Returns the URL for a copy of this editor with no state.
 */
EditorUi.prototype.getUrl = function(pathname)
{
	var href = (pathname != null) ? pathname : window.location.pathname;
	var parms = (pathname.indexOf('?') > 0) ? 1 : 0;

	// Removes template URL parameter for new blank diagram
	for (var key in urlParams)
	{
		if (parms == 0)
		{
			href += '?';
		}
		else
		{
			href += '&';
		}

		href += key + '=' + urlParams[key];
		parms++;
	}

	return href;
};

/**
 * Updates the states of the given undo/redo items.
 */
EditorUi.prototype.addUndoListener = function()
{
	var undo = this.actions.get('undo');
	var redo = this.actions.get('redo');

	var undoMgr = this.editor.undoManager;

    var undoListener = function()
    {
    	undo.setEnabled(undoMgr.canUndo());
    	redo.setEnabled(undoMgr.canRedo());
    };

    undoMgr.addListener(mxEvent.ADD, undoListener);
    undoMgr.addListener(mxEvent.UNDO, undoListener);
    undoMgr.addListener(mxEvent.REDO, undoListener);
    undoMgr.addListener(mxEvent.CLEAR, undoListener);

	// Updates the button states once
    undoListener();
};

/**
 * Updates the states of the given toolbar items based on the selection.
 */
EditorUi.prototype.addSelectionListener = function()
{
	var selectionListener = mxUtils.bind(this, function()
    {
		var graph = this.editor.graph;
		var selected = !graph.isSelectionEmpty();
		var vertexSelected = false;
		var edgeSelected = false;

		var cells = graph.getSelectionCells();

		if (cells != null)
		{
	    	for (var i = 0; i < cells.length; i++)
	    	{
	    		var cell = cells[i];

	    		if (graph.getModel().isEdge(cell))
	    		{
	    			edgeSelected = true;
	    		}

	    		if (graph.getModel().isVertex(cell))
	    		{
	    			vertexSelected = true;
	    		}

	    		if (edgeSelected && vertexSelected)
				{
					break;
				}
	    	}
		}

		// Updates action states
		var actions = ['cut', 'copy', 'delete', 'duplicate', 'bold', 'italic', 'style', 'fillColor',
		               'gradientColor', 'underline', 'fontColor', 'strokeColor', 'backgroundColor',
		               'borderColor', 'toFront', 'toBack', 'dashed', 'rounded', 'shadow', 'rotate',
		               'autosize'];

    	for (var i = 0; i < actions.length; i++)
    	{
    		this.actions.get(actions[i]).setEnabled(selected);
    	}

    	this.actions.get('rotation').setEnabled(vertexSelected);
       	this.actions.get('group').setEnabled(graph.getSelectionCount() > 1);
       	this.actions.get('ungroup').setEnabled(graph.getSelectionCount() == 1 &&
       			graph.getModel().getChildCount(graph.getSelectionCell()) > 0);
       	var oneVertexSelected = vertexSelected && graph.getSelectionCount() == 1;
       	this.actions.get('removeFromGroup').setEnabled(oneVertexSelected &&
       			graph.getModel().isVertex(graph.getModel().getParent(graph.getSelectionCell())));

    	// Updates menu states
    	var menus = ['fontFamily', 'fontSize', 'alignment', 'position', 'text', 'format',
    	    'arrange', 'linewidth', 'spacing', 'gradient'];

    	for (var i = 0; i < menus.length; i++)
    	{
    		this.menus.get(menus[i]).setEnabled(selected);
    	}

    	menus = ['line', 'lineend', 'linestart'];

     	for (var i = 0; i < menus.length; i++)
     	{
     		this.menus.get(menus[i]).setEnabled(edgeSelected);
     	}

       	this.actions.get('setAsDefaultEdge').setEnabled(edgeSelected);

        this.menus.get('align').setEnabled(graph.getSelectionCount() > 1);
        this.menus.get('direction').setEnabled(vertexSelected || (edgeSelected &&
        		graph.isLoop(graph.view.getState(graph.getSelectionCell()))));
        this.menus.get('navigation').setEnabled(graph.foldingEnabled && ((graph.view.currentRoot != null) ||
				(graph.getSelectionCount() == 1 && graph.isValidRoot(graph.getSelectionCell()))));
        this.actions.get('home').setEnabled(graph.view.currentRoot != null);
        this.actions.get('exitGroup').setEnabled(graph.view.currentRoot != null);
        var groupEnabled = graph.getSelectionCount() == 1 && graph.isValidRoot(graph.getSelectionCell());
        this.actions.get('enterGroup').setEnabled(groupEnabled);
        this.actions.get('expand').setEnabled(groupEnabled);
        this.actions.get('collapse').setEnabled(groupEnabled);
        this.actions.get('editLink').setEnabled(graph.getSelectionCount() == 1);
        this.actions.get('openLink').setEnabled(graph.getSelectionCount() == 1 &&
        		graph.getLinkForCell(graph.getSelectionCell()) != null);
    });

    this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE, selectionListener);
    selectionListener();
};

/**
 * Refreshes the viewport.
 */
EditorUi.prototype.refresh = function()
{
	var quirks = mxClient.IS_IE && (document.documentMode == null || document.documentMode == 5);
	var w = this.container.clientWidth;
	var h = this.container.clientHeight;

	if (this.container == document.body)
	{
		w = document.body.clientWidth || document.documentElement.clientWidth;
		h = (quirks) ? document.body.clientHeight || document.documentElement.clientHeight : document.documentElement.clientHeight;
	}

	var effHsplitPosition = Math.max(0, Math.min(this.hsplitPosition, w - this.splitSize - 20));
	var effVsplitPosition = Math.max(0, Math.min(this.vsplitPosition, h - this.menubarHeight - this.toolbarHeight - this.footerHeight - this.splitSize - 1));

	this.menubarContainer.style.height = this.menubarHeight + 'px';
	this.toolbarContainer.style.top = this.menubarHeight + 'px';
	this.toolbarContainer.style.height = this.toolbarHeight + 'px';
	this.sidebarContainer.style.top = (this.menubarHeight + this.toolbarHeight) + 'px';
	this.sidebarContainer.style.width = effHsplitPosition + 'px';
	this.outlineContainer.style.width = effHsplitPosition + 'px';
	this.outlineContainer.style.height = effVsplitPosition + 'px';
	this.outlineContainer.style.bottom = this.footerHeight + 'px';
	this.diagramContainer.style.left = (effHsplitPosition + this.splitSize) + 'px';
	this.diagramContainer.style.top = this.sidebarContainer.style.top;
	this.footerContainer.style.height = this.footerHeight + 'px';
	this.hsplit.style.top = this.sidebarContainer.style.top;
	this.hsplit.style.bottom = this.outlineContainer.style.bottom;
	this.hsplit.style.left = effHsplitPosition + 'px';
	this.vsplit.style.width = this.sidebarContainer.style.width;
	this.vsplit.style.bottom = (effVsplitPosition + this.footerHeight) + 'px';

	if (quirks)
	{
		this.menubarContainer.style.width = w + 'px';
		this.toolbarContainer.style.width = this.menubarContainer.style.width;
		var sidebarHeight = (h - effVsplitPosition - this.splitSize - this.footerHeight - this.menubarHeight - this.toolbarHeight);
		this.sidebarContainer.style.height = sidebarHeight + 'px';
		this.diagramContainer.style.width = (w - effHsplitPosition - this.splitSize) + 'px';
		var diagramHeight = (h - this.footerHeight - this.menubarHeight - this.toolbarHeight);
		this.diagramContainer.style.height = diagramHeight + 'px';
		this.footerContainer.style.width = this.menubarContainer.style.width;
		this.hsplit.style.height = diagramHeight + 'px';
	}
	else
	{
		this.sidebarContainer.style.bottom = (effVsplitPosition + this.splitSize + this.footerHeight) + 'px';
		this.diagramContainer.style.bottom = this.outlineContainer.style.bottom;
	}
};

/**
 * Creates the required containers.
 */
EditorUi.prototype.createDivs = function()
{
	this.menubarContainer = this.createDiv('geMenubarContainer');
	this.toolbarContainer = this.createDiv('geToolbarContainer');
	this.sidebarContainer = this.createDiv('geSidebarContainer');
	this.outlineContainer = this.createDiv('geOutlineContainer');
	this.diagramContainer = this.createDiv('geDiagramContainer');
	this.footerContainer = this.createDiv('geFooterContainer');
	this.hsplit = this.createDiv('geHsplit');
	this.vsplit = this.createDiv('geVsplit');

	// Sets static style for containers
	this.menubarContainer.style.top = '0px';
	this.menubarContainer.style.left = '0px';
	this.menubarContainer.style.right = '0px';
	this.toolbarContainer.style.left = '0px';
	this.toolbarContainer.style.right = '0px';
	this.sidebarContainer.style.left = '0px';
	this.outlineContainer.style.left = '0px';
	this.diagramContainer.style.right = '0px';
	this.footerContainer.style.left = '0px';
	this.footerContainer.style.right = '0px';
	this.footerContainer.style.bottom = '0px';
	this.vsplit.style.left = '0px';
	this.vsplit.style.height = this.splitSize + 'px';
	this.hsplit.style.width = this.splitSize + 'px';
};

/**
 * Creates the required containers.
 */
EditorUi.prototype.createUi = function()
{
	// Creates menubar
	this.menubar = this.menus.createMenubar(this.createDiv('geMenubar'));
	this.menubarContainer.appendChild(this.menubar.container);

	// Creates toolbar
	this.toolbar = this.createToolbar(this.createDiv('geToolbar'));
	this.toolbarContainer.appendChild(this.toolbar.container);

	// Creates the sidebar
	this.sidebar = this.createSidebar(this.sidebarContainer);

	// Creates the footer
	this.footerContainer.appendChild(this.createFooter());

	// Adds status bar in menubar
	this.statusContainer = this.createStatusContainer();

	// Connects the status bar to the editor status
	this.editor.addListener('statusChanged', mxUtils.bind(this, function()
	{
		this.setStatusText(this.editor.getStatus());
	}));

	this.setStatusText(this.editor.getStatus());
	this.menubar.container.appendChild(this.statusContainer);

	// Inserts into DOM
	this.container.appendChild(this.menubarContainer);
	this.container.appendChild(this.toolbarContainer);
	this.container.appendChild(this.sidebarContainer);
	this.container.appendChild(this.outlineContainer);
	this.container.appendChild(this.diagramContainer);
	this.container.appendChild(this.footerContainer);
	this.container.appendChild(this.hsplit);
	this.container.appendChild(this.vsplit);

	// HSplit
	this.addSplitHandler(this.hsplit, true, 0, mxUtils.bind(this, function(value)
	{
		this.hsplitPosition = value;
		this.refresh();
		this.editor.graph.sizeDidChange();
		this.editor.outline.update(false);
		this.editor.outline.outline.sizeDidChange();
	}));

	// VSplit
	this.addSplitHandler(this.vsplit, false, this.footerHeight, mxUtils.bind(this, function(value)
	{
		this.vsplitPosition = value;
		this.refresh();
		this.editor.outline.update(false);
		this.editor.outline.outline.sizeDidChange();
	}));
};

/**
 * Creates a new toolbar for the given container.
 */
EditorUi.prototype.createStatusContainer = function()
{
	var container = document.createElement('a');
	container.className = 'geItem geStatus';

	return container;
};

/**
 * Creates a new toolbar for the given container.
 */
EditorUi.prototype.setStatusText = function(value)
{
	this.statusContainer.innerHTML = value;
};

/**
 * Creates a new toolbar for the given container.
 */
EditorUi.prototype.createToolbar = function(container)
{
	return new Toolbar(this, container);
};

/**
 * Creates a new sidebar for the given container.
 */
EditorUi.prototype.createSidebar = function(container)
{
	return new Sidebar(this, container);
};

/**
 * Creates and returns a new footer.
 */
EditorUi.prototype.createFooter = function()
{
	return this.createDiv('geFooter');
};

/**
 * Creates the actual toolbar for the toolbar container.
 */
EditorUi.prototype.createDiv = function(classname)
{
	var elt = document.createElement('div');
	elt.className = classname;

	return elt;
};

/**
 * Updates the states of the given undo/redo items.
 */
EditorUi.prototype.addSplitHandler = function(elt, horizontal, dx, onChange)
{
	var start = null;
	var initial = null;

	function getValue()
	{
		return parseInt(((horizontal) ? elt.style.left : elt.style.bottom));
	}

	var md = (mxClient.IS_TOUCH) ? 'touchstart' : 'mousedown';
	var mm = (mxClient.IS_TOUCH) ? 'touchmove' : 'mousemove';
	var mu = (mxClient.IS_TOUCH) ? 'touchend' : 'mouseup';

	mxEvent.addListener(elt, md, function(evt)
	{
		start = new mxPoint(mxEvent.getClientX(evt), mxEvent.getClientY(evt));
		initial = getValue();
		mxEvent.consume(evt);
	});

	function moveHandler(evt)
	{
		if (start != null)
		{
			var pt = new mxPoint(mxEvent.getClientX(evt), mxEvent.getClientY(evt));
			onChange(Math.max(0, initial + ((horizontal) ? (pt.x - start.x) : (start.y - pt.y)) - dx));
			mxEvent.consume(evt);
		}
	}

	mxEvent.addListener(document, mm, moveHandler);

	mxEvent.addListener(document, mu, function(evt)
	{
		moveHandler(evt);
		start = null;
		initial = null;
	});
};

/**
 * Displays a print dialog.
 */
EditorUi.prototype.showDialog = function(elt, w, h, modal, closable, onClose)
{
	this.hideDialog();
	this.dialog = new Dialog(this, elt, w, (mxClient.IS_VML) ? h - 12 : h, modal, closable, onClose);
};

/**
 * Displays a print dialog.
 */
EditorUi.prototype.hideDialog = function()
{
	if (this.dialog != null)
	{
		this.dialog.close();
		this.dialog = null;
		this.editor.graph.container.focus();
	}
};

/**
 * Adds the label menu items to the given menu and parent.
 */
EditorUi.prototype.openFile = function()
{
	// Closes dialog after open
	window.openFile = new OpenFile(mxUtils.bind(this, function()
	{
		this.hideDialog();
	}));

	// Removes openFile if dialog is closed
	this.showDialog(new OpenDialog(this).container, 300, 180, true, true, function()
	{
		window.openFile = null;
	});
};

/**
 * Adds the label menu items to the given menu and parent.
 */
EditorUi.prototype.saveFile = function(forceDialog)
{
	if (!forceDialog && this.editor.filename != null)
	{
		this.save(this.editor.getOrCreateFilename());
	}
	else
	{
		this.showDialog(new SaveDialog(this).container, 300, 100, true, true);
	}
};

/**
 * Executes the given layout.
 */
EditorUi.prototype.executeLayout = function(layout, animate, ignoreChildCount)
{
	var graph = this.editor.graph;
	var cell = graph.getSelectionCell();

	graph.getModel().beginUpdate();
	try
	{
		layout.execute(graph.getDefaultParent(), cell);
	}
	catch (e)
	{
		throw e;
	}
	finally
	{
		// Animates the changes in the graph model except
		// for Camino, where animation is too slow
		if (animate && navigator.userAgent.indexOf('Camino') < 0)
		{
			// New API for animating graph layout results asynchronously
			var morph = new mxMorphing(graph);
			morph.addListener(mxEvent.DONE, mxUtils.bind(this, function()
			{
				graph.getModel().endUpdate();
			}));

			morph.startAnimation();
		}
		else
		{
			graph.getModel().endUpdate();
		}
	}
};

/**
 * Creates the keyboard event handler for the current graph and history.
 */
EditorUi.prototype.createKeyHandler = function(editor)
{
	var graph = this.editor.graph;
    var keyHandler = new mxKeyHandler(graph);

    // Routes command-key to control-key on Mac
    keyHandler.isControlDown = function(evt)
    {
    	return mxEvent.isControlDown(evt) || (mxClient.IS_MAC && evt.metaKey);
    };

	// Helper function to move cells with the cursor keys
    function nudge(keyCode)
    {
    	if (!graph.isSelectionEmpty())
		{
    		var dx = 0;
    		var dy = 0;

    		if (keyCode == 37)
			{
    			dx = -1;
			}
    		else if (keyCode == 38)
    		{
    			dy = -1;
    		}
    		else if (keyCode == 39)
    		{
    			dx = 1;
    		}
    		else if (keyCode == 40)
    		{
    			dy = 1;
    		}

    		graph.moveCells(graph.getSelectionCells(), dx, dy);
    		graph.scrollCellVisible(graph.getSelectionCell());
		}
    };

    // Binds keystrokes to actions
    var bindAction = mxUtils.bind(this, function(code, control, key, shift)
    {
    	var action = this.actions.get(key);

    	if (action != null)
    	{
    		var f = function()
    		{
				if (action.enabled)
				{
					action.funct();
				}
    		};

    		if (control)
    		{
    			if (shift)
    			{
    				keyHandler.bindControlShiftKey(code, f);
    			}
    			else
    			{
    				keyHandler.bindControlKey(code, f);
    			}
    		}
    		else
    		{
    			if (shift)
    			{
    				keyHandler.bindShiftKey(code, f);
    			}
    			else
    			{
    				keyHandler.bindKey(code, f);
    			}
    		}
    	}
    });

    var ui = this;
    var keyHandleEscape = keyHandler.escape;
    keyHandler.escape = function(evt)
    {
    	ui.hideDialog();
    	keyHandleEscape.apply(this, arguments);
    };

    // Ignores enter keystroke. Remove this line if you want the
    // enter keystroke to stop editing.
    keyHandler.enter = function() {};
    keyHandler.bindKey(8, function() { graph.foldCells(true); }); // Backspace
    keyHandler.bindKey(13, function() { graph.foldCells(false); }); // Enter
    keyHandler.bindKey(33, function() { graph.exitGroup(); }); // Page Up
    keyHandler.bindKey(34, function() { graph.enterGroup(); }); // Page Down
    keyHandler.bindKey(36, function() { graph.home(); }); // Home
    keyHandler.bindKey(35, function() { graph.refresh(); }); // End
    keyHandler.bindKey(37, function() { nudge(37); }); // Left arrow
    keyHandler.bindKey(38, function() { nudge(38); }); // Up arrow
    keyHandler.bindKey(39, function() { nudge(39); }); // Right arrow
    keyHandler.bindKey(40, function() { nudge(40); }); // Down arrow
    keyHandler.bindKey(113, function() { graph.startEditingAtCell(); });
    bindAction(46, false, 'delete'); // Delete
    bindAction(82, true, 'rotate'); // Ctrl+R
    bindAction(83, true, 'save'); // Ctrl+S
    bindAction(83, true, 'saveAs', true); // Ctrl+Shift+S
    bindAction(107, false, 'zoomIn'); // Add
    bindAction(109, false, 'zoomOut'); // Subtract
    bindAction(65, true, 'selectAll'); // Ctrl+A
    bindAction(86, true, 'selectVertices', true); // Ctrl+Shift+V
    bindAction(69, true, 'selectEdges', true); // Ctrl+Shift+E
    bindAction(69, true, 'export'); // Ctrl+Shift+E
    bindAction(66, true, 'toBack'); // Ctrl+B
    bindAction(70, true, 'toFront'); // Ctrl+F
    bindAction(68, true, 'duplicate'); // Ctrl+D
    bindAction(90, true, 'undo'); // Ctrl+Z
    bindAction(89, true, 'redo'); // Ctrl+Y
    bindAction(88, true, 'cut'); // Ctrl+X
    bindAction(67, true, 'copy'); // Ctrl+C
    bindAction(81, true, 'connect'); // Ctrl+Q
    bindAction(86, true, 'paste'); // Ctrl+V
    bindAction(71, true, 'group'); // Ctrl+G
    bindAction(71, true, 'grid', true); // Ctrl+Shift+G
    bindAction(85, true, 'ungroup'); // Ctrl+U
    bindAction(112, false, 'about'); // F1

    return keyHandler;
};


text:
require 'jeweler'
require 'yard'

YARD::Rake::YardocTask.new

Jeweler::Tasks.new do |gem|
  gem.name        = 'ts-datetime-delta'
  gem.summary     = 'Thinking Sphinx - Datetime Deltas'
  gem.description = 'Manage delta indexes via datetime columns for Thinking Sphinx'
  gem.email       = "pat@freelancing-gods.com"
  gem.homepage    = "http://github.com/freelancing-god/ts-datetime-delta"
  gem.authors     = ["Pat Allan"]
  gem.license     = 'MIT'

  gem.add_dependency 'thinking-sphinx', '>= 1.3.8'

  gem.add_development_dependency "rspec",    ">= 1.2.9"
  gem.add_development_dependency "yard",     ">= 0"
  gem.add_development_dependency "cucumber", ">= 0"

  gem.files = FileList[
    'lib/**/*.rb',
    'LICENSE',
    'README.textile'
  ]
  gem.test_files = FileList[
    'features/**/*.rb',
    'features/**/*.feature',
    'features/support/database.example.yml',
    'spec/**/*'
  ]
end

Jeweler::GemcutterTasks.new


text:
package org.keycloak.models.sessions.infinispan.events;

/**
 * @author Marek Posolda
 */
public class RealmRemovedSessionEvent extends SessionClusterEvent {
}


text:
namespace CommandProcessor.Buffer.UnitTests
{
	sealed class EchoEvent : Event
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="EchoEvent"/> class.
		/// </summary>
		public EchoEvent()
		{
			Key = new Key(new Identifier(MessageIdentifier.Echo, MessageType.EventType));
		}

		/// <summary>
		/// Gets the payload.
		/// </summary>
		/// <value>The payload.</value>
		public byte[] Payload
		{
			get { return GetByteArray(Store, 2, Store.Length - 2); }
		}
	}
}


text:
# encoding: utf-8

require "bundler/setup"   # Needed to setup path to the "y2r" binary.

require_relative "command"
require_relative "../messages"
require_relative "../threading"

module Commands
  class RubyCommand < Command
    def apply(mod)
      reset_counts(mod)

      action "Creating result directory" do
        prepare_result_dir(mod)
      end

      save_env do
        # This makes private symbols in modules visible. Needed by some
        # testsuites.
        ENV["Y2ALLGLOBAL"] = "1"

        Dir.chdir mod.work_dir do
          Threading.in_parallel Dir["**/*.y{cp,h}{.in,}"] do |file|
            next if mod.excluded.include?(file)

            converted_file = mod.include_wrappers[file] || file
            work_file = "#{mod.work_dir}/#{converted_file}"
            FileUtils.rm "#{mod.result_dir}/#{file}"
            result_file = "#{mod.result_dir}/#{file}".sub(/\.y(cp|h)$/, ".rb").sub(/\.y(cp|h)\.in$/, ".rb.in")

            options = {}

            is_in_include_dir = mod.exports.any? do |export|
              file.start_with?("#{export}/include")
            end
            is_yh = file.end_with?(".yh") || file.end_with?(".yh.in")

            options[:is_include] = is_in_include_dir || is_yh

            if options[:is_include]
              if mod.include_wrappers[file]
                # We assume that if an include file isn't in the include dir,
                # the wrapper file includes it just using its base name. This
                # seems to be true for all such include files we have.
                options[:extracted_file] = if is_in_include_dir
                  file.sub(/^.*\/include\//, "")
                else
                  File.basename(file)
                end
              end
            end

            options[:reported_file] = file

            options[:export_private] = mod.export_private.include?(file)

            file_action "Converting", :y2r, mod, file do
              create_rb mod, work_file, result_file, options
            end

            next unless File.exists?(result_file)

            file_action "Checking", :ruby, mod, file do
              check_rb result_file
            end
          end
        end
      end

      @counts
    end

    private

    def prepare_result_dir(mod)
      FileUtils.mkdir_p File.dirname(mod.result_dir)
      FileUtils.rm_rf mod.result_dir
      FileUtils.copy_entry(mod.work_dir, mod.result_dir)

      #clean all compiled ybc files created by ybc step
      Dir["#{mod.result_dir}/**/*.ybc"].each do |file|
        FileUtils.rm file
      end
    end

    def create_rb(mod, file, output_file, options)
      cmd = ["y2r"]

      mod.ruby_module_paths(file).each do |module_path|
        cmd << "--module-path" << module_path
      end

      mod.ruby_include_paths(file).each do |include_path|
        cmd << "--include-path" << include_path
      end

      cmd << "--as-include-file" if options[:is_include]
      cmd << "--extract-file" << options[:extracted_file] if options[:extracted_file]
      cmd << "--report-file" << options[:reported_file] if options[:reported_file]
      cmd << "--export-private" if options[:export_private]

      cmd << file
      cmd << output_file

      Cheetah.run cmd
    end

    def check_rb(file)
      Cheetah.run "ruby", "-c", file
    end
  end
end


text:
using ConoHaNet;
using ConoHaNet.Objects.Database;
using net.openstack.Core.Exceptions.Response;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YamlDotNet.Serialization;

namespace ConoHaWebApplication
{

    public partial class DatabasePage : AbstractConoHaPage
    {

        protected void Page_Load(object sender, EventArgs e)
        {

            var serializer = new Serializer();
            var writer = new StringWriter();

            // DbService
            IEnumerable<DbService> dbServices = null;
            try
            {
                dbServices = osm.ListDbServices();
                if (dbServices.Count() == 0)
                {
                    ltSummary.Text = "no db service.";
                }
                else
                {
                    ltSummary.Text = dbServices.Count() + " database(s)";

                    foreach (var dbService in dbServices)
                    {
                        writer.Write("===================================\n");
                        serializer.Serialize(writer, dbService);
                    }
                    ltDbService.Text = writer.ToString();
                }
            }
            catch (ResponseException re)
            {
                if (re.Response.StatusCode == System.Net.HttpStatusCode.Forbidden)
                    ltDbService.Text = "Forbidden";
            }
            finally
            {
                writer.GetStringBuilder().Clear();
            }

            // Databases
            IEnumerable<Database> databases = null;
            try
            {
                databases = osm.ListDatabases();
                foreach (var db in databases)
                {
                    writer.Write("===================================\n");
                    var database = osm.GetDatabase(db.Id);
                    serializer.Serialize(writer, database);
                }
                ltDatabases.Text = writer.ToString();
            }
            catch (ResponseException re)
            {
                if (re.Response.StatusCode == System.Net.HttpStatusCode.Forbidden)
                    ltDatabases.Text = "Forbidden";
            }
            finally
            {
                writer.GetStringBuilder().Clear();
            }

        }
    }
}


text:
RunAbove Python SDK examples
============================

This folder contains demo applications that uses the Python SDK for the
RunAbove API.

Facecat
-------

A small image hosting web application that uses Object Storage as backend for
images.

Walkthrough
-----------

A Python script that shows how to list instances, containers, SSH keys and more
as well as creating and deleting instances.


text:
require 'cuffbase'
require 'yaml'

module CuffSert
  class StackConfig
    attr_accessor :aws_region, :stackname, :selected_path, :op_mode, :stack_uri
    attr_accessor :suffix, :parameters, :tags

    def initialize
      @aws_region = ENV['AWS_REGION'] || ENV['AWS_DEFAULT_REGION'] || 'us-east-1'
      @selected_path = []
      @op_mode = :normal
      @parameters = {}
      @tags = {}
    end

    def append_path(lmnt)
      @selected_path << lmnt
    end

    def update_from(metadata)
      @stackname = metadata[:stackname] || @stackname
      @suffix = metadata[:suffix] || @suffix
      @parameters.merge!(metadata[:parameters] || {})
      @tags.merge!(metadata[:tags] || {})
      self
    end

    def stackname
      @stackname || (@selected_path + [*@suffix]).join('-')
    end
  end

  def self.validate_and_urlify(stack_path)
    if stack_path =~ /^[A-Za-z0-9]+:/
      stack_uri = URI.parse(stack_path)
    else
      normalized = File.expand_path(stack_path)
      unless File.exist?(normalized)
        raise "Local file #{normalized} does not exist"
      end
      stack_uri = URI.join('file:///', normalized)
    end
    unless ['s3', 'file'].include?(stack_uri.scheme)
      raise "Uri #{stack_uri.scheme} is not supported"
    end
    stack_uri
  end

  def self.load_config(io)
    config = YAML.load(io)
    raise 'config does not seem to be a YAML hash?' unless config.is_a?(Hash)
    config = symbolize_keys(config)
    format = config.delete(:format)
    raise 'Please include Format: v1' if format.nil? || format.downcase != 'v1'
    config
  end

  def self.meta_for_path(metadata, path, target = StackConfig.new)
    target.update_from(metadata)
    candidate, *path = path
    key = candidate || metadata[:defaultpath]
    variants = metadata[:variants]
    if key.nil?
      raise "No DefaultPath found for #{variants.keys}" unless variants.nil?
      return target
    end
    target.append_path(key)

    raise "Missing variants section as expected by #{key}" if variants.nil?
    new_meta = variants[key.to_sym]
    raise "#{key.inspect} not found in variants" if new_meta.nil?
    self.meta_for_path(new_meta, path, target)
  end

  def self.build_meta(cli_args)
    default = self.meta_defaults(cli_args)
    config = self.metadata_if_present(cli_args)
    meta = CuffSert.meta_for_path(config, cli_args[:selector], default)
    CuffSert.cli_overrides(meta, cli_args)
  end

  private_class_method

  def self.meta_defaults(cli_args)
    stack_path = (cli_args[:stack_path] || [])[0]
    if stack_path && File.exists?(stack_path)
      nil_params = CuffBase.empty_from_template(open(stack_path))
    else
      nil_params = {}
    end
    default = StackConfig.new
    default.update_from({:parameters => nil_params})
    default.suffix = File.basename(cli_args[:metadata], '.yml') if cli_args[:metadata]
    default
  end

  def self.metadata_if_present(cli_args)
    if cli_args[:metadata]
      io = open(cli_args[:metadata])
      CuffSert.load_config(io)
    else
      {}
    end
  end

  def self.cli_overrides(meta, cli_args)
    meta.update_from(cli_args[:overrides])
    meta.aws_region = cli_args[:aws_region] || meta.aws_region
    meta.op_mode = cli_args[:op_mode] || meta.op_mode
    if (stack_path = (cli_args[:stack_path] || [])[0])
      meta.stack_uri = CuffSert.validate_and_urlify(stack_path)
    end
    meta
  end

  def self.symbolize_keys(hash)
    hash.each_with_object({}) do |(k, v), h|
      k = k.downcase.to_sym
      if k == :tags || k == :parameters
        h[k] = v.each_with_object({}) { |e, h| h[e['Name']] = e['Value'] }
      else
        h[k] = v.is_a?(Hash) ? symbolize_keys(v) : v
      end
    end
  end
end


text:
package controller;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import model.CityMap;
import view.Window;
import xml.XMLDeserializer;
import xml.XMLException;

/**
 * Initial state of the controller, basically set when the application is
 * launched Extends DefaultState abstract class
 */
public class InitState extends DefaultState {
	// Initial State

	@Override
	public void loadMap(CityMap map, Window window) {
		try {
			XMLDeserializer.loadMap(map);
			Controller.setCurrentState(Controller.cityMapState);
			window.drawMap(map);
		} catch (ParserConfigurationException e) {
			e.printStackTrace();
		} catch (SAXException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (XMLException e) {
			e.printStackTrace();
		}
	}

	@Override
	public void updateVue(Window window) {
		window.disableAll();
		window.enableLoadMap(true);
	}

}


text:
require 'neology/property_mixin/class_methods'
require 'neology/utils/data_type_converter'

module Neology

  module PropertyMixin

    def []= key, value
      old_value = self.inner_node["data"][key.to_s]
      if (value != old_value)
        inner_node["data"][key.to_s] = value
        $neo_server.set_node_properties(inner_node, self.inner_node["data"])
        self.class.update_node_index(self.inner_node, key.to_s, old_value, value) if self.class.is_indexed?(key)
      end
    end

    def [] key
      self.inner_node["data"] = $neo_server.get_node_properties(self.inner_node)
      value                   = self.inner_node["data"][key.to_s]
      options = self.class.properties_hash[key.to_sym]
      value = Neology::DataTypeConverter.convert_to_native value, options[:type] if (options && options[:type])
      value
    end

  end

end


text:
class Hunspell;
struct SpellCheckResult;

namespace file_util {
class MemoryMappedFile;
}

// TODO(morrita): Needs reorg with SpellCheckProvider.
// See http://crbug.com/73699.
class SpellCheck : public content::RenderProcessObserver {
 public:
  SpellCheck();
  virtual ~SpellCheck();

  void Init(base::PlatformFile file,
            const std::vector<std::string>& custom_words,
            const std::string& language);

  // SpellCheck a word.
  // Returns true if spelled correctly, false otherwise.
  // If the spellchecker failed to initialize, always returns true.
  // The |tag| parameter should either be a unique identifier for the document
  // that the word came from (if the current platform requires it), or 0.
  // In addition, finds the suggested words for a given word
  // and puts them into |*optional_suggestions|.
  // If the word is spelled correctly, the vector is empty.
  // If optional_suggestions is NULL, suggested words will not be looked up.
  // Note that Doing suggest lookups can be slow.
  bool SpellCheckWord(const char16* in_word,
                      int in_word_len,
                      int tag,
                      int* misspelling_start,
                      int* misspelling_len,
                      std::vector<string16>* optional_suggestions);

  // SpellCheck a paragrpah.
  // Returns true if |text| is correctly spelled, false otherwise.
  // If the spellchecker failed to initialize, always returns true.
  // The |tag| parameter should either be a unique identifier for the document,
  // or 0.
  bool SpellCheckParagraph(const string16& text,
                           int tag,
                           std::vector<SpellCheckResult>* results);

  // Find a possible correctly spelled word for a misspelled word. Computes an
  // empty string if input misspelled word is too long, there is ambiguity, or
  // the correct spelling cannot be determined.
  // NOTE: If using the platform spellchecker, this will send a *lot* of sync
  // IPCs. We should probably refactor this if we ever plan to take it out from
  // behind its command line flag.
  string16 GetAutoCorrectionWord(const string16& word, int tag);

  // Returns true if the spellchecker delegate checking to a system-provided
  // checker on the browser process.
  bool is_using_platform_spelling_engine() const {
    return is_using_platform_spelling_engine_;
  }

 private:
  FRIEND_TEST_ALL_PREFIXES(SpellCheckTest, GetAutoCorrectionWord_EN_US);

  // RenderProcessObserver implementation:
  virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;

  // Message handlers.
  void OnInit(IPC::PlatformFileForTransit bdict_file,
              const std::vector<std::string>& custom_words,
              const std::string& language,
              bool auto_spell_correct);
  void OnWordAdded(const std::string& word);
  void OnEnableAutoSpellCorrect(bool enable);

  // Initializes the Hunspell dictionary, or does nothing if |hunspell_| is
  // non-null. This blocks.
  void InitializeHunspell();

  // If there is no dictionary file, then this requests one from the browser
  // and does not block. In this case it returns true.
  // If there is a dictionary file, but Hunspell has not been loaded, then
  // this loads Hunspell.
  // If Hunspell is already loaded, this does nothing. In both the latter cases
  // it returns false, meaning that it is OK to continue spellchecking.
  bool InitializeIfNeeded();

  // When called, relays the request to check the spelling to the proper
  // backend, either hunspell or a platform-specific backend.
  bool CheckSpelling(const string16& word_to_check, int tag);

  // When called, relays the request to fill the list with suggestions to
  // the proper backend, either hunspell or a platform-specific backend.
  void FillSuggestionList(const string16& wrong_word,
                          std::vector<string16>* optional_suggestions);

  // Returns whether or not the given word is a contraction of valid words
  // (e.g. "word:word").
  bool IsValidContraction(const string16& word, int tag);

  // Add the given custom word to |hunspell_|.
  void AddWordToHunspell(const std::string& word);

  // We memory-map the BDict file.
  scoped_ptr<file_util::MemoryMappedFile> bdict_file_;

  // The hunspell dictionary in use.
  scoped_ptr<Hunspell> hunspell_;

  base::PlatformFile file_;
  std::vector<std::string> custom_words_;

  // Represents character attributes used for filtering out characters which
  // are not supported by this SpellCheck object.
  SpellcheckCharAttribute character_attributes_;

  // Represents word iterators used in this spellchecker. The |text_iterator_|
  // splits text provided by WebKit into words, contractions, or concatenated
  // words. The |contraction_iterator_| splits a concatenated word extracted by
  // |text_iterator_| into word components so we can treat a concatenated word
  // consisting only of correct words as a correct word.
  SpellcheckWordIterator text_iterator_;
  SpellcheckWordIterator contraction_iterator_;

  // Remember state for auto spell correct.
  bool auto_spell_correct_turned_on_;

  // True if a platform-specific spellchecking engine is being used,
  // and False if hunspell is being used.
  bool is_using_platform_spelling_engine_;

  // This flags whether we have ever been initialized, or have asked the browser
  // for a dictionary. The value indicates whether we should request a
  // dictionary from the browser when the render view asks us to check the
  // spelling of a word.
  bool initialized_;

  DISALLOW_COPY_AND_ASSIGN(SpellCheck);
};

#endif  // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_H_


text:
Kunstmaan Bundles CMS
=====================

The Kunstmaan Bundles CMS is an advanced yet user-friendly content management system, based on the full stack Symfony2 framework combined with a whole host of community bundles. It provides a full featured, multi-language CMS system with an innovative page and form assembling process, versioning, workflow, translation and media managers and much more.

Please refer to the documentation at [http://bundles.kunstmaan.be/getting-started](http://bundles.kunstmaan.be/getting-started) to get your CMS up and running.

![Screenshot](http://bundles.kunstmaan.be/uploads/media/521f4ef030de9.png?7dd5040)

### Browser support

we currently always try to support at least the 2 last versions of Chrome / Firefox / Safari and IE9 or up.

Enjoy!

[![Build Status](https://travis-ci.org/Kunstmaan/KunstmaanBundlesCMS.png?branch=master)](http://travis-ci.org/KunstmaanKunstmaanBundlesCMS)
[![Total Downloads](https://poser.pugx.org/kunstmaan/bundles-cms/downloads.png)](https://packagist.org/packages/kunstmaan/bundles-cms)
[![Latest Stable Version](https://poser.pugx.org/kunstmaan/bundles-cms/v/stable.png)](https://packagist.org/packages/kunstmaan/bundles-cms)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Kunstmaan/KunstmaanBundlesCMS/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Kunstmaan/KunstmaanBundlesCMS/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/Kunstmaan/KunstmaanBundlesCMS/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Kunstmaan/KunstmaanBundlesCMS/?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/313ff798-9e67-4c0c-9a04-ee4d5cdde1e6/mini.png)](https://insight.sensiolabs.com/projects/313ff798-9e67-4c0c-9a04-ee4d5cdde1e6)


text:
int main(int argc, char **argv)
{
	printf(" other things %d\n", values(6));
	return 0;
}


text:
package org.apache.directory.server.core;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.apache.directory.api.ldap.model.exception.LdapException;
import org.apache.directory.server.core.api.InterceptorEnum;
import org.apache.directory.server.core.api.interceptor.BaseInterceptor;
import org.apache.directory.server.core.api.interceptor.Interceptor;
import org.junit.jupiter.api.Test;

public class DefaultDirectoryServiceTest
{
    @Test
    public void testAddAfterExistingInterceptor() throws LdapException
    {
        // given
        final String existingInterceptorName = InterceptorEnum.AUTHENTICATION_INTERCEPTOR.getName();
        DefaultDirectoryService service = new DefaultDirectoryService();

        // when
        service.addAfter( existingInterceptorName, new FooInterceptor() );

        // then
        for ( int i = 0; i < service.getInterceptors().size(); i++ )
        {
            Interceptor interceptor = service.getInterceptors().get( i );

            if ( existingInterceptorName.equals( interceptor.getName() ) )
            {
                final Interceptor nextInterceptor = service.getInterceptors().get( i + 1 );
                assertEquals( "foo", nextInterceptor.getName() );
            }
        }
    }

    @Test
    public void testAddAfterForUnknownPredecessor() throws LdapException
    {
        // given
        DefaultDirectoryService service = new DefaultDirectoryService();

        // when
        service.addAfter( "-unknown-", new FooInterceptor() );

        // then
        final Interceptor lastInterceptor = service.getInterceptors()
            .get( service.getInterceptors().size() - 1 );
        assertEquals( "foo", lastInterceptor.getName() );
    }

    static class FooInterceptor extends BaseInterceptor
    {

        @Override
        public String getName()
        {
            return "foo";
        }
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>CxImage: Class Members - Typedefs</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">

Main Page

Modules

Classes

Files

Class List

Class Members

All

Functions

Variables

Typedefs

Enumerations

Enumerator

CXTEXTINFO
: CxImage

<address style="text-align: right;">Generated on Thu Jan 31 20:11:32 2008 for CxImage by

 1.5.4 </address>


text:
package com.joeburdick.redditsounds.data.model.reddit;

import com.google.gson.annotations.SerializedName;

public class LinkData {
    @SerializedName("data") public Link link;
}


text:
module ListArticlesHelper
  def username_for_user_id user_id
    t = User.find(user_id)
    if t
      t.username
    else
      ""
    end
  end
end


text:
namespace juce
{

AffineTransform::AffineTransform (float m00, float m01, float m02,
                                  float m10, float m11, float m12) noexcept
 :  mat00 (m00), mat01 (m01), mat02 (m02),
    mat10 (m10), mat11 (m11), mat12 (m12)
{
}

bool AffineTransform::operator== (const AffineTransform& other) const noexcept
{
    return mat00 == other.mat00
        && mat01 == other.mat01
        && mat02 == other.mat02
        && mat10 == other.mat10
        && mat11 == other.mat11
        && mat12 == other.mat12;
}

bool AffineTransform::operator!= (const AffineTransform& other) const noexcept
{
    return ! operator== (other);
}

//==============================================================================
bool AffineTransform::isIdentity() const noexcept
{
    return mat01 == 0.0f
        && mat02 == 0.0f
        && mat10 == 0.0f
        && mat12 == 0.0f
        && mat00 == 1.0f
        && mat11 == 1.0f;
}

JUCE_DECLARE_DEPRECATED_STATIC (const AffineTransform AffineTransform::identity (1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);)

//==============================================================================
AffineTransform AffineTransform::followedBy (const AffineTransform& other) const noexcept
{
    return { other.mat00 * mat00 + other.mat01 * mat10,
             other.mat00 * mat01 + other.mat01 * mat11,
             other.mat00 * mat02 + other.mat01 * mat12 + other.mat02,
             other.mat10 * mat00 + other.mat11 * mat10,
             other.mat10 * mat01 + other.mat11 * mat11,
             other.mat10 * mat02 + other.mat11 * mat12 + other.mat12 };
}

AffineTransform AffineTransform::translated (float dx, float dy) const noexcept
{
    return { mat00, mat01, mat02 + dx,
             mat10, mat11, mat12 + dy };
}

AffineTransform AffineTransform::translation (float dx, float dy) noexcept
{
    return { 1.0f, 0.0f, dx,
             0.0f, 1.0f, dy };
}

AffineTransform AffineTransform::withAbsoluteTranslation (float tx, float ty) const noexcept
{
    return { mat00, mat01, tx,
             mat10, mat11, ty };
}

AffineTransform AffineTransform::rotated (float rad) const noexcept
{
    auto cosRad = std::cos (rad);
    auto sinRad = std::sin (rad);

    return { cosRad * mat00 - sinRad * mat10,
             cosRad * mat01 - sinRad * mat11,
             cosRad * mat02 - sinRad * mat12,
             sinRad * mat00 + cosRad * mat10,
             sinRad * mat01 + cosRad * mat11,
             sinRad * mat02 + cosRad * mat12 };
}

AffineTransform AffineTransform::rotation (float rad) noexcept
{
    auto cosRad = std::cos (rad);
    auto sinRad = std::sin (rad);

    return { cosRad, -sinRad, 0,
             sinRad,  cosRad, 0 };
}

AffineTransform AffineTransform::rotation (float rad, float pivotX, float pivotY) noexcept
{
    auto cosRad = std::cos (rad);
    auto sinRad = std::sin (rad);

    return { cosRad, -sinRad, -cosRad * pivotX +  sinRad * pivotY + pivotX,
             sinRad,  cosRad, -sinRad * pivotX + -cosRad * pivotY + pivotY };
}

AffineTransform AffineTransform::rotated (float angle, float pivotX, float pivotY) const noexcept
{
    return followedBy (rotation (angle, pivotX, pivotY));
}

AffineTransform AffineTransform::scaled (float factorX, float factorY) const noexcept
{
    return { factorX * mat00, factorX * mat01, factorX * mat02,
             factorY * mat10, factorY * mat11, factorY * mat12 };
}

AffineTransform AffineTransform::scaled (float factor) const noexcept
{
    return { factor * mat00, factor * mat01, factor * mat02,
             factor * mat10, factor * mat11, factor * mat12 };
}

AffineTransform AffineTransform::scale (float factorX, float factorY) noexcept
{
    return { factorX, 0, 0, 0, factorY, 0 };
}

AffineTransform AffineTransform::scale (float factor) noexcept
{
    return { factor, 0, 0, 0, factor, 0 };
}

AffineTransform AffineTransform::scaled (float factorX, float factorY,
                                         float pivotX, float pivotY) const noexcept
{
    return { factorX * mat00, factorX * mat01, factorX * mat02 + pivotX * (1.0f - factorX),
             factorY * mat10, factorY * mat11, factorY * mat12 + pivotY * (1.0f - factorY) };
}

AffineTransform AffineTransform::scale (float factorX, float factorY,
                                        float pivotX, float pivotY) noexcept
{
    return { factorX, 0, pivotX * (1.0f - factorX),
             0, factorY, pivotY * (1.0f - factorY) };
}

AffineTransform AffineTransform::shear (float shearX, float shearY) noexcept
{
    return { 1.0f,   shearX, 0,
             shearY, 1.0f,   0 };
}

AffineTransform AffineTransform::sheared (float shearX, float shearY) const noexcept
{
    return { mat00 + shearX * mat10,
             mat01 + shearX * mat11,
             mat02 + shearX * mat12,
             mat10 + shearY * mat00,
             mat11 + shearY * mat01,
             mat12 + shearY * mat02 };
}

AffineTransform AffineTransform::verticalFlip (float height) noexcept
{
    return { 1.0f,  0.0f, 0.0f,
             0.0f, -1.0f, height };
}

AffineTransform AffineTransform::inverted() const noexcept
{
    double determinant = (mat00 * mat11 - mat10 * mat01);

    if (determinant != 0)
    {
        determinant = 1.0 / determinant;

        auto dst00 = (float) ( mat11 * determinant);
        auto dst10 = (float) (-mat10 * determinant);
        auto dst01 = (float) (-mat01 * determinant);
        auto dst11 = (float) ( mat00 * determinant);

        return { dst00, dst01, -mat02 * dst00 - mat12 * dst01,
                 dst10, dst11, -mat02 * dst10 - mat12 * dst11 };
    }

    // singularity..
    return *this;
}

bool AffineTransform::isSingularity() const noexcept
{
    return (mat00 * mat11 - mat10 * mat01) == 0.0f;
}

AffineTransform AffineTransform::fromTargetPoints (float x00, float y00,
                                                   float x10, float y10,
                                                   float x01, float y01) noexcept
{
    return { x10 - x00, x01 - x00, x00,
             y10 - y00, y01 - y00, y00 };
}

AffineTransform AffineTransform::fromTargetPoints (float sx1, float sy1, float tx1, float ty1,
                                                   float sx2, float sy2, float tx2, float ty2,
                                                   float sx3, float sy3, float tx3, float ty3) noexcept
{
    return fromTargetPoints (sx1, sy1, sx2, sy2, sx3, sy3)
            .inverted()
            .followedBy (fromTargetPoints (tx1, ty1, tx2, ty2, tx3, ty3));
}

bool AffineTransform::isOnlyTranslation() const noexcept
{
    return mat01 == 0.0f
        && mat10 == 0.0f
        && mat00 == 1.0f
        && mat11 == 1.0f;
}

float AffineTransform::getScaleFactor() const noexcept
{
    return (std::abs (mat00) + std::abs (mat11)) / 2.0f;
}

} // namespace juce


text:
#ifndef LIBWDS_RTSP_REPLY_H_
#define LIBWDS_RTSP_REPLY_H_

#include "libwds/rtsp/message.h"

namespace wds {
namespace rtsp {

class Reply: public Message {
 public:
  explicit Reply(int response_code = STATUS_OK);
  ~Reply() override;

  int response_code() const { return response_code_; }
  void set_response_code(int response_code) { response_code_ = response_code; }

  std::string ToString() const override;

 private:
  int response_code_;
};

}  // namespace rtsp
}  // namespace wds

#endif  // LIBWDS_RTSP_REPLY_H_


text:
<?php

/* !
 * HybridAuth
 * http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
 * (c) 2009-2015, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
 */

/**
 * Hybrid_Providers_Foursquare provider adapter based on OAuth2 protocol
 *
 * http://hybridauth.sourceforge.net/userguide/IDProvider_info_Foursquare.html
 */

/**
 * Howto define profile photo size:
 * - add params key into hybridauth config
 * ...
 *    "Foursquare" => array (
 *       "enabled" => true,
 *       "keys"    => ...,
 *       "params" => array( "photo_size" => "16x16" )
 *   	),
 * ...
 * - list of valid photo_size values is described here https://developer.foursquare.com/docs/responses/photo.html
 * - default photo_size is 100x100
 */
class Hybrid_Providers_Foursquare extends Hybrid_Provider_Model_OAuth2 {

	private static $apiVersion = array("v" => "20120610");
	private static $defPhotoSize = "100x100";

	/**
	 * {@inheritdoc}
	 */
	function initialize() {
		parent::initialize();

		// Provider apis end-points
		$this->api->api_base_url = "https://api.foursquare.com/v2/";
		$this->api->authorize_url = "https://foursquare.com/oauth2/authenticate";
		$this->api->token_url = "https://foursquare.com/oauth2/access_token";

		$this->api->sign_token_name = "oauth_token";
	}

	/**
	 * {@inheritdoc}
	 */
	function getUserProfile() {
		$data = $this->api->api("users/self", "GET", Hybrid_Providers_Foursquare::$apiVersion);

		if (!isset($data->response->user->id)) {
			throw new Exception("User profile request failed! {$this->providerId} returned an invalid response.", 6);
		}

		$data = $data->response->user;

		$this->user->profile->identifier = $data->id;
		$this->user->profile->firstName = $data->firstName;
		$this->user->profile->lastName = $data->lastName;
		$this->user->profile->displayName = $this->buildDisplayName($this->user->profile->firstName, $this->user->profile->lastName);
		$this->user->profile->photoURL = $this->buildPhotoURL($data->photo->prefix, $data->photo->suffix);
		$this->user->profile->profileURL = "https://www.foursquare.com/user/" . $data->id;
		$this->user->profile->gender = $data->gender;
		$this->user->profile->city = $data->homeCity;
		$this->user->profile->email = $data->contact->email;
		$this->user->profile->emailVerified = $data->contact->email;

		return $this->user->profile;
	}

	/**
	 * {@inheritdoc}
	 */
	function getUserContacts() {
		// refresh tokens if needed
		$this->refreshToken();

		//
		$response = array();
		$contacts = array();
		try {
			$response = $this->api->api("users/self/friends", "GET", Hybrid_Providers_Foursquare::$apiVersion);
		} catch (LinkedInException $e) {
			throw new Exception("User contacts request failed! {$this->providerId} returned an error: $e");
		}

		if (isset($response) && $response->meta->code == 200) {
			foreach ($response->response->friends->items as $contact) {
				$uc = new Hybrid_User_Contact();
				//
				$uc->identifier = $contact->id;
				//$uc->profileURL		= ;
				//$uc->webSiteURL		= ;
				$uc->photoURL = $this->buildPhotoURL($contact->photo->prefix, $contact->photo->suffix);
				$uc->displayName = $this->buildDisplayName((isset($contact->firstName) ? ($contact->firstName) : ("")), (isset($contact->lastName) ? ($contact->lastName) : ("")));
				//$uc->description	= ;
				$uc->email = (isset($contact->contact->email) ? ($contact->contact->email) : (""));
				//
				$contacts[] = $uc;
			}
		}
		return $contacts;
	}

	/**
	 * {@inheritdoc}
	 */
	private function buildDisplayName($firstName, $lastName) {
		return trim($firstName . " " . $lastName);
	}

	private function buildPhotoURL($prefix, $suffix) {
		if (isset($prefix) && isset($suffix)) {
			return $prefix . ((isset($this->config["params"]["photo_size"])) ? ($this->config["params"]["photo_size"]) : (Hybrid_Providers_Foursquare::$defPhotoSize)) . $suffix;
		}
		return ("");
	}

}


text:
'use strict';

// MODULES //

var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
var snanmean = require( './snanmean.js' );
var ndarray = require( './ndarray.js' );

// MAIN //

setReadOnly( snanmean, 'ndarray', ndarray );

// EXPORTS //

module.exports = snanmean;


text:
cask :v1 => 'speeds-at-ver' do
  version :latest
  sha256 :no_check

  url 'https://raw.github.com/orta/GamesScreenSaver/master/web/SpeedS@ver.saver.zip'
  name 'SpeedS@ver'
  homepage 'https://github.com/orta/SpeedS-ver'
  license :mit

  screen_saver 'SpeedS@ver.saver'
end