text:
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Text.RegularExpressions;
using Microsoft.Win32;
using System;
using System.Collections.Generic;

namespace WakaTime
{
    public class Dependencies
    {
        private const string CurrentPythonVersion = "3.5.2";
        private static string PythonBinaryLocation { get; set; }
        private static string PythonDownloadUrl
        {
            get
            {
                var arch = ProcessorArchitectureHelper.Is64BitOperatingSystem ? "amd64" : "win32";
                return string.Format("https://www.python.org/ftp/python/{0}/python-{0}-embed-{1}.zip", CurrentPythonVersion, arch);
            }
        }
        public static string AppDataDirectory
        {
            get
            {
                var roamingFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                var appFolder = Path.Combine(roamingFolder, "WakaTime");

                // Create folder if it does not exist
                if (!Directory.Exists(appFolder))
                    Directory.CreateDirectory(appFolder);

                return appFolder;
            }
        }
        internal static string CliLocation => Path.Combine(AppDataDirectory, Constants.CliFolder);

        public static void DownloadAndInstallCli()
        {
            Logger.Debug("Downloading wakatime-cli...");
            var destinationDir = AppDataDirectory;
            var localZipFile = Path.Combine(destinationDir, "wakatime-cli.zip");

            // Download wakatime-cli
            var client = GetWebClient();
            client.DownloadFile(Constants.CliUrl, localZipFile);
            Logger.Debug("Finished downloading wakatime-cli.");

            // Remove old folder if it exists
            RecursiveDelete(Path.Combine(destinationDir, "legacy-python-cli-master"));

            // Extract wakatime-cli zip file
            Logger.Debug($"Extracting wakatime-cli to: {destinationDir}");
            ZipFile.ExtractToDirectory(localZipFile, destinationDir);
            Logger.Debug("Finished extracting wakatime-cli.");

            try
            {
                File.Delete(localZipFile);
            }
            catch { /* ignored */ }
        }

        public static void DownloadAndInstallPython()
        {
            Logger.Debug("Downloading python...");
            var url = PythonDownloadUrl;
            var destinationDir = AppDataDirectory;
            var localZipFile = Path.Combine(destinationDir, "python.zip");
            var extractToDir = Path.Combine(destinationDir, "python");

            // Download python
            var client = GetWebClient();
            client.DownloadFile(url, localZipFile);
            Logger.Debug("Finished downloading python.");

            // Remove old python folder if it exists
            RecursiveDelete(extractToDir);

            // Extract python cli zip file
            Logger.Debug($"Extracting python to: {extractToDir}");
            ZipFile.ExtractToDirectory(localZipFile, extractToDir);
            Logger.Debug("Finished extracting python.");

            try
            {
                File.Delete(localZipFile);
            }
            catch { /* ignored */ }
        }

        internal static bool IsPythonInstalled()
        {
            return GetPython() != null;
        }

        internal static string GetPython()
        {
            if (PythonBinaryLocation == null)
                PythonBinaryLocation = GetEmbeddedPythonPath();

            if (PythonBinaryLocation == null)
                PythonBinaryLocation = GetPythonPathFromMicrosoftRegistry();

            if (PythonBinaryLocation == null)
                PythonBinaryLocation = GetPythonPathFromFixedPath();

            return PythonBinaryLocation;
        }

        private static WebClient GetWebClient()
        {
            if (!ServicePointManager.SecurityProtocol.HasFlag(SecurityProtocolType.Tls12))
                ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;

            var proxy = WakaTimePackage.GetProxy();

            return new WebClient { Proxy = proxy };
        }

        internal static string GetPythonPathFromMicrosoftRegistry()
        {
            try
            {
                var regex = new Regex(@"""([^""]*)\\([^""\\]+(?:\.[^"".\\]+))""");
                var pythonKey = Registry.ClassesRoot.OpenSubKey(@"Python.File\shell\open\command");
                if (pythonKey == null)
                    return null;

                var python = pythonKey.GetValue(null).ToString();
                var match = regex.Match(python);

                if (!match.Success) return null;

                var directory = match.Groups[1].Value;
                var fullPath = Path.Combine(directory, "pythonw");
                var process = new RunProcess(fullPath, "--version");

                process.Run();

                if (!process.Success)
                    return null;

                Logger.Debug($"Python found from Microsoft Registry: {fullPath}");

                return fullPath;
            }
            catch (Exception ex)
            {
                Logger.Error("GetPathFromMicrosoftRegistry:", ex);
                return null;
            }
        }

        internal static string GetPythonPathFromFixedPath()
        {
            var locations = new List<string>();
            for (var i = 26; i <= 50; i++)
            {
                locations.Add(Path.Combine("\\python" + i, "pythonw"));
                locations.Add(Path.Combine("\\Python" + i, "pythonw"));
            }

            foreach (var location in locations)
            {
                try
                {
                    var process = new RunProcess(location, "--version");
                    process.Run();

                    if (!process.Success) continue;
                }
                catch { /*ignored*/ }

                Logger.Debug($"Python found by Fixed Path: {location}");

                return location;
            }

            return null;
        }

        internal static string GetEmbeddedPythonPath()
        {
            var path = Path.Combine(AppDataDirectory, "python", "pythonw");
            try
            {
                var process = new RunProcess(path, "--version");
                process.Run();

                if (!process.Success)
                    return null;

                Logger.Debug($"Python found from embedded location: {path}");

                return path;
            }
            catch (Exception ex)
            {
                Logger.Error("GetEmbeddedPath:", ex);
                return null;
            }
        }

        internal static bool DoesCliExist()
        {
            return File.Exists(CliLocation);
        }

        internal static bool IsCliUpToDate()
        {
            var process = new RunProcess(Dependencies.GetPython(), CliLocation, "--version");
            process.Run();

            if (process.Success)
            {
                var currentVersion = process.Error.Trim();
                Logger.Info($"Current wakatime-cli version is {currentVersion}");

                Logger.Info("Checking for updates to wakatime-cli...");
                var latestVersion = Constants.LatestWakaTimeCliVersion();

                if (currentVersion.Equals(latestVersion))
                {
                    Logger.Info("wakatime-cli is up to date.");
                    return true;
                }

                Logger.Info($"Found an updated wakatime-cli v{latestVersion}");
            }
            return false;
        }

        internal static void RecursiveDelete(string folder)
        {
            try
            {
                Directory.Delete(folder, true);
            }
            catch { /* ignored */ }
            try
            {
                File.Delete(folder);
            }
            catch { /* ignored */ }
        }
    }
}


text:
<?xml version="1.0"?>
<!DOCTYPE directory SYSTEM "/home/irisuser/CAIRIS/cairis/src/config/directory.dtd">

<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
-->

<directory>
<vulnerability label="V.PLAINTEXT" name="Use of clear text protocols" type="Design" reference="SPP-ICSv1.0">
  <description>The use of clear text protocols and the transmission of business and control data unencrypted over insecure communication channels (e.g. FTP, TELNET)</description>
</vulnerability>
<vulnerability label="V.SERVICES" name="Unnecessary services enabled on system components" type="Configuration" reference="SPP-ICSv1.0">
  <description>The presence of unnecessary system services on key ICS components and subsystems that may be exploited to negatively impact on system security (e.g. sendmail, finger services).</description>
</vulnerability>
<vulnerability label="V.REMOTE" name="Remote access vulnerabilities" type="Configuration" reference="SPP-ICSv1.0">
  <description>Uncontrolled external access to the corporate network (e.g. through the Internet) allowing unauthorizzed entry to the interconnected ICS network.  Also includes vulnerabilities introduced through poor VPN configuration, exposed wireless access points, uncontrolled modem (e.g. through networked faxes) and weak remote user authentication technique.</description>
</vulnerability>
<vulnerability label="V.ARCHITECTURE" name="Poor system architecture design leading to weaknesses in system security posture" type="Design" reference="SPP-ICSv1.0">
  <description>Business and operational requirements impacting on the effectiveness of deployed or planned security measures to protect the confidentiality, integrity and availability of the ICS and its components.  Poor security architecture may also lead to the bypass and tamper of ICS security functions.</description>
</vulnerability>
<vulnerability label="V.DEVELOPMENT" name="Poor system development practices leading to weaknesses in system implementation" type="Implementation" reference="SPP-ICSv1.0">
  <description>Lack of quality procedures (e.g. configuration management, quality testing) leading to errors in system implementation and third party products such as buffer overflows and errors in control algorithms.</description>
</vulnerability>
<vulnerability label="V.NOPOLICIES" name="Inadequate system security policies, plans and procedures" type="Design" reference="SPP-ICSv1.0">
  <description>Lack of formal system policies, plans and procedures (e.g. weak password policies, no incident response plans, irregular compliance audits, poor configuration management policies and procedures, poor system auditing practices, backup procedures etc).</description>
</vulnerability>
<vulnerability label="V.SPOF" name="Single Points of Failure" type="Design" reference="SPP-ICSv1.0">
  <description>Poor security architecture design leading to one or more single points of failure in the ICS and resulting in system unavailability.</description>
</vulnerability>
<vulnerability label="V.NOTRAINING" name="Inadequate user training" type="Implementation" reference="SPP-ICSv1.0">
  <description>Inadequate user training on system security issues leading to poor user security awareness.</description>
</vulnerability>
<vulnerability label="V.3RDPARTY" name="Unauthorised access to ICS via 3rd party networks" type="Configuration" reference="SPP-ICSv1.0">
  <description>Unauthorised user access to the ICS or its components via a 3rd party network connection.</description>
</vulnerability>
<vulnerability label="V.NORISK" name="Lack of risk assessment" type="Design" reference="SPP-ICSv1.0">
  <description>Inadequate risk assessment activities performed on critical assets leading to a poor understanding of the security posture of the ICS and the security controls needed to counter security risks to the organisation.</description>
</vulnerability>
<threat label="ATTACK.SNIFF" name="Unauthorised traffic analysis" type="Electronic/Keystroke logging" reference="SPP-ICSv1.0">
  <description>Packet capture tool, keystroke logger etc.</description>
</threat>
<threat label="ATTACK.REPLAY" name="Unauthorised replay of captured traffic" type="Electronic/Phishing and Spoofing" reference="SPP-ICSv1.0">
  <description>Packet capture tool, keystroke logger etc.</description>
</threat>
<threat label="ATTACK.SPOOF" name="Impersonating an authorised user" type="Insider/Manipulation" reference="SPP-ICSv1.0">
  <description>Exploitation of weak user authentication mechanism.</description>
</threat>
<threat label="ATTACK.DOS" name="Overloading the network" type="Insider/Manipulation" reference="SPP-ICSv1.0">
  <description>Denial of service attack from the internet causing system downtime.</description>
</threat>
<threat label="ATTACK.ERROR" name="Operator error" type="Insider/Manipulation" reference="SPP-ICSv1.0">
  <description>ICS system operator error causing security breach.</description>
</threat>
<threat label="ATTACK.SOCIAL" name="Social engineering of authorised users" type="Insider/Manipulation" reference="SPP-ICSv1.0">
  <description>Unsolicited contact with employee with intent of discovering user credentials or acquiring sensitive information.</description>
</threat>
<threat label="ATTACK.VIRUS" name="Virus infection of ICS system components" type="Electronic/Malware" reference="SPP-ICSv1.0">
  <description>Virus propagation via email system or Internet download content (e.g. Trojan)</description>
</threat>
<threat label="ATTACK.DESTROY" name="Destruction of ICS control data, business data, or configuration information" type="Insider/Manipulation" reference="SPP-ICSv1.0">
  <description>File deletion on compromised ICS file servers.</description>
</threat>
<threat label="ATTACK.MODIFY" name="Modification of ICS control data, business data, or configuration information" type="Insider/Manipulation" reference="SPP-ICSv1.0">
  <description>File modification on compromised ICS file servers#Insider/Manipulation</description>
</threat>
<threat label="ATTACK.BYPASS" name="Bypass of system security functions and mechanisms" type="Physical" reference="SPP-ICSv1.0">
  <description>Modification of ICS configurations of components</description>
</threat>
<threat label="ATTACK.PHYSICAL" name="Compromise of poorly implemented and/or controlled physical security mechanisms" type="Physical" reference="SPP-ICSv1.0">
  <description>Unauthorised access to physically secured areas housing system assets (e.g. perimeter security breach)</description>
</threat>
<threat label="ATTACK.NATURE" name="Acts of nature causing system unavailability" type="Natural" reference="SPP-ICSv1.0">
  <description>Environmental occurrences such as earthquake, flood and fire</description>
</threat>
</directory>

redpajama_set_name: RedPajamaGithub


text:
"""Copyright (c) 2014 Grimod Antoine
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

import pygame

pygame.init()#initialisation de tous les modules pygame

def load_image(path):
	"""Fonction permettant de charger une image.

	Parametres nommes :
		-path : chemin absolu ou relatif de l'image a charger

	"""
	try:
		image = pygame.image.load(path).convert_alpha()

	except NameError as erreur_ouverture:
		print("Impossible de charger l'image : ", erreur_ouverture)

	return image

def load_sound(path):
	"""Fonction chargeant un son.

	Parametres nommes :
		-path : chemin absolu ou relatif du son a charger

	"""

	try:
		son = pygame.mixer.Sound(path)

	except NameError as erreur_ouverture:
		print("Impossible de charger le son : ", erreur_ouverture)

	return son

def load_music(path):
	"""Fonction chargant un son.

	Paramètre :
		-path : chemin d'accés à la music à charger

	"""

	try:
		music = pygame.mixer.music.load(path)

	except NameError as erreur_ouverture:
		print("Impossible de charger l'image : ", erreur_ouverture)

def afficher_text(fenetre, text, coordonnees, police="Arial", taille=40):
	"""Fonction permettant d'afficher du texte.

	Parametres nommes :
		-fentre : objet pygame.Surface ou sera afficher le texte
		-text : le texte a afficher
		-coordonnees : tuple contenant les coordonnees du texte a afficher
		-police : nom de la police a utiliser par defaut : Ariane
		-taille : taille du texte en pixel(px) par defaut : 40px

	"""

	font = pygame.font.SysFont(police, taille)

	rendu = font.render(text, True, (255, 255, 255))

	fenetre.blit(rendu, coordonnees)

def fenetre(taille_l, taille_h, titre, logo):
	"""Fonciton initialisant la fenetre.

	Parametres nommes :
			-taille_l : longueur en pixels de la fenetre
			-taille_h : hauteur en pixels de la fenetre
			-titre : nom de la fenetre
			-logo : chemin absolu ou relatif de l'image qui sert de logo

	"""
	fenetre = pygame.display.set_mode((taille_l, taille_h))

	pygame.display.set_caption(titre)
	pygame.display.set_icon(load_image(logo))

	pygame.display.flip()

	return fenetre

def fenetre_update(fenetre, balle, raquette, niveau, score, vies, power_up):

	taille_l = fenetre.get_width()
	taille_h = fenetre.get_height()

	fenetre.blit(balle, balle.position)
	fenetre.blit(raquette, raquette.position)

	afficher_text(fenetre, "score " + str(score), taille_l - 19 * len(str(score))/2, 40)
	afficher_text(fenetre, "vies" + str(vies), 0, 40)#a remplacer par l'affichage de coeurs

	for power_up in power_up:

		fenetre.blit(power_up.image, power_up.position)

	y = 0
	for lignes in niveau:
		x = 0
		for brique in lignes:
				fenetre.blit(briuqe.image, brique.position)

			x += 1
		y += 1

	pygame.display.flip()


text:
/* dataObjUnlink.h
 */

#ifndef DATA_OBJ_UNLINK_H__
#define DATA_OBJ_UNLINK_H__

/* This is a high level type API call */

#include "rcConnect.h"
#include "dataObjInpOut.h"
#include "objInfo.h"

#if defined(RODS_SERVER)
#define RS_DATA_OBJ_UNLINK rsDataObjUnlink
/* prototype for the server handler */
int
rsDataObjUnlink( rsComm_t *rsComm, dataObjInp_t *dataObjUnlinkInp );
int
dataObjUnlinkS( rsComm_t *rsComm, dataObjInp_t *dataObjUnlinkInp,
                dataObjInfo_t *dataObjInfo );
int
l3Unlink( rsComm_t *rsComm, dataObjInfo_t *dataObjInfo );
int
_rsDataObjUnlink( rsComm_t *rsComm, dataObjInp_t *dataObjUnlinkInp,
                  dataObjInfo_t **dataObjInfoHead );
int
rsMvDataObjToTrash( rsComm_t *rsComm, dataObjInp_t *dataObjInp,
                    dataObjInfo_t **dataObjInfoHead );
int
resolveDataObjReplStatus( rsComm_t *rsComm, dataObjInp_t *dataObjUnlinkInp );
int
chkPreProcDeleteRule( rsComm_t *rsComm, dataObjInp_t *dataObjUnlinkInp,
                      dataObjInfo_t *dataObjInfoHead );
#else
#define RS_DATA_OBJ_UNLINK NULL
#endif

#ifdef __cplusplus
extern "C" {
#endif
/* prototype for the client call */
int
rcDataObjUnlink( rcComm_t *conn, dataObjInp_t *dataObjUnlinkInp );

/* rcDataObjUnlink - Unlink a iRODS data object. By defult, the file will
 * be moved to the trash, but the FORCE_FLAG_KW will force the removal.
 * Input -
 *   rcComm_t *conn - The client connection handle.
 *   dataObjInp_t *dataObjInp - generic dataObj input. Relevant items are:
 *	objPath - the path of the data object.
 *      condInput - conditional Input
 *          FORCE_FLAG_KW - remove data object instead of moving it to trash.
 *          REPL_NUM_KW  - "value" = The replica number of the copy to
 *              remove.
 *
 * OutPut -
 *   int status - The status of the operation.
 */

#ifdef __cplusplus
}
#endif
#endif	// DATA_OBJ_UNLINK_H__


text:
@implementation FRBTestManagedObjectCustomGettersSettersHelper

@dynamic customAccessorsProperty;
@dynamic customGetterProperty;
@dynamic customSetterProperty;

@end

#pragma mark -
#pragma mark FRBTestManagedObjectCustomGettersSetters implementation

@implementation FRBTestManagedObjectCustomGettersSetters

- (void) testRespondsToGetters
{
    Class class = [FRBTestManagedObjectCustomGettersSettersHelper class];

    XCTAssertTrue([class instancesRespondToSelector: @selector(customGetterPropertyValue)], @"");
    XCTAssertTrue([class instancesRespondToSelector: @selector(customSetterProperty)],      @"");
    XCTAssertTrue([class instancesRespondToSelector: @selector(customAccessorsGetValue)],   @"");
}

- (void) testRespondsToSetters
{
    Class class = [FRBTestManagedObjectCustomGettersSettersHelper class];

    XCTAssertTrue([class instancesRespondToSelector: @selector(setCustomGetterProperty:)],      @"");
    XCTAssertTrue([class instancesRespondToSelector: @selector(customSetterPropertySetValue:)], @"");
    XCTAssertTrue([class instancesRespondToSelector: @selector(customAccessorsSetValue:)],      @"");
}

- (void) testDotAccess
{
    FRBTestManagedObjectCustomGettersSettersHelper *instance =
    [FRBTestManagedObjectCustomGettersSettersHelper new];

    instance.customGetterProperty    = 123;
    instance.customSetterProperty    = 456;
    instance.customAccessorsProperty = 789;

    XCTAssertEqual(123, instance.customGetterProperty,    @"");
    XCTAssertEqual(456, instance.customSetterProperty,    @"");
    XCTAssertEqual(789, instance.customAccessorsProperty, @"");
}

- (void) testMethodAccess
{
    FRBTestManagedObjectCustomGettersSettersHelper *instance =
    [FRBTestManagedObjectCustomGettersSettersHelper new];

    [instance setCustomGetterProperty: 123];
    [instance customSetterPropertySetValue: 456];
    [instance customAccessorsSetValue: 789];

    XCTAssertEqual(123, [instance customGetterPropertyValue], @"");
    XCTAssertEqual(456, [instance customSetterProperty],      @"");
    XCTAssertEqual(789, [instance customAccessorsGetValue],   @"");
}

@end


text:
=pod

=head1 NAME

PKCS12_key_gen_asc, PKCS12_key_gen_asc_ex,
PKCS12_key_gen_uni, PKCS12_key_gen_uni_ex,
PKCS12_key_gen_utf8, PKCS12_key_gen_utf8_ex - PKCS#12 Password based key derivation

=head1 SYNOPSIS

 #include <openssl/pkcs12.h>

 int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
                        int saltlen, int id, int iter, int n,
                        unsigned char *out, const EVP_MD *md_type);
 int PKCS12_key_gen_asc_ex(const char *pass, int passlen, unsigned char *salt,
                           int saltlen, int id, int iter, int n,
                           unsigned char *out, const EVP_MD *md_type,
                           OSSL_LIB_CTX *ctx, const char *propq);
 int PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt,
                        int saltlen, int id, int iter, int n,
                        unsigned char *out, const EVP_MD *md_type);
 int PKCS12_key_gen_uni_ex(unsigned char *pass, int passlen, unsigned char *salt,
                           int saltlen, int id, int iter, int n,
                           unsigned char *out, const EVP_MD *md_type,
                           OSSL_LIB_CTX *ctx, const char *propq);
 int PKCS12_key_gen_utf8(const char *pass, int passlen, unsigned char *salt,
                         int saltlen, int id, int iter, int n,
                         unsigned char *out, const EVP_MD *md_type);
 int PKCS12_key_gen_utf8_ex(const char *pass, int passlen, unsigned char *salt,
                            int saltlen, int id, int iter, int n,
                            unsigned char *out, const EVP_MD *md_type,
                            OSSL_LIB_CTX *ctx, const char *propq);

=head1 DESCRIPTION

These methods perform a key derivation according to PKCS#12 (RFC7292)
with an input password I<pass> of length I<passlen>, a salt I<salt> of length
I<saltlen>, an iteration count I<iter> and a digest algorithm I<md_type>.
The ID byte I<id> determines how the resulting key is intended to be used:

=over 4

=item *

If ID=1, then the pseudorandom bits being produced are to be used
as key material for performing encryption or decryption.

=item *

If ID=2, then the pseudorandom bits being produced are to be used
as an IV (Initial Value) for encryption or decryption.

=item *

If ID=3, then the pseudorandom bits being produced are to be used
as an integrity key for MACing.

=back

The intended format of the supplied password is determined by the method chosen:

=over 4

=item *

PKCS12_key_gen_asc() and PKCS12_key_gen_asc_ex() expect an ASCII-formatted password.

=item *

PKCS12_key_gen_uni() and PKCS12_key_gen_uni_ex() expect a Unicode-formatted password.

=item *

PKCS12_key_gen_utf8() and PKCS12_key_gen_utf8_ex() expect a UTF-8 encoded password.

=back

I<pass> is the password used in the derivation of length I<passlen>. I<pass>
is an optional parameter and can be NULL. If I<passlen> is -1, then the
function will calculate the length of I<pass> using strlen().

I<salt> is the salt used in the derivation of length I<saltlen>. If the
I<salt> is NULL, then I<saltlen> must be 0. The function will not
attempt to calculate the length of the I<salt> because it is not assumed to
be NULL terminated.

I<iter> is the iteration count and its value should be greater than or
equal to 1. RFC 2898 suggests an iteration count of at least 1000. Any
I<iter> less than 1 is treated as a single iteration.

I<digest> is the message digest function used in the derivation.

The derived key will be written to I<out>. The size of the I<out> buffer
is specified via I<n>.

Functions ending in _ex() allow for a library context I<ctx> and property query
I<propq> to be used to select algorithm implementations.

=head1 NOTES

A typical application of this function is to derive keying material for an
encryption algorithm from a password in the I<pass>, a salt in I<salt>,
and an iteration count.

Increasing the I<iter> parameter slows down the algorithm which makes it
harder for an attacker to perform a brute force attack using a large number
of candidate passwords.

=head1 RETURN VALUES

Returns 1 on success or 0 on error.

=head1 CONFORMING TO

IETF RFC 7292 (L<https://tools.ietf.org/html/rfc7292>)

=head1 SEE ALSO

L<PKCS12_create_ex(3)>,
L<PKCS12_pbe_crypt_ex(3)>,
L<passphrase-encoding(7)>

=head1 HISTORY

PKCS12_key_gen_asc_ex(), PKCS12_key_gen_uni_ex() and PKCS12_key_gen_utf8_ex()
were added in OpenSSL 3.0.

=head1 COPYRIGHT

Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License").  You may not use
this file except in compliance with the License.  You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.

=cut


text:
This is a golang app that can be used to query your GAE datastore using [GAE Remote API](https://developers.google.com/appengine/articles/remote_api).

It's useful if you are looking to grab some data (for reporting and such) from your local machine, without having to deploy anything
to app engine.

## Getting Started

###run the app:

``` bash
goapp run *.go
```

###config values:

main.go

```go

var (
  host     = flag.String("host", "", "hostname of application")
  email    = flag.String("email", "", "email of an admin user for the application")
  password = flag.String("password", "", "your password for accesing the app as admin")
)
```

### write queries

use queries.go to write queries and model.go to declare entity types that you are storing on datastore.

### examples

two examples are implemented as getAppStats (dsInfo.go) - taken from a Google example, and getData (queries.go).

### Fetch limitation issue workaround

The app works around a known issue, following advise from [willhorn](https://groups.google.com/forum/#!topic/google-appengine-go/fA0NptlpHNE) of GAE Remote API that does not allow you to fetch large quantities of entities by using iterators in a loop (see queries.go):

```go

var i int
t := q.Limit(100).Run(c)
var entities []MyEntityKind
for readBatch(&i, t, &entities) {
	cursor, err := t.Cursor()
	if err != nil {
		c.Errorf("error getting cursor: %v", err)
		return nil
	}
	t = q.Limit(100).Start(cursor).Run(c)
}

func readBatch(i *int, t *datastore.Iterator, entities *[]MyEntityKind) bool {
	start := *i
	for {
		var entity MyEntityKind
		key, err := t.Next(&entity)
		*entities = append(*entities, entity)
		fmt.Printf("read entity: %v\n", key)
		if err == datastore.Done {
			if start == *i {
				return false
			}
			return true
		}
		if err != nil {
			log.Fatalf("error fetching next record: %v", err)
			return false
		}
		*i++
	}
}

```

## License
The MIT License (MIT)
Copyright (c) StreamRail 2014


text:
namespace ExpressionToSql.UnitTests
{
    using ExpressionToSql;
    using FluentAssertions;
    using Xunit;

    public class SqlTests
    {
        [Fact]
        public void Simple_select_with_no_attributes_should_produce_select()
        {
            var actual = Sql.Select((Address x) => x).ToSql();
            actual.Should().Be("SELECT a.[Id], a.[Address1], a.[City], a.[Postcode] FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Simple_select_with_literal_and_no_attributes_should_produce_select()
        {
            var actual = Sql.Select((Address x) => 1).ToString();
            actual.Should().Be("SELECT 1 FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Simple_select_should_produce_select()
        {
            var actual = Sql.Select((Address x) => x.Id).ToString();
            actual.Should().Be("SELECT a.[Id] FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Simple_select_with_many_attributes_should_produce_select()
        {
            var actual = Sql.Select((Address x) => new { x.Id, x.Address1 }).ToString();
            actual.Should().Be("SELECT a.[Id], a.[Address1] FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Simple_where_should_produce_select()
        {
            var actual = Sql.Select((Address x) => x.Id).Where(x => x.Id == 1).ToString();
            actual.Should().Be("SELECT a.[Id] FROM [dbo].[Address] AS a WHERE a.[Id] = 1");
        }

        [Fact]
        public void Simple_negative_where_should_produce_select()
        {
            var actual = Sql.Select((Address x) => 1).Where(x => x.Id != 1).ToString();
            actual.Should().Be("SELECT 1 FROM [dbo].[Address] AS a WHERE a.[Id] <> 1");
        }

        [Fact]
        public void Simple_anded_where_should_produce_select()
        {
            const int id = 10;
            var postcode = "BL";
            var actual = Sql.Select((Address x) => new { x.Id, x.Postcode}).Where(x => x.Id > id && x.Postcode != postcode).ToString();
            actual.Should().Be("SELECT a.[Id], a.[Postcode] FROM [dbo].[Address] AS a WHERE a.[Id] > 10 AND a.[Postcode] <> @postcode");
        }

        [Fact]
        public void Simple_ands_where_should_produce_select()
        {
            const int id = 10;
            var actual = Sql.Select((Address x) => x.Id).Where(x => x.Id > id && x.Id < 1000 && x.Address1 != "''").ToString();
            actual.Should().Be("SELECT a.[Id] FROM [dbo].[Address] AS a WHERE a.[Id] > 10 AND a.[Id] < 1000 AND a.[Address1] <> ''");
        }

        [Fact]
        public void Many_ands_where_should_produce_select()
        {
            const int id = 10;
            var actual = Sql.Select((Address x) => x.Id).Where(x => x.Id > id && x.Id < 1000 && x.Address1 != "''" && x.Postcode != "''").ToString();
            actual.Should().Be("SELECT a.[Id] FROM [dbo].[Address] AS a WHERE a.[Id] > 10 AND a.[Id] < 1000 AND a.[Address1] <> '' AND a.[Postcode] <> ''");
        }

        [Fact]
        public void Simple_ored_where_should_produce_select()
        {
            const int id = 10;
            var actual = Sql.Select((Address x) => new { x.Id, x.Postcode }).Where(x => x.Id > id || x.Postcode == "'M20'").ToString();
            actual.Should().Be("SELECT a.[Id], a.[Postcode] FROM [dbo].[Address] AS a WHERE a.[Id] > 10 OR a.[Postcode] = 'M20'");
        }

        [Fact]
        public void Queries_with_parameters_should_produce_select()
        {
            const int a = 1;
            int b = 2;
            var actual = Sql.Select((Address x) => new {a, b}).ToString();
            actual.Should().Be("SELECT 1, @b FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Queries_with_mixed_parameters_should_produce_select()
        {
            int a = 1;
            var actual = Sql.Select((Address x) => new { a, x.Id }).ToString();
            actual.Should().Be("SELECT @a, a.[Id] FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Queries_with_select_parameter_should_produce_select()
        {
            int a = 1;
            var actual = Sql.Select((Address x) => a).ToString();
            actual.Should().Be("SELECT @a FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Queries_with_constant_should_produce_select()
        {
            const int a = 1;
            var actual = Sql.Select((Address x) => a).ToString();
            actual.Should().Be("SELECT 1 FROM [dbo].[Address] AS a");
        }

        [Fact]
        public void Simple_select_with_specific_table_name_should_produce_select()
        {
            var actual = Sql.Select((Address x) => x.Address1, "MyTable").ToString();
            actual.Should().Be("SELECT a.[Address1] FROM [dbo].[MyTable] AS a");
        }

        [Fact]
        public void Simple_select_with_specific_table_name_and_schema_should_produce_select()
        {
            var actual = Sql.Select((Address x) => x.Address1, new Table {Name = "MyTable", Schema = "MySchema"}).ToString();
            actual.Should().Be("SELECT a.[Address1] FROM [MySchema].[MyTable] AS a");
        }

        [Fact]
        public void Simple_select_with_specific_schema_should_produce_select()
        {
            var actual = Sql.Select(x => x.Address1, Table<Address>.WithSchema("MySchema")).ToString();
            actual.Should().Be("SELECT a.[Address1] FROM [MySchema].[Address] AS a");
        }

        [Fact]
        public void Simple_select_with_hierarchial_table_should_produce_select()
        {
            var actual = Sql.Select((DeliveryAddress x) => x.DeliveryName, Table<Address>.WithDefaultSchema()).ToString();
            actual.Should().Be("SELECT a.[DeliveryName] FROM [dbo].[Address] AS a");
        }

        [Fact(Skip = "TODO")]
        public void Inner_join_2()
        {
            var actual = Sql.Select((Address x, Customer y) => new { x.Address1, y.Name }, (x, y) => x.Id == y.AddressId).ToString();
            actual.Should().Be("SELECT a.[Address1], b.[Name] FROM [dbo].[Address] AS a INNER JOIN dbo.[Customer] AS b ON a.[Id] = b.[AddressId]");
        }
    }
}


text:
require 'rspec-system/spec_helper'
require 'rspec-system-puppet/helpers'
require 'rspec-system-serverspec/helpers'
include Serverspec::Helper::RSpecSystem
include Serverspec::Helper::DetectOS
include RSpecSystemPuppet::Helpers

RSpec.configure do |c|
  # Project root
  proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))

  # Enable colour
  c.tty = true

  c.include RSpecSystemPuppet::Helpers

  # This is where we 'setup' the nodes before running our tests
  c.before :suite do
    # Install puppet
    puppet_install

    # We need EPEL for erlang.
    if node.facts['osfamily'] == 'RedHat'
      shell('rpm -i http://mirrors.rit.edu/epel/6/i386/epel-release-6-8.noarch.rpm')
    end

    # Install modules and dependencies
    puppet_module_install(:source => proj_root, :module_name => 'rabbitmq')
    shell('puppet module install garethr-erlang')
    shell('puppet module install puppetlabs-stdlib')
    shell('puppet module install puppetlabs-apt')
  end
end


text:
<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution PIVersion="1.0.0.0" href="http://devinfo/sites/sdk/netengdt/NetEngDtSample/Forms/template.xsn" name="urn:schemas-microsoft-com:office:infopath:NETEngDtSample:" language="en-gb" productVersion="12.0.0" solutionVersion="9.4.0.667" ?><?mso-application progid="InfoPath.Document"?><esri_sdk_sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-08-20T22:42:53" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
	<title>Executing geoprocessing tools in the background</title>
	<purpose>
This sample demonstrates how to run multiple geoprocessing tools in the background of an ArcGIS Engine application. It illustrates how the result of one tool execution can then be used as an input to another tool. It also shows how to provide the user with feedback while the tools are executing by listening to events fired by the geoprocessor.

</purpose>
	<development_license>
		<license>
			<name>Engine Developer Kit</name>
			<extension></extension>
		</license>
	</development_license>
	<deployment_license>
		<license>
			<name>Engine</name>
			<extension></extension>
		</license>
	<license>
									<name>ArcGIS Desktop Basic</name>
									<extension></extension>
								</license><license>
									<name>ArcGIS Desktop Standard</name>
									<extension></extension>
								</license><license>
									<name>ArcGIS Desktop Advanced</name>
									<extension></extension>
								</license></deployment_license>
	<apis>
		<api></api>
	</apis>
	<capabilities>
		<capability></capability>
	</capabilities>
	<min_version>10.0</min_version>
	<min_sp></min_sp>
	<max_version></max_version>
	<max_sp></max_sp>
	<data_paths>
		<data_path></data_path>
	</data_paths>
	<requirements>
		<requires></requires>
	</requirements>
	<file_section>
		<files lang="CSharp">
			<file>
				<filename>RunGPForm.cs</filename>
				<description>ArcGIS Engine application.</description>
				<viewable_code>true</viewable_code>
			</file>
		</files>
	<files lang="VBNet">
									<file>
										<filename>RunGPForm.vb</filename>
										<description>ArcGIS Engine application.</description>
										<viewable_code>true</viewable_code>
									</file>
								</files></file_section>
	<how_to_use_section>
		<how_to_use>
			<title></title>
			<how_to_use_steps>
				<step>Start Visual Studio, open the solution file, and compile the project.</step><step>In the Engine application that opens, select some cities using the Select tool or accept the preselected city of Los Angeles.</step><step>Specify a buffer distance or accept the default of 30 miles.</step><step>Click the Run button. The geoprocessing analysis starts. Progress is reported in the ListView control, and the final result is added to the map. </step><step>While the tools are executing, check that the application is still responsive by navigating around the map.</step>
			</how_to_use_steps>
		</how_to_use>
	</how_to_use_section>
	<additional_information>
Multiple, unrelated geoprocessing tools can be executed by calling the ExecuteAsync method for each tool from within the same method. For example, you can buffer a selected city by a distance to produce a result, then union the Highways and Zip Codes layer to produce another result. The output from the first tool does not affect the inputs to the second tool.

Another common scenario is where the output from one tool becomes an input parameter to another tool. In this sample, selected cities are buffered to output a result that is then used to clip features in the Zip Codes layer. Calling the ExecuteAsync method from within the same method does not work in this case since all input parameters must exist prior to tool execution. This sample works around that restriction.

Each tool is added to a Queue object. The first tool is de-queued and called for execution from within the btnRunGP_Click event handler. The second tool is then called for execution from within the ToolExecuted event handler but only if the first has completed successfully. This approach is scalable, as any number of tools can be added to the queue.
</additional_information><related_topics>
		<topic>
			<topic_display></topic_display>
			<topic_link></topic_link>
		</topic>
	</related_topics>
	<content_area_tags>
		<tag>Geoprocessing</tag>
	<tag>Controls</tag></content_area_tags>
	<indexing_tags>
		<existing_tag></existing_tag>
	</indexing_tags>
	<guid>68e096e5-5c2e-4f74-9b58-2c0943ab0ba1</guid>
	<content_management>
		<owner>mrudden</owner>
		<tech_reviewer>gyoung</tech_reviewer>
		<status>SDK inclusion completed</status>
		<sdk_inclusion_complete>
			<NET>false</NET>
			<JAVA>false</JAVA>
			<CPP>false</CPP>
			<XO>false</XO>
		</sdk_inclusion_complete>
		<requested_tocs>
			<desktop>false</desktop>
			<engine>false</engine>
			<server>false</server>
			<net_ide_integration>false</net_ide_integration>
			<xo>false</xo>
		</requested_tocs>
		<applied_tocs>
			<desktop>false</desktop>
			<engine>false</engine>
			<server>false</server>
			<net_ide_integration>false</net_ide_integration>
			<xo>false</xo>
		</applied_tocs>
		<langrev_last_updated_date>2009-11-30</langrev_last_updated_date>
		<langrev_last_updated_time>17:09:21</langrev_last_updated_time>
		<last_updated_date>2010-02-09</last_updated_date>
		<last_updated_time>17:03:06</last_updated_time>
	<copyediting>
									<last_copyedit_date>2010-01-21</last_copyedit_date>
									<last_copyedit_time>14:39:53</last_copyedit_time>
									<copyeditor>linn</copyeditor>
								</copyediting><edits>
									<editing_section>
										<editor_name>linn</editor_name>
										<edit_date>2010-01-21</edit_date>
										<edit_time>14:39:37</edit_time>
										<edit_notes>
Edited.

Already in the SDK.
</edit_notes>
									</editing_section>
								</edits></content_management>
	<current_user>gyoung</current_user>
	<sdk>NETEngDt</sdk>
	<doc_type>Sample</doc_type>
</esri_sdk_sample>


text:
use indicatif::ProgressBar;

use crate::{
	constants::PRODUCT_NAME_LONG,
	self_update::SelfUpdate,
	update_service::UpdateService,
	util::{errors::AnyError, http::ReqwestSimpleHttp, input::ProgressBarReporter},
};

use super::{args::StandaloneUpdateArgs, CommandContext};

pub async fn update(ctx: CommandContext, args: StandaloneUpdateArgs) -> Result<i32, AnyError> {
	let update_service = UpdateService::new(
		ctx.log.clone(),
		ReqwestSimpleHttp::with_client(ctx.http.clone()),
	);
	let update_service = SelfUpdate::new(&update_service)?;

	let current_version = update_service.get_current_release().await?;
	if update_service.is_up_to_date_with(&current_version) {
		ctx.log.result(format!(
			"{} is already to to date ({})",
			PRODUCT_NAME_LONG, current_version.commit
		));
		return Ok(1);
	}

	if args.check {
		ctx.log
			.result(format!("Update to {} is available", current_version));
		return Ok(0);
	}

	let pb = ProgressBar::new(1);
	pb.set_message("Downloading...");
	update_service
		.do_update(&current_version, ProgressBarReporter::from(pb))
		.await?;
	ctx.log
		.result(format!("Successfully updated to {}", current_version));

	Ok(0)
}


text:
(function() {
	'use strict';

	angular.module('triplanner', [
		'ngRoute',
		'triplanner.common.notification',
		'triplanner.common.pageOptions',
		'triplanner.common.searchQuery',
		'triplanner.common.imageInput',  // MOVE or REMOVE this directive from the main module?
		'triplanner.common.tooltip',  // MOVE or REMOVE this directive from the main module?
		'triplanner.common.dateTimePicker',  // MOVE or REMOVE this directive from the main module?
		'triplanner.common.main',
		'triplanner.users.userIdentity',
		'triplanner.users.users',
		'triplanner.users.login',
		'triplanner.users.register',
		'triplanner.users.profile',
		'triplanner.users.editProfile',
		'triplanner.users.friends',
		'triplanner.home',
		'triplanner.trips.planTrip'
	])

		.config(['$locationProvider', '$routeProvider', '$httpProvider', function($locationProvider, $routeProvider, $httpProvider) {
			$locationProvider.hashPrefix('!');
			$routeProvider.otherwise({redirectTo: '/home'});

			$httpProvider.interceptors.push(['$q', '$injector', function($q, $injector) {
				return {
					'responseError': function(rejection) {
						if (rejection.data && rejection.data.error) {
							if (rejection.data.error === 'InvalidCredentials') {
								$injector.get('notification').error('Invalid username or password.');
							} else if(rejection.data.error === 'UserAlreadyExists') {
								$injector.get('notification').error('Please choose a different username.', 'This username is already taken.');
							}
						}

						return $q.reject(rejection);
					}
				}
			}]);
		}])

		.run(['$rootScope', '$location', 'notification', 'userIdentity', function($rootScope, $location, notification, userIdentity) {
			$rootScope.$on('$routeChangeError', function(ev, current, previous, rejection) {
				if (previous && previous.originalPath) { // Show the notification only when there was an explicit visit to the page and not an authomatic redirect.
					if (rejection === 'Unauthorized Access') {
						notification.error('You must log in to view this page.');
					} else if (rejection === 'Must log out') {
						notification.error('You must log out to view this page.');
					}
				}

				if (rejection === 'Unauthorized Access' || rejection === 'Must log out') {
					if (previous && previous.originalPath) {
						$location.path(previous.originalPath);
					} else {
						if (userIdentity.isLoggedIn()) {
							$location.path('/home');
						} else {
							$location.path('/login');
						}
					}
				}
			});
		}])

		.constant('BASE_URL', 'https://baas.kinvey.com/')
		.constant('APP_KEY', 'kid_BJY6RO3tl');
})();


text:
'use strict'

const assert = require('chai').assert
const uuid = require('uuid').v4
const opts = require('../../src/reducers/opts')

describe('opts()', function() {

	it('should return initial state', function() {

		const state = undefined
		const action = {}
		const nextState = opts(state, action)

		assert.deepEqual(nextState, {})

	})

	it('should return existing state', function() {

		const state = { title: uuid() }
		const action = {}
		const nextState = opts(state, action)

		assert.deepEqual(nextState, state)

	})

})


text:
/************************************************************************
 *   Unreal Internet Relay Chat Daemon, include/modversion.h
 *   (C) 2004-2005 Bram Matthys and The UnrealIRCd Team
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 1, or (at your option)
 *   any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *   $Id$
 */

#include "version.h"

/* What all this is for? Well, it's simple...
 * Example: When someone compiles a module with ssl support, but the
 * core was not compiled with ssl support, then the module will read
 * things incorrect in the struct because the module sees an extra
 * field half-way the struct but in the core that field does not exist,
 * hence all data is shifted 4 bytes causing all kinds of odd crashes,
 * memory corruption, and weird problems.
 * This is an attempt to prevent this a bit, but there are a lot more
 * options that cause binary incompatability (eg: changing nicklen),
 * we just take the most common ones...
 *
 * NOTE: On win32 we allow ssl inconsistencies because we
 *       explicitly use "padding" in the structs: we add a useless
 *       placeholder so everything is still aligned correctly.
 *       In the process of doing so, we waste several bytes per-user,
 *       but this prevents (most) binary incompatability problems
 *       making it easier for module coders to ship dll's.
 */
 #ifndef _WIN32
  #define MYTOKEN_SSL "/SSL"
 #else
  #define MYTOKEN_SSL ""
 #endif
 #if !defined(NO_FLOOD_AWAY)
  #define MYTOKEN_NOFLDAWAY "/NONFA"
 #else
  #define MYTOKEN_NOFLDAWAY ""
 #endif
 #define MYTOKEN_NEWCHF "/NOCHF"

#ifdef __GNUC__
 #if defined(__GNUC_PATCHLEVEL__)
  #define GCCVER ((__GNUC__ << 16) + (__GNUC_MINOR__ << 8) + __GNUC_PATCHLEVEL__)
 #else
  #define GCCVER ((__GNUC__ << 16) + (__GNUC_MINOR__ << 8))
 #endif
#else
 #define GCCVER 0
#endif

#ifdef UNREALCORE
  char our_mod_version[] = BASE_VERSION "-" PATCH1 PATCH2 PATCH3 PATCH4 PATCH6 PATCH7 PATCH8 PATCH9 \
                               MYTOKEN_SSL \
                               MYTOKEN_NOFLDAWAY MYTOKEN_NEWCHF;
  unsigned int our_compiler_version = GCCVER;
#else
  DLLFUNC char Mod_Version[] = BASE_VERSION "-" PATCH1 PATCH2 PATCH3 PATCH4 PATCH6 PATCH7 PATCH8 PATCH9 \
                               MYTOKEN_SSL \
                               MYTOKEN_NOFLDAWAY MYTOKEN_NEWCHF;
  DLLFUNC unsigned int compiler_version = GCCVER;
#endif


text:
<?php

class WP_Categories_to_Tags {
	var $categories_to_convert = array();
	var $all_categories = array();
	var $tags_to_convert = array();
	var $all_tags = array();
	var $hybrids_ids = array();

	function header() {
		echo '
';
		if ( ! current_user_can('manage_categories') ) {
			echo '
';
			echo '
' . __('Cheatin’ uh?') . '
';
			echo '
';
		} else { ?>

<?php _e( "Categories to Tags" ); ?>
			<?php _e( "Tags to Categories" ); ?>

<?php	}
	}

	function footer() {
		echo '
';
	}

	function populate_cats() {

		$categories = get_categories('get=all');
		foreach ( $categories as $category ) {
			$this->all_categories[] = $category;
			if ( is_term( $category->slug, 'post_tag' ) )
				$this->hybrids_ids[] = $category->term_id;
		}
	}

	function populate_tags() {

		$tags = get_terms( array('post_tag'), 'get=all' );
		foreach ( $tags as $tag ) {
			$this->all_tags[] = $tag;
			if ( is_term( $tag->slug, 'category' ) )
				$this->hybrids_ids[] = $tag->term_id;
		}
	}

	function categories_tab() {
		$this->populate_cats();
		$cat_num = count($this->all_categories);

		echo '
';

		if ( $cat_num > 0 ) {
			echo '
' . sprintf( __ngettext( 'Convert Category to Tag.', 'Convert Categories (%d) to Tags.', $cat_num ), $cat_num ) . '
';
			echo '
';
			echo '
' . __('Hey there. Here you can selectively convert existing categories to tags. To get started, check the categories you wish to be converted, then click the Convert button.') . '
';
			echo '
' . __('Keep in mind that if you convert a category with child categories, the children become top-level orphans.') . '

';

			$this->categories_form();
		} else {
			echo '
'.__('You have no categories to convert!').'
';
		}
	}

	function categories_form() { ?>

<form name="catlist" id="catlist" action="admin.php?import=wp-cat2tag&step=2" method="post">

<input type="button" class="button-secondary" value="<?php _e('Check All'); ?>" onclick="this.value=check_all_rows()" />
<?php wp_nonce_field('import-cat2tag'); ?>

<?php	$hier = _get_term_hierarchy('category');

		foreach ($this->all_categories as $category) {
			$category = sanitize_term( $category, 'category', 'display' );

			if ( (int) $category->parent == 0 ) { ?>

<input type="checkbox" name="cats_to_convert[]" value="<?php echo intval($category->term_id); ?>" /> <?php echo $category->name . ' (' . $category->count . ')'; ?><?php

				 if ( in_array( intval($category->term_id),  $this->hybrids_ids ) )
				 	echo '  * ';

				if ( isset($hier[$category->term_id]) )
					$this->_category_children($category, $hier); ?>

<?php		}
		} ?>

<?php	if ( ! empty($this->hybrids_ids) )
			echo '
' . __('* This category is also a tag. Converting it will add that tag to all posts that are currently in the category.') . '
'; ?>

<input type="submit" name="submit" class="button" value="<?php _e('Convert Categories to Tags'); ?>" />

</form>

<?php }

	function tags_tab() {
		$this->populate_tags();
		$tags_num = count($this->all_tags);

		echo '
';

		if ( $tags_num > 0 ) {
			echo '
' . sprintf( __ngettext( 'Convert Tag to Category.', 'Convert Tags (%d) to Categories.', $tags_num ), $tags_num ) . '
';
			echo '
';
			echo '
' . __('Here you can selectively converts existing tags to categories. To get started, check the tags you wish to be converted, then click the Convert button.') . '
';
			echo '
' . __('The newly created categories will still be associated with the same posts.') . '

';

			$this->tags_form();
		} else {
			echo '
'.__('You have no tags to convert!').'
';
		}
	}

	function tags_form() { ?>

<form name="taglist" id="taglist" action="admin.php?import=wp-cat2tag&step=4" method="post">

<input type="button" class="button-secondary" value="<?php _e('Check All'); ?>" onclick="this.value=check_all_tagrows()" />
<?php wp_nonce_field('import-cat2tag'); ?>

<?php	foreach ( $this->all_tags as $tag ) { ?>

<input type="checkbox" name="tags_to_convert[]" value="<?php echo intval($tag->term_id); ?>" /> <?php echo attribute_escape($tag->name) . ' (' . $tag->count . ')'; ?><?php if ( in_array( intval($tag->term_id),  $this->hybrids_ids ) ) echo '  * '; ?>

<?php	} ?>

<?php	if ( ! empty($this->hybrids_ids) )
			echo '
' . __('* This tag is also a category. When converted, all posts associated with the tag will also be in the category.') . '
'; ?>

<input type="submit" name="submit_tags" class="button" value="<?php _e('Convert Tags to Categories'); ?>" />

</form>

<?php }

	function _category_children($parent, $hier) { ?>

<?php	foreach ($hier[$parent->term_id] as $child_id) {
			$child =& get_category($child_id); ?>

<input type="checkbox" name="cats_to_convert[]" value="<?php echo intval($child->term_id); ?>" /> <?php echo $child->name . ' (' . $child->count . ')'; ?><?php

			if ( in_array( intval($child->term_id), $this->hybrids_ids ) )
				echo '  * ';

			if ( isset($hier[$child->term_id]) )
				$this->_category_children($child, $hier); ?>

<?php	} ?>

<?php
	}

	function _category_exists($cat_id) {
		$cat_id = (int) $cat_id;

		$maybe_exists = category_exists($cat_id);

		if ( $maybe_exists ) {
			return true;
		} else {
			return false;
		}
	}

	function convert_categories() {
		global $wpdb;

		if ( (!isset($_POST['cats_to_convert']) || !is_array($_POST['cats_to_convert'])) && empty($this->categories_to_convert)) { ?>

<?php printf(__('Uh, oh. Something didn’t work. Please try again.'), 'admin.php?import=wp-cat2tag'); ?>

<?php		return;
		}

		if ( empty($this->categories_to_convert) )
			$this->categories_to_convert = $_POST['cats_to_convert'];

		$hier = _get_term_hierarchy('category');
		$hybrid_cats = $clear_parents = $parents = false;
		$clean_term_cache = $clean_cat_cache = array();
		$default_cat = get_option('default_category');

		echo '
';

		foreach ( (array) $this->categories_to_convert as $cat_id) {
			$cat_id = (int) $cat_id;

			if ( ! $this->_category_exists($cat_id) ) {
				echo '
' . sprintf( __('Category %s doesn\'t exist!'),  $cat_id ) . "
\n";
			} else {
				$category =& get_category($cat_id);
				echo '
' . sprintf(__('Converting category %s ... '),  $category->name);

				// If the category is the default, leave category in place and create tag.
				if ( $default_cat == $category->term_id ) {

					if ( ! ($id = is_term( $category->slug, 'post_tag' ) ) )
						$id = wp_insert_term($category->name, 'post_tag', array('slug' => $category->slug));

					$id = $id['term_taxonomy_id'];
					$posts = get_objects_in_term($category->term_id, 'category');
					$term_order = 0;

					foreach ( $posts as $post ) {
						$values[] = $wpdb->prepare( "(%d, %d, %d)", $post, $id, $term_order);
						clean_post_cache($post);
					}

					if ( $values ) {
						$wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id, term_order) VALUES " . join(',', $values) . " ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)");

						$wpdb->query( $wpdb->prepare("UPDATE $wpdb->term_taxonomy SET count = %d WHERE term_id = %d AND taxonomy = 'post_tag'", $category->count, $category->term_id) );
					}

					echo __('Converted successfully.') . "
\n";
					continue;
				}

				// if tag already exists, add it to all posts in the category
				if ( $tag_ttid = $wpdb->get_var( $wpdb->prepare("SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = %d AND taxonomy = 'post_tag'", $category->term_id) ) ) {
					$objects_ids = get_objects_in_term($category->term_id, 'category');
					$tag_ttid = (int) $tag_ttid;
					$term_order = 0;

					foreach ( $objects_ids as $object_id )
						$values[] = $wpdb->prepare( "(%d, %d, %d)", $object_id, $tag_ttid, $term_order);

					if ( $values ) {
						$wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id, term_order) VALUES " . join(',', $values) . " ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)");

						$count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $tag_ttid) );
						$wpdb->query( $wpdb->prepare("UPDATE $wpdb->term_taxonomy SET count = %d WHERE term_id = %d AND taxonomy = 'post_tag'", $count, $category->term_id) );
					}
					echo __('Tag added to all posts in this category.') . " *
\n";

					$hybrid_cats = true;
					$clean_term_cache[] = $category->term_id;
					$clean_cat_cache[] = $category->term_id;

					continue;
				}

				$tt_ids = $wpdb->get_col( $wpdb->prepare("SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = %d AND taxonomy = 'category'", $category->term_id) );
				if ( $tt_ids ) {
					$posts = $wpdb->get_col("SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id IN (" . join(',', $tt_ids) . ") GROUP BY object_id");
					foreach ( (array) $posts as $post )
						clean_post_cache($post);
				}

				// Change the category to a tag.
				$wpdb->query( $wpdb->prepare("UPDATE $wpdb->term_taxonomy SET taxonomy = 'post_tag' WHERE term_id = %d AND taxonomy = 'category'", $category->term_id) );

				// Set all parents to 0 (root-level) if their parent was the converted tag
				$parents = $wpdb->query( $wpdb->prepare("UPDATE $wpdb->term_taxonomy SET parent = 0 WHERE parent = %d AND taxonomy = 'category'", $category->term_id) );

				if ( $parents ) $clear_parents = true;
				$clean_cat_cache[] = $category->term_id;
				echo __('Converted successfully.') . "
\n";
			}
		}
		echo '
';

		if ( ! empty($clean_term_cache) ) {
			$clean_term_cache = array_unique(array_values($clean_term_cache));
			foreach ( $clean_term_cache as $id )
				wp_cache_delete($id, 'post_tag');
		}

		if ( ! empty($clean_cat_cache) ) {
			$clean_cat_cache = array_unique(array_values($clean_cat_cache));
			foreach ( $clean_cat_cache as $id )
				wp_cache_delete($id, 'category');
		}

		if ( $clear_parents ) delete_option('category_children');

		if ( $hybrid_cats )
			echo '
' . sprintf( __('* This category is also a tag. The converter has added that tag to all posts currently in the category. If you want to remove it, please confirm that all tags were added successfully, then delete it from the Manage Categories page.'), 'categories.php') . '
';
		echo '
' . sprintf( __('We’re all done here, but you can always convert more.'), 'admin.php?import=wp-cat2tag' ) . '
';
	}

	function convert_tags() {
		global $wpdb;

		if ( (!isset($_POST['tags_to_convert']) || !is_array($_POST['tags_to_convert'])) && empty($this->tags_to_convert)) {
			echo '
';
			echo '
' . sprintf(__('Uh, oh. Something didn’t work. Please try again.'), 'admin.php?import=wp-cat2tag&step=3') . '
';
			echo '
';
			return;
		}

		if ( empty($this->tags_to_convert) )
			$this->tags_to_convert = $_POST['tags_to_convert'];

		$hybrid_tags = $clear_parents = false;
		$clean_cat_cache = $clean_term_cache = array();
		$default_cat = get_option('default_category');
		echo '
';

		foreach ( (array) $this->tags_to_convert as $tag_id) {
			$tag_id = (int) $tag_id;

			if ( $tag = get_term( $tag_id, 'post_tag' ) ) {
				printf('
' . __('Converting tag %s ... '),  $tag->name);

				if ( $cat_ttid = $wpdb->get_var( $wpdb->prepare("SELECT term_taxonomy_id FROM $wpdb->term_taxonomy WHERE term_id = %d AND taxonomy = 'category'", $tag->term_id) ) ) {
					$objects_ids = get_objects_in_term($tag->term_id, 'post_tag');
					$cat_ttid = (int) $cat_ttid;
					$term_order = 0;

					foreach ( $objects_ids as $object_id ) {
						$values[] = $wpdb->prepare( "(%d, %d, %d)", $object_id, $cat_ttid, $term_order);
						clean_post_cache($object_id);
					}

					if ( $values ) {
						$wpdb->query("INSERT INTO $wpdb->term_relationships (object_id, term_taxonomy_id, term_order) VALUES " . join(',', $values) . " ON DUPLICATE KEY UPDATE term_order = VALUES(term_order)");

						if ( $default_cat != $tag->term_id ) {
							$count = $wpdb->get_var( $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $tag->term_id) );
							$wpdb->query( $wpdb->prepare("UPDATE $wpdb->term_taxonomy SET count = %d WHERE term_id = %d AND taxonomy = 'category'", $count, $tag->term_id) );
						}
					}

					$hybrid_tags = true;
					$clean_term_cache[] = $tag->term_id;
					$clean_cat_cache[] = $tag->term_id;
					echo __('All posts were added to the category with the same name.') . " *
\n";

					continue;
				}

				// Change the tag to a category.
				$parent = $wpdb->get_var( $wpdb->prepare("SELECT parent FROM $wpdb->term_taxonomy WHERE term_id = %d AND taxonomy = 'post_tag'", $tag->term_id) );
				if ( 0 == $parent || (0 < (int) $parent && $this->_category_exists($parent)) ) {
					$reset_parent = '';
					$clear_parents = true;
				} else
					$reset_parent = ", parent = '0'";

				$wpdb->query( $wpdb->prepare("UPDATE $wpdb->term_taxonomy SET taxonomy = 'category' $reset_parent WHERE term_id = %d AND taxonomy = 'post_tag'", $tag->term_id) );

				$clean_term_cache[] = $tag->term_id;
				$clean_cat_cache[] = $cat['term_id'];
				echo __('Converted successfully.') . "
\n";

			} else {
				printf( '
' . __('Tag #%s doesn\'t exist!') . "
\n",  $tag_id );
			}
		}

		if ( ! empty($clean_term_cache) ) {
			$clean_term_cache = array_unique(array_values($clean_term_cache));
			foreach ( $clean_term_cache as $id )
				wp_cache_delete($id, 'post_tag');
		}

		if ( ! empty($clean_cat_cache) ) {
			$clean_cat_cache = array_unique(array_values($clean_cat_cache));
			foreach ( $clean_cat_cache as $id )
				wp_cache_delete($id, 'category');
		}

		if ( $clear_parents ) delete_option('category_children');

		echo '
';
		if ( $hybrid_tags )
			echo '
' . sprintf( __('* This tag is also a category. The converter has added all posts from it to the category. If you want to remove it, please confirm that all posts were added successfully, then delete it from the Manage Tags page.'), 'edit-tags.php') . '
';
		echo '
' . sprintf( __('We’re all done here, but you can always convert more.'), 'admin.php?import=wp-cat2tag&step=3' ) . '
';
	}

	function init() {

		$step = (isset($_GET['step'])) ? (int) $_GET['step'] : 1;

		$this->header();

		if ( current_user_can('manage_categories') ) {

			switch ($step) {
				case 1 :
					$this->categories_tab();
				break;

				case 2 :
					check_admin_referer('import-cat2tag');
					$this->convert_categories();
				break;

				case 3 :
					$this->tags_tab();
				break;

				case 4 :
					check_admin_referer('import-cat2tag');
					$this->convert_tags();
				break;
			}
		}

		$this->footer();
	}

	function WP_Categories_to_Tags() {
		// Do nothing.
	}
}

$wp_cat2tag_importer = new WP_Categories_to_Tags();

register_importer('wp-cat2tag', __('Categories and Tags Converter'), __('Convert existing categories to tags or tags to categories, selectively.'), array(&$wp_cat2tag_importer, 'init'));

?>


text:
  Graulhet est
      une commune géographiquement positionnée dans le département de Tarn en Midi-Pyrénées. On dénombrait 11 991 habitants en 2008.

Graulhet apparait comme une commune où de nombreux marchants sont installés.
vous pourrez trouver à Graulhet un hypermarché, six supermarchés et trois supérettes.
Graulhet apparait comme une localité parfaite pour envisager un investissement locatif.
A l'occasion d'une transaction immobilière la localisation des  commerces influence le prix de l'aquisition

À coté de Graulhet sont positionnées géographiquement les villes de
Lasgraisses localisée à 7 km, 335 habitants,
Missècle localisée à 5 km, 94 habitants,
Moulayrès située à 6 km, 159 habitants,
Saint-Julien-du-Puy localisée à 8 km, 383 habitants,
Labessière-Candeil localisée à 4 km, 725 habitants,
Peyrole située à 7 km, 449 habitants,
 entre autres. De plus, Graulhet est située à seulement 22 km de Albi.

La ville compte de nombreux  aménagements, elle dispose, entre autres, de un bassin de natation, un terrain de tennis, trois terrains de sport et une boucle de randonnée.

La ville est équipée concernant l'enseignement aux enfants de un collège.
Concernant les plus jeunes, la localité est pourvue pour le bien être de sa population de deux maternelles et cinq écoles primaires.
Graulhet est équipée des  équipements éducatifs permettant une vie locale facilitée.
Lors d'un projet immobilier à Graulhet, il est important regarder la qualité des écoles de la communes

À Graulhet, la valeur moyenne à l'achat d'un appartement se situe à 887 € du m² en vente. Le prix moyen d'une maison à l'achat se situe à 944 € du m². À la location le prix moyen se situe à 6,55 € du m² mensuel.

Le nombre de logements, à Graulhet, était réparti en 2011 en 1 238 appartements et 4 790 maisons soit
 un marché relativement équilibré.

À Graulhet le salaire médian mensuel par individu se situe à environ 1 808 €  net. Ceci est inférieur à la moyenne nationale.


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appcontainers.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Container object under Container App Revision Replica. */
@Fluent
public final class ReplicaContainer {
    /*
     * The Name of the Container
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * The Id of the Container
     */
    @JsonProperty(value = "containerId")
    private String containerId;

    /*
     * The container ready status
     */
    @JsonProperty(value = "ready")
    private Boolean ready;

    /*
     * The container start status
     */
    @JsonProperty(value = "started")
    private Boolean started;

    /*
     * The container restart count
     */
    @JsonProperty(value = "restartCount")
    private Integer restartCount;

    /*
     * Log Stream endpoint
     */
    @JsonProperty(value = "logStreamEndpoint", access = JsonProperty.Access.WRITE_ONLY)
    private String logStreamEndpoint;

    /*
     * Container exec endpoint
     */
    @JsonProperty(value = "execEndpoint", access = JsonProperty.Access.WRITE_ONLY)
    private String execEndpoint;

    /** Creates an instance of ReplicaContainer class. */
    public ReplicaContainer() {
    }

    /**
     * Get the name property: The Name of the Container.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The Name of the Container.
     *
     * @param name the name value to set.
     * @return the ReplicaContainer object itself.
     */
    public ReplicaContainer withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the containerId property: The Id of the Container.
     *
     * @return the containerId value.
     */
    public String containerId() {
        return this.containerId;
    }

    /**
     * Set the containerId property: The Id of the Container.
     *
     * @param containerId the containerId value to set.
     * @return the ReplicaContainer object itself.
     */
    public ReplicaContainer withContainerId(String containerId) {
        this.containerId = containerId;
        return this;
    }

    /**
     * Get the ready property: The container ready status.
     *
     * @return the ready value.
     */
    public Boolean ready() {
        return this.ready;
    }

    /**
     * Set the ready property: The container ready status.
     *
     * @param ready the ready value to set.
     * @return the ReplicaContainer object itself.
     */
    public ReplicaContainer withReady(Boolean ready) {
        this.ready = ready;
        return this;
    }

    /**
     * Get the started property: The container start status.
     *
     * @return the started value.
     */
    public Boolean started() {
        return this.started;
    }

    /**
     * Set the started property: The container start status.
     *
     * @param started the started value to set.
     * @return the ReplicaContainer object itself.
     */
    public ReplicaContainer withStarted(Boolean started) {
        this.started = started;
        return this;
    }

    /**
     * Get the restartCount property: The container restart count.
     *
     * @return the restartCount value.
     */
    public Integer restartCount() {
        return this.restartCount;
    }

    /**
     * Set the restartCount property: The container restart count.
     *
     * @param restartCount the restartCount value to set.
     * @return the ReplicaContainer object itself.
     */
    public ReplicaContainer withRestartCount(Integer restartCount) {
        this.restartCount = restartCount;
        return this;
    }

    /**
     * Get the logStreamEndpoint property: Log Stream endpoint.
     *
     * @return the logStreamEndpoint value.
     */
    public String logStreamEndpoint() {
        return this.logStreamEndpoint;
    }

    /**
     * Get the execEndpoint property: Container exec endpoint.
     *
     * @return the execEndpoint value.
     */
    public String execEndpoint() {
        return this.execEndpoint;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}


text:
import koa from 'koa'
import fs from 'co-fs'
import {join} from 'path'
import request from 'supertest'
import browserSync from '../dist'

describe('browserSync', () => {
    it('text/html', (done) => {
        var app = koa()

        app.use(browserSync())
        app.use(function *(next){
            this.type = 'html'
            this.body = yield fs.createReadStream(join(process.cwd(), './test/views/index.html'))
        })

        request(app.listen())
            .get('/')
            .expect(function(res){
                res.text.should.containEql('browser-sync')
            })
            .end(done)
    })

    it('text/plain', (done) => {
        var app = koa()

        app.use(browserSync())
        app.use(function *(next){
            this.type = 'text'
            this.body = yield fs.createReadStream(join(process.cwd(), './test/views/index.html'))
        })

        request(app.listen())
            .get('/')
            .expect(function(res){
                res.text.should.not.containEql('browser-sync')
            })
            .end(done)
    })
})


text:
<?php
namespace Chamilo\Libraries\Format\Table\Extension\DataClassTable;

use Chamilo\Libraries\Format\Table\TableColumnModel;

/**
 *
 * @package Chamilo\Libraries\Format\Table\Extension\DataClassTable
 * @author Eduard Vossen <eduard.vossen@ehb.be>
 * @author Hans De Bisschop <hans.de.bisschop>
 */
abstract class DataClassTableColumnModel extends TableColumnModel
{
}