text:
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System.Collections.Immutable;
using Analyzer.Utilities;
using Analyzer.Utilities.Extensions;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Operations;

namespace Microsoft.CodeQuality.Analyzers.QualityGuidelines
{
    [DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic)]
    public sealed class AvoidInfiniteRecursion : DiagnosticAnalyzer
    {
        internal const string RuleId = "CA2011";

        internal static DiagnosticDescriptor Rule = DiagnosticDescriptorHelper.Create(RuleId,
            new LocalizableResourceString(nameof(MicrosoftCodeQualityAnalyzersResources.AvoidInfiniteRecursionTitle), MicrosoftCodeQualityAnalyzersResources.ResourceManager, typeof(MicrosoftCodeQualityAnalyzersResources)),
            new LocalizableResourceString(nameof(MicrosoftCodeQualityAnalyzersResources.AvoidInfiniteRecursionMessageSure), MicrosoftCodeQualityAnalyzersResources.ResourceManager, typeof(MicrosoftCodeQualityAnalyzersResources)),
            DiagnosticCategory.Reliability,
            RuleLevel.IdeSuggestion,
            description: null,
            isPortedFxCopRule: false,
            isDataflowRule: false);

        internal static DiagnosticDescriptor MaybeRule = DiagnosticDescriptorHelper.Create(RuleId,
            new LocalizableResourceString(nameof(MicrosoftCodeQualityAnalyzersResources.AvoidInfiniteRecursionTitle), MicrosoftCodeQualityAnalyzersResources.ResourceManager, typeof(MicrosoftCodeQualityAnalyzersResources)),
            new LocalizableResourceString(nameof(MicrosoftCodeQualityAnalyzersResources.AvoidInfiniteRecursionMessageMaybe), MicrosoftCodeQualityAnalyzersResources.ResourceManager, typeof(MicrosoftCodeQualityAnalyzersResources)),
            DiagnosticCategory.Reliability,
            RuleLevel.IdeSuggestion,
            description: null,
            isPortedFxCopRule: false,
            isDataflowRule: false);

        public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule, MaybeRule);

        public override void Initialize(AnalysisContext context)
        {
            context.EnableConcurrentExecution();
            context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);

            context.RegisterOperationBlockStartAction(operationBlockStartContext =>
            {
                if (operationBlockStartContext.OwningSymbol is not IMethodSymbol methodSymbol ||
                    methodSymbol.MethodKind != MethodKind.PropertySet)
                {
                    return;
                }

                operationBlockStartContext.RegisterOperationAction(operationContext =>
                {
                    var assignmentOperation = (IAssignmentOperation)operationContext.Operation;

                    if (assignmentOperation.Target is not IPropertyReferenceOperation operationTarget ||
                        operationTarget.Instance is not IInstanceReferenceOperation targetInstanceReference ||
                        targetInstanceReference.ReferenceKind != InstanceReferenceKind.ContainingTypeInstance ||
                        !operationTarget.Member.Equals(methodSymbol.AssociatedSymbol))
                    {
                        return;
                    }

                    IOperation ancestor = assignmentOperation;
                    do
                    {
                        ancestor = ancestor.Parent;
                    } while (ancestor != null &&
                        ancestor.Kind != OperationKind.AnonymousFunction &&
                        ancestor.Kind != OperationKind.LocalFunction &&
                        ancestor.Kind != OperationKind.Conditional);

                    operationContext.ReportDiagnostic(
                        assignmentOperation.CreateDiagnostic(ancestor != null ? MaybeRule : Rule, operationTarget.Property.Name));
                }, OperationKind.SimpleAssignment);
            });
        }
    }
}


text:
const {
    execSync,
    exec
} = require('child_process')
const fs = require('fs')
const co = require('co')

const runner = function (command) {
  return new Promise((resolve, reject) => {
    if (!command) return
    let proc = exec(command, (error, stdout, stderr) => {
      if (error) {
        reject(error)
      }
      resolve(null, stdout)
    })
    proc.stdout.on('data', data => {
      process.stdout.write(data)
    })
    proc.stderr.on('data', err => {
      process.stdout.write(err)
      reject(err)
    })
  })
}

function * install () {
  if (~execSync('which bundler').toString().indexOf('not found')) {
    yield runner('sudo gem install bundler')
  }
  if (!fs.existsSync('Gemfile.lock')) {
    yield runner('bundler install')
  }
}

co(install).then(function (done) {
  console.log('√ Done')
}).catch(function (e) {
  console.error(e)
})

redpajama_set_name: RedPajamaGithub


text:
import numpy as np
from math import *
from visual import *
from visual.graph import *

def energy2(n):
    return ((n*h/L)**2)/(8*m)*convert

def factorial(n):
    out=1
    for x in range(n):
        out=out*(x+1)
    return out

def bosonconfigs(numelvl,numpart):
    x=numpart
    n=numelvl
    out=choose(x+n-1,x)
    return out

def choose(choices,x):
    if choices>=x:
        out=int(factorial(choices)/((factorial(x)*factorial(choices-x))))
    else:
        out=0
    return out

def configs(x,elvl,particle="boson",out=None):
    """
    Generate configs for bosons or fermions.

    Parameters
    ----------
    x : positive integer
        Number of particles in the system
    Energylvls : 1-D array
        List of valid energy states of the system
    particle : "boson" or "fermion"
    out : 1-D array
        Array to put configs in

    Returns
    -------
    out : 1-D array
        array of total energys of all valid configurations

    """

    dtype = elvl.dtype
    n=elvl.size #number of energy levels

    if particle=="boson":
        if out is None:
            out=None
            out = np.zeros(bosonconfigs(n,x), dtype=dtype)
        if x==1:
            for i in range(n):
                out[i]=elvl[i]
        if x>1:
            k=0 #index for end of last input added
            for m in range(n): #m is the energy level index
                end=k+bosonconfigs(n-m,x-1) #last energy level
                configs(x-1, elvl[m:],particle,out[k:end])
                for i in range(k,end):
                    out[i]+= elvl[m]
                k=end
        return out

    if particle=="fermion":
        if out is None:
            out=None
            out = np.zeros(choose(n,x), dtype=dtype)
        if x==1:
            for i in range(n):
                out[i]=elvl[i]
        if x>1:
            k=0 #index for end of last input added
            for m in range(n): #m is the energy level index
                end=k+choose(n-(m+1),x-1) #last energy level
                configs(x-1, elvl[m+1:],particle,out[k:end])
                for i in range(k,end):
                    out[i]+= elvl[m]
                k=end
        return out

h = 6.62606957 * 10 ** -34      #Plank's constant
#m = 1.67492735174 * 10 ** -27   #this is mass of neutron
m = 9.11 * 10**-31             #this is mass of electron
L = 0.39 * 10**-9               #size of box
convert  = 6.24150934 * 10**18
maximum = 100
kb = 1.3806488 * 10**-23

energylevels = np.fromiter((((x*h/L)**2)/(8*m)*convert for x in range(maximum+1)),dtype=float)
#this creates the entire table of energy levels as a single list

def oneDEnergy(n):
    energylevels = np.fromiter((((x*h/L)**2)/(8*m) for x in range(1,n+1)),dtype=float)
    return energylevels
    #this creates the entire table of energy levels as a single list

def ThreeDEnergy(n):
    out=np.empty(n**3)
    index=0
    for i in range(1,n+1):
        for j in range(1,n+1):
            for k in range(1,n+1):
                out[index]=((i*h/L)**2+(j*h/L)**2+(k*h/L)**2)/(8*m)*convert
                index=index+1
    return np.sort(out)

def fermion(n):
    energycount = []
    energy = oneDEnergy(maximum)
    fermionlist = configs(n,energy,'fermion')
    for config in np.nditer(fermionlist):
        if config < energy[-1] + (n-1)*energy[0]:
            energycount.append(config)
    #return number of configurations in energy range
    fnc1 = ghistogram(bins = np.linspace(min(energycount), max(energycount), 100), color = color.red)
    fnc1.plot(data=energycount)
    hist, binedges = np.histogram(energycount,bins = 100,weights = None, density = False)
    return (hist,binedges)

def boson(n,nthElvl,acc):
    '''
    n is the number of particles
    nthElvl is the nth energy level to go up to
    acc is integer of histogram(s)
    '''
    Elvl= oneDEnergy(nthElvl)
    #print Elvl
    econf= np.sort(configs(n, Elvl, particle="boson"))
    max_energy=Elvl[-1]+(n-1)*Elvl[0]
    #np.sort(econf)
    fcn1 = ghistogram(bins = np.linspace(econf[0],max_energy,acc))
    bound=True
    m=0
    while bound==True:
        if econf[m]>max_energy:
            bound=False
        else:
            m=m+1
            if m==econf.size:
                break
    fcn1.plot(data=econf[:m])
    hist, binedges = np.histogram(econf[:m],bins = 100,weights = None, density = False)
    return (hist,binedges)

def boltzfit(xvalues,yvalues,degree):
    xlist = []
    #ylist = []
    for i in range(len(xvalues)-1):
        xlist.append((xvalues[i] + xvalues[i+1])/(2)) #Average energy in joules
    #for j in range(len(yvalues)):
        #ylist.append(kb*log(yvalues[j])) #Convert to boltzmann entropy
    return np.polyfit(xlist,yvalues,degree)

def gibbsfit(xvalues,yvalues,degree):
    for j in range(len(yvalues)): #generate gibbs configurations
        if j > 0:
            yvalues[j] = yvalues[j-1] + yvalues[j]
    #for j in range(len(yvalues)):
        #ylist.append(kb*log(yvalues[j])) #Convert to entropy
    return np.polyfit(xvalues[1:],yvalues,degree)

def conequation(n,degree,particle ='boson',method ='gibbs'):
    if particle == 'boson':
        data = boson(n, maximum, 100)
    if particle == 'fermion':
        data = fermion(n)
    print (data)
    if method == 'boltzmann':
        return (boltzfit(data[1],data[0],degree))
    if method == 'gibbs':
        return (gibbsfit(data[1],data[0],degree))


text:
.class Landroid/app/FragmentManagerImpl$2;
.super Ljava/lang/Object;
.source "FragmentManager.java"

# interfaces
.implements Ljava/lang/Runnable;

# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Landroid/app/FragmentManagerImpl;->popBackStack()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

# instance fields
.field final synthetic this$0:Landroid/app/FragmentManagerImpl;

# direct methods
.method constructor <init>(Landroid/app/FragmentManagerImpl;)V
    .locals 0
    .parameter

    .prologue
    .line 444
    iput-object p1, p0, Landroid/app/FragmentManagerImpl$2;->this$0:Landroid/app/FragmentManagerImpl;

    invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 446
    iget-object v0, p0, Landroid/app/FragmentManagerImpl$2;->this$0:Landroid/app/FragmentManagerImpl;

    iget-object v1, p0, Landroid/app/FragmentManagerImpl$2;->this$0:Landroid/app/FragmentManagerImpl;

    iget-object v1, v1, Landroid/app/FragmentManagerImpl;->mActivity:Landroid/app/Activity;

    iget-object v1, v1, Landroid/app/Activity;->mHandler:Landroid/os/Handler;

    const/4 v2, 0x0

    const/4 v3, -0x1

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/app/FragmentManagerImpl;->popBackStackState(Landroid/os/Handler;Ljava/lang/String;II)Z

    .line 447
    return-void
.end method


text:
QtGaussianBlur
==============

A simple QT application that blurs image inputs. Here is a screenshot:

![Blurred image](http://i.imgur.com/weWGz8T.png)


text:
using System;
using System.Data.Entity;
using System.Linq;

using Bytes2you.Validation;

using Parser.Data.Contracts;
using Parser.Data.Models.Contracts;

namespace Parser.Data.Repositories
{
    public class EntityFrameworkRepository<TEntity> : IEntityFrameworkRepository<TEntity>
        where TEntity : class, IDbModel
    {
        private readonly IParserDbContext parserDbContext;
        private readonly IDbSet<TEntity> entities;

        public EntityFrameworkRepository(IParserDbContext parserDbContext)
        {
            Guard.WhenArgument(parserDbContext, nameof(IParserDbContext)).IsNull().Throw();

            this.parserDbContext = parserDbContext;

            this.entities = this.parserDbContext.Set<TEntity>();
        }

        public IQueryable<TEntity> Entities
        {
            get
            {
                return this.entities;
            }
        }

        public TEntity Create(TEntity entity)
        {
            Guard.WhenArgument(entity, nameof(entity)).IsNull().Throw();

            this.entities.Add(entity);

            return entity;
        }

        public TEntity Find(Guid entityGuid)
        {
            Guard.WhenArgument(entityGuid, nameof(entityGuid)).IsEqual(default(Guid)).Throw();

            return this.entities.FirstOrDefault(e => e.Id == entityGuid);
        }
    }
}


text:
import throat from 'throat'

import { ItemType, IItemListing, Province } from '../../graphql-types'
import { scrape, Info, Selectors } from '../common'
import { combineResults } from '../../helpers'
const throttle = throat(1)

export function shootingEdge(type: ItemType): Promise<IItemListing[]|null> {
  const info: Info = {
    link: 'theshootingedge.com',
    name: `The Shooting Edge`,
    provinces: [Province.AB],
  }

  const selectors: Selectors = {
    item: '.productListing',
    name: '.name',
    img: 'img',
    link: 'a',
    price: '.pricing',
    nextPage: '.next-only',
    outOfStock: '.product-card__availability',
  }
  const work = (t) => scrape((p) => `https://www.${info.link}/custom/${t}/page/${p}`, info, selectors)

  switch (type) {
    case ItemType.rimfire:
      return work('ammunition-and-reloading-ammunition-rimfire-ammo')
    case ItemType.centerfire:
      return Promise.all(
        [
          'ammunition-and-reloading-ammunition-centrefire-handgun-ammo',
          'ammunition-and-reloading-ammunition-centrefire-rifle-ammo',
        ].map((t) => throttle(() => work(t)))
      ).then(combineResults)
    case ItemType.shotgun:
      return work('ammunition-and-reloading-ammunition-shotgun-ammo')
    case ItemType.powder:
      return work('ammunition-and-reloading-reloading-powder')
    case ItemType.case:
      return work('ammunition-and-reloading-reloading-cases')
    case ItemType.primer:
      return work('ammunition-and-reloading-reloading-primers')
    case ItemType.shot:
      return work('ammunition-and-reloading-reloading-bullets')
    default:
      return Promise.reject(new Error('unknown type: ' + type))
  }
}


text:
<!DOCTYPE html>

    <title>HTML Compliant Output — CKEditor Sample</title>
    <meta charset="utf-8">

    <link href="sample.css" rel="stylesheet">

    CKEditor Samples » Producing HTML Compliant Output

        This sample shows how to configure CKEditor to output valid
        HTML 4.01 code.
        Traditional HTML elements like <b>,
        <i>, and <font> are used in place of
        <strong>, <em>, and CSS styles.

        To add a CKEditor instance outputting legacy HTML 4.01 code, load the editor using a standard
        JavaScript call, and define CKEditor features to use the HTML compliant elements and attributes.

        A snippet of the configuration code can be seen below; check the source of this page for
        full definition:

CKEDITOR.replace( 'textarea_id', {
	coreStyles_bold: { element: 'b' },
	coreStyles_italic: { element: 'i' },

	fontSize_style: {
		element: 'font',
		attributes: { 'size': '#(size)' }
	}

	...
});

<form action="sample_posteddata.php" method="post">

            Editor 1:

        <textarea cols="80" id="editor1" name="editor1" rows="10"><p>This is some <b>sample text</b>.
            You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea>

        <input type="submit" value="Submit">

</form>

        CKEditor - The text editor for the Internet - http://ckeditor.com

        Copyright © 2003-2012, CKSource - Frederico
        Knabben. All rights reserved.


text:
<?xml version="1.0" encoding="UTF-8" ?>
<class name="Color" version="4.0">
	<brief_description>
		Color in RGBA format using floats on the range of 0 to 1.
	</brief_description>
	<description>
		A color represented by red, green, blue, and alpha (RGBA) components. The alpha component is often used for opacity. Values are in floating-point and usually range from 0 to 1. Some properties (such as CanvasItem.modulate) may accept values greater than 1 (overbright or HDR colors).
		You can also create a color from standardized color names by using the string constructor or directly using the color constants defined here. The standardized color set is based on the [url=https://en.wikipedia.org/wiki/X11_color_names]X11 color names[/url].
		If you want to supply values in a range of 0 to 255, you should use [method @GDScript.Color8].
		[b]Note:[/b] In a boolean context, a Color will evaluate to [code]false[/code] if it's equal to [code]Color(0, 0, 0, 1)[/code] (opaque black). Otherwise, a Color will always evaluate to [code]true[/code].
		[url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/color_constants.png]Color constants cheatsheet[/url]
	</description>
	<tutorials>
		<link title="2D GD Paint Demo">https://godotengine.org/asset-library/asset/517</link>
		<link title="Tween Demo">https://godotengine.org/asset-library/asset/146</link>
		<link title="GUI Drag And Drop Demo">https://godotengine.org/asset-library/asset/133</link>
	</tutorials>
	<constructors>
		<constructor name="Color">
			<return type="Color" />
			<description>
				Constructs a default-initialized [Color] with all components set to [code]0[/code].
			</description>
		</constructor>
		<constructor name="Color">
			<return type="Color" />
			<argument index="0" name="from" type="Color" />
			<argument index="1" name="alpha" type="float" />
			<description>
				Constructs a [Color] from an existing color, but with a custom alpha value.
				[codeblocks]
				[gdscript]
				var red = Color(Color.red, 0.2) # 20% opaque red.
				[/gdscript]
				[csharp]
				var red = new Color(Colors.Red, 0.2f); // 20% opaque red.
				[/csharp]
				[/codeblocks]
			</description>
		</constructor>
		<constructor name="Color">
			<return type="Color" />
			<argument index="0" name="from" type="Color" />
			<description>
				Constructs a [Color] as a copy of the given [Color].
			</description>
		</constructor>
		<constructor name="Color">
			<return type="Color" />
			<argument index="0" name="code" type="String" />
			<description>
				Constructs a [Color] either from an HTML color code or from a standardized color name. Supported color names are the same as the constants.
			</description>
		</constructor>
		<constructor name="Color">
			<return type="Color" />
			<argument index="0" name="code" type="String" />
			<argument index="1" name="alpha" type="float" />
			<description>
				Constructs a [Color] either from an HTML color code or from a standardized color name, with [code]alpha[/code] on the range of 0 to 1. Supported color names are the same as the constants.
			</description>
		</constructor>
		<constructor name="Color">
			<return type="Color" />
			<argument index="0" name="r" type="float" />
			<argument index="1" name="g" type="float" />
			<argument index="2" name="b" type="float" />
			<description>
				Constructs a [Color] from RGB values, typically between 0 and 1. Alpha will be 1.
				[codeblocks]
				[gdscript]
				var color = Color(0.2, 1.0, 0.7) # Similar to `Color8(51, 255, 178, 255)`
				[/gdscript]
				[csharp]
				var color = new Color(0.2f, 1.0f, 0.7f); // Similar to `Color.Color8(51, 255, 178, 255)`
				[/csharp]
				[/codeblocks]
			</description>
		</constructor>
		<constructor name="Color">
			<return type="Color" />
			<argument index="0" name="r" type="float" />
			<argument index="1" name="g" type="float" />
			<argument index="2" name="b" type="float" />
			<argument index="3" name="a" type="float" />
			<description>
				Constructs a [Color] from RGBA values, typically between 0 and 1.
				[codeblocks]
				[gdscript]
				var color = Color(0.2, 1.0, 0.7, 0.8) # Similar to `Color8(51, 255, 178, 204)`
				[/gdscript]
				[csharp]
				var color = new Color(0.2f, 1.0f, 0.7f, 0.8f); // Similar to `Color.Color8(51, 255, 178, 255, 204)`
				[/csharp]
				[/codeblocks]
			</description>
		</constructor>
	</constructors>
	<methods>
		<method name="blend" qualifiers="const">
			<return type="Color" />
			<argument index="0" name="over" type="Color" />
			<description>
				Returns a new color resulting from blending this color over another. If the color is opaque, the result is also opaque. The second color may have a range of alpha values.
				[codeblocks]
				[gdscript]
				var bg = Color(0.0, 1.0, 0.0, 0.5) # Green with alpha of 50%
				var fg = Color(1.0, 0.0, 0.0, 0.5) # Red with alpha of 50%
				var blended_color = bg.blend(fg) # Brown with alpha of 75%
				[/gdscript]
				[csharp]
				var bg = new Color(0.0f, 1.0f, 0.0f, 0.5f); // Green with alpha of 50%
				var fg = new Color(1.0f, 0.0f, 0.0f, 0.5f); // Red with alpha of 50%
				Color blendedColor = bg.Blend(fg); // Brown with alpha of 75%
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="clamp" qualifiers="const">
			<return type="Color" />
			<argument index="0" name="min" type="Color" default="Color(0, 0, 0, 0)" />
			<argument index="1" name="max" type="Color" default="Color(1, 1, 1, 1)" />
			<description>
				Returns a new color with all components clamped between the components of [code]min[/code] and [code]max[/code], by running [method @GlobalScope.clamp] on each component.
			</description>
		</method>
		<method name="darkened" qualifiers="const">
			<return type="Color" />
			<argument index="0" name="amount" type="float" />
			<description>
				Returns a new color resulting from making this color darker by the specified percentage (ratio from 0 to 1).
				[codeblocks]
				[gdscript]
				var green = Color(0.0, 1.0, 0.0)
				var darkgreen = green.darkened(0.2) # 20% darker than regular green
				[/gdscript]
				[csharp]
				var green = new Color(0.0f, 1.0f, 0.0f);
				Color darkgreen = green.Darkened(0.2f); // 20% darker than regular green
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="find_named_color" qualifiers="static">
			<return type="int" />
			<argument index="0" name="name" type="String" />
			<description>
			</description>
		</method>
		<method name="from_hsv" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="h" type="float" />
			<argument index="1" name="s" type="float" />
			<argument index="2" name="v" type="float" />
			<argument index="3" name="alpha" type="float" default="1.0" />
			<description>
				Constructs a color from an [url=https://en.wikipedia.org/wiki/HSL_and_HSV]HSV profile[/url]. [code]h[/code] (hue), [code]s[/code] (saturation), and [code]v[/code] (value) are typically between 0 and 1.
				[codeblocks]
				[gdscript]
				var c = Color.from_hsv(0.58, 0.5, 0.79, 0.8)
				[/gdscript]
				[csharp]
				var c = Color.FromHsv(0.58f, 0.5f, 0.79f, 0.8f);
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="from_rgbe9995" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="rgbe" type="int" />
			<description>
			</description>
		</method>
		<method name="from_string" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="str" type="String" />
			<argument index="1" name="default" type="Color" />
			<description>
			</description>
		</method>
		<method name="get_luminance" qualifiers="const">
			<return type="float" />
			<description>
				Returns the luminance of the color in the [code][0.0, 1.0][/code] range.
				This is useful when determining light or dark color. Colors with a luminance smaller than 0.5 can be generally considered dark.
			</description>
		</method>
		<method name="get_named_color" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="idx" type="int" />
			<description>
			</description>
		</method>
		<method name="get_named_color_count" qualifiers="static">
			<return type="int" />
			<description>
			</description>
		</method>
		<method name="get_named_color_name" qualifiers="static">
			<return type="String" />
			<argument index="0" name="idx" type="int" />
			<description>
			</description>
		</method>
		<method name="hex" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="hex" type="int" />
			<description>
			</description>
		</method>
		<method name="hex64" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="hex" type="int" />
			<description>
			</description>
		</method>
		<method name="html" qualifiers="static">
			<return type="Color" />
			<argument index="0" name="rgba" type="String" />
			<description>
			</description>
		</method>
		<method name="html_is_valid" qualifiers="static">
			<return type="bool" />
			<argument index="0" name="color" type="String" />
			<description>
			</description>
		</method>
		<method name="inverted" qualifiers="const">
			<return type="Color" />
			<description>
				Returns the inverted color [code](1 - r, 1 - g, 1 - b, a)[/code].
				[codeblocks]
				[gdscript]
				var color = Color(0.3, 0.4, 0.9)
				var inverted_color = color.inverted() # Equivalent to `Color(0.7, 0.6, 0.1)`
				[/gdscript]
				[csharp]
				var color = new Color(0.3f, 0.4f, 0.9f);
				Color invertedColor = color.Inverted(); // Equivalent to `new Color(0.7f, 0.6f, 0.1f)`
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="is_equal_approx" qualifiers="const">
			<return type="bool" />
			<argument index="0" name="to" type="Color" />
			<description>
				Returns [code]true[/code] if this color and [code]color[/code] are approximately equal, by running [method @GlobalScope.is_equal_approx] on each component.
			</description>
		</method>
		<method name="lerp" qualifiers="const">
			<return type="Color" />
			<argument index="0" name="to" type="Color" />
			<argument index="1" name="weight" type="float" />
			<description>
				Returns the linear interpolation with another color. The interpolation factor [code]weight[/code] is between 0 and 1.
				[codeblocks]
				[gdscript]
				var c1 = Color(1.0, 0.0, 0.0)
				var c2 = Color(0.0, 1.0, 0.0)
				var lerp_color = c1.lerp(c2, 0.5) # Equivalent to `Color(0.5, 0.5, 0.0)`
				[/gdscript]
				[csharp]
				var c1 = new Color(1.0f, 0.0f, 0.0f);
				var c2 = new Color(0.0f, 1.0f, 0.0f);
				Color lerpColor = c1.Lerp(c2, 0.5f); // Equivalent to `new Color(0.5f, 0.5f, 0.0f)`
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="lightened" qualifiers="const">
			<return type="Color" />
			<argument index="0" name="amount" type="float" />
			<description>
				Returns a new color resulting from making this color lighter by the specified percentage (ratio from 0 to 1).
				[codeblocks]
				[gdscript]
				var green = Color(0.0, 1.0, 0.0)
				var lightgreen = green.lightened(0.2) # 20% lighter than regular green
				[/gdscript]
				[csharp]
				var green = new Color(0.0f, 1.0f, 0.0f);
				Color lightgreen = green.Lightened(0.2f); // 20% lighter than regular green
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_abgr32" qualifiers="const">
			<return type="int" />
			<description>
				Returns the color converted to a 32-bit integer in ABGR format (each byte represents a color channel). ABGR is the reversed version of the default format.
				[codeblocks]
				[gdscript]
				var color = Color(1, 0.5, 0.2)
				print(color.to_abgr32()) # Prints 4281565439
				[/gdscript]
				[csharp]
				var color = new Color(1.0f, 0.5f, 0.2f);
				GD.Print(color.ToAbgr32()); // Prints 4281565439
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_abgr64" qualifiers="const">
			<return type="int" />
			<description>
				Returns the color converted to a 64-bit integer in ABGR format (each word represents a color channel). ABGR is the reversed version of the default format.
				[codeblocks]
				[gdscript]
				var color = Color(1, 0.5, 0.2)
				print(color.to_abgr64()) # Prints -225178692812801
				[/gdscript]
				[csharp]
				var color = new Color(1.0f, 0.5f, 0.2f);
				GD.Print(color.ToAbgr64()); // Prints -225178692812801
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_argb32" qualifiers="const">
			<return type="int" />
			<description>
				Returns the color converted to a 32-bit integer in ARGB format (each byte represents a color channel). ARGB is more compatible with DirectX.
				[codeblocks]
				[gdscript]
				var color = Color(1, 0.5, 0.2)
				print(color.to_argb32()) # Prints 4294934323
				[/gdscript]
				[csharp]
				var color = new Color(1.0f, 0.5f, 0.2f);
				GD.Print(color.ToArgb32()); // Prints 4294934323
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_argb64" qualifiers="const">
			<return type="int" />
			<description>
				Returns the color converted to a 64-bit integer in ARGB format (each word represents a color channel). ARGB is more compatible with DirectX.
				[codeblocks]
				[gdscript]
				var color = Color(1, 0.5, 0.2)
				print(color.to_argb64()) # Prints -2147470541
				[/gdscript]
				[csharp]
				var color = new Color(1.0f, 0.5f, 0.2f);
				GD.Print(color.ToArgb64()); // Prints -2147470541
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_html" qualifiers="const">
			<return type="String" />
			<argument index="0" name="with_alpha" type="bool" default="true" />
			<description>
				Returns the color converted to an HTML hexadecimal color string in RGBA format (ex: [code]ff34f822[/code]).
				Setting [code]with_alpha[/code] to [code]false[/code] excludes alpha from the hexadecimal string (and uses RGB instead of RGBA format).
				[codeblocks]
				[gdscript]
				var color = Color(1, 1, 1, 0.5)
				var with_alpha = color.to_html() # Returns "ffffff7f"
				var without_alpha = color.to_html(false) # Returns "ffffff"
				[/gdscript]
				[csharp]
				var color = new Color(1, 1, 1, 0.5f);
				String withAlpha = color.ToHtml(); // Returns "ffffff7f"
				String withoutAlpha = color.ToHtml(false); // Returns "ffffff"
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_rgba32" qualifiers="const">
			<return type="int" />
			<description>
				Returns the color converted to a 32-bit integer in RGBA format (each byte represents a color channel). RGBA is Godot's default format.
				[codeblocks]
				[gdscript]
				var color = Color(1, 0.5, 0.2)
				print(color.to_rgba32()) # Prints 4286526463
				[/gdscript]
				[csharp]
				var color = new Color(1, 0.5f, 0.2f);
				GD.Print(color.ToRgba32()); // Prints 4286526463
				[/csharp]
				[/codeblocks]
			</description>
		</method>
		<method name="to_rgba64" qualifiers="const">
			<return type="int" />
			<description>
				Returns the color converted to a 64-bit integer in RGBA format (each word represents a color channel). RGBA is Godot's default format.
				[codeblocks]
				[gdscript]
				var color = Color(1, 0.5, 0.2)
				print(color.to_rgba64()) # Prints -140736629309441
				[/gdscript]
				[csharp]
				var color = new Color(1, 0.5f, 0.2f);
				GD.Print(color.ToRgba64()); // Prints -140736629309441
				[/csharp]
				[/codeblocks]
			</description>
		</method>
	</methods>
	<members>
		<member name="a" type="float" setter="" getter="" default="1.0">
			The color's alpha component, typically on the range of 0 to 1. A value of 0 means that the color is fully transparent. A value of 1 means that the color is fully opaque.
		</member>
		<member name="a8" type="int" setter="" getter="" default="255">
			Wrapper for [member a] that uses the range 0 to 255 instead of 0 to 1.
		</member>
		<member name="b" type="float" setter="" getter="" default="0.0">
			The color's blue component, typically on the range of 0 to 1.
		</member>
		<member name="b8" type="int" setter="" getter="" default="0">
			Wrapper for [member b] that uses the range 0 to 255 instead of 0 to 1.
		</member>
		<member name="g" type="float" setter="" getter="" default="0.0">
			The color's green component, typically on the range of 0 to 1.
		</member>
		<member name="g8" type="int" setter="" getter="" default="0">
			Wrapper for [member g] that uses the range 0 to 255 instead of 0 to 1.
		</member>
		<member name="h" type="float" setter="" getter="" default="0.0">
			The HSV hue of this color, on the range 0 to 1.
		</member>
		<member name="r" type="float" setter="" getter="" default="0.0">
			The color's red component, typically on the range of 0 to 1.
		</member>
		<member name="r8" type="int" setter="" getter="" default="0">
			Wrapper for [member r] that uses the range 0 to 255 instead of 0 to 1.
		</member>
		<member name="s" type="float" setter="" getter="" default="0.0">
			The HSV saturation of this color, on the range 0 to 1.
		</member>
		<member name="v" type="float" setter="" getter="" default="0.0">
			The HSV value (brightness) of this color, on the range 0 to 1.
		</member>
	</members>
	<constants>
		<constant name="ALICE_BLUE" value="Color(0.94, 0.97, 1, 1)">
			Alice blue color.
		</constant>
		<constant name="ANTIQUE_WHITE" value="Color(0.98, 0.92, 0.84, 1)">
			Antique white color.
		</constant>
		<constant name="AQUA" value="Color(0, 1, 1, 1)">
			Aqua color.
		</constant>
		<constant name="AQUAMARINE" value="Color(0.5, 1, 0.83, 1)">
			Aquamarine color.
		</constant>
		<constant name="AZURE" value="Color(0.94, 1, 1, 1)">
			Azure color.
		</constant>
		<constant name="BEIGE" value="Color(0.96, 0.96, 0.86, 1)">
			Beige color.
		</constant>
		<constant name="BISQUE" value="Color(1, 0.89, 0.77, 1)">
			Bisque color.
		</constant>
		<constant name="BLACK" value="Color(0, 0, 0, 1)">
			Black color.
		</constant>
		<constant name="BLANCHED_ALMOND" value="Color(1, 0.92, 0.8, 1)">
			Blanched almond color.
		</constant>
		<constant name="BLUE" value="Color(0, 0, 1, 1)">
			Blue color.
		</constant>
		<constant name="BLUE_VIOLET" value="Color(0.54, 0.17, 0.89, 1)">
			Blue violet color.
		</constant>
		<constant name="BROWN" value="Color(0.65, 0.16, 0.16, 1)">
			Brown color.
		</constant>
		<constant name="BURLYWOOD" value="Color(0.87, 0.72, 0.53, 1)">
			Burlywood color.
		</constant>
		<constant name="CADET_BLUE" value="Color(0.37, 0.62, 0.63, 1)">
			Cadet blue color.
		</constant>
		<constant name="CHARTREUSE" value="Color(0.5, 1, 0, 1)">
			Chartreuse color.
		</constant>
		<constant name="CHOCOLATE" value="Color(0.82, 0.41, 0.12, 1)">
			Chocolate color.
		</constant>
		<constant name="CORAL" value="Color(1, 0.5, 0.31, 1)">
			Coral color.
		</constant>
		<constant name="CORNFLOWER_BLUE" value="Color(0.39, 0.58, 0.93, 1)">
			Cornflower blue color.
		</constant>
		<constant name="CORNSILK" value="Color(1, 0.97, 0.86, 1)">
			Cornsilk color.
		</constant>
		<constant name="CRIMSON" value="Color(0.86, 0.08, 0.24, 1)">
			Crimson color.
		</constant>
		<constant name="CYAN" value="Color(0, 1, 1, 1)">
			Cyan color.
		</constant>
		<constant name="DARK_BLUE" value="Color(0, 0, 0.55, 1)">
			Dark blue color.
		</constant>
		<constant name="DARK_CYAN" value="Color(0, 0.55, 0.55, 1)">
			Dark cyan color.
		</constant>
		<constant name="DARK_GOLDENROD" value="Color(0.72, 0.53, 0.04, 1)">
			Dark goldenrod color.
		</constant>
		<constant name="DARK_GRAY" value="Color(0.66, 0.66, 0.66, 1)">
			Dark gray color.
		</constant>
		<constant name="DARK_GREEN" value="Color(0, 0.39, 0, 1)">
			Dark green color.
		</constant>
		<constant name="DARK_KHAKI" value="Color(0.74, 0.72, 0.42, 1)">
			Dark khaki color.
		</constant>
		<constant name="DARK_MAGENTA" value="Color(0.55, 0, 0.55, 1)">
			Dark magenta color.
		</constant>
		<constant name="DARK_OLIVE_GREEN" value="Color(0.33, 0.42, 0.18, 1)">
			Dark olive green color.
		</constant>
		<constant name="DARK_ORANGE" value="Color(1, 0.55, 0, 1)">
			Dark orange color.
		</constant>
		<constant name="DARK_ORCHID" value="Color(0.6, 0.2, 0.8, 1)">
			Dark orchid color.
		</constant>
		<constant name="DARK_RED" value="Color(0.55, 0, 0, 1)">
			Dark red color.
		</constant>
		<constant name="DARK_SALMON" value="Color(0.91, 0.59, 0.48, 1)">
			Dark salmon color.
		</constant>
		<constant name="DARK_SEA_GREEN" value="Color(0.56, 0.74, 0.56, 1)">
			Dark sea green color.
		</constant>
		<constant name="DARK_SLATE_BLUE" value="Color(0.28, 0.24, 0.55, 1)">
			Dark slate blue color.
		</constant>
		<constant name="DARK_SLATE_GRAY" value="Color(0.18, 0.31, 0.31, 1)">
			Dark slate gray color.
		</constant>
		<constant name="DARK_TURQUOISE" value="Color(0, 0.81, 0.82, 1)">
			Dark turquoise color.
		</constant>
		<constant name="DARK_VIOLET" value="Color(0.58, 0, 0.83, 1)">
			Dark violet color.
		</constant>
		<constant name="DEEP_PINK" value="Color(1, 0.08, 0.58, 1)">
			Deep pink color.
		</constant>
		<constant name="DEEP_SKY_BLUE" value="Color(0, 0.75, 1, 1)">
			Deep sky blue color.
		</constant>
		<constant name="DIM_GRAY" value="Color(0.41, 0.41, 0.41, 1)">
			Dim gray color.
		</constant>
		<constant name="DODGER_BLUE" value="Color(0.12, 0.56, 1, 1)">
			Dodger blue color.
		</constant>
		<constant name="FIREBRICK" value="Color(0.7, 0.13, 0.13, 1)">
			Firebrick color.
		</constant>
		<constant name="FLORAL_WHITE" value="Color(1, 0.98, 0.94, 1)">
			Floral white color.
		</constant>
		<constant name="FOREST_GREEN" value="Color(0.13, 0.55, 0.13, 1)">
			Forest green color.
		</constant>
		<constant name="FUCHSIA" value="Color(1, 0, 1, 1)">
			Fuchsia color.
		</constant>
		<constant name="GAINSBORO" value="Color(0.86, 0.86, 0.86, 1)">
			Gainsboro color.
		</constant>
		<constant name="GHOST_WHITE" value="Color(0.97, 0.97, 1, 1)">
			Ghost white color.
		</constant>
		<constant name="GOLD" value="Color(1, 0.84, 0, 1)">
			Gold color.
		</constant>
		<constant name="GOLDENROD" value="Color(0.85, 0.65, 0.13, 1)">
			Goldenrod color.
		</constant>
		<constant name="GRAY" value="Color(0.75, 0.75, 0.75, 1)">
			Gray color.
		</constant>
		<constant name="GREEN" value="Color(0, 1, 0, 1)">
			Green color.
		</constant>
		<constant name="GREEN_YELLOW" value="Color(0.68, 1, 0.18, 1)">
			Green yellow color.
		</constant>
		<constant name="HONEYDEW" value="Color(0.94, 1, 0.94, 1)">
			Honeydew color.
		</constant>
		<constant name="HOT_PINK" value="Color(1, 0.41, 0.71, 1)">
			Hot pink color.
		</constant>
		<constant name="INDIAN_RED" value="Color(0.8, 0.36, 0.36, 1)">
			Indian red color.
		</constant>
		<constant name="INDIGO" value="Color(0.29, 0, 0.51, 1)">
			Indigo color.
		</constant>
		<constant name="IVORY" value="Color(1, 1, 0.94, 1)">
			Ivory color.
		</constant>
		<constant name="KHAKI" value="Color(0.94, 0.9, 0.55, 1)">
			Khaki color.
		</constant>
		<constant name="LAVENDER" value="Color(0.9, 0.9, 0.98, 1)">
			Lavender color.
		</constant>
		<constant name="LAVENDER_BLUSH" value="Color(1, 0.94, 0.96, 1)">
			Lavender blush color.
		</constant>
		<constant name="LAWN_GREEN" value="Color(0.49, 0.99, 0, 1)">
			Lawn green color.
		</constant>
		<constant name="LEMON_CHIFFON" value="Color(1, 0.98, 0.8, 1)">
			Lemon chiffon color.
		</constant>
		<constant name="LIGHT_BLUE" value="Color(0.68, 0.85, 0.9, 1)">
			Light blue color.
		</constant>
		<constant name="LIGHT_CORAL" value="Color(0.94, 0.5, 0.5, 1)">
			Light coral color.
		</constant>
		<constant name="LIGHT_CYAN" value="Color(0.88, 1, 1, 1)">
			Light cyan color.
		</constant>
		<constant name="LIGHT_GOLDENROD" value="Color(0.98, 0.98, 0.82, 1)">
			Light goldenrod color.
		</constant>
		<constant name="LIGHT_GRAY" value="Color(0.83, 0.83, 0.83, 1)">
			Light gray color.
		</constant>
		<constant name="LIGHT_GREEN" value="Color(0.56, 0.93, 0.56, 1)">
			Light green color.
		</constant>
		<constant name="LIGHT_PINK" value="Color(1, 0.71, 0.76, 1)">
			Light pink color.
		</constant>
		<constant name="LIGHT_SALMON" value="Color(1, 0.63, 0.48, 1)">
			Light salmon color.
		</constant>
		<constant name="LIGHT_SEA_GREEN" value="Color(0.13, 0.7, 0.67, 1)">
			Light sea green color.
		</constant>
		<constant name="LIGHT_SKY_BLUE" value="Color(0.53, 0.81, 0.98, 1)">
			Light sky blue color.
		</constant>
		<constant name="LIGHT_SLATE_GRAY" value="Color(0.47, 0.53, 0.6, 1)">
			Light slate gray color.
		</constant>
		<constant name="LIGHT_STEEL_BLUE" value="Color(0.69, 0.77, 0.87, 1)">
			Light steel blue color.
		</constant>
		<constant name="LIGHT_YELLOW" value="Color(1, 1, 0.88, 1)">
			Light yellow color.
		</constant>
		<constant name="LIME" value="Color(0, 1, 0, 1)">
			Lime color.
		</constant>
		<constant name="LIME_GREEN" value="Color(0.2, 0.8, 0.2, 1)">
			Lime green color.
		</constant>
		<constant name="LINEN" value="Color(0.98, 0.94, 0.9, 1)">
			Linen color.
		</constant>
		<constant name="MAGENTA" value="Color(1, 0, 1, 1)">
			Magenta color.
		</constant>
		<constant name="MAROON" value="Color(0.69, 0.19, 0.38, 1)">
			Maroon color.
		</constant>
		<constant name="MEDIUM_AQUAMARINE" value="Color(0.4, 0.8, 0.67, 1)">
			Medium aquamarine color.
		</constant>
		<constant name="MEDIUM_BLUE" value="Color(0, 0, 0.8, 1)">
			Medium blue color.
		</constant>
		<constant name="MEDIUM_ORCHID" value="Color(0.73, 0.33, 0.83, 1)">
			Medium orchid color.
		</constant>
		<constant name="MEDIUM_PURPLE" value="Color(0.58, 0.44, 0.86, 1)">
			Medium purple color.
		</constant>
		<constant name="MEDIUM_SEA_GREEN" value="Color(0.24, 0.7, 0.44, 1)">
			Medium sea green color.
		</constant>
		<constant name="MEDIUM_SLATE_BLUE" value="Color(0.48, 0.41, 0.93, 1)">
			Medium slate blue color.
		</constant>
		<constant name="MEDIUM_SPRING_GREEN" value="Color(0, 0.98, 0.6, 1)">
			Medium spring green color.
		</constant>
		<constant name="MEDIUM_TURQUOISE" value="Color(0.28, 0.82, 0.8, 1)">
			Medium turquoise color.
		</constant>
		<constant name="MEDIUM_VIOLET_RED" value="Color(0.78, 0.08, 0.52, 1)">
			Medium violet red color.
		</constant>
		<constant name="MIDNIGHT_BLUE" value="Color(0.1, 0.1, 0.44, 1)">
			Midnight blue color.
		</constant>
		<constant name="MINT_CREAM" value="Color(0.96, 1, 0.98, 1)">
			Mint cream color.
		</constant>
		<constant name="MISTY_ROSE" value="Color(1, 0.89, 0.88, 1)">
			Misty rose color.
		</constant>
		<constant name="MOCCASIN" value="Color(1, 0.89, 0.71, 1)">
			Moccasin color.
		</constant>
		<constant name="NAVAJO_WHITE" value="Color(1, 0.87, 0.68, 1)">
			Navajo white color.
		</constant>
		<constant name="NAVY_BLUE" value="Color(0, 0, 0.5, 1)">
			Navy blue color.
		</constant>
		<constant name="OLD_LACE" value="Color(0.99, 0.96, 0.9, 1)">
			Old lace color.
		</constant>
		<constant name="OLIVE" value="Color(0.5, 0.5, 0, 1)">
			Olive color.
		</constant>
		<constant name="OLIVE_DRAB" value="Color(0.42, 0.56, 0.14, 1)">
			Olive drab color.
		</constant>
		<constant name="ORANGE" value="Color(1, 0.65, 0, 1)">
			Orange color.
		</constant>
		<constant name="ORANGE_RED" value="Color(1, 0.27, 0, 1)">
			Orange red color.
		</constant>
		<constant name="ORCHID" value="Color(0.85, 0.44, 0.84, 1)">
			Orchid color.
		</constant>
		<constant name="PALE_GOLDENROD" value="Color(0.93, 0.91, 0.67, 1)">
			Pale goldenrod color.
		</constant>
		<constant name="PALE_GREEN" value="Color(0.6, 0.98, 0.6, 1)">
			Pale green color.
		</constant>
		<constant name="PALE_TURQUOISE" value="Color(0.69, 0.93, 0.93, 1)">
			Pale turquoise color.
		</constant>
		<constant name="PALE_VIOLET_RED" value="Color(0.86, 0.44, 0.58, 1)">
			Pale violet red color.
		</constant>
		<constant name="PAPAYA_WHIP" value="Color(1, 0.94, 0.84, 1)">
			Papaya whip color.
		</constant>
		<constant name="PEACH_PUFF" value="Color(1, 0.85, 0.73, 1)">
			Peach puff color.
		</constant>
		<constant name="PERU" value="Color(0.8, 0.52, 0.25, 1)">
			Peru color.
		</constant>
		<constant name="PINK" value="Color(1, 0.75, 0.8, 1)">
			Pink color.
		</constant>
		<constant name="PLUM" value="Color(0.87, 0.63, 0.87, 1)">
			Plum color.
		</constant>
		<constant name="POWDER_BLUE" value="Color(0.69, 0.88, 0.9, 1)">
			Powder blue color.
		</constant>
		<constant name="PURPLE" value="Color(0.63, 0.13, 0.94, 1)">
			Purple color.
		</constant>
		<constant name="REBECCA_PURPLE" value="Color(0.4, 0.2, 0.6, 1)">
			Rebecca purple color.
		</constant>
		<constant name="RED" value="Color(1, 0, 0, 1)">
			Red color.
		</constant>
		<constant name="ROSY_BROWN" value="Color(0.74, 0.56, 0.56, 1)">
			Rosy brown color.
		</constant>
		<constant name="ROYAL_BLUE" value="Color(0.25, 0.41, 0.88, 1)">
			Royal blue color.
		</constant>
		<constant name="SADDLE_BROWN" value="Color(0.55, 0.27, 0.07, 1)">
			Saddle brown color.
		</constant>
		<constant name="SALMON" value="Color(0.98, 0.5, 0.45, 1)">
			Salmon color.
		</constant>
		<constant name="SANDY_BROWN" value="Color(0.96, 0.64, 0.38, 1)">
			Sandy brown color.
		</constant>
		<constant name="SEA_GREEN" value="Color(0.18, 0.55, 0.34, 1)">
			Sea green color.
		</constant>
		<constant name="SEASHELL" value="Color(1, 0.96, 0.93, 1)">
			Seashell color.
		</constant>
		<constant name="SIENNA" value="Color(0.63, 0.32, 0.18, 1)">
			Sienna color.
		</constant>
		<constant name="SILVER" value="Color(0.75, 0.75, 0.75, 1)">
			Silver color.
		</constant>
		<constant name="SKY_BLUE" value="Color(0.53, 0.81, 0.92, 1)">
			Sky blue color.
		</constant>
		<constant name="SLATE_BLUE" value="Color(0.42, 0.35, 0.8, 1)">
			Slate blue color.
		</constant>
		<constant name="SLATE_GRAY" value="Color(0.44, 0.5, 0.56, 1)">
			Slate gray color.
		</constant>
		<constant name="SNOW" value="Color(1, 0.98, 0.98, 1)">
			Snow color.
		</constant>
		<constant name="SPRING_GREEN" value="Color(0, 1, 0.5, 1)">
			Spring green color.
		</constant>
		<constant name="STEEL_BLUE" value="Color(0.27, 0.51, 0.71, 1)">
			Steel blue color.
		</constant>
		<constant name="TAN" value="Color(0.82, 0.71, 0.55, 1)">
			Tan color.
		</constant>
		<constant name="TEAL" value="Color(0, 0.5, 0.5, 1)">
			Teal color.
		</constant>
		<constant name="THISTLE" value="Color(0.85, 0.75, 0.85, 1)">
			Thistle color.
		</constant>
		<constant name="TOMATO" value="Color(1, 0.39, 0.28, 1)">
			Tomato color.
		</constant>
		<constant name="TRANSPARENT" value="Color(1, 1, 1, 0)">
			Transparent color (white with zero alpha).
		</constant>
		<constant name="TURQUOISE" value="Color(0.25, 0.88, 0.82, 1)">
			Turquoise color.
		</constant>
		<constant name="VIOLET" value="Color(0.93, 0.51, 0.93, 1)">
			Violet color.
		</constant>
		<constant name="WEB_GRAY" value="Color(0.5, 0.5, 0.5, 1)">
			Web gray color.
		</constant>
		<constant name="WEB_GREEN" value="Color(0, 0.5, 0, 1)">
			Web green color.
		</constant>
		<constant name="WEB_MAROON" value="Color(0.5, 0, 0, 1)">
			Web maroon color.
		</constant>
		<constant name="WEB_PURPLE" value="Color(0.5, 0, 0.5, 1)">
			Web purple color.
		</constant>
		<constant name="WHEAT" value="Color(0.96, 0.87, 0.7, 1)">
			Wheat color.
		</constant>
		<constant name="WHITE" value="Color(1, 1, 1, 1)">
			White color.
		</constant>
		<constant name="WHITE_SMOKE" value="Color(0.96, 0.96, 0.96, 1)">
			White smoke color.
		</constant>
		<constant name="YELLOW" value="Color(1, 1, 0, 1)">
			Yellow color.
		</constant>
		<constant name="YELLOW_GREEN" value="Color(0.6, 0.8, 0.2, 1)">
			Yellow green color.
		</constant>
	</constants>
	<operators>
		<operator name="operator !=">
			<return type="bool" />
			<description>
			</description>
		</operator>
		<operator name="operator !=">
			<return type="bool" />
			<argument index="0" name="right" type="Color" />
			<description>
				Returns [code]true[/code] if the colors are not equal.
				[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
			</description>
		</operator>
		<operator name="operator *">
			<return type="Color" />
			<argument index="0" name="right" type="Color" />
			<description>
				Multiplies each component of the [Color] by the components of the given [Color].
			</description>
		</operator>
		<operator name="operator *">
			<return type="Color" />
			<argument index="0" name="right" type="float" />
			<description>
				Multiplies each component of the [Color] by the given [float].
			</description>
		</operator>
		<operator name="operator *">
			<return type="Color" />
			<argument index="0" name="right" type="int" />
			<description>
				Multiplies each component of the [Color] by the given [int].
			</description>
		</operator>
		<operator name="operator +">
			<return type="Color" />
			<argument index="0" name="right" type="Color" />
			<description>
				Adds each component of the [Color] with the components of the given [Color].
			</description>
		</operator>
		<operator name="operator -">
			<return type="Color" />
			<argument index="0" name="right" type="Color" />
			<description>
				Subtracts each component of the [Color] by the components of the given [Color].
			</description>
		</operator>
		<operator name="operator /">
			<return type="Color" />
			<argument index="0" name="right" type="Color" />
			<description>
				Divides each component of the [Color] by the components of the given [Color].
			</description>
		</operator>
		<operator name="operator /">
			<return type="Color" />
			<argument index="0" name="right" type="float" />
			<description>
				Divides each component of the [Color] by the given [float].
			</description>
		</operator>
		<operator name="operator /">
			<return type="Color" />
			<argument index="0" name="right" type="int" />
			<description>
				Divides each component of the [Color] by the given [int].
			</description>
		</operator>
		<operator name="operator ==">
			<return type="bool" />
			<description>
			</description>
		</operator>
		<operator name="operator ==">
			<return type="bool" />
			<argument index="0" name="right" type="Color" />
			<description>
				Returns [code]true[/code] if the colors are exactly equal.
				[b]Note:[/b] Due to floating-point precision errors, consider using [method is_equal_approx] instead, which is more reliable.
			</description>
		</operator>
		<operator name="operator []">
			<return type="float" />
			<argument index="0" name="index" type="int" />
			<description>
				Access color components using their index. [code]c[0][/code] is equivalent to [code]c.r[/code], [code]c[1][/code] is equivalent to [code]c.g[/code], [code]c[2][/code] is equivalent to [code]c.b[/code], and [code]c[3][/code] is equivalent to [code]c.a[/code].
			</description>
		</operator>
		<operator name="operator unary+">
			<return type="Color" />
			<description>
				Returns the same value as if the [code]+[/code] was not there. Unary [code]+[/code] does nothing, but sometimes it can make your code more readable.
			</description>
		</operator>
		<operator name="operator unary-">
			<return type="Color" />
			<description>
				Inverts the given color. This is equivalent to [code]Color.WHITE - c[/code] or [code]Color(1 - c.r, 1 - c.g, 1 - c.b, 1 - c.a)[/code].
			</description>
		</operator>
	</operators>
</class>


text:
package de.nierbeck.example.vertx;

import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.SharedMetricRegistries;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.eventbus.EventBus;
import io.vertx.core.spi.VertxMetricsFactory;
import io.vertx.core.spi.cluster.ClusterManager;
import io.vertx.ext.dropwizard.DropwizardMetricsOptions;
import io.vertx.ext.dropwizard.MetricsService;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
import org.osgi.service.component.annotations.*;

import java.util.logging.Level;
import java.util.logging.Logger;

import static de.nierbeck.example.vertx.TcclSwitch.executeWithTCCLSwitch;

@interface VertxConfig {
    int getWorkerPoolSize();
    int getEventLoopPoolSize();
    boolean getHAEnabled() default false;
    String getHAGroup();
}

@Component(immediate = true, service = {})
public class VertxService {

    private final static Logger LOGGER = Logger.getLogger("VertxPublisher");
    private ServiceRegistration<Vertx> vertxRegistration;
    private ServiceRegistration<EventBus> ebRegistration;
    private ServiceRegistration<MetricRegistry> metricsRegistration;
    private Vertx vertx;
    private MetricRegistry registry;

    @Reference
    private VertxMetricsFactory metrxFactory;

    @Reference(cardinality=ReferenceCardinality.OPTIONAL, policy=ReferencePolicy.DYNAMIC, bind="bindClusterManager", unbind="unbindClusterManager")
    private volatile ClusterManager clusterManager;

    private ServiceRegistration<MetricsService> metricsServiceRegistration;
    private BundleContext bundleContext;
    private VertxConfig cfg;

    @Activate
    public void start(BundleContext context, VertxConfig cfg) {
        LOGGER.info("Creating Vert.x instance");

        this.bundleContext = context;
        this.cfg = cfg;

        createAndRegisterVertx();

    }

    @Deactivate
    public void stop(BundleContext context) {
        deregisterVertx();
    }

    private void createAndRegisterVertx() {
        VertxOptions options = new VertxOptions().setMetricsOptions(new DropwizardMetricsOptions()
                .setJmxEnabled(true)
                .setJmxDomain("vertx-metrics")
                .setRegistryName("vertx-karaf-registry")
                .setFactory(metrxFactory)
            );

        if (cfg.getWorkerPoolSize() > 0) {
            options.setWorkerPoolSize(cfg.getWorkerPoolSize());
        }

        if (cfg.getEventLoopPoolSize() > 0) {
            options.setEventLoopPoolSize(cfg.getEventLoopPoolSize());
        }

        if (cfg.getHAEnabled()) {
            options.setHAEnabled(cfg.getHAEnabled());
            if (cfg.getHAGroup() != null && !cfg.getHAGroup().isEmpty()) {
                options.setHAGroup(cfg.getHAGroup());
            }
        }

        if (clusterManager != null) {
            LOGGER.info("Starting vertx with cluster manager");
            options.setClusterManager(clusterManager);
        }

        try {
            vertx = executeWithTCCLSwitch(() -> Vertx.vertx(options));
        } catch (Exception e) {
            LOGGER.log(Level.SEVERE, "Error while creating vertx system", e);
            return;
        }

        vertxRegistration = bundleContext.registerService(Vertx.class, vertx, null);
        LOGGER.info("Vert.x service registered");
        ebRegistration = bundleContext.registerService(EventBus.class, vertx.eventBus(), null);
        LOGGER.info("Vert.x Event Bus service registered");
        registry = SharedMetricRegistries.getOrCreate("vertx-karaf-registry");
        metricsRegistration = bundleContext.registerService(MetricRegistry.class, registry, null);
        LOGGER.info("Vert.x MetricsService service registered");
        MetricsService metricsService = MetricsService.create(vertx);
        metricsServiceRegistration = bundleContext.registerService(MetricsService.class, metricsService, null);
    }

    private void deregisterVertx() {
        if (metricsServiceRegistration != null) {
            metricsServiceRegistration.unregister();
            metricsServiceRegistration = null;
        }
        if (metricsRegistration != null) {
            metricsRegistration.unregister();
            metricsRegistration = null;
        }
        if (ebRegistration != null) {
            ebRegistration.unregister();
            ebRegistration = null;
        }
        if (vertxRegistration != null) {
            vertxRegistration.unregister();
            vertxRegistration = null;
        }
        if (vertx != null) {
            vertx.close();
        }
        if (registry != null) {
            registry = null;
        }
    }

    public void bindClusterManager(ClusterManager clusterManager) {
        this.clusterManager = clusterManager;
        deregisterVertx();
        createAndRegisterVertx();
    }

    public void unbindClusterManager(ClusterManager clusterManager) {
        this.clusterManager = null;
        deregisterVertx();
        createAndRegisterVertx();
    }

}


text:
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings

class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('basicviz', '0022_auto_20160906_1954'),
    ]

    operations = [
    ]


text:
namespace {

// Helper class to display the RequestFileSystemDialogView dialog for testing.
class RequestFileSystemDialogTest : public DialogBrowserTest {
 public:
  RequestFileSystemDialogTest() {}

  RequestFileSystemDialogTest(const RequestFileSystemDialogTest&) = delete;
  RequestFileSystemDialogTest& operator=(const RequestFileSystemDialogTest&) =
      delete;

  void ShowUi(const std::string& name) override {
    RequestFileSystemDialogView::ShowDialog(
        browser()->tab_strip_model()->GetActiveWebContents(),
        "RequestFileSystemDialogTest", "TestVolume", true,
        base::BindOnce(&RequestFileSystemDialogTest::DialogCallback));
  }

 private:
  static void DialogCallback(ui::DialogButton button) {}
};

IN_PROC_BROWSER_TEST_F(RequestFileSystemDialogTest, InvokeUi_default) {
  ShowAndVerifyUi();
}

}  // namespace


text:
#include <particle.h>

particle::particle() : 	position(), velocity(), totalDistance(0,0,0)
{}

__device__ __host__
void particle::advance(float d)
{
	velocity.normalize();
	float dx = d * velocity.x;
	position.x += dx;
	totalDistance.x += dx;
	float dy = d * velocity.y;
 	position.y += dy;
 	totalDistance.y += dy;
 	float dz = d * velocity.z;
	position.z += dz;
	totalDistance.z += dz;
	velocity.scramble();
}

const v3& particle::getTotalDistance() const
{	return totalDistance; }


text:
set -e
if [ ! -f make.bash ]; then
	echo 'all.bash must be run from $GOROOT/src' 1>&2
	exit 1
fi
OLDPATH="$PATH"
. ./make.bash "$@" --no-banner
bash run.bash --no-rebuild
PATH="$OLDPATH"
$GOTOOLDIR/dist banner  # print build info


text:
'use strict';

/**
 * @ngdoc overview
 * @name mountainLogApp
 * @description
 * # mountainLogApp
 *
 * Main module of the application.
 */
angular
  .module('mountainLogApp', [
    'ngAnimate',
    'ngCookies',
    'ngResource',
    'ngRoute',
    'ngSanitize',
    'ngTouch'
  ])
  .config(function ($routeProvider) {
    $routeProvider
      .when('/', {
        templateUrl: 'views/main.html',
        controller: 'MainCtrl'
      })
      .when('/about', {
        templateUrl: 'views/about.html',
        controller: 'AboutCtrl'
      })
      .otherwise({
        redirectTo: '/'
      });
  });


text:
require 'spec_helper'

describe Geometry


text:
describe InstaParse do
  subject = {InstaParse}

  describe ".version" do
    it "returns version" do
      expect(subject.version).to =~ /[\d]+\.[\d]+\.[\d]/
    end
  end

end


text:
import org.jetbrains.annotations.Nullable;

class X {
  void foo(java.util.List l) {
    for (Object o : l) {
        Object x = newMethod(o);
        if (x == null) continue;
      System.out.println(x);
    }
  }

    @Nullable
    private Object newMethod(Object o) {
        if (o == null) return null;
        String x = bar(o);
        return x;
    }

    private String bar(Object o) {
    return "";
  }
}


text:
      Error:
      {{error.message}}

    <form ng-submit="create(name, cnpj)" novalidate>

        Nome Fantasia
        <input type="text" class="form-control" ng-model="name" maxlength="255"required>

        CNPJ
        <input type="text" class="form-control" ng-model="cnpj" ui-br-cnpj-mask required>

      <button type="submit" class="btn btn-primary btn-block">Criar Empresa</button>
      Cancelar
    </form>


text:
module.exports = function(app, req, moment, logger, dataProvider) {

  /* REGISTRO DE TIEMPO */
var TiempoTotal = 0;
var TiempoInicial = 0;
var TiempoActual;

var UltimoRiegoTiempo = 0;
var UltimoRiegoFecha;
var Tiempo = 0;

//var BombaService = require("../lib/servicios/BombaService.js");
//var bombasvc = new BombaService(dispositivos,logger);

/* INICIO API REST */

/**
 * @api {get} /bomba/:id Obtiene la informacion de la bomba
 * @apiName bomba
 *
 * @apiParam {String} id de la bomba (Pin de conexion en Arduino)
 *
 * @apiSuccess {Json} informacion de la bomba.
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *    {"supportedModes":[0,1,2],
 *      "mode":1,
 *      "value":0,
 *      "report":1,
 *      "analogChannel":0,
 *      "state":0,
 *      "id":14,
 *      "TiempoEncendida":0,
 *      "UltimoRiegoFecha":"2015-02-21T16:12:00.252Z",
 *      "UltimoRiegoTiempo":0}
 *
 * @apiError ECONNREFUSED.
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "ECONNREFUSED"
 *     }
 */
app.get('/bomba/:id', function (request, response) {
    var idBomba = request.params.id;

    try {

      bombasvc.GetEstadoBomba(idBomba, function(data) {

          if (data instanceof Error) {
           logger.error('Ens la llamada al servicio /bomba/:id -> ERROR : ', data);
           response.json(data);
          }
           else
           {
            if (data["Encendida"] == true && TiempoInicial == 0)
            {
                TiempoInicial = moment();
            }

            if (TiempoInicial > 0)
            {
              TiempoTotal = TiempoInicial.fromNow(true);
              logger.info("Bomba encendida durante " + TiempoInicial.fromNow(true));
            }

            var valor = 0;

            if (data["Encendida"])
            {

              valor = 255;
            }
            dataProvider.Bomba().Save(idBomba, valor,TiempoTotal,TiempoInicial);

            data["TiempoEncendida"] = TiempoTotal;
            data["UltimoRiegoFecha"] = UltimoRiegoFecha;
            data["UltimoRiegoTiempo"] = UltimoRiegoTiempo;
            response.json(data);
           }

      });

    } catch(exception)
    {
      logger.error("/bomba/:id -> Error: " + exception);
    }
});

/**
 * @api {get} /activarBomba/:id Activa la bomba ubicada en el pin recibido como parametro
 * @apiName activarBomba
 *
 * @apiParam {String} id de la bomba (Pin de conexion en Arduino)
 *
 * @apiSuccess {String} 200 HTTP CODE
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *
 *
 * @apiError ECONNREFUSED.
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "ECONNREFUSED"
 *     }
 */

app.put('/api/bomba/:id', function (request, response) {

});

app.post('/api/bomba/:id', function (request, response) {

});

app.get('/activarBomba/:id', function (request, response) {
    var idBomba = request.params.id;
    try {

        bombasvc.ActivarBomba(idBomba, function(data) {

          if (data instanceof Error) {
             logger.error('En la llamada al servicio /activarBomba/:id -> ERROR : ', data);
             //response.sendStatus(404);
          }
          else
          {
            if(TiempoInicial == 0) {
            TiempoInicial = moment();
            UltimoRiegoFecha = new Date();
            }

            dataProvider.Bomba().Save(idBomba, 255, 0,TiempoInicial);

            response.end();
          }
          });

    } catch (exception) {
        logger.error("/activarBomba/:id -> Error: " + exception);
        //response.sendStatus(404);
    }

});

/**
 * @api {get} /desactivarBomba/:id Activa la bomba ubicada en el pin recibido como parametro
 * @apiName activarBomba
 *
 * @apiParam {String} id de la bomba (Pin de conexion en Arduino)
 *
 * @apiSuccess {String} 200 OK
 *
 * @apiSuccessExample Success-Response:
 *     HTTP/1.1 200 OK
 *
 *
 * @apiError ECONNREFUSED.
 *
 * @apiErrorExample Error-Response:
 *     HTTP/1.1 404 Not Found
 *     {
 *       "error": "ECONNREFUSED"
 *     }
 */

app.get('/desactivarBomba/:id', function (request, response) {
    var idBomba = request.params.id;
    try {

        bombasvc.DesactivarBomba(idBomba, function(data) {
        if (data instanceof Error) {
            logger.error('En la llamada al servicio /desactivarBomba/:id -> ERROR : ', data);
            //response.sendStatus(404);
        }
        else
        {
        UltimoRiegoTiempo = TiempoTotal;
        TiempoInicial = 0;
        TiempoTotal = 0;

        dataProvider.Bomba().Save(idBomba, 0,UltimoRiegoTiempo,TiempoInicial);
        response.end();
        }
        });

    } catch (exception) {
        logger.error("/desactivarBomba/:id -> Error: " + exception);
        //response.sendStatus(404);
    }

});

};


text:
Personvern i Telemark fylkeskommune

                Når du bruker våre elektroniske løsninger, ønsker vi du skal føle deg trygg på at gjeldende lover og regler følges.
                Denne siden forteller deg hvordan vi behandler personopplysningene du oppgir på nettstedet.

                Hva er personopplysninger?

            Personopplysning er en opplysning som kan knyttes til deg som enkeltperson, slik som for eksempel navn, adresse, telefonnummer, e-postadresse og fødselsnummer.

            Vi behandler personopplysningene i samsvar med personopplysningsloven.

                Formålet med behandlingen av personopplysninger

            Opplysningene du fyller inn i elektroniske skjema sendes over til den som skal behandle din henvendelse i fylkeskommunen. Denne informasjonen gjør at vi er i stand til å gi deg god saksbehandling på din henvendelse. Vi behandler opplysningene om deg på samme måte som om du hadde sendt inn et papirskjema.

                Lagring av personopplysninger

            Når du logger deg på med MinId kan du når som helst velge å avbryte utfyllingen av skjema. Opplysningene du allerede har tastet inn vil slettes umiddelbart fra våre servere.
            Når du velger å sende inn skjema, vil det bli sendt videre til den i fylkeskommunen som skal behandle henvendelsen din. Vi arkiverer henvendelsen i vårt arkivsystem.

                Sikker linje

            Alle opplysninger som overføres mellom din datamaskin og til oss foregår over sikker linje. Løsningen tilsvarer sikkerheten som brukes i nettbankene.

                Rett til innsyn og rett til sletting av personopplysninger

            Du kan når som helst be om å se opplysningene vi har registrert om deg. Dette gjør du ved å sende oss en e-post til post@t-fk.no eller ringe oss på 35 91 70 00. Dersom du finner opplysningene som er unøyaktige eller ufullstendige, kan du kreve å få opplysningene slettet.


text:
import os

NAME_AUTHORITY = os.environ.get("NAME_AUTHORITY", "eightfitzroy.arupiot.com")
DEVICE_NAME = os.environ.get("DEVICE_NAME", "TST-1")

HOST = os.environ.get("BRICKD_HOST", "localhost")
PORT = int(os.environ.get("BRICKD_PORT", "4223"))

SHORT_IDENT = os.environ.get("SHORT_IDENT", "test")

MODULES = []
MENU_MODULES = []
MQTT_CONFIG = {}
ZMQ_CONFIG = {}
GCLOUD_CONFIG = {}
INFLUX_AUTH = {}

ENVAR_MODULES = {
    "ENABLE_MODULE_MENU": ("MenuModule", "navigation", "Navigation"),
    "ENABLE_MODULE_INPUT": ("InputModule", "inputs", "Inputs"),
    "ENABLE_MODULE_SLEEP": ("SleepModule", "sleep", "Sleep"),
    "ENABLE_MODULE_RFID": ("RFIDModule", "rfid", "RFID"),
    "ENABLE_MODULE_INFLUX": ("InfluxModule", "influx", "InfluxDB"),
    "ENABLE_MODULE_HTTP_PUSH": ("HttpPushModule", "httppush", "HTTPpush"),
    "ENABLE_MODULE_TF_SCREEN": ("TFScreen", "tfscreen", "TF Screen"),
    "ENABLE_MODULE_KIVY_SCREEN": ("KivyScreen", "kivyscreen", "Kivy Screen"),
    "ENABLE_MODULE_GOOGLE_IOT": ("GoogleIoTModule", "googleiot", "GoogleIoT"),
    "ENABLE_MODULE_MQTT": ("MQTTModule", "mqtt_module", "MQTT"),
    "ENABLE_MODULE_ZMQ": ("ZMQModule", "zmq_module", "ZMQ"),
    "ENABLE_MODULE_KILN": ("KilnModule", "kiln", "Kiln"),
    "ENABLE_MODULE_PICKLE": ("PickleModule", "pickle", "Local Storage"),
}

for envar in ENVAR_MODULES:
    if os.environ.get(envar):
        MODULES.append(ENVAR_MODULES[envar])

ENVAR_MENU_MODULES = {
    "ENABLE_MENU_SENSOR": ("SensorModule", "sensors", "Sensors"),
    "ENABLE_MENU_LIGHTING": ("LightingModule", "lighting", "Lighting"),
    "ENABLE_MENU_DC_POWER": ("DCPowerModule", "dcpower", "Power"),
    "ENABLE_MENU_AC_POWER": ("ACPowerModule", "acpower", "Power"), # Works on RPi only
    "ENABLE_MENU_NETWORK": ("NetworkModule", "network", "Network")
}

for envar in ENVAR_MENU_MODULES:
    if os.environ.get(envar):
        MODULES.append(ENVAR_MENU_MODULES[envar])

if os.environ.get("ENABLE_MODULE_INFLUX"):
    INFLUX_AUTH = {
        "host": os.environ.get("INFLUXDB_HOST", "127.0.0.1"),
        "port": int(os.environ.get("INFLUXDB_PORT", "8086")),
        "user": os.environ.get("INFLUXDB_USER", "admin"),
        "pass": os.environ.get("INFLUXDB_PASS", "admin"),
        "db": os.environ.get("INFLUXDB_DB", "iotdesks"),
        "ssl": bool(os.environ.get("INFLUXDB_HOST"))
    }

if os.environ.get("ENABLE_MODULE_GOOGLE_IOT"):
    GCLOUD_CONFIG = {
        "project_id": os.environ.get("GCLOUD_PROJECT_ID", "digital-building-0000000000000"),
        "cloud_region": os.environ.get("GCLOUD_REGION", "europe-west1"),
        "registry_id": os.environ.get("GCLOUD_REGISTRY_ID", "iotdesks"),
        "device_id": os.environ.get("GCLOUD_DEVICE_ID", "XXXX"),
        "private_key_file": os.environ.get("GCLOUD_PRIVATE_KEY_FILE", "keys/rsa_private.pem"),
        "algorithm": os.environ.get("GCLOUD_ALGORITHM", "RS256"),
        "ca_certs": os.environ.get("GCLOUD_CA_CERTS", "keys/google.pem"),
        "mqtt_bridge_hostname": os.environ.get("GCLOUD_MQTT_HOST", "mqtt.googleapis.com"),
        "mqtt_bridge_port": int(os.environ.get("GCLOUD_MQTT_PORT", "8883")),
    }

if os.environ.get("ENABLE_MODULE_MQTT"):
    MQTT_CONFIG = {
        "mqtt_username": os.environ.get("MQTT_USERNAME"),
        "mqtt_password": os.environ.get("MQTT_PASSWORD"),
        "mqtt_client_id": os.environ.get("MQTT_CLIENT_ID", "test"),
        "mqtt_broker_host": os.environ.get("MQTT_BROKER_HOST"),
        "mqtt_broker_port": int(os.environ.get("MQTT_BROKER_PORT", "8883")),
        "mqtt_publish_topic": os.environ.get("MQTT_PUBLISH_TOPIC", "/ishiki/test/events"),
        "mqtt_subscribe_topic": os.environ.get("MQTT_SUBSCRIBE_TOPIC", "/ishiki/test/commands"),
    }

if os.environ.get("ENABLE_MODULE_ZMQ"):
    ZMQ_CONFIG = {
        "zmq_port": os.environ.get("ZMQ_PORT"),
        "zmq_topic": os.environ.get("ZMQ_TOPIC"),
    }

SCHEMA_POST_URL = ""
PICKLEDB = "deskcontrol.db"

try:
    config_module = __import__('config_local',
                               globals(), locals())

    for setting in dir(config_module):
        if setting == setting.upper():
            locals()[setting] = getattr(config_module, setting)
except Exception:
    pass


text:
---
uid: SolidEdgeFrameworkSupport.DatumFrames.Item(System.Object)
summary:
remarks:
syntax:
    parameters:
    - id: Index
      description: Variant (input) index.
example: [*content]
---
[!code-vb[Main](..\snippets\SolidEdgeFrameworkSupport.DatumFrames.Item.bas]


text: change to get a new line


text:
//
// MPC_CharacterLimitedTextField.h

// Created by Mike Critchley on 5/22/16.
// Copyright (c) 2017, Mike Critchley. All rights reserved.

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

// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

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

/**
 This UITextField subclass harvests text of any language, including emojis and 2-stage entry languages such as Japanese. This class tests for size fit (vs. character count) and thus REQUIRES the width of the target label as well as the size and if possible font/weight that will be used in the target label.

 Subclass your UITextField in storyboard to this class, and create an IBOutlet to its view controller. Or you can cast an existing outlet using (MPC_CharacterLimitedTextField *)self.myExistingTextField

 Demo app and ReadMe at: https://github.com/fareast555/MPC_CharacterLimitedTextField
*/

#import <UIKit/UIKit.h>

@class MPC_CharacterLimitedTextField;

@protocol MPC_CharacterLimitedTextFieldDelegate <UITextFieldDelegate>
@required
/**
//Sends back the textfield after each user entry is confirmed and set to the textfield.
*/
- (void) MPC_UserDidEnterText:(NSString *)updatedText MPC_textField:(MPC_CharacterLimitedTextField *)MPC_textField;

@optional
/**
//Called when the textfield becomes first responder.
*/
- (void) MPC_TextFieldWillBeginEditing:(MPC_CharacterLimitedTextField *)MPC_textField;

/**
//Pings back each time an entry is within bounds.
*/
- (void) MPC_InputDoesNotExceedTextField:(MPC_CharacterLimitedTextField *)MPC_textField;

/**
//Pings back each time user tries to enter some text that doesn't fit.
*/
- (void) MPC_InputDidExceedTextField:(MPC_CharacterLimitedTextField *)MPC_textField;
@end

@interface MPC_CharacterLimitedTextField : UITextField

/**
 After [[MPC_CharacterLimitedTextField] alloc] init], set self.myField.MPC_TextFieldDelegate = self.
 */
@property (weak, nonatomic) id<MPC_CharacterLimitedTextFieldDelegate>MPC_TextFieldDelegate;

/**
 Set callbackIsImmediate to YES to get an update to the delegate with each character(s) entered. NO will return the textfield when the user presses DONE (SEND etc) on the keyboard.
 */
@property (assign, nonatomic) BOOL callbackIsImmediate;

/**
 Call this public method before the user interacts with the field to set the WIDTH of the textfield you will eventually need to output to. For example, if you are collecting text in one part of your app that is to be displayed in a UITableViewCell with a label whose max width will likely be 175 points or less, with a system font of size 13.5, call: [self.MPC_textField outPutTextFitToLabelWithWidth:176 fontWithSize:[UIFont systemFontOfSize:13.5 weight:UIFontWeightMedium]];
*/
- (void) outPutTextFitToLabelWithWidth:(CGFloat)width fontWithSize:(UIFont *)font;

/**
 Call this public method to pre-load any existing user-generated text you already have.
 This is not placeholder text. To set a placeholder: self.myField.placeholder = @"some text";
*/
- (void) displayTextOnLoad:(NSString *)displayText;

@end


text:
//Problem 24. Order words
//Write a program that reads a list of words, separated by spaces and prints the list in an alphabetical order.

using System;
using System.Linq;
using System.Text;

namespace OrderWords
{
    class OrderWords
    {
        static void Main()
        {
            string[] words = Console.ReadLine().Split(new char[]{' '}, StringSplitOptions.RemoveEmptyEntries)
                .OrderBy(p => p).ToArray();
            foreach (var word in words)
            {
                Console.WriteLine(word);
            }
        }
    }
}