text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="de.hammerhartes.andy.neo2"
          android:versionCode="1"
          android:versionName="1.0">

    <uses-sdk
            android:minSdkVersion="18"
            android:targetSdkVersion="19"/>

    <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name">

        <receiver android:name=".InputDeviceReceiver"
                  android:label="@string/keyboard_layouts_label">
            <intent-filter>
                <action android:name="android.hardware.input.action.QUERY_KEYBOARD_LAYOUTS"/>
            </intent-filter>
            <meta-data android:name="android.hardware.input.metadata.KEYBOARD_LAYOUTS"
                       android:resource="@xml/keyboard_layouts"/>
        </receiver>

        <service android:name=".Neo2InputMethodService"
                 android:label="@string/ime_name"
                 android:permission="android.permission.BIND_INPUT_METHOD">
            <intent-filter>
                <action android:name="android.view.InputMethod"/>
            </intent-filter>
            <meta-data android:name="android.view.im" android:resource="@xml/method"/>
        </service>
    </application>
</manifest>


text: Files for the Hello Web App website.

redpajama_set_name: RedPajamaGithub


text:
function Pessoa(nome, idade) {
  this.nome = nome;
  this.idade = idade;
}

Pessoa.prototype.falar = falar;

function falar() {
  console.log('Oi, meu nome é ' + this.nome);
}

function Ana(nome, idade) {
  this.nome = nome;
  this.idade = idade;
}
Ana.prototype = Object.create(Pessoa.prototype);
Ana.prototype.constructor = Pessoa;

const maria = new Pessoa('Maria', 28);
maria.falar(); // Oi, meu nome é Maria

const mariazinha = new Ana('Maria', 56);


text:
function populate(form)
{
form.options.length = 0;
form.options[0] = new Option("Select a county of Michigan","");
form.options[1] = new Option("Alcona County","Alcona County");
form.options[2] = new Option("Alger County","Alger County");
form.options[3] = new Option("Allegan County","Allegan County");
form.options[4] = new Option("Alpena County","Alpena County");
form.options[5] = new Option("Antrim County","Antrim County");
form.options[6] = new Option("Arenac County","Arenac County");
form.options[7] = new Option("Baraga County","Baraga County");
form.options[8] = new Option("Barry County","Barry County");
form.options[9] = new Option("Bay County","Bay County");
form.options[10] = new Option("Benzie County","Benzie County");
form.options[11] = new Option("Berrien County","Berrien County");
form.options[12] = new Option("Branch County","Branch County");
form.options[13] = new Option("Calhoun County","Calhoun County");
form.options[14] = new Option("Cass County","Cass County");
form.options[15] = new Option("Charlevoix County","Charlevoix County");
form.options[16] = new Option("Cheboygan County","Cheboygan County");
form.options[17] = new Option("Chippewa County","Chippewa County");
form.options[18] = new Option("Clare County","Clare County");
form.options[19] = new Option("Clinton County","Clinton County");
form.options[20] = new Option("Crawford County","Crawford County");
form.options[21] = new Option("Delta County","Delta County");
form.options[22] = new Option("Dickinson County","Dickinson County");
form.options[23] = new Option("Eaton County","Eaton County");
form.options[24] = new Option("Emmet County","Emmet County");
form.options[25] = new Option("Genesee County","Genesee County");
form.options[26] = new Option("Gladwin County","Gladwin County");
form.options[27] = new Option("Gogebic County","Gogebic County");
form.options[28] = new Option("Grand Traverse County","Grand Traverse County");
form.options[29] = new Option("Gratiot County","Gratiot County");
form.options[30] = new Option("Hillsdale County","Hillsdale County");
form.options[31] = new Option("Houghton County","Houghton County");
form.options[32] = new Option("Huron County","Huron County");
form.options[33] = new Option("Ingham County","Ingham County");
form.options[34] = new Option("Ionia County","Ionia County");
form.options[35] = new Option("Iosco County","Iosco County");
form.options[36] = new Option("Iron County","Iron County");
form.options[37] = new Option("Isabella County","Isabella County");
form.options[38] = new Option("Jackson County","Jackson County");
form.options[39] = new Option("Kalamazoo County","Kalamazoo County");
form.options[40] = new Option("Kalkaska County","Kalkaska County");
form.options[41] = new Option("Kent County","Kent County");
form.options[42] = new Option("Keweenaw County","Keweenaw County");
form.options[43] = new Option("Lake County","Lake County");
form.options[44] = new Option("Lapeer County","Lapeer County");
form.options[45] = new Option("Leelanau County","Leelanau County");
form.options[46] = new Option("Lenawee County","Lenawee County");
form.options[47] = new Option("Livingston County","Livingston County");
form.options[48] = new Option("Luce County","Luce County");
form.options[49] = new Option("Mackinac County","Mackinac County");
form.options[50] = new Option("Macomb County","Macomb County");
form.options[51] = new Option("Manistee County","Manistee County");
form.options[52] = new Option("Marquette County","Marquette County");
form.options[53] = new Option("Mason County","Mason County");
form.options[54] = new Option("Mecosta County","Mecosta County");
form.options[55] = new Option("Menominee County","Menominee County");
form.options[56] = new Option("Midland County","Midland County");
form.options[57] = new Option("Missaukee County","Missaukee County");
form.options[58] = new Option("Monroe County","Monroe County");
form.options[59] = new Option("Montcalm County","Montcalm County");
form.options[60] = new Option("Montmorency County","Montmorency County");
form.options[61] = new Option("Muskegon County","Muskegon County");
form.options[62] = new Option("Newaygo County","Newaygo County");
form.options[63] = new Option("Oakland County","Oakland County");
form.options[64] = new Option("Oceana County","Oceana County");
form.options[65] = new Option("Ogemaw County","Ogemaw County");
form.options[66] = new Option("Ontonagon County","Ontonagon County");
form.options[67] = new Option("Osceola County","Osceola County");
form.options[68] = new Option("Oscoda County","Oscoda County");
form.options[69] = new Option("Otsego County","Otsego County");
form.options[70] = new Option("Ottawa County","Ottawa County");
form.options[71] = new Option("Presque Isle County","Presque Isle County");
form.options[72] = new Option("Roscommon County","Roscommon County");
form.options[73] = new Option("Saginaw County","Saginaw County");
form.options[74] = new Option("St. Clair County","St. Clair County");
form.options[75] = new Option("St. Joseph County","St. Joseph County");
form.options[76] = new Option("Sanilac County","Sanilac County");
form.options[77] = new Option("Schoolcraft County","Schoolcraft County");
form.options[78] = new Option("Shiawassee County","Shiawassee County");
form.options[79] = new Option("Tuscola County","Tuscola County");
form.options[80] = new Option("Van Buren County","Van Buren County");
form.options[81] = new Option("Washtenaw County","Washtenaw County");
form.options[82] = new Option("Wayne County","Wayne County");
form.options[83] = new Option("Wexford County","Wexford County");
}


text:
package edu.gemini.spModel.target

import edu.gemini.spModel.core.Arbitraries
import edu.gemini.spModel.core._
import edu.gemini.spModel.core.Target._
import edu.gemini.spModel.pio.codec._

import scalaz._
import Scalaz._

import org.scalacheck.{ Properties, Gen, Arbitrary }
import org.scalacheck.Prop.forAll
import org.scalacheck.Prop._
import org.scalacheck.Gen

import org.specs2.ScalaCheck
import org.specs2.mutable.Specification

import AlmostEqual.AlmostEqualOps

object TargetParamCodecsSpec extends Specification with ScalaCheck with Arbitraries {
  import TargetParamCodecs._

  def close[A: ParamCodec: Arbitrary: AlmostEqual](implicit mf: Manifest[A]) =
    mf.runtimeClass.getName ! forAll { (key: String, value: A) =>
      val c = ParamCodec[A]
      c.decode(c.encode(key, value)).map(_ ~= value) must_== \/-(true)
    }

  def exact[A: ParamCodec: Arbitrary](implicit mf: Manifest[A]) =
    mf.runtimeClass.getName ! forAll { (key: String, value: A) =>
      val c = ParamCodec[A]
      c.decode(c.encode(key, value)) must_== \/-(value)
    }

  "Target Param Codecs" >> {
    close[Redshift]
    close[Angle]
    close[Parallax]
    close[RA]
    exact[MagnitudeBand]
    exact[MagnitudeSystem]
    close[Epoch]
    close[Dec]
    close[RightAscensionAngularVelocity]
    close[DeclinationAngularVelocity]
    exact[Site]
  }

}


text:
import functools
import threading
from typing import TYPE_CHECKING, Any, Callable

if TYPE_CHECKING:
    from pandas import DataFrame

    from pyathenajdbc.cursor import Cursor

def as_pandas(cursor: "Cursor", coerce_float: bool = False) -> "DataFrame":
    from pandas import DataFrame

    description = cursor.description
    if not description:
        return DataFrame()
    names = [metadata[0] for metadata in description]
    return DataFrame.from_records(
        cursor.fetchall(), columns=names, coerce_float=coerce_float
    )

def synchronized(wrapped: Callable[..., Any]) -> Any:
    """The missing @synchronized decorator

    https://git.io/vydTA"""
    _lock = threading.RLock()

    @functools.wraps(wrapped)
    def _wrapper(*args, **kwargs):
        with _lock:
            return wrapped(*args, **kwargs)

    return _wrapper

def attach_thread_to_jvm(wrapped: Callable[..., Any]) -> Any:
    @functools.wraps(wrapped)
    def _wrapper(*args, **kwargs):
        import jpype

        if not jpype.java.lang.Thread.isAttached():
            jpype.java.lang.Thread.attach()
        return wrapped(*args, **kwargs)

    return _wrapper


text:
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.filters;

import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.editor.colors.CodeInsightColors;
import com.intellij.openapi.editor.colors.EditorColorsManager;
import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.editor.markup.HighlighterLayer;
import com.intellij.openapi.editor.markup.TextAttributes;
import com.intellij.openapi.util.TextRange;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public interface Filter {
  Filter[] EMPTY_ARRAY = new Filter[0];

  class Result extends ResultItem {
    private NextAction myNextAction = NextAction.EXIT;
    private final List<? extends ResultItem> myResultItems;

    public Result(final int highlightStartOffset, final int highlightEndOffset, final @Nullable HyperlinkInfo hyperlinkInfo) {
      this(highlightStartOffset, highlightEndOffset, hyperlinkInfo, null);
    }

    public Result(final int highlightStartOffset,
                  final int highlightEndOffset,
                  final @Nullable HyperlinkInfo hyperlinkInfo,
                  final @Nullable TextAttributes highlightAttributes) {
      super(highlightStartOffset, highlightEndOffset, hyperlinkInfo, highlightAttributes, null);
      myResultItems = null;
    }

    public Result(final int highlightStartOffset,
                  final int highlightEndOffset,
                  final @Nullable HyperlinkInfo hyperlinkInfo,
                  final @Nullable TextAttributes highlightAttributes,
                  final @Nullable TextAttributes followedHyperlinkAttributes) {
      super(highlightStartOffset, highlightEndOffset, hyperlinkInfo, highlightAttributes, followedHyperlinkAttributes);
      myResultItems = null;
    }

    public Result(final int highlightStartOffset,
                  final int highlightEndOffset,
                  final @Nullable HyperlinkInfo hyperlinkInfo,
                  final boolean grayedHyperlink) {
      super(highlightStartOffset, highlightEndOffset, hyperlinkInfo, grayedHyperlink);
      myResultItems = null;
    }

    public Result(@NotNull List<? extends ResultItem> resultItems) {
      super(0, 0, null, null, null);
      myResultItems = resultItems;
    }

    public @NotNull List<ResultItem> getResultItems() {
      List<? extends ResultItem> resultItems = myResultItems;
      if (resultItems == null) {
        resultItems = Collections.singletonList(this);
      }
      return Collections.unmodifiableList(resultItems);
    }

    /**
     * @deprecated This method will be removed. Result may be constructed using ResultItems, in that case this method will return incorrect value. Use {@link #getResultItems()} instead.
     */
    @Deprecated
    @Override
    public int getHighlightStartOffset() {
      return super.getHighlightStartOffset();
    }

    /**
     * @deprecated This method will be removed. Result may be constructed using ResultItems, in that case this method will return incorrect value. Use {@link #getResultItems()} instead.
     */
    @Deprecated
    @Override
    public int getHighlightEndOffset() {
      return super.getHighlightEndOffset();
    }

    /**
     * @deprecated This method will be removed. Result may be constructed using ResultItems, in that case this method will return incorrect value. Use {@link #getResultItems()} instead.
     */
    @Deprecated
    @Override
    public @Nullable TextAttributes getHighlightAttributes() {
      return super.getHighlightAttributes();
    }

    /**
     * @deprecated This method will be removed. Result may be constructed using ResultItems, in that case this method will return incorrect value. Use {@link #getResultItems()} or {@link #getFirstHyperlinkInfo()} instead.
     */
    @Deprecated
    @Override
    public @Nullable HyperlinkInfo getHyperlinkInfo() {
      return super.getHyperlinkInfo();
    }

    public @Nullable HyperlinkInfo getFirstHyperlinkInfo() {
      HyperlinkInfo info = super.getHyperlinkInfo();
      if (info == null && myResultItems != null) {
        //noinspection ForLoopReplaceableByForEach
        for (int i = 0; i < myResultItems.size(); i++) {
          ResultItem resultItem = myResultItems.get(i);
          if (resultItem.getHyperlinkInfo() != null) {
            return resultItem.getHyperlinkInfo();
          }
        }
      }
      return info;
    }

    public NextAction getNextAction() {
      return myNextAction;
    }

    public void setNextAction(NextAction nextAction) {
      myNextAction = nextAction;
    }
  }

  enum NextAction {
    EXIT, CONTINUE_FILTERING,
  }

  class ResultItem {
    private static final Map<TextAttributesKey, TextAttributes> GRAYED_BY_NORMAL_CACHE = new ConcurrentHashMap<>(2);

    static {
      Application application = ApplicationManager.getApplication();
      if (application != null) {
        application.getMessageBus().connect().subscribe(EditorColorsManager.TOPIC, __ -> {
          // invalidate cache on Appearance Theme/Editor Scheme change
          GRAYED_BY_NORMAL_CACHE.clear();
        });
      }
    }

    private final int highlightStartOffset;
    private final int highlightEndOffset;
    private final @Nullable TextAttributes highlightAttributes;
    private final @Nullable HyperlinkInfo hyperlinkInfo;

    private final TextAttributes myFollowedHyperlinkAttributes;

    public ResultItem(final int highlightStartOffset, final int highlightEndOffset, final @Nullable HyperlinkInfo hyperlinkInfo) {
      this(highlightStartOffset, highlightEndOffset, hyperlinkInfo, null, null);
    }

    public ResultItem(final int highlightStartOffset,
                      final int highlightEndOffset,
                      final @Nullable HyperlinkInfo hyperlinkInfo,
                      final @Nullable TextAttributes highlightAttributes) {
      this(highlightStartOffset, highlightEndOffset, hyperlinkInfo, highlightAttributes, null);
    }

    public ResultItem(int highlightStartOffset,
                      int highlightEndOffset,
                      @Nullable HyperlinkInfo hyperlinkInfo,
                      boolean grayedHyperlink) {
      this(highlightStartOffset, highlightEndOffset, hyperlinkInfo,
           grayedHyperlink ? getGrayedHyperlinkAttributes(CodeInsightColors.HYPERLINK_ATTRIBUTES) : null,
           grayedHyperlink ? getGrayedHyperlinkAttributes(CodeInsightColors.FOLLOWED_HYPERLINK_ATTRIBUTES) : null);
    }

    public ResultItem(final int highlightStartOffset,
                      final int highlightEndOffset,
                      final @Nullable HyperlinkInfo hyperlinkInfo,
                      final @Nullable TextAttributes highlightAttributes,
                      final @Nullable TextAttributes followedHyperlinkAttributes) {
      this.highlightStartOffset = highlightStartOffset;
      this.highlightEndOffset = highlightEndOffset;
      TextRange.assertProperRange(highlightStartOffset, highlightEndOffset, "");
      this.hyperlinkInfo = hyperlinkInfo;
      this.highlightAttributes = highlightAttributes;
      myFollowedHyperlinkAttributes = followedHyperlinkAttributes;
    }

    public int getHighlightStartOffset() {
      return highlightStartOffset;
    }

    public int getHighlightEndOffset() {
      return highlightEndOffset;
    }

    public @Nullable TextAttributes getHighlightAttributes() {
      return highlightAttributes;
    }

    public @Nullable TextAttributes getFollowedHyperlinkAttributes() {
      return myFollowedHyperlinkAttributes;
    }

    public @Nullable HyperlinkInfo getHyperlinkInfo() {
      return hyperlinkInfo;
    }

    /**
     * See {@link HighlighterLayer} for available predefined layers.
     */
    public int getHighlighterLayer() {
      return getHyperlinkInfo() != null ? HighlighterLayer.HYPERLINK : HighlighterLayer.CONSOLE_FILTER;
    }

    private static @Nullable TextAttributes getGrayedHyperlinkAttributes(@NotNull TextAttributesKey normalHyperlinkAttrsKey) {
      TextAttributes grayedHyperlinkAttrs = GRAYED_BY_NORMAL_CACHE.get(normalHyperlinkAttrsKey);
      if (grayedHyperlinkAttrs == null) {
        EditorColorsScheme globalScheme = EditorColorsManager.getInstance().getGlobalScheme();
        TextAttributes normalHyperlinkAttrs = globalScheme.getAttributes(normalHyperlinkAttrsKey);
        if (normalHyperlinkAttrs != null) {
          grayedHyperlinkAttrs = normalHyperlinkAttrs.clone();
          grayedHyperlinkAttrs.setForegroundColor(UIUtil.getInactiveTextColor());
          grayedHyperlinkAttrs.setEffectColor(UIUtil.getInactiveTextColor());
          GRAYED_BY_NORMAL_CACHE.put(normalHyperlinkAttrsKey, grayedHyperlinkAttrs);
        }
      }
      return grayedHyperlinkAttrs;
    }
  }

  /**
   * Filters line by creating an instance of {@link Result}.
   *
   * @param line         The line to be filtered. Note that the line must contain a line
   *                     separator at the end.
   * @param entireLength The length of the entire text including the line passed for filtration.
   * @return {@code null} if there was no match. Otherwise, an instance of {@link Result}
   */
  @Nullable
  Result applyFilter(@NotNull String line, int entireLength);
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
using OrchardCore.DisplayManagement.Descriptors;
using OrchardCore.DisplayManagement.Shapes;
using OrchardCore.Mvc.Utilities;

namespace OrchardCore.DisplayManagement.Zones
{
    public class ZoneShapes : IShapeAttributeProvider
    {
        [Shape]
        public async Task<IHtmlContent> Zone(dynamic DisplayAsync, dynamic Shape)
        {
            var htmlContentBuilder = new HtmlContentBuilder();
            foreach (var item in Shape)
            {
                htmlContentBuilder.AppendHtml(await DisplayAsync(item));
            }

            return htmlContentBuilder;
        }

        [Shape]
        public async Task<IHtmlContent> ContentZone(dynamic DisplayAsync, dynamic Shape)
        {
            var htmlContents = new List<IHtmlContent>();

            var shapes = ((IEnumerable<dynamic>)Shape);

            var tabbed = shapes.GroupBy(x => (string)x.Metadata.Tab ?? "").ToList();

            if (tabbed.Count > 1)
            {
                foreach (var tab in tabbed)
                {
                    var tabName = String.IsNullOrWhiteSpace(tab.Key) ? "Content" : tab.Key;
                    var tabBuilder = new TagBuilder("div");
                    tabBuilder.Attributes["id"] = "tab-" + tabName.HtmlClassify();
                    tabBuilder.Attributes["data-tab"] = tabName;
                    foreach (var item in tab)
                    {
                        tabBuilder.InnerHtml.AppendHtml(await DisplayAsync(item));
                    }
                    htmlContents.Add(tabBuilder);
                }
            }
            else if (tabbed.Count > 0)
            {
                foreach (var item in tabbed[0])
                {
                    htmlContents.Add(await DisplayAsync(item));
                }
            }

            var htmlContentBuilder = new HtmlContentBuilder();
            foreach (var htmlContent in htmlContents)
            {
                htmlContentBuilder.AppendHtml(htmlContent);
            }

            return htmlContentBuilder;
        }
    }
}


text:
var ROOT = WScript.ScriptFullName.split('\\cordova\\cordova.js').join(''),
    shell=WScript.CreateObject("WScript.Shell");

function exec(command) {
    var oExec=shell.Exec(command);
    var output = new String();
    while(oExec.Status == 0) {
        if(!oExec.StdOut.AtEndOfStream) {
            var line = oExec.StdOut.ReadLine();
            // XXX: Change to verbose mode
            //WScript.StdOut.WriteLine(line);
            output += line;
        }
        WScript.sleep(100);
    }

    return output;
}

function emulator_running() {
    var local_devices = shell.Exec("%comspec% /c adb devices").StdOut.ReadAll();
    if(local_devices.match(/emulator/)) {
        return true;
    }
    return false;
}
function emulate() {
    // don't run emulator if a device is plugged in or if emulator is already running
    if(emulator_running()) {
        WScript.Echo("Device or Emulator already running!");
        return;
    }
    var oExec = shell.Exec("%comspec% /c android.bat list avd");
    var avd_list = [];
    var avd_id = -10;
    while(!oExec.StdOut.AtEndOfStream) {
        var output = oExec.StdOut.ReadLine();
        if(output.match(/Name: (.)*/)) {
            avd_list.push(output.replace(/ *Name:\s/, ""));
        }
    }
    // user has no AVDs
    if(avd_list.length == 0) {
        WScript.Echo("You don't have any Android Virtual Devices. Please create at least one AVD.");
        WScript.Echo("android");
        WScript.Quit(1);
    }
    // user has only one AVD so we launch that one
    if(avd_list.length == 1) {

        shell.Run("emulator -cpu-delay 0 -no-boot-anim -cache %Temp%\cache -avd "+avd_list[0]);
    }

    // user has more than one avd so we ask them to choose
    if(avd_list.length > 1) {
        while(!avd_list[avd_id]) {
            WScript.Echo("Choose from one of the following Android Virtual Devices [0 to "+(avd_list.length - 1)+"]:")
            for(i = 0, j = avd_list.length ; i < j ; i++) {
                WScript.Echo((i)+") "+avd_list[i]);
            }
            WScript.StdOut.Write("> ");
            avd_id = new Number(WScript.StdIn.ReadLine());
        }

        shell.Run("emulator -cpu-delay 0 -no-boot-anim -cache %Temp%\\cache -avd "+avd_list[avd_id], 0, false);
    }
}

function clean() {
    exec("%comspec% /c ant.bat clean -f "+ROOT+"\\build.xml 2>&1");
}

function debug() {
    exec("%comspec% /c ant.bat debug -f "+ROOT+"\\build.xml 2>&1");
}

function debug_install() {
    exec("%comspec% /c ant.bat debug install -f "+ROOT+"\\build.xml 2>&1");
}

function log() {
    WScript.Echo(exec("%comspec% /c adb.bat logcat"));
}

function launch() {
    var launch_str=exec("%comspec% /c java -jar "+ROOT+"\\cordova\\appinfo.jar "+ROOT+"\\AndroidManifest.xml");
    //WScript.Echo(launch_str);
    exec("%comspec% /c adb shell am start -n "+launch_str+" 2>&1");
}

function BOOM() {
   clean();
   if(emulator_running()) {
        debug_install();
        launch();
   } else {
        debug();
        WScript.Echo("##################################################################");
        WScript.Echo("# Plug in your device or launch an emulator with cordova/emulate #");
        WScript.Echo("##################################################################");
   }
}
var args = WScript.Arguments;
if(args.count() != 1) {
    WScript.StdErr.Write("An error has occured!\n");
    WScript.Quit(1);
}
eval(args(0)+"()");


text:
int test_variable = 0;

int
test_function ()
{
  test_variable = RETVAL;
  return RETVAL;
}

int
test_class::method ()
{
  return RETVAL;
}

test_class *
get_dll_singleton ()
{
  return TEST_SINGLETON::instance ();
}

ACE_SINGLETON_TEMPLATE_INSTANTIATE(ACE_Singleton, test_class, ACE_Null_Mutex);


text:
'-------------------------------------------------------------------------------------------'
' Inicio del codigo
'-------------------------------------------------------------------------------------------'
' Importando librerias
'-------------------------------------------------------------------------------------------'
Imports System.Data

'-------------------------------------------------------------------------------------------'
' Inicio de clase "rArticulos_sAlmacen_OnyxTD"
'-------------------------------------------------------------------------------------------'
Partial Class rArticulos_sAlmacen_OnyxTD
     Inherits vis2Formularios.frmReporte

	Dim loObjetoReporte As CrystalDecisions.CrystalReports.Engine.ReportDocument

	Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

	Try

			Dim lcParametro0Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(0))
			Dim lcParametro0Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(0))
			Dim lcParametro1Desde As String = goServicios.mObtenerListaFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(1))
			Dim lcParametro2Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(2))
			Dim lcParametro2Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(2))
			Dim lcParametro3Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(3))
			Dim lcParametro3Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(3))
			Dim lcParametro4Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(4))
			Dim lcParametro4Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(4))
			Dim lcParametro5Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(5))
			Dim lcParametro5Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(5))
			Dim lcParametro6Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(6))
			Dim lcParametro6Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(6))
			Dim lcParametro7Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(7))
			Dim lcParametro7Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(7))
            Dim lcParametro8Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(8))
            Dim lcParametro8Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(8))

            Dim lcParametro9Desde As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosIniciales(9))
            Dim lcParametro9Hasta As String = goServicios.mObtenerCampoFormatoSQL(cusAplicacion.goReportes.paParametrosFinales(9))
            Dim lcParametro10Desde As String = cusAplicacion.goReportes.paParametrosIniciales(10)
            Dim lcParametro11Desde As String = cusAplicacion.goReportes.paParametrosIniciales(11)
            Dim lcExistencia As String = ""

            Dim lcOrdenamiento As String = cusAplicacion.goReportes.pcOrden

			Dim loConsulta As New StringBuilder()

            loConsulta.AppendLine("")
			loConsulta.AppendLine("SELECT  Articulos.Cod_Art, " )
			loConsulta.AppendLine("        Articulos.Nom_Art, " )
			loConsulta.AppendLine("        Articulos.Cod_Uni1, " )

			Select Case lcParametro11Desde
                Case "Actual"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Act1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Act1"
                Case "Comprometida"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Ped1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Ped1"
                Case "Cotizada"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Cot1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Cot1"
                Case "En_Produccion"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Pro1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Pro1"
                Case "Por_Llegar"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Por1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Por1"
                Case "Por_Despachar"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Des1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Des1"
                Case "Por_Distribuir"
                    loConsulta.AppendLine("        Renglones_Almacenes.Exi_Dis1     AS Exi_Act1,")
                    lcExistencia = "Renglones_Almacenes.Exi_Dis1"
                Case Else
                    loConsulta.AppendLine("        0")
                    lcExistencia = "Renglones_Almacenes.Exi_Act1"
            End Select

			loConsulta.AppendLine("        Renglones_Almacenes.Cod_Alm, " )
			loConsulta.AppendLine("        Articulos.Cod_Dep,   ")
			loConsulta.AppendLine("        Articulos.Cod_Sec,   ")
			loConsulta.AppendLine("        Articulos.Cod_Tip,   ")
			loConsulta.AppendLine("        Articulos.Cod_Cla,   ")
            loConsulta.AppendLine("        Articulos.Cod_Mar,   ")
            loConsulta.AppendLine("        Almacenes.Nom_Alm,   ")
            loConsulta.AppendLine("        Articulos.Upc,       ")
            loConsulta.AppendLine("        Articulos.Modelo,    ")
            loConsulta.AppendLine("        Articulos.Cos_Pro1,  ")
            loConsulta.AppendLine("        CAST(1 AS DECIMAL(28, 10)) AS Cantidad_Caja  ")
			loConsulta.AppendLine("FROM    Articulos")
            loConsulta.AppendLine("    JOIN Renglones_Almacenes ")
            loConsulta.AppendLine("        ON Renglones_Almacenes.Cod_Art = Articulos.Cod_Art")
			loConsulta.AppendLine("    JOIN Almacenes  ")
            loConsulta.AppendLine("        ON Almacenes.Cod_Alm = Renglones_Almacenes.Cod_Alm")
			loConsulta.AppendLine("WHERE		Articulos.Cod_Art BETWEEN " & lcParametro0Desde)
			loConsulta.AppendLine(" 		AND " & lcParametro0Hasta)
			loConsulta.AppendLine(" 		AND Articulos.status IN (" & lcParametro1Desde & ")")
			loConsulta.AppendLine(" 		AND Renglones_Almacenes.Cod_Alm BETWEEN " & lcParametro2Desde)
			loConsulta.AppendLine(" 		AND " & lcParametro2Hasta)
			loConsulta.AppendLine(" 		AND Articulos.Cod_Dep BETWEEN " & lcParametro3Desde)
			loConsulta.AppendLine(" 		AND " & lcParametro3Hasta)
			loConsulta.AppendLine(" 		AND Articulos.Cod_Sec BETWEEN " & lcParametro4Desde)
			loConsulta.AppendLine(" 		AND " & lcParametro4Hasta)
			loConsulta.AppendLine(" 		AND Articulos.Cod_Mar BETWEEN " & lcParametro5Desde)
			loConsulta.AppendLine(" 		AND " & lcParametro5Hasta)
			loConsulta.AppendLine(" 		AND Articulos.Cod_Tip BETWEEN " & lcParametro6Desde)
			loConsulta.AppendLine(" 		AND " & lcParametro6Hasta)
			loConsulta.AppendLine(" 		AND Articulos.Cod_Cla BETWEEN " & lcParametro7Desde)
            loConsulta.AppendLine(" 		AND " & lcParametro7Hasta)
            loConsulta.AppendLine("      	AND Articulos.Cod_Ubi BETWEEN " & lcParametro8Desde)
            loConsulta.AppendLine(" 		AND " & lcParametro8Hasta)
			loConsulta.AppendLine("      	AND Articulos.Cod_Pro BETWEEN " & lcParametro9Desde)
            loConsulta.AppendLine(" 		AND " & lcParametro9Hasta)

            Select Case lcParametro10Desde
                Case "Todos"
                    loConsulta.AppendLine("      ")
                Case "Igual"
                    loConsulta.AppendLine("     AND " & lcExistencia & "          =   0  ")
                Case "Mayor"
                    loConsulta.AppendLine("     AND " & lcExistencia & "          >   0  ")
                Case "Menor"
                    loConsulta.AppendLine("     AND " & lcExistencia & "          <   0  ")
                Case "Maximo"
                    loConsulta.AppendLine("     AND Articulos.Exi_Max           =   " & lcExistencia & "  ")
                Case "Minimo"
                    loConsulta.AppendLine("     AND Articulos.Exi_Min           =   " & lcExistencia & "  ")
                Case "Pedido"
                    loConsulta.AppendLine("     AND Articulos.Exi_pto           =   " & lcExistencia & "  ")
            End Select

            loConsulta.AppendLine("ORDER BY   Articulos.Cod_Art, " & lcOrdenamiento)
            loConsulta.AppendLine("")

            'Me.mEscribirConsulta(loConsulta.ToString())

            Dim loServicios As New cusDatos.goDatos
            Dim laDatosReporte As DataSet = loServicios.mObtenerTodosSinEsquema(loConsulta.ToString, "curReportes")

            '-------------------------------------------------------------------------------------------------------
            ' Verificando si el select (tabla nº0) trae registros
            '-------------------------------------------------------------------------------------------------------

            If (laDatosReporte.Tables(0).Rows.Count <= 0) Then
                Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Información", _
                                          "No se Encontraron Registros para los Parámetros Especificados. ", _
                                           vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Informacion, _
                                           "350px", _
                                           "200px")
            End If

			loObjetoReporte	=  cusAplicacion.goReportes.mCargarReporte("rArticulos_sAlmacen_OnyxTD", laDatosReporte)

			Me.mTraducirReporte(loObjetoReporte)

			Me.mFormatearCamposReporte(loObjetoReporte)

            Me.crvrArticulos_sAlmacen_OnyxTD.ReportSource =   loObjetoReporte

    '        'Selección de opcion por excel (Microsoft Excel - xls)
    '        If (Me.Request.QueryString("salida").ToLower() = "xls") Then
    '            ' Ruta donde se creara temporalmente el archivo
    '            Dim lcFileName As String = Server.MapPath("~\Administrativo\Temporales\rArticulos_sAlmacen_OnyxTD_" & Guid.NewGuid().ToString("N") & ".xls")
    '            ' Se exporta para crear el archivo temporal
    '            loObjetoReporte.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.ExcelRecord, lcFileName)

    '            ' Se modifica el contenido del archivo
    '            Dim lcParametrosReporte As String = cusAplicacion.goReportes.mObtenerParametros(cusAplicacion.goReportes.paNombresParametros, cusAplicacion.goReportes.paParametrosIniciales, cusAplicacion.goReportes.paParametrosFinales)
    '            Me.mGenerarArchivoExcel(lcFileName, laDatosReporte.Tables(0), lcParametrosReporte)

    '            ' Se coloca en la respuesta para decargar
    '            Me.Response.Clear()
    '            Me.Response.Buffer = True
    '            Me.Response.AppendHeader("content-disposition", "attachment; filename=rArticulos_sAlmacen_OnyxTD.xls")
    '            Me.Response.ContentType = "application/excel"
    '            Me.Response.WriteFile(lcFileName, True)
    '            Me.Response.Write(Space(30))
    '            Me.Response.Flush()
    '            Me.Response.Close()

				'Me.Response.End()

    '        End If

        Catch loExcepcion As Exception

            Me.WbcAdministradorMensajeModal.mMostrarMensajeModal("Error", _
                          "No se pudo Completar el Proceso: " & loExcepcion.Message, _
                           vis3Controles.wbcAdministradorMensajeModal.enumTipoMensaje.KN_Error, _
                           "auto", _
                           "auto")

        End Try

	End Sub

	Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload

	    Try

		    loObjetoReporte.Close()

	    Catch loExcepcion As Exception

	    End Try

	End Sub

	'''' <summary>
	'''' Genera la salida personalizada en Excel.
	'''' </summary>
	'''' <param name="lcNombreArchivo">Nombre del archivo a generar.</param>
	'''' <param name="loDatos">Tabla de datos a generar.</param>
	'''' <param name="lcParametrosReporte">Cadena con los parámetros originales del reporte.</param>
	'''' <remarks></remarks>
	'Private Sub mGenerarArchivoExcel(ByVal lcNombreArchivo As String, ByVal loDatos As DataTable, ByVal lcParametrosReporte As String)

	'	Dim lnDecimalesMonto As Integer = goOpciones.pnDecimalesParaMonto
	'	Dim lnDecimalesCosto As Integer = goOpciones.pnDecimalesParaCosto
	'	Dim lnDecimalesCantidad As Integer = goOpciones.pnDecimalesParaCantidad
	'	Dim lnDecimalesPorcentaje As Integer = goOpciones.pnDecimalesParaPorcentaje

	'	Dim lcFormatoMontos As String = "###,###,###,###,##0." & Strings.left("0000000000", lnDecimalesMonto)
	'	Dim lcFormatoCosto As String = "###,###,###,###,##0." & Strings.left("0000000000", lnDecimalesCosto)

	'	Dim lcFormatoCantidad As String
	'	If (lnDecimalesCantidad > 0) Then
	'		lcFormatoCantidad = "###,###,###,###,##0." & Strings.left("0000000000", lnDecimalesCantidad)
	'	Else
	'		lcFormatoCantidad = "###,###,###,###,##0"
	'	End If

	'	Dim lcFormatoPorcentaje As String = "###,###,###,###,##0." & Strings.left("0000000000", lnDecimalesPorcentaje)

	' '******************************************************************'
	' ' Declaración de objetos de excel: IMPORTANTE liberar recursos al	'
	' ' final usando el GARBAGE COLLECTOR y ReleaseComObject.			'
	' '******************************************************************'
	'	Dim loExcel		As Excel.Application	= Nothing
	'	Dim laLibros	As Excel.Workbooks		= Nothing
	'	Dim loLibro		As Excel.Workbook		= Nothing
    '	Dim loHoja		As Excel.Worksheet		= Nothing
	'	Dim loCeldas	As Excel.Range			= Nothing
	'	Dim loRango		As Excel.Range			= Nothing

	'	Dim loFilas		As Excel.Range			= Nothing
	'	Dim loColumnas	As Excel.Range			= Nothing
	'	Dim loFormas	As Excel.Shapes			= Nothing
	'	Dim loImagen	As Excel.Shape			= Nothing
	'	Dim loFuente	As Excel.Font			= Nothing

 '       Try

 '       ' Se inicializa el objeto de aplicacion excel
 '           loExcel = New Excel.Application()
 '           loExcel.Visible = False
 '           loExcel.DisplayAlerts = False

 '       ' Crea un nuevo libro de excel y activa la primera hoja
 '           laLibros = loExcel.Workbooks
 '           'loLibro = laLibros.Add()

 '           'Dim lcPlantilla As String = HttpContext.Current.Server.MapPath("~/Administrativo/Complementos/plantilla.xls")
 '           'System.IO.File.Copy(lcPlantilla, lcNombreArchivo)
 '           loLibro = laLibros.Open(lcNombreArchivo)

 '           loHoja = loLibro.Worksheets(1)
 '           loHoja.Activate()

	'	' Formato por defecto de todas las celdas
	'		loCeldas = loHoja.Range("A1:IV65536")
 '           'loCeldas = loHoja.Cells
	'		loCeldas.Clear()
 '           loFuente = loCeldas.Font
 '           loFuente.Size = 9
 '           loFuente.Name = "Tahoma"

	'	 '******************************************************************'
	'	 ' Encabezado de la hoja											'
	'	 '******************************************************************'
	'		'Dim lcLogo As String = goEmpresa.pcUrlLogo
	'		'lcLogo = HttpContext.Current.Server.MapPath(lcLogo)
	'		'loFormas = loHoja.Shapes

	'		'loFormas.AddPicture(lcLogo,  Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoTrue, 1, 1, 60, 60)

 '           loRango = loHoja.Range("A1")
 '           loRango.Value = cusAplicacion.goEmpresa.pcNombre

 '           loRango = loHoja.Range("A2")
 '           loRango.Value = cusAplicacion.goEmpresa.pcRifEmpresa

 '           loRango = loHoja.Range("B5:O5")
 '           loRango.Select()
 '           loRango.MergeCells = True
 '           loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter
 '           loRango.Value = "Listado de Compras con sus Renglones (ONYXTD)"
 '           loFuente = loRango.Font
 '           loFuente.Size = 14
 '           loFuente.Bold = True

 '           ' Fecha y hora de creacion
	'		Dim ldFecha As DateTime = Date.Now()
	'		loRango = loHoja.Range("O1")
	'		loRango.NumberFormat = "mm/dd/yyyy;@"
	'		loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignRight
	'		loRango.Value = ldFecha

	'		loRango = loHoja.Range("O2")
	'		loRango.NumberFormat = "@" 'La celda almacena un string
	'		loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignRight
	'		loRango.Value = ldFecha.ToString("hh:mm:ss tt")

 '           ' Parametros del reporte
 '           loRango = loHoja.Range("B7:O7")
 '           loRango.Select()
 '           loRango.MergeCells = True
 '           loRango.Value = lcParametrosReporte
 '           loRango.WrapText = True
 '           loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignJustify

	'		Dim lnFilaActual As Integer = 9

	'	 '******************************************************************'
	'	 ' Datos del Reporte												'
	'	 '******************************************************************'

	'		loRango = loHoja.Range("B" & lnFilaActual)
	'		loRango.Value = "# Factura"

	'		loRango = loHoja.Range("C" & lnFilaActual)
	'		loRango.Value = "Cod.Prov."

	'		loRango = loHoja.Range("D" & lnFilaActual)
	'		loRango.Value = "Proveedor"

	'		loRango = loHoja.Range("E" & lnFilaActual)
	'		loRango.Value = "Fecha"

	'		loRango = loHoja.Range("F" & lnFilaActual)
	'		loRango.Value = "Comprador"

	'		loRango = loHoja.Range("G" & lnFilaActual)
	'		loRango.Value = "Código de Producto"

	'		loRango = loHoja.Range("H" & lnFilaActual)
	'		loRango.Value = "Producto"

	'		loRango = loHoja.Range("I" & lnFilaActual)
	'		loRango.Value = "Cantidad"

	'		loRango = loHoja.Range("J" & lnFilaActual)
	'		loRango.Value = "Tipo" & vbLf & "Unidad"

	'		loRango = loHoja.Range("K" & lnFilaActual)
	'		loRango.Value = "Costo"

	'		loRango = loHoja.Range("L" & lnFilaActual)
	'		loRango.Value = "Monto" & vbLf & "Bruto"

	'		loRango = loHoja.Range("M" & lnFilaActual)
	'		loRango.Value = "Impuesto"

	'		loRango = loHoja.Range("N" & lnFilaActual)
	'		loRango.Value = "Monto" & vbLf & "Neto"

	'		loRango = loHoja.Range("O" & lnFilaActual)
	'		loRango.Value = "Marca"

	'		loRango = loHoja.Range("B" & lnFilaActual & ":O" & lnFilaActual)
	'		loFuente = loRango.Font
	'		loFuente.Bold = True
	'		loFuente.Color = Rgb(255, 255, 255)
	'		loRango.Interior.Color = Rgb(0, 51, 153)

	'		loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter
	'		loRango.VerticalAlignment = Excel.XlVAlign.xlVAlignCenter
	'		loRango.BorderAround(Excel.XlLineStyle.xlContinuous, Excel.XlBorderWeight.xlMedium)

	'		Dim lnFilaInicio As Integer  = lnFilaActual
	'		For lnRenglon As Integer = 0 To loDatos.Rows.Count - 1
	'			Dim loRenglon As DataRow = loDatos.Rows(lnRenglon)

	'			lnFilaActual += 1

	'			'# Factura
	'			loRango = loHoja.Range("B" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Documento")).Trim()
	'			loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignLeft

	'			'Cod.Prov.
	'			loRango = loHoja.Range("C" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Cod_Pro")).Trim()
	'			loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignLeft

	'			'Proveedor
	'			loRango = loHoja.Range("D" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Nom_pro")).Trim()
	'			loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignLeft

	'			'Fecha
	'			loRango = loHoja.Range("E" & lnFilaActual)
	'			loRango.NumberFormat = "mm/dd/yyyy;@"
	'			loRango.Value = CDate(loRenglon("Fec_Ini"))'CDate(loRenglon("Fec_Ini")).ToString("dd/MM/yyyy")
	'			loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter

	'			'Comprador
	'			loRango = loHoja.Range("F" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Cod_Ven")).Trim()

	'			'Cod. Producto
	'			loRango = loHoja.Range("G" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Cod_Art")).Trim()

	'			'Producto
	'			loRango = loHoja.Range("H" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Nom_Art")).Trim()

	'			'Cantidad
	'			loRango = loHoja.Range("I" & lnFilaActual)
	'			loRango.NumberFormat = lcFormatoPorcentaje
	'			loRango.Value = goServicios.mRedondearValor(CDec(loRenglon("Can_Art1")), lnDecimalesMonto)

	'			'Cantidad
	'			loRango = loHoja.Range("I" & lnFilaActual)
	'			loRango.NumberFormat = lcFormatoCantidad
	'			loRango.Value = goServicios.mRedondearValor(CDec(loRenglon("Can_Art1")), lnDecimalesCantidad)

	'			'Tipo
	'			loRango = loHoja.Range("J" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Cod_Uni")).Trim()

	'			'Costo
	'			loRango = loHoja.Range("K" & lnFilaActual)
	'			loRango.NumberFormat = lcFormatoMontos
	'			loRango.Value = goServicios.mRedondearValor(CDec(loRenglon("Precio1")), lnDecimalesMonto)

	'			'Monto Bruto
	'			loRango = loHoja.Range("L" & lnFilaActual)
	'			loRango.NumberFormat = lcFormatoMontos
	'			loRango.Value = goServicios.mRedondearValor(CDec(loRenglon("Mon_Net")), lnDecimalesMonto)

	'			'Impuesto
	'			loRango = loHoja.Range("M" & lnFilaActual)
	'			loRango.NumberFormat = lcFormatoMontos
	'			If (CDec(loRenglon("Mon_Imp1"))<>0D) Then
	'				loRango.Value = goServicios.mRedondearValor(CDec(loRenglon("Mon_Imp1")), lnDecimalesMonto)
	'				loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignRight
	'			Else
	'				loRango.Value = "-"
	'				loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter
	'			End If

	'			'Monto  Neto
	'			loRango = loHoja.Range("N" & lnFilaActual)
	'			loRango.NumberFormat = lcFormatoMontos
	'			loRango.Value = goServicios.mRedondearValor(CDec(loRenglon("Mon_Net")) + CDec(loRenglon("Mon_Imp1")), lnDecimalesMonto)

	'			'Marca
	'			loRango = loHoja.Range("O" & lnFilaActual)
	'			loRango.NumberFormat = "@"
	'			loRango.Value = CStr(loRenglon("Cod_Mar")).Trim()

	'		Next lnRenglon

	'		Dim lnTotal As Integer = loDatos.Rows.Count
	'		loRango = loHoja.Range("B" & (lnFilaInicio) & ":O" & (lnFilaInicio))
	'		loRango.Select()
	'		loExcel.Selection.AutoFilter()

	'		loRango = loHoja.Range("B" & (lnFilaInicio+1) & ":O" & (lnFilaInicio + lnTotal))
	'		loRango.BorderAround(Excel.XlLineStyle.xlContinuous, Excel.XlBorderWeight.xlMedium)

	'		Dim lnDesde AS Integer = lnFilaInicio
	'		Dim lnHasta AS Integer = lnFilaInicio + lnTotal

	'		lnFilaInicio += lnTotal + 2
	'		loRango = loHoja.Range("B" & (lnFilaInicio))
	'		'loRango.MergeCells = True
	'		loRango.NumberFormat = "@"
	'		loRango.Value = "Total Documentos: " & lnTotal.ToString()
	'		loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignLeft

	'		loRango = loHoja.Range("H" & (lnFilaInicio))
	'		loRango.NumberFormat = "@"
	'		loRango.Value = "Total General: "
	'		loRango.HorizontalAlignment = Excel.XlHAlign.xlHAlignRight

	'		loRango = loHoja.Range("I" & (lnFilaInicio))
	'		loRango.NumberFormat = lcFormatoCantidad
	'		loRango.Formula = "=SUM(I" & lnDesde & ":I" & lnHasta	& ")"

	'		loRango = loHoja.Range("L" & (lnFilaInicio))
	'		loRango.NumberFormat = lcFormatoMontos
	'		loRango.Formula = "=SUM(L" & lnDesde & ":L" & lnHasta	& ")"

	'		loRango = loHoja.Range("M" & (lnFilaInicio))
	'		loRango.NumberFormat = lcFormatoMontos
	'		loRango.Formula = "=SUM(M" & lnDesde & ":M" & lnHasta	& ")"

	'		loRango = loHoja.Range("N" & (lnFilaInicio))
	'		loRango.NumberFormat = lcFormatoMontos
	'		loRango.Formula = "=SUM(N" & lnDesde & ":N" & lnHasta	& ")"

	'		loRango = loHoja.Range("B" & (lnFilaInicio) & ":O" & (lnFilaInicio))
	'		loFuente = loRango.Font
	'		loFuente.Bold = True

	'		loFilas = loCeldas.Rows
	'		loFilas.AutoFit()

	'		loColumnas = loCeldas.Rows
	'		loColumnas.AutoFit()

	'		loRango = loHoja.Range("B1:B" & lnFilaInicio)
	'		loRango.ColumnWidth = 13

	'		loRango = loHoja.Range("C1:C" & lnFilaInicio)
	'		loRango.ColumnWidth = 12

	'		loRango = loHoja.Range("D1:D" & lnFilaInicio)
	'		loRango.ColumnWidth = 40

	'		loRango = loHoja.Range("E1:E" & lnFilaInicio)
	'		loRango.ColumnWidth = 10

	'		loRango = loHoja.Range("F1:F" & lnFilaInicio)
	'		loRango.ColumnWidth = 10

	'		loRango = loHoja.Range("G1:G" & lnFilaInicio)
	'		loRango.ColumnWidth = 30

	'		loRango = loHoja.Range("H1:H" & lnFilaInicio)
	'		loRango.ColumnWidth = 50

	'		loRango = loHoja.Range("I1:I" & lnFilaInicio)
	'		loRango.ColumnWidth = 10

	'		loRango = loHoja.Range("J1:J" & lnFilaInicio)
	'		loRango.ColumnWidth = 9

	'		loRango = loHoja.Range("K1:K" & lnFilaInicio)
	'		loRango.ColumnWidth = 10

	'		loRango = loHoja.Range("L1:L" & lnFilaInicio)
	'		loRango.ColumnWidth = 14

	'		loRango = loHoja.Range("M1:M" & lnFilaInicio)
	'		loRango.ColumnWidth = 10

	'		loRango = loHoja.Range("N1:N" & lnFilaInicio)
	'		loRango.ColumnWidth = 14

	'		loRango = loHoja.Range("O1:O" & lnFilaInicio)
	'		loRango.ColumnWidth = 10

 '           ' Seleccionamos la primera celda del libro
	'		loRango = loHoja.Range("A1")
 '           loRango.Select()

 '           'Guardamos los cambios del libro activo
 '           loLibro.SaveAs(lcNombreArchivo)

	'	 '******************************************************************'
	'	 ' IMPORTANTE: Forma correcta de liberar recursos!!!				'
	'	 '******************************************************************'
 '           ' Cerramos y liberamos recursos

 '       Catch loExcepcion As Exception

	'		Throw New Exception("No fue posible exportar los datos a excel. " & loExcepcion.Message, loExcepcion)

 '       Finally

	'		If (loFuente IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loFuente)
	'			loFuente = Nothing
	'		End If

	'		If (loFormas IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loFormas)
	'			loFormas = Nothing
	'		End If

	'		If (loRango IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loRango)
	'			loRango = Nothing
	'		End If

	'		If (loFilas IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loFilas)
	'			loFilas = Nothing
	'		End If

	'		If (loColumnas IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loColumnas)
	'			loColumnas = Nothing
	'		End If

	'		If (loCeldas IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loCeldas)
	'			loCeldas = Nothing
	'		End If

	'		If (loHoja IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loHoja)
	'			loHoja = Nothing
	'		End If

	'		If (loLibro IsNot Nothing) Then
	'			loLibro.Close(True)
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(loLibro)
	'			loLibro = Nothing
	'		End If

	'		If (laLibros IsNot Nothing) Then
	'			System.Runtime.InteropServices.Marshal.ReleaseComObject(laLibros)
	'			laLibros = Nothing
	'		End If

 '           loExcel.Quit()

	'		System.Runtime.InteropServices.Marshal.ReleaseComObject(loExcel)
 '           loExcel = Nothing

 '           GC.Collect()
 '           GC.WaitForPendingFinalizers()

 '       End Try

 '   End Sub

End Class
'-------------------------------------------------------------------------------------------'
' Fin del codigo.                                                                           '
'-------------------------------------------------------------------------------------------'
' RJG: 25/09/13: Codigo inicial, a partir de rArticulos_sAlmacen.                           '
'-------------------------------------------------------------------------------------------'


text:
package helpers

import (
  "strings"
)

func IsGoGettable(path string) bool {
  return !strings.Contains(path, ":")
}


text:
SPA for football results

This project is still in development

Demo here: [fifa.anatolyeltsov.ru](http://fifa.anatolyeltsov.ru)


text:
using System.Collections.Generic;

namespace owasp4net.injection.domain
{
    public interface INorthWindRepository
    {
        IEnumerable<Product> LoadProducts(string categoryId);
        IEnumerable<Customer> LoadCustomers();
        Customer LoadCustomerById(string customerId);
        void SaveCustomer(Customer customer);
    }
}


text:
package com.microsoft.azure.management.deploymentmanager.v2019_11_01_preview;

import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Detailed runtime information of the rollout.
 */
public class RolloutOperationInfo {
    /**
     * The ordinal count of the number of retry attempts on a rollout. 0 if no
     * retries of the rollout have been performed. If the rollout is updated
     * with a PUT, this count is reset to 0.
     */
    @JsonProperty(value = "retryAttempt", access = JsonProperty.Access.WRITE_ONLY)
    private Integer retryAttempt;

    /**
     * True, if all steps that succeeded on the previous run/attempt were
     * chosen to be skipped in this retry attempt. False, otherwise.
     */
    @JsonProperty(value = "skipSucceededOnRetry", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean skipSucceededOnRetry;

    /**
     * The start time of the rollout in UTC.
     */
    @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime startTime;

    /**
     * The start time of the rollout in UTC. This property will not be set if
     * the rollout has not completed yet.
     */
    @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY)
    private DateTime endTime;

    /**
     * The detailed error information for any failure.
     */
    @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
    private CloudErrorBody error;

    /**
     * Get the ordinal count of the number of retry attempts on a rollout. 0 if no retries of the rollout have been performed. If the rollout is updated with a PUT, this count is reset to 0.
     *
     * @return the retryAttempt value
     */
    public Integer retryAttempt() {
        return this.retryAttempt;
    }

    /**
     * Get true, if all steps that succeeded on the previous run/attempt were chosen to be skipped in this retry attempt. False, otherwise.
     *
     * @return the skipSucceededOnRetry value
     */
    public Boolean skipSucceededOnRetry() {
        return this.skipSucceededOnRetry;
    }

    /**
     * Get the start time of the rollout in UTC.
     *
     * @return the startTime value
     */
    public DateTime startTime() {
        return this.startTime;
    }

    /**
     * Get the start time of the rollout in UTC. This property will not be set if the rollout has not completed yet.
     *
     * @return the endTime value
     */
    public DateTime endTime() {
        return this.endTime;
    }

    /**
     * Get the detailed error information for any failure.
     *
     * @return the error value
     */
    public CloudErrorBody error() {
        return this.error;
    }

}


text:
package org.apache.ode.daohib.bpel;

import java.util.*;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.ode.bpel.common.CorrelationKey;
import org.apache.ode.bpel.common.CorrelationKeySet;
import org.apache.ode.bpel.dao.*;
import org.apache.ode.daohib.SessionManager;
import org.apache.ode.daohib.bpel.hobj.HCorrelator;
import org.apache.ode.daohib.bpel.hobj.HCorrelatorMessage;
import org.apache.ode.daohib.bpel.hobj.HCorrelatorSelector;
import org.apache.ode.daohib.bpel.hobj.HMessageExchange;
import org.apache.ode.daohib.bpel.hobj.HProcess;
import org.apache.ode.daohib.bpel.hobj.HProcessInstance;
import org.hibernate.Hibernate;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.Session;

import javax.xml.namespace.QName;

/**
 * Hibernate-based {@link CorrelatorDAO} implementation.
 */
class CorrelatorDaoImpl extends HibernateDao implements CorrelatorDAO {
	static Log __log = LogFactory.getLog(CorrelatorDaoImpl.class);

	/** filter for finding a matching selector. */
	private static final String LOCK_SELECTORS = "update from HCorrelatorSelector as hs set hs.lock = hs.lock+1 where hs.processType = :processType";
	private static final String CHECK_SELECTORS = "from HCorrelatorSelector as hs where hs.processType = :processType and hs.correlator.correlatorId = :correlatorId";
	private static final String FLTR_SELECTORS = "from HCorrelatorSelector as hs where hs.processType = :processType and hs.correlator.correlatorId = :correlatorId";
	private static final String FLTR_SELECTORS_SUBQUERY = ("from HCorrelatorSelector as hs where hs.processType = :processType and hs.correlatorId = "
			+ "(select hc.id from HCorrelator as hc where hc.correlatorId = :correlatorId )")
			.intern();

	/** Query for removing routes. */
	private static final String QRY_DELSELECTORS = "delete from HCorrelatorSelector where groupId = ? and instance = ?";

	private HCorrelator _hobj;

	public CorrelatorDaoImpl(SessionManager sm, HCorrelator hobj) {
		super(sm, hobj);
		entering("CorrelatorDaoImpl.CorrelatorDaoImpl");
		_hobj = hobj;
	}

	@SuppressWarnings("unchecked")
	public MessageExchangeDAO dequeueMessage(CorrelationKeySet keySet) {
		entering("CorrelatorDaoImpl.dequeueMessage");

		MessageExchangeDAO mex = null;

		String hdr = "dequeueMessage(" + keySet + "): ";
		__log.debug(hdr);

		List<CorrelationKeySet> subSets = keySet.findSubSets();
		Query qry = getSession().createFilter(_hobj.getMessageCorrelations(),
				generateUnmatchedQuery(subSets));
		for (int i = 0; i < subSets.size(); i++) {
			qry.setString("s" + i, subSets.get(i).toCanonicalString());
		}

		// We really should consider the possibility of multiple messages
		// matching a criteria.
		// When the message is handled, its not too convenient to attempt to
		// determine if the
		// received message conflicts with one already received.
		Iterator mcors = qry.iterate();
		try {
			if (!mcors.hasNext()) {
				if (__log.isDebugEnabled())
					__log.debug(hdr + "did not find a MESSAGE entry.");
			} else {
				HCorrelatorMessage mcor = (HCorrelatorMessage) mcors.next();
				if (__log.isDebugEnabled())
					__log.debug(hdr + "found MESSAGE entry "
							+ mcor.getMessageExchange());
				mex = new MessageExchangeDaoImpl(_sm, mcor.getMessageExchange());
			}
		} finally {
			Hibernate.close(mcors);
		}

		return mex;
	}

	@SuppressWarnings("unchecked")
	public List<MessageRouteDAO> findRoute(CorrelationKeySet keySet) {
		List<MessageRouteDAO> routes = new ArrayList<MessageRouteDAO>();

		entering("CorrelatorDaoImpl.findRoute");
		String hdr = "findRoute(keySet=" + keySet + "): ";
		if (__log.isDebugEnabled())
			__log.debug(hdr);

		String processType = new QName(_hobj.getProcess().getTypeNamespace(),
				_hobj.getProcess().getTypeName()).toString();
		List<CorrelationKeySet> subSets = keySet.findSubSets();

		Query q = getSession().createQuery(
				generateSelectorQuery(_sm.canJoinForUpdate() ? FLTR_SELECTORS
						: FLTR_SELECTORS_SUBQUERY, subSets));
		q.setString("processType", processType);
		q.setString("correlatorId", _hobj.getCorrelatorId());

		for (int i = 0; i < subSets.size(); i++) {
			q.setString("s" + i, subSets.get(i).toCanonicalString());
		}
		// Make sure we obtain a lock for the selector we want to find.
		q.setLockMode("hs", LockMode.UPGRADE);

		List<HProcessInstance> targets = new ArrayList<HProcessInstance>();
		for (HCorrelatorSelector selector : (List<HCorrelatorSelector>) q
				.list()) {
			if (selector != null) {
				boolean isRoutePolicyOne = selector.getRoute() == null
						|| "one".equals(selector.getRoute());
				if ("all".equals(selector.getRoute())
						|| (isRoutePolicyOne && !targets.contains(selector
								.getInstance()))) {
					routes.add(new MessageRouteDaoImpl(_sm, selector));
					targets.add(selector.getInstance());
				}
			}
		}

		if (__log.isDebugEnabled())
			__log.debug(hdr + "found " + routes);

		// obtain a lock on the correlator to eliminate potential race
		// condition.
		if (__log.isDebugEnabled())
			__log.debug("Obtain record lock on " + _hobj);
		Query correlatorLockQuery = getSession().createQuery(
				"from HCorrelator as hc where id = :id");
		correlatorLockQuery.setLong("id", _hobj.getId());
		correlatorLockQuery.setLockMode("hc", LockMode.UPGRADE);
		correlatorLockQuery.list();

		return routes;
	}

	private String generateUnmatchedQuery(List<CorrelationKeySet> subSets) {
		StringBuffer filterQuery = new StringBuffer();

		if (subSets.size() == 1) {
			filterQuery.append(" where this.correlationKey = :s0");
		} else if (subSets.size() > 1) {
			filterQuery.append(" where this.correlationKey in(");
			for (int i = 0; i < subSets.size(); i++) {
				if (i > 0) {
					filterQuery.append(", ");
				}
				filterQuery.append(":s").append(i);
			}
			filterQuery.append(")");
		}

		return filterQuery.toString();
	}

	private String generateSelectorQuery(String header,
			List<CorrelationKeySet> subSets) {
		StringBuffer filterQuery = new StringBuffer(header);

		if (subSets.size() == 1) {
			filterQuery.append(" and hs.correlationKey = :s0");
		} else if (subSets.size() > 1) {
			filterQuery.append(" and hs.correlationKey in(");
			for (int i = 0; i < subSets.size(); i++) {
				if (i > 0) {
					filterQuery.append(", ");
				}
				filterQuery.append(":s").append(i);
			}
			filterQuery.append(")");
		}

		return filterQuery.toString();
	}

	public void enqueueMessage(MessageExchangeDAO mex,
			CorrelationKeySet correlationKeySet) {
		entering("CorrelatorDaoImpl.enqueueMessage");
		String hdr = "enqueueMessage(mex="
				+ ((MessageExchangeDaoImpl) mex)._hobj.getId() + " keySet="
				+ correlationKeySet.toCanonicalString() + "): ";

		if (__log.isDebugEnabled())
			__log.debug(hdr);

		for (CorrelationKeySet aSubSet : correlationKeySet.findSubSets()) {
			HCorrelatorMessage mcor = new HCorrelatorMessage();
			mcor.setCorrelator(_hobj);
			mcor.setCreated(new Date());
			mcor.setMessageExchange((HMessageExchange) ((MessageExchangeDaoImpl) mex)._hobj);
			mcor.setCorrelationKey(aSubSet.toCanonicalString());
			getSession().save(mcor);

			if (__log.isDebugEnabled())
				__log.debug(hdr + "saved " + mcor);
		}
	}

	public void addRoute(String routeGroupId, ProcessInstanceDAO target,
			int idx, CorrelationKeySet correlationKeySet, String routePolicy) {
		entering("CorrelatorDaoImpl.addRoute");
		String hdr = "addRoute(" + routeGroupId + ", iid="
				+ target.getInstanceId() + ", idx=" + idx + ", ckeySet="
				+ correlationKeySet + "): ";

		if (__log.isDebugEnabled())
			__log.debug(hdr);
		HCorrelatorSelector hsel = new HCorrelatorSelector();
		hsel.setGroupId(routeGroupId);
		hsel.setIndex(idx);
		hsel.setLock(0);
		hsel.setCorrelationKey(correlationKeySet.toCanonicalString());
		hsel.setInstance((HProcessInstance) ((ProcessInstanceDaoImpl) target)
				.getHibernateObj());
		hsel.setProcessType(target.getProcess().getType().toString());
		hsel.setCorrelator(_hobj);
		hsel.setCreated(new Date());
		hsel.setRoute(routePolicy);
		getSession().save(hsel);

		if (__log.isDebugEnabled())
			__log.debug(hdr + "saved " + hsel);
	}

	public boolean checkRoute(CorrelationKeySet correlationKeySet) {
		entering("CorrelatorDaoImpl.checkRoute");
		Query q = getSession().getNamedQuery(
				HCorrelatorSelector.SELECT_MESSAGE_ROUTE);
		q.setEntity("corr", _hobj);
		q.setString("ckey", correlationKeySet.toCanonicalString());
		q.setReadOnly(true);
		return q.list().isEmpty();
	}

	public String getCorrelatorId() {
		return _hobj.getCorrelatorId();
	}

	public void setCorrelatorId(String newId) {
		_hobj.setCorrelatorId(newId);
	}

	public void removeRoutes(String routeGroupId, ProcessInstanceDAO target) {
		entering("CorrelatorDaoImpl.removeRoutes");
		String hdr = "removeRoutes(" + routeGroupId + ", iid="
				+ target.getInstanceId() + "): ";
		__log.debug(hdr);
		Session session = getSession();
		Query q = session.createQuery(QRY_DELSELECTORS);
		q.setString(0, routeGroupId); // groupId
		q.setEntity(1, ((ProcessInstanceDaoImpl) target).getHibernateObj()); // instance
		int updates = q.executeUpdate();
		session.flush(); // explicit flush to ensure route removed
		if (__log.isDebugEnabled())
			__log.debug(hdr + "deleted " + updates + " rows");
	}

	public Collection<CorrelatorMessageDAO> getAllMessages() {
		Collection<CorrelatorMessageDAO> msgs = new ArrayList<CorrelatorMessageDAO>();
		for (HCorrelatorMessage correlatorMessage : _hobj
				.getMessageCorrelations())
			msgs.add(new CorrelatorMessageDaoImpl(_sm, correlatorMessage));
		return msgs;
	}

	public Collection<MessageRouteDAO> getAllRoutes() {
		Collection<MessageRouteDAO> routes = new ArrayList<MessageRouteDAO>();
		for (HCorrelatorSelector selector : _hobj.getSelectors())
			routes.add(new MessageRouteDaoImpl(_sm, selector));
		return routes;
	}

}


text:
############################################################################################################################################
# Script that allows to import a Theasurus file definition to be used by the search engine.
# Required Parameters:
#    ->$sTheasurusFilePath: Theasurus File Path
############################################################################################################################################

If ((Get-PSSnapIn -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{ Add-PSSnapIn -Name Microsoft.SharePoint.PowerShell }

$host.Runspace.ThreadOptions = "ReuseThread"

#Definition of the function that imports the theasurus file
function Import-TheasurusFIle
{
    param ($sTheasurusFilePath)
    try
    {
        $searchApp = Get-SPEnterpriseSearchServiceApplication
        Import-SPEnterpriseSearchThesaurus -SearchApplication $searchApp -Filename $sTheasurusFilePath
        Write-Host "Theasurus file $sTheasurusFilePath imported successfully!" -ForegroundColor Blue
    }
    catch [System.Exception]
    {
        write-host -f red $_.Exception.ToString()
    }
}

Start-SPAssignment –Global
$sTheasurusFilePath="\\C4968397007\Demos\Formacion SP Avanzada\Busquedas\Sample_Thesaurus.csv"

Import-TheasurusFIle -sTheasurusFilePath $sTheasurusFilePath
Stop-SPAssignment –Global

Remove-PSSnapin Microsoft.SharePoint.PowerShell


text:
<?php
$container->loadFromExtension('swiftmailer', array(
    'delivery_address'   => 'single@host.com',
    'delivery_whitelist' => array('/foo@.*/'),
));


text:
class Ccc::SitrackColumn < ActiveRecord::Base

end


text:
English
========
This repository is the web site of the ASS Badmindton of Valdoie.

Special thanks to [start bootstrap](http://startbootstrap.com/template-overviews/business-casual/) for the template.

This site is released under the MIT License (open source) except the pictures which are all rights reserved.

Français
=======
Ce depot git contient le site web de l'ASS Badminton de Valdoie.

Remerciement au site [start bootstrap](http://startbootstrap.com/template-overviews/business-casual/) pour le thème bootstrap utilisé.

Ce site est sous licence MIT (open source) excepté les photos dont les droits sont réservés.


text:
class GitError(Exception):
    pass

class NotARepoError(GitError):
    def __init__(self, repo):
        msg = 'not a git repository: %s' % (repo,)
        GitError.__init__(self, msg)
        self.repo = repo

class NoWorkingDirError(GitError):
    def __init__(self, repo, msg=None):
        if msg is None:
            msg = '%s does not have a working directory' % (repo,)
        GitError.__init__(self, msg)
        self.repo = repo

class NoSuchConfigError(GitError):
    def __init__(self, name):
        msg = 'no config value set for "%s"' % (name,)
        GitError.__init__(self, msg)
        self.name = name

class BadConfigError(GitError):
    def __init__(self, name, value=None):
        if value is None:
            msg = 'bad config value for "%s"' % (name,)
        else:
            msg = 'bad config value for "%s": "%s"' % (name, value)
        GitError.__init__(self, msg)
        self.name = name
        self.value = value

class MultipleConfigError(GitError):
    def __init__(self, name):
        msg = 'multiple config values set for "%s"' % (name,)
        GitError.__init__(self, msg)
        self.name = name

class BadCommitError(GitError):
    def __init__(self, commit_name, msg):
        GitError.__init__(self, 'bad commit %r: %s' % (commit_name, msg))
        self.commit = commit_name
        self.msg = msg

class NoSuchObjectError(GitError):
    def __init__(self, name, type='object'):
        GitError.__init__(self)
        self.type = type
        self.name = name

    def __str__(self):
        return 'no such %s %r' % (self.type, self.name)

class NoSuchCommitError(NoSuchObjectError):
    def __init__(self, name):
        NoSuchObjectError.__init__(self, name, 'commit')

class NoSuchBlobError(NoSuchObjectError):
    def __init__(self, name):
        NoSuchObjectError.__init__(self, name, 'blob')

class NotABlobError(GitError):
    def __init__(self, name):
        GitError.__init__(self, '%r does not refer to a blob' % (name))
        self.name = name

class BadRevisionNameError(GitError):
    def __init__(self, name, msg):
        GitError.__init__(self, 'bad revision name %r: %s' % (name, msg))
        self.name = name
        self.msg = msg

class AmbiguousArgumentError(GitError):
    def __init__(self, arg_name, reason):
        GitError.__init__(self, 'ambiguous argument %r: %s' %
                          (arg_name, reason))
        self.argName = arg_name
        self.reason = reason

class PatchFailedError(GitError):
    def __init__(self, msg):
        full_msg = 'failed to apply patch'
        if msg:
            full_msg = ':\n  '.join([full_msg] + msg.splitlines())
        GitError.__init__(self, full_msg)
        self.msg = msg


text:
#ifndef CGAL_KERNEL_GLOBAL_FUNCTIONS_3_H
#define CGAL_KERNEL_GLOBAL_FUNCTIONS_3_H

#include <CGAL/user_classes.h>
#include <CGAL/Kernel/global_functions_internal_3.h>
#include <CGAL/Kernel/mpl.h>

// Generic functions calling the kernel functor.
// See comments in CGAL/Kernel/global_functions_2.h.

namespace CGAL {

template <typename K>
inline
Angle
angle(const Vector_3<K> &u, const Vector_3<K> &v)
{
  return internal::angle(u, v, K());
}

template <typename K>
inline
Angle
angle(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::angle(p, q, r, K());
}

template <typename K>
inline
Angle
angle(const Point_3<K> &p, const Point_3<K> &q,
      const Point_3<K> &r, const Point_3<K> &s)
{
  return internal::angle(p, q, r, s, K());
}

template < typename K >
inline
typename K::Boolean
are_negative_oriented(const Point_3<K>& p, const Point_3<K>& q,
                      const Point_3<K>& r, const Point_3<K>& s)
{
  return internal::are_negative_oriented(p, q, r, s, K());
}

template < class K >
inline
typename K::Boolean
are_ordered_along_line(const Point_3<K> &p,
                       const Point_3<K> &q,
                       const Point_3<K> &r)
{
  return internal::are_ordered_along_line(p, q, r, K());
}

template < typename K >
inline
typename K::Boolean
are_positive_oriented(const Point_3<K>& p, const Point_3<K>& q,
                      const Point_3<K>& r, const Point_3<K>& s)
{
  return internal::are_positive_oriented(p, q, r, s, K());
}

template < class K >
inline
typename K::Boolean
are_strictly_ordered_along_line(const Point_3<K> &p,
                                const Point_3<K> &q,
                                const Point_3<K> &r)
{
  return internal::are_strictly_ordered_along_line(p, q, r, K());
}

template < class K >
inline
typename K::Point_3
barycenter(const Point_3<K> &p1, const typename K::FT& w1,
           const Point_3<K> &p2)
{
  return internal::barycenter(p1, w1, p2, K());
}

template < class K >
inline
typename K::Point_3
barycenter(const Point_3<K> &p1, const typename K::FT& w1,
           const Point_3<K> &p2, const typename K::FT& w2)
{
  return internal::barycenter(p1, w1, p2, w2, K());
}

template < class K >
inline
typename K::Point_3
barycenter(const Point_3<K> &p1, const typename K::FT& w1,
           const Point_3<K> &p2, const typename K::FT& w2,
           const Point_3<K> &p3)
{
  return internal::barycenter(p1, w1, p2, w2, p3, K());
}

template < class K >
inline
typename K::Point_3
barycenter(const Point_3<K> &p1, const typename K::FT& w1,
           const Point_3<K> &p2, const typename K::FT& w2,
           const Point_3<K> &p3, const typename K::FT& w3)
{
  return internal::barycenter(p1, w1, p2, w2, p3, w3, K());
}

template < class K >
inline
typename K::Point_3
barycenter(const Point_3<K> &p1, const typename K::FT& w1,
           const Point_3<K> &p2, const typename K::FT& w2,
           const Point_3<K> &p3, const typename K::FT& w3,
           const Point_3<K> &p4)
{
  return internal::barycenter(p1, w1, p2, w2, p3, w3, p4, K());
}

template < class K >
inline
typename K::Point_3
barycenter(const Point_3<K> &p1, const typename K::FT& w1,
           const Point_3<K> &p2, const typename K::FT& w2,
           const Point_3<K> &p3, const typename K::FT& w3,
           const Point_3<K> &p4, const typename K::FT& w4)
{
  return internal::barycenter(p1, w1, p2, w2, p3, w3, p4, w4, K());
}

template <typename K>
inline
typename K::Plane_3
bisector(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::bisector(p, q, K());
}

template <typename K>
inline
typename K::Plane_3
bisector(const Plane_3<K> &h1, const Plane_3<K> &h2)
{
  return internal::bisector(h1, h2, K());
}

template < class K >
inline
Point_3<K>
centroid(const Point_3<K> &p, const Point_3<K> &q,
         const Point_3<K> &r, const Point_3<K> &s)
{
  return internal::centroid(p, q, r, s, K());
}

template < class K >
inline
Point_3<K>
centroid(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::centroid(p, q, r, K());
}

template < class K >
inline
Point_3<K>
centroid(const Tetrahedron_3<K> &t)
{
  return internal::centroid(t, K());
}

template < class K >
inline
Point_3<K>
centroid(const Triangle_3<K> &t)
{
  return internal::centroid(t, K());
}

template < class K >
inline
typename K::Point_3
circumcenter(const Point_3<K> &p,
             const Point_3<K> &q)
{
  return internal::circumcenter(p, q, K());
}

template < class K >
inline
typename K::Point_3
circumcenter(const Point_3<K> &p,
             const Point_3<K> &q,
             const Point_3<K> &r)
{
  return internal::circumcenter(p, q, r, K());
}

template < class K >
inline
typename K::Point_3
circumcenter(const Point_3<K> &p, const Point_3<K> &q,
             const Point_3<K> &r, const Point_3<K> &s)
{
  return internal::circumcenter(p, q, r, s, K());
}

template < class K >
inline
typename K::Point_3
circumcenter(const Tetrahedron_3<K> &t)
{
  return internal::circumcenter(t, K());
}

template < class K >
inline
typename K::Point_3
circumcenter(const Triangle_3<K> &t)
{
  return internal::circumcenter(t, K());
}

template < class K >
inline
typename K::Boolean
collinear(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::collinear(p, q, r, K());
}

template < class K >
inline
typename K::Boolean
collinear_are_ordered_along_line(const Point_3<K> &p,
                                 const Point_3<K> &q,
                                 const Point_3<K> &r)
{
  return internal::collinear_are_ordered_along_line(p, q, r, K());
}

template < class K >
inline
typename K::Boolean
collinear_are_strictly_ordered_along_line(const Point_3<K> &p,
                                          const Point_3<K> &q,
                                          const Point_3<K> &r)
{
  return internal::collinear_are_strictly_ordered_along_line(p, q, r, K());
}

template < class K >
inline
typename K::Comparison_result
compare_dihedral_angle(const Point_3<K>& a1, const Point_3<K>& b1,
                       const Point_3<K>& c1, const Point_3<K>& d1,
                       const Point_3<K>& a2, const Point_3<K>& b2,
                       const Point_3<K>& c2, const Point_3<K>& d2)
{
  return internal::compare_dihedral_angle(a1, b1, c1, d1, a2, b2, c2, d2, K());
}

template < class K >
inline
typename K::Comparison_result
compare_dihedral_angle(const Point_3<K>& a1, const Point_3<K>& b1,
                       const Point_3<K>& c1, const Point_3<K>& d1,
                       const typename K::FT& cosine)
{
  return internal::compare_dihedral_angle(a1, b1, c1, d1, cosine, K());
}

template < class K >
inline
typename K::Comparison_result
compare_dihedral_angle(const Vector_3<K>& ab1,
                       const Vector_3<K>& ac1,
                       const Vector_3<K>& ad1,
                       const Vector_3<K>& ab2,
                       const Vector_3<K>& ac2,
                       const Vector_3<K>& ad2)
{
  return internal::compare_dihedral_angle(ab1, ac1, ad1, ab2, ac2, ad2, K());
}

template < class K >
inline
typename K::Comparison_result
compare_dihedral_angle(const Vector_3<K>& ab1,
                       const Vector_3<K>& ac1,
                       const Vector_3<K>& ad1,
                       const typename K::FT& cosine)
{
  return internal::compare_dihedral_angle(ab1, ac1, ad1, cosine, K());
}

template < class K >
inline
typename K::Comparison_result
compare_distance_to_point(const Point_3<K> &p,
                          const Point_3<K> &q,
                          const Point_3<K> &r)
{
  return internal::compare_distance_to_point(p, q, r, K());
}

template < class K >
inline
typename K::Comparison_result
compare_squared_distance(const Point_3<K> &p,
                         const Point_3<K> &q,
                         const typename K::FT &d2)
{
  return internal::compare_squared_distance(p, q, d2, K());
}

template < class K >
inline
typename K::Comparison_result
compare_squared_radius(const Point_3<K> &p,
		       const typename K::FT &sr)
{
  return internal::compare_squared_radius(p, sr, K());
}

template < class K >
inline
typename K::Comparison_result
compare_squared_radius(const Point_3<K> &p,
		       const Point_3<K> &q,
		       const typename K::FT &sr)
{
  return internal::compare_squared_radius(p, q, sr, K());
}

template < class K >
inline
typename K::Comparison_result
compare_squared_radius(const Point_3<K> &p,
		       const Point_3<K> &q,
		       const Point_3<K> &r,
		       const typename K::FT &sr)
{
  return internal::compare_squared_radius(p, q, r, sr, K());
}

template < class K >
inline
typename K::Comparison_result
compare_squared_radius(const Point_3<K> &p,
		       const Point_3<K> &q,
		       const Point_3<K> &r,
		       const Point_3<K> &s,
		       const typename K::FT &sr)
{
  return internal::compare_squared_radius(p, q, r, s, sr, K());
}

template < class K >
inline
typename K::Comparison_result
compare_lexicographically_xyz(const Point_3<K> &p,
                              const Point_3<K> &q)
{
  return internal::compare_lexicographically_xyz(p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_lexicographically(const Point_3<K> &p,
                          const Point_3<K> &q)
{
    return internal::compare_lexicographically_xyz(p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_signed_distance_to_plane(const Plane_3<K> &h,
				 const Point_3<K> &p,
				 const Point_3<K> &q)
{
  return internal::compare_signed_distance_to_plane(h, p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_signed_distance_to_plane(const Point_3<K> &hp,
				 const Point_3<K> &hq,
				 const Point_3<K> &hr,
				 const Point_3<K> &p,
				 const Point_3<K> &q)
{
  return internal::compare_signed_distance_to_plane(hp, hq, hr, p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_x(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::compare_x(p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_y(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::compare_y(p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_z(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::compare_z(p, q, K());
}

template < class K >
inline
typename K::Comparison_result
compare_xyz(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::compare_xyz(p, q, K());
}

template < class K >
inline
typename K::Boolean
coplanar(const Point_3<K> &p, const Point_3<K> &q,
         const Point_3<K> &r, const Point_3<K> &s)
{
  return internal::coplanar(p, q, r, s, K());
}

template < class K >
inline
typename K::Orientation
coplanar_orientation(const Point_3<K> &p,
                     const Point_3<K> &q,
                     const Point_3<K> &r,
                     const Point_3<K> &s)
{
  return internal::coplanar_orientation(p, q, r, s, K());
}

template < class K >
inline
typename K::Orientation
coplanar_orientation(const Point_3<K> &p,
                     const Point_3<K> &q,
                     const Point_3<K> &r)
{
  return internal::coplanar_orientation(p, q, r, K());
}

template < class K >
inline
typename K::Bounded_side
coplanar_side_of_bounded_circle(const Point_3<K> &p,
                                const Point_3<K> &q,
                                const Point_3<K> &r,
                                const Point_3<K> &t)
{
  return internal::coplanar_side_of_bounded_circle(p, q, r, t, K());
}

template < class K >
inline
typename K::Vector_3
cross_product(const Vector_3<K> &v, const Vector_3<K> &w)
{
  return internal::cross_product(v, w, K());
}

template < class K >
inline
typename K::FT
determinant(const Vector_3<K> &v0, const Vector_3<K> &v1,
            const Vector_3<K> &v2)
{
  return internal::determinant(v0, v1, v2, K());
}

template < class K >
inline
typename K::Line_3
equidistant_line(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::equidistant_line(p, q, r, K());
}

template < class K >
inline
typename K::Boolean
has_larger_distance_to_point(const Point_3<K> &p,
			     const Point_3<K> &q,
			     const Point_3<K> &r)
{
  return internal::has_larger_distance_to_point(p, q, r, K());
}

template < class K >
inline
typename K::Boolean
has_larger_signed_distance_to_plane(const Point_3<K> &hp,
				    const Point_3<K> &hq,
				    const Point_3<K> &hr,
				    const Point_3<K> &p,
				    const Point_3<K> &q)
{
  return internal::has_larger_signed_distance_to_plane(hp, hq, hr, p, q, K());
}

template < class K >
inline
typename K::Boolean
has_larger_signed_distance_to_plane(const Plane_3<K> &h,
				    const Point_3<K> &p,
				    const Point_3<K> &q)
{
  return internal::has_larger_signed_distance_to_plane(h, p, q, K());
}

template < class K >
inline
typename K::Boolean
has_smaller_distance_to_point(const Point_3<K> &p,
                              const Point_3<K> &q,
                              const Point_3<K> &r)
{
  return internal::has_smaller_distance_to_point(p, q, r, K());
}

template < class K >
inline
typename K::Boolean
has_smaller_signed_distance_to_plane(const Point_3<K> &hp,
                                     const Point_3<K> &hq,
                                     const Point_3<K> &hr,
                                     const Point_3<K> &p,
                                     const Point_3<K> &q)
{
  return internal::has_smaller_signed_distance_to_plane(hp, hq, hr, p, q, K());
}

template < class K >
inline
typename K::Boolean
has_smaller_signed_distance_to_plane(const Plane_3<K> &h,
                                     const Point_3<K> &p,
                                     const Point_3<K> &q)
{
  return internal::has_smaller_signed_distance_to_plane(h, p, q, K());
}

template < class K >
inline
typename K::Boolean
less_x(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::less_x(p, q, K());
}

template < class K >
inline
typename K::Boolean
less_y(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::less_y(p, q, K());
}

template < class K >
inline
typename K::Boolean
less_z(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::less_z(p, q, K());
}

template < class K >
inline
typename K::Boolean
lexicographically_xyz_smaller(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::lexicographically_xyz_smaller(p, q, K());
}

template < class K >
inline
typename K::Boolean
lexicographically_xyz_smaller_or_equal(const Point_3<K> &p,
                                       const Point_3<K> &q)
{
  return internal::lexicographically_xyz_smaller_or_equal(p, q, K());
}

template < class K >
inline
typename K::Point_3
midpoint(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::midpoint(p, q, K());
}

template < class K >
inline
typename K::Point_3
max_vertex(const Iso_cuboid_3<K> &ic)
{
  return internal::max_vertex(ic, K());
}

template < class K >
inline
typename K::Point_3
min_vertex(const Iso_cuboid_3<K> &ic)
{
  return internal::min_vertex(ic, K());
}

template < class K >
inline
typename K::Vector_3
normal(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::normal(p, q, r, K());
}

// FIXME TODO : what to do with the operators ?
template < class K >
inline
typename K::Boolean
operator==(const Point_3<K>& p, const Point_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Point_3<K>& p, const Point_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Point_3<K>& p, const Origin& o)
{ return K().equal_3_object()(p, Point_3<K>(o)); }

template < class K >
inline
typename K::Boolean
operator!=(const Point_3<K>& p, const Origin& o)
{ return ! (p == o); }

template < class K >
inline
typename K::Boolean
operator==(const Iso_cuboid_3<K>& p, const Iso_cuboid_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Iso_cuboid_3<K>& p, const Iso_cuboid_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Plane_3<K>& p, const Plane_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Plane_3<K>& p, const Plane_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Segment_3<K>& p, const Segment_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Segment_3<K>& p, const Segment_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Line_3<K>& p, const Line_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Line_3<K>& p, const Line_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Ray_3<K>& p, const Ray_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Ray_3<K>& p, const Ray_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Triangle_3<K>& p, const Triangle_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Triangle_3<K>& p, const Triangle_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Tetrahedron_3<K>& p, const Tetrahedron_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Tetrahedron_3<K>& p, const Tetrahedron_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Direction_3<K>& p, const Direction_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Direction_3<K>& p, const Direction_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Sphere_3<K>& p, const Sphere_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Sphere_3<K>& p, const Sphere_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Vector_3<K>& p, const Vector_3<K>& q)
{ return K().equal_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator!=(const Vector_3<K>& p, const Vector_3<K>& q)
{ return ! (p == q); }

template < class K >
inline
typename K::Boolean
operator==(const Vector_3<K>& p, const Null_vector& o)
{ return K().equal_3_object()(p, Vector_3<K>(o)); }

template < class K >
inline
typename K::Boolean
operator!=(const Vector_3<K>& p, const Null_vector& o)
{ return ! (p == o); }

template < class K >
inline
typename K::Boolean
operator<(const Point_3<K>& p, const Point_3<K>& q)
{ return K().less_xyz_3_object()(p, q); }

template < class K >
inline
typename K::Boolean
operator>(const Point_3<K>& p, const Point_3<K>& q)
{ return K().less_xyz_3_object()(q, p); }

template < class K >
inline
typename K::Boolean
operator<=(const Point_3<K>& p, const Point_3<K>& q)
{ return ! K().less_xyz_3_object()(q, p); }

template < class K >
inline
typename K::Boolean
operator>=(const Point_3<K>& p, const Point_3<K>& q)
{ return ! K().less_xyz_3_object()(p, q); }

template < class K >
inline
typename K::Vector_3
operator*(const typename K::FT &c, const Vector_3<K> &w)
{
  return K().construct_scaled_vector_3_object()(w, c);
}

template < class K >
inline
typename K::Vector_3
operator*(const Vector_3<K> &w, const typename K::FT &c)
{
  return K().construct_scaled_vector_3_object()(w, c);
}

template < class K >
inline
typename K::Vector_3
operator*(const typename First_if_different<typename K::RT,
                                            typename K::FT>::Type &c,
          const Vector_3<K> &w)
{
  return K().construct_scaled_vector_3_object()(w, c);
}

template < class K >
inline
typename K::Vector_3
operator*(const Vector_3<K> &w,
          const typename First_if_different<typename K::RT,
                                            typename K::FT>::Type &c)
{
  return K().construct_scaled_vector_3_object()(w, c);
}

template < class K >
inline
typename K::FT
operator*(const Vector_3<K> &v, const Vector_3<K> &w)
{
  return K().compute_scalar_product_3_object()(v, w);
}

template < class K >
inline
typename K::Point_3
operator+(const Point_3<K> &p, const Vector_3<K> &v)
{
  return K().construct_translated_point_3_object()(p, v);
}

template < class K >
inline
typename K::Point_3
operator+(const Origin &o, const Vector_3<K> &v)
{
  return K().construct_translated_point_3_object()(o, v);
}

template < class K >
inline
typename K::Point_3
operator-(const Point_3<K> &p, const Vector_3<K> &v)
{
  return K().construct_translated_point_3_object()
               (p, K().construct_opposite_vector_3_object()(v));
}

template < class K >
inline
typename K::Point_3
operator-(const Origin &o, const Vector_3<K> &v)
{
  return K().construct_translated_point_3_object()
               (o, K().construct_opposite_vector_3_object()(v));
}

template < class K >
inline
typename K::Vector_3
operator-(const Point_3<K> &p, const Point_3<K> &q)
{
  return K().construct_vector_3_object()(q, p);
}

template < class K >
inline
typename K::Vector_3
operator-(const Point_3<K> &p, const Origin &o)
{
  return K().construct_vector_3_object()(o, p);
}

template < class K >
inline
typename K::Vector_3
operator-(const Origin &o, const Point_3<K> &q)
{
  return K().construct_vector_3_object()(q, o);
}

template <class K >
inline
typename K::Orientation
orientation(const Point_3<K> &p,
            const Point_3<K> &q,
            const Point_3<K> &r,
            const Point_3<K> &s)
{
  return internal::orientation(p, q, r, s, K());
}

template <class K >
inline
typename K::Orientation
orientation(const Vector_3<K> &u, const Vector_3<K> &v, const Vector_3<K> &w)
{
  return internal::orientation(u, v, w, K());
}

template <class K >
inline
typename K::Vector_3
orthogonal_vector(const Point_3<K>& p,
		  const Point_3<K>& q,
		  const Point_3<K>& r)
{
  return internal::orthogonal_vector(p, q, r, K());
}

template <class K >
inline
typename K::Vector_3
orthogonal_vector(const Plane_3<K>& p)
{
  return internal::orthogonal_vector(p, K());
}

// parallel() functions are in Kernel/global_functions.h

template <class K>
inline
typename K::Plane_3
radical_plane(const Sphere_3<K> &s1,
              const Sphere_3<K> &s2)
{
  return K().construct_radical_plane_3_object()(s1,s2);
}

template <class K >
inline
typename K::Bounded_side
side_of_bounded_sphere(const Point_3<K> &p,
                       const Point_3<K> &q,
                       const Point_3<K> &test)
{
  return internal::side_of_bounded_sphere(p, q, test, K());
}

template <class K >
inline
typename K::Bounded_side
side_of_bounded_sphere(const Point_3<K> &p,
                       const Point_3<K> &q,
                       const Point_3<K> &r,
                       const Point_3<K> &test)
{
  return internal::side_of_bounded_sphere(p, q, r, test, K());
}

template <class K >
inline
typename K::Bounded_side
side_of_bounded_sphere(const Point_3<K> &p,
                       const Point_3<K> &q,
                       const Point_3<K> &r,
                       const Point_3<K> &s,
                       const Point_3<K> &test)
{
  return internal::side_of_bounded_sphere(p, q, r, s, test, K());
}

template <class K >
inline
typename K::Oriented_side
side_of_oriented_sphere(const Point_3<K> &p,
                        const Point_3<K> &q,
                        const Point_3<K> &r,
                        const Point_3<K> &s,
                        const Point_3<K> &test)
{
  return internal::side_of_oriented_sphere(p, q, r, s, test, K());
}

template <typename K>
inline
typename K::FT
squared_area(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::squared_area(p, q, r, K());
}

template < class K >
inline
typename K::FT
squared_radius(const Point_3<K> &p, const Point_3<K> &q,
	       const Point_3<K> &r, const Point_3<K> &s)
{
  return internal::squared_radius(p, q, r, s, K());
}

template < class K >
inline
typename K::FT
squared_radius(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::squared_radius(p, q, r, K());
}

template < class K >
inline
typename K::FT
squared_radius(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::squared_radius(p, q, K());
}

template < class K >
inline
typename K::FT
squared_radius(const Point_3<K> &p)
{
  return internal::squared_radius(p, K());
}

template < class K >
inline
typename K::Vector_3
unit_normal(const Point_3<K> &p, const Point_3<K> &q, const Point_3<K> &r)
{
  return internal::unit_normal(p, q, r, K());
}

template < class K >
inline
typename K::FT
volume(const Point_3<K> &p, const Point_3<K> &q,
       const Point_3<K> &r, const Point_3<K> &s)
{
  return internal::volume(p, q, r, s, K());
}

template < class K >
inline
typename K::Boolean
x_equal(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::x_equal(p, q, K());
}

template < class K >
inline
typename K::Boolean
y_equal(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::y_equal(p, q, K());
}

template < class K >
inline
typename K::Boolean
z_equal(const Point_3<K> &p, const Point_3<K> &q)
{
  return internal::z_equal(p, q, K());
}

} //namespace CGAL

#endif  // CGAL_KERNEL_GLOBAL_FUNCTIONS_3_H


text:
from fabric.api import env

from fabric_colors.environment import set_target_env

@set_target_env
def email_on_success(trigger):
    if trigger:
        # dynamic import for the right target's settings
        import_string = "from {0}.settings.{1} import *".\
                format(env.project_name, env.target)
        exec import_string

        # Execute email
        from django.core.mail import EmailMessage, BadHeaderError
        from django.core import mail
        from django.conf import settings
        subject = 'Deployed to {0}'.format(env.target)
        message = 'Deployed to {0}'.format(env.target)
        from_address = settings.DEFAULT_FROM_EMAIL
        admin_emails = [a[1] for a in settings.ADMINS]
        em = EmailMessage(subject, message, from_address, admin_emails)

        try:
            mail_connection = mail.get_connection()
            mail_connection.send_messages([em])
            print("Deployment notification sent to {0}".format(str(admin_emails)[1:-1]))
        except BadHeaderError, e:
            print e
            print("Invalid header found.")
    else:
        print("No email triggered")


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.senac.kkcommerce.controller;

import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author while true
 */
@RequestMapping(value = {"/loja", "/"})
public abstract class BaseLojaController {

}