// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) :  [www.daimto.com](http://www.daimto.com/)
//
// Licensed 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.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by DAIMTO-Google-apis-Sample-generator 1.0.0
//     Template File Name:  methodTemplate.tt
//     Build date: 2017-10-08
//     C# generater version: 1.0.0
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
// About
//
// Unoffical sample for the Spanner v1 API for C#.
// This sample is designed to be used with the Google .Net client library. (https://github.com/google/google-api-dotnet-client)
//
// API Description: Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.
// API Documentation Link https://cloud.google.com/spanner/
//
// Discovery Doc  https://www.googleapis.com/discovery/v1/apis/Spanner/v1/rest
//
//------------------------------------------------------------------------------
// Installation
//
// This sample code uses the Google .Net client library (https://github.com/google/google-api-dotnet-client)
//
// NuGet package:
//
// Location: https://www.nuget.org/packages/Google.Apis.Spanner.v1/
// Install Command: PM>  Install-Package Google.Apis.Spanner.v1
//
//------------------------------------------------------------------------------
using Google.Apis.Spanner.v1;
using Google.Apis.Spanner.v1.Data;
using System;

namespace GoogleSamplecSharpSample.Spannerv1.Methods
{

    public static class OperationsSample
    {

        /// <summary>
        /// Starts asynchronous cancellation on a long-running operation.  The servermakes a best effort to cancel the operation, but success is notguaranteed.  If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.  Clients can useOperations.GetOperation orother methods to check whether the cancellation succeeded or whether theoperation completed despite cancellation. On successful cancellation,the operation is not deleted; instead, it becomes an operation withan Operation.error value with a google.rpc.Status.code of 1,corresponding to `Code.CANCELLED`.
        /// Documentation https://developers.google.com/spanner/v1/reference/operations/cancel
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated Spanner service.</param>
        /// <param name="name">The name of the operation resource to be cancelled.</param>
        /// <returns>EmptyResponse</returns>
        public static Empty Cancel(SpannerService service, string name)
        {
            try
            {
                // Initial validation.
                if (service == null)
                    throw new ArgumentNullException("service");
                if (name == null)
                    throw new ArgumentNullException(name);

                // Make the request.
                return service.Operations.Cancel(name).Execute();
            }
            catch (Exception ex)
            {
                throw new Exception("Request Operations.Cancel failed.", ex);
            }
        }

        /// <summary>
        /// Deletes a long-running operation. This method indicates that the client isno longer interested in the operation result. It does not cancel theoperation. If the server doesn't support this method, it returns`google.rpc.Code.UNIMPLEMENTED`.
        /// Documentation https://developers.google.com/spanner/v1/reference/operations/delete
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated Spanner service.</param>
        /// <param name="name">The name of the operation resource to be deleted.</param>
        /// <returns>EmptyResponse</returns>
        public static Empty Delete(SpannerService service, string name)
        {
            try
            {
                // Initial validation.
                if (service == null)
                    throw new ArgumentNullException("service");
                if (name == null)
                    throw new ArgumentNullException(name);

                // Make the request.
                return service.Operations.Delete(name).Execute();
            }
            catch (Exception ex)
            {
                throw new Exception("Request Operations.Delete failed.", ex);
            }
        }
        public class OperationsListOptionalParms
        {
            /// The standard list page token.
            public string PageToken { get; set; }
            /// The standard list page size.
            public int? PageSize { get; set; }
            /// The standard list filter.
            public string Filter { get; set; }

        }

        /// <summary>
        /// Lists operations that match the specified filter in the request. If theserver doesn't support this method, it returns `UNIMPLEMENTED`.NOTE: the `name` binding allows API services to override the bindingto use different resource name schemes, such as `users/*/operations`. Tooverride the binding, API services can add a binding such as`"/v1/{name=users/*}/operations"` to their service configuration.For backwards compatibility, the default name includes the operationscollection id, however overriding users must ensure the name bindingis the parent resource, without the operations collection id.
        /// Documentation https://developers.google.com/spanner/v1/reference/operations/list
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated Spanner service.</param>
        /// <param name="name">The name of the operation's parent resource.</param>
        /// <param name="optional">Optional paramaters.</param>
        /// <returns>ListOperationsResponseResponse</returns>
        public static ListOperationsResponse List(SpannerService service, string name, OperationsListOptionalParms optional = null)
        {
            try
            {
                // Initial validation.
                if (service == null)
                    throw new ArgumentNullException("service");
                if (name == null)
                    throw new ArgumentNullException(name);

                // Building the initial request.
                var request = service.Operations.List(name);

                // Applying optional parameters to the request.
                request = (OperationsResource.ListRequest)SampleHelpers.ApplyOptionalParms(request, optional);

                // Requesting data.
                return request.Execute();
            }
            catch (Exception ex)
            {
                throw new Exception("Request Operations.List failed.", ex);
            }
        }

        /// <summary>
        /// Gets the latest state of a long-running operation.  Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.
        /// Documentation https://developers.google.com/spanner/v1/reference/operations/get
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated Spanner service.</param>
        /// <param name="name">The name of the operation resource.</param>
        /// <returns>OperationResponse</returns>
        public static Operation Get(SpannerService service, string name)
        {
            try
            {
                // Initial validation.
                if (service == null)
                    throw new ArgumentNullException("service");
                if (name == null)
                    throw new ArgumentNullException(name);

                // Make the request.
                return service.Operations.Get(name).Execute();
            }
            catch (Exception ex)
            {
                throw new Exception("Request Operations.Get failed.", ex);
            }
        }

        }

        public static class SampleHelpers
        {

        /// <summary>
        /// Using reflection to apply optional parameters to the request.
        ///
        /// If the optonal parameters are null then we will just return the request as is.
        /// </summary>
        /// <param name="request">The request. </param>
        /// <param name="optional">The optional parameters. </param>
        /// <returns></returns>
        public static object ApplyOptionalParms(object request, object optional)
        {
            if (optional == null)
                return request;

            System.Reflection.PropertyInfo[] optionalProperties = (optional.GetType()).GetProperties();

            foreach (System.Reflection.PropertyInfo property in optionalProperties)
            {
                // Copy value from optional parms to the request.  They should have the same names and datatypes.
                System.Reflection.PropertyInfo piShared = (request.GetType()).GetProperty(property.Name);
				if (property.GetValue(optional, null) != null) // TODO Test that we do not add values for items that are null
					piShared.SetValue(request, property.GetValue(optional, null), null);
            }

            return request;
        }
    }
}

{'repo_name': 'LindaLawton/Google-Dotnet-Samples', 'stars': '205', 'repo_language': 'None', 'file_name': 'README.md', 'mime_type': 'text/plain', 'hash': -7487944964531198266, 'source_dataset': 'data'}


Cache-Control: private, max-age=0
Content-Length: 10794
Content-Security-Policy: script-src 'report-sample' 'nonce-6V3KUQvG4qD4S35ExpJ7cHnhROs' 'unsafe-inline' 'strict-dynamic' https: http: 'unsafe-eval';object-src 'none';base-uri 'self';worker-src 'self';report-uri https://csp.withgoogle.com/csp/corplogin/1
Content-Type: text/html; charset=UTF-8
Date: Fri, 06 Oct 2017 01:16:46 GMT
Expires: Fri, 06 Oct 2017 01:16:46 GMT
P3p: CP="The P3P policy for this service is commensurate with internal security policy guidelines."
Server: GSE
Set-Cookie: gnubbyCookie=true;Path=/;Expires=Sun, 06-Oct-2019 01:16:46 GMT LOGINDONE=; Expires=Thu, 05-Oct-2017 01:16:46 GMT; Path=/; Secure x=EXPIRED;Domain=login.corp.google.com;Path=/;Expires=Mon, 01-Jan-1990 00:00:00 GMT;Secure x=x:ChgIvfCAs5X89d8HEKavhvruKximr4b67isSGQBU15oim8B9mzONaK2opuJT2IR47B5qk1o;Path=/;Expires=Sun, 06-Oct-2019 01:16:46 GMT;Secure;HttpOnly S=sso=IoIq9z2zHa0hfOWtxMRUUUyY-0fbeJnc; Domain=.google.com; Path=/; Secure; HttpOnly; Priority=LOW
Status: 200
Strict-Transport-Security: max-age=7776000
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

{'repo_name': 'random-robbie/bugbounty-scans', 'stars': '229', 'repo_language': 'None', 'file_name': 'report_page_8.html', 'mime_type': 'text/html', 'hash': -4455370607549429019, 'source_dataset': 'data'}


/*
 [auto_generated]
 boost/numeric/odeint/integrate/integrate_times.hpp

 [begin_description]
 Integration of ODEs with observation at user defined points
 [end_description]

 Copyright 2011-2013 Karsten Ahnert
 Copyright 2011-2015 Mario Mulansky

 Distributed under the Boost Software License, Version 1.0.
 (See accompanying file LICENSE_1_0.txt or
 copy at http://www.boost.org/LICENSE_1_0.txt)
 */

#ifndef BOOST_NUMERIC_ODEINT_INTEGRATE_INTEGRATE_TIMES_HPP_INCLUDED
#define BOOST_NUMERIC_ODEINT_INTEGRATE_INTEGRATE_TIMES_HPP_INCLUDED

#include <boost/type_traits/is_same.hpp>

#include <boost/range.hpp>

#include <boost/numeric/odeint/stepper/stepper_categories.hpp>
#include <boost/numeric/odeint/integrate/null_observer.hpp>
#include <boost/numeric/odeint/integrate/check_adapter.hpp>
#include <boost/numeric/odeint/integrate/detail/integrate_times.hpp>

namespace boost {
namespace numeric {
namespace odeint {

/*
 * \brief Integrates while calling the observer at the time points given by sequence [times_start, time_end)
 * the two overloads are needed in order to solve the forwarding problem
 */
template< class Stepper , class System , class State , class TimeIterator , class Time , class Observer , class StepOverflowChecker >
size_t integrate_times(
        Stepper stepper , System system , State &start_state ,
        TimeIterator times_start , TimeIterator times_end , Time dt ,
        Observer observer , StepOverflowChecker checker )
{
    // unwrap references
    typedef typename odeint::unwrap_reference< Stepper >::type stepper_type;
    typedef typename odeint::unwrap_reference< Observer >::type observer_type;
    typedef typename odeint::unwrap_reference< StepOverflowChecker >::type checker_type;
    typedef typename stepper_type::stepper_category stepper_category;

    // pass on checked stepper and observer
    // checked_stepper/observer use references internally, so passing by value is fine
    return detail::integrate_times(
            checked_stepper<stepper_type, checker_type>(stepper, checker) ,
            system , start_state ,
            times_start , times_end , dt ,
            checked_observer<observer_type, checker_type>(observer, checker),
            stepper_category() );
}

/**
 * \brief Solves the forwarding problem, can be called with Boost.Range as start_state.
 */
template< class Stepper , class System , class State , class TimeIterator , class Time , class Observer , class StepOverflowChecker >
size_t integrate_times(
        Stepper stepper , System system , const State &start_state ,
        TimeIterator times_start , TimeIterator times_end , Time dt ,
        Observer observer , StepOverflowChecker checker )
{
    typedef typename odeint::unwrap_reference< Stepper >::type stepper_type;
    typedef typename odeint::unwrap_reference< Observer >::type observer_type;
    typedef typename odeint::unwrap_reference< StepOverflowChecker >::type checker_type;
    typedef typename stepper_type::stepper_category stepper_category;

    stepper_type &st = stepper;
    observer_type &obs = observer;
    checker_type &chk = checker;

    return detail::integrate_times(
            checked_stepper<stepper_type, checker_type>(stepper, checker) ,
            system , start_state ,
            times_start , times_end , dt ,
            checked_observer<observer_type, checker_type>(observer, checker),
            stepper_category() );
}

/**
 * \brief The same function as above, but with the observation times given as range.
 */
template< class Stepper , class System , class State , class TimeRange , class Time , class Observer , class StepOverflowChecker >
size_t integrate_times(
        Stepper stepper , System system , State &start_state ,
        const TimeRange &times , Time dt ,
        Observer observer , StepOverflowChecker checker )
{
    return integrate_times(
            stepper , system , start_state ,
            boost::begin( times ) , boost::end( times ) , dt , observer , checker );
}

/**
 * \brief Solves the forwarding problem, can be called with Boost.Range as start_state.
 */
template< class Stepper , class System , class State , class TimeRange , class Time , class Observer , class StepOverflowChecker >
size_t integrate_times(
        Stepper stepper , System system , const State &start_state ,
        const TimeRange &times , Time dt ,
        Observer observer , StepOverflowChecker checker )
{
    return integrate_times(
            stepper , system , start_state ,
            boost::begin( times ) , boost::end( times ) , dt , observer , checker );
}

/*
* The same functions as above, but without a StepOverflowChecker
*/
template< class Stepper , class System , class State , class TimeIterator , class Time , class Observer >
size_t integrate_times(
        Stepper stepper , System system , State &start_state ,
        TimeIterator times_start , TimeIterator times_end , Time dt ,
        Observer observer )
{
    typedef typename odeint::unwrap_reference< Stepper >::type::stepper_category stepper_category;
    // simply don't use checked_* adapters
    return detail::integrate_times(
            stepper , system , start_state ,
            times_start , times_end , dt ,
            observer , stepper_category() );
}

/**
* \brief Solves the forwarding problem, can be called with Boost.Range as start_state.
*/
template< class Stepper , class System , class State , class TimeIterator , class Time , class Observer >
size_t integrate_times(
        Stepper stepper , System system , const State &start_state ,
        TimeIterator times_start , TimeIterator times_end , Time dt ,
        Observer observer )
{
    typedef typename odeint::unwrap_reference< Stepper >::type::stepper_category stepper_category;
    return detail::integrate_times(
            stepper , system , start_state ,
            times_start , times_end , dt ,
            observer , stepper_category() );
}

/**
* \brief The same function as above, but with the observation times given as range.
*/
template< class Stepper , class System , class State , class TimeRange , class Time , class Observer >
size_t integrate_times(
        Stepper stepper , System system , State &start_state ,
        const TimeRange &times , Time dt ,
        Observer observer )
{
    return integrate_times(
            stepper , system , start_state ,
            boost::begin( times ) , boost::end( times ) , dt , observer );
}

/**
* \brief Solves the forwarding problem, can be called with Boost.Range as start_state.
*/
template< class Stepper , class System , class State , class TimeRange , class Time , class Observer >
size_t integrate_times(
        Stepper stepper , System system , const State &start_state ,
        const TimeRange &times , Time dt ,
        Observer observer )
{
    return integrate_times(
            stepper , system , start_state ,
            boost::begin( times ) , boost::end( times ) , dt , observer);
}

/********* DOXYGEN ***********/

    /**
     * \fn size_t integrate_times( Stepper stepper , System system , State &start_state , TimeIterator times_start , TimeIterator times_end , Time dt , Observer observer )
     * \brief Integrates the ODE with observer calls at given time points.
     *
     * Integrates the ODE given by system using the given stepper. This function
     * does observer calls at the subsequent time points given by the range
     * times_start, times_end. If the stepper has not step size control, the
     * step size might be reduced occasionally to ensure observer calls exactly
     * at the time points from the given sequence. If the stepper is a
     * ControlledStepper, the step size is adjusted to meet the error bounds,
     * but also might be reduced occasionally to ensure correct observer calls.
     * If a DenseOutputStepper is provided, the dense output functionality is
     * used to call the observer at the given times. The end time of the
     * integration is always *(end_time-1).
     * If a max_step_checker is provided as StepOverflowChecker, a
     * no_progress_error is thrown if too many steps (default: 500) are
     * performed without progress, i.e. in between observer calls. If no
     * checker is provided, no such overflow check is performed.
     *
     * \param stepper The stepper to be used for numerical integration.
     * \param system Function/Functor defining the rhs of the ODE.
     * \param start_state The initial condition x0.
     * \param times_start Iterator to the start time
     * \param times_end Iterator to the end time
     * \param dt The time step between observer calls, _not_ necessarily the
     * time step of the integration.
     * \param observer Function/Functor called at equidistant time intervals.
     * \param checker [optional] Functor to check for step count overflows, if no
     * checker is provided, no exception is thrown.
     * \return The number of steps performed.
     */

} // namespace odeint
} // namespace numeric
} // namespace boost

#endif // BOOST_NUMERIC_ODEINT_INTEGRATE_INTEGRATE_TIMES_HPP_INCLUDED

{'repo_name': 'fossephate/JoyCon-Driver', 'stars': '702', 'repo_language': 'C++', 'file_name': 'toolbar.h', 'mime_type': 'text/x-c++', 'hash': 6531069954277846898, 'source_dataset': 'data'}


/*
 *  Oki MSM6242 RTC Driver
 *
 *  Copyright 2009 Geert Uytterhoeven
 *
 *  Based on the A2000 TOD code in arch/m68k/amiga/config.c
 *  Copyright (C) 1993 Hamish Macdonald
 */

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/delay.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/slab.h>

enum {
	MSM6242_SECOND1		= 0x0,	/* 1-second digit register */
	MSM6242_SECOND10	= 0x1,	/* 10-second digit register */
	MSM6242_MINUTE1		= 0x2,	/* 1-minute digit register */
	MSM6242_MINUTE10	= 0x3,	/* 10-minute digit register */
	MSM6242_HOUR1		= 0x4,	/* 1-hour digit register */
	MSM6242_HOUR10		= 0x5,	/* PM/AM, 10-hour digit register */
	MSM6242_DAY1		= 0x6,	/* 1-day digit register */
	MSM6242_DAY10		= 0x7,	/* 10-day digit register */
	MSM6242_MONTH1		= 0x8,	/* 1-month digit register */
	MSM6242_MONTH10		= 0x9,	/* 10-month digit register */
	MSM6242_YEAR1		= 0xa,	/* 1-year digit register */
	MSM6242_YEAR10		= 0xb,	/* 10-year digit register */
	MSM6242_WEEK		= 0xc,	/* Week register */
	MSM6242_CD		= 0xd,	/* Control Register D */
	MSM6242_CE		= 0xe,	/* Control Register E */
	MSM6242_CF		= 0xf,	/* Control Register F */
};

#define MSM6242_HOUR10_AM	(0 << 2)
#define MSM6242_HOUR10_PM	(1 << 2)
#define MSM6242_HOUR10_HR_MASK	(3 << 0)

#define MSM6242_WEEK_SUNDAY	0
#define MSM6242_WEEK_MONDAY	1
#define MSM6242_WEEK_TUESDAY	2
#define MSM6242_WEEK_WEDNESDAY	3
#define MSM6242_WEEK_THURSDAY	4
#define MSM6242_WEEK_FRIDAY	5
#define MSM6242_WEEK_SATURDAY	6

#define MSM6242_CD_30_S_ADJ	(1 << 3)	/* 30-second adjustment */
#define MSM6242_CD_IRQ_FLAG	(1 << 2)
#define MSM6242_CD_BUSY		(1 << 1)
#define MSM6242_CD_HOLD		(1 << 0)

#define MSM6242_CE_T_MASK	(3 << 2)
#define MSM6242_CE_T_64HZ	(0 << 2)	/* period 1/64 second */
#define MSM6242_CE_T_1HZ	(1 << 2)	/* period 1 second */
#define MSM6242_CE_T_1MINUTE	(2 << 2)	/* period 1 minute */
#define MSM6242_CE_T_1HOUR	(3 << 2)	/* period 1 hour */

#define MSM6242_CE_ITRPT_STND	(1 << 1)
#define MSM6242_CE_MASK		(1 << 0)	/* STD.P output control */

#define MSM6242_CF_TEST		(1 << 3)
#define MSM6242_CF_12H		(0 << 2)
#define MSM6242_CF_24H		(1 << 2)
#define MSM6242_CF_STOP		(1 << 1)
#define MSM6242_CF_REST		(1 << 0)	/* reset */

struct msm6242_priv {
	u32 __iomem *regs;
	struct rtc_device *rtc;
};

static inline unsigned int msm6242_read(struct msm6242_priv *priv,
				       unsigned int reg)
{
	return __raw_readl(&priv->regs[reg]) & 0xf;
}

static inline void msm6242_write(struct msm6242_priv *priv, unsigned int val,
				unsigned int reg)
{
	__raw_writel(val, &priv->regs[reg]);
}

static inline void msm6242_set(struct msm6242_priv *priv, unsigned int val,
			       unsigned int reg)
{
	msm6242_write(priv, msm6242_read(priv, reg) | val, reg);
}

static inline void msm6242_clear(struct msm6242_priv *priv, unsigned int val,
				 unsigned int reg)
{
	msm6242_write(priv, msm6242_read(priv, reg) & ~val, reg);
}

static void msm6242_lock(struct msm6242_priv *priv)
{
	int cnt = 5;

	msm6242_set(priv, MSM6242_CD_HOLD, MSM6242_CD);

	while ((msm6242_read(priv, MSM6242_CD) & MSM6242_CD_BUSY) && cnt) {
		msm6242_clear(priv, MSM6242_CD_HOLD, MSM6242_CD);
		udelay(70);
		msm6242_set(priv, MSM6242_CD_HOLD, MSM6242_CD);
		cnt--;
	}

	if (!cnt)
		pr_warn("timed out waiting for RTC (0x%x)\n",
			msm6242_read(priv, MSM6242_CD));
}

static void msm6242_unlock(struct msm6242_priv *priv)
{
	msm6242_clear(priv, MSM6242_CD_HOLD, MSM6242_CD);
}

static int msm6242_read_time(struct device *dev, struct rtc_time *tm)
{
	struct msm6242_priv *priv = dev_get_drvdata(dev);

	msm6242_lock(priv);

	tm->tm_sec  = msm6242_read(priv, MSM6242_SECOND10) * 10 +
		      msm6242_read(priv, MSM6242_SECOND1);
	tm->tm_min  = msm6242_read(priv, MSM6242_MINUTE10) * 10 +
		      msm6242_read(priv, MSM6242_MINUTE1);
	tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10 & 3)) * 10 +
		      msm6242_read(priv, MSM6242_HOUR1);
	tm->tm_mday = msm6242_read(priv, MSM6242_DAY10) * 10 +
		      msm6242_read(priv, MSM6242_DAY1);
	tm->tm_wday = msm6242_read(priv, MSM6242_WEEK);
	tm->tm_mon  = msm6242_read(priv, MSM6242_MONTH10) * 10 +
		      msm6242_read(priv, MSM6242_MONTH1) - 1;
	tm->tm_year = msm6242_read(priv, MSM6242_YEAR10) * 10 +
		      msm6242_read(priv, MSM6242_YEAR1);
	if (tm->tm_year <= 69)
		tm->tm_year += 100;

	if (!(msm6242_read(priv, MSM6242_CF) & MSM6242_CF_24H)) {
		unsigned int pm = msm6242_read(priv, MSM6242_HOUR10) &
				  MSM6242_HOUR10_PM;
		if (!pm && tm->tm_hour == 12)
			tm->tm_hour = 0;
		else if (pm && tm->tm_hour != 12)
			tm->tm_hour += 12;
	}

	msm6242_unlock(priv);

	return rtc_valid_tm(tm);
}

static int msm6242_set_time(struct device *dev, struct rtc_time *tm)
{
	struct msm6242_priv *priv = dev_get_drvdata(dev);

	msm6242_lock(priv);

	msm6242_write(priv, tm->tm_sec / 10, MSM6242_SECOND10);
	msm6242_write(priv, tm->tm_sec % 10, MSM6242_SECOND1);
	msm6242_write(priv, tm->tm_min / 10, MSM6242_MINUTE10);
	msm6242_write(priv, tm->tm_min % 10, MSM6242_MINUTE1);
	if (msm6242_read(priv, MSM6242_CF) & MSM6242_CF_24H)
		msm6242_write(priv, tm->tm_hour / 10, MSM6242_HOUR10);
	else if (tm->tm_hour >= 12)
		msm6242_write(priv, MSM6242_HOUR10_PM + (tm->tm_hour - 12) / 10,
			      MSM6242_HOUR10);
	else
		msm6242_write(priv, tm->tm_hour / 10, MSM6242_HOUR10);
	msm6242_write(priv, tm->tm_hour % 10, MSM6242_HOUR1);
	msm6242_write(priv, tm->tm_mday / 10, MSM6242_DAY10);
	msm6242_write(priv, tm->tm_mday % 10, MSM6242_DAY1);
	if (tm->tm_wday != -1)
		msm6242_write(priv, tm->tm_wday, MSM6242_WEEK);
	msm6242_write(priv, (tm->tm_mon + 1) / 10, MSM6242_MONTH10);
	msm6242_write(priv, (tm->tm_mon + 1) % 10, MSM6242_MONTH1);
	if (tm->tm_year >= 100)
		tm->tm_year -= 100;
	msm6242_write(priv, tm->tm_year / 10, MSM6242_YEAR10);
	msm6242_write(priv, tm->tm_year % 10, MSM6242_YEAR1);

	msm6242_unlock(priv);
	return 0;
}

static const struct rtc_class_ops msm6242_rtc_ops = {
	.read_time	= msm6242_read_time,
	.set_time	= msm6242_set_time,
};

static int __init msm6242_rtc_probe(struct platform_device *pdev)
{
	struct resource *res;
	struct msm6242_priv *priv;
	struct rtc_device *rtc;

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	if (!res)
		return -ENODEV;

	priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
	if (!priv)
		return -ENOMEM;

	priv->regs = devm_ioremap(&pdev->dev, res->start, resource_size(res));
	if (!priv->regs)
		return -ENOMEM;
	platform_set_drvdata(pdev, priv);

	rtc = devm_rtc_device_register(&pdev->dev, "rtc-msm6242",
				&msm6242_rtc_ops, THIS_MODULE);
	if (IS_ERR(rtc))
		return PTR_ERR(rtc);

	priv->rtc = rtc;
	return 0;
}

static struct platform_driver msm6242_rtc_driver = {
	.driver	= {
		.name	= "rtc-msm6242",
	},
};

module_platform_driver_probe(msm6242_rtc_driver, msm6242_rtc_probe);

MODULE_AUTHOR("Geert Uytterhoeven <geert@linux-m68k.org>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Oki MSM6242 RTC driver");
MODULE_ALIAS("platform:rtc-msm6242");

{'repo_name': 'TinkerBoard/debian_kernel', 'stars': '119', 'repo_language': 'C', 'file_name': 'phy.c', 'mime_type': 'text/x-c', 'hash': -4068672072707835229, 'source_dataset': 'data'}


<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    tools:context="com.example.administrator.myapplication.MainActivity">
    <item android:id="@+id/action_settings" android:title="@string/action_settings"
        android:orderInCategory="100" app:showAsAction="never" />
</menu>

{'repo_name': '835127729/ViewExplosion', 'stars': '267', 'repo_language': 'Java', 'file_name': 'ApplicationTest.java', 'mime_type': 'text/html', 'hash': -1412560688322262328, 'source_dataset': 'data'}


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeetupManager.Analysis", "MeetupManager.Analysis\MeetupManager.Analysis.csproj", "{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeetupManager.Droid", "MeetupManager.Droid\MeetupManager.Droid.csproj", "{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeetupManager.Portable", "MeetupManager.Portable\MeetupManager.Portable.csproj", "{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeetupManager.iOS", "MeetupManager.iOS\MeetupManager.iOS.csproj", "{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeetupManager.UITests", "MeetupManager.UITests\MeetupManager.UITests.csproj", "{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
		Debug|iPhoneSimulator = Debug|iPhoneSimulator
		Release|iPhoneSimulator = Release|iPhoneSimulator
		Debug|iPhone = Debug|iPhone
		Release|iPhone = Release|iPhone
		Ad-Hoc|iPhone = Ad-Hoc|iPhone
		AppStore|iPhone = AppStore|iPhone
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.AppStore|iPhone.Build.0 = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Debug|iPhone.ActiveCfg = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Debug|iPhone.Build.0 = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Release|Any CPU.Build.0 = Release|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Release|iPhone.ActiveCfg = Release|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Release|iPhone.Build.0 = Release|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
		{08ABF7C5-8E9A-431A-8F7E-F4D95B44C5FA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.AppStore|iPhone.Build.0 = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Debug|iPhone.ActiveCfg = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Debug|iPhone.Build.0 = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Release|Any CPU.Build.0 = Release|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Release|iPhone.ActiveCfg = Release|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Release|iPhone.Build.0 = Release|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
		{9189A7F8-9C9C-427D-9777-AA6B8CD7DF20}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.AppStore|iPhone.Build.0 = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Debug|iPhone.ActiveCfg = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Debug|iPhone.Build.0 = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Release|Any CPU.Build.0 = Release|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Release|iPhone.ActiveCfg = Release|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Release|iPhone.Build.0 = Release|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
		{B5CE74CA-2012-4AE3-81CF-0552B93F33AF}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.AppStore|iPhone.Build.0 = AppStore|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Debug|iPhone.ActiveCfg = Debug|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Debug|iPhone.Build.0 = Debug|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Release|iPhone.ActiveCfg = Release|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Release|iPhone.Build.0 = Release|iPhone
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
		{C3C5A689-4BF8-4CED-87E0-0FF2EE200219}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.AppStore|iPhone.ActiveCfg = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.AppStore|iPhone.Build.0 = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Debug|iPhone.ActiveCfg = Debug|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Debug|iPhone.Build.0 = Debug|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Release|Any CPU.Build.0 = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Release|iPhone.ActiveCfg = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Release|iPhone.Build.0 = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
		{FDD2BAFE-F172-4FF6-86AD-CD7A217CDBCB}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(MonoDevelopProperties) = preSolution
		Policies = $0
		$0.TextStylePolicy = $1
		$1.inheritsSet = VisualStudio
		$1.inheritsScope = text/plain
		$1.scope = text/x-csharp
		$0.CSharpFormattingPolicy = $2
		$2.IndentSwitchBody = True
		$2.IndentBlocksInsideExpressions = True
		$2.AnonymousMethodBraceStyle = NextLine
		$2.PropertyBraceStyle = NextLine
		$2.PropertyGetBraceStyle = NextLine
		$2.PropertySetBraceStyle = NextLine
		$2.EventBraceStyle = NextLine
		$2.EventAddBraceStyle = NextLine
		$2.EventRemoveBraceStyle = NextLine
		$2.StatementBraceStyle = NextLine
		$2.ElseNewLinePlacement = NewLine
		$2.CatchNewLinePlacement = NewLine
		$2.FinallyNewLinePlacement = NewLine
		$2.WhileNewLinePlacement = DoNotCare
		$2.ArrayInitializerWrapping = DoNotChange
		$2.ArrayInitializerBraceStyle = NextLine
		$2.BeforeMethodDeclarationParentheses = False
		$2.BeforeMethodCallParentheses = False
		$2.BeforeConstructorDeclarationParentheses = False
		$2.NewLineBeforeConstructorInitializerColon = NewLine
		$2.NewLineAfterConstructorInitializerColon = SameLine
		$2.BeforeDelegateDeclarationParentheses = False
		$2.NewParentheses = False
		$2.SpacesBeforeBrackets = False
		$2.inheritsSet = Mono
		$2.inheritsScope = text/x-csharp
		$2.scope = text/x-csharp
	EndGlobalSection
EndGlobal

{'repo_name': 'jamesmontemagno/MeetupManager', 'stars': '149', 'repo_language': 'C#', 'file_name': 'AssemblyInfo.cs', 'mime_type': 'text/plain', 'hash': 7628749074689081110, 'source_dataset': 'data'}


fileFormatVersion: 2
guid: 30d75a0a4e46fbaa3a1e7af84ce30670
folderAsset: yes
DefaultImporter:
  externalObjects: {}
  userData:
  assetBundleName:
  assetBundleVariant:

{'repo_name': 'sebastianstarke/AI4Animation', 'stars': '3141', 'repo_language': 'C++', 'file_name': 'ProjectVersion.txt', 'mime_type': 'text/plain', 'hash': -7441136291885788221, 'source_dataset': 'data'}


#title: 2D test Ex, Hy, Hz components
#domain: 0.001 0.100 0.100
#dx_dy_dz: 0.001 0.001 0.001
#time_window: 3e-9

#waveform: gaussiandot 1 1e9 myWave
#hertzian_dipole: x 0 0.050 0.050 myWave
#rx: 0 0.070 0.070

{'repo_name': 'gprMax/gprMax', 'stars': '199', 'repo_language': 'Python', 'file_name': 'project-ideas-2019.md', 'mime_type': 'text/plain', 'hash': 8302188511779079133, 'source_dataset': 'data'}


Redis Data Store
================

.. note::

    GeoMesa currently supports Redis version |redis_version|.

The GeoMesa Redis Data Store is an implementation of the GeoTools ``DataStore`` interface that is backed
by `Redis <https://redis.io/>`__. It is found in the ``geomesa-redis`` directory of the GeoMesa
source distribution.

.. pull-quote::

    Redis is an open source, in-memory data structure store, used as a database, cache and message broker.

Because Redis keeps everything in memory, it is extremely fast. However, it is generally not feasible to use for
very large data sets due to the hardware requirements. The Redis Data Store is a good choice for storing
the current state of a streaming set of features, or as part of a tiered storage architecture for high access
data, but not necessarily for long-term historical data.

To get started with the Redis Data Store, try the :doc:`/tutorials/geomesa-quickstart-redis` tutorial.

.. toctree::
    :maxdepth: 1

    install
    usage
    geoserver
    commandline
    configuration
    index_config

{'repo_name': 'locationtech/geomesa', 'stars': '924', 'repo_language': 'Scala', 'file_name': 'LeafletTest.scala', 'mime_type': 'text/plain', 'hash': -4948868715070127590, 'source_dataset': 'data'}


.. _example_coil_design_application:

Coil design application example
--------------------------------------------

An full-blown application demoing a domain-specific usecase with Mayavi:
interactive design of coils.

This is example of electromagnetic coils design, an application is built to
enable a user to interactively position current loops while visualizing the
resulting magnetic field. For this purpose, it is best to use object-oriented
programming. Each current loop is written as an object (the `Loop` class), with
position, radius and direction attributes, and that knows how to calculate the
magnetic field it generates: its `Bnorm` is a property, that is recomputed when
the loop characteristic changes. These loop objects are available to the main
application class as a list. The total magnetic field created is the sum of
each individual magnetic field. It can be visualized via a Mayavi scene
embedded in the application class. As we use Traited objects for the current
loops, a dialog enabling modification of their attributes can be generated by
Traits and embedded in our application.

The full power of Mayavi is available to the application. Via the pipeline tree
view, the user can modify the visualization. Familiar interaction and movements
are possible in the figure. So is saving the visualization, or loading data. In
addition, as the visualization model, described by the pipeline, is separated
from the data that is visualized, contained in the data source, any
visualization module added by the user will update when coils are added or
changed.

Simpler examples of magnetic field visualization can be found on
:ref:`example_magnetic_field_lines` and :ref:`example_magnetic_field`.
The material required to understand this example is covered in section
:ref:`builing_applications`.

**Python source code:** :download:`coil_design_application.py`

.. literalinclude:: coil_design_application.py
    :lines: 32-

{'repo_name': 'enthought/mayavi', 'stars': '744', 'repo_language': 'Python', 'file_name': 'mayavi_ui_plugin.py', 'mime_type': 'text/x-python', 'hash': 1202806807374834319, 'source_dataset': 'data'}


from typing import Any

import gevent
from gevent.event import AsyncResult

from raiden.utils.runnable import Runnable

class RunnableTest(Runnable):
    def __init__(self):
        super().__init__()

    def start(self):
        self._stop_event = AsyncResult()
        super().start()

    def _run(self, *args: Any, **kwargs: Any) -> None:
        while self._stop_event and self._stop_event.wait(0.5) is not True:
            gevent.sleep(0.1)
        return

    def stop(self):
        if self._stop_event:
            self._stop_event.set(True)

def test_runnable_and_gevent_join_all():
    """Test that runnable adheres to the greenlet interface for gevent.joinall()

    Regression test for https://github.com/raiden-network/raiden/issues/5327
    """
    a = RunnableTest()
    a.start()
    a.stop()
    gevent.joinall({a}, raise_error=True)

{'repo_name': 'raiden-network/raiden', 'stars': '1765', 'repo_language': 'Python', 'file_name': 'config.yml', 'mime_type': 'text/plain', 'hash': 8630363031407259194, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
        android:width="24dp"
        android:height="24dp"
        android:viewportHeight="24"
        android:viewportWidth="24">

    <path
        android:fillAlpha=".1"
        android:pathData="M0,0 L24,0 L24,24 L0,24 Z"
        android:strokeAlpha=".1"/>
    <path
        android:fillColor="@android:color/darker_gray"
        android:pathData="M12,1 C7.03000020981,1,3,5.03000020981,3,10 L3,17
C3,18.6599998474,4.34000015259,20,6,20 L9,20 L9,12 L5,12 L5,10
C5,6.13000011444,8.13000011444,3,12,3 S19,6.13000011444,19,10 L19,12 L15,12
L15,20 L19,20 L19,21 L12,21 L12,23 L18,23
C19.6599998474,23,21,21.6599998474,21,20 L21,10
C21,5.03000020981,16.9699993134,1,12,1 Z"/>
</vector>

{'repo_name': 'substratum/template', 'stars': '237', 'repo_language': 'Kotlin', 'file_name': 'ic_launcher_round.xml', 'mime_type': 'text/xml', 'hash': -8051171707261992224, 'source_dataset': 'data'}


package org.jetbrains.kotlin.gradle.internal.testing.tcsmc

import jetbrains.buildServer.messages.serviceMessages.*
import org.junit.Test

class Complex : TCServiceMessagesClientTest() {
    @Test
    fun testComplexJs() {
        rootNodeName = "jsTest"

        assertEvents(
            """
STARTED SUITE jsTest // jsTest
  STARTED SUITE my.company.product.MyTest // jsTest//my/company/product/MyTest
    STARTED TEST displayName: myTest1, classDisplayName: MyTest, className: my.company.product.MyTest, name: myTest1 // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest1
    COMPLETED SUCCESS // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest1
    STARTED TEST displayName: myTest2, classDisplayName: MyTest, className: my.company.product.MyTest, name: myTest2 // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest2
      FAILURE  // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest2
    COMPLETED FAILURE // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest2
    STARTED TEST displayName: myTest3, classDisplayName: MyTest, className: my.company.product.MyTest, name: myTest3 // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest3
    COMPLETED SKIPPED // jsTest//my/company/product/MyTest/my.company.product.MyTest.myTest3
    STARTED SUITE my.company.product.MyTest.MyTestNested // jsTest//my/company/product/MyTest/MyTestNested
      STARTED TEST displayName: myTest4, classDisplayName: MyTestNested, className: my.company.product.MyTest.MyTestNested, name: myTest4 // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest4
      COMPLETED SUCCESS // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest4
      STARTED TEST displayName: myTest5, classDisplayName: MyTestNested, className: my.company.product.MyTest.MyTestNested, name: myTest5 // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest5
        FAILURE  // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest5
      COMPLETED FAILURE // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest5
      STARTED TEST displayName: myTest6, classDisplayName: MyTestNested, className: my.company.product.MyTest.MyTestNested, name: myTest6 // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest6
      COMPLETED SKIPPED // jsTest//my/company/product/MyTest/MyTestNested/my.company.product.MyTest.MyTestNested.myTest6
      STARTED SUITE my.company.product.MyTest.MyTestNested.MyTestNestedNested // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested
        STARTED TEST displayName: myTest7, classDisplayName: MyTestNestedNested, className: my.company.product.MyTest.MyTestNestedNested, name: myTest7 // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest7
        COMPLETED SUCCESS // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest7
        STARTED TEST displayName: myTest8, classDisplayName: MyTestNestedNested, className: my.company.product.MyTest.MyTestNestedNested, name: myTest8 // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest8
          FAILURE  // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest8
        COMPLETED FAILURE // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest8
        STARTED TEST displayName: myTest9, classDisplayName: MyTestNestedNested, className: my.company.product.MyTest.MyTestNestedNested, name: myTest9 // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest9
        COMPLETED SKIPPED // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest9
      COMPLETED FAILURE // jsTest//my/company/product/MyTest/MyTestNested/MyTestNestedNested
    COMPLETED FAILURE // jsTest//my/company/product/MyTest/MyTestNested
  COMPLETED FAILURE // jsTest//my/company/product/MyTest
  STARTED SUITE my.company.product.MyTest2 // jsTest//my/company/product/MyTest2
    STARTED TEST displayName: myTest10, classDisplayName: MyTest2, className: my.company.product.MyTest2, name: myTest10 // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest10
    COMPLETED SUCCESS // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest10
    STARTED TEST displayName: myTest11, classDisplayName: MyTest2, className: my.company.product.MyTest2, name: myTest11 // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest11
      FAILURE  // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest11
    COMPLETED FAILURE // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest11
    STARTED TEST displayName: myTest12, classDisplayName: MyTest2, className: my.company.product.MyTest2, name: myTest12 // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest12
    COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/my.company.product.MyTest2.myTest12
    STARTED SUITE my.company.product.MyTest2.MyTest2Nested // jsTest//my/company/product/MyTest2/MyTest2Nested
      STARTED TEST displayName: myTest13, classDisplayName: MyTestNested, className: my.company.product.MyTest2.MyTestNested, name: myTest13 // jsTest//my/company/product/MyTest2/MyTest2Nested/my.company.product.MyTest2.MyTestNested.myTest13
      COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/my.company.product.MyTest2.MyTestNested.myTest13
      STARTED TEST displayName: myTest14, classDisplayName: MyTestNested, className: my.company.product.MyTest2.MyTestNested, name: myTest14 // jsTest//my/company/product/MyTest2/MyTest2Nested/my.company.product.MyTest2.MyTestNested.myTest14
      COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/my.company.product.MyTest2.MyTestNested.myTest14
      STARTED TEST displayName: myTest15, classDisplayName: MyTestNested, className: my.company.product.MyTest2.MyTestNested, name: myTest15 // jsTest//my/company/product/MyTest2/MyTest2Nested/my.company.product.MyTest2.MyTestNested.myTest15
      COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/my.company.product.MyTest2.MyTestNested.myTest15
      STARTED SUITE my.company.product.MyTest2.MyTest2Nested.MyTest2NestedNested // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested
        STARTED TEST displayName: myTest16, classDisplayName: MyTest2NestedNested, className: my.company.product.MyTest2.MyTest2NestedNested, name: myTest16 // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested/my.company.product.MyTest2.MyTest2NestedNested.myTest16
        COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested/my.company.product.MyTest2.MyTest2NestedNested.myTest16
        STARTED TEST displayName: myTest17, classDisplayName: MyTest2NestedNested, className: my.company.product.MyTest2.MyTest2NestedNested, name: myTest17 // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested/my.company.product.MyTest2.MyTest2NestedNested.myTest17
        COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested/my.company.product.MyTest2.MyTest2NestedNested.myTest17
        STARTED TEST displayName: myTest18, classDisplayName: MyTest2NestedNested, className: my.company.product.MyTest2.MyTest2NestedNested, name: myTest18 // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested/my.company.product.MyTest2.MyTest2NestedNested.myTest18
        COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested/my.company.product.MyTest2.MyTest2NestedNested.myTest18
      COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested/MyTest2NestedNested
    COMPLETED SKIPPED // jsTest//my/company/product/MyTest2/MyTest2Nested
  COMPLETED FAILURE // jsTest//my/company/product/MyTest2
COMPLETED FAILURE // jsTest
            """.trimIndent()
        ) {
            serviceMessage(TestSuiteStarted(""))
            serviceMessage(TestSuiteStarted("my"))
            serviceMessage(TestSuiteStarted("company"))
            serviceMessage(TestSuiteStarted("product"))

            /**/serviceMessage(TestSuiteStarted("MyTest"))
            /**/serviceMessage(TestStarted("my.company.product.MyTest.myTest1", false, null))
            /**/serviceMessage(TestFinished("my.company.product.MyTest.myTest1", 1))
            /**/serviceMessage(TestStarted("my.company.product.MyTest.myTest2", false, null))
            /**/serviceMessage(TestFailed("my.company.product.MyTest.myTest2", null as Throwable?))
            /**/serviceMessage(TestFinished("my.company.product.MyTest.myTest2", 1))
            /**/serviceMessage(TestIgnored("my.company.product.MyTest.myTest3", ""))
            /**/serviceMessage(TestSuiteStarted("MyTestNested"))
            /**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNested.myTest4", false, null))
            /**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNested.myTest4", 1))
            /**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNested.myTest5", false, null))
            /**//**/serviceMessage(TestFailed("my.company.product.MyTest.MyTestNested.myTest5", null as Throwable?))
            /**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNested.myTest5", 1))
            /**//**/serviceMessage(TestIgnored("my.company.product.MyTest.MyTestNested.myTest6", ""))
            /**//**/serviceMessage(TestSuiteStarted("MyTestNestedNested"))
            /**//**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNestedNested.myTest7", false, null))
            /**//**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNestedNested.myTest7", 1))
            /**//**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNestedNested.myTest8", false, null))
            /**//**//**/serviceMessage(TestFailed("my.company.product.MyTest.MyTestNestedNested.myTest8", null as Throwable?))
            /**//**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNestedNested.myTest8", 1))
            /**//**//**/serviceMessage(TestIgnored("my.company.product.MyTest.MyTestNestedNested.myTest9", ""))
            /**//**/serviceMessage(TestSuiteFinished("MyTestNestedNested"))
            /**/serviceMessage(TestSuiteFinished("MyTestNested"))
            serviceMessage(TestSuiteFinished("MyTest"))

            serviceMessage(TestSuiteStarted("MyTest2"))
            /**/serviceMessage(TestStarted("my.company.product.MyTest2.myTest10", false, null))
            /**/serviceMessage(TestFinished("my.company.product.MyTest2.myTest10", 1))
            /**/serviceMessage(TestStarted("my.company.product.MyTest2.myTest11", false, null))
            /**/serviceMessage(TestFailed("my.company.product.MyTest2.myTest11", null as Throwable?))
            /**/serviceMessage(TestFinished("my.company.product.MyTest2.myTest11", 1))
            /**/serviceMessage(TestIgnored("my.company.product.MyTest2.myTest12", ""))
            /**/serviceMessage(TestSuiteStarted("MyTest2Nested"))
            /**//**/serviceMessage(TestIgnored("my.company.product.MyTest2.MyTestNested.myTest13", ""))
            /**//**/serviceMessage(TestIgnored("my.company.product.MyTest2.MyTestNested.myTest14", ""))
            /**//**/serviceMessage(TestIgnored("my.company.product.MyTest2.MyTestNested.myTest15", ""))
            /**//**/serviceMessage(TestSuiteStarted("MyTest2NestedNested"))
            /**//**//**/serviceMessage(TestIgnored("my.company.product.MyTest2.MyTest2NestedNested.myTest16", ""))
            /**//**//**/serviceMessage(TestIgnored("my.company.product.MyTest2.MyTest2NestedNested.myTest17", ""))
            /**//**//**/serviceMessage(TestIgnored("my.company.product.MyTest2.MyTest2NestedNested.myTest18", ""))
            /**//**/serviceMessage(TestSuiteFinished("MyTest2NestedNested"))
            /**/serviceMessage(TestSuiteFinished("MyTest2Nested"))
            serviceMessage(TestSuiteFinished("MyTest2"))

            serviceMessage(TestSuiteFinished("product"))
            serviceMessage(TestSuiteFinished("company"))
            serviceMessage(TestSuiteFinished("my"))
            serviceMessage(TestSuiteFinished(""))
        }
    }

    @Test
    fun testComplexIos() {
        rootNodeName = "iosTest"

        assertEvents(
            """
STARTED SUITE iosTest // iosTest
  STARTED SUITE my.company.product.MyTest // iosTest/my.company.product.MyTest
    STARTED TEST displayName: myTest1, classDisplayName: MyTest, className: my.company.product.MyTest, name: myTest1 // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest1
    COMPLETED SUCCESS // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest1
    STARTED TEST displayName: myTest2, classDisplayName: MyTest, className: my.company.product.MyTest, name: myTest2 // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest2
      FAILURE  // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest2
    COMPLETED FAILURE // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest2
    STARTED TEST displayName: myTest3, classDisplayName: MyTest, className: my.company.product.MyTest, name: myTest3 // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest3
    COMPLETED SKIPPED // iosTest/my.company.product.MyTest/my.company.product.MyTest.myTest3
    STARTED SUITE my.company.product.MyTest.my.company.product.MyTest.MyTestNested // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested
      STARTED TEST displayName: myTest4, classDisplayName: MyTestNested, className: my.company.product.MyTest.MyTestNested, name: myTest4 // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest4
      COMPLETED SUCCESS // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest4
      STARTED TEST displayName: myTest5, classDisplayName: MyTestNested, className: my.company.product.MyTest.MyTestNested, name: myTest5 // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest5
        FAILURE  // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest5
      COMPLETED FAILURE // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest5
      STARTED TEST displayName: myTest6, classDisplayName: MyTestNested, className: my.company.product.MyTest.MyTestNested, name: myTest6 // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest6
      COMPLETED SKIPPED // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.myTest6
      STARTED SUITE my.company.product.MyTest.my.company.product.MyTest.MyTestNested.my.company.product.MyTest.MyTestNested.MyTestNestedNested // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested
        STARTED TEST displayName: myTest7, classDisplayName: MyTestNestedNested, className: my.company.product.MyTest.MyTestNestedNested, name: myTest7 // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest7
        COMPLETED SUCCESS // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest7
        STARTED TEST displayName: myTest8, classDisplayName: MyTestNestedNested, className: my.company.product.MyTest.MyTestNestedNested, name: myTest8 // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest8
          FAILURE  // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest8
        COMPLETED FAILURE // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest8
        STARTED TEST displayName: myTest9, classDisplayName: MyTestNestedNested, className: my.company.product.MyTest.MyTestNestedNested, name: myTest9 // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest9
        COMPLETED SKIPPED // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested/my.company.product.MyTest.MyTestNestedNested.myTest9
      COMPLETED FAILURE // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested/my.company.product.MyTest.MyTestNested.MyTestNestedNested
    COMPLETED FAILURE // iosTest/my.company.product.MyTest/my.company.product.MyTest.MyTestNested
  COMPLETED FAILURE // iosTest/my.company.product.MyTest
COMPLETED FAILURE // iosTest
            """.trimIndent()
        ) {
            serviceMessage(TestSuiteStarted("my.company.product.MyTest"))
            /**/serviceMessage(TestStarted("my.company.product.MyTest.myTest1", false, null))
            /**/serviceMessage(TestFinished("my.company.product.MyTest.myTest1", 1))
            /**/serviceMessage(TestStarted("my.company.product.MyTest.myTest2", false, null))
            /**/serviceMessage(TestFailed("my.company.product.MyTest.myTest2", null as Throwable?))
            /**/serviceMessage(TestFinished("my.company.product.MyTest.myTest2", 1))
            /**/serviceMessage(TestIgnored("my.company.product.MyTest.myTest3", ""))
            /**/serviceMessage(TestSuiteStarted("my.company.product.MyTest.MyTestNested"))
            /**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNested.myTest4", false, null))
            /**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNested.myTest4", 1))
            /**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNested.myTest5", false, null))
            /**//**/serviceMessage(TestFailed("my.company.product.MyTest.MyTestNested.myTest5", null as Throwable?))
            /**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNested.myTest5", 1))
            /**//**/serviceMessage(TestIgnored("my.company.product.MyTest.MyTestNested.myTest6", ""))
            /**//**/serviceMessage(TestSuiteStarted("my.company.product.MyTest.MyTestNested.MyTestNestedNested"))
            /**//**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNestedNested.myTest7", false, null))
            /**//**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNestedNested.myTest7", 1))
            /**//**//**/serviceMessage(TestStarted("my.company.product.MyTest.MyTestNestedNested.myTest8", false, null))
            /**//**//**/serviceMessage(TestFailed("my.company.product.MyTest.MyTestNestedNested.myTest8", null as Throwable?))
            /**//**//**/serviceMessage(TestFinished("my.company.product.MyTest.MyTestNestedNested.myTest8", 1))
            /**//**//**/serviceMessage(TestIgnored("my.company.product.MyTest.MyTestNestedNested.myTest9", ""))
            /**//**/serviceMessage(TestSuiteFinished("my.company.product.MyTest.MyTestNested.MyTestNestedNested"))
            /**/serviceMessage(TestSuiteFinished("my.company.product.MyTest.MyTestNested"))
            serviceMessage(TestSuiteFinished("my.company.product.MyTest"))
        }
    }

}

{'repo_name': 'JetBrains/kotlin', 'stars': '32558', 'repo_language': 'Kotlin', 'file_name': 'OptionalParameters1.kt', 'mime_type': 'text/plain', 'hash': 5881289096430074099, 'source_dataset': 'data'}


// RUN: %clang_cc1 -verify -fopenmp %s -Wno-openmp-target

// RUN: %clang_cc1 -verify -fopenmp-simd %s -Wno-openmp-target

void foo() {
}

bool foobool(int argc) {
  return argc;
}

struct S1; // expected-note 2 {{declared here}} expected-note 2 {{forward declaration of 'S1'}}
extern S1 a;
class S2 {
  mutable int a;

public:
  S2() : a(0) {}
  S2(S2 &s2) : a(s2.a) {}
  const S2 &operator =(const S2&) const;
  S2 &operator =(const S2&);
  static float S2s; // expected-note {{static data member is predetermined as shared}}
  static const float S2sc; // expected-note {{static data member is predetermined as shared}}
};
const float S2::S2sc = 0;
const S2 b;
const S2 ba[5];
class S3 {
  int a;
  S3 &operator=(const S3 &s3); // expected-note {{implicitly declared private here}}

public:
  S3() : a(0) {}
  S3(S3 &s3) : a(s3.a) {}
};
const S3 c;         // expected-note {{global variable is predetermined as shared}}
const S3 ca[5];     // expected-note {{global variable is predetermined as shared}}
extern const int f; // expected-note {{global variable is predetermined as shared}}
class S4 {
  int a;
  S4();             // expected-note 3 {{implicitly declared private here}}
  S4(const S4 &s4);

public:
  S4(int v) : a(v) {}
};
class S5 {
  int a;
  S5() : a(0) {} // expected-note {{implicitly declared private here}}

public:
  S5(const S5 &s5) : a(s5.a) {}
  S5(int v) : a(v) {}
};
class S6 {
  int a;
  S6() : a(0) {} // expected-note {{implicitly declared private here}}

public:
  S6(const S6 &s6) : a(s6.a) {}
  S6(int v) : a(v) {}
};

S3 h;
#pragma omp threadprivate(h) // expected-note 2 {{defined as threadprivate or thread local}}

template <class I, class C>
int foomain(int argc, char **argv) {
  I e(4);
  I g(5);
  int i;
  int &j = i;
#pragma omp target
#pragma omp teams distribute parallel for lastprivate // expected-error {{expected '(' after 'lastprivate'}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate() // expected-error {{expected expression}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc // expected-error {{expected ')'}} expected-note {{to match this '('}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc)
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(S1) // expected-error {{'S1' does not refer to a value}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(a, b) // expected-error {{lastprivate variable with incomplete type 'S1'}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argv[1]) // expected-error {{expected variable name}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(e, g) // expected-error 2 {{calling a private constructor of class 'S4'}}
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(h) // expected-error {{threadprivate or thread local variable cannot be lastprivate}}
  for (int k = 0; k < argc; ++k) ++k;

  int v = 0;
#pragma omp target
#pragma omp teams distribute parallel for lastprivate(i)
  for (int k = 0; k < argc; ++k) {
    i = k;
    v += i;
  }

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(j) private(i)
  for (int k = 0; k < argc; ++k) ++k;

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(i)
  for (int k = 0; k < argc; ++k) ++k;

  return 0;
}

void bar(S4 a[2]) {
#pragma omp target
#pragma omp teams distribute parallel for lastprivate(a)
  for (int i = 0; i < 2; ++i) foo();
}

namespace A {
double x;
#pragma omp threadprivate(x) // expected-note {{defined as threadprivate or thread local}}
}
namespace B {
using A::x;
}

int main(int argc, char **argv) {
  const int d = 5;       // expected-note {{constant variable is predetermined as shared}}
  const int da[5] = {0}; // expected-note {{constant variable is predetermined as shared}}
  S4 e(4);
  S5 g(5);
  S3 m;
  S6 n(2);
  int i;
  int &j = i;
#pragma omp target
#pragma omp teams distribute parallel for lastprivate // expected-error {{expected '(' after 'lastprivate'}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate( // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate() // expected-error {{expected expression}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc // expected-error {{expected ')'}} expected-note {{to match this '('}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argc)
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(S1) // expected-error {{'S1' does not refer to a value}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(a, b, c, d, f) // expected-error {{lastprivate variable with incomplete type 'S1'}} expected-error 3 {{shared variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(argv[1]) // expected-error {{expected variable name}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(2 * 2) // expected-error {{expected variable name}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(ba)
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(ca) // expected-error {{shared variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(da) // expected-error {{shared variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

  int xa;
#pragma omp target
#pragma omp teams distribute parallel for lastprivate(xa) // OK
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(S2::S2s) // expected-error {{shared variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(S2::S2sc) // expected-error {{shared variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(m) // expected-error {{'operator=' is a private member of 'S3'}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(h) // expected-error {{threadprivate or thread local variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(B::x) // expected-error {{threadprivate or thread local variable cannot be lastprivate}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for private(xa), lastprivate(xa) // expected-error {{private variable cannot be lastprivate}} expected-note {{defined as private}}
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(xa)
  for (i = 0; i < argc; ++i) foo();

#pragma omp target
#pragma omp teams distribute parallel for lastprivate(j)
  for (i = 0; i < argc; ++i) foo();

// expected-error@+2 {{firstprivate variable cannot be lastprivate}} expected-note@+2 {{defined as firstprivate}}
#pragma omp target
#pragma omp teams distribute parallel for firstprivate(m) lastprivate(m)
  for (i = 0; i < argc; ++i) foo();

// expected-error@+2 {{lastprivate variable cannot be firstprivate}} expected-note@+2 {{defined as lastprivate}}
#pragma omp target
#pragma omp teams distribute parallel for lastprivate(n) firstprivate(n) // expected-error {{calling a private constructor of class 'S6'}}
  for (i = 0; i < argc; ++i) foo();

  static int si;
#pragma omp target
#pragma omp teams distribute parallel for lastprivate(si) // OK
  for (i = 0; i < argc; ++i) si = i + 1;

  return foomain<S4, S5>(argc, argv); // expected-note {{in instantiation of function template specialization 'foomain<S4, S5>' requested here}}
}

{'repo_name': 'GoSSIP-SJTU/TripleDoggy', 'stars': '139', 'repo_language': 'C++', 'file_name': '2a2a50bb6a5c024ffdaa235dcdd387bcb308cea1.svn-base', 'mime_type': 'text/plain', 'hash': 1007305967133396073, 'source_dataset': 'data'}


<?xml version="1.0"?>
<m>

 <f><v>0</v><v>1</v><v>2</v><v>3</v><v>4</v></f>
 <f><v>0</v><v>5</v><v>6</v><v>7</v><v>8</v></f>
 <f><v>0</v><v>8</v><v>1</v></f>
 <f><v>8</v><v>7</v><v>9</v></f>
 <f><v>1</v><v>8</v><v>9</v><v>10</v><v>11</v></f>
 <f><v>1</v><v>11</v><v>2</v></f>
 <f><v>11</v><v>10</v><v>12</v></f>
 <f><v>2</v><v>11</v><v>12</v><v>13</v><v>14</v></f>
 <f><v>2</v><v>14</v><v>3</v></f>
 <f><v>14</v><v>13</v><v>15</v></f>
 <f><v>3</v><v>14</v><v>15</v><v>16</v><v>17</v></f>
 <f><v>3</v><v>17</v><v>4</v></f>
 <f><v>17</v><v>16</v><v>18</v></f>
 <f><v>4</v><v>17</v><v>18</v><v>19</v><v>5</v></f>
 <f><v>4</v><v>5</v><v>0</v></f>
 <f><v>5</v><v>19</v><v>6</v></f>
 <f><v>20</v><v>21</v><v>22</v><v>23</v><v>24</v></f>
 <f><v>20</v><v>25</v><v>26</v><v>27</v><v>28</v></f>
 <f><v>20</v><v>28</v><v>21</v></f>
 <f><v>28</v><v>27</v><v>29</v></f>
 <f><v>21</v><v>28</v><v>29</v><v>30</v><v>31</v></f>
 <f><v>21</v><v>31</v><v>22</v></f>
 <f><v>31</v><v>30</v><v>32</v></f>
 <f><v>22</v><v>31</v><v>32</v><v>33</v><v>34</v></f>
 <f><v>22</v><v>34</v><v>23</v></f>
 <f><v>34</v><v>33</v><v>35</v></f>
 <f><v>23</v><v>34</v><v>35</v><v>36</v><v>37</v></f>
 <f><v>23</v><v>37</v><v>24</v></f>
 <f><v>37</v><v>36</v><v>38</v></f>
 <f><v>24</v><v>37</v><v>38</v><v>39</v><v>25</v></f>
 <f><v>24</v><v>25</v><v>20</v></f>
 <f><v>25</v><v>39</v><v>26</v></f>
 <f><v>15</v><v>35</v><v>33</v><v>16</v></f>
 <f><v>16</v><v>33</v><v>32</v><v>18</v></f>
 <f><v>18</v><v>32</v><v>30</v><v>19</v></f>
 <f><v>19</v><v>30</v><v>29</v><v>6</v></f>
 <f><v>6</v><v>29</v><v>27</v><v>7</v></f>
 <f><v>7</v><v>27</v><v>26</v><v>9</v></f>
 <f><v>9</v><v>26</v><v>39</v><v>10</v></f>
 <f><v>10</v><v>39</v><v>38</v><v>12</v></f>
 <f><v>12</v><v>38</v><v>36</v><v>13</v></f>
 <f><v>13</v><v>36</v><v>35</v><v>15</v></f>
</m>

{'repo_name': 'K-3D/k3d', 'stars': '110', 'repo_language': 'C++', 'file_name': 'nightly-release.cmake', 'mime_type': 'text/plain', 'hash': 4612845384945987427, 'source_dataset': 'data'}


package com.cleveroad.audiowidget;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.ViewConfiguration;
import android.view.animation.Interpolator;

import androidx.annotation.ColorInt;
import androidx.annotation.Nullable;

import java.util.Random;

/**
 * Audio widget configuration class.
 */
class Configuration {

	static final float FRAME_SPEED = 70.0f;

	static final long LONG_CLICK_THRESHOLD = ViewConfiguration.getLongPressTimeout() + 128;
    static final int STATE_STOPPED = 0;
    static final int STATE_PLAYING = 1;
    static final int STATE_PAUSED = 2;
    static final long TOUCH_ANIMATION_DURATION = 100;

    private final int lightColor;
	private final int darkColor;
	private final int progressColor;
	private final int expandedColor;
	private final Random random;
	private final float width;
	private final float height;
	private final Drawable playDrawable;
	private final Drawable pauseDrawable;
	private final Drawable prevDrawable;
	private final Drawable nextDrawable;
	private final Drawable playlistDrawable;
	private final Drawable albumDrawable;
	private final Context context;
	private final PlaybackState playbackState;
    private final int buttonPadding;
    private final float crossStrokeWidth;
    private final float progressStrokeWidth;
    private final float shadowRadius;
    private final float shadowDx;
    private final float shadowDy;
    private final int shadowColor;
    private final float bubblesMinSize;
    private final float bubblesMaxSize;
    private final int crossColor;
    private final int crossOverlappedColor;
    private final Interpolator accDecInterpolator;
    private final int prevNextExtraPadding;

	private Configuration(Builder builder) {
		this.context = builder.context;
		this.random = builder.random;
		this.width = builder.width;
		this.height = builder.radius;
		this.lightColor = builder.lightColor;
		this.darkColor = builder.darkColor;
		this.progressColor = builder.progressColor;
		this.expandedColor = builder.expandedColor;
		this.playlistDrawable = builder.playlistDrawable;
		this.playDrawable = builder.playDrawable;
		this.pauseDrawable = builder.pauseDrawable;
		this.prevDrawable = builder.prevDrawable;
		this.nextDrawable = builder.nextDrawable;
		this.albumDrawable = builder.albumDrawable;
		this.playbackState = builder.playbackState;
        this.buttonPadding = builder.buttonPadding;
        this.crossStrokeWidth = builder.crossStrokeWidth;
        this.progressStrokeWidth = builder.progressStrokeWidth;
        this.shadowRadius = builder.shadowRadius;
        this.shadowDx = builder.shadowDx;
        this.shadowDy = builder.shadowDy;
        this.shadowColor = builder.shadowColor;
        this.bubblesMinSize = builder.bubblesMinSize;
        this.bubblesMaxSize = builder.bubblesMaxSize;
        this.crossColor = builder.crossColor;
        this.crossOverlappedColor = builder.crossOverlappedColor;
        this.accDecInterpolator = builder.accDecInterpolator;
        this.prevNextExtraPadding = builder.prevNextExtraPadding;
	}

	Context context() {
		return context;
	}

	Random random() {
		return random;
	}

	@ColorInt
	int lightColor() {
		return lightColor;
	}

	@ColorInt
	int darkColor() {
		return darkColor;
	}

	@ColorInt
	int progressColor() {
		return progressColor;
	}

	@ColorInt
	int expandedColor() {
		return expandedColor;
	}

	float widgetWidth() {
		return width;
	}

	float radius() {
		return height;
	}

	Drawable playDrawable() {
		return playDrawable;
	}

	Drawable pauseDrawable() {
		return pauseDrawable;
	}

	Drawable prevDrawable() {
		return prevDrawable;
	}

	Drawable nextDrawable() {
		return nextDrawable;
	}

	Drawable playlistDrawable() {
		return playlistDrawable;
	}

	Drawable albumDrawable() {
		return albumDrawable;
	}

	PlaybackState playbackState() {
		return playbackState;
	}

    float crossStrokeWidth() {
        return crossStrokeWidth;
    }

    float progressStrokeWidth() {
        return progressStrokeWidth;
    }

    int buttonPadding() {
        return buttonPadding;
    }

    float shadowRadius() {
        return shadowRadius;
    }

    float shadowDx() {
        return shadowDx;
    }

    float shadowDy() {
        return shadowDy;
    }

    int shadowColor() {
        return shadowColor;
    }

    float bubblesMinSize() {
        return bubblesMinSize;
    }

    float bubblesMaxSize() {
        return bubblesMaxSize;
    }

    int crossColor() {
        return crossColor;
    }

    int crossOverlappedColor() {
        return crossOverlappedColor;
    }

    Interpolator accDecInterpolator() {
        return accDecInterpolator;
    }

    int prevNextExtraPadding() {
        return prevNextExtraPadding;
    }

    static final class Builder {

		private int lightColor;
		private int darkColor;
		private int progressColor;
		private int expandedColor;
		private float width;
		private float radius;
		private Context context;
		private Random random;
		private Drawable playDrawable;
		private Drawable pauseDrawable;
		private Drawable prevDrawable;
		private Drawable nextDrawable;
		private Drawable playlistDrawable;
		private Drawable albumDrawable;
		private PlaybackState playbackState;
        private int buttonPadding;
        private float crossStrokeWidth;
        private float progressStrokeWidth;
        private float shadowRadius;
        private float shadowDx;
        private float shadowDy;
        private int shadowColor;
        private float bubblesMinSize;
        private float bubblesMaxSize;
        private int crossColor;
        private int crossOverlappedColor;
        private Interpolator accDecInterpolator;
        private int prevNextExtraPadding;

        Builder context(Context context) {
			this.context = context;
			return this;
		}

		Builder playColor(@ColorInt int pauseColor) {
			this.lightColor = pauseColor;
			return this;
		}

		Builder darkColor(@ColorInt int playColor) {
			this.darkColor = playColor;
			return this;
		}

		Builder progressColor(@ColorInt int progressColor) {
			this.progressColor = progressColor;
			return this;
		}

		Builder expandedColor(@ColorInt int expandedColor) {
			this.expandedColor = expandedColor;
			return this;
		}

		Builder random(Random random) {
			this.random = random;
			return this;
		}

		Builder widgetWidth(float width) {
			this.width = width;
			return this;
		}

		Builder radius(float radius) {
			this.radius = radius;
			return this;
		}

		Builder playDrawable(@Nullable Drawable playDrawable) {
			this.playDrawable = playDrawable;
			return this;
		}

		Builder pauseDrawable(@Nullable Drawable pauseDrawable) {
			this.pauseDrawable = pauseDrawable;
			return this;
		}

		Builder prevDrawable(@Nullable Drawable prevDrawable) {
			this.prevDrawable = prevDrawable;
			return this;
		}

		Builder nextDrawable(@Nullable Drawable nextDrawable) {
			this.nextDrawable = nextDrawable;
			return this;
		}

		Builder playlistDrawable(@Nullable Drawable plateDrawable) {
			this.playlistDrawable = plateDrawable;
			return this;
		}

		Builder albumDrawable(@Nullable Drawable albumDrawable) {
			this.albumDrawable = albumDrawable;
			return this;
		}

		Builder playbackState(PlaybackState playbackState) {
			this.playbackState = playbackState;
			return this;
		}

        Builder buttonPadding(int buttonPadding) {
            this.buttonPadding = buttonPadding;
            return this;
        }

        Builder crossStrokeWidth(float crossStrokeWidth) {
            this.crossStrokeWidth = crossStrokeWidth;
            return this;
        }

        Builder progressStrokeWidth(float progressStrokeWidth) {
            this.progressStrokeWidth = progressStrokeWidth;
            return this;
        }

        Builder shadowRadius(float shadowRadius) {
            this.shadowRadius = shadowRadius;
            return this;
        }

        Builder shadowDx(float shadowDx) {
            this.shadowDx = shadowDx;
            return this;
        }

        Builder shadowDy(float shadowDy) {
            this.shadowDy = shadowDy;
            return this;
        }

        Builder shadowColor(@ColorInt int shadowColor) {
            this.shadowColor = shadowColor;
            return this;
        }

        Builder bubblesMinSize(float bubblesMinSize) {
            this.bubblesMinSize = bubblesMinSize;
            return this;
        }

        Builder bubblesMaxSize(float bubblesMaxSize) {
            this.bubblesMaxSize = bubblesMaxSize;
            return this;
        }

        Builder crossColor(@ColorInt int crossColor) {
            this.crossColor = crossColor;
            return this;
        }

        Builder crossOverlappedColor(@ColorInt int crossOverlappedColor) {
            this.crossOverlappedColor = crossOverlappedColor;
            return this;
        }

        Builder accDecInterpolator(Interpolator accDecInterpolator) {
            this.accDecInterpolator = accDecInterpolator;
            return this;
        }

        Builder prevNextExtraPadding(int prevNextExtraPadding) {
            this.prevNextExtraPadding = prevNextExtraPadding;
            return this;
        }

        Configuration build() {
			return new Configuration(this);
		}
    }
}

{'repo_name': 'Cleveroad/MusicBobber', 'stars': '842', 'repo_language': 'Java', 'file_name': 'MusicFilter.java', 'mime_type': 'text/x-java', 'hash': -941837043579844707, 'source_dataset': 'data'}


<%#Copyright 2013-2020 the original author or authors from the JHipster project.

 This file is part of the JHipster project, see https://www.jhipster.tech/ for
        more information. Licensed under the Apache License,
    Version 2 (the "License");
youmay 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.
-%>
/* ==============================================================
Bootstrap tweaks
===============================================================*/

body,
h1,
h2,
h3,
h4 {
  font-weight: 300;
}

body {
    background: #e4e5e6;
    margin: 0;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
}

a {
    color: #533f03;
    font-weight: bold;
}

a:hover {
    color: #533f03;
    font-weight: bold;
    /* make sure browsers use the pointer cursor for anchors, even with no href */
    cursor: pointer;
}

/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */
.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
Generic styles
========================================================================== */

/* Error highlight on input fields */
.valid[required],
.valid.required {
    border-left: 5px solid green;
}

.invalid:not(form) {
    border-left: 5px solid red;
}

/* other generic styles */

.jh-card {
    padding: 1.5%;
    margin-top: 20px;
    border: none;
}

.error {
    color: white;
    background-color: red;
}

.pad {
    padding: 10px;
}

.w-40 {
    width: 40% !important;
}

.w-60 {
    width: 60% !important;
}

.break {
    white-space: normal;
    word-break: break-all;
}

.readonly {
    background-color: #eee;
    opacity: 1;
}

.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.hand,
[jhisortby] {
    cursor: pointer;
}

/* ==========================================================================
Custom alerts for notification
========================================================================== */
.alerts .alert {
    text-overflow: ellipsis;
}
.alert pre {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
}

.alert .popover pre {
    font-size: 10px;
}

.alerts .toast {
    position: fixed;
    width: 100%;
}

.alerts .toast.left {
    left: 5px;
}

.alerts .toast.right {
    right: 5px;
}

.alerts .toast.top {
    top: 55px;
}

.alerts .toast.bottom {
    bottom: 55px;
}

@media screen and (min-width: 480px) {
    .alerts .toast {
        width: 50%;
    }
}

/* ==========================================================================
entity tables helpers
========================================================================== */
/* Remove Bootstrap padding from the element
http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.no-padding-left {
    padding-left: 0 !important;
}
.no-padding-right {
    padding-right: 0 !important;
}
.no-padding-top {
    padding-top: 0 !important;
}
.no-padding-bottom {
    padding-bottom: 0 !important;
}
.no-padding {
    padding: 0 !important;
}

/* bootstrap 3 input-group 100% width
http://stackoverflow.com/questions/23436430/bootstrap-3-input-group-100-width */
.width-min {
    width: 1% !important;
}

/* ==========================================================================
entity detail page css
========================================================================== */
.row.jh-entity-details {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    line-height: 1.5;
}

@media screen and (min-width: 768px) {
    .row.jh-entity-details > dt {
        float: left;
        overflow: hidden;
        clear: left;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0.5em 0;
    }

    .row.jh-entity-details > dd {
        border-bottom: 1px solid #eee;
        padding: 0.5em 0;
        margin-left: 0;
    }
}

/* ==========================================================================
ui bootstrap tweaks
========================================================================== */
.nav,
.pagination,
.carousel,
.card-title a {
    cursor: pointer;
}

.datetime-picker-dropdown > li.date-picker-menu div > table .btn-secondary,
.uib-datepicker-popup > li > div.uib-datepicker > table .btn-secondary {
    border: 0;
}

.datetime-picker-dropdown > li.date-picker-menu div > table:focus,
.uib-datepicker-popup > li > div.uib-datepicker > table:focus {
    outline: none;
}

.thread-dump-modal-lock {
    max-width: 450px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* jhipster-needle-css-add-main JHipster will add new css style */

{'repo_name': 'jhipster/jhipster-vuejs', 'stars': '291', 'repo_language': 'TypeScript', 'file_name': 'entity-page-object.ts.ejs', 'mime_type': 'text/x-java', 'hash': -7943369886464069914, 'source_dataset': 'data'}


/////////////////////////////////////////////
//  This file contains essential logic     //
//  The operation of the Dota 2 Hero Keys  //
//  Script. DO NOT MODIFY                  //
/////////////////////////////////////////////

say_student "Keybinds Loaded for: Nyx Assassin"

alias "current_hero" "exec hk_binds/nyxassassin.cfg"

alias "current_hero_space" "exec hk_binds/space/nyxassassin.cfg"

alias "current_hero_alt" "exec hk_binds/alt/nyxassassin.cfg"

{'repo_name': 'lupuleasa-core/Dota2-TheCore-Config-Engine', 'stars': '167', 'repo_language': 'None', 'file_name': 'dota2_keybinds_space_pressed.cfg', 'mime_type': 'text/plain', 'hash': 1929991709164890365, 'source_dataset': 'data'}


<?xml version="1.0" encoding="utf-8"?>
<!--
   Copyright (C) 2019 The Android Open Source Project

   Licensed 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:height="18dp"
    android:viewportHeight="24"
    android:viewportWidth="24"
    android:width="18dp" >
    <path
        android:fillColor="@android:color/white"
        android:pathData="M11.25,17.96v3.29c0,0.41,0.34,0.75,0.75,0.75s0.75-0.34,0.75-0.75v-3.29c3.51-0.38,6.25-3.39,6.25-7.04 c0-0.41-0.34-0.75-0.75-0.75s-0.75,0.34-0.75,0.75c0,3.08-2.47,5.58-5.5,5.58S6.5,14,6.5,10.92c0-0.41-0.34-0.75-0.75-0.75 S5,10.5,5,10.92C5,14.57,7.74,17.58,11.25,17.96z" />
    <path
        android:fillColor="@android:color/white"
        android:pathData="M9,5v6c0,1.66,1.34,3,3,3s3-1.34,3-3V5c0-1.66-1.34-3-3-3S9,3.34,9,5z M13.5,5v6c0,0.83-0.67,1.5-1.5,1.5 s-1.5-0.67-1.5-1.5V5c0-0.83,0.67-1.5,1.5-1.5S13.5,4.17,13.5,5z" />
</vector>

{'repo_name': 'aosp-mirror/platform_frameworks_base', 'stars': '9245', 'repo_language': 'Java', 'file_name': 'DatabaseCursorTest.java', 'mime_type': 'text/x-java', 'hash': 4003848294174755480, 'source_dataset': 'data'}


<!-- Copyright (C) 2013 The Android Open Source Project

     Licensed 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.
-->
<resources>

    <string name="app_name">Activity Animations</string>
    <string name="subactivity_name">PictureInfo!</string>
    <string name="menu_slow_animations">Slow</string>

</resources>

{'repo_name': 'brucetoo/ImageBrowse', 'stars': '320', 'repo_language': 'Java', 'file_name': 'ApplicationTest.java', 'mime_type': 'text/html', 'hash': -4260369801056134517, 'source_dataset': 'data'}


diff --git a/data/pools/transactionPool.go b/data/pools/transactionPool.go
index 8102d901..7bf0d5a3 100644
--- a/data/pools/transactionPool.go
+++ b/data/pools/transactionPool.go
@@ -376,6 +376,8 @@ func (pool *TransactionPool) Remember(txgroup []transactions.SignedTxn, verifyPa
 		return fmt.Errorf("TransactionPool.Remember: %v", err)
 	}

+	logging.Base().Infof("Transaction remembered %s", txgroup[0].ID())
+
 	pool.rememberCommit(false)
 	return nil
 }

{'repo_name': 'algorand/go-algorand', 'stars': '306', 'repo_language': 'Go', 'file_name': 'recipe.go', 'mime_type': 'text/plain', 'hash': -8689119044566163058, 'source_dataset': 'data'}


<component name="libraryTable">
  <library name="Maven: org.apache.logging.log4j:log4j-core:2.7">
    <CLASSES>
      <root url="jar://$MAVEN_REPOSITORY$/org/apache/logging/log4j/log4j-core/2.7/log4j-core-2.7.jar!/" />
    </CLASSES>
    <JAVADOC>
      <root url="jar://$MAVEN_REPOSITORY$/org/apache/logging/log4j/log4j-core/2.7/log4j-core-2.7-javadoc.jar!/" />
    </JAVADOC>
    <SOURCES>
      <root url="jar://$MAVEN_REPOSITORY$/org/apache/logging/log4j/log4j-core/2.7/log4j-core-2.7-sources.jar!/" />
    </SOURCES>
  </library>
</component>

{'repo_name': 'SpringForAll/springcloud-thoth', 'stars': '756', 'repo_language': 'Java', 'file_name': 'ChatRecord.java', 'mime_type': 'text/x-java', 'hash': -7579492911051688029, 'source_dataset': 'data'}


---
# static Dockerfile tests

# ensure there are env vars set in the dockerfile
file:
  /goss/Dockerfile:
    exists: true
    contains:
      - "/ENV BESU_RPC_HTTP_HOST 0.0.0.0/"
      - "/ENV BESU_RPC_WS_HOST 0.0.0.0/"
      - "/ENV BESU_GRAPHQL_HTTP_HOST 0.0.0.0/"

{'repo_name': 'hyperledger/besu', 'stars': '260', 'repo_language': 'Java', 'file_name': 'RocksDBColumnarKeyValueStorageTest.java', 'mime_type': 'text/x-java', 'hash': 6556715623500482433, 'source_dataset': 'data'}


; RUN: opt < %s -scalarrepl -mem2reg -S | not grep alloca
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"

define i32 @test() {
	%X = alloca [4 x i32]		; <[4 x i32]*> [#uses=1]
	%Y = getelementptr [4 x i32]* %X, i64 0, i64 0		; <i32*> [#uses=2]
	store i32 0, i32* %Y
	%Z = load i32* %Y		; <i32> [#uses=1]
	ret i32 %Z
}

{'repo_name': 'llvm-dcpu16/llvm-dcpu16', 'stars': '207', 'repo_language': 'C++', 'file_name': 'executionengine_ocaml.c', 'mime_type': 'text/x-c', 'hash': 1601757968910411171, 'source_dataset': 'data'}


name = 'ifort'
version = '2013.5.192'
deprecated = "ifort versions older than 2016.0 are deprecated"

homepage = 'http://software.intel.com/en-us/intel-compilers/'
description = "Fortran compiler from Intel"

toolchain = SYSTEM

sources = ['l_fcompxe_%(version)s.tgz']

gcc = 'GCC'
gccver = '4.8.3'
versionsuffix = '-%s-%s' % (gcc, gccver)

dependencies = [(gcc, gccver)]

dontcreateinstalldir = 'True'

# license file
license_file = HOME + '/licenses/intel/license.lic'

moduleclass = 'compiler'

{'repo_name': 'easybuilders/easybuild-easyconfigs', 'stars': '179', 'repo_language': 'Python', 'file_name': 'ifort', 'mime_type': 'text/x-shellscript', 'hash': 7048439377094428343, 'source_dataset': 'data'}