answer
stringlengths
15
1.25M
@<API key> package org.sonar.ce.configuration; import javax.annotation.<API key>;
package spitter.web; import static org.hamcrest.Matchers.*; import static org.mockito.Mockito.*; import static org.springframework.test.web.servlet.request.<API key>.*; import static org.springframework.test.web.servlet.result.<API key>.*; 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.<API key>; import spittr.Spittle; import spittr.data.SpittleRepository; import spittr.web.SpittleController; public class <API key> { @Test public void <API key>() 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 <API key>("/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 <API key>() 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 <API key>("/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; } }
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="<API key>">Jonáš Tajrych, Senior Software Engineer at Skype at Microsoft</cite> </blockquote>
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 <API key> AddSaml2( this <API key> 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 <API key> AddSaml2( this <API key> 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 <API key> AddSaml2( this <API key> builder, string scheme, string displayName, Action<Saml2Options> configureOptions) { if(builder == null) { throw new <API key>(nameof(builder)); } builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<<API key><Saml2Options>, <API key>>()); builder.Services.Configure<<API key>>(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; } } }
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); } } }
<?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' => '632', 'I have read and agree' => '', 'Ibos agreement' => 'IBOS', 'Custom module' => '', 'Install now' => '', '<API key>' => ' mysql ', '<API key>' => ' PHP gethostbyname ', '<API key>' => ' php.ini allow_url_fopen ', 'Advice_scandir' => ' PHP scandir ', 'Advice_bcmul' => ' php.ini bcmath ', '<API key>' => ' PHP XML', 'Advice_fsockopen' => ' php.ini allow_url_fopen ', 'Advice_pfsockopen' => ' php.ini allow_url_fopen ', '<API key>' => ' PHP <API key> ', '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' => '632', '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 ', );
#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); <API key> (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"); <API key> (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); <API key> (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 <API key> /* 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 /* <API key> */ 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 <API key> 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; }
br.test.GwtTestRunner.initialize(); describe("Dashboard App", function() { fixtures("brjs.dashboard.app.testing.<API key>"); 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"); }); });
// System.Drawing.Design.ToolboxService // Authors: // Sebastien Pouliot <sebastien@ximian.com> // 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, // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // included in all copies or substantial portions of the Software. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // 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 : <API key>, IToolboxService { [MonoTODO] protected ToolboxService () { throw new <API key> (); } protected abstract <API key> CategoryNames { get; } protected abstract string SelectedCategory { get; set; } protected abstract <API key> <API key> { get; set; } [MonoTODO] protected virtual <API key> CreateItemContainer (IDataObject dataObject) { throw new <API key> (); } [MonoTODO] protected virtual <API key> CreateItemContainer (ToolboxItem item, IDesignerHost link) { throw new <API key> (); } [MonoTODO] protected virtual void FilterChanged () { throw new <API key> (); } protected abstract IList GetItemContainers (); protected abstract IList GetItemContainers (string categoryName); [MonoTODO] protected virtual bool IsItemContainer (IDataObject dataObject, IDesignerHost host) { throw new <API key> (); } [MonoTODO] protected bool <API key> (<API key> container, IDesignerHost host) { throw new <API key> (); } protected abstract void Refresh (); [MonoTODO] protected virtual void <API key> () { throw new <API key> (); } [MonoTODO] protected virtual bool SetCursor () { throw new <API key> (); } [MonoTODO] public static void UnloadToolboxItems () { throw new <API key> (); } [MonoTODO] public static ToolboxItem GetToolboxItem (Type toolType) { throw new <API key> (); } [MonoTODO] public static ToolboxItem GetToolboxItem (Type toolType, bool nonPublic) { throw new <API key> (); } [MonoTODO] public static ICollection GetToolboxItems (AssemblyName an) { throw new <API key> (); } [MonoTODO] public static ICollection GetToolboxItems (AssemblyName an, bool throwOnError) { throw new <API key> (); } [MonoTODO] public static ICollection GetToolboxItems (Assembly a, string newCodeBase) { throw new <API key> (); } [MonoTODO] public static ICollection GetToolboxItems (Assembly a, string newCodeBase, bool throwOnError) { throw new <API key> (); } // <API key> ICollection <API key>.GetComponentTypes (IDesignerHost designerHost, Type baseType) { throw new <API key> (); } // IToolboxService <API key> IToolboxService.CategoryNames { get { throw new <API key> (); } } string IToolboxService.SelectedCategory { get { throw new <API key> (); } set { throw new <API key> (); } } void IToolboxService.AddCreator (<API key> creator, string format) { throw new <API key> (); } void IToolboxService.AddCreator (<API key> creator, string format, IDesignerHost host) { throw new <API key> (); } void IToolboxService.<API key> (ToolboxItem toolboxItem, IDesignerHost host) { throw new <API key> (); } void IToolboxService.<API key> (ToolboxItem toolboxItem, string category, IDesignerHost host) { throw new <API key> (); } void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem, String category) { throw new <API key> (); } void IToolboxService.AddToolboxItem (ToolboxItem toolboxItem) { throw new <API key> (); } ToolboxItem IToolboxService.<API key> (object serializedObject) { throw new <API key> (); } ToolboxItem IToolboxService.<API key> (object serializedObject, IDesignerHost host) { throw new <API key> (); } ToolboxItem IToolboxService.<API key> () { throw new <API key> (); } ToolboxItem IToolboxService.<API key> (IDesignerHost host) { throw new <API key> (); } <API key> IToolboxService.GetToolboxItems () { throw new <API key> (); } <API key> IToolboxService.GetToolboxItems (IDesignerHost host) { throw new <API key> (); } <API key> IToolboxService.GetToolboxItems (String category) { throw new <API key> (); } <API key> IToolboxService.GetToolboxItems (String category, IDesignerHost host) { throw new <API key> (); } bool IToolboxService.IsSupported (object serializedObject, ICollection filterAttributes) { throw new <API key> (); } bool IToolboxService.IsSupported (object serializedObject, IDesignerHost host) { throw new <API key> (); } bool IToolboxService.IsToolboxItem (object serializedObject) { throw new <API key> (); } bool IToolboxService.IsToolboxItem (object serializedObject, IDesignerHost host) { throw new <API key> (); } void IToolboxService.Refresh () { throw new <API key> (); } void IToolboxService.RemoveCreator (string format) { throw new <API key> (); } void IToolboxService.RemoveCreator (string format, IDesignerHost host) { throw new <API key> (); } void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem) { throw new <API key> (); } void IToolboxService.RemoveToolboxItem (ToolboxItem toolboxItem, string category) { throw new <API key> (); } void IToolboxService.<API key> () { throw new <API key> (); } object IToolboxService.<API key> (ToolboxItem toolboxItem) { throw new <API key> (); } bool IToolboxService.SetCursor () { throw new <API key> (); } void IToolboxService.<API key> (ToolboxItem toolboxItem) { throw new <API key> (); } } } #endif
<?php 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 <API key>() : float{ return 0.6; } }
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 <API key>(): org.kevoree.modeling.KContentKey; static <API key>(): org.kevoree.modeling.KContentKey; static createRootTimeTree(universeID: number): org.kevoree.modeling.KContentKey; static createLastPrefix(): org.kevoree.modeling.KContentKey; static <API key>(prefix: number): org.kevoree.modeling.KContentKey; static <API key>(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; <API key>(dataBase: org.kevoree.modeling.cdn.<API key>): 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; <API key>(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; <API key>(universe: number): A; <API key>(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; <API key>(p_driver: org.kevoree.modeling.cdn.<API key>): 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; <API key>(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; <API key>(p: org.kevoree.modeling.meta.KMetaReference): org.kevoree.modeling.meta.KMetaReference; <API key>(p: org.kevoree.modeling.meta.KMetaAttribute): org.kevoree.modeling.meta.KMetaAttribute; <API key>(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 <API key> { 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; <API key>(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 <API key> implements org.kevoree.modeling.cdn.<API key> { private backend; private <API key>; 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; <API key>(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 <API key>; 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 <API key> 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 <API key> 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 <API key>(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 <API key>(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 <API key>(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 <API key> { 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; <API key>(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 <API key> { 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 <API key>: 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; <API key>(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 <API key> { 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 <API key> { private alpha; private iterations; getAlpha(): number; setAlpha(alpha: number): void; getIterations(): number; setIterations(iterations: number): void; private calculate(weights, features); } class <API key> { private alpha; private iterations; getAlpha(): number; setAlpha(alpha: number): void; getIterations(): number; setIterations(iterations: number): void; private calculate(weights, features); } class <API key> { maxDegree: number; toleratedErr: number; getToleratedErr(): number; setToleratedErr(toleratedErr: number): void; getMaxDegree(): number; setMaxDegree(maxDegree: number): void; } class <API key> { 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 <API key> { 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 <API key> 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 <API key> 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 <API key> 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; <API key>(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 <API key> 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 <API key>(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 { <API key>(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; <API key>(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; <API key>(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.<API key>; 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.<API key>): 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; <API key>(driver: org.kevoree.modeling.cdn.<API key>): 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; <API key>(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 <API key> { 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 <API key>; private static <API key>; private _db; private _operationManager; private _scheduler; private _model; private _factory; private <API key>; private <API key>; 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; <API key>(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.<API key>): 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.<API key>; <API key>(p_dataBase: org.kevoree.modeling.cdn.<API key>): 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 <API key>(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 <API key> implements org.kevoree.modeling.memory.manager.<API key> { 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.<API key>; 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 <API key>(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 <API key><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 <API key> 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; <API key>(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 <API key>; private <API key>; private _lookupCacheValues; private <API key>; 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 <API key>(key); private tryLookupCache(key); private resetCache(); private <API key>(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); <API key>(key: number): number; private <API key>(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 <API key>; private _nextCacheElem; private _counter; private _dirty; constructor(); size(): number; counter(): number; inc(): void; dec(): void; free(metaModel: org.kevoree.modeling.meta.KMetaModel): void; private <API key>(key); private resetCache(); private <API key>(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; <API key>(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 <API key>(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 <API key>(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 <API key>: number; static <API key>: number; static <API key>: number; static load(payload: string): org.kevoree.modeling.message.KMessage; } module impl { class <API key> implements org.kevoree.modeling.message.KMessage { id: number; key: org.kevoree.modeling.KContentKey; json(): string; type(): number; } class <API key> 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 <API key> implements org.kevoree.modeling.message.KMessage { id: number; classIndex: number; opIndex: number; params: string[]; key: org.kevoree.modeling.KContentKey; json(): string; type(): number; } class <API key> 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; <API key>(universe: number): org.kevoree.modeling.KUniverse<any, any, any>; <API key>(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 <API key>; 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 <API key>(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; <API key>(operationEvent: org.kevoree.modeling.message.KMessage): void; } module impl { class <API key> 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; <API key>(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 <API key> 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 <API key>(p_action); traverse(p_metaReference: org.kevoree.modeling.meta.KMetaReference): org.kevoree.modeling.traversal.KTraversal; traverseQuery(<API key>: 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 <API key> 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 <API key> 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 <API key> 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 <API key> 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 <API key> { 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; } } } } }
// This file is part of Bytecoin. // Bytecoin is free software: you can redistribute it and/or modify // (at your option) any later version. // Bytecoin is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #pragma once #include <list> #include <boost/<API key>.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::<API key>< 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 <API key>() const { return m_peers_white.size(); } size_t <API key>() 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::<API key>) const; bool get_peerlist_full(std::list<PeerlistEntry>& pl_gray, std::list<PeerlistEntry>& pl_white) const; bool <API key>(PeerlistEntry& p, size_t i) const; bool <API key>(PeerlistEntry& p, size_t i) const; bool <API key>(const PeerlistEntry& pr); bool <API key>(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 <API key>(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; }; }
/** * File Filtering. * @author <a href="mailto:cher@riedquat.de">Christian Hujer</a> * @since 0.1 */ package net.sf.japi.util.filter.file;
// System.Net.WebResponse // Lawrence Pit (loz@cable.a2000.nl) // 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, // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // included in all copies or substantial portions of the Software. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // 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 <API key> (); } // Properties public virtual long ContentLength { get { throw new <API key> (); } set { throw new <API key> (); } } public virtual string ContentType { get { throw new <API key> (); } set { throw new <API key> (); } } public virtual WebHeaderCollection Headers { get { throw new <API key> (); } } static Exception GetMustImplement () { return new <API key> (); } [MonoTODO] public virtual bool IsFromCache { get { return false; // Better to return false than to kill the application // throw GetMustImplement (); } } [MonoTODO] public virtual bool <API key> { get { throw GetMustImplement (); } } public virtual Uri ResponseUri { get { throw new <API key> (); } } #if NET_4_0 [MonoTODO ("for portable library support")] public virtual bool SupportsHeaders { get { throw new <API key> (); } } #endif // Methods public virtual void Close() { throw new <API key> (); } public virtual Stream GetResponseStream() { throw new <API key> (); } #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 <API key> (); } [MonoTODO] protected virtual void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext) { throw GetMustImplement (); } } }
{loop name="product.infos" type="product" id=$product_id limit="1" with_prev_next_info="1" <API key>="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}
#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 = ['ии', 'ию'] 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
var searchData= [ ['<API key>',['keep_history.cpp',['../keep__history_8cpp.html',1,'']]], ['<API key>',['keep_history_pass.cpp',['../<API key>.html',1,'']]], ['<API key>',['keep_history_pass.h',['../<API key>.html',1,'']]] ];
package com.example.jake.jtdavids_reflex; import android.content.SharedPreferences; import java.util.ArrayList; import java.util.Collections; import java.util.List; 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 ("<API key>\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"); } }
#ifndef <API key> #define <API key> #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 <API key>(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 <API key><TransportInfo> { public: TransportFactory(); virtual JingleTransport *createObject(JingleContent *content); virtual void handleStartElement(const QStringRef &name, const QStringRef &uri, const <API key> &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 // <API key>
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.<API key> = true; } internal sealed class Initializer : <API key><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); } } } }
<!DOCTYPE HTML PUBLIC "- <!--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();"> <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>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</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>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;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> &nbsp; &nbsp;<A HREF="Transport.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<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> <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.&nbsp;</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.&nbsp;</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.&nbsp;</TD> </TR> </TABLE> &nbsp; <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> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <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>&nbsp;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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This class implements the Transport abstract class using SMTP for message submission and transport.</TD> </TR> </TABLE> &nbsp; <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> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <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>&nbsp;<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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;address)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;provider)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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 <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;url)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get a Transport object for the given URLName.</TD> </TR> </TABLE> &nbsp; <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> &nbsp; <P> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="<API key>"> <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>&nbsp;transport, int&nbsp;type, <A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;validSent, <A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;validUnsent, <A HREF="../../../javax/mail/Address.html" title="class in javax.mail">Address</A>[]&nbsp;invalid, <A HREF="../../../javax/mail/Message.html" title="class in javax.mail">Message</A>&nbsp;msg)</CODE> <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor.</TD> </TR> </TABLE> &nbsp; <P> <HR> <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="<API key>"></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>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</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>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;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> &nbsp; &nbsp;<A HREF="Transport.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<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> <HR> Copyright & </BODY> </HTML>
<?php /** * Fields */ $GLOBALS['TL_LANG']['<API key>']['title'] = array('Kitchenware category title', 'Please enter the kitchenware category title.'); $GLOBALS['TL_LANG']['<API key>']['jumpTo'] = array('Redirect page', 'Please choose the product detail page to which visitors will be redirected when clicking a product item.'); $GLOBALS['TL_LANG']['<API key>']['protected'] = array('Protect archive', 'Show category items to certain member groups only.'); $GLOBALS['TL_LANG']['<API key>']['groups'] = array('Allowed member groups', 'These groups will be able to see the product items in this category.'); $GLOBALS['TL_LANG']['<API key>']['master'] = array('Master category', 'Please define the master category to allow language switching.'); $GLOBALS['TL_LANG']['<API key>']['language'] = array('Language', 'Please enter the language according to the RFC3066 format (e.g. en, en-us or en-cockney).'); /** * References */ $GLOBALS['TL_LANG']['<API key>']['isMaster'] = 'This is a master category'; $GLOBALS['TL_LANG']['<API key>']['isSlave'] = 'Master category is "%s"'; /** * Legends */ $GLOBALS['TL_LANG']['<API key>']['title_legend'] = 'Title'; $GLOBALS['TL_LANG']['<API key>']['redirect_legend'] = 'Redirect'; $GLOBALS['TL_LANG']['<API key>']['protected_legend'] = 'Access protection'; /** * Buttons */ $GLOBALS['TL_LANG']['<API key>']['new'] = array('New category', 'Create a new category'); $GLOBALS['TL_LANG']['<API key>']['show'] = array('Category details', 'Show the details of category ID %s'); $GLOBALS['TL_LANG']['<API key>']['edit'] = array('Edit Products', 'Edit products of category ID %s'); $GLOBALS['TL_LANG']['<API key>']['editheader'] = array('Edit Category', 'Edit the setting of category ID %s'); $GLOBALS['TL_LANG']['<API key>']['copy'] = array('Duplicate Category', 'Duplicate category ID %s'); $GLOBALS['TL_LANG']['<API key>']['delete'] = array('Delete Category', 'Delete category ID %s');
// -*- SystemC -*- // DESCRIPTION: Verilator Example: Top level main for invoking SystemC model // This file ONLY is placed under the Creative Commons Public Domain, for // <API key>: 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::<API key>("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; }
#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 <API key>; 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 <API key>; 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 <API key>; 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 <API key>; uint32_t <API key>; uint32_t flash_mode; int32_t <API key>; // 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 (*<API key>)(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 <API key>; // is <API key> 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 <API key>; // 5 [-2, 2] or 7 [-3,3] or 9 [-4,4] int <API key>; // 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 <API key> <API key>; // last supported jpeg image tone <API key> 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
/* This file is part of CINV. */ /* LIAFA (University of Paris Diderot and CNRS) */ /* you can redistribute it and/or modify it under the terms of the GNU */ /* Foundation, version 3. */ /* It is distributed in the hope that it will be useful, */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ #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 * <API key> (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_ */
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); } }
#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 <API key> 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::<API key>">The given number of milliseconds is negative.</exception> <API key>(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::<API key>">The interval is negative or larger than 2^31 milliseconds.</exception> <API key>(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; }; }}
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.<API key>; import org.eclipse.emf.ecore.util.InternalEList; import orgomg.cwm.analysis.olap.<API key>; 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.<API key>#<API key> <em>Hierarchy Level Association</em>}</li> * </ul> * </p> * * @generated */ public class <API key> extends HierarchyImpl implements LevelBasedHierarchy { /** * The cached value of the '{@link #<API key>() <em>Hierarchy Level Association</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #<API key>() * @generated * @ordered */ protected EList<<API key>> <API key>; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected <API key>() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return OlapPackage.Literals.<API key>; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<<API key>> <API key>() { if (<API key> == null) { <API key> = new <API key><<API key>>(<API key>.class, this, OlapPackage.<API key>, OlapPackage.<API key>); } return <API key>; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case OlapPackage.<API key>: return ((InternalEList<InternalEObject>)(InternalEList<?>)<API key>()).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.<API key>: return ((InternalEList<?>)<API key>()).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.<API key>: return <API key>(); } 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.<API key>: <API key>().clear(); <API key>().addAll((Collection<? extends <API key>>)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case OlapPackage.<API key>: <API key>().clear(); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case OlapPackage.<API key>: return <API key> != null && !<API key>.isEmpty(); } return super.eIsSet(featureID); } } //<API key>
namespace Importer.Interfaces { public interface ISilence { float Start { get; } float End { get; } float Duration { get; } float CutTime { get; } } }
// Name: src/ribbon/gallery.cpp // Purpose: Ribbon control which displays a gallery of items to choose from // Created: 2009-07-22 // 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(<API key>, <API key>); wxDEFINE_EVENT(<API key>, <API key>); wxDEFINE_EVENT(<API key>, <API key>); <API key>(<API key>, 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; <API key> m_client_data; wxRect m_position; int m_id; bool m_is_visible; }; BEGIN_EVENT_TABLE(wxRibbonGallery, wxRibbonControl) EVT_ENTER_WINDOW(wxRibbonGallery::OnMouseEnter) <API key>(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; <API key> = wxRect(0, 0, 0, 0); <API key> = wxRect(0, 0, 0, 0); <API key> = wxRect(0, 0, 0, 0); m_mouse_active_rect = NULL; m_bitmap_size = wxSize(64, 32); <API key> = 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 = <API key>; m_down_button_state = <API key>; <API key> = <API key>; 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(<API key>, pos, &m_up_button_state)) refresh = true; if(TestButtonHover(<API key>, pos, &m_down_button_state)) refresh = true; if(TestButtonHover(<API key>, pos, &<API key>)) refresh = true; wxRibbonGalleryItem *hovered_item = NULL; wxRibbonGalleryItem *active_item = NULL; if(m_client_rect.Contains(pos)) { if(m_art && m_art->GetFlags() & <API key>) 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; <API key> notification( <API key>, 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, <API key>* state) { if(*state == <API key>) return false; <API key> new_state; if(rect.Contains(pos)) { if(m_mouse_active_rect == &rect) new_state = <API key>; else new_state = <API key>; } else new_state = <API key>; 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 != <API key>) m_up_button_state = <API key>; if(m_down_button_state != <API key>) m_down_button_state = <API key>; if(<API key> != <API key>) <API key> = <API key>; if(m_hovered_item != NULL) { m_hovered_item = NULL; <API key> notification( <API key>, 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() & <API key>) 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 = &rect; break; } } } else if(<API key>.Contains(pos)) { if(m_up_button_state != <API key>) { m_mouse_active_rect = &<API key>; m_up_button_state = <API key>; } } else if(<API key>.Contains(pos)) { if(m_down_button_state != <API key>) { m_mouse_active_rect = &<API key>; m_down_button_state = <API key>; } } else if(<API key>.Contains(pos)) { if(<API key> != <API key>) { m_mouse_active_rect = &<API key>; <API key> = <API key>; } } 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() & <API key>) pos.x += m_scroll_amount; else pos.y += m_scroll_amount; } if(m_mouse_active_rect->Contains(pos)) { if(m_mouse_active_rect == &<API key>) { m_up_button_state = <API key>; ScrollLines(-1); } else if(m_mouse_active_rect == &<API key>) { m_down_button_state = <API key>; ScrollLines(1); } else if(m_mouse_active_rect == &<API key>) { <API key> = <API key>; 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; <API key> notification( <API key>, GetId()); notification.SetEventObject(this); notification.SetGallery(this); notification.SetGalleryItem(m_selected_item); ProcessWindowEvent(notification); } <API key> notification( <API key>, 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 = <API key>.GetHeight(); if(m_art->GetFlags() & <API key>) line_size = <API key>.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 = <API key>; } else if(m_up_button_state == <API key>) m_up_button_state = <API key>; if(m_down_button_state == <API key>) m_down_button_state = <API key>; 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 = <API key>; } else if(m_down_button_state == <API key>) m_down_button_state = <API key>; if(m_up_button_state == <API key>) m_up_button_state = <API key>; return true; } } return false; } void wxRibbonGallery::EnsureVisible(const wxRibbonGalleryItem* item) { if(item == NULL || !item->IsVisible() || IsEmpty()) return; if(m_art->GetFlags() & <API key>) { int x = item->GetPosition().GetLeft(); int base_x = m_items.Item(0)->GetPosition().GetLeft(); int delta = x - base_x - m_scroll_amount; ScrollLines(delta / <API key>.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 / <API key>.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)) { <API key> dc(this); if(m_art == NULL) return; m_art-><API key>(dc, this, GetSize()); int padding_top = m_art->GetMetric(<API key>); int padding_left = m_art->GetMetric(<API key>); dc.SetClippingRegion(m_client_rect); bool offset_vertical = true; if(m_art->GetFlags() & <API key>) 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-><API key>(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 { <API key> = m_bitmap_size; <API key>.IncBy( m_art->GetMetric(<API key>) + m_art->GetMetric(<API key>), m_art->GetMetric(<API key>) + m_art->GetMetric(<API key>)); wxMemoryDC dc; SetMinSize(m_art->GetGallerySize(dc, this, <API key>)); // The best size is displaying several items m_best_size = <API key>; 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-><API key>(dc, this, GetSize(), &origin, &<API key>, &<API key>, &<API key>); 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 & <API key>) { if(y_cursor + <API key>.y > client_size.GetHeight()) { if(y_cursor == 0) break; y_cursor = 0; x_cursor += <API key>.x; } item->SetPosition(origin.x + x_cursor, origin.y + y_cursor, <API key>); y_cursor += <API key>.y; } else { if(x_cursor + <API key>.x > client_size.GetWidth()) { if(x_cursor == 0) break; x_cursor = 0; y_cursor += <API key>.y; } item->SetPosition(origin.x + x_cursor, origin.y + y_cursor, <API key>); x_cursor += <API key>.x; } } for(; item_i < item_count; ++item_i) { wxRibbonGalleryItem *item = m_items.Item(item_i); item->SetIsVisible(false); } if(art_flags & <API key>) 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 = <API key>; } else if(m_down_button_state == <API key>) m_down_button_state = <API key>; if(m_scroll_amount <= 0) { m_scroll_amount = 0; m_up_button_state = <API key>; } else if(m_up_button_state == <API key>) m_up_button_state = <API key>; return true; } wxSize wxRibbonGallery::DoGetBestSize() const { return m_best_size; } wxSize wxRibbonGallery::<API key>(wxOrientation direction, wxSize relative_to) const { if(m_art == NULL) return relative_to; wxMemoryDC dc; wxSize client = m_art-><API key>(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 / <API key>.x) * <API key>.x; client.y = (client.y / <API key>.y) * <API key>.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-><API key>(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() / <API key>.x) * (client.GetHeight() / <API key>.y); if(nitems >= (int)m_items.GetCount()) return relative_to; switch(direction) { case wxHORIZONTAL: client.IncBy(<API key>.x, 0); break; case wxVERTICAL: client.IncBy(0, <API key>.y); break; case wxBOTH: client.IncBy(<API key>); break; } client.x = (client.x / <API key>.x) * <API key>.x; client.y = (client.y / <API key>.y) * <API key>.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; } <API key> wxRibbonGallery::GetUpButtonState() const { return m_up_button_state; } <API key> wxRibbonGallery::GetDownButtonState() const { return m_down_button_state; } <API key> wxRibbonGallery::<API key>() const { return <API key>; } #endif // wxUSE_RIBBON
package com.wavpack.decoder; import java.io.RandomAccessFile; 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; } }
// ALBBItemService.h // ALBBTradeSDK // service #import <Foundation/Foundation.h> #import "ALBBTradeService.h" <API key> @protocol ALBBItemService <ALBBTradeService> /** , . @param parentController view controller. isNeedPushYES, UINavigationController. @param isNeedPush NO, view controllerpresent; UINavigationControllerpush. @param openUrl urlurl @param webViewUISettings webview */ - (void)showPage:(UIViewController *)parentController isNeedPush:(BOOL)isNeedPush openUrl:(NSString *)openUrl; /** , . @param parentController view controller. isNeedPushYES, UINavigationController. @param isNeedPush NO, view controllerpresent; UINavigationControllerpush. @param pageUrl urlurl @param webViewUISettings webview @param <API key> @param <API key> */ - (void) showPage:(UIViewController *)parentController isNeedPush:(BOOL)isNeedPush pageUrl:(NSString *)pageUrl webViewUISettings:(nullable <API key> *)webViewUISettings <API key>:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess <API key>:(nullable void (^)(NSError * __nullable error))onFailure; /** ID. @param parentController view controller. isNeedPushYES, UINavigationController. @param isNeedPush NO, view controllerpresent; UINavigationControllerpush. @param webViewUISettings webview @param itemId ID(ItemID) @param itemType : 1, 2. @param params @param <API key> @param <API key> */ - (void)<API key>:(UIViewController *)parentController isNeedPush:(BOOL)isNeedPush webViewUISettings:(nullable <API key> *)webViewUISettings itemId:(NSNumber *)itemId itemType:(NSInteger)itemType params:(nullable NSDictionary *)params <API key>:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess <API key>:(nullable void (^)(NSError * __nullable error))onFailure; /** ID. @param parentController view controller. isNeedPushYES, UINavigationController. @param isNeedPush NO, view controllerpresent; UINavigationControllerpush. @param webViewUISettings webview @param itemId Id(OpenID) @param itemType : 1, 2. @param params @param <API key> @param <API key> */ - (void)<API key>:(UIViewController *)parentController isNeedPush:(BOOL)isNeedPush webViewUISettings:(nullable <API key> *)webViewUISettings itemId:(NSString *)itemId itemType:(NSInteger)itemType params:(nullable NSDictionary *)params <API key>:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess <API key>:(nullable void (^)(NSError * __nullable error))onFailure; /** ID. @param parentController view controller. isNeedPushYES, UINavigationController. @param isNeedPush NO, view controllerpresent; UINavigationControllerpush. @param webViewUISettings webview @param itemId ID(ItemID) @param itemType : 1, 2. @param params @param taoKeParams @param <API key> @param <API key> */ - (void)<API key>:(UIViewController *)parentController isNeedPush:(BOOL)isNeedPush webViewUISettings:(nullable <API key> *)webViewUISettings itemId:(NSNumber *)itemId itemType:(NSInteger)itemType params:(nullable NSDictionary *)params taoKeParams:(nullable <API key> *)taoKeParams <API key>:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess <API key>:(nullable void (^)(NSError * __nullable error))onFailure; /** ID. @param parentController view controller. isNeedPushYES, UINavigationController. @param isNeedPush NO, view controllerpresent; UINavigationControllerpush. @param webViewUISettings webview @param itemId Id(OpenID) @param itemType : 1, 2. @param params @param taoKeParams @param <API key> @param <API key> */ - (void)<API key>:(UIViewController *)parentController isNeedPush:(BOOL)isNeedPush webViewUISettings:(nullable <API key> *)webViewUISettings itemId:(NSString *)itemId itemType:(NSInteger)itemType params:(nullable NSDictionary *)params taoKeParams:(nullable <API key> *)taoKeParams <API key>:(nullable void (^)(ALBBTradeResult * __nullable result))onSuccess <API key>:(nullable void (^)(NSError * __nullable error))onFailure; @end <API key>
using System.Xml.Serialization; namespace Geo.Gps.Serialization.Xml.Gpx.Gpx10 { [XmlType(AnonymousType=true, Namespace="http: 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; } } }
/** * jquery.select2selectselect2 * input{ id: 1, text: "Hello" } * * filterincludesexcludesquery * @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); } } // filterqueryqueryfilter 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); } // IDdata 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, <API key>: function(data){ return data.cls; }, formatNoMatches: function(){ return U.lang("S2.NO_MATCHES"); }, <API key>: 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 // filterquery, includesexcludesfilter // includes > excludes > filter > query // includesIDID if(option.includes && $.isArray(option.includes)){ option.filter = function(datum){ return $.inArray(datum.id, option.includes) !== -1; } // includesIDID } else if(option.excludes && $.isArray(option.excludes)) { option.filter = function(datum){ return $.inArray(datum.id, option.excludes) === -1; } } // filterqueryqueryfilter 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; })();
#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; };
#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; }
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; }
#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 = <API key>; 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 <API key>(bool <API key>) { <API key> = <API key>; label-><API key>(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(<API key>); 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 <API key>() { if(<API key>) { ci::gl::color(<API key>); 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; <API key> = false; label->unfocus(); } break; case CI_UI_STATE_OVER: { draw_fill_highlight = false; <API key> = true; label->unfocus(); } break; case CI_UI_STATE_DOWN: { draw_fill_highlight = true; <API key> = true; label->focus(); } break; case <API key>: { draw_fill_highlight = false; <API key> = 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
require('babel-core/register')({plugins: ['babel-plugin-rewire']}) import packageJson from '../package.json' import conformToMask from '../src/conformToMask' import {placeholderChar} from '../src/constants' const <API key> = (isVerify()) ? require(`../${packageJson.main}`).<API key> : require('../src/<API key>.js').default describe('<API key>', () => { 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 <API key> = <API key>({ inputElement, mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/] }) expect(<API key>.update).to.be.a('function') }) it('works with mask functions', () => { const mask = () => [/\d/, /\d/, /\d/, /\d/] expect(() => <API key>({inputElement, mask})).to.not.throw() }) it('displays mask when showMask is true', () => { const textMaskControl = <API key>({ 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 = <API key>({ 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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({inputElement, mask}) textMaskControl.update(123) expect(inputElement.value).to.equal('(123) ___-____') //reset text mask textMaskControl = <API key>({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 <API key>', () => { const conformToMaskSpy = sinon.spy(conformToMask) const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/] const textMaskControl = <API key>({inputElement, mask}) <API key>.__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) <API key>.__ResetDependency__('conformToMask') }) } it('works with a string', () => { const mask = ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/] const textMaskControl = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>({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 = <API key>() 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 = <API key>() 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 = <API key>() 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 = <API key>() 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 = <API key>() 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 <API key>', () => { const config = { inputElement, mask: ['(', /\d/, /\d/, /\d/, ')', ' ', /\d/, /\d/, /\d/, '-', /\d/, /\d/, /\d/, /\d/], guide: true, placeholderChar: '_' } const textMaskControl = <API key>(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 <API key>', () => { const textMaskControl = <API key>({ 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) ___-____') }) }) })
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} ]} ]})
<?php class fNotFoundException extends fExpectedException { }
*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
#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().<API key>(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::<API key>() { for (auto& buf : m_buffers) { if ((buf->flags() & Buffer::Flags::File) and buf->is_modified() and not (buf->flags() & Buffer::Flags::ReadOnly)) <API key>(*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().<API key>(*buffer); ClientManager::instance().clear_window_trash(); } buffer.reset(); } m_buffer_trash.clear(); } }
# 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"
// Mixer.h // Tonic //! 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 <API key>(const SynthesisContext_ &context); public: Mixer_(); void addInput(BufferFiller input); void removeInput(BufferFiller input); }; inline void Mixer_::<API key>(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 <API key><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__) */
#![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, <API key>(num)); } } // 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 (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 <API key>(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 <API key>() { let real = vec!(1, 1, 0, 0, 2, 10, 4, 40, 92); for num in (0..9i32) { assert_eq!(<API key>(num), real[num as usize]); } } #[bench] fn bench_n_queens(b: &mut Bencher) { b.iter(|| { test::black_box(n_queens(16)); }); } #[bench] fn <API key>(b: &mut Bencher) { b.iter(|| { test::black_box(<API key>(16)); }); }
<!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="<TwitterConsumerkey>" 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: <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:image" content="https: <meta itemprop="image" content="https: <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: <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="/<API key>.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="<API key>" content="#ffffff"> <meta name="<API key>" 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="#<API key>" aria-controls="<API key>" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="<API key>"> <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: </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/<API key>.png" alt = "Automic" title = "Automic" class="img-fluid"></a> </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </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: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "https: </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: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </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: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "https: </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: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </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: </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: </div><div class = "col-lg-1 col-md-2 col-4"> <a href = "http: </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 <API key>"> <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.<API key>(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/<API key>/"><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&rsquo;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: </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: <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>
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 <API key> { 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, <API key> 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 <API key>(CommonResources.<API key>, "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 <API key>(CommonResources.<API key>, "targetPath"); } string relativeTargetPath = PathUtility.GetRelativePath(PathUtility.EnsureTrailingSlash(Root), targetPath); Project.DoWorkInWriterLock(buildProject => buildProject.<API key>(relativeTargetPath)); Project.Save(); } } protected override void AddFileToContainer(string fullPath, ProjectItems container) { container.AddFromFile(Path.GetFileName(fullPath)); } } }
// 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: { 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.<API key>) { return this.hasChangeHandler(oCombineAction.changeType, oOverlay.<API key>()) && this.hasStableId(oOverlay); } else { return false; } }; Combine.prototype.<API key> = function(aSelectedOverlays) { var aRelevantContainer = []; for (var i = 0, n = aSelectedOverlays.length; i < n; i++) { aRelevantContainer[i] = aSelectedOverlays[i].<API key>(); 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.<API key>(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.<API key>(); 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 <API key> = this.<API key>(oElementOverlay, oCombineAction); var oCombineCommand = this.getCommandFactory().getCommandFor(oCombineElement, "combine", { source : oCombineElement, combineFields : aToCombineElements }, oDesignTimeMetadata, <API key>); 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);
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 *<API key> client *ds3.Client waitGroup *sync.WaitGroup writeObjectMap map[string]helperModels.PutObject <API key> blobTracker deferredBlobQueue <API key> // 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 *<API key>, 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: <API key>(), <API key>: <API key>(), 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) <API key>(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 := <API key>(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.<API key>(&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.<API key>(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) <API key>(blob *helperModels.BlobDescription, bucketName string, jobId string) (bool, error) { if producer.<API key>.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.<API key>.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.<API key>.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.<API key>.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.<API key>(objInfo) // Increment wait group, and enqueue transfer operation producer.waitGroup.Add(1) *producer.queue <- transfer // Mark blob as processed producer.<API key>.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.<API key>.<API key>()) // process all chunks and make sure all blobs are queued for transfer for producer.hasMoreToProcess(totalBlobCount) { processedCount, err := producer.<API key>(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.<API key>.<API key>() < totalBlobCount || producer.deferredBlobQueue.Size() > 0 } // Returns the number of items queued for work. func (producer *putProducer) <API key>(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.<API key>.<API key>() >= 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.<API key>(producer.JobMasterObjectList.JobId) chunksReadyResponse, err := producer.client.<API key>(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 }
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 <API key> { @XmlElement private String name; public <API key>() { } public <API key>(final String name) { this.name = name; } public String getName() { return name; } }
/ [<API key>.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; } / [<API key>.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; } / [<API key>.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; }
require 'spec_helper' require 'pureftpd_helper' describe 'PureFTPd' do include_examples 'PureFTPd', 'postgresql' end
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 <API key> = null; protected <API key> renderMesh4AttackSm = null; protected <API key> renderMesh5AttackSm = null; protected <API key> tracker0; protected <API key> 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 (<API key> != null) { <API key>.theta.value += (float)Math.PI / 2f * (float)e.Time; } } } }
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/<API key>.pcap", cps=1) ] ) def register(): return Prof1()
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: <API key>): number; /** * Cancel an animationFrameEvent * @param requestId The handle of the event you want to cancel */ static <API key>(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
#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
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; } .<API key> { position: relative; margin-bottom: 0; padding-bottom: .5em; } .<API key> input, .<API key> 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; } .<API key> 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; } .<API key>::not(:first-child) { padding-left: 14px; } .<API key> label { top: 0; opacity: 1; } .<API key> label { color: #18bc9c; } form .row:first-child .<API key> { } 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; } .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%; } }
<?php namespace Scalr\Service\CloudStack\Services\Vpn\DataType; use Scalr\Service\CloudStack\DataType\AbstractDataType; /** * AddVpnUserData * * @author Vlad Dobrovolskiy <v.dobrovolskiy@scalr.com> * @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; } }
"use strict"; describe("Brisket server", function() { var Brisket = require("../../lib/brisket"); var MockBrisketApp = require("../mock/MockBrisketApp"); var nock = require("nock"); var supertest = require("supertest"); var brisketServer; beforeEach(function() { MockBrisketApp.initialize(); nock("http://api.example.com") .get("/fetch200") .reply(200, { ok: true }) .get("/fetch404") .reply(404, { ok: false }) .get("/fetch500") .reply(500, { ok: false }) .get("/fetch410") .reply(410, { ok: false }); brisketServer = Brisket.createServer({ apis: { "api": { host: "http://api.example.com", proxy: null } } }); }); afterEach(function() { MockBrisketApp.cleanup(); nock.cleanAll(); }); it("returns 200 when route is working", function(done) { supertest(brisketServer) .get("/working") .expect(200, mocha(done)); }); it("returns 500 when route is failing", function(done) { supertest(brisketServer) .get("/failing") .expect(500, mocha(done)); }); it("returns 302 when route is redirecting", function(done) { supertest(brisketServer) .get("/redirecting") .expect(302, mocha(done)); }); it("returns status from route when route sets status", function(done) { supertest(brisketServer) .get("/setsStatus") .expect(206, mocha(done)); }); it("returns 200 when data fetch is 200 AND route code doesn't error", function(done) { supertest(brisketServer) .get("/fetch200") .expect(200, mocha(done)); }); it("returns 500 when data fetch is 200 BUT route code errors", function(done) { supertest(brisketServer) .get("/<API key>") .expect(500, mocha(done)); }); it("returns 302 when data fetch is 200 BUT route code redirects", function(done) { supertest(brisketServer) .get("/<API key>") .expect(302, mocha(done)); }); it("returns status from route when data fetch is 200 BUT route sets status", function(done) { supertest(brisketServer) .get("/<API key>") .expect(206, mocha(done)); }); it("returns 404 when route does NOT exist", function(done) { supertest(brisketServer) .get("/doesntexist") .expect(404, mocha(done)); }); it("returns 404 when data fetch is 404", function(done) { supertest(brisketServer) .get("/fetch404") .expect(404, mocha(done)); }); it("returns 500 when data fetch is 500", function(done) { supertest(brisketServer) .get("/fetch500") .expect(500, mocha(done)); }); it("returns 500 when data fetch is unexpected error code", function(done) { supertest(brisketServer) .get("/fetch410") .expect(500, mocha(done)); }); function mocha(done) { return function(err) { if (err) { done.fail(err); } else { done(); } }; } });
console.group('Load & Execute component file: CRC > SDX > Encounter Record Set'); console.time('execute time'); i2b2.sdx.TypeControllers.ENS = {}; i2b2.sdx.TypeControllers.ENS.model = {}; // ENCAPSULATE DATA i2b2.sdx.TypeControllers.ENS.getEncapsulateInfo = function() { // this function returns the encapsulation head information return {sdxType: 'ENS', sdxKeyName: 'result_instance_id', sdxControlCell:'CRC', sdxDisplayNameKey: 'title'}; } i2b2.sdx.TypeControllers.ENS.SaveToDataModel = function(sdxData, sdxParentNode) { // save to CRC data model if (!sdxParentNode) { return false; } var qm_id = sdxData.sdxInfo.sdxKeyValue; var qm_hash = i2b2.sdx.Master._KeyHash(qm_id); // class for all SDX communications function <API key>() {} // create an instance and populate with info var t = new <API key>(); t.origData = Object.clone(sdxData.origData); t.sdxInfo = Object.clone(sdxData.sdxInfo); t.parent = sdxParentNode; t.children = new Hash(); t.children.loaded = false; // add to hash sdxParentNode.children.set(qm_hash, t); // TODO: send data update signal (use JOINING-MUTEX or AGGREGATING-MUTEX to avoid rapid fire of event!) return t; } i2b2.sdx.TypeControllers.ENS.LoadFromDataModel = function(key_value) {} i2b2.sdx.TypeControllers.ENS.<API key>= function(sdxOptionalParent) { if (sdxOptionalParent) { try { var findFunc = function(item_rec) { // this function expects the second argument to be the target node's key value var hash_key = item_rec[0]; var QM_rec = item_rec[1]; if (QM_rec.sdxInfo.sdxKeyValue == this.strip()) { return true; } } var dm_loc = 'i2b2.CRC.model.QueryMasters.'+i2b2.sdx.Master._KeyHash(sdxOptionalParent.sdxInfo.sdxKeyValue); var targets = i2b2.CRC.model.QueryMasters.findAll(findFunc, sdxOptionalParent.sdxInfo.sdxKeyValue); for (var i=0; i < targets.length; i++) { var t = parent_QM[i].value; t.children = new Hash(); } } catch(e) { console.error('Could not clear children of given parent node!'); } } else { var dm_loc = 'i2b2.CRC.model.QueryMasters'; i2b2.CRC.model.QueryMasters.each(function(item_rec) { try { item_rec[1].children = new Hash(); } catch(e) { console.error('Could not clear children of all QueryMasters'); } }); } // TODO: send data update signal (use JOINING-MUTEX or AGGREGATING-MUTEX to avoid rapid fire of event!) // updated dm_loc of the data model return true; } // GENERATE HTML (DEFAULT HANDLER) i2b2.sdx.TypeControllers.ENS.RenderHTML= function(sdxData, options, targetDiv) { // OPTIONS: // title: string // showchildren: true | false // cssClass: string // icon: [data object] // icon: (filename of img, appended to i2b2_root+cellDir + '/assets') // iconExp: (filename of img, appended to i2b2_root+cellDir + '/assets') // dragdrop: string (function name) // context: string // click: string // dblclick: string if (Object.isUndefined(options)) { options = {}; } var render = {html: retHtml, htmlID: id}; var conceptId = sdxData.name; var id = "CRC_ID-" + i2b2.GUID(); // process drag drop controllers if (!Object.isUndefined(options.dragdrop)) { // NOTE TO SELF: should attachment of node dragdrop controller be handled by the SDX system as well? // This would ensure removal of the onmouseover call in a cross-browser way var sDD = ' onmouseover="' + options.dragdrop + '(\''+ targetDiv.id +'\',\'' + id + '\')" '; } else { var sDD = ''; } if (Object.isUndefined(options.cssClass)) { options.cssClass = 'sdxDefaultPRS';} // user can override bCanExp = true; if (Object.isBoolean(options.showchildren)) { bCanExp = options.showchildren; } render.canExpand = bCanExp; render.iconType = "PRS"; if (!Object.isUndefined(options.icon)) { render.icon = i2b2.hive.cfg.urlFramework + 'cells/CRC/assets/'+ options.icon } if (!Object.isUndefined(options.iconExp)) { render.iconExp = i2b2.hive.cfg.urlFramework + 'cells/CRC/assets/'+ options.iconExp } // in cases of one set icon, copy valid icon to the missing icon if (Object.isUndefined(render.icon) && !Object.isUndefined(render.iconExp)) { render.icon = render.iconExp; } if (!Object.isUndefined(render.icon) && Object.isUndefined(render.iconExp)) { render.iconExp = render.icon; } // handle the event controllers var sMainEvents = sDD; var sImgEvents = sDD; var retHtml = '<DIV id="' + id + '" ' + sMainEvents + ' style="white-space:nowrap;cursor:pointer;">'; retHtml += '<DIV '; if (Object.isString(options.cssClass)) { retHtml += ' class="'+options.cssClass+'" '; } else { retHtml += ' class= "sdxDefaultPRS" '; } retHtml += sImgEvents; retHtml += '>'; retHtml += '<IMG src="'+render.icon+'"/> '; if (!Object.isUndefined(options.title)) { retHtml += options.title; } else { console.warn('[SDX RenderHTML] no title was given in the creation options for an CRC > ENS node!'); retHtml += ' PRS '+id; } retHtml += '</DIV></DIV>'; render.html = retHtml; render.htmlID = id; var retObj = {}; Object.extend(retObj, sdxData); retObj.renderData = render; return retObj; } // HANDLE HOVER OVER TARGET ENTRY (DEFAULT HANDLER) i2b2.sdx.TypeControllers.ENS.onHoverOver = function(e, id, ddProxy) { var el = $(id); if (el) { Element.addClassName(el,'ddPRSTarget'); } } // HANDLE HOVER OVER TARGET EXIT (DEFAULT HANDLER) i2b2.sdx.TypeControllers.ENS.onHoverOut = function(e, id, ddProxy) { var el = $(id); if (el) { Element.removeClassName(el,'ddPRSTarget'); } } // ADD DATA TO TREENODE (DEFAULT HANDLER) i2b2.sdx.TypeControllers.ENS.AppendTreeNode = function(yuiTree, yuiRootNode, sdxDataPack, callbackLoader) { var myobj = { html: sdxDataPack.renderData.html, nodeid: sdxDataPack.renderData.htmlID} var tmpNode = new YAHOO.widget.HTMLNode(myobj, yuiRootNode, false, true); if (sdxDataPack.renderData.canExpand && !Object.isUndefined(callbackLoader)) { // add the callback to load child nodes sdxDataPack.sdxInfo.sdxLoadChildren = callbackLoader; } tmpNode.data.i2b2_SDX= sdxDataPack; tmpNode.toggle = function() { if (!this.tree.locked && ( this.hasChildren(true) ) ) { var data = this.data.i2b2_SDX.renderData; var img = this.getContentEl(); img = Element.select(img,'img')[0]; if (this.expanded) { img.src = data.icon; this.collapse(); } else { img.src = data.iconExp; this.expand(); } } }; if (!sdxDataPack.renderData.canExpand) { tmpNode.dynamicLoadComplete = true; } return tmpNode; } // ATTACH DRAG TO DATA (DEFAULT HANDLER) i2b2.sdx.TypeControllers.ENS.AttachDrag2Data = function(divParentID, divDataID){ if (Object.isUndefined($(divDataID))) { return false; } // get the i2b2 data from the yuiTree node var tvTree = YAHOO.widget.TreeView.getTree(divParentID); var tvNode = tvTree.getNodeByProperty('nodeid', divDataID); if (!Object.isUndefined(tvNode.DDProxy)) { return true; } // attach DD var t = new i2b2.sdx.TypeControllers.ENS.DragDrop(divDataID) t.yuiTree = tvTree; t.yuiTreeNode = tvNode; tvNode.DDProxy = t; // clear the mouseover attachment function var tdn = $(divDataID); if (!Object.isUndefined(tdn.onmouseover)) { try { delete tdn.onmouseover; } catch(e) { tdn.onmouseover; } } if (!Object.isUndefined(tdn.attributes)) { for (var i=0;i<tdn.attributes.length; i++) { if (tdn.attributes[i].name=="onmouseover") { try { delete tdn.onmouseover; } catch(e) { tdn.onmouseover; } } } } } /** * Get the child records for the given PatientRecordSet. * @param {Object} sdxParentNode The parent node we want to find the children of. * @param {ScopedCallback} onCompleteCallback A scoped-callback function to be executed using the results array. * @return {Boolean} Returns true to the calling function. * @return {Array} Returns an array of PatientRecord data represented as SDX Objects (without render data) to the callback function passed. * @memberOf i2b2.sdx.TypeControllers.QI * @method * @author Nick Benik * @version 1.0 * @alias i2b2.sdx.Master.getChildRecords */ i2b2.sdx.TypeControllers.ENS.getChildRecords = function(sdxParentNode, onCompleteCallback, options) { var scopedCallback = new i2b2_scopedCallback(); scopedCallback.scope = sdxParentNode; scopedCallback.callback = function(results) { var cl_node = sdxParentNode; var cl_onCompleteCB = onCompleteCallback; // THIS function is used to process the AJAX results of the getChild call // results data object contains the following attributes: // msgRequest: xml (string) // msgResponse: xml (string) // error: boolean // errorStatus: string [only with error=true] // errorMsg: string [only with error=true] var retMsg = { error: results.error, msgRequest: results.msgRequest, msgResponse: results.msgResponse, msgUrl: results.msgUrl, results: null }; var retChildren = []; // extract records from XML msg var ps = results.refXML.<API key>('event'); var dm = i2b2.CRC.model.QueryMasters; for(var i1=0; i1<ps.length; i1++) { var o = new Object; o.xmlOrig = ps[i1]; o.patient_id = i2b2.h.getXNodeVal(ps[i1],'patient_id'); o.event_id = i2b2.h.getXNodeVal(ps[i1],'event_id'); //o.vital_status = i2b2.h.XPath(ps[i1],'param[@name="vital_status_cd"]/text()')[0].nodeValue; //o.age = i2b2.h.XPath(ps[i1],'param[@name="age_in_years_num"]/text()')[0].nodeValue; //o.sex = i2b2.h.XPath(ps[i1],'param[@name="sex_cd"]/text()')[0].nodeValue; //o.race = i2b2.h.XPath(ps[i1],'param[@name="race_cd"]/text()')[0].nodeValue; //o.title = o.patient_id+" ["+o.age+" y/o "+ o.sex+" "+o.race+"]"; var sdxDataNode = i2b2.sdx.Master.EncapsulateData('PR',o); // save record in the SDX system sdxDataNode = i2b2.sdx.Master.Save(sdxDataNode, cl_node); // append the data node to our returned results retChildren.push(sdxDataNode); } cl_node.children.loaded = true; // TODO: broadcast a data update event of the CRC data model retMsg.results = retChildren; if (getObjectClass(cl_onCompleteCB)=='i2b2_scopedCallback') { cl_onCompleteCB.callback.call(cl_onCompleteCB.scope, retMsg); } else { cl_onCompleteCB(retMsg); } } var msg_filter = '<input_list>\n' + ' <event_list max="1000000" min="0">\n'+ ' <<API key>>'+sdxParentNode.sdxInfo.sdxKeyValue+'</<API key>>\n'+ ' </event_list>\n'+ '</input_list>\n'+ '<filter_list/>\n'+ '<output_option>\n'+ ' <event_set select="using_input_list" onlykeys="true"/>\n'+ '</output_option>\n'; // AJAX CALL var options = { patient_limit: 0, PDO_Request: msg_filter }; i2b2.CRC.ajax.<API key>("CRC:SDX:PatientRecordSet", options, scopedCallback); } i2b2.sdx.TypeControllers.ENS.<API key> = function(node, onCompleteCallback) { var scopedCallback = new i2b2_scopedCallback(); scopedCallback.scope = node.data.i2b2_SDX; scopedCallback.callback = function(retCellPack) { var cl_node = node; var cl_onCompleteCB = onCompleteCallback; var results = retCellPack.results; for(var i1=0; i1<1*results.length; i1++) { var o = results[i1]; var renderOptions = { dragdrop: "i2b2.sdx.TypeControllers.PRC.AttachDrag2Data", icon: "sdx_CRC_PR.jpg", title: o.sdxInfo.sdxDisplayName, showchildren: false }; var sdxRenderData = i2b2.sdx.Master.RenderHTML(cl_node.tree.id, o, renderOptions); i2b2.sdx.Master.AppendTreeNode(cl_node.tree, cl_node, sdxRenderData); } // handle the callback if (getObjectClass(cl_onCompleteCB)=='i2b2_scopedCallback') { cl_onCompleteCB.callback.call(cl_onCompleteCB.scope, retCellPack); } else { cl_onCompleteCB(retCellPack); } } var sdxParentNode = node.data.i2b2_SDX; var options = i2b2.CRC.params; i2b2.sdx.Master.getChildRecords(sdxParentNode, scopedCallback, options); } // DRAG DROP PROXY CONTROLLER i2b2.sdx.TypeControllers.ENS.DragDrop = function(id, config) { if (id) { this.init(id, 'ENS',{isTarget:false}); this.initFrame(); } var s = this.getDragEl().style; s.borderColor = "transparent"; s.opacity = 0.75; s.filter = "alpha(opacity=75)"; s.whiteSpace = "nowrap"; s.overflow = "hidden"; s.textOverflow = "ellipsis"; }; YAHOO.extend(i2b2.sdx.TypeControllers.ENS.DragDrop, YAHOO.util.DDProxy); i2b2.sdx.TypeControllers.ENS.DragDrop.prototype.startDrag = function(x, y) { var dragEl = this.getDragEl(); var clickEl = this.getEl(); dragEl.innerHTML = clickEl.innerHTML; dragEl.className = clickEl.className; dragEl.style.backgroundColor = '#FFFFEE'; dragEl.style.color = clickEl.style.color; dragEl.style.border = "1px solid blue"; dragEl.style.width = "160px"; dragEl.style.height = "20px"; this.setDelta(15,10); }; i2b2.sdx.TypeControllers.ENS.DragDrop.prototype.endDrag = function(e) { // remove DragDrop targeting CCS var targets = YAHOO.util.DDM.getRelated(this, true); for (var i=0; i<targets.length; i++) { var targetEl = targets[i]._domRef; i2b2.sdx.Master.onHoverOut('ENS', e, targetEl, this); } }; i2b2.sdx.TypeControllers.ENS.DragDrop.prototype.alignElWithMouse = function(el, iPageX, iPageY) { var oCoord = this.getTargetCoord(iPageX, iPageY); if (!this.deltaSetXY) { var aCoord = [oCoord.x, oCoord.y]; YAHOO.util.Dom.setXY(el, aCoord); var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 ); var newTop = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 ); this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ]; } else { var posX = (oCoord.x + this.deltaSetXY[0]); var posY = (oCoord.y + this.deltaSetXY[1]); var scrSize = document.viewport.getDimensions(); var maxX = parseInt(scrSize.width-25-160); var maxY = parseInt(scrSize.height-25); if (posX > maxX) {posX = maxX;} if (posX < 6) {posX = 6;} if (posY > maxY) {posY = maxY;} if (posY < 6) {posY = 6;} YAHOO.util.Dom.setStyle(el, "left", posX + "px"); YAHOO.util.Dom.setStyle(el, "top", posY + "px"); } this.cachePosition(oCoord.x, oCoord.y); this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth); }; i2b2.sdx.TypeControllers.ENS.DragDrop.prototype.onDragOver = function(e, id) { // fire the onHoverOver (use SDX so targets can override default event handler) i2b2.sdx.Master.onHoverOver('ENS', e, id, this); }; i2b2.sdx.TypeControllers.ENS.DragDrop.prototype.onDragOut = function(e, id) { // fire the onHoverOut handler (use SDX so targets can override default event handlers) i2b2.sdx.Master.onHoverOut('ENS', e, id, this); }; i2b2.sdx.TypeControllers.ENS.DragDrop.prototype.onDragDrop = function(e, id) { i2b2.sdx.Master.onHoverOut('ENS', e, id, this); // retreive the concept data from the dragged element draggedData = this.yuiTreeNode.data.i2b2_SDX; i2b2.sdx.Master.ProcessDrop(draggedData, id); }; // <BLANK> DROP HANDLER // !!!! DO NOT EDIT - ATTACH YOUR OWN CUSTOM ROUTINE USING // !!!! THE i2b2.sdx.Master.setHandlerCustom FUNCTION i2b2.sdx.TypeControllers.ENS.DropHandler = function(sdxData) { alert('[PatientRecordSet DROPPED] You need to create your own custom drop event handler.'); } console.timeEnd('execute time'); console.groupEnd();
from pony.orm.core import *
package com.mc.phonefinder.usersettings; import android.content.Intent; import android.content.SharedPreferences; import android.net.Uri; import android.preference.PreferenceManager; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.Toast; import com.mc.phonefinder.R; import com.mc.phonefinder.login.FindPhoneActivity; import com.mc.phonefinder.login.SampleApplication; import com.parse.FindCallback; import com.parse.ParseException; import com.parse.ParseGeoPoint; import com.parse.ParseObject; import com.parse.ParseQuery; import com.parse.ParseUser; import java.io.Serializable; import java.util.List; import java.util.Locale; import java.util.concurrent.atomic.AtomicBoolean; public class FindPhoneInterface extends ActionBarActivity { /* For the below: check if the setting is set for the user and if so let the user use the functionality. View location - Referes to location column in Settings table Show Phone finder image - Displays the image of the person who find the phone View nearby users - Refers to otherUsers in Settings table Alert my phone - Rings the phone to easily identify it */ static final boolean[] nearByUserSetting = new boolean[1]; static final boolean[] locationSetting = new boolean[1]; AtomicBoolean <API key> = new AtomicBoolean(); AtomicBoolean locPrefs_check = new AtomicBoolean(); public static String test = "Class"; static final String TAG="bharathdebug"; public void savePrefs(String key, boolean value) { SharedPreferences sp = PreferenceManager.<API key>(this); SharedPreferences.Editor edit = sp.edit(); edit.putBoolean(key, value); edit.commit(); } public boolean loadBoolPrefs(String key) { SharedPreferences sp = PreferenceManager.<API key>(this); boolean cbVal = sp.getBoolean(key, false); return cbVal; } public void savePrefs(String key, String value) { SharedPreferences sp = PreferenceManager.<API key>(this); SharedPreferences.Editor edit = sp.edit(); edit.putString(key, value); edit.commit(); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.<API key>); final String ObjectId = (String)this.getIntent().<API key>("userObjectId"); nearByUserSetting[0] = false; locationSetting[0] = false; savePrefs("nearByUserSetting", false); savePrefs("locationSetting", false); Log.i(TAG,"Before inner class"+test); // final String ObjectId = (String)this.getIntent().<API key>("userObjectId"); ParseQuery<ParseObject> getSettings = new ParseQuery<ParseObject>("Settings"); getSettings.whereEqualTo("userObjectId", ObjectId); getSettings.findInBackground(new FindCallback<ParseObject>() { @Override public void done(List<ParseObject> objects, ParseException e) { if (objects != null) { Log.i(TAG, "Object not null"); if(objects.size()>0){ // nearByUserSetting[0] = objects.get(0).getBoolean("otherUser"); // locationSetting[0] = objects.get(0).getBoolean("location"); // test = "Inner class"; <API key>.set( objects.get(0).getBoolean("otherUser")); locPrefs_check.set(objects.get(0).getBoolean("location")); Log.i(TAG, "Inner class neary by " + String.valueOf(<API key>.get())); Log.i(TAG,"Inner class Location pref "+ (String.valueOf(locPrefs_check.get()))); // savePrefs("nearByUserSetting", nearByUserSetting[0]); // savePrefs("locationSetting", locationSetting[0]); } } } }); // <API key>=loadBoolPrefs("nearByUserSetting"); // locPrefs_check = loadBoolPrefs("locationSetting"); // Log.i(TAG,"Final val after inner class "+test); // System.out.print("Camera Setting " + nearByUserSetting[0]); Log.i(TAG,"Near by user "+ (String.valueOf(<API key>.get()))); Log.i(TAG,"Location pref "+ (String.valueOf(locPrefs_check.get()))); ((Button) findViewById(R.id.nearbyUsers)).setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if(<API key>.get()) { Intent i = new Intent(); savePrefs("findPhoneId", ObjectId); Log.i(TAG, "FindPhoneInterface Object id " + ObjectId); i.setClass(FindPhoneInterface.this, NearbyUserView.class); //i.putExtra("userObjectId", ObjectId); startActivity(i); startActivity(new Intent(FindPhoneInterface.this, NearbyUserView.class)); } else { Toast.makeText(FindPhoneInterface.this, "Find nearby user service not set ", Toast.LENGTH_SHORT).show(); } } }); ((Button) findViewById(R.id.viewLocation)).setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if(locPrefs_check.get()) { Toast.makeText(FindPhoneInterface.this, "Getting Your Location", Toast.LENGTH_LONG) .show(); String ObjectId = (String) FindPhoneInterface.this.getIntent().<API key>("userObjectId"); ParseQuery<ParseObject> query = ParseQuery.getQuery("Location"); if (!ObjectId.equals(null) && !ObjectId.equals("")) { query.whereEqualTo("userId", ObjectId); query.findInBackground(new FindCallback<ParseObject>() { @Override public void done(List<ParseObject> objects, ParseException e) { ParseGeoPoint userLocation; for (int i = 0; i < objects.size(); i++) { userLocation = objects.get(i).getParseGeoPoint("location"); String uri = String.format(Locale.ENGLISH, "geo:%f,%f?q=%f,%f", userLocation.getLatitude(), userLocation.getLongitude(), userLocation.getLatitude(), userLocation.getLongitude()); //Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:%f,%f?q=%f,%f",userLocation.getLatitude(), userLocation.getLongitude(),userLocation.getLatitude(), userLocation.getLongitude())); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); startActivity(intent); Toast.makeText(FindPhoneInterface.this, "Opening Maps", Toast.LENGTH_LONG) .show(); } } }); } } else { Toast.makeText(FindPhoneInterface.this, "Location Preference service not set ", Toast.LENGTH_SHORT).show(); } }}); //Bharath - View image of person who picked phone ((Button) findViewById(R.id.btn_phonepicker)).setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Starts an intent of the log in activity Log.i(TAG,"Find face object id "+ObjectId); savePrefs("findfaceObjId",ObjectId); startActivity(new Intent(FindPhoneInterface.this, <API key>.class)); } }); //Change ringer alert ((Button) findViewById(R.id.triggerAlert)).setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ParseQuery<ParseObject> query = ParseQuery.getQuery("Settings"); query.whereEqualTo("userObjectId", ObjectId); query.findInBackground(new FindCallback<ParseObject>() { public void done(List<ParseObject> scoreList, ParseException e) { //get current user ParseUser user = ParseUser.getCurrentUser(); if (e == null) { if (scoreList != null) { if (scoreList.size() > 0) { //store the location of the user with the objectId of the user scoreList.get(0).put("alertPhone", true); scoreList.get(0).saveInBackground(); Toast.makeText(FindPhoneInterface.this, "Phone Alerted", Toast.LENGTH_LONG) .show(); } } else { ParseObject alertVal = new ParseObject("Settings"); alertVal.put("userObjectId", ObjectId); alertVal.put("alertPhone", true); scoreList.get(0).saveInBackground(); Toast.makeText(FindPhoneInterface.this, "Phone Alerted", Toast.LENGTH_LONG) .show(); } } } }); } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.<API key>, menu); return true; } @Override public boolean <API key>(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up button, so long // as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection <API key> if (id == R.id.action_settings) { return true; } return super.<API key>(item); } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_60) on Mon Mar 28 17:12:17 AEST 2016 --> <title>Uses of Class org.apache.river.constants.TxnConstants (River-Internet vtrunk API Documentation (internals))</title> <meta name="date" content="2016-03-28"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.river.constants.TxnConstants (River-Internet vtrunk API Documentation (internals))"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/river/constants/TxnConstants.html" title="class in org.apache.river.constants">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/river/constants/class-use/TxnConstants.html" target="_top">Frames</a></li> <li><a href="TxnConstants.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Class org.apache.river.constants.TxnConstants" class="title">Uses of Class<br>org.apache.river.constants.TxnConstants</h2> </div> <div class="classUseContainer">No usage of org.apache.river.constants.TxnConstants</div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/river/constants/TxnConstants.html" title="class in org.apache.river.constants">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/river/constants/class-use/TxnConstants.html" target="_top">Frames</a></li> <li><a href="TxnConstants.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small>Copyright 2007-2013, multiple authors.<br>Licensed under the <a href=http: </body> </html>
import <API key> from "../Core/<API key>.js"; import Cartesian3 from "../Core/Cartesian3.js"; import Cartographic from "../Core/Cartographic.js"; import Ellipsoid from "../Core/Ellipsoid.js"; import IndexDatatype from "../Core/IndexDatatype.js"; import CesiumMath from "../Core/Math.js"; import Rectangle from "../Core/Rectangle.js"; import <API key> from "./<API key>.js"; var maxShort = 32767; var <API key> = new Cartographic(); var <API key> = new Cartesian3(); function decodePositions( positions, rectangle, minimumHeight, maximumHeight, ellipsoid ) { var positionsLength = positions.length / 3; var uBuffer = positions.subarray(0, positionsLength); var vBuffer = positions.subarray(positionsLength, 2 * positionsLength); var heightBuffer = positions.subarray( 2 * positionsLength, 3 * positionsLength ); <API key>.zigZagDeltaDecode(uBuffer, vBuffer, heightBuffer); var decoded = new Float64Array(positions.length); for (var i = 0; i < positionsLength; ++i) { var u = uBuffer[i]; var v = vBuffer[i]; var h = heightBuffer[i]; var lon = CesiumMath.lerp(rectangle.west, rectangle.east, u / maxShort); var lat = CesiumMath.lerp(rectangle.south, rectangle.north, v / maxShort); var alt = CesiumMath.lerp(minimumHeight, maximumHeight, h / maxShort); var cartographic = Cartographic.fromRadians( lon, lat, alt, <API key> ); var decodedPosition = ellipsoid.<API key>( cartographic, <API key> ); Cartesian3.pack(decodedPosition, decoded, i * 3); } return decoded; } var scratchRectangle = new Rectangle(); var scratchEllipsoid = new Ellipsoid(); var scratchCenter = new Cartesian3(); var <API key> = { min: undefined, max: undefined, }; function unpackBuffer(packedBuffer) { packedBuffer = new Float64Array(packedBuffer); var offset = 0; <API key>.min = packedBuffer[offset++]; <API key>.max = packedBuffer[offset++]; Rectangle.unpack(packedBuffer, offset, scratchRectangle); offset += Rectangle.packedLength; Ellipsoid.unpack(packedBuffer, offset, scratchEllipsoid); offset += Ellipsoid.packedLength; Cartesian3.unpack(packedBuffer, offset, scratchCenter); } var scratchP0 = new Cartesian3(); var scratchP1 = new Cartesian3(); var scratchPrev = new Cartesian3(); var scratchCur = new Cartesian3(); var scratchNext = new Cartesian3(); function <API key>(parameters, transferableObjects) { var encodedPositions = new Uint16Array(parameters.positions); var widths = new Uint16Array(parameters.widths); var counts = new Uint32Array(parameters.counts); var batchIds = new Uint16Array(parameters.batchIds); unpackBuffer(parameters.packedBuffer); var rectangle = scratchRectangle; var ellipsoid = scratchEllipsoid; var center = scratchCenter; var minimumHeight = <API key>.min; var maximumHeight = <API key>.max; var positions = decodePositions( encodedPositions, rectangle, minimumHeight, maximumHeight, ellipsoid ); var positionsLength = positions.length / 3; var size = positionsLength * 4 - 4; var curPositions = new Float32Array(size * 3); var prevPositions = new Float32Array(size * 3); var nextPositions = new Float32Array(size * 3); var expandAndWidth = new Float32Array(size * 2); var vertexBatchIds = new Uint16Array(size); var positionIndex = 0; var expandAndWidthIndex = 0; var batchIdIndex = 0; var i; var offset = 0; var length = counts.length; for (i = 0; i < length; ++i) { var count = counts[i]; var width = widths[i]; var batchId = batchIds[i]; for (var j = 0; j < count; ++j) { var previous; if (j === 0) { var p0 = Cartesian3.unpack(positions, offset * 3, scratchP0); var p1 = Cartesian3.unpack(positions, (offset + 1) * 3, scratchP1); previous = Cartesian3.subtract(p0, p1, scratchPrev); Cartesian3.add(p0, previous, previous); } else { previous = Cartesian3.unpack( positions, (offset + j - 1) * 3, scratchPrev ); } var current = Cartesian3.unpack(positions, (offset + j) * 3, scratchCur); var next; if (j === count - 1) { var p2 = Cartesian3.unpack( positions, (offset + count - 1) * 3, scratchP0 ); var p3 = Cartesian3.unpack( positions, (offset + count - 2) * 3, scratchP1 ); next = Cartesian3.subtract(p2, p3, scratchNext); Cartesian3.add(p2, next, next); } else { next = Cartesian3.unpack(positions, (offset + j + 1) * 3, scratchNext); } Cartesian3.subtract(previous, center, previous); Cartesian3.subtract(current, center, current); Cartesian3.subtract(next, center, next); var startK = j === 0 ? 2 : 0; var endK = j === count - 1 ? 2 : 4; for (var k = startK; k < endK; ++k) { Cartesian3.pack(current, curPositions, positionIndex); Cartesian3.pack(previous, prevPositions, positionIndex); Cartesian3.pack(next, nextPositions, positionIndex); positionIndex += 3; var direction = k - 2 < 0 ? -1.0 : 1.0; expandAndWidth[expandAndWidthIndex++] = 2 * (k % 2) - 1; expandAndWidth[expandAndWidthIndex++] = direction * width; vertexBatchIds[batchIdIndex++] = batchId; } } offset += count; } var indices = IndexDatatype.createTypedArray(size, positionsLength * 6 - 6); var index = 0; var indicesIndex = 0; length = positionsLength - 1; for (i = 0; i < length; ++i) { indices[indicesIndex++] = index; indices[indicesIndex++] = index + 2; indices[indicesIndex++] = index + 1; indices[indicesIndex++] = index + 1; indices[indicesIndex++] = index + 2; indices[indicesIndex++] = index + 3; index += 4; } transferableObjects.push( curPositions.buffer, prevPositions.buffer, nextPositions.buffer ); transferableObjects.push( expandAndWidth.buffer, vertexBatchIds.buffer, indices.buffer ); return { indexDatatype: indices.BYTES_PER_ELEMENT === 2 ? IndexDatatype.UNSIGNED_SHORT : IndexDatatype.UNSIGNED_INT, currentPositions: curPositions.buffer, previousPositions: prevPositions.buffer, nextPositions: nextPositions.buffer, expandAndWidth: expandAndWidth.buffer, batchIds: vertexBatchIds.buffer, indices: indices.buffer, }; } export default <API key>(<API key>);
package com.kitfox.svg.pathcmd; //import org.apache.batik.ext.awt.geom.ExtendedGeneralPath; import java.awt.*; import java.awt.geom.*; /** * This is a little used SVG function, as most editors will save curves as * Beziers. To reduce the need to rely on the Batik library, this functionallity * is being bypassed for the time being. In the future, it would be nice to * extend the GeneralPath command to include the arcTo ability provided by Batik. * * @author Mark McKay * @author <a href="mailto:mark@kitfox.com">Mark McKay</a> */ public class Arc extends PathCommand { public float rx = 0f; public float ry = 0f; public float xAxisRot = 0f; public boolean largeArc = false; public boolean sweep = false; public float x = 0f; public float y = 0f; /** Creates a new instance of MoveTo */ public Arc() { } public Arc(boolean isRelative, float rx, float ry, float xAxisRot, boolean largeArc, boolean sweep, float x, float y) { super(isRelative); this.rx = rx; this.ry = ry; this.xAxisRot = xAxisRot; this.largeArc = largeArc; this.sweep = sweep; this.x = x; this.y = y; } // public void appendPath(ExtendedGeneralPath path, BuildHistory hist) @Override public void appendPath(GeneralPath path, BuildHistory hist) { float offx = isRelative ? hist.lastPoint.x : 0f; float offy = isRelative ? hist.lastPoint.y : 0f; arcTo(path, rx, ry, xAxisRot, largeArc, sweep, x + offx, y + offy, hist.lastPoint.x, hist.lastPoint.y); // path.lineTo(x + offx, y + offy); // hist.setPoint(x + offx, y + offy); hist.setLastPoint(x + offx, y + offy); hist.setLastKnot(x + offx, y + offy); } @Override public int getNumKnotsAdded() { return 6; } /** * Adds an elliptical arc, defined by two radii, an angle from the * x-axis, a flag to choose the large arc or not, a flag to * indicate if we increase or decrease the angles and the final * point of the arc. * * @param rx the x radius of the ellipse * @param ry the y radius of the ellipse * * @param angle the angle from the x-axis of the current * coordinate system to the x-axis of the ellipse in degrees. * * @param largeArcFlag the large arc flag. If true the arc * spanning less than or equal to 180 degrees is chosen, otherwise * the arc spanning greater than 180 degrees is chosen * * @param sweepFlag the sweep flag. If true the line joining * center to arc sweeps through decreasing angles otherwise it * sweeps through increasing angles * * @param x the absolute x coordinate of the final point of the arc. * @param y the absolute y coordinate of the final point of the arc. * @param x0 - The absolute x coordinate of the initial point of the arc. * @param y0 - The absolute y coordinate of the initial point of the arc. */ public void arcTo(GeneralPath path, float rx, float ry, float angle, boolean largeArcFlag, boolean sweepFlag, float x, float y, float x0, float y0) { // Ensure radii are valid if (rx == 0 || ry == 0) { path.lineTo((float) x, (float) y); return; } if (x0 == x && y0 == y) { // If the endpoints (x, y) and (x0, y0) are identical, then this // is equivalent to omitting the elliptical arc segment entirely. return; } Arc2D arc = computeArc(x0, y0, rx, ry, angle, largeArcFlag, sweepFlag, x, y); if (arc == null) return; AffineTransform t = AffineTransform.getRotateInstance (Math.toRadians(angle), arc.getCenterX(), arc.getCenterY()); Shape s = t.<API key>(arc); path.append(s, true); } /** * This constructs an unrotated Arc2D from the SVG specification of an * Elliptical arc. To get the final arc you need to apply a rotation * transform such as: * * AffineTransform.getRotateInstance * (angle, arc.getX()+arc.getWidth()/2, arc.getY()+arc.getHeight()/2); */ public static Arc2D computeArc(double x0, double y0, double rx, double ry, double angle, boolean largeArcFlag, boolean sweepFlag, double x, double y) { // Elliptical arc implementation based on the SVG specification notes // Compute the half distance between the current and the final point double dx2 = (x0 - x) / 2.0; double dy2 = (y0 - y) / 2.0; // Convert angle from degrees to radians angle = Math.toRadians(angle % 360.0); double cosAngle = Math.cos(angle); double sinAngle = Math.sin(angle); // Step 1 : Compute (x1, y1) double x1 = (cosAngle * dx2 + sinAngle * dy2); double y1 = (-sinAngle * dx2 + cosAngle * dy2); // Ensure radii are large enough rx = Math.abs(rx); ry = Math.abs(ry); double Prx = rx * rx; double Pry = ry * ry; double Px1 = x1 * x1; double Py1 = y1 * y1; // check that radii are large enough double radiiCheck = Px1/Prx + Py1/Pry; if (radiiCheck > 1) { rx = Math.sqrt(radiiCheck) * rx; ry = Math.sqrt(radiiCheck) * ry; Prx = rx * rx; Pry = ry * ry; } // Step 2 : Compute (cx1, cy1) double sign = (largeArcFlag == sweepFlag) ? -1 : 1; double sq = ((Prx*Pry)-(Prx*Py1)-(Pry*Px1)) / ((Prx*Py1)+(Pry*Px1)); sq = (sq < 0) ? 0 : sq; double coef = (sign * Math.sqrt(sq)); double cx1 = coef * ((rx * y1) / ry); double cy1 = coef * -((ry * x1) / rx); // Step 3 : Compute (cx, cy) from (cx1, cy1) double sx2 = (x0 + x) / 2.0; double sy2 = (y0 + y) / 2.0; double cx = sx2 + (cosAngle * cx1 - sinAngle * cy1); double cy = sy2 + (sinAngle * cx1 + cosAngle * cy1); // Step 4 : Compute the angleStart (angle1) and the angleExtent (dangle) double ux = (x1 - cx1) / rx; double uy = (y1 - cy1) / ry; double vx = (-x1 - cx1) / rx; double vy = (-y1 - cy1) / ry; double p, n; // Compute the angle start n = Math.sqrt((ux * ux) + (uy * uy)); p = ux; // (1 * ux) + (0 * uy) sign = (uy < 0) ? -1d : 1d; double angleStart = Math.toDegrees(sign * Math.acos(p / n)); // Compute the angle extent n = Math.sqrt((ux * ux + uy * uy) * (vx * vx + vy * vy)); p = ux * vx + uy * vy; sign = (ux * vy - uy * vx < 0) ? -1d : 1d; double angleExtent = Math.toDegrees(sign * Math.acos(p / n)); if(!sweepFlag && angleExtent > 0) { angleExtent -= 360f; } else if (sweepFlag && angleExtent < 0) { angleExtent += 360f; } angleExtent %= 360f; angleStart %= 360f; // We can now build the resulting Arc2D in double precision Arc2D.Double arc = new Arc2D.Double(); arc.x = cx - rx; arc.y = cy - ry; arc.width = rx * 2.0; arc.height = ry * 2.0; arc.start = -angleStart; arc.extent = -angleExtent; return arc; } @Override public String toString() { return "A " + rx + " " + ry + " " + xAxisRot + " " + largeArc + " " + sweep + " " + x + " " + y; } }
'use strict'; angular.module('publisherApp') .config(function ($stateProvider) { $stateProvider .state('settings', { parent: 'account', url: '/settings', data: { roles: ['ROLE_USER'], pageTitle: 'global.menu.account.settings' }, views: { 'container@': { templateUrl: 'scripts/app/account/settings/settings.html', controller: 'SettingsController' } }, resolve: { <API key>: ['$translate', '$<API key>', function ($translate, $<API key>) { $<API key>.addPart('settings'); return $translate.refresh(); }] } }); });
package com.sean.im.client.push.handler; import com.alibaba.fastjson.JSON; import com.sean.im.client.constant.Global; import com.sean.im.client.core.ApplicationContext; import com.sean.im.client.core.PushHandler; import com.sean.im.client.form.MainForm; import com.sean.im.client.tray.TrayManager; import com.sean.im.client.util.MusicUtil; import com.sean.im.commom.core.Protocol; import com.sean.im.commom.entity.Message; /** * * @author sean */ public class KickOutFlockHandler implements PushHandler { @Override public void execute(Protocol notify) { Message msg = JSON.parseObject(notify.getParameter("msg"), Message.class); long flockId = Long.parseLong(msg.getContent()); MainForm.FORM.getFlockList().removeFlock(flockId); ApplicationContext.CTX.getMessageQueue().add(msg); TrayManager.getInstance().startLight(0); MusicUtil.play(Global.Root + "resource/sound/msg.wav"); } }
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_60) on Mon Mar 28 17:12:30 AEST 2016 --> <title>Uses of Class org.apache.river.start.<API key> (River-Internet vtrunk API Documentation (internals))</title> <meta name="date" content="2016-03-28"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.river.start.<API key> (River-Internet vtrunk API Documentation (internals))"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/river/start/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Class org.apache.river.start.<API key>" class="title">Uses of Class<br>org.apache.river.start.<API key></h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#org.apache.river.tool.envcheck.plugins">org.apache.river.tool.envcheck.plugins</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="org.apache.river.tool.envcheck.plugins"> </a> <h3>Uses of <a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start"><API key></a> in <a href="../../../../../org/apache/river/tool/envcheck/plugins/package-summary.html">org.apache.river.tool.envcheck.plugins</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../org/apache/river/tool/envcheck/plugins/package-summary.html">org.apache.river.tool.envcheck.plugins</a> with parameters of type <a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> <td class="colLast"><span class="typeNameLabel">CheckPersistence.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/river/tool/envcheck/plugins/CheckPersistence.html <a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start"><API key></a>&nbsp;d)</code> <div class="block">Perform a check on the given persistence directory.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><span class="typeNameLabel">CheckPersistence.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/river/tool/envcheck/plugins/CheckPersistence.html#checkDirectory-org.apache.river.start.<API key>-">checkDirectory</a></span>(<a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start"><API key></a>&nbsp;d)</code> <div class="block">Launch a subtask for the given descriptor to obtain all the <code><API key></code> entries.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>private void</code></td> <td class="colLast"><span class="typeNameLabel">CheckPersistence.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/river/tool/envcheck/plugins/CheckPersistence.html <a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start"><API key></a>&nbsp;d, <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;source)</code> <div class="block">Check <code>entries</code> for validity.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../org/apache/river/start/<API key>.html" title="class in org.apache.river.start">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?org/apache/river/start/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small>Copyright 2007-2013, multiple authors.<br>Licensed under the <a href=http: </body> </html>
CREATE CONSTRAINT ON (c:Concept) ASSERT c.name IS UNIQUE; ##Creating all the nodes from CSV file USING PERIODIC COMMIT 50 LOAD CSV WITH HEADERS FROM "file:///food.csv" AS Line WITH Line WHERE Line.name IS NOT NULL MERGE (c:Concept {name:Line.name}) SET c.conceptid = Line.`node id` SET c.context = Line.context SET c.desc = Line.description SET c.parent = Line.`parent node id` ## create a relationship between nodes dynamically USING PERIODIC COMMIT 50 LOAD CSV WITH HEADERS FROM "file:///food.csv" AS Line WITH Line WHERE Line.name IS NOT NULL MATCH (c:concept {name:Line.name}) MATCH (pc:concept {conceptid:Line.`parent node id`}) call apoc.create.relationship(c, Line.`parent relation`, {}, pc) YIELD rel return c, pc, rel ##Create a relationship if you know the relation between nodes USING PERIODIC COMMIT 50 LOAD CSV WITH HEADERS FROM "file:///food.csv" AS Line WITH Line, Line.`parent relation` as rl WHERE Line.name IS NOT NULL MATCH (c:Concept {name:Line.name}) MATCH (pc:Concept {conceptid:Line.`parent node id`}) FOREACH(ignoreme in CASE WHEN rl = "subconcept of" THEN [1] ELSE [] END | MERGE (c)-[:`subconcept of`]->(pc)) FOREACH(ignoreme in CASE WHEN rl = "related" THEN [1] ELSE [] END | MERGE (c)-[:`related`]->(pc)) ##Creating a Domain and create relation between domain and concepts Match (c:Concept {context: 'Food'}) merge (d:Domain {name:'Food'}) merge (c)-[r:ConceptOf]->(d) return c,r,d ##To return all the node from database MATCH (c:Concept) MATCH (pc:Concept) MATCH (d:Domain) MATCH (c)-[]-(pc) MATCH (c)-[]-(d)
--TEST Deregisters UDF module at the Aerospike DB which is present. --FILE <?php include dirname(__FILE__)."/../../astestframework/astest-phpt-loader.inc"; <API key>("Udf", "<API key>"); --EXPECT OK
layout: base title: 'Dependencies' generated: 'true' permalink: uk/dep/all.html {% capture lcode %}{{ page.permalink | split:"/" | first }}{% endcapture %} # Dependencies <span about="." property="rdf:type" resource="owl:Ontology"> <span property="owl:imports" resource=" https: </span> {% include uk-dep-table.html %} <span about="#dep_{{ lcode }}" property="rdfs:label" style="visibility: hidden">{{ page.title }}</span> <span about="#dep_{{ lcode }}" property="rdfs:subClassOf" resource="_:{{ lcode }}"> <span about="_:{{ lcode }}" property="rdf:type" resource="owl:Restriction"> <span property="owl:onProperty" resource="http://purl.org/dc/terms/language"/> <span property="owl:hasValue" lang="" style="visibility: hidden">{{ lcode }}</span> </span> </span> {% assign sorted = site.uk-dep | sort: 'title' %} {% for p in sorted %} {% capture concept %}{{ p.title | split:':' | first }}{% endcapture %} <div about="#{{ p.title | url_encode }}_{{ lcode }}" property="rdf:type" resource="#dep_{{ lcode }}"> <div property="rdf:type" resource="../../u/dep/all.html#{{ concept }}"/> <a id="al-{{ lcode }}-dep/{{ p.title }}" class="al-dest"/> <h2><code property="oliasystem:hasTag" lang="">{{ p.title }}</code>: <div property="rdfs:label">{{ p.shortdef }}</div></h2> <div property="rdfs:comment"> {% if p.content contains "<!--details {{ p.content | split:"<!--details-->" | first | markdownify }} <a property="rdfs:seeAlso" href="{{ p.title }}" class="al-doc">See details</a> {% else %} {{ p.content | markdownify }} {% endif %} </div> <a href="{{ site.git_edit }}/{% if p.collection %}{{ p.relative_path }}{% else %}{{ p.path }}{% endif %}" target="#">edit {{ p.title }}</a> </div> {% endfor %}
<?php namespace edu\wisc\services\caos; class <API key> { /** * @var termCodeType $termCode */ protected $termCode = null; /** * @var string $subjectCode */ protected $subjectCode = null; /** * @var string $catalogNumber */ protected $catalogNumber = null; /** * @param termCodeType $termCode * @param string $subjectCode * @param string $catalogNumber */ public function __construct($termCode, $subjectCode, $catalogNumber) { $this->termCode = $termCode; $this->subjectCode = $subjectCode; $this->catalogNumber = $catalogNumber; } /** * @return termCodeType */ public function getTermCode() { return $this->termCode; } /** * @param termCodeType $termCode * @return \edu\wisc\services\caos\<API key> */ public function setTermCode($termCode) { $this->termCode = $termCode; return $this; } /** * @return string */ public function getSubjectCode() { return $this->subjectCode; } /** * @param string $subjectCode * @return \edu\wisc\services\caos\<API key> */ public function setSubjectCode($subjectCode) { $this->subjectCode = $subjectCode; return $this; } /** * @return string */ public function getCatalogNumber() { return $this->catalogNumber; } /** * @param string $catalogNumber * @return \edu\wisc\services\caos\<API key> */ public function setCatalogNumber($catalogNumber) { $this->catalogNumber = $catalogNumber; return $this; } }
package com.mic.log.spouts; import java.util.Map; import backtype.storm.spout.<API key>; import backtype.storm.task.TopologyContext; import backtype.storm.topology.<API key>; import backtype.storm.topology.base.BaseRichSpout; import backtype.storm.tuple.Fields; import backtype.storm.tuple.Values; public class AppLogWriterSpout extends BaseRichSpout { private <API key> _collector; public void open(Map conf, TopologyContext context, <API key> collector) { this._collector = collector; } @Override public void nextTuple() { try { Thread.sleep(2000); } catch (<API key> e) { e.printStackTrace(); } _collector.emit(new Values("command")); } @Override public void declareOutputFields(<API key> declarer) { declarer.declare(new Fields("command")); } }
#include "base/nix/mime_util_xdg.h" #include <cstdlib> #include <list> #include <map> #include <vector> #include "base/environment.h" #include "base/file_util.h" #include "base/lazy_instance.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/memory/singleton.h" #include "base/nix/xdg_util.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/synchronization/lock.h" #include "base/third_party/xdg_mime/xdgmime.h" #include "base/threading/thread_restrictions.h" #include "base/time/time.h" namespace base { namespace nix { namespace { class IconTheme; // None of the XDG stuff is thread-safe, so serialize all access under // this lock. LazyInstance<Lock>::Leaky <API key> = <API key>; class MimeUtilConstants { public: typedef std::map<std::string, IconTheme*> IconThemeMap; typedef std::map<FilePath, Time> IconDirMtimeMap; typedef std::vector<std::string> IconFormats; // Specified by XDG icon theme specs. static const int <API key> = 5; static const size_t kDefaultThemeNum = 4; static MimeUtilConstants* GetInstance() { return Singleton<MimeUtilConstants>::get(); } // Store icon directories and their mtimes. IconDirMtimeMap icon_dirs_; // Store icon formats. IconFormats icon_formats_; // Store loaded icon_theme. IconThemeMap icon_themes_; // The default theme. IconTheme* default_themes_[kDefaultThemeNum]; TimeTicks last_check_time_; // The current icon theme, usually set through GTK theme integration. std::string icon_theme_name_; private: MimeUtilConstants() { icon_formats_.push_back(".png"); icon_formats_.push_back(".svg"); icon_formats_.push_back(".xpm"); for (size_t i = 0; i < kDefaultThemeNum; ++i) default_themes_[i] = NULL; } ~MimeUtilConstants(); friend struct <API key><MimeUtilConstants>; <API key>(MimeUtilConstants); }; // IconTheme represents an icon theme as defined by the xdg icon theme spec. // Example themes on GNOME include 'Human' and 'Mist'. // Example themes on KDE include 'crystalsvg' and 'kdeclassic'. class IconTheme { public: // A theme consists of multiple sub-directories, like '32x32' and 'scalable'. class SubDirInfo { public: // See spec for details. enum Type { Fixed, Scalable, Threshold }; SubDirInfo() : size(0), type(Threshold), max_size(0), min_size(0), threshold(2) { } size_t size; // Nominal size of the icons in this directory. Type type; // Type of the icon size. size_t max_size; // Maximum size that the icons can be scaled to. size_t min_size; // Minimum size that the icons can be scaled to. size_t threshold; // Maximum difference from desired size. 2 by default. }; explicit IconTheme(const std::string& name); ~IconTheme() {} // Returns the path to an icon with the name |icon_name| and a size of |size| // pixels. If the icon does not exist, but |inherits| is true, then look for // the icon in the parent theme. FilePath GetIconPath(const std::string& icon_name, int size, bool inherits); // Load a theme with the name |theme_name| into memory. Returns null if theme // is invalid. static IconTheme* LoadTheme(const std::string& theme_name); private: // Returns the path to an icon with the name |icon_name| in |subdir|. FilePath <API key>(const std::string& icon_name, const std::string& subdir); // Whether the theme loaded properly. bool IsValid() { return index_theme_loaded_; } // Read and parse |file| which is usually named 'index.theme' per theme spec. bool LoadIndexTheme(const FilePath& file); // Checks to see if the icons in |info| matches |size| (in pixels). Returns // 0 if they match, or the size difference in pixels. size_t MatchesSize(SubDirInfo* info, size_t size); // Yet another function to read a line. std::string ReadLine(FILE* fp); // Set directories to search for icons to the comma-separated list |dirs|. bool SetDirectories(const std::string& dirs); bool index_theme_loaded_; // True if an instance is properly loaded. // store the scattered directories of this theme. std::list<FilePath> dirs_; // store the subdirs of this theme and array index of |info_array_|. std::map<std::string, int> subdirs_; scoped_ptr<SubDirInfo[]> info_array_; // List of sub-directories. std::string inherits_; // Name of the theme this one inherits from. }; IconTheme::IconTheme(const std::string& name) : index_theme_loaded_(false) { ThreadRestrictions::AssertIOAllowed(); // Iterate on all icon directories to find directories of the specified // theme and load the first encountered index.theme. MimeUtilConstants::IconDirMtimeMap::iterator iter; FilePath theme_path; MimeUtilConstants::IconDirMtimeMap* icon_dirs = &MimeUtilConstants::GetInstance()->icon_dirs_; for (iter = icon_dirs->begin(); iter != icon_dirs->end(); ++iter) { theme_path = iter->first.Append(name); if (!DirectoryExists(theme_path)) continue; FilePath theme_index = theme_path.Append("index.theme"); if (!index_theme_loaded_ && PathExists(theme_index)) { if (!LoadIndexTheme(theme_index)) return; index_theme_loaded_ = true; } dirs_.push_back(theme_path); } } FilePath IconTheme::GetIconPath(const std::string& icon_name, int size, bool inherits) { std::map<std::string, int>::iterator subdir_iter; FilePath icon_path; for (subdir_iter = subdirs_.begin(); subdir_iter != subdirs_.end(); ++subdir_iter) { SubDirInfo* info = &info_array_[subdir_iter->second]; if (MatchesSize(info, size) == 0) { icon_path = <API key>(icon_name, subdir_iter->first); if (!icon_path.empty()) return icon_path; } } // Now looking for the mostly matched. size_t min_delta_seen = 9999; for (subdir_iter = subdirs_.begin(); subdir_iter != subdirs_.end(); ++subdir_iter) { SubDirInfo* info = &info_array_[subdir_iter->second]; size_t delta = MatchesSize(info, size); if (delta < min_delta_seen) { FilePath path = <API key>(icon_name, subdir_iter->first); if (!path.empty()) { min_delta_seen = delta; icon_path = path; } } } if (!icon_path.empty() || !inherits || inherits_ == "") return icon_path; IconTheme* theme = LoadTheme(inherits_); // Inheriting from itself means the theme is buggy but we shouldn't crash. if (theme && theme != this) return theme->GetIconPath(icon_name, size, inherits); else return FilePath(); } IconTheme* IconTheme::LoadTheme(const std::string& theme_name) { scoped_ptr<IconTheme> theme; MimeUtilConstants::IconThemeMap* icon_themes = &MimeUtilConstants::GetInstance()->icon_themes_; if (icon_themes->find(theme_name) != icon_themes->end()) { theme.reset((*icon_themes)[theme_name]); } else { theme.reset(new IconTheme(theme_name)); if (!theme->IsValid()) theme.reset(); (*icon_themes)[theme_name] = theme.get(); } return theme.release(); } FilePath IconTheme::<API key>(const std::string& icon_name, const std::string& subdir) { FilePath icon_path; std::list<FilePath>::iterator dir_iter; MimeUtilConstants::IconFormats* icon_formats = &MimeUtilConstants::GetInstance()->icon_formats_; for (dir_iter = dirs_.begin(); dir_iter != dirs_.end(); ++dir_iter) { for (size_t i = 0; i < icon_formats->size(); ++i) { icon_path = dir_iter->Append(subdir); icon_path = icon_path.Append(icon_name + (*icon_formats)[i]); if (PathExists(icon_path)) return icon_path; } } return FilePath(); } bool IconTheme::LoadIndexTheme(const FilePath& file) { FILE* fp = base::OpenFile(file, "r"); SubDirInfo* current_info = NULL; if (!fp) return false; // Read entries. while (!feof(fp) && !ferror(fp)) { std::string buf = ReadLine(fp); if (buf == "") break; std::string entry; TrimWhitespaceASCII(buf, TRIM_ALL, &entry); if (entry.length() == 0 || entry[0] == ' // Blank line or Comment. continue; } else if (entry[0] == '[' && info_array_.get()) { current_info = NULL; std::string subdir = entry.substr(1, entry.length() - 2); if (subdirs_.find(subdir) != subdirs_.end()) current_info = &info_array_[subdirs_[subdir]]; } std::string key, value; std::vector<std::string> r; SplitStringDontTrim(entry, '=', &r); if (r.size() < 2) continue; TrimWhitespaceASCII(r[0], TRIM_ALL, &key); for (size_t i = 1; i < r.size(); i++) value.append(r[i]); TrimWhitespaceASCII(value, TRIM_ALL, &value); if (current_info) { if (key == "Size") { current_info->size = atoi(value.c_str()); } else if (key == "Type") { if (value == "Fixed") current_info->type = SubDirInfo::Fixed; else if (value == "Scalable") current_info->type = SubDirInfo::Scalable; else if (value == "Threshold") current_info->type = SubDirInfo::Threshold; } else if (key == "MaxSize") { current_info->max_size = atoi(value.c_str()); } else if (key == "MinSize") { current_info->min_size = atoi(value.c_str()); } else if (key == "Threshold") { current_info->threshold = atoi(value.c_str()); } } else { if (key.compare("Directories") == 0 && !info_array_.get()) { if (!SetDirectories(value)) break; } else if (key.compare("Inherits") == 0) { if (value != "hicolor") inherits_ = value; } } } base::CloseFile(fp); return info_array_.get() != NULL; } size_t IconTheme::MatchesSize(SubDirInfo* info, size_t size) { if (info->type == SubDirInfo::Fixed) { if (size > info->size) return size - info->size; else return info->size - size; } else if (info->type == SubDirInfo::Scalable) { if (size < info->min_size) return info->min_size - size; if (size > info->max_size) return size - info->max_size; return 0; } else { if (size + info->threshold < info->size) return info->size - size - info->threshold; if (size > info->size + info->threshold) return size - info->size - info->threshold; return 0; } } std::string IconTheme::ReadLine(FILE* fp) { if (!fp) return std::string(); std::string result; const size_t kBufferSize = 100; char buffer[kBufferSize]; while ((fgets(buffer, kBufferSize - 1, fp)) != NULL) { result += buffer; size_t len = result.length(); if (len == 0) break; char end = result[len - 1]; if (end == '\n' || end == '\0') break; } return result; } bool IconTheme::SetDirectories(const std::string& dirs) { int num = 0; std::string::size_type pos = 0, epos; std::string dir; while ((epos = dirs.find(',', pos)) != std::string::npos) { TrimWhitespaceASCII(dirs.substr(pos, epos - pos), TRIM_ALL, &dir); if (dir.length() == 0) { DLOG(WARNING) << "Invalid index.theme: blank subdir"; return false; } subdirs_[dir] = num++; pos = epos + 1; } TrimWhitespaceASCII(dirs.substr(pos), TRIM_ALL, &dir); if (dir.length() == 0) { DLOG(WARNING) << "Invalid index.theme: blank subdir"; return false; } subdirs_[dir] = num++; info_array_.reset(new SubDirInfo[num]); return true; } bool <API key>(const FilePath& dir, Time* last_modified) { if (!DirectoryExists(dir)) return false; File::Info file_info; if (!GetFileInfo(dir, &file_info)) return false; *last_modified = file_info.last_modified; return true; } // Make sure |dir| exists and add it to the list of icon directories. void TryAddIconDir(const FilePath& dir) { Time last_modified; if (!<API key>(dir, &last_modified)) return; MimeUtilConstants::GetInstance()->icon_dirs_[dir] = last_modified; } // For a xdg directory |dir|, add the appropriate icon sub-directories. void AddXDGDataDir(const FilePath& dir) { if (!DirectoryExists(dir)) return; TryAddIconDir(dir.Append("icons")); TryAddIconDir(dir.Append("pixmaps")); } // Add all the xdg icon directories. void InitIconDir() { FilePath home = GetHomeDir(); if (!home.empty()) { FilePath legacy_data_dir(home); legacy_data_dir = legacy_data_dir.AppendASCII(".icons"); if (DirectoryExists(legacy_data_dir)) TryAddIconDir(legacy_data_dir); } const char* env = getenv("XDG_DATA_HOME"); if (env) { AddXDGDataDir(FilePath(env)); } else if (!home.empty()) { FilePath local_data_dir(home); local_data_dir = local_data_dir.AppendASCII(".local"); local_data_dir = local_data_dir.AppendASCII("share"); AddXDGDataDir(local_data_dir); } env = getenv("XDG_DATA_DIRS"); if (!env) { AddXDGDataDir(FilePath("/usr/local/share")); AddXDGDataDir(FilePath("/usr/share")); } else { std::string xdg_data_dirs = env; std::string::size_type pos = 0, epos; while ((epos = xdg_data_dirs.find(':', pos)) != std::string::npos) { AddXDGDataDir(FilePath(xdg_data_dirs.substr(pos, epos - pos))); pos = epos + 1; } AddXDGDataDir(FilePath(xdg_data_dirs.substr(pos))); } } void EnsureUpdated() { MimeUtilConstants* constants = MimeUtilConstants::GetInstance(); if (constants->last_check_time_.is_null()) { constants->last_check_time_ = TimeTicks::Now(); InitIconDir(); return; } // Per xdg theme spec, we should check the icon directories every so often // for newly added icons. TimeDelta <API key> = TimeTicks::Now() - constants->last_check_time_; if (<API key>.InSeconds() > constants-><API key>) { constants->last_check_time_ += <API key>; bool rescan_icon_dirs = false; MimeUtilConstants::IconDirMtimeMap* icon_dirs = &constants->icon_dirs_; MimeUtilConstants::IconDirMtimeMap::iterator iter; for (iter = icon_dirs->begin(); iter != icon_dirs->end(); ++iter) { Time last_modified; if (!<API key>(iter->first, &last_modified) || last_modified != iter->second) { rescan_icon_dirs = true; break; } } if (rescan_icon_dirs) { constants->icon_dirs_.clear(); constants->icon_themes_.clear(); InitIconDir(); } } } // Find a fallback icon if we cannot find it in the default theme. FilePath LookupFallbackIcon(const std::string& icon_name) { MimeUtilConstants* constants = MimeUtilConstants::GetInstance(); MimeUtilConstants::IconDirMtimeMap::iterator iter; MimeUtilConstants::IconDirMtimeMap* icon_dirs = &constants->icon_dirs_; MimeUtilConstants::IconFormats* icon_formats = &constants->icon_formats_; for (iter = icon_dirs->begin(); iter != icon_dirs->end(); ++iter) { for (size_t i = 0; i < icon_formats->size(); ++i) { FilePath icon = iter->first.Append(icon_name + (*icon_formats)[i]); if (PathExists(icon)) return icon; } } return FilePath(); } // Initialize the list of default themes. void InitDefaultThemes() { IconTheme** default_themes = MimeUtilConstants::GetInstance()->default_themes_; scoped_ptr<Environment> env(Environment::Create()); base::nix::DesktopEnvironment desktop_env = base::nix::<API key>(env.get()); if (desktop_env == base::nix::<API key> || desktop_env == base::nix::<API key>) { // KDE std::string kde_default_theme; std::string kde_fallback_theme; // TODO(thestig): Figure out how to get the current icon theme on KDE. // Setting stored in ~/.kde/share/config/kdeglobals under Icons -> Theme. default_themes[0] = NULL; // Try some reasonable defaults for KDE. if (desktop_env == base::nix::<API key>) { // KDE 3 kde_default_theme = "default.kde"; kde_fallback_theme = "crystalsvg"; } else { // KDE 4 kde_default_theme = "default.kde4"; kde_fallback_theme = "oxygen"; } default_themes[1] = IconTheme::LoadTheme(kde_default_theme); default_themes[2] = IconTheme::LoadTheme(kde_fallback_theme); } else { // Assume it's Gnome and use GTK to figure out the theme. default_themes[1] = IconTheme::LoadTheme( MimeUtilConstants::GetInstance()->icon_theme_name_); default_themes[2] = IconTheme::LoadTheme("gnome"); } // hicolor needs to be last per icon theme spec. default_themes[3] = IconTheme::LoadTheme("hicolor"); for (size_t i = 0; i < MimeUtilConstants::kDefaultThemeNum; i++) { if (default_themes[i] == NULL) continue; // NULL out duplicate pointers. for (size_t j = i + 1; j < MimeUtilConstants::kDefaultThemeNum; j++) { if (default_themes[j] == default_themes[i]) default_themes[j] = NULL; } } } // Try to find an icon with the name |icon_name| that's |size| pixels. FilePath <API key>(const std::string& icon_name, int size) { EnsureUpdated(); MimeUtilConstants* constants = MimeUtilConstants::GetInstance(); MimeUtilConstants::IconThemeMap* icon_themes = &constants->icon_themes_; if (icon_themes->empty()) InitDefaultThemes(); FilePath icon_path; IconTheme** default_themes = constants->default_themes_; for (size_t i = 0; i < MimeUtilConstants::kDefaultThemeNum; i++) { if (default_themes[i]) { icon_path = default_themes[i]->GetIconPath(icon_name, size, true); if (!icon_path.empty()) return icon_path; } } return LookupFallbackIcon(icon_name); } MimeUtilConstants::~MimeUtilConstants() { for (size_t i = 0; i < kDefaultThemeNum; i++) delete default_themes_[i]; } } // namespace std::string GetFileMimeType(const FilePath& filepath) { if (filepath.empty()) return std::string(); ThreadRestrictions::AssertIOAllowed(); AutoLock scoped_lock(<API key>.Get()); return <API key>(filepath.value().c_str()); } std::string GetDataMimeType(const std::string& data) { ThreadRestrictions::AssertIOAllowed(); AutoLock scoped_lock(<API key>.Get()); return <API key>(data.data(), data.length(), NULL); } void SetIconThemeName(const std::string& name) { // If the theme name is already loaded, do nothing. Chrome doesn't respond // to changes in the system theme, so we never need to set this more than // once. if (!MimeUtilConstants::GetInstance()->icon_theme_name_.empty()) return; MimeUtilConstants::GetInstance()->icon_theme_name_ = name; } FilePath GetMimeIcon(const std::string& mime_type, size_t size) { ThreadRestrictions::AssertIOAllowed(); std::vector<std::string> icon_names; std::string icon_name; FilePath icon_file; if (!mime_type.empty()) { AutoLock scoped_lock(<API key>.Get()); const char *icon = xdg_mime_get_icon(mime_type.c_str()); icon_name = std::string(icon ? icon : ""); } if (icon_name.length()) icon_names.push_back(icon_name); // For text/plain, try text-plain. icon_name = mime_type; for (size_t i = icon_name.find('/', 0); i != std::string::npos; i = icon_name.find('/', i + 1)) { icon_name[i] = '-'; } icon_names.push_back(icon_name); // Also try <API key>. icon_names.push_back("gnome-mime-" + icon_name); // Try "deb" for "application/x-deb" in KDE 3. size_t x_substr_pos = mime_type.find("/x-"); if (x_substr_pos != std::string::npos) { icon_name = mime_type.substr(x_substr_pos + 3); icon_names.push_back(icon_name); } // Try generic name like text-x-generic. icon_name = mime_type.substr(0, mime_type.find('/')) + "-x-generic"; icon_names.push_back(icon_name); // Last resort icon_names.push_back("unknown"); for (size_t i = 0; i < icon_names.size(); i++) { if (icon_names[i][0] == '/') { icon_file = FilePath(icon_names[i]); if (PathExists(icon_file)) return icon_file; } else { icon_file = <API key>(icon_names[i], size); if (!icon_file.empty()) return icon_file; } } return FilePath(); } } // namespace nix } // namespace base
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_102) on Thu Sep 29 16:37:39 CEST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class energy.usef.agr.model.<API key> (usef-root-pom 1.3.6 API)</title> <meta name="date" content="2016-09-29"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class energy.usef.agr.model.<API key> (usef-root-pom 1.3.6 API)"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?energy/usef/agr/model/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="header"> <h2 title="Uses of Class energy.usef.agr.model.<API key>" class="title">Uses of Class<br>energy.usef.agr.model.<API key></h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#energy.usef.agr.model">energy.usef.agr.model</a></td> <td class="colLast"> <div class="block">Model classes of the Aggregator.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#energy.usef.agr.repository">energy.usef.agr.repository</a></td> <td class="colLast"> <div class="block">Repository classes of the Aggregator.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#energy.usef.agr.service.business">energy.usef.agr.service.business</a></td> <td class="colLast"> <div class="block">Business classes of the Aggregator.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="energy.usef.agr.model"> </a> <h3>Uses of <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a> in <a href="../../../../../energy/usef/agr/model/package-summary.html">energy.usef.agr.model</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../energy/usef/agr/model/package-summary.html">energy.usef.agr.model</a> that return <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../energy/usef/agr/model/<API key>.html#<API key>--"><API key></a></span>()</code>&nbsp;</td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../energy/usef/agr/model/package-summary.html">energy.usef.agr.model</a> with parameters of type <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../energy/usef/agr/model/<API key>.html#<API key>.usef.agr.model.<API key>-"><API key></a></span>(<a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a>&nbsp;<API key>)</code>&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"><a name="energy.usef.agr.repository"> </a> <h3>Uses of <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a> in <a href="../../../../../energy/usef/agr/repository/package-summary.html">energy.usef.agr.repository</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../energy/usef/agr/repository/package-summary.html">energy.usef.agr.repository</a> that return <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../energy/usef/agr/repository/<API key>.html <div class="block">Gets Synchronisation Connection entity by its entity address.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../energy/usef/agr/repository/package-summary.html">energy.usef.agr.repository</a> that return types with arguments of type <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../energy/usef/agr/repository/<API key>.html#findAll--">findAll</a></span>()</code> <div class="block">Gets all the connections.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../energy/usef/agr/repository/package-summary.html">energy.usef.agr.repository</a> with parameters of type <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../energy/usef/agr/repository/<API key>.html#deleteFor-energy.usef.agr.model.<API key>-">deleteFor</a></span>(<a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a>&nbsp;<API key>)</code> <div class="block">Deletes all the <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><code><API key></code></a> object for a .</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="energy.usef.agr.service.business"> </a> <h3>Uses of <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a> in <a href="../../../../../energy/usef/agr/service/business/package-summary.html">energy.usef.agr.service.business</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../../../energy/usef/agr/service/business/package-summary.html">energy.usef.agr.service.business</a> that return types with arguments of type <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><API key></a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="http: <td class="colLast"><span class="typeNameLabel"><API key>.</span><code><span class="memberNameLink"><a href="../../../../../energy/usef/agr/service/business/<API key>.html#<API key>--"><API key></a></span>()</code> <div class="block">Finds all <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><code><API key></code></a>s and <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><code><API key></code></a>s and put them in a Map, all <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><code><API key></code></a>s are send to all <a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model"><code><API key></code></a>s.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../energy/usef/agr/model/<API key>.html" title="class in energy.usef.agr.model">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?energy/usef/agr/model/class-use/<API key>.html" target="_top">Frames</a></li> <li><a href="<API key>.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> <p class="legalCopy"><small>Copyright & </body> </html>
#!/var/www/horizon/.venv/bin/python # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: import locale locale.setlocale(locale.LC_ALL, '') except: pass from docutils.core import publish_cmdline, default_description description = ('Generates Docutils-native XML from standalone ' 'reStructuredText sources. ' + default_description) publish_cmdline(writer_name='xml', description=description)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Search &mdash; Paramiko documentation</title> <link rel="stylesheet" href="_static/alabaster.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var <API key> = { URL_ROOT: './', VERSION: '', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="_static/searchtools.js"></script> <link rel="top" title="Paramiko documentation" href="index.html" /> <script type="text/javascript"> jQuery(function() { Search.loadIndex("searchindex.js"); }); </script> <script type="text/javascript" id="searchindexloader"></script> <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9"> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li><a href="index.html">Paramiko documentation</a> &raquo;</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <h1 id="<API key>">Search</h1> <div id="fallback" class="admonition warning"> <script type="text/javascript">$('#fallback').hide();</script> <p> Please activate JavaScript to enable the search functionality. </p> </div> <p> From here you can search these documents. Enter your search words into the box below and click "search". Note that the search function will automatically search for all of the words. Pages containing fewer words won't appear in the result list. </p> <form action="" method="get"> <input type="text" name="q" value="" /> <input type="submit" value="search" /> <span id="search-progress" style="padding-left: 10px"></span> </form> <div id="search-results"> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="<API key>"> <h1 class="logo"><a href="index.html">Paramiko</a></h1> <p class="blurb">A Python implementation of SSHv2.</p> <p> <iframe src="http://ghbtns.com/github-btn.html?user=paramiko&repo=paramiko&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe> </p> <p> <a href="https://travis-ci.org/paramiko/paramiko"> <img alt="https://secure.travis-ci.org/paramiko/paramiko.png?branch=master" src="https://secure.travis-ci.org/paramiko/paramiko.png?branch=master" > </a> </p> <h3>Navigation</h3> <ul> <li class="toctree-l1"><a class="reference internal" href="api/channel.html">Channel</a></li> <li class="toctree-l1"><a class="reference internal" href="api/client.html">Client</a></li> <li class="toctree-l1"><a class="reference internal" href="api/message.html">Message</a></li> <li class="toctree-l1"><a class="reference internal" href="api/packet.html">Packetizer</a></li> <li class="toctree-l1"><a class="reference internal" href="api/transport.html">Transport</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="api/agent.html">SSH Agents</a></li> <li class="toctree-l1"><a class="reference internal" href="api/hostkeys.html">Host keys / <tt class="docutils literal"><span class="pre">known_hosts</span></tt> files</a></li> <li class="toctree-l1"><a class="reference internal" href="api/keys.html">Key handling</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="api/config.html">Configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="api/proxy.html"><tt class="docutils literal"><span class="pre">ProxyCommand</span></tt> support</a></li> <li class="toctree-l1"><a class="reference internal" href="api/server.html">Server implementation</a></li> <li class="toctree-l1"><a class="reference internal" href="api/sftp.html">SFTP</a></li> </ul> <ul> <li class="toctree-l1"><a class="reference internal" href="api/buffered_pipe.html">Buffered pipes</a></li> <li class="toctree-l1"><a class="reference internal" href="api/file.html">Buffered files</a></li> <li class="toctree-l1"><a class="reference internal" href="api/pipe.html">Cross-platform pipe implementations</a></li> <li class="toctree-l1"><a class="reference internal" href="api/ssh_exception.html">Exceptions</a></li> </ul> <hr /> <ul> <li class="toctree-l1"><a href="http: </ul> <h3>Donate</h3> <p> Consider supporting the authors on <a href="https: <iframe style="border: 0; margin: 5px 0 -5px 0; padding: 0;" src="https: width="48pt" height="20pt"></iframe> </p> </div> </div> <div class="clearer"></div> </div> <div class="footer"> &copy;2014 Jeff Forcier. | Powered by <a href="http://sphinx-doc.org/">Sphinx 1.2.2</a> &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.6.0</a> </div> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-18486793-2']); _gaq.push(['_setDomainName', 'none']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https: var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html>
<?xml version="1.0" encoding="UTF-8"?> <html xmlns:extrep="http: <link href="report.css" type="text/css" rel="stylesheet"/> <body> <table border="0" cellpadding="2"> <tr> <td valign="middle" width="90"> <p> <a href="https://japex.dev.java.net"> <img src="small_japex.gif" align="middle" border="0"/> </a> </p> </td> <td valign="middle"> <h1>Japex Report: FI-serialize</h1> </td> </tr> </table> <h2>Global Parameters</h2> <ul> <li>chartType: barchart</li> <li>classPath: <table width=750><tr><td>japex/dist/jdsl/FastInfoset.jar; japex/dist/jdsl/activation.jar; japex/dist/jdsl/jaxb-api.jar; japex/dist/jdsl/jaxb-impl.jar; japex/dist/jdsl/jaxb-xjc.jar; japex/dist/jdsl/jaxb1-impl.jar; japex/dist/jdsl/jdsl.jar; japex/dist/jdsl/jsr173_api.jar; japex/dist/jdsl/resolver.jar; japex/dist/jdsl/sjsxp.jar; japex/dist/jdsl/xercesImpl.jar; japex/dist/jdsl/xml-apis.jar</td></tr></table></li> <li>configFile: serialize.xml</li> <li>dateTime: 23 Jan 2006/13:44:19 EST</li> <li>includeWarmupRun: false</li> <li>numberOfThreads: 1</li> <li>osArchitecture: x86</li> <li>osName: SunOS</li> <li>reportsDirectory: reports</li> <li>resultAxis: normal</li> <li>resultAxisX: normal</li> <li>resultUnit: ms</li> <li>resultUnitX: kbs</li> <li>runsPerDriver: 1</li> <li>runTime: 5</li> <li>version: 1.000</li> <li>vmInfo: Sun Microsystems Inc. 1.5.0_04-b05</li> <li>warmupTime: 5</li> </ul> <h2>Result Summary (ms)</h2> <table width="80%" border="1"> <thead> <tr> <th width="15%"> <b>driver</b> </th> <th> <b>resultAritMean</b> </th> <th> <b>resultHarmMean</b> </th> <th> <b>resultGeomMean</b> </th> <th> <b>driverClass</b> </th> </tr> </thead> <tbody> <tr> <td align="right"><API key></td> <td align="right"> <nobr>10.702</nobr> </td> <td align="right"> <nobr>0.121</nobr> </td> <td align="right"> <nobr>0.963</nobr> </td> <td align="right"> <nobr>com.sun.japex.jdsl.xml.serialize.dom.<API key></nobr> </td> </tr> <tr> <td align="right"><API key></td> <td align="right"> <nobr>10.978</nobr> </td> <td align="right"> <nobr>0.123</nobr> </td> <td align="right"> <nobr>0.979</nobr> </td> <td align="right"> <nobr>com.sun.japex.jdsl.xml.serialize.dom.<API key></nobr> </td> </tr> <tr> <td align="right"><API key></td> <td align="right"> <nobr>10.981</nobr> </td> <td align="right"> <nobr>0.064</nobr> </td> <td align="right"> <nobr>0.794</nobr> </td> <td align="right"> <nobr>com.sun.japex.jdsl.xml.serialize.dom.<API key></nobr> </td> </tr> <tr> <td align="right"><API key></td> <td align="right"> <nobr>20.996</nobr> </td> <td align="right"> <nobr>0.178</nobr> </td> <td align="right"> <nobr>1.550</nobr> </td> <td align="right"> <nobr>com.sun.japex.jdsl.xml.serialize.dom.<API key></nobr> </td> </tr> </tbody> </table> <br/> <br/> <center> <img src="result.jpg"/> </center> <br/> <br/> <h2>Driver: <API key></h2> <p> <ul> <li>jdsl.<API key>: n/a</li> <li>jdsl.<API key>: n/a</li> <li>jdsl.externalVocabulary: n/a</li> </ul> </p> <table width="80%" border="1"> <thead> <tr> <th> <b>testCase</b> </th> <th> <b>resultValue</b> </th> <th> <b>xmlfile</b> </th> </tr> </thead> <tbody> <tr> <td align="right">inv1.xml</td> <td align="right"> <nobr>0.119</nobr> </td> <td align="left"> <nobr>data/inv1.xml</nobr> </td> </tr> <tr> <td align="right">inv10.xml</td> <td align="right"> <nobr>0.246</nobr> </td> <td align="left"> <nobr>data/inv10.xml</nobr> </td> </tr> <tr> <td align="right">inv50.xml</td> <td align="right"> <nobr>0.828</nobr> </td> <td align="left"> <nobr>data/inv50.xml</nobr> </td> </tr> <tr> <td align="right">inv100.xml</td> <td align="right"> <nobr>1.556</nobr> </td> <td align="left"> <nobr>data/inv100.xml</nobr> </td> </tr> <tr> <td align="right">inv500.xml</td> <td align="right"> <nobr>10.087</nobr> </td> <td align="left"> <nobr>data/inv500.xml</nobr> </td> </tr> <tr> <td align="right">inv1000.xml</td> <td align="right"> <nobr>20.269</nobr> </td> <td align="left"> <nobr>data/inv1000.xml</nobr> </td> </tr> <tr> <td align="right">soap1.xml</td> <td align="right"> <nobr>0.025</nobr> </td> <td align="left"> <nobr>data/soap1.xml</nobr> </td> </tr> <tr> <td align="right">soap2.xml</td> <td align="right"> <nobr>0.027</nobr> </td> <td align="left"> <nobr>data/soap2.xml</nobr> </td> </tr> <tr> <td align="right">soap3.xml</td> <td align="right"> <nobr>0.028</nobr> </td> <td align="left"> <nobr>data/soap3.xml</nobr> </td> </tr> <tr> <td align="right">soap4.xml</td> <td align="right"> <nobr>3.133</nobr> </td> <td align="left"> <nobr>data/soap4.xml</nobr> </td> </tr> <tr> <td align="right">db10.xml</td> <td align="right"> <nobr>0.049</nobr> </td> <td align="left"> <nobr>data/db10.xml</nobr> </td> </tr> <tr> <td align="right">db50.xml</td> <td align="right"> <nobr>0.207</nobr> </td> <td align="left"> <nobr>data/db50.xml</nobr> </td> </tr> <tr> <td align="right">db100.xml</td> <td align="right"> <nobr>0.410</nobr> </td> <td align="left"> <nobr>data/db100.xml</nobr> </td> </tr> <tr> <td align="right">db500.xml</td> <td align="right"> <nobr>2.034</nobr> </td> <td align="left"> <nobr>data/db500.xml</nobr> </td> </tr> <tr> <td align="right">db1000.xml</td> <td align="right"> <nobr>5.473</nobr> </td> <td align="left"> <nobr>data/db1000.xml</nobr> </td> </tr> <tr> <td align="right">db10000.xml</td> <td align="right"> <nobr>60.034</nobr> </td> <td align="left"> <nobr>data/db10000.xml</nobr> </td> </tr> <tr> <td align="right">xsl1.xml</td> <td align="right"> <nobr>0.037</nobr> </td> <td align="left"> <nobr>data/xsl1.xml</nobr> </td> </tr> <tr> <td align="right">xsl2.xml</td> <td align="right"> <nobr>0.175</nobr> </td> <td align="left"> <nobr>data/xsl2.xml</nobr> </td> </tr> <tr> <td align="right">xsl3.xml</td> <td align="right"> <nobr>0.567</nobr> </td> <td align="left"> <nobr>data/xsl3.xml</nobr> </td> </tr> <tr> <td align="right">xsl4.xml</td> <td align="right"> <nobr>11.067</nobr> </td> <td align="left"> <nobr>data/xsl4.xml</nobr> </td> </tr> <tr> <td align="right">periodic.xml</td> <td align="right"> <nobr>1.925</nobr> </td> <td align="left"> <nobr>data/periodic.xml</nobr> </td> </tr> <tr> <td align="right">weblog.xml</td> <td align="right"> <nobr>68.896</nobr> </td> <td align="left"> <nobr>data/weblog.xml</nobr> </td> </tr> <tr> <td align="right">factbook.xml</td> <td align="right"> <nobr>58.955</nobr> </td> <td align="left"> <nobr>data/factbook.xml</nobr> </td> </tr> </tbody> </table> <br/> <h2>Driver: <API key></h2> <p> <ul> <li>jdsl.<API key>: 24</li> <li>jdsl.<API key>: 24</li> <li>jdsl.externalVocabulary: n/a</li> </ul> </p> <table width="80%" border="1"> <thead> <tr> <th> <b>testCase</b> </th> <th> <b>resultValue</b> </th> <th> <b>xmlfile</b> </th> </tr> </thead> <tbody> <tr> <td align="right">inv1.xml</td> <td align="right"> <nobr>0.123</nobr> </td> <td align="left"> <nobr>data/inv1.xml</nobr> </td> </tr> <tr> <td align="right">inv10.xml</td> <td align="right"> <nobr>0.247</nobr> </td> <td align="left"> <nobr>data/inv10.xml</nobr> </td> </tr> <tr> <td align="right">inv50.xml</td> <td align="right"> <nobr>0.801</nobr> </td> <td align="left"> <nobr>data/inv50.xml</nobr> </td> </tr> <tr> <td align="right">inv100.xml</td> <td align="right"> <nobr>1.511</nobr> </td> <td align="left"> <nobr>data/inv100.xml</nobr> </td> </tr> <tr> <td align="right">inv500.xml</td> <td align="right"> <nobr>9.842</nobr> </td> <td align="left"> <nobr>data/inv500.xml</nobr> </td> </tr> <tr> <td align="right">inv1000.xml</td> <td align="right"> <nobr>19.648</nobr> </td> <td align="left"> <nobr>data/inv1000.xml</nobr> </td> </tr> <tr> <td align="right">soap1.xml</td> <td align="right"> <nobr>0.024</nobr> </td> <td align="left"> <nobr>data/soap1.xml</nobr> </td> </tr> <tr> <td align="right">soap2.xml</td> <td align="right"> <nobr>0.028</nobr> </td> <td align="left"> <nobr>data/soap2.xml</nobr> </td> </tr> <tr> <td align="right">soap3.xml</td> <td align="right"> <nobr>0.029</nobr> </td> <td align="left"> <nobr>data/soap3.xml</nobr> </td> </tr> <tr> <td align="right">soap4.xml</td> <td align="right"> <nobr>3.164</nobr> </td> <td align="left"> <nobr>data/soap4.xml</nobr> </td> </tr> <tr> <td align="right">db10.xml</td> <td align="right"> <nobr>0.051</nobr> </td> <td align="left"> <nobr>data/db10.xml</nobr> </td> </tr> <tr> <td align="right">db50.xml</td> <td align="right"> <nobr>0.222</nobr> </td> <td align="left"> <nobr>data/db50.xml</nobr> </td> </tr> <tr> <td align="right">db100.xml</td> <td align="right"> <nobr>0.434</nobr> </td> <td align="left"> <nobr>data/db100.xml</nobr> </td> </tr> <tr> <td align="right">db500.xml</td> <td align="right"> <nobr>2.081</nobr> </td> <td align="left"> <nobr>data/db500.xml</nobr> </td> </tr> <tr> <td align="right">db1000.xml</td> <td align="right"> <nobr>5.551</nobr> </td> <td align="left"> <nobr>data/db1000.xml</nobr> </td> </tr> <tr> <td align="right">db10000.xml</td> <td align="right"> <nobr>57.967</nobr> </td> <td align="left"> <nobr>data/db10000.xml</nobr> </td> </tr> <tr> <td align="right">xsl1.xml</td> <td align="right"> <nobr>0.040</nobr> </td> <td align="left"> <nobr>data/xsl1.xml</nobr> </td> </tr> <tr> <td align="right">xsl2.xml</td> <td align="right"> <nobr>0.176</nobr> </td> <td align="left"> <nobr>data/xsl2.xml</nobr> </td> </tr> <tr> <td align="right">xsl3.xml</td> <td align="right"> <nobr>0.560</nobr> </td> <td align="left"> <nobr>data/xsl3.xml</nobr> </td> </tr> <tr> <td align="right">xsl4.xml</td> <td align="right"> <nobr>11.448</nobr> </td> <td align="left"> <nobr>data/xsl4.xml</nobr> </td> </tr> <tr> <td align="right">periodic.xml</td> <td align="right"> <nobr>2.043</nobr> </td> <td align="left"> <nobr>data/periodic.xml</nobr> </td> </tr> <tr> <td align="right">weblog.xml</td> <td align="right"> <nobr>71.351</nobr> </td> <td align="left"> <nobr>data/weblog.xml</nobr> </td> </tr> <tr> <td align="right">factbook.xml</td> <td align="right"> <nobr>65.148</nobr> </td> <td align="left"> <nobr>data/factbook.xml</nobr> </td> </tr> </tbody> </table> <br/> <h2>Driver: <API key></h2> <p> <ul> <li>jdsl.<API key>: 24</li> <li>jdsl.<API key>: 24</li> <li>jdsl.externalVocabulary: true</li> </ul> </p> <table width="80%" border="1"> <thead> <tr> <th> <b>testCase</b> </th> <th> <b>resultValue</b> </th> <th> <b>xmlfile</b> </th> </tr> </thead> <tbody> <tr> <td align="right">inv1.xml</td> <td align="right"> <nobr>0.090</nobr> </td> <td align="left"> <nobr>data/inv1.xml</nobr> </td> </tr> <tr> <td align="right">inv10.xml</td> <td align="right"> <nobr>0.209</nobr> </td> <td align="left"> <nobr>data/inv10.xml</nobr> </td> </tr> <tr> <td align="right">inv50.xml</td> <td align="right"> <nobr>0.742</nobr> </td> <td align="left"> <nobr>data/inv50.xml</nobr> </td> </tr> <tr> <td align="right">inv100.xml</td> <td align="right"> <nobr>1.408</nobr> </td> <td align="left"> <nobr>data/inv100.xml</nobr> </td> </tr> <tr> <td align="right">inv500.xml</td> <td align="right"> <nobr>9.339</nobr> </td> <td align="left"> <nobr>data/inv500.xml</nobr> </td> </tr> <tr> <td align="right">inv1000.xml</td> <td align="right"> <nobr>19.285</nobr> </td> <td align="left"> <nobr>data/inv1000.xml</nobr> </td> </tr> <tr> <td align="right">soap1.xml</td> <td align="right"> <nobr>0.014</nobr> </td> <td align="left"> <nobr>data/soap1.xml</nobr> </td> </tr> <tr> <td align="right">soap2.xml</td> <td align="right"> <nobr>0.012</nobr> </td> <td align="left"> <nobr>data/soap2.xml</nobr> </td> </tr> <tr> <td align="right">soap3.xml</td> <td align="right"> <nobr>0.014</nobr> </td> <td align="left"> <nobr>data/soap3.xml</nobr> </td> </tr> <tr> <td align="right">soap4.xml</td> <td align="right"> <nobr>2.887</nobr> </td> <td align="left"> <nobr>data/soap4.xml</nobr> </td> </tr> <tr> <td align="right">db10.xml</td> <td align="right"> <nobr>0.043</nobr> </td> <td align="left"> <nobr>data/db10.xml</nobr> </td> </tr> <tr> <td align="right">db50.xml</td> <td align="right"> <nobr>0.201</nobr> </td> <td align="left"> <nobr>data/db50.xml</nobr> </td> </tr> <tr> <td align="right">db100.xml</td> <td align="right"> <nobr>0.401</nobr> </td> <td align="left"> <nobr>data/db100.xml</nobr> </td> </tr> <tr> <td align="right">db500.xml</td> <td align="right"> <nobr>1.952</nobr> </td> <td align="left"> <nobr>data/db500.xml</nobr> </td> </tr> <tr> <td align="right">db1000.xml</td> <td align="right"> <nobr>5.246</nobr> </td> <td align="left"> <nobr>data/db1000.xml</nobr> </td> </tr> <tr> <td align="right">db10000.xml</td> <td align="right"> <nobr>62.476</nobr> </td> <td align="left"> <nobr>data/db10000.xml</nobr> </td> </tr> <tr> <td align="right">xsl1.xml</td> <td align="right"> <nobr>0.014</nobr> </td> <td align="left"> <nobr>data/xsl1.xml</nobr> </td> </tr> <tr> <td align="right">xsl2.xml</td> <td align="right"> <nobr>0.139</nobr> </td> <td align="left"> <nobr>data/xsl2.xml</nobr> </td> </tr> <tr> <td align="right">xsl3.xml</td> <td align="right"> <nobr>0.513</nobr> </td> <td align="left"> <nobr>data/xsl3.xml</nobr> </td> </tr> <tr> <td align="right">xsl4.xml</td> <td align="right"> <nobr>11.289</nobr> </td> <td align="left"> <nobr>data/xsl4.xml</nobr> </td> </tr> <tr> <td align="right">periodic.xml</td> <td align="right"> <nobr>1.952</nobr> </td> <td align="left"> <nobr>data/periodic.xml</nobr> </td> </tr> <tr> <td align="right">weblog.xml</td> <td align="right"> <nobr>72.356</nobr> </td> <td align="left"> <nobr>data/weblog.xml</nobr> </td> </tr> <tr> <td align="right">factbook.xml</td> <td align="right"> <nobr>61.988</nobr> </td> <td align="left"> <nobr>data/factbook.xml</nobr> </td> </tr> </tbody> </table> <br/> <h2>Driver: <API key></h2> <p> <ul> <li>jdsl.<API key>: n/a</li> <li>jdsl.<API key>: n/a</li> <li>jdsl.externalVocabulary: n/a</li> </ul> </p> <table width="80%" border="1"> <thead> <tr> <th> <b>testCase</b> </th> <th> <b>resultValue</b> </th> <th> <b>xmlfile</b> </th> </tr> </thead> <tbody> <tr> <td align="right">inv1.xml</td> <td align="right"> <nobr>0.158</nobr> </td> <td align="left"> <nobr>data/inv1.xml</nobr> </td> </tr> <tr> <td align="right">inv10.xml</td> <td align="right"> <nobr>0.377</nobr> </td> <td align="left"> <nobr>data/inv10.xml</nobr> </td> </tr> <tr> <td align="right">inv50.xml</td> <td align="right"> <nobr>1.358</nobr> </td> <td align="left"> <nobr>data/inv50.xml</nobr> </td> </tr> <tr> <td align="right">inv100.xml</td> <td align="right"> <nobr>2.592</nobr> </td> <td align="left"> <nobr>data/inv100.xml</nobr> </td> </tr> <tr> <td align="right">inv500.xml</td> <td align="right"> <nobr>15.100</nobr> </td> <td align="left"> <nobr>data/inv500.xml</nobr> </td> </tr> <tr> <td align="right">inv1000.xml</td> <td align="right"> <nobr>30.568</nobr> </td> <td align="left"> <nobr>data/inv1000.xml</nobr> </td> </tr> <tr> <td align="right">soap1.xml</td> <td align="right"> <nobr>0.040</nobr> </td> <td align="left"> <nobr>data/soap1.xml</nobr> </td> </tr> <tr> <td align="right">soap2.xml</td> <td align="right"> <nobr>0.042</nobr> </td> <td align="left"> <nobr>data/soap2.xml</nobr> </td> </tr> <tr> <td align="right">soap3.xml</td> <td align="right"> <nobr>0.046</nobr> </td> <td align="left"> <nobr>data/soap3.xml</nobr> </td> </tr> <tr> <td align="right">soap4.xml</td> <td align="right"> <nobr>4.801</nobr> </td> <td align="left"> <nobr>data/soap4.xml</nobr> </td> </tr> <tr> <td align="right">db10.xml</td> <td align="right"> <nobr>0.078</nobr> </td> <td align="left"> <nobr>data/db10.xml</nobr> </td> </tr> <tr> <td align="right">db50.xml</td> <td align="right"> <nobr>0.329</nobr> </td> <td align="left"> <nobr>data/db50.xml</nobr> </td> </tr> <tr> <td align="right">db100.xml</td> <td align="right"> <nobr>0.647</nobr> </td> <td align="left"> <nobr>data/db100.xml</nobr> </td> </tr> <tr> <td align="right">db500.xml</td> <td align="right"> <nobr>3.180</nobr> </td> <td align="left"> <nobr>data/db500.xml</nobr> </td> </tr> <tr> <td align="right">db1000.xml</td> <td align="right"> <nobr>7.617</nobr> </td> <td align="left"> <nobr>data/db1000.xml</nobr> </td> </tr> <tr> <td align="right">db10000.xml</td> <td align="right"> <nobr>76.696</nobr> </td> <td align="left"> <nobr>data/db10000.xml</nobr> </td> </tr> <tr> <td align="right">xsl1.xml</td> <td align="right"> <nobr>0.038</nobr> </td> <td align="left"> <nobr>data/xsl1.xml</nobr> </td> </tr> <tr> <td align="right">xsl2.xml</td> <td align="right"> <nobr>0.285</nobr> </td> <td align="left"> <nobr>data/xsl2.xml</nobr> </td> </tr> <tr> <td align="right">xsl3.xml</td> <td align="right"> <nobr>0.988</nobr> </td> <td align="left"> <nobr>data/xsl3.xml</nobr> </td> </tr> <tr> <td align="right">xsl4.xml</td> <td align="right"> <nobr>19.432</nobr> </td> <td align="left"> <nobr>data/xsl4.xml</nobr> </td> </tr> <tr> <td align="right">periodic.xml</td> <td align="right"> <nobr>4.164</nobr> </td> <td align="left"> <nobr>data/periodic.xml</nobr> </td> </tr> <tr> <td align="right">weblog.xml</td> <td align="right"> <nobr>136.872</nobr> </td> <td align="left"> <nobr>data/weblog.xml</nobr> </td> </tr> <tr> <td align="right">factbook.xml</td> <td align="right"> <nobr>177.500</nobr> </td> <td align="left"> <nobr>data/factbook.xml</nobr> </td> </tr> </tbody> </table> <br/> <h2>Results Per Test</h2> <br/> <center> <img src="testcase0.jpg"/> </center> <br/> <br/> <center> <img src="testcase1.jpg"/> </center> <br/> <br/> <center> <img src="testcase2.jpg"/> </center> <br/> <br/> <center> <img src="testcase3.jpg"/> </center> <br/> <br/> <center> <img src="testcase4.jpg"/> </center> <br/> <br/> <br/> <small> <hr/> <font size="-2"> Generated using <a href="https://japex.dev.java.net">Japex</a> version 1.00</font> </small> </body> </html>
/** * @author caspar - chengzhihang * @contact 279397942@qq.com * @date 2016/12/29 * @file admin/view-partial/main/order/widget/form/value-widget/TpNameText */ define([ 'zh/widget/text/ValidationTextBox', 'admin/services/enums/OrderPropertyEnum', "dojo/_base/declare" ], function (TextBox, OrderPropertyEnum, declare) { return declare('admin/view-partial/main/order/widget/form/value-widget/TpNameText', [TextBox], { label: OrderPropertyEnum.TpName.text, name: OrderPropertyEnum.TpName.id, placeHolder: OrderPropertyEnum.TpName.text, }); });
import logging import threading import time from ballast.discovery import ServerList from ballast.rule import Rule, RoundRobinRule from ballast.ping import ( Ping, SocketPing, PingStrategy, SerialPingStrategy ) class LoadBalancer(object): <API key> = 30 MAX_PING_TIME = 3 def __init__(self, server_list, rule=None, ping_strategy=None, ping=None, ping_on_start=True): assert isinstance(server_list, ServerList) assert rule is None or isinstance(rule, Rule) assert ping_strategy is None or isinstance(ping_strategy, PingStrategy) assert ping is None or isinstance(ping, Ping) # some locks for thread-safety self._lock = threading.Lock() self._server_lock = threading.Lock() self._rule = rule \ if rule is not None \ else RoundRobinRule() self._ping_strategy = ping_strategy \ if ping_strategy is not None \ else SerialPingStrategy() self._ping = ping \ if ping is not None \ else SocketPing() self.max_ping_time = self.MAX_PING_TIME self._ping_interval = self.<API key> self._server_list = server_list self._servers = set() self._stats = LoadBalancerStats() self._rule.load_balancer = self self._logger = logging.getLogger(self.__module__) # start our background worker # to periodically ping our servers self._ping_timer_running = False self._ping_timer = None if ping_on_start: self._start_ping_timer() @property def ping_interval(self): return self._ping_interval @ping_interval.setter def ping_interval(self, value): self._ping_interval = value if self._ping_timer_running: self._stop_ping_timer() self._start_ping_timer() @property def max_ping_time(self): if self._ping is None: return 0 return self._ping.max_ping_time @max_ping_time.setter def max_ping_time(self, value): if self._ping is not None: self._ping.max_ping_time = value @property def stats(self): return self._stats @property def servers(self): with self._server_lock: return set(self._servers) @property def reachable_servers(self): with self._server_lock: servers = set() for s in self._servers: if s.is_alive: servers.add(s) return servers def choose_server(self): # choose a server, will # throw if there are none server = self._rule.choose() return server def mark_server_down(self, server): self._logger.debug("Marking server down: %s", server) server._is_alive = False def ping(self, server=None): if server is None: self._ping_all_servers() else: is_alive = self._ping.is_alive(server) server._is_alive = is_alive def ping_async(self, server=None): if server is None: # self._ping_all_servers() t = threading.Thread(name='ballast-worker', target=self._ping_all_servers) t.daemon = True t.start() else: is_alive = self._ping.is_alive(server) server._is_alive = is_alive def _ping_all_servers(self): with self._server_lock: results = self._ping_strategy.ping( self._ping, self._server_list ) self._servers = set(results) def _start_ping_timer(self): with self._lock: if self._ping_timer_running: self._logger.debug("Background pinger already running") return self._ping_timer_running = True self._ping_timer = threading.Thread(name='ballast-worker', target=self._ping_loop) self._ping_timer.daemon = True self._ping_timer.start() def _stop_ping_timer(self): with self._lock: self._ping_timer_running = False self._ping_timer = None def _ping_loop(self): while self._ping_timer_running: try: self._ping_all_servers() except BaseException as e: self._logger.error("There was an error pinging servers: %s", e) time.sleep(self._ping_interval) class LoadBalancerStats(object): def get_server_stats(self, server): pass
import os, re, csv # regular expressions for capturing the interesting quantities noise_pattern = 'noise: \[(.+)\]' res_pattern = '^([0-9.]+$)' search_dir = "output" results_file = '../results.csv' os.chdir( search_dir ) files = filter( os.path.isfile, os.listdir( '.' )) #files = [ os.path.join( search_dir, f ) for f in files ] # add path to each file files.sort( key=lambda x: os.path.getmtime( x )) results = [] for file in files: f = open( file ) contents = f.read() # noise matches = re.search( noise_pattern, contents, re.DOTALL ) try: noise = matches.group( 1 ) noise = noise.strip() noise = noise.split() except AttributeError: print "noise error 1: %s" % ( contents ) continue # rmse matches = re.search( res_pattern, contents, re.M ) try: res = matches.group( 1 ) except AttributeError: print "matches error 2: %s" % ( contents ) continue results.append( [ res ] + noise ) writer = csv.writer( open( results_file, 'wb' )) for result in results: writer.writerow( result )
package io.cloudslang.content.active_directory.entities; import java.util.List; public interface <API key> { String getHost(); String <API key>(); String getUserCommonName(); String getUserPassword(); String getSAMAccountName(); String getUsername(); String getPassword(); String getProtocol(); Boolean getTrustAllRoots(); String getTrustKeystore(); String getTrustPassword(); Boolean getEscapeChars(); String getTimeout(); String getProxyHost(); int getProxyPort(); String getProxyUsername(); String getProxyPassword(); String <API key>(); String getTlsVersion(); List<String> getAllowedCiphers(); }
title: "DEFINED" layout: "function" isPage: "true" link: "/warpscript/functions" desc: "Check whether or not a symbol is defined" categoryTree: ["reference","functions"] oldPath: ["30-functions","30-logic-structures","15-function_DEFINED.html.md"] category: "reference" The `DEFINED` function checks whether or not a symbol is defined. WarpScript commands: 42 'foo' STORE // STORE value 42 under symbol 'foo' 'foo' DEFINED 'bar' DEFINED Stack: TOP: false 1: true {% raw %} <<API key> backend="{{backend}}" exec-endpoint="{{execEndpoint}}">42 'foo' STORE 'foo' DEFINED 'bar' DEFINED </<API key>> {% endraw %} ## Unit test ## {% raw %} <<API key> backend="{{backend}}" exec-endpoint="{{execEndpoint}}">42 'foo' STORE 'foo' DEFINED 'bar' DEFINED false == ASSERT true == ASSERT 'unit test successful' </<API key>> {% endraw %}
import os import logging from <API key>.Common import LocalCommand from <API key>.Pipeline import PoolThread class TarThread(PoolThread): def __init__(self, backup_dir, output_file, compression='none', verbose=False, binary="tar"): super(TarThread, self).__init__(self.__class__.__name__, compression) self.compression_method = compression self.backup_dir = backup_dir self.output_file = output_file self.verbose = verbose self.binary = binary self._command = None def close(self, exit_code=None, frame=None): if self._command and not self.stopped: logging.debug("Stopping running tar command: %s" % self._command.command) del exit_code del frame self._command.close() self.stopped = True def run(self): if os.path.isdir(self.backup_dir): if not os.path.isfile(self.output_file): try: backup_base_dir = os.path.dirname(self.backup_dir) backup_base_name = os.path.basename(self.backup_dir) log_msg = "Archiving directory: %s" % self.backup_dir cmd_flags = ["-C", backup_base_dir, "-c", "-f", self.output_file, "--remove-files"] if self.do_gzip(): log_msg = "Archiving and compressing directory: %s" % self.backup_dir cmd_flags.append("-z") cmd_flags.append(backup_base_name) logging.info(log_msg) self.running = True self._command = LocalCommand(self.binary, cmd_flags, self.verbose) self.exit_code = self._command.run() except Exception, e: return self.result(False, "Failed archiving file: %s!" % self.output_file, e) finally: self.running = False self.stopped = True self.completed = True else: return self.result(False, "Output file: %s already exists!" % self.output_file, None) return self.result(True, "Archiving successful.", None) def result(self, success, message, error): return { "success": success, "message": message, "error": error, "directory": self.backup_dir, "exit_code": self.exit_code }
package org.hyperimage.connector.fedora3.ws; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the org.hyperimage.connector.fedora3.ws package. * <p>An ObjectFactory allows you to programatically * construct new instances of the Java representation * for XML content. The Java representation of XML * content can consist of schema derived interfaces * and classes representing the binding of schema * type definitions, element declarations and model * groups. Factory methods for each of these are * provided in this class. * */ @XmlRegistry public class ObjectFactory { private final static QName _AssetURN_QNAME = new QName("http://connector.ws.hyperimage.org/", "assetURN"); private final static QName _Token_QNAME = new QName("http://connector.ws.hyperimage.org/", "token"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName _ParentURN_QNAME = new QName("http://connector.ws.hyperimage.org/", "parentURN"); private final static QName _Username_QNAME = new QName("http://connector.ws.hyperimage.org/", "username"); private final static QName _GetAssetData_QNAME = new QName("http://fedora3.connector.hyperimage.org/", "getAssetData"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "getAssetPreviewData"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName _Authenticate_QNAME = new QName("http://fedora3.connector.hyperimage.org/", "authenticate"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "HIWSLoggedException"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "getMetadataRecord"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName _Session_QNAME = new QName("http://connector.ws.hyperimage.org/", "session"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "HIWSAuthException"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName _GetWSVersion_QNAME = new QName("http://fedora3.connector.hyperimage.org/", "getWSVersion"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName _GetReposInfo_QNAME = new QName("http://fedora3.connector.hyperimage.org/", "getReposInfo"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName _<API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "getHierarchyLevel"); private final static QName <API key> = new QName("http://fedora3.connector.hyperimage.org/", "<API key>"); private final static QName <API key> = new QName("", "return"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.hyperimage.connector.fedora3.ws * */ public ObjectFactory() { } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link HIWSAuthException } * */ public HIWSAuthException <API key>() { return new HIWSAuthException(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link Authenticate } * */ public Authenticate createAuthenticate() { return new Authenticate(); } /** * Create an instance of {@link HiHierarchyLevel } * */ public HiHierarchyLevel <API key>() { return new HiHierarchyLevel(); } /** * Create an instance of {@link HIWSLoggedException } * */ public HIWSLoggedException <API key>() { return new HIWSLoggedException(); } /** * Create an instance of {@link GetHierarchyLevel } * */ public GetHierarchyLevel <API key>() { return new GetHierarchyLevel(); } /** * Create an instance of {@link <API key> } * */ public <API key> create<API key>() { return new <API key>(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link GetWSVersion } * */ public GetWSVersion createGetWSVersion() { return new GetWSVersion(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link HiMetadataRecord } * */ public HiMetadataRecord <API key>() { return new HiMetadataRecord(); } /** * Create an instance of {@link HiTypedDatastream } * */ public HiTypedDatastream <API key>() { return new HiTypedDatastream(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link GetMetadataRecord } * */ public GetMetadataRecord <API key>() { return new GetMetadataRecord(); } /** * Create an instance of {@link GetAssetPreviewData } * */ public GetAssetPreviewData <API key>() { return new GetAssetPreviewData(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link GetReposInfo } * */ public GetReposInfo createGetReposInfo() { return new GetReposInfo(); } /** * Create an instance of {@link <API key> } * */ public <API key> <API key>() { return new <API key>(); } /** * Create an instance of {@link GetAssetData } * */ public GetAssetData createGetAssetData() { return new GetAssetData(); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://connector.ws.hyperimage.org/", name = "assetURN") public JAXBElement<String> createAssetURN(String value) { return new JAXBElement<String>(_AssetURN_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://connector.ws.hyperimage.org/", name = "token") public JAXBElement<String> createToken(String value) { return new JAXBElement<String>(_Token_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://connector.ws.hyperimage.org/", name = "parentURN") public JAXBElement<String> createParentURN(String value) { return new JAXBElement<String>(_ParentURN_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://connector.ws.hyperimage.org/", name = "username") public JAXBElement<String> createUsername(String value) { return new JAXBElement<String>(_Username_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link GetAssetData }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "getAssetData") public JAXBElement<GetAssetData> createGetAssetData(GetAssetData value) { return new JAXBElement<GetAssetData>(_GetAssetData_QNAME, GetAssetData.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link GetAssetPreviewData }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "getAssetPreviewData") public JAXBElement<GetAssetPreviewData> <API key>(GetAssetPreviewData value) { return new JAXBElement<GetAssetPreviewData>(<API key>, GetAssetPreviewData.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link Authenticate }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "authenticate") public JAXBElement<Authenticate> createAuthenticate(Authenticate value) { return new JAXBElement<Authenticate>(_Authenticate_QNAME, Authenticate.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link HIWSLoggedException }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "HIWSLoggedException") public JAXBElement<HIWSLoggedException> <API key>(HIWSLoggedException value) { return new JAXBElement<HIWSLoggedException>(<API key>, HIWSLoggedException.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link GetMetadataRecord }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "getMetadataRecord") public JAXBElement<GetMetadataRecord> <API key>(GetMetadataRecord value) { return new JAXBElement<GetMetadataRecord>(<API key>, GetMetadataRecord.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} * */ @XmlElementDecl(namespace = "http://connector.ws.hyperimage.org/", name = "session") public JAXBElement<String> createSession(String value) { return new JAXBElement<String>(_Session_QNAME, String.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link HIWSAuthException }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "HIWSAuthException") public JAXBElement<HIWSAuthException> <API key>(HIWSAuthException value) { return new JAXBElement<HIWSAuthException>(<API key>, HIWSAuthException.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link GetWSVersion }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "getWSVersion") public JAXBElement<GetWSVersion> createGetWSVersion(GetWSVersion value) { return new JAXBElement<GetWSVersion>(_GetWSVersion_QNAME, GetWSVersion.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link GetReposInfo }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "getReposInfo") public JAXBElement<GetReposInfo> createGetReposInfo(GetReposInfo value) { return new JAXBElement<GetReposInfo>(_GetReposInfo_QNAME, GetReposInfo.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>) public JAXBElement<<API key>> create<API key>(<API key> value) { return new JAXBElement<<API key>>(_<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link GetHierarchyLevel }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "getHierarchyLevel") public JAXBElement<GetHierarchyLevel> <API key>(GetHierarchyLevel value) { return new JAXBElement<GetHierarchyLevel>(<API key>, GetHierarchyLevel.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link <API key> }{@code >}} * */ @XmlElementDecl(namespace = "http://fedora3.connector.hyperimage.org/", name = "<API key>") public JAXBElement<<API key>> <API key>(<API key> value) { return new JAXBElement<<API key>>(<API key>, <API key>.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} * */ @XmlElementDecl(namespace = "", name = "return", scope = <API key>.class) public JAXBElement<byte[]> <API key>(byte[] value) { return new JAXBElement<byte[]>(<API key>, byte[].class, <API key>.class, ((byte[]) value)); } }
package app import ( "net/http" "time" "golang.org/x/net/context" "github.com/weaveworks/scope/probe/host" "github.com/weaveworks/scope/report" ) // Raw report handler func <API key>(rep Reporter) CtxHandlerFunc { return func(ctx context.Context, w http.ResponseWriter, r *http.Request) { report, err := rep.Report(ctx, time.Now()) if err != nil { respondWith(w, http.<API key>, err) return } respondWith(w, http.StatusOK, report) } } type probeDesc struct { ID string `json:"id"` Hostname string `json:"hostname"` Version string `json:"version"` LastSeen time.Time `json:"lastSeen"` } // Probe handler func makeProbeHandler(rep Reporter) CtxHandlerFunc { return func(ctx context.Context, w http.ResponseWriter, r *http.Request) { r.ParseForm() if _, sparse := r.Form["sparse"]; sparse { // if we have reports, we must have connected probes hasProbes, err := rep.HasReports(ctx, time.Now()) if err != nil { respondWith(w, http.<API key>, err) } respondWith(w, http.StatusOK, hasProbes) return } rpt, err := rep.Report(ctx, time.Now()) if err != nil { respondWith(w, http.<API key>, err) return } result := []probeDesc{} for _, n := range rpt.Host.Nodes { id, _ := n.Latest.Lookup(report.ControlProbeID) hostname, _ := n.Latest.Lookup(host.HostName) version, dt, _ := n.Latest.LookupEntry(host.ScopeVersion) result = append(result, probeDesc{ ID: id, Hostname: hostname, Version: version, LastSeen: dt, }) } respondWith(w, http.StatusOK, result) } }
+++ Title = "Cancellation" Type = "event" Description = "Statement on what's next" +++ With a heavy heart, the organizers of Eindhoven would like to inform you that we have - at this time - decided to cancel devopsdays Eindhoven for 2020. We did not take this decision lightly, and we took a large number of variables into account. However, ultimately, the health and well-being of all of our attendees, speakers and organizers are our top priority. What does this mean for you? For our attendees that have already bought tickets for the events, we will - of course - be fully refunding your purchase. We will be issuing a full refund of the ticket purchase to the form of payment you used when initially purchased the ticket. Our Event Management Solution, Eventbrite, will send you a confirmation email of the cancellation & refund. Please note that the refund may take up to 14 days to process. What if the situation changes? When the current NL and global situation improves for the better in the months ahead, we will reassess the case, and if possible, put on an event later in the year. What's next Although this means no first devopsdays this year for Eindhoven, the organizers of Amsterdam and Eindhoven are busy thinking of ways to bend with the times and create an informative, vibrant, and exciting event online.
package org.hl7.fhir.dstu3.model.codesystems; // Generated on Tue, Dec 6, 2016 09:42-0500 for FHIR v1.8.0 import org.hl7.fhir.dstu3.model.EnumFactory; public class <API key> implements EnumFactory<ObservationStatus> { public ObservationStatus fromCode(String codeString) throws <API key> { if (codeString == null || "".equals(codeString)) return null; if ("registered".equals(codeString)) return ObservationStatus.REGISTERED; if ("preliminary".equals(codeString)) return ObservationStatus.PRELIMINARY; if ("final".equals(codeString)) return ObservationStatus.FINAL; if ("amended".equals(codeString)) return ObservationStatus.AMENDED; if ("cancelled".equals(codeString)) return ObservationStatus.CANCELLED; if ("entered-in-error".equals(codeString)) return ObservationStatus.ENTEREDINERROR; if ("unknown".equals(codeString)) return ObservationStatus.UNKNOWN; throw new <API key>("Unknown ObservationStatus code '"+codeString+"'"); } public String toCode(ObservationStatus code) { if (code == ObservationStatus.REGISTERED) return "registered"; if (code == ObservationStatus.PRELIMINARY) return "preliminary"; if (code == ObservationStatus.FINAL) return "final"; if (code == ObservationStatus.AMENDED) return "amended"; if (code == ObservationStatus.CANCELLED) return "cancelled"; if (code == ObservationStatus.ENTEREDINERROR) return "entered-in-error"; if (code == ObservationStatus.UNKNOWN) return "unknown"; return "?"; } public String toSystem(ObservationStatus code) { return code.getSystem(); } }
package io.cattle.platform.process.dao.impl; import static io.cattle.platform.core.model.tables.AccountTable.*; import io.cattle.platform.core.model.Account; import io.cattle.platform.db.jooq.dao.impl.AbstractJooqDao; import io.cattle.platform.process.dao.AccountDao; public class AccountDaoImpl extends AbstractJooqDao implements AccountDao { @Override public Account findByUuid(String uuid) { return create() .selectFrom(ACCOUNT) .where(ACCOUNT.UUID.eq(uuid)) .fetchOne(); } }
package net.ros.client.render; import com.google.common.collect.ImmutableList; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.BakedQuad; import net.minecraft.client.renderer.block.model.IBakedModel; import net.minecraft.client.renderer.block.model.<API key>; import net.minecraft.client.renderer.block.model.ItemOverrideList; import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; import net.ros.client.render.model.ModelCacheManager; import net.ros.client.render.model.obj.PipeOBJStates; import net.ros.client.render.model.obj.ROSOBJState; import net.ros.common.block.BlockPipeBase; import org.apache.commons.lang3.tuple.Pair; import javax.annotation.Nonnull; import javax.vecmath.Matrix4f; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; public class ModelPipeInventory implements IBakedModel { private final Map<ROSOBJState, CompositeBakedModel> CACHE = new HashMap<>(); private final BlockPipeBase pipeBlock; public ModelPipeInventory(BlockPipeBase pipeBlock) { this.pipeBlock = pipeBlock; } @Nonnull @Override public List<BakedQuad> getQuads(IBlockState state, EnumFacing face, long rand) { return Collections.emptyList(); } private CompositeBakedModel getModel(ROSOBJState pipeState) { if (CACHE.containsKey(pipeState)) return CACHE.get(pipeState); else { CompositeBakedModel model = new CompositeBakedModel(ModelCacheManager.getPipeQuads(pipeBlock, pipeState), Minecraft.getMinecraft().<API key>() .getModelForState(pipeBlock.getDefaultState())); CACHE.put(pipeState, model); return model; } } @Nonnull @Override public ItemOverrideList getOverrides() { return itemHandler; } @Override public boolean isAmbientOcclusion() { return false; } @Override public boolean isGui3d() { return true; } @Override public boolean isBuiltInRenderer() { return false; } @Nonnull @Override public TextureAtlasSprite getParticleTexture() { return Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite("minecraft:blocks/dirt"); } @Nonnull @Override public <API key> <API key>() { return <API key>.DEFAULT; } private static class CompositeBakedModel implements IBakedModel { private IBakedModel pipeModel; private final List<BakedQuad> genQuads; CompositeBakedModel(List<BakedQuad> pipeQuads, IBakedModel pipeModel) { this.pipeModel = pipeModel; ImmutableList.Builder<BakedQuad> genBuilder = ImmutableList.builder(); genBuilder.addAll(pipeQuads); genQuads = genBuilder.build(); } @Nonnull @Override public List<BakedQuad> getQuads(IBlockState state, EnumFacing face, long rand) { return face == null ? genQuads : Collections.emptyList(); } @Override public boolean isAmbientOcclusion() { return pipeModel.isAmbientOcclusion(); } @Override public boolean isGui3d() { return pipeModel.isGui3d(); } @Override public boolean isBuiltInRenderer() { return pipeModel.isBuiltInRenderer(); } @Nonnull @Override public TextureAtlasSprite getParticleTexture() { return pipeModel.getParticleTexture(); } @Nonnull @Override public ItemOverrideList getOverrides() { return ItemOverrideList.NONE; } @Override public Pair<? extends IBakedModel, Matrix4f> handlePerspective(<API key>.TransformType cameraTransformType) { return Pair.of(this, pipeModel.handlePerspective(cameraTransformType).getRight()); } } private final ItemOverrideList itemHandler = new ItemOverrideList(ImmutableList.of()) { @Nonnull @Override public IBakedModel handleItemState(@Nonnull IBakedModel model, ItemStack stack, World world, EntityLivingBase entity) { return ModelPipeInventory.this.getModel(PipeOBJStates.getVisibilityState( pipeBlock.getPipeType().getSize(), EnumFacing.WEST, EnumFacing.EAST)); } }; }
package hulk.http.response import akka.http.scaladsl.model.HttpEntity.Strict import akka.http.scaladsl.model.{ContentType, ResponseEntity} import akka.util.ByteString case class HttpResponseBody(contentType: ContentType, data: ByteString) object HttpResponseBody { implicit private[hulk] def toResponseEntity(httpResponseBody: HttpResponseBody): ResponseEntity = { Strict(httpResponseBody.contentType, httpResponseBody.data) } }
<?php declare(strict_types=1); namespace App\Radio; use App\Entity; use App\Environment; use App\Exception\Supervisor\<API key>; use App\Exception\Supervisor\BadNameException; use App\Exception\Supervisor\NotRunningException; use App\Exception\SupervisorException; use Doctrine\ORM\<API key>; use Psr\EventDispatcher\<API key>; use Psr\Log\LoggerInterface; use Supervisor\Exception\Fault; use Supervisor\Exception\SupervisorException as <API key>; use Supervisor\Process; use Supervisor\Supervisor; abstract class AbstractAdapter { public function __construct( protected Environment $environment, protected <API key> $em, protected Supervisor $supervisor, protected <API key> $dispatcher, protected LoggerInterface $logger ) { } /** * Write configuration from Station object to the external service. * * @param Entity\Station $station * * @return bool Whether the newly written configuration differs from what was already on disk. */ public function write(Entity\Station $station): bool { $configPath = $this-><API key>($station); if (null === $configPath) { return false; } $currentConfig = (is_file($configPath)) ? file_get_contents($configPath) : null; $newConfig = $this-><API key>($station); file_put_contents($configPath, $newConfig); return 0 !== strcmp($currentConfig ?: '', $newConfig ?: ''); } /** * Generate the configuration for this adapter as it would exist with current database settings. * * @param Entity\Station $station * */ public function <API key>(Entity\Station $station): ?string { return null; } /** * Returns the main path where configuration data is stored for this adapter. * */ public function <API key>(Entity\Station $station): ?string { return null; } /** * Indicate if the adapter in question is installed on the server. */ public function isInstalled(): bool { return (null !== $this->getBinary()); } /** * Return the binary executable location for this item. * * @return string|null Returns either the path to the binary if it exists or null for no binary. */ public function getBinary(): ?string { return null; } /** * Check if the service is running. * * @param Entity\Station $station */ public function isRunning(Entity\Station $station): bool { if (!$this->hasCommand($station)) { return true; } $program_name = $this->getProgramName($station); try { $process = $this->supervisor->getProcess($program_name); return $process instanceof Process && $process->isRunning(); } catch (Fault\BadNameException) { return false; } } /** * Return a boolean indicating whether the adapter has an executable command associated with it. * * @param Entity\Station $station */ public function hasCommand(Entity\Station $station): bool { if ($this->environment->isTesting() || !$station->getIsEnabled()) { return false; } return ($this->getCommand($station) !== null); } /** * Return the shell command required to run the program. * * @param Entity\Station $station */ public function getCommand(Entity\Station $station): ?string { return null; } /** * Return the program's fully qualified supervisord name. * * @param Entity\Station $station */ abstract public function getProgramName(Entity\Station $station): string; /** * Restart the executable service. * * @param Entity\Station $station */ public function restart(Entity\Station $station): void { $this->stop($station); $this->start($station); } /** * @return bool Whether this adapter supports a non-destructive reload. */ public function supportsReload(): bool { return false; } /** * Execute a non-destructive reload if the adapter supports it. * * @param Entity\Station $station */ public function reload(Entity\Station $station): void { $this->restart($station); } /** * Stop the executable service. * * @param Entity\Station $station * * @throws SupervisorException * @throws NotRunningException */ public function stop(Entity\Station $station): void { if ($this->hasCommand($station)) { $program_name = $this->getProgramName($station); try { $this->supervisor->stopProcess($program_name); $this->logger->info( 'Adapter "' . static::class . '" stopped.', ['station_id' => $station->getId(), 'station_name' => $station->getName()] ); } catch (<API key> $e) { $this-><API key>($e, $program_name, $station); } } } /** * Start the executable service. * * @param Entity\Station $station * * @throws SupervisorException * @throws <API key> */ public function start(Entity\Station $station): void { if ($this->hasCommand($station)) { $program_name = $this->getProgramName($station); try { $this->supervisor->startProcess($program_name); $this->logger->info( 'Adapter "' . static::class . '" started.', ['station_id' => $station->getId(), 'station_name' => $station->getName()] ); } catch (<API key> $e) { $this-><API key>($e, $program_name, $station); } } } /** * Internal handling of any Supervisor-related exception, to add richer data to it. * * @param <API key> $e * @param string $program_name * @param Entity\Station $station * * @throws <API key> * @throws BadNameException * @throws NotRunningException * @throws SupervisorException */ protected function <API key>( <API key> $e, string $program_name, Entity\Station $station ): void { $class_parts = explode('\\', static::class); $class_name = array_pop($class_parts); if ($e instanceof Fault\BadNameException) { $e_headline = __('%s is not recognized as a service.', $class_name); $e_body = __('It may not be registered with Supervisor yet. Restarting broadcasting may help.'); $app_e = new BadNameException( $e_headline . '; ' . $e_body, $e->getCode(), $e ); } elseif ($e instanceof Fault\<API key>) { $e_headline = __('%s cannot start', $class_name); $e_body = __('It is already running.'); $app_e = new <API key>( $e_headline . '; ' . $e_body, $e->getCode(), $e ); } elseif ($e instanceof Fault\NotRunningException) { $e_headline = __('%s cannot stop', $class_name); $e_body = __('It is not running.'); $app_e = new NotRunningException( $e_headline . '; ' . $e_body, $e->getCode(), $e ); } else { $e_headline = __('%s encountered an error', $class_name); // Get more detailed information for more significant errors. $process_log = $this->supervisor-><API key>($program_name, 0, 500); $process_log = array_values(array_filter(explode("\n", $process_log[0]))); $process_log = array_slice($process_log, -6); $e_body = (!empty($process_log)) ? implode('<br>', $process_log) : __('Check the log for details.'); $app_e = new SupervisorException($e_headline, $e->getCode(), $e); $app_e->addExtraData('supervisor_log', $process_log); $app_e->addExtraData('<API key>', $this->supervisor->getProcessInfo($program_name)); } $app_e->setFormattedMessage('<b>' . $e_headline . '</b><br>' . $e_body); $app_e->addLoggingContext('station_id', $station->getId()); $app_e->addLoggingContext('station_name', $station->getName()); throw $app_e; } /** * Return the path where logs are written to. * * @param Entity\Station $station */ public function getLogPath(Entity\Station $station): string { $config_dir = $station->getRadioConfigDir(); $class_parts = explode('\\', static::class); $class_name = array_pop($class_parts); return $config_dir . '/' . strtolower($class_name) . '.log'; } }
datafolder: engine-cli datafile: docker_run title: docker run <! Sorry, but the contents of this page are automatically generated from Docker's source code. If you want to suggest a change to the text that appears here, you'll need to find the string by searching this repo: https: {% include cli.md %}
import React, { Component, Fragment } from 'react'; import { navigate } from '@reach/router'; import PropTypes from 'prop-types'; import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; import { siteRoot, gettext, orgID } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '../../utils/utils'; import toaster from '../../components/toast'; import OrgGroupInfo from '../../models/org-group'; import MainPanelTopbar from './main-panel-topbar'; class Search extends React.Component { constructor(props) { super(props); this.state = { value: '' }; } handleInputChange = (e) => { this.setState({ value: e.target.value }); } handleKeyPress = (e) => { if (e.key == 'Enter') { e.preventDefault(); this.handleSubmit(); } } handleSubmit = () => { const value = this.state.value.trim(); if (!value) { return false; } this.props.submit(value); } render() { return ( <div className="input-icon"> <i className="d-flex input-icon-addon fas fa-search"></i> <input type="text" className="form-control search-input h-6 mr-1" style={{width: '15rem'}} placeholder={this.props.placeholder} value={this.state.value} onChange={this.handleInputChange} onKeyPress={this.handleKeyPress} autoComplete="off" /> </div> ); } } class OrgGroups extends Component { constructor(props) { super(props); this.state = { page: 1, pageNext: false, orgGroups: [], isItemFreezed: false }; } componentDidMount() { let page = this.state.page; this.initData(page); } initData = (page) => { seafileAPI.<API key>(orgID, page).then(res => { let orgGroups = res.data.groups.map(item => { return new OrgGroupInfo(item); }); this.setState({ orgGroups: orgGroups, pageNext: res.data.page_next, page: res.data.page, }); }).catch(error => { let errMessage = Utils.getErrorMsg(error); toaster.danger(errMessage); }); } onChangePageNum = (e, num) => { e.preventDefault(); let page = this.state.page; if (num == 1) { page = page + 1; } else { page = page - 1; } this.initData(page); } onFreezedItem = () => { this.setState({isItemFreezed: true}); } onUnfreezedItem = () => { this.setState({isItemFreezed: false}); } deleteGroupItem = (group) => { seafileAPI.<API key>(orgID, group.id).then(res => { this.setState({ orgGroups: this.state.orgGroups.filter(item => item.id != group.id) }); let msg = gettext('Successfully deleted {name}'); msg = msg.replace('{name}', group.groupName); toaster.success(msg); }).catch(error => { let errMessage = Utils.getErrorMsg(error); toaster.danger(errMessage); }); } searchItems = (keyword) => { navigate(`${siteRoot}org/groupadmin/search-groups/?query=${encodeURIComponent(keyword)}`); } getSearch = () => { return <Search placeholder={gettext('Search groups by name')} submit={this.searchItems} />; } render() { let groups = this.state.orgGroups; return ( <Fragment> <MainPanelTopbar search={this.getSearch()}/> <div className="main-panel-center flex-row"> <div className="cur-view-container"> <div className="cur-view-path"> <h3 className="sf-heading">{gettext('All Groups')}</h3> </div> <div className="cur-view-content"> <table> <thead> <tr> <th width="30%">{gettext('Name')}</th> <th width="35%">{gettext('Creator')}</th> <th width="23%">{gettext('Created At')}</th> <th width="12%" className="text-center">{gettext('Operations')}</th> </tr> </thead> <tbody> {groups.map(item => { return ( <GroupItem key={item.id} group={item} isItemFreezed={this.state.isItemFreezed} onFreezedItem={this.onFreezedItem} onUnfreezedItem={this.onUnfreezedItem} deleteGroupItem={this.deleteGroupItem} /> ); })} </tbody> </table> <div className="paginator"> {this.state.page != 1 && <a href="#" onClick={(e) => this.onChangePageNum(e, -1)}>{gettext('Previous')}</a>} {(this.state.page != 1 && this.state.pageNext) && <span> | </span>} {this.state.pageNext && <a href="#" onClick={(e) => this.onChangePageNum(e, 1)}>{gettext('Next')}</a>} </div> </div> </div> </div> </Fragment> ); } } const GroupItemPropTypes = { group: PropTypes.object.isRequired, isItemFreezed: PropTypes.bool.isRequired, onFreezedItem: PropTypes.func.isRequired, onUnfreezedItem: PropTypes.func.isRequired, deleteGroupItem: PropTypes.func.isRequired, }; class GroupItem extends React.Component { constructor(props) { super(props); this.state = { highlight: false, showMenu: false, isItemMenuShow: false }; } onMouseEnter = () => { if (!this.props.isItemFreezed) { this.setState({ showMenu: true, highlight: true, }); } } onMouseLeave = () => { if (!this.props.isItemFreezed) { this.setState({ showMenu: false, highlight: false }); } } <API key> = (e) => { e.preventDefault(); this.toggleOperationMenu(e); } toggleOperationMenu = (e) => { e.stopPropagation(); this.setState( {isItemMenuShow: !this.state.isItemMenuShow }, () => { if (this.state.isItemMenuShow) { this.props.onFreezedItem(); } else { this.setState({ highlight: false, showMenu: false, }); this.props.onUnfreezedItem(); } } ); } toggleDelete = () => { this.props.deleteGroupItem(this.props.group); } renderGroupHref = (group) => { let groupInfoHref; if (group.creatorName == 'system admin') { groupInfoHref = siteRoot + 'org/departmentadmin/groups/' + group.id + '/'; } else { groupInfoHref = siteRoot + 'org/groupadmin/' + group.id + '/'; } return groupInfoHref; } renderGroupCreator = (group) => { let userInfoHref = siteRoot + 'org/useradmin/info/' + group.creatorEmail + '/'; if (group.creatorName == 'system admin') { return ( <td> ); } else { return( <td> <a href={userInfoHref} className="font-weight-normal">{group.creatorName}</a> </td> ); } } render() { let { group } = this.props; let isOperationMenuShow = (group.creatorName != 'system admin') && this.state.showMenu; return ( <tr className={this.state.highlight ? 'tr-highlight' : ''} onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}> <td> <a href={this.renderGroupHref(group)} className="font-weight-normal">{group.groupName}</a> </td> {this.renderGroupCreator(group)} <td>{group.ctime}</td> <td className="text-center cursor-pointer"> {isOperationMenuShow && <Dropdown isOpen={this.state.isItemMenuShow} toggle={this.toggleOperationMenu}> <DropdownToggle tag="a" className="attr-action-icon fas fa-ellipsis-v" title={gettext('More Operations')} data-toggle="dropdown" aria-expanded={this.state.isItemMenuShow} onClick={this.<API key>} /> <DropdownMenu> <DropdownItem onClick={this.toggleDelete}>{gettext('Delete')}</DropdownItem> </DropdownMenu> </Dropdown> } </td> </tr> ); } } GroupItem.propTypes = GroupItemPropTypes; export default OrgGroups;
package org.jetbrains.kotlin.idea.fir.low.level.api.sessions; import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.<API key>; import org.jetbrains.kotlin.test.KotlinTestUtils; import org.jetbrains.kotlin.test.TestMetadata; import org.junit.runner.RunWith; import java.io.File; import java.util.regex.Pattern; /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ @SuppressWarnings("all") @TestMetadata("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation") @TestDataPath("$PROJECT_ROOT") @RunWith(<API key>.class) public class <API key> extends <API key> { private void runTest(String testDataFilePath) throws Exception { KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); } public void <API key>() throws Exception { KotlinTestUtils.<API key>(this.getClass(), new File("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation"), Pattern.compile("^([^\\.]+)$"), null, false); } @TestMetadata("binaryTree") public void testBinaryTree() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/binaryTree/"); } @TestMetadata("<API key>") public void <API key>() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/<API key>/"); } @TestMetadata("<API key>") public void <API key>() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/<API key>/"); } @TestMetadata("<API key>") public void <API key>() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/<API key>/"); } @TestMetadata("linear") public void testLinear() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/linear/"); } @TestMetadata("rhombus") public void testRhombus() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/rhombus/"); } @TestMetadata("<API key>") public void <API key>() throws Exception { runTest("idea/idea-frontend-fir/<API key>/testdata/sessionInvalidation/<API key>/"); } }
package io.github.jass2125.locadora.jpa; import javax.persistence.EntityManager; import javax.persistence.Persistence; /** * * @author Anderson Souza * @email jair_anderson_bs@hotmail.com * @since 2015, Feb 9, 2016 */ public class EntityManagerJPA { private static EntityManager em; private EntityManagerJPA() { } public static EntityManager getEntityManager(){ if(em == null) { em = Persistence.<API key>("default").createEntityManager(); } return em; } }
import {boolean, number, object, text, withKnobs} from '@storybook/addon-knobs'; import { BentoAccordion, <API key>, <API key>, <API key>, } from '#bento/components/bento-accordion/1.0/component'; import {BentoVideo} from '#bento/components/bento-video/1.0/component'; import * as Preact from '#preact'; import '#bento/components/bento-video/1.0/component.jss'; export default { title: 'Video', component: BentoVideo, decorators: [withKnobs], }; const VideoTagPlayer = ({i}) => { const group = `Player ${i + 1}`; const width = text('width', '640px', group); const height = text('height', '360px', group); const ariaLabel = text('aria-label', 'Video Player', group); const autoplay = boolean('autoplay', true, group); const controls = boolean('controls', true, group); const mediasession = boolean('mediasession', true, group); const noaudio = boolean('noaudio', false, group); const loop = boolean('loop', false, group); const poster = text( 'poster', 'https://amp.dev/static/inline-examples/images/kitten-playing.png', group ); const artist = text('artist', '', group); const album = text('album', '', group); const artwork = text('artwork', '', group); const title = text('title', '', group); const sources = object( 'sources', [ { src: 'https://amp.dev/static/inline-examples/videos/kitten-playing.webm', type: 'video/webm', }, { src: 'https://amp.dev/static/inline-examples/videos/kitten-playing.mp4', type: 'video/mp4', }, ], group ); return ( <BentoVideo component="video" aria-label={ariaLabel} autoplay={autoplay} controls={controls} mediasession={mediasession} noaudio={noaudio} loop={loop} poster={poster} artist={artist} album={album} artwork={artwork} title={title} style={{width, height}} sources={sources.map((props) => ( <source {...props}></source> ))} /> ); }; const Spacer = ({height}) => { return ( <div style={{ height, background: `linear-gradient(to bottom, #bbb, #bbb 10%, #fff 10%, #fff)`, backgroundSize: '100% 10px', }} ></div> ); }; export const Default = () => { const amount = number('Amount', 1, {}, 'Page'); const spacerHeight = text('Space', '80vh', 'Page'); const spaceAbove = boolean('Space above', false, 'Page'); const spaceBelow = boolean('Space below', false, 'Page'); const players = []; for (let i = 0; i < amount; i++) { players.push(<VideoTagPlayer key={i} i={i} />); if (i < amount - 1) { players.push(<Spacer height={spacerHeight} />); } } return ( <> {spaceAbove && <Spacer height={spacerHeight} />} {players} {spaceBelow && <Spacer height={spacerHeight} />} </> ); }; export const InsideAccordion = () => { const width = text('width', '320px'); const height = text('height', '180px'); return ( <BentoAccordion expandSingleSection> <<API key> key={1} expanded> <<API key>> <h2>Controls</h2> </<API key>> <<API key>> <BentoVideo component="video" controls={true} loop={true} style={{width, height}} src="https://amp.dev/static/inline-examples/videos/kitten-playing.mp4" poster="https://amp.dev/static/inline-examples/images/kitten-playing.png" /> </<API key>> </<API key>> <<API key> key={2}> <<API key>> <h2>Autoplay</h2> </<API key>> <<API key>> <BentoVideo component="video" autoplay={true} loop={true} style={{width, height}} src="https://amp.dev/static/inline-examples/videos/kitten-playing.mp4" poster="https://amp.dev/static/inline-examples/images/kitten-playing.png" sources={[ <source type="video/mp4" src="https://amp.dev/static/inline-examples/videos/kitten-playing.mp4" />, ]} /> </<API key>> </<API key>> </BentoAccordion> ); };
# Upating charts and values.yaml The charts in the `manifests` directory are used in istioctl to generate an installation manifest. The configuration settings contained in values.yaml files and passed through the CLI are validated against a [schema](../../operator/pkg/apis/istio/v1alpha1/values_types.proto). Whenever making changes in the charts, it's important to follow the below steps. ## Step 0. Check that any schema change really belongs in values.yaml Is this a new parameter being added? If not, go to the next step. Dynamic, runtime config that is used to configure Istio components should go into the [MeshConfig API](https://github.com/istio/api/blob/master/mesh/v1alpha1/config.proto). Values.yaml is being deprecated and adding to it is discouraged. MeshConfig is the official API which follows API management practices and is dynamic (does not require component restarts). Exceptions to this rule are configuration items that affect K8s level settings (resources, mounts etc.) ## Step 1. Make changes in charts and values.yaml in `manifests` directory ## Step 2. Make corresponding values changes in [../profiles/default.yaml](../profiles/default.yaml) The values.yaml in `manifests` are only used for direct Helm based installations, which is being deprecated. If any values.yaml changes are being made, the same changes must be made in the `manifests/profiles/default.yaml` file, which must be in sync with the Helm values in `manifests`. ## Step 3. Update the validation schema Istioctl uses a [schema](../../operator/pkg/apis/istio/v1alpha1/values_types.proto) to validate the values. Any changes to the schema must be added here, otherwise istioctl users will see errors. Once the schema file is updated, run: bash $ make operator-proto This will regenerate the Go structs used for schema validation. ## Step 4. Update the generated manifests Tests of istioctl use the auto-generated manifests to ensure that the istioctl binary has the correct version of the charts. These manifests can be found in [gen-istio.yaml](../charts/istio-control/istio-discovery/files/gen-istio.yaml). To regenerate the manifests, run: bash $ make gen ## Step 5. Update golden files The new charts/values will likely produce different installation manifests. Unit tests that expect a certain command output will fail for this reason. To update the golden output files, run: bash $ make refresh-goldens This will generate git diffs in the golden output files. Check that the changes are what you expect. ## Step 6. Create a PR using outputs from Steps 1 to 5 Your PR should pass all the checks if you followed these steps.
namespace SmartyStreets { public class <API key> : SmartyException { public <API key>() { } public <API key>(string message) : base(message) { } } }