text:
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.

Imports Microsoft.CodeAnalysis.CodeGeneration
Imports Microsoft.CodeAnalysis.CodeGeneration.CodeGenerationHelpers
Imports Microsoft.CodeAnalysis.PooledObjects
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax

Namespace Microsoft.CodeAnalysis.VisualBasic.CodeGeneration
    Friend Class MethodGenerator

        Friend Shared Function AddMethodTo(destination As NamespaceBlockSyntax,
                                           method As IMethodSymbol,
                                           options As CodeGenerationOptions,
                                           availableIndices As IList(Of Boolean)) As NamespaceBlockSyntax

            Dim declaration = GenerateMethodDeclaration(method, CodeGenerationDestination.Namespace, options)

            Dim members = Insert(destination.Members, declaration, options, availableIndices,
                                 after:=AddressOf LastMethod)

            Return destination.WithMembers(SyntaxFactory.List(members))
        End Function

        Friend Shared Function AddMethodTo(destination As CompilationUnitSyntax,
                                           method As IMethodSymbol,
                                           options As CodeGenerationOptions,
                                           availableIndices As IList(Of Boolean)) As CompilationUnitSyntax

            Dim declaration = GenerateMethodDeclaration(method, CodeGenerationDestination.Namespace, options)

            Dim members = Insert(destination.Members, declaration, options, availableIndices,
                                 after:=AddressOf LastMethod)

            Return destination.WithMembers(SyntaxFactory.List(members))
        End Function

        Friend Shared Function AddMethodTo(destination As TypeBlockSyntax,
                                           method As IMethodSymbol,
                                           options As CodeGenerationOptions,
                                           availableIndices As IList(Of Boolean)) As TypeBlockSyntax

            Dim methodDeclaration = GenerateMethodDeclaration(method, GetDestination(destination), options)

            Dim members = Insert(destination.Members, methodDeclaration, options, availableIndices,
                                 after:=AddressOf LastMethod)

            Return FixTerminators(destination.WithMembers(members))
        End Function

        Public Shared Function GenerateMethodDeclaration(method As IMethodSymbol,
                                                         destination As CodeGenerationDestination,
                                                         options As CodeGenerationOptions) As StatementSyntax
            Dim reusableSyntax = GetReuseableSyntaxNodeForSymbol(Of StatementSyntax)(method, options)
            If reusableSyntax IsNot Nothing Then
                Return reusableSyntax
            End If

            Dim declaration = GenerateMethodDeclarationWorker(method, destination, options)

            Return AddAnnotationsTo(method,
                AddFormatterAndCodeGeneratorAnnotationsTo(
                    ConditionallyAddDocumentationCommentTo(declaration, method, options)))
        End Function

        Private Shared Function GenerateMethodDeclarationWorker(method As IMethodSymbol,
                                                                destination As CodeGenerationDestination,
                                                                options As CodeGenerationOptions) As StatementSyntax
            Dim isSub = method.ReturnType.SpecialType = SpecialType.System_Void
            Dim kind = If(isSub, SyntaxKind.SubStatement, SyntaxKind.FunctionStatement)
            Dim keyword = If(isSub, SyntaxKind.SubKeyword, SyntaxKind.FunctionKeyword)
            Dim asClauseOpt = GenerateAsClause(method, isSub, options)
            Dim implementsClauseOpt = GenerateImplementsClause(method.ExplicitInterfaceImplementations.FirstOrDefault())
            Dim handlesClauseOpt = GenerateHandlesClause(CodeGenerationMethodInfo.GetHandlesExpressions(method))

            Dim begin =
                SyntaxFactory.MethodStatement(kind, subOrFunctionKeyword:=SyntaxFactory.Token(keyword), identifier:=method.Name.ToIdentifierToken).
                    WithAttributeLists(AttributeGenerator.GenerateAttributeBlocks(method.GetAttributes(), options)).
                    WithModifiers(GenerateModifiers(method, destination, options)).
                    WithTypeParameterList(GenerateTypeParameterList(method)).
                    WithParameterList(ParameterGenerator.GenerateParameterList(method.Parameters, options)).
                    WithAsClause(asClauseOpt).
                    WithImplementsClause(implementsClauseOpt).
                    WithHandlesClause(handlesClauseOpt)

            Dim hasNoBody = Not options.GenerateMethodBodies OrElse
                            method.IsAbstract OrElse
                            destination = CodeGenerationDestination.InterfaceType

            If hasNoBody Then
                Return begin
            End If

            Dim endConstruct = If(isSub, SyntaxFactory.EndSubStatement(), SyntaxFactory.EndFunctionStatement())
            Return SyntaxFactory.MethodBlock(
                If(isSub, SyntaxKind.SubBlock, SyntaxKind.FunctionBlock),
                begin,
                statements:=StatementGenerator.GenerateStatements(method),
                endSubOrFunctionStatement:=endConstruct)
        End Function

        Private Shared Function GenerateAsClause(method As IMethodSymbol, isSub As Boolean, options As CodeGenerationOptions) As SimpleAsClauseSyntax
            If isSub Then
                Return Nothing
            End If

            Return SyntaxFactory.SimpleAsClause(
                AttributeGenerator.GenerateAttributeBlocks(method.GetReturnTypeAttributes(), options),
                method.ReturnType.GenerateTypeSyntax())
        End Function

        Private Shared Function GenerateHandlesClause(expressions As IList(Of SyntaxNode)) As HandlesClauseSyntax
            Dim memberAccessExpressions = expressions.OfType(Of MemberAccessExpressionSyntax).ToList()

            Dim items = From def In memberAccessExpressions
                        Let expr1 = def.Expression
                        Where expr1 IsNot Nothing
                        Let expr2 = If(TypeOf expr1 Is ParenthesizedExpressionSyntax, DirectCast(expr1, ParenthesizedExpressionSyntax).Expression, expr1)
                        Let children = expr2.ChildNodesAndTokens()
                        Where children.Count = 1 AndAlso children(0).IsToken
                        Let token = children(0).AsToken()
                        Where token.Kind = SyntaxKind.IdentifierToken OrElse
                              token.Kind = SyntaxKind.MyBaseKeyword OrElse
                              token.Kind = SyntaxKind.MyClassKeyword OrElse
                              token.Kind = SyntaxKind.MeKeyword
                        Where TypeOf def.Name Is IdentifierNameSyntax
                        Let identifier = def.Name.Identifier.ValueText.ToIdentifierName()
                        Select SyntaxFactory.HandlesClauseItem(If(token.Kind = SyntaxKind.IdentifierToken,
                                                           DirectCast(SyntaxFactory.WithEventsEventContainer(token.ValueText.ToIdentifierToken()), EventContainerSyntax),
                                                           SyntaxFactory.KeywordEventContainer(token)), identifier)

            Dim array = items.ToArray()
            Return If(array.Length = 0, Nothing, SyntaxFactory.HandlesClause(array))
        End Function

        Private Overloads Shared Function GenerateTypeParameterList(method As IMethodSymbol) As TypeParameterListSyntax
            Return TypeParameterGenerator.GenerateTypeParameterList(method.TypeParameters)
        End Function

        Private Shared Function GenerateModifiers(method As IMethodSymbol,
                                                  destination As CodeGenerationDestination,
                                                  options As CodeGenerationOptions) As SyntaxTokenList
            Dim result As ArrayBuilder(Of SyntaxToken) = Nothing
            Using x = ArrayBuilder(Of SyntaxToken).GetInstance(result)
                If destination <> CodeGenerationDestination.InterfaceType Then
                    AddAccessibilityModifiers(method.DeclaredAccessibility, result, destination, options, Accessibility.Public)

                    If method.IsAbstract Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.MustOverrideKeyword))
                    End If

                    If method.IsSealed Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.NotOverridableKeyword))
                    End If

                    If method.IsVirtual Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.OverridableKeyword))
                    End If

                    If method.IsOverride Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.OverridesKeyword))
                    End If

                    If method.IsStatic AndAlso destination <> CodeGenerationDestination.ModuleType Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.SharedKeyword))
                    End If

                    If CodeGenerationMethodInfo.GetIsNew(method) Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.ShadowsKeyword))
                    End If

                    If CodeGenerationMethodInfo.GetIsAsyncMethod(method) Then
                        result.Add(SyntaxFactory.Token(SyntaxKind.AsyncKeyword))
                    End If
                End If

                Return SyntaxFactory.TokenList(result)
            End Using
        End Function
    End Class
End Namespace


text:
module SmsStub
  Message = Struct.new(:number, :message)
  @messages = []

  def self.send_sms(number:, message:)
    @messages << Message.new(number, message)
  end

  def self.messages
    @messages
  end
end

redpajama_set_name: RedPajamaGithub


text:
class Admin::SuppliersController < Admin::BaseController
  resource_controller
  respond_to :html, :js

  def index
    if current_user.has_role?("admin")
      @suppliers = Supplier.all
    else
      @supplier = current_user.supplier
    end
  end

  def new
    @supplier = Supplier.new()
    @supplier.images.build
    @status = true
  end

  def create
    @supplier = Supplier.new(params[:supplier])
    if @supplier.save
      redirect_to admin_suppliers_path, :notice => "New supplier created"
    else
      render "new"
    end
  end

  def show
    @supplier = Supplier.find(params[:id])
  end

  def edit
    @supplier = Supplier.find(params[:id])
    @supplier.images.build
  end

  def destroy
    @supplier = Supplier.find(params[:id])
    @supplier.destroy
    flash[:notice] = "Supplier Successfully deleted."
    respond_with(@product) do |format|
      format.html { redirect_to collection_url }
      format.js do
        render :update do |page|
          page.redirect_to collection_url
        end
      end
    end
  end

  def update
    @supplier = Supplier.find(params[:id])
    @status = false
    if @supplier.update_attributes(params[:supplier])
      redirect_to edit_admin_supplier_path, :notice => "Supplier updated"
    else
      render "edit"
    end
  end

  def feature
    @supplier = Supplier.find(params[:supplier_id])
    if @supplier.featured == true
      @supplier.featured = false
    else
      @supplier.featured = true
    end
    @supplier.save
    flash[:notice] = "change #{@supplier.title}'s feature status to #{@supplier.featured}"
    redirect_to admin_suppliers_path
  end

  def line_items
    @order = Order.find_by_number(params[:order_id])
  end

  def selected
    @supplier = @product.supplier
  end

  def available
    if params[:q].blank?
      @available_suppliers = []
    else
      @available_suppliers = Supplier.find(:all, :conditions => ['lower(name) LIKE ?', "%#{params[:q].downcase}%"])
    end
    @available_suppliers.delete_if { |supplier| @product.supplier == supplier }
    respond_to do |format|
      format.html
      format.js {render :layout => false}
    end

  end

  def remove
    @product.supplier = nil
    @product.save
    @supplier = @product.supplier
    render :layout => false
  end

  def select
    @supplier = Supplier.find_by_param!(params[:id])
    @product.supplier = @supplier
    @product.save
    @supplier = @product.supplier
    render :layout => false
  end

  update.response do |wants|
    wants.html { redirect_to collection_url }
  end

  update.after do
    Rails.cache.delete('suppliers')
  end

  create.response do |wants|
    wants.html { redirect_to collection_url }
  end

  create.after do
    Rails.cache.delete('suppliers')
  end

end


text:
package provision

import (
	"fmt"
	"io/ioutil"
	"net/url"
	"path"
	"path/filepath"
	"strconv"
	"strings"
	"crypto/rand"

	"github.com/docker/machine/libmachine/auth"
	"github.com/docker/machine/libmachine/provision/pkgaction"
	"github.com/docker/machine/log"
	"github.com/docker/machine/utils"
)

type DockerOptions struct {
	EngineOptions     string
	EngineOptionsPath string
}

type k8sOptions struct {
	k8sOptions        string
	k8sOptionsPath    string
}

func randToken() string {
	b := make([]byte, 8)
	rand.Read(b)
	return fmt.Sprintf("%x", b)
}

func installDockerGeneric(p Provisioner, baseURL string) error {
	// install docker - until cloudinit we use ubuntu everywhere so we
	// just install it using the docker repos
	if output, err := p.SSHCommand(fmt.Sprintf("sudo apt-get -y install linux-image-extra-$(uname -r)")); err != nil {
		return fmt.Errorf("error installing aufs image: %s\n", output)
	}
	if output, err := p.SSHCommand(fmt.Sprintf("if ! type docker; then curl -sSL %s | sh -; fi", baseURL)); err != nil {
		return fmt.Errorf("error installing docker: %s\n", output)
	}

	return nil
}

func makeDockerOptionsDir(p Provisioner) error {
	dockerDir := p.GetDockerOptionsDir()
	if _, err := p.SSHCommand(fmt.Sprintf("sudo mkdir -p %s", dockerDir)); err != nil {
		return err
	}

	return nil
}

func setRemoteAuthOptions(p Provisioner) auth.AuthOptions {
	dockerDir := p.GetDockerOptionsDir()
	authOptions := p.GetAuthOptions()

	// due to windows clients, we cannot use filepath.Join as the paths
	// will be mucked on the linux hosts
	authOptions.CaCertRemotePath = path.Join(dockerDir, "ca.pem")
	authOptions.ServerCertRemotePath = path.Join(dockerDir, "server.pem")
	authOptions.ServerKeyRemotePath = path.Join(dockerDir, "server-key.pem")

	return authOptions
}

func ConfigureAuth(p Provisioner) error {
	var (
		err error
	)

	machineName := p.GetDriver().GetMachineName()
	authOptions := p.GetAuthOptions()
	org := machineName
	bits := 2048

	ip, err := p.GetDriver().GetIP()
	if err != nil {
		return err
	}

	// copy certs to client dir for docker client
	machineDir := filepath.Join(utils.GetMachineDir(), machineName)

	if err := utils.CopyFile(authOptions.CaCertPath, filepath.Join(machineDir, "ca.pem")); err != nil {
		log.Fatalf("Error copying ca.pem to machine dir: %s", err)
	}

	if err := utils.CopyFile(authOptions.ClientCertPath, filepath.Join(machineDir, "cert.pem")); err != nil {
		log.Fatalf("Error copying cert.pem to machine dir: %s", err)
	}

	if err := utils.CopyFile(authOptions.ClientKeyPath, filepath.Join(machineDir, "key.pem")); err != nil {
		log.Fatalf("Error copying key.pem to machine dir: %s", err)
	}

	log.Debugf("generating server cert: %s ca-key=%s private-key=%s org=%s",
		authOptions.ServerCertPath,
		authOptions.CaCertPath,
		authOptions.PrivateKeyPath,
		org,
	)

	// TODO: Switch to passing just authOptions to this func
	// instead of all these individual fields
	err = utils.GenerateCert(
		[]string{ip},
		authOptions.ServerCertPath,
		authOptions.ServerKeyPath,
		authOptions.CaCertPath,
		authOptions.PrivateKeyPath,
		org,
		bits,
	)

	if err != nil {
		return fmt.Errorf("error generating server cert: %s", err)
	}

	if err := p.Service("docker", pkgaction.Stop); err != nil {
		return err
	}

	// upload certs and configure TLS auth
	caCert, err := ioutil.ReadFile(authOptions.CaCertPath)
	if err != nil {
		return err
	}

	serverCert, err := ioutil.ReadFile(authOptions.ServerCertPath)
	if err != nil {
		return err
	}
	serverKey, err := ioutil.ReadFile(authOptions.ServerKeyPath)
	if err != nil {
		return err
	}

	// printf will choke if we don't pass a format string because of the
	// dashes, so that's the reason for the '%%s'
	certTransferCmdFmt := "printf '%%s' '%s' | sudo tee %s"

	// These ones are for Jessie and Mike <3 <3 <3
	if _, err := p.SSHCommand(fmt.Sprintf(certTransferCmdFmt, string(caCert), authOptions.CaCertRemotePath)); err != nil {
		return err
	}

	if _, err := p.SSHCommand(fmt.Sprintf(certTransferCmdFmt, string(serverCert), authOptions.ServerCertRemotePath)); err != nil {
		return err
	}

	if _, err := p.SSHCommand(fmt.Sprintf(certTransferCmdFmt, string(serverKey), authOptions.ServerKeyRemotePath)); err != nil {
		return err
	}

	dockerUrl, err := p.GetDriver().GetURL()
	if err != nil {
		return err
	}
	u, err := url.Parse(dockerUrl)
	if err != nil {
		return err
	}
	dockerPort := 2376
	parts := strings.Split(u.Host, ":")
	if len(parts) == 2 {
		dPort, err := strconv.Atoi(parts[1])
		if err != nil {
			return err
		}
		dockerPort = dPort
	}

	dkrcfg, err := p.GenerateDockerOptions(dockerPort)
	if err != nil {
		return err
	}

	if _, err = p.SSHCommand(fmt.Sprintf("printf \"%s\" | sudo tee %s", dkrcfg.EngineOptions, dkrcfg.EngineOptionsPath)); err != nil {
		return err
	}

	if err := p.Service("docker", pkgaction.Start); err != nil {
		return err
	}

	// TODO: Do not hardcode daemon port, ask the driver
	if err := utils.WaitForDocker(ip, dockerPort); err != nil {
		return err
	}

	return nil
}

func installk8sGeneric(p Provisioner) error {
	// install Kubernetes in a single node using Docker containers
	//if output, err := p.SSHCommand("docker pull kubernetes/etcd"); err != nil {
	//	return fmt.Errorf("error installing k8s: %s\n", output)
	//}

	k8scfg, err := p.Generatek8sOptions()
	if err != nil {
			return err
	}

	if _, err = p.SSHCommand(fmt.Sprintf("printf '%s' | sudo tee %s", k8scfg.k8sOptions, k8scfg.k8sOptionsPath)); err != nil {
		return err
	}

	if _, err := p.SSHCommand(fmt.Sprintf("printf \"%s\" | sudo tee %s", "abcdefghijkl,machine,1000", "/tmp/tokenfile.txt")); err != nil {
		return err
	}

	log.Debug("launching etcd")
	if _, err := p.SSHCommand(fmt.Sprintf("sudo docker run -d --net=host --restart=always --name etcd kubernetes/etcd:2.0.5.1 /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data")); err != nil {
		return fmt.Errorf("error installing etcd")
	}
	log.Debug("launching master")
	if _, err := p.SSHCommand(fmt.Sprintf("sudo docker run -d --net=host --restart=always --name master -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/master.json:/etc/kubernetes/manifests/master.json -v /tmp/tokenfile.txt:/tmp/tokenfile.txt gcr.io/google_containers/hyperkube:v0.17.0 /hyperkube kubelet --api_servers=http://localhost:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=127.0.0.1 --config=/etc/kubernetes/manifests")); err != nil {
		return fmt.Errorf("error installing master")

	}
	log.Debug("launching proxy")
	if _, err := p.SSHCommand(fmt.Sprintf("sudo docker run -d --net=host --privileged=true --restart=always --name proxy gcr.io/google_containers/hyperkube:v0.17.0 /hyperkube proxy --master=http://127.0.0.1:8080 --v=2")); err != nil {
		return fmt.Errorf("error installing proxy")
	}

	return nil
}


text:
var setup_third_party = function() {
    /*Necessary because usually the panel's height depends on the calendar's height.
     Since we momentarily deactivate the calendar, then we reverse the relationship
     and we set the calendar div to the height of the panel.
     Once the calendar comes back, then it's all back to normal flow
     */
    $('#third_events_list_form').outerHeight($('#panel').outerHeight(true));

    var idRadio = $('#search_by_id');
    var groupRadio = $('#search_by_group');
    var idTextField = $('#id');
    var groupTextField = $('#group_urlname');
    var idLabel = $('#id_label');
    var groupLabel = $('#group_label');

    idRadio.prop('checked', true);
    idTextField.prop('disabled', false);
    groupTextField.prop('disabled', true);
    groupLabel.addClass('disabled');

    idRadio.on('click', function () {
        idTextField.prop('disabled', false);
        groupTextField.prop('disabled', true);
        groupTextField.val('');
        groupLabel.addClass('disabled');
        idLabel.removeClass('disabled');
    });

    groupRadio.on('click', function () {
        groupTextField.prop('disabled', false);
        idTextField.prop('disabled', true);
        idTextField.val('');
        groupLabel.removeClass('disabled');
        idLabel.addClass('disabled');
    });
};


text:
package com.jd.leo.domain.template.widgetContent;

/**
 * Created with IntelliJ IDEA.
 * User: hesonglin
 * Date: 15-3-4
 * Time: 下午2:07
 */
public class HeadWidgetCTX extends WidgetCTX {

    private String hotWord;

    public String getHotWord() {
        return hotWord;
    }

    public void setHotWord(String hotWord) {
        this.hotWord = hotWord;
    }
}


text:
<?php

namespace Trello\Api\Cardlist;

use Trello\Api\AbstractApi;

/**
 * Trello List Actions API
 * @link https://trello.com/docs/api/list
 *
 * Fully implemented.
 */
class Actions extends AbstractApi
{
    protected $path = 'lists/#id#/actions';

    /**
     * Get actions related to a given list
     * @link https://trello.com/docs/api/list/#get-1-lists-idlist-actions
     *
     * @param string $id the list's id
     * @param array $params optional parameters
     *
     * @return array
     */
    public function all($id, array $params = [])
    {
        return $this->get($this->getPath($id), $params);
    }
}


text:
<launch4jConfig>
  <dontWrapJar>false</dontWrapJar>
  <headerType>gui</headerType>
  <jar>./Evoker.jar</jar>
  <outfile>./Evoker.exe</outfile>
  <errTitle></errTitle>
  <cmdLine></cmdLine>
  <chdir></chdir>
  <priority>normal</priority>
  <downloadUrl>http://java.com/download</downloadUrl>
  <supportUrl></supportUrl>
  <customProcName>false</customProcName>
  <stayAlive>false</stayAlive>
  <manifest></manifest>
  <icon></icon>
  <jre>
    <path></path>
    <minVersion>1.5.0</minVersion>
    <maxVersion></maxVersion>
    <jdkPreference>preferJre</jdkPreference>
    <maxHeapSize>1024</maxHeapSize>
  </jre>
</launch4jConfig>


text:
redirect_from: "/blog/2013/01/30/revoking-apps-sites-authorization-to-google-facebook-twitter-after-import-of-contacts.html"
layout: post
title: "Revoking apps/sites authorization to GMail, Twitter, Facebook after import of contacts"
date: 2013-01-30 22:51:15
categories: web-apps-services
desc: "Lots of websites allow us to import contacts from our accounts at popular webmail providers and social media sites, but very often we forget to revoke permissions for the app after the import of data"
excerpt: "Lots of websites allow us to import contacts from our accounts at popular webmail providers (GMail, Yahoo Mail, Hotmail..) and social media sites (Twitter, Facebook,…), but very often the thing that a lot of us forget is that these applications/sites that we authenticate to import the contacts from our social media and webmail end up being permanently linked to our account, and that, is never a good thing."
author: nitin
---
Lots of websites allow us to import contacts from our accounts at popular webmail providers (GMail, Yahoo Mail, Hotmail..) and social media sites (Twitter, Facebook,…), but very often the thing that a lot of us forget is that these applications/sites that we authenticate to import the contacts from our social media and webmail end up being permanently linked to our account, and that, is never a good thing. Personally, I don't like these applications/sites having authorization to use my account even after the import is completed.

So, we're going to take a look at how to unlink these apps ,(if you don't already know). As an example, I am going to be using [Goodreads](http://goodreads.com). I have nothing against this site, and personally like it very much, but I didn't want to grant it access to my profile data even after importing the contacts. I'll be showing you how to disable the app authorization on Google, Twitter and Facebook.

###Google:

 - Head over to https://www.google.com/accounts/ . Login, and proceed.
 - At the next page, select **Security** from the sidebar, scroll to the bottom and click on the **Manage Access** button.
   ![Google security settings page](http://i.imgur.com/6kSmQsx.png)
 - At the next page, scroll down, and click on the **Revoke Access** button located next to the site/application's name.
   ![Google Security Settings - Managing Permissions for sites/apps](http://i.imgur.com/KO21BoX.png)

###Twitter:

 - Head over to https://www.twitter.com/ and login.
 - Once, you're logged in, click on the button shaped like a cog in the top bar and select **Settings** from the drop-down menu.
   ![Twitter settings button](http://i.imgur.com/rzVWutc.png)
 - At the next page, select **Apps** from the sidebar. Find the application you were looking for and click on the **Revoke Access** button next to it.
   ![Twitter apps settings](http://i.imgur.com/0NWXnUG.png)

###Facebook:

*A note: Facebook tends to keep changing things overnight, and they do it on a regular basis for who knows what joy. So if these steps look outdated, please don't be surprised and dig around to find their current permission settings.*

 - Head over to https://www.facebook.com and login.
 - Once you're logged in, click on the button meant for **Privacy Shortcuts** and select **See More Settings** from the drop-down menu.
   ![Facebook privacy settings menu](http://i.imgur.com/WQGK0u4.png)
 - At the next page, choose **Apps** from the sidebar and click on the **close button** next to the app/site that you want to revoke the access to.
   ![Facebook privacy settings menu - apps](http://i.imgur.com/i9ANBCT.png)

And, that's it, you're done. No more unwanted authorization to apps/sites that you want to import contacts to just once.


text:
<?php defined('SYSPATH') or die('No direct script access.');

class Model_Sys_User extends Model {

	protected $_module_id = 6;

	public function login($username, $password, $remember)
	{
		$user = DB::select('id', 'name', 'password')
			->from('sys_user')
			->where('email', '=', $username)
			->where('status', '=', 1)
			->where('is_deleted', '=', 0)
			->execute()
			->current();

		if( ! $user)
			return FALSE;

		if($user['password'] != $this->password($password))
			return FALSE;

		Session::instance()->set('identity', $user);

		$this->_log_session($user['id'], 'login');

		return TRUE;
	}

	public function logout()
	{
		$user = Session::instance()->get('identity');
		$this->_log_session($user['id'], 'logout');
		Session::instance()->delete('identity');
		return TRUE;
	}

	public function fetch_all($order_by, $sort)
	{
		$sub = DB::select('ssl.user_id', 'ssl.timestamp')
			->from(array('sys_session_log','ssl'))
			->where('ssl.action', 'IN', array(1,3)) // login or cookie
			->order_by('ssl.timestamp', 'DESC')
			->limit(1)
			->offset(0);

		return DB::select('su.id', 'su.name', 'su.email', 'su.status', array('ssl.timestamp','last_login'))
			->from(array('sys_user','su'))
			->join(array($sub, 'ssl'), 'LEFT')->on('su.id', '=', 'ssl.user_id')
			->where('su.is_deleted', '=', 0)
			->order_by($order_by, $sort)
			->execute();
	}

	public function fetch($id)
	{
		$data = DB::select('id', 'name', 'email', array('email','o_email'), 'status')
			->from('sys_user')
			->where('id', '=', $id)
			->execute()
			->current();

		if ($data)
		{
			$log = Model::factory('Sys_Activity_Log')->last_modified($this->_module_id, $id);
			$data['log_timestamp'] = $log['timestamp'];
			$data['log_user'] = $log['name'];
		}

		return $data;
	}

	public function save($data)
	{
		$valid = $this->check($data);

		if ( ! $valid->check())
			return $valid->errors('user');

		$data['password'] = $this->password($data['password']);

		if ($data['id'])
			return $this->_update($data);
		else
			return $this->_insert($data);

	}

	public function delete($id)
	{
		$id = (int) $id;

		DB::update('sys_user')
			->set(array('is_deleted' => 1))
			->where('id', '=', $id)
			->execute();

		$data = DB::select('id', 'name')
			->from('sys_user')
			->where('id', '=', $id)
			->execute()
			->current();

		$this->_log_transaction($this->_module_id, $data['id'], $data['name'], $data, 3);

		return TRUE;
	}

	protected function _insert($data)
	{
		list($user_id) = DB::insert('sys_user', array('name', 'email', 'password', 'status'))
			->values(array($data['name'], $data['email'], $data['password'], $data['status']))
			->execute();

		$this->_log_transaction($this->_module_id, $user_id, $data['name'], $data, 1);

		return TRUE;
	}

	protected function _update($data)
	{
		DB::update('sys_user')
			->set(array('name'     => $data['name']))
			->set(array('email'    => $data['email']))
			->set(array('password' => $data['password']))
			->set(array('status'   => $data['status']))
			->where('id', '=', $data['id'])
			->execute();

		$this->_log_transaction($this->_module_id, $data['id'], $data['name'], $data, 2);

		return TRUE;
	}

	protected function _log_session($user_id, $action)
	{
		$code = Model::factory('Sys_Lookup')->get_code('session', $action);
		Model::factory('Sys_Session_Log')->log($user_id, $code);
	}

	public function check($data)
	{
		$data = array_map('trim', $data);
		$data['id'] = (int) $data['id'];

		$data = Validation::factory($data)
			->rule('name', 'not_empty')
			->rule('email', 'not_empty')
			->rule('email', 'email')
			->rule('email', 'Model_Sys_User::unique_email', array($data['id'], $data['email'], $data['o_email']))
			->rule('status', 'not_empty')
			->rule('status', 'in_array', array(':value', array(1, 2)));

		if ( ! $data['id'] OR $data['password'] )
		{
			$data->rule('password', 'not_empty');
			$data->rule('password', 'min_length', array(':value', '6'));
		}

		return $data;
	}

	public static function unique_email($id, $email, $o_email)
	{
		$result = DB::select(array(DB::expr('COUNT(email)'), 'total'))
			->from('sys_user')
			->where('email', '=', $email);

		if ($id)
		{
			$result->where('email', '<>', $o_email);
		}

		return ! $result->execute()->get('total');
	}

	public function password($pass)
	{
		$config = Kohana::config('auth')->backend;

		return hash_hmac($config['hash_method'], $pass, $config['hash_key']);
	}

	public function generate_password()
	{
		return Text::random('alnum', 8);
	}

	public function forgot($username)
	{
		$user = DB::select('id', 'name')
			->from('sys_user')
			->where('email', '=', $username)
			->where('status', '=', 1)
			->where('is_deleted', '=', 0)
			->execute()
			->current();

		if( ! $user)
			return FALSE;

		$newpassword_text = $this->generate_password();
		$newpassword = $this->password($newpassword_text);

		DB::update('sys_user')
			->set(array('password' => $newpassword))
			->where('id', '=', $user['id'])
			->execute();

		$data = array("newpassword"=>$newpassword);

		// Send mail

		$site = Kohana::config('site');

		$mailTo = $username;

		$mailFrom = "Webmaster <webmaster@copyleftsolutions.no>";
		$subject = $site->title." (".__('Forgot your password?').")";
		$message = '
		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

		<base href="'.$site->url.'">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>'.$subject.'</title>

		'.__('We have received a request to generate a new password and here it is').':

'.$newpassword_text.'

		url.'admin/">'.$site->url.'admin/

		';
		$mailheaders = "From: " . $mailFrom . " \n";
		$mailheaders .= 'Content-type: text/html; charset=utf8' . "\r\n";
		mail($mailTo, $subject, $message, $mailheaders);

//		$this->_log_transaction($this->_module_id, $user['id'], $user['name'], $data, 4);

		return TRUE;
	}

}


text:
[![Bower version](https://badge.fury.io/bo/jquery-popupwindow.png)](http://badge.fury.io/bo/jquery-popupwindow)

A super simple jQuery plugin for popup windows. Tested in IE7+, FF, Safari and
Chrome.

## Installation

Get the script via one of the methods below, and add it to your page after
jQuery:

```html
<script src="jquery.js"></script>
<script src="jquery.popupwindow.js"></script>
```

### Bower

```bash
bower install jquery-popupwindow
```

### Manual

Download the [`jquery.popupwindow.js`][script] file to your project.

[script]: https://github.com/mkdynamic/jquery-popupwindow/raw/master/jquery.popupwindow.js

## Basic usage

```javascript
$.popupWindow(url, [options]);
```

| argument   | type   | description                     |
|------------|--------|---------------------------------|
| `url`      | string | *Required* URL to open popup to |
| `options`  | object | *Optional*                      |

### Simple example

```javascript
$.popupWindow('http://google.com');
```

By default this will open a 500x500 pixel window which is auto-centered and has
minimal chrome.

### Example with options

```javascript
$.popupWindow('http://www.google.com', { height: 300, width: 200 });
```

### More examples

There are more [examples] to look at as well.

[examples]: https://github.com/mkdynamic/jquery-popupwindow/blob/master/example.html

## Options

| option       | type     | default | notes |
|--------------|----------|---------|-------|
| `center`     | string   | `'screen'`| possible values are: `'screen'`,`'parent'`, and `null`. For backwards compatibility `true`/`false` is still supported, but deprecated, and may be removed in a future version |
| `createNew`  | boolean  | `true`  | open a new window, or re-use existing popup |
| `height`     | integer  | `500`   |       |
| `left`       | integer  | `0`     |       |
| `location`   | boolean  | `false` |       |
| `menubar`    | boolean  | `false` |       |
| `name`       | string   | `null`  | specify custom name for window (overrides createNew option) |
| `onUnload`   | function | `null`  | callback when window closes |
| `resizable`  | boolean  | `false` |       |
| `scrollbars` | boolean  | `false` | safari always adds scrollbars |
| `status`     | boolean  | `false` |       |
| `toolbar`    | boolean  | `false` |       |
| `top`        | integer  | `0`     |       |
| `width`      | integer  | `500`   |       |

## Notes

### Settings not working

Some settings may not work in certain browsers. This is because new browsers
allow the user to override any setting you pass to `window.open`.

For Firefox, open a new tab, go to `about:config`, then search for
`disable_window_open_feature` to see the different overrides.

### Popup blocked

Most browsers will block popups created *without* user interaction (e.g. on
page load). If the popup is blocked, your user may not notice the notification
to allow them to see the pop up.

You should only create popups in the same event tick as a user interaction,
such as a click. If you would like to do something without user interaction, I
suggest a modal such as [Bootstrap modals] or [jQuery UI Dialog].

[Bootstrap modals]: http://getbootstrap.com/javascript/#modals
[jQuery UI Dialog]: http://jqueryui.com/dialog/

### Same origin

Your popup will not be brought to the front if:

  - if the user refreshes the primary webpage without closing the popup windows
    *and*
  - and you go to show the popup again *and*
  - your popup does not require user interaction *and*
  - the URL **does not** pass the same origin policy.

Likewise, in Chrome (not Firefox), your popup will not be brought to the front
if:

  - if the user refreshes the primary webpage without closing the popup windows
    *and*
  - and you go to show the popup again *and*
  - your popup does not require user interaction *and*
  - the URL **does** pass the same origin policy.

The quick fix again is to require user interaction. If you do this, regardless
of the URL, it will bring the window to the front.

### Mutliple monitors support: Internet Explorer

IE reports the primary monitor resolution. So, if you have multiple monitors IE
will *always* return the resolution of the primary monitor. This is a bug, and
there is an [open ticket with IE][ticket]. In Chrome and Firefox it returns the
monitor that the browser is currently located on. If the browser spans multiple
monitors, whichever monitor the browser has the most real estate on, is the
monitor it returns the size for.

What this means to the end users:

If they have multiple monitors, their multiple monitors have different
resolutions, they use Internet Explorer, the browser is currently located on a
secondary monitor, and they have `center` set to `'screen'` (the default),
centering will not be perfect as it will be based on the primary monitor's
resolution.

If you believe that could be your target audience, try using `center:
'parent'`.

[ticket]: https://connect.microsoft.com/IE/feedback/details/856470/ie11-javascript-screen-height-still-gives-wrong-value-on-secondary-monitor

## License

Released under the MIT License.

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mkdynamic/jquery-popupwindow/trend.png)](https://bitdeli.com/free "Bitdeli Badge")


text:
const webpack = require('atool-build/lib/webpack');

module.exports = function(webpackConfig) {
  webpackConfig.babel.plugins.push('transform-runtime');

  // CSS Modules Support.
  // Parse all less files as css module.
  webpackConfig.module.loaders.forEach(function(loader, index) {
    if (typeof loader.test === 'function' && loader.test.toString().indexOf('\\.less$') > -1) {
      loader.test = /\.dont\.exist\.file/;
    }
    if (loader.test.toString() === '/\\.module\\.less$/') {
      loader.test = /\.less$/;
    }
  });

  return webpackConfig;
};


text:
MySQL CRUD with Logger
======================

PHP library for MySQL CRUD operation and Logger

VERSION:
--------
0.1.0

INSTALL:
--------

* Paste all these files and directories to your **SITE ROOT**
* Include **lib/init.inc.php** in your script to load the library

FEATURES:
---------
* Creates log of all error here **logs/log.txt**

USAGE:
------

**Database configuration**

Define MySQL hostname, username, password and database name here **lib/config.inc.php**

```php
defined('DB_HOST') ? null : define('DB_HOST', 'localhost');
defined('DB_USER') ? null : define('DB_USER', 'root');
defined('DB_PASS') ? null : define('DB_PASS', '');
defined('DB_NAME') ? null : define('DB_NAME', '');
```

**Test MySQL**

Start by creating a test table in your database

```mysql
CREATE TABLE IF NOT EXISTS CRUDClass (
  id int(11) NOT NULL AUTO_INCREMENT,
  name varchar(255) NOT NULL,
  email varchar(255) NOT NULL,
  PRIMARY KEY (id)
);

INSERT INTO CRUDClass VALUES('','Name 1','name1@email.com');
INSERT INTO CRUDClass VALUES('','Name 2','name2@email.com');
INSERT INTO CRUDClass VALUES('','Name 3','name3@email.com');
```

**Update Example**

Use the following code to update rows in the database

```php
<?php
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
require_once('lib'.DS.'init.inc.php');

$db = new Database();
$db->update('CRUDClass',array('name'=>"Name 4",'email'=>"name4@email.com"),'id="1" AND name="Name 1"'); // Table name, column names and values, WHERE conditions
$res = $db->getResult();
print_r($res);
```

**Insert Example**

Use the following code to insert rows into the database

```php
<?php
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
require_once('lib'.DS.'init.inc.php');

$db = new Database();
$db->insert('CRUDClass',array('name'=>'Name 5','email'=>'name5@email.com'));  // Table name, column names and respective values
$res = $db->getResult();
print_r($res);
```

**Delete Example**

Use the following code to delete rows from the database with this class

```php
<?php
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
require_once('lib'.DS.'init.inc.php');

$db = new Database();
$db->delete('CRUDClass','id=5');  // Table name, WHERE conditions
$res = $db->getResult();
print_r($res);
```

**Full SQL Example**

Use the following code to enter the full SQL query

```php
<?php
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
require_once('lib'.DS.'init.inc.php');

$db = new Database();
$db->sql('SELECT id,name FROM CRUDClass');
$res = $db->getResult();
foreach($res as $output){
	echo $output["name"]."<br />";
}
```


text:
<?php

namespace HWI\Bundle\OAuthBundle\Tests\OAuth\ResourceOwner;

use HWI\Bundle\OAuthBundle\OAuth\ResourceOwner\Auth0ResourceOwner;
use Symfony\Component\Security\Http\HttpUtils;

class Auth0ResourceOwnerTest extends GenericOAuth2ResourceOwnerTest
{
    protected $resourceOwnerClass = Auth0ResourceOwner::class;
    protected $userResponse = <<<json
{
  "email": "baz",
  "email_verified": false,
  "clientID": "yyy",
  "picture": "https://secure.gravatar.com/avatar/xxx.png",
  "user_id": "1",
  "name": "bar",
  "nickname": "bar",
  "identities": [
    {
      "user_id": "xxx",
      "provider": "auth0",
      "connection": "Username-Password-Authentication",
      "isSocial": false
    }
  ]
}
json;

    protected $paths = array(
        'identifier' => 'user_id',
        'nickname' => 'nickname',
        'realname' => 'name',
        'email' => 'email',
        'profilepicture' => 'picture',
    );

    protected $expectedUrls = array(
        'authorization_url' => 'https://example.oauth0.com/authorize?auth0Client=eyJuYW1lIjoiSFdJT0F1dGhCdW5kbGUiLCJ2ZXJzaW9uIjoidW5rbm93biIsImVudmlyb25tZW50Ijp7Im5hbWUiOiJQSFAiLCJ2ZXJzaW9uIjoiRkFLRV9QSFBfVkVSU0lPTl9GT1JfVEVTVFMifX0=&response_type=code&client_id=clientid&redirect_uri=http%3A%2F%2Fredirect.to%2F',
        'authorization_url_csrf' => 'https://example.oauth0.com/authorize?auth0Client=eyJuYW1lIjoiSFdJT0F1dGhCdW5kbGUiLCJ2ZXJzaW9uIjoidW5rbm93biIsImVudmlyb25tZW50Ijp7Im5hbWUiOiJQSFAiLCJ2ZXJzaW9uIjoiRkFLRV9QSFBfVkVSU0lPTl9GT1JfVEVTVFMifX0=&response_type=code&client_id=clientid&state=random&redirect_uri=http%3A%2F%2Fredirect.to%2F',
    );

    protected function setUpResourceOwner($name, HttpUtils $httpUtils, array $options)
    {
        $auth0Client = base64_encode(json_encode(array(
            'name' => 'HWIOAuthBundle',
            'version' => 'unknown',
            'environment' => array(
                'name' => 'PHP',
                'version' => 'FAKE_PHP_VERSION_FOR_TESTS',
            ),
        )));

        $options = array_merge(
            $options,
            array(
                'authorization_url' => '{base_url}/authorize?auth0Client='.$auth0Client,
                'access_token_url' => '{base_url}/oauth/token',
                'infos_url' => '{base_url}/userinfo',
                'auth0_client' => $auth0Client,
                'base_url' => 'https://example.oauth0.com',
            )
        );

        return parent::setUpResourceOwner($name, $httpUtils, $options);
    }
}


text:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CollisionBack : MonoBehaviour {

    public bool playerTrigger;
    public Collider2D collider;

    private void Start()
    {
        collider = GetComponent<Collider2D>();
    }

    private void OnCollisionEnter2D(Collision2D collision)
    {
        if (string.Compare(collision.gameObject.tag, "Player") == 0)
        {
            playerTrigger = true;
        }
    }

    private void OnCollisionExit2D(Collision2D collision)
    {
        if (string.Compare(collision.gameObject.tag, "Player") == 0)
        {
            playerTrigger = false;
        }
    }

    private void OnTriggerExit2D(Collider2D collision)
    {
        if (string.Compare(collision.gameObject.tag, "Player") == 0)
        {
            playerTrigger = false;
        }
    }
}


text:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<title>Grupo Celebration</title>
		<meta name="description" content="Grupo Celebration. EVENTOS, BANQUETES, CONGRESOS Y CONVENCIONES. QUEREMOS SER TU PROVEEDORA DE CONFIANZA">
		<meta name="keywords" content="Grupo Celebration, Eventos, Banquetes, Congresos, Convenciones, queremos, proveedora, Confianza">
		<meta name="robots" content="all">
		<meta name="distribution" content="global">
		<meta name="rating" content="general">
		<link rel="canonical" href="http://www.grupocelebration.com/" />
		<link rel="shortcut icon" type="image/png" href="<?php echo base_url('assets/img/favicon.png'); ?>"/>
		<link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/bootstrap.min.css'); ?>">
		<link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/font-awesome.css'); ?>">
		<link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/celebration.css'); ?>">

						NOSOTROS

                        SERVICIOS

						CLIENTES

						CONTACTO

						EVENTOS, BANQUETES, CONGRESOS Y CONVENCIONES

						"QUEREMOS SER TU PROVEEDORA DE CONFIANZA"

						"QUEREMOS SER TU PROVEEDORA DE CONFIANZA"

						"QUEREMOS SER TU PROVEEDORA DE CONFIANZA"

						"QUEREMOS SER TU PROVEEDORA DE CONFIANZA"

							<img width="180" class="m-4" src="<?php echo base_url('assets/img/Logo_Celebration.svg'); ?>" alt="Grupo Celebration">

							<img width="150" class="m-4" src="<?php echo base_url('assets/img/Logo_Celebration.svg'); ?>" alt="Grupo Celebration">

							<img width="120" class="m-4" src="<?php echo base_url('assets/img/Logo_Celebration.svg'); ?>" alt="Grupo Celebration">

Grupo Celebration

NOSOTROS

SERVICIOS

CLIENTES

CONTACTO

						NOSOTROS

                        SERVICIOS

						CLIENTES

						CONTACTO

						EVENTOS, BANQUETES, CONGRESOS Y CONVENCIONES

						<img class="" src="<?php echo base_url('assets/img/a.png'); ?>">

						Eficientes

						<img class="" src="<?php echo base_url('assets/img/b.png'); ?>">

						Comprometidos

						<img class="" src="<?php echo base_url('assets/img/c.png'); ?>">

						Puntuales

						<img class="" src="<?php echo base_url('assets/img/d.png'); ?>">

						Internacionales

						<img class="" src="<?php echo base_url('assets/img/e.png'); ?>">

						Todólogos

						<img class="" src="<?php echo base_url('assets/img/f.png'); ?>">

						Trabajadores

						<img class="" src="<?php echo base_url('assets/img/g.png'); ?>">

						Cumplidos

Nosotros somos...

Nosotros somos...

						"Una institucion que organiza y realiza banquetes para cualquier tipo de evento.
						Congresos tanto nacionales como internacionales. Tenemos el privilegio de operar en puntos
						relevantes de la Ciudad de México. Igual organizamos eventos priados en Hoteles,
						Recintos Históricos y las mismas Instalaciones del Cliente."

						"Una institucion que organiza y realiza banquetes para cualquier tipo de evento.
						Congresos tanto nacionales como internacionales. Tenemos el privilegio de operar en puntos
						relevantes de la Ciudad de México. Igual organizamos eventos priados en Hoteles,
						Recintos Históricos y las mismas Instalaciones del Cliente."

Servicios

Servicios

						"Contamos con personal perfectamente capacitado para realizar de sus eventos un
						éxito tanto en las instalaciones del cliente como en el lugar que deseen."

						"Contamos con personal perfectamente capacitado para realizar de sus eventos un
						éxito tanto en las instalaciones del cliente como en el lugar que deseen."

					<a href="<?php echo base_url('servicio/empresariales'); ?>" class="m-auto d-flex align-items-center justify-content-center text-white sq-50 bg-light rounded-circle">
						<img class="" src="<?php echo base_url('assets/img/1.png'); ?>">

Empresariales

							Lorem Ipsum is simply dummy text of the printing and typesetting industry.
							Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
							when an unknown printer took a galley of type and scrambled it to make a type specimen
							book

					<a href="<?php echo base_url('servicio/sociales'); ?>" class="m-auto d-flex align-items-center justify-content-center text-white sq-50 bg-light rounded-circle">
						<img class="" src="<?php echo base_url('assets/img/2.png'); ?>">

Sociales

							Lorem Ipsum is simply dummy text of the printing and typesetting industry.
							Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
							when an unknown printer took a galley of type and scrambled it to make a type specimen
							book

					<a href="<?php echo base_url('servicio/privados'); ?>" class="m-auto d-flex align-items-center justify-content-center text-white sq-50 bg-light rounded-circle">
						<img class="" src="<?php echo base_url('assets/img/3.png'); ?>">

Privados

							Lorem Ipsum is simply dummy text of the printing and typesetting industry.
							Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
							when an unknown printer took a galley of type and scrambled it to make a type specimen
							book

					<a href="<?php echo base_url('servicio/cocina'); ?>" class="m-auto d-flex align-items-center justify-content-center text-white sq-50 bg-light rounded-circle">
						<img class="" src="<?php echo base_url('assets/img/4.png'); ?>">

Cocina

							Contamos con chefs de alto nivel, equipo de banquetes,equipo de cocina,
							meseros y conseguimos cualquier alimento o platillo que desee.

					<a href="<?php echo base_url('servicio/profesionales'); ?>" class="m-auto d-flex align-items-center justify-content-center text-white sq-50 bg-light rounded-circle">
						<img class="" src="<?php echo base_url('assets/img/5.png'); ?>">

Profesionales

							Si necesita algún profesional único para su evento, nosotros lo conseguimos.
							Contamos con prestigiados Músicos, Cómicos, Traductores, Valet Parking, Seguridad,
							Decoradores, Edecanes y mucho más.

					<a href="<?php echo base_url('servicio/decoracion'); ?>" class="m-auto d-flex align-items-center justify-content-center text-white sq-50 bg-light rounded-circle">
						<img class="" src="<?php echo base_url('assets/img/6.png'); ?>">

Decoración y más...

							Cualquier tipo de decoración única para su evento o para usted. Equipos
							profesionales en iluminación y sonido, arreglos florales, equipos de viaje y mucho
							más.

Trabajamos con

Trabajamos con

						"Contamos con experiencia de más de 6 años en el medio de la realización de eventos
						desde 10 hasta 4000 personas con una capacidad de realización de eventos simultáneos."

						"Contamos con experiencia de más de 6 años en el medio de la realización de eventos
						desde 10 hasta 4000 personas con una capacidad de realización de eventos simultáneos."

					Afore Banamex

					Banco de México

					ADO

					Inbursa

					Herdez

					Red Uno

					Pionner

					Purina

					Hospital ABC

					ISSSTE

					Gobierno del D.F.

					Secretaría de Desarrollo Social

					Instituto Nacional Electoral

					Afore Banamex

					Banco de México

					ADO

					Inbursa

					Herdez

					Red Uno

					Pionner

					Purina

					Hospital ABC

					ISSSTE

					Gobierno del D.F.

					Secretaría de Desarrollo Social

					Instituto Nacional Electoral

					Afore Banamex

					Banco de México

					ADO

					Inbursa

					Herdez

					Red Uno

					Pionner

					Purina

					Hospital ABC

					ISSSTE

					Gobierno del D.F.

					Secretaría de Desarrollo Social

					Instituto Nacional Electoral

					Afore Banamex

					Banco de México

					ADO

					Inbursa

					Herdez

					Red Uno

					Pionner

					Purina

					Hospital ABC

					ISSSTE

					Gobierno del D.F.

					Secretaría de Desarrollo Social

					Instituto Nacional Electoral

Contáctanos

Contáctanos

						"¿Necesitas una cotización? ¿Quieres saber si tenemos el producto que deseas?
						Escribenos un email o llámanos y con gusto atenderemos a todas tus dudas."

						"¿Necesitas una cotización? ¿Quieres saber si tenemos el producto que deseas?
						Escribenos un email o llámanos y con gusto atenderemos a todas tus dudas."

					<img width="130" class="pt-2 pb-2 border-5" src="<?php echo base_url('assets/img/contacto.png'); ?>">

GRUPO CELEBRATION

Tel. 5550 5520

contacto@grupocelebration.com

RFC. CCE0803282J2

                    <?php echo form_open('', array('class' => 'form_send d-none d-md-block')); ?>

                        <?php
                        echo form_label('Nombre', '', array(
                            'class' => 'col-2'
                        ));
                        echo form_input(array(
                            'name' => 'name',
                            'class' => 'col-10',
                            'id' => 'name'
                        ));
                        ?>

                        <?php
                        echo form_label('Teléfono', '', array(
                            'class' => 'col-2'
                        ));
                        echo form_input(array(
                            'type' => 'text',
                            'name' => 'phone',
                            'class' => 'col-4'
                        ));
                        echo form_label('E-mail', '', array(
                            'class' => 'col-2 text-center'
                        ));
                        echo form_input(array(
                            'type' => 'text',
                            'name' => 'email',
                            'class' => 'col-4'
                        ));
                        ?>

                        <?php
                        echo form_label('Mensaje', '', array(
                            'class' => 'col-2'
                        ));
                        echo form_textarea(array(
                            'name' => 'message',
                            'class' => 'col-10',
                            'rows' => '4'
                        ));
                        ?>

                        <?php
                        echo form_submit('enviar', 'Enviar', array(
                            'class' => 'col-auto ml-auto pl-5 pr-5'
                        ));
                        ?>

                    <?php echo form_close(); ?>

                    <?php echo form_open('', array('class' => 'w-100 d-md-none')); ?>

                        <?php
                        echo form_label('Nombre', '', array(
                            'class' => 'col-12'
                        ));
                        echo form_input(array(
                            'name' => 'name',
                            'class' => 'col-12',
                            'id' => 'name'
                        ));
                        ?>

                        <?php
                        echo form_label('Teléfono', '', array(
                            'class' => 'col-12'
                        ));
                        echo form_input(array(
                            'type' => 'text',
                            'name' => 'phone',
                            'class' => 'col-12'
                        ));
                        ?>

                        <?php
                        echo form_label('E-mail', '', array(
                            'class' => 'col-12r'
                        ));
                        echo form_input(array(
                            'type' => 'text',
                            'name' => 'email',
                            'class' => 'col-12'
                        ));
                        ?>

                        <?php
                        echo form_label('Mensaje', '', array(
                            'class' => 'col-12'
                        ));
                        echo form_textarea(array(
                            'name' => 'message',
                            'class' => 'col-12',
                            'rows' => '4'
                        ));
                        ?>

                        <?php
                        echo form_submit('enviar', 'Enviar', array(
                            'class' => 'col-12'
                        ));
                        ?>

                    <?php echo form_close(); ?>

					www.grupocelebration.com

					NOSOTROS

                    SERVICIOS

					CLIENTES

					CONTACTO


text:
#ifndef __CASS_QUERY_REQUEST_HPP_INCLUDED__
#define __CASS_QUERY_REQUEST_HPP_INCLUDED__

#include "constants.hpp"
#include "hash_table.hpp"
#include "statement.hpp"

#include <string>
#include <vector>

namespace cass {

class QueryRequest : public Statement {
public:
  struct ValueName : HashTableEntry<ValueName> {
    ValueName() { }

    ValueName(const std::string& name)
      : name(name)
      , buf(sizeof(uint16_t) + name.size()) {
      buf.encode_string(0, name.data(), name.size());
    }

    std::string name;
    Buffer buf;
  };

  explicit QueryRequest(size_t value_count = 0)
    : Statement(CQL_OPCODE_QUERY, CASS_BATCH_KIND_QUERY,
                value_count)
    , value_names_(value_count) { }

  QueryRequest(const std::string& query,
               size_t value_count = 0)
    : Statement(CQL_OPCODE_QUERY, CASS_BATCH_KIND_QUERY,
                value_count)
    , query_(query)
    , value_names_(value_count) { }

  QueryRequest(const char* query, size_t query_length,
               size_t value_count = 0)
    : Statement(CQL_OPCODE_QUERY, CASS_BATCH_KIND_QUERY,
                value_count)
    , query_(query, query_length)
    , value_names_(value_count) { }

  virtual int32_t encode_batch(int version, BufferVec* bufs, Handler* handler) const;

private:
  virtual size_t get_indices(StringRef name,
                             IndexVec* indices);

  virtual const DataType::ConstPtr& get_type(size_t index) const {
    return DataType::NIL;
  }

private:
  int32_t copy_buffers_with_names(int version, BufferVec* bufs, EncodingCache* cache) const;

  int encode(int version, Handler* handler, BufferVec* bufs) const;
  int internal_encode_v1(Handler* handler, BufferVec* bufs) const;
  int internal_encode(int version, Handler* handler, BufferVec* bufs) const;

private:
  std::string query_;
  CaseInsensitiveHashTable<ValueName> value_names_;
};

} // namespace cass

#endif


text:
package pacworld;

import agent.Agent;
import agent.Action;
import agent.State;

/** A package delivery agent action that causes the agent to broadcast
    a message to all other agents. There is no limit on the range or
    size of the message. */
public class Say extends Action {
  private String str;

  public Say(String s) {
    str = s;
  }

  /** Return the state that results from the agent sending a message.
      In order to avoid creating unnecessary objects, we
      do not create a new state, but instead modify the old one. This
      would have to change if the Environment needs to maintain a history
      of states. */
  public State execute(Agent agent, State s) {
    PackageState state = null;

    if (s instanceof PackageState)
      state = (PackageState)s;
    else
      System.out.println("ERROR - Argument to Idle.execute() is not of type PackageState");

    if (!(agent instanceof Agent))
      System.out.println("ERROR - Argument to Pickup.execute() is not of type PacAgent");

    /* since we will be copying the state and bumps depend only on the
       current move, unset the bump condition */
    state.setBump(agent, false);
    state.setIdleCount(0);
    state.setMessage(agent, str);
    return state;
  }

  public String toString() {
    return "SAY " + str;
  }
}


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>plugins</artifactId>
        <groupId>org.igniterealtime.openfire</groupId>
        <version>4.2.0</version>
    </parent>
    <groupId>org.igniterealtime.openfire.plugins</groupId>
    <artifactId>justmarried</artifactId>
    <version>1.2.3-SNAPSHOT</version>
    <name>JustMarried Plugin</name>
    <description>Allows admins to rename or copy users</description>

    <developers>
        <developer>
            <name>Holger Bergunde</name>
        </developer>
    </developers>

    <build>
        <sourceDirectory>src/java</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>


text:
Read Example:

https://angular.io/docs/ts/latest/guide/animations.html#!#multi-step-animations-with-keyframes


text:
[<-- Back to the Evidence Listing](https://github.com/itgfirm/safe-food/edit/master/Evidence)                                                                                [Next Evidence (l) -->](https://github.com/itgfirm/safe-food/edit/master/Evidence/l)

***k. provided sufficient documentation to install and run their prototype on another machine***

## Development

### Prepare your environment
* Install [Node.js](http://nodejs.org/) and NPM (should come with)
* Install global dev dependencies: `npm install -g grunt-cli`
* Install local dev dependencies: `npm install` in repository directory

### Development Common Commands
* `grunt` to jshint, test, and build
* `grunt build` to jshint and build
* `grunt test` for one-time test with karma and mocha (also jshint)

### Run Locally for Front End Development (enables live reload)
* `grunt serve` to watch src files to jshint, build, and livereload when changed
* The server will run on http://localhost:9000

### Deployment & Local Full-Stack Development
* `npm start`  (requires all front-end code to be built via `grunt build`)
* The server will run on http://locahost:3000  (note: the server binds to 0.0.0.0)

**Key Files**
- [package.json](https://github.com/itgfirm/safe-food/blob/master/package.json)
- [Gruntfile.js](https://github.com/itgfirm/safe-food/blob/master/Gruntfile.js)
- [bower.json](https://github.com/itgfirm/safe-food/blob/master/bower.json)
- [.jshintrc](https://github.com/itgfirm/safe-food/blob/master/.jshintrc)
- [karma.conf.js](https://github.com/itgfirm/safe-food/blob/master/client/test/karma.conf.js)

[<-- Back to the Evidence Listing](https://github.com/itgfirm/safe-food/edit/master/Evidence)                                                                                [Next Evidence (l) -->](https://github.com/itgfirm/safe-food/edit/master/Evidence/l)


text:
import pytest
import time
import unittest.mock

from girder import events

class EventsHelper:
    def __init__(self):
        self.ctr = 0
        self.responses = None

    def _raiseException(self, event):
        raise Exception('Failure condition')

    def _increment(self, event):
        self.ctr += event.info['amount']

    def _incrementWithResponse(self, event):
        self._increment(event)
        event.addResponse('foo')

    def _eatEvent(self, event):
        event.addResponse({'foo': 'bar'})
        event.stopPropagation()
        event.preventDefault()

    def _shouldNotBeCalled(self, event):
        pytest.fail('This should not be called due to stopPropagation().')

@pytest.fixture
def eventsHelper():
    yield EventsHelper()

def testSynchronousEvents(eventsHelper):
    name, failname = '_test.event', '_test.failure'
    handlerName = '_test.handler'
    with events.bound(name, handlerName, eventsHelper._increment), \
            events.bound(failname, handlerName, eventsHelper._raiseException):
        # Make sure our exception propagates out of the handler
        with pytest.raises(Exception, match='^Failure condition$'):
            events.trigger(failname)

        # Bind an event to increment the counter
        assert eventsHelper.ctr == 0
        event = events.trigger(name, {'amount': 2})
        assert eventsHelper.ctr == 2
        assert event.propagate
        assert not event.defaultPrevented
        assert event.responses == []

        # The event should still be bound here if another handler unbinds
        events.unbind(name, 'not the handler name')
        events.trigger(name, {'amount': 2})
        assert eventsHelper.ctr == 4

    # Actually unbind the event, by going out of scope of "bound"
    events.trigger(name, {'amount': 2})
    assert eventsHelper.ctr == 4

    # Bind an event that prevents the default action and passes a response
    with events.bound(name, handlerName, eventsHelper._eatEvent), \
            events.bound(name, 'other handler name',
                         eventsHelper._shouldNotBeCalled):
        event = events.trigger(name)
        assert event.defaultPrevented
        assert not event.propagate
        assert event.responses == [{'foo': 'bar'}]

    # Test that the context manager unbinds after an unhandled exception
    try:
        with events.bound(failname, handlerName, eventsHelper._raiseException):
            events.trigger(failname)
    except Exception:
        # The event should should be unbound at this point
        events.trigger(failname)

@unittest.mock.patch.object(events, 'daemon', new=events.AsyncEventsThread())
def testAsyncEvents(eventsHelper):
    name, failname = '_test.event', '_test.failure'
    handlerName = '_test.handler'

    def callback(event):
        eventsHelper.ctr += 1
        eventsHelper.responses = event.responses

    with events.bound(failname, handlerName, eventsHelper._raiseException), \
            events.bound(name, handlerName, eventsHelper._incrementWithResponse):
        # Make sure an async handler that fails does not break the event
        # loop and that its callback is not triggered.
        assert events.daemon.eventQueue.qsize() == 0
        events.daemon.trigger(failname, handlerName, callback)

        # Triggering the event before the daemon starts should do nothing
        assert events.daemon.eventQueue.qsize() == 1
        events.daemon.trigger(name, {'amount': 2}, callback)
        assert events.daemon.eventQueue.qsize() == 2
        assert eventsHelper.ctr == 0

        # Now run the asynchronous event handler, which should eventually
        # cause our counter to be incremented.
        events.daemon.start()
        # Ensure that all of our events have been started within a
        # reasonable amount of time.  Also check the results in the loop,
        # since the qsize only indicates if all events were started, not
        # finished.
        startTime = time.time()
        while True:
            if events.daemon.eventQueue.qsize() == 0:
                if eventsHelper.ctr == 3:
                    break
            if time.time() - startTime > 15:
                break
            time.sleep(0.1)
        assert events.daemon.eventQueue.qsize() == 0
        assert eventsHelper.ctr == 3
        assert eventsHelper.responses == ['foo']
        events.daemon.stop()

@unittest.mock.patch.object(events, 'daemon', new=events.ForegroundEventsDaemon())
def testForegroundDaemon(eventsHelper):
    assert isinstance(events.daemon, events.ForegroundEventsDaemon)

    # Should still be able to call start
    events.daemon.start()

    def callback(event):
        eventsHelper.ctr += 1
        eventsHelper.responses = event.responses

    with events.bound('_test.event', '_test.handler', eventsHelper._raiseException):
        with pytest.raises(Exception, match='^Failure condition$'):
            events.daemon.trigger('_test.event', None, callback)

    with events.bound('_test.event', '_test.handler', eventsHelper._incrementWithResponse):
        events.daemon.trigger('_test.event', {'amount': 2}, callback)

    assert eventsHelper.ctr == 3
    assert eventsHelper.responses == ['foo']

    events.daemon.stop()


text:
<!DOCTYPE html>

    <title>Strategy Report: KK13 EURPLN H1</title>

Strategy Report

KK13 EURPLN H1

Long and Short

Total net profit	-72.9	Gross profit	2.27	Gross loss	-75.17

Profit factor	0.03	Expected payoff	-1.82

Absolute drawdown	-72.9	Maximal drawdown (%)	73.2 (24400.0%)

Total trades	40	Profit trades (% of total)	4 (10.0%)	Loss trades (% of total)	36 (90.0%)

	Long positions (won %)	28 (14.29%)	Short positions (won %)	12 (0.0%)

Largest	profit trade	0.92	loss trade	-8.95

Average	profit trade	0.57	loss trade	-2.09

Minimum	profit trade	0.3	loss trade	-0.09

Maximum	take profit in pips	171.7	stop loss in pips	-348.4

Average	take profit in pips	10.2	stop loss in pips	-96.1

Minimum	take profit in pips	-100.1	stop loss in pips	-26.2

Maximum	Reward-Risk	3.5	Duration in minutes	5345

Average	Reward-Risk	0.4	Duration in minutes	291.9

Minimum	Reward-Risk	0.0	Duration in minutes	0

Maximum	consecutive wins (profit in money)	2.0 (1.05)	consecutive losses (loss in money)	16.0 (-35.68)

Average	consecutive wins	1.0	consecutive losses	10.0

Long

Total net profit	-29.86	Gross profit	2.27	Gross loss	-32.13

Profit factor	0.07	Expected payoff	-1.07

Absolute drawdown	-29.86	Maximal drawdown (%)	30.16 (10053.33%)

Total trades	28	Profit trades (% of total)	4 (14.29%)	Loss trades (% of total)	24 (85.71%)

Largest	profit trade	0.92	loss trade	-4.97

Average	profit trade	0.57	loss trade	-1.34

Minimum	profit trade	0.3	loss trade	-0.09

Maximum	take profit in pips	171.7	stop loss in pips	-348.4

Average	take profit in pips	7.1	stop loss in pips	-78.3

Minimum	take profit in pips	-100.1	stop loss in pips	-40.7

Maximum	Reward-Risk	3.5	Duration in minutes	728.0

Average	Reward-Risk	0.4	Duration in minutes	108.7

Minimum	Reward-Risk	0.0	Duration in minutes	1.0

Maximum	consecutive wins (profit in money)	2.0 (1.05)	consecutive losses (loss in money)	9.0 (-16.39)

Average	consecutive wins	1.0	consecutive losses	7.0

Short

Total net profit	-43.04	Gross profit	0.0	Gross loss	-43.04

Profit factor	0.0	Expected payoff	-3.59

Absolute drawdown	-43.04	Maximal drawdown (%)	42.92 (-35766.67%)

Total trades	12	Profit trades (% of total)	0 (0.0%)	Loss trades (% of total)	12 (100.0%)

Largest	profit trade	0.0	loss trade	-8.95

Average	profit trade	0.0	loss trade	-3.59

Minimum	profit trade	0.0	loss trade	-0.12

Maximum	take profit in pips	78.0	stop loss in pips	-343.3

Average	take profit in pips	17.4	stop loss in pips	-137.7

Minimum	take profit in pips	-46.8	stop loss in pips	-26.2

Maximum	Reward-Risk	2.8	Duration in minutes	5345.0

Average	Reward-Risk	0.6	Duration in minutes	719.2

Minimum	Reward-Risk		Duration in minutes	0.0

Maximum	consecutive wins (profit in money)	0.0 (0.0)	consecutive losses (loss in money)	12.0 (-43.04)

Average	consecutive wins	0.0	consecutive losses	12.0

Home


text:
<!DOCTYPE html>

		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="generator" content="Jekyll v3.3.1">

		<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic|Open+Sans:400,400italic,600,600italic,700,700italic|Inconsolata:400,700">
		<link rel="stylesheet" href="/css/main.css">
		<link rel="apple-touch-icon" href="/siteicon.png">
		<link rel="icon" type="image/png" href="/siteicon.png" sizes="192x192">
		<link rel="icon" type="image/png" href="/images/siteicon.png">
		<meta name="keywords" content="l10n.ws,l10n,localization,i18n,internationalization,g11n,globalization,translation,locale,management,web service,platform,java,spring">

		<link type="application/atom+xml" rel="alternate" href="http://localhost:4000/feed.xml" title="L10n.ws" />

<title>Examples - L10n.ws</title>
<meta property="og:title" content="Examples" />
<meta name="description" content="Spring PetClinic Application localization by L10n.ws" />
<meta property="og:description" content="Spring PetClinic Application localization by L10n.ws" />
<link rel="canonical" href="http://localhost:4000/example/" />
<meta property="og:url" content="http://localhost:4000/example/" />
<meta property="og:site_name" content="L10n.ws" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2017-08-03T12:29:11+03:00" />
<meta name="google-site-verification" content="l0CTb-NMGRSdHY9BoKkeMQf9UdJfuXzYRtts6NZTQZg" />

				L10n.ws
				<button type="button" class="open-nav" id="open-nav"></button>

			<form action="/search/" method="get">
				<input type="text" name="q" id="search-input" placeholder="Search" autofocus>
				<input type="submit" value="Search" style="display: none;">
			</form>

						Welcome

							Download

							API

API v1 HTTP

							Integration

Java

Spring

Gradle

Maven

Android

							Portal Application

Common terminology

Access management

							Examples

							Contact us

						Source code

						Blog

Spring PetClinic Application localization by L10n.ws


text:
.class public final enum Landroid/support/v8/renderscript/RenderScript$Priority;
.super Ljava/lang/Enum;
.source "RenderScript.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/support/v8/renderscript/RenderScript;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4019
    name = "Priority"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Enum",
        "<",
        "Landroid/support/v8/renderscript/RenderScript$Priority;",
        ">;"
    }
.end annotation

# static fields
.field private static final synthetic $VALUES:[Landroid/support/v8/renderscript/RenderScript$Priority;

.field public static final enum LOW:Landroid/support/v8/renderscript/RenderScript$Priority;

.field public static final enum NORMAL:Landroid/support/v8/renderscript/RenderScript$Priority;

# instance fields
.field mID:I

# direct methods
.method static constructor <clinit>()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 848
    new-instance v0, Landroid/support/v8/renderscript/RenderScript$Priority;

    const-string v1, "LOW"

    const/16 v2, 0xf

    invoke-direct {v0, v1, v3, v2}, Landroid/support/v8/renderscript/RenderScript$Priority;-><init>(Ljava/lang/String;II)V

    sput-object v0, Landroid/support/v8/renderscript/RenderScript$Priority;->LOW:Landroid/support/v8/renderscript/RenderScript$Priority;

    .line 849
    new-instance v0, Landroid/support/v8/renderscript/RenderScript$Priority;

    const-string v1, "NORMAL"

    const/4 v2, -0x4

    invoke-direct {v0, v1, v4, v2}, Landroid/support/v8/renderscript/RenderScript$Priority;-><init>(Ljava/lang/String;II)V

    sput-object v0, Landroid/support/v8/renderscript/RenderScript$Priority;->NORMAL:Landroid/support/v8/renderscript/RenderScript$Priority;

    .line 847
    const/4 v0, 0x2

    new-array v0, v0, [Landroid/support/v8/renderscript/RenderScript$Priority;

    sget-object v1, Landroid/support/v8/renderscript/RenderScript$Priority;->LOW:Landroid/support/v8/renderscript/RenderScript$Priority;

    aput-object v1, v0, v3

    sget-object v1, Landroid/support/v8/renderscript/RenderScript$Priority;->NORMAL:Landroid/support/v8/renderscript/RenderScript$Priority;

    aput-object v1, v0, v4

    sput-object v0, Landroid/support/v8/renderscript/RenderScript$Priority;->$VALUES:[Landroid/support/v8/renderscript/RenderScript$Priority;

    return-void
.end method

.method private constructor <init>(Ljava/lang/String;II)V
    .locals 0
    .param p3, "id"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)V"
        }
    .end annotation

    .prologue
    .line 852
    invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V

    .line 853
    iput p3, p0, Landroid/support/v8/renderscript/RenderScript$Priority;->mID:I

    .line 854
    return-void
.end method

.method public static valueOf(Ljava/lang/String;)Landroid/support/v8/renderscript/RenderScript$Priority;
    .locals 1
    .param p0, "name"    # Ljava/lang/String;

    .prologue
    .line 847
    const-class v0, Landroid/support/v8/renderscript/RenderScript$Priority;

    invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;

    move-result-object v0

    check-cast v0, Landroid/support/v8/renderscript/RenderScript$Priority;

    return-object v0
.end method

.method public static values()[Landroid/support/v8/renderscript/RenderScript$Priority;
    .locals 1

    .prologue
    .line 847
    sget-object v0, Landroid/support/v8/renderscript/RenderScript$Priority;->$VALUES:[Landroid/support/v8/renderscript/RenderScript$Priority;

    invoke-virtual {v0}, [Landroid/support/v8/renderscript/RenderScript$Priority;->clone()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Landroid/support/v8/renderscript/RenderScript$Priority;

    return-object v0
.end method


text:
'use strict';

/**
 * @module import-export/task/import-teams
 */

const Team = require('../../team/model/team');

/**
 * Adds Teams to Mongoose
 * @param {Object} documentAndMapping - XML document and User ObjectId mappings
 * @returns {Object} XML Document, User ObjectId mapping, and Team ObjectId mapping
 */
function importTeams (documentAndMapping) {
    // Find all the teams
    const teams = documentAndMapping
        .document
        .find('//team');
    const promises = [];

    // For each team
    for (const currentTeam of teams) {
        // Gather all team members for current team
        const teamMembers = currentTeam.find('member');
        const teamMetadata = {members: []};

        // Set the team name
        teamMetadata.name = currentTeam
            .get('name')
            .text();

        // Get each of the team members' ids
        for (const member of teamMembers) {
            const memberXmlId = member
                .attr('id')
                .value();
            const memberMongoId = documentAndMapping
                .mapping
                .find((element) => element.xmlId === memberXmlId)
                .databaseId;

            teamMetadata
                .members
                .push(memberMongoId);
        }

        // Copy the team to Mongoose
        promises.push(
            Team
                .create(teamMetadata)
                .then((newTeam) => ({
                    databaseId: newTeam._id,
                    xmlId: currentTeam
                        .attr('id')
                        .value()
                }))
        );
    }

    // Wait for all teams to be created
    return Promise
        .all(promises)
        .then((newResult) => {
            documentAndMapping.mapping = documentAndMapping
                .mapping
                .concat(newResult);

            return documentAndMapping;
        });
}

module.exports = importTeams;


text:
from __future__ import print_function
import unittest
from test_dist_base import TestDistBase

class TestDistMnistNCCL2(TestDistBase):
    def _setup_config(self):
        self._sync_mode = True
        self._use_reduce = False
        self._use_reader_alloc = False
        self._nccl2_mode = True

    def test_dist_train(self):
        import paddle.fluid as fluid
        if fluid.core.is_compiled_with_cuda():
            self.check_with_place(
                "dist_mnist.py",
                delta=1,
                need_envs={
                    "FLAGS_enable_parallel_graph": "1",
                    "FLAGS_sync_nccl_allreduce": "1"
                })

if __name__ == "__main__":
    unittest.main()


text:
package org.hisp.dhis.dxf2.metadata;

/**
 * @author Morten Olav Hansen <mortenoh@gmail.com>
 */
public enum FlushMode
{
    /**
     * Flush for every db write.
     */
    OBJECT,

    /**
     * Let the importer decide the flushing.
     */
    AUTO,
}


text:
class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :first_name
      t.string :last_name
      t.string :email
      t.string :password_digest
      t.string :phone
      t.string :address
      t.date :dob

      t.timestamps null: false
    end
  end
end


text:
package groovy.bugs;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.codehaus.groovy.transform.GroovyASTTransformationClass;

@Retention(RetentionPolicy.SOURCE)
@Target({ElementType.TYPE})
@GroovyASTTransformationClass({"groovy.bugs.MyConstantsASTTransformation4272"})
public @interface MyConstants4272 {}


text:
import declare from 'dojo/_base/declare';
import lang from 'dojo/_base/lang';
import Base from './Base';
import _SDataModelBase from 'argos/Models/_SDataModelBase';
import Manager from 'argos/Models/Manager';
import MODEL_TYPES from 'argos/Models/Types';
import MODEL_NAMES from '../Names';
import PricingAvailabilityService from '../../PricingAvailabilityService';

const __class = declare('crm.Integrations.BOE.Models.QuoteItem.SData', [Base, _SDataModelBase], {
  id: 'quoteitem_sdata_model',
  createQueryModels: function createQueryModels() {
    return [{
      name: 'list',
      queryOrderBy: 'ErpLineNumber',
      querySelect: [
        'Description',
        'ErpLineNumber',
        'ErpLineTotalAmount',
        'ErpStatus',
        'ErpStatusDate',
        'Quantity',
        'Price',
        'ExtendedPrice',
        'DocExtendedPrice',
        'CalculatedPrice',
        'DocCalculatedPrice',
        'DocTotalAmount',
        'ErpUnitPrice',
        'ProductName',
        'CreateDate',
        'ModifyDate',
        'Quote/ErpLogicalId',
        'Quote/QuoteNumber',
        'Quote/CurrencyCode',
        'Quote/BaseCurrencyCode',
        'SlxLocation/Description',
        'Product/Name',
        'UnitOfMeasure/*',
        'SlxLocation/*',
      ],
    }, {
      name: 'detail',
      querySelect: [
        'Description',
        'ErpLineNumber',
        'ExtendedPrice',
        'ActualId',
        'Discount',
        'CalculatedPrice',
        'Status',
        'Quantity',
        'Price',
        'ExtendedPrice',
        'DocExtendedPrice',
        'CalculatedPrice',
        'DocTotalAmount',
        'DocCalculatedPrice',
        'ProductName',
        'CreateDate',
        'ModifyDate',
        'Quote/QuoteNumber',
        'OpenQuantity',
        'DropShip',
        'FixedPrice',
        'RushRequest',
        'Quote/CurrencyCode',
        'Quote/BaseCurrencyCode',
        'Quote/ErpLogicalId',
        'Product/*',
        'UnitOfMeasure/*',
        'SlxLocation/*',
        'Product/Name',
      ],
      queryInclude: [
        '$permissions',
      ],
    }, {
      name: 'edit',
      querySelect: [
        'Description',
        'ExtendedPrice',
        'ActualId',
        'Discount',
        'CalculatedPrice',
        'Status',
        'Quantity',
        'Price',
        'ExtendedPrice',
        'DocExtendedPrice',
        'CalculatedPrice',
        'DocCalculatedPrice',
        'DocTotalAmount',
        'ProductName',
        'CreateDate',
        'ModifyDate',
        'Quote/QuoteNumber',
        'Quote/ErpLogicalId',
        'OpenQuantity',
        'DropShip',
        'FixedPrice',
        'RushRequest',
        'Quote/CurrencyCode',
        'Quote/BaseCurrencyCode',
        'Product/*',
        'UnitOfMeasure/*',
        'SlxLocation/*',
      ],
      queryInclude: [
        '$permissions',
      ],
    },
    ];
  },
  updateItemWithWarehouse: function updateItemWithWarehouse(quoteItem, warehouse) {
    const promise = new Promise((resolve) => {
      PricingAvailabilityService.updateQuoteItemWarehouse(quoteItem, warehouse.SlxLocation, warehouse.SlxLocationID, warehouse.ATPDate).then(() => {
        quoteItem.SlxLocation = {
          $key: warehouse.SlxLocationID,
          description: warehouse.SlxLocation,
        };
        PricingAvailabilityService.getQuoteItemPricing(quoteItem).then((pricingData) => {
          const entry = this.createPricingEntryForUpdate(quoteItem, pricingData);
          this.updateEntry(entry, { overwrite: true }).then((result) => {
            resolve(result);
          });
        });
      });
    });
    return promise;
  },
  createPricingEntryForUpdate: function createPricingEntryForUpdate(quoteItem, pricingData) {
    const entry = {};
    entry.$key = quoteItem.$key;
    if (pricingData) {
      if (pricingData.DocCalculatedPrice) {
        entry.DocCalculatedPrice = pricingData.DocCalculatedPrice.value;
      }
      if (pricingData.DocExtendedPrice) {
        entry.DocExtendedPrice = pricingData.DocExtendedPrice.value;
      }
      if (pricingData.DocTotalAmount) {
        entry.DocTotalAmount = pricingData.DocTotalAmount.value;
      }
    }
    return entry;
  },
});

Manager.register(MODEL_NAMES.QUOTEITEM, MODEL_TYPES.SDATA, __class);
lang.setObject('icboe.Models.QuoteItem.SData', __class);
export default __class;


text:
import * as R from 'ramda'
import styled from 'styled-components'
import React, { Component } from 'react'
import { withStyles } from 'material-ui/styles'

const Row = styled.div`
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid #eee;
  padding: 5px;
  cursor: pointer;
`

const IconContainer = styled.div`
  display: flex;
  flex-direction: row;
  max-width: 200px;
  overflow: hidden;
`

const Icon = styled.div`
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid #eee;
  background-color: #f6f6f6;
  padding: 10px;
  img {
    width: 40px;
  }
  :after {
    position: absolute;
    right: -10px;
    content: '>';
  }
  margin-right: 10px;
`

const Title = styled.div`
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
`

const styles = theme => ({
  cardAction: {
    display: 'none',
  },
})

class SequenceRow extends Component {
  _onClick = () => {
    this.props.onClick()
  }
  render() {
    const { host, flattenSequence = [], title, className } = this.props
    const getIcons = R.compose(x =>
      R.map(z => {
        // Otherwise generate it as an icon
        return (
          <Icon>
            <img src={`${host}${z.icon}`} />
          </Icon>
        )
      }, x),
    )
    return (
      <Row className={className} onClick={this._onClick}>
        <IconContainer>{getIcons(flattenSequence)}</IconContainer>
        <Title>{title}</Title>
      </Row>
    )
  }
}

export default withStyles(styles)(SequenceRow)


text:
import {TableUniqueOptions} from "../options/TableUniqueOptions";
import {UniqueMetadata} from "../../metadata/UniqueMetadata";

/**
 * Database's table unique constraint stored in this class.
 */
export class TableUnique {

    // -------------------------------------------------------------------------
    // Public Properties
    // -------------------------------------------------------------------------

    /**
     * Constraint name.
     */
    name?: string;

    /**
     * Columns that contains this constraint.
     */
    columnNames: string[] = [];

    // -------------------------------------------------------------------------
    // Constructor
    // -------------------------------------------------------------------------

    constructor(options: TableUniqueOptions) {
        this.name = options.name;
        this.columnNames = options.columnNames;
    }

    // -------------------------------------------------------------------------
    // Public Methods
    // -------------------------------------------------------------------------

    /**
     * Creates a new copy of this constraint with exactly same properties.
     */
    clone(): TableUnique {
        return new TableUnique(<TableUniqueOptions>{
            name: this.name,
            columnNames: [...this.columnNames]
        });
    }

    // -------------------------------------------------------------------------
    // Static Methods
    // -------------------------------------------------------------------------

    /**
     * Creates unique from the unique metadata object.
     */
    static create(uniqueMetadata: UniqueMetadata): TableUnique {
        return new TableUnique(<TableUniqueOptions>{
            name: uniqueMetadata.name,
            columnNames: uniqueMetadata.columns.map(column => column.databaseName)
        });
    }

}


text:
require 'active_support/concern'

module TokenAuthenticateMe
  module Concerns
    module Models
      module Passwordable
        extend ActiveSupport::Concern

        included do
          has_secure_password validations: false
          attr_accessor :current_password

          validates(
            :password,
            presence: true,
            confirmation: true,
            if: :password_required?
          )

          validates(
            :password_confirmation,
            presence: true,
            if: :password_required?
          )

          validates(
            :password,
            length: { in: 8..72 },
            if: :password_required?,
            unless: :ignore_password_length_validations?
          )

          validate(
            :current_password_correct,
            if: :current_password_required?
          )

          def create_reset_token!
            # rubocop:disable Lint/Loop
            begin
              self.reset_password_token = SecureRandom.hex
            end while self.class.exists?(reset_password_token: reset_password_token)

            self.reset_password_token_exp = password_expiration_hours.hours.from_now
            save!
          end

          def password_expiration_hours
            8
          end

          def password=(unencrypted_password)
            super(unencrypted_password) unless unencrypted_password.blank? && !password_required?
          end

          def current_password_correct
            user_with_old_password = self.class.find_by_id(id)
            errors.add(:current_password, 'is required to change email and/or password') if current_password.blank? # rubocop:disable Metrics/LineLength
            errors.add(:current_password, 'is incorrect') unless user_with_old_password.authenticate(current_password)
          end

          def current_password_required?
            !new_record? && (email_changed? || attempting_to_change_password?) && !password_resetting?
          end

          def password_resetting?
            reset_password_token_changed? && reset_password_token_exp_changed?
          end

          def ignore_password_length_validations?
            false
          end

          def password_required?
            attempting_to_change_password? || new_record?
          end

          def attempting_to_change_password?
            (!password.blank? || !password_confirmation.blank?) && password_digest_changed?
          end
        end
      end
    end
  end
end


text:
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class Pages extends CI_Controller {

    public function index() {
        $this->load->view('welcome_message');
    }

    public function getLogin() {

        $this->load->view('login');
    }

    public function postLogin() {
        $this->load->model('login_model');

        extract($_POST);

        $id = $this->login_model->is_logged($email, $password);
        if (!$id) {
            // Logovanje nije uspelo
            redirect(base_url('login'));
        } else {
            // Uspesno logovanje
            redirect(base_url());
        }
    }

    public function registration() {
        $this->load->library('form_validation');

        $this->form_validation->set_rules('name', 'Name', 'required|trim|is_unique[users.name]');
        $this->form_validation->set_rules('email', 'Email', 'required|trim|is_unique[users.email]');
        $this->form_validation->set_rules('password', 'password', 'required');
        $this->form_validation->set_rules('repassword', 're-password', 'required|matches[password]');

        if ($this->form_validation->run() == FALSE) {
            $data['title'] = "Registration";
            $this->load->view('registration',$data);
        } else{
            $this->load->model('user_model');
            $data = array(
                'name' => $this->input->post('name'),
                'email' => $this->input->post('email'),
                'password' => $this->input->post('password')
            );
            $this->user_model->addUser($data);
            redirect('login');
        }
    }

    public function postRegistration($data) {

    }

    public function Logout() {
        $this->session->sess_destroy();
        redirect(base_url('login'));
    }

    public function category($id) {

        $this->load->model('post_model');
        $data['title'] = 'Posts in category';
        $data['posts'] = $this->post_model->getby('category_id', $id);

        $this->load->view('welcome_message', $data);
    }

    public function read($id=NULL) {
        $this->load->model('post_model');
        $this->load->model('comment_model');
        $data['post'] = $this->post_model->getPost($id);
        $data['title'] = $data['post']['title'];
        $data['comments'] = $this->comment_model->getPostComments($id);
        $this->load->view('post',$data);
    }

}