text:
<?php
declare(strict_types=1);

namespace Parsemd\Parsemd;

use Parsemd\Parsemd\Elements\InlineElement;
use Aidantwoods\Sets\Sets\StringSet;

abstract class DisplayAsHtml
{
    protected const SAFE_SCHEMES = [
        'http',
        'https',
        'mailto',
        'irc',
        'ircs',
        'git',
        'ssh',
        'ftp',
        'ftps',
        'news',
        'steam',
    ];

    protected static function safeSchemes() : StringSet
    {
        static $StringSet;

        if ( ! isset($StringSet))
        {
            $StringSet = new StringSet;
            $StringSet->addArray(self::SAFE_SCHEMES);
        }

        return $StringSet;
    }

    public static function reduceInlinesToText(array $Elements) : string
    {
        $text = '';

        foreach ($Elements as $Element)
        {
            if ($Element->getContent()->count() > 0)
            {
                $text .= (string) $Element->getContent();
            }

            $text .= self::reduceInlinesToText($Element->getElements());
        }

        return $text;
    }

    public static function elements(array $Elements) : string
    {
        $string = '';

        $n = count($Elements);

        foreach ($Elements as $i => $Element)
        {
            if ($Element->getType() === 'hr' or $Element->getType() === 'br')
            {
                $string .= '<'.$Element->getType().' />'.($i < $n -1 ? "\n" : '');
                continue;
            }

            if ($Element->getType() === 'a')
            {
                self::safeSchemeSanitise($Element, 'href');
            }

            if ($Element->getType() === 'img')
            {
                self::safeSchemeSanitise($Element, 'src');
                $Element->setAttribute('alt', self::reduceInlinesToText($Element->getElements()));
                $Element->dumpElements();
                $Element->setAttribute('title', $Element->getAttribute('title'));
            }

            if ($Element->getType() !== 'text')
            {
                $string .= '<'.$Element->getType();

                if ($Element->getType()[0] !== 'h')
                {
                    $string .= (function () use ($Element)
                    {
                        $texts = [];

                        foreach ($Element->getAttributes() as $key => $value)
                        {
                            if ( ! isset($value))
                            {
                                continue;
                            }

                            $texts[] = "$key=\"".self::escape($value).'"';
                        }

                        return (empty($texts) ? '' : ' '.implode(' ', $texts));
                    })();
                }

                $string .= ($Element->getType() === 'img' ? ' /' : '').'>';
            }

            if ( ! $Element instanceof InlineElement)
            {
                $string .= self::escape((string) $Element->getContent(), true);
            }
            elseif ($Element->getContent()->count() > 0)
            {
                $string .= self::escape(
                    (string) $Element->getContent(),
                    true
                );
            }

            $string .= self::elements($Element->getElements());

            if ( ! in_array($Element->getType(), ['text', 'img'], true))
            {
                $string .= '</'.$Element->getType().">";
            }
        }

        return $string;
    }

    protected static function escape(
        string $string,
        $allowQuotes = false
    ) : string
    {
        return htmlentities(
            $string,
            $allowQuotes ? ENT_NOQUOTES : ENT_QUOTES,
            'UTF-8'
        );
    }

    /**
     * If the given $attribute does not match a safe scheme, url encode
     * everything except `/` and `#`
     *
     * @param Element $Element
     * @param string $attribute
     */
    protected static function safeSchemeSanitise(
        Element $Element,
        string  $attribute
    ) {
        if (
            ! self::strsiStart(
                $Element->getAttribute($attribute),
                self::safeSchemes()
            )
        ) {
            $Element->setAttribute(
                $attribute,
                preg_replace_callback(
                    '/[^\/#?&=%]++/',
                    function (array $match)
                    {
                        return urlencode($match[0]);
                    },
                    $Element->getAttribute($attribute)
                )
            );

            if ($Element->getAttribute('title') !== null)
            {
                $Element->setAttribute('title', $Element->getAttribute('title'));
            }
        }
    }

    protected static function strsiStart(
        string    $string,
        StringSet $searches
    ) : bool
    {
        $stringLen = strlen($string);

        foreach ($searches as $search)
        {
            $searchLen = strlen($search);

            if ($searchLen > $stringLen)
            {
                return false;
            }
            else
            {
                return (
                    strtolower(substr($string, 0, $searchLen))
                    === strtolower($search)
                );
            }
        }
    }
}


text:
package fr.adrienbrault.idea.symfony2plugin.tests.translation;

import fr.adrienbrault.idea.symfony2plugin.tests.SymfonyLightCodeInsightFixtureTestCase;
import fr.adrienbrault.idea.symfony2plugin.translation.PhpTranslationDomainInspection;
import fr.adrienbrault.idea.symfony2plugin.translation.PhpTranslationKeyInspection;

/**
 * @author Daniel Espendiller <daniel@espendiller.net>
 * @see PhpTranslationKeyInspection
 */
public class PhpTranslationKeyInspectionTest extends SymfonyLightCodeInsightFixtureTestCase {
    public void setUp() throws Exception {
        super.setUp();
        myFixture.copyFileToProject("PhpTranslationInspection.php");
        myFixture.copyFileToProject("symfony.de.yml", "Resources/translations/symfony.de.yml");
        myFixture.copyFileToProject("messages.de.yml", "Resources/translations/messages.de.yml");
    }

    protected String getTestDataPath() {
        return "src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/translation/fixtures";
    }

    public void testThatPhpTransInspectionsAreProvided() {
        assertLocalInspectionContains("test.php", "<?php\n" +
            "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
            "$x->trans('fo<caret>obar', [], 'domain')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('f$o<caret>obar', [], 'domain')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->transChoice('fo<caret>obar', 1, [], 'domain')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->transChoice('f$o<caret>obar', 1, [], 'domain')",
            PhpTranslationKeyInspection.MESSAGE
        );
    }

    public void testThatPhpTransInspectionsAreNotProvidedForKnownTranslations() {
        assertLocalInspectionContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('symfon<caret>y.great')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans(id: 'symfon<caret>y.great')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('symfon<caret>y.great', [], 'symfony')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('symfon<caret>y.great', domain: 'symfony')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->transChoice('symfon<caret>y.great', 1, [], 'symfony')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->transChoice('symfon<caret>y.great', 1, [], 'symfony', null)",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('symfony<caret>_message')",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('symfony<caret>_message', [])",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "$x = 'symfony';\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->trans('symfon<caret>y.great', [], $x)",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "$x = 'symfony';\n" +
                "/** @var $x Symfony\\Component\\Translation\\TranslatorInterface */" +
                "$x->transChoice('symfon<caret>y.great', 1, [], $x)",
            PhpTranslationKeyInspection.MESSAGE
        );
    }

    public void testThatPhpTranslationKeyInspectionsForTranslatableMessageAreProvided() {
        assertLocalInspectionContains("test.php", "<?php\n" +
                "new \\Symfony\\Component\\Translation\\TranslatableMessage('symfon<caret>y.great');",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "new \\Symfony\\Component\\Translation\\TranslatableMessage('symfon<caret>y.great', domain: 'symfony');",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "new \\Symfony\\Component\\Translation\\TranslatableMessage('symfon<caret>y.great', [], 'symfony');",
            PhpTranslationKeyInspection.MESSAGE
        );

        assertLocalInspectionNotContains("test.php", "<?php\n" +
                "new \\Symfony\\Component\\Translation\\TranslatableMessage('symfon<caret>y.great', 1, [], $x);",
            PhpTranslationKeyInspection.MESSAGE
        );
    }
}

redpajama_set_name: RedPajamaGithub


text:
/**
 * Login View Model
 * @viewModel 'ViewModel' as in MVVM (Model-View-ViewModel) pattern, handles bidirectional binding
 * @extends ViewModel
 * @class {LoginViewModel} LoginViewModel
 */
function LoginViewModel() {

    //
    //Private and public field declarations
    //

    /**
     * username
     * @type {string}
     */
    this.username = null;

    /**
     * password
     * @type {string}
     */
    this.password = null;

    /**
     * selected site
     * @type {string}
     */
    this.site = null;

    /**
     * selected site
     * @type {string}
     */
    this.name = null;

    //
    // Private and public method declarations
    //

    /**
     * clear form elements
     * @returns {void|undefined}
     */
    this.clearForm = function () {
        this.username = '';
        this.password = '';
        this.site = 'Germany';
        this.name = '';
    };

    /**
     * create a new login request model
     * @returns {LoginRequestModel}
     */
    this.createLoginRequestModel = function () {
        return new LoginRequestModel(
            this.username,
            this.password,
            this.site
        );
    };

    //
    // i18n, bindings, actions and views
    //

    /**
     * bindings mapping
     * @returns {{}}
     */
    this.getBindings = function () {
        return {
            username: 'usernameInput',
            password: 'passwordInput',
            site: 'siteSelect',
            name: 'nameContainer'
        };
    };

    /**
     * get actions
     * @returns {{}}
     */
    this.getActions = function () {
        // local reference
        var viewModel = this;

        // return mapping
        return {
            loginButton: {
                click: function () {
                    viewModel.getModel().sendLoginRequest();
                }
            },
            clearButton: {
                click: function () {
                    viewModel.clearForm();
                }
            },
            mainButton: {
                click: function () {
                    viewModel.getModel().navigateToMain();
                }
            },
            logoutButton: {
                click: function () {
                    viewModel.getModel().logout();
                }
            }
        };
    };

    //
    // constructor
    //
    (function (self) {

        // extends ViewModel class, 'self' is the constructor parameter of ViewModel, i.e. 'new ViewModel(self)'
        self.extend(ViewModel, self);

    })(this);

}


text:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item
        android:id="@+id/appbar_add"
        android:icon="@drawable/appbar_add_icon"
        android:title="@string/appbar_add"
        app:showAsAction="always" />
</menu>


text:
bool DetoursAttachExitProcess();

/// Stop detouring ExitProcess calls
/// \return true if successful, false otherwise
bool DetoursDetachExitProcess();

// @}

#endif // _DETOUR_EXIT_PROCESS_H_


text:
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <item
        android:id="@+id/new_crime"
        android:icon="@drawable/ic_menu_add"
        android:title="@string/new_crime"
        app:showAsAction="ifRoom|withText"/>

    <item
        android:id="@+id/show_subtitle"
        android:title="@string/show_subtitle"
        app:showAsAction="ifRoom"/>

</menu>


text:
using namespace std;

ExternalPlayer::ExternalPlayer(GameState *state, QStringList arguments)
    : Player(state), arguments(arguments)
{
    process.setReadChannel(QProcess::StandardOutput);
    connect(&process, SIGNAL(readyReadStandardOutput()), this, SLOT(onStdOut()));
    connect(&process, SIGNAL(readyReadStandardError()), this, SLOT(onStdErr()));
    connect(&process, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(onExit(int, QProcess::ExitStatus)));
}

ExternalPlayer::~ExternalPlayer()
{
}

bool ExternalPlayer::init()
{
	bool started;

	cmd = arguments.first();
	arguments.pop_front();
    process.start(cmd, arguments, QIODevice::ReadWrite | QIODevice::Unbuffered);
	started = process.waitForStarted(-1);
	lastTimestamp.start();

	return started;
}

bool ExternalPlayer::cleanup()
{
    process.close();
	return true;
}

void ExternalPlayer::onStdOut()
{
	int elapsed = lastTimestamp.elapsed();
    while(process.canReadLine()) {
        sendMsg(process.readLine().trimmed(), elapsed);
    }
	sendStop();
}

void ExternalPlayer::onStdErr()
{
	cout << process.readAllStandardError().trimmed().data() << endl;
}

void ExternalPlayer::onExit(int exitCode, QProcess::ExitStatus status)
{
	leave();
}

void ExternalPlayer::receiveMsg(QString msg)
{
    process.write(msg.append("\n").toAscii());
	lastTimestamp.start();
	sendCont();
}

void ExternalPlayer::sendStop()
{
#ifdef __LINUX__
	kill(process.pid(), SIGSTOP);
#endif
}

void ExternalPlayer::sendCont()
{
#ifdef __LINUX__
	kill(process.pid(), SIGCONT);
#endif
}

QString ExternalPlayer::getName()
{
	QFileInfo info(cmd);
	return info.baseName();
}


text:
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 297028 $ -->
<refentry xml:id="function.posix-getpgrp" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>posix_getpgrp</refname>
  <refpurpose>Return the current process group identifier</refpurpose>
 </refnamediv>

 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>int</type><methodname>posix_getpgrp</methodname>
   <void/>
  </methodsynopsis>
  <para>
   Return the process group identifier of the current process.
  </para>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Returns the identifier, as an <type>integer</type>.
  </para>
 </refsect1>

 <refsect1 role="seealso">
  &reftitle.seealso;
  <para>
   <simplelist>
    <member>POSIX.1 and the getpgrp(2) manual page on the POSIX system for
     more information on process groups.</member>
   </simplelist>
  </para>
 </refsect1>

</refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->


text:
"""Data model classes for parsing and generating XML for both the
Google Analytics Data Export and Management APIs. Although both APIs
operate on different parts of Google Analytics, they share common XML
elements and are released in the same module.

The Management API supports 5 feeds all using the same ManagementFeed
data class.
"""

__author__ = 'api.nickm@google.com (Nick Mihailovski)'

import gdata.data
import atom.core
import atom.data

# XML Namespace used in Google Analytics API entities.
DXP_NS = '{http://schemas.google.com/analytics/2009}%s'
GA_NS = '{http://schemas.google.com/ga/2009}%s'
GD_NS = '{http://schemas.google.com/g/2005}%s'

class GetProperty(object):
  """Utility class to simplify retrieving Property objects."""

  def get_property(self, name):
    """Helper method to return a propery object by its name attribute.

    Args:
      name: string The name of the <dxp:property> element to retrieve.

    Returns:
      A property object corresponding to the matching <dxp:property> element.
          if no property is found, None is returned.
    """

    for prop in self.property:
      if prop.name == name:
        return prop

    return None

  GetProperty = get_property

class GetMetric(object):
  """Utility class to simplify retrieving Metric objects."""

  def get_metric(self, name):
    """Helper method to return a propery value by its name attribute

    Args:
      name: string The name of the <dxp:metric> element to retrieve.

    Returns:
      A property object corresponding to the matching <dxp:metric> element.
          if no property is found, None is returned.
    """

    for met in self.metric:
      if met.name == name:
        return met

    return None

  GetMetric = get_metric

class GetDimension(object):
  """Utility class to simplify retrieving Dimension objects."""

  def get_dimension(self, name):
    """Helper method to return a dimention object by its name attribute

    Args:
      name: string The name of the <dxp:dimension> element to retrieve.

    Returns:
      A dimension object corresponding to the matching <dxp:dimension> element.
          if no dimension is found, None is returned.
    """

    for dim in self.dimension:
      if dim.name == name:
        return dim

    return None

  GetDimension = get_dimension

class GaLinkFinder(object):
  """Utility class to return specific links in Google Analytics feeds."""

  def get_parent_links(self):
    """Returns a list of all the parent links in an entry."""

    links = []
    for link in self.link:
      if link.rel == link.parent():
        links.append(link)

    return links

  GetParentLinks = get_parent_links

  def get_child_links(self):
    """Returns a list of all the child links in an entry."""

    links = []
    for link in self.link:
      if link.rel == link.child():
        links.append(link)

    return links

  GetChildLinks = get_child_links

  def get_child_link(self, target_kind):
    """Utility method to return one child link.

    Returns:
      A child link with the given target_kind. None if the target_kind was
      not found.
    """

    for link in self.link:
      if link.rel == link.child() and link.target_kind == target_kind:
        return link

    return None

  GetChildLink = get_child_link

class StartDate(atom.core.XmlElement):
  """Analytics Feed <dxp:startDate>"""
  _qname = DXP_NS % 'startDate'

class EndDate(atom.core.XmlElement):
  """Analytics Feed <dxp:endDate>"""
  _qname = DXP_NS % 'endDate'

class Metric(atom.core.XmlElement):
  """Analytics Feed <dxp:metric>"""
  _qname = DXP_NS % 'metric'
  name = 'name'
  type = 'type'
  value = 'value'
  confidence_interval = 'confidenceInterval'

class Aggregates(atom.core.XmlElement, GetMetric):
  """Analytics Data Feed <dxp:aggregates>"""
  _qname = DXP_NS % 'aggregates'
  metric = [Metric]

class TableId(atom.core.XmlElement):
  """Analytics Feed <dxp:tableId>"""
  _qname = DXP_NS % 'tableId'

class TableName(atom.core.XmlElement):
  """Analytics Feed <dxp:tableName>"""
  _qname = DXP_NS % 'tableName'

class Property(atom.core.XmlElement):
  """Analytics Feed <dxp:property>"""
  _qname = DXP_NS % 'property'
  name = 'name'
  value = 'value'

class Definition(atom.core.XmlElement):
  """Analytics Feed <dxp:definition>"""
  _qname = DXP_NS % 'definition'

class Segment(atom.core.XmlElement):
  """Analytics Feed <dxp:segment>"""
  _qname = DXP_NS % 'segment'
  id = 'id'
  name = 'name'
  definition = Definition

class Engagement(atom.core.XmlElement):
  """Analytics Feed <dxp:engagement>"""
  _qname = GA_NS % 'engagement'
  type = 'type'
  comparison = 'comparison'
  threshold_value = 'thresholdValue'

class Step(atom.core.XmlElement):
  """Analytics Feed <dxp:step>"""
  _qname = GA_NS % 'step'
  number = 'number'
  name = 'name'
  path = 'path'

class Destination(atom.core.XmlElement):
  """Analytics Feed <dxp:destination>"""
  _qname = GA_NS % 'destination'
  step = [Step]
  expression = 'expression'
  case_sensitive = 'caseSensitive'
  match_type = 'matchType'
  step1_required = 'step1Required'

class Goal(atom.core.XmlElement):
  """Analytics Feed <dxp:goal>"""
  _qname = GA_NS % 'goal'
  destination = Destination
  engagement = Engagement
  number = 'number'
  name = 'name'
  value = 'value'
  active = 'active'

class CustomVariable(atom.core.XmlElement):
  """Analytics Data Feed <dxp:customVariable>"""
  _qname = GA_NS % 'customVariable'
  index = 'index'
  name = 'name'
  scope = 'scope'

class DataSource(atom.core.XmlElement, GetProperty):
  """Analytics Data Feed <dxp:dataSource>"""
  _qname = DXP_NS % 'dataSource'
  table_id = TableId
  table_name = TableName
  property = [Property]

class Dimension(atom.core.XmlElement):
  """Analytics Feed <dxp:dimension>"""
  _qname = DXP_NS % 'dimension'
  name = 'name'
  value = 'value'

class AnalyticsLink(atom.data.Link):
  """Subclass of link <link>"""
  target_kind = GD_NS % 'targetKind'

  @classmethod
  def parent(cls):
    """Parent target_kind"""
    return '%s#parent' % GA_NS[1:-3]

  @classmethod
  def child(cls):
    """Child target_kind"""
    return '%s#child' % GA_NS[1:-3]

# Account Feed.
class AccountEntry(gdata.data.GDEntry, GetProperty):
  """Analytics Account Feed <entry>"""
  _qname = atom.data.ATOM_TEMPLATE % 'entry'
  table_id = TableId
  property = [Property]
  goal = [Goal]
  custom_variable = [CustomVariable]

class AccountFeed(gdata.data.GDFeed):
  """Analytics Account Feed <feed>"""
  _qname = atom.data.ATOM_TEMPLATE % 'feed'
  segment = [Segment]
  entry = [AccountEntry]

# Data Feed.
class DataEntry(gdata.data.GDEntry, GetMetric, GetDimension):
  """Analytics Data Feed <entry>"""
  _qname = atom.data.ATOM_TEMPLATE % 'entry'
  dimension = [Dimension]
  metric = [Metric]

  def get_object(self, name):
    """Returns either a Dimension or Metric object with the same name as the
    name parameter.

    Args:
      name: string The name of the object to retrieve.

    Returns:
      Either a Dimension or Object that has the same as the name parameter.
    """

    output = self.GetDimension(name)
    if not output:
      output = self.GetMetric(name)

    return output

  GetObject = get_object

class DataFeed(gdata.data.GDFeed):
  """Analytics Data Feed <feed>.

  Although there is only one datasource, it is stored in an array to replicate
  the design of the Java client library and ensure backwards compatibility if
  new data sources are added in the future.
  """

  _qname = atom.data.ATOM_TEMPLATE % 'feed'
  start_date = StartDate
  end_date = EndDate
  aggregates = Aggregates
  data_source = [DataSource]
  entry = [DataEntry]
  segment = Segment

# Management Feed.
class ManagementEntry(gdata.data.GDEntry, GetProperty, GaLinkFinder):
  """Analytics Managememt Entry <entry>."""

  _qname = atom.data.ATOM_TEMPLATE % 'entry'
  kind = GD_NS % 'kind'
  property  = [Property]
  goal = Goal
  segment = Segment
  link = [AnalyticsLink]

class ManagementFeed(gdata.data.GDFeed):
  """Analytics Management Feed <feed>.

  This class holds the data for all 5 Management API feeds: Account,
  Web Property, Profile, Goal, and Advanced Segment Feeds.
  """

  _qname = atom.data.ATOM_TEMPLATE % 'feed'
  entry = [ManagementEntry]
  kind = GD_NS % 'kind'


text:
<?php

/**
 * Get sorted elements contained in the List, Set, or Sorted Set value at key.
 *
 * @author Ivan Shumkov
 * @package Rediska
 * @subpackage Commands
 * @version 0.5.6
 * @link http://rediska.geometria-lab.net
 * @license http://www.opensource.org/licenses/bsd-license.php
 */
class Rediska_Command_Sort extends Rediska_Command_Abstract
{
    const ASC  = 'asc';
    const DESC = 'desc';

    protected $_options = array(
        'order'  => self::ASC,
        'limit'  => null,
        'offset' => null,
        'alpha'  => false,
        'by'     => null,
        'get'    => null,
        'store'  => null,
    );

    /**
     * Create command
     *
     * @param string        $key   Key name
     * @param array         $value Options:
     *                               * order
     *                               * limit
     *                               * offset
     *                               * alpha
     *                               * get
     *                               * by
     *                               * store
     *
     *                              See more: http://code.google.com/p/redis/wiki/SortCommand

     *                              If you use more then one connection to Redis servers,
     *                              it will choose by key name, and key by you pattern's may not present on it.
     *
     * @return Rediska_Connection_Exec
     */
    public function create($key, array $options = array())
    {
        $connection = $this->_rediska->getConnectionByKeyName($key);

        $command = array('SORT',
                         $this->_rediska->getOption('namespace') . $key);

        foreach($options as $name => $value) {
            if (!array_key_exists($name, $this->_options)) {
                throw new Rediska_Command_Exception("Unknown option '$name'");
            }
            $this->_options[$name] = $value;
        }

        // Limit
        if (isset($this->_options['limit'])) {
            $offset = isset($this->_options['offset']) ? $this->_options['offset'] : 0;
            $command[] = 'LIMIT';
            $command[] = $offset;
            $command[] = $this->_options['limit'];
        }

        // Alpha
        if ($this->_options['alpha']) {
            $command[] = 'ALPHA';
        }

        // Order
        if (isset($this->_options['order'])) {
            $command[] = strtoupper($this->_options['order']);
        }

        // By
        if (isset($this->_options['by'])) {
            $this->_throwExceptionIfManyConnections('by');
            $command[] = 'BY';
            $command[] = $this->_rediska->getOption('namespace') . $this->_options['by'];
        }

        // Get
        if (isset($this->_options['get'])) {
            $this->_throwExceptionIfManyConnections('get');
            if (!is_string($this->_options['get'])) {
                foreach($this->_options['get'] as $pattern) {
                    $command[] = 'GET';
                    $command[] = $this->_addNamespaceToGetIfNeeded($pattern);
                }
            } else {
                $command[] = 'GET';
                $command[] = $this->_addNamespaceToGetIfNeeded($this->_options['get']);
            }
        }

        // Store
        if (isset($this->_options['store'])) {
            $this->_throwExceptionIfManyConnections('store');
            $command[] = 'STORE';
            $command[] = $this->_rediska->getOption('namespace') . $this->_options['store'];
        }

        return new Rediska_Connection_Exec($connection, $command);
    }

    /**
     * Parse response
     *
     * @param array $response
     * @return array
     */
    public function parseResponse($response)
    {
        return array_map(array($this->_rediska->getSerializer(), 'unserialize'), $response);
    }

    protected function _addNamespaceToGetIfNeeded($pattern)
    {
        if ($pattern != '#') {
            $pattern = $this->_rediska->getOption('namespace') . $pattern;
        } else {
            $this->_throwExceptionIfNotSupported('1.1');
        }

        return $pattern;
    }

    protected function _throwExceptionIfManyConnections($argument)
    {
        $connections = $this->_rediska->getConnections();
        if (count($connections) > 1) {
            throw new Rediska_Command_Exception("You can use '$argument' with only one connection. Use 'on' method to specify it.");
        }
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<TITLE>
Overview (Java Card Tools for Ant - API)
</TITLE>

<META NAME="keywords" CONTENT="Overview, Java Card Tools for Ant">

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">

All Classes

Packages

com.sun.javacard.ant.tasks

com.sun.javacard.ant.types


text:
package com.github.musikk.classreader;

import java.io.File;

public enum ClassFileJarMode {

	/**
	 * Loads a JAR {@link File} completely. This is useful for situations in
	 * which random access to a JAR is not feasable e.g. network connections.
	 * Keep in mind that this operation might be very memory intensive depending
	 * on the size of the JAR.
	 */
	EAGER,
	/**
	 * Loads a JAR {@link File} lazily. Every class is looked up as it is
	 * needed. This is the default mode and recommended for every locally
	 * available JAR.
	 */
	LAZY

}


text:
title: Modulo Versus Modular
localeTitle: Módulo Versus Modular
---
## Módulo Versus Modular

Este é um esboço. [Ajude nossa comunidade a expandi-lo](https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/functions/modulo-versus-modular/index.md) .

[Este guia de estilo rápido ajudará a garantir que sua solicitação de recebimento seja aceita](https://github.com/freecodecamp/guides/blob/master/README.md) .

#### Mais Informações:


text:
goog.setTestOnly();
goog.require('goog.testing.jsunit');
goog.require('hr.db');
goog.require('lf.Capability');
goog.require('lf.TransactionType');
goog.require('lf.schema.DataStoreType');
goog.require('lf.testing.SmokeTester');
goog.require('lf.testing.util');

/** @type {!lf.testing.SmokeTester} */
var tester;

/** @type {!lf.Capability} */
var capability;

/** @type {!lf.Database} */
var db;

function setUpPage() {
  // Need longer timeout for Safari on SauceLabs.
  goog.testing.TestCase.getActiveTestCase().promiseTimeout = 40 * 1000;  // 40s
}

function setUp() {
  capability = lf.Capability.get();

  var options = {
    'storeType': !capability.indexedDb ? lf.schema.DataStoreType.MEMORY :
        lf.schema.DataStoreType.INDEXED_DB
  };
  return hr.db.connect(options).then(function(database) {
    db = database;
    tester = new lf.testing.SmokeTester(hr.db.getGlobal(), database);
    // Delete any left-overs from previous tests.
    return tester.clearDb();
  });
}

function tearDown() {
  db.close();
}

function testCRUD() {
  return tester.testCRUD();
}

function testOverlappingScope_MultipleInserts() {
  return tester.testOverlappingScope_MultipleInserts();
}

function testTransaction() {
  return tester.testTransaction();
}

function testSerialization() {
  var dummy = db.getSchema().table('DummyTable');
  var row = dummy.createRow({
    arraybuffer: null,
    boolean: false,
    integer: 1,
    number: 2,
    string: 'A',
    string2: 'B'
  });

  var expected = {
    arraybuffer: null,
    boolean: false,
    datetime: null,
    integer: 1,
    number: 2,
    string: 'A',
    string2: 'B',
    proto: null
  };
  assertObjectEquals(expected, row.toDbPayload());
  assertObjectEquals(expected, dummy.deserializeRow(row.serialize()).payload());
}

function testReplaceRow() {
  // This is a regression test for a bug that lovefield had with IndexedDb
  // backstore. The bug manifested when a single transaction had a delete for
  // an entire table, along with an insert to the same table. The bug was that
  // the insert would not stick, because the remove/put calls were racing and
  // the remove would result in a clear call for the entire object store after
  // the put happened.

  capability = lf.Capability.get();
  // The test is only relevant for indexedDb.
  if (!capability.indexedDb) {
    return;
  }

  var table = db.getSchema().table('Region');
  var originalRow = table.createRow({id: '1', name: 'North America'});
  var replacementRow = table.createRow({id: '2', name: 'Central America'});

  // First insert a single record into a table.
  var tx = db.createTransaction(lf.TransactionType.READ_WRITE);
  var insert = db.insert().into(table).values([originalRow]);
  return tx
      .exec([insert])
      // Read the entire table directly from IndexedDb and verify that the
      // original record is in place.
      .then(() => {
        return lf.testing.util.selectAll(hr.db.getGlobal(), table);
      })
      .then((results) => {
        assertEquals(1, results.length);
        assertObjectEquals(originalRow.payload(), results[0].payload());
      })
      // Now execute a transaction that removes the single row and inserts a
      // replacement.
      .then(() => {
        var tx = db.createTransaction(lf.TransactionType.READ_WRITE);
        return tx.exec([
          db.delete().from(table),
          db.insert().into(table).values([replacementRow])
        ]);
      })
      // Read the entire table, verify that we have a single row present (not
      // zero rows), and that it is the replacement, not the original.
      .then(() => {
        return lf.testing.util.selectAll(hr.db.getGlobal(), table);
      })
      .then((results) => {
        assertEquals(1, results.length);
        assertObjectEquals(replacementRow.payload(), results[0].payload());
      });
}


text:
package com.xgframe.platform.sms;

/**
 * Created by Antony on 14-2-22.
 */
public class WxSmsClient {
    public void sendMsg(String msg, String mobile) throws Exception {
        Message message = new Message();
        message.send(msg, mobile);
    }

}


text:
'use strict';

var controller = module.exports = require('../Controller.js')();

controller.registerRoutes = function(app){
    app.get('/code', controller.getCode);
    app.get('/source', controller.getSource);
};

controller.getCode = function(req, res){
    res.redirect('https://github.com/bevacqua');
};

controller.getSource = function(req, res){
    res.redirect('https://github.com/bevacqua/io');
};


text:
from datetime import datetime, timedelta

from django.conf import settings
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.db import transaction
from utils.templateemail import send_template_email

from .models import Member, Membership, PendingEmailChange
from .forms import MemberForm

# Create your views here.
@transaction.atomic   # A database transaction is used for this entire function
@login_required
def userprofile(request):
  member = request.user
  if request.method == 'POST':
    # User posted changes; populate the form from those changes instead,
    #   but still bind to the member instance
    form = MemberForm(request.POST, request.FILES, instance=member)

    if form.is_valid():
      if 'email' in form.changed_data:
        oldemail = form.initial['email']
        newemail = form.cleaned_data['email']

        # Don't let the user change the email yet. The new one must be confirmed.
        changerequest = PendingEmailChange.objects.create_pendingemail(member)
        confirmation_key = changerequest.confirmation_key
        form.instance.email = oldemail
        form.instance.email_pending = newemail

        # Save the Member instance
        form.instance.save()

        # Notify the old email address of the change
        send_template_email(request,
          template_prefix='changeofemail_old_email',
          to=[oldemail],
          extra_context={'user': member}
        )

        # Send activation link to new email address
        send_template_email(request,
          template_prefix='changeofemail_new_email',
          to=[newemail],
          extra_context={
            'user': member,
            'expiration_days': settings.PENDINGEMAIL_CONFIRMATION_DAYS,
            'confirmation_key': confirmation_key,
          }
        )

        # Add a message to the user
        messages.success(request, "Changes made successfully.")
        messages.warning(request, "Email change is pending activation (see below).")

      else:  # 'email' is not in form.changed_data
        # Save the Member instance
        form.instance.save()

        # Add a message to the user
        messages.success(request, "Changes made successfully.")

      # Everything looks good, so redirect the user to their updated profile page
      return redirect(userprofile)

    else:  # form.is_valid() failed
      # Validation errors on the form, so show the errors instead of redirecting
      messages.error(request, "Changes not applied. Please correct the errors hilighted below.")

  else:  # request.method is GET
    # Initial load of the form; populate from the existing Member instance
    form = MemberForm(instance=member)

  # Lookup all memberships, except if they expired more than 180 days ago
  context = {
    'form': form,
    'membershiplist': Membership.objects.filter(member = member.id,
                        paid_until_date__gte = (datetime.today() - timedelta(days=180)))
  }
  return render(request, "userprofile.html", context)

@transaction.atomic   # A database transaction is used for this entire function
@login_required
def confirmemail(request, confirmation_key):
  profile = PendingEmailChange.objects.confirm_pendingemail(confirmation_key)
  if profile:
    messages.success(request, "Your new email has been confirmed and is now the active email for your account.")
  else:
    messages.error(request, "Your new email could not be activated.")
  return redirect(userprofile)


text:
Network Window
==============

A network window presents a visualization of a network and provides an interactive Python console.  This document covers the visualization portion of the window, the console is discussed in the :doc:`scripting section<../Scripting/Console>`.

.. image:: ../images/NetworkWindow.png
   :align: center

View options
------------

There are a number of options that affect the display of the visualization as a whole.

2D vs. 3D
.........

The primary option for a visualization is whether to present the network on a single two-dimensional plane or to allow the network to exist in three-dimensional space.  Simple click the 2D or 3D icons in the toolbar to change this option.

Show Region/Neuron names
........................

These options control whether the names (or preferentially the abbreviations) of regions or neurons are automatically used to label the objects in the visualization.  Choose either item from the View menu to change the setting.

Floating labels
...............

With densely layed out networks the labels of objects can get obscured by other objects.  When this option is turned on in the View menu all labels in the visualization are drawn above all other objects ensuring their readability.

Show flow of information
........................

Connections show their flow of information whenever they are part of the current selection but if you wish to see the flow for the entire network then you can turn on this option in the View menu.  If a selection is made then only the connections involved will show their flow but as soon as the selection is cleared to full network flow will again be shown.

.. _ghosting:

Ghosting
........

Whenever a selection is made the objects not involved with the selected objects are dimmed (ghosted) to aid in highlighting the local connections.  If you wish for all objects to remain fully visible even when there is a selection then turn this option off in the View menu.  You can also alter the level of dimming in the :ref:`display inspector <display-inspector>`.

Interacting with the visualization
----------------------------------

The current selection
.....................

Each network window maintains a list of selected objects.  Clicking on an object will select it while clicking in any empty space will clear the selection.  Hold down the command/apple key (Mac OS X) or alt key (Windows) while clicking to add to or remove from the selection.

The selected objects are drawn with a blue highlight and are the focus of the :doc:`inspector window <Inspector>`.  Objects that connect to the selected objects are also highlighted.  (If multiple objects are selected and the "Highlight Only Within Selection" option has been chosen from the View menu or the toolbar then only connections between objects in the selection will be highlighted.)  You can use the "Decrease/Increase Selection Highlight Depth" menu options to control how far away from the selection that objects are considered connected.  If ghosting is turned on (the default) then the connected objects will remain opaque while the rest of the network fades out.  If ghosting is off then the connected objects will be drawn with a subtler blue highlight.  Any connections between objects in the selection will display an animated flow based on their :ref:`current settings <path-inspector>`.

You can also hold down the shift key when clicking on an object and all of the objects along one of the shortest paths between the previously selected object and the new object will be selected.

Mouse-over highlighting
.......................

If you're interested in inspecting a large number of objects individually then you can turn on mouse-over highlighting in the View menu.  As you hover the mouse over an object it will become temporarily selected and the inspector window will be updated.  As you move the mouse to another object the first object will be de-selected, the new object will be selected and the inspector will be refreshed.

Mouse-over highlighting will be disabled if you make a selection manually.  When the selection is cleared mouse-over highlighting will be re-enabled.

Moving and resizing objects
...........................

When a single object is selected in the network window controls appear around the object that let you change its position and/or size.  When viewing the display in two dimensions a box is drawn around the object with green control handles at its sides and corners:

.. image:: ../images/2DDragger.png
    :align: center

Clicking and dragging any of the green handles will resize the object while clicking anywhere else inside the box allows you to move the object.  If the object is currently being displayed at a very small size then the green handles will not be displayed and the object will only be moveable.

When viewing in three dimensions the object will get the same box with green handles on each of its six sides.  Moving and resizing will be restricted to the axes on that side of the object.

.. image:: ../images/3DResizeDragger.png
	:align: center

When small the object will display a different set of controls for moving it around:

.. image:: ../images/3DDragger.png
	:align: center

Clicking and dragging any of the arrow heads will move the object along that axis.

If the selected object has its size or position :ref:`fixed <geometry-inspector>` then either just the repositioning controls or no controls at all will be shown.

Zooming, scrolling, centering the view
......................................

You can zoom into and out of the visualization by using the scroll wheel on your mouse or any of the "Zoom..." options in the View menu or on the toolbar.  When viewing in two dimensions you will get a set of scroll bars when zoomed in that let you see the rest of the network.  Clicking in an empty space and dragging will scroll the display.  When viewing in three dimensions clicking and dragging in empty space will either pan or rotate the display depending on the current choice in the View menu.

At any time you can bring the entire network into view by choosing "Reset View" (3D) or "Zoom to Fit" (2D) from the View menu.  This is useful, for example, if you've zoomed in or out too far and can't find your network anymore.

Saving as an image
..................

The currently displayed visualization can be saved to an image file at any time.  Choose "Save View As..." from the View menu to choose where to save the image and in which format.  Currently the display can be saved to JPG, Microsoft BMP, PNG or TIFF format.

If you have chosen a background color that has transparency then the transparency will be saved for image formats that support it (PNG and TIFF).

Layouts
-------

Neuroptikon comes with four algorithms for automatically laying out a network in a visualization.  See the documentation on :doc:`writing your own layout <../Customizing/index>` if you need a different style of layout.

Force-directed
..............

This pure-Python layout simulates physical forces to keep objects from overlapping and to pull connected objects closer together.  It can be used for both two- and three-dimensional visualizations.

Graphviz
........

.. _Graphviz: http://www.graphviz.org/

This layout uses Graphviz_, if available, to layout two-dimensional visualizations.

Orthogonal Paths
................

This layout uses the A* algorithm to route connections around objects in a two-dimensional visualization.  It does not alter the positions of any of the objects.  This layout can be very slow for large displays.

Spectral
........

This layout uses spectral graph theory to position the objects in the network.  The eigenvectors of the network's adjacency matrix are used to position the objects in the X and Y dimensions.  The objects are organized in the Z dimension based on their distance from the inputs and outputs of the network.  Objects closer to the inputs will be farther up the positive side of the Z axis and those closer to the outputs will be farther down the negative Z axis.


text: default_app_config = 'student_profiling.apps.StudentProfilingManagerConfig'


text:
/*
   This code is a modified version of an algorithm
   forming part of the software program Finite
   Element Method Magnetics (FEMM), authored by
   David Meeker. The original software code is
   subject to the Aladdin Free Public Licence
   version 8, November 18, 1999. For more information
   on FEMM see www.femm.info. This modified version
   is not endorsed in any way by the original
   authors of FEMM.

   This software has been modified to use the C++
   standard template libraries and remove all Microsoft (TM)
   MFC dependent code to allow easier reuse across
   multiple operating system platforms.

   Date Modified: 2014 - 03 - 21
   By:  Emoke Szelitzky
        Tibor Szelitzky
        Richard Crozier
   Contact:
        szelitzkye@gmail.com
        sztibi82@gmail.com
        richard.crozier@yahoo.co.uk
*/

#include <cstdlib>
#include <cmath>
#include "hproblem.h"
#include "fullmatrix.h"
#include "femmcomplex.h"

#ifndef muo
#define muo 1.2566370614359173e-6
#endif

#define ElementsPerSkinDepth 10

using namespace std;
/////////////////////////////////////////////////////////////////////////////
// CNode construction

CNode::CNode()
{
	x=0.;
	y=0.;
	IsSelected=false;
	BoundaryMarker=-1;
	InConductor=-1;
	InGroup=0;
}

CComplex CNode::CC()
{
	return (x+I*y);
}

double CNode::GetDistance(double xo, double yo)
{
	return sqrt((x-xo)*(x-xo) + (y-yo)*(y-yo));
}

void CNode::ToggleSelect()
{
	if (IsSelected==true) IsSelected=false;
	else IsSelected=true;
}

/////////////////////////////////////////////////////////////////////////////
// CMeshNode construction

CMeshNode::CMeshNode()
{
	x=y=T=0;
	Q=false;
	msk=0;
	IsSelected=false;
}

CComplex CMeshNode::CC()
{
	return (x+I*y);
}

double CMeshNode::GetDistance(double xo, double yo)
{
	return sqrt((x-xo)*(x-xo) + (y-yo)*(y-yo));
}

/////////////////////////////////////////////////////////////////////////////
// CSegment construction

CSegment::CSegment()
{
	n0=0;
	n1=0;
	IsSelected=false;
	BoundaryMarker=-1;
	InConductor=-1;
	InGroup=0;
}

void CSegment::ToggleSelect()
{
	if (IsSelected==true) IsSelected=false;
	else IsSelected=true;
}
/////////////////////////////////////////////////////////////////////////////
// CArcSegment construction

CArcSegment::CArcSegment()
{
	n0=0;
	n1=0;
	IsSelected=false;
	MaxSideLength=-1;
	ArcLength=90.;
	BoundaryMarker=-1;
	InConductor=-1;
	InGroup=0;
}

void CArcSegment::ToggleSelect()
{
	if (IsSelected==true) IsSelected=false;
	else IsSelected=true;
}

/////////////////////////////////////////////////////////////////////////////
// CNode construction

CBlockLabel::CBlockLabel()
{
	x=0.;
	y=0.;
	MaxArea=0.;
	IsSelected=false;
	InGroup=0;
	BlockType=-1;
	IsExternal=false;
	IsDefault=false;
}

void CBlockLabel::ToggleSelect()
{
	if (IsSelected==true) IsSelected=false;
	else IsSelected=true;
}

double CBlockLabel::GetDistance(double xo, double yo)
{
	return sqrt((x-xo)*(x-xo) + (y-yo)*(y-yo));
}

CMaterialProp::CMaterialProp()
{
		BlockName="New Material";
		Kx=Ky=1;
		Kt=0;
		qv=0;
}

CBoundaryProp::CBoundaryProp()
{
		BdryName="New Boundary";
		BdryFormat=0;
		Tset=Tinf=h=beta=qs=0;
		InConductor="<None>";
}

CComplex CMaterialProp::GetK(double t)
{
	int i,j;

	// Kx returned as real part;
	// Ky returned as imag part

	if (npts==0) return (Kx+I*Ky);
	if (npts==1) return (Im(Kn[0])*(1+I));
	if (t<=Re(Kn[0])) return (Im(Kn[0])*(1+I));
	if (t>=Re(Kn[npts-1])) return (Im(Kn[npts-1])*(1+I));

	for(i=0,j=1;j<npts;i++,j++)
	{
		if((t>=Re(Kn[i])) && (t<=Re(Kn[j])))
		{
			return (1+I)*(Im(Kn[i])+Im(Kn[j]-Kn[i])*Re(t-Kn[i])/Re(Kn[j]-Kn[i]));
		}
	}

	return (Kx+I*Ky);
}

CPointProp::CPointProp()
{
		PointName="New Point Property";
		InConductor="<None>";
		V=qp=0;
}

CCircuit::CCircuit()
{
		CircName="New Circuit";
		V=q=0;
		CircType=0;
}


text:
package org.jboss.weld.tests.extensions.lifecycle.processBeanAttributes.broken;

import jakarta.enterprise.context.Dependent;

@Dependent
public class Telephone {

}


text:
Utils = function (options) {
  this.init(options);
}

Utils.prototype = {

  options: {
    clientId: null,
    mimeType: 'application/vnd.google-apps.drive-sdk',

  },

  scopes: ['https://www.googleapis.com/auth/drive.install',
          'https://www.googleapis.com/auth/drive.file'],

  init: function (options) {
    this.mergeOptions(options);
    this.authorizer = new Authorizer(this);
    this.createRealtimeFile = this.createRealtimeFile.bind(this);
  },

  authorize: function (onAuthComplete, usePopup) {
    this.authorizer.start(onAuthComplete, usePopup);
  },

  mergeOptions: function (options) {
    for(option in options){
      this.options[option] = options[option];
    }
  },

  // Check the url to see if we have a document id
  getDocumentIdFromUrl: function() {
    var params = {};
    var hashFragment = window.location.hash;
    if(hashFragment){
      return hashFragment.replace('#','');
    }

    return false;
  },

  getParam: function (param) {
    var regExp = new RegExp(param + '=(.*?)($|&)', 'g');
    var match = window.location.search.match(regExp);
    if(match && match.length){
      match = match[0];
      match = match.replace(param + '=','').replace('&','');
    } else {
      match = null;
    }
    return match;
  },

  createRealtimeFile: function(title, callback) {
    var that = this;
    window.gapi.client.load('drive', 'v2', function() {
      var insertHash = {
        'resource': {
          mimeType: that.options.mimeType,
          title: title
        }
      }

      if(that.authorizer.unknownServerUrl || that.authorizer.sandboxUrl){
        insertHash.root = 'https://content-googleapis-test.sandbox.google.com';
      }

      window.gapi.client.drive.files.insert(insertHash).execute(callback);
    });
  },

  load: function(documentId, onFileLoaded, initializeModel) {
    var that = this;
    window.gapi.drive.realtime.load(documentId, function(doc){
      if(that.getParam('serverUrl')){
        window.doc = doc;  // Debugging purposes
      }
      onFileLoaded(doc)
    }, initializeModel, this.onError);
  },

  onError: function(e) {
    if(e.type == window.gapi.drive.realtime.ErrorType.TOKEN_REFRESH_REQUIRED) {
      this.authorizer.authorize(function () {
        console.log('Error, auth refreshed');
      }, false);
    } else if(e.type == window.gapi.drive.realtime.ErrorType.CLIENT_ERROR) {
      alert("An Error happened: " + e.message);
      window.location.href= "/";
    } else if(e.type == window.gapi.drive.realtime.ErrorType.NOT_FOUND) {
      alert("The file was not found. It does not exist or you do not have read access to the file.");
      window.location.href= "/";
    } else if(e.type == window.gapi.drive.realtime.ErrorType.FORBIDDEN) {
      alert("You do not have access to this file. Try having the owner share it with you from Google Drive.");
      window.location.href= "/";
    }
  }
}

Authorizer = function (util) {
  this.util = util;
  this.handleAuthResult = this.handleAuthResult.bind(this);
  this.token = null;
  this.serverUrl = this.util.getParam('serverUrl');
}

Authorizer.prototype = {

  refreshInterval: 1800000, // 30 minutes

  start: function(onAuthComplete, usePopup) {
    var config = {};
    if(this.serverUrl){
      switch(this.serverUrl){
        case 'sandbox':
          this.sandboxUrl = true;
          this.apiUrl = 'https://drive.sandbox.google.com/otservice';
          this.serverUrl = this.apiUrl;
          break;
        case 'canary':
          this.apiUrl = 'https://drive.google.com/otservice/canary';
          this.serverUrl = 'https://drive.google.com/otservice';
          break;
        case 'scary':
          this.apiUrl = 'https://drive.google.com/otservice/scary';
          this.serverUrl = 'https://drive.google.com/otservice';
          break;
        default:
          this.unknownServerUrl = true;
          this.apiUrl = this.serverUrl;
      }
      config['drive-realtime'] =  { 'server' : this.apiUrl };
    }
    var that = this;
    window.gapi.load('auth:client,drive-realtime,drive-share', {
      config: config,
      callback:  function() {
        if(that.serverUrl){
          gapi.drive.realtime.setServerAddress(that.serverUrl);
        }
        that.authorize(onAuthComplete, usePopup);
      }
    });
    if(this.authTimer){
      window.clearTimeout(this.authTimer);
    }
    this.refreshAuth();
  },

  authorize: function (onAuthComplete, usePopup) {
    this.onAuthComplete = onAuthComplete;
    // Try with no popups first.
    window.gapi.auth.authorize({
      client_id: this.util.options.clientId,
      scope: this.util.scopes,
      user_id: this.util.options.userId,
      immediate: !usePopup
    }, this.handleAuthResult);
  },

  handleAuthResult: function (authResult) {
    if (authResult && !authResult.error) {
      this.token = authResult.access_token;
    }
    this.onAuthComplete(authResult);
  },

  refreshAuth: function () {
    var that = this;
    this.authTimer = setTimeout(function () {
      that.authorize(function(){
        console.log('Refreshed Auth Token');
      }, false);
      that.refreshAuth();
    }, this.refreshInterval);
  }
}


text:
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
    When DestructuringAssignmentTarget is an obect literal and the iterable is
    emits no values, an empty array should be used as the value of the nested
    DestructuringAssignment.
es6id: 12.14.5.3
---*/

var value = [];
var result, x, length;

result = [...{ 0: x, length }] = value;

assert.sameValue(result, value);
assert.sameValue(x, undefined);
assert.sameValue(length, 0);


text:
// Copyright (c) 2012 Ecma International.  All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms").   Any redistribution of this code must retain the above
// copyright and this notice and otherwise comply with the Use Terms.

/*---
es5id: 15.2.3.7-6-a-282
description: >
    Object.defineProperties - 'O' is an Arguments object, 'P' is own
    data property of 'O' which is also defined in [[ParameterMap]] of
    'O', test TypeError is thrown when updating the [[Value]]
    attribute value of 'P' whose writable and configurable attributes
    are false (10.6 [[DefineOwnProperty]] step 4)
includes: [propertyHelper.js]
---*/

var arg;

(function fun(a, b, c) {
    arg = arguments;
}(0, 1, 2));

Object.defineProperty(arg, "0", {
    value: 0,
    writable: false,
    configurable: false
});

try {
    Object.defineProperties(arg, {
        "0": {
            value: 10
        }
    });

    $ERROR("Expected an exception.");
} catch (e) {
    verifyEqualTo(arg, "0", 0);

    verifyNotWritable(arg, "0");

    verifyEnumerable(arg, "0");

    verifyNotConfigurable(arg, "0");

    if (!(e instanceof TypeError)) {
        $ERROR("Expected TypeError, got " + e);
    }

}


text:
package de.browserlife.umrechner.ip.validator;

import de.browserlife.umrechner.ip.exceptions.IpInputException;

public class Ipv4Validator implements IpValidatorInterface {

	public boolean validate(String ip) throws IpInputException {
		// TODO Automatisch generierter Methodenstub
		if (!ip.matches("^(?:[0-9]{1,3}.){3}[0-9]{1,3}$"))
		{
			throw new IpInputException();
		}

		return true;

	}
	public boolean validate(int[] ip) throws IpInputException {

		if (ip[0]==0)
		{
			throw new IpInputException("Eine IP darf nicht mit 0 beginnen!");
		}
		for (int i=0; i<ip.length;i++)
		{
			if (ip[i]>255)
			{
				throw new IpInputException("Kein Block darf groesser 255 sein!");
			}
		}
		return true;

	}

}


text:
function [L, V] = model_sort(m, i, L, V)
% Perform topological sort of the non-terminal symbols in m's grammar.
%
% m  object model
%
% internal use:
% i  current symbol
% L  post order accumulation of symbols
% V  symbol visitation state

% initialize depth-first search at start symbol
if nargin < 2
  i = m.start;
  L = [];
  V = zeros(m.numsymbols, 1);
end

% check for cycle containing symbol i
if V(i) == 1
  error('Cycle detected in grammar!');
end

% mark symbol i as pre-visit
V(i) = 1;
for r = rules_with_lhs(m, i)
  for s = r.rhs
    % recurse if s is a non-terminal and not already visited
    if m.symbols(s).type == 'N' && V(s) < 2
      [L, V] = model_sort(m, s, L, V);
    end
  end
end
% mark symbol i as post-visit
V(i) = 2;
L = [L i];


text:
module Money

  #узнать текущую базовую валюту, возвращается экземпляр класса Currency
  def self.get_base
    valute = Currency.find_by_is_base(true)
    valute
  end

  #установить новую базовую валюту
  def self.set_base(sym)

    currency = Currency.find_by_code(sym)

    raise "Валюта с указанным кодом не найдена" if currency.nil?
    #если валюта с кодом sym и так является базовой,
    #то ничего делать не нужно
    unless currency.is_base
      currency.is_base = true
      currency.save
      calculate
    end
  end

  #установить курс валюты относительно текущей базовой
  def self.set_currency(fromcode, rate)
    from = Currency.find_by_code(fromcode)
    to = get_base
    raise "В базе данных нет информации о валюте #{fromcode}" unless from
    raise "Не установлена базовая валюта" unless to
    CalculatedExchangeRate.create(from_currency_id: from.id, to_currency_id: to.id, rate: rate) unless from.id == to.id
  end

  #пересчитать курсы валют относительно базовой и занести записи в CalculatedExchangeRates
  def self.calculate
    #получаем текущую базовую валюту
    base = get_base
      raise "Курсы валют не могут быть рассчитаны: не установлена базовая валюта" unless base

    #cur_base_rate - текущий курс базовой валюты относительно рубля
    if base.code == 'RUB'
      cur_base_rate = 1
    else
      #если в ExchangeRates нет данных о курсе базовой валюты относительно рубля
      raise "Курсы валют не могут быть рассчитаны:
             нет данных о курсе базовой валюты относительно рубля" unless base.exchange_rates.last

      cur_base_rate = base.exchange_rates.last.rate
    end

      @curriencies = Currency.all.includes(:exchange_rates)
      #итерируемся по коллекции всех валют
      @curriencies.each do |cur|
        #cur_from_rate - курс относительно рубля для валюты,
        #для котороый в данный момент присходит расчёт
        if cur.code == 'RUB'
          cur_from_rate = 1
        else
          raise "Курсы валют не могут быть рассчитаны:
                 нет данных о курсе валюты #{cur.code}: #{cur.name} относительно рубля" unless cur.exchange_rates.last
          cur_from_rate = cur.exchange_rates.last.rate
        end

        set_currency(cur.code, (cur_from_rate/cur_base_rate).to_f)
      end
  end

  #узнать курс валюты относительно любой другой (по умолчанию - базовой)
  #на любую дату и время (по умолчанию - на текущий момент)
  def self.get_currency(fromcode, options = {})
    from = Currency.find_by_code(fromcode)
    to = options[:to] ? Currency.find_by_code(options[:to]) : Money.get_base
    datetime = options[:datetime] || DateTime.now

    raise "В базе данных нет валюты из которой идёт конвертация" unless from
    raise "В базе данных нет валюты в которую идёт конвертация" unless to

    # если конвертируем валюту в саму себя
    if from.id == to.id
      1.0
    else
      #данные по котировке валюты из которой конвертируем
      ratefrom = CalculatedExchangeRate.where("from_currency_id = ? and created_at < ?", from.id, datetime).last

      #данные по котировке валюты в которую конвертируем
      rateto =  CalculatedExchangeRate.where("from_currency_id = ? and created_at < ?", to.id, datetime).last

      #конвертируем в базовую валюту
      if (!ratefrom.nil? && ratefrom.to_currency_id == to.id)
        ratefrom.rate.to_f.round(4)
      #конвертируем из базовой валюты
      elsif (!rateto.nil? && rateto.to_currency_id == from.id)
        (1/rateto.rate).to_f.round(4)
      #конвертируем не из базовой в небазовую
      elsif (!ratefrom.nil? && !rateto.nil? && ratefrom.to_currency_id == rateto.to_currency_id)
        (ratefrom.rate/rateto.rate).to_f.round(4)
      #в CalculatedExchangeRates не найдены необходимые записи
      else
        raise "В базе данных недостаточно данных"
      end

    end
  end

end


text:
package com.intellij.psi.impl.source;

import com.intellij.ide.highlighter.JavaFileType;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.*;
import com.intellij.psi.impl.java.stubs.JavaStubElementTypes;
import com.intellij.psi.impl.java.stubs.PsiJavaFileStub;
import com.intellij.psi.util.PsiTreeUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class PsiJavaFileImpl extends PsiJavaFileBaseImpl {
  public PsiJavaFileImpl(FileViewProvider file) {
    super(JavaStubElementTypes.JAVA_FILE, JavaStubElementTypes.JAVA_FILE, file);
  }

  @NotNull
  @Override
  public FileType getFileType() {
    return JavaFileType.INSTANCE;
  }

  @Nullable
  @Override
  public PsiJavaModule getModuleDeclaration() {
    PsiJavaFileStub stub = (PsiJavaFileStub)getGreenStub();
    return stub != null ? stub.getModule() : PsiTreeUtil.getChildOfType(this, PsiJavaModule.class);
  }

  @Override
  public String toString() {
    return "PsiJavaFile:" + getName();
  }
}


text:
#ifndef BOOST_PHOENIX_CORE_DETAIL_MEMBER_VARIABLE_HPP
#define BOOST_PHOENIX_CORE_DETAIL_MEMBER_VARIABLE_HPP

#include <boost/proto/detail/decltype.hpp>
#include <boost/type_traits/remove_pointer.hpp>

#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4180) // qualifier applied to function type has no meaning; ignored
#endif

namespace boost { namespace phoenix { namespace detail {

        template <typename RT, typename MP>
        struct member_variable
        {
            template <typename Sig>
            struct result;

            template <typename This, typename Class>
            struct result<This(Class)>
                : result<This(Class const &)>
            {};

            template <typename This, typename Class>
            struct result<This(Class &)>
            {
                typedef typename boost::mpl::if_c<
                    boost::is_const<
                        typename boost::remove_pointer<
                            typename boost::remove_reference<Class>::type
                        >::type
                    >::value
                  , const RT&
                  , RT&
                >::type
                type;
            };

            member_variable(MP mp)
                : mp(mp) {}

            template <typename Class>
            RT& operator()(Class& obj) const
            {
                BOOST_PROTO_USE_GET_POINTER();

                typedef typename proto::detail::class_member_traits<MP>::class_type class_type;
                return (BOOST_PROTO_GET_POINTER(class_type, obj)->*mp);
            }

            template <typename Class>
            RT const& operator()(Class const& obj) const
            {
                BOOST_PROTO_USE_GET_POINTER();

                typedef typename proto::detail::class_member_traits<MP>::class_type class_type;
                return (BOOST_PROTO_GET_POINTER(class_type, obj)->*mp);
            }

            template <typename Class>
            RT& operator()(Class* obj) const
            {
                return obj->*mp;
            }

            template <typename Class>
            RT const& operator()(Class const* obj) const
            {
                return obj->*mp;
            }

            MP mp;
        };
}}}

#ifdef _MSC_VER
#pragma warning(pop)
#endif

#endif


text:
'use strict';

var gulp = require('gulp'),
    sass = require('gulp-ruby-sass'),
    notify = require("gulp-notify"),
    bower = require('gulp-bower'),
    config = require('./config/config');

var bowerDir = config.resourcePath('bower');

gulp.task('serve', function () {
    require('./server');
});

gulp.task('bower', function () {
    return bower().pipe(gulp.dest(bowerDir));
});

gulp.task('icons', function () {
    return gulp.src(bowerDir + '/fontawesome/fonts/**.*').pipe(gulp.dest(config.resourcePath('font')));
});

gulp.task('css', function () {
    return sass('./app/styles/' + config.sassMain + '.' + config.sassScss, {
        style: 'compressed',
        loadPath: [
            './app/styles',
            bowerDir + '/bootstrap-sass-official/assets/stylesheets',
            bowerDir + '/fontawesome/scss',
        ]
    }).on("error", notify.onError(function (error) {
        return "Error: " + error.message;
    })).pipe(gulp.dest(config.resourcePath('style')));
});

gulp.task('build', ['bower', 'icons', 'css']);

gulp.task('default', ['build', 'serve']);


text:
namespace sober {
namespace network {

Engine::Engine():
    log_("sober.network.Engine", this),
    resolver_(io_service) {
}

void Engine::run() {
  BOOST_LOG(log_.debug) << "run";

  // If 'run' called twice 'reset' need to be called between
  io_service.reset();

  io_service.run();
}

} // namespace network
} // namespace sober


text:
$(function() {
  if ($("#notifications-dropdown").length > 0) {
    $(".clear-notifications").on("click", clearNotifications);
    setTimeout(updateNotifications, 5000);
  }
});

function clearNotifications() {
  $("#notifications-dropdown").removeClass("open");
  $(".unread").removeClass("unread");
}

function updateNotifications () {
  if ($("#notifications-dropdown").length == 0) {
    return // To stop polling when no longer logged in
  }

  var unreadNotificationsBefore = $('.notification.unread').length;

  var user_id = $("#user-dropdown").attr("data-id");
  $.getScript("/notifications.js?user_id=" + user_id).done(function(script, textStatus) {
    var unreadNotifications = $('.notification.unread').length;

    // if (unreadNotificationsBefore != unreadNotifications) {
    //   if (unreadNotifications == 1) {
    //     toastr.info('You have ' + unreadNotifications + ' unread notification');
    //   } else if (unreadNotifications > 0) {
    //     toastr.info('You have ' + unreadNotifications + ' unread notifications');
    //   }
    // }
    var numNewUnreadNotifications = unreadNotifications - unreadNotificationsBefore;
    var newUnreadNotifications = $(".notification.unread").slice(0, numNewUnreadNotifications);

    newUnreadNotifications.each(function(index) {

      toastr.options = {
        "closeButton": true,
        "positionClass": "toast-bottom-right",
        "progressBar": true,
        "onclick": function() {
          $(".notification.unread:eq(" + index + ")").find("a")[0].click();
        }
      }

      toastr["info"]($(this).text())
    });

  });

  setTimeout(updateNotifications, 5000);
};


text:
module.exports = function( grunt )
{
    grunt.registerTask( 'component', function()
    {
        var config = JSON.parse( grunt.file.read( 'component.json' ) );

        config.files = grunt.file.expand( 'locale/*.js' );
        config.files.unshift( 'moment.js' );

        grunt.file.write( 'component.json', JSON.stringify( config, true, 2 ) + '\n' );
    } );
};


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;

namespace V5_DataCollection._Class.PythonExt {
    /// <summary>
    /// Ö´ÐÐpython½Å±¾
    /// </summary>
    public class PythonExtHelper {

        public delegate void OutWrite(string msg);
        public static event OutWrite OutWriteHandler;
        /// <summary>
        /// ÔËÐÐPython½Å±¾
        /// </summary>
        /// <param name="pythonFile"></param>
        /// <returns></returns>
        public static string RunPython(string pythonFile, object[] inputObj) {

            ScriptEngine _engine = Python.CreateEngine();

            string fileName = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, pythonFile);

            #region ×Ö·û´®
            var code = @"import sys" + "\n" +
                @"from System.IO import Path" + "\n" +
                @"sys.path.append("".\pythonlib.zip"")" + "\n" +
                @"import clr" + "\n" +
                @"execfile(Path.GetFullPath(r'" + pythonFile + @"'))";
            var source = _engine.CreateScriptSourceFromString(code);

            var scope = _engine.CreateScope();
            source.Execute(scope);
            #endregion

            #region Îļþ
            //var source = _engine.CreateScriptSourceFromFile(fileName, Encoding.Default, SourceCodeKind.Statements);

            //CompiledCode _code = source.Compile();

            //var scope = _engine.CreateScope();

            //_code.Execute(scope);
            #endregion

            var main = scope.GetVariable<Func<object[], string>>("start");

            return main(inputObj);

        }

        public static void RunScriptPython(string pythonContent, object[] inputObj) {
            ScriptEngine _engine = Python.CreateEngine();

            #region ×Ö·û´®
            var code = @"import sys" + "\n" +
                @"import clr" + "\n" +
                @"sys.path.append("".\pythonlib.zip"")" + "\n" +
                @"sys.stdout=my" + "\n" +
                @pythonContent;
            var source = _engine.CreateScriptSourceFromString(code);

            var scope = _engine.CreateScope();
            scope.SetVariable("my", new Test());
            source.Execute(scope);
            #endregion

            var main = scope.GetVariable<Func<object[], string>>("start");

            var s = main(inputObj);

            OutWriteHandler?.Invoke("·µ»Ø½á¹û:" + s);
        }

        public class Test {
            public void write(string s) {
                OutWriteHandler?.Invoke(s);
            }
        }
    }

}


text:
12:0 In the name of GOD, Gracious, Merciful.

12:1 A(1).L(30).R(200). <> 231. These (letters) are proofs of this profound scripture.

12:2 We have revealed it an Arabic Quran, that you may understand.

12:3 We narrate to you the most accurate history through the revelation of this Quran. Before this, you were totally unaware.

12:4 Recall that Joseph said to his father, "O my father, I saw eleven planets, and the sun, and the moon; I saw them prostrating before me."

12:5 He said, "My son, do not tell your brothers about your dream, lest they plot and scheme against you. Surely, the devil is man's worst enemy.

12:6 "Your Lord has thus blessed you, and has given you good news through your dream. He has perfected His blessings upon you and upon the family of Jacob, as He did for your ancestors Abraham and Isaac before that. Your Lord is Omniscient, Most Wise."

12:7 In Joseph and his brothers there are lessons for the seekers.

12:8 They said, "Joseph and his brother are favored by our father, and we are in the majority. Indeed, our father is far astray.

12:9 "Let us kill Joseph, or banish him, that you may get some attention from your father. Afterwards, you can be righteous people."

12:10 One of them said, "Do not kill Joseph; let us throw him into the abyss of the well. Perhaps some caravan can pick him up, if this is what you decide to do."

12:11 They said, "Our father, why do you not trust us with Joseph? We will take good care of him.

12:12 "Send him with us tomorrow to run and play. We will protect him."

12:13 He said, "I worry lest you go away with him, then the wolf may devour him while you are not watching him."

12:14 They said, "Indeed, if the wolf devours him, with so many of us around, then we are really losers."

12:15 When they went away with him, and unanimously decided to throw him into the abyss of the well, we inspired him: "Some day, you will tell them about all this, while they have no idea."

12:16 They came back to their father in the evening, weeping.

12:17 They said, "Our father, we went racing with each other, leaving Joseph with our equipment, and the wolf devoured him. You will never believe us, even if we were telling the truth."

12:18 They produced his shirt with fake blood on it. He said, "Indeed, you have conspired with each other to commit a certain scheme. All I can do is resort to a quiet patience. May GOD help me in the face of your conspiracy."

12:19 A caravan passed by, and soon sent their waterer. He let down his bucket, then said, "How lucky! There is a boy here!" They took him along as merchandise, and GOD was fully aware of what they did.

12:20 They sold him for a cheap price - a few dirhams - for they did not have any need for him.

12:21 The one who bought him in Egypt said to his wife, "Take good care of him. Maybe he can help us, or maybe we can adopt him." We thus established Joseph on earth, and we taught him the interpretation of dreams. GOD's command is always done, but most people do not know.

12:22 When he reached maturity, we endowed him with wisdom and knowledge. We thus reward the righteous.

12:23 The lady of the house where he lived tried to seduce him. She closed the doors and said, "I am all yours." He said, "May GOD protect me. He is my Lord, who gave me a good home. The transgressors never succeed."

12:24 She almost succumbed to him, and he almost succumbed to her, if it were not that he saw a proof from his Lord. We thus diverted evil and sin away from him, for he was one of our devoted servants.

12:25 The two of them raced towards the door, and, in the process, she tore his garment from the back. They found her husband at the door. She said, "What should be the punishment for one who wanted to molest your wife, except imprisonment or a painful punishment?"

12:26 He said, "She is the one who tried to seduce me." A witness from her family suggested: "If his garment is torn from the front, then she is telling the truth and he is a liar.

12:27 "And if his garment is torn from the back, then she lied, and he is telling the truth."

12:28 When her husband saw that his garment was torn from the back, he said, "This is a woman's scheme. Indeed, your scheming is formidable.

12:29 "Joseph, disregard this incident. As for you (my wife), you should seek forgiveness for your sin. You have committed an error."

12:30 Some women in the city gossiped: "The governor's wife is trying to seduce her servant. She is deeply in love with him. We see that she has gone astray."

12:31 When she heard of their gossip, she invited them, prepared for them a comfortable place, and gave each of them a knife. She then said to him, "Enter their room." When they saw him, they so admired him, that they cut their hands. They said, "Glory be to GOD, this is not a human being; this is an honorable angel."

12:32 She said, "This is the one you blamed me for falling in love with. I did indeed try to seduce him, and he refused. Unless he does what I command him to do, he will surely go to prison, and will be debased."

12:33 He said, "My Lord, the prison is better than giving in to them. Unless You divert their scheming from me, I may desire them and behave like the ignorant ones."

12:34 His Lord answered his prayer and diverted their scheming from him. He is the Hearer, the Omniscient.

12:35 Later, they saw to it, despite the clear proofs, that they should imprison him for awhile.

12:36 Two young men were in the prison with him. One of them said, "I saw (in my dream) that I was making wine," and the other said, "I saw myself carrying bread on my head, from which the birds were eating. Inform us of the interpretation of these dreams. We see that you are righteous."

12:37 He said, "If any food is provided to you, I can inform you about it before you receive it. This is some of the knowledge bestowed upon me by my Lord. I have forsaken the religion of people who do not believe in GOD, and with regard to the Hereafter, they are really disbelievers.

12:38 "And I followed instead the religion of my ancestors, Abraham, Isaac, and Jacob. We never set up any idols beside GOD. Such is the blessing from GOD upon us and upon the people, but most people are unappreciative.

12:39 "O my prison mates, are several gods better, or GOD alone, the One, the Supreme?

12:40 "You do not worship beside Him except innovations that you have made up, you and your parents. GOD has never authorized such idols. All ruling belongs to GOD, and He has ruled that you shall not worship except Him. This is the perfect religion, but most people do not know.

12:41 "O my prison mates, one of you will be the wine butler for his lord, while the other will be crucified - the birds will eat from his head. This settles the matter about which you have inquired."

12:42 He then said to the one to be saved "Remember me at your lord." Thus, the devil caused him to forget his Lord, and, consequently, he remained in prison a few more years.

12:43 The king said, "I saw seven fat cows being devoured by seven skinny cows, and seven green spikes (of wheat), and others shriveled. O my elders, advise me regarding my dream, if you know how to interpret the dreams."

12:44 They said, "Nonsense dreams. When it comes to the interpretation of dreams, we are not knowledgeable."

12:45 The one who was saved (from the prison) said, now that he finally remembered, "I can tell you its interpretation, so send me (to Joseph)."

12:46 "Joseph my friend, inform us about seven fat cows being devoured by seven skinny cows, and seven green spikes, and others shriveled. I wish to go back with some information for the people."

12:47 He said, "What you cultivate during the next seven years, when the time of harvest comes, leave the grains in their spikes, except for what you eat.

12:48 "After that, seven years of drought will come, which will consume most of what you stored for them.

12:49 "After that, a year will come that brings relief for the people, and they will, once again, press juice."

12:50 The king said, "Bring him to me." When the messenger came to him, he said, "Go back to your lord and ask him to investigate the women who cut their hands. My Lord is fully aware of their schemes."

12:51 (The king) said (to the women), "What do you know about the incident when you tried to seduce Joseph?" They said, "GOD forbid; we did not know of anything evil committed by him." The wife of the governor said, "Now the truth has prevailed. I am the one who tried to seduce him, and he was the truthful one.

12:52 "I hope that he will realize that I never betrayed him in his absence, for GOD does not bless the schemes of the betrayers.

12:53 "I do not claim innocence for myself. The self is an advocate of vice, except for those who have attained mercy from my Lord. My Lord is Forgiver, Merciful."

12:54 The king said, "Bring him to me, so I can hire him to work for me." When he talked with him, he said, "Today, you have a prominent position with us."

12:55 He said, "Make me the treasurer, for I am experienced in this area and knowledgeable."

12:56 We thus established Joseph on earth, ruling as he wished. We shower our mercy upon whomever we will, and we never fail to recompense the righteous.

12:57 Additionally, the reward in the Hereafter is even better for those who believe and lead a righteous life.

12:58 Joseph's brothers came; when they entered, he recognized them, while they did not recognize him.

12:59 After he provided them with their provisions, he said, "Next time, bring with you your half-brother. Do you not see that I give full measure, and treat you generously?

12:60 "If you fail to bring him to me, you will get no share from me; you will not even come close."

12:61 They said, "We will negotiate with his father about him. We will surely do this."

12:62 He then instructed his assistants: "Put their goods back in their bags. When they find them upon their return to their family, they may come back sooner."

12:63 When they returned to their father, they said, "Our father, we can no longer get any provisions, unless you send our brother with us. We will take good care of him."

12:64 He said, "Shall I trust you with him, as I trusted you with his brother before that? GOD is the best Protector, and, of all the merciful ones, He is the Merciful."

12:65 When they opened their bags, they found their goods returned to them. They said, "Our father, what more can we ask for? Here are our goods returned to us. We can thus provide for our family, protect our brother, and receive one more camel-load. This is certainly a profitable deal."

12:66 He said, "I will not send him with you, unless you give me a solemn pledge before GOD that you will bring him back, unless you are utterly overwhelmed." When they gave him their solemn pledge, he said, "GOD is witnessing everything we say."

12:67 And he said, "O my sons, do not enter from one door; enter through separate doors. However, I cannot save you from anything that is predetermined by GOD. To GOD belongs all judgments. I trust in Him, and in Him shall all the trusters put their trust."

12:68 When they went (to Joseph), they entered in accordance with their father's instructions. Although this could not change anything decreed by GOD, Jacob had a private reason for asking them to do this. For he possessed certain knowledge that we taught him, but most people do not know.

12:69 When they entered Joseph's place, he brought his brother closer to him and said, "I am your brother; do not be saddened by their actions."

12:70 When he provided them with their provisions, he placed the drinking cup in his brother's bag, then an announcer announced: "The owners of this caravan are thieves."

12:71 They said, as they came towards them, "What did you lose?"

12:72 They said, "We lost the king's cup. Anyone who returns it will receive an extra camel-load; I personally guarantee this."

12:73 They said, "By GOD, you know full well that we did not come here to commit evil, nor are we thieves."

12:74 They said, "What is the punishment for the thief, if you are liars?"

12:75 They said, "The punishment, if it is found in his bag, is that the thief belongs to you. We thus punish the guilty."

12:76 He then started by inspecting their containers, before getting to his brother's container, and he extracted it out of his brother's container. We thus perfected the scheme for Joseph; he could not have kept his brother if he applied the king's law. But that was the will of GOD. We exalt whomever we choose to higher ranks. Above every knowledgeable one, there is one who is even more knowledgeable.

12:77 They said, "If he stole, so did a brother of his in the past." Joseph concealed his feelings in himself, and did not give them any clue. He said (to himself), "You are really bad. GOD is fully aware of your accusations."

12:78 They said, "O you noble one, he has a father who is elderly; would you take one of us in his place? We see that you are a kind man."

12:79 He said, "GOD forbid that we should take other than the one in whose possession we found our goods. Otherwise, we would be unjust."

12:80 When they despaired of changing his mind, they conferred together. Their eldest said, "Do you realize that your father has taken a solemn pledge from you before GOD? In the past you lost Joseph. I am not leaving this place until my father gives me permission, or until GOD judges for me; He is the best Judge.

12:81 "Go back to your father and tell him... `Our father, your son has committed a theft. We know for sure, because this is what we have witnessed. This was an unexpected occurrence.

12:82 `You may ask the community where we were, and the caravan that came back with us. We are telling the truth.' "

12:83 He said, "Indeed, you have conspired to carry out a certain scheme. Quiet patience is my only recourse. May GOD bring them all back to me. He is the Omniscient, Most Wise."

12:84 He turned away from them, saying, "I am grieving over Joseph." His eyes turned white from grieving so much; he was truly sad.

12:85 They said, "By GOD, you will keep on grieving over Joseph until you become ill, or until you die."

12:86 He said, "I simply complain to GOD about my dilemma and grief, for I know from GOD what you do not know.

12:87 "O my sons, go fetch Joseph and his brother, and never despair of GOD's grace. None despairs of GOD's grace except the disbelieving people."

12:88 When they entered (Joseph's) quarters, they said, "O you noble one, we have suffered a lot of hardship, along with our family, and we have brought inferior goods. But we hope that you will give us full measure and be charitable to us. GOD rewards the charitable."

12:89 He said, "Do you recall what you did to Joseph and his brother when you were ignorant?"

12:90 They said, "You must be Joseph." He said, "I am Joseph, and here is my brother. GOD has blessed us. That is because if one leads a righteous life, and steadfastly perseveres, GOD never fails to reward the righteous."

12:91 They said, "By GOD, GOD has truly preferred you over us. We were definitely wrong."

12:92 He said, "There is no blame upon you today. May GOD forgive you. Of all the merciful ones, He is the Merciful.

12:93 "Take this shirt of mine; when you throw it on my father's face, his vision will be restored. Bring your whole family and come back to me."

12:94 Even before the caravan arrived, their father said, "I can sense the smell of Joseph. Will someone enlighten me?"

12:95 They said, "By GOD, you are still in your old confusion."

12:96 When the bearer of good news arrived, he threw (the shirt) on his face, whereupon his vision was restored. He said, "Did I not tell you that I knew from GOD what you did not know?"

12:97 They said, "Our father, pray for our forgiveness; we were wrong indeed."

12:98 He said, "I will implore my Lord to forgive you; He is the Forgiver, Merciful."

12:99 When they entered Joseph's quarters, he embraced his parents, saying, "Welcome to Egypt. GOD willing, you will be safe here."

12:100 He raised his parents upon the throne. They fell prostrate before him. He said, "O my father, this is the fulfillment of my old dream. My Lord has made it come true. He has blessed me, delivered me from the prison, and brought you from the desert, after the devil had driven a wedge between me and my brothers. My Lord is Most Kind towards whomever He wills. He is the Knower, the Most Wise."

12:101 "My Lord, You have given me kingship and taught me the interpretation of dreams. Initiator of the heavens and the earth; You are my Lord and Master in this life and in the Hereafter. Let me die as a submitter, and count me with the righteous."

12:102 This is news from the past that we reveal to you. You were not present when they made their unanimous decision (to throw Joseph in the well), as they conspired together.

12:103 Most people, no matter what you do, will not believe.

12:104 You are not asking them for any money; you simply deliver this reminder for all the people.

12:105 So many proofs in the heavens and the earth are given to them, but they pass by them, heedlessly!

12:106 The majority of those who believe in GOD do not do so without committing idol worship.

12:107 Have they guaranteed that an overwhelming retribution from GOD will not strike them, or the Hour will not come to them suddenly, when they least expect it?

12:108 Say, "This is my path: I invite to GOD, on the basis of a clear proof, and so do those who follow me. GOD be glorified. I am not an idol worshiper."

12:109 We did not send before you except men whom we inspired, chosen from the people of various communities. Did they not roam the earth and see the consequences for those before them? The abode of the Hereafter is far better for those who lead a righteous life. Would you then understand?

12:110 Just when the messengers despair, and think that they had been rejected, our victory comes to them. We then save whomever we choose, while our retribution for the guilty people is unavoidable.

12:111 In their history, there is a lesson for those who possess intelligence. This is not fabricated Hadith; this (Quran) confirms all previous scriptures, provides the details of everything, and is a beacon and mercy for those who believe.


text:
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $this->load->view("common/header") ?>

Mission

the team

Contact

Jobs

            <img src="<?= base_url() ?>/img/About.png"  id="about_header"  class="img-responsive">

  Mission

                <div id="mission" class="panel-collapse collapse in white" style="background: url(<?= base_url() ?>img/dots.png);" role="tabpanel" aria-labelledby="headingOne">

Archfold, LLC is an entertainment company with diversified holdings ranging from music, technology, and digital media. Our goal is to combine creativity in all ventures to create change to impact culture.

Our Mission

 Many of us struggle to create. We fear that it will not be good.

                                    OUR GOAL IS TO CREATE AN ENVIRONMENT WHERE FEAR AND FAILURE ARE NOTHING MORE THAN REST STOPS ON THE ROAD TO SUCCESS.
                                     We believe we can motivate people to find purpose  and desire in their life and to recognize the importance that it has.
                                     To create, takes nothing more than a vision.  That vision contains  meaning.

                                     Our goal is to create a world where creators start with vision and make reality.

What we value

Extreme Work-Ethic

Family

Purpose & Desire

What's Your Why?

Leaders

Be Extraordinary

Live Inspiration

The Team

                            <div class="col-xs-12 col-sm-6 padding-10" style="background: url(<?= base_url() ?>img/dots.png);height:400px;overflow-y: auto;color:#dddddd" >

Garrett Jacobs

Founder

                                    <img src="<?= base_url() ?>img/TeamMember1.png" alt="Team Member 1" class="img-responsive">

Team Member 1

General Manager

                                    <img src="<?= base_url() ?>img/TeamMember2.png" alt="Team Member 2" class="img-responsive">

Team Member 2

Chief Operating Officer

                                    <img src="<?= base_url() ?>img/TeamMember3.png" alt="Team Member 3" class="img-responsive">

Team Member 3

Senior Vice President

                                    <img src="<?= base_url() ?>img/TeamMember4.png" alt="Team Member 4" class="img-responsive">

Team Member 4

VP, Business & Legal Affairs

 Contact

                            <div class="col-xs-12 col-sm-6 white" style="height:400px;background: url(<?= base_url() ?>img/dots.png);padding-top:150px">

                                        info@archfold.com

                                        Atlanta, GA

                                <form class="padding-10">

Got a question?

                                        NAME
                                        <input type="text" class="form-control" id="name" >

                                        EMAIL
                                        <input type="email" class="form-control" id="email" >

                                        MESSAGE
                                        <textarea class="form-control" id="Message" rows="4"></textarea>

                                    <button type="submit" class="btn btn-default btn-sm pull-right">SEND</button>
                                </form>

Jobs

                    <div class="panel-body h2 text-center about-text" style="background: url(<?= base_url() ?>img/dots.png);margin-top:0px;color:#dddddd">

Do you believe you can make a difference in the world?

                        Do you want to learn more about the entertainment industry and apply your creativity and work ethic to a company that believes in you?

                        If so, we'd love hear from you!

                        <a href="<?= site_url("home/coming_soon") ?>" class="btn btn-default btn-lg" style="background:#fc3636;border:none;color:#dddddd">Know More

    <?php $this->load->view("common/footer") ?>


text:
namespace mozc {
namespace commands {
class RendererCommand;
}  // namespace commands
namespace renderer {
class RendererInterface;
}  // namespace renderer
namespace ibus {

class GtkCandidateWindowHandler : public CandidateWindowHandlerInterface {
 public:
  // GtkCandidateWindowHandler takes ownership of renderer_ pointer.
  explicit GtkCandidateWindowHandler(renderer::RendererInterface *renderer);
  virtual ~GtkCandidateWindowHandler();

  virtual void Update(IBusEngine *engine, const commands::Output &output);
  virtual void UpdateCursorRect(IBusEngine *engine);
  virtual void Hide(IBusEngine *engine);
  virtual void Show(IBusEngine *engine);

  virtual void OnIBusCustomFontDescriptionChanged(
      const string &custom_font_description);

  virtual void OnIBusUseCustomFontDescriptionChanged(
      bool use_custom_font_description);

 protected:
  bool SendUpdateCommand(IBusEngine *engine,
                         const commands::Output &output,
                         bool visibility) const;

  std::unique_ptr<renderer::RendererInterface> renderer_;
  std::unique_ptr<commands::Output> last_update_output_;

 private:
  string GetFontDescription() const;
  string custom_font_description_;
  bool use_custom_font_description_;
  DISALLOW_COPY_AND_ASSIGN(GtkCandidateWindowHandler);
};

}  // namespace ibus
}  // namespace mozc
#endif  // MOZC_UNIX_IBUS_GTK_CANDIDATE_WINDOW_HANDLER_H_