text:
> **_Note_**: permissions management is available only for the users with the *ADMIN* role.

The permissions on the object could be granted to the user in one of the following ways:

- the system has a "default" system role or users' group. This type of the system roles/groups assigned by default once a new user is created;
- assigned user groups or system roles where each member has the same permissions for specific objects;
- granted permissions for the specific user.

To open the form for changing permissions on the specific object (file or dataset) click right mouse-button on its name when hover over it in **Datasets list**, e.g.:
    ![NGB User Management](images/um-permissions-1.png)

Tap "MANAGE PERMISSIONS" in the context menu:
    ![NGB User Management](images/um-permissions-2.png)

The pop-up window will be appeared:
    ![NGB User Management](images/um-permissions-3.png)

In this window you can change an owner of the object, grant or deny permissions on the object to the users, groups and roles.

## Change an owner

Each object has an additional "Owner" property. Owner property is assigned to the user that created an object.

To change an owner of the object click on owner's name and select from the dropdown list another user (**1**), confirm choice by clicking on ![NGB User Management](images/um-permissions-4.png) icon opposite the inputted user name (**2**):
    ![NGB User Management](images/um-permissions-5.png)

## Edit permissions

### Edit permissions on the object for a specific user

You can explicitly define permissions for the object for a particular user in the "Manage permissions" window:

1. Click on ![NGB User Management](images/um-permissions-6.png) icon.
2. In appeared window select user in the dropdown list, for whom you'd define permissions (**1**). Confirm your choice by clicking "**Save**" button (**2**):
    ![NGB User Management](images/um-permissions-7.png)
3. In the "Manage permissions" window the table with selected user will be appeared. Click on the user name, the form with the permissions settings for this user will be displayed in the bottom:
    ![NGB User Management](images/um-permissions-8.png)
4. Set permissions by ticking checkboxes. E.g. in the example below both permissions ("**Read**" and "**Write**") were granted:
    ![NGB User Management](images/um-permissions-9.png)
    Set values will be saved automatically.

    > You could do the same through CLI using the command:
    > `$ ngb chmod rw+ -fl agnX1.09-28.trim.dm606.realign.vcf -u test_test@epam.com`
    > Set that permissions for a specific dataset (e.g. for the dataset "*fruitfly_local*"):
    > `$ ngb chmod rw+ -ds fruitfly_local -u test_test@epam.com`

5. You can unset permissions for the user by unticking checkboxes. Permissions settings will be displayed like:
    ![NGB User Management](images/um-permissions-14.png)

    > You could do the same through CLI using the command:
    > `$ ngb chmod ! -fl agnX1.09-28.trim.dm606.realign.vcf -u test_test@epam.com`
    > Unset permissions for a specific dataset (e.g. for the dataset "*fruitfly_local*"):
    > `$ ngb chmod ! -ds fruitfly_local -u test_test@epam.com`

### Edit permissions on the object for a specific user group/role

You can explicitly define permissions for the object for a particular user group or role in the "Manage permissions" window:

1. Click on ![NGB User Management](images/um-permissions-10.png) icon:
2. In appeared window select a group/role in the dropdown list, for which you'd define permissions (**1**). Confirm your choice by clicking "**Save**" button (**2**):
    ![NGB User Management](images/um-permissions-11.png)
3. In the "Manage permissions" window selected group/role will be appeared in the table. Click the group/role name, the form with the permissions settings for this group/role will be displayed in the bottom:
    ![NGB User Management](images/um-permissions-12.png)
4. Set permissions by ticking checkboxes. E.g. in the example below both permissions ("Read" and "Write") were denied:
    ![NGB User Management](images/um-permissions-13.png)
    Set values will be saved automatically.

    > You could do the same through CLI using the command:
    > `$ ngb chmod rw- -fl agnX1.09-28.trim.dm606.realign.vcf -gr REFERENCE_MANAGER`
    > Set that permissions for a specific dataset (e.g. for the dataset "*fruitfly_local*"):
    > `$ ngb chmod rw- -ds fruitfly_local -gr REFERENCE_MANAGER`

5. You can unset permissions for the group/role by unticking checkboxes. Permissions settings will be displayed like:
    ![NGB User Management](images/um-permissions-15.png)

    > You could do the same through CLI using the command:
    > `$ ngb chmod ! -fl agnX1.09-28.trim.dm606.realign.vcf -gr REFERENCE_MANAGER`
    > Unset permissions for a specific dataset (e.g. for the dataset "*fruitfly_local*"):
    > `$ ngb chmod ! -ds fruitfly_local -gr REFERENCE_MANAGER`

## Delete set permissions

To delete set permissions for the object for a particular user, user group or role in the "Manage permissions" window:

1. Click on "**Recycle bin**" icon opposite the user name or user group/role, for which you'd delete set permissions.
2. Changes will be saved automatically.

> You could delete permissions through CLI using the command exactly the same like for "*unset permissions*" (see examples above).


text:
        Field	Type	Alias	Properties

        {{field.name}}
        {{::field.type}}
        {{::field.alias}}
        {{field.properties.join(', ')}}

      See more results with this Schema

redpajama_set_name: RedPajamaGithub


text:
#if ORYOL_HAS_THREADS
#include <mutex>
static std::mutex lockMutex;
#define SCOPED_LOCK std::lock_guard<std::mutex> lock(lockMutex)
#else
#define SCOPED_LOCK
#endif

namespace Oryol {
namespace _priv {

//------------------------------------------------------------------------------
void
assignRegistry::SetAssign(const String& assign, const String& path) {
    SCOPED_LOCK;
    o_assert_dbg(assign.Back() == ':'); // "assign must end with a ':'\n"
    o_assert_dbg(assign.Length() > 1);  // assigns must be at least 2 chars to not be confused with DOS drive letters
    o_assert_dbg(!path.Empty());
    o_assert_dbg((path.Back() == '/') || (path.Back() == ':')); // path must end in a '/' (dir) or ':' (other assign)
    if (this->assigns.Contains(assign)) {
        this->assigns[assign] = path;
    }
    else {
        this->assigns.Add(assign, path);
    }
}

//------------------------------------------------------------------------------
bool
assignRegistry::HasAssign(const String& assign) const {
    SCOPED_LOCK;
    o_assert_dbg(!assign.Empty());
    bool result = this->assigns.Contains(assign);
    return result;
}

//------------------------------------------------------------------------------
String
assignRegistry::LookupAssign(const String& assign) const {
    SCOPED_LOCK;
    o_assert_dbg(!assign.Empty());
    o_assert_dbg(assign.Back() == ':');
    String result;
    if (this->assigns.Contains(assign)) {
        result = this->assigns[assign];
    }
    return result;
}

//------------------------------------------------------------------------------
String
assignRegistry::ResolveAssigns(const String& str) const {
    SCOPED_LOCK;
    StringBuilder builder;
    builder.Set(str);

    // while there are assigns to replace...
    int index;
    while ((index = builder.FindFirstOf(0, EndOfString, ":")) != EndOfString) {
        // ignore DOS drive letters
        if (index > 1) {
            String assignString = builder.GetSubString(0, index + 1);

            // lookup the assign, ignore unknown assigns, may be URL schemes
            if (this->assigns.Contains(assignString)) {

                // replace assign string
                builder.SubstituteFirst(assignString, this->assigns[assignString]);
            }
            else break;
        }
        else break;
    }
    String result = builder.GetString();
    return result;
}

} // namespace _priv
} // namespace Oryol


text:
<?php

/**
 * @author Roberto
 */

namespace TenilUser\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use TenilUser\Form\User as FormUser;
use TenilUser\Form\Forgot as FormForgot;
use TenilUser\Form\Reset as FormReset;

class IndexController extends AbstractActionController {

    public function indexAction() {

        return new ViewModel();
    }

    public function registerAction() {

        // Primeira coisa a fazer é chamar o Form, ele vai aparecer sempre.
        $form = new FormUser;
        // Também recupera informações do REQUEST
        $request = $this->getRequest();

        // Verificar se os dados vieram de GET ou POST
        if ($request->isPost()) {
            // Preenchendo os dados recuperado novamente no formulário
            $form->setData($request->getPost());
            // Verificando se os dados do formulário
            // são válidos (filters e validators).
            if ($form->isValid()) {
                // Criando uma instância da classe de serviço do Module.php
                $service = $this->getServiceLocator()->get('TenilUser\Service\User');
                // Se a inserção for verdadeira, entra no if.
                //if ($service->insert($request->getPost()->toArray())) {
                if ($service->insert($form->getData())) {
                    /**
                     * @todo Aprimorar mensagens de status.
                     */
                    $this->flashMessenger()->setNamespace('Tenil')->addSuccessMessage('Um link para ativação da sua conta foi enviado para seu e-mail.');
                    return $this->redirect()->toRoute('tenil-user/default', array('controller' => 'auth', 'action' => 'index'));
                }
            } else {
                foreach ($form->getMessages() as $message) {
                    $this->flashMessenger()->setNamespace('Tenil')->addErrorMessage($message);
                }
            }
        }

        $view = new ViewModel();
        $this->layout('layout/login');
        $view->setVariables(array('form' => $form));

        return $view;
    }

    public function activateAction() {

        $activationKey = $this->params()->fromRoute('key');
        $userService = $this->getServiceLocator()->get('TenilUser\Service\User');

        $result = $userService->activate($activationKey);

        if ($result) {
            $message = 'Conta ativada com sucesso';
            $this->flashMessenger()->setNamespace('Tenil')->addSuccessMessage($message);
        } else {
            $message = 'Chave de ativação de conta não encontrada';
            $this->flashMessenger()->setNamespace('Tenil')->addErrorMessage($message);
        }

        return $this->redirect()->toRoute('tenil-user/default', array('controller' => 'auth', 'action' => 'index'));
    }

    public function forgotAction() {

        $form = new FormForgot;
        $request = $this->getRequest();

        if ($request->isPost()) {

            $form->setData($request->getPost());

            if ($form->isValid()) {
                $data = $form->getData();

                // buscar no banco
                // gerar chave
                // enviar e-mail com chave
                $userService = $this->getServiceLocator()->get('TenilUser\Service\User');
                $userService->passwordReset($data['email']);

                // escrever mensagem de envio
                $message = 'Se o e-mail especificado existe no nosso sistema, nós enviamos um link de redefinição de senha para ele.';
                $this->flashMessenger()->setNamespace('Tenil')->addInfoMessage($message);

                // redirecionar para tela de login
                return $this->redirect()->toRoute('tenil-user/default', array('controller' => 'auth', 'action' => 'index'));
            } else {
                foreach ($form->getMessages() as $message) {
                    $this->flashMessenger()->setNamespace('Tenil')->addErrorMessage($message);
                }
            }
        }

        $view = new ViewModel(array('form' => $form));
        $this->layout('layout/login');
        return $view;
    }

    public function resetAction() {

        $resetKey = $this->params()->fromRoute('key');
        $request = $this->getRequest();

        $form = new FormReset;

        if (isset($resetKey)) {
            $userService = $this->getServiceLocator()->get('TenilUser\Service\User');
            $user = $userService->findByKey($resetKey);

            if ($user) {
                $form->get('id')->setValue($user->getId());
            } else {
                $message = 'Link para redefinir senha inválido';
                $this->flashMessenger()->setNamespace('Tenil')->addErrorMessage($message);
                return $this->redirect()->toRoute('tenil-user/default', array('controller' => 'auth', 'action' => 'index'));
            }
        } else {

            if ($request->isPost()) {
                $form->setData($request->getPost());
                if ($form->isValid()) {
                    $data = $form->getData();
                    $data['passwordResetKey'] = NULL;

                    $service = $this->getServiceLocator()->get('TenilUser\Service\User');
                    $service->update($data);

                    $message = 'Senha atualizada com sucesso';
                    $this->flashMessenger()->setNamespace('Tenil')->addSuccessMessage($message);
                    return $this->redirect()->toRoute('tenil-user/default', array('controller' => 'auth', 'action' => 'index'));
                } else {
                    foreach ($form->getMessages() as $message) {
                        $this->flashMessenger()->setNamespace('Tenil')->addErrorMessage($message);
                    }
                }
            } else {
                return $this->redirect()->toRoute('tenil-user/default', array('controller' => 'index', 'action' => 'forgot'));
            }
        }

        $view = new ViewModel(array('form' => $form));
        $this->layout('layout/login');
        return $view;
    }

}


text:
using System.Configuration;

namespace AngularAzureSearch.WebAPI.Helpers
{
    class AppSettingsConfig
    {
        /// <summary>
        /// The name of the DocumentDB database.
        /// </summary>
        public static string Db { get { return ConfigurationManager.AppSettings["db"]; } }

        /// <summary>
        /// The default offer type to set new collections. Ie: S1, S2, S3
        /// </summary>
        public static string DefaultOfferType { get { return ConfigurationManager.AppSettings["defaultOfferType"]; } }

        /// <summary>
        /// The DocumentDB collection to store User information.
        /// </summary>
        public static string UserCollection { get { return ConfigurationManager.AppSettings["userCollection"]; } }

        /// <summary>
        /// The DocumentDB collection (name) for storing main set of documents.
        /// You can add additional settings using this template to pass them into new custom repositories.
        /// Simply add the corresponding field to the web.config or update in the Azure Portal's app settings.
        /// Alternatively, if you want to specify a collection name directly in the repository, you can do that by
        /// passing the string directly in quotes.
        /// </summary>
        public static string MainCollection { get { return ConfigurationManager.AppSettings["mainCollection"]; } }

        /// <summary>
        /// The DocumentDB endpoint Uri.
        /// </summary>
        public static string EndPoint { get { return ConfigurationManager.AppSettings["endpoint"]; } }

        /// <summary>
        /// The DocumentDB authorization key.
        /// </summary>
        public static string AuthKey { get { return ConfigurationManager.AppSettings["authkey"]; } }

        /// <summary>
        /// The comma-separated list of domains, with no trailing slash!
        /// </summary>
        public static string CorsPolicyOrigins { get { return ConfigurationManager.AppSettings["CorsPolicyOrigins"]; } }

        /// <summary>
        /// The base Url for the host website that is calling the WebApi service.
        /// </summary>
        public static string ClientSite { get { return ConfigurationManager.AppSettings["clientSite"]; } }

        /// <summary>
        /// The SendGrid mail account for your accress credentials.
        /// </summary>
        public static string MailAccount { get { return ConfigurationManager.AppSettings["mailAccount"]; } }

        /// <summary>
        /// The SendGrid password for your access credentials.
        /// </summary>
        public static string MailPassword { get { return ConfigurationManager.AppSettings["mailPassword"]; } }

        /// <summary>
        /// The SendGrid From address used for emails to users.
        /// </summary>
        public static string MailFromAddress { get { return ConfigurationManager.AppSettings["mailPassword"]; } }

        /// <summary>
        /// The Name used in all Sent Emails.
        /// </summary>
        public static string MailFromName { get { return ConfigurationManager.AppSettings["mailFromName"]; } }

        /// <summary>
        /// Twilio Sid used in SMS messages.
        /// </summary>
        public static string TwilioSid { get { return ConfigurationManager.AppSettings["twilioSid"]; } }

        /// <summary>
        /// Twilio Token used for verifying with SMS service.
        /// </summary>
        public static string TwilioToken { get { return ConfigurationManager.AppSettings["twilioToken"]; } }

        /// <summary>
        /// Twilio From Phone (the phone number to send text messages).
        /// </summary>
        public static string TwilioFromPhone { get { return ConfigurationManager.AppSettings["twilioFromPhone"]; } }

        /// <summary>
        /// Blob Storage Connection String
        /// </summary>
        public static string BlobStorageConnectionString { get { return ConfigurationManager.AppSettings["blobStorageConnectionString"]; } }

        /// <summary>
        /// Blob Storage Container Name
        /// </summary>
        public static string BlobStorageContainerName { get { return ConfigurationManager.AppSettings["blobStorageContainerName"]; } }
    }
}


text:
namespace cc {

class CC_EXPORT LayerTreeSettings {
 public:
  LayerTreeSettings();
  ~LayerTreeSettings();

  bool impl_side_painting;
  bool allow_antialiasing;
  bool throttle_frame_production;
  bool begin_frame_scheduling_enabled;
  bool using_synchronous_renderer_compositor;
  bool frame_driven_animation_enabled;
  bool dont_draw_when_resizing;
  bool per_tile_painting_enabled;
  bool partial_swap_enabled;
  bool cache_render_pass_contents;
  bool accelerated_animation_enabled;
  bool background_color_instead_of_checkerboard;
  bool show_overdraw_in_tracing;
  bool can_use_lcd_text;
  bool should_clear_root_render_pass;
  bool use_linear_fade_scrollbar_animator;
  int scrollbar_linear_fade_delay_ms;
  int scrollbar_linear_fade_length_ms;
  bool solid_color_scrollbars;
  SkColor solid_color_scrollbar_color;
  int solid_color_scrollbar_thickness_dip;
  bool calculate_top_controls_position;
  bool use_color_estimator;
  bool use_memory_management;
  bool timeout_and_draw_when_animation_checkerboards;
  bool layer_transforms_should_scale_layer_contents;
  float minimum_contents_scale;
  float low_res_contents_scale_factor;
  float top_controls_height;
  float top_controls_show_threshold;
  float top_controls_hide_threshold;
  bool top_controls_adjust_viewport;
  double refresh_rate;
  size_t max_partial_texture_updates;
  size_t num_raster_threads;
  gfx::Size default_tile_size;
  gfx::Size max_untiled_layer_size;
  gfx::Size minimum_occlusion_tracking_size;
  bool use_pinch_zoom_scrollbars;
  bool use_pinch_virtual_viewport;
  size_t max_tiles_for_interest_area;
  size_t max_unused_resource_memory_percentage;
  int highp_threshold_min;
  bool force_direct_layer_drawing;  // With Skia GPU backend.
  bool strict_layer_property_change_checking;
  bool use_map_image;
  std::string compositor_name;

  LayerTreeDebugState initial_debug_state;
};

}  // namespace cc

#endif  // CC_TREES_LAYER_TREE_SETTINGS_H_


text:
<resources>
    <!-- Default screen margins, per the Android Design guidelines. -->
    <dimen name="activity_horizontal_margin">16dp</dimen>
    <dimen name="activity_vertical_margin">16dp</dimen>

    <dimen name="drawer_width">200dp</dimen>
    <dimen name="md_simplelist_icon">40dp</dimen>
    <dimen name="md_simplelist_icon_checked">20dp</dimen>
</resources>


text:
"""Methods for building arbitrary image stylization model with MobileNetV2."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

from magenta.models.arbitrary_image_stylization import arbitrary_image_stylization_losses as losses
from magenta.models.arbitrary_image_stylization import nza_model as transformer_model
from magenta.models.image_stylization import ops
import tensorflow as tf

try:
  from nets.mobilenet import mobilenet_v2, mobilenet  # pylint:disable=g-import-not-at-top,g-multiple-import
except ImportError:
  print('Cannot import MobileNet model. Make sure to install slim '
        'models library described '
        'in https://github.com/tensorflow/models/tree/master/research/slim')
  raise

slim = tf.contrib.slim

def build_mobilenet_model(content_input_,
                          style_input_,
                          mobilenet_trainable=True,
                          style_params_trainable=False,
                          transformer_trainable=False,
                          reuse=None,
                          mobilenet_end_point='layer_19',
                          style_prediction_bottleneck=100,
                          adds_losses=True,
                          content_weights=None,
                          style_weights=None,
                          total_variation_weight=None):
  """The image stylize function using a MobileNetV2 instead of InceptionV3.

  Args:
    content_input_: Tensor. Batch of content input images.
    style_input_: Tensor. Batch of style input images.
    mobilenet_trainable: bool. Should the MobileNet parameters be trainable?
    style_params_trainable: bool. Should the style parameters be trainable?
    transformer_trainable: bool. Should the style transfer network be
        trainable?
    reuse: bool. Whether to reuse model parameters. Defaults to False.
    mobilenet_end_point: string. Specifies the endpoint to construct the
        MobileNetV2 network up to. This network is used for style prediction.
    style_prediction_bottleneck: int. Specifies the bottleneck size in the
        number of parameters of the style embedding.
    adds_losses: wheather or not to add objectives to the model.
    content_weights: dict mapping layer names to their associated content loss
        weight. Keys that are missing from the dict won't have their content
        loss computed.
    style_weights: dict mapping layer names to their associated style loss
        weight. Keys that are missing from the dict won't have their style
        loss computed.
    total_variation_weight: float. Coefficient for the total variation part of
        the loss.

  Returns:
    Tensor for the output of the transformer network, Tensor for the total loss,
    dict mapping loss names to losses, Tensor for the bottleneck activations of
    the style prediction network.
  """
  [activation_names,
   activation_depths] = transformer_model.style_normalization_activations()

  # Defines the style prediction network.
  style_params, bottleneck_feat = style_prediction_mobilenet(
      style_input_,
      activation_names,
      activation_depths,
      mobilenet_end_point=mobilenet_end_point,
      mobilenet_trainable=mobilenet_trainable,
      style_params_trainable=style_params_trainable,
      style_prediction_bottleneck=style_prediction_bottleneck,
      reuse=reuse
  )

  # Defines the style transformer network
  stylized_images = transformer_model.transform(
      content_input_,
      normalizer_fn=ops.conditional_style_norm,
      reuse=reuse,
      trainable=transformer_trainable,
      is_training=transformer_trainable,
      normalizer_params={'style_params': style_params}
  )

  # Adds losses
  loss_dict = {}
  total_loss = []
  if adds_losses:
    total_loss, loss_dict = losses.total_loss(
        content_input_,
        style_input_,
        stylized_images,
        content_weights=content_weights,
        style_weights=style_weights,
        total_variation_weight=total_variation_weight
    )

  return stylized_images, total_loss, loss_dict, bottleneck_feat

def style_prediction_mobilenet(style_input_,
                               activation_names,
                               activation_depths,
                               mobilenet_end_point='layer_19',
                               mobilenet_trainable=True,
                               style_params_trainable=False,
                               style_prediction_bottleneck=100,
                               reuse=None):
  """Maps style images to the style embeddings using MobileNetV2.

  Args:
    style_input_: Tensor. Batch of style input images.
    activation_names: string. Scope names of the activations of the transformer
        network which are used to apply style normalization.
    activation_depths: Shapes of the activations of the transformer network
        which are used to apply style normalization.
    mobilenet_end_point: string. Specifies the endpoint to construct the
        MobileNetV2 network up to. This network is part of the style prediction
        network.
    mobilenet_trainable: bool. Should the MobileNetV2 parameters be marked
        as trainable?
    style_params_trainable: bool. Should the mapping from bottleneck to
        beta and gamma parameters be marked as trainable?
    style_prediction_bottleneck: int. Specifies the bottleneck size in the
        number of parameters of the style embedding.
    reuse: bool. Whether to reuse model parameters. Defaults to False.

  Returns:
    Tensor for the output of the style prediction network, Tensor for the
        bottleneck of style parameters of the style prediction network.
  """
  with tf.name_scope('style_prediction_mobilenet') and tf.variable_scope(
      tf.get_variable_scope(), reuse=reuse):
    with slim.arg_scope(mobilenet_v2.training_scope(
        is_training=mobilenet_trainable)):
      _, end_points = mobilenet.mobilenet_base(
          style_input_,
          conv_defs=mobilenet_v2.V2_DEF,
          final_endpoint=mobilenet_end_point,
          scope='MobilenetV2'
      )

    feat_convlayer = end_points[mobilenet_end_point]
    with tf.name_scope('bottleneck'):
      # (batch_size, 1, 1, depth).
      bottleneck_feat = tf.reduce_mean(
          feat_convlayer, axis=[1, 2], keep_dims=True)

    if style_prediction_bottleneck > 0:
      with tf.variable_scope('mobilenet_conv'):
        with slim.arg_scope(
            [slim.conv2d],
            activation_fn=None,
            normalizer_fn=None,
            trainable=mobilenet_trainable):
          # (batch_size, 1, 1, style_prediction_bottleneck).
          bottleneck_feat = slim.conv2d(bottleneck_feat,
                                        style_prediction_bottleneck, [1, 1])

    style_params = {}
    with tf.variable_scope('style_params'):
      for i in range(len(activation_depths)):
        with tf.variable_scope(activation_names[i], reuse=reuse):
          with slim.arg_scope(
              [slim.conv2d],
              activation_fn=None,
              normalizer_fn=None,
              trainable=style_params_trainable):
            # Computing beta parameter of the style normalization for the
            # activation_names[i] layer of the style transformer network.
            # (batch_size, 1, 1, activation_depths[i])
            beta = slim.conv2d(bottleneck_feat, activation_depths[i], [1, 1])
            # (batch_size, activation_depths[i])
            beta = tf.squeeze(beta, [1, 2], name='SpatialSqueeze')
            style_params['{}/beta'.format(activation_names[i])] = beta

            # Computing gamma parameter of the style normalization for the
            # activation_names[i] layer of the style transformer network.
            # (batch_size, 1, 1, activation_depths[i])
            gamma = slim.conv2d(bottleneck_feat, activation_depths[i], [1, 1])
            # (batch_size, activation_depths[i])
            gamma = tf.squeeze(gamma, [1, 2], name='SpatialSqueeze')
            style_params['{}/gamma'.format(activation_names[i])] = gamma

  return style_params, bottleneck_feat


text:
import { RouterModule, Route } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';

const routes: Route[] = [
    { path: '', pathMatch: 'full', redirectTo: 'contact' },
    { path: 'home', loadChildren: 'app/home/home.module#HomeModule' },
    { path: 'dashboard', loadChildren: 'app/dashboard/dashboard.module#DashboardModule' },
    { path: 'profile', loadChildren: 'app/profile/profile.module#ProfileModule' },
    { path: 'weather', loadChildren: 'app/weather/weather.module#WeatherModule' },
    { path: 'contact', loadChildren: 'app/contact/contact.module#ContactModule' }
];

export const routing: ModuleWithProviders = RouterModule.forRoot(
    routes,
    {
        useHash: true
    }
);


text:
class Vec3 {
 public:

  float x;
  float y;
  float z;

  Vec3();
  Vec3( float x, float y, float z );
  Vec3( const Vec3& another );

  float length() const;

  void set( const float x, const float y, const float z );
  void set( const Vec3 &other );

  void addTo( const Vec3& other );
  void normalize();
  void scale( const float factor );
  void scale( const float x, const float y, const float z );

  Vec3 *add( const Vec3 &other ) const;
  Vec3 *normalized() const;
  Vec3 *scaled( const float factor ) const;
  Vec3 *scaled( const float x, const float y, const float z ) const;
 };

#endif


text:
<?xml version="1.0" ?>
<InterchangeEducationOrgCalendar xmlns="http://ed-fi.org/0100"
                                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                 xsi:schemaLocation="http://ed-fi.org/0100 ../../../../../../domain/src/main/resources/edfiXsd/Interchange-EducationOrgCalendar.xsd ">
    <CalendarDate>
        <Date>2009-08-01</Date>
        <CalendarEvent>Instructional day</CalendarEvent>
        <EducationOrgReference>
            <EducationalOrgIdentity>
                <StateOrganizationId>STANDARD-SEA</StateOrganizationId>
            </EducationalOrgIdentity>
        </EducationOrgReference>
    </CalendarDate>
</InterchangeEducationOrgCalendar>


text:
require 'rubygems'
require 'mac_notifier'


text:
package com.action.adapter;

/**
 * 创建实现了 MediaPlayer
 * Created by wuyunfeng on 2017/6/14.
 */
public class AudioPlayer implements MediaPlayer {

    @Override
    public void play(String audioType, String fileName) {
        if (audioType.equalsIgnoreCase("mp3")) {
            System.out.println("Playing mp3 file. Name: " + fileName);
        } else if (audioType.equalsIgnoreCase("vlc") || audioType.equalsIgnoreCase("mp4")) {
            MediaAdapter mediaAdapter = new MediaAdapter(audioType);
            mediaAdapter.play(audioType, fileName);
        }else {
            System.out.println("Invalid media. " + audioType + " format not supported");
        }
    }
}


text:
<?php
/**
 * Class and helper functions for array management
 *
 * @author Christophe SAUVEUR <christophe@cheeseburgames.com>
 * @version 1.0
 * @package framework
 */

namespace CheeseBurgames\MFX;

/**
 * Array management helper class
 */
class ArrayTools
{
	/**
	 * Reverses dimensions of the source array.
	 *
	 * The result array is built using the keys of the contained arrays, each referencing a new array.
	 * Each related row value is then added in the corresponding array.
	 *
	 * This function is useful to convert database rows to HTML form data.
	 *
	 * Note:
	 * It is assumed that all contained arrays use the same keys.
	 *
	 * @param array $store Source array
	 * @return array
	 */
	public static function reverseArrays(array $store) {
		if (empty($store))
			return array();

		$keys = array_keys(reset($store));
		$result = array();
		foreach ($keys as $k)
			$result[$k] = array();
		foreach ($store as $row)
		{
			foreach ($keys as $k)
			{
				if (array_key_exists($k, $result))
					$result[$k][] = $row[$k];
				else
					$result[$k][] = NULL;
			}
		}
		return $result;
	}

	/**
	 * Concatenate values together into a new array without considering keys or types.
	 *
	 * The function accepts unlimited arguments.
	 * However, if a single array argument is passed, it is used as an array of arguments, thus its content will be concatenated and the array itself.
	 *
	 * @return array
	 */
	public static function concatArrays() {
		$result = array();

		$args = func_get_args();
		if (count($args) == 1 && is_array($args[0])) {
			$args = $args[0];
		}

		foreach ($args as $arg) {
			if (is_array($arg)) {
				$result = array_merge($result, $arg);
			}
			else {
				$result[] = $arg;
			}
		}

		return $result;
	}

	/**
	 * Shuffles the content of an array
	 *
	 * @param array $arr
	 */
	public static function shuffle(array &$arr) {
		uasort($arr, function($a, $b) {
			return mt_rand(-1, 1);
		});
	}
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Portfolio.Controllers
{
    public class ErrorPageController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.ErrorIcon = "Cross.png";
            ViewBag.ErrorCode = "Error";
            ViewBag.ErrorTitle = "Error";
            ViewBag.ErrorDesc = "There was an error. Please Try again Later.";
            return PartialView("~/Views/ErrorPage/Error.cshtml");
        }

        public ActionResult Error404()
        {
            ViewBag.ErrorIcon = "Caution.png";
            ViewBag.ErrorCode = "404";
            ViewBag.ErrorTitle = "Page not found";
            ViewBag.ErrorDesc = "The requested URL/Page was not found on this server.";
            return PartialView("~/Views/ErrorPage/Error.cshtml");
        }

        public ActionResult Error500()
        {
            ViewBag.ErrorIcon = "Cross.png";
            ViewBag.ErrorCode = "500";
            ViewBag.ErrorTitle = "This is an error";
            ViewBag.ErrorDesc = "There was an error. Please try again later.";
            return PartialView("~/Views/ErrorPage/Error.cshtml");
        }

        public ActionResult IncompatibleBrowser()
        {
            return View();
        }

        public ActionResult JavaScriptDisabled()
        {
            return View();
        }
	}
}


text:
set -ex

IMATH_VERSION="$1"
INSTALL_TARGET="$2"

git clone https://github.com/AcademySoftwareFoundation/Imath.git
cd Imath

if [ "$IMATH_VERSION" == "latest" ]; then
    git checkout release
    LATEST_TAG=$(git describe --abbrev=0 --tags)
    git checkout tags/${LATEST_TAG} -b ${LATEST_TAG}
else
    git checkout tags/v${IMATH_VERSION} -b v${IMATH_VERSION}
fi

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
      ${INSTALL_TARGET:+"-DCMAKE_INSTALL_PREFIX="${INSTALL_TARGET}""} \
      -DBUILD_TESTING=OFF \
      -DPYTHON=OFF \
      -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
      ../.
cmake --build . \
      --target install \
      --config Release \
      --parallel 2

cd ../..
rm -rf Imath


text:
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Castle.DynamicProxy2</name>
    </assembly>
    <members>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.SimpleAST.IndirectReference">
            <summary>
            Wraps a reference that is passed
            ByRef and provides indirect load/store support.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.SimpleAST.NewArrayExpression">
            <summary>
            Summary description for NewArrayExpression.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.SimpleAST.ReferencesToObjectArrayExpression">
            <summary>

            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.CustomAttributeUtil.InitializeConstructorArgs(System.Type,System.Attribute,System.Object[],System.Reflection.ParameterInfo[])">
            <summary>
            Here we try to match a constructor argument to its value.
            Since we can't get the values from the assembly, we use some heuristics to get it.
            a/ we first try to match all the properties on the attributes by name (case insensitive) to the argument
            b/ if we fail we try to match them by property type, with some smarts about convertions (i,e: can use Guid for string).
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.CustomAttributeUtil.ReplaceIfBetterMatch(System.Reflection.ParameterInfo,System.Reflection.PropertyInfo,System.Reflection.PropertyInfo)">
            <summary>
            We have the following rules here.
            Try to find a matching type, failing that, if the parameter is string, get the first property (under the assumption that
            we can convert it.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.CustomAttributeUtil.ConvertValue(System.Object,System.Type)">
            <summary>
            Attributes can only accept simple types, so we return null for null,
            if the value is passed as string we call to string (should help with converting),
            otherwise, we use the value as is (enums, integer, etc).
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.LdcOpCodesDictionary">
            <summary>
            Provides appropriate Ldc.X opcode for the type of primitive value to be loaded.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.LdindOpCodesDictionary">
            <summary>
            Provides appropriate Ldind.X opcode for
            the type of primitive value to be loaded indirectly.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.MethodEmitter.CopyParametersAndReturnTypeFrom(System.Reflection.MethodInfo,Castle.DynamicProxy.Generators.Emitters.AbstractTypeEmitter)">
            <summary>
            Inspect the base method for generic definitions
            and set the return type and the parameters
            accordingly
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.OpCodeUtil.EmitLoadOpCodeForConstantValue(System.Reflection.Emit.ILGenerator,System.Object)">
            <summary>
            Emits a load opcode of the appropriate kind for a constant string or
            primitive value.
            </summary>
            <param name="gen"></param>
            <param name="value"></param>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.OpCodeUtil.EmitLoadOpCodeForDefaultValueOfType(System.Reflection.Emit.ILGenerator,System.Type)">
            <summary>
            Emits a load opcode of the appropriate kind for the constant default value of a
            type, such as 0 for value types and null for reference types.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.OpCodeUtil.EmitLoadIndirectOpCodeForType(System.Reflection.Emit.ILGenerator,System.Type)">
            <summary>
            Emits a load indirect opcode of the appropriate type for a value or object reference.
            Pops a pointer off the evaluation stack, dereferences it and loads
            a value of the specified type.
            </summary>
            <param name="gen"></param>
            <param name="type"></param>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.Emitters.OpCodeUtil.EmitStoreIndirectOpCodeForType(System.Reflection.Emit.ILGenerator,System.Type)">
            <summary>
            Emits a store indirectopcode of the appropriate type for a value or object reference.
            Pops a value of the specified type and a pointer off the evaluation stack, and
            stores the value.
            </summary>
            <param name="gen"></param>
            <param name="type"></param>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.PropertiesCollection">
            <summary>
            Summary description for PropertiesCollection.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.Emitters.StindOpCodesDictionary">
            <summary>
            Provides appropriate Stind.X opcode
            for the type of primitive value to be stored indirectly.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.BaseProxyGenerator">
            <summary>
            Base class that exposes the common functionalities
            to proxy generation.
            </summary>
            <remarks>
            TODO:
            - Use the interceptor selector if provided
            - Add tests and fixes for 'leaking this' problem
            - Mixin support
            </remarks>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.GetProxyTargetReference">
            <summary>
            Used by dinamically implement <see cref="T:Castle.Core.Interceptor.IProxyTargetAccessor"/>
            </summary>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.GenerateParameterlessConstructor(Castle.DynamicProxy.Generators.Emitters.ClassEmitter,System.Type,Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference)">
            <summary>
            Generates a parameters constructor that initializes the proxy
            state with <see cref="T:Castle.Core.Interceptor.StandardInterceptor"/> just to make it non-null.
            <para>
            This constructor is important to allow proxies to be XML serializable
            </para>
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.BuildInvocationNestedType(Castle.DynamicProxy.Generators.Emitters.ClassEmitter,System.Type,System.Type,System.Reflection.MethodInfo,System.Reflection.MethodInfo,Castle.DynamicProxy.Generators.ConstructorVersion)">
            <summary>
            If callbackMethod is null the InvokeOnTarget implementation
            is just the code to throw an exception
            </summary>
            <param name="emitter"></param>
            <param name="targetType"></param>
            <param name="targetForInvocation"></param>
            <param name="methodInfo"></param>
            <param name="callbackMethod"></param>
            <param name="version"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.BuildInvocationNestedType(Castle.DynamicProxy.Generators.Emitters.ClassEmitter,System.Type,System.Type,System.Reflection.MethodInfo,System.Reflection.MethodInfo,Castle.DynamicProxy.Generators.ConstructorVersion,System.Boolean)">
            <summary>
            If callbackMethod is null the InvokeOnTarget implementation
            is just the code to throw an exception
            </summary>
            <param name="emitter"></param>
            <param name="targetType"></param>
            <param name="targetForInvocation"></param>
            <param name="methodInfo"></param>
            <param name="callbackMethod"></param>
            <param name="version"></param>
            <param name="allowChangeTarget">If true the invocation will implement the IChangeProxyTarget interface</param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.CreateIInvocationConstructor(System.Type,Castle.DynamicProxy.Generators.Emitters.NestedClassEmitter,Castle.DynamicProxy.Generators.Emitters.SimpleAST.FieldReference,Castle.DynamicProxy.Generators.ConstructorVersion)">
            <summary>
            Generates the constructor for the nested class that extends
            <see cref="T:Castle.DynamicProxy.AbstractInvocation"/>
            </summary>
            <param name="targetFieldType"></param>
            <param name="nested"></param>
            <param name="targetField"></param>
            <param name="version"></param>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.CreateInitializeCacheMethodBody(System.Type,System.Reflection.MethodInfo[],Castle.DynamicProxy.Generators.Emitters.ClassEmitter,Castle.DynamicProxy.Generators.Emitters.ConstructorEmitter)">
            <summary>
            Improvement: this cache should be static. We should generate a
            type constructor instead
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.AcceptMethod(System.Reflection.MethodInfo,System.Boolean)">
            <summary>
            Performs some basic screening and invokes the <see cref="T:Castle.DynamicProxy.IProxyGenerationHook"/>
            to select methods.
            </summary>
            <param name="method"></param>
            <param name="onlyVirtuals"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.IsAccessible(System.Reflection.MethodInfo)">
            <summary>
            Checks if the method is public or protected.
            </summary>
            <param name="method"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.ShouldSkipAttributeReplication(System.Attribute)">
            <summary>
            Attributes should be replicated if they are non-inheritable,
            but there are some special cases where the attributes means
            something to the CLR, where they should be skipped.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.BaseProxyGenerator.ShouldCreateNewSlot(System.Reflection.MethodInfo)">
            <summary>
            Checks if the method has the same signature as a method that was marked as
            one that should generate a new vtable slot.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.CacheKey.#ctor(System.Type,System.Type[],Castle.DynamicProxy.ProxyGenerationOptions)">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.Generators.CacheKey"/> class.
            </summary>
            <param name="targetType">Type of the target.</param>
            <param name="interfaces">The interfaces.</param>
            <param name="options">The options.</param>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.ClassProxyGenerator">
            <summary>

            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.EventToGenerate.#ctor(Castle.DynamicProxy.Generators.Emitters.EventEmitter,System.Reflection.MethodInfo,System.Reflection.MethodInfo,System.Reflection.EventAttributes)">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.Generators.EventToGenerate"/> class.
            </summary>
            <param name="emitter">The emitter.</param>
            <param name="addMethod">The add method.</param>
            <param name="removeMethod">The remove method.</param>
            <param name="attributes">The attributes.</param>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator">
            <summary>

            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.FindMethodOnTargetType(System.Reflection.MethodInfo,System.Type)">
            <summary>
            Finds the type of the method on target.
            </summary>
            <param name="methodOnInterface">The method on interface.</param>
            <param name="proxyTargetType">Type of the proxy target.</param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.Generators.InterfaceProxyWithTargetGenerator.IsTypeEquivalent(System.Type,System.Type)">
            <summary>
            Checks whether the given types are the same. This is
            more complicated than it looks.
            </summary>
            <param name="sourceType"></param>
            <param name="targetType"></param>
            <returns></returns>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.InterfaceGeneratorType">
            <summary>
            This is used by the ProxyObjectReference class durin de-serialiation, to know
            which generator it should use
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Generators.MethodFinder">
            <summary>
            Returns the methods implemented by a type. Use this instead of Type.GetMethods() to work around a CLR issue
            where duplicate MethodInfos are returned by Type.GetMethods() after a token of a generic type's method was loaded.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.Serialization.ProxyObjectReference">
            <summary>
            Handles the deserialization of proxies.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.Serialization.ProxyObjectReference.ResetScope">
            <summary>
            Resets the <see cref="P:Castle.DynamicProxy.Serialization.ProxyObjectReference.ModuleScope"/> used for deserialization to a new scope.
            </summary>
            <remarks>This is useful for test cases.</remarks>
        </member>
        <member name="M:Castle.DynamicProxy.Serialization.ProxyObjectReference.SetScope(Castle.DynamicProxy.ModuleScope)">
            <summary>
            Resets the <see cref="P:Castle.DynamicProxy.Serialization.ProxyObjectReference.ModuleScope"/> used for deserialization to a given <paramref name="scope"/>.
            </summary>
            <param name="scope">The scope to be used for deserialization.</param>
            <remarks>By default, the deserialization process uses a different scope than the rest of the application, which can lead to multiple proxies
            being generated for the same type. By explicitly setting the deserialization scope to the application's scope, this can be avoided.</remarks>
        </member>
        <member name="P:Castle.DynamicProxy.Serialization.ProxyObjectReference.ModuleScope">
            <summary>
            Gets the <see cref="T:Castle.DynamicProxy.ModuleScope"/> used for deserialization.
            </summary>
            <value>As <see cref="T:Castle.DynamicProxy.Serialization.ProxyObjectReference"/> has no way of automatically determining the scope used by the application (and the application
            might use more than one scope at the same time), <see cref="T:Castle.DynamicProxy.Serialization.ProxyObjectReference"/> uses a dedicated scope instance for deserializing proxy
            types. This instance can be reset and set to a specific value via <see cref="M:Castle.DynamicProxy.Serialization.ProxyObjectReference.ResetScope"/> and <see cref="M:Castle.DynamicProxy.Serialization.ProxyObjectReference.SetScope(Castle.DynamicProxy.ModuleScope)"/>.</value>
        </member>
        <member name="T:Castle.DynamicProxy.IProxyGenerationHook">
            <summary>
            Used during the target type inspection process.
            Implementors have a chance to interfere in the
            proxy generation process
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyGenerationHook.ShouldInterceptMethod(System.Type,System.Reflection.MethodInfo)">
            <summary>
            Invoked by the generation process to know if
            the specified member should be proxied
            </summary>
            <param name="type"></param>
            <param name="memberInfo"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyGenerationHook.NonVirtualMemberNotification(System.Type,System.Reflection.MemberInfo)">
            <summary>
            Invoked by the generation process to notify that a
            member wasn't marked as virtual.
            </summary>
            <param name="type"></param>
            <param name="memberInfo"></param>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyGenerationHook.MethodsInspected">
            <summary>
            Invoked by the generation process to notify
            that the whole process is completed.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.CacheMappingsAttribute">
            <summary>
            Applied to the assemblies saved by <see cref="T:Castle.DynamicProxy.ModuleScope"/> in order to persist the cache data included in the persisted assembly.
            </summary>
        </member>
        <member name="T:Castle.DynamicProxy.IProxyBuilder">
            <summary>
            Abstracts the implementation of proxy constructions
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyBuilder.CreateClassProxy(System.Type,Castle.DynamicProxy.ProxyGenerationOptions)">
            <summary>
            Implementors should return a proxy for the specified type.
            </summary>
            <param name="theClass">The proxy base class.</param>
            <param name="options">The proxy generation options.</param>
            <returns>The generated proxy type.</returns>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyBuilder.CreateClassProxy(System.Type,System.Type[],Castle.DynamicProxy.ProxyGenerationOptions)">
            <summary>
            Implementors should return a proxy for the specified
            type and interfaces. The interfaces must be only "mark" interfaces
            </summary>
            <param name="theClass"></param>
            <param name="interfaces"></param>
            <param name="options"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyBuilder.CreateInterfaceProxyTypeWithTarget(System.Type,System.Type[],System.Type,Castle.DynamicProxy.ProxyGenerationOptions)">
            <summary>
            Implementors should return a proxy for the specified
            interface that 'proceeds' executions to the
            specified target.
            </summary>
            <param name="theInterface"></param>
            <param name="interfaces"></param>
            <param name="targetType"></param>
            <param name="options"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyBuilder.CreateInterfaceProxyTypeWithoutTarget(System.Type,System.Type[],Castle.DynamicProxy.ProxyGenerationOptions)">
            <summary>
            Implementors should return a proxy for the specified
            interface that delegate all executions to the
            specified interceptor(s).
            </summary>
            <param name="theInterface"></param>
            <param name="interfaces"></param>
            <param name="options"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.IProxyBuilder.CreateInterfaceProxyTypeWithTargetInterface(System.Type,Castle.DynamicProxy.ProxyGenerationOptions)">
            <summary>
            Implementors should return a proxy for the specified
            interface that delegate all executions to the
            specified interceptor(s) and uses an instance of the interface
            as their targets, rather than a class. All IInvocation's
            should then implement IChangeProxyTarget.
            </summary>
            <param name="theInterface"></param>
            <param name="options"></param>
            <returns></returns>
        </member>
        <member name="P:Castle.DynamicProxy.IProxyBuilder.ModuleScope">
            <summary>
            Gets the module scope used by this builder for generating code.
            </summary>
            <value>The module scope used by this builder.</value>
        </member>
        <member name="M:Castle.DynamicProxy.InternalsHelper.IsInternalToDynamicProxy(System.Reflection.Assembly)">
            <summary>
            Determines whether this assembly has internals visisble to dynamic proxy.
            </summary>
            <param name="asm">The asm.</param>
        </member>
        <member name="M:Castle.DynamicProxy.InternalsHelper.IsInternal(System.Reflection.MethodInfo)">
            <summary>
            Determines whether the specified method is internal.
            </summary>
            <param name="method">The method.</param>
            <returns>
            	<c>true</c> if the specified method is internal; otherwise, <c>false</c>.
            </returns>
        </member>
        <member name="T:Castle.DynamicProxy.ModuleScope">
            <summary>
            Summary description for ModuleScope.
            </summary>
        </member>
        <member name="F:Castle.DynamicProxy.ModuleScope.DEFAULT_FILE_NAME">
            <summary>
            The default file name used when the assembly is saved using <see cref="F:Castle.DynamicProxy.ModuleScope.DEFAULT_FILE_NAME"/>.
            </summary>
        </member>
        <member name="F:Castle.DynamicProxy.ModuleScope.DEFAULT_ASSEMBLY_NAME">
            <summary>
            The default assembly (simple) name used for the assemblies generated by a <see cref="T:Castle.DynamicProxy.ModuleScope"/> instance.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.#ctor">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ModuleScope"/> class; assemblies created by this instance will not be saved.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.#ctor(System.Boolean)">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ModuleScope"/> class, allowing to specify whether the assemblies generated by this instance
            should be saved.
            </summary>
            <param name="savePhysicalAssembly">If set to <c>true</c> saves the generated module.</param>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.#ctor(System.Boolean,System.String,System.String,System.String,System.String)">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ModuleScope"/> class, allowing to specify whether the assemblies generated by this instance
            should be saved and what simple names are to be assigned to them.
            </summary>
            <param name="savePhysicalAssembly">If set to <c>true</c> saves the generated module.</param>
            <param name="strongAssemblyName">The simple name of the strong-named assembly generated by this <see cref="T:Castle.DynamicProxy.ModuleScope"/>.</param>
            <param name="strongModulePath">The path and file name of the manifest module of the strong-named assembly generated by this <see cref="T:Castle.DynamicProxy.ModuleScope"/>.</param>
            <param name="weakAssemblyName">The simple name of the weak-named assembly generated by this <see cref="T:Castle.DynamicProxy.ModuleScope"/>.</param>
            <param name="weakModulePath">The path and file name of the manifest module of the weak-named assembly generated by this <see cref="T:Castle.DynamicProxy.ModuleScope"/>.</param>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.GetFromCache(Castle.DynamicProxy.Generators.CacheKey)">
            <summary>
            Returns a type from this scope's type cache, or null if the key cannot be found.
            </summary>
            <param name="key">The key to be looked up in the cache.</param>
            <returns>The type from this scope's type cache matching the key, or null if the key cannot be found</returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.RegisterInCache(Castle.DynamicProxy.Generators.CacheKey,System.Type)">
            <summary>
            Registers a type in this scope's type cache.
            </summary>
            <param name="key">The key to be associated with the type.</param>
            <param name="type">The type to be stored in the cache.</param>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.GetKeyPair">
            <summary>
            Gets the key pair used to sign the strong-named assembly generated by this <see cref="T:Castle.DynamicProxy.ModuleScope"/>.
            </summary>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.ObtainDynamicModule(System.Boolean)">
            <summary>
            Gets the specified module generated by this scope, creating a new one if none has yet been generated.
            </summary>
            <param name="isStrongNamed">If set to true, a strong-named module is returned; otherwise, a weak-named module is returned.</param>
            <returns>A strong-named or weak-named module generated by this scope, as specified by the <paramref name="isStrongNamed"/> parameter.</returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.ObtainDynamicModuleWithStrongName">
            <summary>
            Gets the strong-named module generated by this scope, creating a new one if none has yet been generated.
            </summary>
            <returns>A strong-named module generated by this scope.</returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.ObtainDynamicModuleWithWeakName">
            <summary>
            Gets the weak-named module generated by this scope, creating a new one if none has yet been generated.
            </summary>
            <returns>A weak-named module generated by this scope.</returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.SaveAssembly">
            <summary>
            Saves the generated assembly with the name and directory information given when this <see cref="T:Castle.DynamicProxy.ModuleScope"/> instance was created (or with
            the <see cref="F:Castle.DynamicProxy.ModuleScope.DEFAULT_FILE_NAME"/> and current directory if none was given).
            </summary>
            <remarks>
            <para>
            This method stores the generated assembly in the directory passed as part of the module information specified when this instance was
            constructed (if any, else the current directory is used). If both a strong-named and a weak-named assembly
            have been generated, it will throw an exception; in this case, use the <see cref="M:Castle.DynamicProxy.ModuleScope.SaveAssembly(System.Boolean)"/> overload.
            </para>
            <para>
            If this <see cref="T:Castle.DynamicProxy.ModuleScope"/> was created without indicating that the assembly should be saved, this method does nothing.
            </para></remarks>
            <exception cref="T:System.InvalidOperationException">Both a strong-named and a weak-named assembly have been generated.</exception>
            <returns>The path of the generated assembly file, or null if no file has been generated.</returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.SaveAssembly(System.Boolean)">
            <summary>
            Saves the specified generated assembly with the name and directory information given when this <see cref="T:Castle.DynamicProxy.ModuleScope"/> instance was created
            (or with the <see cref="F:Castle.DynamicProxy.ModuleScope.DEFAULT_FILE_NAME"/> and current directory if none was given).
            </summary>
            <param name="strongNamed">True if the generated assembly with a strong name should be saved (see <see cref="P:Castle.DynamicProxy.ModuleScope.StrongNamedModule"/>);
              false if the generated assembly without a strong name should be saved (see <see cref="P:Castle.DynamicProxy.ModuleScope.WeakNamedModule"/>.</param>
            <remarks>
            <para>
            This method stores the specified generated assembly in the directory passed as part of the module information specified when this instance was
            constructed (if any, else the current directory is used).
            </para>
            <para>
            If this <see cref="T:Castle.DynamicProxy.ModuleScope"/> was created without indicating that the assembly should be saved, this method does nothing.
            </para>
            </remarks>
            <exception cref="T:System.InvalidOperationException">No assembly has been generated that matches the <paramref name="strongNamed"/> parameter.
            </exception>
            <returns>The path of the generated assembly file, or null if no file has been generated.</returns>
        </member>
        <member name="M:Castle.DynamicProxy.ModuleScope.LoadAssemblyIntoCache(System.Reflection.Assembly)">
            <summary>
            Loads the generated types from the given assembly into this <see cref="T:Castle.DynamicProxy.ModuleScope"/>'s cache.
            </summary>
            <param name="assembly">The assembly to load types from. This assembly must have been saved via <see cref="M:Castle.DynamicProxy.ModuleScope.SaveAssembly(System.Boolean)"/> or
            <see cref="M:Castle.DynamicProxy.ModuleScope.SaveAssembly"/>, or it must have the <see cref="T:Castle.DynamicProxy.CacheMappingsAttribute"/> manually applied.</param>
            <remarks>
            This method can be used to load previously generated and persisted proxy types from disk into this scope's type cache, eg. in order
            to avoid the performance hit associated with proxy generation.
            </remarks>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.RWLock">
            <summary>
            Users of this <see cref="T:Castle.DynamicProxy.ModuleScope"/> should use this lock when accessing the cache.
            </summary>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.StrongNamedModule">
            <summary>
            Gets the strong-named module generated by this scope, or <see langword="null"/> if none has yet been generated.
            </summary>
            <value>The strong-named module generated by this scope, or <see langword="null"/> if none has yet been generated.</value>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.StrongNamedModuleName">
            <summary>
            Gets the file name of the strongly named module generated by this scope.
            </summary>
            <value>The file name of the strongly named module generated by this scope.</value>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.StrongNamedModuleDirectory">
            <summary>
            Gets the directory where the strongly named module generated by this scope will be saved, or <see langword="null"/> if the current directory
            is used.
            </summary>
            <value>The directory where the strongly named module generated by this scope will be saved when <see cref="M:Castle.DynamicProxy.ModuleScope.SaveAssembly"/> is called
            (if this scope was created to save modules).</value>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.WeakNamedModule">
            <summary>
            Gets the weak-named module generated by this scope, or <see langword="null"/> if none has yet been generated.
            </summary>
            <value>The weak-named module generated by this scope, or <see langword="null"/> if none has yet been generated.</value>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.WeakNamedModuleName">
            <summary>
            Gets the file name of the weakly named module generated by this scope.
            </summary>
            <value>The file name of the weakly named module generated by this scope.</value>
        </member>
        <member name="P:Castle.DynamicProxy.ModuleScope.WeakNamedModuleDirectory">
            <summary>
            Gets the directory where the weakly named module generated by this scope will be saved, or <see langword="null"/> if the current directory
            is used.
            </summary>
            <value>The directory where the weakly named module generated by this scope will be saved when <see cref="M:Castle.DynamicProxy.ModuleScope.SaveAssembly"/> is called
            (if this scope was created to save modules).</value>
        </member>
        <member name="T:Castle.DynamicProxy.PersistentProxyBuilder">
            <summary>
            ProxyBuilder that persists the generated type.
            </summary>
            <remarks>
            The saved assembly contains just the last generated type.
            </remarks>
        </member>
        <member name="M:Castle.DynamicProxy.PersistentProxyBuilder.#ctor">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.PersistentProxyBuilder"/> class.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.PersistentProxyBuilder.SaveAssembly">
            <summary>
            Saves the generated assembly to a physical file. Note that this renders the <see cref="T:Castle.DynamicProxy.PersistentProxyBuilder"/> unusable.
            </summary>
            <returns>The path of the generated assembly file, or null if no assembly has been generated.</returns>
            <remarks>This method does not support saving multiple files. If both a signed and an unsigned module have been generated, use the
            respective methods of the <see cref="T:Castle.DynamicProxy.ModuleScope"/>.</remarks>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerationOptions.#ctor(Castle.DynamicProxy.IProxyGenerationHook)">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ProxyGenerationOptions"/> class.
            </summary>
            <param name="hook">The hook.</param>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerationOptions.#ctor">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ProxyGenerationOptions"/> class.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerator.#ctor(Castle.DynamicProxy.IProxyBuilder)">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ProxyGenerator"/> class.
            </summary>
            <param name="builder">The builder.</param>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerator.#ctor">
            <summary>
            Initializes a new instance of the <see cref="T:Castle.DynamicProxy.ProxyGenerator"/> class.
            </summary>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(System.Type,System.Type[],Castle.Core.Interceptor.IInterceptor[])">
            <summary>
            Creates the class proxy.
            </summary>
            <param name="targetType">Type of the target.</param>
            <param name="interfaces">The interfaces.</param>
            <param name="interceptors">The interceptors.</param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(System.Type,Castle.Core.Interceptor.IInterceptor[],System.Object[])">
            <summary>
            Creates the class proxy.
            </summary>
            <param name="targetType">Type of the target.</param>
            <param name="interceptors">The interceptors.</param>
            <param name="constructorArgs">The constructor args.</param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(System.Type,Castle.DynamicProxy.ProxyGenerationOptions,Castle.Core.Interceptor.IInterceptor[])">
            <summary>

            </summary>
            <param name="targetType"></param>
            <param name="options"></param>
            <param name="interceptors"></param>
            <returns></returns>
        </member>
        <member name="M:Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(System.Type,System.Type[],Castle.DynamicProxy.ProxyGenerationOptions,System.Object[],Castle.Core.Interceptor.IInterceptor[])">
            <summary>
            Creates the class proxy.
            </summary>
            <param name="targetType">Type of the target.</param>
            <param name="interfaces">The interfaces.</param>
            <param name="options">The options.</param>
            <param name="constructorArgs">The constructor args.</param>
            <param name="interceptors">The interceptors.</param>
            <returns></returns>
        </member>
        <member name="P:Castle.DynamicProxy.ProxyGenerator.ProxyBuilder">
            <summary>
            Gets the proxy builder instance.
            </summary>
            <value>The proxy builder.</value>
        </member>
        <member name="M:Castle.DynamicProxy.RemotableInvocation.Proceed">
            <summary>

            </summary>
            <returns></returns>
        </member>
        <member name="P:Castle.DynamicProxy.RemotableInvocation.Method">
            <summary>

            </summary>
        </member>
        <member name="P:Castle.DynamicProxy.RemotableInvocation.MethodInvocationTarget">
            <summary>
            For interface proxies, this will point to the
            <see cref="T:System.Reflection.MethodInfo"/> on the target class
            </summary>
        </member>
    </members>
</doc>


text:
from django.db import models

class Place(models.Model):
    name = models.CharField(max_length=50)
    address = models.CharField(max_length=80)

    def __unicode__(self):
        return u"%s the place" % self.name

class Restaurant(models.Model):
    place = models.OneToOneField(Place)
    serves_hot_dogs = models.BooleanField()
    serves_pizza = models.BooleanField()

    def __unicode__(self):
        return u"%s the restaurant" % self.place.name

class Bar(models.Model):
    place = models.OneToOneField(Place)
    serves_cocktails = models.BooleanField()

    def __unicode__(self):
        return u"%s the bar" % self.place.name

class Favorites(models.Model):
    name = models.CharField(max_length = 50)
    restaurants = models.ManyToManyField(Restaurant)

    def __unicode__(self):
        return u"Favorites for %s" % self.name

__test__ = {'API_TESTS':"""
# Regression test for #1064 and #1506: Check that we create models via the m2m
# relation if the remote model has a OneToOneField.
>>> p1 = Place(name='Demon Dogs', address='944 W. Fullerton')
>>> p1.save()
>>> r = Restaurant(place=p1, serves_hot_dogs=True, serves_pizza=False)
>>> r.save()
>>> f = Favorites(name = 'Fred')
>>> f.save()
>>> f.restaurants = [r]
>>> f.restaurants.all()
[<Restaurant: Demon Dogs the restaurant>]

# Regression test for #7173: Check that the name of the cache for the
# reverse object is correct.
>>> b = Bar(place=p1, serves_cocktails=False)
>>> b.save()
>>> p1.restaurant
<Restaurant: Demon Dogs the restaurant>
>>> p1.bar
<Bar: Demon Dogs the bar>

#
# Regression test for #6886 (the related-object cache)
#

# Look up the objects again so that we get "fresh" objects
>>> p = Place.objects.get(name="Demon Dogs")
>>> r = p.restaurant

# Accessing the related object again returns the exactly same object
>>> p.restaurant is r
True

# But if we kill the cache, we get a new object
>>> del p._restaurant_cache
>>> p.restaurant is r
False

# Reassigning the Restaurant object results in an immediate cache update
# We can't use a new Restaurant because that'll violate one-to-one, but
# with a new *instance* the is test below will fail if #6886 regresses.
>>> r2 = Restaurant.objects.get(pk=r.pk)
>>> p.restaurant = r2
>>> p.restaurant is r2
True

# Assigning None fails: Place.restaurant is null=False
>>> p.restaurant = None
Traceback (most recent call last):
    ...
ValueError: Cannot assign None: "Place.restaurant" does not allow null values.

# You also can't assign an object of the wrong type here
>>> p.restaurant = p
Traceback (most recent call last):
    ...
ValueError: Cannot assign "<Place: Demon Dogs the place>": "Place.restaurant" must be a "Restaurant" instance.

"""}


text:
namespace Bezysoftware.Navigation.Activation
{
    /// <summary>
    /// Denotes a ViewModel class which can be activated when navigated to.
    /// </summary>
    public interface IActivating
    {
        /// <summary>
        /// This method is called before implementing class instance is navigated to. It is not called during state restoration.
        /// </summary>
        /// <param name="navigationType"> Type of navigation, forward or backward. </param>
        void Activating(NavigationType navigationType);
    }

    /// <summary>
    /// Denotes a ViewModel class which can be activated with data when navigated to.
    /// </summary>
    /// <typeparam name="TData"> Type of data. </typeparam>
    public interface IActivating<in TData>
    {
        /// <summary>
        /// This method is called before implementing class instance is navigated to with specified data type. It is not called during state restoration.
        /// </summary>
        /// <param name="navigationType"> Type of navigation, forward or backward. </param>
        /// <param name="data"> The data. </param>
        void Activating(NavigationType navigationType, TData data);
    }
}


text:
OS_TLSIndex OS_AllocTLSIndex()
{
	DWORD dwIndex = TlsAlloc();
	if (dwIndex == TLS_OUT_OF_INDEXES) {
		assert(0 && "OS_AllocTLSIndex(): Unable to allocate Thread Local Storage");
		return OS_INVALID_TLS_INDEX;
	}

	return dwIndex;
}

bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue)
{
	if (nIndex == OS_INVALID_TLS_INDEX) {
		assert(0 && "OS_SetTLSValue(): Invalid TLS Index");
		return false;
	}

	if (TlsSetValue(nIndex, lpvValue))
		return true;
	else
		return false;
}

bool OS_FreeTLSIndex(OS_TLSIndex nIndex)
{
	if (nIndex == OS_INVALID_TLS_INDEX) {
		assert(0 && "OS_SetTLSValue(): Invalid TLS Index");
		return false;
	}

	if (TlsFree(nIndex))
		return true;
	else
		return false;
}


text:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frmGrades
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.lblName = New System.Windows.Forms.Label()
        Me.txtName = New System.Windows.Forms.TextBox()
        Me.lblGrade1 = New System.Windows.Forms.Label()
        Me.lblGrade2 = New System.Windows.Forms.Label()
        Me.lblGrade3 = New System.Windows.Forms.Label()
        Me.txtGrade1 = New System.Windows.Forms.TextBox()
        Me.txtGrade2 = New System.Windows.Forms.TextBox()
        Me.txtGrade3 = New System.Windows.Forms.TextBox()
        Me.btnDSG = New System.Windows.Forms.Button()
        Me.txtSemGrade = New System.Windows.Forms.TextBox()
        Me.SuspendLayout()
        '
        'lblName
        '
        Me.lblName.AutoSize = True
        Me.lblName.Location = New System.Drawing.Point(39, 9)
        Me.lblName.Name = "lblName"
        Me.lblName.Size = New System.Drawing.Size(38, 13)
        Me.lblName.TabIndex = 0
        Me.lblName.Text = "Name:"
        '
        'txtName
        '
        Me.txtName.Location = New System.Drawing.Point(83, 6)
        Me.txtName.Name = "txtName"
        Me.txtName.Size = New System.Drawing.Size(150, 20)
        Me.txtName.TabIndex = 1
        '
        'lblGrade1
        '
        Me.lblGrade1.AutoSize = True
        Me.lblGrade1.Location = New System.Drawing.Point(80, 35)
        Me.lblGrade1.Name = "lblGrade1"
        Me.lblGrade1.Size = New System.Drawing.Size(61, 13)
        Me.lblGrade1.TabIndex = 2
        Me.lblGrade1.Text = "First Grade:"
        '
        'lblGrade2
        '
        Me.lblGrade2.AutoSize = True
        Me.lblGrade2.Location = New System.Drawing.Point(62, 64)
        Me.lblGrade2.Name = "lblGrade2"
        Me.lblGrade2.Size = New System.Drawing.Size(79, 13)
        Me.lblGrade2.TabIndex = 3
        Me.lblGrade2.Text = "Second Grade:"
        '
        'lblGrade3
        '
        Me.lblGrade3.AutoSize = True
        Me.lblGrade3.Location = New System.Drawing.Point(75, 90)
        Me.lblGrade3.Name = "lblGrade3"
        Me.lblGrade3.Size = New System.Drawing.Size(66, 13)
        Me.lblGrade3.TabIndex = 4
        Me.lblGrade3.Text = "Third Grade:"
        '
        'txtGrade1
        '
        Me.txtGrade1.Location = New System.Drawing.Point(147, 32)
        Me.txtGrade1.Name = "txtGrade1"
        Me.txtGrade1.Size = New System.Drawing.Size(30, 20)
        Me.txtGrade1.TabIndex = 5
        '
        'txtGrade2
        '
        Me.txtGrade2.Location = New System.Drawing.Point(147, 61)
        Me.txtGrade2.Name = "txtGrade2"
        Me.txtGrade2.Size = New System.Drawing.Size(30, 20)
        Me.txtGrade2.TabIndex = 6
        '
        'txtGrade3
        '
        Me.txtGrade3.Location = New System.Drawing.Point(147, 87)
        Me.txtGrade3.Name = "txtGrade3"
        Me.txtGrade3.Size = New System.Drawing.Size(30, 20)
        Me.txtGrade3.TabIndex = 7
        '
        'btnDSG
        '
        Me.btnDSG.Location = New System.Drawing.Point(42, 113)
        Me.btnDSG.Name = "btnDSG"
        Me.btnDSG.Size = New System.Drawing.Size(180, 30)
        Me.btnDSG.TabIndex = 8
        Me.btnDSG.Text = "Determine Semester Grade"
        Me.btnDSG.UseVisualStyleBackColor = True
        '
        'txtSemGrade
        '
        Me.txtSemGrade.Location = New System.Drawing.Point(83, 149)
        Me.txtSemGrade.Name = "txtSemGrade"
        Me.txtSemGrade.ReadOnly = True
        Me.txtSemGrade.Size = New System.Drawing.Size(100, 20)
        Me.txtSemGrade.TabIndex = 9
        '
        'frmGrades
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(284, 212)
        Me.Controls.Add(Me.txtSemGrade)
        Me.Controls.Add(Me.btnDSG)
        Me.Controls.Add(Me.txtGrade3)
        Me.Controls.Add(Me.txtGrade2)
        Me.Controls.Add(Me.txtGrade1)
        Me.Controls.Add(Me.lblGrade3)
        Me.Controls.Add(Me.lblGrade2)
        Me.Controls.Add(Me.lblGrade1)
        Me.Controls.Add(Me.txtName)
        Me.Controls.Add(Me.lblName)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.Name = "frmGrades"
        Me.Text = "Grades"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents lblName As System.Windows.Forms.Label
    Friend WithEvents txtName As System.Windows.Forms.TextBox
    Friend WithEvents lblGrade1 As System.Windows.Forms.Label
    Friend WithEvents lblGrade2 As System.Windows.Forms.Label
    Friend WithEvents lblGrade3 As System.Windows.Forms.Label
    Friend WithEvents txtGrade1 As System.Windows.Forms.TextBox
    Friend WithEvents txtGrade2 As System.Windows.Forms.TextBox
    Friend WithEvents txtGrade3 As System.Windows.Forms.TextBox
    Friend WithEvents btnDSG As System.Windows.Forms.Button
    Friend WithEvents txtSemGrade As System.Windows.Forms.TextBox

End Class


text:
package org.entitypedia.games.sdoclet.swagger.model;

import org.entitypedia.games.sdoclet.DocletOptions;

import java.util.List;

/**
 * @author Aliaksandr Autayeu
 */
public class ResourceListing {

    private final String apiVersion;
    private final String basePath;
    private final List<ApiListingReference> apis;
    private final List<AuthorizationType> authorizations;
    private final ApiInfo info;

    public ResourceListing(String apiVersion, String basePath, List<ApiListingReference> apis, List<AuthorizationType> authorizations, ApiInfo info) {
        this.apiVersion = apiVersion;
        this.basePath = basePath;
        this.apis = apis;
        this.authorizations = authorizations;
        this.info = info;
    }

    public String getApiVersion() {
        return apiVersion;
    }

    public String getSwaggerVersion() {
        return DocletOptions.SWAGGER_VERSION;
    }

    public String getBasePath() {
        return basePath;
    }

    public List<ApiListingReference> getApis() {
        return apis;
    }

    public List<AuthorizationType> getAuthorizations() {
        return authorizations;
    }

    public ApiInfo getInfo() {
        return info;
    }
}


text:
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Keyczar.Crypto;
using Keyczar.Crypto.Streams;
using Keyczar.Util;

namespace Keyczar
{
    /// <summary>
    /// Signs data using a given keyset
    /// </summary>
    public class Signer:Verifier
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Signer"/> class.
        /// </summary>
        /// <param name="keySetLocation">The key set location.</param>
        public Signer(string keySetLocation) : this(new FileSystemKeySet(keySetLocation))
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Signer" /> class.
        /// </summary>
        /// <param name="keySet">The key set.</param>
        /// <exception cref="InvalidKeySetException">This key set can not be used for signing and verifying.</exception>
        public Signer(IKeySet keySet) : base(keySet)
        {
            if (keySet.Metadata.Purpose != KeyPurpose.SignAndVerify)
            {
                throw MakeInvalidKeySetTypeException();
            }
        }

        internal static InvalidKeySetException MakeInvalidKeySetTypeException()
        {
            return new InvalidKeySetException("This key set can not be used for signing and verifying.");
        }

        /// <summary>
        /// Signs the specified raw data.
        /// </summary>
        /// <param name="rawData">The raw data.</param>
        /// <returns></returns>
        public WebBase64 Sign(String rawData)
            => WebBase64.FromBytes(Sign(Config.RawStringEncoding.GetBytes(rawData)));

        /// <summary>
        /// Signs the specified raw data.
        /// </summary>
        /// <param name="data">The data.</param>
        /// <returns></returns>
        public byte[] Sign(byte[] data)
        {
            using (var memstream = new MemoryStream(data))
            {
                return Sign(memstream);
            }
        }

        /// <summary>
        /// Signs the specified data.
        /// </summary>
        /// <param name="input">The input.</param>
        /// <param name="inputLength">(optional) Length of the input.</param>
        /// <returns></returns>
        public byte[] Sign(Stream input, long inputLength=-1)
        {
            using(var stream = new MemoryStream()){
                Sign(input, stream, prefixData: null, postfixData: null, signatureData: null, inputLength:inputLength);
                stream.Flush();
                return stream.ToArray();
            }
        }

        /// <summary>
        /// Signs the specified data.
        /// </summary>
        /// <param name="input">The input.</param>
        /// <param name="outstream">The outstream.</param>
        /// <param name="prefixData">The prefix data.</param>
        /// <param name="postfixData">The postfix data.</param>
        /// <param name="signatureData">The sig data.</param>
        /// <param name="inputLength"> Length of the input.</param>
        protected void Sign(Stream input, Stream outstream, object prefixData, object postfixData, object signatureData, long inputLength)
        {
            var stopLength = inputLength < 0 ? long.MaxValue : input.Position + inputLength;
            if (!(GetPrimaryKey() is ISignerKey key))
            {
                throw MakeInvalidKeySetTypeException();
            }
            using (var reader = new NondestructiveBinaryReader(input))
            {
                using (var signingStream = key.GetSigningStream(this))
                {
                    PrefixDataSign(signingStream, prefixData);
                    while (reader.Peek() != -1 && input.Position < stopLength)
                    {
                        var adjustedBufferSize = (int)Math.Min(BufferSize, (stopLength - input.Position));
                        byte[] buffer = reader.ReadBytes(adjustedBufferSize);
                        signingStream.Write(buffer, 0, buffer.Length);
                    }
                    PostfixDataSign(signingStream, postfixData);
                    signingStream.Finish();

                    var signature = signingStream.HashValue;
                    PadSignature(signature, outstream, signatureData);
                }
            }
        }

        /// <summary>
        /// Prefixes the data then signs it.
        /// </summary>
        /// <param name="signingStream">The signing stream.</param>
        /// <param name="extra">The extra data passed by prefixData.</param>
        protected virtual void PrefixDataSign(HashingStream signingStream, object extra)
        {

        }

        /// <summary>
        /// Postfixes the data then signs it.
        /// </summary>
        /// <param name="signingStream">The signing stream.</param>
        /// <param name="extra">The extra data passed by postfixData.</param>
        protected virtual void PostfixDataSign(HashingStream signingStream, object extra)
        {
            signingStream.Write(KeyczarConst.FormatBytes, 0, KeyczarConst.FormatBytes.Length);
        }

        /// <summary>
        /// Pads the signature with extra data.
        /// </summary>
        /// <param name="signature">The signature.</param>
        /// <param name="outputStream">The padded signature.</param>
        /// <param name="extra">The extra data passed by sigData.</param>
        /// <returns></returns>
        protected virtual void PadSignature(byte[] signature, Stream outputStream, object extra)
        {
            if (!(GetPrimaryKey() is ISignerKey key))
            {
                throw MakeInvalidKeySetTypeException();
            }
            outputStream.Write(KeyczarConst.FormatBytes,0,KeyczarConst.FormatBytes.Length);
            outputStream.Write(key.GetKeyHash(),0,KeyczarConst.KeyHashLength);
            outputStream.Write(signature,0,signature.Length);
        }

    }
}


text:
module TH_unresolvedInfix2 where

import Language.Haskell.TH

infixl 6 :+

data Tree = N
  | Tree :+ Tree
  | Tree :* Tree

$(return [])

-- Should fail
expr = $( let plus = conE '(:+)
              n = conE 'N
          in infixE Nothing plus (Just $ uInfixE n plus n) )


text:
<bill session="110" type="s" number="787" updated="2009-01-09T13:17:32-05:00">
	<status><introduced date="1173243600" datetime="2007-03-07"/></status>

	<introduced date="1173243600" datetime="2007-03-07"/>
	<titles>
		<title type="official" as="introduced">A bill to impose a 2-year moratorium on implementation of a proposed rule relating to the Federal-State financial partnerships under Medicaid and the State Children's Health Insurance Program.</title>
	</titles>
	<sponsor id="400621"/>
	<cosponsors>
		<cosponsor id="300024" joined="2007-03-20"/>
		<cosponsor id="300088" joined="2007-04-10"/>
		<cosponsor id="300010" joined="2007-03-12"/>
		<cosponsor id="400054" joined="2007-03-20"/>
	</cosponsors>
	<actions>
		<action date="1173243600" datetime="2007-03-07"><text>Read twice and referred to the Committee on Finance.</text></action>
	</actions>
	<committees>

	</committees>
	<relatedbills>

	</relatedbills>
	<subjects>

	</subjects>
	<amendments>

	</amendments>
	<summary>
	3/7/2007--Introduced.<br/>Imposes a two-year moratorium on implementation of a proposed rule ("Medicaid Program; Cost Limit for Providers Operated by Units of Government and Provisions To Ensure the Integrity of Federal-State Financial Partnership") relating to the federal-state financial partnerships under Medicaid and the State Children's Health Insurance Program (SCHIP) under titles XIX and XXI of the Social Security Act.
	</summary>
</bill>


text:
import struct
import binascii
import binwalk.core.plugin

class JFFS2ValidPlugin(binwalk.core.plugin.Plugin):
    '''
    Helps validate JFFS2 signature results.

    The JFFS2 signature rules catch obvious cases, but inadvertently
    mark some valid JFFS2 nodes as invalid due to  padding (0xFF's or
    0x00's) in between nodes.
    '''
    MODULES = ['Signature']

    def _check_crc(self, node_header):
        # struct and binascii want a bytes object in Python3
        node_header = binwalk.core.compat.str2bytes(node_header)

        # Get the header's reported CRC value
        if node_header[0:2] == b"\x19\x85":
            header_crc = struct.unpack(">I", node_header[8:12])[0]
        else:
            header_crc = struct.unpack("<I", node_header[8:12])[0]

        # Calculate the actual CRC
        calculated_header_crc = (binascii.crc32(node_header[0:8], -1) ^ -1) & 0xffffffff

        # Make sure they match
        return (header_crc == calculated_header_crc)

    def scan(self, result):
        if result.file and result.description.lower().startswith('jffs2 filesystem'):

            # Seek to and read the suspected JFFS2 node header
            fd = self.module.config.open_file(result.file.name, offset=result.offset)
            # JFFS2 headers are only 12 bytes in size, but reading larger amounts of
            # data from disk speeds up repeated disk access and decreases performance
            # hits (disk caching?).
            #
            # TODO: Should this plugin validate the *entire* JFFS2 file system, rather
            #       than letting the signature module find every single JFFS2 node?
            node_header = fd.read(1024)
            fd.close()

            result.valid = self._check_crc(node_header[0:12])


text:
#include <stdio.h>

#include "message.h"
#include "xgettext.h"

#ifdef __cplusplus
extern "C" {
#endif

#define EXTENSIONS_PYTHON \
  { "py",        "Python"   },                                          \

#define SCANNERS_PYTHON \
  { "Python",           extract_python,                                   \
                        &flag_table_python, &formatstring_python, &formatstring_python_brace, NULL }, \

/* Scan a Python file and add its translatable strings to mdlp.  */
extern void extract_python (FILE *fp, const char *real_filename,
                            const char *logical_filename,
                            flag_context_list_table_ty *flag_table,
                            msgdomain_list_ty *mdlp);

extern void x_python_keyword (const char *keyword);
extern void x_python_extract_all (void);

extern void init_flag_table_python (void);

#ifdef __cplusplus
}
#endif