code
stringlengths 4
1.01M
| language
stringclasses 2
values |
---|---|
//
// MenuTest.cs: Test cases for Menu, MainMenu
//
// Author:
// Ritvik Mayank ([email protected])
//
// (C) 2005 Novell, Inc. (http://www.novell.com)
//
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Reflection;
using NUnit.Framework;
namespace MonoTests.System.Windows.Forms
{
[TestFixture]
public class MenuTest : TestHelper
{
[Test]
public void MenuPropertyTest ()
{
Menu mymenu = new MainMenu ();
Assert.AreEqual ("System.IntPtr", mymenu.Handle.GetType().FullName, "#1");
Assert.AreEqual (false, mymenu.IsParent, "#2");
// TODO: MDI is not completed yet
//Assert.AreEqual (null, mymenu.MdiListItem, "#3");
Assert.AreEqual (0, mymenu.MenuItems.Count,"#4");
mymenu.MenuItems.Add ("newmenu1");
mymenu.MenuItems.Add ("newmenu2");
Assert.AreEqual (2, mymenu.MenuItems.Count,"#5");
MainMenu mymainmenu = new MainMenu ();
Assert.AreEqual (RightToLeft.Inherit, mymainmenu.RightToLeft,"#6");
#if NET_2_0
Assert.IsNull (mymenu.Tag);
#endif
}
[Test]
public void GetMainMenuTest ()
{
MainMenu mymainmenu = new MainMenu ();
MenuItem mymenuitem = new MenuItem ();
mymenuitem.Text = "menu 1";
mymainmenu.MenuItems.Add (mymenuitem);
Assert.AreEqual (mymainmenu, mymenuitem.GetMainMenu (), "#7");
}
[Test]
public void CloneMenuTest ()
{
MainMenu mymainmenu1 = new MainMenu ();
MenuItem menuitem1 = new MenuItem ();
MenuItem menuitem2 = new MenuItem ();
menuitem1.Text = "item1";
menuitem2.Text = "item2";
mymainmenu1.MenuItems.Add (menuitem1);
mymainmenu1.MenuItems.Add (menuitem2);
MainMenu mymainmenu2 = mymainmenu1.CloneMenu ();
Assert.AreEqual ("item1", mymainmenu2.MenuItems[0].Text, "#9");
}
[Test]
public void CloneWindowMenuTest ()
{
MenuItem menuitem1 = new MenuItem ();
menuitem1.MdiList = true;
MenuItem menuitem2 = menuitem1.CloneMenu ();
Assert.IsTrue (menuitem2.MdiList, "#1");
}
[Test]
public void GetFormTest ()
{
Form myform = new Form ();
myform.ShowInTaskbar = false;
myform.Name = "New Form";
MainMenu mymainmenu1 = new MainMenu ();
MenuItem menuitem1 = new MenuItem ();
menuitem1.Text = "item1";
mymainmenu1.MenuItems.Add (menuitem1);
myform.Menu = mymainmenu1;
Assert.AreEqual ("New Form", mymainmenu1.GetForm().Name, "#10");
myform.Dispose ();
}
[Test]
public void MenuItemMerge ()
{
MenuItem itemA2 = new MenuItem ("Exit");
itemA2.MergeType = MenuMerge.MergeItems;
itemA2.MergeOrder = 3;
MenuItem itemA1 = new MenuItem ("File");
itemA1.MenuItems.Add (itemA2);
itemA1.MergeType = MenuMerge.MergeItems;
MenuItem itemB2 = new MenuItem ("Open");
itemB2.MergeOrder = 1;
itemB2.MergeType = MenuMerge.Add;
MenuItem itemB3 = new MenuItem ("Close");
itemB3.MergeOrder = 2;
itemB3.MergeType = MenuMerge.Add;
MenuItem itemB1 = new MenuItem ("File");
itemB1.MenuItems.Add (itemB2);
itemB1.MenuItems.Add (itemB3);
itemB1.MergeType = MenuMerge.MergeItems;
MainMenu mainMenu1 = new MainMenu();
mainMenu1.MenuItems.Add (itemA1);
MainMenu mainMenu2 = new MainMenu();
mainMenu2.MenuItems.Add (itemB1);
mainMenu1.MergeMenu (mainMenu2);
Assert.AreEqual ("File", mainMenu1.MenuItems[0].Text, "ItemMerge#1");
Assert.AreEqual ("Open", mainMenu1.MenuItems[0].MenuItems[0].Text, "ItemMerge#2");
Assert.AreEqual ("Close", mainMenu1.MenuItems[0].MenuItems[1].Text, "ItemMerge#3");
Assert.AreEqual ("Exit", mainMenu1.MenuItems[0].MenuItems[2].Text, "ItemMerge#4");
}
[Test] // Xamarin bug 3418
public void TestMenuItemsDispose ()
{
Menu menu = new MainMenu ();
menu.MenuItems.Add (new MenuItem ());
menu.Dispose ();
try {
MenuItem item = menu.MenuItems[0];
Assert.Fail ();
} catch (ArgumentOutOfRangeException) {
}
}
}
}
| Java |
/*
* The code in this file is placed in public domain.
* Contact: Hedede <[email protected]>
*/
#ifndef aw_traits_decay_h
#define aw_traits_decay_h
#include <type_traits>
namespace aw {
template<typename T>
using decay = typename std::decay<T>::type;
template<typename T>
using decay_t = std::decay<T>;
} // namespace aw
#endif//aw_traits_decay_h
| Java |
using System;
using System.Net;
using System.Net.Sockets;
using JetBrains.Annotations;
using NetMQ.Sockets;
namespace NetMQ
{
/// <summary>
/// A NetMQBeaconEventArgs is an EventArgs that provides a property that holds a NetMQBeacon.
/// </summary>
public class NetMQBeaconEventArgs : EventArgs
{
/// <summary>
/// Create a new NetMQBeaconEventArgs object containing the given NetMQBeacon.
/// </summary>
/// <param name="beacon">the NetMQBeacon object to hold a reference to</param>
public NetMQBeaconEventArgs([NotNull] NetMQBeacon beacon)
{
Beacon = beacon;
}
/// <summary>
/// Get the NetMQBeacon object that this holds.
/// </summary>
[NotNull]
public NetMQBeacon Beacon { get; private set; }
}
public class NetMQBeacon : IDisposable, ISocketPollable
{
public const int UdpFrameMax = 255;
public const string ConfigureCommand = "CONFIGURE";
public const string PublishCommand = "PUBLISH";
public const string SilenceCommand = "SILENCE";
/// <summary>
/// Command to subscribe a socket to messages that have the given topic. This is valid only for Subscriber and XSubscriber sockets.
/// </summary>
public const string SubscribeCommand = "SUBSCRIBE";
/// <summary>
/// Command to un-subscribe a socket from messages that have the given topic. This is valid only for Subscriber and XSubscriber sockets.
/// </summary>
public const string UnsubscribeCommand = "UNSUBSCRIBE";
#region Nested class: Shim
private sealed class Shim : IShimHandler
{
private NetMQSocket m_pipe;
private Socket m_udpSocket;
private int m_udpPort;
private EndPoint m_broadcastAddress;
private NetMQFrame m_transmit;
private NetMQFrame m_filter;
private NetMQTimer m_pingTimer;
private NetMQPoller m_poller;
private void Configure([NotNull] string interfaceName, int port)
{
// In case the beacon was configured twice
if (m_udpSocket != null)
{
m_poller.Remove(m_udpSocket);
m_udpSocket.Close();
}
m_udpPort = port;
m_udpSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
m_poller.Add(m_udpSocket, OnUdpReady);
// Ask operating system for broadcast permissions on socket
m_udpSocket.EnableBroadcast = true;
// Allow multiple owners to bind to socket; incoming
// messages will replicate to each owner
m_udpSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
IPAddress bindTo = null;
IPAddress sendTo = null;
if (interfaceName == "*")
{
bindTo = IPAddress.Any;
sendTo = IPAddress.Broadcast;
}
else if (interfaceName == "loopback")
{
bindTo = IPAddress.Loopback;
sendTo = IPAddress.Broadcast;
}
else
{
var interfaceCollection = new InterfaceCollection();
var interfaceAddress = !string.IsNullOrEmpty(interfaceName)
? IPAddress.Parse(interfaceName)
: null;
foreach (var @interface in interfaceCollection)
{
if (interfaceAddress == null || @interface.Address.Equals(interfaceAddress))
{
sendTo = @interface.BroadcastAddress;
bindTo = @interface.Address;
break;
}
}
}
if (bindTo != null)
{
m_broadcastAddress = new IPEndPoint(sendTo, m_udpPort);
m_udpSocket.Bind(new IPEndPoint(bindTo, m_udpPort));
}
m_pipe.SendFrame(bindTo == null ? "" : bindTo.ToString());
}
private static bool Compare([NotNull] NetMQFrame a, [NotNull] NetMQFrame b, int size)
{
for (int i = 0; i < size; i++)
{
if (a.Buffer[i] != b.Buffer[i])
return false;
}
return true;
}
public void Run(PairSocket shim)
{
m_pipe = shim;
shim.SignalOK();
m_pipe.ReceiveReady += OnPipeReady;
m_pingTimer = new NetMQTimer(interval: TimeSpan.Zero);
m_pingTimer.Elapsed += PingElapsed;
m_pingTimer.Enable = false;
using (m_poller = new NetMQPoller { m_pipe, m_pingTimer })
{
m_poller.Run();
}
// the beacon might never been configured
if (m_udpSocket != null)
m_udpSocket.Close();
}
private void PingElapsed(object sender, NetMQTimerEventArgs e)
{
SendUdpFrame(m_transmit);
}
private void OnUdpReady(Socket socket)
{
string peerName;
var frame = ReceiveUdpFrame(out peerName);
// If filter is set, check that beacon matches it
bool isValid = false;
if (m_filter != null)
{
if (frame.MessageSize >= m_filter.MessageSize && Compare(frame, m_filter, m_filter.MessageSize))
{
isValid = true;
}
}
// If valid, discard our own broadcasts, which UDP echoes to us
if (isValid && m_transmit != null)
{
if (frame.MessageSize == m_transmit.MessageSize && Compare(frame, m_transmit, m_transmit.MessageSize))
{
isValid = false;
}
}
// If still a valid beacon, send on to the API
if (isValid)
{
m_pipe.SendMoreFrame(peerName).SendFrame(frame.Buffer, frame.MessageSize);
}
}
private void OnPipeReady(object sender, NetMQSocketEventArgs e)
{
NetMQMessage message = m_pipe.ReceiveMultipartMessage();
string command = message.Pop().ConvertToString();
switch (command)
{
case ConfigureCommand:
string interfaceName = message.Pop().ConvertToString();
int port = message.Pop().ConvertToInt32();
Configure(interfaceName, port);
break;
case PublishCommand:
m_transmit = message.Pop();
m_pingTimer.Interval = message.Pop().ConvertToInt32();
m_pingTimer.Enable = true;
SendUdpFrame(m_transmit);
break;
case SilenceCommand:
m_transmit = null;
m_pingTimer.Enable = false;
break;
case SubscribeCommand:
m_filter = message.Pop();
break;
case UnsubscribeCommand:
m_filter = null;
break;
case NetMQActor.EndShimMessage:
m_poller.Stop();
break;
default:
throw new ArgumentOutOfRangeException();
}
}
private void SendUdpFrame(NetMQFrame frame)
{
m_udpSocket.SendTo(frame.Buffer, 0, frame.MessageSize, SocketFlags.None, m_broadcastAddress);
}
private NetMQFrame ReceiveUdpFrame(out string peerName)
{
var buffer = new byte[UdpFrameMax];
EndPoint peer = new IPEndPoint(IPAddress.Any, 0);
int bytesRead = m_udpSocket.ReceiveFrom(buffer, ref peer);
var frame = new NetMQFrame(bytesRead);
Buffer.BlockCopy(buffer, 0, frame.Buffer, 0, bytesRead);
peerName = peer.ToString();
return frame;
}
}
#endregion
private readonly NetMQActor m_actor;
private readonly EventDelegator<NetMQBeaconEventArgs> m_receiveEvent;
[CanBeNull] private string m_boundTo;
/// <summary>
/// Create a new NetMQBeacon, contained within the given context.
/// </summary>
/// <param name="context">the NetMQContext to contain this new socket</param>
[Obsolete("Use non context version. This will be removed in NetMQ 4.0.")]
public NetMQBeacon([NotNull] NetMQContext context)
{
m_actor = NetMQActor.Create(context, new Shim());
EventHandler<NetMQActorEventArgs> onReceive = (sender, e) =>
m_receiveEvent.Fire(this, new NetMQBeaconEventArgs(this));
m_receiveEvent = new EventDelegator<NetMQBeaconEventArgs>(
() => m_actor.ReceiveReady += onReceive,
() => m_actor.ReceiveReady -= onReceive);
}
/// <summary>
/// Create a new NetMQBeacon.
/// </summary>
public NetMQBeacon()
{
m_actor = NetMQActor.Create(new Shim());
EventHandler<NetMQActorEventArgs> onReceive = (sender, e) =>
m_receiveEvent.Fire(this, new NetMQBeaconEventArgs(this));
m_receiveEvent = new EventDelegator<NetMQBeaconEventArgs>(
() => m_actor.ReceiveReady += onReceive,
() => m_actor.ReceiveReady -= onReceive);
}
/// <summary>
/// Get the host name this beacon is bound to.
/// </summary>
/// <remarks>
/// This may involve a reverse DNS lookup which can take a second or two.
/// <para/>
/// An empty string is returned if:
/// <list type="bullet">
/// <item>the beacon is not bound,</item>
/// <item>the beacon is bound to all interfaces,</item>
/// <item>an error occurred during reverse DNS lookup.</item>
/// </list>
/// </remarks>
[CanBeNull]
public string HostName
{
get
{
// create a copy for thread safety
var boundTo = m_boundTo;
if (boundTo == null)
return null;
if (IPAddress.Any.ToString() == boundTo || IPAddress.IPv6Any.ToString() == boundTo)
return string.Empty;
try
{
return Dns.GetHostEntry(boundTo).HostName;
}
catch
{
return string.Empty;
}
}
}
/// <summary>
/// Get the socket of the contained actor.
/// </summary>
NetMQSocket ISocketPollable.Socket
{
get { return ((ISocketPollable)m_actor).Socket; }
}
/// <summary>
/// This event occurs when at least one message may be received from the socket without blocking.
/// </summary>
public event EventHandler<NetMQBeaconEventArgs> ReceiveReady
{
add { m_receiveEvent.Event += value; }
remove { m_receiveEvent.Event -= value; }
}
/// <summary>
/// Configure beacon to bind to all interfaces
/// </summary>
/// <param name="port">Port to bind to</param>
public void ConfigureAllInterfaces(int port)
{
Configure("*", port);
}
/// <summary>
/// Configure beacon to bind to default interface
/// </summary>
/// <param name="port">Port to bind to</param>
public void Configure(int port)
{
Configure("", port);
}
/// <summary>
/// Configure beacon to bind to specific interface
/// </summary>
/// <param name="interfaceName">One of the ip address of the interface</param>
/// <param name="port">Port to bind to</param>
public void Configure([NotNull] string interfaceName, int port)
{
var message = new NetMQMessage();
message.Append(ConfigureCommand);
message.Append(interfaceName);
message.Append(port);
m_actor.SendMultipartMessage(message);
m_boundTo = m_actor.ReceiveFrameString();
}
/// <summary>
/// Publish beacon immediately and continue to publish when interval elapsed
/// </summary>
/// <param name="transmit">Beacon to transmit</param>
/// <param name="interval">Interval to transmit beacon</param>
public void Publish([NotNull] string transmit, TimeSpan interval)
{
var message = new NetMQMessage();
message.Append(PublishCommand);
message.Append(transmit);
message.Append((int)interval.TotalMilliseconds);
m_actor.SendMultipartMessage(message);
}
/// <summary>
/// Publish beacon immediately and continue to publish when interval elapsed
/// </summary>
/// <param name="transmit">Beacon to transmit</param>
/// <param name="interval">Interval to transmit beacon</param>
public void Publish([NotNull] byte[] transmit, TimeSpan interval)
{
var message = new NetMQMessage();
message.Append(PublishCommand);
message.Append(transmit);
message.Append((int)interval.TotalMilliseconds);
m_actor.SendMultipartMessage(message);
}
/// <summary>
/// Publish beacon immediately and continue to publish every second
/// </summary>
/// <param name="transmit">Beacon to transmit</param>
public void Publish([NotNull] string transmit)
{
Publish(transmit, TimeSpan.FromSeconds(1));
}
/// <summary>
/// Publish beacon immediately and continue to publish every second
/// </summary>
/// <param name="transmit">Beacon to transmit</param>
public void Publish([NotNull] byte[] transmit)
{
Publish(transmit, TimeSpan.FromSeconds(1));
}
/// <summary>
/// Stop publish messages
/// </summary>
public void Silence()
{
m_actor.SendFrame(SilenceCommand);
}
/// <summary>
/// Subscribe to beacon messages, will replace last subscribe call
/// </summary>
/// <param name="filter">Beacon will be filtered by this</param>
public void Subscribe([NotNull] string filter)
{
m_actor.SendMoreFrame(SubscribeCommand).SendFrame(filter);
}
/// <summary>
/// Unsubscribe to beacon messages
/// </summary>
public void Unsubscribe()
{
m_actor.SendFrame(UnsubscribeCommand);
}
/// <summary>
/// Blocks until a string is received. As the returning of this method is uncontrollable, it's
/// normally safer to call <see cref="TryReceiveString"/> instead and pass a timeout.
/// </summary>
/// <param name="peerName">the name of the peer, which should come before the actual message, is written to this string</param>
/// <returns>the string that was received</returns>
[NotNull]
public string ReceiveString(out string peerName)
{
peerName = m_actor.ReceiveFrameString();
return m_actor.ReceiveFrameString();
}
/// <summary>
/// Attempt to receive a message from the specified peer for the specified amount of time.
/// </summary>
/// <param name="timeout">The maximum amount of time the call should wait for a message before returning.</param>
/// <param name="peerName">the name of the peer that the message comes from is written to this string</param>
/// <param name="message">the string to write the received message into</param>
/// <returns><c>true</c> if a message was received before <paramref name="timeout"/> elapsed,
/// otherwise <c>false</c>.</returns>
public bool TryReceiveString(TimeSpan timeout, out string peerName, out string message)
{
if (!m_actor.TryReceiveFrameString(timeout, out peerName))
{
message = null;
return false;
}
return m_actor.TryReceiveFrameString(timeout, out message);
}
/// <summary>
/// Blocks until a message is received. As the returning of this method is uncontrollable, it's
/// normally safer to call <see cref="TryReceiveString"/> instead and pass a timeout.
/// </summary>
/// <param name="peerName">the name of the peer, which should come before the actual message, is written to this string</param>
/// <returns>the byte-array of data that was received</returns>
[NotNull]
public byte[] Receive(out string peerName)
{
peerName = m_actor.ReceiveFrameString();
return m_actor.ReceiveFrameBytes();
}
/// <summary>
/// Release any contained resources.
/// </summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
/// <summary>
/// Release any contained resources.
/// </summary>
/// <param name="disposing">true if managed resources are to be released</param>
protected virtual void Dispose(bool disposing)
{
if (!disposing)
return;
m_actor.Dispose();
m_receiveEvent.Dispose();
}
}
}
| Java |
package org.xacml4j.v30.pdp;
/*
* #%L
* Xacml4J Core Engine Implementation
* %%
* Copyright (C) 2009 - 2014 Xacml4J.org
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
* #L%
*/
import java.util.ListIterator;
import org.xacml4j.v30.Expression;
import org.xacml4j.v30.ValueType;
import org.xacml4j.v30.spi.function.FunctionParamSpecVisitor;
public interface FunctionParamSpec
{
/**
* Validates if the "sequence" of expressions
* from the current position is valid according
* this specification. Iterator will be advanced to
* the next expression after "sequence"
*
* @param it an iterator
* @return {@code true} if sequence of
* expressions starting at the current position
* is valid according this spec
*/
boolean validate(ListIterator<Expression> it);
Expression getDefaultValue();
boolean isOptional();
/**
* Tests if instances of a given value type
* can be used as values for a function
* parameter specified by this specification
*
* @param type a value type
* @return {@code true}
*/
boolean isValidParamType(ValueType type);
/**
* Tests if this parameter is variadic
*
* @return {@code true} if a function
* parameter represented by this object is
* variadic
*/
boolean isVariadic();
void accept(FunctionParamSpecVisitor v);
}
| Java |
using System;
using System.Collections.Generic;
using System.Text;
namespace CrashReporter
{
/// <summary>
/// The exception that is thrown when no configuration has been provided
/// and an exception is reported.
/// </summary>
public class ConfigurationAbsentException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="ConfigurationAbsentException"/>
/// class.
/// </summary>
public ConfigurationAbsentException()
: base(Properties.Resources.ConfigurationAbsent)
{
}
}
}
| Java |
///////////////////////////////////////////////////////////////////////////////
// Name: src/msw/gdiplus.cpp
// Purpose: implements wrappers for GDI+ flat API
// Author: Vadim Zeitlin
// Created: 2007-03-14
// Copyright: (c) 2007 Vadim Zeitlin <[email protected]>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
// for compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#if wxUSE_GRAPHICS_CONTEXT
#ifndef WX_PRECOMP
#include "wx/cpp.h"
#include "wx/log.h"
#include "wx/module.h"
#include "wx/string.h"
#endif // WX_PRECOMP
#include "wx/dynload.h"
#include "wx/msw/wrapgdip.h"
// w32api headers used by both MinGW and Cygwin wrongly define UINT16 inside
// Gdiplus namespace in gdiplus.h which results in ambiguity errors when using
// this type as UINT16 is also defined in global scope by windows.h (or rather
// basetsd.h included from it), so we redefine it to work around this problem.
#if defined(__CYGWIN__) || defined(__MINGW32__)
#define UINT16 unsigned short
#endif
// ----------------------------------------------------------------------------
// helper macros
// ----------------------------------------------------------------------------
// return the name we use for the type of the function with the given name
// (without "Gdip" prefix)
#define wxGDIPLUS_FUNC_T(name) Gdip##name##_t
// to avoid repeating all (several hundreds) of GDI+ functions names several
// times in this file, we define a macro which allows us to apply another macro
// to all (or almost all, as we sometimes have to handle functions not
// returning GpStatus separately) these functions at once
// this macro expands into an invocation of the given macro m for all GDI+
// functions returning standard GpStatus
//
// m is called with the name of the function without "Gdip" prefix as the first
// argument, the list of function parameters with their names as the second one
// and the list of just the parameter names as the third one
#define wxFOR_ALL_GDIPLUS_STATUS_FUNCS(m) \
m(CreatePath, (GpFillMode brushMode, GpPath **path), (brushMode, path)) \
m(CreatePath2, (GDIPCONST GpPointF* a1, GDIPCONST BYTE* a2, INT a3, GpFillMode a4, GpPath **path), (a1, a2, a3, a4, path)) \
m(CreatePath2I, (GDIPCONST GpPoint* a1, GDIPCONST BYTE* a2, INT a3, GpFillMode a4, GpPath **path), (a1, a2, a3, a4, path)) \
m(ClonePath, (GpPath* path, GpPath **clonePath), (path, clonePath)) \
m(DeletePath, (GpPath* path), (path)) \
m(ResetPath, (GpPath* path), (path)) \
m(GetPointCount, (GpPath* path, INT* count), (path, count)) \
m(GetPathTypes, (GpPath* path, BYTE* types, INT count), (path, types, count)) \
m(GetPathPoints, (GpPath* a1, GpPointF* points, INT count), (a1, points, count)) \
m(GetPathPointsI, (GpPath* a1, GpPoint* points, INT count), (a1, points, count)) \
m(GetPathFillMode, (GpPath *path, GpFillMode *fillmode), (path, fillmode)) \
m(SetPathFillMode, (GpPath *path, GpFillMode fillmode), (path, fillmode)) \
m(GetPathData, (GpPath *path, GpPathData* pathData), (path, pathData)) \
m(StartPathFigure, (GpPath *path), (path)) \
m(ClosePathFigure, (GpPath *path), (path)) \
m(ClosePathFigures, (GpPath *path), (path)) \
m(SetPathMarker, (GpPath* path), (path)) \
m(ClearPathMarkers, (GpPath* path), (path)) \
m(ReversePath, (GpPath* path), (path)) \
m(GetPathLastPoint, (GpPath* path, GpPointF* lastPoint), (path, lastPoint)) \
m(AddPathLine, (GpPath *path, REAL x1, REAL y1, REAL x2, REAL y2), (path, x1, y1, x2, y2)) \
m(AddPathLine2, (GpPath *path, GDIPCONST GpPointF *points, INT count), (path, points, count)) \
m(AddPathArc, (GpPath *path, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle), (path, x, y, width, height, startAngle, sweepAngle)) \
m(AddPathBezier, (GpPath *path, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4), (path, x1, y1, x2, y2, x3, y3, x4, y4)) \
m(AddPathBeziers, (GpPath *path, GDIPCONST GpPointF *points, INT count), (path, points, count)) \
m(AddPathCurve, (GpPath *path, GDIPCONST GpPointF *points, INT count), (path, points, count)) \
m(AddPathCurve2, (GpPath *path, GDIPCONST GpPointF *points, INT count, REAL tension), (path, points, count, tension)) \
m(AddPathCurve3, (GpPath *path, GDIPCONST GpPointF *points, INT count, INT offset, INT numberOfSegments, REAL tension), (path, points, count, offset, numberOfSegments, tension)) \
m(AddPathClosedCurve, (GpPath *path, GDIPCONST GpPointF *points, INT count), (path, points, count)) \
m(AddPathClosedCurve2, (GpPath *path, GDIPCONST GpPointF *points, INT count, REAL tension), (path, points, count, tension)) \
m(AddPathRectangle, (GpPath *path, REAL x, REAL y, REAL width, REAL height), (path, x, y, width, height)) \
m(AddPathRectangles, (GpPath *path, GDIPCONST GpRectF *rects, INT count), (path, rects, count)) \
m(AddPathEllipse, (GpPath *path, REAL x, REAL y, REAL width, REAL height), (path, x, y, width, height)) \
m(AddPathPie, (GpPath *path, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle), (path, x, y, width, height, startAngle, sweepAngle)) \
m(AddPathPolygon, (GpPath *path, GDIPCONST GpPointF *points, INT count), (path, points, count)) \
m(AddPathPath, (GpPath *path, GDIPCONST GpPath* addingPath, BOOL connect), (path, addingPath, connect)) \
m(AddPathString, (GpPath *path, GDIPCONST WCHAR *string, INT length, GDIPCONST GpFontFamily *family, INT style, REAL emSize, GDIPCONST RectF *layoutRect, GDIPCONST GpStringFormat *format), (path, string, length, family, style, emSize, layoutRect, format)) \
m(AddPathStringI, (GpPath *path, GDIPCONST WCHAR *string, INT length, GDIPCONST GpFontFamily *family, INT style, REAL emSize, GDIPCONST Rect *layoutRect, GDIPCONST GpStringFormat *format), (path, string, length, family, style, emSize, layoutRect, format)) \
m(AddPathLineI, (GpPath *path, INT x1, INT y1, INT x2, INT y2), (path, x1, y1, x2, y2)) \
m(AddPathLine2I, (GpPath *path, GDIPCONST GpPoint *points, INT count), (path, points, count)) \
m(AddPathArcI, (GpPath *path, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle), (path, x, y, width, height, startAngle, sweepAngle)) \
m(AddPathBezierI, (GpPath *path, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4), (path, x1, y1, x2, y2, x3, y3, x4, y4)) \
m(AddPathBeziersI, (GpPath *path, GDIPCONST GpPoint *points, INT count), (path, points, count)) \
m(AddPathCurveI, (GpPath *path, GDIPCONST GpPoint *points, INT count), (path, points, count)) \
m(AddPathCurve2I, (GpPath *path, GDIPCONST GpPoint *points, INT count, REAL tension), (path, points, count, tension)) \
m(AddPathCurve3I, (GpPath *path, GDIPCONST GpPoint *points, INT count, INT offset, INT numberOfSegments, REAL tension), (path, points, count, offset, numberOfSegments, tension)) \
m(AddPathClosedCurveI, (GpPath *path, GDIPCONST GpPoint *points, INT count), (path, points, count)) \
m(AddPathClosedCurve2I, (GpPath *path, GDIPCONST GpPoint *points, INT count, REAL tension), (path, points, count, tension)) \
m(AddPathRectangleI, (GpPath *path, INT x, INT y, INT width, INT height), (path, x, y, width, height)) \
m(AddPathRectanglesI, (GpPath *path, GDIPCONST GpRect *rects, INT count), (path, rects, count)) \
m(AddPathEllipseI, (GpPath *path, INT x, INT y, INT width, INT height), (path, x, y, width, height)) \
m(AddPathPieI, (GpPath *path, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle), (path, x, y, width, height, startAngle, sweepAngle)) \
m(AddPathPolygonI, (GpPath *path, GDIPCONST GpPoint *points, INT count), (path, points, count)) \
m(FlattenPath, (GpPath *path, GpMatrix* matrix, REAL flatness), (path, matrix, flatness)) \
m(WindingModeOutline, (GpPath *path, GpMatrix *matrix, REAL flatness), (path, matrix, flatness)) \
m(WidenPath, (GpPath *nativePath, GpPen *pen, GpMatrix *matrix, REAL flatness), (nativePath, pen, matrix, flatness)) \
m(WarpPath, (GpPath *path, GpMatrix* matrix, GDIPCONST GpPointF *points, INT count, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, WarpMode warpMode, REAL flatness), (path, matrix, points, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness)) \
m(TransformPath, (GpPath* path, GpMatrix* matrix), (path, matrix)) \
m(GetPathWorldBounds, (GpPath* path, GpRectF* bounds, GDIPCONST GpMatrix *matrix, GDIPCONST GpPen *pen), (path, bounds, matrix, pen)) \
m(GetPathWorldBoundsI, (GpPath* path, GpRect* bounds, GDIPCONST GpMatrix *matrix, GDIPCONST GpPen *pen), (path, bounds, matrix, pen)) \
m(IsVisiblePathPoint, (GpPath* path, REAL x, REAL y, GpGraphics *graphics, BOOL *result), (path, x, y, graphics, result)) \
m(IsVisiblePathPointI, (GpPath* path, INT x, INT y, GpGraphics *graphics, BOOL *result), (path, x, y, graphics, result)) \
m(IsOutlineVisiblePathPoint, (GpPath* path, REAL x, REAL y, GpPen *pen, GpGraphics *graphics, BOOL *result), (path, x, y, pen, graphics, result)) \
m(IsOutlineVisiblePathPointI, (GpPath* path, INT x, INT y, GpPen *pen, GpGraphics *graphics, BOOL *result), (path, x, y, pen, graphics, result)) \
m(CreatePathIter, (GpPathIterator **iterator, GpPath* path), (iterator, path)) \
m(DeletePathIter, (GpPathIterator *iterator), (iterator)) \
m(PathIterNextSubpath, (GpPathIterator* iterator, INT *resultCount, INT* startIndex, INT* endIndex, BOOL* isClosed), (iterator, resultCount, startIndex, endIndex, isClosed)) \
m(PathIterNextSubpathPath, (GpPathIterator* iterator, INT* resultCount, GpPath* path, BOOL* isClosed), (iterator, resultCount, path, isClosed)) \
m(PathIterNextPathType, (GpPathIterator* iterator, INT* resultCount, BYTE* pathType, INT* startIndex, INT* endIndex), (iterator, resultCount, pathType, startIndex, endIndex)) \
m(PathIterNextMarker, (GpPathIterator* iterator, INT *resultCount, INT* startIndex, INT* endIndex), (iterator, resultCount, startIndex, endIndex)) \
m(PathIterNextMarkerPath, (GpPathIterator* iterator, INT* resultCount, GpPath* path), (iterator, resultCount, path)) \
m(PathIterGetCount, (GpPathIterator* iterator, INT* count), (iterator, count)) \
m(PathIterGetSubpathCount, (GpPathIterator* iterator, INT* count), (iterator, count)) \
m(PathIterIsValid, (GpPathIterator* iterator, BOOL* valid), (iterator, valid)) \
m(PathIterHasCurve, (GpPathIterator* iterator, BOOL* hasCurve), (iterator, hasCurve)) \
m(PathIterRewind, (GpPathIterator* iterator), (iterator)) \
m(PathIterEnumerate, (GpPathIterator* iterator, INT* resultCount, GpPointF *points, BYTE *types, INT count), (iterator, resultCount, points, types, count)) \
m(PathIterCopyData, (GpPathIterator* iterator, INT* resultCount, GpPointF* points, BYTE* types, INT startIndex, INT endIndex), (iterator, resultCount, points, types, startIndex, endIndex)) \
m(CreateMatrix, (GpMatrix **matrix), (matrix)) \
m(CreateMatrix2, (REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy, GpMatrix **matrix), (m11, m12, m21, m22, dx, dy, matrix)) \
m(CreateMatrix3, (GDIPCONST GpRectF *rect, GDIPCONST GpPointF *dstplg, GpMatrix **matrix), (rect, dstplg, matrix)) \
m(CreateMatrix3I, (GDIPCONST GpRect *rect, GDIPCONST GpPoint *dstplg, GpMatrix **matrix), (rect, dstplg, matrix)) \
m(CloneMatrix, (GpMatrix *matrix, GpMatrix **cloneMatrix), (matrix, cloneMatrix)) \
m(DeleteMatrix, (GpMatrix *matrix), (matrix)) \
m(SetMatrixElements, (GpMatrix *matrix, REAL m11, REAL m12, REAL m21, REAL m22, REAL dx, REAL dy), (matrix, m11, m12, m21, m22, dx, dy)) \
m(MultiplyMatrix, (GpMatrix *matrix, GpMatrix* matrix2, GpMatrixOrder order), (matrix, matrix2, order)) \
m(TranslateMatrix, (GpMatrix *matrix, REAL offsetX, REAL offsetY, GpMatrixOrder order), (matrix, offsetX, offsetY, order)) \
m(ScaleMatrix, (GpMatrix *matrix, REAL scaleX, REAL scaleY, GpMatrixOrder order), (matrix, scaleX, scaleY, order)) \
m(RotateMatrix, (GpMatrix *matrix, REAL angle, GpMatrixOrder order), (matrix, angle, order)) \
m(ShearMatrix, (GpMatrix *matrix, REAL shearX, REAL shearY, GpMatrixOrder order), (matrix, shearX, shearY, order)) \
m(InvertMatrix, (GpMatrix *matrix), (matrix)) \
m(TransformMatrixPoints, (GpMatrix *matrix, GpPointF *pts, INT count), (matrix, pts, count)) \
m(TransformMatrixPointsI, (GpMatrix *matrix, GpPoint *pts, INT count), (matrix, pts, count)) \
m(VectorTransformMatrixPoints, (GpMatrix *matrix, GpPointF *pts, INT count), (matrix, pts, count)) \
m(VectorTransformMatrixPointsI, (GpMatrix *matrix, GpPoint *pts, INT count), (matrix, pts, count)) \
m(GetMatrixElements, (GDIPCONST GpMatrix *matrix, REAL *matrixOut), (matrix, matrixOut)) \
m(IsMatrixInvertible, (GDIPCONST GpMatrix *matrix, BOOL *result), (matrix, result)) \
m(IsMatrixIdentity, (GDIPCONST GpMatrix *matrix, BOOL *result), (matrix, result)) \
m(IsMatrixEqual, (GDIPCONST GpMatrix *matrix, GDIPCONST GpMatrix *matrix2, BOOL *result), (matrix, matrix2, result)) \
m(CreateRegion, (GpRegion **region), (region)) \
m(CreateRegionRect, (GDIPCONST GpRectF *rect, GpRegion **region), (rect, region)) \
m(CreateRegionRectI, (GDIPCONST GpRect *rect, GpRegion **region), (rect, region)) \
m(CreateRegionPath, (GpPath *path, GpRegion **region), (path, region)) \
m(CreateRegionRgnData, (GDIPCONST BYTE *regionData, INT size, GpRegion **region), (regionData, size, region)) \
m(CreateRegionHrgn, (HRGN hRgn, GpRegion **region), (hRgn, region)) \
m(CloneRegion, (GpRegion *region, GpRegion **cloneRegion), (region, cloneRegion)) \
m(DeleteRegion, (GpRegion *region), (region)) \
m(SetInfinite, (GpRegion *region), (region)) \
m(SetEmpty, (GpRegion *region), (region)) \
m(CombineRegionRect, (GpRegion *region, GDIPCONST GpRectF *rect, CombineMode combineMode), (region, rect, combineMode)) \
m(CombineRegionRectI, (GpRegion *region, GDIPCONST GpRect *rect, CombineMode combineMode), (region, rect, combineMode)) \
m(CombineRegionPath, (GpRegion *region, GpPath *path, CombineMode combineMode), (region, path, combineMode)) \
m(CombineRegionRegion, (GpRegion *region, GpRegion *region2, CombineMode combineMode), (region, region2, combineMode)) \
m(TranslateRegion, (GpRegion *region, REAL dx, REAL dy), (region, dx, dy)) \
m(TranslateRegionI, (GpRegion *region, INT dx, INT dy), (region, dx, dy)) \
m(TransformRegion, (GpRegion *region, GpMatrix *matrix), (region, matrix)) \
m(GetRegionBounds, (GpRegion *region, GpGraphics *graphics, GpRectF *rect), (region, graphics, rect)) \
m(GetRegionBoundsI, (GpRegion *region, GpGraphics *graphics, GpRect *rect), (region, graphics, rect)) \
m(GetRegionHRgn, (GpRegion *region, GpGraphics *graphics, HRGN *hRgn), (region, graphics, hRgn)) \
m(IsEmptyRegion, (GpRegion *region, GpGraphics *graphics, BOOL *result), (region, graphics, result)) \
m(IsInfiniteRegion, (GpRegion *region, GpGraphics *graphics, BOOL *result), (region, graphics, result)) \
m(IsEqualRegion, (GpRegion *region, GpRegion *region2, GpGraphics *graphics, BOOL *result), (region, region2, graphics, result)) \
m(GetRegionDataSize, (GpRegion *region, UINT *bufferSize), (region, bufferSize)) \
m(GetRegionData, (GpRegion *region, BYTE *buffer, UINT bufferSize, UINT *sizeFilled), (region, buffer, bufferSize, sizeFilled)) \
m(IsVisibleRegionPoint, (GpRegion *region, REAL x, REAL y, GpGraphics *graphics, BOOL *result), (region, x, y, graphics, result)) \
m(IsVisibleRegionPointI, (GpRegion *region, INT x, INT y, GpGraphics *graphics, BOOL *result), (region, x, y, graphics, result)) \
m(IsVisibleRegionRect, (GpRegion *region, REAL x, REAL y, REAL width, REAL height, GpGraphics *graphics, BOOL *result), (region, x, y, width, height, graphics, result)) \
m(IsVisibleRegionRectI, (GpRegion *region, INT x, INT y, INT width, INT height, GpGraphics *graphics, BOOL *result), (region, x, y, width, height, graphics, result)) \
m(GetRegionScansCount, (GpRegion *region, UINT* count, GpMatrix* matrix), (region, count, matrix)) \
m(GetRegionScans, (GpRegion *region, GpRectF* rects, INT* count, GpMatrix* matrix), (region, rects, count, matrix)) \
m(GetRegionScansI, (GpRegion *region, GpRect* rects, INT* count, GpMatrix* matrix), (region, rects, count, matrix)) \
m(CloneBrush, (GpBrush *brush, GpBrush **cloneBrush), (brush, cloneBrush)) \
m(DeleteBrush, (GpBrush *brush), (brush)) \
m(GetBrushType, (GpBrush *brush, GpBrushType *type), (brush, type)) \
m(CreateHatchBrush, (GpHatchStyle hatchstyle, ARGB forecol, ARGB backcol, GpHatch **brush), (hatchstyle, forecol, backcol, brush)) \
m(GetHatchStyle, (GpHatch *brush, GpHatchStyle *hatchstyle), (brush, hatchstyle)) \
m(GetHatchForegroundColor, (GpHatch *brush, ARGB* forecol), (brush, forecol)) \
m(GetHatchBackgroundColor, (GpHatch *brush, ARGB* backcol), (brush, backcol)) \
m(CreateTexture, (GpImage *image, GpWrapMode wrapmode, GpTexture **texture), (image, wrapmode, texture)) \
m(CreateTexture2, (GpImage *image, GpWrapMode wrapmode, REAL x, REAL y, REAL width, REAL height, GpTexture **texture), (image, wrapmode, x, y, width, height, texture)) \
m(CreateTextureIA, (GpImage *image, GDIPCONST GpImageAttributes *imageAttributes, REAL x, REAL y, REAL width, REAL height, GpTexture **texture), (image, imageAttributes, x, y, width, height, texture)) \
m(CreateTexture2I, (GpImage *image, GpWrapMode wrapmode, INT x, INT y, INT width, INT height, GpTexture **texture), (image, wrapmode, x, y, width, height, texture)) \
m(CreateTextureIAI, (GpImage *image, GDIPCONST GpImageAttributes *imageAttributes, INT x, INT y, INT width, INT height, GpTexture **texture), (image, imageAttributes, x, y, width, height, texture)) \
m(GetTextureTransform, (GpTexture *brush, GpMatrix *matrix), (brush, matrix)) \
m(SetTextureTransform, (GpTexture *brush, GDIPCONST GpMatrix *matrix), (brush, matrix)) \
m(ResetTextureTransform, (GpTexture* brush), (brush)) \
m(MultiplyTextureTransform, (GpTexture* brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order), (brush, matrix, order)) \
m(TranslateTextureTransform, (GpTexture* brush, REAL dx, REAL dy, GpMatrixOrder order), (brush, dx, dy, order)) \
m(ScaleTextureTransform, (GpTexture* brush, REAL sx, REAL sy, GpMatrixOrder order), (brush, sx, sy, order)) \
m(RotateTextureTransform, (GpTexture* brush, REAL angle, GpMatrixOrder order), (brush, angle, order)) \
m(SetTextureWrapMode, (GpTexture *brush, GpWrapMode wrapmode), (brush, wrapmode)) \
m(GetTextureWrapMode, (GpTexture *brush, GpWrapMode *wrapmode), (brush, wrapmode)) \
m(GetTextureImage, (GpTexture *brush, GpImage **image), (brush, image)) \
m(CreateSolidFill, (ARGB color, GpSolidFill **brush), (color, brush)) \
m(SetSolidFillColor, (GpSolidFill *brush, ARGB color), (brush, color)) \
m(GetSolidFillColor, (GpSolidFill *brush, ARGB *color), (brush, color)) \
m(CreateLineBrush, (GDIPCONST GpPointF* point1, GDIPCONST GpPointF* point2, ARGB color1, ARGB color2, GpWrapMode wrapMode, GpLineGradient **lineGradient), (point1, point2, color1, color2, wrapMode, lineGradient)) \
m(CreateLineBrushI, (GDIPCONST GpPoint* point1, GDIPCONST GpPoint* point2, ARGB color1, ARGB color2, GpWrapMode wrapMode, GpLineGradient **lineGradient), (point1, point2, color1, color2, wrapMode, lineGradient)) \
m(CreateLineBrushFromRect, (GDIPCONST GpRectF* rect, ARGB color1, ARGB color2, LinearGradientMode mode, GpWrapMode wrapMode, GpLineGradient **lineGradient), (rect, color1, color2, mode, wrapMode, lineGradient)) \
m(CreateLineBrushFromRectI, (GDIPCONST GpRect* rect, ARGB color1, ARGB color2, LinearGradientMode mode, GpWrapMode wrapMode, GpLineGradient **lineGradient), (rect, color1, color2, mode, wrapMode, lineGradient)) \
m(CreateLineBrushFromRectWithAngle, (GDIPCONST GpRectF* rect, ARGB color1, ARGB color2, REAL angle, BOOL isAngleScalable, GpWrapMode wrapMode, GpLineGradient **lineGradient), (rect, color1, color2, angle, isAngleScalable, wrapMode, lineGradient)) \
m(CreateLineBrushFromRectWithAngleI, (GDIPCONST GpRect* rect, ARGB color1, ARGB color2, REAL angle, BOOL isAngleScalable, GpWrapMode wrapMode, GpLineGradient **lineGradient), (rect, color1, color2, angle, isAngleScalable, wrapMode, lineGradient)) \
m(SetLineColors, (GpLineGradient *brush, ARGB color1, ARGB color2), (brush, color1, color2)) \
m(GetLineColors, (GpLineGradient *brush, ARGB* colors), (brush, colors)) \
m(GetLineRect, (GpLineGradient *brush, GpRectF *rect), (brush, rect)) \
m(GetLineRectI, (GpLineGradient *brush, GpRect *rect), (brush, rect)) \
m(SetLineGammaCorrection, (GpLineGradient *brush, BOOL useGammaCorrection), (brush, useGammaCorrection)) \
m(GetLineGammaCorrection, (GpLineGradient *brush, BOOL *useGammaCorrection), (brush, useGammaCorrection)) \
m(GetLineBlendCount, (GpLineGradient *brush, INT *count), (brush, count)) \
m(GetLineBlend, (GpLineGradient *brush, REAL *blend, REAL* positions, INT count), (brush, blend, positions, count)) \
m(SetLineBlend, (GpLineGradient *brush, GDIPCONST REAL *blend, GDIPCONST REAL* positions, INT count), (brush, blend, positions, count)) \
m(GetLinePresetBlendCount, (GpLineGradient *brush, INT *count), (brush, count)) \
m(GetLinePresetBlend, (GpLineGradient *brush, ARGB *blend, REAL* positions, INT count), (brush, blend, positions, count)) \
m(SetLinePresetBlend, (GpLineGradient *brush, GDIPCONST ARGB *blend, GDIPCONST REAL* positions, INT count), (brush, blend, positions, count)) \
m(SetLineSigmaBlend, (GpLineGradient *brush, REAL focus, REAL scale), (brush, focus, scale)) \
m(SetLineLinearBlend, (GpLineGradient *brush, REAL focus, REAL scale), (brush, focus, scale)) \
m(SetLineWrapMode, (GpLineGradient *brush, GpWrapMode wrapmode), (brush, wrapmode)) \
m(GetLineWrapMode, (GpLineGradient *brush, GpWrapMode *wrapmode), (brush, wrapmode)) \
m(GetLineTransform, (GpLineGradient *brush, GpMatrix *matrix), (brush, matrix)) \
m(SetLineTransform, (GpLineGradient *brush, GDIPCONST GpMatrix *matrix), (brush, matrix)) \
m(ResetLineTransform, (GpLineGradient* brush), (brush)) \
m(MultiplyLineTransform, (GpLineGradient* brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order), (brush, matrix, order)) \
m(TranslateLineTransform, (GpLineGradient* brush, REAL dx, REAL dy, GpMatrixOrder order), (brush, dx, dy, order)) \
m(ScaleLineTransform, (GpLineGradient* brush, REAL sx, REAL sy, GpMatrixOrder order), (brush, sx, sy, order)) \
m(RotateLineTransform, (GpLineGradient* brush, REAL angle, GpMatrixOrder order), (brush, angle, order)) \
m(CreatePathGradient, (GDIPCONST GpPointF* points, INT count, GpWrapMode wrapMode, GpPathGradient **polyGradient), (points, count, wrapMode, polyGradient)) \
m(CreatePathGradientI, (GDIPCONST GpPoint* points, INT count, GpWrapMode wrapMode, GpPathGradient **polyGradient), (points, count, wrapMode, polyGradient)) \
m(CreatePathGradientFromPath, (GDIPCONST GpPath* path, GpPathGradient **polyGradient), (path, polyGradient)) \
m(GetPathGradientCenterColor, (GpPathGradient *brush, ARGB* colors), (brush, colors)) \
m(SetPathGradientCenterColor, (GpPathGradient *brush, ARGB colors), (brush, colors)) \
m(GetPathGradientSurroundColorsWithCount, (GpPathGradient *brush, ARGB* color, INT* count), (brush, color, count)) \
m(SetPathGradientSurroundColorsWithCount, (GpPathGradient *brush, GDIPCONST ARGB* color, INT* count), (brush, color, count)) \
m(GetPathGradientPath, (GpPathGradient *brush, GpPath *path), (brush, path)) \
m(SetPathGradientPath, (GpPathGradient *brush, GDIPCONST GpPath *path), (brush, path)) \
m(GetPathGradientCenterPoint, (GpPathGradient *brush, GpPointF* points), (brush, points)) \
m(GetPathGradientCenterPointI, (GpPathGradient *brush, GpPoint* points), (brush, points)) \
m(SetPathGradientCenterPoint, (GpPathGradient *brush, GDIPCONST GpPointF* points), (brush, points)) \
m(SetPathGradientCenterPointI, (GpPathGradient *brush, GDIPCONST GpPoint* points), (brush, points)) \
m(GetPathGradientRect, (GpPathGradient *brush, GpRectF *rect), (brush, rect)) \
m(GetPathGradientRectI, (GpPathGradient *brush, GpRect *rect), (brush, rect)) \
m(GetPathGradientPointCount, (GpPathGradient *brush, INT* count), (brush, count)) \
m(GetPathGradientSurroundColorCount, (GpPathGradient *brush, INT* count), (brush, count)) \
m(SetPathGradientGammaCorrection, (GpPathGradient *brush, BOOL useGammaCorrection), (brush, useGammaCorrection)) \
m(GetPathGradientGammaCorrection, (GpPathGradient *brush, BOOL *useGammaCorrection), (brush, useGammaCorrection)) \
m(GetPathGradientBlendCount, (GpPathGradient *brush, INT *count), (brush, count)) \
m(GetPathGradientBlend, (GpPathGradient *brush, REAL *blend, REAL *positions, INT count), (brush, blend, positions, count)) \
m(SetPathGradientBlend, (GpPathGradient *brush, GDIPCONST REAL *blend, GDIPCONST REAL *positions, INT count), (brush, blend, positions, count)) \
m(GetPathGradientPresetBlendCount, (GpPathGradient *brush, INT *count), (brush, count)) \
m(GetPathGradientPresetBlend, (GpPathGradient *brush, ARGB *blend, REAL* positions, INT count), (brush, blend, positions, count)) \
m(SetPathGradientPresetBlend, (GpPathGradient *brush, GDIPCONST ARGB *blend, GDIPCONST REAL* positions, INT count), (brush, blend, positions, count)) \
m(SetPathGradientSigmaBlend, (GpPathGradient *brush, REAL focus, REAL scale), (brush, focus, scale)) \
m(SetPathGradientLinearBlend, (GpPathGradient *brush, REAL focus, REAL scale), (brush, focus, scale)) \
m(GetPathGradientWrapMode, (GpPathGradient *brush, GpWrapMode *wrapmode), (brush, wrapmode)) \
m(SetPathGradientWrapMode, (GpPathGradient *brush, GpWrapMode wrapmode), (brush, wrapmode)) \
m(GetPathGradientTransform, (GpPathGradient *brush, GpMatrix *matrix), (brush, matrix)) \
m(SetPathGradientTransform, (GpPathGradient *brush, GpMatrix *matrix), (brush, matrix)) \
m(ResetPathGradientTransform, (GpPathGradient* brush), (brush)) \
m(MultiplyPathGradientTransform, (GpPathGradient* brush, GDIPCONST GpMatrix *matrix, GpMatrixOrder order), (brush, matrix, order)) \
m(TranslatePathGradientTransform, (GpPathGradient* brush, REAL dx, REAL dy, GpMatrixOrder order), (brush, dx, dy, order)) \
m(ScalePathGradientTransform, (GpPathGradient* brush, REAL sx, REAL sy, GpMatrixOrder order), (brush, sx, sy, order)) \
m(RotatePathGradientTransform, (GpPathGradient* brush, REAL angle, GpMatrixOrder order), (brush, angle, order)) \
m(GetPathGradientFocusScales, (GpPathGradient *brush, REAL* xScale, REAL* yScale), (brush, xScale, yScale)) \
m(SetPathGradientFocusScales, (GpPathGradient *brush, REAL xScale, REAL yScale), (brush, xScale, yScale)) \
m(CreatePen1, (ARGB color, REAL width, GpUnit unit, GpPen **pen), (color, width, unit, pen)) \
m(CreatePen2, (GpBrush *brush, REAL width, GpUnit unit, GpPen **pen), (brush, width, unit, pen)) \
m(ClonePen, (GpPen *pen, GpPen **clonepen), (pen, clonepen)) \
m(DeletePen, (GpPen *pen), (pen)) \
m(SetPenWidth, (GpPen *pen, REAL width), (pen, width)) \
m(GetPenWidth, (GpPen *pen, REAL *width), (pen, width)) \
m(SetPenUnit, (GpPen *pen, GpUnit unit), (pen, unit)) \
m(GetPenUnit, (GpPen *pen, GpUnit *unit), (pen, unit)) \
m(SetPenLineCap197819, (GpPen *pen, GpLineCap startCap, GpLineCap endCap, GpDashCap dashCap), (pen, startCap, endCap, dashCap)) \
m(SetPenStartCap, (GpPen *pen, GpLineCap startCap), (pen, startCap)) \
m(SetPenEndCap, (GpPen *pen, GpLineCap endCap), (pen, endCap)) \
m(SetPenDashCap197819, (GpPen *pen, GpDashCap dashCap), (pen, dashCap)) \
m(GetPenStartCap, (GpPen *pen, GpLineCap *startCap), (pen, startCap)) \
m(GetPenEndCap, (GpPen *pen, GpLineCap *endCap), (pen, endCap)) \
m(GetPenDashCap197819, (GpPen *pen, GpDashCap *dashCap), (pen, dashCap)) \
m(SetPenLineJoin, (GpPen *pen, GpLineJoin lineJoin), (pen, lineJoin)) \
m(GetPenLineJoin, (GpPen *pen, GpLineJoin *lineJoin), (pen, lineJoin)) \
m(SetPenCustomStartCap, (GpPen *pen, GpCustomLineCap* customCap), (pen, customCap)) \
m(GetPenCustomStartCap, (GpPen *pen, GpCustomLineCap** customCap), (pen, customCap)) \
m(SetPenCustomEndCap, (GpPen *pen, GpCustomLineCap* customCap), (pen, customCap)) \
m(GetPenCustomEndCap, (GpPen *pen, GpCustomLineCap** customCap), (pen, customCap)) \
m(SetPenMiterLimit, (GpPen *pen, REAL miterLimit), (pen, miterLimit)) \
m(GetPenMiterLimit, (GpPen *pen, REAL *miterLimit), (pen, miterLimit)) \
m(SetPenMode, (GpPen *pen, GpPenAlignment penMode), (pen, penMode)) \
m(GetPenMode, (GpPen *pen, GpPenAlignment *penMode), (pen, penMode)) \
m(SetPenTransform, (GpPen *pen, GpMatrix *matrix), (pen, matrix)) \
m(GetPenTransform, (GpPen *pen, GpMatrix *matrix), (pen, matrix)) \
m(ResetPenTransform, (GpPen *pen), (pen)) \
m(MultiplyPenTransform, (GpPen *pen, GDIPCONST GpMatrix *matrix, GpMatrixOrder order), (pen, matrix, order)) \
m(TranslatePenTransform, (GpPen *pen, REAL dx, REAL dy, GpMatrixOrder order), (pen, dx, dy, order)) \
m(ScalePenTransform, (GpPen *pen, REAL sx, REAL sy, GpMatrixOrder order), (pen, sx, sy, order)) \
m(RotatePenTransform, (GpPen *pen, REAL angle, GpMatrixOrder order), (pen, angle, order)) \
m(SetPenColor, (GpPen *pen, ARGB argb), (pen, argb)) \
m(GetPenColor, (GpPen *pen, ARGB *argb), (pen, argb)) \
m(SetPenBrushFill, (GpPen *pen, GpBrush *brush), (pen, brush)) \
m(GetPenBrushFill, (GpPen *pen, GpBrush **brush), (pen, brush)) \
m(GetPenFillType, (GpPen *pen, GpPenType* type), (pen, type)) \
m(GetPenDashStyle, (GpPen *pen, GpDashStyle *dashstyle), (pen, dashstyle)) \
m(SetPenDashStyle, (GpPen *pen, GpDashStyle dashstyle), (pen, dashstyle)) \
m(GetPenDashOffset, (GpPen *pen, REAL *offset), (pen, offset)) \
m(SetPenDashOffset, (GpPen *pen, REAL offset), (pen, offset)) \
m(GetPenDashCount, (GpPen *pen, INT *count), (pen, count)) \
m(SetPenDashArray, (GpPen *pen, GDIPCONST REAL *dash, INT count), (pen, dash, count)) \
m(GetPenDashArray, (GpPen *pen, REAL *dash, INT count), (pen, dash, count)) \
m(GetPenCompoundCount, (GpPen *pen, INT *count), (pen, count)) \
m(SetPenCompoundArray, (GpPen *pen, GDIPCONST REAL *dash, INT count), (pen, dash, count)) \
m(GetPenCompoundArray, (GpPen *pen, REAL *dash, INT count), (pen, dash, count)) \
m(CreateCustomLineCap, (GpPath* fillPath, GpPath* strokePath, GpLineCap baseCap, REAL baseInset, GpCustomLineCap **customCap), (fillPath, strokePath, baseCap, baseInset, customCap)) \
m(DeleteCustomLineCap, (GpCustomLineCap* customCap), (customCap)) \
m(CloneCustomLineCap, (GpCustomLineCap* customCap, GpCustomLineCap** clonedCap), (customCap, clonedCap)) \
m(GetCustomLineCapType, (GpCustomLineCap* customCap, CustomLineCapType* capType), (customCap, capType)) \
m(SetCustomLineCapStrokeCaps, (GpCustomLineCap* customCap, GpLineCap startCap, GpLineCap endCap), (customCap, startCap, endCap)) \
m(GetCustomLineCapStrokeCaps, (GpCustomLineCap* customCap, GpLineCap* startCap, GpLineCap* endCap), (customCap, startCap, endCap)) \
m(SetCustomLineCapStrokeJoin, (GpCustomLineCap* customCap, GpLineJoin lineJoin), (customCap, lineJoin)) \
m(GetCustomLineCapStrokeJoin, (GpCustomLineCap* customCap, GpLineJoin* lineJoin), (customCap, lineJoin)) \
m(SetCustomLineCapBaseCap, (GpCustomLineCap* customCap, GpLineCap baseCap), (customCap, baseCap)) \
m(GetCustomLineCapBaseCap, (GpCustomLineCap* customCap, GpLineCap* baseCap), (customCap, baseCap)) \
m(SetCustomLineCapBaseInset, (GpCustomLineCap* customCap, REAL inset), (customCap, inset)) \
m(GetCustomLineCapBaseInset, (GpCustomLineCap* customCap, REAL* inset), (customCap, inset)) \
m(SetCustomLineCapWidthScale, (GpCustomLineCap* customCap, REAL widthScale), (customCap, widthScale)) \
m(GetCustomLineCapWidthScale, (GpCustomLineCap* customCap, REAL* widthScale), (customCap, widthScale)) \
m(CreateAdjustableArrowCap, (REAL height, REAL width, BOOL isFilled, GpAdjustableArrowCap **cap), (height, width, isFilled, cap)) \
m(SetAdjustableArrowCapHeight, (GpAdjustableArrowCap* cap, REAL height), (cap, height)) \
m(GetAdjustableArrowCapHeight, (GpAdjustableArrowCap* cap, REAL* height), (cap, height)) \
m(SetAdjustableArrowCapWidth, (GpAdjustableArrowCap* cap, REAL width), (cap, width)) \
m(GetAdjustableArrowCapWidth, (GpAdjustableArrowCap* cap, REAL* width), (cap, width)) \
m(SetAdjustableArrowCapMiddleInset, (GpAdjustableArrowCap* cap, REAL middleInset), (cap, middleInset)) \
m(GetAdjustableArrowCapMiddleInset, (GpAdjustableArrowCap* cap, REAL* middleInset), (cap, middleInset)) \
m(SetAdjustableArrowCapFillState, (GpAdjustableArrowCap* cap, BOOL fillState), (cap, fillState)) \
m(GetAdjustableArrowCapFillState, (GpAdjustableArrowCap* cap, BOOL* fillState), (cap, fillState)) \
m(LoadImageFromStream, (IStream* stream, GpImage **image), (stream, image)) \
m(LoadImageFromFile, (GDIPCONST WCHAR* filename, GpImage **image), (filename, image)) \
m(LoadImageFromStreamICM, (IStream* stream, GpImage **image), (stream, image)) \
m(LoadImageFromFileICM, (GDIPCONST WCHAR* filename, GpImage **image), (filename, image)) \
m(CloneImage, (GpImage *image, GpImage **cloneImage), (image, cloneImage)) \
m(DisposeImage, (GpImage *image), (image)) \
m(SaveImageToFile, (GpImage *image, GDIPCONST WCHAR* filename, GDIPCONST CLSID* clsidEncoder, GDIPCONST EncoderParameters* encoderParams), (image, filename, clsidEncoder, encoderParams)) \
m(SaveImageToStream, (GpImage *image, IStream* stream, GDIPCONST CLSID* clsidEncoder, GDIPCONST EncoderParameters* encoderParams), (image, stream, clsidEncoder, encoderParams)) \
m(SaveAdd, (GpImage *image, GDIPCONST EncoderParameters* encoderParams), (image, encoderParams)) \
m(SaveAddImage, (GpImage *image, GpImage* newImage, GDIPCONST EncoderParameters* encoderParams), (image, newImage, encoderParams)) \
m(GetImageGraphicsContext, (GpImage *image, GpGraphics **graphics), (image, graphics)) \
m(GetImageBounds, (GpImage *image, GpRectF *srcRect, GpUnit *srcUnit), (image, srcRect, srcUnit)) \
m(GetImageDimension, (GpImage *image, REAL *width, REAL *height), (image, width, height)) \
m(GetImageType, (GpImage *image, ImageType *type), (image, type)) \
m(GetImageWidth, (GpImage *image, UINT *width), (image, width)) \
m(GetImageHeight, (GpImage *image, UINT *height), (image, height)) \
m(GetImageHorizontalResolution, (GpImage *image, REAL *resolution), (image, resolution)) \
m(GetImageVerticalResolution, (GpImage *image, REAL *resolution), (image, resolution)) \
m(GetImageFlags, (GpImage *image, UINT *flags), (image, flags)) \
m(GetImageRawFormat, (GpImage *image, GUID *format), (image, format)) \
m(GetImagePixelFormat, (GpImage *image, PixelFormat *format), (image, format)) \
m(GetImageThumbnail, (GpImage *image, UINT thumbWidth, UINT thumbHeight, GpImage **thumbImage, GetThumbnailImageAbort callback, VOID *callbackData), (image, thumbWidth, thumbHeight, thumbImage, callback, callbackData)) \
m(GetEncoderParameterListSize, (GpImage *image, GDIPCONST CLSID* clsidEncoder, UINT* size), (image, clsidEncoder, size)) \
m(GetEncoderParameterList, (GpImage *image, GDIPCONST CLSID* clsidEncoder, UINT size, EncoderParameters* buffer), (image, clsidEncoder, size, buffer)) \
m(ImageGetFrameDimensionsCount, (GpImage* image, UINT* count), (image, count)) \
m(ImageGetFrameDimensionsList, (GpImage* image, GUID* dimensionIDs, UINT count), (image, dimensionIDs, count)) \
m(ImageGetFrameCount, (GpImage *image, GDIPCONST GUID* dimensionID, UINT* count), (image, dimensionID, count)) \
m(ImageSelectActiveFrame, (GpImage *image, GDIPCONST GUID* dimensionID, UINT frameIndex), (image, dimensionID, frameIndex)) \
m(ImageRotateFlip, (GpImage *image, RotateFlipType rfType), (image, rfType)) \
m(GetImagePalette, (GpImage *image, ColorPalette *palette, INT size), (image, palette, size)) \
m(SetImagePalette, (GpImage *image, GDIPCONST ColorPalette *palette), (image, palette)) \
m(GetImagePaletteSize, (GpImage *image, INT *size), (image, size)) \
m(GetPropertyCount, (GpImage *image, UINT* numOfProperty), (image, numOfProperty)) \
m(GetPropertyIdList, (GpImage *image, UINT numOfProperty, PROPID* list), (image, numOfProperty, list)) \
m(GetPropertyItemSize, (GpImage *image, PROPID propId, UINT* size), (image, propId, size)) \
m(GetPropertyItem, (GpImage *image, PROPID propId,UINT propSize, PropertyItem* buffer), (image, propId, propSize, buffer)) \
m(GetPropertySize, (GpImage *image, UINT* totalBufferSize, UINT* numProperties), (image, totalBufferSize, numProperties)) \
m(GetAllPropertyItems, (GpImage *image, UINT totalBufferSize, UINT numProperties, PropertyItem* allItems), (image, totalBufferSize, numProperties, allItems)) \
m(RemovePropertyItem, (GpImage *image, PROPID propId), (image, propId)) \
m(SetPropertyItem, (GpImage *image, GDIPCONST PropertyItem* item), (image, item)) \
m(ImageForceValidation, (GpImage *image), (image)) \
m(CreateBitmapFromStream, (IStream* stream, GpBitmap **bitmap), (stream, bitmap)) \
m(CreateBitmapFromFile, (GDIPCONST WCHAR* filename, GpBitmap **bitmap), (filename, bitmap)) \
m(CreateBitmapFromStreamICM, (IStream* stream, GpBitmap **bitmap), (stream, bitmap)) \
m(CreateBitmapFromFileICM, (GDIPCONST WCHAR* filename, GpBitmap **bitmap), (filename, bitmap)) \
m(CreateBitmapFromScan0, (INT width, INT height, INT stride, PixelFormat format, BYTE* scan0, GpBitmap** bitmap), (width, height, stride, format, scan0, bitmap)) \
m(CreateBitmapFromGraphics, (INT width, INT height, GpGraphics* target, GpBitmap** bitmap), (width, height, target, bitmap)) \
m(CreateBitmapFromDirectDrawSurface, (IDirectDrawSurface7* surface, GpBitmap** bitmap), (surface, bitmap)) \
m(CreateBitmapFromGdiDib, (GDIPCONST BITMAPINFO* gdiBitmapInfo, VOID* gdiBitmapData, GpBitmap** bitmap), (gdiBitmapInfo, gdiBitmapData, bitmap)) \
m(CreateBitmapFromHBITMAP, (HBITMAP hbm, HPALETTE hpal, GpBitmap** bitmap), (hbm, hpal, bitmap)) \
m(CreateHBITMAPFromBitmap, (GpBitmap* bitmap, HBITMAP* hbmReturn, ARGB background), (bitmap, hbmReturn, background)) \
m(CreateBitmapFromHICON, (HICON hicon, GpBitmap** bitmap), (hicon, bitmap)) \
m(CreateHICONFromBitmap, (GpBitmap* bitmap, HICON* hbmReturn), (bitmap, hbmReturn)) \
m(CreateBitmapFromResource, (HINSTANCE hInstance, GDIPCONST WCHAR* lpBitmapName, GpBitmap** bitmap), (hInstance, lpBitmapName, bitmap)) \
m(CloneBitmapArea, (REAL x, REAL y, REAL width, REAL height, PixelFormat format, GpBitmap *srcBitmap, GpBitmap **dstBitmap), (x, y, width, height, format, srcBitmap, dstBitmap)) \
m(CloneBitmapAreaI, (INT x, INT y, INT width, INT height, PixelFormat format, GpBitmap *srcBitmap, GpBitmap **dstBitmap), (x, y, width, height, format, srcBitmap, dstBitmap)) \
m(BitmapLockBits, (GpBitmap* bitmap, GDIPCONST GpRect* rect, UINT flags, PixelFormat format, BitmapData* lockedBitmapData), (bitmap, rect, flags, format, lockedBitmapData)) \
m(BitmapUnlockBits, (GpBitmap* bitmap, BitmapData* lockedBitmapData), (bitmap, lockedBitmapData)) \
m(BitmapGetPixel, (GpBitmap* bitmap, INT x, INT y, ARGB *color), (bitmap, x, y, color)) \
m(BitmapSetPixel, (GpBitmap* bitmap, INT x, INT y, ARGB color), (bitmap, x, y, color)) \
m(BitmapSetResolution, (GpBitmap* bitmap, REAL xdpi, REAL ydpi), (bitmap, xdpi, ydpi)) \
m(CreateImageAttributes, (GpImageAttributes **imageattr), (imageattr)) \
m(CloneImageAttributes, (GDIPCONST GpImageAttributes *imageattr, GpImageAttributes **cloneImageattr), (imageattr, cloneImageattr)) \
m(DisposeImageAttributes, (GpImageAttributes *imageattr), (imageattr)) \
m(SetImageAttributesToIdentity, (GpImageAttributes *imageattr, ColorAdjustType type), (imageattr, type)) \
m(ResetImageAttributes, (GpImageAttributes *imageattr, ColorAdjustType type), (imageattr, type)) \
m(SetImageAttributesColorMatrix, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST ColorMatrix* colorMatrix, GDIPCONST ColorMatrix* grayMatrix, ColorMatrixFlags flags), (imageattr, type, enableFlag, colorMatrix, grayMatrix, flags)) \
m(SetImageAttributesThreshold, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, REAL threshold), (imageattr, type, enableFlag, threshold)) \
m(SetImageAttributesGamma, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, REAL gamma), (imageattr, type, enableFlag, gamma)) \
m(SetImageAttributesNoOp, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag), (imageattr, type, enableFlag)) \
m(SetImageAttributesColorKeys, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, ARGB colorLow, ARGB colorHigh), (imageattr, type, enableFlag, colorLow, colorHigh)) \
m(SetImageAttributesOutputChannel, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags), (imageattr, type, enableFlag, channelFlags)) \
m(SetImageAttributesOutputChannelColorProfile, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, GDIPCONST WCHAR *colorProfileFilename), (imageattr, type, enableFlag, colorProfileFilename)) \
m(SetImageAttributesRemapTable, (GpImageAttributes *imageattr, ColorAdjustType type, BOOL enableFlag, UINT mapSize, GDIPCONST ColorMap *map), (imageattr, type, enableFlag, mapSize, map)) \
m(SetImageAttributesWrapMode, (GpImageAttributes *imageAttr, WrapMode wrap, ARGB argb, BOOL clamp), (imageAttr, wrap, argb, clamp)) \
m(GetImageAttributesAdjustedPalette, (GpImageAttributes *imageAttr, ColorPalette *colorPalette, ColorAdjustType colorAdjustType), (imageAttr, colorPalette, colorAdjustType)) \
m(Flush, (GpGraphics *graphics, GpFlushIntention intention), (graphics, intention)) \
m(CreateFromHDC, (HDC hdc, GpGraphics **graphics), (hdc, graphics)) \
m(CreateFromHDC2, (HDC hdc, HANDLE hDevice, GpGraphics **graphics), (hdc, hDevice, graphics)) \
m(CreateFromHWND, (HWND hwnd, GpGraphics **graphics), (hwnd, graphics)) \
m(CreateFromHWNDICM, (HWND hwnd, GpGraphics **graphics), (hwnd, graphics)) \
m(DeleteGraphics, (GpGraphics *graphics), (graphics)) \
m(GetDC, (GpGraphics* graphics, HDC *hdc), (graphics, hdc)) \
m(ReleaseDC, (GpGraphics* graphics, HDC hdc), (graphics, hdc)) \
m(SetCompositingMode, (GpGraphics *graphics, CompositingMode compositingMode), (graphics, compositingMode)) \
m(GetCompositingMode, (GpGraphics *graphics, CompositingMode *compositingMode), (graphics, compositingMode)) \
m(SetRenderingOrigin, (GpGraphics *graphics, INT x, INT y), (graphics, x, y)) \
m(GetRenderingOrigin, (GpGraphics *graphics, INT *x, INT *y), (graphics, x, y)) \
m(SetCompositingQuality, (GpGraphics *graphics, CompositingQuality compositingQuality), (graphics, compositingQuality)) \
m(GetCompositingQuality, (GpGraphics *graphics, CompositingQuality *compositingQuality), (graphics, compositingQuality)) \
m(SetSmoothingMode, (GpGraphics *graphics, SmoothingMode smoothingMode), (graphics, smoothingMode)) \
m(GetSmoothingMode, (GpGraphics *graphics, SmoothingMode *smoothingMode), (graphics, smoothingMode)) \
m(SetPixelOffsetMode, (GpGraphics* graphics, PixelOffsetMode pixelOffsetMode), (graphics, pixelOffsetMode)) \
m(GetPixelOffsetMode, (GpGraphics *graphics, PixelOffsetMode *pixelOffsetMode), (graphics, pixelOffsetMode)) \
m(SetTextRenderingHint, (GpGraphics *graphics, TextRenderingHint mode), (graphics, mode)) \
m(GetTextRenderingHint, (GpGraphics *graphics, TextRenderingHint *mode), (graphics, mode)) \
m(SetTextContrast, (GpGraphics *graphics, UINT contrast), (graphics, contrast)) \
m(GetTextContrast, (GpGraphics *graphics, UINT *contrast), (graphics, contrast)) \
m(SetInterpolationMode, (GpGraphics *graphics, InterpolationMode interpolationMode), (graphics, interpolationMode)) \
m(GetInterpolationMode, (GpGraphics *graphics, InterpolationMode *interpolationMode), (graphics, interpolationMode)) \
m(SetWorldTransform, (GpGraphics *graphics, GpMatrix *matrix), (graphics, matrix)) \
m(ResetWorldTransform, (GpGraphics *graphics), (graphics)) \
m(MultiplyWorldTransform, (GpGraphics *graphics, GDIPCONST GpMatrix *matrix, GpMatrixOrder order), (graphics, matrix, order)) \
m(TranslateWorldTransform, (GpGraphics *graphics, REAL dx, REAL dy, GpMatrixOrder order), (graphics, dx, dy, order)) \
m(ScaleWorldTransform, (GpGraphics *graphics, REAL sx, REAL sy, GpMatrixOrder order), (graphics, sx, sy, order)) \
m(RotateWorldTransform, (GpGraphics *graphics, REAL angle, GpMatrixOrder order), (graphics, angle, order)) \
m(GetWorldTransform, (GpGraphics *graphics, GpMatrix *matrix), (graphics, matrix)) \
m(ResetPageTransform, (GpGraphics *graphics), (graphics)) \
m(GetPageUnit, (GpGraphics *graphics, GpUnit *unit), (graphics, unit)) \
m(GetPageScale, (GpGraphics *graphics, REAL *scale), (graphics, scale)) \
m(SetPageUnit, (GpGraphics *graphics, GpUnit unit), (graphics, unit)) \
m(SetPageScale, (GpGraphics *graphics, REAL scale), (graphics, scale)) \
m(GetDpiX, (GpGraphics *graphics, REAL* dpi), (graphics, dpi)) \
m(GetDpiY, (GpGraphics *graphics, REAL* dpi), (graphics, dpi)) \
m(TransformPoints, (GpGraphics *graphics, GpCoordinateSpace destSpace, GpCoordinateSpace srcSpace, GpPointF *points, INT count), (graphics, destSpace, srcSpace, points, count)) \
m(TransformPointsI, (GpGraphics *graphics, GpCoordinateSpace destSpace, GpCoordinateSpace srcSpace, GpPoint *points, INT count), (graphics, destSpace, srcSpace, points, count)) \
m(GetNearestColor, (GpGraphics *graphics, ARGB* argb), (graphics, argb)) \
m(DrawLine, (GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, REAL x2, REAL y2), (graphics, pen, x1, y1, x2, y2)) \
m(DrawLineI, (GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2), (graphics, pen, x1, y1, x2, y2)) \
m(DrawLines, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count), (graphics, pen, points, count)) \
m(DrawLinesI, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count), (graphics, pen, points, count)) \
m(DrawArc, (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle), (graphics, pen, x, y, width, height, startAngle, sweepAngle)) \
m(DrawArcI, (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle), (graphics, pen, x, y, width, height, startAngle, sweepAngle)) \
m(DrawBezier, (GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4), (graphics, pen, x1, y1, x2, y2, x3, y3, x4, y4)) \
m(DrawBezierI, (GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4), (graphics, pen, x1, y1, x2, y2, x3, y3, x4, y4)) \
m(DrawBeziers, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count), (graphics, pen, points, count)) \
m(DrawBeziersI, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count), (graphics, pen, points, count)) \
m(DrawRectangle, (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height), (graphics, pen, x, y, width, height)) \
m(DrawRectangleI, (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height), (graphics, pen, x, y, width, height)) \
m(DrawRectangles, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpRectF *rects, INT count), (graphics, pen, rects, count)) \
m(DrawRectanglesI, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpRect *rects, INT count), (graphics, pen, rects, count)) \
m(DrawEllipse, (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height), (graphics, pen, x, y, width, height)) \
m(DrawEllipseI, (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height), (graphics, pen, x, y, width, height)) \
m(DrawPie, (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle), (graphics, pen, x, y, width, height, startAngle, sweepAngle)) \
m(DrawPieI, (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle), (graphics, pen, x, y, width, height, startAngle, sweepAngle)) \
m(DrawPolygon, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count), (graphics, pen, points, count)) \
m(DrawPolygonI, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count), (graphics, pen, points, count)) \
m(DrawPath, (GpGraphics *graphics, GpPen *pen, GpPath *path), (graphics, pen, path)) \
m(DrawCurve, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count), (graphics, pen, points, count)) \
m(DrawCurveI, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count), (graphics, pen, points, count)) \
m(DrawCurve2, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension), (graphics, pen, points, count, tension)) \
m(DrawCurve2I, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, REAL tension), (graphics, pen, points, count, tension)) \
m(DrawCurve3, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, INT offset, INT numberOfSegments, REAL tension), (graphics, pen, points, count, offset, numberOfSegments, tension)) \
m(DrawCurve3I, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, INT offset, INT numberOfSegments, REAL tension), (graphics, pen, points, count, offset, numberOfSegments, tension)) \
m(DrawClosedCurve, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count), (graphics, pen, points, count)) \
m(DrawClosedCurveI, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count), (graphics, pen, points, count)) \
m(DrawClosedCurve2, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension), (graphics, pen, points, count, tension)) \
m(DrawClosedCurve2I, (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, REAL tension), (graphics, pen, points, count, tension)) \
m(GraphicsClear, (GpGraphics *graphics, ARGB color), (graphics, color)) \
m(FillRectangle, (GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height), (graphics, brush, x, y, width, height)) \
m(FillRectangleI, (GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height), (graphics, brush, x, y, width, height)) \
m(FillRectangles, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRectF *rects, INT count), (graphics, brush, rects, count)) \
m(FillRectanglesI, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRect *rects, INT count), (graphics, brush, rects, count)) \
m(FillPolygon, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count, GpFillMode fillMode), (graphics, brush, points, count, fillMode)) \
m(FillPolygonI, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, GpFillMode fillMode), (graphics, brush, points, count, fillMode)) \
m(FillPolygon2, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count), (graphics, brush, points, count)) \
m(FillPolygon2I, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count), (graphics, brush, points, count)) \
m(FillEllipse, (GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height), (graphics, brush, x, y, width, height)) \
m(FillEllipseI, (GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height), (graphics, brush, x, y, width, height)) \
m(FillPie, (GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle), (graphics, brush, x, y, width, height, startAngle, sweepAngle)) \
m(FillPieI, (GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle), (graphics, brush, x, y, width, height, startAngle, sweepAngle)) \
m(FillPath, (GpGraphics *graphics, GpBrush *brush, GpPath *path), (graphics, brush, path)) \
m(FillClosedCurve, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count), (graphics, brush, points, count)) \
m(FillClosedCurveI, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count), (graphics, brush, points, count)) \
m(FillClosedCurve2, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count, REAL tension, GpFillMode fillMode), (graphics, brush, points, count, tension, fillMode)) \
m(FillClosedCurve2I, (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, REAL tension, GpFillMode fillMode), (graphics, brush, points, count, tension, fillMode)) \
m(FillRegion, (GpGraphics *graphics, GpBrush *brush, GpRegion *region), (graphics, brush, region)) \
m(DrawImage, (GpGraphics *graphics, GpImage *image, REAL x, REAL y), (graphics, image, x, y)) \
m(DrawImageI, (GpGraphics *graphics, GpImage *image, INT x, INT y), (graphics, image, x, y)) \
m(DrawImageRect, (GpGraphics *graphics, GpImage *image, REAL x, REAL y, REAL width, REAL height), (graphics, image, x, y, width, height)) \
m(DrawImageRectI, (GpGraphics *graphics, GpImage *image, INT x, INT y, INT width, INT height), (graphics, image, x, y, width, height)) \
m(DrawImagePoints, (GpGraphics *graphics, GpImage *image, GDIPCONST GpPointF *dstpoints, INT count), (graphics, image, dstpoints, count)) \
m(DrawImagePointsI, (GpGraphics *graphics, GpImage *image, GDIPCONST GpPoint *dstpoints, INT count), (graphics, image, dstpoints, count)) \
m(DrawImagePointRect, (GpGraphics *graphics, GpImage *image, REAL x, REAL y, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit), (graphics, image, x, y, srcx, srcy, srcwidth, srcheight, srcUnit)) \
m(DrawImagePointRectI, (GpGraphics *graphics, GpImage *image, INT x, INT y, INT srcx, INT srcy, INT srcwidth, INT srcheight, GpUnit srcUnit), (graphics, image, x, y, srcx, srcy, srcwidth, srcheight, srcUnit)) \
m(DrawImageRectRect, (GpGraphics *graphics, GpImage *image, REAL dstx, REAL dsty, REAL dstwidth, REAL dstheight, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID *callbackData), (graphics, image, dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback, callbackData)) \
m(DrawImageRectRectI, (GpGraphics *graphics, GpImage *image, INT dstx, INT dsty, INT dstwidth, INT dstheight, INT srcx, INT srcy, INT srcwidth, INT srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID *callbackData), (graphics, image, dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback, callbackData)) \
m(DrawImagePointsRect, (GpGraphics *graphics, GpImage *image, GDIPCONST GpPointF *points, INT count, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID *callbackData), (graphics, image, points, count, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback, callbackData)) \
m(DrawImagePointsRectI, (GpGraphics *graphics, GpImage *image, GDIPCONST GpPoint *points, INT count, INT srcx, INT srcy, INT srcwidth, INT srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID *callbackData), (graphics, image, points, count, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback, callbackData)) \
m(EnumerateMetafileDestPoint, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST PointF & destPoint, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoint, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileDestPointI, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST Point & destPoint, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoint, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileDestRect, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST RectF & destRect, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destRect, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileDestRectI, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST Rect & destRect, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destRect, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileDestPoints, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST PointF *destPoints, INT count, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoints, count, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileDestPointsI, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST Point *destPoints, INT count, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoints, count, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileSrcRectDestPoint, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST PointF & destPoint, GDIPCONST RectF & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoint, srcRect, srcUnit, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileSrcRectDestPointI, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST Point & destPoint, GDIPCONST Rect & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoint, srcRect, srcUnit, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileSrcRectDestRect, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST RectF & destRect, GDIPCONST RectF & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destRect, srcRect, srcUnit, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileSrcRectDestRectI, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST Rect & destRect, GDIPCONST Rect & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destRect, srcRect, srcUnit, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileSrcRectDestPoints, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST PointF *destPoints, INT count, GDIPCONST RectF & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoints, count, srcRect, srcUnit, callback, callbackData, imageAttributes)) \
m(EnumerateMetafileSrcRectDestPointsI, (GpGraphics *graphics, GDIPCONST GpMetafile *metafile, GDIPCONST Point *destPoints, INT count, GDIPCONST Rect & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID *callbackData, GDIPCONST GpImageAttributes *imageAttributes), (graphics, metafile, destPoints, count, srcRect, srcUnit, callback, callbackData, imageAttributes)) \
m(PlayMetafileRecord, (GDIPCONST GpMetafile *metafile, EmfPlusRecordType recordType, UINT flags, UINT dataSize, GDIPCONST BYTE *data), (metafile, recordType, flags, dataSize, data)) \
m(SetClipGraphics, (GpGraphics *graphics, GpGraphics *srcgraphics, CombineMode combineMode), (graphics, srcgraphics, combineMode)) \
m(SetClipRect, (GpGraphics *graphics, REAL x, REAL y, REAL width, REAL height, CombineMode combineMode), (graphics, x, y, width, height, combineMode)) \
m(SetClipRectI, (GpGraphics *graphics, INT x, INT y, INT width, INT height, CombineMode combineMode), (graphics, x, y, width, height, combineMode)) \
m(SetClipPath, (GpGraphics *graphics, GpPath *path, CombineMode combineMode), (graphics, path, combineMode)) \
m(SetClipRegion, (GpGraphics *graphics, GpRegion *region, CombineMode combineMode), (graphics, region, combineMode)) \
m(SetClipHrgn, (GpGraphics *graphics, HRGN hRgn, CombineMode combineMode), (graphics, hRgn, combineMode)) \
m(ResetClip, (GpGraphics *graphics), (graphics)) \
m(TranslateClip, (GpGraphics *graphics, REAL dx, REAL dy), (graphics, dx, dy)) \
m(TranslateClipI, (GpGraphics *graphics, INT dx, INT dy), (graphics, dx, dy)) \
m(GetClip, (GpGraphics *graphics, GpRegion *region), (graphics, region)) \
m(GetClipBounds, (GpGraphics *graphics, GpRectF *rect), (graphics, rect)) \
m(GetClipBoundsI, (GpGraphics *graphics, GpRect *rect), (graphics, rect)) \
m(IsClipEmpty, (GpGraphics *graphics, BOOL *result), (graphics, result)) \
m(GetVisibleClipBounds, (GpGraphics *graphics, GpRectF *rect), (graphics, rect)) \
m(GetVisibleClipBoundsI, (GpGraphics *graphics, GpRect *rect), (graphics, rect)) \
m(IsVisibleClipEmpty, (GpGraphics *graphics, BOOL *result), (graphics, result)) \
m(IsVisiblePoint, (GpGraphics *graphics, REAL x, REAL y, BOOL *result), (graphics, x, y, result)) \
m(IsVisiblePointI, (GpGraphics *graphics, INT x, INT y, BOOL *result), (graphics, x, y, result)) \
m(IsVisibleRect, (GpGraphics *graphics, REAL x, REAL y, REAL width, REAL height, BOOL *result), (graphics, x, y, width, height, result)) \
m(IsVisibleRectI, (GpGraphics *graphics, INT x, INT y, INT width, INT height, BOOL *result), (graphics, x, y, width, height, result)) \
m(SaveGraphics, (GpGraphics *graphics, GraphicsState *state), (graphics, state)) \
m(RestoreGraphics, (GpGraphics *graphics, GraphicsState state), (graphics, state)) \
m(BeginContainer, (GpGraphics *graphics, GDIPCONST GpRectF* dstrect, GDIPCONST GpRectF *srcrect, GpUnit unit, GraphicsContainer *state), (graphics, dstrect, srcrect, unit, state)) \
m(BeginContainerI, (GpGraphics *graphics, GDIPCONST GpRect* dstrect, GDIPCONST GpRect *srcrect, GpUnit unit, GraphicsContainer *state), (graphics, dstrect, srcrect, unit, state)) \
m(BeginContainer2, (GpGraphics *graphics, GraphicsContainer* state), (graphics, state)) \
m(EndContainer, (GpGraphics *graphics, GraphicsContainer state), (graphics, state)) \
m(GetMetafileHeaderFromEmf, (HENHMETAFILE hEmf, MetafileHeader *header), (hEmf, header)) \
m(GetMetafileHeaderFromFile, (GDIPCONST WCHAR* filename, MetafileHeader *header), (filename, header)) \
m(GetMetafileHeaderFromStream, (IStream *stream, MetafileHeader *header), (stream, header)) \
m(GetMetafileHeaderFromMetafile, (GpMetafile *metafile, MetafileHeader *header), (metafile, header)) \
m(GetHemfFromMetafile, (GpMetafile *metafile, HENHMETAFILE *hEmf), (metafile, hEmf)) \
m(CreateStreamOnFile, (GDIPCONST WCHAR *filename, UINT access, IStream **stream), (filename, access, stream)) \
m(CreateMetafileFromWmf, (HMETAFILE hWmf, BOOL deleteWmf, GDIPCONST WmfPlaceableFileHeader *wmfPlaceableFileHeader, GpMetafile **metafile), (hWmf, deleteWmf, wmfPlaceableFileHeader, metafile)) \
m(CreateMetafileFromEmf, (HENHMETAFILE hEmf, BOOL deleteEmf, GpMetafile **metafile), (hEmf, deleteEmf, metafile)) \
m(CreateMetafileFromFile, (GDIPCONST WCHAR* file, GpMetafile **metafile), (file, metafile)) \
m(CreateMetafileFromWmfFile, (GDIPCONST WCHAR* file, GDIPCONST WmfPlaceableFileHeader *wmfPlaceableFileHeader, GpMetafile **metafile), (file, wmfPlaceableFileHeader, metafile)) \
m(CreateMetafileFromStream, (IStream *stream, GpMetafile **metafile), (stream, metafile)) \
m(RecordMetafile, (HDC referenceHdc, EmfType type, GDIPCONST GpRectF *frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR *description, GpMetafile ** metafile), (referenceHdc, type, frameRect, frameUnit, description, metafile)) \
m(RecordMetafileI, (HDC referenceHdc, EmfType type, GDIPCONST GpRect *frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR *description, GpMetafile ** metafile), (referenceHdc, type, frameRect, frameUnit, description, metafile)) \
m(RecordMetafileFileName, (GDIPCONST WCHAR* fileName, HDC referenceHdc, EmfType type, GDIPCONST GpRectF *frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR *description, GpMetafile ** metafile), (fileName, referenceHdc, type, frameRect, frameUnit, description, metafile)) \
m(RecordMetafileFileNameI, (GDIPCONST WCHAR* fileName, HDC referenceHdc, EmfType type, GDIPCONST GpRect *frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR *description, GpMetafile ** metafile), (fileName, referenceHdc, type, frameRect, frameUnit, description, metafile)) \
m(RecordMetafileStream, (IStream *stream, HDC referenceHdc, EmfType type, GDIPCONST GpRectF *frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR *description, GpMetafile ** metafile), (stream, referenceHdc, type, frameRect, frameUnit, description, metafile)) \
m(RecordMetafileStreamI, (IStream *stream, HDC referenceHdc, EmfType type, GDIPCONST GpRect *frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR *description, GpMetafile ** metafile), (stream, referenceHdc, type, frameRect, frameUnit, description, metafile)) \
m(SetMetafileDownLevelRasterizationLimit, (GpMetafile *metafile, UINT metafileRasterizationLimitDpi), (metafile, metafileRasterizationLimitDpi)) \
m(GetMetafileDownLevelRasterizationLimit, (GDIPCONST GpMetafile *metafile, UINT *metafileRasterizationLimitDpi), (metafile, metafileRasterizationLimitDpi)) \
m(GetImageDecodersSize, (UINT *numDecoders, UINT *size), (numDecoders, size)) \
m(GetImageDecoders, (UINT numDecoders, UINT size, ImageCodecInfo *decoders), (numDecoders, size, decoders)) \
m(GetImageEncodersSize, (UINT *numEncoders, UINT *size), (numEncoders, size)) \
m(GetImageEncoders, (UINT numEncoders, UINT size, ImageCodecInfo *encoders), (numEncoders, size, encoders)) \
m(Comment, (GpGraphics* graphics, UINT sizeData, GDIPCONST BYTE *data), (graphics, sizeData, data)) \
m(CreateFontFamilyFromName, (GDIPCONST WCHAR *name, GpFontCollection *fontCollection, GpFontFamily **FontFamily), (name, fontCollection, FontFamily)) \
m(DeleteFontFamily, (GpFontFamily *FontFamily), (FontFamily)) \
m(CloneFontFamily, (GpFontFamily *FontFamily, GpFontFamily **clonedFontFamily), (FontFamily, clonedFontFamily)) \
m(GetGenericFontFamilySansSerif, (GpFontFamily **nativeFamily), (nativeFamily)) \
m(GetGenericFontFamilySerif, (GpFontFamily **nativeFamily), (nativeFamily)) \
m(GetGenericFontFamilyMonospace, (GpFontFamily **nativeFamily), (nativeFamily)) \
m(GetFamilyName, (GDIPCONST GpFontFamily *family, WCHAR name[LF_FACESIZE], LANGID language), (family, name, language)) \
m(IsStyleAvailable, (GDIPCONST GpFontFamily *family, INT style, BOOL *IsStyleAvailable), (family, style, IsStyleAvailable)) \
m(GetEmHeight, (GDIPCONST GpFontFamily *family, INT style, UINT16 *EmHeight), (family, style, EmHeight)) \
m(GetCellAscent, (GDIPCONST GpFontFamily *family, INT style, UINT16 *CellAscent), (family, style, CellAscent)) \
m(GetCellDescent, (GDIPCONST GpFontFamily *family, INT style, UINT16 *CellDescent), (family, style, CellDescent)) \
m(GetLineSpacing, (GDIPCONST GpFontFamily *family, INT style, UINT16 *LineSpacing), (family, style, LineSpacing)) \
m(CreateFontFromDC, (HDC hdc, GpFont **font), (hdc, font)) \
m(CreateFontFromLogfontA, (HDC hdc, GDIPCONST LOGFONTA *logfont, GpFont **font), (hdc, logfont, font)) \
m(CreateFontFromLogfontW, (HDC hdc, GDIPCONST LOGFONTW *logfont, GpFont **font), (hdc, logfont, font)) \
m(CreateFont, (GDIPCONST GpFontFamily *fontFamily, REAL emSize, INT style, Unit unit, GpFont **font), (fontFamily, emSize, style, unit, font)) \
m(CloneFont, (GpFont* font, GpFont** cloneFont), (font, cloneFont)) \
m(DeleteFont, (GpFont* font), (font)) \
m(GetFamily, (GpFont *font, GpFontFamily **family), (font, family)) \
m(GetFontStyle, (GpFont *font, INT *style), (font, style)) \
m(GetFontSize, (GpFont *font, REAL *size), (font, size)) \
m(GetFontUnit, (GpFont *font, Unit *unit), (font, unit)) \
m(GetFontHeight, (GDIPCONST GpFont *font, GDIPCONST GpGraphics *graphics, REAL *height), (font, graphics, height)) \
m(GetFontHeightGivenDPI, (GDIPCONST GpFont *font, REAL dpi, REAL *height), (font, dpi, height)) \
m(GetLogFontA, (GpFont *font, GpGraphics *graphics, LOGFONTA *logfontA), (font, graphics, logfontA)) \
m(GetLogFontW, (GpFont *font, GpGraphics *graphics, LOGFONTW *logfontW), (font, graphics, logfontW)) \
m(NewInstalledFontCollection, (GpFontCollection** fontCollection), (fontCollection)) \
m(NewPrivateFontCollection, (GpFontCollection** fontCollection), (fontCollection)) \
m(DeletePrivateFontCollection, (GpFontCollection** fontCollection), (fontCollection)) \
m(GetFontCollectionFamilyCount, (GpFontCollection* fontCollection, INT *numFound), (fontCollection, numFound)) \
m(GetFontCollectionFamilyList, (GpFontCollection* fontCollection, INT numSought, GpFontFamily* gpfamilies[], INT* numFound), (fontCollection, numSought, gpfamilies, numFound)) \
m(PrivateAddFontFile, (GpFontCollection* fontCollection, GDIPCONST WCHAR* filename), (fontCollection, filename)) \
m(PrivateAddMemoryFont, (GpFontCollection* fontCollection, GDIPCONST void* memory, INT length), (fontCollection, memory, length)) \
m(DrawString, (GpGraphics *graphics, GDIPCONST WCHAR *string, INT length, GDIPCONST GpFont *font, GDIPCONST RectF *layoutRect, GDIPCONST GpStringFormat *stringFormat, GDIPCONST GpBrush *brush), (graphics, string, length, font, layoutRect, stringFormat, brush)) \
m(MeasureString, (GpGraphics *graphics, GDIPCONST WCHAR *string, INT length, GDIPCONST GpFont *font, GDIPCONST RectF *layoutRect, GDIPCONST GpStringFormat *stringFormat, RectF *boundingBox, INT *codepointsFitted, INT *linesFilled), (graphics, string, length, font, layoutRect, stringFormat, boundingBox, codepointsFitted, linesFilled)) \
m(MeasureCharacterRanges, (GpGraphics *graphics, GDIPCONST WCHAR *string, INT length, GDIPCONST GpFont *font, GDIPCONST RectF &layoutRect, GDIPCONST GpStringFormat *stringFormat, INT regionCount, GpRegion **regions), (graphics, string, length, font, layoutRect, stringFormat, regionCount, regions)) \
m(DrawDriverString, (GpGraphics *graphics, GDIPCONST UINT16 *text, INT length, GDIPCONST GpFont *font, GDIPCONST GpBrush *brush, GDIPCONST PointF *positions, INT flags, GDIPCONST GpMatrix *matrix), (graphics, text, length, font, brush, positions, flags, matrix)) \
m(MeasureDriverString, (GpGraphics *graphics, GDIPCONST UINT16 *text, INT length, GDIPCONST GpFont *font, GDIPCONST PointF *positions, INT flags, GDIPCONST GpMatrix *matrix, RectF *boundingBox), (graphics, text, length, font, positions, flags, matrix, boundingBox)) \
m(CreateStringFormat, (INT formatAttributes, LANGID language, GpStringFormat **format), (formatAttributes, language, format)) \
m(StringFormatGetGenericDefault, (GpStringFormat **format), (format)) \
m(StringFormatGetGenericTypographic, (GpStringFormat **format), (format)) \
m(DeleteStringFormat, (GpStringFormat *format), (format)) \
m(CloneStringFormat, (GDIPCONST GpStringFormat *format, GpStringFormat **newFormat), (format, newFormat)) \
m(SetStringFormatFlags, (GpStringFormat *format, INT flags), (format, flags)) \
m(GetStringFormatFlags, (GDIPCONST GpStringFormat *format, INT *flags), (format, flags)) \
m(SetStringFormatAlign, (GpStringFormat *format, StringAlignment align), (format, align)) \
m(GetStringFormatAlign, (GDIPCONST GpStringFormat *format, StringAlignment *align), (format, align)) \
m(SetStringFormatLineAlign, (GpStringFormat *format, StringAlignment align), (format, align)) \
m(GetStringFormatLineAlign, (GDIPCONST GpStringFormat *format, StringAlignment *align), (format, align)) \
m(SetStringFormatTrimming, (GpStringFormat *format, StringTrimming trimming), (format, trimming)) \
m(GetStringFormatTrimming, (GDIPCONST GpStringFormat *format, StringTrimming *trimming), (format, trimming)) \
m(SetStringFormatHotkeyPrefix, (GpStringFormat *format, INT hotkeyPrefix), (format, hotkeyPrefix)) \
m(GetStringFormatHotkeyPrefix, (GDIPCONST GpStringFormat *format, INT *hotkeyPrefix), (format, hotkeyPrefix)) \
m(SetStringFormatTabStops, (GpStringFormat *format, REAL firstTabOffset, INT count, GDIPCONST REAL *tabStops), (format, firstTabOffset, count, tabStops)) \
m(GetStringFormatTabStops, (GDIPCONST GpStringFormat *format, INT count, REAL *firstTabOffset, REAL *tabStops), (format, count, firstTabOffset, tabStops)) \
m(GetStringFormatTabStopCount, (GDIPCONST GpStringFormat *format, INT *count), (format, count)) \
m(SetStringFormatDigitSubstitution, (GpStringFormat *format, LANGID language, StringDigitSubstitute substitute), (format, language, substitute)) \
m(GetStringFormatDigitSubstitution, (GDIPCONST GpStringFormat *format, LANGID *language, StringDigitSubstitute *substitute), (format, language, substitute)) \
m(GetStringFormatMeasurableCharacterRangeCount, (GDIPCONST GpStringFormat *format, INT *count), (format, count)) \
m(SetStringFormatMeasurableCharacterRanges, (GpStringFormat *format, INT rangeCount, GDIPCONST CharacterRange *ranges), (format, rangeCount, ranges)) \
m(CreateCachedBitmap, (GpBitmap *bitmap, GpGraphics *graphics, GpCachedBitmap **cachedBitmap), (bitmap, graphics, cachedBitmap)) \
m(DeleteCachedBitmap, (GpCachedBitmap *cachedBitmap), (cachedBitmap)) \
m(DrawCachedBitmap, (GpGraphics *graphics, GpCachedBitmap *cachedBitmap, INT x, INT y), (graphics, cachedBitmap, x, y)) \
m(SetImageAttributesCachedBackground, (GpImageAttributes *imageattr, BOOL enableFlag), (imageattr, enableFlag)) \
m(TestControl, (GpTestControlEnum control, void *param), (control, param)) \
// non-standard/problematic functions, to review later if needed
#if 0
// these functions don't seem to exist in the DLL even though they are
// declared in the header
m(SetImageAttributesICMMode, (GpImageAttributes *imageAttr, BOOL on), (imageAttr, on)) \
m(FontCollectionEnumerable, (GpFontCollection* fontCollection, GpGraphics* graphics, INT *numFound), (fontCollection, graphics, numFound)) \
m(FontCollectionEnumerate, (GpFontCollection* fontCollection, INT numSought, GpFontFamily* gpfamilies[], INT* numFound, GpGraphics* graphics), (fontCollection, numSought, gpfamilies, numFound, graphics)) \
GpStatus
GdipGetMetafileHeaderFromWmf(
HMETAFILE hWmf,
GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader,
MetafileHeader * header
);
HPALETTE WINGDIPAPI
GdipCreateHalftonePalette();
UINT WINGDIPAPI
GdipEmfToWmfBits(
HENHMETAFILE hemf,
UINT cbData16,
LPBYTE pData16,
INT iMapMode,
INT eFlags
);
#endif // 0
// this macro expands into an invocation of the given macro m for all GDI+
// functions: m is called with the name of the function without "Gdip" prefix
#define wxFOR_ALL_GDIP_FUNCNAMES(m) \
m(Alloc, (size_t size), (size)) \
m(Free, (void *ptr), (ptr)) \
wxFOR_ALL_GDIPLUS_STATUS_FUNCS(m)
// unfortunately we need a separate macro for these functions as they have
// "Gdiplus" prefix instead of "Gdip" for (almost) all the others (and also
// WINAPI calling convention instead of WINGDIPAPI although they happen to be
// both stdcall in fact)
#define wxFOR_ALL_GDIPLUS_FUNCNAMES(m) \
m(Startup, (ULONG_PTR *token, \
const GdiplusStartupInput *input, \
GdiplusStartupOutput *output), \
(token, input, output)) \
m(Shutdown, (ULONG_PTR token), (token)) \
m(NotificationHook, (ULONG_PTR *token), (token)) \
m(NotificationUnhook, (ULONG_PTR token), (token)) \
#define wxFOR_ALL_FUNCNAMES(m) \
wxFOR_ALL_GDIP_FUNCNAMES(m) \
wxFOR_ALL_GDIPLUS_FUNCNAMES(m)
// ----------------------------------------------------------------------------
// declare typedefs for types of all GDI+ functions
// ----------------------------------------------------------------------------
extern "C"
{
typedef void* (WINGDIPAPI *wxGDIPLUS_FUNC_T(Alloc))(size_t size);
typedef void (WINGDIPAPI *wxGDIPLUS_FUNC_T(Free))(void* ptr);
typedef Status
(WINAPI *wxGDIPLUS_FUNC_T(Startup))(ULONG_PTR *token,
const GdiplusStartupInput *input,
GdiplusStartupOutput *output);
typedef void (WINAPI *wxGDIPLUS_FUNC_T(Shutdown))(ULONG_PTR token);
typedef GpStatus (WINAPI *wxGDIPLUS_FUNC_T(NotificationHook))(ULONG_PTR *token);
typedef void (WINAPI *wxGDIPLUS_FUNC_T(NotificationUnhook))(ULONG_PTR token);
#define wxDECL_GDIPLUS_FUNC_TYPE(name, params, args) \
typedef GpStatus (WINGDIPAPI *wxGDIPLUS_FUNC_T(name)) params ;
wxFOR_ALL_GDIPLUS_STATUS_FUNCS(wxDECL_GDIPLUS_FUNC_TYPE)
#undef wxDECL_GDIPLUS_FUNC_TYPE
// Special hack for w32api headers that reference this variable which is
// normally defined in w32api-specific gdiplus.lib but as we don't link with it
// and load gdiplus.dll dynamically, it's not defined in our case resulting in
// linking errors -- so just provide it ourselves, it doesn't matter where it
// is and if Cygwin headers are modified to not use it in the future, it's not
// a big deal neither, we'll just have an unused pointer.
#if defined(__CYGWIN__) || defined(__MINGW32__)
void *_GdipStringFormatCachedGenericTypographic = NULL;
#endif // __CYGWIN__ || __MINGW32__
} // extern "C"
// ============================================================================
// wxGdiPlus helper class
// ============================================================================
class wxGdiPlus
{
public:
// load GDI+ DLL when we're called for the first time, return true on
// success or false on failure
static bool Initialize()
{
if ( m_initialized == -1 )
m_initialized = DoInit();
return m_initialized == 1;
}
// check if we're initialized without loading the GDI+ DLL
static bool IsInitialized()
{
return m_initialized == 1;
}
// shutdown: should be called on termination to unload the GDI+ DLL, safe
// to call even if we hadn't loaded it
static void Terminate()
{
if ( m_hdll )
{
wxDynamicLibrary::Unload(m_hdll);
m_hdll = 0;
}
m_initialized = -1;
}
// define function pointers as members
#define wxDECL_GDIPLUS_FUNC_MEMBER(name, params, args) \
static wxGDIPLUS_FUNC_T(name) name;
wxFOR_ALL_FUNCNAMES(wxDECL_GDIPLUS_FUNC_MEMBER)
#undef wxDECL_GDIPLUS_FUNC_MEMBER
private:
// do load the GDI+ DLL and bind all the functions
static bool DoInit();
// initially -1 meaning unknown, set to false or true by Initialize()
static int m_initialized;
// handle of the GDI+ DLL if we loaded it successfully
static wxDllType m_hdll;
};
#define wxINIT_GDIPLUS_FUNC(name, params, args) \
wxGDIPLUS_FUNC_T(name) wxGdiPlus::name = NULL;
wxFOR_ALL_FUNCNAMES(wxINIT_GDIPLUS_FUNC)
#undef wxINIT_GDIPLUS_FUNC
int wxGdiPlus::m_initialized = -1;
wxDllType wxGdiPlus::m_hdll = 0;
/* static */
bool wxGdiPlus::DoInit()
{
// we're prepared to handler errors so suppress log messages about them
wxLogNull noLog;
wxDynamicLibrary dllGdip(wxT("gdiplus.dll"), wxDL_VERBATIM);
if ( !dllGdip.IsLoaded() )
return false;
// use RawGetSymbol() for efficiency, we have ~600 functions to load...
#define wxDO_LOAD_FUNC(name, namedll) \
name = (wxGDIPLUS_FUNC_T(name))dllGdip.RawGetSymbol(namedll); \
if ( !name ) \
return false;
#define wxLOAD_GDIPLUS_FUNC(name, params, args) \
wxDO_LOAD_FUNC(name, wxT("Gdiplus") wxSTRINGIZE_T(name))
wxFOR_ALL_GDIPLUS_FUNCNAMES(wxLOAD_GDIPLUS_FUNC)
#undef wxLOAD_GDIPLUS_FUNC
#define wxLOAD_GDIP_FUNC(name, params, args) \
wxDO_LOAD_FUNC(name, wxT("Gdip") wxSTRINGIZE_T(name))
wxFOR_ALL_GDIP_FUNCNAMES(wxLOAD_GDIP_FUNC)
#undef wxLOAD_GDIP_FUNC
// ok, prevent the DLL from being unloaded right now, we'll do it later
m_hdll = dllGdip.Detach();
return true;
}
// ============================================================================
// module to unload GDI+ DLL on program termination
// ============================================================================
class wxGdiPlusModule : public wxModule
{
public:
virtual bool OnInit() { return true; }
virtual void OnExit() { wxGdiPlus::Terminate(); }
DECLARE_DYNAMIC_CLASS(wxGdiPlusModule)
};
IMPLEMENT_DYNAMIC_CLASS(wxGdiPlusModule, wxModule)
// ============================================================================
// implementation of the functions themselves
// ============================================================================
extern "C"
{
void* WINGDIPAPI
GdipAlloc(size_t size)
{
return wxGdiPlus::Initialize() ? wxGdiPlus::Alloc(size) : NULL;
}
void WINGDIPAPI
GdipFree(void* ptr)
{
if ( wxGdiPlus::Initialize() )
wxGdiPlus::Free(ptr);
}
Status WINAPI
GdiplusStartup(ULONG_PTR *token,
const GdiplusStartupInput *input,
GdiplusStartupOutput *output)
{
return wxGdiPlus::Initialize() ? wxGdiPlus::Startup(token, input, output)
: GdiplusNotInitialized;
}
void WINAPI
GdiplusShutdown(ULONG_PTR token)
{
if ( wxGdiPlus::IsInitialized() )
wxGdiPlus::Shutdown(token);
}
#define wxIMPL_GDIPLUS_FUNC(name, params, args) \
GpStatus WINGDIPAPI \
Gdip##name params \
{ \
return wxGdiPlus::Initialize() ? wxGdiPlus::name args \
: GdiplusNotInitialized; \
}
wxFOR_ALL_GDIPLUS_STATUS_FUNCS(wxIMPL_GDIPLUS_FUNC)
#undef wxIMPL_GDIPLUS_FUNC
} // extern "C"
#endif // wxUSE_GRAPHICS_CONTEXT
| Java |
<p>{{ student.get_full_name }},</p>
<p>An intervention referral has been submitted on your behalf.</p>
| Java |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtNetwork of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this
** file. Please review the following information to ensure the GNU Lesser
** General Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU General
** Public License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of this
** file. Please review the following information to ensure the GNU General
** Public License version 3.0 requirements will be met:
** http://www.gnu.org/copyleft/gpl.html.
**
** Other Usage
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
**
**
**
**
** $QT_END_LICENSE$
**
****************************************************************************/
//#define QNETWORKINTERFACE_DEBUG
#include "qnetworkinterface.h"
#include "qnetworkinterface_p.h"
#include <private/qcore_symbian_p.h>
#ifndef QT_NO_NETWORKINTERFACE
#include <in_sock.h>
#include <in_iface.h>
#include <es_sock.h>
QT_BEGIN_NAMESPACE
static QNetworkInterface::InterfaceFlags convertFlags(const TSoInetInterfaceInfo& aInfo)
{
QNetworkInterface::InterfaceFlags flags = 0;
flags |= (aInfo.iState == EIfUp) ? QNetworkInterface::IsUp : QNetworkInterface::InterfaceFlag(0);
// We do not have separate flag for running in Symbian OS
flags |= (aInfo.iState == EIfUp) ? QNetworkInterface::IsRunning : QNetworkInterface::InterfaceFlag(0);
flags |= (aInfo.iFeatures & KIfCanBroadcast) ? QNetworkInterface::CanBroadcast : QNetworkInterface::InterfaceFlag(0);
flags |= (aInfo.iFeatures & KIfIsLoopback) ? QNetworkInterface::IsLoopBack : QNetworkInterface::InterfaceFlag(0);
flags |= (aInfo.iFeatures & KIfIsPointToPoint) ? QNetworkInterface::IsPointToPoint : QNetworkInterface::InterfaceFlag(0);
flags |= (aInfo.iFeatures & KIfCanMulticast) ? QNetworkInterface::CanMulticast : QNetworkInterface::InterfaceFlag(0);
return flags;
}
static QList<QNetworkInterfacePrivate *> interfaceListing()
{
TInt err(KErrNone);
QList<QNetworkInterfacePrivate *> interfaces;
// Connect to Native socket server
RSocketServ socketServ;
err = socketServ.Connect();
if (err)
return interfaces;
// Open dummy socket for interface queries
RSocket socket;
err = socket.Open(socketServ, _L("udp"));
if (err) {
socketServ.Close();
return interfaces;
}
// Ask socket to start enumerating interfaces
err = socket.SetOpt(KSoInetEnumInterfaces, KSolInetIfCtrl);
if (err) {
socket.Close();
socketServ.Close();
return interfaces;
}
int ifindex = 0;
TPckgBuf<TSoInetInterfaceInfo> infoPckg;
TSoInetInterfaceInfo &info = infoPckg();
while (socket.GetOpt(KSoInetNextInterface, KSolInetIfCtrl, infoPckg) == KErrNone) {
// Do not include IPv6 addresses because netmask and broadcast address cannot be determined correctly
if (info.iName != KNullDesC && info.iAddress.IsV4Mapped()) {
TName address;
QNetworkAddressEntry entry;
QNetworkInterfacePrivate *iface = 0;
iface = new QNetworkInterfacePrivate;
iface->index = ifindex++;
interfaces << iface;
iface->name = qt_TDesC2QString(info.iName);
iface->flags = convertFlags(info);
if (/*info.iFeatures&KIfHasHardwareAddr &&*/ info.iHwAddr.Family() != KAFUnspec) {
for (TInt i = sizeof(SSockAddr); i < sizeof(SSockAddr) + info.iHwAddr.GetUserLen(); i++) {
address.AppendNumFixedWidth(info.iHwAddr[i], EHex, 2);
if ((i + 1) < sizeof(SSockAddr) + info.iHwAddr.GetUserLen())
address.Append(_L(":"));
}
address.UpperCase();
iface->hardwareAddress = qt_TDesC2QString(address);
}
// Get the address of the interface
info.iAddress.Output(address);
entry.setIp(QHostAddress(qt_TDesC2QString(address)));
// Get the interface netmask
// For some reason netmask is always 0.0.0.0
// info.iNetMask.Output(address);
// entry.setNetmask( QHostAddress( qt_TDesC2QString( address ) ) );
// Workaround: Let Symbian determine netmask based on IP address class
// TODO: Works only for IPv4 - Task: 259128 Implement IPv6 support
TInetAddr netmask;
netmask.NetMask(info.iAddress);
netmask.Output(address);
entry.setNetmask(QHostAddress(qt_TDesC2QString(address)));
// Get the interface broadcast address
if (iface->flags & QNetworkInterface::CanBroadcast) {
// For some reason broadcast address is always 0.0.0.0
// info.iBrdAddr.Output(address);
// entry.setBroadcast( QHostAddress( qt_TDesC2QString( address ) ) );
// Workaround: Let Symbian determine broadcast address based on IP address
// TODO: Works only for IPv4 - Task: 259128 Implement IPv6 support
TInetAddr broadcast;
broadcast.NetBroadcast(info.iAddress);
broadcast.Output(address);
entry.setBroadcast(QHostAddress(qt_TDesC2QString(address)));
}
// Add new entry to interface address entries
iface->addressEntries << entry;
#if defined(QNETWORKINTERFACE_DEBUG)
printf("\n Found network interface %s, interface flags:\n\
IsUp = %d, IsRunning = %d, CanBroadcast = %d,\n\
IsLoopBack = %d, IsPointToPoint = %d, CanMulticast = %d, \n\
ip = %s, netmask = %s, broadcast = %s,\n\
hwaddress = %s",
iface->name.toLatin1().constData(),
iface->flags & QNetworkInterface::IsUp, iface->flags & QNetworkInterface::IsRunning, iface->flags & QNetworkInterface::CanBroadcast,
iface->flags & QNetworkInterface::IsLoopBack, iface->flags & QNetworkInterface::IsPointToPoint, iface->flags & QNetworkInterface::CanMulticast,
entry.ip().toString().toLatin1().constData(), entry.netmask().toString().toLatin1().constData(), entry.broadcast().toString().toLatin1().constData(),
iface->hardwareAddress.toLatin1().constData());
#endif
}
}
// we will try to use routing info to detect more precisely
// netmask and then ::postProcess() should calculate
// broadcast addresses
// use dummy socket to start enumerating routes
err = socket.SetOpt(KSoInetEnumRoutes, KSolInetRtCtrl);
if (err) {
socket.Close();
socketServ.Close();
// return what we have
// up to this moment
return interfaces;
}
TSoInetRouteInfo routeInfo;
TPckg<TSoInetRouteInfo> routeInfoPkg(routeInfo);
while (socket.GetOpt(KSoInetNextRoute, KSolInetRtCtrl, routeInfoPkg) == KErrNone) {
TName address;
// get interface address
routeInfo.iIfAddr.Output(address);
QHostAddress ifAddr(qt_TDesC2QString(address));
if (ifAddr.isNull())
continue;
routeInfo.iDstAddr.Output(address);
QHostAddress destination(qt_TDesC2QString(address));
if (destination.isNull() || destination != ifAddr)
continue;
// search interfaces
for (int ifindex = 0; ifindex < interfaces.size(); ++ifindex) {
QNetworkInterfacePrivate *iface = interfaces.at(ifindex);
for (int eindex = 0; eindex < iface->addressEntries.size(); ++eindex) {
QNetworkAddressEntry entry = iface->addressEntries.at(eindex);
if (entry.ip() != ifAddr) {
continue;
} else if (entry.ip().protocol() != QAbstractSocket::IPv4Protocol) {
// skip if not IPv4 address (e.g. IPv6)
// as results not reliable on Symbian
continue;
} else {
routeInfo.iNetMask.Output(address);
QHostAddress netmask(qt_TDesC2QString(address));
entry.setNetmask(netmask);
// NULL boradcast address for
// ::postProcess to have effect
entry.setBroadcast(QHostAddress());
iface->addressEntries.replace(eindex, entry);
}
}
}
}
socket.Close();
socketServ.Close();
return interfaces;
}
QList<QNetworkInterfacePrivate *> QNetworkInterfaceManager::scan()
{
return interfaceListing();
}
QT_END_NAMESPACE
#endif // QT_NO_NETWORKINTERFACE
| Java |
/* pushback.h - header for pushback.c */
#ifndef pushback_H
#define pushback_H 1
struct pb_file {
unsigned buff_amt;
ub1 pb_buff[RDSZ];
int fd;
ub1* next;
};
typedef struct pb_file pb_file;
#ifdef __cplusplus
extern "C" {
#endif
U_EXPORT int pb_push(pb_file*, void*, int);
U_EXPORT int pb_read(pb_file*, void*, int);
U_EXPORT void pb_init(pb_file*, int fd, ub1* data);
#ifdef __cplusplus
}
#endif
#endif
| Java |
.vjs-playlist {
background-color: black;
position: absolute;
overflow-y: hidden;
overflow-x: auto;
display: none;
}
.vjs-playlist img {
margin: 10px;
border: 3px solid #555;
border-radius: 6px;
-moz-border-radius: 6px;
width: 125px;
height: 95px;
}
.vjs-playlist img:hover {
border: 3px solid #777;
cursor: pointer;
border-radius: 6px;
-moz-border-radius: 6px;
}
/* Scrollbar
---------------------------------------------------------*/
.vjs-playlist.webkit-scrollbar::-webkit-scrollbar {
width: 10px;
height: 10px;
}
.vjs-playlist.webkit-scrollbar::-webkit-scrollbar-button:start:decrement,
.vjs-playlist::-webkit-scrollbar-button:end:increment {
display: none;
}
.vjs-playlist.webkit-scrollbar::-webkit-scrollbar-track-piece {
background-color: #3b3b3b;
-webkit-border-radius: 6px;
}
.vjs-playlist.webkit-scrollbar::-webkit-scrollbar-thumb {
-webkit-border-radius: 6px;
background: #666 no-repeat center;
}
| Java |
CALL osae_sp_object_type_add ('Android','Android Plugin','','PLUGIN',1,0,0,1);
CALL osae_sp_object_type_state_add ('ON','Running','Android');
CALL osae_sp_object_type_state_add ('OFF','Stopped','Android');
CALL osae_sp_object_type_event_add ('ON','Started','Android');
CALL osae_sp_object_type_event_add ('OFF','Stopped','Android');
CALL osae_sp_object_type_method_add ('NOTIFYALL','Notify All','Android','message','category','','default');
CALL osae_sp_object_type_method_add ('EXECUTEALL','Execute All','Android','task','','','');
CALL osae_sp_object_type_add('Android Device', 'Android Device', 'Android', 'Android Device', 0, 0, 0, 1);
CALL osae_sp_object_type_state_add ('ON','On','Android Device');
CALL osae_sp_object_type_state_add ('OFF','Off','Android Device');
CALL osae_sp_object_type_event_add ('ON','On','Android Device');
CALL osae_sp_object_type_event_add ('OFF','Off','Android Device');
CALL osae_sp_object_type_property_add ('Owner','String','','Android Device',0);
CALL osae_sp_object_type_method_add ('NOTIFY','Notify','Android Device','message','category','','default');
CALL osae_sp_object_type_method_add ('EXECUTE','Execute','Android Device','task','','','');
| Java |
<?php
class boxberryShippingSettingsCountriesValidateController extends waJsonController
{
public function execute()
{
$selected_countries = waRequest::post('selected_countries', array(), waRequest::TYPE_ARRAY);
$all_countries = waRequest::post('all_countries', 1, waRequest::TYPE_INT);
$countries = '';
$allowed_countries = boxberryShippingCountriesAdapter::getAllowedCountries();
if ($all_countries == false && !empty($selected_countries)) {
foreach ($selected_countries as $country_code) {
if (!isset($allowed_countries[$country_code])) {
unset($selected_countries[$country_code]);
}
}
}
if ($all_countries || empty($selected_countries) || count($selected_countries) == count($allowed_countries)) {
$bxb = waShipping::factory('boxberry');
$this->response['list_saved_countries'] = $bxb->_w('All countries');
} else {
$countries = $selected_countries;
$saved_countries = boxberryShippingCountriesAdapter::getCountries($selected_countries);
$list_saved_countries = array();
foreach ($saved_countries as $country) {
$list_saved_countries[] = $country['name'];
$this->response['country_codes'][] = $country['iso3letter'];
}
$this->response['list_saved_countries'] = implode(', ', $list_saved_countries);
}
$this->response['countries'] = !empty($countries) ? json_encode($countries) : '';
}
} | Java |
// Catalano Imaging Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2015
// diego.catalano at live.com
//
// Copyright © Andrew Kirillov, 2007-2008
// [email protected]
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
package Catalano.Imaging.Filters;
import Catalano.Core.IntRange;
import Catalano.Math.ComplexNumber;
/**
* Filtering of frequencies outside of specified range in complex Fourier transformed image.
* @author Diego Catalano
*/
public class FrequencyFilter {
private IntRange freq = new IntRange(0, 1024);
/**
* Initializes a new instance of the FrequencyFilter class.
*/
public FrequencyFilter() {}
/**
* Initializes a new instance of the FrequencyFilter class.
* @param min Minimum value for to keep.
* @param max Maximum value for to keep.
*/
public FrequencyFilter(int min, int max){
this.freq = new IntRange(min, max);
}
/**
* Initializes a new instance of the FrequencyFilter class.S
* @param range IntRange.
*/
public FrequencyFilter(IntRange range) {
this.freq = range;
}
/**
* Get range of frequencies to keep.
* @return IntRange.
*/
public IntRange getFrequencyRange() {
return freq;
}
/**
* Set range of frequencies to keep.
* @param freq IntRange.
*/
public void setFrequencyRange(IntRange freq) {
this.freq = freq;
}
/**
* Apply filter to an fourierTransform.
* @param fourierTransform Fourier transformed.
*/
public void ApplyInPlace(FourierTransform fourierTransform){
if (!fourierTransform.isFourierTransformed()) {
try {
throw new Exception("the image should be fourier transformed.");
} catch (Exception e) {
e.printStackTrace();
}
}
int width = fourierTransform.getWidth();
int height = fourierTransform.getHeight();
int halfWidth = width / 2;
int halfHeight = height / 2;
int min = freq.getMin();
int max = freq.getMax();
ComplexNumber[][] c = fourierTransform.getData();
for ( int i = 0; i < height; i++ ){
int y = i - halfHeight;
for ( int j = 0; j < width; j++ ){
int x = j - halfWidth;
int d = (int) Math.sqrt( x * x + y * y );
// filter values outside the range
if ( ( d > max ) || ( d < min ) ){
c[i][j].real = 0;
c[i][j].imaginary = 0;
}
}
}
}
}
| Java |
#__all__ = [ 'search', 'ham_distance', 'lev_distance', 'distance', 'distance_matrix' ]
| Java |
#include "../../src/corelib/tsampleinfolist.h" | Java |
/*
* Copyright 2009-2014 PrimeTek.
*
* 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.
*/
package org.primefaces.adamantium.view.data.datatable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import org.primefaces.adamantium.domain.Car;
import org.primefaces.adamantium.service.CarService;
@ManagedBean(name="dtColumnsView")
@ViewScoped
public class ColumnsView implements Serializable {
private final static List<String> VALID_COLUMN_KEYS = Arrays.asList("id", "brand", "year", "color", "price");
private String columnTemplate = "id brand year";
private List<ColumnModel> columns;
private List<Car> cars;
private List<Car> filteredCars;
@ManagedProperty("#{carService}")
private CarService service;
@PostConstruct
public void init() {
cars = service.createCars(10);
createDynamicColumns();
}
public List<Car> getCars() {
return cars;
}
public List<Car> getFilteredCars() {
return filteredCars;
}
public void setFilteredCars(List<Car> filteredCars) {
this.filteredCars = filteredCars;
}
public void setService(CarService service) {
this.service = service;
}
public String getColumnTemplate() {
return columnTemplate;
}
public void setColumnTemplate(String columnTemplate) {
this.columnTemplate = columnTemplate;
}
public List<ColumnModel> getColumns() {
return columns;
}
private void createDynamicColumns() {
String[] columnKeys = columnTemplate.split(" ");
columns = new ArrayList<ColumnModel>();
for(String columnKey : columnKeys) {
String key = columnKey.trim();
if(VALID_COLUMN_KEYS.contains(key)) {
columns.add(new ColumnModel(columnKey.toUpperCase(), columnKey));
}
}
}
public void updateColumns() {
//reset table state
UIComponent table = FacesContext.getCurrentInstance().getViewRoot().findComponent(":form:cars");
table.setValueExpression("sortBy", null);
//update columns
createDynamicColumns();
}
static public class ColumnModel implements Serializable {
private String header;
private String property;
public ColumnModel(String header, String property) {
this.header = header;
this.property = property;
}
public String getHeader() {
return header;
}
public String getProperty() {
return property;
}
}
}
| Java |
<form action="action.php" method="post" target="postframe">
<table width="100%" class="table">
<colgroup>
<col width="200" />
<col />
</colgroup>
<tr class="tableheader"><td colspan="2">{LANG[TITLE_GALLERY_ADD]}</td></tr>
{if SET_GALLERY_SUBGALS}<tr>
<td>{LANG[CREATEIN]}:</td>
<td><select name="parent" onchange="refresh_parent(this);" id="selectbox"><option value="root" style="font-weight:bold;">{LANG[ROOT]}</option>{if PARENT}<option value=""></option>{/if}{PARENT}</select></td>
</tr>{/if}
{if SET_SECTIONS}<tr id="row_section">
<td>{LANG[SECTION]}:<br /><small>({LANG[CTRLMULTI]})</small></td>
<td><select name="secid[]" id="seclist" multiple="multiple">{SECTIONS(SECID)}</select></td>
</tr>{/if}
<tr>
<td>{LANG[TITLE]}:</td>
<td><input type="text" name="title" value="{TITLE}" class="input" maxlength="255" size="100" style="width:400px;" /></td>
</tr>
<tr>
<td>{LANG[DESCRIPTION]}: <small>({LANG[OPTIONAL]})</small></td>
<td><textarea name="description" cols="100" rows="8" style="width:98%;">{DESCRIPTION}</textarea></td>
</tr>
<tr id="row_password">
<td>{LANG[PASSWORD]}: <small>({LANG[OPTIONAL]})</small></td>
<td><input type="text" name="password" value="{PASSWORD}" class="input" size="30" style="width:150px;" /></td>
</tr>
<tr>
<td>{LANG[TAGS]}:<br /><small>({LANG[OPTIONAL]}, {LANG[TAGSINFO]})</small></td>
<td><input type="text" name="tags" value="{TAGS}" size="30" class="input" style="width:400px;" /><div id="taglist" class="taglist"></div></td>
</tr>
<tr>
<td>{LANG[META_DESCRIPTION]}: <small>({LANG[OPTIONAL]})</small></td>
<td><textarea name="meta_description" rows="2" style="width:98%;">{META_DESCRIPTION}</textarea></td>
</tr>
{if MODULE_PRODUCTS}<tr>
<td>{LANG[LINKPRODUCT]}: <small>({LANG[OPTIONAL]})</small></td>
<td><select name="prodid">{PRODUCTS(PRODID)}</select></td>
</tr>{/if}
</table>
<table width="100%" class="table" style="margin:10px 0;">
<tr class="tableheader"><td colspan="2">{LANG[OPTIONS]}</td></tr>
<tr>
<td>
{if SET_GALLERY_SEARCHABLE}<input type="checkbox" name="searchable" id="ip_searchable" value="1"{if SEARCHABLE} checked="checked"{/if} /><label for="ip_searchable"> {LANG[SEARCHABLE]}</label><br />{/if}
{if SET_GALLERY_GALCOMS}<input type="checkbox" name="allowcoms" id="ip_allowcoms" value="1"{if ALLOWCOMS} checked="checked"{/if} /><label for="ip_allowcoms"> {LANG[ALLOWCOMS]}</label><br />{/if}
<span id="row_restricted"><input type="checkbox" name="restricted" id="ip_restricted" value="1"{if RESTRICTED} checked="checked"{/if} style="vertical-align:middle;" /><label for="ip_restricted"> {LANG[RESTRICTED]}</label><br /></span>
{if RIGHT_GALLERY_ENABLE}<input type="checkbox" name="pubnow" id="ip_pubnow" value="1"{if PUBNOW} checked="checked"{/if} /><label for="ip_pubnow"> {LANG[PUBNOW]}</label>{/if}
</td>
</tr>
</table>
<table width="100%" class="table">
<tr class="submit"><td colspan="2"><input type="submit" name="apxsubmit" value="{LANG[SUBMIT_ADD]}" accesskey="s" class="button" />{if RIGHT_GALLERY_PADD} <input type="submit" name="submit2" value='{LANG[SUBMIT_ADDPICS]}' class="button" />{/if}</td></tr>
</table>
<input type="hidden" name="id" value="{ID}" />
<input type="hidden" name="action" value="gallery.add" />
<input type="hidden" name="send" value="1" />
<input type="hidden" name="updateparent" value="{UPDATEPARENT}" />
<input type="hidden" name="sectoken" value="{SECTOKEN}" />
{if !SET_GALLERY_SUBGALS}<input type="hidden" name="parent" value="root" />{/if}
</form>
<script type="text/javascript" src="../lib/yui/connection/connection-min.js"></script>
<script type="text/javascript" src="../lib/yui/datasource/datasource-min.js"></script>
<script type="text/javascript" src="../lib/yui/autocomplete/autocomplete-min.js"></script>
<script type="text/javascript" src="../lib/javascript/tagsuggest.js"></script>
<script type="text/javascript" src="../lib/javascript/objecttoolbox.js"></script>
<script type="text/javascript">
function refresh_parent(obj) {
sec=getobject('row_section');
pwd=getobject('row_password');
restr=getobject('row_restricted');
if ( obj.selectedIndex<=1 ) {
if ( sec!=null ) sec.style.display='';
if ( pwd!=null ) pwd.style.display='';
if ( restr!=null ) restr.style.display='';
}
else {
if ( sec!=null ) sec.style.display='none';
if ( pwd!=null ) pwd.style.display='none';
if ( restr!=null ) restr.style.display='none';
}
}
sel=getobject('selectbox');
if ( sel!=null ) refresh_parent(sel);
yEvent.onDOMReady(function() {
new TagSuggest(document.forms[0].tags, yDom.get('taglist'), 200);
{if RIGHT_PRODUCTS_ADD}new ObjectToolbox(document.forms[0].prodid, 'products.add');{/if}
});
</script>
| Java |
package es.uvigo.esei.sing.bdbm.gui.configuration;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.EventListener;
import java.util.EventObject;
import java.util.concurrent.Callable;
import javax.swing.AbstractAction;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import es.uvigo.esei.sing.bdbm.gui.BDBMGUIController;
public class ConfigurationPanel extends JPanel {
private static final long serialVersionUID = 1L;
private final BDBMGUIController controller;
private final JTextField txtRepository;
private final JTextField txtBLAST;
private final JTextField txtEMBOSS;
private final JTextField txtBedTools;
private final JTextField txtSplign;
private final JTextField txtCompart;
private final JButton btnBuildRepository;
public ConfigurationPanel(BDBMGUIController controller) {
super();
this.controller = controller;
// this.setPreferredSize(new Dimension(600, 140));
final GroupLayout layout = new GroupLayout(this);
layout.setAutoCreateContainerGaps(true);
layout.setAutoCreateGaps(true);
this.setLayout(layout);
final JLabel lblRepository = new JLabel("Repository Path");
final JLabel lblBLAST = new JLabel("BLAST Path");
final JLabel lblEMBOSS = new JLabel("EMBOSS Path");
final JLabel lblBedTools = new JLabel("BedTools Path");
final JLabel lblSplign = new JLabel("Splign Path");
final JLabel lblCompart = new JLabel("Compart Path");
final File repositoryPath = this.controller.getEnvironment()
.getRepositoryPaths().getBaseDirectory();
final File blastBD = this.controller.getEnvironment()
.getBLASTBinaries().getBaseDirectory();
final File embossBD = this.controller.getEnvironment()
.getEMBOSSBinaries().getBaseDirectory();
final File bedToolsBD = this.controller.getEnvironment()
.getBedToolsBinaries().getBaseDirectory();
final File splignBD = this.controller.getEnvironment()
.getSplignBinaries().getBaseDirectory();
final File compartBD = this.controller.getEnvironment()
.getCompartBinaries().getBaseDirectory();
this.txtRepository = new JTextField(repositoryPath.getAbsolutePath());
this.txtBLAST = new JTextField(blastBD == null ? "" : blastBD.getAbsolutePath());
this.txtEMBOSS = new JTextField(embossBD == null ? "" : embossBD.getAbsolutePath());
this.txtBedTools = new JTextField(bedToolsBD == null ? "" : bedToolsBD.getAbsolutePath());
this.txtSplign = new JTextField(splignBD == null ? "" : splignBD.getAbsolutePath());
this.txtCompart = new JTextField(compartBD == null ? "" : compartBD.getAbsolutePath());
this.txtRepository.setEditable(false);
this.txtBLAST.setEditable(false);
this.txtEMBOSS.setEditable(false);
this.txtBedTools.setEditable(false);
this.txtSplign.setEditable(false);
this.txtCompart.setEditable(false);
final JButton btnRepository = new JButton("Select...");
final JButton btnBLASTSelect = new JButton("Select...");
final JButton btnEMBOSSSelect = new JButton("Select...");
final JButton btnBedToolsSelect = new JButton("Select...");
final JButton btnSplignSelect = new JButton("Select...");
final JButton btnCompartSelect = new JButton("Select...");
final JButton btnBLASTInPath = new JButton("In system path");
final JButton btnEMBOSSInPath = new JButton("In system path");
final JButton btnBedToolsInPath = new JButton("In system path");
final JButton btnSplignInPath = new JButton("In system path");
final JButton btnCompartInPath = new JButton("In system path");
this.btnBuildRepository = new JButton(new AbstractAction("Build") {
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent e) {
ConfigurationPanel.this.buildRepository();
}
});
this.btnBuildRepository.setEnabled(false);
layout.setVerticalGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup()
.addComponent(lblRepository, Alignment.CENTER)
.addComponent(this.txtRepository)
.addComponent(btnRepository)
.addComponent(this.btnBuildRepository)
)
.addGroup(layout.createParallelGroup()
.addComponent(lblBLAST, Alignment.CENTER)
.addComponent(this.txtBLAST)
.addComponent(btnBLASTSelect)
.addComponent(btnBLASTInPath)
)
.addGroup(layout.createParallelGroup()
.addComponent(lblEMBOSS, Alignment.CENTER)
.addComponent(this.txtEMBOSS)
.addComponent(btnEMBOSSSelect)
.addComponent(btnEMBOSSInPath)
)
.addGroup(layout.createParallelGroup()
.addComponent(lblBedTools, Alignment.CENTER)
.addComponent(this.txtBedTools)
.addComponent(btnBedToolsSelect)
.addComponent(btnBedToolsInPath)
)
.addGroup(layout.createParallelGroup()
.addComponent(lblSplign, Alignment.CENTER)
.addComponent(this.txtSplign)
.addComponent(btnSplignSelect)
.addComponent(btnSplignInPath)
)
.addGroup(layout.createParallelGroup()
.addComponent(lblCompart, Alignment.CENTER)
.addComponent(this.txtCompart)
.addComponent(btnCompartSelect)
.addComponent(btnCompartInPath)
)
);
layout.setHorizontalGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup()
.addComponent(lblRepository)
.addComponent(lblBLAST)
.addComponent(lblEMBOSS)
.addComponent(lblBedTools)
.addComponent(lblSplign)
.addComponent(lblCompart)
)
.addGroup(layout.createParallelGroup()
.addComponent(this.txtRepository)
.addComponent(this.txtBLAST)
.addComponent(this.txtEMBOSS)
.addComponent(this.txtBedTools)
.addComponent(this.txtSplign)
.addComponent(this.txtCompart)
)
.addGroup(layout.createParallelGroup()
.addComponent(btnRepository)
.addComponent(btnBLASTSelect)
.addComponent(btnEMBOSSSelect)
.addComponent(btnBedToolsSelect)
.addComponent(btnSplignSelect)
.addComponent(btnCompartSelect)
)
.addGroup(layout.createParallelGroup()
.addComponent(this.btnBuildRepository)
.addComponent(btnBLASTInPath)
.addComponent(btnEMBOSSInPath)
.addComponent(btnBedToolsInPath)
.addComponent(btnSplignInPath)
.addComponent(btnCompartInPath)
)
);
final Callable<Boolean> callbackRepositorySelection = new Callable<Boolean>() {
@Override
public Boolean call() {
if (ConfigurationPanel.this.isValidRepositoryPath()) {
btnBuildRepository.setEnabled(false);
} else {
btnBuildRepository.setEnabled(true);
if (JOptionPane.showConfirmDialog(
ConfigurationPanel.this,
"Repository path does not exist or its structure is incomplete. Do you wish to build repository structure?",
"Invalid Repository",
JOptionPane.YES_NO_OPTION,
JOptionPane.WARNING_MESSAGE
) == JOptionPane.YES_OPTION) {
ConfigurationPanel.this.buildRepository();
}
}
return true;
}
};
btnRepository.addActionListener(
new PathSelectionActionListener(this.txtRepository, callbackRepositorySelection)
);
final Callable<Boolean> callbackCheckBLAST = new Callable<Boolean>() {
@Override
public Boolean call() {
if (ConfigurationPanel.this.isValidBLASTPath()) {
return true;
} else {
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Invalid BLAST binaries path. Please, change the selected path",
"Invalid Path",
JOptionPane.ERROR_MESSAGE
);
return false;
}
}
};
btnBLASTSelect.addActionListener(
new PathSelectionActionListener(this.txtBLAST, callbackCheckBLAST)
);
btnBLASTInPath.addActionListener(
new SystemPathSelectionActionListener(this.txtBLAST, callbackCheckBLAST)
);
final Callable<Boolean> callbackCheckEMBOSS = new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
if (ConfigurationPanel.this.isValidEMBOSSPath()) {
return true;
} else {
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Invalid EMBOSS binaries path. Please, change the selected path",
"Invalid Path",
JOptionPane.ERROR_MESSAGE
);
return false;
}
}
};
btnEMBOSSSelect.addActionListener(
new PathSelectionActionListener(this.txtEMBOSS, callbackCheckEMBOSS)
);
btnEMBOSSInPath.addActionListener(
new SystemPathSelectionActionListener(this.txtEMBOSS, callbackCheckEMBOSS)
);
final Callable<Boolean> callbackCheckBedTools = new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
if (ConfigurationPanel.this.isValidBedToolsPath()) {
return true;
} else {
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Invalid bedtools binaries path. Please, change the selected path",
"Invalid Path",
JOptionPane.ERROR_MESSAGE
);
return false;
}
}
};
btnBedToolsSelect.addActionListener(
new PathSelectionActionListener(this.txtBedTools, callbackCheckBedTools)
);
btnBedToolsInPath.addActionListener(
new SystemPathSelectionActionListener(this.txtBedTools, callbackCheckBedTools)
);
final Callable<Boolean> callbackCheckSplign = new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
if (ConfigurationPanel.this.isValidSplignPath()) {
return true;
} else {
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Invalid splign binaries path. Please, change the selected path",
"Invalid Path",
JOptionPane.ERROR_MESSAGE
);
return false;
}
}
};
btnSplignSelect.addActionListener(
new PathSelectionActionListener(this.txtSplign, callbackCheckSplign)
);
btnSplignInPath.addActionListener(
new SystemPathSelectionActionListener(this.txtSplign, callbackCheckSplign)
);
final Callable<Boolean> callbackCheckCompart = new Callable<Boolean>() {
@Override
public Boolean call() throws Exception {
if (ConfigurationPanel.this.isValidCompartPath()) {
return true;
} else {
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Invalid compart binaries path. Please, change the selected path",
"Invalid Path",
JOptionPane.ERROR_MESSAGE
);
return false;
}
}
};
btnCompartSelect.addActionListener(
new PathSelectionActionListener(this.txtCompart, callbackCheckCompart)
);
btnCompartInPath.addActionListener(
new SystemPathSelectionActionListener(this.txtCompart, callbackCheckCompart)
);
}
public void addConfigurationChangeListener(ConfigurationChangeEventListener listener) {
this.listenerList.add(ConfigurationChangeEventListener.class, listener);
}
public void removeConfigurationChangeListener(ConfigurationChangeEventListener listener) {
this.listenerList.remove(ConfigurationChangeEventListener.class, listener);
}
protected void fireChangeEvent(ConfigurationChangeEvent event) {
final ConfigurationChangeEventListener[] listeners =
this.listenerList.getListeners(ConfigurationChangeEventListener.class);
for (ConfigurationChangeEventListener listener : listeners) {
listener.configurationChanged(event);
}
}
protected void fireChange() {
this.fireChangeEvent(new ConfigurationChangeEvent(this));
}
protected File getRepositoryDirectory() {
return new File(this.txtRepository.getText());
}
protected String getBLASTPath() {
return this.txtBLAST.getText().isEmpty() ?
null : new File(this.txtBLAST.getText()).getAbsolutePath();
}
protected String getEMBOSSPath() {
return this.txtEMBOSS.getText().isEmpty() ?
null : new File(this.txtEMBOSS.getText()).getAbsolutePath();
}
protected String getBedToolsPath() {
return this.txtBedTools.getText().isEmpty() ?
null : new File(this.txtBedTools.getText()).getAbsolutePath();
}
protected String getSplignPath() {
return this.txtSplign.getText().isEmpty() ?
null : new File(this.txtSplign.getText()).getAbsolutePath();
}
protected String getCompartPath() {
return this.txtCompart.getText().isEmpty() ?
null : new File(this.txtCompart.getText()).getAbsolutePath();
}
public boolean isValidRepositoryPath() {
return this.controller.getEnvironment()
.getRepositoryPaths()
.checkBaseDirectory(getRepositoryDirectory());
}
public boolean isValidBLASTPath() {
return this.controller.getManager().checkBLASTPath(getBLASTPath());
}
protected boolean isValidEMBOSSPath() {
return this.controller.getManager().checkEMBOSSPath(getEMBOSSPath());
}
protected boolean isValidBedToolsPath() {
return this.controller.getManager().checkBedToolsPath(getBedToolsPath());
}
protected boolean isValidSplignPath() {
return this.controller.getManager().checkSplignPath(getSplignPath());
}
protected boolean isValidCompartPath() {
return this.controller.getManager().checkCompartPath(getCompartPath());
}
protected void buildRepository() {
try {
this.controller.getEnvironment()
.getRepositoryPaths()
.buildBaseDirectory(this.getRepositoryDirectory());
this.btnBuildRepository.setEnabled(false);
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Repository structure was correctly built.",
"Repository Built",
JOptionPane.INFORMATION_MESSAGE
);
this.fireChange();
} catch (Exception e) {
this.btnBuildRepository.setEnabled(true);
JOptionPane.showMessageDialog(
ConfigurationPanel.this,
"Error building repository. Please, check path and press 'Build' or change path",
"Repository Building Error",
JOptionPane.ERROR_MESSAGE
);
}
}
public PathsConfiguration getConfiguration() {
if (this.isValidRepositoryPath() && this.isValidBLASTPath()) {
final String blastPath = this.getBLASTPath();
final String embossPath = this.getEMBOSSPath();
final String bedToolsPath = this.getBedToolsPath();
final String splignPath = this.getSplignPath();
final String compartPath = this.getCompartPath();
return new PathsConfiguration(
this.getRepositoryDirectory(),
blastPath == null ? null : new File(blastPath),
embossPath == null ? null : new File(embossPath),
bedToolsPath == null ? null : new File(bedToolsPath),
splignPath == null ? null : new File(splignPath),
compartPath == null ? null : new File(compartPath)
);
} else {
return null;
}
}
private final class SystemPathSelectionActionListener implements
ActionListener {
private final JTextField txtAssociated;
private final Callable<Boolean> callback;
private SystemPathSelectionActionListener(JTextField txtAssociated, Callable<Boolean> callback) {
this.txtAssociated = txtAssociated;
this.callback = callback;
}
@Override
public void actionPerformed(ActionEvent e) {
final String previousPath = this.txtAssociated.getText();
this.txtAssociated.setText("");
try {
if (this.callback.call()) {
ConfigurationPanel.this.fireChange();
} else {
txtAssociated.setText(previousPath);
}
} catch (Exception ex) {
throw new RuntimeException(ex);
}
}
}
private final class PathSelectionActionListener implements ActionListener {
private final JTextField txtAssociated;
private final Callable<Boolean> callback;
private PathSelectionActionListener(JTextField txtAssociated, Callable<Boolean> callback) {
this.txtAssociated = txtAssociated;
this.callback = callback;
}
@Override
public void actionPerformed(ActionEvent e) {
final JFileChooser chooser = new JFileChooser(
new File(txtAssociated.getText())
);
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setMultiSelectionEnabled(false);
if (chooser.showOpenDialog(ConfigurationPanel.this) == JFileChooser.APPROVE_OPTION) {
final String previousPath = txtAssociated.getText();
txtAssociated.setText(chooser.getSelectedFile().getAbsolutePath());
try {
if (this.callback.call()) {
ConfigurationPanel.this.fireChange();
} else {
txtAssociated.setText(previousPath);
}
} catch (Exception e1) {
throw new RuntimeException(e1);
}
}
}
}
public static class ConfigurationChangeEvent extends EventObject {
private static final long serialVersionUID = 1L;
private final PathsConfiguration configuration;
protected ConfigurationChangeEvent(ConfigurationPanel panel) {
this(panel, panel.getConfiguration());
}
public ConfigurationChangeEvent(Object source, PathsConfiguration configuration) {
super(source);
this.configuration = configuration;
}
public PathsConfiguration getConfiguration() {
return configuration;
}
}
public static interface ConfigurationChangeEventListener extends EventListener {
public void configurationChanged(ConfigurationChangeEvent event);
}
}
| Java |
/* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2016,2017 The plumed team
(see the PEOPLE file at the root of the distribution for a list of names)
See http://www.plumed.org for more information.
This file is part of plumed, version 2.
plumed is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
plumed is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "DRMSD.h"
#include "MetricRegister.h"
namespace PLMD {
class IntermolecularDRMSD : public DRMSD {
private:
unsigned nblocks;
std::vector<unsigned> blocks;
public:
explicit IntermolecularDRMSD( const ReferenceConfigurationOptions& ro );
void read( const PDB& pdb );
void setup_targets();
};
PLUMED_REGISTER_METRIC(IntermolecularDRMSD,"INTER-DRMSD")
IntermolecularDRMSD::IntermolecularDRMSD( const ReferenceConfigurationOptions& ro ):
ReferenceConfiguration( ro ),
DRMSD( ro ),
nblocks(0)
{
}
void IntermolecularDRMSD::read( const PDB& pdb ) {
readAtomsFromPDB( pdb, true ); nblocks = pdb.getNumberOfAtomBlocks(); blocks.resize( nblocks+1 );
if( nblocks==1 ) error("Trying to compute intermolecular rmsd but found no TERs in input PDB");
blocks[0]=0; for(unsigned i=0; i<nblocks; ++i) blocks[i+1]=pdb.getAtomBlockEnds()[i];
readBounds(); setup_targets();
}
void IntermolecularDRMSD::setup_targets() {
plumed_massert( bounds_were_set, "I am missing a call to DRMSD::setBoundsOnDistances");
for(unsigned i=1; i<nblocks; ++i) {
for(unsigned j=0; j<i; ++j) {
for(unsigned iatom=blocks[i]; iatom<blocks[i+1]; ++iatom) {
for(unsigned jatom=blocks[j]; jatom<blocks[j+1]; ++jatom) {
double distance = delta( getReferencePosition(iatom), getReferencePosition(jatom) ).modulo();
if(distance < upper && distance > lower ) targets[std::make_pair(iatom,jatom)] = distance;
}
}
}
}
}
}
| Java |
/*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* SonarQube is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.server.batch;
import org.apache.commons.io.IOUtils;
import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
import org.sonar.batch.protocol.input.GlobalRepositories;
import org.sonar.db.metric.MetricDto;
import org.sonar.core.permission.GlobalPermissions;
import org.sonar.db.DbSession;
import org.sonar.db.MyBatis;
import org.sonar.db.property.PropertiesDao;
import org.sonar.db.property.PropertyDto;
import org.sonar.server.db.DbClient;
import org.sonar.server.exceptions.ForbiddenException;
import org.sonar.server.plugins.MimeTypes;
import org.sonar.server.user.UserSession;
public class GlobalAction implements BatchWsAction {
private final DbClient dbClient;
private final PropertiesDao propertiesDao;
private final UserSession userSession;
public GlobalAction(DbClient dbClient, PropertiesDao propertiesDao, UserSession userSession) {
this.dbClient = dbClient;
this.propertiesDao = propertiesDao;
this.userSession = userSession;
}
@Override
public void define(WebService.NewController controller) {
controller.createAction("global")
.setDescription("Return metrics and global properties")
.setSince("4.5")
.setInternal(true)
.setHandler(this);
}
@Override
public void handle(Request request, Response response) throws Exception {
boolean hasScanPerm = userSession.hasGlobalPermission(GlobalPermissions.SCAN_EXECUTION);
boolean hasPreviewPerm = userSession.hasGlobalPermission(GlobalPermissions.PREVIEW_EXECUTION);
if (!hasPreviewPerm && !hasScanPerm) {
throw new ForbiddenException(Messages.NO_PERMISSION);
}
DbSession session = dbClient.openSession(false);
try {
GlobalRepositories ref = new GlobalRepositories();
addMetrics(ref, session);
addSettings(ref, hasScanPerm, hasPreviewPerm, session);
response.stream().setMediaType(MimeTypes.JSON);
IOUtils.write(ref.toJson(), response.stream().output());
} finally {
MyBatis.closeQuietly(session);
}
}
private void addMetrics(GlobalRepositories ref, DbSession session) {
for (MetricDto metric : dbClient.metricDao().selectEnabled(session)) {
ref.addMetric(
new org.sonar.batch.protocol.input.Metric(metric.getId(), metric.getKey(),
metric.getValueType(),
metric.getDescription(),
metric.getDirection(),
metric.getKey(),
metric.isQualitative(),
metric.isUserManaged(),
metric.getWorstValue(),
metric.getBestValue(),
metric.isOptimizedBestValue()));
}
}
private void addSettings(GlobalRepositories ref, boolean hasScanPerm, boolean hasPreviewPerm, DbSession session) {
for (PropertyDto propertyDto : propertiesDao.selectGlobalProperties(session)) {
String key = propertyDto.getKey();
String value = propertyDto.getValue();
if (isPropertyAllowed(key, hasScanPerm, hasPreviewPerm)) {
ref.addGlobalSetting(key, value);
}
}
}
private static boolean isPropertyAllowed(String key, boolean hasScanPerm, boolean hasPreviewPerm) {
return !key.contains(".secured") || hasScanPerm || (key.contains(".license") && hasPreviewPerm);
}
}
| Java |
/*
* SonarQube
* Copyright (C) 2009-2022 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
@ParametersAreNonnullByDefault
package org.sonar.ce.configuration;
import javax.annotation.ParametersAreNonnullByDefault;
| Java |
package spitter.web;
import static org.hamcrest.Matchers.*;
import static org.mockito.Mockito.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.web.servlet.view.InternalResourceView;
import spittr.Spittle;
import spittr.data.SpittleRepository;
import spittr.web.SpittleController;
public class SpittleControllerTest {
@Test
public void houldShowRecentSpittles() throws Exception {
List<Spittle> expectedSpittles = createSpittleList(20);
SpittleRepository mockRepository = mock(SpittleRepository.class);
when(mockRepository.findSpittles(Long.MAX_VALUE, 20))
.thenReturn(expectedSpittles);
SpittleController controller = new SpittleController(mockRepository);
MockMvc mockMvc = standaloneSetup(controller)
.setSingleView(new InternalResourceView("/WEB-INF/views/spittles.jsp"))
.build();
mockMvc.perform(get("/spittles"))
.andExpect(view().name("spittles"))
.andExpect(model().attributeExists("spittleList"))
.andExpect(model().attribute("spittleList",
hasItems(expectedSpittles.toArray())));
}
@Test
public void shouldShowPagedSpittles() throws Exception {
List<Spittle> expectedSpittles = createSpittleList(50);
SpittleRepository mockRepository = mock(SpittleRepository.class);
when(mockRepository.findSpittles(238900, 50))
.thenReturn(expectedSpittles);
SpittleController controller = new SpittleController(mockRepository);
MockMvc mockMvc = standaloneSetup(controller)
.setSingleView(new InternalResourceView("/WEB-INF/views/spittles.jsp"))
.build();
mockMvc.perform(get("/spittles?max=238900&count=50"))
.andExpect(view().name("spittles"))
.andExpect(model().attributeExists("spittleList"))
.andExpect(model().attribute("spittleList",
hasItems(expectedSpittles.toArray())));
}
@Test
public void testSpittle() throws Exception {
Spittle expectedSpittle = new Spittle("Hello", new Date());
SpittleRepository mockRepository = mock(SpittleRepository.class);
when(mockRepository.findOne(12345)).thenReturn(expectedSpittle);
SpittleController controller = new SpittleController(mockRepository);
MockMvc mockMvc = standaloneSetup(controller).build();
mockMvc.perform(get("/spittles/12345"))
.andExpect(view().name("spittle"))
.andExpect(model().attributeExists("spittle"))
.andExpect(model().attribute("spittle", expectedSpittle));
}
@Test
public void saveSpittle() throws Exception {
SpittleRepository mockRepository = mock(SpittleRepository.class);
SpittleController controller = new SpittleController(mockRepository);
MockMvc mockMvc = standaloneSetup(controller).build();
mockMvc.perform(post("/spittles")
.param("message", "Hello World") // this works, but isn't really testing what really happens
.param("longitude", "-81.5811668")
.param("latitude", "28.4159649")
)
.andExpect(redirectedUrl("/spittles"));
verify(mockRepository, atLeastOnce()).save(new Spittle(null, "Hello World", new Date(), -81.5811668, 28.4159649));
}
private List<Spittle> createSpittleList(int count) {
List<Spittle> spittles = new ArrayList<Spittle>();
for (int i=0; i < count; i++) {
spittles.add(new Spittle("Spittle " + i, new Date()));
}
return spittles;
}
}
| Java |
---
layout: default
title: Pull quote / Small
category: _patterns
---
<blockquote class="p-pull-quote--small">
<p class="p-pull-quote__quote">We want to be able to deliver the same high-quality experience on Linux as we do on other platforms. Snaps allow us to do just that, by giving us the ability to push the latest features straight to our users, no matter what device or distribution they happen to use.</p>
<cite class="p-pull-quote__citation">Jonáš Tajrych, Senior Software Engineer at Skype at Microsoft</cite>
</blockquote>
| Java |
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using Sustainsys.Saml2.AspNetCore2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Extensions methods for adding Saml2 authentication
/// </summary>
public static class Saml2AuthExtensions
{
/// <summary>
/// Register Saml2 Authentication with default scheme name.
/// </summary>
/// <param name="builder">Authentication Builder</param>
/// <param name="configureOptions">Action that configures the Saml2 Options</param>
/// <returns></returns>
public static AuthenticationBuilder AddSaml2(
this AuthenticationBuilder builder,
Action<Saml2Options> configureOptions)
=> builder.AddSaml2(Saml2Defaults.Scheme, configureOptions);
/// <summary>
/// Register Saml2 Authentication with a custom scheme name.
/// </summary>
/// <param name="builder">Authentication Builder</param>
/// <param name="scheme">Name of the authentication scheme</param>
/// <param name="configureOptions">Action that configures Saml2 Options</param>
/// <returns>Authentication Builder</returns>
public static AuthenticationBuilder AddSaml2(
this AuthenticationBuilder builder,
string scheme,
Action<Saml2Options> configureOptions)
=> builder.AddSaml2(scheme, Saml2Defaults.DisplayName, configureOptions);
/// <summary>
/// Register Saml2 Authentication with a custom scheme name.
/// </summary>
/// <param name="builder">Authentication Builder</param>
/// <param name="scheme">Name of the authentication scheme</param>
/// <param name="configureOptions">Action that configures Saml2 Options</param>
/// <param name="displayName">Display name of scheme</param>
/// <returns>Authentication Builder</returns>
public static AuthenticationBuilder AddSaml2(
this AuthenticationBuilder builder,
string scheme,
string displayName,
Action<Saml2Options> configureOptions)
{
if(builder == null)
{
throw new ArgumentNullException(nameof(builder));
}
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<Saml2Options>, PostConfigureSaml2Options>());
builder.Services.Configure<AuthenticationOptions>(o =>
{
o.AddScheme(scheme, s =>
{
s.HandlerType = typeof(Saml2Handler);
s.DisplayName = displayName;
});
});
if (configureOptions != null)
{
builder.Services.Configure(scheme, configureOptions);
}
builder.Services.AddTransient<Saml2Handler>();
return builder;
}
}
}
| Java |
// <copyright file="ExpansionCase.cs" company="Allors bvba">
// Copyright (c) Allors bvba. All rights reserved.
// Licensed under the LGPL license. See LICENSE file in the project root for full license information.
// </copyright>
namespace Autotest.Html
{
using System.Linq;
using Autotest.Angular;
using Newtonsoft.Json.Linq;
public partial class ExpansionCase : INode
{
public ExpansionCase(JToken json, Template template, INode parent)
{
this.Json = json;
this.Template = template;
this.Parent = parent;
}
public INode[] Expression { get; set; }
public JToken Json { get; }
public Template Template { get; }
public INode Parent { get; set; }
public string Value { get; set; }
public Scope InScope { get; set; }
public void BaseLoad()
{
this.Value = this.Json["value"]?.Value<string>();
var expressionChildren = this.Json["expression"];
this.Expression = expressionChildren != null ? expressionChildren.Select(v =>
{
var node = NodeFactory.Create(v, this.Template, this);
node.BaseLoad();
return node;
}).ToArray() : new INode[0];
}
public void SetInScope(Scope scope)
{
this.InScope = scope;
scope.Nodes.Add(this);
}
}
}
| Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1/strict">
<head>
<title>Quick Start HowTo</title>
<!--
Copyright 1999-2004 The Apache Software Foundation
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.
-->
<meta content="1999-2004 The Apache Software Foundation" name="copyright"/>
<meta content="$Date: 2004/03/04 04:46:34 $" name="last-changed"/>
<meta content="Henri Gomez" name="author"/>
<meta content="[email protected]" name="email"/>
<link href="..//style.css" type="text/css" rel="stylesheet"/>
<link href="../images/tomcat.ico" rel="shortcut icon"/>
</head>
<body link="#525D76" vlink="#525D76" alink="#525D76" text="#000000" bgcolor="#ffffff">
<a name="TOP"/>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr height="1">
<td class="nil" height="1" bgcolor="#ffffff" width="150">
<img hspace="0" vspace="0" height="1" width="150" border="0" src="../images/pixel.gif"/>
</td>
<td class="nil" height="1" bgcolor="#ffffff" width="*">
<img hspace="0" vspace="0" height="1" width="370" border="0" src="../images/pixel.gif"/>
</td>
</tr>
<tr>
<td width="*" colspan="2" class="logo" bgcolor="#ffffff">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left">
<img align="left" height="48" width="505" border="0" src="../images/jakarta.gif"/>
</td>
<td align="right">
<img align="right" border="0" src="../images/mod_jk.jpg"/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" width="*" align="right" class="head" bgcolor="#999999">
<nobr>
<a href="http://www.apache.org/" class="head">Apache Software Foundation</a> |
<a href="http://jakarta.apache.org/" class="head">Jakarta Project</a> |
<a href="http://jakarta.apache.org/tomcat/" class="head">Apache Tomcat</a>
</nobr>
</td>
</tr>
<tr>
<td class="body" valign="top" width="*" bgcolor="#ffffff">
<table cellspacing="4" width="100%" border="0">
<tr>
<td nowrap="true" valign="top" align="left">
<h2>Quick Start HowTo</h2>
</td>
<td nowrap="true" valign="top" align="right">
<img border="0" hspace="0" vspace="0" height="1" width="1" src="../images/void.gif"/>
</td>
</tr>
</table>
<a name="Introduction">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Introduction</td>
</tr>
</table>
</a>
<p class="section">
This document describes the configuration files used by JK on the
Web Server side for the 'impatients':
<ul>
<li>
<b>
<font color="#333333">workers.properties</font>
</b> is a mandatory file used by the webserver and which
is the same for all JK implementations (Apache/IIS/NES).
</li>
<li>
<b>
<font color="#333333">WebServers</font>
</b> add-ons to be set on the webserver side.
</li>
</ul>
</p>
<p class="section">
We'll give here minimum servers configuration and an example <b>
<font color="#333333">workers.properties</font>
</b>
to be able to install and check quickly your configuration.
</p>
<br/>
<a name="Minimum workers.properties">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Minimum workers.properties</td>
</tr>
</table>
</a>
<p class="section">
Here is a minimum <b>
<font color="#333333">workers.properties</font>
</b>, using just ajp13 to connect your Apache webserver
to the Tomcat engine, complete documentation is available in <b>
<a href="../jk/workershowto.html">Workers HowTo</a>
</b>.
</p>
<p class="section">
<p class="screen">
<div align="center">
<table bgcolor="#cccccc" cellpadding="2" cellspacing="0" border="1" width="80%">
<tr>
<td align="left" bgcolor="#cccccc">
<div class="screen"># Define 1 real worker using ajp13</div>
<code class="screen">
<nobr>worker.list=worker1</nobr>
</code>
<br/>
<div class="screen"># Set properties for worker1 (ajp13)</div>
<code class="screen">
<nobr>worker.worker1.type=ajp13</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.host=localhost</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.port=8009</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.lbfactor=50</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.cachesize=10</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.cache_timeout=600</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.socket_keepalive=1</nobr>
</code>
<br/>
<code class="screen">
<nobr>worker.worker1.socket_timeout=300</nobr>
</code>
<br/>
</td>
</tr>
</table>
</div>
</p>
</p>
<br/>
<a name="Minimum Apache WebServer configuration">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Minimum Apache WebServer configuration</td>
</tr>
</table>
</a>
<p class="section">
Here is a minimun informations about Apache configuration, a
complete documentation is available in <b>
<a href="../jk/aphowto.html">Apache HowTo</a>
</b>.
</p>
<p class="section">
You should first have <b>
<font color="#333333">mod_jk.so</font>
</b> (unix) or <b>
<font color="#333333">mod_jk.dll</font>
</b> (Windows) installed
in your Apache module directory (see your Apache documentation to locate it).
</p>
<p class="section">
Usual locations for modules directory on Unix:
<ul>
<li>/usr/lib/apache/</li>
<li>/usr/lib/apache2/</li>
<li>/usr/local/apache/libexec/</li>
</ul>
</p>
<p class="section">
Usual locations for modules directory on Windows :
<ul>
<li>C:\Program Files\Apache Group\Apache\modules\</li>
<li>C:\Program Files\Apache Group\Apache2\modules\</li>
</ul>
</p>
<p class="section">
You'll find prebuilt binaries <b>
<a href="http://jakarta.apache.org/site/binindex.cgi/">here</a>
</b>
</p>
<p class="section">
Here is the minimum which should be set in <b>
<font color="#333333">httpd.conf</font>
</b> directly or
included from another file:
</p>
<p class="section">
Usual locations for configuration directory on Unix:
<ul>
<li>/etc/httpd/conf/</li>
<li>/etc/httpd2/conf/</li>
<li>/usr/local/apache/conf/</li>
</ul>
</p>
<p class="section">
Usual locations for configuration directory on Windows :
<ul>
<li>C:\Program Files\Apache Group\Apache\conf\</li>
<li>C:\Program Files\Apache Group\Apache2\conf\</li>
</ul>
</p>
<p class="section">
<p class="screen">
<div align="center">
<table bgcolor="#cccccc" cellpadding="2" cellspacing="0" border="1" width="80%">
<tr>
<td align="left" bgcolor="#cccccc">
<div class="screen"># Load mod_jk module</div>
<div class="screen"># Update this path to match your modules location</div>
<code class="screen">
<nobr>LoadModule jk_module libexec/mod_jk.so</nobr>
</code>
<br/>
<div class="screen"># Declare the module for <IfModule directive></div>
<code class="screen">
<nobr>AddModule mod_jk.c</nobr>
</code>
<br/>
<div class="screen"># Where to find workers.properties</div>
<div class="screen"># Update this path to match your conf directory location (put workers.properties next to httpd.conf)</div>
<code class="screen">
<nobr>JkWorkersFile /etc/httpd/conf/workers.properties</nobr>
</code>
<br/>
<div class="screen"># Where to put jk logs</div>
<div class="screen"># Update this path to match your logs directory location (put mod_jk.log next to access_log)</div>
<code class="screen">
<nobr>JkLogFile /var/log/httpd/mod_jk.log</nobr>
</code>
<br/>
<div class="screen"># Set the jk log level [debug/error/info]</div>
<code class="screen">
<nobr>JkLogLevel info</nobr>
</code>
<br/>
<div class="screen"># Select the log format</div>
<code class="screen">
<nobr>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "</nobr>
</code>
<br/>
<div class="screen"># JkOptions indicate to send SSL KEY SIZE, </div>
<code class="screen">
<nobr>JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories</nobr>
</code>
<br/>
<div class="screen"># JkRequestLogFormat set the request format </div>
<code class="screen">
<nobr>JkRequestLogFormat "%w %V %T"</nobr>
</code>
<br/>
<div class="screen"># Send everything for context /examples to worker named worker1 (ajp13)</div>
<code class="screen">
<nobr>JkMount /examples/* worker1</nobr>
</code>
<br/>
</td>
</tr>
</table>
</div>
</p>
</p>
<br/>
<a name="Minimum Domino WebServer configuration">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Minimum Domino WebServer configuration</td>
</tr>
</table>
</a>
<p class="section">
A complete documentation is available in <b>
<a href="../jk/domhowto.html">Domino HowTo</a>
</b>.
</p>
<p class="todo">
This paragraph has not been written yet, but <b>you</b> can contribute to it.
</p>
<br/>
<a name="Minimum IIS WebServer configuration">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Minimum IIS WebServer configuration</td>
</tr>
</table>
</a>
<p class="section">
A complete documentation is available in <b>
<a href="../jk/iishowto.html">IIS HowTo</a>
</b>.
</p>
<p class="todo">
This paragraph has not been written yet, but <b>you</b> can contribute to it.
</p>
<br/>
<a name="Minimum NES/iPlanet WebServer configuration">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Minimum NES/iPlanet WebServer configuration</td>
</tr>
</table>
</a>
<p class="section">
A complete documentation is available in <b>
<a href="../jk/neshowto.html">Netscape/iPlanet HowTo</a>
</b>.
</p>
<p class="todo">
This paragraph has not been written yet, but <b>you</b> can contribute to it.
</p>
<br/>
<a name="Test your configuration">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="left" valign="top" class="section" bgcolor="#525D76">
<img border="0" vspace="0" hspace="0" align="left" valign="top" src="../images/corner.gif"/>Test your configuration</td>
</tr>
</table>
</a>
<p class="section">
(Re)start the Web server and browse to the <b>
<a href="../">http://localhost/examples/</a>
</b>
</p>
<br/>
</td>
</tr>
</table>
</body>
</html>
| Java |
<?php
header("Content-type:text/html;charset=utf-8");
define('IC_VERNAME', '中文版');
$lang = array(
'Install guide' => 'IBOS 安装引导',
'None' => '无',
'Env check' => '环境检查',
'Env test' => '环境检测',
'Icenter required' => '所需配置',
'Recommended' => '推荐配置',
'Curr server' => '当前服务器',
'Priv check' => '目录、文件权限检查',
'Writeable' => '可写',
'Unwriteable' => '不可写',
'Nodir' => '目录不存在',
'Directory file' => '目录文件',
'Required state' => '所需状态',
'Current status' => '当前状态',
'Func depend' => '函数依赖性检查',
'Failed to pass' => '未能通过!',
'Func name' => '函数名称',
'Check result' => '检查结果',
'Suggestion' => '建议',
'Supportted' => '支持',
'Unsupportted' => '不支持',
'Check again' => '重新检测',
'Pack up' => '收起',
'Open up' => '展开',
'os' => '操作系统',
'php' => 'PHP 版本',
'attachmentupload' => '附件上传',
'unlimit' => '不限制',
'version' => '版本',
'gdversion' => 'GD 库',
'allow' => '允许 ',
'unix' => '类Unix',
'diskspace' => '磁盘空间',
'notset' => '不限制',
'install' => '安装',
'installed' => '已安装',
'uninstalled' => '未安装',
'Db info' => '数据库信息',
'Db username' => '数据库用户名',
'Db password' => '数据库密码',
'Password not empty' => '密码不能为空!',
'Show more' => '显示更多信息',
'Db host' => '数据库服务器',
'Db host tip' => '数据库服务器:地址,一般为localhost',
'Db name' => '数据库名',
'Db pre' => '数据表前缀',
'Db pre tip' => '修改前缀与其他数据库区分',
'Admin info' => '管理员信息',
'Admin account' => '管理员账号',
'Admin account tip' => '管理员账号不能为空!',
'Password' => '密码',
'Password tip' => '请填写6到32位数字或者字母!',
'I have read and agree' => '我已阅读并同意',
'Ibos agreement' => '《IBOS协同办公平台用户协议》',
'Custom module' => '自定义模块',
'Install now' => '立即安装',
'Advice_mysql_connect' => '请检查 mysql 模块是否正确加载',
'Advice_gethostbyname' => '是否 PHP 配置中禁止了 gethostbyname 函数。请联系空间商,确定开启了此项功能',
'Advice_file_get_contents' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'Advice_scandir' => '是否 PHP 配置中禁止了 scandir 函数',
'Advice_bcmul' => '该函数需要 php.ini 中 bcmath 选项开启。请联系空间商,确定开启了此项功能',
'Advice_xml_parser_create' => '该函数需要 PHP 支持 XML。请联系空间商,确定开启了此项功能',
'Advice_fsockopen' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'Advice_pfsockopen' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'Advice_stream_socket_client' => '是否 PHP 配置中禁止了 stream_socket_client 函数',
'Advice_curl_init' => '是否 PHP 配置中禁止了 curl_init 函数',
'Advice_mysql' => '是否配置中禁止了php_mysql扩展。请联系空间商,确定开启了此项功能',
'Advice_pdo_mysql' => '是否配置中禁止了php_pdo_mysql扩展。请联系空间商,确定开启了此项功能',
'Advice_mbstring' => '是否配置中禁止了php_mbstring扩展。请联系空间商,确定开启了此项功能',
'Dbaccount not empty' => '数据库用户名不能为空',
'Dbpassword not empty' => '数据库密码不能为空',
'Adminaccount not empty' => '管理员账号不能为空',
'Mobile incorrect format' => '手机号格式不正确',
'Adminpassword incorrect format' => '密码格式不正确!请填写6到32位数字或者字母',
'Database errno 1045' => '无法连接数据库,请检查数据库用户名或者密码是否正确',
'Database errno 2003' => '无法连接数据库,请检查数据库是否启动,数据库服务器地址是否正确',
'Database errno 1049' => '数据库不存在',
'Database errno 2002' => '无法链接数据库,请检查数据库端口是否设置正确', //这个有待考证
'Database connect error' => '数据库连接错误',
'Database errno 1044' => '无法创建新的数据库,请检查数据库名称填写是否正确',
'Database error info' => "数据库连接错误信息:",
'func not exist' => '方法不存在',
'Dbinfo forceinstall invalid' => '当前数据库当中已经含有同样表前缀的数据表,您可以修改“表名前缀(企业代码)”来避免删除旧的数据,或者选择强制安装。强制安装会删除旧数据,且无法恢复',
'Install module failed' => '模块安装失败',
'Install failed message' => '安装失败信息:',
'Install locked' => '安装锁定,已经安装过了,如果您确定要重新安装,请到服务器上删除',
'Suc tip' => '使用演示数据体验',
'Return' => '返回',
'Previous' => '上一步',
'Next' => '下一步',
'Sys module' => '系统模块',
'Fun module' => '功能模块',
'Installing' => '正在安装...',
'Installing info' => '正在安装 "<span id="mod_name"></span>" ,请稍等...',
'Installing tip' => '<p class="mbs fsm">启用全新系统核心架构,IBOS2.0现已全面升级,</p>
<p class="fsm">更高效、更健壮、更便捷。</p>',
'Complete' => '安装完成,登录IBOS',
'Install complete' => '模块安装完成,正在初始化系统...',
'Mandatory installation' => '强制安装',
'Del data' => '我要删除数据,强制安装 !!!',
'UpdateSQL locked' => '升级数据库锁定,已经升级过了,如果您确定要重新升级,请到服务器上删除',
'convertUser' => '用户数据',
'convertDept' => '部门数据',
'convertPosition' => '岗位数据',
'convertMail' => '邮件数据',
'convertDiary' => '日志数据',
'convertAtt' => '附件数据',
'convertCal' => '日程数据',
'convertNews' => '新闻数据',
'Sure modify' => '确认修改',
'Modify table prefix' => '我要修改ibos1数据表前缀 !!!',
'Modify table prefix tip' => '本操作将会把以前的数据库所有表前缀改为"old_",为了安全起见,请确保将原来数据库备份再选中此项继续安装',
'Modify old table prefix' => '修改旧数据库表前缀',
'New db pre tip' => '请输入新数据表前缀',
'Continue' => '继续',
'Request tainting' => '非法请求',
'Invalid corp code' => '企业代码格式错误,请输入 4-20 位字母或数字',
);
| Java |
/* tio_str-- Test file for mpc_inp_str and mpc_out_str.
Copyright (C) 2009, 2011, 2013, 2014 INRIA
This file is part of GNU MPC.
GNU MPC is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
GNU MPC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see http://www.gnu.org/licenses/ .
*/
#include "mpc-tests.h"
#ifdef HAVE_UNISTD_H
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 1 /* apparently needed on Darwin */
#endif
#include <unistd.h> /* for dup, dup2, STDIN_FILENO and STDOUT_FILENO */
#else
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#endif
extern unsigned long line_number;
/* character appearing next in the file, may be EOF */
extern int nextchar;
extern const char *mpc_rnd_mode[];
static void
check_file (const char* file_name)
{
FILE *fp;
int tmp;
int base;
int inex_re;
int inex_im;
mpc_t expected, got;
mpc_rnd_t rnd = MPC_RNDNN;
int inex = 0, expected_inex;
size_t expected_size, size;
known_signs_t ks = {1, 1};
fp = open_data_file (file_name);
mpc_init2 (expected, 53);
mpc_init2 (got, 53);
/* read data file */
line_number = 1;
nextchar = getc (fp);
skip_whitespace_comments (fp);
while (nextchar != EOF)
{
/* 1. read a line of data: expected result, base, rounding mode */
read_ternary (fp, &inex_re);
read_ternary (fp, &inex_im);
read_mpc (fp, expected, &ks);
if (inex_re == TERNARY_ERROR || inex_im == TERNARY_ERROR)
expected_inex = -1;
else
expected_inex = MPC_INEX (inex_re, inex_im);
read_int (fp, &tmp, "size");
expected_size = (size_t)tmp;
read_int (fp, &base, "base");
read_mpc_rounding_mode (fp, &rnd);
/* 2. read string at the same precision as the expected result */
while (nextchar != '"')
nextchar = getc (fp);
mpfr_set_prec (mpc_realref (got), MPC_PREC_RE (expected));
mpfr_set_prec (mpc_imagref (got), MPC_PREC_IM (expected));
inex = mpc_inp_str (got, fp, &size, base, rnd);
/* 3. compare this result with the expected one */
if (inex != expected_inex || !same_mpc_value (got, expected, ks)
|| size != expected_size)
{
printf ("mpc_inp_str failed (line %lu) with rounding mode %s\n",
line_number, mpc_rnd_mode[rnd]);
if (inex != expected_inex)
printf(" got inexact value: %d\nexpected inexact value: %d\n",
inex, expected_inex);
if (size != expected_size)
printf (" got size: %lu\nexpected size: %lu\n ",
(unsigned long int) size, (unsigned long int) expected_size);
printf (" ");
MPC_OUT (got);
MPC_OUT (expected);
exit (1);
}
while ((nextchar = getc (fp)) != '"');
nextchar = getc (fp);
skip_whitespace_comments (fp);
}
mpc_clear (expected);
mpc_clear (got);
close_data_file (fp);
}
static void
check_io_str (mpc_ptr read_number, mpc_ptr expected)
{
char tmp_file[] = "mpc_test";
FILE *fp;
size_t sz;
if (!(fp = fopen (tmp_file, "w")))
{
printf ("Error: Could not open file %s in write mode\n", tmp_file);
exit (1);
}
mpc_out_str (fp, 10, 0, expected, MPC_RNDNN);
fclose (fp);
if (!(fp = fopen (tmp_file, "r")))
{
printf ("Error: Could not open file %s in read mode\n", tmp_file);
exit (1);
};
if (mpc_inp_str (read_number, fp, &sz, 10, MPC_RNDNN) == -1)
{
printf ("Error: mpc_inp_str cannot correctly re-read number "
"in file %s\n", tmp_file);
exit (1);
}
fclose (fp);
/* mpc_cmp set erange flag when an operand is a NaN */
mpfr_clear_flags ();
if (mpc_cmp (read_number, expected) != 0 || mpfr_erangeflag_p())
{
printf ("Error: inp_str o out_str <> Id\n");
MPC_OUT (read_number);
MPC_OUT (expected);
exit (1);
}
}
#ifndef MPC_NO_STREAM_REDIRECTION
/* test out_str with stream=NULL */
static void
check_stdout (mpc_ptr read_number, mpc_ptr expected)
{
char tmp_file[] = "mpc_test";
int fd;
size_t sz;
fflush (stdout);
fd = dup (STDOUT_FILENO);
if (freopen (tmp_file, "w", stdout) == NULL)
{
printf ("mpc_inp_str cannot redirect stdout\n");
exit (1);
}
mpc_out_str (NULL, 2, 0, expected, MPC_RNDNN);
fflush (stdout);
dup2 (fd, STDOUT_FILENO);
close (fd);
clearerr (stdout);
fflush (stdin);
fd = dup (STDIN_FILENO);
if (freopen (tmp_file, "r", stdin) == NULL)
{
printf ("mpc_inp_str cannot redirect stdout\n");
exit (1);
}
if (mpc_inp_str (read_number, NULL, &sz, 2, MPC_RNDNN) == -1)
{
printf ("mpc_inp_str cannot correctly re-read number "
"in file %s\n", tmp_file);
exit (1);
}
mpfr_clear_flags (); /* mpc_cmp set erange flag when an operand is
a NaN */
if (mpc_cmp (read_number, expected) != 0 || mpfr_erangeflag_p())
{
printf ("mpc_inp_str did not read the number which was written by "
"mpc_out_str\n");
MPC_OUT (read_number);
MPC_OUT (expected);
exit (1);
}
fflush (stdin);
dup2 (fd, STDIN_FILENO);
close (fd);
clearerr (stdin);
}
#endif /* MPC_NO_STREAM_REDIRECTION */
int
main (void)
{
mpc_t z, x;
mpfr_prec_t prec;
test_start ();
mpc_init2 (z, 1000);
mpc_init2 (x, 1000);
check_file ("inp_str.dat");
for (prec = 2; prec <= 1000; prec+=7)
{
mpc_set_prec (z, prec);
mpc_set_prec (x, prec);
mpc_set_si_si (x, 1, 1, MPC_RNDNN);
check_io_str (z, x);
mpc_set_si_si (x, -1, 1, MPC_RNDNN);
check_io_str (z, x);
mpfr_set_inf (mpc_realref(x), -1);
mpfr_set_inf (mpc_imagref(x), +1);
check_io_str (z, x);
test_default_random (x, -1024, 1024, 128, 25);
check_io_str (z, x);
}
#ifndef MPC_NO_STREAM_REDIRECTION
mpc_set_si_si (x, 1, -4, MPC_RNDNN);
mpc_div_ui (x, x, 3, MPC_RNDDU);
check_stdout(z, x);
#endif
mpc_clear (z);
mpc_clear (x);
test_end ();
return 0;
}
| Java |
br.test.GwtTestRunner.initialize();
describe("Dashboard App", function() {
fixtures("brjs.dashboard.app.testing.DashboardFixtureFactory");
it("displays the screens that are visible", function() {
given("dash.loaded = true");
and("dash.model.appsScreen.visible = true");
and("dash.model.appDetailScreen.visible = true");
and("dash.model.releaseNoteScreen.visible = true");
then("dash.view.(#appsScreen).isVisible = true");
and("dash.view.(#appDetailScreen).isVisible = true");
and("dash.view.(#releaseNoteScreen).isVisible = true");
});
it("hides the screens that are not visible", function() {
given("dash.loaded = true");
and("dash.model.appsScreen.visible = false");
and("dash.model.appDetailScreen.visible = false");
and("dash.model.releaseNoteScreen.visible = false");
then("dash.view.(#appsScreen).isVisible = false");
and("dash.view.(#appDetailScreen).isVisible = false");
and("dash.view.(#releaseNoteScreen).isVisible = false");
});
});
| Java |
//
// System.Drawing.Design.ToolboxService
//
// Authors:
// Sebastien Pouliot <[email protected]>
//
// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.ComponentModel.Design;
using System.Reflection;
using System.Windows.Forms;
namespace System.Drawing.Design {
public abstract class ToolboxService : IComponentDiscoveryService, IToolboxService {
[MonoTODO]
protected ToolboxService ()
{
throw new NotImplementedException ();
}
protected abstract CategoryNameCollection CategoryNames {
get;
}
protected abstract string SelectedCategory {
get;
set;
}
protected abstract ToolboxItemContainer SelectedItemContainer {
get;
set;
}
[MonoTODO]
protected virtual ToolboxItemContainer CreateItemContainer (IDataObject dataObject)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected virtual ToolboxItemContainer CreateItemContainer (ToolboxItem item, IDesignerHost link)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected virtual void FilterChanged ()
{
throw new NotImplementedException ();
}
protected abstract IList GetItemContainers ();
protected abstract IList GetItemContainers (string categoryName);
[MonoTODO]
protected virtual bool IsItemContainer (IDataObject dataObject, IDesignerHost host)
{
throw new NotImplementedException ();
}
[MonoTODO]
protected bool IsItemContainerSupported (ToolboxItemContainer container, IDesignerHost host)
{
throw new NotImplementedException ();
}
protected abstract void Refresh ();
[MonoTODO]
protected virtual void SelectedItemContainerUsed ()
{
throw new NotImplementedException ();
}
[MonoTODO]
protected virtual bool SetCursor ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public static void UnloadToolboxItems ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ToolboxItem GetToolboxItem (Type toolType)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ToolboxItem GetToolboxItem (Type toolType, bool nonPublic)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ICollection GetToolboxItems (AssemblyName an)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ICollection GetToolboxItems (AssemblyName an, bool throwOnError)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ICollection GetToolboxItems (Assembly a, string newCodeBase)
{
throw new NotImplementedException ();
}
[MonoTODO]
public static ICollection GetToolboxItems (Assembly a, string newCodeBase, bool throwOnError)
{
throw new NotImplementedException ();
}
// IComponentDiscoveryService
ICollection IComponentDiscoveryService.GetComponentTypes (IDesignerHost designerHost, Type baseType)
{
throw new NotImplementedException ();
}
// IToolboxService
CategoryNameCollection IToolboxService.CategoryNames {
get { throw new NotImplementedException (); }
}
string IToolboxService.SelectedCategory {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
void IToolboxService.AddCreator (ToolboxItemCreatorCallback creator, string format)
{
throw new NotImplementedException ();
}
void IToolboxService.AddCreator (ToolboxItemCreatorCallback creator, string format, IDesignerHost host)
{
throw new NotImplementedException ();
}
void IToolboxService.AddLinkedToolboxItem (ToolboxItem toolboxItem, IDesignerHost host)
{
throw new NotImplementedException ();
}
void IToolboxService.AddLinkedToolboxItem (ToolboxItem toolboxItem, string category, IDesignerHost host)
{
throw new NotImplementedException ();
}
void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem, String category)
{
throw new NotImplementedException ();
}
void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem)
{
throw new NotImplementedException ();
}
ToolboxItem IToolboxService.DeserializeToolboxItem (object serializedObject)
{
throw new NotImplementedException ();
}
ToolboxItem IToolboxService.DeserializeToolboxItem (object serializedObject, IDesignerHost host)
{
throw new NotImplementedException ();
}
ToolboxItem IToolboxService.GetSelectedToolboxItem ()
{
throw new NotImplementedException ();
}
ToolboxItem IToolboxService.GetSelectedToolboxItem (IDesignerHost host)
{
throw new NotImplementedException ();
}
ToolboxItemCollection IToolboxService.GetToolboxItems ()
{
throw new NotImplementedException ();
}
ToolboxItemCollection IToolboxService.GetToolboxItems (IDesignerHost host)
{
throw new NotImplementedException ();
}
ToolboxItemCollection IToolboxService.GetToolboxItems (String category)
{
throw new NotImplementedException ();
}
ToolboxItemCollection IToolboxService.GetToolboxItems (String category, IDesignerHost host)
{
throw new NotImplementedException ();
}
bool IToolboxService.IsSupported (object serializedObject, ICollection filterAttributes)
{
throw new NotImplementedException ();
}
bool IToolboxService.IsSupported (object serializedObject, IDesignerHost host)
{
throw new NotImplementedException ();
}
bool IToolboxService.IsToolboxItem (object serializedObject)
{
throw new NotImplementedException ();
}
bool IToolboxService.IsToolboxItem (object serializedObject, IDesignerHost host)
{
throw new NotImplementedException ();
}
void IToolboxService.Refresh ()
{
throw new NotImplementedException ();
}
void IToolboxService.RemoveCreator (string format)
{
throw new NotImplementedException ();
}
void IToolboxService.RemoveCreator (string format, IDesignerHost host)
{
throw new NotImplementedException ();
}
void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem)
{
throw new NotImplementedException ();
}
void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem, string category)
{
throw new NotImplementedException ();
}
void IToolboxService.SelectedToolboxItemUsed ()
{
throw new NotImplementedException ();
}
object IToolboxService.SerializeToolboxItem (ToolboxItem toolboxItem)
{
throw new NotImplementedException ();
}
bool IToolboxService.SetCursor ()
{
throw new NotImplementedException ();
}
void IToolboxService.SetSelectedToolboxItem (ToolboxItem toolboxItem)
{
throw new NotImplementedException ();
}
}
}
#endif
| Java |
<?php
/*
*
* ____ _ _ __ __ _ __ __ ____
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @author PocketMine Team
* @link http://www.pocketmine.net/
*
*
*/
declare(strict_types=1);
namespace pocketmine\item;
use pocketmine\block\Block;
use pocketmine\block\VanillaBlocks;
class Potato extends Food{
public function getBlock(?int $clickedFace = null) : Block{
return VanillaBlocks::POTATOES();
}
public function getFoodRestore() : int{
return 1;
}
public function getSaturationRestore() : float{
return 0.6;
}
}
| Java |
declare module org {
module kevoree {
module modeling {
class KActionType {
static CALL: KActionType;
static CALL_RESPONSE: KActionType;
static SET: KActionType;
static ADD: KActionType;
static REMOVE: KActionType;
static NEW: KActionType;
equals(other: any): boolean;
static _KActionTypeVALUES: KActionType[];
static values(): KActionType[];
}
interface KCallback<A> {
on(a: A): void;
}
class KConfig {
static TREE_CACHE_SIZE: number;
static CALLBACK_HISTORY: number;
static LONG_SIZE: number;
static PREFIX_SIZE: number;
static BEGINNING_OF_TIME: number;
static END_OF_TIME: number;
static NULL_LONG: number;
static KEY_PREFIX_MASK: number;
static KEY_SEP: string;
static KEY_SIZE: number;
static CACHE_INIT_SIZE: number;
static CACHE_LOAD_FACTOR: number;
}
class KContentKey {
universe: number;
time: number;
obj: number;
constructor(p_universeID: number, p_timeID: number, p_objID: number);
static createUniverseTree(p_objectID: number): org.kevoree.modeling.KContentKey;
static createTimeTree(p_universeID: number, p_objectID: number): org.kevoree.modeling.KContentKey;
static createObject(p_universeID: number, p_quantaID: number, p_objectID: number): org.kevoree.modeling.KContentKey;
static createGlobalUniverseTree(): org.kevoree.modeling.KContentKey;
static createRootUniverseTree(): org.kevoree.modeling.KContentKey;
static createRootTimeTree(universeID: number): org.kevoree.modeling.KContentKey;
static createLastPrefix(): org.kevoree.modeling.KContentKey;
static createLastObjectIndexFromPrefix(prefix: number): org.kevoree.modeling.KContentKey;
static createLastUniverseIndexFromPrefix(prefix: number): org.kevoree.modeling.KContentKey;
static create(payload: string): org.kevoree.modeling.KContentKey;
toString(): string;
equals(param: any): boolean;
}
interface KModel<A extends org.kevoree.modeling.KUniverse<any, any, any>> {
key(): number;
newUniverse(): A;
universe(key: number): A;
manager(): org.kevoree.modeling.memory.manager.KMemoryManager;
setContentDeliveryDriver(dataBase: org.kevoree.modeling.cdn.KContentDeliveryDriver): org.kevoree.modeling.KModel<any>;
setScheduler(scheduler: org.kevoree.modeling.scheduler.KScheduler): org.kevoree.modeling.KModel<any>;
setOperation(metaOperation: org.kevoree.modeling.meta.KMetaOperation, operation: (p: org.kevoree.modeling.KObject, p1: any[], p2: (p: any) => void) => void): void;
setInstanceOperation(metaOperation: org.kevoree.modeling.meta.KMetaOperation, target: org.kevoree.modeling.KObject, operation: (p: org.kevoree.modeling.KObject, p1: any[], p2: (p: any) => void) => void): void;
metaModel(): org.kevoree.modeling.meta.KMetaModel;
defer(): org.kevoree.modeling.defer.KDefer;
save(cb: (p: any) => void): void;
discard(cb: (p: any) => void): void;
connect(cb: (p: any) => void): void;
close(cb: (p: any) => void): void;
clearListenerGroup(groupID: number): void;
nextGroup(): number;
createByName(metaClassName: string, universe: number, time: number): org.kevoree.modeling.KObject;
create(clazz: org.kevoree.modeling.meta.KMetaClass, universe: number, time: number): org.kevoree.modeling.KObject;
}
interface KObject {
universe(): number;
now(): number;
uuid(): number;
delete(cb: (p: any) => void): void;
select(query: string, cb: (p: org.kevoree.modeling.KObject[]) => void): void;
listen(groupId: number, listener: (p: org.kevoree.modeling.KObject, p1: org.kevoree.modeling.meta.KMeta[]) => void): void;
visitAttributes(visitor: (p: org.kevoree.modeling.meta.KMetaAttribute, p1: any) => void): void;
visit(visitor: (p: org.kevoree.modeling.KObject) => org.kevoree.modeling.traversal.visitor.KVisitResult, cb: (p: any) => void): void;
timeWalker(): org.kevoree.modeling.KTimeWalker;
metaClass(): org.kevoree.modeling.meta.KMetaClass;
mutate(actionType: org.kevoree.modeling.KActionType, metaReference: org.kevoree.modeling.meta.KMetaReference, param: org.kevoree.modeling.KObject): void;
ref(metaReference: org.kevoree.modeling.meta.KMetaReference, cb: (p: org.kevoree.modeling.KObject[]) => void): void;
traversal(): org.kevoree.modeling.traversal.KTraversal;
get(attribute: org.kevoree.modeling.meta.KMetaAttribute): any;
getByName(atributeName: string): any;
set(attribute: org.kevoree.modeling.meta.KMetaAttribute, payload: any): void;
setByName(atributeName: string, payload: any): void;
toJSON(): string;
equals(other: any): boolean;
jump(time: number, callback: (p: org.kevoree.modeling.KObject) => void): void;
referencesWith(o: org.kevoree.modeling.KObject): org.kevoree.modeling.meta.KMetaReference[];
call(operation: org.kevoree.modeling.meta.KMetaOperation, params: any[], cb: (p: any) => void): void;
manager(): org.kevoree.modeling.memory.manager.KMemoryManager;
}
interface KTimeWalker {
allTimes(cb: (p: number[]) => void): void;
timesBefore(endOfSearch: number, cb: (p: number[]) => void): void;
timesAfter(beginningOfSearch: number, cb: (p: number[]) => void): void;
timesBetween(beginningOfSearch: number, endOfSearch: number, cb: (p: number[]) => void): void;
}
interface KType {
name(): string;
isEnum(): boolean;
}
interface KUniverse<A extends org.kevoree.modeling.KView, B extends org.kevoree.modeling.KUniverse<any, any, any>, C extends org.kevoree.modeling.KModel<any>> {
key(): number;
time(timePoint: number): A;
model(): C;
equals(other: any): boolean;
diverge(): B;
origin(): B;
descendants(): java.util.List<B>;
delete(cb: (p: any) => void): void;
lookupAllTimes(uuid: number, times: number[], cb: (p: org.kevoree.modeling.KObject[]) => void): void;
listenAll(groupId: number, objects: number[], multiListener: (p: org.kevoree.modeling.KObject[]) => void): void;
}
interface KView {
createByName(metaClassName: string): org.kevoree.modeling.KObject;
create(clazz: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.KObject;
select(query: string, cb: (p: org.kevoree.modeling.KObject[]) => void): void;
lookup(key: number, cb: (p: org.kevoree.modeling.KObject) => void): void;
lookupAll(keys: number[], cb: (p: org.kevoree.modeling.KObject[]) => void): void;
universe(): number;
now(): number;
json(): org.kevoree.modeling.format.KModelFormat;
xmi(): org.kevoree.modeling.format.KModelFormat;
equals(other: any): boolean;
setRoot(elem: org.kevoree.modeling.KObject, cb: (p: any) => void): void;
getRoot(cb: (p: org.kevoree.modeling.KObject) => void): void;
}
module abs {
class AbstractDataType implements org.kevoree.modeling.KType {
private _name;
private _isEnum;
constructor(p_name: string, p_isEnum: boolean);
name(): string;
isEnum(): boolean;
}
class AbstractKModel<A extends org.kevoree.modeling.KUniverse<any, any, any>> implements org.kevoree.modeling.KModel<any> {
_manager: org.kevoree.modeling.memory.manager.KMemoryManager;
private _key;
constructor();
metaModel(): org.kevoree.modeling.meta.KMetaModel;
connect(cb: (p: any) => void): void;
close(cb: (p: any) => void): void;
manager(): org.kevoree.modeling.memory.manager.KMemoryManager;
newUniverse(): A;
internalCreateUniverse(universe: number): A;
internalCreateObject(universe: number, time: number, uuid: number, clazz: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.KObject;
createProxy(universe: number, time: number, uuid: number, clazz: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.KObject;
universe(key: number): A;
save(cb: (p: any) => void): void;
discard(cb: (p: any) => void): void;
setContentDeliveryDriver(p_driver: org.kevoree.modeling.cdn.KContentDeliveryDriver): org.kevoree.modeling.KModel<any>;
setScheduler(p_scheduler: org.kevoree.modeling.scheduler.KScheduler): org.kevoree.modeling.KModel<any>;
setOperation(metaOperation: org.kevoree.modeling.meta.KMetaOperation, operation: (p: org.kevoree.modeling.KObject, p1: any[], p2: (p: any) => void) => void): void;
setInstanceOperation(metaOperation: org.kevoree.modeling.meta.KMetaOperation, target: org.kevoree.modeling.KObject, operation: (p: org.kevoree.modeling.KObject, p1: any[], p2: (p: any) => void) => void): void;
defer(): org.kevoree.modeling.defer.KDefer;
key(): number;
clearListenerGroup(groupID: number): void;
nextGroup(): number;
create(clazz: org.kevoree.modeling.meta.KMetaClass, universe: number, time: number): org.kevoree.modeling.KObject;
createByName(metaClassName: string, universe: number, time: number): org.kevoree.modeling.KObject;
}
class AbstractKObject implements org.kevoree.modeling.KObject {
_uuid: number;
_time: number;
_universe: number;
private _metaClass;
_manager: org.kevoree.modeling.memory.manager.KMemoryManager;
private static OUT_OF_CACHE_MSG;
constructor(p_universe: number, p_time: number, p_uuid: number, p_metaClass: org.kevoree.modeling.meta.KMetaClass, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
uuid(): number;
metaClass(): org.kevoree.modeling.meta.KMetaClass;
now(): number;
universe(): number;
timeWalker(): org.kevoree.modeling.KTimeWalker;
delete(cb: (p: any) => void): void;
select(query: string, cb: (p: org.kevoree.modeling.KObject[]) => void): void;
listen(groupId: number, listener: (p: org.kevoree.modeling.KObject, p1: org.kevoree.modeling.meta.KMeta[]) => void): void;
get(p_attribute: org.kevoree.modeling.meta.KMetaAttribute): any;
getByName(atributeName: string): any;
set(p_attribute: org.kevoree.modeling.meta.KMetaAttribute, payload: any): void;
setByName(atributeName: string, payload: any): void;
mutate(actionType: org.kevoree.modeling.KActionType, metaReference: org.kevoree.modeling.meta.KMetaReference, param: org.kevoree.modeling.KObject): void;
internal_mutate(actionType: org.kevoree.modeling.KActionType, metaReferenceP: org.kevoree.modeling.meta.KMetaReference, param: org.kevoree.modeling.KObject, setOpposite: boolean): void;
size(p_metaReference: org.kevoree.modeling.meta.KMetaReference): number;
ref(p_metaReference: org.kevoree.modeling.meta.KMetaReference, cb: (p: org.kevoree.modeling.KObject[]) => void): void;
visitAttributes(visitor: (p: org.kevoree.modeling.meta.KMetaAttribute, p1: any) => void): void;
visit(p_visitor: (p: org.kevoree.modeling.KObject) => org.kevoree.modeling.traversal.visitor.KVisitResult, cb: (p: any) => void): void;
private internal_visit(visitor, end, visited, traversed);
toJSON(): string;
toString(): string;
equals(obj: any): boolean;
hashCode(): number;
jump(p_time: number, p_callback: (p: org.kevoree.modeling.KObject) => void): void;
internal_transpose_ref(p: org.kevoree.modeling.meta.KMetaReference): org.kevoree.modeling.meta.KMetaReference;
internal_transpose_att(p: org.kevoree.modeling.meta.KMetaAttribute): org.kevoree.modeling.meta.KMetaAttribute;
internal_transpose_op(p: org.kevoree.modeling.meta.KMetaOperation): org.kevoree.modeling.meta.KMetaOperation;
traversal(): org.kevoree.modeling.traversal.KTraversal;
referencesWith(o: org.kevoree.modeling.KObject): org.kevoree.modeling.meta.KMetaReference[];
call(p_operation: org.kevoree.modeling.meta.KMetaOperation, p_params: any[], cb: (p: any) => void): void;
manager(): org.kevoree.modeling.memory.manager.KMemoryManager;
}
class AbstractKUniverse<A extends org.kevoree.modeling.KView, B extends org.kevoree.modeling.KUniverse<any, any, any>, C extends org.kevoree.modeling.KModel<any>> implements org.kevoree.modeling.KUniverse<any, any, any> {
_universe: number;
_manager: org.kevoree.modeling.memory.manager.KMemoryManager;
constructor(p_key: number, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
key(): number;
model(): C;
delete(cb: (p: any) => void): void;
time(timePoint: number): A;
internal_create(timePoint: number): A;
equals(obj: any): boolean;
origin(): B;
diverge(): B;
descendants(): java.util.List<B>;
lookupAllTimes(uuid: number, times: number[], cb: (p: org.kevoree.modeling.KObject[]) => void): void;
listenAll(groupId: number, objects: number[], multiListener: (p: org.kevoree.modeling.KObject[]) => void): void;
}
class AbstractKView implements org.kevoree.modeling.KView {
_time: number;
_universe: number;
_manager: org.kevoree.modeling.memory.manager.KMemoryManager;
constructor(p_universe: number, _time: number, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
now(): number;
universe(): number;
setRoot(elem: org.kevoree.modeling.KObject, cb: (p: any) => void): void;
getRoot(cb: (p: any) => void): void;
select(query: string, cb: (p: org.kevoree.modeling.KObject[]) => void): void;
lookup(kid: number, cb: (p: org.kevoree.modeling.KObject) => void): void;
lookupAll(keys: number[], cb: (p: org.kevoree.modeling.KObject[]) => void): void;
create(clazz: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.KObject;
createByName(metaClassName: string): org.kevoree.modeling.KObject;
json(): org.kevoree.modeling.format.KModelFormat;
xmi(): org.kevoree.modeling.format.KModelFormat;
equals(obj: any): boolean;
}
class AbstractTimeWalker implements org.kevoree.modeling.KTimeWalker {
private _origin;
constructor(p_origin: org.kevoree.modeling.abs.AbstractKObject);
private internal_times(start, end, cb);
allTimes(cb: (p: number[]) => void): void;
timesBefore(endOfSearch: number, cb: (p: number[]) => void): void;
timesAfter(beginningOfSearch: number, cb: (p: number[]) => void): void;
timesBetween(beginningOfSearch: number, endOfSearch: number, cb: (p: number[]) => void): void;
}
interface KLazyResolver {
meta(): org.kevoree.modeling.meta.KMeta;
}
}
module cdn {
interface KContentDeliveryDriver {
get(keys: org.kevoree.modeling.KContentKey[], callback: (p: string[]) => void): void;
atomicGetIncrement(key: org.kevoree.modeling.KContentKey, cb: (p: number) => void): void;
put(request: org.kevoree.modeling.cdn.KContentPutRequest, error: (p: java.lang.Throwable) => void): void;
remove(keys: string[], error: (p: java.lang.Throwable) => void): void;
connect(callback: (p: java.lang.Throwable) => void): void;
close(callback: (p: java.lang.Throwable) => void): void;
registerListener(groupId: number, origin: org.kevoree.modeling.KObject, listener: (p: org.kevoree.modeling.KObject, p1: org.kevoree.modeling.meta.KMeta[]) => void): void;
registerMultiListener(groupId: number, origin: org.kevoree.modeling.KUniverse<any, any, any>, objects: number[], listener: (p: org.kevoree.modeling.KObject[]) => void): void;
unregisterGroup(groupId: number): void;
send(msgs: org.kevoree.modeling.message.KMessage): void;
setManager(manager: org.kevoree.modeling.memory.manager.KMemoryManager): void;
}
interface KContentPutRequest {
put(p_key: org.kevoree.modeling.KContentKey, p_payload: string): void;
getKey(index: number): org.kevoree.modeling.KContentKey;
getContent(index: number): string;
size(): number;
}
module impl {
class ContentPutRequest implements org.kevoree.modeling.cdn.KContentPutRequest {
private _content;
private static KEY_INDEX;
private static CONTENT_INDEX;
private static SIZE_INDEX;
private _size;
constructor(requestSize: number);
put(p_key: org.kevoree.modeling.KContentKey, p_payload: string): void;
getKey(index: number): org.kevoree.modeling.KContentKey;
getContent(index: number): string;
size(): number;
}
class MemoryContentDeliveryDriver implements org.kevoree.modeling.cdn.KContentDeliveryDriver {
private backend;
private _localEventListeners;
static DEBUG: boolean;
atomicGetIncrement(key: org.kevoree.modeling.KContentKey, cb: (p: number) => void): void;
get(keys: org.kevoree.modeling.KContentKey[], callback: (p: string[]) => void): void;
put(p_request: org.kevoree.modeling.cdn.KContentPutRequest, p_callback: (p: java.lang.Throwable) => void): void;
remove(keys: string[], callback: (p: java.lang.Throwable) => void): void;
connect(callback: (p: java.lang.Throwable) => void): void;
close(callback: (p: java.lang.Throwable) => void): void;
registerListener(groupId: number, p_origin: org.kevoree.modeling.KObject, p_listener: (p: org.kevoree.modeling.KObject, p1: org.kevoree.modeling.meta.KMeta[]) => void): void;
unregisterGroup(groupId: number): void;
registerMultiListener(groupId: number, origin: org.kevoree.modeling.KUniverse<any, any, any>, objects: number[], listener: (p: org.kevoree.modeling.KObject[]) => void): void;
send(msgs: org.kevoree.modeling.message.KMessage): void;
setManager(manager: org.kevoree.modeling.memory.manager.KMemoryManager): void;
}
}
}
module defer {
interface KDefer {
wait(resultName: string): (p: any) => void;
waitDefer(previous: org.kevoree.modeling.defer.KDefer): org.kevoree.modeling.defer.KDefer;
isDone(): boolean;
getResult(resultName: string): any;
then(cb: (p: any) => void): void;
next(): org.kevoree.modeling.defer.KDefer;
}
module impl {
class Defer implements org.kevoree.modeling.defer.KDefer {
private _isDone;
_isReady: boolean;
private _nbRecResult;
private _nbExpectedResult;
private _nextTasks;
private _results;
private _thenCB;
constructor();
setDoneOrRegister(next: org.kevoree.modeling.defer.KDefer): boolean;
equals(obj: any): boolean;
private informParentEnd(end);
waitDefer(p_previous: org.kevoree.modeling.defer.KDefer): org.kevoree.modeling.defer.KDefer;
next(): org.kevoree.modeling.defer.KDefer;
wait(resultName: string): (p: any) => void;
isDone(): boolean;
getResult(resultName: string): any;
then(cb: (p: any) => void): void;
}
}
}
module event {
interface KEventListener {
on(src: org.kevoree.modeling.KObject, modifications: org.kevoree.modeling.meta.KMeta[]): void;
}
interface KEventMultiListener {
on(objects: org.kevoree.modeling.KObject[]): void;
}
module impl {
class LocalEventListeners {
private _manager;
private _internalListenerKeyGen;
private _simpleListener;
private _multiListener;
private _listener2Object;
private _listener2Objects;
private _obj2Listener;
private _group2Listener;
constructor();
registerListener(groupId: number, origin: org.kevoree.modeling.KObject, listener: (p: org.kevoree.modeling.KObject, p1: org.kevoree.modeling.meta.KMeta[]) => void): void;
registerListenerAll(groupId: number, universe: number, objects: number[], listener: (p: org.kevoree.modeling.KObject[]) => void): void;
unregister(groupId: number): void;
clear(): void;
setManager(manager: org.kevoree.modeling.memory.manager.KMemoryManager): void;
dispatch(param: org.kevoree.modeling.message.KMessage): void;
}
}
}
module extrapolation {
interface Extrapolation {
extrapolate(current: org.kevoree.modeling.KObject, attribute: org.kevoree.modeling.meta.KMetaAttribute): any;
mutate(current: org.kevoree.modeling.KObject, attribute: org.kevoree.modeling.meta.KMetaAttribute, payload: any): void;
}
module impl {
class DiscreteExtrapolation implements org.kevoree.modeling.extrapolation.Extrapolation {
private static INSTANCE;
static instance(): org.kevoree.modeling.extrapolation.Extrapolation;
extrapolate(current: org.kevoree.modeling.KObject, attribute: org.kevoree.modeling.meta.KMetaAttribute): any;
mutate(current: org.kevoree.modeling.KObject, attribute: org.kevoree.modeling.meta.KMetaAttribute, payload: any): void;
}
class PolynomialExtrapolation implements org.kevoree.modeling.extrapolation.Extrapolation {
private static _maxDegree;
private static DEGREE;
private static NUMSAMPLES;
private static STEP;
private static LASTTIME;
private static WEIGHTS;
private static INSTANCE;
extrapolate(current: org.kevoree.modeling.KObject, attribute: org.kevoree.modeling.meta.KMetaAttribute): any;
private extrapolateValue(segment, meta, index, time, timeOrigin);
private maxErr(precision, degree);
insert(time: number, value: number, timeOrigin: number, raw: org.kevoree.modeling.memory.struct.segment.KMemorySegment, index: number, precision: number, metaClass: org.kevoree.modeling.meta.KMetaClass): boolean;
private tempError(computedWeights, times, values);
private test_extrapolate(time, weights);
private internal_extrapolate(t, raw, index, metaClass);
private initial_feed(time, value, raw, index, metaClass);
mutate(current: org.kevoree.modeling.KObject, attribute: org.kevoree.modeling.meta.KMetaAttribute, payload: any): void;
private castNumber(payload);
static instance(): org.kevoree.modeling.extrapolation.Extrapolation;
}
module maths {
class AdjLinearSolverQr {
numRows: number;
numCols: number;
private decomposer;
maxRows: number;
maxCols: number;
Q: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
R: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
private Y;
private Z;
setA(A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): boolean;
private solveU(U, b, n);
solve(B: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, X: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
constructor();
setMaxSize(maxRows: number, maxCols: number): void;
}
class DenseMatrix64F {
numRows: number;
numCols: number;
data: number[];
static MULT_COLUMN_SWITCH: number;
static multTransA_smallMV(A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, B: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, C: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
static multTransA_reorderMV(A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, B: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, C: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
static multTransA_reorderMM(a: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, b: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, c: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
static multTransA_smallMM(a: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, b: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, c: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
static multTransA(a: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, b: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, c: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
static setIdentity(mat: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
static widentity(width: number): org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
static identity(numRows: number, numCols: number): org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
static fill(a: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, value: number): void;
get(index: number): number;
set(index: number, val: number): number;
plus(index: number, val: number): number;
constructor(numRows: number, numCols: number);
reshape(numRows: number, numCols: number, saveValues: boolean): void;
cset(row: number, col: number, value: number): void;
unsafe_get(row: number, col: number): number;
getNumElements(): number;
}
class PolynomialFitEjml {
A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
coef: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
y: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
solver: org.kevoree.modeling.extrapolation.impl.maths.AdjLinearSolverQr;
constructor(degree: number);
getCoef(): number[];
fit(samplePoints: number[], observations: number[]): void;
}
class QRDecompositionHouseholderColumn_D64 {
dataQR: number[][];
v: number[];
numCols: number;
numRows: number;
minLength: number;
gammas: number[];
gamma: number;
tau: number;
error: boolean;
setExpectedMaxSize(numRows: number, numCols: number): void;
getQ(Q: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, compact: boolean): org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
getR(R: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, compact: boolean): org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F;
decompose(A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): boolean;
convertToColumnMajor(A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F): void;
householder(j: number): void;
updateA(w: number): void;
static findMax(u: number[], startU: number, length: number): number;
static divideElements(j: number, numRows: number, u: number[], u_0: number): void;
static computeTauAndDivide(j: number, numRows: number, u: number[], max: number): number;
static rank1UpdateMultR(A: org.kevoree.modeling.extrapolation.impl.maths.DenseMatrix64F, u: number[], gamma: number, colA0: number, w0: number, w1: number, _temp: number[]): void;
}
}
}
}
module format {
interface KModelFormat {
save(model: org.kevoree.modeling.KObject, cb: (p: string) => void): void;
saveRoot(cb: (p: string) => void): void;
load(payload: string, cb: (p: any) => void): void;
}
module json {
class JsonFormat implements org.kevoree.modeling.format.KModelFormat {
static KEY_META: string;
static KEY_UUID: string;
static KEY_ROOT: string;
private _manager;
private _universe;
private _time;
private static NULL_PARAM_MSG;
constructor(p_universe: number, p_time: number, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
save(model: org.kevoree.modeling.KObject, cb: (p: string) => void): void;
saveRoot(cb: (p: string) => void): void;
load(payload: string, cb: (p: any) => void): void;
}
class JsonModelLoader {
static load(manager: org.kevoree.modeling.memory.manager.KMemoryManager, universe: number, time: number, payload: string, callback: (p: java.lang.Throwable) => void): void;
private static loadObj(p_param, manager, universe, time, p_mappedKeys, p_rootElem);
private static transposeArr(plainRawSet, p_mappedKeys);
}
class JsonModelSerializer {
static serialize(model: org.kevoree.modeling.KObject, callback: (p: string) => void): void;
static printJSON(elem: org.kevoree.modeling.KObject, builder: java.lang.StringBuilder, isRoot: boolean): void;
}
class JsonObjectReader {
private readObject;
parseObject(payload: string): void;
get(name: string): any;
getAsStringArray(name: string): string[];
keys(): string[];
}
class JsonRaw {
static encode(raw: org.kevoree.modeling.memory.struct.segment.KMemorySegment, uuid: number, p_metaClass: org.kevoree.modeling.meta.KMetaClass, isRoot: boolean): string;
}
class JsonString {
private static ESCAPE_CHAR;
static encodeBuffer(buffer: java.lang.StringBuilder, chain: string): void;
static encode(p_chain: string): string;
static unescape(p_src: string): string;
}
}
module xmi {
class SerializationContext {
ignoreGeneratedID: boolean;
model: org.kevoree.modeling.KObject;
finishCallback: (p: string) => void;
printer: java.lang.StringBuilder;
attributesVisitor: (p: org.kevoree.modeling.meta.KMetaAttribute, p1: any) => void;
addressTable: org.kevoree.modeling.memory.struct.map.impl.ArrayLongMap<any>;
elementsCount: org.kevoree.modeling.memory.struct.map.impl.ArrayStringMap<any>;
packageList: java.util.ArrayList<string>;
}
class XMILoadingContext {
xmiReader: org.kevoree.modeling.format.xmi.XmlParser;
loadedRoots: org.kevoree.modeling.KObject;
resolvers: java.util.ArrayList<org.kevoree.modeling.format.xmi.XMIResolveCommand>;
map: org.kevoree.modeling.memory.struct.map.impl.ArrayStringMap<any>;
elementsCount: org.kevoree.modeling.memory.struct.map.impl.ArrayStringMap<any>;
successCallback: (p: java.lang.Throwable) => void;
}
class XMIModelLoader {
static LOADER_XMI_LOCAL_NAME: string;
static LOADER_XMI_XSI: string;
static LOADER_XMI_NS_URI: string;
static unescapeXml(src: string): string;
static load(manager: org.kevoree.modeling.memory.manager.KMemoryManager, universe: number, time: number, str: string, callback: (p: java.lang.Throwable) => void): void;
private static deserialize(manager, universe, time, context);
private static callFactory(manager, universe, time, ctx, objectType);
private static loadObject(manager, universe, time, ctx, xmiAddress, objectType);
}
class XMIModelSerializer {
static save(model: org.kevoree.modeling.KObject, callback: (p: string) => void): void;
}
class XMIResolveCommand {
private context;
private target;
private mutatorType;
private refName;
private ref;
constructor(context: org.kevoree.modeling.format.xmi.XMILoadingContext, target: org.kevoree.modeling.KObject, mutatorType: org.kevoree.modeling.KActionType, refName: string, ref: string);
run(): void;
}
class XmiFormat implements org.kevoree.modeling.format.KModelFormat {
private _manager;
private _universe;
private _time;
constructor(p_universe: number, p_time: number, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
save(model: org.kevoree.modeling.KObject, cb: (p: string) => void): void;
saveRoot(cb: (p: string) => void): void;
load(payload: string, cb: (p: any) => void): void;
}
class XmlParser {
private payload;
private current;
private currentChar;
private tagName;
private tagPrefix;
private attributePrefix;
private readSingleton;
private attributesNames;
private attributesPrefixes;
private attributesValues;
private attributeName;
private attributeValue;
constructor(str: string);
getTagPrefix(): string;
hasNext(): boolean;
getLocalName(): string;
getAttributeCount(): number;
getAttributeLocalName(i: number): string;
getAttributePrefix(i: number): string;
getAttributeValue(i: number): string;
private readChar();
next(): org.kevoree.modeling.format.xmi.XmlToken;
private read_lessThan();
private read_upperThan();
private read_xmlHeader();
private read_closingTag();
private read_openTag();
private read_tagName();
private read_attributes();
}
class XmlToken {
static XML_HEADER: XmlToken;
static END_DOCUMENT: XmlToken;
static START_TAG: XmlToken;
static END_TAG: XmlToken;
static COMMENT: XmlToken;
static SINGLETON_TAG: XmlToken;
equals(other: any): boolean;
static _XmlTokenVALUES: XmlToken[];
static values(): XmlToken[];
}
}
}
module infer {
class AnalyticKInfer {
}
class GaussianClassificationKInfer {
private alpha;
getAlpha(): number;
setAlpha(alpha: number): void;
}
interface KInfer extends org.kevoree.modeling.KObject {
train(trainingSet: any[][], expectedResultSet: any[], callback: (p: java.lang.Throwable) => void): void;
infer(features: any[]): any;
accuracy(testSet: any[][], expectedResultSet: any[]): any;
clear(): void;
}
class KInferState {
save(): string;
load(payload: string): void;
isDirty(): boolean;
cloneState(): org.kevoree.modeling.infer.KInferState;
}
class LinearRegressionKInfer {
private alpha;
private iterations;
getAlpha(): number;
setAlpha(alpha: number): void;
getIterations(): number;
setIterations(iterations: number): void;
private calculate(weights, features);
}
class PerceptronClassificationKInfer {
private alpha;
private iterations;
getAlpha(): number;
setAlpha(alpha: number): void;
getIterations(): number;
setIterations(iterations: number): void;
private calculate(weights, features);
}
class PolynomialOfflineKInfer {
maxDegree: number;
toleratedErr: number;
getToleratedErr(): number;
setToleratedErr(toleratedErr: number): void;
getMaxDegree(): number;
setMaxDegree(maxDegree: number): void;
}
class PolynomialOnlineKInfer {
maxDegree: number;
toleratedErr: number;
getToleratedErr(): number;
setToleratedErr(toleratedErr: number): void;
getMaxDegree(): number;
setMaxDegree(maxDegree: number): void;
private calculateLong(time, weights, timeOrigin, unit);
private calculate(weights, t);
}
class WinnowClassificationKInfer {
private alpha;
private beta;
getAlpha(): number;
setAlpha(alpha: number): void;
getBeta(): number;
setBeta(beta: number): void;
private calculate(weights, features);
}
module states {
class AnalyticKInferState extends org.kevoree.modeling.infer.KInferState {
private _isDirty;
private sumSquares;
private sum;
private nb;
private min;
private max;
getSumSquares(): number;
setSumSquares(sumSquares: number): void;
getMin(): number;
setMin(min: number): void;
getMax(): number;
setMax(max: number): void;
getNb(): number;
setNb(nb: number): void;
getSum(): number;
setSum(sum: number): void;
getAverage(): number;
train(value: number): void;
getVariance(): number;
clear(): void;
save(): string;
load(payload: string): void;
isDirty(): boolean;
cloneState(): org.kevoree.modeling.infer.KInferState;
}
class BayesianClassificationState extends org.kevoree.modeling.infer.KInferState {
private states;
private classStats;
private numOfFeatures;
private numOfClasses;
private static stateSep;
private static interStateSep;
initialize(metaFeatures: any[], MetaClassification: any): void;
predict(features: any[]): number;
train(features: any[], classNum: number): void;
save(): string;
load(payload: string): void;
isDirty(): boolean;
cloneState(): org.kevoree.modeling.infer.KInferState;
}
class DoubleArrayKInferState extends org.kevoree.modeling.infer.KInferState {
private _isDirty;
private weights;
save(): string;
load(payload: string): void;
isDirty(): boolean;
set_isDirty(value: boolean): void;
cloneState(): org.kevoree.modeling.infer.KInferState;
getWeights(): number[];
setWeights(weights: number[]): void;
}
class GaussianArrayKInferState extends org.kevoree.modeling.infer.KInferState {
private _isDirty;
private sumSquares;
private sum;
private epsilon;
private nb;
getSumSquares(): number[];
setSumSquares(sumSquares: number[]): void;
getNb(): number;
setNb(nb: number): void;
getSum(): number[];
setSum(sum: number[]): void;
calculateProbability(features: number[]): number;
infer(features: number[]): boolean;
getAverage(): number[];
train(features: number[], result: boolean, alpha: number): void;
getVariance(): number[];
clear(): void;
save(): string;
load(payload: string): void;
isDirty(): boolean;
cloneState(): org.kevoree.modeling.infer.KInferState;
getEpsilon(): number;
}
class PolynomialKInferState extends org.kevoree.modeling.infer.KInferState {
private _isDirty;
private timeOrigin;
private unit;
private weights;
getTimeOrigin(): number;
setTimeOrigin(timeOrigin: number): void;
is_isDirty(): boolean;
getUnit(): number;
setUnit(unit: number): void;
static maxError(coef: number[], normalizedTimes: number[], results: number[]): number;
private static internal_extrapolate(normalizedTime, coef);
save(): string;
load(payload: string): void;
isDirty(): boolean;
set_isDirty(value: boolean): void;
cloneState(): org.kevoree.modeling.infer.KInferState;
getWeights(): number[];
setWeights(weights: number[]): void;
infer(time: number): any;
}
module Bayesian {
class BayesianSubstate {
calculateProbability(feature: any): number;
train(feature: any): void;
save(separator: string): string;
load(payload: string, separator: string): void;
cloneState(): org.kevoree.modeling.infer.states.Bayesian.BayesianSubstate;
}
class EnumSubstate extends org.kevoree.modeling.infer.states.Bayesian.BayesianSubstate {
private counter;
private total;
getCounter(): number[];
setCounter(counter: number[]): void;
getTotal(): number;
setTotal(total: number): void;
initialize(number: number): void;
calculateProbability(feature: any): number;
train(feature: any): void;
save(separator: string): string;
load(payload: string, separator: string): void;
cloneState(): org.kevoree.modeling.infer.states.Bayesian.BayesianSubstate;
}
class GaussianSubState extends org.kevoree.modeling.infer.states.Bayesian.BayesianSubstate {
private sumSquares;
private sum;
private nb;
getSumSquares(): number;
setSumSquares(sumSquares: number): void;
getNb(): number;
setNb(nb: number): void;
getSum(): number;
setSum(sum: number): void;
calculateProbability(feature: any): number;
getAverage(): number;
train(feature: any): void;
getVariance(): number;
clear(): void;
save(separator: string): string;
load(payload: string, separator: string): void;
cloneState(): org.kevoree.modeling.infer.states.Bayesian.BayesianSubstate;
}
}
}
}
module memory {
interface KMemoryElement {
isDirty(): boolean;
setClean(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
setDirty(): void;
serialize(metaModel: org.kevoree.modeling.meta.KMetaModel): string;
init(payload: string, metaModel: org.kevoree.modeling.meta.KMetaModel): void;
counter(): number;
inc(): void;
dec(): void;
free(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
}
interface KMemoryFactory {
newCacheSegment(): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
newLongTree(): org.kevoree.modeling.memory.struct.tree.KLongTree;
newLongLongTree(): org.kevoree.modeling.memory.struct.tree.KLongLongTree;
newUniverseMap(initSize: number, className: string): org.kevoree.modeling.memory.struct.map.KUniverseOrderMap;
newFromKey(universe: number, time: number, uuid: number): org.kevoree.modeling.memory.KMemoryElement;
}
module cache {
interface KCache {
get(universe: number, time: number, obj: number): org.kevoree.modeling.memory.KMemoryElement;
put(universe: number, time: number, obj: number, payload: org.kevoree.modeling.memory.KMemoryElement): void;
dirties(): org.kevoree.modeling.memory.cache.impl.KCacheDirty[];
clear(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
clean(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
monitor(origin: org.kevoree.modeling.KObject): void;
size(): number;
}
module impl {
class HashMemoryCache implements org.kevoree.modeling.memory.cache.KCache {
private elementData;
private elementCount;
private elementDataSize;
private loadFactor;
private initalCapacity;
private threshold;
get(universe: number, time: number, obj: number): org.kevoree.modeling.memory.KMemoryElement;
put(universe: number, time: number, obj: number, payload: org.kevoree.modeling.memory.KMemoryElement): void;
private complex_insert(previousIndex, hash, universe, time, obj);
dirties(): org.kevoree.modeling.memory.cache.impl.KCacheDirty[];
clean(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
monitor(origin: org.kevoree.modeling.KObject): void;
size(): number;
private remove(universe, time, obj, p_metaModel);
constructor();
clear(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
}
module HashMemoryCache {
class Entry {
next: org.kevoree.modeling.memory.cache.impl.HashMemoryCache.Entry;
universe: number;
time: number;
obj: number;
value: org.kevoree.modeling.memory.KMemoryElement;
}
}
class KCacheDirty {
key: org.kevoree.modeling.KContentKey;
object: org.kevoree.modeling.memory.KMemoryElement;
constructor(key: org.kevoree.modeling.KContentKey, object: org.kevoree.modeling.memory.KMemoryElement);
}
}
}
module manager {
class AccessMode {
static RESOLVE: AccessMode;
static NEW: AccessMode;
static DELETE: AccessMode;
equals(other: any): boolean;
static _AccessModeVALUES: AccessMode[];
static values(): AccessMode[];
}
interface KMemoryManager {
cdn(): org.kevoree.modeling.cdn.KContentDeliveryDriver;
model(): org.kevoree.modeling.KModel<any>;
cache(): org.kevoree.modeling.memory.cache.KCache;
lookup(universe: number, time: number, uuid: number, callback: (p: org.kevoree.modeling.KObject) => void): void;
lookupAllobjects(universe: number, time: number, uuid: number[], callback: (p: org.kevoree.modeling.KObject[]) => void): void;
lookupAlltimes(universe: number, time: number[], uuid: number, callback: (p: org.kevoree.modeling.KObject[]) => void): void;
segment(universe: number, time: number, uuid: number, accessMode: org.kevoree.modeling.memory.manager.AccessMode, metaClass: org.kevoree.modeling.meta.KMetaClass, resolutionTrace: org.kevoree.modeling.memory.manager.KMemorySegmentResolutionTrace): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
save(callback: (p: java.lang.Throwable) => void): void;
discard(universe: org.kevoree.modeling.KUniverse<any, any, any>, callback: (p: java.lang.Throwable) => void): void;
delete(universe: org.kevoree.modeling.KUniverse<any, any, any>, callback: (p: java.lang.Throwable) => void): void;
initKObject(obj: org.kevoree.modeling.KObject): void;
initUniverse(universe: org.kevoree.modeling.KUniverse<any, any, any>, parent: org.kevoree.modeling.KUniverse<any, any, any>): void;
nextUniverseKey(): number;
nextObjectKey(): number;
nextModelKey(): number;
nextGroupKey(): number;
getRoot(universe: number, time: number, callback: (p: org.kevoree.modeling.KObject) => void): void;
setRoot(newRoot: org.kevoree.modeling.KObject, callback: (p: java.lang.Throwable) => void): void;
setContentDeliveryDriver(driver: org.kevoree.modeling.cdn.KContentDeliveryDriver): void;
setScheduler(scheduler: org.kevoree.modeling.scheduler.KScheduler): void;
operationManager(): org.kevoree.modeling.operation.KOperationManager;
connect(callback: (p: java.lang.Throwable) => void): void;
close(callback: (p: java.lang.Throwable) => void): void;
parentUniverseKey(currentUniverseKey: number): number;
descendantsUniverseKeys(currentUniverseKey: number): number[];
reload(keys: org.kevoree.modeling.KContentKey[], callback: (p: java.lang.Throwable) => void): void;
cleanCache(): void;
setFactory(factory: org.kevoree.modeling.memory.KMemoryFactory): void;
}
interface KMemorySegmentResolutionTrace {
getUniverse(): number;
setUniverse(universe: number): void;
getTime(): number;
setTime(time: number): void;
getUniverseTree(): org.kevoree.modeling.memory.struct.map.KUniverseOrderMap;
setUniverseOrder(orderMap: org.kevoree.modeling.memory.struct.map.KUniverseOrderMap): void;
getTimeTree(): org.kevoree.modeling.memory.struct.tree.KLongTree;
setTimeTree(tree: org.kevoree.modeling.memory.struct.tree.KLongTree): void;
getSegment(): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
setSegment(tree: org.kevoree.modeling.memory.struct.segment.KMemorySegment): void;
}
module impl {
class HeapMemoryManager implements org.kevoree.modeling.memory.manager.KMemoryManager {
private static OUT_OF_CACHE_MESSAGE;
private static UNIVERSE_NOT_CONNECTED_ERROR;
private _db;
private _operationManager;
private _scheduler;
private _model;
private _factory;
private _objectKeyCalculator;
private _universeKeyCalculator;
private _modelKeyCalculator;
private _groupKeyCalculator;
private isConnected;
private _cache;
private static UNIVERSE_INDEX;
private static OBJ_INDEX;
private static GLO_TREE_INDEX;
private static zeroPrefix;
constructor(model: org.kevoree.modeling.KModel<any>);
cache(): org.kevoree.modeling.memory.cache.KCache;
model(): org.kevoree.modeling.KModel<any>;
close(callback: (p: java.lang.Throwable) => void): void;
nextUniverseKey(): number;
nextObjectKey(): number;
nextModelKey(): number;
nextGroupKey(): number;
globalUniverseOrder(): org.kevoree.modeling.memory.struct.map.KUniverseOrderMap;
initUniverse(p_universe: org.kevoree.modeling.KUniverse<any, any, any>, p_parent: org.kevoree.modeling.KUniverse<any, any, any>): void;
parentUniverseKey(currentUniverseKey: number): number;
descendantsUniverseKeys(currentUniverseKey: number): number[];
save(callback: (p: java.lang.Throwable) => void): void;
initKObject(obj: org.kevoree.modeling.KObject): void;
connect(connectCallback: (p: java.lang.Throwable) => void): void;
segment(universe: number, time: number, uuid: number, accessMode: org.kevoree.modeling.memory.manager.AccessMode, metaClass: org.kevoree.modeling.meta.KMetaClass, resolutionTrace: org.kevoree.modeling.memory.manager.KMemorySegmentResolutionTrace): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
discard(p_universe: org.kevoree.modeling.KUniverse<any, any, any>, callback: (p: java.lang.Throwable) => void): void;
delete(p_universe: org.kevoree.modeling.KUniverse<any, any, any>, callback: (p: java.lang.Throwable) => void): void;
lookup(universe: number, time: number, uuid: number, callback: (p: org.kevoree.modeling.KObject) => void): void;
lookupAllobjects(universe: number, time: number, uuids: number[], callback: (p: org.kevoree.modeling.KObject[]) => void): void;
lookupAlltimes(universe: number, time: number[], uuid: number, callback: (p: org.kevoree.modeling.KObject[]) => void): void;
cdn(): org.kevoree.modeling.cdn.KContentDeliveryDriver;
setContentDeliveryDriver(p_dataBase: org.kevoree.modeling.cdn.KContentDeliveryDriver): void;
setScheduler(p_scheduler: org.kevoree.modeling.scheduler.KScheduler): void;
operationManager(): org.kevoree.modeling.operation.KOperationManager;
getRoot(universe: number, time: number, callback: (p: org.kevoree.modeling.KObject) => void): void;
setRoot(newRoot: org.kevoree.modeling.KObject, callback: (p: java.lang.Throwable) => void): void;
reload(keys: org.kevoree.modeling.KContentKey[], callback: (p: java.lang.Throwable) => void): void;
cleanCache(): void;
setFactory(p_factory: org.kevoree.modeling.memory.KMemoryFactory): void;
bumpKeyToCache(contentKey: org.kevoree.modeling.KContentKey, callback: (p: org.kevoree.modeling.memory.KMemoryElement) => void): void;
bumpKeysToCache(contentKeys: org.kevoree.modeling.KContentKey[], callback: (p: org.kevoree.modeling.memory.KMemoryElement[]) => void): void;
private internal_unserialize(key, payload);
}
class KeyCalculator {
private _prefix;
private _currentIndex;
constructor(prefix: number, currentIndex: number);
nextKey(): number;
lastComputedIndex(): number;
prefix(): number;
}
class LookupAllRunnable implements java.lang.Runnable {
private _universe;
private _time;
private _keys;
private _callback;
private _store;
constructor(p_universe: number, p_time: number, p_keys: number[], p_callback: (p: org.kevoree.modeling.KObject[]) => void, p_store: org.kevoree.modeling.memory.manager.impl.HeapMemoryManager);
run(): void;
}
class MemorySegmentResolutionTrace implements org.kevoree.modeling.memory.manager.KMemorySegmentResolutionTrace {
private _universe;
private _time;
private _universeOrder;
private _timeTree;
private _segment;
getUniverse(): number;
setUniverse(p_universe: number): void;
getTime(): number;
setTime(p_time: number): void;
getUniverseTree(): org.kevoree.modeling.memory.struct.map.KUniverseOrderMap;
setUniverseOrder(p_u_tree: org.kevoree.modeling.memory.struct.map.KUniverseOrderMap): void;
getTimeTree(): org.kevoree.modeling.memory.struct.tree.KLongTree;
setTimeTree(p_t_tree: org.kevoree.modeling.memory.struct.tree.KLongTree): void;
getSegment(): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
setSegment(p_segment: org.kevoree.modeling.memory.struct.segment.KMemorySegment): void;
}
class ResolutionHelper {
static resolve_trees(universe: number, time: number, uuid: number, cache: org.kevoree.modeling.memory.cache.KCache): org.kevoree.modeling.memory.manager.impl.MemorySegmentResolutionTrace;
static resolve_universe(globalTree: org.kevoree.modeling.memory.struct.map.KLongLongMap, objUniverseTree: org.kevoree.modeling.memory.struct.map.KLongLongMap, timeToResolve: number, originUniverseId: number): number;
static universeSelectByRange(globalTree: org.kevoree.modeling.memory.struct.map.KLongLongMap, objUniverseTree: org.kevoree.modeling.memory.struct.map.KLongLongMap, rangeMin: number, rangeMax: number, originUniverseId: number): number[];
}
}
}
module struct {
class HeapMemoryFactory implements org.kevoree.modeling.memory.KMemoryFactory {
newCacheSegment(): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
newLongTree(): org.kevoree.modeling.memory.struct.tree.KLongTree;
newLongLongTree(): org.kevoree.modeling.memory.struct.tree.KLongLongTree;
newUniverseMap(initSize: number, p_className: string): org.kevoree.modeling.memory.struct.map.KUniverseOrderMap;
newFromKey(universe: number, time: number, uuid: number): org.kevoree.modeling.memory.KMemoryElement;
}
module map {
interface KIntMap<V> {
contains(key: number): boolean;
get(key: number): V;
put(key: number, value: V): void;
each(callback: (p: number, p1: V) => void): void;
}
interface KIntMapCallBack<V> {
on(key: number, value: V): void;
}
interface KLongLongMap {
contains(key: number): boolean;
get(key: number): number;
put(key: number, value: number): void;
each(callback: (p: number, p1: number) => void): void;
size(): number;
clear(): void;
}
interface KLongLongMapCallBack<V> {
on(key: number, value: number): void;
}
interface KLongMap<V> {
contains(key: number): boolean;
get(key: number): V;
put(key: number, value: V): void;
each(callback: (p: number, p1: V) => void): void;
size(): number;
clear(): void;
}
interface KLongMapCallBack<V> {
on(key: number, value: V): void;
}
interface KStringMap<V> {
contains(key: string): boolean;
get(key: string): V;
put(key: string, value: V): void;
each(callback: (p: string, p1: V) => void): void;
size(): number;
clear(): void;
remove(key: string): void;
}
interface KStringMapCallBack<V> {
on(key: string, value: V): void;
}
interface KUniverseOrderMap extends org.kevoree.modeling.memory.struct.map.KLongLongMap, org.kevoree.modeling.memory.KMemoryElement {
metaClassName(): string;
}
module impl {
class ArrayIntMap<V> implements org.kevoree.modeling.memory.struct.map.KIntMap<any> {
constructor(initalCapacity: number, loadFactor: number);
clear(): void;
get(key: number): V;
put(key: number, pval: V): V;
contains(key: number): boolean;
remove(key: number): V;
size(): number;
each(callback: (p: number, p1: V) => void): void;
}
class ArrayLongLongMap implements org.kevoree.modeling.memory.struct.map.KLongLongMap {
private _isDirty;
constructor(initalCapacity: number, loadFactor: number);
clear(): void;
get(key: number): number;
put(key: number, pval: number): void;
contains(key: number): boolean;
remove(key: number): number;
size(): number;
each(callback: (p: number, p1: number) => void): void;
isDirty(): boolean;
setClean(mm: any): void;
setDirty(): void;
}
class ArrayLongMap<V> implements org.kevoree.modeling.memory.struct.map.KLongMap<any> {
constructor(initalCapacity: number, loadFactor: number);
clear(): void;
get(key: number): V;
put(key: number, pval: V): V;
contains(key: number): boolean;
remove(key: number): V;
size(): number;
each(callback: (p: number, p1: V) => void): void;
}
class ArrayStringMap<V> implements org.kevoree.modeling.memory.struct.map.KStringMap<any> {
constructor(initalCapacity: number, loadFactor: number);
clear(): void;
get(key: string): V;
put(key: string, pval: V): V;
contains(key: string): boolean;
remove(key: string): V;
size(): number;
each(callback: (p: string, p1: V) => void): void;
}
class ArrayUniverseOrderMap extends org.kevoree.modeling.memory.struct.map.impl.ArrayLongLongMap implements org.kevoree.modeling.memory.struct.map.KUniverseOrderMap {
private _counter;
private _className;
constructor(initalCapacity: number, loadFactor: number, p_className: string);
metaClassName(): string;
counter(): number;
inc(): void;
dec(): void;
free(): void;
size(): number;
serialize(m: any): string;
init(payload: string, metaModel: org.kevoree.modeling.meta.KMetaModel): void;
}
}
}
module segment {
interface KMemorySegment extends org.kevoree.modeling.memory.KMemoryElement {
clone(metaClass: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
set(index: number, content: any, metaClass: org.kevoree.modeling.meta.KMetaClass): void;
get(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): any;
getRefSize(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
getRefElem(index: number, refIndex: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
getRef(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number[];
addRef(index: number, newRef: number, metaClass: org.kevoree.modeling.meta.KMetaClass): boolean;
removeRef(index: number, previousRef: number, metaClass: org.kevoree.modeling.meta.KMetaClass): boolean;
getInfer(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number[];
getInferSize(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
getInferElem(index: number, arrayIndex: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
setInferElem(index: number, arrayIndex: number, valueToInsert: number, metaClass: org.kevoree.modeling.meta.KMetaClass): void;
extendInfer(index: number, newSize: number, metaClass: org.kevoree.modeling.meta.KMetaClass): void;
modifiedIndexes(metaClass: org.kevoree.modeling.meta.KMetaClass): number[];
initMetaClass(metaClass: org.kevoree.modeling.meta.KMetaClass): void;
metaClassIndex(): number;
}
module impl {
class HeapMemorySegment implements org.kevoree.modeling.memory.struct.segment.KMemorySegment {
private raw;
private _counter;
private _metaClassIndex;
private _modifiedIndexes;
private _dirty;
initMetaClass(p_metaClass: org.kevoree.modeling.meta.KMetaClass): void;
metaClassIndex(): number;
isDirty(): boolean;
serialize(metaModel: org.kevoree.modeling.meta.KMetaModel): string;
modifiedIndexes(p_metaClass: org.kevoree.modeling.meta.KMetaClass): number[];
setClean(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
setDirty(): void;
init(payload: string, metaModel: org.kevoree.modeling.meta.KMetaModel): void;
counter(): number;
inc(): void;
dec(): void;
free(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
get(index: number, p_metaClass: org.kevoree.modeling.meta.KMetaClass): any;
getRefSize(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
getRefElem(index: number, refIndex: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
getRef(index: number, p_metaClass: org.kevoree.modeling.meta.KMetaClass): number[];
addRef(index: number, newRef: number, metaClass: org.kevoree.modeling.meta.KMetaClass): boolean;
removeRef(index: number, refToRemove: number, metaClass: org.kevoree.modeling.meta.KMetaClass): boolean;
getInfer(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number[];
getInferSize(index: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
getInferElem(index: number, arrayIndex: number, metaClass: org.kevoree.modeling.meta.KMetaClass): number;
setInferElem(index: number, arrayIndex: number, valueToInsert: number, metaClass: org.kevoree.modeling.meta.KMetaClass): void;
extendInfer(index: number, newSize: number, metaClass: org.kevoree.modeling.meta.KMetaClass): void;
set(index: number, content: any, p_metaClass: org.kevoree.modeling.meta.KMetaClass): void;
clone(p_metaClass: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.memory.struct.segment.KMemorySegment;
}
}
}
module tree {
interface KLongLongTree extends org.kevoree.modeling.memory.struct.tree.KTree {
insert(key: number, value: number): void;
previousOrEqualValue(key: number): number;
lookupValue(key: number): number;
}
interface KLongTree extends org.kevoree.modeling.memory.struct.tree.KTree {
insert(key: number): void;
previousOrEqual(key: number): number;
lookup(key: number): number;
range(startKey: number, endKey: number, walker: (p: number) => void): void;
delete(key: number): void;
}
interface KTree extends org.kevoree.modeling.memory.KMemoryElement {
size(): number;
}
interface KTreeWalker {
elem(t: number): void;
}
module impl {
class LongLongTree implements org.kevoree.modeling.memory.KMemoryElement, org.kevoree.modeling.memory.struct.tree.KLongLongTree {
private root;
private _size;
_dirty: boolean;
private _counter;
private _previousOrEqualsCacheValues;
private _previousOrEqualsNextCacheElem;
private _lookupCacheValues;
private _lookupNextCacheElem;
size(): number;
counter(): number;
inc(): void;
dec(): void;
free(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
toString(): string;
isDirty(): boolean;
setDirty(): void;
serialize(metaModel: org.kevoree.modeling.meta.KMetaModel): string;
constructor();
private tryPreviousOrEqualsCache(key);
private tryLookupCache(key);
private resetCache();
private putInPreviousOrEqualsCache(resolved);
private putInLookupCache(resolved);
setClean(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
init(payload: string, metaModel: org.kevoree.modeling.meta.KMetaModel): void;
lookupValue(key: number): number;
private internal_lookup(key);
previousOrEqualValue(key: number): number;
private internal_previousOrEqual(key);
nextOrEqual(key: number): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
previous(key: number): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
next(key: number): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
first(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
last(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
private rotateLeft(n);
private rotateRight(n);
private replaceNode(oldn, newn);
insert(key: number, value: number): void;
private insertCase1(n);
private insertCase2(n);
private insertCase3(n);
private insertCase4(n_n);
private insertCase5(n);
delete(key: number): void;
private deleteCase1(n);
private deleteCase2(n);
private deleteCase3(n);
private deleteCase4(n);
private deleteCase5(n);
private deleteCase6(n);
private nodeColor(n);
}
class LongTree implements org.kevoree.modeling.memory.KMemoryElement, org.kevoree.modeling.memory.struct.tree.KLongTree {
private _size;
private root;
private _previousOrEqualsCacheValues;
private _nextCacheElem;
private _counter;
private _dirty;
constructor();
size(): number;
counter(): number;
inc(): void;
dec(): void;
free(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
private tryPreviousOrEqualsCache(key);
private resetCache();
private putInPreviousOrEqualsCache(resolved);
isDirty(): boolean;
setClean(metaModel: org.kevoree.modeling.meta.KMetaModel): void;
setDirty(): void;
serialize(metaModel: org.kevoree.modeling.meta.KMetaModel): string;
toString(): string;
init(payload: string, metaModel: org.kevoree.modeling.meta.KMetaModel): void;
previousOrEqual(key: number): number;
internal_previousOrEqual(key: number): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
nextOrEqual(key: number): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
previous(key: number): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
next(key: number): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
first(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
last(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
lookup(key: number): number;
range(start: number, end: number, walker: (p: number) => void): void;
private rotateLeft(n);
private rotateRight(n);
private replaceNode(oldn, newn);
insert(key: number): void;
private insertCase1(n);
private insertCase2(n);
private insertCase3(n);
private insertCase4(n_n);
private insertCase5(n);
delete(key: number): void;
private deleteCase1(n);
private deleteCase2(n);
private deleteCase3(n);
private deleteCase4(n);
private deleteCase5(n);
private deleteCase6(n);
private nodeColor(n);
}
class LongTreeNode {
static BLACK: string;
static RED: string;
key: number;
value: number;
color: boolean;
private left;
private right;
private parent;
constructor(key: number, value: number, color: boolean, left: org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode, right: org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode);
grandparent(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
sibling(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
uncle(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
getLeft(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
setLeft(left: org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode): void;
getRight(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
setRight(right: org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode): void;
getParent(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
setParent(parent: org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode): void;
serialize(builder: java.lang.StringBuilder): void;
next(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
previous(): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
static unserialize(ctx: org.kevoree.modeling.memory.struct.tree.impl.TreeReaderContext): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
static internal_unserialize(rightBranch: boolean, ctx: org.kevoree.modeling.memory.struct.tree.impl.TreeReaderContext): org.kevoree.modeling.memory.struct.tree.impl.LongTreeNode;
}
class TreeNode {
static BLACK: string;
static RED: string;
key: number;
color: boolean;
private left;
private right;
private parent;
constructor(key: number, color: boolean, left: org.kevoree.modeling.memory.struct.tree.impl.TreeNode, right: org.kevoree.modeling.memory.struct.tree.impl.TreeNode);
getKey(): number;
grandparent(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
sibling(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
uncle(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
getLeft(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
setLeft(left: org.kevoree.modeling.memory.struct.tree.impl.TreeNode): void;
getRight(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
setRight(right: org.kevoree.modeling.memory.struct.tree.impl.TreeNode): void;
getParent(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
setParent(parent: org.kevoree.modeling.memory.struct.tree.impl.TreeNode): void;
serialize(builder: java.lang.StringBuilder): void;
next(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
previous(): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
static unserialize(ctx: org.kevoree.modeling.memory.struct.tree.impl.TreeReaderContext): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
static internal_unserialize(rightBranch: boolean, ctx: org.kevoree.modeling.memory.struct.tree.impl.TreeReaderContext): org.kevoree.modeling.memory.struct.tree.impl.TreeNode;
}
class TreeReaderContext {
payload: string;
index: number;
buffer: string[];
}
}
}
}
}
module message {
interface KMessage {
json(): string;
type(): number;
}
class KMessageLoader {
static TYPE_NAME: string;
static OPERATION_NAME: string;
static KEY_NAME: string;
static KEYS_NAME: string;
static ID_NAME: string;
static VALUE_NAME: string;
static VALUES_NAME: string;
static CLASS_IDX_NAME: string;
static PARAMETERS_NAME: string;
static EVENTS_TYPE: number;
static GET_REQ_TYPE: number;
static GET_RES_TYPE: number;
static PUT_REQ_TYPE: number;
static PUT_RES_TYPE: number;
static OPERATION_CALL_TYPE: number;
static OPERATION_RESULT_TYPE: number;
static ATOMIC_GET_INC_REQUEST_TYPE: number;
static ATOMIC_GET_INC_RESULT_TYPE: number;
static load(payload: string): org.kevoree.modeling.message.KMessage;
}
module impl {
class AtomicGetIncrementRequest implements org.kevoree.modeling.message.KMessage {
id: number;
key: org.kevoree.modeling.KContentKey;
json(): string;
type(): number;
}
class AtomicGetIncrementResult implements org.kevoree.modeling.message.KMessage {
id: number;
value: number;
json(): string;
type(): number;
}
class Events implements org.kevoree.modeling.message.KMessage {
_objIds: org.kevoree.modeling.KContentKey[];
_metaindexes: number[][];
private _size;
allKeys(): org.kevoree.modeling.KContentKey[];
constructor(nbObject: number);
json(): string;
type(): number;
size(): number;
setEvent(index: number, p_objId: org.kevoree.modeling.KContentKey, p_metaIndexes: number[]): void;
getKey(index: number): org.kevoree.modeling.KContentKey;
getIndexes(index: number): number[];
}
class GetRequest implements org.kevoree.modeling.message.KMessage {
id: number;
keys: org.kevoree.modeling.KContentKey[];
json(): string;
type(): number;
}
class GetResult implements org.kevoree.modeling.message.KMessage {
id: number;
values: string[];
json(): string;
type(): number;
}
class MessageHelper {
static printJsonStart(builder: java.lang.StringBuilder): void;
static printJsonEnd(builder: java.lang.StringBuilder): void;
static printType(builder: java.lang.StringBuilder, type: number): void;
static printElem(elem: any, name: string, builder: java.lang.StringBuilder): void;
}
class OperationCallMessage implements org.kevoree.modeling.message.KMessage {
id: number;
classIndex: number;
opIndex: number;
params: string[];
key: org.kevoree.modeling.KContentKey;
json(): string;
type(): number;
}
class OperationResultMessage implements org.kevoree.modeling.message.KMessage {
id: number;
value: string;
key: org.kevoree.modeling.KContentKey;
json(): string;
type(): number;
}
class PutRequest implements org.kevoree.modeling.message.KMessage {
request: org.kevoree.modeling.cdn.KContentPutRequest;
id: number;
json(): string;
type(): number;
}
class PutResult implements org.kevoree.modeling.message.KMessage {
id: number;
json(): string;
type(): number;
}
}
}
module meta {
interface KMeta {
index(): number;
metaName(): string;
metaType(): org.kevoree.modeling.meta.MetaType;
}
interface KMetaAttribute extends org.kevoree.modeling.meta.KMeta {
key(): boolean;
attributeType(): org.kevoree.modeling.KType;
strategy(): org.kevoree.modeling.extrapolation.Extrapolation;
precision(): number;
setExtrapolation(extrapolation: org.kevoree.modeling.extrapolation.Extrapolation): void;
setPrecision(precision: number): void;
}
interface KMetaClass extends org.kevoree.modeling.meta.KMeta {
metaElements(): org.kevoree.modeling.meta.KMeta[];
meta(index: number): org.kevoree.modeling.meta.KMeta;
metaByName(name: string): org.kevoree.modeling.meta.KMeta;
attribute(name: string): org.kevoree.modeling.meta.KMetaAttribute;
reference(name: string): org.kevoree.modeling.meta.KMetaReference;
operation(name: string): org.kevoree.modeling.meta.KMetaOperation;
addAttribute(attributeName: string, p_type: org.kevoree.modeling.KType): org.kevoree.modeling.meta.KMetaAttribute;
addReference(referenceName: string, metaClass: org.kevoree.modeling.meta.KMetaClass, oppositeName: string, toMany: boolean): org.kevoree.modeling.meta.KMetaReference;
addOperation(operationName: string): org.kevoree.modeling.meta.KMetaOperation;
}
interface KMetaModel extends org.kevoree.modeling.meta.KMeta {
metaClasses(): org.kevoree.modeling.meta.KMetaClass[];
metaClassByName(name: string): org.kevoree.modeling.meta.KMetaClass;
metaClass(index: number): org.kevoree.modeling.meta.KMetaClass;
addMetaClass(metaClassName: string): org.kevoree.modeling.meta.KMetaClass;
model(): org.kevoree.modeling.KModel<any>;
}
interface KMetaOperation extends org.kevoree.modeling.meta.KMeta {
origin(): org.kevoree.modeling.meta.KMeta;
}
interface KMetaReference extends org.kevoree.modeling.meta.KMeta {
visible(): boolean;
single(): boolean;
type(): org.kevoree.modeling.meta.KMetaClass;
opposite(): org.kevoree.modeling.meta.KMetaReference;
origin(): org.kevoree.modeling.meta.KMetaClass;
}
class KPrimitiveTypes {
static STRING: org.kevoree.modeling.KType;
static LONG: org.kevoree.modeling.KType;
static INT: org.kevoree.modeling.KType;
static BOOL: org.kevoree.modeling.KType;
static SHORT: org.kevoree.modeling.KType;
static DOUBLE: org.kevoree.modeling.KType;
static FLOAT: org.kevoree.modeling.KType;
static CONTINUOUS: org.kevoree.modeling.KType;
}
class MetaType {
static ATTRIBUTE: MetaType;
static REFERENCE: MetaType;
static OPERATION: MetaType;
static CLASS: MetaType;
static MODEL: MetaType;
equals(other: any): boolean;
static _MetaTypeVALUES: MetaType[];
static values(): MetaType[];
}
module impl {
class GenericModel extends org.kevoree.modeling.abs.AbstractKModel<any> {
private _p_metaModel;
constructor(mm: org.kevoree.modeling.meta.KMetaModel);
metaModel(): org.kevoree.modeling.meta.KMetaModel;
internalCreateUniverse(universe: number): org.kevoree.modeling.KUniverse<any, any, any>;
internalCreateObject(universe: number, time: number, uuid: number, clazz: org.kevoree.modeling.meta.KMetaClass): org.kevoree.modeling.KObject;
}
class GenericObject extends org.kevoree.modeling.abs.AbstractKObject {
constructor(p_universe: number, p_time: number, p_uuid: number, p_metaClass: org.kevoree.modeling.meta.KMetaClass, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
}
class GenericUniverse extends org.kevoree.modeling.abs.AbstractKUniverse<any, any, any> {
constructor(p_key: number, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
internal_create(timePoint: number): org.kevoree.modeling.KView;
}
class GenericView extends org.kevoree.modeling.abs.AbstractKView {
constructor(p_universe: number, _time: number, p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
}
class MetaAttribute implements org.kevoree.modeling.meta.KMetaAttribute {
private _name;
private _index;
_precision: number;
private _key;
private _metaType;
private _extrapolation;
attributeType(): org.kevoree.modeling.KType;
index(): number;
metaName(): string;
metaType(): org.kevoree.modeling.meta.MetaType;
precision(): number;
key(): boolean;
strategy(): org.kevoree.modeling.extrapolation.Extrapolation;
setExtrapolation(extrapolation: org.kevoree.modeling.extrapolation.Extrapolation): void;
setPrecision(p_precision: number): void;
constructor(p_name: string, p_index: number, p_precision: number, p_key: boolean, p_metaType: org.kevoree.modeling.KType, p_extrapolation: org.kevoree.modeling.extrapolation.Extrapolation);
}
class MetaClass implements org.kevoree.modeling.meta.KMetaClass {
private _name;
private _index;
private _meta;
private _indexes;
constructor(p_name: string, p_index: number);
init(p_metaElements: org.kevoree.modeling.meta.KMeta[]): void;
metaByName(name: string): org.kevoree.modeling.meta.KMeta;
attribute(name: string): org.kevoree.modeling.meta.KMetaAttribute;
reference(name: string): org.kevoree.modeling.meta.KMetaReference;
operation(name: string): org.kevoree.modeling.meta.KMetaOperation;
metaElements(): org.kevoree.modeling.meta.KMeta[];
index(): number;
metaName(): string;
metaType(): org.kevoree.modeling.meta.MetaType;
meta(index: number): org.kevoree.modeling.meta.KMeta;
addAttribute(attributeName: string, p_type: org.kevoree.modeling.KType): org.kevoree.modeling.meta.KMetaAttribute;
addReference(referenceName: string, p_metaClass: org.kevoree.modeling.meta.KMetaClass, oppositeName: string, toMany: boolean): org.kevoree.modeling.meta.KMetaReference;
private getOrCreate(p_name, p_oppositeName, p_oppositeClass, p_visible, p_single);
addOperation(operationName: string): org.kevoree.modeling.meta.KMetaOperation;
private internal_add_meta(p_new_meta);
}
class MetaModel implements org.kevoree.modeling.meta.KMetaModel {
private _name;
private _index;
private _metaClasses;
private _metaClasses_indexes;
index(): number;
metaName(): string;
metaType(): org.kevoree.modeling.meta.MetaType;
constructor(p_name: string);
init(p_metaClasses: org.kevoree.modeling.meta.KMetaClass[]): void;
metaClasses(): org.kevoree.modeling.meta.KMetaClass[];
metaClassByName(name: string): org.kevoree.modeling.meta.KMetaClass;
metaClass(index: number): org.kevoree.modeling.meta.KMetaClass;
addMetaClass(metaClassName: string): org.kevoree.modeling.meta.KMetaClass;
private interal_add_meta_class(p_newMetaClass);
model(): org.kevoree.modeling.KModel<any>;
}
class MetaOperation implements org.kevoree.modeling.meta.KMetaOperation {
private _name;
private _index;
private _lazyMetaClass;
index(): number;
metaName(): string;
metaType(): org.kevoree.modeling.meta.MetaType;
constructor(p_name: string, p_index: number, p_lazyMetaClass: () => org.kevoree.modeling.meta.KMeta);
origin(): org.kevoree.modeling.meta.KMetaClass;
}
class MetaReference implements org.kevoree.modeling.meta.KMetaReference {
private _name;
private _index;
private _visible;
private _single;
private _lazyMetaType;
private _op_name;
private _lazyMetaOrigin;
single(): boolean;
type(): org.kevoree.modeling.meta.KMetaClass;
opposite(): org.kevoree.modeling.meta.KMetaReference;
origin(): org.kevoree.modeling.meta.KMetaClass;
index(): number;
metaName(): string;
metaType(): org.kevoree.modeling.meta.MetaType;
visible(): boolean;
constructor(p_name: string, p_index: number, p_visible: boolean, p_single: boolean, p_lazyMetaType: () => org.kevoree.modeling.meta.KMeta, op_name: string, p_lazyMetaOrigin: () => org.kevoree.modeling.meta.KMeta);
}
}
}
module operation {
interface KOperation {
on(source: org.kevoree.modeling.KObject, params: any[], result: (p: any) => void): void;
}
interface KOperationManager {
registerOperation(operation: org.kevoree.modeling.meta.KMetaOperation, callback: (p: org.kevoree.modeling.KObject, p1: any[], p2: (p: any) => void) => void, target: org.kevoree.modeling.KObject): void;
call(source: org.kevoree.modeling.KObject, operation: org.kevoree.modeling.meta.KMetaOperation, param: any[], callback: (p: any) => void): void;
operationEventReceived(operationEvent: org.kevoree.modeling.message.KMessage): void;
}
module impl {
class HashOperationManager implements org.kevoree.modeling.operation.KOperationManager {
private staticOperations;
private instanceOperations;
private remoteCallCallbacks;
private _manager;
private _callbackId;
constructor(p_manager: org.kevoree.modeling.memory.manager.KMemoryManager);
registerOperation(operation: org.kevoree.modeling.meta.KMetaOperation, callback: (p: org.kevoree.modeling.KObject, p1: any[], p2: (p: any) => void) => void, target: org.kevoree.modeling.KObject): void;
private searchOperation(source, clazz, operation);
call(source: org.kevoree.modeling.KObject, operation: org.kevoree.modeling.meta.KMetaOperation, param: any[], callback: (p: any) => void): void;
private sendToRemote(source, operation, param, callback);
nextKey(): number;
operationEventReceived(operationEvent: org.kevoree.modeling.message.KMessage): void;
}
}
}
module scheduler {
interface KScheduler {
dispatch(runnable: java.lang.Runnable): void;
stop(): void;
}
module impl {
class DirectScheduler implements org.kevoree.modeling.scheduler.KScheduler {
dispatch(runnable: java.lang.Runnable): void;
stop(): void;
}
class ExecutorServiceScheduler implements org.kevoree.modeling.scheduler.KScheduler {
dispatch(p_runnable: java.lang.Runnable): void;
stop(): void;
}
}
}
module traversal {
interface KTraversal {
traverse(metaReference: org.kevoree.modeling.meta.KMetaReference): org.kevoree.modeling.traversal.KTraversal;
traverseQuery(metaReferenceQuery: string): org.kevoree.modeling.traversal.KTraversal;
attributeQuery(attributeQuery: string): org.kevoree.modeling.traversal.KTraversal;
withAttribute(attribute: org.kevoree.modeling.meta.KMetaAttribute, expectedValue: any): org.kevoree.modeling.traversal.KTraversal;
withoutAttribute(attribute: org.kevoree.modeling.meta.KMetaAttribute, expectedValue: any): org.kevoree.modeling.traversal.KTraversal;
filter(filter: (p: org.kevoree.modeling.KObject) => boolean): org.kevoree.modeling.traversal.KTraversal;
then(cb: (p: org.kevoree.modeling.KObject[]) => void): void;
map(attribute: org.kevoree.modeling.meta.KMetaAttribute, cb: (p: any[]) => void): void;
collect(metaReference: org.kevoree.modeling.meta.KMetaReference, continueCondition: (p: org.kevoree.modeling.KObject) => boolean): org.kevoree.modeling.traversal.KTraversal;
}
interface KTraversalAction {
chain(next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(inputs: org.kevoree.modeling.KObject[]): void;
}
interface KTraversalFilter {
filter(obj: org.kevoree.modeling.KObject): boolean;
}
module impl {
class Traversal implements org.kevoree.modeling.traversal.KTraversal {
private static TERMINATED_MESSAGE;
private _initObjs;
private _initAction;
private _lastAction;
private _terminated;
constructor(p_root: org.kevoree.modeling.KObject);
private internal_chain_action(p_action);
traverse(p_metaReference: org.kevoree.modeling.meta.KMetaReference): org.kevoree.modeling.traversal.KTraversal;
traverseQuery(p_metaReferenceQuery: string): org.kevoree.modeling.traversal.KTraversal;
withAttribute(p_attribute: org.kevoree.modeling.meta.KMetaAttribute, p_expectedValue: any): org.kevoree.modeling.traversal.KTraversal;
withoutAttribute(p_attribute: org.kevoree.modeling.meta.KMetaAttribute, p_expectedValue: any): org.kevoree.modeling.traversal.KTraversal;
attributeQuery(p_attributeQuery: string): org.kevoree.modeling.traversal.KTraversal;
filter(p_filter: (p: org.kevoree.modeling.KObject) => boolean): org.kevoree.modeling.traversal.KTraversal;
collect(metaReference: org.kevoree.modeling.meta.KMetaReference, continueCondition: (p: org.kevoree.modeling.KObject) => boolean): org.kevoree.modeling.traversal.KTraversal;
then(cb: (p: org.kevoree.modeling.KObject[]) => void): void;
map(attribute: org.kevoree.modeling.meta.KMetaAttribute, cb: (p: any[]) => void): void;
}
module actions {
class DeepCollectAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
private _reference;
private _continueCondition;
private _alreadyPassed;
private _finalElements;
constructor(p_reference: org.kevoree.modeling.meta.KMetaReference, p_continueCondition: (p: org.kevoree.modeling.KObject) => boolean);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
private executeStep(p_inputStep, private_callback);
}
class FilterAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
private _filter;
constructor(p_filter: (p: org.kevoree.modeling.KObject) => boolean);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
}
class FilterAttributeAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
private _attribute;
private _expectedValue;
constructor(p_attribute: org.kevoree.modeling.meta.KMetaAttribute, p_expectedValue: any);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
}
class FilterAttributeQueryAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
private _attributeQuery;
constructor(p_attributeQuery: string);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
private buildParams(p_paramString);
}
class FilterNotAttributeAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
private _attribute;
private _expectedValue;
constructor(p_attribute: org.kevoree.modeling.meta.KMetaAttribute, p_expectedValue: any);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
}
class FinalAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _finalCallback;
constructor(p_callback: (p: org.kevoree.modeling.KObject[]) => void);
chain(next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(inputs: org.kevoree.modeling.KObject[]): void;
}
class MapAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _finalCallback;
private _attribute;
constructor(p_attribute: org.kevoree.modeling.meta.KMetaAttribute, p_callback: (p: any[]) => void);
chain(next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(inputs: org.kevoree.modeling.KObject[]): void;
}
class RemoveDuplicateAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
}
class TraverseAction implements org.kevoree.modeling.traversal.KTraversalAction {
private _next;
private _reference;
constructor(p_reference: org.kevoree.modeling.meta.KMetaReference);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
}
class TraverseQueryAction implements org.kevoree.modeling.traversal.KTraversalAction {
private SEP;
private _next;
private _referenceQuery;
constructor(p_referenceQuery: string);
chain(p_next: org.kevoree.modeling.traversal.KTraversalAction): void;
execute(p_inputs: org.kevoree.modeling.KObject[]): void;
}
}
module selector {
class Query {
static OPEN_BRACKET: string;
static CLOSE_BRACKET: string;
static QUERY_SEP: string;
relationName: string;
params: string;
constructor(relationName: string, params: string);
toString(): string;
static buildChain(query: string): java.util.List<org.kevoree.modeling.traversal.impl.selector.Query>;
}
class QueryParam {
private _name;
private _value;
private _negative;
constructor(p_name: string, p_value: string, p_negative: boolean);
name(): string;
value(): string;
isNegative(): boolean;
}
class Selector {
static select(root: org.kevoree.modeling.KObject, query: string, callback: (p: org.kevoree.modeling.KObject[]) => void): void;
}
}
}
module visitor {
interface KModelAttributeVisitor {
visit(metaAttribute: org.kevoree.modeling.meta.KMetaAttribute, value: any): void;
}
interface KModelVisitor {
visit(elem: org.kevoree.modeling.KObject): org.kevoree.modeling.traversal.visitor.KVisitResult;
}
class KVisitResult {
static CONTINUE: KVisitResult;
static SKIP: KVisitResult;
static STOP: KVisitResult;
equals(other: any): boolean;
static _KVisitResultVALUES: KVisitResult[];
static values(): KVisitResult[];
}
}
}
module util {
class Checker {
static isDefined(param: any): boolean;
}
}
}
}
}
| Java |
// Copyright (c) 2012-2015, The CryptoNote developers, The Bytecoin developers
//
// This file is part of Bytecoin.
//
// Bytecoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Bytecoin is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Bytecoin. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#include <list>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/identity.hpp>
#include <boost/multi_index/member.hpp>
#include "P2pProtocolTypes.h"
#include "CryptoNoteConfig.h"
namespace CryptoNote {
class ISerializer;
/************************************************************************/
/* */
/************************************************************************/
class PeerlistManager {
struct by_time{};
struct by_id{};
struct by_addr{};
typedef boost::multi_index_container<
PeerlistEntry,
boost::multi_index::indexed_by<
// access by peerlist_entry::net_adress
boost::multi_index::ordered_unique<boost::multi_index::tag<by_addr>, boost::multi_index::member<PeerlistEntry, NetworkAddress, &PeerlistEntry::adr> >,
// sort by peerlist_entry::last_seen<
boost::multi_index::ordered_non_unique<boost::multi_index::tag<by_time>, boost::multi_index::member<PeerlistEntry, uint64_t, &PeerlistEntry::last_seen> >
>
> peers_indexed;
public:
class Peerlist {
public:
Peerlist(peers_indexed& peers, size_t maxSize);
size_t count() const;
bool get(PeerlistEntry& entry, size_t index) const;
void trim();
private:
peers_indexed& m_peers;
const size_t m_maxSize;
};
PeerlistManager();
bool init(bool allow_local_ip);
size_t get_white_peers_count() const { return m_peers_white.size(); }
size_t get_gray_peers_count() const { return m_peers_gray.size(); }
bool merge_peerlist(const std::list<PeerlistEntry>& outer_bs);
bool get_peerlist_head(std::list<PeerlistEntry>& bs_head, uint32_t depth = CryptoNote::P2P_DEFAULT_PEERS_IN_HANDSHAKE) const;
bool get_peerlist_full(std::list<PeerlistEntry>& pl_gray, std::list<PeerlistEntry>& pl_white) const;
bool get_white_peer_by_index(PeerlistEntry& p, size_t i) const;
bool get_gray_peer_by_index(PeerlistEntry& p, size_t i) const;
bool append_with_peer_white(const PeerlistEntry& pr);
bool append_with_peer_gray(const PeerlistEntry& pr);
bool set_peer_just_seen(PeerIdType peer, uint32_t ip, uint32_t port);
bool set_peer_just_seen(PeerIdType peer, const NetworkAddress& addr);
bool set_peer_unreachable(const PeerlistEntry& pr);
bool is_ip_allowed(uint32_t ip) const;
void trim_white_peerlist();
void trim_gray_peerlist();
void serialize(ISerializer& s);
Peerlist& getWhite();
Peerlist& getGray();
private:
std::string m_config_folder;
bool m_allow_local_ip;
peers_indexed m_peers_gray;
peers_indexed m_peers_white;
Peerlist m_whitePeerlist;
Peerlist m_grayPeerlist;
};
}
| Java |
Aikau 1.0.101 Release Notes
===
IMPORTANT
---
From version 1.0.96 onwards there is a new `aikau` package provided. The code in this package is intended to form the basis of a 1.1 version of Aikau (which will be the first release to contain breaking changes). The contents of this package at **not** subject to the same backwards compatibility rules as the `alfresco` package. Instead this will be a collaboration space where code can be changed with breaking changes up until the point where 1.1 is released. You should not use anything from the `aikau` package in production until 1.1 is released. There is no date yet determined for the 1.1 release, 1.0.x releases will continue as always as we prepare for it.
Current deprecations:
---
* alfresco/dialogs/AlfFormDialog (use alfresco/services/DialogService)
* alfresco/renderers/Thumbnail.js
* onNodePromiseResolved (configure usePreviewService to be true)
* onLoadNode (configure usePreviewService to be true)
* onNodeLoaded (configure usePreviewService to be true)
* onShowPreview (configure usePreviewService to be true)
* alfresco/buttons/AlfFormDialogButton.js (use alfresco/services/DialogService)
* alfresco/core/Core "alfDeleteFrameworkAttributes" (use alfresco/core/Core "alfCleanFrameworkAttributes")
* alfresco/core/NotificationUtils.js (use alfresco/services/NotificationService)
* alfresco/core/UrlUtils.js (use alfresco/util/urlUtils or alfresco/core/UrlUtilsMixin)
* alfresco/dialogs/_AlfCreateFormDialogMixin.js (use alfresco/services/DialogService)
* alfresco/dialogs/AlfDialogService (use: alfresco/services/Dialog)
* alfresco/documentlibrary/_AlfFilterMixin (use alfresco/documentlibrary/_AlfHashMixin)
* alfresco/documentlibrary/AlfDocumentListInfiniteScroll.js (use: alfresco/services/InfiniteScrollService)
* alfresco/documentlibrary/AlfDocumentListPaginator (use: alfresco/lists/Paginator)
* alfresco/documentlibrary/AlfResultsPerPageGroup (use: alfresco/lists/ResultsPerPageGroup)
* alfresco/documentlibrary/AlfSearchList (use: alfresco/search/AlfSearchList)
* alfresco/documentlibrary/views/_AlfAdditionalViewControlMixin (use: alfresco/lists/views/_AlfAdditionalViewControlMixin)
* alfresco/documentlibrary/views/AlfDocumentListView (use: alfresco/lists/views/AlfListView)
* alfresco/documentlibrary/views/AlfSearchListView (use: alfresco/search/AlfSearchListView)
* alfresco/documentlibrary/views/DocumentListRenderer (use: alfresco/lists/views/ListRenderer)
* alfresco/documentlibrary/views/layouts/_MultiItemRendererMixin (use: alfresco/lists/views/layouts/_MultiItemRendererMixin)
* alfresco/documentlibrary/views/layouts/Carousel (use: alfresco/lists/views/layouts/Carousel)
* alfresco/documentlibrary/views/layouts/Cell (use: alfresco/lists/views/layouts/Cell)
* alfresco/documentlibrary/views/layouts/Column (use: alfresco/lists/views/layouts/Column)
* alfresco/documentlibrary/views/layouts/Grid (use: alfresco/lists/views/layouts/Grid)
* alfresco/documentlibrary/views/layouts/HeaderCell (use: alfresco/lists/views/layouts/HeaderCell)
* alfresco/documentlibrary/views/layouts/Popup (use: alfresco/lists/views/layouts/Popup)
* alfresco/documentlibrary/views/layouts/Row (use: alfresco/lists/views/layouts/Row)
* alfresco/documentlibrary/views/layouts/Table (use: alfresco/lists/views/layouts/Table)
* alfresco/documentlibrary/views/layouts/XhrLayout (use: alfresco/lists/views/layouts/XhrLayout)
* alfresco/forms/controls/DojoCheckBox (use: alfresco/forms/controls/CheckBox)
* alfresco/forms/controls/DojoDateTextBox (use: alfresco/forms/controls/DateTextBox)
* alfresco/forms/controls/DojoRadioButtons (use: alfresco/forms/controls/RadioButtons)
* alfresco/forms/controls/DojoSelect (use: alfresco/forms/controls/Select)
* alfresco/forms/controls/DojoTextarea (use: alfresco/forms/controls/TextArea)
* alfresco/forms/controls/DojoValidationTextBox (use: alfresco/forms/controls/TextBox)
* alfresco/renderers/SearchResultPropertyLink (use: alfresco/search/SearchResultPropertyLink)
* alfresco/renderers/SearchThumbnail (use: alfresco/search/SearchThumbnail)
* alfresco/services/_PreferenceServiceTopicMixin.js (use alfresco/core/topics)
* alfresco/services/actions/SimpleWorkflowService.js (use alfresco/services/actions/WorkflowService)
* alfresco/upload/AlfUpload (use: alfresco/services/UploadService)
Resolved issues:
---
1.0.101:
* [AKU-1148](https://issues.alfresco.com/jira/browse/AKU-1148) - Converted renderers and layout modules to create DOM natively
* [AKU-1151](https://issues.alfresco.com/jira/browse/AKU-1151) - Improve performance enhanced view rendering completion
* [AKU-1152](https://issues.alfresco.com/jira/browse/AKU-1152) - Support multiple classes assigned to renderedValueClass
* [AKU-1153](https://issues.alfresco.com/jira/browse/AKU-1153) - Include details of 3rd party libs in readme
* [AKU-1154](https://issues.alfresco.com/jira/browse/AKU-1154) - Update site creation failure error message
* [AKU-1155](https://issues.alfresco.com/jira/browse/AKU-1155) - Fix InlineEditProperty re-rendering bug
1.0.100:
* [AKU-878](https://issues.alfresco.com/jira/browse/AKU-878) - Performance test page added
* [AKU-1138](https://issues.alfresco.com/jira/browse/AKU-1138) - Prevent PDF.js preview horizontal scrollbar clipping
* [AKU-1139](https://issues.alfresco.com/jira/browse/AKU-1139) - Prevent horizontal scrollar showing on downlad as zip dialog
* [AKU-1140](https://issues.alfresco.com/jira/browse/AKU-1140) - Scoped Toggle renderer fix
* [AKU-1141](https://issues.alfresco.com/jira/browse/AKU-1141) - Ensure all search thumbnails have correct tooltip
* [AKU-1143](https://issues.alfresco.com/jira/browse/AKU-1143) - Add caching to temporalUtils
* [AKU-1145](https://issues.alfresco.com/jira/browse/AKU-1145) - Added BaseWidget for reducing applyAttributes overhead
* [AKU-1146](https://issues.alfresco.com/jira/browse/AKU-1146) - Add debug mode check within alfLog
* [AKU-1147](https://issues.alfresco.com/jira/browse/AKU-1147) - Define pattern for avoiding TemplatedMixin overhead
* [AKU-1149](https://issues.alfresco.com/jira/browse/AKU-1149) - Improvements to ChildProcessing module
* [AKU-1150](https://issues.alfresco.com/jira/browse/AKU-1150) - Improve legacy edit site resource loading
1.0.99:
* [AKU-1133](https://issues.alfresco.com/jira/browse/AKU-1133) - Improve rendering of Create Site dialog opening
* [AKU-1134](https://issues.alfresco.com/jira/browse/AKU-1134) - Copyright year update
* [AKU-1135](https://issues.alfresco.com/jira/browse/AKU-1135) - Improve SearchService configuration options for search term highlighting
* [AKU-1136](https://issues.alfresco.com/jira/browse/AKU-1136) - Improve MoreInfo widget styling
* [AKU-1137](https://issues.alfresco.com/jira/browse/AKU-1137) - Impove create site validation display
1.0.98:
* [AKU-1130](https://issues.alfresco.com/jira/browse/AKU-1130) - Improve create/edit site customization options through configuration
* [AKU-1131](https://issues.alfresco.com/jira/browse/AKU-1131) - Create Link label updated
* [AKU-1132](https://issues.alfresco.com/jira/browse/AKU-1132) - Ensure site is created on first click of button
1.0.97:
* [AKU-1108](https://issues.alfresco.com/jira/browse/AKU-1108) - Ensure sites are favourited when created
* [AKU-1130](https://issues.alfresco.com/jira/browse/AKU-1130) - Improve create/edit site customization options through configuration
1.0.96:
* [AKU-1111](https://issues.alfresco.com/jira/browse/AKU-1111) - Update AlfSearchList to support additional query parameters
* [AKU-1112](https://issues.alfresco.com/jira/browse/AKU-1112) - Update FilePicker to properly support required state
* [AKU-1113](https://issues.alfresco.com/jira/browse/AKU-1113) - Upgrade of CodeMirror to 5.20.2
* [AKU-1125](https://issues.alfresco.com/jira/browse/AKU-1125) - Update AlfSelectDocumentListItems to disable correctly
* [AKU-1127](https://issues.alfresco.com/jira/browse/AKU-1127) - Increate Create Site dialog height to prevent jumping on validation
* [AKU-1128](https://issues.alfresco.com/jira/browse/AKU-1128) - Ensure FilteringSelect and ComboBox only request initial options once
* [AKU-1129](https://issues.alfresco.com/jira/browse/AKU-1129) - Add support for showing all option in FilteringSelect and ComboBox when drop-down opened
1.0.95:
* [AKU-1108](https://issues.alfresco.com/jira/browse/AKU-1108) - Ensure new sites are favourited (Firefox fix)
* [AKU-1114](https://issues.alfresco.com/jira/browse/AKU-1114) - Remove unicode STH delineation from Thumbnail title
* [AKU-1115](https://issues.alfresco.com/jira/browse/AKU-1115) - Redirect to user dashboard on request to join moderated site
* [AKU-1116](https://issues.alfresco.com/jira/browse/AKU-1116) - Add support for enter key completing dialog forms (within field)
* [AKU-1117](https://issues.alfresco.com/jira/browse/AKU-1117) - Update site creation error messages
* [AKU-1118](https://issues.alfresco.com/jira/browse/AKU-1118) - Support PathTree updates with no "/" prefix
* [AKU-1119](https://issues.alfresco.com/jira/browse/AKU-1119) - Improve SiteService preset configuration options
* [AKU-1121](https://issues.alfresco.com/jira/browse/AKU-1121) - Debounce form validation styling changes
* [AKU-1123](https://issues.alfresco.com/jira/browse/AKU-1123) - OSX fix for dialog form field highlighting clipping
1.0.94:
* [AKU-1107](https://issues.alfresco.com/jira/browse/AKU-1107) - Ensure spaces are trimmed in site data
* [AKU-1108](https://issues.alfresco.com/jira/browse/AKU-1108) - Ensure new sites are favourited
* [AKU-1109](https://issues.alfresco.com/jira/browse/AKU-1109) - Fix Cloud Sync action issues
1.0.93:
* [AKU-1101](https://issues.alfresco.com/jira/browse/AKU-1101) - Support for click on Row
* [AKU-1105](https://issues.alfresco.com/jira/browse/AKU-1105) - Remove unicode chars from MoreInfo on search
* [AKU-1106](https://issues.alfresco.com/jira/browse/AKU-1106) - Ensure edit site redirects to correct URL
1.0.92:
* [AKU-1097](https://issues.alfresco.com/jira/browse/AKU-1097) - Updates for search term highlighting
* [AKU-1100](https://issues.alfresco.com/jira/browse/AKU-1100) - DateTextBox keyup validation fix
1.0.91:
* [AKU-1092](https://issues.alfresco.com/jira/browse/AKU-1092) - Improvements to site edit/creation validation
* [AKU-1094](https://issues.alfresco.com/jira/browse/AKU-1094) - Updated error message for Copy/Move failures
* [AKU-1098](https://issues.alfresco.com/jira/browse/AKU-1098) - Hide list error messages when loading
* [AKU-1099](https://issues.alfresco.com/jira/browse/AKU-1099) - Fixed validationTopic backwards compatibility
1.0.90:
* [AKU-1093](https://issues.alfresco.com/jira/browse/AKU-1093) - Fixed bug with inverting selection on AlfGalleryView
* [AKU-1094](https://issues.alfresco.com/jira/browse/AKU-1094) - Updated error message for Copy/Move failures
* [AKU-1095](https://issues.alfresco.com/jira/browse/AKU-1095) - Ensure copy/move dialog model is properly cloned
* [AKU-1096](https://issues.alfresco.com/jira/browse/AKU-1096) - Fixed AlfMenuBarToggle URL hash updating
1.0.89:
* [AKU-1092](https://issues.alfresco.com/jira/browse/AKU-1092) - Updated SiteService to improve site creation and editing
* Added MarkdownWithPreviewEditor widget
* Improvements to Document Library import lib
1.0.88:
* [AKU-1090](https://issues.alfresco.com/jira/browse/AKU-1090) - Fix copy/move partial success messages
* [AKU-1091](https://issues.alfresco.com/jira/browse/AKU-1091) - AlfSearchResult styling update
1.0.87:
* [AKU-1087](https://issues.alfresco.com/jira/browse/AKU-1087) - Update Property to support highlighting
* [AKU-1088](https://issues.alfresco.com/jira/browse/AKU-1088) - Form setValueTopic scope fix
1.0.86:
* [AKU-1036](https://issues.alfresco.com/jira/browse/AKU-1036) - Added a User renderer
* [AKU-1014](https://issues.alfresco.com/jira/browse/AKU-1014) - More FormsRuntimeService updates
1.0.85:
* [AKU-1075](https://issues.alfresco.com/jira/browse/AKU-1075) - Improve dialog title handling on copy/move action
* [AKU-1084](https://issues.alfresco.com/jira/browse/AKU-1084) - Ensure ContainerPicker selects recent sites on display
* [AKU-1085](https://issues.alfresco.com/jira/browse/AKU-1085) - Fix IE10/11 & Edge middle click, right click handling
* [AKU-1086](https://issues.alfresco.com/jira/browse/AKU-1086) - Support middle click, ctrl click open in new tab on menu items
1.0.84:
* [AKU-1072](https://issues.alfresco.com/jira/browse/AKU-1072) - Support hiding form control validation indicators
* [AKU-1076](https://issues.alfresco.com/jira/browse/AKU-1076) - Ensure filteringTopics does not need to be configured on AlfFilteredList
* [AKU-1077](https://issues.alfresco.com/jira/browse/AKU-1077) - Support label maps on AlfFilteredList summary
* [AKU-1079](https://issues.alfresco.com/jira/browse/AKU-1079) - Support copy/paste value update trigger in form controls
* [AKU-1080](https://issues.alfresco.com/jira/browse/AKU-1080) - Clone models for dialogs
* [AKU-1081](https://issues.alfresco.com/jira/browse/AKU-1081) - Support mix-in values on FormsRuntimeService requests
* [AKU-1082](https://issues.alfresco.com/jira/browse/AKU-1082) - Ensure DateTextBox value change publication is correct
* [AKU-1083](https://issues.alfresco.com/jira/browse/AKU-1083) - Support empty value options for Select form control
1.0.83:
* [AKU-1053](https://issues.alfresco.com/jira/browse/AKU-1053) - Support for grouped form rules
* [AKU-1054](https://issues.alfresco.com/jira/browse/AKU-1054) - Ensure expanded panels remain expanded on grid resize
* [AKU-1069](https://issues.alfresco.com/jira/browse/AKU-1069) - Full metadata refresh on InlineEditPropertyLink
* [AKU-1071](https://issues.alfresco.com/jira/browse/AKU-1071) - PushButton in form dialog layout fix
1.0.82:
* [AKU-1061](https://issues.alfresco.com/jira/browse/AKU-1061) - Update bulk action filtering to include file type
* [AKU-1063](https://issues.alfresco.com/jira/browse/AKU-1063) - Ensure that SelectedItemStateMixin publishes empty array for zero-item selection
* [AKU-1064](https://issues.alfresco.com/jira/browse/AKU-1064) - Disable AlfSelectDocumentListItems when no list items are available
* [AKU-1067](https://issues.alfresco.com/jira/browse/AKU-1067) - Update GalleryThumbnail to support selection and inverting selection
* [AKU-1068](https://issues.alfresco.com/jira/browse/AKU-1068) - Update copy/move action messages
* [AKU-1070](https://issues.alfresco.com/jira/browse/AKU-1070) - Support added/removed values for form controls
1.0.81:
* [AKU-1033](https://issues.alfresco.com/jira/browse/AKU-1033) - Initial drop of alfresco/forms/controls/FilePicker
* [AKU-1044](https://issues.alfresco.com/jira/browse/AKU-1044) - Support for excluding form value from additional button payloads
* [AKU-1048](https://issues.alfresco.com/jira/browse/AKU-1048) - Further update to changes in 1.0.80 to reduce opacity of disabled form fields
* [AKU-1052](https://issues.alfresco.com/jira/browse/AKU-1052) - Support for mapping of non-truthy values in DynamicPayload
1.0.80:
* [AKU-1047](https://issues.alfresco.com/jira/browse/AKU-1047) - Ensure PushButtons respect disabled state
* [AKU-1048](https://issues.alfresco.com/jira/browse/AKU-1048) - Set themeable opacity on disabled form controls
* [AKU-1049](https://issues.alfresco.com/jira/browse/AKU-1049) - Ensure late registered form controls process rules
* [AKU-1050](https://issues.alfresco.com/jira/browse/AKU-1050) - Ensure PreferenceService uses correct URL
* [AKU-1051](https://issues.alfresco.com/jira/browse/AKU-1051) - Support for optional no buttons label on PushButtons
1.0.79:
* [AKU-945](https://issues.alfresco.com/jira/browse/AKU-945) - Break word on long form control labels in form dialogs
* [AKU-1039](https://issues.alfresco.com/jira/browse/AKU-1039) - Re-instate border around tabs
* [AKU-1040](https://issues.alfresco.com/jira/browse/AKU-1040) - Support fixed width on Select form control
* [AKU-1041](https://issues.alfresco.com/jira/browse/AKU-1041) - Increase gap betwen filter widgets
* [AKU-1042](https://issues.alfresco.com/jira/browse/AKU-1042) - Brackets in upload file name display fix
* [AKU-1043](https://issues.alfresco.com/jira/browse/AKU-1043) - Ensure values are set in TabbedControls
* [AKU-1045](https://issues.alfresco.com/jira/browse/AKU-1045) - Support for generated payloads in AlfButton
* [#1169](https://github.com/Alfresco/Aikau/pull/1169) - Use site for XHR loading actions and client specific view
* [#1172](https://github.com/Alfresco/Aikau/pull/1172) - PropertyLink CSS typo fix
* [#1173](https://github.com/Alfresco/Aikau/pull/1173) - Support for 0-value in Progress
* [#1175](https://github.com/Alfresco/Aikau/pull/1175) - Page title prefix encoding correction
* [#1176](https://github.com/Alfresco/Aikau/pull/1176) - TinyMCE locale generalization
* [#1181](https://github.com/Alfresco/Aikau/pull/1181) - FileSelect updated to filter on MIME type
* [#1182](https://github.com/Alfresco/Aikau/pull/1182) - Support for empty array in XHR actions
1.0.78:
* [AKU-1037](https://issues.alfresco.com/jira/browse/AKU-1037) - Improve Dashlet CSS defaults
* [AKU-1038](https://issues.alfresco.com/jira/browse/AKU-1038) - Revert AKU-945 (form dialog layout changes)
1.0.77.1:
* [AKU-1020](https://issues.alfresco.com/jira/browse/AKU-1020) - Support for item focus on AlfList load
* [AKU-1023](https://issues.alfresco.com/jira/browse/AKU-1023) - Set minimum height for dialogs
* [AKU-1026](https://issues.alfresco.com/jira/browse/AKU-1026) - Update selection/focus colours for PushButtons
1.0.77:
* [AKU-1019](https://issues.alfresco.com/jira/browse/AKU-1019) - Ensure invertion action works for item selection
* [AKU-1021](https://issues.alfresco.com/jira/browse/AKU-1021) - Improve focus highlighting on CellContainer
* [AKU-1024](https://issues.alfresco.com/jira/browse/AKU-1024) - Update form control focus colours
* [AKU-1025](https://issues.alfresco.com/jira/browse/AKU-1025) - Reduce spacing between buttons in inline forms
* [AKU-1027](https://issues.alfresco.com/jira/browse/AKU-1027) - Update HeaderCell sort icon display
* [AKU-1029](https://issues.alfresco.com/jira/browse/AKU-1029) - FormsRuntime - initial workflow and task support
* [AKU-1030](https://issues.alfresco.com/jira/browse/AKU-1030) - FormsRuntime - improve structure handling
* [AKU-1032](https://issues.alfresco.com/jira/browse/AKU-1032) - FormsRuntime - "info.ftl" mapping
* [AKU-1034](https://issues.alfresco.com/jira/browse/AKU-1034) - FormsRuntime - improve MultiSelectInput array value handling
1.0.76:
* [AKU-1010](https://issues.alfresco.com/jira/browse/AKU-1010) - Ensure failure message is not displayed for lists with pending request
* [AKU-1011](https://issues.alfresco.com/jira/browse/AKU-1011) - Handle long, unbroken names in SearchBox results
* [AKU-1013](https://issues.alfresco.com/jira/browse/AKU-1013) - Configurable results height for SearchBox
* [AKU-1015](https://issues.alfresco.com/jira/browse/AKU-1015) - Provide basic support for Share XML forms runtime
* [AKU-1017](https://issues.alfresco.com/jira/browse/AKU-1017) - Prevent progress notifications on download actions
* [AKU-1018](https://issues.alfresco.com/jira/browse/AKU-1018) - Fix Firefox specific handling of PublishAction clicks
1.0.75:
* [AKU-1009](https://issues.alfresco.com/jira/browse/AKU-1003) - Provide additional sort controls
1.0.74:
* [AKU-1003](https://issues.alfresco.com/jira/browse/AKU-1003) - Update UserService to work with lists
* [AKU-1004](https://issues.alfresco.com/jira/browse/AKU-1004) - Update UserService to support filtering, sort and pagination
1.0.73:
* [AKU-996](https://issues.alfresco.com/jira/browse/AKU-996) - Improvements to menus handling sorting
* [AKU-988](https://issues.alfresco.com/jira/browse/AKU-988) - Support scoping in visibilityConfig
* [AKU-1000](https://issues.alfresco.com/jira/browse/AKU-1000) - Support for removing document title prefix via alfresco/header/SetTitle
1.0.72.4:
* [AKU-1010](https://issues.alfresco.com/jira/browse/AKU-1010) - Ensure AlfList publishes pending load requests
1.0.72.3:
* [AKU-1007](https://issues.alfresco.com/jira/browse/AKU-1007) - Block infinite scroll page load requests when a request is in progress
1.0.72.2:
* [AKU-1006](https://issues.alfresco.com/jira/browse/AKU-1006) - Support for group images in AvatarThumbnail
1.0.72.1:
* [AKU-1002](https://issues.alfresco.com/jira/browse/AKU-1002) - Trigger form control validation on disable state change
1.0.72:
* [AKU-947](https://issues.alfresco.com/jira/browse/AKU-947) - Added 'simpleLayout' config option to PushButtons
* [AKU-982](https://issues.alfresco.com/jira/browse/AKU-982) - Added support for disabling actions in Indicators
* [AKU-995](https://issues.alfresco.com/jira/browse/AKU-995) - Additional layout CSS class for ClassicWindow
* [AKU-997](https://issues.alfresco.com/jira/browse/AKU-997) - Support for toggling edit mode via topic in InlineEditProperty
* [AKU-998](https://issues.alfresco.com/jira/browse/AKU-998) - PubQueue fix for pages with neither widgets nor services
* [AKU-1001](https://issues.alfresco.com/jira/browse/AKU-1001) - Improvements to progress indicator on navigation
1.0.71.1:
* [AKU-998](https://issues.alfresco.com/jira/browse/AKU-998) - PubQueue release when no widgets or services
1.0.71:
* [AKU-981](https://issues.alfresco.com/jira/browse/AKU-981) - Support for legacyMode fallback via whitelist validation in alfresco/renderers/Indicators
* [AKU-983](https://issues.alfresco.com/jira/browse/AKU-983) - Added generic "processing" notification
* [AKU-986](https://issues.alfresco.com/jira/browse/AKU-986) - Improved alfresco/misc/AlfTooltip orientation options
* [AKU-987](https://issues.alfresco.com/jira/browse/AKU-987) - Handle variable publication scopes in alfresco/buttons/AlfDynamicPayloadButton
* [AKU-989](https://issues.alfresco.com/jira/browse/AKU-989) - Added alfresco/forms/CollapsibleSection widget
* [AKU-990](https://issues.alfresco.com/jira/browse/AKU-990) - Variable pubSubScope form warnings support
* [AKU-991](https://issues.alfresco.com/jira/browse/AKU-991) - NodeRef attribute fallback in alfresco/services/NodePreviewService
* [AKU-992](https://issues.alfresco.com/jira/browse/AKU-992) - Support for simple links in alfresco/documentlibrary/AlfBreadcrumbTrail
1.0.70:
* [AKU-945](https://issues.alfresco.com/jira/browse/AKU-945) - Standardize form control layout
* [AKU-955](https://issues.alfresco.com/jira/browse/AKU-955) - Handle text mis-alignment in FileUploadService
* [AKU-956](https://issues.alfresco.com/jira/browse/AKU-956) - Added custom TinyMCE specific empty content validator
* [AKU-959](https://issues.alfresco.com/jira/browse/AKU-959) - Support for disable state in Selector renderer
* [AKU-963](https://issues.alfresco.com/jira/browse/AKU-963) - Support for onlyShowOnHover in PublishAction
* [AKU-979](https://issues.alfresco.com/jira/browse/AKU-979) - Disable isDraggable by default
* [AKU-980](https://issues.alfresco.com/jira/browse/AKU-980) - Configurable result count message in AlfSearchList
1.0.69:
* [AKU-968](https://issues.alfresco.com/jira/browse/AKU-968) - Support for preventing click bubbling in PublishOrLinkMixin
* [AKU-970](https://issues.alfresco.com/jira/browse/AKU-970) - Improve visibilityConfig in forms
* [AKU-972](https://issues.alfresco.com/jira/browse/AKU-972) - Ensure FilteringSelect option can be preselected
* [AKU-973](https://issues.alfresco.com/jira/browse/AKU-973) - Improve widgetsForNoDataDisplay rendering in AlfListView
* [AKU-974](https://issues.alfresco.com/jira/browse/AKU-974) - Support state management in visibilityConfig for all widgets
* [AKU-975](https://issues.alfresco.com/jira/browse/AKU-975) - Ensure forward slash present in folder link AlfSearchResult
* [AKU-977](https://issues.alfresco.com/jira/browse/AKU-977) - Fix SimplePicker layout issue
1.0.68:
* [AKU-956](https://issues.alfresco.com/jira/browse/AKU-956) - Prevent empty comments from being saved
* [AKU-962](https://issues.alfresco.com/jira/browse/AKU-962) - Fix siteMode in DocumentListPicker
* [AKU-965](https://issues.alfresco.com/jira/browse/AKU-965) - Support multiple Aikau Surf Component true publication order
* [AKU-966](https://issues.alfresco.com/jira/browse/AKU-966) - Configurable icon paths in PublishAction
* [AKU-969](https://issues.alfresco.com/jira/browse/AKU-969) - Internationalization for simple date rendering
* [AKU-971](https://issues.alfresco.com/jira/browse/AKU-971) - ObjectProcessingMixin improvements
1.0.67:
* [AKU-942](https://issues.alfresco.com/jira/browse/AKU-942) - Add info for empty AlfDocumentList folder views
* [AKU-949](https://issues.alfresco.com/jira/browse/AKU-949) - Additinonal local storage access protection
* [AKU-954](https://issues.alfresco.com/jira/browse/AKU-954) - Ensure DND upload highlighting only shown for appropriate permissions
* [AKU-956](https://issues.alfresco.com/jira/browse/AKU-956) - Prevent saving empty comments
* [AKU-957](https://issues.alfresco.com/jira/browse/AKU-957) - Ensure comment edits trigger CommentsList refresh
* [AKU-958](https://issues.alfresco.com/jira/browse/AKU-958) - Fix archetype Spring config for Surf 6 login
* [ALF-21614](https://issues.alfresco.com/jira/browse/ALF-21614) - AlfFormDialog fix (and deprecation)
1.0.66:
* [AKU-941](https://issues.alfresco.com/jira/browse/AKU-941) - Add support for Smart Folders in alfresco/renderers/Thumbnail
* [AKU-944](https://issues.alfresco.com/jira/browse/AKU-944) - Improve encoding on data typed into MultiSelectInput
* [AKU-946](https://issues.alfresco.com/jira/browse/AKU-946) - Ensure list loading element does not block pointer events
* [AKU-947](https://issues.alfresco.com/jira/browse/AKU-947) - Improved rendering of long text on PushButton values
* [AKU-949](https://issues.alfresco.com/jira/browse/AKU-949) - Improved local storage handling in lists
* [AKU-951](https://issues.alfresco.com/jira/browse/AKU-951) - Ensure error messages are displayed on form controls without labels
* [AKU-952](https://issues.alfresco.com/jira/browse/AKU-952) - Improve TinyMCE configuration options
* [AKU-953](https://issues.alfresco.com/jira/browse/AKU-953) - Improve SelectedItemStateMixin value handling
* [AKU-955](https://issues.alfresco.com/jira/browse/AKU-955) - Improve rendering of upload display in FileUploadService
1.0.65:
* [AKU-907](https://issues.alfresco.com/jira/browse/AKU-907) - Supoort line item removal from UploadMonitor
* [AKU-929](https://issues.alfresco.com/jira/browse/AKU-929) - Support close Notification by published topic
* [AKU-932](https://issues.alfresco.com/jira/browse/AKU-932) - Ensure localization of menu item tooltips
* [AKU-933](https://issues.alfresco.com/jira/browse/AKU-933) - Optional view model processing in list views
* [AKU-934](https://issues.alfresco.com/jira/browse/AKU-934) - Better rendering in Date for deleted users
* [AKU-937](https://issues.alfresco.com/jira/browse/AKU-937) - Fix scoping issue in DocumentPicker
* [AKU-938](https://issues.alfresco.com/jira/browse/AKU-938) - Ensure form value initialization consistency
* [AKU-940](https://issues.alfresco.com/jira/browse/AKU-940) - Fixed drop-down arrow alignment issue in menus
* [AKU-943](https://issues.alfresco.com/jira/browse/AKU-943) - Fixed SelectList item selection on list rendering
* [AKU-948](https://issues.alfresco.com/jira/browse/AKU-948) - Support deselect in non-multiMode PushButton
1.0.64:
* [AKU-883](https://issues.alfresco.com/jira/browse/AKU-883) - Added ToggleStateActions widget
* [AKU-893](https://issues.alfresco.com/jira/browse/AKU-893) - Improved configuration options for Paginator
* [AKU-924](https://issues.alfresco.com/jira/browse/AKU-924) - Ensure page back/forward works with infinite scrolling Document Library
* [AKU-926](https://issues.alfresco.com/jira/browse/AKU-926) - Ensure empty string itemsAttribute property works with OptionsService
* [AKU-927](https://issues.alfresco.com/jira/browse/AKU-927) - Fixed scoping issue with CommentsList
* [AKU-928](https://issues.alfresco.com/jira/browse/AKU-928) - Improved content creation failure experience
* [AKU-930](https://issues.alfresco.com/jira/browse/AKU-930) - Fixed edit site details behaviour
1.0.63:
* [AKU-411](https://issues.alfresco.com/jira/browse/AKU-411) - Versionable lib file support
* [AKU-777](https://issues.alfresco.com/jira/browse/AKU-777) - Prevent MultiSelectInput opening when deleting item (IE only)
* [AKU-913](https://issues.alfresco.com/jira/browse/AKU-913) - Ensure upload button works
* [AKU-914](https://issues.alfresco.com/jira/browse/AKU-914) - Notifications support nested widgets
* [AKU-916](https://issues.alfresco.com/jira/browse/AKU-916) - Prevent page scrolling on dialog open
* [AKU-921](https://issues.alfresco.com/jira/browse/AKU-921) - Support cursor key use in forms in views
* [AKU-922](https://issues.alfresco.com/jira/browse/AKU-922) - Ensure service exception at startup doesn't cause widgets to render before services
* [AKU-923](https://issues.alfresco.com/jira/browse/AKU-923) - Prevent XSS injection in leave site action
1.0.62:
* [AKU-842](https://issues.alfresco.com/jira/browse/AKU-842) - Ensure infinite scrolling Document Library can be sorted via menu
* [AKU-898](https://issues.alfresco.com/jira/browse/AKU-898) - Support for UploadMonitor completed upload actions
* [AKU-904](https://issues.alfresco.com/jira/browse/AKU-904) - Added support for additional form config in form dialogs
* [AKU-908](https://issues.alfresco.com/jira/browse/AKU-908) - Inline edit renderers use buttons rather than labels for save/cancel
* [AKU-912](https://issues.alfresco.com/jira/browse/AKU-912) - Removal of hardcoded "Relevance" sorting from SearchBox links
1.0.61:
* [AKU-757](https://issues.alfresco.com/jira/browse/AKU-757) - Prevent browser popup blocker on download requests
* [AKU-903](https://issues.alfresco.com/jira/browse/AKU-903) - Prevent click bubbling on PublishAction
* [AKU-910](https://issues.alfresco.com/jira/browse/AKU-910) - Success actions on UploadMonitor
1.0.60:
* [AKU-879](https://issues.alfresco.com/jira/browse/AKU-879) - Ensure drag and drop overlay fits to visible area
* [AKU-884](https://issues.alfresco.com/jira/browse/AKU-884) - OptionsService improvements
* [AKU-885](https://issues.alfresco.com/jira/browse/AKU-885) - Ensure correct Accept-Language header in IE
* [AKU-887](https://issues.alfresco.com/jira/browse/AKU-887) - Ensure upload works on Safari
* [AKU-888](https://issues.alfresco.com/jira/browse/AKU-888) - Improvements to create site dialog
* [AKU-889](https://issues.alfresco.com/jira/browse/AKU-889) - Upload display customization improvements
* [AKU-891](https://issues.alfresco.com/jira/browse/AKU-891) - Prevent browser rendering dropped files
* [AKU-895](https://issues.alfresco.com/jira/browse/AKU-895) - Ensure AlfBreadcrumbTrail reflects initial path
* [AKU-897](https://issues.alfresco.com/jira/browse/AKU-897) - Ensure it is possible to cancel unstarted upload
1.0.59:
* [AKU-869](https://issues.alfresco.com/jira/browse/AKU-866) - Added alfresco/services/NodePreviewService
* [AKU-870](https://issues.alfresco.com/jira/browse/AKU-870) - Ensure HeaderCell sorting works with AlfFilteredList
* [AKU-871](https://issues.alfresco.com/jira/browse/AKU-871) - Accessibility updates to AlfMenuBarSelectItems
* [AKU-872](https://issues.alfresco.com/jira/browse/AKU-872) - Accessibility updates to AlfCheckableMenuItem
* [AKU-873](https://issues.alfresco.com/jira/browse/AKU-873) - Accessibility updates to AlfMenuBarSelect
* [AKU-874](https://issues.alfresco.com/jira/browse/AKU-874) - Support alternate true/false values on Checkbox
* [AKU-882](https://issues.alfresco.com/jira/browse/AKU-882) - Added alfresco/forms/controls/SelectedListItems
* [AKU-896](https://issues.alfresco.com/jira/browse/AKU-896) - Update clickable button area
1.0.58:
* [AKU-207](https://issues.alfresco.com/jira/browse/AKU-207) - Add support for change type action
* [AKU-820](https://issues.alfresco.com/jira/browse/AKU-820) - Added visual progress indicator to UploadMonitor
* [AKU-832](https://issues.alfresco.com/jira/browse/AKU-832) - Update min/max actions on StickyPanel
* [AKU-838](https://issues.alfresco.com/jira/browse/AKU-838) - Test selectors for BaseFormControl
* [AKU-839](https://issues.alfresco.com/jira/browse/AKU-839) - Test selectors for AlfTabContainer
* [AKU-846](https://issues.alfresco.com/jira/browse/AKU-846) - Form dialog disable button behaviour
* [AKU-852](https://issues.alfresco.com/jira/browse/AKU-852) - Add fail icon to UploadMonitor
* [AKU-860](https://issues.alfresco.com/jira/browse/AKU-860) - Support for cancel request to join site
* [AKU-862](https://issues.alfresco.com/jira/browse/AKU-862) - Improve DND file upload highlighting behaviour
* [AKU-864](https://issues.alfresco.com/jira/browse/AKU-864) - UploadContainer style changes
* [AKU-865](https://issues.alfresco.com/jira/browse/AKU-865) - Prevent notification interaction blocking
* [AKU-867](https://issues.alfresco.com/jira/browse/AKU-867) - Improve error handling output
* [AKU-875](https://issues.alfresco.com/jira/browse/AKU-875) - Defensive coding around list loading message hiding
1.0.57:
* [AKU-834](https://issues.alfresco.com/jira/browse/AKU-834) - Ensure FileSelect does not fire change event on selection of same file
* [AKU-837](https://issues.alfresco.com/jira/browse/AKU-837) - Externalise MultiSelectInput selectors for testing
* [AKU-844](https://issues.alfresco.com/jira/browse/AKU-844) - Added requestAnimationFrame shim for IE9 (for list fix)
* [AKU-851](https://issues.alfresco.com/jira/browse/AKU-851) - Ensure widgetsForUploadDisplay can be customized for upload services
* [AKU-853](https://issues.alfresco.com/jira/browse/AKU-853) - Improve customization options for upload dialogs
* [AKU-855](https://issues.alfresco.com/jira/browse/AKU-855) - Support warnIfNotAvailable message for Date renderer
* [AKU-859](https://issues.alfresco.com/jira/browse/AKU-859) - Ensure compactMode option on Paginator works correctly
* [AKU-863](https://issues.alfresco.com/jira/browse/AKU-863) - Support for renderFilter client properties for models defined within widgets with currentItem
1.0.56:
* [AKU-795](https://issues.alfresco.com/jira/browse/AKU-795) - Cancel in-progress uploads from UploadMonitor
* [AKU-796](https://issues.alfresco.com/jira/browse/AKU-796) - Configurable action suppport in UploadMonitor
* [AKU-840](https://issues.alfresco.com/jira/browse/AKU-840) - Updates to preview MIME type conditions for video
* [AKU-842](https://issues.alfresco.com/jira/browse/AKU-842) - Added missing localization to dialog close icon
* [AKU-843](https://issues.alfresco.com/jira/browse/AKU-843) - Improve StickPanel overlay click handling
* [AKU-847](https://issues.alfresco.com/jira/browse/AKU-847) - Update PublishAction to support label config
1.0.55:
* [AKU-817](https://issues.alfresco.com/jira/browse/AKU-817) - Prevent double encoding of tooltips on menu items
* [AKU-819](https://issues.alfresco.com/jira/browse/AKU-819) - Added non-Share create/edit site behaviour
* [AKU-821](https://issues.alfresco.com/jira/browse/AKU-821) - Upload monitor tooltip removal
* [AKU-822](https://issues.alfresco.com/jira/browse/AKU-822) - Upload monitor content scrolling
* [AKU-823](https://issues.alfresco.com/jira/browse/AKU-823) - Ensure minimized upload monitor restores on new uploads
* [AKU-824](https://issues.alfresco.com/jira/browse/AKU-824) - Added support for named targets via NavigationService
* [AKU-825](https://issues.alfresco.com/jira/browse/AKU-825) - Ensure upload monitor never displays NaN as percentage complete
* [AKU-827](https://issues.alfresco.com/jira/browse/AKU-827) - Prevent double encoding of DragAndDropItems
* [AKU-829](https://issues.alfresco.com/jira/browse/AKU-829) - Added support for custom indicator icons
* [AKU-830](https://issues.alfresco.com/jira/browse/AKU-830) - Added configurable support for forthcoming upload API
* [AKU-831](https://issues.alfresco.com/jira/browse/AKU-831) - Updates to AlfHashList hash trigger processing
* [AKU-833](https://issues.alfresco.com/jira/browse/AKU-833) - Improved handling of upload failures
* [AKU-836](https://issues.alfresco.com/jira/browse/AKU-836) - Fixed property spelling error in Grid.js
1.0.54:
* [AKU-785](https://issues.alfresco.com/jira/browse/AKU-785) - Update video preview plugin to play H264 proxy when available
* [AKU-794](https://issues.alfresco.com/jira/browse/AKU-794) - Disable UploadMonitor close during file upload
* [AKU-805](https://issues.alfresco.com/jira/browse/AKU-805) - Prevent double rendering off model previews
* [AKU-807](https://issues.alfresco.com/jira/browse/AKU-807) - Resolved NumberSpinner validation on focus
* [AKU-808](https://issues.alfresco.com/jira/browse/AKU-808) - Supprt permitEmpty with min/max in NumberSpinner
* [AKU-809](https://issues.alfresco.com/jira/browse/AKU-809) - Ensure lists can be scrolled horizontally
* [AKU-812](https://issues.alfresco.com/jira/browse/AKU-812) - Ensure NumberSpinner supports "," as decimal place in appropriate locales
* [AKU-813](https://issues.alfresco.com/jira/browse/AKU-813) - Ensure renderFilter can be used with form children
* [AKU-814](https://issues.alfresco.com/jira/browse/AKU-814) - Added alfresco/lists/utilities/FilterSummary widget
* [AKU-818](https://issues.alfresco.com/jira/browse/AKU-818) - Improve LoggingService filtering configuration
1.0.53:
* [AKU-763](https://issues.alfresco.com/jira/browse/AKU-763) - Add LESS variables to StickyPanel and UploadMonitor
* [AKU-791](https://issues.alfresco.com/jira/browse/AKU-791) - Resolved AlfDialog scrolling issues (in Share)
* [AKU-792](https://issues.alfresco.com/jira/browse/AKU-792) - Improve list loading/rendering message handling
* [AKU-797](https://issues.alfresco.com/jira/browse/AKU-797) - Fixed zoom tooltip text in PDF.js preview plugin
* [AKU-799](https://issues.alfresco.com/jira/browse/AKU-799) - Resolved form dialog margins regression
* [AKU-802](https://issues.alfresco.com/jira/browse/AKU-802) - Resolved list margin regression
1.0.52:
* [AKU-676](https://issues.alfresco.com/jira/browse/AKU-676) - Added alfresco/buttons/DropDownButton
* [AKU-747](https://issues.alfresco.com/jira/browse/AKU-747) - Added alfresco/services/FileUploadService
* [AKU-769](https://issues.alfresco.com/jira/browse/AKU-769) - Support Mac cmd-click to open new tab
* [AKU-787](https://issues.alfresco.com/jira/browse/AKU-787) - Added label node to InlineEditPropery template
* [AKU-788](https://issues.alfresco.com/jira/browse/AKU-788) - Ensure arrow is visible on ellipsis displayed AlfMenuBarPopup
* [AKU-789](https://issues.alfresco.com/jira/browse/AKU-789) - Support page reload option on become site manager
1.0.51:
* [AKU-775](https://issues.alfresco.com/jira/browse/AKU-775) - Improve auto-resizing TinyMCE improvements
* [AKU-777](https://issues.alfresco.com/jira/browse/AKU-777) - Fixed MultiSelect options list expansion
* [AKU-778](https://issues.alfresco.com/jira/browse/AKU-778) - Fixed MultiSelect options filtering
* [AKU-779](https://issues.alfresco.com/jira/browse/AKU-779) - Ensure non-focused filmstrip view previews are paused
* [AKU-780](https://issues.alfresco.com/jira/browse/AKU-780) - Ensure videos in filmstrip view can be replayed
* [AKU-781](https://issues.alfresco.com/jira/browse/AKU-781) - Support client-side propety evaluation in renderFilter
* [AKU-782](https://issues.alfresco.com/jira/browse/AKU-782) - Prevent selection of facet filters when search in progress
* [AKU-784](https://issues.alfresco.com/jira/browse/AKU-784) - Fix drag-and-drop file upload
* [AKU-786](https://issues.alfresco.com/jira/browse/AKU-786) - Allow thumbnail preview of cm:content sub-type
1.0.50:
* [AKU-764](https://issues.alfresco.com/jira/browse/AKU-764) - Added warnings for scoped form controls
* [AKU-766](https://issues.alfresco.com/jira/browse/AKU-766) - Resolve Firefox iframe rendering issues
* [AKU-768](https://issues.alfresco.com/jira/browse/AKU-768) - Added alfresco/upload/UploadMonitor widget
* [AKU-769](https://issues.alfresco.com/jira/browse/AKU-769) - Add mouse middle/control click support for search links
* [AKU-770](https://issues.alfresco.com/jira/browse/AKU-770) - PathTree refresh on root node additions
* [AKU-771](https://issues.alfresco.com/jira/browse/AKU-771) - InlineEditProperty edit value encoding correction
* [AKU-774](https://issues.alfresco.com/jira/browse/AKU-774) - Fixed DebugLog filtering issue
* [AKU-775](https://issues.alfresco.com/jira/browse/AKU-775) - Ensure TinyMCE editor resizes correctly on first use
* [AKU-776](https://issues.alfresco.com/jira/browse/AKU-776) - Ensure "No Data" message is not displayed in lists when loading data
1.0.49:
* [AKU-750](https://issues.alfresco.com/jira/browse/AKU-750) - Support for form submission from textbox on enter key
* [AKU-751](https://issues.alfresco.com/jira/browse/AKU-751) - Support to configure forms to focus first field
* [AKU-752](https://issues.alfresco.com/jira/browse/AKU-752) - Support for title on AlfButton
* [AKU-761](https://issues.alfresco.com/jira/browse/AKU-761) - Support showValidationErrorsImmediately for form fields within ControlRow
* [AKU-765](https://issues.alfresco.com/jira/browse/AKU-765) - Update shims to support textContent use in IE8
1.0.48:
* [AKU-687](https://issues.alfresco.com/jira/browse/AKU-687) - Add "primary-call-to-action" CSS class for AlfButton
* [AKU-700](https://issues.alfresco.com/jira/browse/AKU-700) - Improve list loading to make "smoother"
* [AKU-732](https://issues.alfresco.com/jira/browse/AKU-732) - Add hash update support for AlfBreadcrumbTrail
* [AKU-739](https://issues.alfresco.com/jira/browse/AKU-739) - Make PathTree respond to creation/deletion
* [AKU-742](https://issues.alfresco.com/jira/browse/AKU-742) - Placeholder support for ComboBox
* [AKU-744](https://issues.alfresco.com/jira/browse/AKU-744) - Height config support for FilmStripViewSearchResult
* [AKU-745](https://issues.alfresco.com/jira/browse/AKU-745) - Escaping of variables in AlfBreadcrumbTrail
* [AKU-747](https://issues.alfresco.com/jira/browse/AKU-747) - Created StickyPanel widget
* [AKU-749](https://issues.alfresco.com/jira/browse/AKU-749) - Removed HTML from search count label
* [AKU-754](https://issues.alfresco.com/jira/browse/AKU-754) - Dutch date format correction
* [AKU-759](https://issues.alfresco.com/jira/browse/AKU-759) - AlfShareFooter copyright correction
1.0.47:
* [AKU-679](https://issues.alfresco.com/jira/browse/AKU-679) - Ensure form elementrs pass Wave accessibility checks
* [AKU-703](https://issues.alfresco.com/jira/browse/AKU-703) - Added config option for full-width FacetFilters
* [AKU-715](https://issues.alfresco.com/jira/browse/AKU-715) - Added config option to hide Save/Cancel links in Tag renderer
* [AKU-717](https://issues.alfresco.com/jira/browse/AKU-717) - Added config option to auto-resize TinyMCE editor
* [AKU-723](https://issues.alfresco.com/jira/browse/AKU-723) - Prevent double encoding in InlineEditProperty
* [AKU-725](https://issues.alfresco.com/jira/browse/AKU-725) - Fix TypeError in ActionService (Edit Offline action)
* [AKU-734](https://issues.alfresco.com/jira/browse/AKU-734) - Ensure selected items retained on sort order change
* [AKU-736](https://issues.alfresco.com/jira/browse/AKU-736) - Prevent double encoding in SearchBox results
* [AKU-737](https://issues.alfresco.com/jira/browse/AKU-737) - Fix NavigationService page relative site handling
* [AKU-738](https://issues.alfresco.com/jira/browse/AKU-738) - Fix scoping on ContentService requests
* [AKU-743](https://issues.alfresco.com/jira/browse/AKU-743) - Tooltip delegates resize requests
1.0.46:
* [AKU-692](https://issues.alfresco.com/jira/browse/AKU-692) - Resolved iframe in Firefox issues
* [AKU-706](https://issues.alfresco.com/jira/browse/AKU-706) - Ensure actions menu items are visible
* [AKU-707](https://issues.alfresco.com/jira/browse/AKU-707) - Improve AlfSideBarContainer height calculations
* [AKU-711](https://issues.alfresco.com/jira/browse/AKU-711) - Ensure carat appears in TinyMCE editor in dialogs
* [AKU-713](https://issues.alfresco.com/jira/browse/AKU-713) - Fix thumbnail height/width issues
* [AKU-714](https://issues.alfresco.com/jira/browse/AKU-714) - Verify thumbnail margin configuration
* [AKU-719](https://issues.alfresco.com/jira/browse/AKU-719) - Update preferences key for CommentsList
* [AKU-721](https://issues.alfresco.com/jira/browse/AKU-721) - Prevent double encoding in AlfDocumentFilters
* [AKU-727](https://issues.alfresco.com/jira/browse/AKU-727) - Hide IE10/11 "X" in input fields
* [AKU-731](https://issues.alfresco.com/jira/browse/AKU-731) - Prevent double-escaping of hash by updateHash function
1.0.45:
* [AKU-665](https://issues.alfresco.com/jira/browse/AKU-665) - Clean Aikau internal attributes from payload before XHR requests
* [AKU-694](https://issues.alfresco.com/jira/browse/AKU-694) - Ensure that generation of download zip can be cancelled
* [AKU-695](https://issues.alfresco.com/jira/browse/AKU-695) - Ensure list is refreshed on partial upload
* [AKU-696](https://issues.alfresco.com/jira/browse/AKU-696) - Ensure page cannot be scrolled when dialogs are displayed
* [AKU-698](https://issues.alfresco.com/jira/browse/AKU-698) - Ensure placeholder text is not shown with auto-complete
* [AKU-701](https://issues.alfresco.com/jira/browse/AKU-701) - Allow TextBox to configure "autocomplete" attribute
* [AKU-704](https://issues.alfresco.com/jira/browse/AKU-704) - Grid should only resize root widgets
* [AKU-718](https://issues.alfresco.com/jira/browse/AKU-718) - Ensure long dialogs can be scrolled in IE8/IE9
* [AKU-724](https://issues.alfresco.com/jira/browse/AKU-724) - Correction to function name
1.0.44:
* [AKU-670](https://issues.alfresco.com/jira/browse/AKU-670) - Ensure twister supports resizing
* [AKU-674](https://issues.alfresco.com/jira/browse/AKU-674) - Appendix support for AlfListView
* [AKU-675](https://issues.alfresco.com/jira/browse/AKU-675) - Support for expandable panel in grids
* [AKU-682](https://issues.alfresco.com/jira/browse/AKU-682) - Added alfresco/forms/controls/PushButtons widget
* [AKU-683](https://issues.alfresco.com/jira/browse/AKU-683) - Support for disabling/re-labelling button on form submit
* [AKU-689](https://issues.alfresco.com/jira/browse/AKU-689) - Gallery view cell resizing fix
* [AKU-693](https://issues.alfresco.com/jira/browse/AKU-693) - Fixed suggestions scoping in SearchService
* [AKU-697](https://issues.alfresco.com/jira/browse/AKU-697) - Ensure consistent preview heigh in SearchFilmStripView
1.0.43:
* [AKU-416](https://issues.alfresco.com/jira/browse/AKU-416) - Added download action definition
* [AKU-663](https://issues.alfresco.com/jira/browse/AKU-663) - Updated PathTree to highlight current path
* [AKU-664](https://issues.alfresco.com/jira/browse/AKU-664) - Updated SearchService to support non-hash based sorting
* [AKU-668](https://issues.alfresco.com/jira/browse/AKU-668) - Updated UploadService to use dialog with single, label changing button
* [AKU-671](https://issues.alfresco.com/jira/browse/AKU-671) - Re-center dialogs on dimension change
* [AKU-672](https://issues.alfresco.com/jira/browse/AKU-672) - Fit TinyMCE form control into comment dialog
* [AKU-673](https://issues.alfresco.com/jira/browse/AKU-673) - Support full screen dialogs in CommentsList
* [AKU-677](https://issues.alfresco.com/jira/browse/AKU-677) - Added "smart" download capabilities
* [AKU-678](https://issues.alfresco.com/jira/browse/AKU-678) - Fixed AlfButton accessibility issues
* [AKU-680](https://issues.alfresco.com/jira/browse/AKU-680) - Support encoded facet filter selection
* [AKU-681](https://issues.alfresco.com/jira/browse/AKU-681) - Update renderFilter config to support token substitution
* [AKU-685](https://issues.alfresco.com/jira/browse/AKU-685) - Prevent encoding display error when setting browser title bar
* [AKU-690](https://issues.alfresco.com/jira/browse/AKU-690) - Keyboard navigation support for widgets in grid with no focus function
1.0.42:
* [AKU-647](https://issues.alfresco.com/jira/browse/AKU-647) - AlfDocumentList extends AlfFilteredList
* [AKU-652](https://issues.alfresco.com/jira/browse/AKU-652) - Ensure Logo title generates correctly
* [AKU-653](https://issues.alfresco.com/jira/browse/AKU-653) - Row mixes _AlfDndDocumentUploadMixin
* [AKU-654](https://issues.alfresco.com/jira/browse/AKU-654) - Added alfresco/layout/UploadContainer
* [AKU-655](https://issues.alfresco.com/jira/browse/AKU-655) - Ensure delete actions triggers reload
* [AKU-657](https://issues.alfresco.com/jira/browse/AKU-657) - Resize detection moved to ResizeMixin
* [AKU-658](https://issues.alfresco.com/jira/browse/AKU-658) - Ensure CrudService uses responseScope
* [AKU-659](https://issues.alfresco.com/jira/browse/AKU-659) - Ensure full screen dialogs have fixed position
* [AKU-660](https://issues.alfresco.com/jira/browse/AKU-660) - Ensure MultiSelectInput supports fixed options
* [AKU-661](https://issues.alfresco.com/jira/browse/AKU-661) - Encode username on leave site
* [AKU-662](https://issues.alfresco.com/jira/browse/AKU-662) - Ensure Logo uses either class or image source
* [AKU-666](https://issues.alfresco.com/jira/browse/AKU-666) - Ensure upload file selection is required
* [AKU-667](https://issues.alfresco.com/jira/browse/AKU-667) - Ensure UploadService cancel aborts requests
* [AKU-679](https://issues.alfresco.com/jira/browse/AKU-679) - Remove superfluous title attributes from BaseFormControl
1.0.41:
* [AKU-632](https://issues.alfresco.com/jira/browse/AKU-632) - Support configurable images in Carousel
* [AKU-637](https://issues.alfresco.com/jira/browse/AKU-637) - Disable draggable thumbnails in AlfFilmStripView
* [AKU-638](https://issues.alfresco.com/jira/browse/AKU-638) - Support configurable height in AlfFilmStripView
* [AKU-642](https://issues.alfresco.com/jira/browse/AKU-642) - Updated drag-and-drop upload highlighting
* [AKU-643](https://issues.alfresco.com/jira/browse/AKU-643) - Added simple clickable icon widget
* [AKU-644](https://issues.alfresco.com/jira/browse/AKU-644) - Prevent ClassicWindow overflowing content
* [AKU-646](https://issues.alfresco.com/jira/browse/AKU-646) - Capture resize events in FixedHeaderFooter
* [AKU-648](https://issues.alfresco.com/jira/browse/AKU-648) - Override default itemKeyProperty in AlfSearchList
1.0.40:
* [AKU-626](https://issues.alfresco.com/jira/browse/AKU-626) - Thumbnail highlighting on selection
* [AKU-627](https://issues.alfresco.com/jira/browse/AKU-627) - Thumbnail click to select support
* [AKU-628](https://issues.alfresco.com/jira/browse/AKU-628) - Gallery view thumbnail resizing
* [AKU-629](https://issues.alfresco.com/jira/browse/AKU-629) - Gallery view layout fixes
* [AKU-630](https://issues.alfresco.com/jira/browse/AKU-630) - Truncate display name on GalleryThumbnail
* [AKU-631](https://issues.alfresco.com/jira/browse/AKU-631) - Configurable Thumbnail rendering
* [AKU-633](https://issues.alfresco.com/jira/browse/AKU-633) - Link support for Logo
* [AKU-634](https://issues.alfresco.com/jira/browse/AKU-634) - Disable resizing in sidebar
1.0.39:
* [AKU-548](https://issues.alfresco.com/jira/browse/AKU-548) - New bulk action support (sync to cloud)
* [AKU-605](https://issues.alfresco.com/jira/browse/AKU-605) - Fix horizontal scrollbars in IE and possibly address dialog width-change on hover issue (IE only)
* [AKU-610](https://issues.alfresco.com/jira/browse/AKU-610) - AlfFilteredList hash ignored on load in non-English locales
* [AKU-611](https://issues.alfresco.com/jira/browse/AKU-611) - Navigation target/type now configurable in _SearchResultLinkMixin
* [AKU-612](https://issues.alfresco.com/jira/browse/AKU-612) - Send Accept-Language header with all XHR requests
* [AKU-614](https://issues.alfresco.com/jira/browse/AKU-614) - Dialogs should now resize larger on browser resize, where apropriate
* [AKU-615](https://issues.alfresco.com/jira/browse/AKU-615) - Selection now retained when changing number of displayed columns in search results
* [AKU-617](https://issues.alfresco.com/jira/browse/AKU-617) - Request to join a site now correctly returns user to their home page (defaults to their dashboard)
* [AKU-619](https://issues.alfresco.com/jira/browse/AKU-619) - "Advanced Search with name, title or description is not working"
* [AKU-622](https://issues.alfresco.com/jira/browse/AKU-622) - Remove default drag/drop capability within faceted search results
* [AKU-623](https://issues.alfresco.com/jira/browse/AKU-623) - Make user home page configurable in SiteService and default to /dashboard
1.0.38:
* [AKU-559](https://issues.alfresco.com/jira/browse/AKU-559) - Widget instantiation order different in non English languages
* [AKU-590](https://issues.alfresco.com/jira/browse/AKU-590) - Correct Dojo locale initialisation problems
* [AKU-598](https://issues.alfresco.com/jira/browse/AKU-598) - Properly handle ALF_DOCUMENT_TAGGED topic
* [AKU-600](https://issues.alfresco.com/jira/browse/AKU-600) - Resize FixedHeaderFooter widget when header/footer children visibility is altered
* [AKU-604](https://issues.alfresco.com/jira/browse/AKU-604) - Field focus order incorrect in non English languages
* [AKU-606](https://issues.alfresco.com/jira/browse/AKU-606) - Site landing page now configurable (still defaults to /dashboard)
* [AKU-607](https://issues.alfresco.com/jira/browse/AKU-607) - Aikau actions now work properly in a search result list
* [AKU-608](https://issues.alfresco.com/jira/browse/AKU-608) - XhrActions now supports widgetsForActions
* [AKU-609](https://issues.alfresco.com/jira/browse/AKU-609) - Support multiple nodes when adding/removing favourites
1.0.37:
* [AKU-586](https://issues.alfresco.com/jira/browse/AKU-586) - Ensure AlfTagFilters publish to correct scope
* [AKU-591](https://issues.alfresco.com/jira/browse/AKU-591) - Ensure delete action issues reload request on completion
* [AKU-545](https://issues.alfresco.com/jira/browse/AKU-545) - Support Move in bulk actions
* [AKU-554](https://issues.alfresco.com/jira/browse/AKU-554) - Support configurable URIs in SearchBox
* [AKU-555](https://issues.alfresco.com/jira/browse/AKU-555) - Externalise LiveSearchItem creation in SearchBox
* [AKU-583](https://issues.alfresco.com/jira/browse/AKU-583) - Support publishOnAdd for AlfTabContainer
* [AKU-467](https://issues.alfresco.com/jira/browse/AKU-467) - Support for truncated text in Select form control
* [AKU-596](https://issues.alfresco.com/jira/browse/AKU-596) - Defend against corrupt thumbnail rendition artifacts
1.0.36.3:
* [AKU-597](https://issues.alfresco.com/jira/browse/AKU-597) - Ensure AlfSearchList respects initial URL hash parameters
* [AKU-599](https://issues.alfresco.com/jira/browse/AKU-599) - Prevent search terms from being truncated
1.0.36.2:
* [AKU-595](https://issues.alfresco.com/jira/browse/AKU-595) - Ensure LeftAndRight ordering is correct
1.0.36.1:
* [AKU-592](https://issues.alfresco.com/jira/browse/AKU-592) - Ensure PublishingDropDown cancellation behaves correctly
* [AKU-593](https://issues.alfresco.com/jira/browse/AKU-593) - Ensure dialog height is sized correctly for content
* [AKU-588](https://issues.alfresco.com/jira/browse/AKU-588) - Ensure GalleryView renders correctly on initial load
1.0.36:
* [AKU-464](https://issues.alfresco.com/jira/browse/AKU-464) - DateTextBox support current date config
* [AKU-465](https://issues.alfresco.com/jira/browse/AKU-465) - Added place holder support in DateTextBox
* [AKU-468](https://issues.alfresco.com/jira/browse/AKU-468) - Use consistent font in TextArea
* [AKU-544](https://issues.alfresco.com/jira/browse/AKU-544) - Bulk action support for copy
* [AKU-547](https://issues.alfresco.com/jira/browse/AKU-547) - Bulk action support for start workflow
* [AKU-559](https://issues.alfresco.com/jira/browse/AKU-559) - Async dependency handling
* [AKU-568](https://issues.alfresco.com/jira/browse/AKU-568) - Added alfresco/layout/DynamicWidgets
* [AKU-571](https://issues.alfresco.com/jira/browse/AKU-571) - Prevent form control cropping in dialogs
* [AKU-573](https://issues.alfresco.com/jira/browse/AKU-573) - Prevent creating tabs with duplicate IDs in AlfTabContainer
* [AKU-574](https://issues.alfresco.com/jira/browse/AKU-574) - Ensure AlfSideBarContainer can be re-opened
* [AKU-578](https://issues.alfresco.com/jira/browse/AKU-578) - Suppress user preferences in LoggingService
* [AKU-579](https://issues.alfresco.com/jira/browse/AKU-579) - Pervent nnnecessary scrollbar showing in form dialog
* [AKU-580](https://issues.alfresco.com/jira/browse/AKU-580) - PublishingDropDown cancel subscription updates
* [AKU-584](https://issues.alfresco.com/jira/browse/AKU-584) - SearchService scoping fix
1.0.35:
* [AKU-551](https://issues.alfresco.com/jira/browse/AKU-551) - Retain item selection when switching views
* [AKU-557](https://issues.alfresco.com/jira/browse/AKU-557) - Added support for "full screen" dialogs
* [AKU-558](https://issues.alfresco.com/jira/browse/AKU-558) - Remove text-decoration from menu item links
* [AKU-559](https://issues.alfresco.com/jira/browse/AKU-559) - Address non-default locale AlfFilteredList rendering
* [AKU-563](https://issues.alfresco.com/jira/browse/AKU-563) - Improve InlineEditProperty re-rendering on updates
* [AKU-565](https://issues.alfresco.com/jira/browse/AKU-565) - Added 20x20 delete icon
* [AKU-567](https://issues.alfresco.com/jira/browse/AKU-567) - Defensive code against reference error in DebugLog
* [AKU-569](https://issues.alfresco.com/jira/browse/AKU-569) - Support disable in PublishingDropDownMenu
* [AKU-572](https://issues.alfresco.com/jira/browse/AKU-572) - FixedHeaderFooter height calculations
* [AKU-575](https://issues.alfresco.com/jira/browse/AKU-575) - ComboBox on change event handling updates
* [AKU-576](https://issues.alfresco.com/jira/browse/AKU-576) - AlfGalleryViewSlider default column handling updates
* [AKU-577](https://issues.alfresco.com/jira/browse/AKU-577) - IE9 keyboard navigation fix in menu items
* [AKU-581](https://issues.alfresco.com/jira/browse/AKU-581) - Ensure form control labels are visible
1.0.34:
* [AKU-507](https://issues.alfresco.com/jira/browse/AKU-507) - Ensure clearing filters for AlfFilteredList loads data
* [AKU-538](https://issues.alfresco.com/jira/browse/AKU-538) - Updated AlfFilmStripView carousel to set height appropriately
* [AKU-541](https://issues.alfresco.com/jira/browse/AKU-541) - Added support for OR in forms rule engine
* [AKU-543](https://issues.alfresco.com/jira/browse/AKU-543) - Reset new style buttons not have bold text
* [AKU-546](https://issues.alfresco.com/jira/browse/AKU-546) - Added support for bulk delete on selected items
* [AKU-550](https://issues.alfresco.com/jira/browse/AKU-550) - Upload widgets
* [AKU-556](https://issues.alfresco.com/jira/browse/AKU-556) - Ensure "In folder" links on search results work
* [AKU-559](https://issues.alfresco.com/jira/browse/AKU-559) - Resolved missing dependency issue from non en locales
1.0.33:
* [AKU-478](https://issues.alfresco.com/jira/browse/AKU-478) - Dynamic visibility width calculations in HorizontalWidgets
* [AKU-516](https://issues.alfresco.com/jira/browse/AKU-516) - Reduce options calls to server from MultiSelectInput
* [AKU-518](https://issues.alfresco.com/jira/browse/AKU-518) - Add default primary button to certain dialogs
* [AKU-532](https://issues.alfresco.com/jira/browse/AKU-532) - Multi-select download as zip in search support
* [AKU-534](https://issues.alfresco.com/jira/browse/AKU-534) - Changed default search style in FilteringSelect
* [AKU-536](https://issues.alfresco.com/jira/browse/AKU-536) - Remove encoding from AlfShareFooter
* [AKU-537](https://issues.alfresco.com/jira/browse/AKU-537) - Take AlfGalleryViewSlider columns configuration from AlfGalleryView
* [AKU-539](https://issues.alfresco.com/jira/browse/AKU-539) - Fix SingleTextFieldForm layout (also in 1.0.32.1)
* [AKU-540](https://issues.alfresco.com/jira/browse/AKU-540) - Fix default InlinedEditProperty permissions (also in 1.0.31.1 and 1.0.32.2)
* [AKU-542](https://issues.alfresco.com/jira/browse/AKU-542) - Remove animation from dialog fade in/out (now configurable)
* [AKU-549](https://issues.alfresco.com/jira/browse/AKU-549) - Remove default facets from SearchService
1.0.32:
* [AKU-460](https://issues.alfresco.com/jira/browse/AKU-460) - Improved handling of hidden terms in alfresco/headers/SearchBox
* [AKU-515](https://issues.alfresco.com/jira/browse/AKU-515) - Fixed pubSubScope handling in alfresco/renderers/Thumbnail
* [AKU-521](https://issues.alfresco.com/jira/browse/AKU-521) - Improved change event handling in alfresco/forms/controls/DateTextBox
* [AKU-523](https://issues.alfresco.com/jira/browse/AKU-523) - Added support for dynamic warning configuration in forms
* [AKU-526](https://issues.alfresco.com/jira/browse/AKU-526) - Updated alfresco/documentlibrary/views/AlfFilmStripView to support infinite scrolling mode
* [AKU-528](https://issues.alfresco.com/jira/browse/AKU-528) - LESS support for global link colour and decoration
* [AKU-529](https://issues.alfresco.com/jira/browse/AKU-529) - Fixed alfresco/layout/FixedHeaderFooter resizing issue
* [AKU-531](https://issues.alfresco.com/jira/browse/AKU-531) - Created service registry to prevent duplicate service subscriptions
1.0.31:
* [AKU-290](https://issues.alfresco.com/jira/browse/AKU-290) - Added configurable support for alfresco/lists/Paginator to hide when list data is requested
* [AKU-483](https://issues.alfresco.com/jira/browse/AKU-483) - Update alfresco/layout/FixedHeaderFooter to assume numeric height is intended to be pixels
* [AKU-492](https://issues.alfresco.com/jira/browse/AKU-492) - Improved undefined variable handling by widgets used by doclib.lib.js
* [AKU-494](https://issues.alfresco.com/jira/browse/AKU-494) - Updated alfresco/navigation/PathTree to support useHash configuration
* [AKU-498](https://issues.alfresco.com/jira/browse/AKU-498) - Added support to enable list item focus highlighting
* [AKU-499](https://issues.alfresco.com/jira/browse/AKU-499) - Correction of search icon placement in alfresco/header/SearchBox
* [AKU-502](https://issues.alfresco.com/jira/browse/AKU-502) - Improved alt text for alfresco/renderers/InlineEditProperty with missing propertyToRender
* [AKU-503](https://issues.alfresco.com/jira/browse/AKU-503) - Updated default views and alfresco/renderers/MoreInfo to have a consistent approach to inline editing title and description
* [AKU-504](https://issues.alfresco.com/jira/browse/AKU-504) - Ensure cross-browser tag creation via keyboard in alfresco/renderers/Tags
* [AKU-505](https://issues.alfresco.com/jira/browse/AKU-505) - Ensure browser back button re-applies filters for alfresco/lists/AlfFilteredList
* [AKU-506](https://issues.alfresco.com/jira/browse/AKU-506) - Improved resizing behaviour in alfresco/layout/AlfSideBarContainer, alfresco/layout/AlfTabContainer and alfresco/layout/FixedHeaderFooter
* [AKU-507](https://issues.alfresco.com/jira/browse/AKU-507) - Resolved alfresco/lists/AlfFilteredList regressions
* [AKU-508](https://issues.alfresco.com/jira/browse/AKU-508) - Ensure that lists don't reload when dialogs are displayed
* [AKU-509](https://issues.alfresco.com/jira/browse/AKU-509) - Ensure alfresco/renderers/AvatarThumbnail uses correct URL for user names containing %
* [AKU-510](https://issues.alfresco.com/jira/browse/AKU-510) - Ensure alfresco/accessibility/AccessibilityMenu focues on items accessed via skip links
* [AKU-514](https://issues.alfresco.com/jira/browse/AKU-514) - Updates to alfresco/layout/AlfSideBarContainer layout to prevent resizer overlapping content
* [AKU-520](https://issues.alfresco.com/jira/browse/AKU-520) - Accessibilitt contrast correction on button colours
* [AKU-522](https://issues.alfresco.com/jira/browse/AKU-522) - Added configuration option to prevent lists automatically requesting data when created
* [AKU-527](https://issues.alfresco.com/jira/browse/AKU-527) - Update to make alfresco/services/SearchService APIs configurable
1.0.30:
* [AKU-452](https://issues.alfresco.com/jira/browse/AKU-452) - Button re-styling and LESS updates
* [AKU-472](https://issues.alfresco.com/jira/browse/AKU-472) - Support search without URL hashing
* [AKU-475](https://issues.alfresco.com/jira/browse/AKU-475) - AlfCheckableMenuItem hashName fix
* [AKU-476](https://issues.alfresco.com/jira/browse/AKU-476) - Improved local storage fallbacks in lists
* [AKU-477](https://issues.alfresco.com/jira/browse/AKU-477) - Publish ALF_PAGE_WIGETS_READY when dynamically creating widgets
* [AKU-488](https://issues.alfresco.com/jira/browse/AKU-488) - Ensure AlfSearchList honours selectedScope configuration
* [AKU-489](https://issues.alfresco.com/jira/browse/AKU-489) - Improved initial height calculations for AlfSideBarContainer and AlfTabContainer
* [AKU-490](https://issues.alfresco.com/jira/browse/AKU-490) - Ensure pending form validation errors are cleared on valid data entry
* [AKU-491](https://issues.alfresco.com/jira/browse/AKU-491) - Ensure NumberSpinner can accept empty value
* [AKU-493](https://issues.alfresco.com/jira/browse/AKU-493) - Prevent duplicates in MultiSelectInput
* [AKU-495](https://issues.alfresco.com/jira/browse/AKU-495) - Fixed filter display in AlfBreadcrumbTrail
* [AKU-496](https://issues.alfresco.com/jira/browse/AKU-496) - All documents filter message update
* [AKU-497](https://issues.alfresco.com/jira/browse/AKU-497) - Fixed list paging with hash enabled
* [AKU-500](https://issues.alfresco.com/jira/browse/AKU-500) - Fixed alfResponseScope issues with global scope logic processing
1.0.29:
* [AKU-405](https://issues.alfresco.com/jira/browse/AKU-405) - Added alfresco/forms/TabbedControls
* [AKU-421](https://issues.alfresco.com/jira/browse/AKU-421) - Updates to alfresco/renderers/InlineEditPropertyLink publications
* [AKU-422](https://issues.alfresco.com/jira/browse/AKU-422) - Fixed alfresco/documentlibrary/AlfBreadcrumbTrail scoping issues
* [AKU-424](https://issues.alfresco.com/jira/browse/AKU-428) - Ensure gallery views render correct column count initially
* [AKU-447](https://issues.alfresco.com/jira/browse/AKU-447) - Updates to action handling to support multiple scoped Document Library instances
* [AKU-448](https://issues.alfresco.com/jira/browse/AKU-448) - Long dialog layout tweaks
* [AKU-449](https://issues.alfresco.com/jira/browse/AKU-449) - Updated ESC key handling for dialogs
* [AKU-450](https://issues.alfresco.com/jira/browse/AKU-450) - Updated alfresco/search/AlfSearchResult to make it more configurable/extendable
* [AKU-453](https://issues.alfresco.com/jira/browse/AKU-453) - Encode search result folder name characters for navigation purposes
* [AKU-455](https://issues.alfresco.com/jira/browse/AKU-455) - Hide Dojo error display in alfresco/forms/controls/NumberSpinner
* [AKU-456](https://issues.alfresco.com/jira/browse/AKU-456) - Allow menu bar popups to open on hover
* [AKU-457](https://issues.alfresco.com/jira/browse/AKU-457) - Decimal place support in alfresco/forms/controls/NumberSpinner
* [AKU-458](https://issues.alfresco.com/jira/browse/AKU-458) - Support read only mode for alfresco/forms/controls/MultiSelectInput
* [AKU-466](https://issues.alfresco.com/jira/browse/AKU-466) - Ensure alfresco/layout/AlfTabContainer will render in dialogs
* [AKU-479](https://issues.alfresco.com/jira/browse/AKU-479) - Support accented characters in facet filters
* [AKU-480](https://issues.alfresco.com/jira/browse/AKU-480) - Further updates to alfresco/renderers/InlineEditPropertyLink publications
* [AKU-487](https://issues.alfresco.com/jira/browse/AKU-487) - Further alfresco/documentlibrary/AlfBreadcrumbTrail updates
* [AKU-462](https://issues.alfresco.com/jira/browse/AKU-462) - General Document Library tweaks
1.0.28:
* [AKU-415](https://issues.alfresco.com/jira/browse/AKU-415) - Add hash support to [`AlfFilteredList`](src/main/resources/alfresco/lists/AlfFilteredList.js)
* [AKU-437](https://issues.alfresco.com/jira/browse/AKU-437) - It is now possible to initialise a [`Picker`](src/main/resources/alfresco/forms/controls/Picker.js) with the `currentItem` as its value, by specifying `useCurrentItemAsValue: true` in the Picker config
* [AKU-451](https://issues.alfresco.com/jira/browse/AKU-451) - Ensure form controls can be displayed (events are now setup correctly) on tabs
* [AKU-459](https://issues.alfresco.com/jira/browse/AKU-459) - Ability to set user home page preference (`org.alfresco.share.user.homePage`) via a publish to the [`UserService`](src/main/resources/alfresco/services/UserService.js) on the topic `ALF_SET_USER_HOME_PAGE`
1.0.27:
* [AKU-420](https://issues.alfresco.com/jira/browse/AKU-420) - `currentPageSize` being reset by [`AlfSortablePaginatedList`](src/main/resources/alfresco/lists/AlfSortablePaginatedList.js) in `postMixInProperties()` because of hardcoded preference name (fixed by making configurable property)
* [AKU-423](https://issues.alfresco.com/jira/browse/AKU-423) - `formSubmissionGlobal` and `formSubmissionScope` properties added to [`DialogService`](src/main/resources/alfresco/services/DialogService.js) `publishPayload` config property, to give greater control over resultant dialog-form submission
* [AKU-425](https://issues.alfresco.com/jira/browse/AKU-425) - Resolve all Blocker and Critical issues on Sonar raised by the SQALE plugin
* [AKU-430](https://issues.alfresco.com/jira/browse/AKU-430) - [`DateTextBox`](src/main/resources/alfresco/forms/controls/DateTextBox.js) does not handle empty values very well (converts it to "epoch" date, i.e. 1/1/1970)
* [AKU-431](https://issues.alfresco.com/jira/browse/AKU-431) - [`NumberSpinner`](src/main/resources/alfresco/forms/controls/NumberSpinner.js) cannot be submitted with empty value (fixed by adding optional `permitEmpty` property)
* [AKU-436](https://issues.alfresco.com/jira/browse/AKU-436) - [`NotificationService`](src/main/resources/alfresco/services/NotificationService.js) notifications could be scrolled or even appear off screen (fixed) and also added new close button for manual closing of long-lasting notifications
1.0.26:
* [AKU-18](https://issues.alfresco.com/jira/browse/AKU-18) - Update [`DebugLog`](src/main/resources/alfresco/logging/DebugLog.js) to make it more useful for testing
* [AKU-267](https://issues.alfresco.com/jira/browse/AKU-267) - Add a mechanism to allow a "Create Another" pattern for dialogs
* [AKU-403](https://issues.alfresco.com/jira/browse/AKU-403) - [`Dashlet`](src/main/resources/alfresco/dashlets/Dashlet.js) does not support LESS theming
* [AKU-407](https://issues.alfresco.com/jira/browse/AKU-407) - Add support for publishing when clicking on an [`AvatarThumbnail`](src/main/resources/alfresco/renderers/AvatarThumbnail.js)
* [AKU-409](https://issues.alfresco.com/jira/browse/AKU-409) - Fix [`DateTextBox`](src/main/resources/alfresco/forms/controls/DateTextBox.js) to handle invalid initial values better
* [AKU-410](https://issues.alfresco.com/jira/browse/AKU-410) - Create prototype [`Dashlet`](src/main/resources/alfresco/dashlets/Dashlet.js) for displaying _Favorites_ and _Recents_
* [AKU-412](https://issues.alfresco.com/jira/browse/AKU-412) - Fix intermittent unit test failures
* [AKU-413](https://issues.alfresco.com/jira/browse/AKU-413) - Fix "dragging an item containing nested items causes single-use palette to empty"
* [AKU-414](https://issues.alfresco.com/jira/browse/AKU-414) - [`AlfSearchList`](src/main/resources/alfresco/search/AlfSearchList.js) does not work with [`Paginator`](src/main/resources/alfresco/lists/Paginator.js)
1.0.25:
* [AKU-367](https://issues.alfresco.com/jira/browse/AKU-367) - Added alfresco/html/HR widget
* [AKU-377](https://issues.alfresco.com/jira/browse/AKU-377) - Update alfresco/layout/InfiniteScrollArea to request more list data when vertical space is available
* [AKU-378](https://issues.alfresco.com/jira/browse/AKU-378) - Update form to provide option to not validate on load
* [AKU-390](https://issues.alfresco.com/jira/browse/AKU-390) - Drag and drop nested item re-ordering fixes
* [AKU-396](https://issues.alfresco.com/jira/browse/AKU-396) - Update alfresco/search/AlfSearchResult to include manage aspects in filtered actions
* [AKU-397](https://issues.alfresco.com/jira/browse/AKU-397) - Refactor of alfresco/core/UrlUtils and including abstraction of addQueryParam from alfresco/services/CrudService
* [AKU-398](https://issues.alfresco.com/jira/browse/AKU-398) - Added alfresco/forms/controls/SitePicker
* [AKU-399](https://issues.alfresco.com/jira/browse/AKU-399) - Drag amd drop nested acceptance type verification handling
* [AKU-400](https://issues.alfresco.com/jira/browse/AKU-400) - Update alfresco/core/NotificationUtils to fix displayPrompt function regression
1.0.24:
* [AKU-337](https://issues.alfresco.com/jira/browse/AKU-337) - Remove Share dependencies from alfresco/dashlets/Dashlet
* [AKU-375](https://issues.alfresco.com/jira/browse/AKU-375) - Improvements to alfresco/layout/Twister
* [AKU-376](https://issues.alfresco.com/jira/browse/AKU-376) - Improvements to alfresco/services/InfiniteScrollService
* [AKU-379](https://issues.alfresco.com/jira/browse/AKU-379) - Prevent single use DND times being added via keyboard actions
* [AKU-380](https://issues.alfresco.com/jira/browse/AKU-380) - Support for DND nested accept types
* [AKU-382](https://issues.alfresco.com/jira/browse/AKU-382) - Fixes for alfresco/forms/Form useHash behaviour
* [AKU-383](https://issues.alfresco.com/jira/browse/AKU-383) - Fixes for alfresco/forms/Form auto-save behaviour
* [AKU-385](https://issues.alfresco.com/jira/browse/AKU-385) - Apply logging filters to pub/sub console output
* [AKU-388](https://issues.alfresco.com/jira/browse/AKU-388) - Ensure alfresco/menus/AlfMenuItem supports PROCESS payload type
* [AKU-392](https://issues.alfresco.com/jira/browse/AKU-392) - Fix reload behaviour on infinite scroll lists
* [AKU-395](https://issues.alfresco.com/jira/browse/AKU-395) - Ensure dashlet supports alfresco/layout/InfiniteScrollArea
1.0.23.2:
* [AKU-394](https://issues.alfresco.com/jira/browse/AKU-394) - Revert URI encoding back to false on alfresco/core/CoreXhr
1.0.23.1:
* [AKU-393](https://issues.alfresco.com/jira/browse/AKU-393) - Added service-filtering.lib.js
1.0.23:
* [AKU-66](https://issues.alfresco.com/jira/browse/AKU-66) - Improved concurrent request handling in alfresco/lists/AlfList and alfresco/search/AlfSearchList
* [AKU-353](https://issues.alfresco.com/jira/browse/AKU-353) - Improved testability of alfresco/renderers/PublishingDropDownMenu
* [AKU-359](https://issues.alfresco.com/jira/browse/AKU-359) - Added alfresco/node/MetdataGroups widget for node metadata rendering
* [AKU-360](https://issues.alfresco.com/jira/browse/AKU-360) - Further improvements to alfresco/header/SeachBox configurability
* [AKU-361](https://issues.alfresco.com/jira/browse/AKU-361) - Support ability to merge REST API and custom actions in alfresco/renderers/Actions
* [AKU-362](https://issues.alfresco.com/jira/browse/AKU-362) - Ensure that alfresco/documentlibrary/AlfBreadcrumbList supports useHash false
* [AKU-366](https://issues.alfresco.com/jira/browse/AKU-366) - Added support for zebra striping using LESS variables in lists
* [AKU-368](https://issues.alfresco.com/jira/browse/AKU-368) - Ensure that text only content in dialogs is centered
* [AKU-370](https://issues.alfresco.com/jira/browse/AKU-370) - Fixed issues with ManageAspects action
* [AKU-381](https://issues.alfresco.com/jira/browse/AKU-381) - Remove unnecessary whitespace from dialog without buttons
1.0.22:
* [AKU-299](https://issues.alfresco.com/jira/browse/AKU-299) - Add support for clearing alfresco/forms/controls/DragAndDropTargetControl via pub/sub
* [AKU-332](https://issues.alfresco.com/jira/browse/AKU-332) - Added classes to improve testing for list state
* [AKU-354](https://issues.alfresco.com/jira/browse/AKU-354) - Ensure consistency in favourites display in alfresco/header/AlfSitesMenu
* [AKU-356](https://issues.alfresco.com/jira/browse/AKU-356) - Added support for auto-save in forms
* [AKU-364](https://issues.alfresco.com/jira/browse/AKU-364) - Added alfresco/layout/InfiniteScrollArea
* [AKU-365](https://issues.alfresco.com/jira/browse/AKU-365) - Improvements to alfresco/misc/AlfTooltip
1.0.21:
* [AKU-331](https://issues.alfresco.com/jira/browse/AKU-331) - Updated alfresco/services/CoreXhr to support configurable encoding of URLs
* [AKU-336](https://issues.alfresco.com/jira/browse/AKU-336) - Began to annotate modules with support status
* [AKU-341](https://issues.alfresco.com/jira/browse/AKU-341) - Ensure alfresco/forms/controls/NumberSpinner can be initialised with value over 999 without initial validation error
* [AKU-343](https://issues.alfresco.com/jira/browse/AKU-343) - Improved alfresco/lists/Paginator preference handling
* [AKU-344](https://issues.alfresco.com/jira/browse/AKU-344) - Improved cancellation handling in alfresco/renderers/PublishingDropDownMenu
* [AKU-347](https://issues.alfresco.com/jira/browse/AKU-347) - Ensure alfresco/documentlibrary/AlfBreadcrumbTrail can be wrapped
* [AKU-350](https://issues.alfresco.com/jira/browse/AKU-350) - Improved default config rendering of alfresco/layout/FixedHeaderFooter
* [AKU-352](https://issues.alfresco.com/jira/browse/AKU-352) - Improved alfresco/lists/Paginator control visibility handling on invalid data
1.0.20:
* [AKU-298](https://issues.alfresco.com/jira/browse/AKU-298) - Global support for "additionalCssClasses" attribute
* [AKU-301](https://issues.alfresco.com/jira/browse/AKU-301) - Configurable edit publication for drag and dropped items
* [AKU-316](https://issues.alfresco.com/jira/browse/AKU-316) - Added support for "hashVarsForUpdate" to alfresco/forms/Form
* [AKU-317](https://issues.alfresco.com/jira/browse/AKU-317) - Added support for automatic cache busting to alfresco/core/CoreXhr
* [AKU-318](https://issues.alfresco.com/jira/browse/AKU-318) - Ensure nested drag and dropped item label data is retained when editing parent item
* [AKU-321](https://issues.alfresco.com/jira/browse/AKU-321) - Added alfresco/lists/views/HtmlListView
* [AKU-322](https://issues.alfresco.com/jira/browse/AKU-322) - Ensure form controls nested within alfresco/forms/ControlRow publish initial value
* [AKU-328](https://issues.alfresco.com/jira/browse/AKU-328) - Prevent event bubbling on alfresco/debug/WidgetInfo image click
* [AKU-330](https://issues.alfresco.com/jira/browse/AKU-330) - Added support for automatic scroll to item in list
* [AKU-342](https://issues.alfresco.com/jira/browse/AKU-342) - Infinite scroll support in all paginated lists
* [AKU-345](https://issues.alfresco.com/jira/browse/AKU-345) - Improvements to logging in alfresco/services/NavigationService
* [AKU-346](https://issues.alfresco.com/jira/browse/AKU-346) - Ensure assign workflow URL is generated correctly
1.0.19:
* [AKU-290](https://issues.alfresco.com/jira/browse/AKU-290) - Prevent menu items opening on hover
* [AKU-293](https://issues.alfresco.com/jira/browse/AKU-293) - Fix URL hash sorting/pagination support
* [AKU-296](https://issues.alfresco.com/jira/browse/AKU-296) - Dialog CSS tweaks
* [AKU-297](https://issues.alfresco.com/jira/browse/AKU-297) - Remove "flutter" on DND, set explicit target
* [AKU-300](https://issues.alfresco.com/jira/browse/AKU-300) - Improved search result calendar links
* [AKU-302](https://issues.alfresco.com/jira/browse/AKU-302) - Page size URL hash attribute fix
* [AKU-307](https://issues.alfresco.com/jira/browse/AKU-307) - Fix potential memory leak in ResizeMixin
* [AKU-313](https://issues.alfresco.com/jira/browse/AKU-313) - Added configurable display for "alfresco/dnd/DroppedItem" widget
* [AKU-314](https://issues.alfresco.com/jira/browse/AKU-314) - Improved JSDoc on "alfresco/forms/controls/HiddenValue"
* [AKU-319](https://issues.alfresco.com/jira/browse/AKU-319) - "alfresco/services/ActionService" createLinkContent fix
* [AKU-323](https://issues.alfresco.com/jira/browse/AKU-323) - "alfresco/services/DocumentService" fixes
* [AKU-325](https://issues.alfresco.com/jira/browse/AKU-325) - "alfresco/forms/controls/MultiSelectInput" keyboard navigation fixes
1.0.18:
* [AKU-204](https://issues.alfresco.com/jira/browse/AKU-204) - Add support for "document-upload-new-version" action
* [AKU-281](https://issues.alfresco.com/jira/browse/AKU-281) - NavigationService postToPage ignores target
* [AKU-282](https://issues.alfresco.com/jira/browse/AKU-282) - ActionService is ignoring the currentTarget config value for action type "link"
* [AKU-283](https://issues.alfresco.com/jira/browse/AKU-283) - MultiSelectInput: Loading... message is not replaced by results
* [AKU-284](https://issues.alfresco.com/jira/browse/AKU-284) - Pub/sub logging goes directly to console when client-debug is enabled
* [AKU-285](https://issues.alfresco.com/jira/browse/AKU-285) - Create activity summary widget
* [AKU-286](https://issues.alfresco.com/jira/browse/AKU-286) - Update alfresco/header package widgets to use LESS variables
* [AKU-289](https://issues.alfresco.com/jira/browse/AKU-289) - PublishingDropDownMenu does not always render options if loaded within a List
* [AKU-291](https://issues.alfresco.com/jira/browse/AKU-291) - Update tutorial 1 to include instructions on using remote Repo
* [AKU-294](https://issues.alfresco.com/jira/browse/AKU-294) - Fixed header and footer
* [AKU-295](https://issues.alfresco.com/jira/browse/AKU-295) - PublishingDropDownMenu does not support aborted change requests.
* [AKU-305](https://issues.alfresco.com/jira/browse/AKU-305) - Right Click on header menu issue
* [AKU-306](https://issues.alfresco.com/jira/browse/AKU-306) - Keyboard navigation for the multi select input widget does not work with IE11
* [AKU-312](https://issues.alfresco.com/jira/browse/AKU-312) - MultiSelectInput: Dropdown list not populated fully if previous item was selected using keyboard.
1.0.17.1:
* [AKU-304](https://issues.alfresco.com/jira/browse/AKU-304) - The confirmation dialog is not displayed correctly
1.0.17:
* [AKU-19](https://issues.alfresco.com/jira/browse/AKU-19) - Upgrade to use Dojo 1.10.4
* [AKU-203](https://issues.alfresco.com/jira/browse/AKU-203) - Added support for document-locate action
* [AKU-244](https://issues.alfresco.com/jira/browse/AKU-244) - Added HTML sanitizing proxy WebScript
* [AKU-262](https://issues.alfresco.com/jira/browse/AKU-262) - Made alfresco/documentlibrary/AlfBreadcrumbTrail more abstract
* [AKU-275](https://issues.alfresco.com/jira/browse/AKU-275) - Ensure form button disabled HTML attribute is set correctly
* [AKU-277](https://issues.alfresco.com/jira/browse/AKU-277) - Fix keybord navigation of MultiSelectInput form control
* [AKU-278](https://issues.alfresco.com/jira/browse/AKU-278) - Added "alfresco/layout/StripedContent" widget
* [AKU-279](https://issues.alfresco.com/jira/browse/AKU-279) - Support for add tab in "alfresco/layout/AlfTabContainer"
* [AKU-280](https://issues.alfresco.com/jira/browse/AKU-280) - Improved handling of long text in MultiSelectInput
1.0.16:
* [AKU-247](https://issues.alfresco.com/jira/browse/AKU-247) - Ensure value is retained when options updated
* [AKU-248](https://issues.alfresco.com/jira/browse/AKU-248) - Ensure filter selection resets pagination
* [AKU-249](https://issues.alfresco.com/jira/browse/AKU-249) - Fix to tag render filter selection publication
* [AKU-250](https://issues.alfresco.com/jira/browse/AKU-250) - Ensure initially rendered view is marked as selected
* [AKU-251](https://issues.alfresco.com/jira/browse/AKU-251) - Fix favouriting and PreferenceService for use in standalone clients
* [AKU-252](https://issues.alfresco.com/jira/browse/AKU-252) - Make create content dialog wider
* [AKU-253](https://issues.alfresco.com/jira/browse/AKU-253) - Improve sidebar defaults and preference handling
* [AKU-254](https://issues.alfresco.com/jira/browse/AKU-254) - Ensure templated content can be created on standalone clients
* [AKU-257](https://issues.alfresco.com/jira/browse/AKU-257) - Ensure Gallery View folder thumbnail can be selected
* [AKU-266](https://issues.alfresco.com/jira/browse/AKU-266) - Create tooltip that supports widget models
* [AKU-268](https://issues.alfresco.com/jira/browse/AKU-268) - Update renderFilter to support array data
* [AKU-271](https://issues.alfresco.com/jira/browse/AKU-271) - Ensure required NumberSpinner can have 0 as a valid value
* [AKU-272](https://issues.alfresco.com/jira/browse/AKU-272) - NumberSpinner validation handling improvements
* [AKU-273](https://issues.alfresco.com/jira/browse/AKU-273) - Add scroll bar to dialog body as content grows
1.0.15:
* [AKU-195](https://issues.alfresco.com/jira/browse/AKU-195) - Basic support for edit document properties
* [AKU-220](https://issues.alfresco.com/jira/browse/AKU-220) - PubSub options handling improvements
* [AKU-232](https://issues.alfresco.com/jira/browse/AKU-232) - ActionService updates for deleting content
* [AKU-234](https://issues.alfresco.com/jira/browse/AKU-234) - Added alfresco/renderers/AvatarThumbnail
* [AKU-235](https://issues.alfresco.com/jira/browse/AKU-235) - Update test app and archetype to not use Maven snapshots
* [AKU-238](https://issues.alfresco.com/jira/browse/AKU-238) - Ensure MultiSelectInput options are not clipped in dialog
* [AKU-239](https://issues.alfresco.com/jira/browse/AKU-239) - Include empty array data as missing required value
* [AKU-242](https://issues.alfresco.com/jira/browse/AKU-242) - Support configurable page sizes in alfresco/lists/Paginator
* [AKU-243](https://issues.alfresco.com/jira/browse/AKU-243) - Added pagination and sorting to alfresco/renderers/CommentsList
1.0.14:
* [AKU-158](https://issues.alfresco.com/jira/browse/AKU-158) - Improved publication/subscription log
* [AKU-219](https://issues.alfresco.com/jira/browse/AKU-219) - Nested "use-once" items returned to palette
* [AKU-220](https://issues.alfresco.com/jira/browse/AKU-220) - PubSub options on form controls honour previous value
* [AKU-221](https://issues.alfresco.com/jira/browse/AKU-221) - Prevent dropped items being added to palette
* [AKU-227](https://issues.alfresco.com/jira/browse/AKU-227) - CommentsList widget improvements
* [AKU-229](https://issues.alfresco.com/jira/browse/AKU-229) - Support nested drop targets
* [AKU-230](https://issues.alfresco.com/jira/browse/AKU-230) - InlineEditProperty with renderOnNewLine enabled layout fix
* [AKU-231](https://issues.alfresco.com/jira/browse/AKU-231) - Simple mode for alfresco/renderers/Date
* [AKU-233](https://issues.alfresco.com/jira/browse/AKU-233) - alfresco/renderers/Thumbnail enhancements
* [AKU-236](https://issues.alfresco.com/jira/browse/AKU-236) - Updates to alfresco/dnd/DragAndDropItemsListView widget
* [AKU-245](https://issues.alfresco.com/jira/browse/AKU-245) - Localize alfresco/services/CrudService messages
1.0.13:
* [AKU-163](https://issues.alfresco.com/jira/browse/AKU-163) - alfresco/lists/AlfHashList can update load payload from hash parameters
* [AKU-178](https://issues.alfresco.com/jira/browse/AKU-178) - New alfresco/forms/controls/MultiSelectInput widget
* [AKU-191](https://issues.alfresco.com/jira/browse/AKU-191) - New alfresco/dnd/DragAndDropItemsListView widget
* [AKU-196](https://issues.alfresco.com/jira/browse/AKU-196) - Added support for "document-approve" action
* [AKU-197](https://issues.alfresco.com/jira/browse/AKU-197) - Added support for "document-reject" action
* [AKU-216](https://issues.alfresco.com/jira/browse/AKU-216) - Updated ContainerPicker to support configurable repository root node.
* [AKU-218](https://issues.alfresco.com/jira/browse/AKU-218) - Added modelling service config creator
1.0.12:
* [AKU-14](https://issues.alfresco.com/jira/browse/AKU-14) - Code Mirror form control updates
* [AKU-150](https://issues.alfresco.com/jira/browse/AKU-150) - CSS updates to support Share title bar
* [AKU-188](https://issues.alfresco.com/jira/browse/AKU-188) - Hide edit button on DND items by default
* [AKU-189](https://issues.alfresco.com/jira/browse/AKU-189) - Use-once DND items
* [AKU-190](https://issues.alfresco.com/jira/browse/AKU-190) - Multiple DND source keyboard control fix
* [AKU-192](https://issues.alfresco.com/jira/browse/AKU-192) - Added alfresco/lists/AlfFilteredList widget
* [AKU-193](https://issues.alfresco.com/jira/browse/AKU-193) - Form control options localization fix
* [AKU-217](https://issues.alfresco.com/jira/browse/AKU-217) - CSS correction for Logo
1.0.11:
* [AKU-3](https://issues.alfresco.com/jira/browse/AKU-3) - Updated tests to work against Selenium Grid
* [AKU-37](https://issues.alfresco.com/jira/browse/AKU-37) - Added folder view preference handling
* [AKU-159](https://issues.alfresco.com/jira/browse/AKU-159) - Support for truncated property rendering
* [AKU-175](https://issues.alfresco.com/jira/browse/AKU-175) - Improved image source logo width handling
* [AKU-177](https://issues.alfresco.com/jira/browse/AKU-177) - Fixed scoping on AlfDetailedViewItem
* [AKU-180](https://issues.alfresco.com/jira/browse/AKU-180) - PDF.js preview faults test fix
* [AKU-182](https://issues.alfresco.com/jira/browse/AKU-182) - Update archetype to include repo connection config
* [AKU-183](https://issues.alfresco.com/jira/browse/AKU-183) - Index page for unit test application
* [AKU-184](https://issues.alfresco.com/jira/browse/AKU-184) - DND item label localization
1.0.10:
* [AKU-133](https://issues.alfresco.com/jira/browse/AKU-133) - FileType configurable images
* [AKU-157](https://issues.alfresco.com/jira/browse/AKU-157) - Ensure HiddenValue form control can be set
* [AKU-170](https://issues.alfresco.com/jira/browse/AKU-170) - Improvements to test reporter
* [AKU-172](https://issues.alfresco.com/jira/browse/AKU-172) - SearchBox configurability updates
* [AKU-176](https://issues.alfresco.com/jira/browse/AKU-176) - Form dialog width setting updates
1.0.9:
* [AKU-33](https://issues.alfresco.com/jira/browse/AKU-33) - Add dedicated Detailed View result widget for performance
* [AKU-115](https://issues.alfresco.com/jira/browse/AKU-115) - Use keyboard to add DND items
* [AKU-116](https://issues.alfresco.com/jira/browse/AKU-116) - Re-order DND items using keyboard navigation
* [AKU-148](https://issues.alfresco.com/jira/browse/AKU-148) - Alias AlfDocumentListPaginator
* [AKU-149](https://issues.alfresco.com/jira/browse/AKU-149) - When a publishPayloadType 'BUILD' updates
* [AKU-150](https://issues.alfresco.com/jira/browse/AKU-150) - Title overflow handling
* [AKU-155](https://issues.alfresco.com/jira/browse/AKU-155) - Improved form dialog submission failures
* [AKU-160](https://issues.alfresco.com/jira/browse/AKU-160) - Duplicate BaseFormControlfunctions
* [AKU-161](https://issues.alfresco.com/jira/browse/AKU-161) - Fix noValueUpdateWhenHiddenOrDisabled
* [AKU-164](https://issues.alfresco.com/jira/browse/AKU-164) - SearchBox styling
* [AKU-168](https://issues.alfresco.com/jira/browse/AKU-168) - PickedItem fails in singleItemMode
1.0.8:
* [AKU-5](https://issues.alfresco.com/jira/browse/AKU-5) - Remove YUI2 and Share dependencies from TinyMCE modules
* [AKU-30](https://issues.alfresco.com/jira/browse/AKU-30) - Updates to Indicators renderer
* [AKU-112](https://issues.alfresco.com/jira/browse/AKU-112) - Drag and drop items and post form value
* [AKU-113](https://issues.alfresco.com/jira/browse/AKU-113) - Re-order items and post updated value
* [AKU-114](https://issues.alfresco.com/jira/browse/AKU-114) - Delete dropped items and post updated value
* [AKU-117](https://issues.alfresco.com/jira/browse/AKU-117) - Render widgets as dropped items
* [AKU-118](https://issues.alfresco.com/jira/browse/AKU-118) - Implement drag and drop modelling service
* [AKU-140](https://issues.alfresco.com/jira/browse/AKU-140) - Search scope issues resolved
* [AKU-142](https://issues.alfresco.com/jira/browse/AKU-142) - Add hash fragment support to AlfDynamicPayloadButton
* [AKU-151](https://issues.alfresco.com/jira/browse/AKU-151) - Fixed DialogService config issue
* 1.0.7:
* [AKU-13](https://issues.alfresco.com/jira/browse/AKU-13) - Added support for stacked dialogs
* [AKU-27](https://issues.alfresco.com/jira/browse/AKU-27) - Add support for create folder templated content
* [AKU-94](https://issues.alfresco.com/jira/browse/AKU-94) - Added Grunt task for patching clients
* [AKU-124](https://issues.alfresco.com/jira/browse/AKU-124) - Added alfresco/lists/views/layouts/EditableRow
* [AKU-127](https://issues.alfresco.com/jira/browse/AKU-127) - Add alt text to developer mode widgets
* [AKU-131](https://issues.alfresco.com/jira/browse/AKU-131) - Ensure pub/sub options for form controls work in dialogs
* [AKU-139](https://issues.alfresco.com/jira/browse/AKU-139) - Updated tests for more reliable code coverage
1.0.6:
* [AKU-41](https://issues.alfresco.com/jira/browse/AKU-41) - Add Manage Aspects support
* [AKU-41](https://issues.alfresco.com/jira/browse/AKU-72) - Add colspan support to Cell
* [AKU-102](https://issues.alfresco.com/jira/browse/AKU-101) - Add additionalCssClasses support to Row
* [AKU-102](https://issues.alfresco.com/jira/browse/AKU-102) - NLS updates for alfresco/html/Heading
* [AKU-103](https://issues.alfresco.com/jira/browse/AKU-103) - NLS updates for alfresco/header/SetTitle
* [AKU-105](https://issues.alfresco.com/jira/browse/AKU-105) - Add notification after joining site
* [AKU-108](https://issues.alfresco.com/jira/browse/AKU-108) - Allow form values to be set via publication
* [AKU-109](https://issues.alfresco.com/jira/browse/AKU-109) - Fix typo in sites menu
* [AKU-119](https://issues.alfresco.com/jira/browse/AKU-119) - Add IDs to dialogs from alfresco/services/DialogService
1.0.5:
* [AKU-40](https://issues.alfresco.com/jira/browse/AKU-40) - Remove picked items from simple picker available list
* [AKU-81](https://issues.alfresco.com/jira/browse/AKU-81) - Allow copy/move content into empty document libraries
* [AKU-96](https://issues.alfresco.com/jira/browse/AKU-96) - CSS updates to copy/move action dialogs
* [AKU-97](https://issues.alfresco.com/jira/browse/AKU-97) - Ensure en locale files are generated
1.0.4:
* [AKU-17](https://issues.alfresco.com/jira/browse/AKU-17) - Implement standalone Aikau transient notifications
* [AKU-76](https://issues.alfresco.com/jira/browse/AKU-76) - Updated NPM to use specific tested versions
* [AKU-78](https://issues.alfresco.com/jira/browse/AKU-78) - Clean up Vagrant image configuration files that shouldn't have been committed
* [AKU-79](https://issues.alfresco.com/jira/browse/AKU-79) - Add callback to LogoutService to ensure logout redirection
* [AKU-80](https://issues.alfresco.com/jira/browse/AKU-80) - Modifications to Vagrant provisioned versions
* [AKU-83](https://issues.alfresco.com/jira/browse/AKU-83) - Resolve issues in filtered search page introduced by v1.0.3 updates
1.0.3:
* [AKU-9](https://issues.alfresco.com/jira/browse/AKU-9) - Add release notes
* [AKU-21](https://issues.alfresco.com/jira/browse/AKU-21) - Filmstrip view fixes
* [AKU-22](https://issues.alfresco.com/jira/browse/AKU-22) - Inline edit cursor update
* [AKU-24](https://issues.alfresco.com/jira/browse/AKU-24) - Remove potential XSS vulnerability in alfresco/forms/controls/Select
* [AKU-65](https://issues.alfresco.com/jira/browse/AKU-65) - Pagination handling updates
* [AKU-71](https://issues.alfresco.com/jira/browse/AKU-71) - Improvements to alfresco/renderers/InlineEditPropertyLink
| Java |
/*
* Copyright (C) 2009 Christian Hujer.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* File Filtering.
* @author <a href="mailto:[email protected]">Christian Hujer</a>
* @since 0.1
*/
package net.sf.japi.util.filter.file;
| Java |
//
// System.Net.WebResponse
//
// Author:
// Lawrence Pit ([email protected])
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.IO;
using System.Runtime.Serialization;
namespace System.Net
{
[Serializable]
public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable {
// Constructors
protected WebResponse () { }
protected WebResponse (SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw new NotSupportedException ();
}
// Properties
public virtual long ContentLength {
get { throw new NotSupportedException (); }
set { throw new NotSupportedException (); }
}
public virtual string ContentType {
get { throw new NotSupportedException (); }
set { throw new NotSupportedException (); }
}
public virtual WebHeaderCollection Headers {
get { throw new NotSupportedException (); }
}
static Exception GetMustImplement ()
{
return new NotImplementedException ();
}
[MonoTODO]
public virtual bool IsFromCache
{
get {
return false;
// Better to return false than to kill the application
// throw GetMustImplement ();
}
}
[MonoTODO]
public virtual bool IsMutuallyAuthenticated
{
get {
throw GetMustImplement ();
}
}
public virtual Uri ResponseUri {
get { throw new NotSupportedException (); }
}
#if NET_4_0
[MonoTODO ("for portable library support")]
public virtual bool SupportsHeaders {
get { throw new NotImplementedException (); }
}
#endif
// Methods
public virtual void Close()
{
throw new NotSupportedException ();
}
public virtual Stream GetResponseStream()
{
throw new NotSupportedException ();
}
#if TARGET_JVM //enable overrides for extenders
public virtual void Dispose()
#elif NET_4_0
public void Dispose ()
#else
void IDisposable.Dispose()
#endif
{
#if NET_4_0
Dispose (true);
#else
Close ();
#endif
}
#if NET_4_0
protected virtual void Dispose (bool disposing)
{
if (disposing)
Close ();
}
#endif
void ISerializable.GetObjectData
(SerializationInfo serializationInfo,
StreamingContext streamingContext)
{
throw new NotSupportedException ();
}
[MonoTODO]
protected virtual void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext)
{
throw GetMustImplement ();
}
}
}
| Java |
{loop name="product.infos" type="product" id=$product_id limit="1" with_prev_next_info="1" with_prev_next_visible="1"}
<div class="ProductInfos">
<div class="flex justify-between">
{include file="components/smarty/Title/Title.html" type="h1" title=$TITLE class="Title--left mb-6" nofilter=true}
</div>
<div><span class="">{intl l="Reference"} : </span> {$REF}</div>
{if $CHAPO}
<div class="ProductInfos-chapo my-4 text-lg">
<p>{$CHAPO nofilter}</p>
</div>
{/if}
</div>
{/loop}
| Java |
#Special rules for nouns, to avoid suggesting wrong lemmas. Nothing is done for other POS.
import pymorphy2
blacklist1 = ['ъб', 'ъв', 'ъг', 'ъд', 'ъж', 'ъз', 'ък', 'ъл', 'ъм', 'ън', 'ъп', 'ър', 'ъс', 'ът', 'ъф', 'ъх', 'ъц', 'ъч', 'ъш', 'ъщ', 'йй', 'ьь', 'ъъ', 'ыы', 'чя', 'чю', 'чй', 'щя', 'щю', 'щй', 'шя', 'шю', 'шй', 'жы', 'шы', 'аь', 'еь', 'ёь', 'иь', 'йь', 'оь', 'уь', 'ыь', 'эь', 'юь', 'яь', 'аъ', 'еъ', 'ёъ', 'иъ', 'йъ', 'оъ', 'уъ', 'ыъ', 'эъ', 'юъ', 'яъ']
blacklist2 = ['чьк', 'чьн', 'щьн'] # forbidden
blacklist3 = ['руметь']
base1 = ['ло','уа', 'ая', 'ши', 'ти', 'ни', 'ки', 'ко', 'ли', 'уи', 'до', 'аи', 'то'] # unchanged
base2 = ['алз','бва', 'йты','ике','нту','лди','лит', 'вра','афе', 'бле', 'яху','уке', 'дзе', 'ури', 'ава', 'чче','нте', 'нне', 'гие', 'уро', 'сут', 'оне', 'ино', 'йду', 'нью', 'ньо', 'ньи', 'ери', 'ску', 'дье']
base3 = ['иани','льди', 'льде', 'ейру', 'зема', 'хими', 'ками', 'кала', 'мари', 'осси', 'лари', 'тано', 'ризе', 'енте', 'енеи']
base4 = ['швили', 'льяри']
change1 = ['лл','рр', 'пп', 'тт', 'ер', 'ук', 'ун', 'юк', 'ан', 'ян', 'ия', 'ин'] # declines
change2 = ['вец','дюн', 'еув', 'инз', 'ейн', 'лис','лек','бен','нек','рок', 'ргл', 'бих','бус','айс','гас','таш', 'хэм', 'аал', 'дад', 'анд', 'лес', 'мар','ньш', 'рос','суф', 'вик', 'якс', 'веш','анц', 'янц', 'сон', 'сен', 'нен', 'ман', 'цак', 'инд', 'кин', 'чин', 'рем', 'рём', 'дин']
change3 = ['ерит', 'гард', 'иньш', 'скис', 'ллит', 'еней', 'рроз', 'манн', 'берг', 'вист', 'хайм',]
female1 = ['ская', 'ской', 'скую']
female2 = ['овой']
female3 = ['евой']
female4 = ['иной']
middlemale = ['а', 'у']
middlestr1 = ['ии', 'ию'] # for Данелия
middlestr2 = ['ией']
male = ['ов', 'ев', 'ин']
male1 = ['ский', 'ским', 'ском']
male2 = ['ского', 'скому']
male3 = ['е', 'ы']
male4 = ['ым', 'ом', 'ем', 'ой']
side1 = ['авы', 'аве', 'аву', 'фик', 'иол', 'риц', 'икк', 'ест', 'рех', 'тин']
side2 = ['авой']
sname = ['вич', 'вна']
sname1 = ['вн']
def lemmas_done(found, lemmatized):
"""
Check predicted lemmas according to the rules.
"""
morph = pymorphy2.MorphAnalyzer()
fix = []
fixednames = []
doublefemale =[]
for i in range(len(lemmatized)):
p = morph.parse(found[i])[0]
if p.tag.POS == 'NOUN':
if (found[i].istitle()) and ((found[i][-2:] in base1) or (found[i][-2:] in male) or (found[i][-3:] in base2) or (found[i][-4:] in base3) or (found[i][-5:] in base4)):
fixednames.append(found[i])
elif (found[i].istitle()) and ((found[i][-2:] in change1) or (found[i][-3:] in change2) or (found[i][-4:] in change3)):
fixednames.append(found[i])
elif (found[i].istitle()) and (found[i][-4:] in female1):
fixednames.append(found[i][:-2] + 'ая')
elif (found[i].istitle()) and (found[i][-4:] in female2):
fixednames.append(found[i][:-4] + 'ова')
elif (found[i].istitle()) and (found[i][-4:] in female3):
fixednames.append(found[i][:-4] + 'ева')
elif (found[i].istitle()) and (found[i][-4:] in female4):
fixednames.append(found[i][:-4] + 'ина')
elif (found[i].istitle()) and (found[i][-4:] in male1):
fixednames.append(found[i][:-2] + 'ий')
elif (found[i].istitle()) and (found[i][-5:] in male2):
fixednames.append(found[i][:-3] + 'ий')
elif (found[i].istitle()) and (found[i][-1:] in male3) and (found[i][-3:-1] in male):
fixednames.append(found[i][:-1])
elif (found[i].istitle()) and (found[i][-2:] in male4) and (found[i][-4:-2] in male):
fixednames.append(found[i][:-2])
elif (found[i].istitle()) and (found[i][-1:] in middlemale) and (found[i][-3:-1] in male):
fixednames.append(found[i][:-1])
doublefemale.append(found[i][:-1] + 'а')
elif (found[i].istitle()) and ((found[i][-1:] in male3) or (found[i][-1:] in middlemale)) and (found[i][-3:-1] in change1):
fixednames.append(found[i][:-1])
elif (found[i].istitle()) and ((found[i][-1:] in male3) or (found[i][-1:] in middlemale)) and (found[i][-4:-1] in change2):
fixednames.append(found[i][:-1])
elif (found[i].istitle()) and ((found[i][-1:] in male3) or (found[i][-1:] in middlemale)) and (found[i][-5:-1] in change3):
fixednames.append(found[i][:-1])
elif (found[i].istitle()) and (found[i][-2:] in male4) and (found[i][-4:-2] in change1):
fixednames.append(found[i][:-2])
elif (found[i].istitle()) and (found[i][-2:] in male4) and (found[i][-5:-2] in change2):
fixednames.append(found[i][:-2])
elif (found[i].istitle()) and (found[i][-2:] in male4) and (found[i][-6:-2] in change3):
fixednames.append(found[i][:-2])
elif (found[i].istitle()) and (found[i][-2:] in middlestr1):
fixednames.append(found[i][:-1] + 'я')
elif (found[i].istitle()) and (found[i][-3:] in middlestr2):
fixednames.append(found[i][:-2] + 'я')
elif (found[i].istitle()) and (found[i][-3:] in side1):
fixednames.append(found[i][:-1] + 'а')
elif (found[i].istitle()) and (found[i][-4:] in side2):
fixednames.append(found[i][:-2] + 'а')
elif (found[i].istitle()) and (found[i][-4:-1] in side1):
fixednames.append(found[i][:-1] + 'а')
elif (found[i].istitle()) and (found[i][-5:-2] in side1):
fixednames.append(found[i][:-2] + 'а')
elif (found[i].istitle()) and (found[i][-3:] in sname):
fixednames.append(found[i])
elif (found[i].istitle()) and (found[i][-4:-1] in sname) and ((found[i][-1:] in middlemale) or (found[i][-1:] in male3)):
fixednames.append(found[i][:-1])
elif (found[i].istitle()) and (found[i][-5:-2] in sname) and (found[i][-2:] in male4):
fixednames.append(found[i][:-2])
elif (found[i].istitle()) and (found[i][-3:-1] in sname1) and ((found[i][-1:] in middlemale) or (found[i][-1:] in male3)):
fixednames.append(found[i][:-1] + 'а')
elif (found[i].istitle()) and (found[i][-4:-2] in sname1) and (found[i][-2:] in male4):
fixednames.append(found[i][:-2] + 'а')
else:
fixednames.append(lemmatized[i])
else:
fixednames.append(lemmatized[i])
for i in range(len(fixednames)):
if (fixednames[i][-2:] in blacklist1) or (fixednames[i][-3:] in blacklist2) or (fixednames[i][-6:] in blacklist3):
fix.append(found[i])
else:
fix.append(fixednames[i])
fix = fix + doublefemale
newfreq = len(doublefemale)
return fix, newfreq
| Java |
var searchData=
[
['keep_5fhistory_2ecpp',['keep_history.cpp',['../keep__history_8cpp.html',1,'']]],
['keep_5fhistory_5fpass_2ecpp',['keep_history_pass.cpp',['../keep__history__pass_8cpp.html',1,'']]],
['keep_5fhistory_5fpass_2eh',['keep_history_pass.h',['../keep__history__pass_8h.html',1,'']]]
];
| Java |
/*
{{ jtdavids-reflex }}
Copyright (C) 2015 Jake Davidson
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.example.jake.jtdavids_reflex;
import android.content.SharedPreferences;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by Jake on 28/09/2015.
*/
public class StatisticCalc {
List<Double> reaction_times = new ArrayList<Double>();
public StatisticCalc() {
}
public void add(double time){
reaction_times.add(time);
}
public void clear(){
reaction_times.clear();
}
public String getAllTimeMin(){
//gets the minimum time of all recorded reaction times
//if no reaction times are recored, return 'N/A'
if (reaction_times.size() != 0) {
double min = reaction_times.get(reaction_times.size()-1);
for (int i = reaction_times.size()-2; i >= 0; i--) {
if (reaction_times.get(i) < min) {
min = reaction_times.get(i);
}
}
return String.valueOf(min);
} else{
return "N/A";
}
}
public String getSpecifiedTimeMin(int length){
//Gets the minimum reaction time of the last X reactions
//a negative value should not be passed into this method
//Since reactions are stored in a list, must iterate backwards through the list
//to retrieve reaction times in chronological order
if (reaction_times.size() != 0) {
if(reaction_times.size() < length){
length = reaction_times.size();
}
double min = reaction_times.get(reaction_times.size()-1);
for (int i = reaction_times.size()-2; i > reaction_times.size()-length; i--) {
if (reaction_times.get(i) < min) {
min = reaction_times.get(i);
}
}
return String.valueOf(min);
} else{
return "N/A";
}
}
public String getAllTimeMax(){
//gets the maximum reaction time of all reactions
if (reaction_times.size() !=0 ) {
double max = reaction_times.get(reaction_times.size()-1);
for (int i = reaction_times.size()-2; i >= 0; i--) {
if (reaction_times.get(i) > max) {
max = reaction_times.get(i);
}
}
return String.valueOf(max);
} else{
return "N/A";
}
}
public String getSpecifiedTimeMax(int length){
//Gets the maximum reaction time of the last X reactions
//a negative value should not be passed into this method
//Since reactions are stored in a list, must iterate backwards through the list
//to retrieve reaction times in chronological order
if (reaction_times.size() !=0 ) {
if(reaction_times.size() < length){
length = reaction_times.size();
}
double max = reaction_times.get(reaction_times.size()-1);
for (int i = reaction_times.size()-2; i > reaction_times.size()-length; i--) {
if (reaction_times.get(i) > max) {
max = reaction_times.get(i);
}
}
return String.valueOf(max);
}
else{
return "N/A";
}
}
public String getAllTimeAvg(){
//gets the average reaction time of all reactions
if (reaction_times.size() !=0 ) {
double avg = reaction_times.get(reaction_times.size()-1);
for (int i = reaction_times.size()-2; i >= 0; i--) {
avg = avg + reaction_times.get(i);
}
return String.valueOf((avg / reaction_times.size()));
} else{
return "N/A ";
}
}
public String getSpecifiedTimeAvg(int length){
//Gets the average reaction time of the last X reactions
//a negative value should not be passed into this method
//Since reactions are stored in a list, must iterate backwards through the list
//to retrieve reaction times in chronological order
if (reaction_times.size() !=0 ) {
if(reaction_times.size() < length){
length = reaction_times.size();
}
double avg = reaction_times.get(reaction_times.size()-1);
for (int i = reaction_times.size()-2; i >= reaction_times.size()-length; i--) {
avg = avg + reaction_times.get(i);
}
return String.valueOf((avg / length));
}else{
return "N/A ";
}
}
public String getAllTimeMed(){
//gets the median reaction time of all reactions
if (reaction_times.size() !=0 ) {
List<Double> sorted_times = new ArrayList<Double>(reaction_times);
Collections.sort(sorted_times);
return String.valueOf((sorted_times.get(sorted_times.size() / 2)));
}
else{
return "N/A";
}
}
public String getSpecifiedTimeMed(int length){
//Gets the median reaction time of the last X reactions
//a negative value should not be passed into this method
if (reaction_times.size() != 0 ) {
if(reaction_times.size() < length){
length = reaction_times.size();
}
List<Double> sorted_times = new ArrayList<Double>(reaction_times.subList(0, length));
Collections.sort(sorted_times);
return String.valueOf((sorted_times.get(sorted_times.size() / 2)));
}else{
return "N/A";
}
}
public String getStatsMessage(SharedPreferences twoplayers_score, SharedPreferences threeplayers_score, SharedPreferences fourplayers_score){
return ("______SINGLEPLAYER______\n" +
" MIN TIME:\n" +
"All Time: " + getAllTimeMin() + "\nLast 10 times: " + getSpecifiedTimeMin(10) + "\nLast 100 times: " + getSpecifiedTimeMin(100) + "\n" +
" MAX TIME:\n" +
"All Time: " + getAllTimeMax() + "\nLast 10 times: " + getSpecifiedTimeMax(10) + "\nLast 100 times: " + getSpecifiedTimeMax(100) + "\n" +
" AVERAGE TIME:\n" +
"All Time: " + getAllTimeAvg() + "\nLast 10 times: " + getSpecifiedTimeAvg(10) + "\nLast 100 times: " + getSpecifiedTimeAvg(100) + "\n" +
" MEDIAN TIME:\n" +
"All Time: " + getAllTimeMed() + "\nLast 10 times: " + getSpecifiedTimeMed(10) + "\nLast 100 times: " + getSpecifiedTimeMed(100) + "\n" +
"______PARTY PLAY______\n" +
" 2 PLAYERS:\n" +
"Player 1: " + String.valueOf(twoplayers_score.getInt("player1", 0)) + "\nPlayer 2: " + String.valueOf(twoplayers_score.getInt("player2", 0)) + "\n" +
" 3 PLAYERS:\n" +
"Player 1: " + String.valueOf(threeplayers_score.getInt("player1", 0)) + "\nPlayer 2: " + String.valueOf(threeplayers_score.getInt("player2", 0)) + "\nPlayer 3: " + String.valueOf(threeplayers_score.getInt("player3", 0)) + "\n" +
" 4 PLAYERS:\n" +
"Player 1: " + String.valueOf(fourplayers_score.getInt("player1", 0)) + "\nPlayer 2: " + String.valueOf(fourplayers_score.getInt("player2", 0)) + "\nPlayer 3: " + String.valueOf(fourplayers_score.getInt("player3", 0)) + "\nPlayer 4: " + String.valueOf(fourplayers_score.getInt("player4", 0)) + "\n");
}
}
| Java |
/****************************************************************************
**
** Jreen
**
** Copyright © 2012 Ruslan Nigmatullin <[email protected]>
**
*****************************************************************************
**
** $JREEN_BEGIN_LICENSE$
** Jreen is free software: you can redistribute it and/or modify
** it under the terms of the GNU Lesser General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** Jreen is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public License
** along with Jreen. If not, see <http://www.gnu.org/licenses/>.
** $JREEN_END_LICENSE$
**
****************************************************************************/
#ifndef JREEN_JINGLETRANSPORTICE_P_H
#define JREEN_JINGLETRANSPORTICE_P_H
#include "jingletransport.h"
#ifdef HAVE_IRISICE
#include <QList>
#include "3rdparty/icesupport/ice176.h"
#include "3rdparty/icesupport/udpportreserver.h"
//#include <nice.h>
namespace Jreen
{
namespace JingleIce
{
class Transport : public JingleTransport
{
Q_OBJECT
public:
Transport(JingleContent *content);
~Transport();
virtual void send(int component, const QByteArray &data);
virtual void setRemoteInfo(const JingleTransportInfo::Ptr &info, bool final);
private slots:
void onIceStarted();
void onIceError(XMPP::Ice176::Error error);
void onIceLocalCandidatesReady(const QList<XMPP::Ice176::Candidate> &candidates);
void onIceComponentReady(int component);
void onIceReadyRead(int);
private:
XMPP::Ice176 *m_ice;
XMPP::UdpPortReserver *m_portReserver;
QSet<int> m_ready;
};
typedef XMPP::Ice176::Candidate Candidate;
class TransportInfo : public JingleTransportInfo
{
J_PAYLOAD(Jreen::JingleIce::TransportInfo)
public:
QList<Candidate> candidates;
QString pwd;
QString ufrag;
};
class TransportFactory : public JingleTransportFactory<TransportInfo>
{
public:
TransportFactory();
virtual JingleTransport *createObject(JingleContent *content);
virtual void handleStartElement(const QStringRef &name, const QStringRef &uri, const QXmlStreamAttributes &attributes);
virtual void handleEndElement(const QStringRef &name, const QStringRef &uri);
virtual void handleCharacterData(const QStringRef &text);
virtual void serialize(Payload *obj, QXmlStreamWriter *writer);
virtual Payload::Ptr createPayload();
private:
int m_depth;
TransportInfo::Ptr m_info;
};
}
}
#endif // HAVE_IRISICE
#endif // JREEN_JINGLETRANSPORTICE_P_H
| Java |
using System.Data.Entity;
using System.Linq;
namespace EntityProfiler.Tools.MessageGenerator
{
public sealed class AppDbContext : DbContext {
public DbSet<Product> Products { get; set; }
public DbSet<Price> Prices { get; set; }
/// <summary>
/// Constructs a new context instance using conventions to create the name of the database to
/// which a connection will be made. The by-convention name is the full name (namespace + class name)
/// of the derived context class.
/// See the class remarks for how this is used to create a connection.
/// </summary>
public AppDbContext() {
this.Configuration.LazyLoadingEnabled = true;
this.Configuration.ProxyCreationEnabled = true;
}
internal sealed class Initializer : DropCreateDatabaseAlways<AppDbContext> {
/// <summary>
/// A method that should be overridden to actually add data to the context for seeding.
/// The default implementation does nothing.
/// </summary>
/// <param name="context">The context to seed. </param>
protected override void Seed(AppDbContext context) {
int offset = context.Products.Count();
for (int i = 0; i < 15; i++) {
Product p = new Product("Product #" + (offset + i));
for (int j = 0; j < 10; j++) {
p.Prices.Add(new Price(j * 423));
}
context.Products.Add(p);
}
context.SaveChanges();
}
public void AddItems(AppDbContext context) {
this.Seed(context);
}
}
}
} | Java |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_16) on Thu Feb 26 13:28:54 PST 2009 -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<TITLE>
Uses of Class javax.mail.Transport (JavaMail API documentation)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Uses of Class javax.mail.Transport (JavaMail API documentation)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?javax/mail/class-use/Transport.html" target="_top"><B>FRAMES</B></A>
<A HREF="Transport.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<CENTER>
<H2>
<B>Uses of Class<br>javax.mail.Transport</B></H2>
</CENTER>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Packages that use <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#com.sun.mail.smtp"><B>com.sun.mail.smtp</B></A></TD>
<TD>An SMTP protocol provider for the JavaMail API
that provides access to an SMTP server. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#javax.mail"><B>javax.mail</B></A></TD>
<TD>The JavaMail<sup><font size="-2">TM</font></sup> API
provides classes that model a mail system. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><A HREF="#javax.mail.event"><B>javax.mail.event</B></A></TD>
<TD>Listeners and events for the JavaMail API. </TD>
</TR>
</TABLE>
<P>
<A NAME="com.sun.mail.smtp"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A> in <A HREF="../../../com/sun/mail/smtp/package-summary.html">com.sun.mail.smtp</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Subclasses of <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A> in <A HREF="../../../com/sun/mail/smtp/package-summary.html">com.sun.mail.smtp</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/mail/smtp/SMTPSSLTransport.html" title="class in com.sun.mail.smtp">SMTPSSLTransport</A></B></CODE>
<BR>
This class implements the Transport abstract class using SMTP
over SSL for message submission and transport.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/sun/mail/smtp/SMTPTransport.html" title="class in com.sun.mail.smtp">SMTPTransport</A></B></CODE>
<BR>
This class implements the Transport abstract class using SMTP for
message submission and transport.</TD>
</TR>
</TABLE>
<P>
<A NAME="javax.mail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A> in <A HREF="../../../javax/mail/package-summary.html">javax.mail</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../javax/mail/package-summary.html">javax.mail</A> that return <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></CODE></FONT></TD>
<TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getTransport()">getTransport</A></B>()</CODE>
<BR>
Get a Transport object that implements this user's desired
Transport protcol.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></CODE></FONT></TD>
<TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getTransport(javax.mail.Address)">getTransport</A></B>(<A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A> address)</CODE>
<BR>
Get a Transport object that can transport a Message to the
specified address type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></CODE></FONT></TD>
<TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getTransport(javax.mail.Provider)">getTransport</A></B>(<A HREF="../../../javax/mail/Provider.html" title="class in javax.mail">Provider</A> provider)</CODE>
<BR>
Get an instance of the transport specified in the Provider.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></CODE></FONT></TD>
<TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getTransport(java.lang.String)">getTransport</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> protocol)</CODE>
<BR>
Get a Transport object that implements the specified protocol.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></CODE></FONT></TD>
<TD><CODE><B>Session.</B><B><A HREF="../../../javax/mail/Session.html#getTransport(javax.mail.URLName)">getTransport</A></B>(<A HREF="../../../javax/mail/URLName.html" title="class in javax.mail">URLName</A> url)</CODE>
<BR>
Get a Transport object for the given URLName.</TD>
</TR>
</TABLE>
<P>
<A NAME="javax.mail.event"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
Uses of <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A> in <A HREF="../../../javax/mail/event/package-summary.html">javax.mail.event</A></FONT></TH>
</TR>
</TABLE>
<P>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left" COLSPAN="2">Constructors in <A HREF="../../../javax/mail/event/package-summary.html">javax.mail.event</A> with parameters of type <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../javax/mail/event/TransportEvent.html#TransportEvent(javax.mail.Transport, int, javax.mail.Address[], javax.mail.Address[], javax.mail.Address[], javax.mail.Message)">TransportEvent</A></B>(<A HREF="../../../javax/mail/Transport.html" title="class in javax.mail">Transport</A> transport,
int type,
<A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] validSent,
<A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] validUnsent,
<A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[] invalid,
<A HREF="../../../javax/mail/Message.html" title="class in javax.mail">Message</A> msg)</CODE>
<BR>
Constructor.</TD>
</TR>
</TABLE>
<P>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../javax/mail/Transport.html" title="class in javax.mail"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV
NEXT</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?javax/mail/class-use/Transport.html" target="_top"><B>FRAMES</B></A>
<A HREF="Transport.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright © 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
</BODY>
</HTML>
| Java |
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package Kitchenware
* @author Hamid Abbaszadeh
* @license GNU/LGPL
* @copyright 2014
*/
/**
* Fields
*/
$GLOBALS['TL_LANG']['tl_kitchenware_category']['title'] = array('Kitchenware category title', 'Please enter the kitchenware category title.');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['jumpTo'] = array('Redirect page', 'Please choose the product detail page to which visitors will be redirected when clicking a product item.');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['protected'] = array('Protect archive', 'Show category items to certain member groups only.');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['groups'] = array('Allowed member groups', 'These groups will be able to see the product items in this category.');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['master'] = array('Master category', 'Please define the master category to allow language switching.');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['language'] = array('Language', 'Please enter the language according to the RFC3066 format (e.g. en, en-us or en-cockney).');
/**
* References
*/
$GLOBALS['TL_LANG']['tl_kitchenware_category']['isMaster'] = 'This is a master category';
$GLOBALS['TL_LANG']['tl_kitchenware_category']['isSlave'] = 'Master category is "%s"';
/**
* Legends
*/
$GLOBALS['TL_LANG']['tl_kitchenware_category']['title_legend'] = 'Title';
$GLOBALS['TL_LANG']['tl_kitchenware_category']['redirect_legend'] = 'Redirect';
$GLOBALS['TL_LANG']['tl_kitchenware_category']['protected_legend'] = 'Access protection';
/**
* Buttons
*/
$GLOBALS['TL_LANG']['tl_kitchenware_category']['new'] = array('New category', 'Create a new category');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['show'] = array('Category details', 'Show the details of category ID %s');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['edit'] = array('Edit Products', 'Edit products of category ID %s');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['editheader'] = array('Edit Category', 'Edit the setting of category ID %s');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['copy'] = array('Duplicate Category', 'Duplicate category ID %s');
$GLOBALS['TL_LANG']['tl_kitchenware_category']['delete'] = array('Delete Category', 'Delete category ID %s');
| Java |
// -*- SystemC -*-
// DESCRIPTION: Verilator Example: Top level main for invoking SystemC model
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2017 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
//======================================================================
// For std::unique_ptr
#include <memory>
// SystemC global header
#include <systemc.h>
// Include common routines
#include <verilated.h>
#if VM_TRACE
#include <verilated_vcd_sc.h>
#endif
#include <sys/stat.h> // mkdir
// Include model header, generated from Verilating "top.v"
#include "Vtop.h"
int sc_main(int argc, char* argv[]) {
// This is a more complicated example, please also see the simpler examples/make_hello_c.
// Prevent unused variable warnings
if (false && argc && argv) {}
// Create logs/ directory in case we have traces to put under it
Verilated::mkdir("logs");
// Set debug level, 0 is off, 9 is highest presently used
// May be overridden by commandArgs argument parsing
Verilated::debug(0);
// Randomization reset policy
// May be overridden by commandArgs argument parsing
Verilated::randReset(2);
#if VM_TRACE
// Before any evaluation, need to know to calculate those signals only used for tracing
Verilated::traceEverOn(true);
#endif
// Pass arguments so Verilated code can see them, e.g. $value$plusargs
// This needs to be called before you create any model
Verilated::commandArgs(argc, argv);
// General logfile
ios::sync_with_stdio();
// Define clocks
sc_clock clk{"clk", 10, SC_NS, 0.5, 3, SC_NS, true};
sc_clock fastclk{"fastclk", 2, SC_NS, 0.5, 2, SC_NS, true};
// Define interconnect
sc_signal<bool> reset_l;
sc_signal<vluint32_t> in_small;
sc_signal<vluint64_t> in_quad;
sc_signal<sc_bv<70>> in_wide;
sc_signal<vluint32_t> out_small;
sc_signal<vluint64_t> out_quad;
sc_signal<sc_bv<70>> out_wide;
// Construct the Verilated model, from inside Vtop.h
// Using unique_ptr is similar to "Vtop* top = new Vtop" then deleting at end
const std::unique_ptr<Vtop> top{new Vtop{"top"}};
// Attach Vtop's signals to this upper model
top->clk(clk);
top->fastclk(fastclk);
top->reset_l(reset_l);
top->in_small(in_small);
top->in_quad(in_quad);
top->in_wide(in_wide);
top->out_small(out_small);
top->out_quad(out_quad);
top->out_wide(out_wide);
// You must do one evaluation before enabling waves, in order to allow
// SystemC to interconnect everything for testing.
sc_start(1, SC_NS);
#if VM_TRACE
// If verilator was invoked with --trace argument,
// and if at run time passed the +trace argument, turn on tracing
VerilatedVcdSc* tfp = nullptr;
const char* flag = Verilated::commandArgsPlusMatch("trace");
if (flag && 0 == strcmp(flag, "+trace")) {
cout << "Enabling waves into logs/vlt_dump.vcd...\n";
tfp = new VerilatedVcdSc;
top->trace(tfp, 99); // Trace 99 levels of hierarchy
Verilated::mkdir("logs");
tfp->open("logs/vlt_dump.vcd");
}
#endif
// Simulate until $finish
while (!Verilated::gotFinish()) {
#if VM_TRACE
// Flush the wave files each cycle so we can immediately see the output
// Don't do this in "real" programs, do it in an abort() handler instead
if (tfp) tfp->flush();
#endif
// Apply inputs
if (sc_time_stamp() > sc_time(1, SC_NS) && sc_time_stamp() < sc_time(10, SC_NS)) {
reset_l = !1; // Assert reset
} else {
reset_l = !0; // Deassert reset
}
// Simulate 1ns
sc_start(1, SC_NS);
}
// Final model cleanup
top->final();
// Close trace if opened
#if VM_TRACE
if (tfp) {
tfp->close();
tfp = nullptr;
}
#endif
// Coverage analysis (calling write only after the test is known to pass)
#if VM_COVERAGE
Verilated::mkdir("logs");
VerilatedCov::write("logs/coverage.dat");
#endif
// Return good completion status
return 0;
}
| Java |
/*
pkTriggerCord
Copyright (C) 2011-2014 Andras Salamon <[email protected]>
Remote control of Pentax DSLR cameras.
Support for K200D added by Jens Dreyer <[email protected]> 04/2011
Support for K-r added by Vincenc Podobnik <[email protected]> 06/2011
Support for K-30 added by Camilo Polymeris <[email protected]> 09/2012
Support for K-01 added by Ethan Queen <[email protected]> 01/2013
based on:
PK-Remote
Remote control of Pentax DSLR cameras.
Copyright (C) 2008 Pontus Lidman <[email protected]>
PK-Remote for Windows
Copyright (C) 2010 Tomasz Kos
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License
and GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PSLR_MODEL_H
#define PSLR_MODEL_H
#include "pslr_enum.h"
#include "pslr_scsi.h"
#define MAX_RESOLUTION_SIZE 4
#define MAX_STATUS_BUF_SIZE 452
#define MAX_SEGMENTS 4
typedef struct ipslr_handle ipslr_handle_t;
typedef struct {
int32_t nom;
int32_t denom;
} pslr_rational_t;
typedef struct {
uint16_t bufmask;
uint32_t current_iso;
pslr_rational_t current_shutter_speed;
pslr_rational_t current_aperture;
pslr_rational_t lens_max_aperture;
pslr_rational_t lens_min_aperture;
pslr_rational_t set_shutter_speed;
pslr_rational_t set_aperture;
pslr_rational_t max_shutter_speed;
uint32_t auto_bracket_mode; // 1: on, 0: off
pslr_rational_t auto_bracket_ev;
uint32_t auto_bracket_picture_count;
uint32_t fixed_iso;
uint32_t jpeg_resolution;
uint32_t jpeg_saturation;
uint32_t jpeg_quality;
uint32_t jpeg_contrast;
uint32_t jpeg_sharpness;
uint32_t jpeg_image_tone;
uint32_t jpeg_hue;
pslr_rational_t zoom;
int32_t focus;
uint32_t image_format;
uint32_t raw_format;
uint32_t light_meter_flags;
pslr_rational_t ec;
uint32_t custom_ev_steps;
uint32_t custom_sensitivity_steps;
uint32_t exposure_mode;
uint32_t exposure_submode;
uint32_t user_mode_flag;
uint32_t ae_metering_mode;
uint32_t af_mode;
uint32_t af_point_select;
uint32_t selected_af_point;
uint32_t focused_af_point;
uint32_t auto_iso_min;
uint32_t auto_iso_max;
uint32_t drive_mode;
uint32_t shake_reduction;
uint32_t white_balance_mode;
uint32_t white_balance_adjust_mg;
uint32_t white_balance_adjust_ba;
uint32_t flash_mode;
int32_t flash_exposure_compensation; // 1/256
int32_t manual_mode_ev; // 1/10
uint32_t color_space;
uint32_t lens_id1;
uint32_t lens_id2;
uint32_t battery_1;
uint32_t battery_2;
uint32_t battery_3;
uint32_t battery_4;
} pslr_status;
typedef void (*ipslr_status_parse_t)(ipslr_handle_t *p, pslr_status *status);
typedef struct {
uint32_t id; // Pentax model ID
const char *name; // name
bool old_scsi_command; // 1 for *ist cameras, 0 for the newer cameras
bool need_exposure_mode_conversion; // is exposure_mode_conversion required
int buffer_size; // buffer size in bytes
int max_jpeg_stars; // maximum jpeg stars
int jpeg_resolutions[MAX_RESOLUTION_SIZE]; // jpeg resolution table
int jpeg_property_levels; // 5 [-2, 2] or 7 [-3,3] or 9 [-4,4]
int fastest_shutter_speed; // fastest shutter speed denominator
int base_iso_min; // base iso minimum
int base_iso_max; // base iso maximum
int extended_iso_min; // extended iso minimum
int extended_iso_max; // extended iso maximum
pslr_jpeg_image_tone_t max_supported_image_tone; // last supported jpeg image tone
ipslr_status_parse_t parser_function; // parse function for status buffer
} ipslr_model_info_t;
typedef struct {
uint32_t offset;
uint32_t addr;
uint32_t length;
} ipslr_segment_t;
struct ipslr_handle {
int fd;
pslr_status status;
uint32_t id;
ipslr_model_info_t *model;
ipslr_segment_t segments[MAX_SEGMENTS];
uint32_t segment_count;
uint32_t offset;
uint8_t status_buffer[MAX_STATUS_BUF_SIZE];
};
ipslr_model_info_t *find_model_by_id( uint32_t id );
int get_hw_jpeg_quality( ipslr_model_info_t *model, int user_jpeg_stars);
uint32_t get_uint32(uint8_t *buf);
void hexdump(uint8_t *buf, uint32_t bufLen);
#endif
| Java |
/**************************************************************************/
/* */
/* This file is part of CINV. */
/* */
/* Copyright (C) 2009-2011 */
/* LIAFA (University of Paris Diderot and CNRS) */
/* */
/* */
/* you can redistribute it and/or modify it under the terms of the GNU */
/* Lesser General Public License as published by the Free Software */
/* Foundation, version 3. */
/* */
/* It is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU Lesser General Public License for more details. */
/* */
/* See the GNU Lesser General Public License version 3. */
/* for more details (enclosed in the file LICENSE). */
/* */
/**************************************************************************/
#ifndef SHAPE_MANAGER_H_
#define SHAPE_MANAGER_H_
#include "hgraph_fun.h"
#include "shape_fun.h"
#include "ap_pcons0.h"
#include "ap_passign0.h"
#include "ap_manager.h"
/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C"
{
#endif
/* *INDENT-ON* */
/* ********************************************************************** */
/* Manager */
/* ********************************************************************** */
/* ============================================================ */
/* Internal Representation */
/* ============================================================ */
/* manager-local data specific to shapes */
struct _shape_internal_t
{
/* current function */
ap_funid_t funid;
/* local parameters for current function */
ap_funopt_t *funopt;
/* hash-tables */
hgraph_t *hgraphs; /* heap graphs */
pcons0_t *pcons; /* ptr constraints */
passign0_t *passigns; /* ptr assignments */
/* manager of the segment domains */
size_t size_scons;
ap_manager_t **man_scons; /* array of scons_size managers */
size_t man_mset; /* position of the mset manager/constraint */
size_t man_ucons; /* position of the ucons manager/constraint */
/* max number for anonymous nodes for closure */
size_t max_anon;
size_t segm_anon;
/* count errors and files */
int error_;
long int filenum;
/* default dimensions */
size_t intdim;
size_t realdim;
/* approximate meet for hgraphs */
int meet_algo;
/* TODO: other data */
/* back-pointer */
ap_manager_t *man;
};
typedef struct _shape_internal_t shape_internal_t;
/* Abstract data type of library-specific manager options. */
/* ============================================================ */
/* Basic management. */
/* ============================================================ */
/* called by each function to setup and get manager-local data */
static inline shape_internal_t *
shape_init_from_manager (ap_manager_t * man, ap_funid_t id, size_t size)
{
shape_internal_t *pr = (shape_internal_t *) man->internal;
pr->funid = id;
pr->funopt = man->option.funopt + id;
man->result.flag_exact = man->result.flag_best = true;
/* TODO: set other internal data from manager */
/* DO NOT TOUCH TO THE hgraphs FIELD! */
return pr;
}
/* *INDENT-OFF* */
#ifdef __cplusplus
}
#endif
/* *INDENT-ON* */
#endif /* SHAPE_MANAGER_H_ */
| Java |
package org.cloudbus.cloudsim.examples.power.steady;
import java.io.IOException;
/**
* A simulation of a heterogeneous power aware data center that applies the
* Static Threshold (THR) VM allocation policy and Minimum Migration Time (MMT)
* VM selection policy.
*
* The remaining configuration parameters are in the Constants and
* SteadyConstants classes.
*
* If you are using any algorithms, policies or workload included in the power
* package please cite the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic
* Algorithms and Adaptive Heuristics for Energy and Performance Efficient
* Dynamic Consolidation of Virtual Machines in Cloud Data Centers", Concurrency
* and Computation: Practice and Experience (CCPE), Volume 24, Issue 13, Pages:
* 1397-1420, John Wiley & Sons, Ltd, New York, USA, 2012
*
* @author Anton Beloglazov
* @since Jan 5, 2012
*/
public class ThrMmt {
/**
* The main method.
*
* @param args
* the arguments
* @throws IOException
* Signals that an I/O exception has occurred.
*/
public static void main(String[] args) throws IOException {
boolean enableOutput = true;
boolean outputToFile = false;
String inputFolder = "";
String outputFolder = "";
String workload = "steady"; // Steady workload
String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM
// allocation policy
String vmSelectionPolicy = "mmt"; // Minimum Migration Time (MMT) VM
// selection policy
String parameter = "0.8"; // the static utilization threshold
new SteadyRunner(enableOutput, outputToFile, inputFolder, outputFolder,
workload, vmAllocationPolicy, vmSelectionPolicy, parameter);
}
}
| Java |
#pragma once
#include "SamplingMethod.h"
namespace PcapDotNet { namespace Core
{
/// <summary>
/// This sampling method defines that we have to return 1 packet every given time-interval.
/// In other words, if the interval is set to 10 milliseconds, the first packet is returned to the caller; the next returned one will be the first packet that arrives when 10ms have elapsed.
/// </summary>
public ref class SamplingMethodFirstAfterInterval sealed : SamplingMethod
{
public:
/// <summary>
/// Constructs by giving an interval in milliseconds.
/// </summary>
/// <param name="intervalInMs">The number of milliseconds to wait between packets sampled.</param>
/// <exception cref="System::ArgumentOutOfRangeException">The given number of milliseconds is negative.</exception>
SamplingMethodFirstAfterInterval(int intervalInMs);
/// <summary>
/// Constructs by giving an interval as TimeSpan.
/// </summary>
/// <param name="interval">The time to wait between packets sampled.</param>
/// <exception cref="System::ArgumentOutOfRangeException">The interval is negative or larger than 2^31 milliseconds.</exception>
SamplingMethodFirstAfterInterval(System::TimeSpan interval);
internal:
virtual property int Method
{
int get() override;
}
/// <summary>
/// Indicates the 'waiting time' in milliseconds before one packet got accepted.
/// In other words, if 'value = 10', the first packet is returned to the caller; the next returned one will be the first packet that arrives when 10ms have elapsed.
/// </summary>
virtual property int Value
{
int get() override;
}
private:
int _intervalInMs;
};
}} | Java |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package orgomg.cwm.analysis.olap.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.util.EObjectContainmentWithInverseEList;
import org.eclipse.emf.ecore.util.InternalEList;
import orgomg.cwm.analysis.olap.HierarchyLevelAssociation;
import orgomg.cwm.analysis.olap.LevelBasedHierarchy;
import orgomg.cwm.analysis.olap.OlapPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Level Based Hierarchy</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link orgomg.cwm.analysis.olap.impl.LevelBasedHierarchyImpl#getHierarchyLevelAssociation <em>Hierarchy Level Association</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class LevelBasedHierarchyImpl extends HierarchyImpl implements LevelBasedHierarchy {
/**
* The cached value of the '{@link #getHierarchyLevelAssociation() <em>Hierarchy Level Association</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHierarchyLevelAssociation()
* @generated
* @ordered
*/
protected EList<HierarchyLevelAssociation> hierarchyLevelAssociation;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected LevelBasedHierarchyImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return OlapPackage.Literals.LEVEL_BASED_HIERARCHY;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<HierarchyLevelAssociation> getHierarchyLevelAssociation() {
if (hierarchyLevelAssociation == null) {
hierarchyLevelAssociation = new EObjectContainmentWithInverseEList<HierarchyLevelAssociation>(HierarchyLevelAssociation.class, this, OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION, OlapPackage.HIERARCHY_LEVEL_ASSOCIATION__LEVEL_BASED_HIERARCHY);
}
return hierarchyLevelAssociation;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION:
return ((InternalEList<InternalEObject>)(InternalEList<?>)getHierarchyLevelAssociation()).basicAdd(otherEnd, msgs);
}
return super.eInverseAdd(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION:
return ((InternalEList<?>)getHierarchyLevelAssociation()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION:
return getHierarchyLevelAssociation();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION:
getHierarchyLevelAssociation().clear();
getHierarchyLevelAssociation().addAll((Collection<? extends HierarchyLevelAssociation>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION:
getHierarchyLevelAssociation().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case OlapPackage.LEVEL_BASED_HIERARCHY__HIERARCHY_LEVEL_ASSOCIATION:
return hierarchyLevelAssociation != null && !hierarchyLevelAssociation.isEmpty();
}
return super.eIsSet(featureID);
}
} //LevelBasedHierarchyImpl
| Java |
namespace Importer.Interfaces
{
public interface ISilence
{
float Start { get; }
float End { get; }
float Duration { get; }
float CutTime { get; }
}
} | Java |
///////////////////////////////////////////////////////////////////////////////
// Name: src/ribbon/gallery.cpp
// Purpose: Ribbon control which displays a gallery of items to choose from
// Author: Peter Cawley
// Modified by:
// Created: 2009-07-22
// Copyright: (C) Peter Cawley
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#if wxUSE_RIBBON
#include "wx/ribbon/gallery.h"
#include "wx/ribbon/art.h"
#include "wx/ribbon/bar.h"
#include "wx/dcbuffer.h"
#include "wx/clntdata.h"
#ifndef WX_PRECOMP
#endif
#ifdef __WXMSW__
#include "wx/msw/private.h"
#endif
wxDEFINE_EVENT(wxEVT_RIBBONGALLERY_HOVER_CHANGED, wxRibbonGalleryEvent);
wxDEFINE_EVENT(wxEVT_RIBBONGALLERY_SELECTED, wxRibbonGalleryEvent);
wxDEFINE_EVENT(wxEVT_RIBBONGALLERY_CLICKED, wxRibbonGalleryEvent);
IMPLEMENT_DYNAMIC_CLASS(wxRibbonGalleryEvent, wxCommandEvent)
IMPLEMENT_CLASS(wxRibbonGallery, wxRibbonControl)
class wxRibbonGalleryItem
{
public:
wxRibbonGalleryItem()
{
m_id = 0;
m_is_visible = false;
}
void SetId(int id) {m_id = id;}
void SetBitmap(const wxBitmap& bitmap) {m_bitmap = bitmap;}
const wxBitmap& GetBitmap() const {return m_bitmap;}
void SetIsVisible(bool visible) {m_is_visible = visible;}
void SetPosition(int x, int y, const wxSize& size)
{
m_position = wxRect(wxPoint(x, y), size);
}
bool IsVisible() const {return m_is_visible;}
const wxRect& GetPosition() const {return m_position;}
void SetClientObject(wxClientData *data) {m_client_data.SetClientObject(data);}
wxClientData *GetClientObject() const {return m_client_data.GetClientObject();}
void SetClientData(void *data) {m_client_data.SetClientData(data);}
void *GetClientData() const {return m_client_data.GetClientData();}
protected:
wxBitmap m_bitmap;
wxClientDataContainer m_client_data;
wxRect m_position;
int m_id;
bool m_is_visible;
};
BEGIN_EVENT_TABLE(wxRibbonGallery, wxRibbonControl)
EVT_ENTER_WINDOW(wxRibbonGallery::OnMouseEnter)
EVT_ERASE_BACKGROUND(wxRibbonGallery::OnEraseBackground)
EVT_LEAVE_WINDOW(wxRibbonGallery::OnMouseLeave)
EVT_LEFT_DOWN(wxRibbonGallery::OnMouseDown)
EVT_LEFT_UP(wxRibbonGallery::OnMouseUp)
EVT_LEFT_DCLICK(wxRibbonGallery::OnMouseDClick)
EVT_MOTION(wxRibbonGallery::OnMouseMove)
EVT_PAINT(wxRibbonGallery::OnPaint)
EVT_SIZE(wxRibbonGallery::OnSize)
END_EVENT_TABLE()
wxRibbonGallery::wxRibbonGallery()
{
}
wxRibbonGallery::wxRibbonGallery(wxWindow* parent,
wxWindowID id,
const wxPoint& pos,
const wxSize& size,
long style)
: wxRibbonControl(parent, id, pos, size, wxBORDER_NONE)
{
CommonInit(style);
}
wxRibbonGallery::~wxRibbonGallery()
{
Clear();
}
bool wxRibbonGallery::Create(wxWindow* parent,
wxWindowID id,
const wxPoint& pos,
const wxSize& size,
long style)
{
if(!wxRibbonControl::Create(parent, id, pos, size, wxBORDER_NONE))
{
return false;
}
CommonInit(style);
return true;
}
void wxRibbonGallery::CommonInit(long WXUNUSED(style))
{
m_selected_item = NULL;
m_hovered_item = NULL;
m_active_item = NULL;
m_scroll_up_button_rect = wxRect(0, 0, 0, 0);
m_scroll_down_button_rect = wxRect(0, 0, 0, 0);
m_extension_button_rect = wxRect(0, 0, 0, 0);
m_mouse_active_rect = NULL;
m_bitmap_size = wxSize(64, 32);
m_bitmap_padded_size = m_bitmap_size;
m_item_separation_x = 0;
m_item_separation_y = 0;
m_scroll_amount = 0;
m_scroll_limit = 0;
m_up_button_state = wxRIBBON_GALLERY_BUTTON_DISABLED;
m_down_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
m_extension_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
m_hovered = false;
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
}
void wxRibbonGallery::OnMouseEnter(wxMouseEvent& evt)
{
m_hovered = true;
if(m_mouse_active_rect != NULL && !evt.LeftIsDown())
{
m_mouse_active_rect = NULL;
m_active_item = NULL;
}
Refresh(false);
}
void wxRibbonGallery::OnMouseMove(wxMouseEvent& evt)
{
bool refresh = false;
wxPoint pos = evt.GetPosition();
if(TestButtonHover(m_scroll_up_button_rect, pos, &m_up_button_state))
refresh = true;
if(TestButtonHover(m_scroll_down_button_rect, pos, &m_down_button_state))
refresh = true;
if(TestButtonHover(m_extension_button_rect, pos, &m_extension_button_state))
refresh = true;
wxRibbonGalleryItem *hovered_item = NULL;
wxRibbonGalleryItem *active_item = NULL;
if(m_client_rect.Contains(pos))
{
if(m_art && m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL)
pos.x += m_scroll_amount;
else
pos.y += m_scroll_amount;
size_t item_count = m_items.Count();
size_t item_i;
for(item_i = 0; item_i < item_count; ++item_i)
{
wxRibbonGalleryItem *item = m_items.Item(item_i);
if(!item->IsVisible())
continue;
if(item->GetPosition().Contains(pos))
{
if(m_mouse_active_rect == &item->GetPosition())
active_item = item;
hovered_item = item;
break;
}
}
}
if(active_item != m_active_item)
{
m_active_item = active_item;
refresh = true;
}
if(hovered_item != m_hovered_item)
{
m_hovered_item = hovered_item;
wxRibbonGalleryEvent notification(
wxEVT_RIBBONGALLERY_HOVER_CHANGED, GetId());
notification.SetEventObject(this);
notification.SetGallery(this);
notification.SetGalleryItem(hovered_item);
ProcessWindowEvent(notification);
refresh = true;
}
if(refresh)
Refresh(false);
}
bool wxRibbonGallery::TestButtonHover(const wxRect& rect, wxPoint pos,
wxRibbonGalleryButtonState* state)
{
if(*state == wxRIBBON_GALLERY_BUTTON_DISABLED)
return false;
wxRibbonGalleryButtonState new_state;
if(rect.Contains(pos))
{
if(m_mouse_active_rect == &rect)
new_state = wxRIBBON_GALLERY_BUTTON_ACTIVE;
else
new_state = wxRIBBON_GALLERY_BUTTON_HOVERED;
}
else
new_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(new_state != *state)
{
*state = new_state;
return true;
}
else
{
return false;
}
}
void wxRibbonGallery::OnMouseLeave(wxMouseEvent& WXUNUSED(evt))
{
m_hovered = false;
m_active_item = NULL;
if(m_up_button_state != wxRIBBON_GALLERY_BUTTON_DISABLED)
m_up_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(m_down_button_state != wxRIBBON_GALLERY_BUTTON_DISABLED)
m_down_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(m_extension_button_state != wxRIBBON_GALLERY_BUTTON_DISABLED)
m_extension_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(m_hovered_item != NULL)
{
m_hovered_item = NULL;
wxRibbonGalleryEvent notification(
wxEVT_RIBBONGALLERY_HOVER_CHANGED, GetId());
notification.SetEventObject(this);
notification.SetGallery(this);
ProcessWindowEvent(notification);
}
Refresh(false);
}
void wxRibbonGallery::OnMouseDown(wxMouseEvent& evt)
{
wxPoint pos = evt.GetPosition();
m_mouse_active_rect = NULL;
if(m_client_rect.Contains(pos))
{
if(m_art && m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL)
pos.x += m_scroll_amount;
else
pos.y += m_scroll_amount;
size_t item_count = m_items.Count();
size_t item_i;
for(item_i = 0; item_i < item_count; ++item_i)
{
wxRibbonGalleryItem *item = m_items.Item(item_i);
if(!item->IsVisible())
continue;
const wxRect& rect = item->GetPosition();
if(rect.Contains(pos))
{
m_active_item = item;
m_mouse_active_rect = ▭
break;
}
}
}
else if(m_scroll_up_button_rect.Contains(pos))
{
if(m_up_button_state != wxRIBBON_GALLERY_BUTTON_DISABLED)
{
m_mouse_active_rect = &m_scroll_up_button_rect;
m_up_button_state = wxRIBBON_GALLERY_BUTTON_ACTIVE;
}
}
else if(m_scroll_down_button_rect.Contains(pos))
{
if(m_down_button_state != wxRIBBON_GALLERY_BUTTON_DISABLED)
{
m_mouse_active_rect = &m_scroll_down_button_rect;
m_down_button_state = wxRIBBON_GALLERY_BUTTON_ACTIVE;
}
}
else if(m_extension_button_rect.Contains(pos))
{
if(m_extension_button_state != wxRIBBON_GALLERY_BUTTON_DISABLED)
{
m_mouse_active_rect = &m_extension_button_rect;
m_extension_button_state = wxRIBBON_GALLERY_BUTTON_ACTIVE;
}
}
if(m_mouse_active_rect != NULL)
Refresh(false);
}
void wxRibbonGallery::OnMouseUp(wxMouseEvent& evt)
{
if(m_mouse_active_rect != NULL)
{
wxPoint pos = evt.GetPosition();
if(m_active_item)
{
if(m_art && m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL)
pos.x += m_scroll_amount;
else
pos.y += m_scroll_amount;
}
if(m_mouse_active_rect->Contains(pos))
{
if(m_mouse_active_rect == &m_scroll_up_button_rect)
{
m_up_button_state = wxRIBBON_GALLERY_BUTTON_HOVERED;
ScrollLines(-1);
}
else if(m_mouse_active_rect == &m_scroll_down_button_rect)
{
m_down_button_state = wxRIBBON_GALLERY_BUTTON_HOVERED;
ScrollLines(1);
}
else if(m_mouse_active_rect == &m_extension_button_rect)
{
m_extension_button_state = wxRIBBON_GALLERY_BUTTON_HOVERED;
wxCommandEvent notification(wxEVT_BUTTON,
GetId());
notification.SetEventObject(this);
ProcessWindowEvent(notification);
}
else if(m_active_item != NULL)
{
if(m_selected_item != m_active_item)
{
m_selected_item = m_active_item;
wxRibbonGalleryEvent notification(
wxEVT_RIBBONGALLERY_SELECTED, GetId());
notification.SetEventObject(this);
notification.SetGallery(this);
notification.SetGalleryItem(m_selected_item);
ProcessWindowEvent(notification);
}
wxRibbonGalleryEvent notification(
wxEVT_RIBBONGALLERY_CLICKED, GetId());
notification.SetEventObject(this);
notification.SetGallery(this);
notification.SetGalleryItem(m_selected_item);
ProcessWindowEvent(notification);
}
}
m_mouse_active_rect = NULL;
m_active_item = NULL;
Refresh(false);
}
}
void wxRibbonGallery::OnMouseDClick(wxMouseEvent& evt)
{
// The 2nd click of a double-click should be handled as a click in the
// same way as the 1st click of the double-click. This is useful for
// scrolling through the gallery.
OnMouseDown(evt);
OnMouseUp(evt);
}
void wxRibbonGallery::SetItemClientObject(wxRibbonGalleryItem* itm,
wxClientData* data)
{
itm->SetClientObject(data);
}
wxClientData* wxRibbonGallery::GetItemClientObject(const wxRibbonGalleryItem* itm) const
{
return itm->GetClientObject();
}
void wxRibbonGallery::SetItemClientData(wxRibbonGalleryItem* itm, void* data)
{
itm->SetClientData(data);
}
void* wxRibbonGallery::GetItemClientData(const wxRibbonGalleryItem* itm) const
{
return itm->GetClientData();
}
bool wxRibbonGallery::ScrollLines(int lines)
{
if(m_scroll_limit == 0 || m_art == NULL)
return false;
return ScrollPixels(lines * GetScrollLineSize());
}
int wxRibbonGallery::GetScrollLineSize() const
{
if(m_art == NULL)
return 32;
int line_size = m_bitmap_padded_size.GetHeight();
if(m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL)
line_size = m_bitmap_padded_size.GetWidth();
return line_size;
}
bool wxRibbonGallery::ScrollPixels(int pixels)
{
if(m_scroll_limit == 0 || m_art == NULL)
return false;
if(pixels < 0)
{
if(m_scroll_amount > 0)
{
m_scroll_amount += pixels;
if(m_scroll_amount <= 0)
{
m_scroll_amount = 0;
m_up_button_state = wxRIBBON_GALLERY_BUTTON_DISABLED;
}
else if(m_up_button_state == wxRIBBON_GALLERY_BUTTON_DISABLED)
m_up_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(m_down_button_state == wxRIBBON_GALLERY_BUTTON_DISABLED)
m_down_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
return true;
}
}
else if(pixels > 0)
{
if(m_scroll_amount < m_scroll_limit)
{
m_scroll_amount += pixels;
if(m_scroll_amount >= m_scroll_limit)
{
m_scroll_amount = m_scroll_limit;
m_down_button_state = wxRIBBON_GALLERY_BUTTON_DISABLED;
}
else if(m_down_button_state == wxRIBBON_GALLERY_BUTTON_DISABLED)
m_down_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(m_up_button_state == wxRIBBON_GALLERY_BUTTON_DISABLED)
m_up_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
return true;
}
}
return false;
}
void wxRibbonGallery::EnsureVisible(const wxRibbonGalleryItem* item)
{
if(item == NULL || !item->IsVisible() || IsEmpty())
return;
if(m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL)
{
int x = item->GetPosition().GetLeft();
int base_x = m_items.Item(0)->GetPosition().GetLeft();
int delta = x - base_x - m_scroll_amount;
ScrollLines(delta / m_bitmap_padded_size.GetWidth());
}
else
{
int y = item->GetPosition().GetTop();
int base_y = m_items.Item(0)->GetPosition().GetTop();
int delta = y - base_y - m_scroll_amount;
ScrollLines(delta / m_bitmap_padded_size.GetHeight());
}
}
bool wxRibbonGallery::IsHovered() const
{
return m_hovered;
}
void wxRibbonGallery::OnEraseBackground(wxEraseEvent& WXUNUSED(evt))
{
// All painting done in main paint handler to minimise flicker
}
void wxRibbonGallery::OnPaint(wxPaintEvent& WXUNUSED(evt))
{
wxAutoBufferedPaintDC dc(this);
if(m_art == NULL)
return;
m_art->DrawGalleryBackground(dc, this, GetSize());
int padding_top = m_art->GetMetric(wxRIBBON_ART_GALLERY_BITMAP_PADDING_TOP_SIZE);
int padding_left = m_art->GetMetric(wxRIBBON_ART_GALLERY_BITMAP_PADDING_LEFT_SIZE);
dc.SetClippingRegion(m_client_rect);
bool offset_vertical = true;
if(m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL)
offset_vertical = false;
size_t item_count = m_items.Count();
size_t item_i;
for(item_i = 0; item_i < item_count; ++item_i)
{
wxRibbonGalleryItem *item = m_items.Item(item_i);
if(!item->IsVisible())
continue;
const wxRect& pos = item->GetPosition();
wxRect offset_pos(pos);
if(offset_vertical)
offset_pos.SetTop(offset_pos.GetTop() - m_scroll_amount);
else
offset_pos.SetLeft(offset_pos.GetLeft() - m_scroll_amount);
m_art->DrawGalleryItemBackground(dc, this, offset_pos, item);
dc.DrawBitmap(item->GetBitmap(), offset_pos.GetLeft() + padding_left,
offset_pos.GetTop() + padding_top);
}
}
void wxRibbonGallery::OnSize(wxSizeEvent& WXUNUSED(evt))
{
Layout();
}
wxRibbonGalleryItem* wxRibbonGallery::Append(const wxBitmap& bitmap, int id)
{
wxASSERT(bitmap.IsOk());
if(m_items.IsEmpty())
{
m_bitmap_size = bitmap.GetSize();
CalculateMinSize();
}
else
{
wxASSERT(bitmap.GetSize() == m_bitmap_size);
}
wxRibbonGalleryItem *item = new wxRibbonGalleryItem;
item->SetId(id);
item->SetBitmap(bitmap);
m_items.Add(item);
return item;
}
wxRibbonGalleryItem* wxRibbonGallery::Append(const wxBitmap& bitmap, int id,
void* clientData)
{
wxRibbonGalleryItem *item = Append(bitmap, id);
item->SetClientData(clientData);
return item;
}
wxRibbonGalleryItem* wxRibbonGallery::Append(const wxBitmap& bitmap, int id,
wxClientData* clientData)
{
wxRibbonGalleryItem *item = Append(bitmap, id);
item->SetClientObject(clientData);
return item;
}
void wxRibbonGallery::Clear()
{
size_t item_count = m_items.Count();
size_t item_i;
for(item_i = 0; item_i < item_count; ++item_i)
{
wxRibbonGalleryItem *item = m_items.Item(item_i);
delete item;
}
m_items.Clear();
}
bool wxRibbonGallery::IsSizingContinuous() const
{
return false;
}
void wxRibbonGallery::CalculateMinSize()
{
if(m_art == NULL || !m_bitmap_size.IsFullySpecified())
{
SetMinSize(wxSize(20, 20));
}
else
{
m_bitmap_padded_size = m_bitmap_size;
m_bitmap_padded_size.IncBy(
m_art->GetMetric(wxRIBBON_ART_GALLERY_BITMAP_PADDING_LEFT_SIZE) +
m_art->GetMetric(wxRIBBON_ART_GALLERY_BITMAP_PADDING_RIGHT_SIZE),
m_art->GetMetric(wxRIBBON_ART_GALLERY_BITMAP_PADDING_TOP_SIZE) +
m_art->GetMetric(wxRIBBON_ART_GALLERY_BITMAP_PADDING_BOTTOM_SIZE));
wxMemoryDC dc;
SetMinSize(m_art->GetGallerySize(dc, this, m_bitmap_padded_size));
// The best size is displaying several items
m_best_size = m_bitmap_padded_size;
m_best_size.x *= 3;
m_best_size = m_art->GetGallerySize(dc, this, m_best_size);
}
}
bool wxRibbonGallery::Realize()
{
CalculateMinSize();
return Layout();
}
bool wxRibbonGallery::Layout()
{
if(m_art == NULL)
return false;
wxMemoryDC dc;
wxPoint origin;
wxSize client_size = m_art->GetGalleryClientSize(dc, this, GetSize(),
&origin, &m_scroll_up_button_rect, &m_scroll_down_button_rect,
&m_extension_button_rect);
m_client_rect = wxRect(origin, client_size);
int x_cursor = 0;
int y_cursor = 0;
size_t item_count = m_items.Count();
size_t item_i;
long art_flags = m_art->GetFlags();
for(item_i = 0; item_i < item_count; ++item_i)
{
wxRibbonGalleryItem *item = m_items.Item(item_i);
item->SetIsVisible(true);
if(art_flags & wxRIBBON_BAR_FLOW_VERTICAL)
{
if(y_cursor + m_bitmap_padded_size.y > client_size.GetHeight())
{
if(y_cursor == 0)
break;
y_cursor = 0;
x_cursor += m_bitmap_padded_size.x;
}
item->SetPosition(origin.x + x_cursor, origin.y + y_cursor,
m_bitmap_padded_size);
y_cursor += m_bitmap_padded_size.y;
}
else
{
if(x_cursor + m_bitmap_padded_size.x > client_size.GetWidth())
{
if(x_cursor == 0)
break;
x_cursor = 0;
y_cursor += m_bitmap_padded_size.y;
}
item->SetPosition(origin.x + x_cursor, origin.y + y_cursor,
m_bitmap_padded_size);
x_cursor += m_bitmap_padded_size.x;
}
}
for(; item_i < item_count; ++item_i)
{
wxRibbonGalleryItem *item = m_items.Item(item_i);
item->SetIsVisible(false);
}
if(art_flags & wxRIBBON_BAR_FLOW_VERTICAL)
m_scroll_limit = x_cursor;
else
m_scroll_limit = y_cursor;
if(m_scroll_amount >= m_scroll_limit)
{
m_scroll_amount = m_scroll_limit;
m_down_button_state = wxRIBBON_GALLERY_BUTTON_DISABLED;
}
else if(m_down_button_state == wxRIBBON_GALLERY_BUTTON_DISABLED)
m_down_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
if(m_scroll_amount <= 0)
{
m_scroll_amount = 0;
m_up_button_state = wxRIBBON_GALLERY_BUTTON_DISABLED;
}
else if(m_up_button_state == wxRIBBON_GALLERY_BUTTON_DISABLED)
m_up_button_state = wxRIBBON_GALLERY_BUTTON_NORMAL;
return true;
}
wxSize wxRibbonGallery::DoGetBestSize() const
{
return m_best_size;
}
wxSize wxRibbonGallery::DoGetNextSmallerSize(wxOrientation direction,
wxSize relative_to) const
{
if(m_art == NULL)
return relative_to;
wxMemoryDC dc;
wxSize client = m_art->GetGalleryClientSize(dc, this, relative_to, NULL,
NULL, NULL, NULL);
switch(direction)
{
case wxHORIZONTAL:
client.DecBy(1, 0);
break;
case wxVERTICAL:
client.DecBy(0, 1);
break;
case wxBOTH:
client.DecBy(1, 1);
break;
}
if(client.GetWidth() < 0 || client.GetHeight() < 0)
return relative_to;
client.x = (client.x / m_bitmap_padded_size.x) * m_bitmap_padded_size.x;
client.y = (client.y / m_bitmap_padded_size.y) * m_bitmap_padded_size.y;
wxSize size = m_art->GetGallerySize(dc, this, client);
wxSize minimum = GetMinSize();
if(size.GetWidth() < minimum.GetWidth() ||
size.GetHeight() < minimum.GetHeight())
{
return relative_to;
}
switch(direction)
{
case wxHORIZONTAL:
size.SetHeight(relative_to.GetHeight());
break;
case wxVERTICAL:
size.SetWidth(relative_to.GetWidth());
break;
default:
break;
}
return size;
}
wxSize wxRibbonGallery::DoGetNextLargerSize(wxOrientation direction,
wxSize relative_to) const
{
if(m_art == NULL)
return relative_to;
wxMemoryDC dc;
wxSize client = m_art->GetGalleryClientSize(dc, this, relative_to, NULL,
NULL, NULL, NULL);
// No need to grow if the given size can already display every item
int nitems = (client.GetWidth() / m_bitmap_padded_size.x) *
(client.GetHeight() / m_bitmap_padded_size.y);
if(nitems >= (int)m_items.GetCount())
return relative_to;
switch(direction)
{
case wxHORIZONTAL:
client.IncBy(m_bitmap_padded_size.x, 0);
break;
case wxVERTICAL:
client.IncBy(0, m_bitmap_padded_size.y);
break;
case wxBOTH:
client.IncBy(m_bitmap_padded_size);
break;
}
client.x = (client.x / m_bitmap_padded_size.x) * m_bitmap_padded_size.x;
client.y = (client.y / m_bitmap_padded_size.y) * m_bitmap_padded_size.y;
wxSize size = m_art->GetGallerySize(dc, this, client);
wxSize minimum = GetMinSize();
if(size.GetWidth() < minimum.GetWidth() ||
size.GetHeight() < minimum.GetHeight())
{
return relative_to;
}
switch(direction)
{
case wxHORIZONTAL:
size.SetHeight(relative_to.GetHeight());
break;
case wxVERTICAL:
size.SetWidth(relative_to.GetWidth());
break;
default:
break;
}
return size;
}
bool wxRibbonGallery::IsEmpty() const
{
return m_items.IsEmpty();
}
unsigned int wxRibbonGallery::GetCount() const
{
return (unsigned int)m_items.GetCount();
}
wxRibbonGalleryItem* wxRibbonGallery::GetItem(unsigned int n)
{
if(n >= GetCount())
return NULL;
return m_items.Item(n);
}
void wxRibbonGallery::SetSelection(wxRibbonGalleryItem* item)
{
if(item != m_selected_item)
{
m_selected_item = item;
Refresh(false);
}
}
wxRibbonGalleryItem* wxRibbonGallery::GetSelection() const
{
return m_selected_item;
}
wxRibbonGalleryItem* wxRibbonGallery::GetHoveredItem() const
{
return m_hovered_item;
}
wxRibbonGalleryItem* wxRibbonGallery::GetActiveItem() const
{
return m_active_item;
}
wxRibbonGalleryButtonState wxRibbonGallery::GetUpButtonState() const
{
return m_up_button_state;
}
wxRibbonGalleryButtonState wxRibbonGallery::GetDownButtonState() const
{
return m_down_button_state;
}
wxRibbonGalleryButtonState wxRibbonGallery::GetExtensionButtonState() const
{
return m_extension_button_state;
}
#endif // wxUSE_RIBBON
| Java |
package com.wavpack.decoder;
import java.io.RandomAccessFile;
/*
** WavpackContext.java
**
** Copyright (c) 2007 - 2008 Peter McQuillan
**
** All Rights Reserved.
**
** Distributed under the BSD Software License (see license.txt)
**
*/
public class WavpackContext {
WavpackConfig config = new WavpackConfig();
WavpackStream stream = new WavpackStream();
byte read_buffer[] = new byte[65536]; // was uchar in C
int[] temp_buffer = new int[Defines.SAMPLE_BUFFER_SIZE];
int[] temp_buffer2 = new int[Defines.SAMPLE_BUFFER_SIZE];
String error_message = "";
boolean error;
RandomAccessFile infile;
long total_samples, crc_errors, first_flags; // was uint32_t in C
int open_flags, norm_offset;
int reduced_channels = 0;
int lossy_blocks;
int status = 0; // 0 ok, 1 error
public boolean isError() {
return error;
}
public String getErrorMessage() {
return error_message;
}
} | Java |
//
// ALBBItemService.h
// ALBBTradeSDK
// 电商接口 商品详情service
// Created by 友和([email protected]) on 15/3/4.
// Copyright (c) 2015年 Alipay. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ALBBTradeService.h"
NS_ASSUME_NONNULL_BEGIN
/** 商品服务 */
@protocol ALBBItemService <ALBBTradeService>
/**
打开指定地址网页, 自动实现淘宝安全免登.
@param parentController 当前view controller. 若isNeedPush为YES, 需传入当前UINavigationController.
@param isNeedPush 若为NO, 则在当前view controller上present新页面; 否则在传入的UINavigationController上push新页面.
@param openUrl 页面的url或者url变量
@param webViewUISettings 可以自定义的webview配置项
*/
- (void)showPage:(UIViewController *)parentController
isNeedPush:(BOOL)isNeedPush
openUrl:(NSString *)openUrl;
/**
打开指定地址网页, 自动实现淘宝安全免登.
@param parentController 当前view controller. 若isNeedPush为YES, 需传入当前UINavigationController.
@param isNeedPush 若为NO, 则在当前view controller上present新页面; 否则在传入的UINavigationController上push新页面.
@param pageUrl 页面的url或者url变量
@param webViewUISettings 可以自定义的webview配置项
@param tradeProcessSuccessCallback 交易流程成功完成订单支付的回调
@param tradeProcessFailedCallback 交易流程未完成的回调
*/
- (void) showPage:(UIViewController *)parentController
isNeedPush:(BOOL)isNeedPush
pageUrl:(NSString *)pageUrl
webViewUISettings:(nullable TaeWebViewUISettings *)webViewUISettings
tradeProcessSuccessCallback:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess
tradeProcessFailedCallback:(nullable void (^)(NSError * __nullable error))onFailure;
/**
通过商品真实ID打开商品详情页面.
@param parentController 当前view controller. 若isNeedPush为YES, 需传入当前UINavigationController.
@param isNeedPush 若为NO, 则在当前view controller上present新页面; 否则在传入的UINavigationController上push新页面.
@param webViewUISettings 可以自定义的webview配置项
@param itemId 商品真实ID(ItemID)
@param itemType 商品类型: 1代表淘宝, 2代表天猫.
@param params 商品详情页请求附加参数
@param tradeProcessSuccessCallback 交易流程成功完成订单支付的回调
@param tradeProcessFailedCallback 交易流程未完成的回调
*/
- (void)showItemDetailByItemId:(UIViewController *)parentController
isNeedPush:(BOOL)isNeedPush
webViewUISettings:(nullable TaeWebViewUISettings *)webViewUISettings
itemId:(NSNumber *)itemId
itemType:(NSInteger)itemType
params:(nullable NSDictionary *)params
tradeProcessSuccessCallback:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess
tradeProcessFailedCallback:(nullable void (^)(NSError * __nullable error))onFailure;
/**
通过商品混淆ID打开商品详情页面.
@param parentController 当前view controller. 若isNeedPush为YES, 需传入当前UINavigationController.
@param isNeedPush 若为NO, 则在当前view controller上present新页面; 否则在传入的UINavigationController上push新页面.
@param webViewUISettings 可以自定义的webview配置项
@param itemId 商品混淆Id(OpenID)
@param itemType 商品类型: 1代表淘宝, 2代表天猫.
@param params 商品详情页请求附加参数
@param tradeProcessSuccessCallback 交易流程成功完成订单支付的回调
@param tradeProcessFailedCallback 交易流程未完成的回调
*/
- (void)showItemDetailByOpenId:(UIViewController *)parentController
isNeedPush:(BOOL)isNeedPush
webViewUISettings:(nullable TaeWebViewUISettings *)webViewUISettings
itemId:(NSString *)itemId
itemType:(NSInteger)itemType
params:(nullable NSDictionary *)params
tradeProcessSuccessCallback:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess
tradeProcessFailedCallback:(nullable void (^)(NSError * __nullable error))onFailure;
/**
通过商品真实ID以淘客方式打开商品详情页面.
@param parentController 当前view controller. 若isNeedPush为YES, 需传入当前UINavigationController.
@param isNeedPush 若为NO, 则在当前view controller上present新页面; 否则在传入的UINavigationController上push新页面.
@param webViewUISettings 可以自定义的webview配置项
@param itemId 商品真实ID(ItemID)
@param itemType 商品类型: 1代表淘宝, 2代表天猫.
@param params 商品详情页请求附加参数
@param taoKeParams 淘客参数
@param tradeProcessSuccessCallback 交易流程成功完成订单支付的回调
@param tradeProcessFailedCallback 交易流程未完成的回调
*/
- (void)showTaoKeItemDetailByItemId:(UIViewController *)parentController
isNeedPush:(BOOL)isNeedPush
webViewUISettings:(nullable TaeWebViewUISettings *)webViewUISettings
itemId:(NSNumber *)itemId
itemType:(NSInteger)itemType
params:(nullable NSDictionary *)params
taoKeParams:(nullable ALBBTradeTaokeParams *)taoKeParams
tradeProcessSuccessCallback:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess
tradeProcessFailedCallback:(nullable void (^)(NSError * __nullable error))onFailure;
/**
通过商品混淆ID以淘客方式打开商品详情页面.
@param parentController 当前view controller. 若isNeedPush为YES, 需传入当前UINavigationController.
@param isNeedPush 若为NO, 则在当前view controller上present新页面; 否则在传入的UINavigationController上push新页面.
@param webViewUISettings 可以自定义的webview配置项
@param itemId 商品混淆Id(OpenID)
@param itemType 商品类型: 1代表淘宝, 2代表天猫.
@param params 商品详情页请求附加参数
@param taoKeParams 淘客参数
@param tradeProcessSuccessCallback 交易流程成功完成订单支付的回调
@param tradeProcessFailedCallback 交易流程未完成的回调
*/
- (void)showTaoKeItemDetailByOpenId:(UIViewController *)parentController
isNeedPush:(BOOL)isNeedPush
webViewUISettings:(nullable TaeWebViewUISettings *)webViewUISettings
itemId:(NSString *)itemId
itemType:(NSInteger)itemType
params:(nullable NSDictionary *)params
taoKeParams:(nullable ALBBTradeTaokeParams *)taoKeParams
tradeProcessSuccessCallback:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess
tradeProcessFailedCallback:(nullable void (^)(NSError * __nullable error))onFailure;
@end
NS_ASSUME_NONNULL_END
| Java |
using System.Xml.Serialization;
namespace Geo.Gps.Serialization.Xml.Gpx.Gpx10
{
[XmlType(AnonymousType=true, Namespace="http://www.topografix.com/GPX/1/0")]
public class GpxTrackPoint : GpxPoint
{
public decimal course { get; set; }
[XmlIgnore]
public bool courseSpecified { get; set; }
public decimal speed { get; set; }
[XmlIgnore]
public bool speedSpecified { get; set; }
}
} | Java |
<?php
/**
* 信息中心默认语言包 zh_cn
*
* @package application.modules.officialdoc.language.zh_cn
* @version $Id: default.php 481 2013-05-30 08:04:10Z gzwwb $
* @author gzwwb <[email protected]>
*/
return array(
//----------------golabs-------------------
'Information center' => '信息中心',
'Officialdoc' => '通知公告',
'Officialdoc list' => '通知列表',
'Add officialdoc' => '新建通知',
'Edit officialdoc' => '编辑通知',
'Show officialdoc' => '查看通知',
'Preview officialdoc' => '预览通知',
//----------------ContentController-------------------
'No permission or officialdoc not exists' => '没有权限操作或者通知不存在',
'No_permission' => '没有权限操作',
'No_exists' => '文章不存在',
//----------------list-------------------
'New doc' => '发布通知',
'All' => '全部',
'Published' => '已发布',
'No sign' => '未签收',
'Already sign' => '已签收',
'Sign' => '签收',
'Sign in' => '签收于',
'Sign for success' => '签收成功',
'No verify' => '待审核',
'More Operating' => '更多操作',
'Move' => '移动',
'Top' => '置顶',
'Highlight' => '高亮',
'Delete' => '删除',
'Verify' => '审核',
'Title' => '标题',
'Last update' => '最后修改',
'View' => '查看',
'Operating' => '操作',
'Edit' => '编辑',
'Keyword' => '关键字',
'Start time' => '开始时间',
'End time' => '结束时间',
'Directory' => '目录',
'Expired time' => '过期时间',
'Advanced search' => '高级搜索',
'Highlight succeed' => '高亮成功',
'Unhighlighting success' => '取消高亮成功',
'Set top' => '设置置顶',
'Top succeed' => '置顶成功',
'Unstuck success' => '取消置顶成功',
'You sure you want to delete it' => '确定要删除吗',
'Delete succeed' => '删除成功',
'Move by' => '移动至',
'Move succeed' => '移动成功',
'Move failed' => '移动失败',
'Sure Operating' => '确认操作',
'Sure delete' => '确认要删除吗',
'Did not select any document' => '未选择任何通知',
'You do not have the right to audit the documents' => '你没有审核该通知的权利',
'You do not have permission to verify the official' => '抱歉,您不是该审核步骤的审核人',
'New message title' => '{sender} 在通知公告-{category}发布了“{subject}”的通知!',
'New message content' => '{content}',
'New verify message title' => '{sender} 在通知公告-{category}发布了“{subject}”的通知,请您审核!',
'New verify message content' => '{content}',
'New back title' => ' 您发表的通知“{subject}”被退回 ',
'New back content' => ' {content}',
'Sign message title' => '{name} 提醒您签收通知 “{title}”',
'Sign message content' => '{content}',
'Do not need approval' => '无需审核,请编辑直接发布',
//----------------show-------------------
'Close' => '关闭',
'Print' => '打印',
'Forward' => '转发',
'News' => '信息',
'Posted on' => '发布于',
'Approver' => '审核人',
'Update on' => '修改于',
'Version' => '版本',
'Category' => '分类',
'Scope' => '范围',
'Cc' => '抄送',
'This officialdoc requires you to sign' => '本通知需要您',
'Next reminder' => '下次提醒',
'You have to sign this document' => '您已签收',
'Comment' => '评论',
'Sign isread' => '查阅情况',
'Sign situation' => '签收情况',
'History version' => '历史版本',
'Department' => '部门',
'Reader and signtime' => '签收人员 / 签收时间',
'Update man' => '修改人',
'Publish time' => '发布时间',
'Temporarily no' => '暂无',
'Sign failed' => '签收失败',
'You do not have permission to read the officialdoc' => '你没有查看该通知的权限,谢谢',
'No user to remind' => '没有未签收人员可提醒',
'Remind title' => '提醒您签收通知',
'Remind succeed' => '提醒成功',
'Now sign' => '立即签收',
'Sign time' => '签收时间为:',
'Sign staff' => '签收人员',
'Unsign staff' => '未签收人员',
'Comment my doc' => '评论{realname}的通知<a href=\"{url}\"> “{title}”</a>',
//----------------sidebar-------------------
'None' => '无',
'New' => '新建',
'Contents under this classification only be deleted when no content' => '该分类下有内容,仅当无内容时才可删除',
'Leave at least a Category' => '请至少保留一个分类',
//----------------add-------------------
'News title' => '信息标题',
'Appertaining category' => '所属分类',
'Publishing permissions' => '发布范围',
'Publish' => '发布',
'Draft' => '草稿',
'Comments module is not installed or enabled' => '未安装或未启用评论模块',
'Vote' => '评论',
'Return' => '返回',
'Preview' => '预览',
'Submit' => '提交',
'Wait verify' => '待审核',
'File size limit' => ' 文件大小限制',
//----------------后台-------------------
'Officialdoc setting' => '通知设置',
'Officialdoc approver' => '通知审批人',
'Enable' => '启用',
'Disabled' => '禁用',
'NO.' => '序号',
'Template name' => '模板名称',
'Officialdoc template edit' => '通知模板编辑',
'See more docs' => '查看更多通知',
'Year' => '年',
'Month' => '月',
'Day' => '日',
'Post officialdoc' => '发表了一篇通知',
'Feed title' => '<a href="{url}" class="xwb anchor">{subject}</a>'
);
| Java |
/**
* 基于jquery.select2扩展的select插件,基本使用请参考select2相关文档
* 默认是多选模式,并提供了input模式下的初始化方法,对应的数据格式是{ id: 1, text: "Hello" }
* 这里的参数只对扩展的部分作介绍
* filter、includes、excludes、query四个参数是互斥的,理论只能有其一个参数
* @method ibosSelect
* @param option.filter
* @param {Function} option.filter 用于过滤源数据的函数
* @param {Array} option.includes 用于过滤源数据的数据,有效数据的id组
* @param {Array} option.excludes 用于过滤源数据的数据,无效数据的id组
* @param {Boolean} option.pinyin 启用拼音搜索,需要pinyinEngine组件
* @return {jQuery}
*/
$.fn.ibosSelect = (function(){
var _process = function(datum, collection, filter){
var group, attr;
datum = datum[0];
if (datum.children) {
group = {};
for (attr in datum) {
if (datum.hasOwnProperty(attr)) group[attr] = datum[attr];
}
group.children = [];
$(datum.children).each2(function(i, childDatum) {
_process(childDatum, group.children, filter);
});
if (group.children.length) {
collection.push(group);
}
} else {
if(filter && !filter(datum)) {
return false;
}
collection.push(datum);
}
}
// 使用带有filter过滤源数据的query函数,其实质就是在query函数执行之前,用filter函数先过滤一次数据
var _queryWithFilter = function(query, filter){
var t = query.term, filtered = { results: [] }, data = [];
$(this.data).each2(function(i, datum) {
_process(datum, data, filter);
});
if (t === "") {
query.callback({ results: data });
return;
}
$(data).each2(function(i, datum) {
_process(datum, filtered.results, function(d){
return query.matcher(t, d.text + "");
})
});
query.callback(filtered);
}
// 根据ID从data数组中获取对应的文本, 主要用于val设置
var _getTextById = function(id, data){
// debugger;
var ret;
for(var i = 0; i < data.length; i++){
if(data[i].children){
ret = _getTextById(id, data[i].children);
if(typeof ret !== "undefined"){
break;
}
} else {
if(data[i].id + "" === id) {
ret = data[i].text;
break;
}
}
}
return ret;
}
var defaults = {
multiple: true,
pinyin: true,
formatResultCssClass: function(data){
return data.cls;
},
formatNoMatches: function(){ return U.lang("S2.NO_MATCHES"); },
formatSelectionTooBig: function (limit) { return U.lang("S2.SELECTION_TO_BIG", { count: limit}); },
formatSearching: function () { return U.lang("S2.SEARCHING"); },
formatInputTooShort: function (input, min) { return U.lang("S2.INPUT_TO_SHORT", { count: min - input.length}); },
formatLoadMore: function (pageNumber) { return U.lang("S2.LOADING_MORE"); },
initSelection: function(elem, callback){
var ins = elem.data("select2"),
data = ins.opts.data,
results;
if(ins.opts.multiple) {
results = [];
$.each(elem.val().split(','), function(index, val){
results.push({id: val, text: _getTextById(val, data)});
})
} else {
results = {
id: elem.val(),
text: _getTextById(elem.val(), data)
}
}
callback(results);
}
}
var select2 = function(option){
if(typeof option !== "string") {
option = $.extend({}, defaults, option);
// 注意: filter | query | includes | excludes 四个属性是互斥的
// filter基于query, 而includes、excludes基于filter
// 优先度 includes > excludes > filter > query
// includes是一个数组,指定源数据中有效数据的ID值,将过滤ID不在此数组中的数据
if(option.includes && $.isArray(option.includes)){
option.filter = function(datum){
return $.inArray(datum.id, option.includes) !== -1;
}
// includes是一个数组,指定源数据中无效数据的ID值,将过滤ID在此数组中的数据
} else if(option.excludes && $.isArray(option.excludes)) {
option.filter = function(datum){
return $.inArray(datum.id, option.excludes) === -1;
}
}
// 当有filter属性时,将使用自定义的query方法替代原来的query方法,filter用于从源数据层面上过滤不需要出现的数据
if(option.filter){
option.query = function(query) {
_queryWithFilter(query, option.filter);
}
}
// 使用pinyin搜索引擎
if(option.pinyin) {
var _customMatcher = option.matcher;
option.matcher = function(term){
if(term === ""){
return true;
}
return Ibos.matchSpell.apply(this, arguments) &&
(_customMatcher ? _customMatcher.apply(this, arguments) : true);
}
}
// 使用 select 元素时,要去掉一部分默认项
if($(this).is("select")) {
delete option.multiple;
delete option.initSelection;
}
return $.fn.select2.call(this, option)
}
return $.fn.select2.apply(this, arguments)
}
return select2;
})(); | Java |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of The Qt Company Ltd nor the names of its
** contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include "piechart.h"
#include "pieslice.h"
#include <qdeclarative.h>
#include <QDeclarativeView>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
qmlRegisterType<PieChart>("Charts", 1, 0, "PieChart");
qmlRegisterType<PieSlice>("Charts", 1, 0, "PieSlice");
QDeclarativeView view;
view.setSource(QUrl::fromLocalFile("app.qml"));
view.show();
return app.exec();
}
| Java |
#pragma once
#include "Session.h"
#pragma once
#include "NetPacket.h"
class ChatSession: public Session
{
public:
void HandlePing(NetPacket * NetPacket);
void HandleEnterRoom(NetPacket * recvPack);
void HandleLevaeRoom(NetPacket * recvPack);
void HandlePlayerMessage(NetPacket * recvPack);
unsigned int RoomId() const { return m_roomId; }
private:
bool authenticated;
unsigned int m_roomId;
}; | Java |
#include <cstdio>
#include <cstring>
#define MAXX 50
#define MAXY 50
#define MAXLEN 100
#define Zero(v) memset((v), 0, sizeof(v))
int X, Y;
char ins[MAXLEN + 1];
int x, y, d;
bool scent[MAXX + 1][MAXY + 1];
const char dirs_str[] = "NESW";
const int dirs[4][2] = {
{ 0, 1 },
{ 1, 0 },
{ 0, -1 },
{ -1, 0 }
};
void simulate()
{
int n = strlen(ins);
int x2, y2;
bool lost = false;
for (int i = 0; i < n; ++i) {
if (ins[i] == 'L') {
d = (d + 3) % 4;
continue;
}
else if (ins[i] == 'R') {
d = (d + 1) % 4;
continue;
}
else if (ins[i] != 'F') continue;
x2 = x + dirs[d][0];
y2 = y + dirs[d][1];
if (x2 >= 0 && x2 <= X && y2 >= 0 && y2 <= Y) {
x = x2, y = y2;
continue;
}
if (scent[x][y]) continue;
scent[x][y] = true;
lost = true;
break;
}
printf("%d %d %c", x, y, dirs_str[d]);
if (lost) puts(" LOST");
else putchar('\n');
}
int main()
{
scanf("%d%d", &X, &Y);
char o[4];
while (true) {
if (scanf("%d%d%s%s", &x, &y, o, ins) != 4) break;
d = strcspn(dirs_str, o);
simulate();
}
return 0;
}
| Java |
/**
******************************************************************************
* @file DMA/DMA_FLASHToRAM/Src/stm32f1xx_it.c
* @author MCD Application Team
* @version V1.3.0
* @date 18-December-2015
* @brief Main Interrupt Service Routines.
* This file provides template for all exceptions handler and
* peripherals interrupt service routine.
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2015 STMicroelectronics</center></h2>
*
* 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.
* 3. Neither the name of STMicroelectronics nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 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.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "stm32f1xx_it.h"
/** @addtogroup STM32F1xx_HAL_Examples
* @{
*/
/** @addtogroup DMA_FLASHToRAM
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
extern DMA_HandleTypeDef DmaHandle;
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/******************************************************************************/
/* Cortex-M3 Processor Exceptions Handlers */
/******************************************************************************/
/**
* @brief This function handles NMI exception.
* @param None
* @retval None
*/
void NMI_Handler(void)
{
}
/**
* @brief This function handles Hard Fault exception.
* @param None
* @retval None
*/
void HardFault_Handler(void)
{
/* Go to infinite loop when Hard Fault exception occurs */
while (1)
{
}
}
/**
* @brief This function handles Memory Manage exception.
* @param None
* @retval None
*/
void MemManage_Handler(void)
{
/* Go to infinite loop when Memory Manage exception occurs */
while (1)
{
}
}
/**
* @brief This function handles Bus Fault exception.
* @param None
* @retval None
*/
void BusFault_Handler(void)
{
/* Go to infinite loop when Bus Fault exception occurs */
while (1)
{
}
}
/**
* @brief This function handles Usage Fault exception.
* @param None
* @retval None
*/
void UsageFault_Handler(void)
{
/* Go to infinite loop when Usage Fault exception occurs */
while (1)
{
}
}
/**
* @brief This function handles SVCall exception.
* @param None
* @retval None
*/
void SVC_Handler(void)
{
}
/**
* @brief This function handles Debug Monitor exception.
* @param None
* @retval None
*/
void DebugMon_Handler(void)
{
}
/**
* @brief This function handles PendSVC exception.
* @param None
* @retval None
*/
void PendSV_Handler(void)
{
}
/**
* @brief This function handles SysTick Handler.
* @param None
* @retval None
*/
void SysTick_Handler(void)
{
HAL_IncTick();
}
/******************************************************************************/
/* STM32F1xx Peripherals Interrupt Handlers */
/* Add here the Interrupt Handler for the used peripheral(s) (PPP), for the */
/* available peripheral interrupt handler's name please refer to the startup */
/* file (startup_stm32f1xx.s). */
/******************************************************************************/
/**
* @brief This function handles DMA channel interrupt request.
* @param None
* @retval None
*/
void DMA_INSTANCE_IRQHANDLER(void)
{
/* Check the interrupt and clear flag */
HAL_DMA_IRQHandler(&DmaHandle);
}
/**
* @}
*/
/**
* @}
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
| Java |
[SDS-2.2, Scalable Data Science](https://lamastex.github.io/scalable-data-science/sds/2/2/)
===========================================================================================
This is an elaboration of the <http://spark.apache.org/docs/latest/sql-programming-guide.html> by Ivan Sadikov and Raazesh Sainudiin.
Data Sources
============
Spark Sql Programming Guide
---------------------------
- Data Sources
- Generic Load/Save Functions
- Manually Specifying Options
- Run SQL on files directly
- Save Modes
- Saving to Persistent Tables
- Parquet Files
- Loading Data Programmatically
- Partition Discovery
- Schema Merging
- Hive metastore Parquet table conversion
- Hive/Parquet Schema Reconciliation
- Metadata Refreshing
- Configuration
- JSON Datasets
- Hive Tables
- Interacting with Different Versions of Hive Metastore
- JDBC To Other Databases
- Troubleshooting
Data Sources
============
Spark SQL supports operating on a variety of data sources through the `DataFrame` or `DataFrame` interfaces. A Dataset can be operated on as normal RDDs and can also be registered as a temporary table. Registering a Dataset as a table allows you to run SQL queries over its data. But from time to time you would need to either load or save Dataset. Spark SQL provides built-in data sources as well as Data Source API to define your own data source and use it read / write data into Spark.
Overview
--------
Spark provides some built-in datasources that you can use straight out of the box, such as [Parquet](https://parquet.apache.org/), [JSON](http://www.json.org/), [JDBC](https://en.wikipedia.org/wiki/Java_Database_Connectivity), [ORC](https://orc.apache.org/) (available with enabled Hive Support, but this is changing, and ORC will not require Hive support and will work with default Spark session starting from next release), and Text (since Spark 1.6) and CSV (since Spark 2.0, before that it is accessible as a package).
Third-party datasource packages
-------------------------------
Community also have built quite a few datasource packages to provide easy access to the data from other formats. You can find list of those packages on http://spark-packages.org/, e.g. [Avro](http://spark-packages.org/package/databricks/spark-avro), [CSV](http://spark-packages.org/package/databricks/spark-csv), [Amazon Redshit](http://spark-packages.org/package/databricks/spark-redshift) (for Spark < 2.0), [XML](http://spark-packages.org/package/HyukjinKwon/spark-xml), [NetFlow](http://spark-packages.org/package/sadikovi/spark-netflow) and many others.
Generic Load/Save functions
---------------------------
In order to load or save DataFrame you have to call either `read` or `write`. This will return [DataFrameReader](https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameReader) or [DataFrameWriter](https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameWriter) depending on what you are trying to achieve. Essentially these classes are entry points to the reading / writing actions. They allow you to specify writing mode or provide additional options to read data source.
``` scala
// This will return DataFrameReader to read data source
println(spark.read)
val df = spark.range(0, 10)
// This will return DataFrameWriter to save DataFrame
println(df.write)
```
> org.apache.spark.sql.DataFrameReader@7e7dee07
> org.apache.spark.sql.DataFrameWriter@1f45f4b
> df: org.apache.spark.sql.Dataset[Long] = [id: bigint]
``` scala
// Saving Parquet table in Scala
val df_save = spark.table("social_media_usage").select("platform", "visits")
df_save.write.mode("overwrite").parquet("/tmp/platforms.parquet")
// Loading Parquet table in Scala
val df = spark.read.parquet("/tmp/platforms.parquet")
df.show(5)
```
> +----------+------+
> | platform|visits|
> +----------+------+
> | SMS| 61652|
> | SMS| 44547|
> | Flickr| null|
> |Newsletter| null|
> | Twitter| 389|
> +----------+------+
> only showing top 5 rows
>
> df_save: org.apache.spark.sql.DataFrame = [platform: string, visits: int]
> df: org.apache.spark.sql.DataFrame = [platform: string, visits: int]
``` python
# Loading Parquet table in Python
dfPy = spark.read.parquet("/tmp/platforms.parquet")
dfPy.show(5)
```
> +----------+------+
> | platform|visits|
> +----------+------+
> | SMS| 61652|
> | SMS| 44547|
> | Flickr| null|
> |Newsletter| null|
> | Twitter| 389|
> +----------+------+
> only showing top 5 rows
``` scala
// Saving JSON dataset in Scala
val df_save = spark.table("social_media_usage").select("platform", "visits")
df_save.write.json("/tmp/platforms.json")
// Loading JSON dataset in Scala
val df = spark.read.json("/tmp/platforms.json")
df.show(5)
```
> +----------+------+
> | platform|visits|
> +----------+------+
> | SMS| 61652|
> | SMS| 44547|
> | Flickr| null|
> |Newsletter| null|
> | Twitter| 389|
> +----------+------+
> only showing top 5 rows
>
> df_save: org.apache.spark.sql.DataFrame = [platform: string, visits: int]
> df: org.apache.spark.sql.DataFrame = [platform: string, visits: bigint]
``` python
# Loading JSON dataset in Python
dfPy = spark.read.json("/tmp/platforms.json")
dfPy.show(5)
```
> +----------+------+
> | platform|visits|
> +----------+------+
> | SMS| 61652|
> | SMS| 44547|
> | Flickr| null|
> |Newsletter| null|
> | Twitter| 389|
> +----------+------+
> only showing top 5 rows
### Manually Specifying Options
You can also manually specify the data source that will be used along with any extra options that you would like to pass to the data source. Data sources are specified by their fully qualified name (i.e., `org.apache.spark.sql.parquet`), but for built-in sources you can also use their short names (`json`, `parquet`, `jdbc`). DataFrames of any type can be converted into other types using this syntax.
``` scala
val json = sqlContext.read.format("json").load("/tmp/platforms.json")
json.select("platform").show(10)
val parquet = sqlContext.read.format("parquet").load("/tmp/platforms.parquet")
parquet.select("platform").show(10)
```
> +----------+
> | platform|
> +----------+
> | SMS|
> | SMS|
> | Flickr|
> |Newsletter|
> | Twitter|
> | Twitter|
> | Android|
> | Android|
> | Android|
> |Broadcastr|
> +----------+
> only showing top 10 rows
>
> +----------+
> | platform|
> +----------+
> | SMS|
> | SMS|
> | Flickr|
> |Newsletter|
> | Twitter|
> | Twitter|
> | Android|
> | Android|
> | Android|
> |Broadcastr|
> +----------+
> only showing top 10 rows
>
> json: org.apache.spark.sql.DataFrame = [platform: string, visits: bigint]
> parquet: org.apache.spark.sql.DataFrame = [platform: string, visits: int]
### Run SQL on files directly
Instead of using read API to load a file into DataFrame and query it, you can also query that file directly with SQL.
``` scala
val df = sqlContext.sql("SELECT * FROM parquet.`/tmp/platforms.parquet`")
df.printSchema()
```
> root
> |-- platform: string (nullable = true)
> |-- visits: integer (nullable = true)
>
> df: org.apache.spark.sql.DataFrame = [platform: string, visits: int]
### Save Modes
Save operations can optionally take a `SaveMode`, that specifies how to handle existing data if present. It is important to realize that these save modes do not utilize any locking and are not atomic. Additionally, when performing a `Overwrite`, the data will be deleted before writing out the new data.
\| Scala/Java \| Any language \| Meaning \|
\| --- \| --- \| --- \|
\| `SaveMode.ErrorIfExists` (default) \| `"error"` (default) \| When saving a DataFrame to a data source, if data already exists, an exception is expected to be thrown. \|
\| `SaveMode.Append` \| `"append"` \| When saving a DataFrame to a data source, if data/table already exists, contents of the DataFrame are expected to be appended to existing data. \|
\| `SaveMode.Overwrite` \| `"overwrite"` \| Overwrite mode means that when saving a DataFrame to a data source, if data/table already exists, existing data is expected to be overwritten by the contents of the DataFrame. \|
\| `SaveMode.Ignore` \| `"ignore"` \| Ignore mode means that when saving a DataFrame to a data source, if data already exists, the save operation is expected to not save the contents of the DataFrame and to not change the existing data. This is similar to a `CREATE TABLE IF NOT EXISTS` in SQL. \|
### Saving to Persistent Tables
`DataFrame` and `Dataset` can also be saved as persistent tables using the `saveAsTable` command. Unlike the `createOrReplaceTempView` command, `saveAsTable` will materialize the contents of the dataframe and create a pointer to the data in the metastore. Persistent tables will still exist even after your Spark program has restarted, as long as you maintain your connection to the same metastore. A DataFrame for a persistent table can be created by calling the `table` method on a `SparkSession` with the name of the table.
By default `saveAsTable` will create a “managed table”, meaning that the location of the data will be controlled by the metastore. Managed tables will also have their data deleted automatically when a table is dropped.
``` scala
// First of all list tables to see that table we are about to create does not exist
spark.catalog.listTables.show()
```
> +--------------------+--------+-----------+---------+-----------+
> | name|database|description|tableType|isTemporary|
> +--------------------+--------+-----------+---------+-----------+
> | cities_csv| default| null| EXTERNAL| false|
> | cleaned_taxes| default| null| MANAGED| false|
> |commdettrumpclint...| default| null| MANAGED| false|
> | donaldtrumptweets| default| null| EXTERNAL| false|
> | linkage| default| null| EXTERNAL| false|
> | nations| default| null| EXTERNAL| false|
> | newmplist| default| null| EXTERNAL| false|
> | ny_baby_names| default| null| MANAGED| false|
> | nzmpsandparty| default| null| EXTERNAL| false|
> | pos_neg_category| default| null| EXTERNAL| false|
> | rna| default| null| MANAGED| false|
> | samh| default| null| EXTERNAL| false|
> | social_media_usage| default| null| EXTERNAL| false|
> | table1| default| null| EXTERNAL| false|
> | test_table| default| null| EXTERNAL| false|
> | uscites| default| null| EXTERNAL| false|
> +--------------------+--------+-----------+---------+-----------+
``` sql
drop table if exists simple_range
```
``` scala
val df = spark.range(0, 100)
df.write.saveAsTable("simple_range")
// Verify that table is saved and it is marked as persistent ("isTemporary" value should be "false")
spark.catalog.listTables.show()
```
> +--------------------+--------+-----------+---------+-----------+
> | name|database|description|tableType|isTemporary|
> +--------------------+--------+-----------+---------+-----------+
> | cities_csv| default| null| EXTERNAL| false|
> | cleaned_taxes| default| null| MANAGED| false|
> |commdettrumpclint...| default| null| MANAGED| false|
> | donaldtrumptweets| default| null| EXTERNAL| false|
> | linkage| default| null| EXTERNAL| false|
> | nations| default| null| EXTERNAL| false|
> | newmplist| default| null| EXTERNAL| false|
> | ny_baby_names| default| null| MANAGED| false|
> | nzmpsandparty| default| null| EXTERNAL| false|
> | pos_neg_category| default| null| EXTERNAL| false|
> | rna| default| null| MANAGED| false|
> | samh| default| null| EXTERNAL| false|
> | simple_range| default| null| MANAGED| false|
> | social_media_usage| default| null| EXTERNAL| false|
> | table1| default| null| EXTERNAL| false|
> | test_table| default| null| EXTERNAL| false|
> | uscites| default| null| EXTERNAL| false|
> +--------------------+--------+-----------+---------+-----------+
>
> df: org.apache.spark.sql.Dataset[Long] = [id: bigint]
Parquet Files
-------------
[Parquet](http://parquet.io) is a columnar format that is supported by many other data processing systems. Spark SQL provides support for both reading and writing Parquet files that automatically preserves the schema of the original data. When writing Parquet files, all columns are automatically converted to be nullable for compatibility reasons.
### More on Parquet
[Apache Parquet](https://parquet.apache.org/) is a [columnar storage](http://en.wikipedia.org/wiki/Column-oriented_DBMS) format available to any project in the Hadoop ecosystem, regardless of the choice of data processing framework, data model or programming language. It is a more efficient way to store data frames.
- To understand the ideas read [Dremel: Interactive Analysis of Web-Scale Datasets, Sergey Melnik, Andrey Gubarev, Jing Jing Long, Geoffrey Romer, Shiva Shivakumar, Matt Tolton and Theo Vassilakis,Proc. of the 36th Int'l Conf on Very Large Data Bases (2010), pp. 330-339](http://research.google.com/pubs/pub36632.html), whose Abstract is as follows:
- Dremel is a scalable, interactive ad-hoc query system for analysis of read-only nested data. By combining multi-level execution trees and columnar data layouts it is **capable of running aggregation queries over trillion-row tables in seconds**. The system **scales to thousands of CPUs and petabytes of data, and has thousands of users at Google**. In this paper, we describe the architecture and implementation of Dremel, and explain how it complements MapReduce-based computing. We present a novel columnar storage representation for nested records and discuss experiments on few-thousand node instances of the system.
<p class="htmlSandbox"><iframe
src="https://parquet.apache.org/documentation/latest/"
width="95%" height="500"
sandbox>
<p>
<a href="http://spark.apache.org/docs/latest/ml-features.html">
Fallback link for browsers that, unlikely, don't support frames
</a>
</p>
</iframe></p>
### Loading Data Programmatically
``` scala
// Read in the parquet file created above. Parquet files are self-describing so the schema is preserved.
// The result of loading a Parquet file is also a DataFrame.
val parquetFile = sqlContext.read.parquet("/tmp/platforms.parquet")
// Parquet files can also be registered as tables and then used in SQL statements.
parquetFile.createOrReplaceTempView("parquetFile")
val platforms = sqlContext.sql("SELECT platform FROM parquetFile WHERE visits > 0")
platforms.distinct.map(t => "Name: " + t(0)).collect().foreach(println)
```
> Name: Flickr
> Name: iPhone
> Name: YouTube
> Name: WordPress
> Name: SMS
> Name: iPhone App
> Name: Youtube
> Name: Instagram
> Name: iPhone app
> Name: Linked-In
> Name: Twitter
> Name: TOTAL
> Name: Tumblr
> Name: Newsletter
> Name: Pinterest
> Name: Android
> Name: Foursquare
> Name: Google+
> Name: Foursquare (Badge Unlock)
> Name: Facebook
> parquetFile: org.apache.spark.sql.DataFrame = [platform: string, visits: int]
> platforms: org.apache.spark.sql.DataFrame = [platform: string]
### Partition Discovery
Table partitioning is a common optimization approach used in systems like Hive. In a partitioned table, data are usually stored in different directories, with partitioning column values encoded in the path of each partition directory. The Parquet data source is now able to discover and infer partitioning information automatically. For example, we can store all our previously used population data (from the programming guide example!) into a partitioned table using the following directory structure, with two extra columns, `gender` and `country` as partitioning columns:
path
└── to
└── table
├── gender=male
│ ├── ...
│ │
│ ├── country=US
│ │ └── data.parquet
│ ├── country=CN
│ │ └── data.parquet
│ └── ...
└── gender=female
├── ...
│
├── country=US
│ └── data.parquet
├── country=CN
│ └── data.parquet
└── ...
By passing `path/to/table` to either `SparkSession.read.parquet` or `SparkSession.read.load`, Spark SQL will automatically extract the partitioning information from the paths. Now the schema of the returned DataFrame becomes:
root
|-- name: string (nullable = true)
|-- age: long (nullable = true)
|-- gender: string (nullable = true)
|-- country: string (nullable = true)
Notice that the data types of the partitioning columns are automatically inferred. Currently, numeric data types and string type are supported. Sometimes users may not want to automatically infer the data types of the partitioning columns. For these use cases, the automatic type inference can be configured by `spark.sql.sources.partitionColumnTypeInference.enabled`, which is default to `true`. When type inference is disabled, string type will be used for the partitioning columns.
Starting from Spark 1.6.0, partition discovery only finds partitions under the given paths by default. For the above example, if users pass `path/to/table/gender=male` to either `SparkSession.read.parquet` or `SparkSession.read.load`, `gender` will not be considered as a partitioning column. If users need to specify the base path that partition discovery should start with, they can set `basePath` in the data source options. For example, when `path/to/table/gender=male` is the path of the data and users set `basePath` to `path/to/table/`, `gender` will be a partitioning column.
### Schema Merging
Like ProtocolBuffer, Avro, and Thrift, Parquet also supports schema evolution. Users can start with a simple schema, and gradually add more columns to the schema as needed. In this way, users may end up with multiple Parquet files with different but mutually compatible schemas. The Parquet data source is now able to automatically detect this case and merge schemas of all these files.
Since schema merging is a relatively expensive operation, and is not a necessity in most cases, we turned it off by default starting from 1.5.0. You may enable it by:
1. setting data source option `mergeSchema` to `true` when reading Parquet files (as shown in the examples below), or
2. setting the global SQL option `spark.sql.parquet.mergeSchema` to `true`.
``` scala
// Create a simple DataFrame, stored into a partition directory
val df1 = sc.parallelize(1 to 5).map(i => (i, i * 2)).toDF("single", "double")
df1.write.mode("overwrite").parquet("/tmp/data/test_table/key=1")
// Create another DataFrame in a new partition directory, adding a new column and dropping an existing column
val df2 = sc.parallelize(6 to 10).map(i => (i, i * 3)).toDF("single", "triple")
df2.write.mode("overwrite").parquet("/tmp/data/test_table/key=2")
// Read the partitioned table
val df3 = spark.read.option("mergeSchema", "true").parquet("/tmp/data/test_table")
df3.printSchema()
// The final schema consists of all 3 columns in the Parquet files together
// with the partitioning column appeared in the partition directory paths.
// root
// |-- single: integer (nullable = true)
// |-- double: integer (nullable = true)
// |-- triple: integer (nullable = true)
// |-- key: integer (nullable = true))
```
> root
> |-- single: integer (nullable = true)
> |-- double: integer (nullable = true)
> |-- triple: integer (nullable = true)
> |-- key: integer (nullable = true)
>
> df1: org.apache.spark.sql.DataFrame = [single: int, double: int]
> df2: org.apache.spark.sql.DataFrame = [single: int, triple: int]
> df3: org.apache.spark.sql.DataFrame = [single: int, double: int ... 2 more fields]
### Hive metastore Parquet table conversion
When reading from and writing to Hive metastore Parquet tables, Spark SQL will try to use its own Parquet support instead of Hive SerDe for better performance. This behavior is controlled by the `spark.sql.hive.convertMetastoreParquet` configuration, and is turned on by default.
#### Hive/Parquet Schema Reconciliation
There are two key differences between Hive and Parquet from the perspective of table schema processing.
1. Hive is case insensitive, while Parquet is not
2. Hive considers all columns nullable, while nullability in Parquet is significant
Due to this reason, we must reconcile Hive metastore schema with Parquet schema when converting a Hive metastore Parquet table to a Spark SQL Parquet table. The reconciliation rules are:
1. Fields that have the same name in both schema must have the same data type regardless of nullability. The reconciled field should have the data type of the Parquet side, so that nullability is respected.
2. The reconciled schema contains exactly those fields defined in Hive metastore schema.
- Any fields that only appear in the Parquet schema are dropped in the reconciled schema.
- Any fileds that only appear in the Hive metastore schema are added as nullable field in the reconciled schema.
#### Metadata Refreshing
Spark SQL caches Parquet metadata for better performance. When Hive metastore Parquet table conversion is enabled, metadata of those converted tables are also cached. If these tables are updated by Hive or other external tools, you need to refresh them manually to ensure consistent metadata.
``` scala
// should refresh table metadata
spark.catalog.refreshTable("simple_range")
```
``` sql
-- Or you can use SQL to refresh table
REFRESH TABLE simple_range;
```
### Configuration
Configuration of Parquet can be done using the `setConf` method on
`SQLContext` or by running `SET key=value` commands using SQL.
\| Property Name \| Default \| Meaning \|
\| --- \| --- \| --- \| --- \|
\| `spark.sql.parquet.binaryAsString` \| false \| Some other Parquet-producing systems, in particular Impala, Hive, and older versions of Spark SQL, do not differentiate between binary data and strings when writing out the Parquet schema. This flag tells Spark SQL to interpret binary data as a string to provide compatibility with these systems. \|
\| `spark.sql.parquet.int96AsTimestamp` \| true \| Some Parquet-producing systems, in particular Impala and Hive, store Timestamp into INT96. This flag tells Spark SQL to interpret INT96 data as a timestamp to provide compatibility with these systems. \|
\| `spark.sql.parquet.cacheMetadata` \| true \| Turns on caching of Parquet schema metadata. Can speed up querying of static data. \|
\| `spark.sql.parquet.compression.codec` \| gzip \| Sets the compression codec use when writing Parquet files. Acceptable values include: uncompressed, snappy, gzip, lzo. \|
\| `spark.sql.parquet.filterPushdown` \| true \| Enables Parquet filter push-down optimization when set to true. \|
\| `spark.sql.hive.convertMetastoreParquet` \| true \| When set to false, Spark SQL will use the Hive SerDe for parquet tables instead of the built in support. \|
\| `spark.sql.parquet.output.committer.class` \| `org.apache.parquet.hadoop.ParquetOutputCommitter` \| The output committer class used by Parquet. The specified class needs to be a subclass of `org.apache.hadoop.mapreduce.OutputCommitter`. Typically, it's also a subclass of `org.apache.parquet.hadoop.ParquetOutputCommitter`. Spark SQL comes with a builtin `org.apache.spark.sql.parquet.DirectParquetOutputCommitter`, which can be more efficient then the default Parquet output committer when writing data to S3. \|
\| `spark.sql.parquet.mergeSchema` \| `false` \| When true, the Parquet data source merges schemas collected from all data files, otherwise the schema is picked from the summary file or a random data file if no summary file is available. \|
JSON Datasets
-------------
Spark SQL can automatically infer the schema of a JSON dataset and load it as a DataFrame. This conversion can be done using `SparkSession.read.json()` on either an RDD of String, or a JSON file.
Note that the file that is offered as *a json file* is not a typical JSON file. Each line must contain a separate, self-contained valid JSON object. As a consequence, a regular multi-line JSON file will most often fail.
``` scala
// A JSON dataset is pointed to by path.
// The path can be either a single text file or a directory storing text files.
val path = "/tmp/platforms.json"
val platforms = spark.read.json(path)
// The inferred schema can be visualized using the printSchema() method.
platforms.printSchema()
// root
// |-- platform: string (nullable = true)
// |-- visits: long (nullable = true)
// Register this DataFrame as a table.
platforms.createOrReplaceTempView("platforms")
// SQL statements can be run by using the sql methods provided by sqlContext.
val facebook = spark.sql("SELECT platform, visits FROM platforms WHERE platform like 'Face%k'")
facebook.show()
// Alternatively, a DataFrame can be created for a JSON dataset represented by
// an RDD[String] storing one JSON object per string.
val rdd = sc.parallelize("""{"name":"IWyn","address":{"city":"Columbus","state":"Ohio"}}""" :: Nil)
val anotherPlatforms = spark.read.json(rdd)
anotherPlatforms.show()
```
> root
> |-- platform: string (nullable = true)
> |-- visits: long (nullable = true)
>
> +--------+------+
> |platform|visits|
> +--------+------+
> |Facebook| 3|
> |Facebook| 36|
> |Facebook| 47|
> |Facebook| 90|
> |Facebook| 105|
> |Facebook| 123|
> |Facebook| 119|
> |Facebook| 148|
> |Facebook| 197|
> |Facebook| 179|
> |Facebook| 200|
> |Facebook| 200|
> |Facebook| 183|
> |Facebook| 190|
> |Facebook| 227|
> |Facebook| 194|
> |Facebook| 243|
> |Facebook| 237|
> |Facebook| 234|
> |Facebook| 238|
> +--------+------+
> only showing top 20 rows
>
> +---------------+----+
> | address|name|
> +---------------+----+
> |[Columbus,Ohio]|IWyn|
> +---------------+----+
>
> <console>:63: warning: method json in class DataFrameReader is deprecated: Use json(Dataset[String]) instead.
> val anotherPlatforms = spark.read.json(rdd)
> ^
> path: String = /tmp/platforms.json
> platforms: org.apache.spark.sql.DataFrame = [platform: string, visits: bigint]
> facebook: org.apache.spark.sql.DataFrame = [platform: string, visits: bigint]
> rdd: org.apache.spark.rdd.RDD[String] = ParallelCollectionRDD[23304] at parallelize at <console>:62
> anotherPlatforms: org.apache.spark.sql.DataFrame = [address: struct<city: string, state: string>, name: string]
Hive Tables
-----------
Spark SQL also supports reading and writing data stored in [Apache Hive](http://hive.apache.org/). However, since Hive has a large number of dependencies, it is not included in the default Spark assembly. Hive support is enabled by adding the `-Phive` and `-Phive-thriftserver` flags to Spark’s build. This command builds a new assembly jar that includes Hive. Note that this Hive assembly jar must also be present on all of the worker nodes, as they will need access to the Hive serialization and deserialization libraries (SerDes) in order to access data stored in Hive.
Configuration of Hive is done by placing your `hive-site.xml`, `core-site.xml` (for security configuration), `hdfs-site.xml` (for HDFS configuration) file in `conf/`. Please note when running the query on a YARN cluster (`cluster` mode), the `datanucleus` jars under the `lib_managed/jars` directory and `hive-site.xml` under `conf/` directory need to be available on the driver and all executors launched by the YARN cluster. The convenient way to do this is adding them through the `--jars` option and `--file` option of the `spark-submit` command.
When working with Hive one must construct a `HiveContext`, which inherits from `SQLContext`, and adds support for finding tables in the MetaStore and writing queries using HiveQL. Users who do not have an existing Hive deployment can still create a `HiveContext`. When not configured by the hive-site.xml, the context automatically creates `metastore_db` in the current directory and creates `warehouse` directory indicated by HiveConf, which defaults to `/user/hive/warehouse`. Note that you may need to grant write privilege on `/user/hive/warehouse` to the user who starts the spark application.
``` scala
val spark = SparkSession.builder.enableHiveSupport().getOrCreate()
spark.sql("CREATE TABLE IF NOT EXISTS src (key INT, value STRING)")
spark.sql("LOAD DATA LOCAL INPATH 'examples/src/main/resources/kv1.txt' INTO TABLE src")
// Queries are expressed in HiveQL
spark.sql("FROM src SELECT key, value").collect().foreach(println)
```
### Interacting with Different Versions of Hive Metastore
One of the most important pieces of Spark SQL’s Hive support is interaction with Hive metastore, which enables Spark SQL to access metadata of Hive tables. Starting from Spark 1.4.0, a single binary build of Spark SQL can be used to query different versions of Hive metastores, using the configuration described below. Note that independent of the version of Hive that is being used to talk to the metastore, internally Spark SQL will compile against Hive 1.2.1 and use those classes for internal execution (serdes, UDFs, UDAFs, etc).
The following options can be used to configure the version of Hive that is used to retrieve metadata:
\| Property Name \| Default \| Meaning \|
\| --- \| --- \| --- \|
\| `spark.sql.hive.metastore.version` \| `1.2.1` \| Version of the Hive metastore. Available options are `0.12.0` through `1.2.1`. \|
\| `spark.sql.hive.metastore.jars` \| `builtin` \| Location of the jars that should be used to instantiate the HiveMetastoreClient. This property can be one of three options: `builtin`, `maven`, a classpath in the standard format for the JVM. This classpath must include all of Hive and its dependencies, including the correct version of Hadoop. These jars only need to be present on the driver, but if you are running in yarn cluster mode then you must ensure they are packaged with you application. \|
\| `spark.sql.hive.metastore.sharedPrefixes` \| `com.mysql.jdbc,org.postgresql,com.microsoft.sqlserver,oracle.jdbc` \| A comma separated list of class prefixes that should be loaded using the classloader that is shared between Spark SQL and a specific version of Hive. An example of classes that should be shared is JDBC drivers that are needed to talk to the metastore. Other classes that need to be shared are those that interact with classes that are already shared. For example, custom appenders that are used by log4j. \|
\| `spark.sql.hive.metastore.barrierPrefixes` \| `(empty)` \| A comma separated list of class prefixes that should explicitly be reloaded for each version of Hive that Spark SQL is communicating with. For example, Hive UDFs that are declared in a prefix that typically would be shared (i.e. `org.apache.spark.*`). \|
JDBC To Other Databases
-----------------------
Spark SQL also includes a data source that can read data from other databases using JDBC. This functionality should be preferred over using [JdbcRDD](http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.rdd.JdbcRDD). This is because the results are returned as a DataFrame and they can easily be processed in Spark SQL or joined with other data sources. The JDBC data source is also easier to use from Java or Python as it does not require the user to provide a ClassTag. (Note that this is different than the Spark SQL JDBC server, which allows other applications to run queries using Spark SQL).
To get started you will need to include the JDBC driver for you particular database on the spark classpath. For example, to connect to postgres from the Spark Shell you would run the following command:
SPARK_CLASSPATH=postgresql-9.3-1102-jdbc41.jar bin/spark-shell
Tables from the remote database can be loaded as a DataFrame or Spark SQL Temporary table using the Data Sources API. The following options are supported:
\| Property Name \| Meaning \|
\| --- \| --- \| --- \|
\| `url` \| The JDBC URL to connect to. \|
\| `dbtable` \| The JDBC table that should be read. Note that anything that is valid in a `FROM` clause of a SQL query can be used. For example, instead of a full table you could also use a subquery in parentheses. \|
\| `driver` \| The class name of the JDBC driver needed to connect to this URL. This class will be loaded on the master and workers before running an JDBC commands to allow the driver to register itself with the JDBC subsystem. \|
\| `partitionColumn, lowerBound, upperBound, numPartitions` \| These options must all be specified if any of them is specified. They describe how to partition the table when reading in parallel from multiple workers. `partitionColumn` must be a numeric column from the table in question. Notice that `lowerBound` and `upperBound` are just used to decide the partition stride, not for filtering the rows in table. So all rows in the table will be partitioned and returned. \|
\| `fetchSize` \| The JDBC fetch size, which determines how many rows to fetch per round trip. This can help performance on JDBC drivers which default to low fetch size (eg. Oracle with 10 rows). \|
// Example of using JDBC datasource
val jdbcDF = spark.read.format("jdbc").options(Map("url" -> "jdbc:postgresql:dbserver", "dbtable" -> "schema.tablename")).load()
-- Or using JDBC datasource in SQL
CREATE TEMPORARY TABLE jdbcTable
USING org.apache.spark.sql.jdbc
OPTIONS (
url "jdbc:postgresql:dbserver",
dbtable "schema.tablename"
)
### Troubleshooting
- The JDBC driver class must be visible to the primordial class loader on the client session and on all executors. This is because Java’s DriverManager class does a security check that results in it ignoring all drivers not visible to the primordial class loader when one goes to open a connection. One convenient way to do this is to modify compute\_classpath.sh on all worker nodes to include your driver JARs.
- Some databases, such as H2, convert all names to upper case. You’ll need to use upper case to refer to those names in Spark SQL. | Java |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
class Board extends React.Component {
renderSquare(i) {
return (
<Square
value={this.props.squares[i]}
onClick={() => this.props.onClick(i)}
/>
);
}
render() {
return (
<div>
<div className="board-row">
{this.renderSquare(0)}
{this.renderSquare(1)}
{this.renderSquare(2)}
</div>
<div className="board-row">
{this.renderSquare(3)}
{this.renderSquare(4)}
{this.renderSquare(5)}
</div>
<div className="board-row">
{this.renderSquare(6)}
{this.renderSquare(7)}
{this.renderSquare(8)}
</div>
</div>
);
}
}
class Game extends React.Component {
constructor(props) {
super(props);
this.state = {
history: [{
squares: Array(9).fill(null)
}],
xIsNext: true
};
}
handleClick(i) {
const history = this.state.history;
const current = history[history.length - 1];
const squares = current.squares.slice();
if (calculateWinner(squares) || squares[i]) {
return;
}
squares[i] = this.state.xIsNext ? 'X' : 'O';
this.setState({
history: history.concat([{
squares: squares
}]),
xIsNext: !this.state.xIsNext,
});
}
render() {
const history = this.state.history;
const current = history[history.length - 1];
const winner = calculateWinner(current.squares);
let status;
if (winner) {
status = 'Winner: ' + winner;
} else {
status = 'Next player: ' + (this.state.xIsNext ? 'X' : 'O');
}
return (
<div className="game">
<div className="game-board">
<Board
squares={current.squares}
onClick={(i) => this.handleClick(i)}
/>
</div>
<div className="game-info">
<div>{status}</div>
<ol>{/* TODO */}</ol>
</div>
</div>
);
}
}
// ========================================
ReactDOM.render(
<Game />,
document.getElementById('root')
);
function calculateWinner(squares) {
const lines = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8],
[0, 3, 6],
[1, 4, 7],
[2, 5, 8],
[0, 4, 8],
[2, 4, 6],
];
for (let i = 0; i < lines.length; i++) {
const [a, b, c] = lines[i];
if (squares[a] && squares[a] === squares[b] && squares[a] === squares[c]) {
return squares[a];
}
}
return null;
}
| Java |
/**********************************************************************************
Copyright (C) 2012 Syed Reza Ali (www.syedrezaali.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
**********************************************************************************/
#ifndef CIUI_ROTARY_SLIDER
#define CIUI_ROTARY_SLIDER
#include "cinder/TriMesh.h"
#include "cinder/Shape2d.h"
#include "cinder/CinderMath.h"
#include "ciUIWidgetWithLabel.h"
class ciUIRotarySlider : public ciUIWidgetWithLabel
{
public:
ciUIRotarySlider(float x, float y, float w, float _min, float _max, float _value, string _name)
{
useReference = false;
rect = new ciUIRectangle(x,y,w,w);
init(w, _min, _max, &_value, _name);
}
ciUIRotarySlider(float w, float _min, float _max, float _value, string _name)
{
useReference = false;
rect = new ciUIRectangle(0,0,w,w);
init(w, _min, _max, &_value, _name);
}
ciUIRotarySlider(float x, float y, float w, float _min, float _max, float *_value, string _name)
{
useReference = true;
rect = new ciUIRectangle(x,y,w,w);
init(w, _min, _max, _value, _name);
}
ciUIRotarySlider(float w, float _min, float _max, float *_value, string _name)
{
useReference = true;
rect = new ciUIRectangle(0,0,w,w);
init(w, _min, _max, _value, _name);
}
~ciUIRotarySlider()
{
if(!useReference)
{
delete valueRef;
}
}
void init(float w, float _min, float _max, float *_value, string _name)
{
name = _name;
kind = CI_UI_WIDGET_ROTARYSLIDER;
paddedRect = new ciUIRectangle(-padding, -padding, w+padding*2.0f, w+padding);
paddedRect->setParent(rect);
draw_fill = true;
value = *_value; //the widget's value
if(useReference)
{
valueRef = _value;
}
else
{
valueRef = new float();
*valueRef = value;
}
max = _max;
min = _min;
if(value > max)
{
value = max;
}
if(value < min)
{
value = min;
}
outerRadius = rect->getWidth()*.5f;
innerRadius = rect->getWidth()*.25f;
value = ci::lmap<float>(value, min, max, 0.0, 1.0);
label = new ciUILabel(0,w+padding,(name+" LABEL"), (name + ": " + numToString(getScaledValue(),2)), CI_UI_FONT_SMALL);
label->setParent(label);
label->setRectParent(rect);
label->setEmbedded(true);
increment = 0.1f;
}
virtual void update()
{
if(useReference)
value = cinder::lmap<float>(*valueRef, min, max, 0.0, 1.0);
}
virtual void setDrawPadding(bool _draw_padded_rect)
{
draw_padded_rect = _draw_padded_rect;
label->setDrawPadding(false);
}
virtual void setDrawPaddingOutline(bool _draw_padded_rect_outline)
{
draw_padded_rect_outline = _draw_padded_rect_outline;
label->setDrawPaddingOutline(false);
}
virtual void drawBack()
{
if(draw_back)
{
ci::gl::color(color_back);
drawArcStrip(1.0);
}
}
virtual void drawFill()
{
if(draw_fill)
{
ci::gl::color(color_fill);
drawArcStrip(value);
}
}
virtual void drawFillHighlight()
{
if(draw_fill_highlight)
{
ci::gl::color(color_fill_highlight);
drawArcStrip(value);
}
}
virtual void drawOutline()
{
if(draw_outline)
{
ci::gl::color(color_outline);
ci::gl::drawStrokedCircle(Vec2f(rect->getX()+rect->getHalfWidth(), rect->getY()+rect->getHalfHeight()), innerRadius);
ci::gl::drawStrokedCircle(Vec2f(rect->getX()+rect->getHalfWidth(), rect->getY()+rect->getHalfHeight()), outerRadius);
}
}
virtual void drawOutlineHighlight()
{
if(draw_outline_highlight)
{
ci::gl::color(color_outline_highlight);
ci::gl::drawStrokedCircle(Vec2f(rect->getX()+rect->getHalfWidth(), rect->getY()+rect->getHalfHeight()), innerRadius);
ci::gl::drawStrokedCircle(Vec2f(rect->getX()+rect->getHalfWidth(), rect->getY()+rect->getHalfHeight()), outerRadius);
}
}
void mouseMove(int x, int y )
{
if(rect->inside((float) x, (float) y))
{
state = CI_UI_STATE_OVER;
}
else
{
state = CI_UI_STATE_NORMAL;
}
stateChange();
}
void mouseDrag(int x, int y, int button)
{
if(hit)
{
state = CI_UI_STATE_DOWN;
input((float) x, (float) y);
triggerEvent(this);
}
else
{
state = CI_UI_STATE_NORMAL;
}
stateChange();
}
void mouseDown(int x, int y, int button)
{
if(rect->inside((float) x, (float) y))
{
hit = true;
state = CI_UI_STATE_DOWN;
input((float) x, (float) y);
triggerEvent(this);
}
else
{
state = CI_UI_STATE_NORMAL;
}
stateChange();
}
void mouseUp(int x, int y, int button)
{
if(hit)
{
#if defined( CINDER_COCOA_TOUCH )
state = CI_UI_STATE_NORMAL;
#else
state = CI_UI_STATE_OVER;
#endif
input((float) x, (float) y);
triggerEvent(this);
}
else
{
state = CI_UI_STATE_NORMAL;
}
stateChange();
hit = false;
}
void keyDown( KeyEvent &event )
{
if(state == CI_UI_STATE_OVER)
{
switch (event.getCode())
{
case ci::app::KeyEvent::KEY_RIGHT:
setValue(getScaledValue()+increment);
triggerEvent(this);
break;
case ci::app::KeyEvent::KEY_UP:
setValue(getScaledValue()+increment);
triggerEvent(this);
break;
case ci::app::KeyEvent::KEY_LEFT:
setValue(getScaledValue()-increment);
triggerEvent(this);
break;
case ci::app::KeyEvent::KEY_DOWN:
setValue(getScaledValue()-increment);
triggerEvent(this);
break;
default:
break;
}
}
}
void drawArcStrip(float percent)
{
float theta = ci::lmap<float>(percent, 0.0f , 1.0f , 0.0f , 360.0f);
ci::gl::pushMatrices();
ci::gl::translate(rect->getX(),rect->getY());
TriMesh2d mesh;
{
float x = sin(-ci::toRadians(0.0f));
float y = cos(-ci::toRadians(0.0f));
mesh.appendVertex(Vec2f(center.x+outerRadius*x,center.y+outerRadius*y));
}
for(int i = 0; i < theta; i+=8)
{
float x = sin(-ci::toRadians((float)i));
float y = cos(-ci::toRadians((float)i));
mesh.appendVertex(Vec2f(center.x+outerRadius*x,center.y+outerRadius*y));
}
{
float x = sin(-ci::toRadians(theta));
float y = cos(-ci::toRadians(theta));
mesh.appendVertex(Vec2f(center.x+outerRadius*x,center.y+outerRadius*y));
// mesh.appendVertex(Vec2f(center.x+innerRadius*x,center.y+innerRadius*y));
}
{
float x = sin(-ci::toRadians(0.0f));
float y = cos(-ci::toRadians(0.0f));
mesh.appendVertex(Vec2f(center.x+innerRadius*x,center.y+innerRadius*y));
}
for(int i = 0; i < theta; i+=8)
{
float x = sin(-ci::toRadians((float)i));
float y = cos(-ci::toRadians((float)i));
mesh.appendVertex(Vec2f(center.x+innerRadius*x,center.y+innerRadius*y));
}
{
float x = sin(-ci::toRadians(theta));
float y = cos(-ci::toRadians(theta));
mesh.appendVertex(Vec2f(center.x+innerRadius*x,center.y+innerRadius*y));
}
int numVerts = (mesh.getNumVertices())/2;
for(int i = 0; i < numVerts-1; i++)
{
int topIndex = i+numVerts;
mesh.appendTriangle(i, i+1, topIndex);
mesh.appendTriangle(i+1, topIndex + 1, topIndex);
}
ci::gl::draw(mesh);
ci::gl::popMatrices();
}
void setIncrement(float _increment)
{
increment = _increment;
}
void input(float x, float y)
{
hitPoint = Vec2f(x,y);
Vec2f mappedHitPoint = hitPoint;
mappedHitPoint -= Vec2f(rect->getX()+center.x, rect->getY()+center.y);
mappedHitPoint.normalized();
Vec2f cVector = center-homePoint;
cVector.normalized();
value = ci::lmap<float>(atan2(cVector.x*mappedHitPoint.y-cVector.y*mappedHitPoint.x, cVector.x*mappedHitPoint.x + cVector.y*mappedHitPoint.y ), -M_PI, M_PI, 0.0f, 1.0f);
if(value > 1.0)
{
value = 1.0;
}
else if(value < 0.0)
{
value = 0.0;
}
updateValueRef();
updateLabel();
}
void updateValueRef()
{
(*valueRef) = getScaledValue();
}
void updateLabel()
{
label->setLabel(name + ": " + numToString(getScaledValue(),2));
}
void stateChange()
{
if(value > 0)
{
draw_fill = true;
}
else
{
draw_fill = false;
}
switch (state) {
case CI_UI_STATE_NORMAL:
{
draw_fill_highlight = false;
draw_outline_highlight = false;
label->unfocus();
}
break;
case CI_UI_STATE_OVER:
{
draw_fill_highlight = false;
draw_outline_highlight = true;
label->unfocus();
}
break;
case CI_UI_STATE_DOWN:
{
draw_fill_highlight = true;
draw_outline_highlight = true;
label->focus();
}
break;
case CI_UI_STATE_SUSTAINED:
{
draw_fill_highlight = false;
draw_outline_highlight = false;
label->unfocus();
}
break;
default:
break;
}
}
void setVisible(bool _visible)
{
visible = _visible;
label->setVisible(visible);
}
void setValue(float _value)
{
value = ci::lmap<float>(_value, min, max, 0.0, 1.0);
updateValueRef();
updateLabel();
}
float getValue()
{
return value;
}
float getScaledValue()
{
return ci::lmap<float>(value, 0.0, 1.0, min, max);
}
ciUILabel *getLabel()
{
return label;
}
void setParent(ciUIWidget *_parent)
{
parent = _parent;
paddedRect->setHeight( paddedRect->getHeight() + label->getPaddingRect()->getHeight());
if(label->getPaddingRect()->getWidth()+padding*2.0f > paddedRect->getWidth())
{
paddedRect->setWidth(label->getPaddingRect()->getWidth());
}
center = Vec2f(rect->getWidth()*.5f, rect->getHeight()*.5f);
homePoint = Vec2f(rect->getWidth()*.5f, rect->getHeight());
}
bool isDraggable()
{
return true;
}
protected: //inherited: ciUIRectangle *rect; ciUIWidget *parent;
float value, increment;
float *valueRef;
bool useReference;
float max, min;
Vec2f center;
Vec2f hitPoint;
Vec2f homePoint;
float outerRadius, innerRadius;
};
#endif
| Java |
require('babel-core/register')({plugins: ['babel-plugin-rewire']})
import packageJson from '../package.json'
import conformToMask from '../src/conformToMask'
import {placeholderChar} from '../src/constants'
const createTextMaskInputElement = (isVerify()) ?
require(`../${packageJson.main}`).createTextMaskInputElement :
require('../src/createTextMaskInputElement.js').default
describe('createTextMaskInputElement', () => {
let inputElement
beforeEach(() => {
inputElement = document.createElement('input')
})
it('takes an inputElement and other Text Mask parameters and returns an object which ' +
'allows updating and controlling the masking of the input element', () => {
const maskedInputElementControl = createTextMaskInputElement({
inputElement,
mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
})
expect(maskedInputElementControl.update).to.be.a('function')
})
it('works with mask functions', () => {
const mask = () => [/\d/, /\d/, /\d/, /\d/]
expect(() => createTextMaskInputElement({inputElement, mask})).to.not.throw()
})
it('displays mask when showMask is true', () => {
const textMaskControl = createTextMaskInputElement({
showMask: true,
inputElement,
mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
})
textMaskControl.update()
expect(inputElement.value).to.equal('(___) ___-____')
})
it('does not display mask when showMask is false', () => {
const textMaskControl = createTextMaskInputElement({
showMask: false,
inputElement,
mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
})
textMaskControl.update()
expect(inputElement.value).to.equal('')
})
describe('`update` method', () => {
it('conforms whatever value is in the input element to a mask', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
inputElement.value = '2'
textMaskControl.update()
expect(inputElement.value).to.equal('(2__) ___-____')
})
it('works after multiple calls', () => {
const mask = ['+', '1', ' ', '(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
inputElement.value = '2'
textMaskControl.update()
expect(inputElement.value).to.equal('+1 (2__) ___-____')
inputElement.value = '+1 (23__) ___-____'
inputElement.selectionStart = 6
textMaskControl.update()
expect(inputElement.value).to.equal('+1 (23_) ___-____')
inputElement.value = '+1 (2_) ___-____'
inputElement.selectionStart = 5
textMaskControl.update()
expect(inputElement.value).to.equal('+1 (2__) ___-____')
inputElement.value = '+1 (__) ___-____'
inputElement.selectionStart = 4
textMaskControl.update()
expect(inputElement.value).to.equal('')
})
it('accepts a string to conform and overrides whatever value is in the input element', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
inputElement.value = '2'
textMaskControl.update('123')
expect(inputElement.value).to.equal('(123) ___-____')
})
it('accepts an empty string and overrides whatever value is in the input element', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
textMaskControl.update(123)
expect(inputElement.value).to.equal('(123) ___-____')
textMaskControl.update('')
expect(inputElement.value).to.equal('')
})
it('accepts an empty string after reinitializing text mask', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
let textMaskControl = createTextMaskInputElement({inputElement, mask})
textMaskControl.update(123)
expect(inputElement.value).to.equal('(123) ___-____')
//reset text mask
textMaskControl = createTextMaskInputElement({inputElement, mask})
// now clear the value
textMaskControl.update('')
expect(inputElement.value).to.equal('')
})
if (!isVerify()) {
it('does not conform given parameter if it is the same as the previousConformedValue', () => {
const conformToMaskSpy = sinon.spy(conformToMask)
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
createTextMaskInputElement.__Rewire__('conformToMask', conformToMaskSpy)
inputElement.value = '2'
textMaskControl.update()
expect(inputElement.value).to.equal('(2__) ___-____')
expect(conformToMaskSpy.callCount).to.equal(1)
textMaskControl.update('(2__) ___-____')
expect(conformToMaskSpy.callCount).to.equal(1)
createTextMaskInputElement.__ResetDependency__('conformToMask')
})
}
it('works with a string', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
textMaskControl.update('2')
expect(inputElement.value).to.equal('(2__) ___-____')
})
it('works with a number by coercing it into a string', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
textMaskControl.update(2)
expect(inputElement.value).to.equal('(2__) ___-____')
})
it('works with `undefined` and `null` by treating them as empty strings', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
textMaskControl.update(undefined)
expect(inputElement.value).to.equal('')
textMaskControl.update(null)
expect(inputElement.value).to.equal('')
})
it('throws if given a value that it cannot work with', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
expect(() => textMaskControl.update({})).to.throw()
expect(() => textMaskControl.update(() => 'howdy')).to.throw()
expect(() => textMaskControl.update([])).to.throw()
})
it('adjusts the caret position', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask, placeholderChar})
inputElement.focus()
inputElement.value = '2'
inputElement.selectionStart = 1
textMaskControl.update()
expect(inputElement.selectionStart).to.equal(2)
})
it('does not adjust the caret position if the input element is not focused', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement({inputElement, mask})
inputElement.value = '2'
inputElement.selectionStart = 1
textMaskControl.update()
expect(inputElement.selectionStart).to.equal(0)
})
it('calls the mask function before every update', () => {
const maskSpy = sinon.spy(() => [/\d/, /\d/, /\d/, /\d/])
const textMaskControl = createTextMaskInputElement({inputElement, mask: maskSpy})
inputElement.value = '2'
textMaskControl.update()
expect(inputElement.value).to.equal('2___')
inputElement.value = '24'
textMaskControl.update()
expect(inputElement.value).to.equal('24__')
expect(maskSpy.callCount).to.equal(2)
})
it('can be disabled with `false` mask', () => {
const mask = false
const textMaskControl = createTextMaskInputElement({inputElement, mask})
inputElement.value = 'a'
textMaskControl.update()
expect(inputElement.value).to.equal('a')
})
it('can be disabled by returning `false` from mask function', () => {
const mask = () => false
const textMaskControl = createTextMaskInputElement({inputElement, mask})
inputElement.value = 'a'
textMaskControl.update()
expect(inputElement.value).to.equal('a')
})
it('can pass in a config object to the update method', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement()
let inputElement = {value: '2'}
textMaskControl.update(inputElement.value, {inputElement, mask})
expect(inputElement.value).to.equal('(2__) ___-____')
})
it('can change the mask passed to the update method', () => {
const textMaskControl = createTextMaskInputElement()
let inputElement = {value: '2'}
textMaskControl.update(inputElement.value, {
inputElement,
mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
})
expect(inputElement.value).to.equal('(2__) ___-____')
textMaskControl.update('2', {
inputElement,
mask: ['+', '1', ' ', '(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
})
expect(inputElement.value).to.equal('+1 (2__) ___-____')
})
it('can change the guide passed to the update method', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement()
let inputElement = {value: '2'}
textMaskControl.update(inputElement.value, {inputElement, mask, guide: true})
expect(inputElement.value).to.equal('(2__) ___-____')
textMaskControl.update('2', {inputElement, mask, guide: false})
expect(inputElement.value).to.equal('(2')
})
it('can change the placeholderChar passed to the update method', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement()
let inputElement = {value: '2'}
textMaskControl.update(inputElement.value, {inputElement, mask, placeholderChar: '_'})
expect(inputElement.value).to.equal('(2__) ___-____')
textMaskControl.update('2', {inputElement, mask, placeholderChar: '*'})
expect(inputElement.value).to.equal('(2**) ***-****')
})
it('can change the inputElement passed to the update method', () => {
const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
const textMaskControl = createTextMaskInputElement()
let firstInputElement = {value: '1'}
let secondInputElement = {value: '2'}
textMaskControl.update('1', {inputElement: firstInputElement, mask})
expect(firstInputElement.value).to.equal('(1__) ___-____')
textMaskControl.update('2', {inputElement: secondInputElement, mask})
expect(secondInputElement.value).to.equal('(2__) ___-____')
})
it('can change the config passed to createTextMaskInputElement', () => {
const config = {
inputElement,
mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
guide: true,
placeholderChar: '_'
}
const textMaskControl = createTextMaskInputElement(config)
inputElement.value = '2'
textMaskControl.update()
expect(inputElement.value).to.equal('(2__) ___-____')
// change the mask
config.mask = ['+', '1', ' ', '(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/]
inputElement.value = '23' // <- you have to change the value
textMaskControl.update()
expect(inputElement.value).to.equal('+1 (23_) ___-____')
// change the placeholderChar
config.placeholderChar = '*'
inputElement.value = '4' // <- you have to change the value
textMaskControl.update()
expect(inputElement.value).to.equal('+1 (4**) ***-****')
// change the guide
config.guide = false
inputElement.value = '45' // <- you have to change the value
textMaskControl.update()
expect(inputElement.value).to.equal('+1 (45')
})
it('can override the config passed to createTextMaskInputElement', () => {
const textMaskControl = createTextMaskInputElement({
inputElement,
mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
guide: true
})
inputElement.value = '2'
textMaskControl.update()
expect(inputElement.value).to.equal('(2__) ___-____')
// pass in a config to the update method
textMaskControl.update('23', {
inputElement,
mask: ['+', '1', ' ', '(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/],
guide: false
})
expect(inputElement.value).to.equal('+1 (23')
// use original config again
inputElement.value = '234' // <- you have to change the value
textMaskControl.update()
expect(inputElement.value).to.equal('(234) ___-____')
})
})
})
| Java |
Take a distributed lock in a shared SQL Server database.
In F#:
Example
-------
Take a distributed lock in a shared SQL Server database.
In F#:
#r "Sproc.Lock.dll"
open System
open Sproc.Lock.Fun
let connString = "sql server connection string"
let lock1 = GetGlobalLock connString (TimeSpan.FromMinutes 5.) "MyAppLock"
match lock1 with
| Locked l ->
sprintf "I got a lock called %s!" l.LockId
// (will be "MyAppLock" on this occassion)
| Unavailable ->
sprintf "Someone else had the lock already!"
| Error i ->
sprintf "Something went wrong - error code: %d" i
lock1.Dispose()
And C#:
using System;
using Sproc.Lock.OO;
namespace MyApp
{
class Thing
{
static void DoLockRequiringWork()
{
var provider = new LockProvider("sql connection string");
try
{
using (var lock2 = provider.GlobalLock("MyAppLock", TimeSpan.FromMinutes(5.0))
{
// If I get here, I've got a lock!
// Doing stuff!
} // Lock released when Disposed
}
catch (LockUnavailableException)
{
// Couldn't get the lock
throw;
}
catch (LockRequestErrorException)
{
// Getting the lock threw an error
throw;
}
}
}
}
Documentation
-------------
Sproc.Lock is a combination of a managed .net library and a set of SQL Server scripts that
combine to turn SQL Server into a distributed locking server.
This library is only really recommended if you are already using SQL Server, and do not
have a more suitable distibuted locking server already up and running. In that case, Sproc.Lock
can save you the overhead of adding an additional piece of infrastructure to your environment
Find out more at [15below.github.io/Sproc.Lock/](http://15below.github.io/Sproc.Lock/) | Java |
GoogleElectionMap.shapeReady({name:"28_05",type:"state",state:"28_05",bounds:[],centroid:[],shapes:[
{points:[
{x:32.8810559124534,y: 24.5253494052583}
,
{x:32.8804366855404,y: 24.5250018993236}
,
{x:32.8804349320052,y: 24.5250021192127}
,
{x:32.8800699675051,y: 24.52504787811}
,
{x:32.880107603168,y: 24.5253602242076}
,
{x:32.8802839839792,y: 24.52603126374}
,
{x:32.8806752087983,y: 24.5268181464166}
,
{x:32.8813572439035,y: 24.5276168223645}
,
{x:32.8819505502392,y: 24.5286583392856}
,
{x:32.8825307177406,y: 24.5302435034032}
,
{x:32.882934635026,y: 24.5310072542635}
,
{x:32.8834485851789,y: 24.5330479929378}
,
{x:32.8837280117142,y: 24.5339626803751}
,
{x:32.884343892289,y: 24.534985099402}
,
{x:32.8849707220765,y: 24.5357073551443}
,
{x:32.8857139839758,y: 24.5365877815531}
,
{x:32.8867322124162,y: 24.5378013619691}
,
{x:32.8876882846372,y: 24.5390216560881}
,
{x:32.8891919119942,y: 24.540785084219}
,
{x:32.8898616158364,y: 24.5413523715326}
,
{x:32.890834703648,y: 24.5420471161423}
,
{x:32.892022806308,y: 24.5427073069361}
,
{x:32.8929960248504,y: 24.543274797266}
,
{x:32.8936151079581,y: 24.5439230021262}
,
{x:32.8939563239076,y: 24.5441777223781}
,
{x:32.8941969226219,y: 24.5443351788832}
,
{x:32.8942217362609,y: 24.5443514180803}
,
{x:32.8943103917561,y: 24.5441895397177}
,
{x:32.8939318918876,y: 24.5431597894563}
,
{x:32.8935156289255,y: 24.5419333682628}
,
{x:32.8928971968486,y: 24.5405332931207}
,
{x:32.8917605486434,y: 24.5388783635996}
,
{x:32.8902124631775,y: 24.5361164927854}
,
{x:32.888306467008,y: 24.5329536141396}
,
{x:32.8876782300639,y: 24.5314852017043}
,
{x:32.8871284082075,y: 24.5298608543163}
,
{x:32.8865281254967,y: 24.5282916909969}
,
{x:32.8855427814326,y: 24.5272845980552}
,
{x:32.8843422710402,y: 24.5265318135685}
,
{x:32.8843325732352,y: 24.5265286685573}
,
{x:32.8830908791957,y: 24.5261259978265}
,
{x:32.881890005934,y: 24.525789614878}
,
{x:32.8818650371091,y: 24.5257764371665}
,
{x:32.8810559124534,y: 24.5253494052583}
]}
,
{points:[
{x:32.9019960722517,y: 24.546197781935}
,
{x:32.9010302932533,y: 24.5450044439886}
,
{x:32.9010174381379,y: 24.545007502719}
,
{x:32.9007640795607,y: 24.5450677818085}
,
{x:32.9005131225026,y: 24.5451274885421}
,
{x:32.9003777640669,y: 24.5457237535524}
,
{x:32.9002865578843,y: 24.5473482461574}
,
{x:32.9004882152,y: 24.5482120654834}
,
{x:32.9003525941626,y: 24.5491373531242}
,
{x:32.900832773743,y: 24.55037862879}
,
{x:32.9018562389718,y: 24.5516524640258}
,
{x:32.9023628597906,y: 24.552782200296}
,
{x:32.9021249492644,y: 24.5534958706051}
,
{x:32.9022027836992,y: 24.5546847079245}
,
{x:32.9023690012363,y: 24.5560566043976}
,
{x:32.9028188794294,y: 24.5584934715349}
,
{x:32.9029844838607,y: 24.5607298870529}
,
{x:32.9032690872615,y: 24.5622439360486}
,
{x:32.9035020034828,y: 24.5643563747934}
,
{x:32.9037861391809,y: 24.5666009905706}
,
{x:32.9050066369447,y: 24.5719657076965}
,
{x:32.9052751701374,y: 24.5736726816184}
,
{x:32.9057684355406,y: 24.5755648725823}
,
{x:32.9061501491834,y: 24.5763054129537}
,
{x:32.9068912719161,y: 24.5775602749211}
,
{x:32.9071826506696,y: 24.5788354173812}
,
{x:32.9074633948669,y: 24.5793008493204}
,
{x:32.9078171918728,y: 24.5798100253351}
,
{x:32.9084907789616,y: 24.5812139252027}
,
{x:32.9090556117857,y: 24.5819898205123}
,
{x:32.9090636373088,y: 24.5820008439576}
,
{x:32.9092325012938,y: 24.5820241121723}
,
{x:32.9094009189669,y: 24.5820473185113}
,
{x:32.9096709844482,y: 24.5817544472809}
,
{x:32.909941684888,y: 24.5805824705258}
,
{x:32.9102296567228,y: 24.5788398566416}
,
{x:32.9103986387366,y: 24.5783849828288}
,
{x:32.9104974920394,y: 24.5767592356871}
,
{x:32.9105124195482,y: 24.5765137378363}
,
{x:32.9108056159214,y: 24.5753006450003}
,
{x:32.9102678229386,y: 24.5726887078502}
,
{x:32.9104706554834,y: 24.5720513487502}
,
{x:32.9103591291708,y: 24.5707968848439}
,
{x:32.9091798931689,y: 24.5670953383371}
,
{x:32.9087759661133,y: 24.5655306319631}
,
{x:32.9086508606572,y: 24.5642050621524}
,
{x:32.9078914454148,y: 24.5627695300111}
,
{x:32.9076658286507,y: 24.5618722099146}
,
{x:32.9077735243321,y: 24.5588879375975}
,
{x:32.907774932616,y: 24.5588497040426}
,
{x:32.9073701959783,y: 24.5556912390294}
,
{x:32.9072276733165,y: 24.5544241590121}
,
{x:32.906409261338,y: 24.5532986913824}
,
{x:32.9056973049112,y: 24.5517939294792}
,
{x:32.9049817259066,y: 24.5509504330437}
,
{x:32.9049658377677,y: 24.5509316956826}
,
{x:32.90381474316,y: 24.5492835424285}
,
{x:32.9037636822701,y: 24.5492027419115}
,
{x:32.9030737275812,y: 24.5481109239315}
,
{x:32.9019960722517,y: 24.546197781935}
]}
,
{points:[
{x:32.9068658186117,y: 24.5915723876647}
,
{x:32.9066878311066,y: 24.5915748676675}
,
{x:32.9067076277387,y: 24.5919749787228}
,
{x:32.9070246099623,y: 24.592443930182}
,
{x:32.9076231833487,y: 24.5928835333985}
,
{x:32.9088028737963,y: 24.5933109251489}
,
{x:32.9090074056725,y: 24.5934322206895}
,
{x:32.9090270978349,y: 24.5934438824877}
,
{x:32.9092976821383,y: 24.5934462932366}
,
{x:32.909286973302,y: 24.5931893578706}
,
{x:32.9091097934543,y: 24.5929591806176}
,
{x:32.9086061068361,y: 24.5926094511158}
,
{x:32.9074405092677,y: 24.5920562524253}
,
{x:32.9068790119857,y: 24.5915721962758}
,
{x:32.9068658186117,y: 24.5915723876647}
]}
,
{points:[
{x:32.9306380028288,y: 24.6439357499388}
,
{x:32.9304193835619,y: 24.6415543043021}
,
{x:32.9308201553539,y: 24.6410593727391}
,
{x:32.9305410201023,y: 24.6400288328263}
,
{x:32.9302961762274,y: 24.6395098034689}
,
{x:32.9300974490365,y: 24.6387671899185}
,
{x:32.9300874336471,y: 24.6384384253086}
,
{x:32.9298430339207,y: 24.6372989142743}
,
{x:32.9296187700537,y: 24.6366815740391}
,
{x:32.929292660736,y: 24.6357273153721}
,
{x:32.9289463936502,y: 24.6345297135787}
,
{x:32.9283143679605,y: 24.6333846414923}
,
{x:32.9276090835126,y: 24.6321245908133}
,
{x:32.9259368471765,y: 24.6299243777634}
,
{x:32.9249381092441,y: 24.628550513942}
,
{x:32.9243679699102,y: 24.6275159314012}
,
{x:32.9239819137914,y: 24.6264069339599}
,
{x:32.9237194492429,y: 24.6248475503466}
,
{x:32.9232304161745,y: 24.6244313972004}
,
{x:32.9226807488606,y: 24.6237706813579}
,
{x:32.9219094664714,y: 24.6220371266924}
,
{x:32.9209583026776,y: 24.6194354801501}
,
{x:32.9202098225335,y: 24.6176989185076}
,
{x:32.9196484077822,y: 24.6155277855946}
,
{x:32.9186196956626,y: 24.613296574409}
,
{x:32.9177874586635,y: 24.6120536075743}
,
{x:32.9169938204959,y: 24.6094799128237}
,
{x:32.9161977168247,y: 24.6075728003033}
,
{x:32.9158716227109,y: 24.6060585022178}
,
{x:32.9155042947087,y: 24.605048882695}
,
{x:32.9152185857547,y: 24.6042823155805}
,
{x:32.9149134545365,y: 24.602057702674}
,
{x:32.9145055301289,y: 24.6006555094605}
,
{x:32.9138931797687,y: 24.5992345016333}
,
{x:32.912469444399,y: 24.5990566945658}
,
{x:32.9121294329819,y: 24.5972399297232}
,
{x:32.9118492363033,y: 24.5956865239906}
,
{x:32.9114585710327,y: 24.5953194691625}
,
{x:32.9105310622483,y: 24.5941426406149}
,
{x:32.9094407460489,y: 24.5939341256383}
,
{x:32.9079374522802,y: 24.5932473626289}
,
{x:32.9066457405462,y: 24.5928325034861}
,
{x:32.9060107956899,y: 24.5916107817261}
,
{x:32.9048985872142,y: 24.5910952990972}
,
{x:32.9046749020783,y: 24.589543656946}
,
{x:32.9047226388473,y: 24.5894667537846}
,
{x:32.9046136175776,y: 24.5894867602747}
,
{x:32.9045531817626,y: 24.5883230970128}
,
{x:32.904354674077,y: 24.5872715018379}
,
{x:32.9039262262108,y: 24.5861776988867}
,
{x:32.9034211182531,y: 24.5850978637064}
,
{x:32.9028247295084,y: 24.583120715002}
,
{x:32.9025193327864,y: 24.5815503220875}
,
{x:32.9021368365261,y: 24.5805546797424}
,
{x:32.9018160783231,y: 24.579040352879}
,
{x:32.9016023333368,y: 24.5779186450114}
,
{x:32.9014042324767,y: 24.576404397734}
,
{x:32.901160779702,y: 24.574091002157}
,
{x:32.9003959129671,y: 24.5716522686668}
,
{x:32.9000808960838,y: 24.5709728465639}
,
{x:32.8997346638503,y: 24.5690107188021}
,
{x:32.8996510630001,y: 24.5674002554552}
,
{x:32.8995356436118,y: 24.56571795718}
,
{x:32.8992341125435,y: 24.5625019090756}
,
{x:32.8991040170725,y: 24.5599708549208}
,
{x:32.8989477034196,y: 24.5590748844666}
,
{x:32.8980879321001,y: 24.5575373917488}
,
{x:32.8979337637813,y: 24.5561042766295}
,
{x:32.8975376570664,y: 24.554970632733}
,
{x:32.896736102018,y: 24.5525857967486}
,
{x:32.8958712057812,y: 24.5510907338809}
,
{x:32.894948379246,y: 24.5496231562703}
,
{x:32.8943796417896,y: 24.547913414668}
,
{x:32.8941659601485,y: 24.5468477713103}
,
{x:32.8939212363672,y: 24.5462447535708}
,
{x:32.8933393728601,y: 24.5455854179938}
,
{x:32.8920374332369,y: 24.544603111427}
,
{x:32.8898776653757,y: 24.5431154603853}
,
{x:32.887671719285,y: 24.5419081362463}
,
{x:32.8852323439757,y: 24.5389890291771}
,
{x:32.8834157379391,y: 24.5365649375411}
,
{x:32.8827275622485,y: 24.5354673965301}
,
{x:32.882159612944,y: 24.5344169078237}
,
{x:32.8813308567563,y: 24.5323449731674}
,
{x:32.8809043076298,y: 24.5314279071763}
,
{x:32.8805244747611,y: 24.5297327853161}
,
{x:32.8800349412484,y: 24.5288102153174}
,
{x:32.8789196989165,y: 24.5269400357722}
,
{x:32.8784032313241,y: 24.525718351981}
,
{x:32.8779144990341,y: 24.523998211083}
,
{x:32.8772079782751,y: 24.5221283481906}
,
{x:32.8761208595581,y: 24.5194606056338}
,
{x:32.8755236038326,y: 24.5173415838965}
,
{x:32.8753881295868,y: 24.5165937557813}
,
{x:32.874844274727,y: 24.51559635064}
,
{x:32.8748371177966,y: 24.5155034947354}
,
{x:32.8743083111815,y: 24.5140476528538}
,
{x:32.8742450595108,y: 24.5137386722838}
,
{x:32.8731774306802,y: 24.5138787634109}
,
{x:32.8645361363841,y: 24.5159432258465}
,
{x:32.8652039569641,y: 24.5189366440886}
,
{x:32.8652520261104,y: 24.5190904950891}
,
{x:32.86244624526,y: 24.5168613373775}
,
{x:32.8550215473134,y: 24.5082612011912}
,
{x:32.8473672482674,y: 24.4977405036822}
,
{x:32.839149268727,y: 24.4926116118191}
,
{x:32.8195473431857,y: 24.51359608293}
,
{x:32.819206702427,y: 24.5139593793166}
,
{x:32.7247874545531,y: 24.4984739899919}
,
{x:32.7247343429083,y: 24.4967570827833}
,
{x:32.3053274242314,y: 24.5150151524095}
,
{x:32.3505190734948,y: 24.6001500683935}
,
{x:32.3751072001533,y: 24.6461496615975}
,
{x:32.7461789449408,y: 24.6231108842054}
,
{x:32.7467358579721,y: 24.6194649771254}
,
{x:32.7477559210231,y: 24.6199341877182}
,
{x:32.803738660182,y: 24.6230308346119}
,
{x:32.8701734869393,y: 24.627487662961}
,
{x:32.8967684734596,y: 24.636735017169}
,
{x:32.9086564138478,y: 24.6444041966976}
,
{x:32.9085952015556,y: 24.6446983519101}
,
{x:32.9088839652403,y: 24.6443743822834}
,
{x:32.9137395360047,y: 24.649022571411}
,
{x:32.9145728631378,y: 24.6528254798246}
,
{x:32.9171523484769,y: 24.6557762121668}
,
{x:32.9203176535248,y: 24.6567084526774}
,
{x:32.9225677645859,y: 24.6573297898235}
,
{x:32.9261012000676,y: 24.6570952672514}
,
{x:32.9281613976806,y: 24.6563682843939}
,
{x:32.9283076390063,y: 24.6563166930561}
,
{x:32.9300460768901,y: 24.6557632153275}
,
{x:32.930078176546,y: 24.6543167402235}
,
{x:32.9301291123022,y: 24.6515128973271}
,
{x:32.9302158149965,y: 24.6495805473188}
,
{x:32.9303714586333,y: 24.6486101642897}
,
{x:32.9306624148647,y: 24.647151462599}
,
{x:32.9305883773967,y: 24.6456266408222}
,
{x:32.9306380028288,y: 24.6439357499388}
]}
,
{points:[
{x:32.9301278080931,y: 24.6938136329239}
,
{x:32.9300377541867,y: 24.692156899672}
,
{x:32.9298164212757,y: 24.6882072762278}
,
{x:32.9297121107921,y: 24.6879556459738}
,
{x:32.9294180587474,y: 24.6874089693958}
,
{x:32.9293234043731,y: 24.6868710594824}
,
{x:32.9291527308794,y: 24.6864372171446}
,
{x:32.9291336578181,y: 24.6864421087535}
,
{x:32.9288488400492,y: 24.6865151526406}
,
{x:32.9282123364019,y: 24.6870874210293}
,
{x:32.9278797114991,y: 24.6875991050041}
,
{x:32.9277883747344,y: 24.6905152719209}
,
{x:32.9278152013799,y: 24.6920194262524}
,
{x:32.927028589153,y: 24.6952566372695}
,
{x:32.9266666440096,y: 24.6968847884626}
,
{x:32.9265143277109,y: 24.6975527094942}
,
{x:32.926504784016,y: 24.6978942538227}
,
{x:32.9265046315795,y: 24.697899715071}
,
{x:32.926704004053,y: 24.6979605380045}
,
{x:32.9271507021965,y: 24.6972580566782}
,
{x:32.9278343315725,y: 24.694109085076}
,
{x:32.9284985018112,y: 24.6926815228648}
,
{x:32.9287653309034,y: 24.6924156915316}
,
{x:32.9287763780245,y: 24.6924047858588}
,
{x:32.9289308088402,y: 24.6926317915826}
,
{x:32.9289919637841,y: 24.6935700662466}
,
{x:32.9288974586057,y: 24.6953916422866}
,
{x:32.9286251096799,y: 24.6966266061184}
,
{x:32.9286250464307,y: 24.6966371178005}
,
{x:32.9289288894453,y: 24.6966719617104}
,
{x:32.929251874777,y: 24.6964378806269}
,
{x:32.92999717928,y: 24.695299763335}
,
{x:32.9301308722827,y: 24.694883187372}
,
{x:32.9301278080931,y: 24.6938136329239}
]}
,
{points:[
{x:32.9359532780591,y: 24.7004843037647}
,
{x:32.935801474316,y: 24.7002239811879}
,
{x:32.9357886591425,y: 24.7002336140543}
,
{x:32.9356399790571,y: 24.7003453649678}
,
{x:32.9354024519121,y: 24.7005881698196}
,
{x:32.9353357010653,y: 24.7011260063233}
,
{x:32.9347741497566,y: 24.7033063971709}
,
{x:32.9343155119516,y: 24.7055440351821}
,
{x:32.9345803620299,y: 24.7059679178579}
,
{x:32.9345811868437,y: 24.7059692368051}
,
{x:32.9347699295824,y: 24.7060596578682}
,
{x:32.9347805585575,y: 24.7060647498539}
,
{x:32.9349171023363,y: 24.7061382043761}
,
{x:32.9349419503285,y: 24.7061515716449}
,
{x:32.9352458131697,y: 24.7061864032094}
,
{x:32.935492822874,y: 24.7059783028744}
,
{x:32.9354742240969,y: 24.705206198225}
,
{x:32.9357831757501,y: 24.7034102505833}
,
{x:32.9358305344492,y: 24.7022586155847}
,
{x:32.9359532780591,y: 24.7004843037647}
]}
,
{points:[
{x:32.9283541767998,y: 24.7026626723457}
,
{x:32.928378384393,y: 24.7026489501266}
,
{x:32.9284062204289,y: 24.7027035878679}
,
{x:32.9282958223407,y: 24.7038531559937}
,
{x:32.9283080270123,y: 24.7049034785964}
,
{x:32.9284880185721,y: 24.7058492791804}
,
{x:32.9286242865129,y: 24.7064207296643}
,
{x:32.9289967611297,y: 24.7078603728546}
,
{x:32.9289378378514,y: 24.7090098156704}
,
{x:32.9292171642024,y: 24.7113352688402}
,
{x:32.9292892833277,y: 24.712652920268}
,
{x:32.9292901978439,y: 24.7126704480073}
,
{x:32.929565634163,y: 24.712627201525}
,
{x:32.9299932407263,y: 24.7121936400491}
,
{x:32.9306416779878,y: 24.7112995371153}
,
{x:32.931383176554,y: 24.7104633465581}
,
{x:32.9321539830153,y: 24.7099874462971}
,
{x:32.9325321839224,y: 24.7094872003276}
,
{x:32.9329234934731,y: 24.7089734689073}
,
{x:32.9331881499505,y: 24.7083402172446}
,
{x:32.9331757433794,y: 24.7075512943161}
,
{x:32.9334072504045,y: 24.7064519636027}
,
{x:32.9336400743663,y: 24.7044122997087}
,
{x:32.9336643046898,y: 24.7034673341325}
,
{x:32.9336035780811,y: 24.7022569339499}
,
{x:32.9332700520966,y: 24.7014539007155}
,
{x:32.9331261203406,y: 24.699366404057}
,
{x:32.9331740413896,y: 24.6981072087208}
,
{x:32.9330425298376,y: 24.6962038033159}
,
{x:32.9328816564863,y: 24.6951713762225}
,
{x:32.9324829967971,y: 24.6948762385797}
,
{x:32.9324790448901,y: 24.6948792650447}
,
{x:32.9312403744706,y: 24.6960125789165}
,
{x:32.9299341488992,y: 24.6972734383093}
,
{x:32.9291093763119,y: 24.6979619312135}
,
{x:32.9286008374806,y: 24.699453654554}
,
{x:32.9280629416164,y: 24.7003050834408}
,
{x:32.9270956955957,y: 24.701677422276}
,
{x:32.9265874117721,y: 24.7022552109768}
,
{x:32.9264644956437,y: 24.702357145296}
,
{x:32.9265047402766,y: 24.7036026711182}
,
{x:32.9264001458461,y: 24.7048232863745}
,
{x:32.9265088642728,y: 24.7053790555104}
,
{x:32.9267074269958,y: 24.7065028195954}
,
{x:32.9270006293858,y: 24.7077916825406}
,
{x:32.9272439366982,y: 24.7087696218084}
,
{x:32.9276519341097,y: 24.7094668484348}
,
{x:32.9277083692421,y: 24.7104036495674}
,
{x:32.9277932630238,y: 24.7115708190394}
,
{x:32.9279545812083,y: 24.7125815875923}
,
{x:32.9280991306352,y: 24.7137466496527}
,
{x:32.9282158175012,y: 24.7139847615695}
,
{x:32.9282224468774,y: 24.7139982902214}
,
{x:32.9284218853936,y: 24.7139983856148}
,
{x:32.9284981695762,y: 24.7134605576316}
,
{x:32.9284479032918,y: 24.7123777969722}
,
{x:32.9285239731286,y: 24.7117848949232}
,
{x:32.9283726871458,y: 24.7108541728527}
,
{x:32.9285537833565,y: 24.709780619859}
,
{x:32.9287818872305,y: 24.7094508051419}
,
{x:32.9287442094019,y: 24.7089843854777}
,
{x:32.9285356418066,y: 24.7084489855661}
,
{x:32.9282801103432,y: 24.7075290353529}
,
{x:32.9282376228917,y: 24.7072527274795}
,
{x:32.9280927914129,y: 24.706795613638}
,
{x:32.9277183025548,y: 24.7062421190385}
,
{x:32.9274540212697,y: 24.7054606274182}
,
{x:32.9273503854301,y: 24.7042788102001}
,
{x:32.9274641130945,y: 24.7033961577717}
,
{x:32.9276172633697,y: 24.7029847241512}
,
{x:32.9280420539172,y: 24.7027989864893}
,
{x:32.9283541767998,y: 24.7026626723457}
]}
,
{points:[
{x:32.9208162904096,y: 24.7770510958558}
,
{x:32.9211007337113,y: 24.776762878129}
,
{x:32.9211325033097,y: 24.7764745237737}
,
{x:32.9214090305648,y: 24.7762151374302}
,
{x:32.9218436284335,y: 24.7757179295297}
,
{x:32.9218674454671,y: 24.7755160821795}
,
{x:32.921820257919,y: 24.7752204768541}
,
{x:32.9217019007775,y: 24.7750906467883}
,
{x:32.9213704148419,y: 24.7748669826574}
,
{x:32.9212442093343,y: 24.7746650551688}
,
{x:32.9213313367462,y: 24.7742397542994}
,
{x:32.9214577034765,y: 24.7741893572256}
,
{x:32.92149725726,y: 24.7740740297348}
,
{x:32.9216422933842,y: 24.7740741070174}
,
{x:32.9216551740979,y: 24.7740741138741}
,
{x:32.921734082428,y: 24.7741534575602}
,
{x:32.9219235151274,y: 24.7742616979279}
,
{x:32.92201818807,y: 24.774384305546}
,
{x:32.9220178169056,y: 24.7749682571044}
,
{x:32.9221498100616,y: 24.7750571658027}
,
{x:32.9221677753913,y: 24.775069266495}
,
{x:32.9224019272746,y: 24.7751094803726}
,
{x:32.9224204185784,y: 24.7751126556152}
,
{x:32.9224914224834,y: 24.7752064132983}
,
{x:32.9225814539933,y: 24.7753847876753}
,
{x:32.9225860557514,y: 24.7753939045483}
,
{x:32.9227992193589,y: 24.7754372722542}
,
{x:32.923019404471,y: 24.7755022490613}
,
{x:32.9230439499346,y: 24.7755094924108}
,
{x:32.9230912218574,y: 24.7756753311517}
,
{x:32.9232251463708,y: 24.7761656316033}
,
{x:32.923232784689,y: 24.776576564383}
,
{x:32.9233273705262,y: 24.7768433567888}
,
{x:32.9234225032297,y: 24.7769241024584}
,
{x:32.9234378569525,y: 24.7769371345763}
,
{x:32.9235957739165,y: 24.7769444264127}
,
{x:32.9237616492274,y: 24.7768507922234}
,
{x:32.923832848666,y: 24.7766345505647}
,
{x:32.9239832486008,y: 24.7760290493154}
,
{x:32.9242047915688,y: 24.7752938173891}
,
{x:32.9244817271986,y: 24.774356753472}
,
{x:32.9247346829685,y: 24.7738882799036}
,
{x:32.9253702091745,y: 24.7720204393668}
,
{x:32.9256821486737,y: 24.771578073405}
,
{x:32.9256098051734,y: 24.7712457393048}
,
{x:32.9257282454079,y: 24.7703896022804}
,
{x:32.9259241064736,y: 24.7698263034784}
,
{x:32.9263130772184,y: 24.7690316482456}
,
{x:32.9264592112858,y: 24.7687555662208}
,
{x:32.9266496500376,y: 24.7681170488986}
,
{x:32.9267888897632,y: 24.7669590631455}
,
{x:32.9268849341731,y: 24.7665356932772}
,
{x:32.9268709337876,y: 24.7660546717921}
,
{x:32.926724402225,y: 24.7652881894561}
,
{x:32.9266930012489,y: 24.762678173805}
,
{x:32.9266648601911,y: 24.761683714863}
,
{x:32.9265732876792,y: 24.7609765843913}
,
{x:32.9264634955015,y: 24.7611008245826}
,
{x:32.92645625828,y: 24.7600050096003}
,
{x:32.9265435953009,y: 24.7591904040133}
,
{x:32.9264488878304,y: 24.7591326821956}
,
{x:32.9264016034968,y: 24.758988472522}
,
{x:32.9262755544517,y: 24.7585342238894}
,
{x:32.9261178214468,y: 24.7582529823664}
,
{x:32.9260956663604,y: 24.758246901223}
,
{x:32.9258810081714,y: 24.758187979745}
,
{x:32.9256361715433,y: 24.7583320410094}
,
{x:32.9253991694607,y: 24.7585770369395}
,
{x:32.9252568456882,y: 24.7589230108933}
,
{x:32.9251066617201,y: 24.7592113053964}
,
{x:32.9249327290853,y: 24.759600518671}
,
{x:32.9246934707416,y: 24.7595097332306}
,
{x:32.9242055687899,y: 24.7598143448404}
,
{x:32.9237668779038,y: 24.7601598226289}
,
{x:32.9236155871289,y: 24.7604076879388}
,
{x:32.9235598404595,y: 24.7607146888924}
,
{x:32.9236232751192,y: 24.7609424807659}
,
{x:32.9236149166569,y: 24.7615616772765}
,
{x:32.923503767919,y: 24.7617511736746}
,
{x:32.9230790711086,y: 24.7632133217508}
,
{x:32.9226935299506,y: 24.7642110825424}
,
{x:32.9224545584024,y: 24.7646291166184}
,
{x:32.9222831927447,y: 24.764972960526}
,
{x:32.9219351934721,y: 24.7661768023774}
,
{x:32.9217505487976,y: 24.766780370422}
,
{x:32.921609528302,y: 24.7671408129537}
,
{x:32.921316758495,y: 24.7675349452007}
,
{x:32.920938898736,y: 24.7683924405507}
,
{x:32.92083137408,y: 24.7686768984577}
,
{x:32.9206746268033,y: 24.7689764679615}
,
{x:32.9205160433852,y: 24.7699160822216}
,
{x:32.9200688038563,y: 24.7730658036102}
,
{x:32.9198469408266,y: 24.7735897941973}
,
{x:32.9200464679148,y: 24.773260560654}
,
{x:32.9200458813367,y: 24.7741610876857}
,
{x:32.920078831211,y: 24.7746164290312}
,
{x:32.919923076022,y: 24.7755472260004}
,
{x:32.9198538359187,y: 24.7757240684698}
,
{x:32.9197273632645,y: 24.7759330683902}
,
{x:32.9196402858313,y: 24.7762718568285}
,
{x:32.9196717142529,y: 24.7765097808206}
,
{x:32.9197820835578,y: 24.7767765840627}
,
{x:32.9199247029633,y: 24.7769591141622}
,
{x:32.9199398731204,y: 24.7769785290011}
,
{x:32.920145241427,y: 24.7768705017251}
,
{x:32.9203347564177,y: 24.776856185831}
,
{x:32.9204676826221,y: 24.7768818110377}
,
{x:32.9204847625125,y: 24.7768851040672}
,
{x:32.9206224517679,y: 24.7770374660924}
,
{x:32.9206346800874,y: 24.7770509980522}
,
{x:32.9208162904096,y: 24.7770510958558}
]}
,
{points:[
{x:32.9265952911567,y: 24.7755382600645}
,
{x:32.9264970013818,y: 24.7755278555926}
,
{x:32.926376944919,y: 24.7757548873527}
,
{x:32.9262923208249,y: 24.7761482014633}
,
{x:32.9261100128348,y: 24.7764887476701}
,
{x:32.9259321486701,y: 24.7768252416978}
,
{x:32.9257454253232,y: 24.777121178403}
,
{x:32.9256874664148,y: 24.7774820631026}
,
{x:32.9257114324813,y: 24.7775991198495}
,
{x:32.9257140371901,y: 24.7776118436441}
,
{x:32.9258339567799,y: 24.7776159592647}
,
{x:32.9260383567022,y: 24.7774700747909}
,
{x:32.9261850208485,y: 24.7773160499914}
,
{x:32.92632727493,y: 24.777109304969}
,
{x:32.9264740550811,y: 24.7767606305983}
,
{x:32.9265941560645,y: 24.7764606037288}
,
{x:32.9266341755091,y: 24.7763835753447}
,
{x:32.9267275635725,y: 24.7761889707636}
,
{x:32.9267322886059,y: 24.7757145131543}
,
{x:32.926679044876,y: 24.7756252711848}
,
{x:32.9266124728043,y: 24.775540078528}
,
{x:32.9265952911567,y: 24.7755382600645}
]}
,
{points:[
{x:33.4744317904032,y: 25.1187186066261}
,
{x:33.4762399603633,y: 24.7927394096184}
,
{x:33.1346860097658,y: 24.7238083860264}
,
{x:33.1337075660594,y: 24.7249478196243}
,
{x:33.1322961369637,y: 24.7266068136277}
,
{x:33.1161169438074,y: 24.7157146510795}
,
{x:33.109563562643,y: 24.7131034854894}
,
{x:33.1087693479163,y: 24.7023487564745}
,
{x:33.106693981545,y: 24.6941627135772}
,
{x:33.0968800749698,y: 24.6898925300026}
,
{x:33.0941770161559,y: 24.6840148716203}
,
{x:33.0904638781902,y: 24.6776673172273}
,
{x:33.0844741475306,y: 24.6783058498821}
,
{x:33.0821740392933,y: 24.6768404050772}
,
{x:33.075702739352,y: 24.6730690387762}
,
{x:33.0678502289971,y: 24.6702305644103}
,
{x:33.0678778235264,y: 24.6701018939693}
,
{x:33.0676729430859,y: 24.6702405099429}
,
{x:33.0586613121379,y: 24.6727883232178}
,
{x:33.053357682183,y: 24.6784566526708}
,
{x:33.0372443455072,y: 24.6843925993545}
,
{x:33.0358600835625,y: 24.684605729329}
,
{x:33.0125033881747,y: 24.6882384084197}
,
{x:33.0111204496743,y: 24.6869711322682}
,
{x:33.0120572050733,y: 24.686113428667}
,
{x:33.0178364853864,y: 24.6808097446782}
,
{x:33.0201606719374,y: 24.6744716960843}
,
{x:33.0231962991369,y: 24.6629720677839}
,
{x:32.9605614512104,y: 24.6603400305634}
,
{x:32.9604623109301,y: 24.6602745037656}
,
{x:32.9605543123669,y: 24.6599903042435}
,
{x:32.9606681731848,y: 24.6596385982667}
,
{x:32.9560560149134,y: 24.6596371781282}
,
{x:32.9417800888342,y: 24.6593874709673}
,
{x:32.9412779989811,y: 24.6573080127737}
,
{x:32.9384711597578,y: 24.6532535726058}
,
{x:32.9378392944048,y: 24.6522297487431}
,
{x:32.9388347595213,y: 24.6404924282935}
,
{x:32.9384869091901,y: 24.635777661254}
,
{x:32.9383017721416,y: 24.6332681674865}
,
{x:32.9380514065238,y: 24.6298743464617}
,
{x:32.9380051982889,y: 24.6286759403527}
,
{x:32.9379470308886,y: 24.6271673497766}
,
{x:32.9379076205847,y: 24.6261451893898}
,
{x:32.9411145045592,y: 24.622950161812}
,
{x:32.9431545196642,y: 24.6222850693659}
,
{x:32.9435619447106,y: 24.6220701657095}
,
{x:32.9436827836863,y: 24.6220064267634}
,
{x:32.9436863542461,y: 24.6143651023874}
,
{x:32.9441469037162,y: 24.6093986547591}
,
{x:32.944118149104,y: 24.6062819534253}
,
{x:32.9441197110332,y: 24.60619719906}
,
{x:32.9438976762607,y: 24.606201626789}
,
{x:32.9393736708041,y: 24.6063005711304}
,
{x:32.9328718706822,y: 24.6063002152629}
,
{x:32.9331050412975,y: 24.6048806206539}
,
{x:32.9354501652893,y: 24.6020230420472}
,
{x:32.9367406454081,y: 24.6002145715308}
,
{x:32.937397574752,y: 24.5974429948885}
,
{x:32.9345156041636,y: 24.5969499875398}
,
{x:32.93326407273,y: 24.5950589825101}
,
{x:32.9332559184796,y: 24.5950449301483}
,
{x:32.9292936413789,y: 24.5969322552563}
,
{x:32.9275278452337,y: 24.59830230506}
,
{x:32.925976163456,y: 24.5986046797086}
,
{x:32.9246647992723,y: 24.5992033259051}
,
{x:32.9233531860633,y: 24.6001765357055}
,
{x:32.9224523939545,y: 24.5993519910048}
,
{x:32.9244276345132,y: 24.5951939677992}
,
{x:32.9234162282738,y: 24.5906299886102}
,
{x:32.9241358552543,y: 24.5894738974141}
,
{x:32.9265408752368,y: 24.5855946214583}
,
{x:32.9319380959904,y: 24.5809444424616}
,
{x:32.9401314246661,y: 24.5760437300169}
,
{x:32.9424906006642,y: 24.573074325624}
,
{x:32.9424986784935,y: 24.5730641582669}
,
{x:32.9393489452679,y: 24.5694227771806}
,
{x:32.9385081078451,y: 24.5616611034652}
,
{x:32.940557236675,y: 24.5613499661831}
,
{x:32.9407957223015,y: 24.5607513089639}
,
{x:32.940697743204,y: 24.5597066463742}
,
{x:32.9391147753021,y: 24.5587456227167}
,
{x:32.9405068811319,y: 24.5579150952606}
,
{x:32.9422270858334,y: 24.5569339683061}
,
{x:32.9432271499957,y: 24.5576757041022}
,
{x:32.9458091367332,y: 24.5596788033102}
,
{x:32.9476017477938,y: 24.5581776173748}
,
{x:32.9492747525844,y: 24.5566735767016}
,
{x:32.9492511913614,y: 24.556096177144}
,
{x:32.9503405427627,y: 24.5556869162587}
,
{x:32.9530970184699,y: 24.5536961619533}
,
{x:32.9556286742089,y: 24.5569247945524}
,
{x:32.9558979203394,y: 24.5576432642052}
,
{x:32.9502287933394,y: 24.5606069318754}
,
{x:32.9504202988012,y: 24.5647309886811}
,
{x:32.9506233484707,y: 24.5659827472189}
,
{x:32.9505193712573,y: 24.566142681723}
,
{x:32.9511128190813,y: 24.5739328678197}
,
{x:32.9514699099922,y: 24.5834933494642}
,
{x:32.9514910578509,y: 24.5851231999027}
,
{x:32.9513813954569,y: 24.5885079842458}
,
{x:32.9512894249695,y: 24.5916466779756}
,
{x:32.9512884748212,y: 24.5916793122524}
,
{x:32.9555587008472,y: 24.5917584344959}
,
{x:32.9604359214414,y: 24.591764310316}
,
{x:32.9648725585428,y: 24.5923703382067}
,
{x:32.9696677047299,y: 24.5965211110189}
,
{x:32.9709015035753,y: 24.597491603433}
,
{x:32.9761630476761,y: 24.597507636907}
,
{x:32.9781000508768,y: 24.5984774002783}
,
{x:32.9790676339984,y: 24.5984768881389}
,
{x:32.9809999810352,y: 24.5969387418474}
,
{x:32.9829352836362,y: 24.597260124789}
,
{x:32.9870511970739,y: 24.5955041473729}
,
{x:32.9942398415528,y: 24.5925050631465}
,
{x:32.9955129978101,y: 24.5925020149665}
,
{x:32.9961840970488,y: 24.5925002862124}
,
{x:33.0032537726569,y: 24.5973931476321}
,
{x:33.0067005260133,y: 24.5990804827708}
,
{x:33.0089985932032,y: 24.6000438497836}
,
{x:33.0132524135669,y: 24.5953333613966}
,
{x:33.0166160583005,y: 24.5931476784054}
,
{x:33.0201566050147,y: 24.5908000174323}
,
{x:33.0196247650771,y: 24.5858627378405}
,
{x:33.0216961584709,y: 24.5833749272382}
,
{x:33.0241751774872,y: 24.5798105646358}
,
{x:33.0255275117658,y: 24.5776112097045}
,
{x:33.025802652298,y: 24.5771637267724}
,
{x:33.0253632439647,y: 24.5717040936168}
,
{x:33.0312405804262,y: 24.5677967902442}
,
{x:33.0315001109069,y: 24.5676850337327}
,
{x:33.0307374905092,y: 24.5657208148313}
,
{x:33.03110249906,y: 24.5650528230852}
,
{x:33.0313453926875,y: 24.5627150509625}
,
{x:33.0314664309926,y: 24.5598207000319}
,
{x:33.0301699980832,y: 24.5548855435074}
,
{x:33.0283628763424,y: 24.5496405339186}
,
{x:33.0283557802747,y: 24.5496447672136}
,
{x:33.0282051630951,y: 24.5492510829651}
,
{x:33.0217712838712,y: 24.5319425026369}
,
{x:33.0167113080963,y: 24.5150152866386}
,
{x:33.0146217249347,y: 24.510410519088}
,
{x:33.0188603622799,y: 24.5074104296653}
,
{x:33.0216629123631,y: 24.5055374422646}
,
{x:33.0217041640538,y: 24.5055098440247}
,
{x:33.0198673658199,y: 24.5028410441463}
,
{x:33.0195662463001,y: 24.5024047921136}
,
{x:33.0213938958727,y: 24.4987199830509}
,
{x:33.0253231235738,y: 24.4901599144432}
,
{x:33.0236314825865,y: 24.4900235752351}
,
{x:33.0211165363255,y: 24.490045622705}
,
{x:33.0197692817867,y: 24.4812562503028}
,
{x:33.0146991493817,y: 24.4813984473001}
,
{x:33.0146990647463,y: 24.4805635363906}
,
{x:33.0144853630028,y: 24.4805290414796}
,
{x:33.0144383124028,y: 24.4805362220035}
,
{x:33.0144506972708,y: 24.4803432330293}
,
{x:33.0143593202645,y: 24.4788404005011}
,
{x:33.0143709280354,y: 24.4650504147615}
,
{x:33.0139739466547,y: 24.4536992446627}
,
{x:33.0160307088039,y: 24.4459360173353}
,
{x:33.0182688220556,y: 24.4410295922151}
,
{x:33.0178957590495,y: 24.4404320879088}
,
{x:33.0195165001217,y: 24.4361274497718}
,
{x:33.017570438027,y: 24.4321200708915}
,
{x:33.0109024703084,y: 24.4248746697808}
,
{x:33.0082854270177,y: 24.4235191317602}
,
{x:33.0096737819095,y: 24.4223825476477}
,
{x:33.0044540899797,y: 24.4190363739803}
,
{x:32.9996374836326,y: 24.4155770252913}
,
{x:32.9915051457668,y: 24.4118534008961}
,
{x:32.9912400415724,y: 24.4108011377252}
,
{x:32.9932745755944,y: 24.4036086641156}
,
{x:32.9838945031547,y: 24.3990848839944}
,
{x:32.9780047384995,y: 24.3978223683787}
,
{x:32.9748664177674,y: 24.3975241633683}
,
{x:32.9675682211924,y: 24.3926711871733}
,
{x:32.9609818386934,y: 24.3937069668391}
,
{x:32.9608209511089,y: 24.3937305937064}
,
{x:32.9619806302833,y: 24.3984337624069}
,
{x:32.9626768345569,y: 24.3989872970705}
,
{x:32.9655672041403,y: 24.3979003519156}
,
{x:32.9674856803134,y: 24.398542634729}
,
{x:32.969041600144,y: 24.3993447203347}
,
{x:32.976368405672,y: 24.4004383282386}
,
{x:32.9754489293497,y: 24.4024385222602}
,
{x:32.9735058473554,y: 24.4098672789131}
,
{x:32.9721671016111,y: 24.4137310674117}
,
{x:32.9710266254581,y: 24.4153527544686}
,
{x:32.969352779879,y: 24.4174475178025}
,
{x:32.9669048925164,y: 24.4260155797427}
,
{x:32.9649578473013,y: 24.4353956880699}
,
{x:32.9629501075643,y: 24.4358901373565}
,
{x:32.9595826155141,y: 24.4382166069919}
,
{x:32.9571063666994,y: 24.4401584991403}
,
{x:32.9579018458352,y: 24.4408872059921}
,
{x:32.9606423957697,y: 24.4418592729383}
,
{x:32.9621718799804,y: 24.4435547558251}
,
{x:32.9636086009514,y: 24.4450867154261}
,
{x:32.9658179696213,y: 24.4489724433853}
,
{x:32.9657831848384,y: 24.4490967844592}
,
{x:32.9656872812147,y: 24.4488569960374}
,
{x:32.9584391895548,y: 24.453530144618}
,
{x:32.9582365660991,y: 24.4535968506956}
,
{x:32.9540542949719,y: 24.4536955182482}
,
{x:32.945722201565,y: 24.453785747949}
,
{x:32.9453265724529,y: 24.4486255787353}
,
{x:32.9424744003388,y: 24.4499600328403}
,
{x:32.9396220501061,y: 24.4515372567633}
,
{x:32.9374997929997,y: 24.4517792015638}
,
{x:32.9324240771026,y: 24.4501123486301}
,
{x:32.9321176631925,y: 24.4499634471808}
,
{x:32.9292920218524,y: 24.449729173774}
,
{x:32.9281284518618,y: 24.4512554572477}
,
{x:32.9275140872686,y: 24.4514954044511}
,
{x:32.9274944069544,y: 24.4515598743304}
,
{x:32.9274484430174,y: 24.451710440422}
,
{x:32.9274806553847,y: 24.4523854765016}
,
{x:32.9271393490264,y: 24.4533803732282}
,
{x:32.926678424472,y: 24.4541702679722}
,
{x:32.9259995670418,y: 24.4552878712202}
,
{x:32.9254368781261,y: 24.4564950986046}
,
{x:32.9256645667922,y: 24.4567663474892}
,
{x:32.9257308689091,y: 24.4571520902171}
,
{x:32.9257326850214,y: 24.45716265465}
,
{x:32.925718178649,y: 24.4571709439482}
,
{x:32.9251856532206,y: 24.4574752277054}
,
{x:32.9244332220766,y: 24.4583299636256}
,
{x:32.921765749381,y: 24.4608522187756}
,
{x:32.9215496695509,y: 24.4613088713053}
,
{x:32.9214006893959,y: 24.4616237165181}
,
{x:32.9205574361376,y: 24.4618944025}
,
{x:32.9207394578765,y: 24.4623116294567}
,
{x:32.9202838834556,y: 24.4620819643362}
,
{x:32.9201021334365,y: 24.4621175104617}
,
{x:32.9199648391812,y: 24.4621443619852}
,
{x:32.9179820137698,y: 24.4628106891301}
,
{x:32.9181225892719,y: 24.4632233063734}
,
{x:32.9183231497629,y: 24.463811988507}
,
{x:32.9183094198579,y: 24.4638320693402}
,
{x:32.9182091087511,y: 24.4639787780145}
,
{x:32.9178218227726,y: 24.4638534252626}
,
{x:32.9173712101452,y: 24.4633460744509}
,
{x:32.9170248979402,y: 24.4629561532969}
,
{x:32.9166147328349,y: 24.4629767808286}
,
{x:32.9158626196242,y: 24.4632266346336}
,
{x:32.9143130983837,y: 24.4633091761699}
,
{x:32.9134473506369,y: 24.463120966735}
,
{x:32.9129229477082,y: 24.4635795034448}
,
{x:32.911874778088,y: 24.4635788864262}
,
{x:32.9095686210679,y: 24.4638878913566}
,
{x:32.9095503487271,y: 24.4638903395972}
,
{x:32.9095214665313,y: 24.4638878627079}
,
{x:32.9085705964573,y: 24.4638063151168}
,
{x:32.9079098083929,y: 24.4637850518816}
,
{x:32.9077666148357,y: 24.4638120765222}
,
{x:32.9072489120412,y: 24.4639097799952}
,
{x:32.9068160333262,y: 24.4638260837151}
,
{x:32.9066362783388,y: 24.4635725796416}
,
{x:32.9065201233391,y: 24.4634087687462}
,
{x:32.9057683499884,y: 24.4631788737925}
,
{x:32.9029696824947,y: 24.4631353878309}
,
{x:32.9024678873666,y: 24.4631681754734}
,
{x:32.90105567952,y: 24.4632593092612}
,
{x:32.9000685936142,y: 24.4633220059821}
,
{x:32.8965041315348,y: 24.4633691975997}
,
{x:32.8942318468812,y: 24.4634010606622}
,
{x:32.8918522322889,y: 24.4637881159969}
,
{x:32.8900848037968,y: 24.4639673635775}
,
{x:32.8886716556412,y: 24.4644043034163}
,
{x:32.8866430703704,y: 24.4650493298351}
,
{x:32.8847059379289,y: 24.4653398401743}
,
{x:32.8836580603796,y: 24.4650053246929}
,
{x:32.8828835691607,y: 24.4647335871008}
,
{x:32.8822913140538,y: 24.464524557201}
,
{x:32.8808786484259,y: 24.4644191570506}
,
{x:32.8799215940977,y: 24.4644392481401}
,
{x:32.8786908403848,y: 24.4647302465895}
,
{x:32.8773001249196,y: 24.4654799452116}
,
{x:32.8772885508404,y: 24.4654611641922}
,
{x:32.8767373747814,y: 24.465782836649}
,
{x:32.8758171125834,y: 24.4670158179687}
,
{x:32.8748661268747,y: 24.4683188656159}
,
{x:32.873760857034,y: 24.4707013008467}
,
{x:32.8733147815418,y: 24.4725375147676}
,
{x:32.8728999402219,y: 24.4737709030003}
,
{x:32.8726689131862,y: 24.4750044472548}
,
{x:32.8722846806285,y: 24.4762518793058}
,
{x:32.8720989836596,y: 24.4780883101216}
,
{x:32.8719434469522,y: 24.480387418647}
,
{x:32.8716401710236,y: 24.4830125163849}
,
{x:32.8718358145877,y: 24.4831783979583}
,
{x:32.8722566687157,y: 24.4829036070144}
,
{x:32.8741180554374,y: 24.4810902511849}
,
{x:32.8745933152822,y: 24.4807261370689}
,
{x:32.8751908592654,y: 24.480628498218}
,
{x:32.8757426678876,y: 24.4803065031203}
,
{x:32.8766016835663,y: 24.4791435738083}
,
{x:32.8777058936218,y: 24.4778686815717}
,
{x:32.8788099322518,y: 24.476747998169}
,
{x:32.8792853378875,y: 24.4762016119267}
,
{x:32.8796685454564,y: 24.4759495647739}
,
{x:32.879867485422,y: 24.476160020805}
,
{x:32.8795300577604,y: 24.4765943625075}
,
{x:32.8788857665445,y: 24.4775331669997}
,
{x:32.8783949409088,y: 24.4781776778593}
,
{x:32.8771225277622,y: 24.4791440024978}
,
{x:32.8766159121313,y: 24.4802511461753}
,
{x:32.8760638008967,y: 24.4808815795938}
,
{x:32.8757725280882,y: 24.4810916339979}
,
{x:32.8755273099408,y: 24.481203588579}
,
{x:32.8754040450301,y: 24.481918494214}
,
{x:32.874974573653,y: 24.4824508861916}
,
{x:32.8737336729305,y: 24.4827272483921}
,
{x:32.8726036470046,y: 24.4838002498897}
,
{x:32.8721078596292,y: 24.484006085037}
,
{x:32.871954860593,y: 24.4840535509626}
,
{x:32.8717987455823,y: 24.4841019788974}
,
{x:32.8720682640643,y: 24.4870693951665}
,
{x:32.8721546542476,y: 24.4882465631805}
,
{x:32.872178860249,y: 24.4901325797125}
,
{x:32.8722678680517,y: 24.4912484258821}
,
{x:32.87238480514,y: 24.492344887601}
,
{x:32.8728243006747,y: 24.4945356686698}
,
{x:32.8731677306684,y: 24.4960276579172}
,
{x:32.8741879271708,y: 24.498377829612}
,
{x:32.8742746668915,y: 24.4985776000471}
,
{x:32.8744281657922,y: 24.4993424773663}
,
{x:32.8752638259839,y: 24.4997051677703}
,
{x:32.8756901250646,y: 24.5008463234882}
,
{x:32.8764854578696,y: 24.5023614218212}
,
{x:32.8770666152565,y: 24.5049247337276}
,
{x:32.8775493807895,y: 24.5059329012229}
,
{x:32.8787721094985,y: 24.5091303800434}
,
{x:32.8799040102717,y: 24.5112202189285}
,
{x:32.8811276650825,y: 24.5135484557585}
,
{x:32.8810960793104,y: 24.5135559353477}
,
{x:32.8811032939934,y: 24.5135584174999}
,
{x:32.8814089982616,y: 24.5143718006826}
,
{x:32.8823416397708,y: 24.5166156802865}
,
{x:32.8828612814673,y: 24.518088151059}
,
{x:32.8833813096697,y: 24.5191540500902}
,
{x:32.8839779292891,y: 24.5202620645861}
,
{x:32.8852787743661,y: 24.5221416943707}
,
{x:32.8861661723396,y: 24.5237125701648}
,
{x:32.8871915525482,y: 24.5252414830452}
,
{x:32.8887553540111,y: 24.527934632234}
,
{x:32.8905392859665,y: 24.5308603068156}
,
{x:32.8917045590535,y: 24.5325875190765}
,
{x:32.8934078376931,y: 24.5352892875048}
,
{x:32.895097926975,y: 24.5376504487648}
,
{x:32.8963847110216,y: 24.538442006447}
,
{x:32.8974324928709,y: 24.5391076485675}
,
{x:32.8980098051744,y: 24.5399341909838}
,
{x:32.8986113827301,y: 24.5412901898302}
,
{x:32.899437126513,y: 24.5424022204512}
,
{x:32.9011370992524,y: 24.544043641156}
,
{x:32.9024079160939,y: 24.5457408444754}
,
{x:32.9041688775486,y: 24.5479150158313}
,
{x:32.9054063325601,y: 24.5493344124896}
,
{x:32.9058687556634,y: 24.5498648141388}
,
{x:32.9072547710423,y: 24.5514522267472}
,
{x:32.9075063628739,y: 24.5521634773074}
,
{x:32.9077935016863,y: 24.5537100018099}
,
{x:32.9086331778805,y: 24.5575601644752}
,
{x:32.9089496928646,y: 24.5592875540288}
,
{x:32.9095507044518,y: 24.5606125463051}
,
{x:32.9099512021349,y: 24.5619215796379}
,
{x:32.9102935199248,y: 24.5633471868207}
,
{x:32.9104963843763,y: 24.5652972457503}
,
{x:32.9109371556711,y: 24.5668581496024}
,
{x:32.9110594174495,y: 24.5674733402064}
,
{x:32.9119250152785,y: 24.5706769741401}
,
{x:32.9121996561682,y: 24.5725137050113}
,
{x:32.9123978502729,y: 24.5740699984887}
,
{x:32.9122740824428,y: 24.5756681602607}
,
{x:32.9120890873644,y: 24.5771260888368}
,
{x:32.911720168454,y: 24.5785138109539}
,
{x:32.9108295269673,y: 24.5805461210864}
,
{x:32.910506699072,y: 24.5817656311906}
,
{x:32.9104597668357,y: 24.5830694250971}
,
{x:32.9102293222049,y: 24.5837282066431}
,
{x:32.9103814340772,y: 24.5853966286901}
,
{x:32.9107328534187,y: 24.5870791896776}
,
{x:32.9110846138012,y: 24.5882991032074}
,
{x:32.9110611675795,y: 24.5883034071914}
,
{x:32.9114109967479,y: 24.5892791109466}
,
{x:32.9123322538596,y: 24.5894890100766}
,
{x:32.9122132418383,y: 24.5900516929498}
,
{x:32.912677995947,y: 24.5908386617185}
,
{x:32.9132300219054,y: 24.5920520891353}
,
{x:32.9142375581257,y: 24.5936896983338}
,
{x:32.9153732081227,y: 24.5959669555765}
,
{x:32.9161954169062,y: 24.5960650877911}
,
{x:32.9165468622342,y: 24.5978457733524}
,
{x:32.9170977613339,y: 24.5994723565043}
,
{x:32.9179249784995,y: 24.600664486359}
,
{x:32.9190122263665,y: 24.602852145071}
,
{x:32.9195328359296,y: 24.6039880176211}
,
{x:32.92005263289,y: 24.6063716267045}
,
{x:32.9206803887137,y: 24.6078440216776}
,
{x:32.9218237549914,y: 24.6107660904485}
,
{x:32.9226728580168,y: 24.6129058136324}
,
{x:32.9233809233381,y: 24.6145842920042}
,
{x:32.9248527794672,y: 24.6169028530244}
,
{x:32.9262842086941,y: 24.6185261883942}
,
{x:32.927548950356,y: 24.6202604061722}
,
{x:32.9283108079115,y: 24.6217770603822}
,
{x:32.9297889590711,y: 24.6234943412971}
,
{x:32.9310862534797,y: 24.6252856575358}
,
{x:32.9317647470376,y: 24.6272935388356}
,
{x:32.9323469123533,y: 24.6284434102354}
,
{x:32.9324076356243,y: 24.6295649989427}
,
{x:32.932928320603,y: 24.6309812097507}
,
{x:32.9332034910109,y: 24.6326216173078}
,
{x:32.9334786916322,y: 24.6342199660057}
,
{x:32.9335850415993,y: 24.6360705874553}
,
{x:32.9338908625373,y: 24.6377951245266}
,
{x:32.9343961835524,y: 24.6393515163125}
,
{x:32.934742534322,y: 24.640977060185}
,
{x:32.9338846304493,y: 24.6426065493079}
,
{x:32.9333061170819,y: 24.6456694579079}
,
{x:32.9335428021607,y: 24.6475337861533}
,
{x:32.9334651912716,y: 24.6490223965714}
,
{x:32.9337406046447,y: 24.6504207418661}
,
{x:32.9341564018662,y: 24.6517757058689}
,
{x:32.9344186866408,y: 24.6525367013744}
,
{x:32.9345355444842,y: 24.6532627124578}
,
{x:32.9345599547491,y: 24.654002763353}
,
{x:32.9345733202194,y: 24.654600340024}
,
{x:32.9347841147191,y: 24.6558235003299}
,
{x:32.9349739757199,y: 24.6578134037326}
,
{x:32.9350818117384,y: 24.6592514609693}
,
{x:32.9351281255652,y: 24.6595279660513}
,
{x:32.935117134979,y: 24.659528817565}
,
{x:32.9350250891935,y: 24.6599054018994}
,
{x:32.9348707807736,y: 24.6607464812061}
,
{x:32.9349369987621,y: 24.6616221702179}
,
{x:32.9351993907479,y: 24.6625185978563}
,
{x:32.9354920103629,y: 24.6637202062262}
,
{x:32.9355012005733,y: 24.6646259936154}
,
{x:32.9355706460088,y: 24.6668459991914}
,
{x:32.9351894702441,y: 24.6690860303879}
,
{x:32.9351981885386,y: 24.6706892152292}
,
{x:32.9351170912726,y: 24.6720600356651}
,
{x:32.9351028589512,y: 24.672300003534}
,
{x:32.93497359024,y: 24.6734409909807}
,
{x:32.9346003179076,y: 24.6751371222348}
,
{x:32.934401395434,y: 24.6761274176997}
,
{x:32.9340289433417,y: 24.6770723485504}
,
{x:32.9337845488045,y: 24.6778424418576}
,
{x:32.9334547973161,y: 24.6790216011264}
,
{x:32.9331679008032,y: 24.6797275154423}
,
{x:32.9331535813395,y: 24.6804381855217}
,
{x:32.9333454389482,y: 24.6816346079095}
,
{x:32.9333042627723,y: 24.6830187346502}
,
{x:32.9335760588394,y: 24.6840504768157}
,
{x:32.9338794908192,y: 24.6852690176107}
,
{x:32.93407970237,y: 24.6868490800257}
,
{x:32.9343327975666,y: 24.6893640885765}
,
{x:32.9347685104386,y: 24.6906172983743}
,
{x:32.9351472953324,y: 24.6917055719386}
,
{x:32.9355633237969,y: 24.6926090096808}
,
{x:32.9356491300707,y: 24.6936197229112}
,
{x:32.9361423510662,y: 24.6963039116542}
,
{x:32.9371754512515,y: 24.6985972727033}
,
{x:32.9374552244995,y: 24.700501739863}
,
{x:32.9376308234516,y: 24.7024180611081}
,
{x:32.9375818562894,y: 24.70460511625}
,
{x:32.9372224611889,y: 24.7077656176362}
,
{x:32.9373841218653,y: 24.7075558649985}
,
{x:32.9366130274144,y: 24.7085763874999}
,
{x:32.9358954265757,y: 24.7092769224491}
,
{x:32.9348014207392,y: 24.7102131419909}
,
{x:32.9334237623154,y: 24.7116655632802}
,
{x:32.932088735961,y: 24.7127152782576}
,
{x:32.9313515468689,y: 24.7139204374873}
,
{x:32.9310291194109,y: 24.714615872806}
,
{x:32.9307751088903,y: 24.7166945426785}
,
{x:32.9305329132943,y: 24.7176219879823}
,
{x:32.9302097107003,y: 24.7192413851803}
,
{x:32.9300250932086,y: 24.7200191250692}
,
{x:32.9294255098064,y: 24.7217741377303}
,
{x:32.9289372050318,y: 24.7231195863497}
,
{x:32.928929734816,y: 24.7231401667347}
,
{x:32.9285492658332,y: 24.7241594344958}
,
{x:32.928513223313,y: 24.7249903103628}
,
{x:32.9283316256367,y: 24.72604261337}
,
{x:32.9283520632578,y: 24.726502395455}
,
{x:32.929291899499,y: 24.7274586132744}
,
{x:32.9294105395205,y: 24.7291726580119}
,
{x:32.929546635861,y: 24.7304124738804}
,
{x:32.9294498041599,y: 24.7319933637737}
,
{x:32.9291182603579,y: 24.732832454587}
,
{x:32.9292590938429,y: 24.7351377663496}
,
{x:32.929441434218,y: 24.7362063035906}
,
{x:32.9294593270074,y: 24.7369320418494}
,
{x:32.9295347023828,y: 24.7386906173833}
,
{x:32.9299173660719,y: 24.7409113121792}
,
{x:32.9299735558953,y: 24.7420185100343}
,
{x:32.9301778367877,y: 24.7436263996471}
,
{x:32.930198461766,y: 24.7447514064787}
,
{x:32.9298241206925,y: 24.7461493772315}
,
{x:32.9297372773706,y: 24.7476251402954}
,
{x:32.9289554969062,y: 24.752485772653}
,
{x:32.928747101161,y: 24.75375012468}
,
{x:32.9282521646155,y: 24.7557256546676}
,
{x:32.9279060574901,y: 24.7575746593587}
,
{x:32.9278135680367,y: 24.758215996165}
,
{x:32.9278593657313,y: 24.7586576253337}
,
{x:32.9282083451854,y: 24.7577208563067}
,
{x:32.9283909902611,y: 24.7578899813649}
,
{x:32.9286304425892,y: 24.7576290079785}
,
{x:32.928679272722,y: 24.7588885088206}
,
{x:32.9285869894456,y: 24.7592827550664}
,
{x:32.9286367267761,y: 24.7594422017018}
,
{x:32.9287298598988,y: 24.7595986335381}
,
{x:32.9288854653395,y: 24.7583385466581}
,
{x:32.9288889211632,y: 24.7583418321436}
,
{x:32.9289007436031,y: 24.7584995817718}
,
{x:32.9289231990461,y: 24.7587992276581}
,
{x:32.9288701448866,y: 24.7609283765588}
,
{x:32.9289910513447,y: 24.7609284351479}
,
{x:32.9287882143323,y: 24.7638993136603}
,
{x:32.9286796689393,y: 24.7653946215427}
,
{x:32.9287372812183,y: 24.7663090749012}
,
{x:32.9285288575449,y: 24.7669271454134}
,
{x:32.92831957007,y: 24.7674468650747}
,
{x:32.928145470014,y: 24.7681852679211}
,
{x:32.928040541619,y: 24.7694553668343}
,
{x:32.9277418944874,y: 24.7706823810053}
,
{x:32.927654239722,y: 24.7717200021784}
,
{x:32.9276089045484,y: 24.7724146904566}
,
{x:32.9275722946154,y: 24.7729770016992}
,
{x:32.9273281479343,y: 24.774807839751}
,
{x:32.9270351108341,y: 24.7768209316773}
,
{x:32.927337990197,y: 24.7763147817332}
,
{x:32.927013191311,y: 24.776531522535}
,
{x:32.9269837320037,y: 24.7765511809216}
,
{x:32.9267072055474,y: 24.7767876171354}
,
{x:32.9264391488429,y: 24.7773000618078}
,
{x:32.9260498337469,y: 24.7783723379014}
,
{x:32.9256001845332,y: 24.7792237791152}
,
{x:32.9254963846851,y: 24.779476072662}
,
{x:32.9251594653799,y: 24.7795863026974}
,
{x:32.9251247953737,y: 24.7797834305751}
,
{x:32.9247948516476,y: 24.7809935325255}
,
{x:32.9249646617194,y: 24.7810178383656}
,
{x:32.9251490493303,y: 24.7811522799507}
,
{x:32.9253391212652,y: 24.7814290799837}
,
{x:32.9254271650525,y: 24.781076071347}
,
{x:32.9254283484981,y: 24.781095544762}
,
{x:32.9253283607598,y: 24.781463524772}
,
{x:32.9250436535207,y: 24.7821005951104}
,
{x:32.9250264367755,y: 24.7821246890646}
,
{x:32.9244719640944,y: 24.7828875027354}
,
{x:32.9242690285557,y: 24.7832680940621}
,
{x:32.9240135614021,y: 24.7838514334696}
,
{x:32.9238299787036,y: 24.7841944482014}
,
{x:32.923838045906,y: 24.7846374081639}
,
{x:32.9238402209682,y: 24.7847138103397}
,
{x:32.9238560270538,y: 24.7852437317724}
,
{x:32.9236138936205,y: 24.7853694017258}
,
{x:32.9234623558351,y: 24.7854887948313}
,
{x:32.9231139462105,y: 24.7857556907311}
,
{x:32.9228073729393,y: 24.7862850426506}
,
{x:32.9226831502023,y: 24.7839974212002}
,
{x:32.9225532891422,y: 24.7844626155809}
,
{x:32.9223110401389,y: 24.7850775807088}
,
{x:32.9220945469937,y: 24.7859370194497}
,
{x:32.9217485000418,y: 24.7867648453347}
,
{x:32.9216999273838,y: 24.7870035206945}
,
{x:32.9215751956725,y: 24.7876164198515}
,
{x:32.921333046683,y: 24.7880578964998}
,
{x:32.9211054650413,y: 24.7885569941573}
,
{x:32.9210562363517,y: 24.7886649546755}
,
{x:32.9210546305681,y: 24.7886898351628}
,
{x:32.9209951601943,y: 24.7896112186885}
,
{x:32.920700676734,y: 24.7908254733627}
,
{x:32.9205188032516,y: 24.7915508692535}
,
{x:32.920216244767,y: 24.7918819095026}
,
{x:32.9198444587763,y: 24.7923942842644}
,
{x:32.9195873968631,y: 24.7935613587314}
,
{x:32.9194015170349,y: 24.794060059372}
,
{x:32.9193911154275,y: 24.7942563174771}
,
{x:32.9190771477351,y: 24.794567704191}
,
{x:32.9186393142288,y: 24.7951667408711}
,
{x:32.9185873388827,y: 24.7952591573295}
,
{x:32.9184546303872,y: 24.7954951710966}
,
{x:32.9181886766305,y: 24.7961845941351}
,
{x:32.918295551838,y: 24.7969800572191}
,
{x:32.9180815228979,y: 24.7977815099514}
,
{x:32.9178741092421,y: 24.7981605396523}
,
{x:32.9174313623337,y: 24.7985157485639}
,
{x:32.9173580334909,y: 24.798966216766}
,
{x:32.9172287165194,y: 24.7998826036419}
,
{x:32.9170397942108,y: 24.8006930264288}
,
{x:32.9166268632323,y: 24.801782811508}
,
{x:32.9163930799149,y: 24.8025633717648}
,
{x:32.9161418277955,y: 24.8036199252583}
,
{x:32.9158820393859,y: 24.8045187575214}
,
{x:32.9157428420785,y: 24.8059381194581}
,
{x:32.9156475392721,y: 24.806332353656}
,
{x:32.9151456053277,y: 24.8075701350416}
,
{x:32.9147303611289,y: 24.8083663592545}
,
{x:32.9142977559523,y: 24.8092729745952}
,
{x:32.9141992708051,y: 24.8101489005137}
,
{x:32.9134056363416,y: 24.8114203104863}
,
{x:32.9130101742781,y: 24.8124102465207}
,
{x:32.9127256057329,y: 24.8130466512639}
,
{x:32.9123016529284,y: 24.8139714448995}
,
{x:32.9118181950568,y: 24.8147644311867}
,
{x:32.9118132104355,y: 24.8158352528831}
,
{x:32.9110260245684,y: 24.8171359274064}
,
{x:32.9101698409462,y: 24.8182472968217}
,
{x:32.9096219043769,y: 24.819184411743}
,
{x:32.9096347267476,y: 24.8192003165851}
,
{x:32.9091504537458,y: 24.8197677915638}
,
{x:32.9078958498886,y: 24.8202057509515}
,
{x:32.9074984960777,y: 24.8204742676116}
,
{x:32.9067291425041,y: 24.821766160798}
,
{x:32.9057285551196,y: 24.8236309651356}
,
{x:32.9050887733982,y: 24.8245207429577}
,
{x:32.9037883092423,y: 24.8254541522264}
,
{x:32.9034537795725,y: 24.8260006829962}
,
{x:32.9030499007502,y: 24.826831054998}
,
{x:32.9029832042663,y: 24.826936019474}
,
{x:32.902669239321,y: 24.8274301251187}
,
{x:32.9020120842132,y: 24.8280079846996}
,
{x:32.9008358002951,y: 24.829426645114}
,
{x:32.900039770538,y: 24.8307509209604}
,
{x:32.8994300687631,y: 24.8316195340226}
,
{x:32.8994053647743,y: 24.8316547285781}
,
{x:32.8991622238374,y: 24.8321757467438}
,
{x:32.8990129533781,y: 24.8324956108809}
,
{x:32.8985974080316,y: 24.8334416194777}
,
{x:32.8982510631521,y: 24.8342930450317}
,
{x:32.8978589290621,y: 24.8347764370512}
,
{x:32.8974667476094,y: 24.835312399973}
,
{x:32.8969575963321,y: 24.8357558622709}
,
{x:32.8966826996026,y: 24.8359952913069}
,
{x:32.8963941983728,y: 24.8365418362841}
,
{x:32.8962122626649,y: 24.8371790393771}
,
{x:32.8961630843052,y: 24.8373512795893}
,
{x:32.8958627916944,y: 24.8382132453124}
,
{x:32.895654883583,y: 24.8388229310271}
,
{x:32.8951934590856,y: 24.8394639822948}
,
{x:32.8950635775822,y: 24.8396266853132}
,
{x:32.8950089092518,y: 24.8396951681062}
,
{x:32.8944435803428,y: 24.8405692104401}
,
{x:32.8945565195875,y: 24.841439778796}
,
{x:32.8943022117675,y: 24.8415219900716}
,
{x:32.894190109228,y: 24.8417715181375}
,
{x:32.894231726778,y: 24.8425387586869}
,
{x:32.8942345745765,y: 24.8425912748885}
,
{x:32.8943287761773,y: 24.8438666011175}
,
{x:32.8937575298907,y: 24.8446213029933}
,
{x:32.8932230605749,y: 24.8450745775207}
,
{x:32.8927884940776,y: 24.8456811451068}
,
{x:32.8926705164069,y: 24.8460549186866}
,
{x:32.8917663570225,y: 24.8478832664045}
,
{x:32.8909002523665,y: 24.8496646990135}
,
{x:32.8902980025054,y: 24.8508617898645}
,
{x:32.8908352376935,y: 24.8511172969076}
,
{x:32.8908996809991,y: 24.851147957379}
,
{x:32.8937835994337,y: 24.8527496645362}
,
{x:32.8955438496299,y: 24.8542349217164}
,
{x:32.8959270412336,y: 24.8550325789258}
,
{x:32.8994257469539,y: 24.8548905618399}
,
{x:32.9037891854298,y: 24.8544837412578}
,
{x:32.9056634375724,y: 24.8538119328173}
,
{x:32.9119228017722,y: 24.8520202167553}
,
{x:32.9160200430428,y: 24.8514450060516}
,
{x:32.9161853412503,y: 24.8515450747674}
,
{x:32.9162424546993,y: 24.8515115098829}
,
{x:32.9182630447518,y: 24.8513128168791}
,
{x:32.9209575126526,y: 24.8510129422786}
,
{x:32.924669086344,y: 24.8517583193709}
,
{x:32.9278117318929,y: 24.852982544901}
,
{x:32.9292709573927,y: 24.8523712468954}
,
{x:32.9318169850952,y: 24.8525796833606}
,
{x:32.9336391911536,y: 24.851708248895}
,
{x:32.9453425008659,y: 24.8539070144252}
,
{x:32.9568279474866,y: 24.8464814433184}
,
{x:32.9804849669071,y: 24.8356543168099}
,
{x:32.9900398454007,y: 24.8455389070718}
,
{x:32.989530781126,y: 24.8474122543946}
,
{x:32.9905621041816,y: 24.8469565863812}
,
{x:32.9906068520364,y: 24.8476974034454}
,
{x:32.9911044041365,y: 24.8559351053064}
,
{x:32.9957819032223,y: 24.8601918770721}
,
{x:32.9978253141553,y: 24.8701327440178}
,
{x:32.9976225070353,y: 24.8703126451725}
,
{x:32.9976623093172,y: 24.8703089318966}
,
{x:33.0247670562779,y: 25.0128841647688}
,
{x:33.0376796684278,y: 25.012829139629}
,
{x:33.050415493061,y: 25.01344003155}
,
{x:33.0630398992527,y: 25.0136712057918}
,
{x:33.062359169166,y: 25.0149764969917}
,
{x:33.0630409293024,y: 25.0147320144853}
,
{x:33.0700241456856,y: 25.0144035256714}
,
{x:33.0778221599905,y: 25.0223180106365}
,
{x:33.0823848640069,y: 25.0181484598058}
,
{x:33.0901704325144,y: 25.0132568485274}
,
{x:33.0902247083489,y: 25.0136802367035}
,
{x:33.090439095594,y: 25.0132769937907}
,
{x:33.0974240752101,y: 25.0134496433665}
,
{x:33.098860782988,y: 25.0163195449055}
,
{x:33.1067067331546,y: 25.0127411941409}
,
{x:33.1162597448036,y: 25.0133676427572}
,
{x:33.1185801664153,y: 25.0189383641595}
,
{x:33.1211298446881,y: 25.0180448589445}
,
{x:33.1505809986843,y: 25.0288776008302}
,
{x:33.1517199488609,y: 25.0282859228616}
,
{x:33.4744317904032,y: 25.1187186066261}
]}
]})
| Java |
<?php
/**
* An exception when an fActiveRecord is not found in the database
*
* @copyright Copyright (c) 2007-2008 Will Bond
* @author Will Bond [wb] <[email protected]>
* @license http://flourishlib.com/license
*
* @package Flourish
* @link http://flourishlib.com/fNotFoundException
*
* @version 1.0.0b
* @changes 1.0.0b The initial implementation [wb, 2007-06-14]
*/
class fNotFoundException extends fExpectedException
{
}
/**
* Copyright (c) 2007-2008 Will Bond <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/ | Java |
/**
******************************************************************************
* @file main.h
* @author MCD Application Team
* @version V1.3.0
* @date 18-December-2015
* @brief Header for main.c module
******************************************************************************
* @attention
*
* <h2><center>© Copyright © 2015 STMicroelectronics International N.V.
* All rights reserved.</center></h2>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted, provided that the following conditions are met:
*
* 1. Redistribution 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.
* 3. Neither the name of STMicroelectronics nor the names of other
* contributors to this software may be used to endorse or promote products
* derived from this software without specific written permission.
* 4. This software, including modifications and/or derivative works of this
* software, must execute solely and exclusively on microcontroller or
* microprocessor devices manufactured by or for STMicroelectronics.
* 5. Redistribution and use of this software other than as permitted under
* this license is void and will automatically terminate your rights under
* this license.
*
* THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
* RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
* SHALL STMICROELECTRONICS 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.
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H
/* Includes ------------------------------------------------------------------*/
#include "stm32f1xx_hal.h"
#include "GUI.h"
/* EVAL includes component */
#include "stm3210e_eval.h"
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#endif /* __MAIN_H */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
| Java |
*DECK PRWPGE
SUBROUTINE PRWPGE (KEY, IPAGE, LPG, SX, IX)
C***BEGIN PROLOGUE PRWPGE
C***SUBSIDIARY
C***PURPOSE Subsidiary to SPLP
C***LIBRARY SLATEC
C***TYPE SINGLE PRECISION (PRWPGE-S, DPRWPG-D)
C***AUTHOR Hanson, R. J., (SNLA)
C Wisniewski, J. A., (SNLA)
C***DESCRIPTION
C
C PRWPGE LIMITS THE TYPE OF STORAGE TO A SEQUENTIAL SCHEME.
C VIRTUAL MEMORY PAGE READ/WRITE SUBROUTINE.
C
C DEPENDING ON THE VALUE OF KEY, SUBROUTINE PRWPGE() PERFORMS A PAGE
C READ OR WRITE OF PAGE IPAGE. THE PAGE HAS LENGTH LPG.
C
C KEY IS A FLAG INDICATING WHETHER A PAGE READ OR WRITE IS
C TO BE PERFORMED.
C IF KEY = 1 DATA IS READ.
C IF KEY = 2 DATA IS WRITTEN.
C IPAGE IS THE PAGE NUMBER OF THE MATRIX TO BE ACCESSED.
C LPG IS THE LENGTH OF THE PAGE OF THE MATRIX TO BE ACCESSED.
C SX(*),IX(*) IS THE MATRIX TO BE ACCESSED.
C
C THIS SUBROUTINE IS A MODIFICATION OF THE SUBROUTINE LRWPGE,
C SANDIA LABS. REPT. SAND78-0785.
C MODIFICATIONS BY K.L. HIEBERT AND R.J. HANSON
C REVISED 811130-1000
C REVISED YYMMDD-HHMM
C
C***SEE ALSO SPLP
C***ROUTINES CALLED PRWVIR, XERMSG
C***REVISION HISTORY (YYMMDD)
C 811215 DATE WRITTEN
C 891214 Prologue converted to Version 4.0 format. (BAB)
C 900315 CALLs to XERROR changed to CALLs to XERMSG. (THJ)
C 900328 Added TYPE section. (WRB)
C 900510 Fixed error messages and replaced GOTOs with
C IF-THEN-ELSE. (RWC)
C 910403 Updated AUTHOR and DESCRIPTION sections. (WRB)
C***END PROLOGUE PRWPGE
REAL SX(*)
DIMENSION IX(*)
C***FIRST EXECUTABLE STATEMENT PRWPGE
C
C CHECK IF IPAGE IS IN RANGE.
C
IF (IPAGE.LT.1) THEN
CALL XERMSG ('SLATEC', 'PRWPGE',
+ 'THE VALUE OF IPAGE (PAGE NUMBER) WAS NOT IN THE RANGE' //
+ '1.LE.IPAGE.LE.MAXPGE.', 55, 1)
ENDIF
C
C CHECK IF LPG IS POSITIVE.
C
IF (LPG.LE.0) THEN
CALL XERMSG ('SLATEC', 'PRWPGE',
+ 'THE VALUE OF LPG (PAGE LENGTH) WAS NONPOSITIVE.', 55, 1)
ENDIF
C
C DECIDE IF WE ARE READING OR WRITING.
C
IF (KEY.EQ.1) THEN
C
C CODE TO DO A PAGE READ.
C
CALL PRWVIR(KEY,IPAGE,LPG,SX,IX)
ELSE IF (KEY.EQ.2) THEN
C
C CODE TO DO A PAGE WRITE.
C
CALL PRWVIR(KEY,IPAGE,LPG,SX,IX)
ELSE
CALL XERMSG ('SLATEC', 'PRWPGE',
+ 'THE VALUE OF KEY (READ-WRITE FLAG) WAS NOT 1 OR 2.', 55, 1)
ENDIF
RETURN
END
| Java |
#include "buffer_manager.hh"
#include "assert.hh"
#include "buffer.hh"
#include "client_manager.hh"
#include "exception.hh"
#include "file.hh"
#include "ranges.hh"
#include "string.hh"
namespace Kakoune
{
BufferManager::~BufferManager()
{
// Move buffers to avoid running BufClose with buffers remaining in that list
BufferList buffers = std::move(m_buffers);
for (auto& buffer : buffers)
buffer->on_unregistered();
// Make sure not clients exists
if (ClientManager::has_instance())
ClientManager::instance().clear();
}
Buffer* BufferManager::create_buffer(String name, Buffer::Flags flags,
StringView data, timespec fs_timestamp)
{
auto path = real_path(parse_filename(name));
for (auto& buf : m_buffers)
{
if (buf->name() == name or
(buf->flags() & Buffer::Flags::File and buf->name() == path))
throw runtime_error{"buffer name is already in use"};
}
m_buffers.push_back(std::make_unique<Buffer>(std::move(name), flags, data, fs_timestamp));
auto* buffer = m_buffers.back().get();
buffer->on_registered();
if (contains(m_buffer_trash, buffer))
throw runtime_error{"buffer got removed during its creation"};
return buffer;
}
void BufferManager::delete_buffer(Buffer& buffer)
{
auto it = find_if(m_buffers, [&](auto& p) { return p.get() == &buffer; });
kak_assert(it != m_buffers.end());
m_buffer_trash.emplace_back(std::move(*it));
m_buffers.erase(it);
if (ClientManager::has_instance())
ClientManager::instance().ensure_no_client_uses_buffer(buffer);
buffer.on_unregistered();
}
Buffer* BufferManager::get_buffer_ifp(StringView name)
{
auto path = real_path(parse_filename(name));
for (auto& buf : m_buffers)
{
if (buf->name() == name or
(buf->flags() & Buffer::Flags::File and buf->name() == path))
return buf.get();
}
return nullptr;
}
Buffer& BufferManager::get_buffer(StringView name)
{
Buffer* res = get_buffer_ifp(name);
if (not res)
throw runtime_error{format("no such buffer '{}'", name)};
return *res;
}
Buffer& BufferManager::get_first_buffer()
{
if (all_of(m_buffers, [](auto& b) { return (b->flags() & Buffer::Flags::Debug); }))
create_buffer("*scratch*", Buffer::Flags::None);
return *m_buffers.back();
}
void BufferManager::backup_modified_buffers()
{
for (auto& buf : m_buffers)
{
if ((buf->flags() & Buffer::Flags::File) and buf->is_modified()
and not (buf->flags() & Buffer::Flags::ReadOnly))
write_buffer_to_backup_file(*buf);
}
}
void BufferManager::clear_buffer_trash()
{
for (auto& buffer : m_buffer_trash)
{
// Do that again, to be tolerant in some corner cases, where a buffer is
// deleted during its creation
if (ClientManager::has_instance())
{
ClientManager::instance().ensure_no_client_uses_buffer(*buffer);
ClientManager::instance().clear_window_trash();
}
buffer.reset();
}
m_buffer_trash.clear();
}
}
| Java |
# Talking points
## Start of Class
0. Remind students that we do not have class on MLK day
1. Remind students of the assignment that will be due
2. Alert students that there is a guest speaker tonight -- a web developer
3. Mention to students that class will keep ramping up
4. Be sure to tell students to regularly check in with your teaching fellow -- even outside of class
## Before we "break out"
| Java |
//
// Mixer.h
// Tonic
//
// Created by Nick Donaldson on 2/9/13.
//
// See LICENSE.txt for license and usage information.
//
//! A mixer is like an adder but acts as a source and allows dynamic removal
#ifndef __Tonic__Mixer__
#define __Tonic__Mixer__
#include "Synth.h"
#include "CompressorLimiter.h"
using std::vector;
namespace Tonic {
namespace Tonic_ {
class Mixer_ : public BufferFiller_ {
private:
TonicFrames workSpace_;
vector<BufferFiller> inputs_;
void computeSynthesisBlock(const SynthesisContext_ &context);
public:
Mixer_();
void addInput(BufferFiller input);
void removeInput(BufferFiller input);
};
inline void Mixer_::computeSynthesisBlock(const SynthesisContext_ &context)
{
// Clear buffer
outputFrames_.clear();
// Tick and add inputs
for (unsigned int i=0; i<inputs_.size(); i++){
// Tick each bufferFiller every time, with our context (for now).
inputs_[i].tick(workSpace_, context);
outputFrames_ += workSpace_;
}
}
}
class Mixer : public TemplatedBufferFiller<Tonic_::Mixer_>{
public:
void addInput(BufferFiller input){
gen()->lockMutex();
gen()->addInput(input);
gen()->unlockMutex();
}
void removeInput(BufferFiller input){
gen()->lockMutex();
gen()->removeInput(input);
gen()->unlockMutex();
}
};
}
#endif /* defined(__Tonic__Mixer__) */
| Java |
// Implements http://rosettacode.org/wiki/N-queens_problem
#![feature(test)]
extern crate test;
use std::vec::Vec;
use std::thread::spawn;
use std::sync::mpsc::channel;
#[cfg(test)]
use test::Bencher;
#[cfg(not(test))]
fn main() {
for num in 0i32..16 {
println!("Sequential: {}: {}", num, n_queens(num));
}
for num in 0i32..16 {
println!("Parallel: {}: {}", num, semi_parallel_n_queens(num));
}
}
/* _
___ ___ | |_ _____ _ __
/ __|/ _ \| \ \ / / _ \ '__/
\__ \ (_) | |\ V / __/ |
|___/\___/|_| \_/ \___|_|
*/
// Solves n-queens using a depth-first, backtracking solution.
// Returns the number of solutions for a given n.
fn n_queens(n: i32) -> usize {
// Pass off to our helper function.
return n_queens_helper((1 << n as usize) -1, 0, 0, 0);
}
// The meat of the algorithm is in here, a recursive helper function
// that actually computes the answer using a depth-first, backtracking
// algorithm.
//
// The 30,000 foot overview is as follows:
//
// This function takes only 3 important parameters: three integers
// which represent the spots on the current row that are blocked
// by previous queens.
//
// The "secret sauce" here is that we can avoid passing around the board
// or even the locations of the previous queens and instead we use this
// information to infer the conflicts for the next row.
//
// Once we know the conflicts in our current row we can simply recurse
// over all of the open spots and profit.
//
// This implementation is optimized for speed and memory by using
// integers and bit shifting instead of arrays for storing the conflicts.
fn n_queens_helper(all_ones: i32, left_diags: i32, columns: i32, right_diags: i32) -> usize {
// all_ones is a special value that simply has all 1s in the first n positions
// and 0s elsewhere. We can use it to clear out areas that we don't care about.
// Our solution count.
// This will be updated by the recursive calls to our helper.
let mut solutions = 0;
// We get validSpots with some bit trickery. Effectively, each of the parameters
// can be ORed together to create an integer with all the conflicts together,
// which we then invert and limit by ANDing with all_ones, our special value
//from earlier.
let mut valid_spots = !(left_diags | columns | right_diags) & all_ones;
// Since valid_spots contains 1s in all of the locations that
// are conflict-free, we know we have gone through all of
// those locations when valid_spots is all 0s, i.e. when it is 0.
while valid_spots != 0 {
// This is just bit trickery. For reasons involving the weird
// behavior of two's complement integers, this creates an integer
// which is all 0s except for a single 1 in the position of the
// LSB of valid_spots.
let spot = -valid_spots & valid_spots;
// We then XOR that integer with the validSpots to flip it to 0
// in valid_spots.
valid_spots = valid_spots ^ spot;
// Make a recursive call. This is where we infer the conflicts
// for the next row.
solutions += n_queens_helper(
all_ones,
// We add a conflict in the current spot and then shift left,
// which has the desired effect of moving all of the conflicts
// that are created by left diagonals to the left one square.
(left_diags | spot) << 1,
// For columns we simply mark this column as filled by ORing
// in the currentSpot.
(columns | spot),
// This is the same as the left_diag shift, except we shift
// right because these conflicts are caused by right diagonals.
(right_diags | spot) >> 1);
}
// If columns is all blocked (i.e. if it is all ones) then we
// have arrived at a solution because we have placed n queens.
solutions + ((columns == all_ones) as usize)
}
// This is the same as the regular nQueens except it creates
// n threads in which to to do the work.
//
// This is much slower for smaller numbers (under 16~17) but outperforms
// the sequential algorithm after that.
fn semi_parallel_n_queens(n: i32) -> usize {
let all_ones = (1 << n as usize) - 1;
let (columns, left_diags, right_diags) = (0, 0, 0);
let mut receivers = Vec::new();
let mut valid_spots = !(left_diags | columns | right_diags) & all_ones;
while valid_spots != 0 {
let (tx, rx) = channel();
let spot = -valid_spots & valid_spots;
valid_spots = valid_spots ^ spot;
receivers.push(rx);
spawn( move || -> () {
tx.send(n_queens_helper(all_ones,
(left_diags | spot) << 1,
(columns | spot),
(right_diags | spot) >> 1)).unwrap();
});
}
receivers.iter().map(|r| r.recv().unwrap()).fold(0, |a, b| a + b) +
((columns == all_ones) as usize)
}
// Tests
#[test]
fn test_n_queens() {
let real = vec!(1, 1, 0, 0, 2, 10, 4, 40, 92);
for num in (0..9i32) {
assert_eq!(n_queens(num), real[num as usize]);
}
}
#[test]
fn test_parallel_n_queens() {
let real = vec!(1, 1, 0, 0, 2, 10, 4, 40, 92);
for num in (0..9i32) {
assert_eq!(semi_parallel_n_queens(num), real[num as usize]);
}
}
#[bench]
fn bench_n_queens(b: &mut Bencher) {
b.iter(|| { test::black_box(n_queens(16)); });
}
#[bench]
fn bench_semi_parallel_n_queens(b: &mut Bencher) {
b.iter(|| { test::black_box(semi_parallel_n_queens(16)); });
}
| Java |
# -*- encoding: utf-8 -*-
#
# Copyright © 2013 IBM Corp
#
# Author: Tong Li <[email protected]>
#
# 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.
import logging.handlers
import os
import tempfile
from ceilometer.dispatcher import file
from ceilometer.openstack.common.fixture import config
from ceilometer.openstack.common import test
from ceilometer.publisher import utils
class TestDispatcherFile(test.BaseTestCase):
def setUp(self):
super(TestDispatcherFile, self).setUp()
self.CONF = self.useFixture(config.Config()).conf
def test_file_dispatcher_with_all_config(self):
# Create a temporaryFile to get a file name
tf = tempfile.NamedTemporaryFile('r')
filename = tf.name
tf.close()
self.CONF.dispatcher_file.file_path = filename
self.CONF.dispatcher_file.max_bytes = 50
self.CONF.dispatcher_file.backup_count = 5
dispatcher = file.FileDispatcher(self.CONF)
# The number of the handlers should be 1
self.assertEqual(1, len(dispatcher.log.handlers))
# The handler should be RotatingFileHandler
handler = dispatcher.log.handlers[0]
self.assertIsInstance(handler,
logging.handlers.RotatingFileHandler)
msg = {'counter_name': 'test',
'resource_id': self.id(),
'counter_volume': 1,
}
msg['message_signature'] = utils.compute_signature(
msg,
self.CONF.publisher.metering_secret,
)
# The record_metering_data method should exist and not produce errors.
dispatcher.record_metering_data(msg)
# After the method call above, the file should have been created.
self.assertTrue(os.path.exists(handler.baseFilename))
def test_file_dispatcher_with_path_only(self):
# Create a temporaryFile to get a file name
tf = tempfile.NamedTemporaryFile('r')
filename = tf.name
tf.close()
self.CONF.dispatcher_file.file_path = filename
self.CONF.dispatcher_file.max_bytes = None
self.CONF.dispatcher_file.backup_count = None
dispatcher = file.FileDispatcher(self.CONF)
# The number of the handlers should be 1
self.assertEqual(1, len(dispatcher.log.handlers))
# The handler should be RotatingFileHandler
handler = dispatcher.log.handlers[0]
self.assertIsInstance(handler,
logging.FileHandler)
msg = {'counter_name': 'test',
'resource_id': self.id(),
'counter_volume': 1,
}
msg['message_signature'] = utils.compute_signature(
msg,
self.CONF.publisher.metering_secret,
)
# The record_metering_data method should exist and not produce errors.
dispatcher.record_metering_data(msg)
# After the method call above, the file should have been created.
self.assertTrue(os.path.exists(handler.baseFilename))
def test_file_dispatcher_with_no_path(self):
self.CONF.dispatcher_file.file_path = None
dispatcher = file.FileDispatcher(self.CONF)
# The log should be None
self.assertIsNone(dispatcher.log)
| Java |
/*
* Copyright 2014 MongoDB, Inc.
*
* 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.
*/
#ifndef MONGOC_IOVEC_H
#define MONGOC_IOVEC_H
#include <bson.h>
#ifndef _WIN32
# include <sys/uio.h>
#endif
BSON_BEGIN_DECLS
#ifdef _WIN32
typedef struct
{
size_t iov_len;
char *iov_base;
} mongoc_iovec_t;
#else
typedef struct iovec mongoc_iovec_t;
#endif
BSON_END_DECLS
#endif /* MONGOC_IOVEC_H */
| Java |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.isis.core.metamodel.facets.object.callbacks.remove;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
import org.apache.isis.core.metamodel.facetapi.FacetHolder;
import org.apache.isis.core.metamodel.facets.ImperativeFacet;
public class RemovingCallbackFacetViaMethod extends RemovingCallbackFacetAbstract implements ImperativeFacet {
private final List<Method> methods = new ArrayList<Method>();
public RemovingCallbackFacetViaMethod(final Method method, final FacetHolder holder) {
super(holder);
addMethod(method);
}
@Override
public void addMethod(final Method method) {
methods.add(method);
}
@Override
public boolean impliesResolve() {
return false;
}
@Override
public Intent getIntent(final Method method) {
return Intent.LIFECYCLE;
}
@Override
public boolean impliesObjectChanged() {
return false;
}
@Override
public List<Method> getMethods() {
return Collections.unmodifiableList(methods);
}
@Override
public void invoke(final ObjectAdapter adapter) {
ObjectAdapter.InvokeUtils.invokeAll(methods, adapter);
}
@Override
protected String toStringValues() {
return "methods=" + methods;
}
}
| Java |
<!DOCTYPE html>
<html itemscope lang="en-us">
<head><meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><meta name="generator" content="Hugo 0.57.2" />
<meta property="og:title" content="Registration" />
<meta name="twitter:title" content="registration"/>
<meta itemprop="name" content="registration"><meta property="og:description" content="Embed registration iframe/link/etc. " />
<meta name="twitter:description" content="Embed registration iframe/link/etc. " />
<meta itemprop="description" content="Embed registration iframe/link/etc. "><meta name="twitter:site" content="@devopsdays">
<meta property="og:type" content="event" />
<meta property="og:url" content="/events/2017-vancouver/registration/" /><meta name="twitter:creator" content="@devopsdaysyvr" /><meta name="twitter:label1" value="Event" />
<meta name="twitter:data1" value="devopsdays Vancouver 2017" /><meta name="twitter:label2" value="Dates" />
<meta name="twitter:data2" value="March 31 - 1, 2017" /><meta property="og:image" content="https://www.devopsdays.org/img/sharing.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://www.devopsdays.org/img/sharing.jpg" />
<meta itemprop="image" content="https://www.devopsdays.org/img/sharing.jpg" />
<meta property="fb:app_id" content="1904065206497317" /><meta itemprop="wordCount" content="3">
<title>devopsdays Vancouver 2017 - register
</title>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-9713393-1', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<link href="/css/site.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700" rel="stylesheet"><link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link href="/events/index.xml" rel="alternate" type="application/rss+xml" title="DevOpsDays" />
<link href="/events/index.xml" rel="feed" type="application/rss+xml" title="DevOpsDays" />
<script src=/js/devopsdays-min.js></script></head>
<body lang="">
<nav class="navbar navbar-expand-md navbar-light">
<a class="navbar-brand" href="/">
<img src="/img/devopsdays-brain.png" height="30" class="d-inline-block align-top" alt="devopsdays Logo">
DevOpsDays
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto"><li class="nav-item global-navigation"><a class = "nav-link" href="/events">events</a></li><li class="nav-item global-navigation"><a class = "nav-link" href="/blog">blog</a></li><li class="nav-item global-navigation"><a class = "nav-link" href="/sponsor">sponsor</a></li><li class="nav-item global-navigation"><a class = "nav-link" href="/speaking">speaking</a></li><li class="nav-item global-navigation"><a class = "nav-link" href="/organizing">organizing</a></li><li class="nav-item global-navigation"><a class = "nav-link" href="/about">about</a></li></ul>
</div>
</nav>
<nav class="navbar event-navigation navbar-expand-md navbar-light">
<a href="/events/2017-vancouver" class="nav-link">Vancouver</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar2">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbar2">
<ul class="navbar-nav"><li class="nav-item active">
<a class="nav-link" href="/events/2017-vancouver/program">program</a>
</li><li class="nav-item active">
<a class="nav-link" href="/events/2017-vancouver/location">location</a>
</li><li class="nav-item active">
<a class="nav-link" href="/events/2017-vancouver/livestream">livestream</a>
</li><li class="nav-item active">
<a class="nav-link" href="https://www.eventbrite.ca/e/devops-days-vancouver-2017-mar-31st-apr-1st-tickets-29634403298">registration</a>
</li><li class="nav-item active">
<a class="nav-link" href="/events/2017-vancouver/contact">contact</a>
</li><li class="nav-item active">
<a class="nav-link" href="/events/2017-vancouver/conduct">conduct</a>
</li><li class="nav-item active">
<a class="nav-link" href="/events/2017-vancouver/policies">policies</a>
</li></ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-md-12"><div class="row">
<div class="col-md-12 content-text"><h1>devopsdays Vancouver - registration</h1>
<div style="width:100%; text-align:left;">
Embed registration iframe/link/etc.
</div></div>
</div>
<br /><div class="row cta-row">
<div class="col-md-12"><h4 class="sponsor-cta">Gold Sponsors</h4></div>
</div><div class="row sponsor-row"><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://automic.com/"><img src = "/img/sponsors/automic-before-20170605.png" alt = "Automic" title = "Automic" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.boeingvancouver.com/"><img src = "/img/sponsors/boeing-vancouver.png" alt = "Boeing Vancouver" title = "Boeing Vancouver" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://deis.io/"><img src = "/img/sponsors/deis.png" alt = "Deis" title = "Deis" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://www.demonware.net/"><img src = "/img/sponsors/demonware.png" alt = "Demonware" title = "Demonware" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.pivotal.io"><img src = "/img/sponsors/pivotal-before-20190307.png" alt = "Pivotal" title = "Pivotal" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://www.salesforce.com/"><img src = "/img/sponsors/salesforce.png" alt = "Salesforce" title = "Salesforce" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://saucelabs.com"><img src = "/img/sponsors/saucelabs.png" alt = "saucelabs" title = "saucelabs" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://www.sumologic.com/"><img src = "/img/sponsors/sumologic-before-20181203.png" alt = "SumoLogic" title = "SumoLogic" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.trinimbus.com"><img src = "/img/sponsors/trinimbus-before-20180524.png" alt = "TriNimbus" title = "TriNimbus" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.victorops.com"><img src = "/img/sponsors/victorops-before-20180823.png" alt = "VictorOps" title = "VictorOps" class="img-fluid"></a>
</div></div><div class="row cta-row">
<div class="col-md-12"><h4 class="sponsor-cta">Silver Sponsors</h4></div>
</div><div class="row sponsor-row"><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://chef.io"><img src = "/img/sponsors/chef.png" alt = "Chef Software, Inc" title = "Chef Software, Inc" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.netapp.com/us/"><img src = "/img/sponsors/netapp.png" alt = "NetApp" title = "NetApp" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://www.scalar.ca/"><img src = "/img/sponsors/scalar.png" alt = "Scalar" title = "Scalar" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://careers.unbounce.com/"><img src = "/img/sponsors/unbounce.png" alt = "Unbounce" title = "Unbounce" class="img-fluid"></a>
</div></div><div class="row cta-row">
<div class="col-md-12"><h4 class="sponsor-cta">Bronze Sponsors</h4></div>
</div><div class="row sponsor-row"><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://www.itglue.com/"><img src = "/img/sponsors/itglue.png" alt = "IT Glue" title = "IT Glue" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.opsgenie.com"><img src = "/img/sponsors/opsgenie.png" alt = "OpsGenie" title = "OpsGenie" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.samsung.com/"><img src = "/img/sponsors/samsung-rd.png" alt = "Samsung" title = "Samsung" class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "https://getstat.com/"><img src = "/img/sponsors/statsearchanalytics.png" alt = "STAT Search Analytics" title = "STAT Search Analytics" class="img-fluid"></a>
</div></div><div class="row cta-row">
<div class="col-md-12"><h4 class="sponsor-cta">Coffee Sponsors</h4></div>
</div><div class="row sponsor-row"><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.ea.com/"><img src = "/img/sponsors/ea.png" alt = "EA" title = "EA" class="img-fluid"></a>
</div></div><div class="row cta-row">
<div class="col-md-12"><h4 class="sponsor-cta">Happy Hour Sponsors</h4></div>
</div><div class="row sponsor-row"></div><div class="row cta-row">
<div class="col-md-12"><h4 class="sponsor-cta">Friends Sponsors</h4></div>
</div><div class="row sponsor-row"><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.aytech.ca/"><img src = "/img/sponsors/ay-tech.png" alt = "A.Y Technologies Inc." title = "A.Y Technologies Inc." class="img-fluid"></a>
</div><div class = "col-lg-1 col-md-2 col-4">
<a href = "http://www.pearlfishergroup.com/"><img src = "/img/sponsors/pearlfisher-adaptech.png" alt = "The Pearl Fisher Group" title = "The Pearl Fisher Group" class="img-fluid"></a>
</div></div><br />
</div>
</div>
</div></div>
</div>
<nav class="navbar bottom navbar-light footer-nav-row" style="background-color: #bfbfc1;">
<div class = "row">
<div class = "col-md-12 footer-nav-background">
<div class = "row">
<div class = "col-md-6 col-lg-3 footer-nav-col">
<h3 class="footer-nav">@DEVOPSDAYS</h3>
<div>
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/devopsdays/lists/devopsdays" data-chrome="noheader" height="440"></a>
<script>
! function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0],
p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + "://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
}(document, "script", "twitter-wjs");
</script>
</div>
</div>
<div class="col-md-6 col-lg-3 footer-nav-col footer-content">
<h3 class="footer-nav">BLOG</h3><a href = "https://www.devopsdays.org/blog/2019/05/10/10-years-of-devopsdays/"><h1 class = "footer-heading">10 years of devopsdays</h1></a><h2 class="footer-heading">by Kris Buytaert - 10 May, 2019</h2><p class="footer-content">It’s hard to believe but it is almost 10 years ago since #devopsdays happened for the first time in Gent. Back then there were almost 70 of us talking about topics that were of interest to both Operations and Development, we were exchanging our ideas and experiences `on how we were improving the quality of software delivery.
Our ideas got started on the crossroads of Open Source, Agile and early Cloud Adoption.</p><a href = "https://www.devopsdays.org/blog/"><h1 class = "footer-heading">Blogs</h1></a><h2 class="footer-heading">10 May, 2019</h2><p class="footer-content"></p><a href="https://www.devopsdays.org/blog/index.xml">Feed</a>
</div>
<div class="col-md-6 col-lg-3 footer-nav-col">
<h3 class="footer-nav">CFP OPEN</h3><a href = "/events/2019-campinas" class = "footer-content">Campinas</a><br /><a href = "/events/2019-macapa" class = "footer-content">Macapá</a><br /><a href = "/events/2019-shanghai" class = "footer-content">Shanghai</a><br /><a href = "/events/2019-recife" class = "footer-content">Recife</a><br /><a href = "/events/2020-charlotte" class = "footer-content">Charlotte</a><br /><a href = "/events/2020-prague" class = "footer-content">Prague</a><br /><a href = "/events/2020-tokyo" class = "footer-content">Tokyo</a><br /><a href = "/events/2020-salt-lake-city" class = "footer-content">Salt Lake City</a><br />
<br />Propose a talk at an event near you!<br />
</div>
<div class="col-md-6 col-lg-3 footer-nav-col">
<h3 class="footer-nav">About</h3>
devopsdays is a worldwide community conference series for anyone interested in IT improvement.<br /><br />
<a href="/about/" class = "footer-content">About devopsdays</a><br />
<a href="/privacy/" class = "footer-content">Privacy Policy</a><br />
<a href="/conduct/" class = "footer-content">Code of Conduct</a>
<br />
<br />
<a href="https://www.netlify.com">
<img src="/img/netlify-light.png" alt="Deploys by Netlify">
</a>
</div>
</div>
</div>
</div>
</nav>
<script>
$(document).ready(function () {
$("#share").jsSocials({
shares: ["email", {share: "twitter", via: 'devopsdaysyvr'}, "facebook", "linkedin"],
text: 'devopsdays Vancouver - 2017',
showLabel: false,
showCount: false
});
});
</script>
</body>
</html>
| Java |
/* Copyright 2020 Google Inc.
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.
*/
#include <fuzzer/FuzzedDataProvider.h>
#include <vector>
#include <aconf.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <png.h>
#include "gmem.h"
#include "gmempp.h"
#include "parseargs.h"
#include "GString.h"
#include "gfile.h"
#include "GlobalParams.h"
#include "Object.h"
#include "PDFDoc.h"
#include "SplashBitmap.h"
#include "Splash.h"
#include "SplashOutputDev.h"
#include "Stream.h"
#include "config.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
FuzzedDataProvider fdp (data, size);
double hdpi = fdp.ConsumeFloatingPoint<double>();
double vdpi = fdp.ConsumeFloatingPoint<double>();
int rotate = fdp.ConsumeIntegral<int>();
bool useMediaBox = fdp.ConsumeBool();
bool crop = fdp.ConsumeBool();
bool printing = fdp.ConsumeBool();
std::vector<char> payload = fdp.ConsumeRemainingBytes<char>();
Object xpdf_obj;
xpdf_obj.initNull();
BaseStream *stream = new MemStream(payload.data(), 0, payload.size(), &xpdf_obj);
Object info, xfa;
Object *acroForm;
globalParams = new GlobalParams(NULL);
globalParams->setErrQuiet(1);
globalParams->setupBaseFonts(NULL);
char yes[] = "yes";
globalParams->setEnableFreeType(yes); // Yes, it's a string and not a bool.
globalParams->setErrQuiet(1);
PDFDoc *doc = NULL;
try {
PDFDoc doc(stream);
if (doc.isOk() == gTrue)
{
doc.getNumPages();
doc.getOutline();
doc.getStructTreeRoot();
doc.getXRef();
doc.okToPrint(gTrue);
doc.okToCopy(gTrue);
doc.okToChange(gTrue);
doc.okToAddNotes(gTrue);
doc.isLinearized();
doc.getPDFVersion();
GString *metadata;
if ((metadata = doc.readMetadata())) {
(void)metadata->getCString();
}
delete metadata;
Object info;
doc.getDocInfo(&info);
if (info.isDict()) {
info.getDict();
}
info.free();
if ((acroForm = doc.getCatalog()->getAcroForm())->isDict()) {
acroForm->dictLookup("XFA", &xfa);
xfa.free();
}
for (size_t i = 0; i < doc.getNumPages(); i++) {
doc.getLinks(i);
auto page = doc.getCatalog()->getPage(i);
if (!page->isOk()) {
continue;
}
page->getResourceDict();
page->getMetadata();
page->getResourceDict();
}
SplashColor paperColor = {0xff, 0xff, 0xff};
SplashOutputDev *splashOut = new SplashOutputDev(splashModeRGB8, 1, gFalse, paperColor);
splashOut->setNoComposite(gTrue);
splashOut->startDoc(doc.getXRef());
for (size_t i = 0; i <= doc.getNumPages(); ++i) {
doc.displayPage(splashOut, i, hdpi, vdpi, rotate, useMediaBox, crop, printing);
}
(void)splashOut->getBitmap();
delete splashOut;
}
} catch (...) {
}
delete globalParams;
return 0;
}
| Java |
using System;
using System.IO;
using EnvDTE;
namespace NuGet.VisualStudio
{
public class NativeProjectSystem : VsProjectSystem
{
public NativeProjectSystem(Project project, IFileSystemProvider fileSystemProvider)
: base(project, fileSystemProvider)
{
}
public override bool IsBindingRedirectSupported
{
get
{
return false;
}
}
protected override void AddGacReference(string name)
{
// Native project doesn't know about GAC
}
public override bool ReferenceExists(string name)
{
// We disable assembly reference for native projects
return true;
}
public override void AddReference(string referencePath, Stream stream)
{
// We disable assembly reference for native projects
}
public override void RemoveReference(string name)
{
// We disable assembly reference for native projects
}
public override void AddImport(string targetPath, ProjectImportLocation location)
{
if (VsVersionHelper.IsVisualStudio2010)
{
base.AddImport(targetPath, location);
}
else
{
// For VS 2012 or above, the operation has to be done inside the Writer lock
if (String.IsNullOrEmpty(targetPath))
{
throw new ArgumentNullException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "targetPath");
}
string relativeTargetPath = PathUtility.GetRelativePath(PathUtility.EnsureTrailingSlash(Root), targetPath);
Project.DoWorkInWriterLock(buildProject => buildProject.AddImportStatement(relativeTargetPath, location));
Project.Save();
}
}
public override void RemoveImport(string targetPath)
{
if (VsVersionHelper.IsVisualStudio2010)
{
base.RemoveImport(targetPath);
}
else
{
// For VS 2012 or above, the operation has to be done inside the Writer lock
if (String.IsNullOrEmpty(targetPath))
{
throw new ArgumentNullException(CommonResources.Argument_Cannot_Be_Null_Or_Empty, "targetPath");
}
string relativeTargetPath = PathUtility.GetRelativePath(PathUtility.EnsureTrailingSlash(Root), targetPath);
Project.DoWorkInWriterLock(buildProject => buildProject.RemoveImportStatement(relativeTargetPath));
Project.Save();
}
}
protected override void AddFileToContainer(string fullPath, ProjectItems container)
{
container.AddFromFile(Path.GetFileName(fullPath));
}
}
}
| Java |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.jstorm.message.netty;
import backtype.storm.Config;
import backtype.storm.messaging.IConnection;
import backtype.storm.messaging.IContext;
import backtype.storm.utils.DisruptorQueue;
import backtype.storm.utils.Utils;
import com.alibaba.jstorm.callback.AsyncLoopThread;
import com.alibaba.jstorm.metric.MetricDef;
import com.alibaba.jstorm.utils.JStormUtils;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import org.jboss.netty.channel.socket.nio.NioClientSocketChannelFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class NettyContext implements IContext {
private final static Logger LOG = LoggerFactory.getLogger(NettyContext.class);
@SuppressWarnings("rawtypes")
private Map stormConf;
private NioClientSocketChannelFactory clientChannelFactory;
private ReconnectRunnable reconnector;
@SuppressWarnings("unused")
public NettyContext() {
}
/**
* initialization per Storm configuration
*/
@SuppressWarnings("rawtypes")
public void prepare(Map stormConf) {
this.stormConf = stormConf;
int maxWorkers = Utils.getInt(stormConf.get(Config.STORM_MESSAGING_NETTY_CLIENT_WORKER_THREADS));
ThreadFactory bossFactory = new NettyRenameThreadFactory(MetricDef.NETTY_CLI + "boss");
ThreadFactory workerFactory = new NettyRenameThreadFactory(MetricDef.NETTY_CLI + "worker");
if (maxWorkers > 0) {
clientChannelFactory = new NioClientSocketChannelFactory(Executors.newCachedThreadPool(bossFactory),
Executors.newCachedThreadPool(workerFactory), maxWorkers);
} else {
clientChannelFactory = new NioClientSocketChannelFactory(Executors.newCachedThreadPool(bossFactory),
Executors.newCachedThreadPool(workerFactory));
}
reconnector = new ReconnectRunnable();
new AsyncLoopThread(reconnector, true, Thread.MIN_PRIORITY, true);
}
@Override
public IConnection bind(String topologyId, int port, ConcurrentHashMap<Integer, DisruptorQueue> deserializedQueue,
DisruptorQueue recvControlQueue, boolean bstartRec, Set<Integer> workerTasks) {
IConnection retConnection = null;
try {
retConnection = new NettyServer(stormConf, port, deserializedQueue, recvControlQueue, bstartRec, workerTasks);
} catch (Throwable e) {
LOG.error("Failed to create NettyServer", e);
JStormUtils.halt_process(-1, "Failed to bind " + port);
}
return retConnection;
}
@Override
public IConnection connect(String topologyId, String host, int port) {
return new NettyClientAsync(stormConf, clientChannelFactory, host, port, reconnector, new HashSet<Integer>(), new HashSet<Integer>());
}
@Override
public IConnection connect(String topologyId, String host, int port, Set<Integer> sourceTasks, Set<Integer> targetTasks) {
return new NettyClientAsync(stormConf, clientChannelFactory, host, port, reconnector, sourceTasks, targetTasks);
}
/**
* terminate this context
*/
public void term() {
/* clientScheduleService.shutdown();
try {
clientScheduleService.awaitTermination(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
LOG.error("Error when shutting down client scheduler", e);
}*/
clientChannelFactory.releaseExternalResources();
reconnector.shutdown();
}
}
| Java |
#!/bin/bash
##
# Copyright (c) 2008-2012 Marius Zwicker
# All rights reserved.
#
# @LICENSE_HEADER_START:Apache@
#
# 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.
#
# http://www.mlba-team.de
#
# @LICENSE_HEADER_END:Apache@
##
#######################################################################
#
# Configure Codeblocks/QtCreator project files
# (c) 2012 Marius Zwicker
#
# Pass 'Release' as argument to build without debug flags
#
#######################################################################
BUILD_DIR="QtCreator_ProjectFiles"
RELEASE_DIR="Release_$BUILD_DIR"
GENERATOR="CodeBlocks - Unix Makefiles"
TARGET="Qt Creator"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $DIR/util.sh $@ | Java |
/*!
* ${copyright}
*/
// Provides class sap.ui.rta.plugin.Combine.
sap.ui.define([
'sap/ui/rta/plugin/Plugin',
'sap/ui/dt/Selection',
'sap/ui/dt/OverlayRegistry',
'sap/ui/rta/Utils'
], function(
Plugin,
Selection,
OverlayRegistry,
Utils
) {
"use strict";
/**
* Constructor for a new Combine Plugin.
*
* @class
* @extends sap.ui.rta.plugin.Plugin
* @author SAP SE
* @version ${version}
* @constructor
* @private
* @since 1.46
* @alias sap.ui.rta.plugin.Combine
* @experimental Since 1.46. This class is experimental and provides only limited functionality. Also the API might be changed in future.
*/
var Combine = Plugin.extend("sap.ui.rta.plugin.Combine", /** @lends sap.ui.rta.plugin.Combine.prototype */
{
metadata: {
// ---- object ----
// ---- control specific ----
library: "sap.ui.rta",
properties: {},
associations: {},
events: {}
}
});
/**
* check if the given overlay is editable
* @param {sap.ui.dt.ElementOverlay} oOverlay - overlay to be checked for editable
* @returns {boolean} whether it is editable or not
* @private
*/
Combine.prototype._isEditable = function(oOverlay) {
var oCombineAction = this.getAction(oOverlay);
if (oCombineAction && oCombineAction.changeType && oCombineAction.changeOnRelevantContainer) {
return this.hasChangeHandler(oCombineAction.changeType, oOverlay.getRelevantContainer()) && this.hasStableId(oOverlay);
} else {
return false;
}
};
Combine.prototype._checkForSameRelevantContainer = function(aSelectedOverlays) {
var aRelevantContainer = [];
for (var i = 0, n = aSelectedOverlays.length; i < n; i++) {
aRelevantContainer[i] = aSelectedOverlays[i].getRelevantContainer();
var oCombineAction = this.getAction(aSelectedOverlays[i]);
if (!oCombineAction || !oCombineAction.changeType){
return false;
}
if (i > 0) {
if ((aRelevantContainer[0] !== aRelevantContainer[i])
|| (this.getAction(aSelectedOverlays[0]).changeType !== oCombineAction.changeType)) {
return false;
}
}
}
return true;
};
/**
* Checks if Combine is available for oOverlay
*
* @param {sap.ui.dt.Overlay} oOverlay overlay object
* @return {boolean} true if available
* @public
*/
Combine.prototype.isAvailable = function(oOverlay) {
var aSelectedOverlays = this.getDesignTime().getSelection();
if (aSelectedOverlays.length <= 1) {
return false;
}
return (this._isEditableByPlugin(oOverlay) && this._checkForSameRelevantContainer(aSelectedOverlays));
};
/**
* Checks if Combine is enabled for oOverlay
*
* @param {sap.ui.dt.Overlay} oOverlay overlay object
* @return {boolean} true if enabled
* @public
*/
Combine.prototype.isEnabled = function(oOverlay) {
var aSelectedOverlays = this.getDesignTime().getSelection();
// check that at least 2 fields can be combined
if (!this.isAvailable(oOverlay) || aSelectedOverlays.length <= 1) {
return false;
}
var aSelectedControls = aSelectedOverlays.map(function (oSelectedOverlay) {
return oSelectedOverlay.getElementInstance();
});
// check that each selected element has an enabled action
var bActionCheck = aSelectedOverlays.every(function(oSelectedOverlay) {
var oAction = this.getAction(oSelectedOverlay);
if (!oAction) {
return false;
}
// when isEnabled is not defined the default is true
if (typeof oAction.isEnabled !== "undefined") {
if (typeof oAction.isEnabled === "function") {
return oAction.isEnabled(aSelectedControls);
} else {
return oAction.isEnabled;
}
}
return true;
}, this);
return bActionCheck;
};
/**
* @param {any} oCombineElement selected element
*/
Combine.prototype.handleCombine = function(oCombineElement) {
var oElementOverlay = OverlayRegistry.getOverlay(oCombineElement);
var oDesignTimeMetadata = oElementOverlay.getDesignTimeMetadata();
var aToCombineElements = [];
var aSelectedOverlays = this.getDesignTime().getSelection();
for (var i = 0; i < aSelectedOverlays.length; i++) {
var oSelectedElement = aSelectedOverlays[i].getElementInstance();
aToCombineElements.push(oSelectedElement);
}
var oCombineAction = this.getAction(oElementOverlay);
var sVariantManagementReference = this.getVariantManagementReference(oElementOverlay, oCombineAction);
var oCombineCommand = this.getCommandFactory().getCommandFor(oCombineElement, "combine", {
source : oCombineElement,
combineFields : aToCombineElements
}, oDesignTimeMetadata, sVariantManagementReference);
this.fireElementModified({
"command" : oCombineCommand
});
};
/**
* Retrieve the context menu item for the action.
* @param {sap.ui.dt.ElementOverlay} oOverlay Overlay for which the context menu was opened
* @return {object[]} Returns array containing the items with required data
*/
Combine.prototype.getMenuItems = function(oOverlay){
return this._getMenuItems(oOverlay, {pluginId : "CTX_GROUP_FIELDS", rank : 90});
};
/**
* Get the name of the action related to this plugin.
* @return {string} Returns the action name
*/
Combine.prototype.getActionName = function(){
return "combine";
};
/**
* Trigger the plugin execution.
* @param {sap.ui.dt.ElementOverlay[]} aOverlays Selected overlays; targets of the action
* @param {any} oEventItem ContextMenu item which triggers the event
* @param {any} oContextElement Element where the action is triggered
*/
Combine.prototype.handler = function(aOverlays, mPropertyBag){
//TODO: Handle "Stop Cut & Paste" depending on alignment with Dietrich!
this.handleCombine(mPropertyBag.contextElement);
};
return Combine;
}, /* bExport= */true);
| Java |
package helpers
import (
"fmt"
"github.com/SpectraLogic/ds3_go_sdk/ds3"
ds3Models "github.com/SpectraLogic/ds3_go_sdk/ds3/models"
helperModels "github.com/SpectraLogic/ds3_go_sdk/helpers/models"
"github.com/SpectraLogic/ds3_go_sdk/sdk_log"
"sync"
"time"
)
type putProducer struct {
JobMasterObjectList *ds3Models.MasterObjectList //MOL from put bulk job creation
WriteObjects *[]helperModels.PutObject
queue *chan TransferOperation
strategy *WriteTransferStrategy
client *ds3.Client
waitGroup *sync.WaitGroup
writeObjectMap map[string]helperModels.PutObject
processedBlobTracker blobTracker
deferredBlobQueue BlobDescriptionQueue // queue of blobs whose channels are not yet ready for transfer
sdk_log.Logger
// Conditional value that gets triggered when a blob has finished being transferred
doneNotifier NotifyBlobDone
}
func newPutProducer(
jobMasterObjectList *ds3Models.MasterObjectList,
putObjects *[]helperModels.PutObject,
queue *chan TransferOperation,
strategy *WriteTransferStrategy,
client *ds3.Client,
waitGroup *sync.WaitGroup,
doneNotifier NotifyBlobDone) *putProducer {
return &putProducer{
JobMasterObjectList: jobMasterObjectList,
WriteObjects: putObjects,
queue: queue,
strategy: strategy,
client: client,
waitGroup: waitGroup,
writeObjectMap: toWriteObjectMap(putObjects),
deferredBlobQueue: NewBlobDescriptionQueue(),
processedBlobTracker: newProcessedBlobTracker(),
Logger: client.Logger, // use the same logger as the client
doneNotifier: doneNotifier,
}
}
// Creates a map of object name to PutObject struct
func toWriteObjectMap(putObjects *[]helperModels.PutObject) map[string]helperModels.PutObject {
objectMap := make(map[string]helperModels.PutObject)
if putObjects == nil {
return objectMap
}
for _, obj := range *putObjects {
objectMap[obj.PutObject.Name] = obj
}
return objectMap
}
// Information required to perform a put operation of a blob using the source channelBuilder to BP destination
type putObjectInfo struct {
blob helperModels.BlobDescription
channelBuilder helperModels.ReadChannelBuilder
bucketName string
jobId string
}
// Creates the transfer operation that will perform the data upload of the specified blob to BP
func (producer *putProducer) transferOperationBuilder(info putObjectInfo) TransferOperation {
return func() {
// has this file fatally errored while transferring a different blob?
if info.channelBuilder.HasFatalError() {
// skip performing this blob transfer
producer.Warningf("fatal error occurred previously on this file, skipping sending blob name='%s' offset=%d length=%d", info.blob.Name(), info.blob.Offset(), info.blob.Length())
return
}
reader, err := info.channelBuilder.GetChannel(info.blob.Offset())
if err != nil {
producer.strategy.Listeners.Errored(info.blob.Name(), err)
info.channelBuilder.SetFatalError(err)
producer.Errorf("could not get reader for object with name='%s' offset=%d length=%d: %v", info.blob.Name(), info.blob.Offset(), info.blob.Length(), err)
return
}
defer info.channelBuilder.OnDone(reader)
sizedReader := NewIoReaderWithSizeDecorator(reader, info.blob.Length())
putObjRequest := ds3Models.NewPutObjectRequest(info.bucketName, info.blob.Name(), sizedReader).
WithJob(info.jobId).
WithOffset(info.blob.Offset())
producer.maybeAddMetadata(info, putObjRequest)
_, err = producer.client.PutObject(putObjRequest)
if err != nil {
producer.strategy.Listeners.Errored(info.blob.Name(), err)
info.channelBuilder.SetFatalError(err)
producer.Errorf("problem during transfer of %s: %s", info.blob.Name(), err.Error())
}
}
}
func (producer *putProducer) maybeAddMetadata(info putObjectInfo, putObjRequest *ds3Models.PutObjectRequest) {
metadataMap := producer.metadataFrom(info)
if len(metadataMap) == 0 {
return
}
for key, value := range metadataMap {
putObjRequest.WithMetaData(key, value)
}
}
func (producer *putProducer) metadataFrom(info putObjectInfo) map[string]string {
result := map[string]string{}
for _, objectToPut := range *producer.WriteObjects {
if objectToPut.PutObject.Name == info.blob.Name() {
result = objectToPut.Metadata
break
}
}
return result
}
// Processes all the blobs in a chunk and attempts to add them to the transfer queue.
// If a blob is not ready for transfer, then it is added to the waiting to be transferred queue.
// Returns the number of blobs added to queue.
func (producer *putProducer) processChunk(curChunk *ds3Models.Objects, bucketName string, jobId string) (int, error) {
processedCount := 0
producer.Debugf("begin chunk processing %s", curChunk.ChunkId)
// transfer blobs that are ready, and queue those that are waiting for channel
for _, curObj := range curChunk.Objects {
producer.Debugf("queuing object in waiting to be processed %s offset=%d length=%d", *curObj.Name, curObj.Offset, curObj.Length)
blob := helperModels.NewBlobDescription(*curObj.Name, curObj.Offset, curObj.Length)
blobQueued, err := producer.queueBlobForTransfer(&blob, bucketName, jobId)
if err != nil {
return 0, err
}
if blobQueued {
processedCount++
}
}
return processedCount, nil
}
// Iterates through blobs that are waiting to be transferred and attempts to transfer.
// If successful, blob is removed from queue. Else, it is re-queued.
// Returns the number of blobs added to queue.
func (producer *putProducer) processWaitingBlobs(bucketName string, jobId string) (int, error) {
processedCount := 0
// attempt to process all blobs in waiting to be transferred
waitingBlobs := producer.deferredBlobQueue.Size()
for i := 0; i < waitingBlobs; i++ {
//attempt transfer
curBlob, err := producer.deferredBlobQueue.Pop()
if err != nil {
//should not be possible to get here
producer.Errorf("problem when getting next blob to be transferred: %s", err.Error())
break
}
producer.Debugf("attempting to process %s offset=%d length=%d", curBlob.Name(), curBlob.Offset(), curBlob.Length())
blobQueued, err := producer.queueBlobForTransfer(curBlob, bucketName, jobId)
if err != nil {
return 0, err
}
if blobQueued {
processedCount++
}
}
return processedCount, nil
}
// Attempts to transfer a single blob. If the blob is not ready for transfer,
// it is added to the waiting to transfer queue.
// Returns whether or not the blob was queued for transfer.
func (producer *putProducer) queueBlobForTransfer(blob *helperModels.BlobDescription, bucketName string, jobId string) (bool, error) {
if producer.processedBlobTracker.IsProcessed(*blob) {
return false, nil // this was already processed
}
curWriteObj, ok := producer.writeObjectMap[blob.Name()]
if !ok {
err := fmt.Errorf("failed to find object associated with blob in object map: %s offset=%d length=%d", blob.Name(), blob.Offset(), blob.Length())
producer.Errorf("unrecoverable error: %v", err)
producer.processedBlobTracker.MarkProcessed(*blob)
return false, err // fatal error occurred
}
if curWriteObj.ChannelBuilder == nil {
err := fmt.Errorf("failed to transfer object, it does not have a channel builder: %s", curWriteObj.PutObject.Name)
producer.Errorf("unrecoverable error: %v", err)
producer.processedBlobTracker.MarkProcessed(*blob)
return false, err // fatal error occurred
}
if curWriteObj.ChannelBuilder.HasFatalError() {
// a fatal error happened on a previous blob for this file, skip processing
producer.Warningf("fatal error occurred while transferring previous blob on this file, skipping blob %s offset=%d length=%d", blob.Name(), blob.Offset(), blob.Length())
producer.processedBlobTracker.MarkProcessed(*blob)
return false, nil // not actually transferring this blob
}
if !curWriteObj.ChannelBuilder.IsChannelAvailable(blob.Offset()) {
producer.Debugf("channel is not currently available for blob %s offset=%d length=%d", blob.Name(), blob.Offset(), blob.Length())
// Not ready to be transferred
producer.deferredBlobQueue.Push(blob)
return false, nil // not ready to be sent
}
producer.Debugf("channel is available for blob %s offset=%d length=%d", curWriteObj.PutObject.Name, blob.Offset(), blob.Length())
// Blob ready to be transferred
// Create transfer operation
objInfo := putObjectInfo{
blob: *blob,
channelBuilder: curWriteObj.ChannelBuilder,
bucketName: bucketName,
jobId: jobId,
}
transfer := producer.transferOperationBuilder(objInfo)
// Increment wait group, and enqueue transfer operation
producer.waitGroup.Add(1)
*producer.queue <- transfer
// Mark blob as processed
producer.processedBlobTracker.MarkProcessed(*blob)
return true, nil
}
// This initiates the production of the transfer operations which will be consumed by a consumer running in a separate go routine.
// Each transfer operation will put one blob of content to the BP.
// Once all blobs have been queued to be transferred, the producer will finish, even if all operations have not been consumed yet.
func (producer *putProducer) run() error {
defer close(*producer.queue)
// determine number of blobs to be processed
totalBlobCount := producer.totalBlobCount()
producer.Debugf("job status totalBlobs=%d processedBlobs=%d", totalBlobCount, producer.processedBlobTracker.NumberOfProcessedBlobs())
// process all chunks and make sure all blobs are queued for transfer
for producer.hasMoreToProcess(totalBlobCount) {
processedCount, err := producer.queueBlobsReadyForTransfer(totalBlobCount)
if err != nil {
return err
}
// If the last operation processed blobs, then wait for something to finish
if processedCount > 0 {
// wait for a done signal to be received
producer.doneNotifier.Wait()
} else if producer.hasMoreToProcess(totalBlobCount) {
// nothing could be processed, cache is probably full, wait a bit before trying again
time.Sleep(producer.strategy.BlobStrategy.delay())
}
}
return nil
}
func (producer *putProducer) hasMoreToProcess(totalBlobCount int64) bool {
return producer.processedBlobTracker.NumberOfProcessedBlobs() < totalBlobCount || producer.deferredBlobQueue.Size() > 0
}
// Returns the number of items queued for work.
func (producer *putProducer) queueBlobsReadyForTransfer(totalBlobCount int64) (int, error) {
// Attempt to transfer waiting blobs
processedCount, err := producer.processWaitingBlobs(*producer.JobMasterObjectList.BucketName, producer.JobMasterObjectList.JobId)
if err != nil {
return 0, err
}
// Check if we need to query the BP for allocated blobs, or if we already know everything is allocated.
if int64(producer.deferredBlobQueue.Size()) + producer.processedBlobTracker.NumberOfProcessedBlobs() >= totalBlobCount {
// Everything is already allocated, no need to query BP for allocated chunks
return processedCount, nil
}
// Get the list of available chunks that the server can receive. The server may
// not be able to receive everything, so not all chunks will necessarily be
// returned
chunksReady := ds3Models.NewGetJobChunksReadyForClientProcessingSpectraS3Request(producer.JobMasterObjectList.JobId)
chunksReadyResponse, err := producer.client.GetJobChunksReadyForClientProcessingSpectraS3(chunksReady)
if err != nil {
producer.Errorf("unrecoverable error: %v", err)
return processedCount, err
}
// Check to see if any chunks can be processed
numberOfChunks := len(chunksReadyResponse.MasterObjectList.Objects)
if numberOfChunks > 0 {
// Loop through all the chunks that are available for processing, and send
// the files that are contained within them.
for _, curChunk := range chunksReadyResponse.MasterObjectList.Objects {
justProcessedCount, err := producer.processChunk(&curChunk, *chunksReadyResponse.MasterObjectList.BucketName, chunksReadyResponse.MasterObjectList.JobId)
if err != nil {
return 0, err
}
processedCount += justProcessedCount
}
}
return processedCount, nil
}
// Determines the number of blobs to be transferred.
func (producer *putProducer) totalBlobCount() int64 {
if producer.JobMasterObjectList.Objects == nil || len(producer.JobMasterObjectList.Objects) == 0 {
return 0
}
var count int64 = 0
for _, chunk := range producer.JobMasterObjectList.Objects {
for range chunk.Objects {
count++
}
}
return count
}
| Java |
package org.jboss.resteasy.test.providers.multipart.resource;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "customer")
@XmlAccessorType(XmlAccessType.FIELD)
public class ContextProvidersCustomer {
@XmlElement
private String name;
public ContextProvidersCustomer() {
}
public ContextProvidersCustomer(final String name) {
this.name = name;
}
public String getName() {
return name;
}
}
| Java |
//// [typeGuardFunctionOfFormThis.ts]
class RoyalGuard {
isLeader(): this is LeadGuard {
return this instanceof LeadGuard;
}
isFollower(): this is FollowerGuard {
return this instanceof FollowerGuard;
}
}
class LeadGuard extends RoyalGuard {
lead(): void {};
}
class FollowerGuard extends RoyalGuard {
follow(): void {};
}
let a: RoyalGuard = new FollowerGuard();
if (a.isLeader()) {
a.lead();
}
else if (a.isFollower()) {
a.follow();
}
interface GuardInterface extends RoyalGuard {}
let b: GuardInterface;
if (b.isLeader()) {
b.lead();
}
else if (b.isFollower()) {
b.follow();
}
// if (((a.isLeader)())) {
// a.lead();
// }
// else if (((a).isFollower())) {
// a.follow();
// }
// if (((a["isLeader"])())) {
// a.lead();
// }
// else if (((a)["isFollower"]())) {
// a.follow();
// }
var holder2 = {a};
if (holder2.a.isLeader()) {
holder2.a;
}
else {
holder2.a;
}
class ArrowGuard {
isElite = (): this is ArrowElite => {
return this instanceof ArrowElite;
}
isMedic = (): this is ArrowMedic => {
return this instanceof ArrowMedic;
}
}
class ArrowElite extends ArrowGuard {
defend(): void {}
}
class ArrowMedic extends ArrowGuard {
heal(): void {}
}
let guard = new ArrowGuard();
if (guard.isElite()) {
guard.defend();
}
else if (guard.isMedic()) {
guard.heal();
}
interface Supplies {
spoiled: boolean;
}
interface Sundries {
broken: boolean;
}
interface Crate<T> {
contents: T;
volume: number;
isSupplies(): this is Crate<Supplies>;
isSundries(): this is Crate<Sundries>;
}
let crate: Crate<{}>;
if (crate.isSundries()) {
crate.contents.broken = true;
}
else if (crate.isSupplies()) {
crate.contents.spoiled = true;
}
// Matching guards should be assignable
a.isFollower = b.isFollower;
a.isLeader = b.isLeader;
class MimicGuard {
isLeader(): this is MimicLeader { return this instanceof MimicLeader; };
isFollower(): this is MimicFollower { return this instanceof MimicFollower; };
}
class MimicLeader extends MimicGuard {
lead(): void {}
}
class MimicFollower extends MimicGuard {
follow(): void {}
}
let mimic = new MimicGuard();
a.isLeader = mimic.isLeader;
a.isFollower = mimic.isFollower;
if (mimic.isFollower()) {
mimic.follow();
mimic.isFollower = a.isFollower;
}
interface MimicGuardInterface {
isLeader(): this is LeadGuard;
isFollower(): this is FollowerGuard;
}
//// [typeGuardFunctionOfFormThis.js]
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var RoyalGuard = /** @class */ (function () {
function RoyalGuard() {
}
RoyalGuard.prototype.isLeader = function () {
return this instanceof LeadGuard;
};
RoyalGuard.prototype.isFollower = function () {
return this instanceof FollowerGuard;
};
return RoyalGuard;
}());
var LeadGuard = /** @class */ (function (_super) {
__extends(LeadGuard, _super);
function LeadGuard() {
return _super !== null && _super.apply(this, arguments) || this;
}
LeadGuard.prototype.lead = function () { };
;
return LeadGuard;
}(RoyalGuard));
var FollowerGuard = /** @class */ (function (_super) {
__extends(FollowerGuard, _super);
function FollowerGuard() {
return _super !== null && _super.apply(this, arguments) || this;
}
FollowerGuard.prototype.follow = function () { };
;
return FollowerGuard;
}(RoyalGuard));
var a = new FollowerGuard();
if (a.isLeader()) {
a.lead();
}
else if (a.isFollower()) {
a.follow();
}
var b;
if (b.isLeader()) {
b.lead();
}
else if (b.isFollower()) {
b.follow();
}
// if (((a.isLeader)())) {
// a.lead();
// }
// else if (((a).isFollower())) {
// a.follow();
// }
// if (((a["isLeader"])())) {
// a.lead();
// }
// else if (((a)["isFollower"]())) {
// a.follow();
// }
var holder2 = { a: a };
if (holder2.a.isLeader()) {
holder2.a;
}
else {
holder2.a;
}
var ArrowGuard = /** @class */ (function () {
function ArrowGuard() {
var _this = this;
this.isElite = function () {
return _this instanceof ArrowElite;
};
this.isMedic = function () {
return _this instanceof ArrowMedic;
};
}
return ArrowGuard;
}());
var ArrowElite = /** @class */ (function (_super) {
__extends(ArrowElite, _super);
function ArrowElite() {
return _super !== null && _super.apply(this, arguments) || this;
}
ArrowElite.prototype.defend = function () { };
return ArrowElite;
}(ArrowGuard));
var ArrowMedic = /** @class */ (function (_super) {
__extends(ArrowMedic, _super);
function ArrowMedic() {
return _super !== null && _super.apply(this, arguments) || this;
}
ArrowMedic.prototype.heal = function () { };
return ArrowMedic;
}(ArrowGuard));
var guard = new ArrowGuard();
if (guard.isElite()) {
guard.defend();
}
else if (guard.isMedic()) {
guard.heal();
}
var crate;
if (crate.isSundries()) {
crate.contents.broken = true;
}
else if (crate.isSupplies()) {
crate.contents.spoiled = true;
}
// Matching guards should be assignable
a.isFollower = b.isFollower;
a.isLeader = b.isLeader;
var MimicGuard = /** @class */ (function () {
function MimicGuard() {
}
MimicGuard.prototype.isLeader = function () { return this instanceof MimicLeader; };
;
MimicGuard.prototype.isFollower = function () { return this instanceof MimicFollower; };
;
return MimicGuard;
}());
var MimicLeader = /** @class */ (function (_super) {
__extends(MimicLeader, _super);
function MimicLeader() {
return _super !== null && _super.apply(this, arguments) || this;
}
MimicLeader.prototype.lead = function () { };
return MimicLeader;
}(MimicGuard));
var MimicFollower = /** @class */ (function (_super) {
__extends(MimicFollower, _super);
function MimicFollower() {
return _super !== null && _super.apply(this, arguments) || this;
}
MimicFollower.prototype.follow = function () { };
return MimicFollower;
}(MimicGuard));
var mimic = new MimicGuard();
a.isLeader = mimic.isLeader;
a.isFollower = mimic.isFollower;
if (mimic.isFollower()) {
mimic.follow();
mimic.isFollower = a.isFollower;
}
//// [typeGuardFunctionOfFormThis.d.ts]
declare class RoyalGuard {
isLeader(): this is LeadGuard;
isFollower(): this is FollowerGuard;
}
declare class LeadGuard extends RoyalGuard {
lead(): void;
}
declare class FollowerGuard extends RoyalGuard {
follow(): void;
}
declare let a: RoyalGuard;
interface GuardInterface extends RoyalGuard {
}
declare let b: GuardInterface;
declare var holder2: {
a: RoyalGuard;
};
declare class ArrowGuard {
isElite: () => this is ArrowElite;
isMedic: () => this is ArrowMedic;
}
declare class ArrowElite extends ArrowGuard {
defend(): void;
}
declare class ArrowMedic extends ArrowGuard {
heal(): void;
}
declare let guard: ArrowGuard;
interface Supplies {
spoiled: boolean;
}
interface Sundries {
broken: boolean;
}
interface Crate<T> {
contents: T;
volume: number;
isSupplies(): this is Crate<Supplies>;
isSundries(): this is Crate<Sundries>;
}
declare let crate: Crate<{}>;
declare class MimicGuard {
isLeader(): this is MimicLeader;
isFollower(): this is MimicFollower;
}
declare class MimicLeader extends MimicGuard {
lead(): void;
}
declare class MimicFollower extends MimicGuard {
follow(): void;
}
declare let mimic: MimicGuard;
interface MimicGuardInterface {
isLeader(): this is LeadGuard;
isFollower(): this is FollowerGuard;
}
| Java |
/*
* Copyright 2015 The Kythe Authors. All rights reserved.
*
* 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.
*/
#ifndef KYTHE_CXX_COMMON_INDEXING_KYTHE_VFS_H_
#define KYTHE_CXX_COMMON_INDEXING_KYTHE_VFS_H_
#include "absl/types/optional.h"
#include "clang/Basic/FileManager.h"
#include "kythe/proto/analysis.pb.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/VirtualFileSystem.h"
namespace kythe {
/// \brief A filesystem that allows access only to mapped files.
///
/// IndexVFS normalizes all paths (using the working directory for
/// relative paths). This means that foo/bar/../baz is assumed to be the
/// same as foo/baz.
class IndexVFS : public llvm::vfs::FileSystem {
public:
/// \param working_directory The absolute path to the working directory.
/// \param virtual_files Files to map.
/// \param virtual_dirs Directories to map.
/// \param style Style used to parse incoming paths. Paths are normalized
/// to POSIX-style.
IndexVFS(const std::string& working_directory,
const std::vector<proto::FileData>& virtual_files,
const std::vector<llvm::StringRef>& virtual_dirs,
llvm::sys::path::Style style);
/// \return nullopt if `awd` is not absolute or its style could not be
/// detected; otherwise, the style of `awd`.
static absl::optional<llvm::sys::path::Style>
DetectStyleFromAbsoluteWorkingDirectory(const std::string& awd);
~IndexVFS();
/// \brief Implements llvm::vfs::FileSystem::status.
llvm::ErrorOr<llvm::vfs::Status> status(const llvm::Twine& path) override;
/// \brief Implements llvm::vfs::FileSystem::openFileForRead.
llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> openFileForRead(
const llvm::Twine& path) override;
/// \brief Unimplemented and unused.
llvm::vfs::directory_iterator dir_begin(const llvm::Twine& dir,
std::error_code& error_code) override;
/// \brief Associates a vname with a path.
void SetVName(const std::string& path, const proto::VName& vname);
/// \brief Returns the vname associated with some `FileEntry`.
/// \param entry The `FileEntry` to look up.
/// \param merge_with The `VName` to copy the vname onto.
/// \return true if a match was found; false otherwise.
bool get_vname(const clang::FileEntry* entry, proto::VName* merge_with);
/// \brief Returns the vname associated with some `path`.
/// \param path The path to look up.
/// \param merge_with The `VName` to copy the vname onto.
/// \return true if a match was found; false otherwise.
bool get_vname(const llvm::StringRef& path, proto::VName* merge_with);
/// \brief Returns a string representation of `uid` for error messages.
std::string get_debug_uid_string(const llvm::sys::fs::UniqueID& uid);
const std::string& working_directory() const { return working_directory_; }
llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
return working_directory_;
}
std::error_code setCurrentWorkingDirectory(const llvm::Twine& Path) override {
working_directory_ = Path.str();
return std::error_code();
}
private:
/// \brief Information kept on a file being tracked.
struct FileRecord {
/// Clang's VFS status record.
llvm::vfs::Status status;
/// Whether `vname` is valid.
bool has_vname;
/// This file's name, independent of path.
std::string label;
/// This file's VName, if set.
proto::VName vname;
/// This directory's children.
std::vector<FileRecord*> children;
/// This file's content.
llvm::StringRef data;
};
/// \brief A llvm::vfs::File that wraps a `FileRecord`.
class File : public llvm::vfs::File {
public:
explicit File(FileRecord* record) : record_(record) {}
llvm::ErrorOr<llvm::vfs::Status> status() override {
return record_->status;
}
std::error_code close() override { return std::error_code(); }
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> getBuffer(
const llvm::Twine& Name, int64_t FileSize, bool RequiresNullTerminator,
bool IsVolatile) override {
name_ = Name.str();
return llvm::MemoryBuffer::getMemBuffer(record_->data, name_,
RequiresNullTerminator);
}
private:
FileRecord* record_;
std::string name_;
};
/// \brief Controls what happens when a missing path node is encountered.
enum class BehaviorOnMissing {
kCreateFile, ///< Create intermediate directories and a final file.
kCreateDirectory, ///< Create intermediate and final directories.
kReturnError ///< Abort.
};
/// \brief Returns a FileRecord for the root components of `path`.
/// \param path The path to investigate.
/// \param create_if_missing If the root is missing, create it.
/// \return A `FileRecord` or nullptr on abort.
FileRecord* FileRecordForPathRoot(const llvm::Twine& path,
bool create_if_missing);
/// \param path The path to investigate.
/// \param behavior What to do if `path` does not exist.
/// \param size The size of the file to use if kCreateFile is relevant.
/// \return A `FileRecord` or nullptr on abort.
FileRecord* FileRecordForPath(llvm::StringRef path,
BehaviorOnMissing behavior, size_t size);
/// \brief Creates a new or returns an existing `FileRecord`.
/// \param parent The parent `FileRecord`.
/// \param create_if_missing Create a FileRecord if it's missing.
/// \param label The label to look for under `parent`.
/// \param type The type the record should have.
/// \param size The size that should be used if this is a file record.
FileRecord* AllocOrReturnFileRecord(FileRecord* parent,
bool create_if_missing,
llvm::StringRef label,
llvm::sys::fs::file_type type,
size_t size);
/// The virtual files that were included in the index.
const std::vector<proto::FileData>& virtual_files_;
/// The working directory. Must be absolute.
std::string working_directory_;
/// Maps root names to root nodes. For indexes captured from Unix
/// environments, there will be only one root name (the empty string).
std::map<std::string, FileRecord*> root_name_to_root_map_;
/// Maps unique IDs to file records.
std::map<std::pair<uint64_t, uint64_t>, FileRecord*> uid_to_record_map_;
};
} // namespace kythe
#endif // KYTHE_CXX_COMMON_INDEXING_KYTHE_VFS_H_
| Java |
/*
* Copyright 2017 PayPal
*
* 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.
*/
package org.squbs.actormonitor.testcube
import akka.actor.Actor
class TestActor extends Actor {
def receive = {
case x => sender() ! x
}
}
class TestActorWithRoute extends Actor {
def receive = {
case x => sender() ! x
}
}
class TestActor1 extends Actor {
def receive = {
case x =>context.stop(self)
}
}
| Java |
/*
* Copyright (C) 2013 nohana, Inc. All rights reserved.
*
* 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.
*/
package com.amalgam.database;
import android.annotation.TargetApi;
import android.database.Cursor;
import android.os.Build;
/**
* Utility for the {@link android.database.Cursor}
*/
@SuppressWarnings("unused") // public APIs
public final class CursorUtils {
private static final int TRUE = 1;
private CursorUtils() {
throw new AssertionError();
}
/**
* Close with null checks.
* @param cursor to close.
*/
public static void close(Cursor cursor) {
if (cursor == null) {
return;
}
cursor.close();
}
/**
* Read the boolean data for the column.
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the boolean value.
*/
public static boolean getBoolean(Cursor cursor, String columnName) {
return cursor != null && cursor.getInt(cursor.getColumnIndex(columnName)) == TRUE;
}
/**
* Read the int data for the column.
* @see android.database.Cursor#getInt(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the int value.
*/
public static int getInt(Cursor cursor, String columnName) {
if (cursor == null) {
return -1;
}
return cursor.getInt(cursor.getColumnIndex(columnName));
}
/**
* Read the String data for the column.
* @see android.database.Cursor#getString(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the String value.
*/
public static String getString(Cursor cursor, String columnName) {
if (cursor == null) {
return null;
}
return cursor.getString(cursor.getColumnIndex(columnName));
}
/**
* Read the short data for the column.
* @see android.database.Cursor#getShort(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the short value.
*/
public static short getShort(Cursor cursor, String columnName) {
if (cursor == null) {
return -1;
}
return cursor.getShort(cursor.getColumnIndex(columnName));
}
/**
* Read the long data for the column.
* @see android.database.Cursor#getLong(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the long value.
*/
public static long getLong(Cursor cursor, String columnName) {
if (cursor == null) {
return -1;
}
return cursor.getLong(cursor.getColumnIndex(columnName));
}
/**
* Read the double data for the column.
* @see android.database.Cursor#getDouble(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the double value.
*/
public static double getDouble(Cursor cursor, String columnName) {
if (cursor == null) {
return -1;
}
return cursor.getDouble(cursor.getColumnIndex(columnName));
}
/**
* Read the float data for the column.
* @see android.database.Cursor#getFloat(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the float value.
*/
public static float getFloat(Cursor cursor, String columnName) {
if (cursor == null) {
return -1;
}
return cursor.getFloat(cursor.getColumnIndex(columnName));
}
/**
* Read the blob data for the column.
* @see android.database.Cursor#getBlob(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the blob value.
*/
public static byte[] getBlob(Cursor cursor, String columnName) {
if (cursor == null) {
return null;
}
return cursor.getBlob(cursor.getColumnIndex(columnName));
}
/**
* Checks the type of the column.
* @see android.database.Cursor#getType(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return the type of the column.
*/
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public static int getType(Cursor cursor, String columnName) {
if (cursor == null) {
return Cursor.FIELD_TYPE_NULL;
}
return cursor.getType(cursor.getColumnIndex(columnName));
}
/**
* Checks if the column value is null or not.
* @see android.database.Cursor#isNull(int).
* @see android.database.Cursor#getColumnIndex(String).
* @param cursor the cursor.
* @param columnName the column name.
* @return true if the column value is null.
*/
public static boolean isNull(Cursor cursor, String columnName) {
return cursor != null && cursor.isNull(cursor.getColumnIndex(columnName));
}
}
| Java |
# -*- coding: utf-8 -*-
#
# Copyright 2013 - Mirantis, Inc.
#
# 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.
from pecan import rest
from pecan import expose
from pecan import request
from mistral.openstack.common import log as logging
from mistral.db import api as db_api
from mistral.services import scheduler
LOG = logging.getLogger(__name__)
class WorkbookDefinitionController(rest.RestController):
@expose()
def get(self, workbook_name):
LOG.debug("Fetch workbook definition [workbook_name=%s]" %
workbook_name)
return db_api.workbook_definition_get(workbook_name)
@expose(content_type="text/plain")
def put(self, workbook_name):
text = request.text
LOG.debug("Update workbook definition [workbook_name=%s, text=%s]" %
(workbook_name, text))
wb = db_api.workbook_definition_put(workbook_name, text)
scheduler.create_associated_triggers(wb)
return wb['definition']
| Java |
require 'spec_helper'
require 'pureftpd_helper'
describe 'PureFTPd' do
include_examples 'PureFTPd', 'postgresql'
end
| Java |
// Copyright(C) David W. Jeske, 2013
// Released to the public domain. Use, modify and relicense at will.
using System;
using System.Threading;
using System.Globalization;
using System.Drawing;
using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Audio;
using OpenTK.Audio.OpenAL;
using OpenTK.Input;
using SimpleScene;
using SimpleScene.Demos;
namespace TestBench1
{
partial class TestBench1 : TestBenchBootstrap
{
protected SSPolarJoint renderMesh5NeckJoint = null;
protected SSAnimationStateMachineSkeletalController renderMesh4AttackSm = null;
protected SSAnimationStateMachineSkeletalController renderMesh5AttackSm = null;
protected SSSimpleObjectTrackingJoint tracker0;
protected SSSimpleObjectTrackingJoint tracker4;
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
// The 'using' idiom guarantees proper resource cleanup.
// We request 30 UpdateFrame events per second, and unlimited
// RenderFrame events (as fast as the computer can handle).
using (TestBench1 game = new TestBench1())
{
game.Run(30.0);
}
}
/// <summary>Creates a 800x600 window with the specified title.</summary>
public TestBench1()
: base("TestBench1")
{
}
/// <summary>
/// Called when it is time to setup the next frame. Add you game logic here.
/// </summary>
/// <param name="e">Contains timing information for framerate independent logic.</param>
protected override void OnUpdateFrame(FrameEventArgs e)
{
base.OnUpdateFrame(e);
if (renderMesh5NeckJoint != null) {
renderMesh5NeckJoint.theta.value += (float)Math.PI / 2f * (float)e.Time;
}
}
}
} | Java |
from trex_astf_lib.api import *
# IPV6 tunable example
#
# ipv6.src_msb
# ipv6.dst_msb
# ipv6.enable
#
class Prof1():
def __init__(self):
pass
def get_profile(self, **kwargs):
# ip generator
ip_gen_c = ASTFIPGenDist(ip_range=["16.0.0.0", "16.0.0.255"], distribution="seq")
ip_gen_s = ASTFIPGenDist(ip_range=["48.0.0.0", "48.0.255.255"], distribution="seq")
ip_gen = ASTFIPGen(glob=ASTFIPGenGlobal(ip_offset="1.0.0.0"),
dist_client=ip_gen_c,
dist_server=ip_gen_s)
c_glob_info = ASTFGlobalInfo()
c_glob_info.tcp.rxbufsize = 8*1024
c_glob_info.tcp.txbufsize = 8*1024
s_glob_info = ASTFGlobalInfo()
s_glob_info.tcp.rxbufsize = 8*1024
s_glob_info.tcp.txbufsize = 8*1024
return ASTFProfile(default_ip_gen=ip_gen,
# Defaults affects all files
default_c_glob_info=c_glob_info,
default_s_glob_info=s_glob_info,
cap_list=[
ASTFCapInfo(file="../avl/delay_10_http_browsing_0.pcap", cps=1)
]
)
def register():
return Prof1()
| Java |
declare module ioc {
/**
* A base class for applications using an IOC Container
*/
abstract class ApplicationContext implements IApplicationContext {
/**
* A base class for applications using an IOC Container
* @param appName The name of your application
*/
constructor(appName: string);
/**
* A handle to access the ApplicationContext from anywhere in the application
*/
static applicationContext: IApplicationContext;
/**
* A method to override where you register your intances into the IOC Container
* @param container The IOC container created for this ApplicationContext
* @returns {}
*/
register(container: Container): void;
}
}
declare module ioc {
/**
* The IOC Container
*/
class Container {
private static container;
private registeredInstances;
private registeredScripts;
private appName;
/**
* The IOC Container
* @param appName The name of your application
* @param baseNamespace
*/
constructor(appName: string);
/**
* Get the currently assigned IOC Container
*/
static getCurrent(): Container;
/**
* Get the name of the ApplicationContext this IOC container is made from
*/
getAppName(): string;
/**
* Register an instance type
* @param type The full namespace of the type you want to instantiate
*/
register<T>(type: Function): InstanceRegistry<T>;
/**
* Resolve the registered Instance
* @param type The full namespace of the type you want to resolve
*/
resolve<T>(type: Function): T;
}
}
declare module ioc {
/**
* A helper class for aquiring animation methods
*/
class AnimationHelper {
/**
* Get the animationframe
* @param callback Function to call on AnimationFrame
*/
static getAnimationFrame(callback: FrameRequestCallback): number;
/**
* Cancel an animationFrameEvent
* @param requestId The handle of the event you want to cancel
*/
static cancelAnimationFrame(requestId: number): void;
}
}
declare module ioc {
interface IApplicationContext {
/**
* A method to override where you register your intances into the IOC Container
* @param container The IOC container created for this ApplicationContext
* @returns {}
*/
register(container: Container): void;
}
}
declare module ioc {
/**
* A base class for libraries using an IOC Container
* This is used to provide an easy way to register all the libraries components
*/
abstract class LibraryContext {
/**
* A method to override where you register your intances into the IOC Container
* @param container The IOC container created for the ApplicationContext of the using app
* @returns {}
*/
static register(container: Container): void;
}
}
declare module ioc {
interface IRegistryBase<T> {
/**
* Set the type of this Registry
* @param type The full type of the Instance you want to register
* @returns {}
*/
setType(type: Function): IRegistryBase<T>;
/**
* Return the Instance
* @returns {}
*/
getInstance(): T;
/**
* Get the type of this Registry
* @returns {}
*/
getType(): Function;
/**
* Set a function fo modify Instance that will be called directly after instantiating
* @param resolve The function to call when resolving
* @returns {}
*/
setResolveFunc(resolve: (instance: T) => T): IRegistryBase<T>;
/**
* Set a function to resolve the object in a different way than a parameterless constructor
* @param instantiate The function used to Instantiate the object
* @returns {}
*/
setInstantiateFunc(instantiate: () => T): IRegistryBase<T>;
/**
* Apply a lifetimescope to this Registry
* @param lifetime The lifetimescope to apply to
*/
setLifetimeScope(lifetime: LifetimeScope): IRegistryBase<T>;
}
}
declare module ioc {
/**
* Registry for standard Instances
*/
class InstanceRegistry<T> extends RegistryBase<T> {
protected lifeTimeScope: LifetimeScope;
protected callers: {
[key: string]: any;
};
/**
* Return the Instance
* @returns {}
*/
getInstance(): T;
/**
* Instantiate the object
*/
protected instantiate(): void;
/**
* Apply a lifetimescope to this Registry
* @param lifetime The lifetimescope to apply to
*/
setLifetimeScope(lifetime: LifetimeScope): IRegistryBase<T>;
}
}
declare module ioc {
/**
* The available lifetime scopes
*/
enum LifetimeScope {
/**
* Resolve everytime the Resolve is called
*/
PerResolveCall = 0,
/**
* Allow only one Instance of this type
*/
SingleInstance = 1,
/**
* Return only one Instance for every dependency
*/
PerDependency = 2,
}
}
declare module ioc {
/**
* A base class to provide basic functionality for al Registries
*/
class RegistryBase<T> implements IRegistryBase<T> {
protected type: Function;
protected object: any;
protected initiated: boolean;
protected loaded: boolean;
protected resolveFunc: (instance: T) => any;
protected instantiateFunc: () => T;
/**
* Return the Instance
* @returns {}
*/
getInstance(): T;
/**
* Get the type of this Registry
* @returns {}
*/
getType(): Function;
/**
* Set the type of this Registry
* @param type The full type of the Instance you want to register
* @returns {}
*/
setType(type: Function | T): IRegistryBase<T>;
/**
* Method to override that Instantiates the object
*/
protected instantiate(): void;
/**
* Set a function fo modify Instance that will be called directly after instantiating
* @param resolve The function to call when resolving
* @returns {}
*/
setResolveFunc(resolve: (instance: T) => T): IRegistryBase<T>;
/**
* Set a function to resolve the object in a different way than a parameterless constructor
* @param instantiate The function used to Instantiate the object
* @returns {}
*/
setInstantiateFunc(instantiate: () => T): IRegistryBase<T>;
/**
* Apply a lifetimescope to this Registry
* @param lifetime The lifetimescope to apply to
*/
setLifetimeScope(lifetime: LifetimeScope): IRegistryBase<T>;
}
}
//# sourceMappingURL=SIOCC-TS.d.ts.map | Java |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* 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.
*/
package org.kuali.kra.irb;
import org.kuali.kra.irb.actions.submit.ProtocolSubmission;
import org.kuali.kra.irb.personnel.ProtocolPerson;
import org.kuali.kra.irb.personnel.ProtocolUnit;
import org.kuali.kra.irb.protocol.funding.ProtocolFundingSource;
import org.kuali.kra.irb.protocol.location.ProtocolLocation;
import org.kuali.kra.irb.protocol.research.ProtocolResearchArea;
import org.kuali.kra.protocol.CriteriaFieldHelper;
import org.kuali.kra.protocol.ProtocolBase;
import org.kuali.kra.protocol.ProtocolDaoOjbBase;
import org.kuali.kra.protocol.ProtocolLookupConstants;
import org.kuali.kra.protocol.actions.ProtocolActionBase;
import org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase;
import org.kuali.kra.protocol.personnel.ProtocolPersonBase;
import org.kuali.kra.protocol.personnel.ProtocolUnitBase;
import org.kuali.rice.krad.service.util.OjbCollectionAware;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
*
* This class is the implementation for ProtocolDao interface.
*/
class ProtocolDaoOjb extends ProtocolDaoOjbBase<Protocol> implements OjbCollectionAware, ProtocolDao {
/**
* The APPROVED_SUBMISSION_STATUS_CODE contains the status code of approved protocol submissions (i.e. 203).
*/
private static final Collection<String> APPROVED_SUBMISSION_STATUS_CODES = Arrays.asList(new String[] {"203"});
/**
* The ACTIVE_PROTOCOL_STATUS_CODES contains the various active status codes for a protocol.
* <li> 200 - Active, open to enrollment
* <li> 201 - Active, closed to enrollment
* <li> 202 - Active, data analysis only
*/
private static final Collection<String> ACTIVE_PROTOCOL_STATUS_CODES = Arrays.asList(new String[] {"200", "201", "202"});
/**
* The REVISION_REQUESTED_PROTOCOL_ACTION_TYPE_CODES contains the protocol action codes for the protocol revision requests.
* <li> 202 - Specific Minor Revision
* <li> 203 - Substantive Revision Requested
*/
private static final Collection<String> REVISION_REQUESTED_PROTOCOL_ACTION_TYPE_CODES = Arrays.asList(new String[] {"202", "203"});
/**
* The REVISION_REQUESTED_PROTOCOL_STATUS_CODES contains the various status codes for protocol revision requests.
* <li> 102 - Specific Minor Revision
* <li> 104 - Substantive Revision Requested
*/
private static final Collection<String> REVISION_REQUESTED_PROTOCOL_STATUS_CODES = Arrays.asList(new String[] {"102", "104"});
private static final Collection<String> PENDING_AMENDMENT_RENEWALS_STATUS_CODES = Arrays.asList(new String[]{"100", "101", "102", "103", "104", "105", "106"});
@Override
protected Collection<String> getApprovedSubmissionStatusCodesHook() {
return APPROVED_SUBMISSION_STATUS_CODES;
}
@Override
protected Collection<String> getActiveProtocolStatusCodesHook() {
return ACTIVE_PROTOCOL_STATUS_CODES;
}
@Override
protected Collection<String> getRevisionRequestedProtocolActionTypeCodesHook() {
return REVISION_REQUESTED_PROTOCOL_ACTION_TYPE_CODES;
}
@Override
protected Collection<String> getRevisionRequestedProtocolStatusCodesHook() {
return REVISION_REQUESTED_PROTOCOL_STATUS_CODES;
}
@Override
protected Class<? extends ProtocolActionBase> getProtocolActionBOClassHoook() {
return org.kuali.kra.irb.actions.ProtocolAction.class;
}
@Override
protected void initRoleListsHook(List<String> investigatorRoles, List<String> personRoles) {
investigatorRoles.add("PI");
investigatorRoles.add("COI");
personRoles.add("SP");
personRoles.add("CA");
personRoles.add("CRC");
}
@Override
protected Collection<String> getPendingAmendmentRenewalsProtocolStatusCodesHook() {
return PENDING_AMENDMENT_RENEWALS_STATUS_CODES;
}
@Override
protected Class<? extends ProtocolBase> getProtocolBOClassHook() {
return Protocol.class;
}
@Override
protected Class<? extends ProtocolPersonBase> getProtocolPersonBOClassHook() {
return ProtocolPerson.class;
}
@Override
protected Class<? extends ProtocolUnitBase> getProtocolUnitBOClassHook() {
return ProtocolUnit.class;
}
@Override
protected Class<? extends ProtocolSubmissionBase> getProtocolSubmissionBOClassHook() {
return ProtocolSubmission.class;
}
@Override
protected List<CriteriaFieldHelper> getCriteriaFields() {
List<CriteriaFieldHelper> criteriaFields = new ArrayList<CriteriaFieldHelper>();
criteriaFields.add(new CriteriaFieldHelper(ProtocolLookupConstants.Property.KEY_PERSON,
ProtocolLookupConstants.Property.PERSON_NAME,
ProtocolPerson.class));
criteriaFields.add(new CriteriaFieldHelper(ProtocolLookupConstants.Property.INVESTIGATOR,
ProtocolLookupConstants.Property.PERSON_NAME,
ProtocolPerson.class));
criteriaFields.add(new CriteriaFieldHelper(ProtocolLookupConstants.Property.FUNDING_SOURCE,
ProtocolLookupConstants.Property.FUNDING_SOURCE_NUMBER,
ProtocolFundingSource.class));
criteriaFields.add(new CriteriaFieldHelper(ProtocolLookupConstants.Property.PERFORMING_ORGANIZATION_ID,
ProtocolLookupConstants.Property.ORGANIZATION_ID,
ProtocolLocation.class));
criteriaFields.add(new CriteriaFieldHelper(ProtocolLookupConstants.Property.RESEARCH_AREA_CODE,
ProtocolLookupConstants.Property.RESEARCH_AREA_CODE,
ProtocolResearchArea.class));
return criteriaFields;
}
}
| Java |
/**
* Copyright (c) 2005-20010 springside.org.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* $Id: PropertyFilter.java 1205 2010-09-09 15:12:17Z calvinxiu $
*/
package com.snakerflow.framework.orm;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import com.snakerflow.framework.utils.ConvertUtils;
import com.snakerflow.framework.utils.ServletUtils;
import org.springframework.util.Assert;
/**
* 与具体ORM实现无关的属性过滤条件封装类, 主要记录页面中简单的搜索过滤条件.
*
* @author calvin
*/
public class PropertyFilter {
/** 多个属性间OR关系的分隔符. */
public static final String OR_SEPARATOR = "_OR_";
/** 属性比较类型. */
public enum MatchType {
EQ, LIKE, LT, GT, LE, GE;
}
/** 属性数据类型. */
public enum PropertyType {
S(String.class), I(Integer.class), L(Long.class), N(Double.class), D(Date.class), B(Boolean.class);
private Class<?> clazz;
private PropertyType(Class<?> clazz) {
this.clazz = clazz;
}
public Class<?> getValue() {
return clazz;
}
}
private MatchType matchType = null;
private Object matchValue = null;
private Class<?> propertyClass = null;
private String[] propertyNames = null;
public PropertyFilter() {
}
/**
* @param filterName 比较属性字符串,含待比较的比较类型、属性值类型及属性列表.
* eg. LIKES_NAME_OR_LOGIN_NAME
* @param value 待比较的值.
*/
public PropertyFilter(final String filterName, final String value) {
String firstPart = StringUtils.substringBefore(filterName, "_");
String matchTypeCode = StringUtils.substring(firstPart, 0, firstPart.length() - 1);
String propertyTypeCode = StringUtils.substring(firstPart, firstPart.length() - 1, firstPart.length());
try {
matchType = Enum.valueOf(MatchType.class, matchTypeCode);
} catch (RuntimeException e) {
throw new IllegalArgumentException("filter名称" + filterName + "没有按规则编写,无法得到属性比较类型.", e);
}
try {
propertyClass = Enum.valueOf(PropertyType.class, propertyTypeCode).getValue();
} catch (RuntimeException e) {
throw new IllegalArgumentException("filter名称" + filterName + "没有按规则编写,无法得到属性值类型.", e);
}
String propertyNameStr = StringUtils.substringAfter(filterName, "_");
Assert.isTrue(StringUtils.isNotBlank(propertyNameStr), "filter名称" + filterName + "没有按规则编写,无法得到属性名称.");
propertyNames = StringUtils.splitByWholeSeparator(propertyNameStr, PropertyFilter.OR_SEPARATOR);
this.matchValue = ConvertUtils.convertStringToObject(value, propertyClass);
}
/**
* 从HttpRequest中创建PropertyFilter列表, 默认Filter属性名前缀为filter.
*
* @see #buildFromHttpRequest(HttpServletRequest, String)
*/
public static List<PropertyFilter> buildFromHttpRequest(final HttpServletRequest request) {
return buildFromHttpRequest(request, "filter");
}
/**
* 从HttpRequest中创建PropertyFilter列表
* PropertyFilter命名规则为Filter属性前缀_比较类型属性类型_属性名.
*
* eg.
* filter_EQS_name
* filter_LIKES_name_OR_email
*/
public static List<PropertyFilter> buildFromHttpRequest(final HttpServletRequest request, final String filterPrefix) {
List<PropertyFilter> filterList = new ArrayList<PropertyFilter>();
//从request中获取含属性前缀名的参数,构造去除前缀名后的参数Map.
Map<String, Object> filterParamMap = ServletUtils.getParametersStartingWith(request, filterPrefix + "_");
//分析参数Map,构造PropertyFilter列表
for (Map.Entry<String, Object> entry : filterParamMap.entrySet()) {
String filterName = entry.getKey();
String value = (String) entry.getValue();
//如果value值为空,则忽略此filter.
if (StringUtils.isNotBlank(value)) {
PropertyFilter filter = new PropertyFilter(filterName, value);
filterList.add(filter);
}
}
return filterList;
}
/**
* 获取比较值的类型.
*/
public Class<?> getPropertyClass() {
return propertyClass;
}
/**
* 获取比较方式.
*/
public MatchType getMatchType() {
return matchType;
}
/**
* 获取比较值.
*/
public Object getMatchValue() {
return matchValue;
}
/**
* 获取比较属性名称列表.
*/
public String[] getPropertyNames() {
return propertyNames;
}
/**
* 获取唯一的比较属性名称.
*/
public String getPropertyName() {
Assert.isTrue(propertyNames.length == 1, "There are not only one property in this filter.");
return propertyNames[0];
}
/**
* 是否比较多个属性.
*/
public boolean hasMultiProperties() {
return (propertyNames.length > 1);
}
}
| Java |
/*
* Copyright 2019 MovingBlocks
*
* 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.
*/
package org.terasology.gestalt.module.exceptions;
/**
* Exception for when metadata cannot be resolved for a module
*/
public class MissingModuleMetadataException extends RuntimeException {
public MissingModuleMetadataException() {
}
public MissingModuleMetadataException(String s) {
super(s);
}
public MissingModuleMetadataException(String s, Throwable throwable) {
super(s, throwable);
}
}
| Java |
#pragma once
#ifndef UTIL_LOGGER_HPP
#define UTIL_LOGGER_HPP
#include <gsl/span>
#include <string>
#include <iterator>
#include <vector>
#include <cstdlib>
/**
* @brief A utility which logs a limited amount of entries
* @details Logs strings inside a ringbuffer.
*
* If the buffer is full, the oldest entry will be overwritten.
*
*/
class Logger {
public:
using Log = gsl::span<char>;
public:
Logger(Log& log, Log::index_type = 0);
/**
* @brief Log a string
* @details
* Write the string to the buffer a zero at the end to indicate end of string.
*
* If the string overlaps another string, it will clear the remaining string with zeros.
*
* @param str Message to be logged
*/
void log(const std::string& str);
/**
* @brief Retreive all entries from the log
* @details Iterates forward over the whole buffer, building strings on the way
*
* Order old => new
*
* @return a vector with all the log entries
*/
std::vector<std::string> entries() const;
/**
* @brief Retreive entries N from the log
* @details
* Retrieves N (or less) latest entries from the log,
* starting with the oldest.
*
*
* @param n maximum number of entries
* @return a vector with entries
*/
std::vector<std::string> entries(size_t n) const;
/**
* @brief Clear the log
* @details Sets every byte to 0 and set position to start at the beginning.
*/
void flush();
/**
* @brief Size of the log in bytes.
* @details Assumes every byte is filled with either data or 0
* @return size in bytes
*/
auto size() const
{ return log_.size(); }
private:
/** The underlaying log */
Log& log_;
/**
* @brief A "circular" iterator, operating on a Logger::Log
* @details Wraps around everytime it reaches the end
*/
class iterator : public Log::iterator {
public:
using base = Log::iterator;
// inherit constructors
using base::base;
constexpr iterator& operator++() noexcept
{
//Expects(span_ && index_ >= 0);
index_ = (index_ < span_->size()-1) ? index_+1 : 0;
return *this;
}
constexpr iterator& operator--() noexcept
{
//Expects(span_ && index_ < span_->size());
index_ = (index_ > 0) ? index_-1 : span_->size()-1;
return *this;
}
constexpr iterator& operator+=(difference_type n) noexcept
{
//Expects(span_);
index_ = (index_ + n < span_->size()) ? index_ + n : std::abs((n - ((span_->size()) - index_)) % span_->size());
return *this;
}
constexpr span_iterator& operator-=(difference_type n) noexcept
{
// No use case for this (yet)
return *this += -n;
}
}; // < class Logger::iterator
/** Current position in the log */
iterator pos_;
}; // << class Logger
#endif
| Java |
/*!
* Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
overflow-x: hidden;
}
p {
font-size: 20px;
}
p.small {
font-size: 16px;
}
a,
a:hover,
a:focus,
a:active,
a.active {
outline: 0;
color: #18bc9c;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-transform: uppercase;
font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 700;
}
hr.star-light,
hr.star-primary,
hr.star-dark {
margin: 25px auto 30px;
padding: 0;
max-width: 250px;
border: 0;
border-top: solid 5px;
text-align: center;
}
hr.star-light:after,
hr.star-primary:after,
hr.star-dark:after {
content: "\f005";
display: inline-block;
position: relative;
top: -.8em;
padding: 0 .25em;
font-family: FontAwesome;
font-size: 2em;
}
hr.star-light,
hr.star-dark {
border-color: #fff;
}
hr.star-light:after {
color: #fff;
background-color: #18bc9c;
}
hr.star-dark:after {
color: #fff;
background-color: #2c3e50;
}
hr.star-primary {
border-color: #2c3e50;
}
hr.star-primary:after {
color: #2c3e50;
background-color: #fff;
}
.img-centered {
margin: 0 auto;
}
header {
text-align: center;
color: #fff;
background: #18bc9c;
}
header .container {
padding-top: 100px;
padding-bottom: 50px;
}
header img {
display: block;
margin: 0 auto 20px;
}
header .intro-text .name {
display: block;
text-transform: uppercase;
font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 2em;
font-weight: 700;
}
header .intro-text .skills {
font-size: 1.25em;
font-weight: 300;
}
@media(min-width:768px) {
header .container {
padding-top: 200px;
padding-bottom: 100px;
}
header .intro-text .name {
font-size: 4.75em;
}
header .intro-text .skills {
font-size: 1.75em;
}
}
@media(min-width:768px) {
.navbar-fixed-top {
padding: 25px 0;
-webkit-transition: padding .3s;
-moz-transition: padding .3s;
transition: padding .3s;
}
.navbar-fixed-top .navbar-brand {
font-size: 2em;
-webkit-transition: all .3s;
-moz-transition: all .3s;
transition: all .3s;
}
.navbar-fixed-top.navbar-shrink {
padding: 10px 0;
}
.navbar-fixed-top.navbar-shrink .navbar-brand {
font-size: 1.5em;
}
}
.navbar {
text-transform: uppercase;
font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 700;
}
.navbar a:focus {
outline: 0;
}
.navbar .navbar-nav {
letter-spacing: 1px;
}
.navbar .navbar-nav li a:focus {
outline: 0;
}
.navbar-default,
.navbar-inverse {
border: 0;
}
section {
padding: 100px 0;
}
section h2 {
margin: 0;
font-size: 3em;
}
section.success {
color: #fff;
background: #18bc9c;
}
@media(max-width:767px) {
section {
padding: 75px 0;
}
section.first {
padding-top: 75px;
}
}
#portfolio .portfolio-item {
right: 0;
margin: 0 0 15px;
}
#portfolio .portfolio-item .portfolio-link {
display: block;
position: relative;
margin: 0 auto;
max-width: 400px;
}
#portfolio .portfolio-item .portfolio-link .caption {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
background: rgba(24, 188, 156, .9);
-webkit-transition: all ease .5s;
-moz-transition: all ease .5s;
transition: all ease .5s;
}
#portfolio .portfolio-item .portfolio-link .caption:hover {
opacity: 1;
}
#portfolio .portfolio-item .portfolio-link .caption .caption-content {
position: absolute;
top: 50%;
width: 100%;
height: 20px;
margin-top: -12px;
text-align: center;
font-size: 20px;
color: #fff;
}
#portfolio .portfolio-item .portfolio-link .caption .caption-content i {
margin-top: -12px;
}
#portfolio .portfolio-item .portfolio-link .caption .caption-content h3,
#portfolio .portfolio-item .portfolio-link .caption .caption-content h4 {
margin: 0;
}
#portfolio * {
z-index: 2;
}
@media(min-width:767px) {
#portfolio .portfolio-item {
margin: 0 0 30px;
}
}
.btn-outline {
margin-top: 15px;
border: solid 2px #fff;
font-size: 20px;
color: #fff;
background: 0 0;
transition: all .3s ease-in-out;
}
.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active,
.btn-outline.active {
border: solid 2px #fff;
color: #18bc9c;
background: #fff;
}
.floating-label-form-group {
position: relative;
margin-bottom: 0;
padding-bottom: .5em;
}
.floating-label-form-group input,
.floating-label-form-group textarea {
z-index: 1;
position: relative;
padding-right: 0;
padding-left: 0;
border: 0;
border-radius: 0;
font-size: 1.5em;
background: 0 0;
box-shadow: none!important;
resize: none;
}
.floating-label-form-group label {
display: block;
z-index: 0;
position: relative;
top: 2em;
margin: 0;
font-size: .85em;
line-height: 1.764705882em;
vertical-align: middle;
vertical-align: baseline;
opacity: 0;
-webkit-transition: top .3s ease, opacity .3s ease;
-moz-transition: top .3s ease, opacity .3s ease;
-ms-transition: top .3s ease, opacity .3s ease;
transition: top .3s ease, opacity .3s ease;
}
.floating-label-form-group::not(:first-child) {
padding-left: 14px;
}
.floating-label-form-group-with-value label {
top: 0;
opacity: 1;
}
.floating-label-form-group-with-focus label {
color: #18bc9c;
}
form .row:first-child .floating-label-form-group {
}
footer {
color: #fff;
}
footer h3 {
margin-bottom: 30px;
}
footer .footer-above {
padding-top: 50px;
background-color: #2c3e50;
}
footer .footer-col {
margin-bottom: 50px;
}
footer .footer-below {
padding: 25px 0;
background-color: #233140;
}
.btn-social {
display: inline-block;
width: 50px;
height: 50px;
border: 2px solid #fff;
border-radius: 100%;
text-align: center;
font-size: 20px;
line-height: 45px;
}
.btn:focus,
.btn:active,
.btn.active {
outline: 0;
}
.scroll-top {
z-index: 1049;
position: fixed;
right: 2%;
bottom: 2%;
width: 50px;
height: 50px;
}
.scroll-top .btn {
width: 50px;
height: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 28px;
}
.scroll-top .btn:focus {
outline: 0;
}
.portfolio-modal .modal-content {
padding: 100px 0;
min-height: 100%;
border: 0;
border-radius: 0;
text-align: center;
background-clip: border-box;
-webkit-box-shadow: none;
box-shadow: none;
}
.portfolio-modal .modal-content h2 {
margin: 0;
font-size: 3em;
}
.portfolio-modal .modal-content img {
margin-bottom: 30px;
}
.portfolio-modal .modal-content .item-details {
margin: 30px 0;
}
.portfolio-modal .close-modal {
position: absolute;
top: 25px;
right: 25px;
width: 75px;
height: 75px;
background-color: transparent;
cursor: pointer;
}
.portfolio-modal .close-modal:hover {
opacity: .3;
}
.portfolio-modal .close-modal .lr {
z-index: 1051;
width: 1px;
height: 75px;
margin-left: 35px;
background-color: #2c3e50;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
.portfolio-modal .close-modal .lr .rl {
z-index: 1052;
width: 1px;
height: 75px;
background-color: #2c3e50;
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.portfolio-modal .modal-backdrop {
display: none;
opacity: 0;
}
.bar {
height: 18px;
background: green;
}
/*
* * jQuery File Upload Plugin CSS 1.3.0
* * https://github.com/blueimp/jQuery-File-Upload
* *
* * Copyright 2013, Sebastian Tschan
* * https://blueimp.net
* *
* * Licensed under the MIT license:
* * http://www.opensource.org/licenses/MIT
* */
.fileinput-button {
position: relative;
overflow: hidden;
}
.fileinput-button input {
position: absolute;
top: 0;
right: 0;
margin: 0;
opacity: 0;
-ms-filter: 'alpha(opacity=0)';
font-size: 200px;
direction: ltr;
cursor: pointer;
}
/* Fixes for IE < 8 */
@media screen\9 {
.fileinput-button input {
filter: alpha(opacity=0);
font-size: 100%;
height: 100%;
}
}
| Java |
<?php
namespace Scalr\Service\CloudStack\Services\Vpn\DataType;
use Scalr\Service\CloudStack\DataType\AbstractDataType;
/**
* AddVpnUserData
*
* @author Vlad Dobrovolskiy <[email protected]>
* @since 4.5.2
*/
class AddVpnUserData extends AbstractDataType
{
/**
* Required
* Password for the username
*
* @var string
*/
public $password;
/**
* Required
* Username for the vpn user
*
* @var string
*/
public $username;
/**
* An optional account for the vpn user.
* Must be used with domainId.
*
* @var string
*/
public $account;
/**
* An optional domainId for the vpn user.
* If the account parameter is used, domainId must also be used.
*
* @var string
*/
public $domainid;
/**
* Add vpn user to the specific project
*
* @var string
*/
public $projectid;
/**
* Constructor
*
* @param string $password Password for the username
* @param string $username Username for the vpn user
*/
public function __construct($password, $username)
{
$this->password = $password;
$this->username = $username;
}
}
| Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.