answer
stringlengths
15
1.25M
namespace Microsoft.DocAsCode.DataContracts.Common { using System; using Newtonsoft.Json; using YamlDotNet.Serialization; using Microsoft.DocAsCode.Utility; [Serializable] public class SourceDetail { [YamlMember(Alias = "remote")] [JsonProperty("remote")] public GitDetail Remote { get; set; } [YamlMember(Alias = "base")] [JsonProperty("base")] public string BasePath { get; set; } [YamlMember(Alias = "id")] [JsonProperty("id")] public string Name { get; set; } <summary> The url path for current source, should be resolved at some late stage </summary> [YamlMember(Alias = Constants.PropertyName.Href)] [JsonProperty(Constants.PropertyName.Href)] public string Href { get; set; } <summary> The local path for current source, should be resolved to be relative path at some late stage </summary> [YamlMember(Alias = "path")] [JsonProperty("path")] public string Path { get; set; } [YamlMember(Alias = "startLine")] [JsonProperty("startLine")] public int StartLine { get; set; } [YamlMember(Alias = "endLine")] [JsonProperty("endLine")] public int EndLine { get; set; } [YamlMember(Alias = "content")] [JsonProperty("content")] public string Content { get; set; } <summary> The external path for current source if it is not locally available </summary> [YamlMember(Alias = "isExternal")] [JsonProperty("isExternal")] public bool IsExternalPath { get; set; } } }
export function JavapParser(input: any): this; export class JavapParser { constructor(input: any); _interp: any; ruleNames: string[]; literalNames: (string | null)[]; symbolicNames: (string | null)[]; constructor: typeof JavapParser; get atn(): any; compilationUnit(): <API key>; state: number | undefined; sourceDeclaration(): <API key>; classOrInterface(): <API key>; classDeclaration(): <API key>; <API key>(): <API key>; classModifier(): <API key>; interfaceModifier(): <API key>; typeList(): TypeListContext; type(): TypeContext; subType(): SubTypeContext; packageName(): PackageNameContext; typeArguments(): <API key>; typeArgument(): TypeArgumentContext; classBody(): ClassBodyContext; interfaceBody(): <API key>; modifier(): ModifierContext; classMember(): ClassMemberContext; interfaceMember(): <API key>; <API key>(): <API key>; fieldDeclaration(): <API key>; methodDeclaration(): <API key>; throwsException(): <API key>; varargs(): VarargsContext; methodArguments(): <API key>; arrayBrackets(): <API key>; } export namespace JavapParser { export const EOF: number; export const T__0: number; export const T__1: number; export const T__2: number; export const T__3: number; export const T__4: number; export const T__5: number; export const T__6: number; export const T__7: number; export const T__8: number; export const T__9: number; export const T__10: number; export const T__11: number; export const T__12: number; export const T__13: number; export const T__14: number; export const T__15: number; export const T__16: number; export const T__17: number; export const T__18: number; export const T__19: number; export const T__20: number; export const T__21: number; export const T__22: number; export const T__23: number; export const T__24: number; export const T__25: number; export const T__26: number; export const T__27: number; export const T__28: number; export const T__29: number; export const T__30: number; export const T__31: number; export const T__32: number; export const T__33: number; export const T__34: number; export const Identifier: number; export const WS: number; export const <API key>: number; export const <API key>: number; export const <API key>: number; export const <API key>: number; export const <API key>: number; export const RULE_classModifier: number; export const <API key>: number; export const RULE_typeList: number; export const RULE_type: number; export const RULE_subType: number; export const RULE_packageName: number; export const RULE_typeArguments: number; export const RULE_typeArgument: number; export const RULE_classBody: number; export const RULE_interfaceBody: number; export const RULE_modifier: number; export const RULE_classMember: number; export const <API key>: number; export const <API key>: number; export const <API key>: number; export const <API key>: number; export const <API key>: number; export const RULE_varargs: number; export const <API key>: number; export const RULE_arrayBrackets: number; export { <API key> }; export { <API key> }; export { <API key> }; export { <API key> }; export { <API key> }; export { <API key> }; export { <API key> }; export { TypeListContext }; export { TypeContext }; export { SubTypeContext }; export { PackageNameContext }; export { <API key> }; export { TypeArgumentContext }; export { ClassBodyContext }; export { <API key> }; export { ModifierContext }; export { ClassMemberContext }; export { <API key> }; export { <API key> }; export { <API key> }; export { <API key> }; export { <API key> }; export { VarargsContext }; export { <API key> }; export { <API key> }; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; sourceDeclaration(i: any): any; classOrInterface(i: any): any; EOF(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; classDeclaration(): any; <API key>(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; type(i: any): any; classBody(): any; classModifier(i: any): any; typeList(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; type(): any; interfaceBody(): any; interfaceModifier(i: any): any; typeList(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeListContext(parser: any, parent: any, invokingState: any): this; declare class TypeListContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeListContext; type(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeContext(parser: any, parent: any, invokingState: any): this; declare class TypeContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeContext; Identifier(): any; packageName(): any; typeArguments(): any; subType(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function SubTypeContext(parser: any, parent: any, invokingState: any): this; declare class SubTypeContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof SubTypeContext; Identifier(): any; typeArguments(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function PackageNameContext(parser: any, parent: any, invokingState: any): this; declare class PackageNameContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof PackageNameContext; Identifier(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; arrayBrackets(i: any): any; typeArgument(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function TypeArgumentContext(parser: any, parent: any, invokingState: any): this; declare class TypeArgumentContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof TypeArgumentContext; type(i: any): any; Identifier(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassBodyContext(parser: any, parent: any, invokingState: any): this; declare class ClassBodyContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassBodyContext; classMember(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; interfaceMember(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ModifierContext(parser: any, parent: any, invokingState: any): this; declare class ModifierContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ModifierContext; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function ClassMemberContext(parser: any, parent: any, invokingState: any): this; declare class ClassMemberContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof ClassMemberContext; <API key>(): any; fieldDeclaration(): any; methodDeclaration(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; fieldDeclaration(): any; methodDeclaration(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; type(): any; methodArguments(): any; modifier(i: any): any; typeArguments(): any; throwsException(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; type(): any; Identifier(): any; modifier(i: any): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; type(): any; Identifier(): any; methodArguments(): any; modifier(i: any): any; typeArguments(): any; throwsException(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; typeList(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function VarargsContext(parser: any, parent: any, invokingState: any): this; declare class VarargsContext { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof VarargsContext; type(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; typeList(): any; varargs(): any; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } declare function <API key>(parser: any, parent: any, invokingState: any): this; declare class <API key> { constructor(parser: any, parent: any, invokingState: any); parser: any; ruleIndex: number; constructor: typeof <API key>; enterRule(listener: any): void; exitRule(listener: any): void; accept(visitor: any): any; } export {};
using System; using System.Collections.Generic; using NUnit.Framework; using sharpHDF.Library.Enums; using sharpHDF.Library.Exceptions; using sharpHDF.Library.Objects; namespace sharpHDF.Library.Tests.Objects { [TestFixture] public class Hdf5AttributeTests : BaseTest { [OneTimeSetUp] public void Setup() { DirectoryName = @"c:\temp\hdf5tests\attributetests"; CleanDirectory(); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); file.Attributes.Add("attribute2", 5); Assert.AreEqual(2, file.Attributes.Count); file.Close(); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); try { file.Attributes.Add("attribute1", "test2"); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<<API key>>(ex); } } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("test"); group.Attributes.Add("attribute1", "test"); try { group.Attributes.Add("attribute1", "test2"); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<<API key>>(ex); } } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("test"); List<<API key>> dimensionProps = new List<<API key>>(); <API key> prop = new <API key> { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); try { dataset.Attributes.Add("attribute1", "test2"); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<<API key>>(ex); } } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Attribute attribute = file.Attributes.Add("attribute1", "test"); try { attribute.Value = 5; file.Attributes.Update(attribute); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<<API key>>(ex); } } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); Hdf5Attribute attribute = group.Attributes.Add("attribute1", "test"); try { attribute.Value = 5; group.Attributes.Update(attribute); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<<API key>>(ex); } } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); List<<API key>> dimensionProps = new List<<API key>>(); <API key> prop = new <API key> { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); Hdf5Attribute attribute = dataset.Attributes.Add("attribute1", "test"); try { attribute.Value = 5; dataset.Attributes.Update(attribute); Assert.Fail("Should have thrown an exception"); } catch (Exception ex) { file.Close(); Assert.IsInstanceOf<<API key>>(ex); } } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Attribute attribute = file.Attributes.Add("attribute1", "test"); attribute.Value = "test2"; file.Attributes.Update(attribute); file.Close(); file = new Hdf5File(fileName); attribute = file.Attributes[0]; Assert.AreEqual("test2", attribute.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); Hdf5Attribute attribute = group.Attributes.Add("attribute1", "test"); attribute.Value = "test2"; group.Attributes.Update(attribute); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; attribute = group.Attributes[0]; Assert.AreEqual("test2", attribute.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group"); List<<API key>> dimensionProps = new List<<API key>>(); <API key> prop = new <API key> { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); Hdf5Attribute attribute = dataset.Attributes.Add("attribute1", "test"); attribute.Value = "test2"; dataset.Attributes.Update(attribute); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; attribute = dataset.Attributes[0]; Assert.AreEqual("test2", attribute.Value); } [Test] public void GetAttributeOnFile() { string fileName = GetFilename("getattributeonfile.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); file.Attributes.Add("attribute2", 5); Assert.AreEqual(2, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); group.Attributes.Add("attribute1", "test"); group.Attributes.Add("attribute2", 5); Assert.AreEqual(2, group.Attributes.Count); file.Close(); } [Test] public void GetAttributeOnGroup() { string fileName = GetFilename("getattributeongroup.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); group.Attributes.Add("attribute1", "test"); group.Attributes.Add("attribute2", 5); Assert.AreEqual(2, group.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; var attibutes = group.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); List<<API key>> dimensionProps = new List<<API key>>(); <API key> prop = new <API key> {CurrentSize = 1}; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); dataset.Attributes.Add("attribute2", 5); Assert.AreEqual(2, dataset.Attributes.Count); file.Close(); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); List<<API key>> dimensionProps = new List<<API key>>(); <API key> prop = new <API key> { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); dataset.Attributes.Add("attribute2", 5); Assert.AreEqual(2, dataset.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; var attibutes = dataset.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attribute1", "test"); file.Attributes.Add("attribute2", 5); Assert.AreEqual(2, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Attributes.Delete(attribute1); Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Close(); file = new Hdf5File(fileName); attibutes = file.Attributes; Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); group.Attributes.Add("attribute1", "test"); group.Attributes.Add("attribute2", 5); Assert.AreEqual(2, group.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; var attibutes = group.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); group.Attributes.Delete(attribute1); Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; attibutes = group.Attributes; Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); Hdf5Group group = file.Groups.Add("group1"); List<<API key>> dimensionProps = new List<<API key>>(); <API key> prop = new <API key> { CurrentSize = 1 }; dimensionProps.Add(prop); Hdf5Dataset dataset = group.Datasets.Add("dataset1", Hdf5DataTypes.Int32, dimensionProps); dataset.Attributes.Add("attribute1", "test"); dataset.Attributes.Add("attribute2", 5); Assert.AreEqual(2, dataset.Attributes.Count); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; var attibutes = dataset.Attributes; Assert.AreEqual(2, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("attribute1", attribute1.Name); Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); dataset.Attributes.Delete(attribute1); Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); file.Close(); file = new Hdf5File(fileName); group = file.Groups[0]; dataset = group.Datasets[0]; attibutes = dataset.Attributes; Assert.AreEqual(1, attibutes.Count); attribute2 = attibutes[0]; Assert.AreEqual("attribute2", attribute2.Name); Assert.AreEqual(5, attribute2.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); file.Attributes.Add("attributea", "test"); sbyte b = sbyte.MaxValue; file.Attributes.Add("attributeb", b); Int16 c = Int16.MaxValue; file.Attributes.Add("attributec", c); Int32 d = Int32.MaxValue; file.Attributes.Add("attributed", d); Int64 e = Int64.MaxValue; file.Attributes.Add("attributee", e); byte f = Byte.MaxValue; file.Attributes.Add("attibutef", f); UInt16 g = UInt16.MaxValue; file.Attributes.Add("attributeg", g); UInt32 h = UInt32.MaxValue; file.Attributes.Add("attibuteh", h); UInt64 i = UInt64.MaxValue; file.Attributes.Add("attributei", i); float j = float.MaxValue; file.Attributes.Add("attibutej", j); double k = double.MaxValue; file.Attributes.Add("attributek", k); Assert.AreEqual(11, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(11, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("test", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual(sbyte.MaxValue, attribute2.Value); var attribute3 = attibutes[2]; Assert.AreEqual(Int16.MaxValue, attribute3.Value); var attribute4 = attibutes[3]; Assert.AreEqual(Int32.MaxValue, attribute4.Value); var attribute5 = attibutes[4]; Assert.AreEqual(Int64.MaxValue, attribute5.Value); var attribute6 = attibutes[5]; Assert.AreEqual(byte.MaxValue, attribute6.Value); var attribute7 = attibutes[6]; Assert.AreEqual(UInt16.MaxValue, attribute7.Value); var attribute8 = attibutes[7]; Assert.AreEqual(UInt32.MaxValue, attribute8.Value); var attribute9 = attibutes[8]; Assert.AreEqual(UInt64.MaxValue, attribute9.Value); var attribute10 = attibutes[9]; Assert.AreEqual(float.MaxValue, attribute10.Value); var attribute11 = attibutes[10]; Assert.AreEqual(double.MaxValue, attribute11.Value); } [Test] public void <API key>() { string fileName = GetFilename("<API key>.h5"); Hdf5File file = Hdf5File.Create(fileName); var atta = file.Attributes.Add("attributea", "test"); atta.Value = "test2"; file.Attributes.Update(atta); sbyte b = sbyte.MaxValue; var attb = file.Attributes.Add("attributeb", b); attb.Value = sbyte.MinValue; file.Attributes.Update(attb); Int16 c = Int16.MaxValue; var attc = file.Attributes.Add("attributec", c); attc.Value = Int16.MinValue; file.Attributes.Update(attc); Int32 d = Int32.MaxValue; var attd = file.Attributes.Add("attributed", d); attd.Value = Int32.MinValue; file.Attributes.Update(attd); Int64 e = Int64.MaxValue; var atte = file.Attributes.Add("attributee", e); atte.Value = Int64.MinValue; file.Attributes.Update(atte); byte f = Byte.MaxValue; var attf = file.Attributes.Add("attibutef", f); attf.Value = Byte.MinValue; file.Attributes.Update(attf); UInt16 g = UInt16.MaxValue; var attg = file.Attributes.Add("attributeg", g); attg.Value = UInt16.MinValue; file.Attributes.Update(attg); UInt32 h = UInt32.MaxValue; var atth = file.Attributes.Add("attibuteh", h); atth.Value = UInt32.MinValue; file.Attributes.Update(atth); UInt64 i = UInt64.MaxValue; var atti = file.Attributes.Add("attributei", i); atti.Value = UInt64.MinValue; file.Attributes.Update(atti); float j = float.MaxValue; var attj = file.Attributes.Add("attibutej", j); attj.Value = float.MinValue; file.Attributes.Update(attj); double k = double.MaxValue; var attk = file.Attributes.Add("attributek", k); attk.Value = double.MinValue; file.Attributes.Update(attk); Assert.AreEqual(11, file.Attributes.Count); file.Close(); file = new Hdf5File(fileName); var attibutes = file.Attributes; Assert.AreEqual(11, attibutes.Count); var attribute1 = attibutes[0]; Assert.AreEqual("test2", attribute1.Value); var attribute2 = attibutes[1]; Assert.AreEqual(sbyte.MinValue, attribute2.Value); var attribute3 = attibutes[2]; Assert.AreEqual(Int16.MinValue, attribute3.Value); var attribute4 = attibutes[3]; Assert.AreEqual(Int32.MinValue, attribute4.Value); var attribute5 = attibutes[4]; Assert.AreEqual(Int64.MinValue, attribute5.Value); var attribute6 = attibutes[5]; Assert.AreEqual(byte.MinValue, attribute6.Value); var attribute7 = attibutes[6]; Assert.AreEqual(UInt16.MinValue, attribute7.Value); var attribute8 = attibutes[7]; Assert.AreEqual(UInt32.MinValue, attribute8.Value); var attribute9 = attibutes[8]; Assert.AreEqual(UInt64.MinValue, attribute9.Value); var attribute10 = attibutes[9]; Assert.AreEqual(float.MinValue, attribute10.Value); var attribute11 = attibutes[10]; Assert.AreEqual(double.MinValue, attribute11.Value); } } }
# Integration tests for rust_fuse The purpose of this crate is to provide a set of tests that will verify filesystems written with rust_fuse in action. To run it, you need to be capable of mounting arbitrary weird FUSE filesystems under temp directories.
SHELL = /bin/sh # V=0 quiet, V=1 verbose. other values don't work. V = 0 Q1 = $(V:1=) Q = $(Q1:0=@) ECHO1 = $(V:1=@ :) ECHO = $(ECHO1:0=@ echo) NULLCMD = : srcdir = . topdir = /usr/local/include/ruby-2.6.0 hdrdir = $(topdir) arch_hdrdir = /usr/local/include/ruby-2.6.0/x86_64-linux-musl PATH_SEPARATOR = : VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby prefix = $(DESTDIR)/usr/local rubysitearchprefix = $(rubylibprefix)/$(sitearch) rubyarchprefix = $(rubylibprefix)/$(arch) rubylibprefix = $(libdir)/$(RUBY_BASE_NAME) exec_prefix = $(prefix) vendorarchhdrdir = $(vendorhdrdir)/$(sitearch) sitearchhdrdir = $(sitehdrdir)/$(sitearch) rubyarchhdrdir = $(rubyhdrdir)/$(arch) vendorhdrdir = $(rubyhdrdir)/vendor_ruby sitehdrdir = $(rubyhdrdir)/site_ruby rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME) vendorarchdir = $(vendorlibdir)/$(sitearch) vendorlibdir = $(vendordir)/$(ruby_version) vendordir = $(rubylibprefix)/vendor_ruby sitearchdir = $(DESTDIR)./.gem.20200804-31-1pi4ltr sitelibdir = $(DESTDIR)./.gem.20200804-31-1pi4ltr sitedir = $(rubylibprefix)/site_ruby rubyarchdir = $(rubylibdir)/$(arch) rubylibdir = $(rubylibprefix)/$(ruby_version) sitearchincludedir = $(includedir)/$(sitearch) archincludedir = $(includedir)/$(arch) sitearchlibdir = $(libdir)/$(sitearch) archlibdir = $(libdir)/$(arch) ridir = $(datarootdir)/$(RI_BASE_NAME) mandir = $(datarootdir)/man localedir = $(datarootdir)/locale libdir = $(exec_prefix)/lib psdir = $(docdir) pdfdir = $(docdir) dvidir = $(docdir) htmldir = $(docdir) infodir = $(datarootdir)/info docdir = $(datarootdir)/doc/$(PACKAGE) oldincludedir = $(DESTDIR)/usr/include includedir = $(prefix)/include runstatedir = $(localstatedir)/run localstatedir = $(prefix)/var sharedstatedir = $(prefix)/com sysconfdir = $(prefix)/etc datadir = $(datarootdir) datarootdir = $(prefix)/share libexecdir = $(exec_prefix)/libexec sbindir = $(exec_prefix)/sbin bindir = $(exec_prefix)/bin archdir = $(rubyarchdir) CC_WRAPPER = CC = gcc CXX = g++ LIBRUBY = $(LIBRUBY_SO) LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME) LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS) empty = OUTFLAG = -o $(empty) COUTFLAG = -o $(empty) CSRCFLAG = $(empty) RUBY_EXTCONF_H = cflags = $(optflags) $(debugflags) $(warnflags) cxxflags = $(optflags) $(debugflags) $(warnflags) optflags = -O3 debugflags = -ggdb3 warnflags = -Wall -Wextra -<API key> -<API key> -Wduplicated-cond -<API key> -Wimplicit-int -<API key> -Wpointer-arith -Wrestrict -Wwrite-strings -<API key>=0 -Wmissing-noreturn -<API key> -<API key> -Wno-long-long -<API key> -<API key> -<API key> -<API key> -Wno-self-assign -<API key> -<API key> -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable cppflags = CCDLFLAGS = -fPIC CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG) INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir) DEFS = CPPFLAGS = -DBUILD_FOR_RUBY -<API key> -<API key> -<API key> -<API key> -DHAVE_RB_TIME_NEW -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_PIPE2 -DHAVE_ACCEPT4 -<API key> -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DHAVE_CLOCK_GETTIME -<API key> -<API key> -DHAVE_MAKE_PAIR -I/usr/local/opt/openssl/include -I/opt/local/include -I/usr/local/include $(DEFS) $(cppflags) CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG) ldflags = -L. -<API key> -rdynamic -Wl,-export-dynamic dldflags = -Wl,--<API key>=zlib ARCH_FLAG = DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG) LDSHARED = $(CXX) -shared LDSHAREDXX = $(CXX) -shared AR = ar EXEEXT = RUBY_INSTALL_NAME = $(RUBY_BASE_NAME) RUBY_SO_NAME = ruby RUBYW_INSTALL_NAME = RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version) RUBYW_BASE_NAME = rubyw RUBY_BASE_NAME = ruby arch = x86_64-linux-musl sitearch = $(arch) ruby_version = 2.6.0 ruby = $(bindir)/$(RUBY_BASE_NAME) RUBY = $(ruby) ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h RM = rm -f RM_RF = $(RUBY) -run -e rm RMDIRS = rmdir --<API key> -p MAKEDIRS = /bin/mkdir -p INSTALL = /usr/bin/install -c INSTALL_PROG = $(INSTALL) -m 0755 INSTALL_DATA = $(INSTALL) -m 644 COPY = cp TOUCH = exit > preload = libpath = . $(libdir) /usr/local/opt/openssl/lib /opt/local/lib /usr/local/lib LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir) -L/usr/local/opt/openssl/lib -Wl,-rpath,/usr/local/opt/openssl/lib -L/opt/local/lib -Wl,-rpath,/opt/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib DEFFILE = CLEANFILES = mkmf.log DISTCLEANFILES = DISTCLEANDIRS = extout = extout_prefix = target_prefix = LOCAL_LIBS = LIBS = $(LIBRUBYARG_SHARED) -lm -lc ORIG_SRCS = binder.cpp cmain.cpp ed.cpp em.cpp kb.cpp page.cpp pipe.cpp rubymain.cpp ssl.cpp SRCS = $(ORIG_SRCS) OBJS = binder.o cmain.o ed.o em.o kb.o page.o pipe.o rubymain.o ssl.o HDRS = $(srcdir)/page.h $(srcdir)/binder.h $(srcdir)/ssl.h $(srcdir)/em.h $(srcdir)/project.h $(srcdir)/eventmachine.h $(srcdir)/ed.h LOCAL_HDRS = TARGET = rubyeventmachine TARGET_NAME = rubyeventmachine TARGET_ENTRY = Init_$(TARGET_NAME) DLLIB = $(TARGET).so EXTSTATIC = STATIC_LIB = TIMESTAMP_DIR = . BINDIR = $(bindir) RUBYCOMMONDIR = $(sitedir)$(target_prefix) RUBYLIBDIR = $(sitelibdir)$(target_prefix) RUBYARCHDIR = $(sitearchdir)$(target_prefix) HDRDIR = $(rubyhdrdir)/ruby$(target_prefix) ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix) TARGET_SO_DIR = TARGET_SO = $(TARGET_SO_DIR)$(DLLIB) CLEANLIBS = $(TARGET_SO) CLEANOBJS = *.o *.bak all: $(DLLIB) static: $(STATIC_LIB) .PHONY: all install static install-so install-rb .PHONY: clean clean-so clean-static clean-rb clean-static:: clean-rb-default:: clean-rb:: clean-so:: clean: clean-so clean-static clean-rb-default clean-rb -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time <API key>:: distclean-rb:: distclean-so:: distclean-static:: distclean: clean distclean-so distclean-static <API key> distclean-rb -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true realclean: distclean install: install-so install-rb install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.time $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR) clean-static:: -$(Q)$(RM) $(STATIC_LIB) install-rb: pre-install-rb do-install-rb install-rb-default install-rb-default: <API key> <API key> pre-install-rb: Makefile <API key>: Makefile do-install-rb: <API key>: <API key>: @$(NULLCMD) $(TIMESTAMP_DIR)/.sitearchdir.time: $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR) $(Q) $(TOUCH) $@ site-install: site-install-so site-install-rb site-install-so: install-so site-install-rb: install-rb .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S .cc.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .cc.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .mm.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .mm.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .cxx.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .cxx.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .cpp.o: $(ECHO) compiling $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .cpp.S: $(ECHO) translating $(<) $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .c.o: $(ECHO) compiling $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .c.S: $(ECHO) translating $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< .m.o: $(ECHO) compiling $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$< .m.S: $(ECHO) translating $(<) $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$< $(TARGET_SO): $(OBJS) Makefile $(ECHO) linking shared-object $(DLLIB) -$(Q)$(RM) $(@) $(Q) $(LDSHAREDXX) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS) $(OBJS): $(HDRS) $(ruby_headers)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>najaxjs Tutorial: relaylinker | Ajax simple library</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif] <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css"> <link type="text/css" rel="stylesheet" href="styles/site.yeti.css"> </head> <body> <div class="navbar navbar-default navbar-fixed-top navbar-inverse"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="index.html">najaxjs</a> <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="navbar-collapse collapse" id="topNavigation"> <ul class="nav navbar-nav"> <li class="dropdown"> <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="$najax.html">$najax</a></li><li><a href="$najax.define.html">$najax.define</a></li><li><a href="$najax.history.html">$najax.history</a></li><li><a href="$najax@class.html">$najax@class</a></li><li><a href="$najax@ex.html">$najax@ex</a></li><li><a href="$najax@helper.html">$najax@helper</a></li><li><a href="$najax@read.html">$najax@read</a></li><li><a href="$najax@rlk.html">$najax@rlk</a></li> </ul> </li> <li class="dropdown"> <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="Linker.html">Linker</a></li><li><a href="Nx.html">Nx</a></li><li><a href="Pager.html">Pager</a></li><li><a href="Reflector.html">Reflector</a></li><li><a href="Relay.html">Relay</a></li><li><a href="RESTful.html">RESTful</a></li><li><a href="Singular.html">Singular</a></li><li><a href="Tx.html">Tx</a></li> </ul> </li> <li class="dropdown"> <a href="tutorials.list.html" class="dropdown-toggle" data-toggle="dropdown">Tutorials<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="<API key>.html">demo-ui-ajax</a></li><li><a href="<API key>.html">najax-class</a></li><li><a href="tutorial-najax-ex.html">najax-ex</a></li><li><a href="<API key>.html">najax-helper</a></li><li><a href="tutorial-najax-read.html">najax-read</a></li><li><a href="<API key>.html">relaylinker</a></li><li><a href="<API key>.html">rlk-standalone</a></li><li><a href="<API key>.html">static-history</a></li><li><a href="<API key>.html">static-najax-micro</a></li><li><a href="<API key>.html">static-najax</a></li> </ul> </li> <li class="dropdown"> <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a> <ul class="dropdown-menu "> <li><a href="global.html">Global</a></li> </ul> </li> </ul> <div class="col-sm-3 col-md-3"> <form class="navbar-form" role="search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search" name="q" id="search-input"> <div class="input-group-btn"> <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button> </div> </div> </form> </div> </div> </div> </div> <div class="container" id="toc-content"> <div class="row"> <div class="col-md-12"> <div id="main"> <section class="tutorial-section"> <header> <h2>relaylinker</h2> </header> <article> <script type="text/javascript" src="includes/load.js"></script> <link href="./includes/common.css" rel="stylesheet"> <div>Demo is iframe content. Standalone demo is <a href="../demos/relaylinker.html" target="_blank">here</a>. <u>Require php activation in server.</u></div> <iframe src="../demos/relaylinker.html" width="100%" height="1000" scrolling="no"></iframe> </article> </section> </div> </div> <div class="clearfix"></div> </div> </div> <div class="modal fade" id="searchResults"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title">Search results</h4> </div> <div class="modal-body"></div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div> <footer> &nbsp; <span class="jsdoc-message"> Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>. </span> </footer> <script src="scripts/docstrap.lib.js"></script> <script src="scripts/toc.js"></script> <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script> <script> $( function () { $( "[id*='$']" ).each( function () { var $this = $( this ); $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) ); } ); $( ".tutorial-section pre, .readme-section pre" ).each( function () { var $this = $( this ); var example = $this.find( "code" ); exampleText = example.html(); var lang = /{@lang (.*?)}/.exec( exampleText ); if ( lang && lang[1] ) { exampleText = exampleText.replace( lang[0], "" ); example.html( exampleText ); lang = lang[1]; } else { var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/); lang = langClassMatch ? langClassMatch[1] : "javascript"; } if ( lang ) { $this .addClass( "sunlight-highlight-" + lang ) .addClass( "linenums" ) .html( example.html() ); } } ); Sunlight.highlightAll( { lineNumbers : true, showMenu : true, enableDoclinks : true } ); $.catchAnchorLinks( { navbarOffset: 10 } ); $( "#toc" ).toc( { anchorName : function ( i, heading, prefix ) { var id = $( heading ).attr( "id" ); return id && id.replace(/\~/g, '-inner-').replace(/\./g, '-static-') || ( prefix + i ); }, selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4", showAndHide : false, smoothScrolling: true } ); $( "#main span[id^='toc']" ).addClass( "toc-shim" ); $( '.dropdown-toggle' ).dropdown(); $( "table" ).each( function () { var $this = $( this ); $this.addClass('table'); } ); } ); </script> <!--Navigation and Symbol Display <!--Google Analytics <script type="text/javascript"> $(document).ready(function() { SearcherDisplay.init(); }); </script> </body> </html>
using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; namespace UniversityStudents.Models { public class ApplicationUser : IdentityUser { public async Task<ClaimsIdentity> <API key>(UserManager<ApplicationUser> manager, string authenticationType) { // Note the authenticationType must match the one defined in Cookie<API key>.AuthenticationType var userIdentity = await manager.CreateIdentityAsync(this, authenticationType); // Add custom user claims here return userIdentity; } } public class <API key> : IdentityDbContext<ApplicationUser> { public <API key>() : base("DefaultConnection", throwIfV1Schema: false) { } public static <API key> Create() { return new <API key>(); } } }
const express = require('express'); const app = express(); const path = require('path'); const userCtrl = require('./userCtrl.js'); //extra middleware const bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({extended: true}), bodyParser.json()); app.use(express.static(path.join(__dirname, '../../node_modules/'))); app.use(express.static(path.join(__dirname, '../client/'))); app.post('/requestDB', userCtrl.sendTableList); app.post('/requestTable', userCtrl.sendTable); app.post('/createTable', userCtrl.createTable); app.post('/insert', userCtrl.insertEntry); app.post('/update', userCtrl.updateEntry); app.post('/delete', userCtrl.deleteEntry); app.post('/query', userCtrl.rawQuery); app.post('/dropTable', userCtrl.dropTable); app.listen(3000, ()=> console.log('listening on port 3000'));
package com.wjiec.learn.reordering; public class <API key> { private int number = 0; private boolean flag = false; public synchronized void write() { number = 1; flag = true; } public synchronized int read() { if (flag) { return number * number; } return -1; } }
layout: base <div class="body-container"> <!--[if lt IE 8]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif] <nav class="navbar navbar-light bg-faded"> <div class="d-flex <API key>"> <a class="navbar-brand" href="{{ '/' | relative_url }}">{{ site.title | escape }}</a> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link" href="{{ '/about/' | relative_url }}" title="About">About</a> </li> </ul> </div> </nav> <div class="content"> {{ content }} </div> <footer class="bg-faded p-3"> <p class="text-center mb-0 text-muted">&copy; 2017 {{ site.author | escape }}</p> </footer> </div>
<?php namespace Torchbox\Thankq\Api; class doContactInsert { /** * @var <API key> $<API key> */ protected $<API key> = null; /** * @param <API key> $<API key> */ public function __construct($<API key>) { $this-><API key> = $<API key>; } /** * @return <API key> */ public function <API key>() { return $this-><API key>; } /** * @param <API key> $<API key> * @return \Torchbox\Thankq\Api\doContactInsert */ public function <API key>($<API key>) { $this-><API key> = $<API key>; return $this; } }
package eu.hgross.blaubot.android.views; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os.Looper; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; import java.util.Set; import eu.hgross.blaubot.admin.<API key>; import eu.hgross.blaubot.admin.CensusMessage; import eu.hgross.blaubot.android.R; import eu.hgross.blaubot.core.Blaubot; import eu.hgross.blaubot.core.IBlaubotConnection; import eu.hgross.blaubot.core.State; import eu.hgross.blaubot.core.acceptor.<API key>; import eu.hgross.blaubot.core.statemachine.<API key>; import eu.hgross.blaubot.core.statemachine.states.IBlaubotState; import eu.hgross.blaubot.messaging.<API key>; import eu.hgross.blaubot.ui.IBlaubotDebugView; /** * Android view to display informations about the StateMachine's state. * * Add this view to a blaubot instance like this: stateView.<API key>(blaubot); * * @author Henning Gross {@literal (mail.to@henning-gross.de)} * */ public class KingdomView extends LinearLayout implements IBlaubotDebugView { private Handler mUiHandler; private Blaubot mBlaubot; private Context mContext; public KingdomView(Context context, AttributeSet attrs) { super(context, attrs); initView(context); } public KingdomView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); initView(context); } private void initView(Context context) { this.mContext = context; mUiHandler = new Handler(Looper.getMainLooper()); } private final static String <API key> = "Got no census message so far"; private void updateUI(final CensusMessage censusMessage) { mUiHandler.post(new Runnable() { @Override public void run() { final List<View> stateItems = new ArrayList<>(); if(censusMessage != null) { final Set<Entry<String, State>> entries = censusMessage.getDeviceStates().entrySet(); for(Entry<String, State> entry : entries) { final String uniqueDeviceId = entry.getKey(); final State state = entry.getValue(); View item = <API key>(mContext, state, uniqueDeviceId); stateItems.add(item); } } // Never got a message if(stateItems.isEmpty()) { TextView tv = new TextView(mContext); tv.setText(<API key>); stateItems.add(tv); } removeAllViews(); for(View v : stateItems) { addView(v); } } }); } /** * Creates a kingdom view list item * * @param context the context * @param state the state of the device to visualize * @param uniqueDeviceId the unique device id * @return the constructed view */ public static View <API key>(Context context, State state, String uniqueDeviceId) { final Drawable icon = ViewUtils.<API key>(context, state); View item = inflate(context, R.layout.<API key>, null); TextView <API key> = (TextView) item.findViewById(R.id.uniqueDeviceIdLabel); TextView stateTextView = (TextView) item.findViewById(R.id.stateLabel); ImageView iconImageView = (ImageView) item.findViewById(R.id.stateIcon); iconImageView.setImageDrawable(icon); <API key>.setText(uniqueDeviceId); stateTextView.setText(state.toString()); return item; } private <API key> <API key> = new <API key>() { @Override public void onConnectionClosed(IBlaubotConnection connection) { } @Override public void <API key>(IBlaubotConnection connection) { } }; private <API key> <API key> = new <API key>() { @Override public void onStateChanged(IBlaubotState oldState, final IBlaubotState state) { if(State.<API key>(state.getClass()) == State.Free) { updateUI(null); } } @Override public void <API key>() { updateUI(null); } @Override public void <API key>() { } }; private <API key> <API key> = new <API key>() { @Override public void onAdminMessage(<API key> adminMessage) { if(adminMessage instanceof CensusMessage) { updateUI((CensusMessage) adminMessage); } } }; /** * Register this view with the given blaubot instance * * @param blaubot * the blaubot instance to connect with */ @Override public void <API key>(Blaubot blaubot) { if (mBlaubot != null) { <API key>(); } this.mBlaubot = blaubot; this.mBlaubot.<API key>().<API key>(<API key>); this.mBlaubot.getChannelManager().<API key>(<API key>); this.mBlaubot.<API key>().<API key>(<API key>); // update updateUI(null); } @Override public void <API key>() { if(mBlaubot != null) { this.mBlaubot.<API key>().<API key>(<API key>); this.mBlaubot.getChannelManager().<API key>(<API key>); this.mBlaubot.<API key>().<API key>(<API key>); } // force some updates updateUI(null); } }
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Td</title> <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic|Source+Code+Pro:300,400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="../assets/css/bootstrap.css"> <link rel="stylesheet" href="../assets/css/jquery.bonsai.css"> <link rel="stylesheet" href="../assets/css/main.css"> <link rel="stylesheet" href="../assets/css/icons.css"> <script type="text/javascript" src="../assets/js/jquery-2.1.0.min.js"></script> <script type="text/javascript" src="../assets/js/bootstrap.js"></script> <script type="text/javascript" src="../assets/js/jquery.bonsai.js"></script> <!-- <script type="text/javascript" src="../assets/js/main.js"></script> --> </head> <body> <div> <!-- Name Title --> <h1>Td</h1> <!-- Type and Stereotype --> <section style="margin-top: .5em;"> <span class="alert alert-info"> <span class="node-icon _icon-UMLParameter"></span> UMLParameter </span> </section> <!-- Path --> <section style="margin-top: 10px"> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-Project'></span>Ciayn Docu</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLModel'></span>Ciyn Diagrams</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>ciayn</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLPackage'></span>controller</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLClass'></span>D</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLOperation'></span>«constructor»D</a></span> <span>::</span> <span class="label label-info"><a href='<API key>.html'><span class='node-icon _icon-UMLParameter'></span>Td</a></span> </section> <!-- Diagram --> <!-- Description --> <section> <h3>Description</h3> <div> <span class="label label-info">none</span> </div> </section> <!-- Specification --> <!-- Directed Relationship --> <!-- Undirected Relationship --> <!-- Classifier --> <!-- Interface --> <!-- Component --> <!-- Node --> <!-- Actor --> <!-- Use Case --> <!-- Template Parameters --> <!-- Literals --> <!-- Attributes --> <!-- Operations --> <!-- Receptions --> <!-- Extension Points --> <!-- Parameters --> <!-- Diagrams --> <!-- Behavior --> <!-- Action --> <!-- Interaction --> <!-- CombinedFragment --> <!-- Activity --> <!-- State Machine --> <!-- State Machine --> <!-- State --> <!-- Vertex --> <!-- Transition --> <!-- Properties --> <section> <h3>Properties</h3> <table class="table table-striped table-bordered"> <tr> <th width="50%">Name</th> <th width="50%">Value</th> </tr> <tr> <td>name</td> <td>Td</td> </tr> <tr> <td>stereotype</td> <td><span class='label label-info'>null</span></td> </tr> <tr> <td>visibility</td> <td>public</td> </tr> <tr> <td>isStatic</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isLeaf</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>type</td> <td><span class='label label-info'>void</span></td> </tr> <tr> <td>multiplicity</td> <td></td> </tr> <tr> <td>isReadOnly</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isOrdered</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>isUnique</td> <td><span class='label label-info'>false</span></td> </tr> <tr> <td>defaultValue</td> <td></td> </tr> <tr> <td>direction</td> <td>in</td> </tr> </table> </section> <!-- Tags --> <!-- Constraints, Dependencies, Dependants --> <!-- Relationships --> <!-- Owned Elements --> </div> </body> </html>
#!/usr/bin/env python # -*- coding: utf-8 -*- import zmq from zmq.eventloop import ioloop as ioloop_mod import zmqdecorators import time SERVICE_NAME = "urpobot.motor" SERVICE_PORT = 7575 SIGNALS_PORT = 7576 # How long to wait for new commands before stopping automatically COMMAND_GRACE_TIME = 0.250 class motorserver(zmqdecorators.service): def __init__(self, service_name, service_port, serialport): super(motorserver, self).__init__(service_name, service_port) self.serial_port = serialport self.input_buffer = "" self.evthandler = ioloop_mod.IOLoop.instance().add_handler(self.serial_port.fileno(), self.handle_serial_event, ioloop_mod.IOLoop.instance().READ) self.last_command_time = time.time() self.pcb = ioloop_mod.PeriodicCallback(self.check_data_reveived, COMMAND_GRACE_TIME) self.pcb.start() def check_data_reveived(self, *args): if (time.time() - self.last_command_time > COMMAND_GRACE_TIME): self._setspeeds(0,0) def _setspeeds(self, m1speed, m2speed): self.serial_port.write("S%04X%04X\n" % ((m1speed & 0xffff), (m2speed & 0xffff))) @zmqdecorators.method() def setspeeds(self, resp, m1speed, m2speed): self.last_command_time = time.time() #print("Got speeds %s,%s" % (m1speed, m2speed)) self._setspeeds(m1speed, m2speed) # TODO: actually handle ACK/NACK somehow (we need to read it from the serialport but we can't block while waiting for it...) resp.send("ACK") def handle_serial_event(self, fd, events): # Copied from arbus that was thread based if not self.serial_port.inWaiting(): # Don't try to read if there is no data, instead sleep (yield) a bit time.sleep(0) return data = self.serial_port.read(1) if len(data) == 0: return #print("DEBUG: data=%s" % data) # Put the data into inpit buffer and check for CRLF self.input_buffer += data # Trim prefix NULLs and linebreaks self.input_buffer = self.input_buffer.lstrip(chr(0x0) + "\r\n") #print "input_buffer=%s" % repr(self.input_buffer) if ( len(self.input_buffer) > 1 and self.input_buffer[-2:] == "\r\n"): # Got a message, parse it (sans the CRLF) and empty the buffer self.message_received(self.input_buffer[:-2]) self.input_buffer = "" def message_received(self, message): #print("DEBUG: msg=%s" % message) try: # Currently we have no incoming messages from this board pass except Exception as e: print "message_received exception: Got exception %s" % repr(e) # Ignore indexerrors, they just mean we could not parse the command pass pass def cleanup(self): print("Cleanup called") self._setspeeds(0,0) def run(self): print("Starting motorserver") super(motorserver, self).run() if __name__ == "__main__": import serial import sys,os port = serial.Serial(sys.argv[1], 115200, xonxoff=False, timeout=0.01) instance = motorserver(SERVICE_NAME, SERVICE_PORT, port) instance.run()
from rest_framework import serializers from . import models class Invoice(serializers.ModelSerializer): class Meta: model = models.Invoice fields = ( 'id', 'name', 'additional_infos', 'owner', 'creation_date', 'update_date', )
<footer class="site-footer"> <div class="wrapper"> <h2 class="footer-heading small-site-title">{{ site.title }}</h2> <div class="footer-col-wrapper"> <div class="footer-col footer-col-1"> <ul class="contact-list footer-content"> <li>Powered By <a href="http://github.com/hemangsk/Gravity">Gravity</a></li> <li>Made with <i class="fa fa-heart"></i> on <a href="jekyll.com"><span style="color:black">{ { Jekyll } }</a></span></li> </ul> </div> <div class="footer-col footer-col-2 footer-content"> <ul class="social-media-list"> {% if site.github_username %} <li> {% include icon-github.html username=site.github_username %} </li> {% endif %} {% if site.twitter_username %} <li> {% include icon-twitter.html username=site.twitter_username %} </li> {% endif %} </ul> </div> <div class="footer-col footer-col-3 site-description"> <p>{{ site.description }}</p> </div> </div> </div> </footer>
using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace Izzo.Collections.Immutable { [DebuggerDisplay( "Count = {Count}" )] public sealed partial class ImmutableList<T> : IImmutableList<T> { public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); private readonly List<T> items; private ImmutableList() { this.items = new List<T>(); } private ImmutableList( IEnumerable<T> items ) { if( items is ImmutableList<T> ) { var otherList = items as ImmutableList<T>; this.items = otherList.items; } else { this.items = new List<T>( items ); } } private ImmutableList( List<T> items, bool noAlloc ) { if( noAlloc ) { this.items = items; } else { this.items = new List<T>( items ); } } public T this[int index] { get { return items[index]; } } public int Count { get { return items.Count; } } public bool IsEmpty { get { return Count == 0; } } public ImmutableList<T> Add( T item ) { var newList = new ImmutableList<T>( items ); newList.items.Add( item ); return newList; } public ImmutableList<T> AddRange( IEnumerable<T> range ) { var newList = new ImmutableList<T>( items ); newList.items.AddRange( range ); return newList; } public ImmutableList<T> Set( int index, T item ) { var newList = new ImmutableList<T>( items ); newList.items[index] = item; return newList; } public ImmutableList<T> Clear() { return Empty; } public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return items.GetEnumerator(); } public int IndexOf( T item, int startIndex, int count, IEqualityComparer<T> equalityComparer ) { for( int i = startIndex; i < startIndex + count; i++ ) { if( equalityComparer.Equals( item, items[i] ) ) { return i; } } return -1; } public ImmutableList<T> Insert( int index, T item ) { var newList = new ImmutableList<T>( items ); newList.items.Insert( index, item ); return newList; } public ImmutableList<T> Remove( T item, IEqualityComparer<T> equalityComparer ) { int idx = IndexOf( item, 0, Count, equalityComparer ); if( idx >= 0 ) { return RemoveAt( idx ); } return this; } public ImmutableList<T> Remove( T item ) { return Remove( item, EqualityComparer<T>.Default ); } public ImmutableList<T> RemoveAt( int index ) { var newList = new ImmutableList<T>( items ); newList.items.RemoveAt( index ); return newList; } public bool Contains( T item ) { return items.Contains( item ); } public T Find( Predicate<T> match ) { return items.Find( match ); } public ImmutableList<T> FindAll( Predicate<T> match ) { return new ImmutableList<T>( items.FindAll( match ), true ); } public int FindIndex( Predicate<T> match ) { return items.FindIndex( match ); } IImmutableList<T> IImmutableList<T>.Add( T item ) { return Add( item ); } IImmutableList<T> IImmutableList<T>.AddRange( IEnumerable<T> items ) { return AddRange( items ); } IImmutableList<T> IImmutableList<T>.SetItem( int index, T item ) { return Set( index, item ); } IImmutableList<T> IImmutableList<T>.Clear() { return Clear(); } IImmutableList<T> IImmutableList<T>.Insert( int index, T item ) { return Insert( index, item ); } IImmutableList<T> IImmutableList<T>.RemoveAt( int index ) { return RemoveAt( index ); } IImmutableList<T> IImmutableList<T>.FindAll( Predicate<T> match ) { return FindAll( match ); } IImmutableList<T> IImmutableList<T>.Remove( T value, IEqualityComparer<T> equalityComparer ) { return Remove( value, equalityComparer ); } } }
#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SESSION_NAME="$1" source "$CURRENT_DIR/helpers.sh" <API key>() { tmux send-keys C-c } <API key>() { [ -z "$SESSION_NAME" ] } main() { if <API key>; then <API key> exit 0 fi if session_exists; then <API key> tmux switch-client -t "$SESSION_NAME" else "$CURRENT_DIR/show_goto_prompt.sh" "$SESSION_NAME" fi } main
<?php return array ( 'version' => '6546', 'numberSymbols' => array ( 'alias' => '', 'decimal' => '.', 'group' => ',', 'list' => ';', 'percentSign' => '%', 'plusSign' => '+', 'minusSign' => '-', 'exponential' => 'E', 'perMille' => '‰', 'infinity' => '∞', 'nan' => 'NaN', ), 'decimalFormat' => ' 'scientificFormat' => ' 'percentFormat' => ' 'currencyFormat' => ' 'currencySymbols' => array ( 'AUD' => 'AU$', 'BRL' => 'R$', 'CAD' => 'CA$', 'CNY' => 'CN¥', 'EUR' => '€', 'GBP' => '£', 'HKD' => 'HK$', 'ILS' => '₪', 'INR' => '₹', 'JPY' => 'JP¥', 'KRW' => '₩', 'MXN' => 'MX$', 'NZD' => 'NZ$', 'THB' => '฿', 'TWD' => 'NT$', 'USD' => 'US$', 'VND' => '₫', 'XAF' => 'FCFA', 'XCD' => 'EC$', 'XOF' => 'CFA', 'XPF' => 'CFPF', 'TZS' => 'TSh', ), 'monthNames' => array ( 'wide' => array ( 1 => 'Januali', 2 => 'Febluali', 3 => 'Machi', 4 => 'Aplili', 5 => 'Mei', 6 => 'Juni', 7 => 'Julai', 8 => 'Agosti', 9 => 'Septemba', 10 => 'Oktoba', 11 => 'Novemba', 12 => 'Desemba', ), 'abbreviated' => array ( 1 => 'Jan', 2 => 'Feb', 3 => 'Mac', 4 => 'Apr', 5 => 'Mei', 6 => 'Jun', 7 => 'Jul', 8 => 'Ago', 9 => 'Sep', 10 => 'Okt', 11 => 'Nov', 12 => 'Des', ), ), 'monthNamesSA' => array ( 'narrow' => array ( 1 => 'J', 2 => 'F', 3 => 'M', 4 => 'A', 5 => 'M', 6 => 'J', 7 => 'J', 8 => 'A', 9 => 'S', 10 => 'O', 11 => 'N', 12 => 'D', ), ), 'weekDayNames' => array ( 'wide' => array ( 0 => 'Jumaapii', 1 => 'Jumaatatu', 2 => 'Jumaane', 3 => 'Jumaatano', 4 => 'Alhamisi', 5 => 'Ijumaa', 6 => 'Jumaamosi', ), 'abbreviated' => array ( 0 => 'Jpi', 1 => 'Jtt', 2 => 'Jmn', 3 => 'Jtn', 4 => 'Alh', 5 => 'Iju', 6 => 'Jmo', ), ), 'weekDayNamesSA' => array ( 'narrow' => array ( 0 => '2', 1 => '3', 2 => '4', 3 => '5', 4 => 'A', 5 => 'I', 6 => '1', ), ), 'eraNames' => array ( 'abbreviated' => array ( 0 => 'KK', 1 => 'BK', ), 'wide' => array ( 0 => 'Kabla ya Klisto', 1 => 'Baada ya Klisto', ), 'narrow' => array ( 0 => 'KK', 1 => 'BK', ), ), 'dateFormats' => array ( 'full' => 'EEEE, d MMMM y', 'long' => 'd MMMM y', 'medium' => 'd MMM y', 'short' => 'dd/MM/yyyy', ), 'timeFormats' => array ( 'full' => 'h:mm:ss a zzzz', 'long' => 'h:mm:ss a z', 'medium' => 'h:mm:ss a', 'short' => 'h:mm a', ), 'dateTimeFormat' => '{1} {0}', 'amName' => 'makeo', 'pmName' => 'nyiaghuo', 'orientation' => 'ltr', 'languages' => array ( 'ak' => 'Kiakan', 'am' => 'Kiamhali', 'ar' => 'Kialabu', 'be' => 'Kibelaausi', 'bg' => 'Kibulgalia', 'bn' => 'Kibangla', 'cs' => 'Kichecki', 'de' => 'Kijeumani', 'el' => 'Kigiiki', 'en' => 'Kiingeeza', 'es' => 'Kihispania', 'fa' => 'Kiajemi', 'fr' => 'Kifalansa', 'ha' => 'Kihausa', 'hi' => 'Kihindi', 'hu' => 'Kihungai', 'id' => 'Kiindonesia', 'ig' => 'Kiigbo', 'it' => 'Kiitaliano', 'ja' => 'Kijapani', 'jv' => 'Kijava', 'km' => 'Kikambodia', 'ko' => 'Kikolea', 'ksb' => 'Kishambaa', 'ms' => 'Kimalesia', 'my' => 'Kibulma', 'ne' => 'Kinepali', 'nl' => 'Kiholanzi', 'pa' => 'Kipunjabi', 'pl' => 'Kipolandi', 'pt' => 'Kileno', 'ro' => 'Kiomania', 'ru' => 'Kilusi', 'rw' => 'Kinyalwanda', 'so' => 'Kisomali', 'sv' => 'Kiswidi', 'ta' => 'Kitamil', 'th' => 'Kitailandi', 'tr' => 'Kituuki', 'uk' => 'Kiuklania', 'ur' => 'Kiuldu', 'vi' => 'Kivietinamu', 'yo' => 'Kiyoluba', 'zh' => 'Kichina', 'zu' => 'Kizulu', ), 'territories' => array ( 'ad' => 'Andola', 'ae' => 'Falme za Kialabu', 'af' => 'Afuganistani', 'ag' => 'Antigua na Balbuda', 'ai' => 'Anguilla', 'al' => 'Albania', 'am' => 'Almenia', 'an' => 'Antili za Uholanzi', 'ao' => 'Angola', 'ar' => 'Ajentina', 'as' => 'Samoa ya Malekani', 'at' => 'Austlia', 'au' => 'Austlalia', 'aw' => 'Aluba', 'az' => 'Azabajani', 'ba' => 'Bosnia na Hezegovina', 'bb' => 'Babadosi', 'bd' => 'Bangladeshi', 'bf' => 'Bukinafaso', 'bg' => 'Bulgalia', 'bh' => 'Bahaleni', 'bi' => 'Bulundi', 'bj' => 'Benini', 'bm' => 'Belmuda', 'bn' => 'Blunei', 'bo' => 'Bolivia', 'br' => 'Blazili', 'bs' => 'Bahama', 'bt' => 'Butani', 'bw' => 'Botswana', 'by' => 'Belalusi', 'bz' => 'Belize', 'ca' => 'Kanada', 'cd' => 'Jamhuli ya Kidemoklasia ya Kongo', 'cf' => 'Jamhuli ya Afrika ya Gati', 'cg' => 'Kongo', 'ch' => 'Uswisi', 'ci' => 'Kodivaa', 'ck' => 'Visiwa vya Cook', 'cl' => 'Chile', 'cm' => 'Kameluni', 'cn' => 'China', 'co' => 'Kolombia', 'cr' => 'Kostalika', 'cs' => 'Selbia na Monteneglo', 'cu' => 'Kuba', 'cv' => 'Kepuvede', 'cy' => 'Kuplosi', 'cz' => 'Jamhuli ya Cheki', 'de' => 'Ujeumani', 'dj' => 'Jibuti', 'dk' => 'Denmaki', 'dm' => 'Dominika', 'do' => 'Jamhuli ya Dominika', 'dz' => 'Aljelia', 'ec' => 'Ekwado', 'ee' => 'Estonia', 'eg' => 'Misli', 'er' => 'Elitlea', 'es' => 'Hispania', 'et' => 'Uhabeshi', 'fi' => 'Ufini', 'fj' => 'Fiji', 'fk' => 'Visiwa vya Falkland', 'fm' => 'Miklonesia', 'fr' => 'Ufalansa', 'ga' => 'Gaboni', 'gb' => 'Uingeeza', 'gd' => 'Glenada', 'ge' => 'Jojia', 'gf' => 'Gwiyana ya Ufalansa', 'gh' => 'Ghana', 'gi' => 'Jiblalta', 'gl' => 'Glinlandi', 'gm' => 'Gambia', 'gn' => 'Gine', 'gp' => 'Gwadelupe', 'gq' => 'Ginekweta', 'gr' => 'Ugiiki', 'gt' => 'Gwatemala', 'gu' => 'Gwam', 'gw' => 'Ginebisau', 'gy' => 'Guyana', 'hn' => 'Honduasi', 'hr' => 'Kolasia', 'ht' => 'Haiti', 'hu' => 'Hungalia', 'id' => 'Indonesia', 'ie' => 'Ayalandi', 'il' => 'Islaeli', 'in' => 'India', 'io' => 'Eneo ja Uingeeza mwe Bahali Hindi', 'iq' => 'Ilaki', 'ir' => 'Uajemi', 'is' => 'Aislandi', 'it' => 'Italia', 'jm' => 'Jamaika', 'jo' => 'Yoldani', 'jp' => 'Japani', 'ke' => 'Kenya', 'kg' => 'Kiigizistani', 'kh' => 'Kambodia', 'ki' => 'Kiibati', 'km' => 'Komolo', 'kn' => 'Santakitzi na Nevis', 'kp' => 'Kolea Kaskazini', 'kr' => 'Kolea Kusini', 'kw' => 'Kuwaiti', 'ky' => 'Visiwa vya Kayman', 'kz' => 'Kazakistani', 'la' => 'Laosi', 'lb' => 'Lebanoni', 'lc' => 'Santalusia', 'li' => 'Lishenteni', 'lk' => 'Sililanka', 'lr' => 'Libelia', 'ls' => 'Lesoto', 'lt' => 'Litwania', 'lu' => 'Lasembagi', 'lv' => 'Lativia', 'ly' => 'Libya', 'ma' => 'Moloko', 'mc' => 'Monako', 'md' => 'Moldova', 'mg' => 'Bukini', 'mh' => 'Visiwa vya Mashal', 'mk' => 'Masedonia', 'ml' => 'Mali', 'mm' => 'Myama', 'mn' => 'Mongolia', 'mp' => 'Visiwa vya Maliana vya Kaskazini', 'mq' => 'Maltiniki', 'mr' => 'Maulitania', 'ms' => 'Montselati', 'mt' => 'Malta', 'mu' => 'Molisi', 'mv' => 'Modivu', 'mw' => 'Malawi', 'mx' => 'Meksiko', 'my' => 'Malesia', 'mz' => 'Msumbiji', 'na' => 'Namibia', 'nc' => 'Nyukaledonia', 'ne' => 'Naija', 'nf' => 'Kisiwa cha Nolfok', 'ng' => 'Naijelia', 'ni' => 'Nikalagwa', 'nl' => 'Uholanzi', 'no' => 'Nolwei', 'np' => 'Nepali', 'nr' => 'Naulu', 'nu' => 'Niue', 'nz' => 'Nyuzilandi', 'om' => 'Omani', 'pa' => 'Panama', 'pe' => 'Pelu', 'pf' => 'Polinesia ya Ufalansa', 'pg' => 'Papua', 'ph' => 'Filipino', 'pk' => 'Pakistani', 'pl' => 'Polandi', 'pm' => 'Santapieli na Mikeloni', 'pn' => 'Pitkailni', 'pr' => 'Pwetoliko', 'ps' => 'Ukingo wa Maghalibi na Ukanda wa Gaza wa Palestina', 'pt' => 'Uleno', 'pw' => 'Palau', 'py' => 'Palagwai', 'qa' => 'Katali', 're' => 'Liyunioni', 'ro' => 'Lomania', 'ru' => 'Ulusi', 'rw' => 'Lwanda', 'sa' => 'Saudi', 'sb' => 'Visiwa vya Solomon', 'sc' => 'Shelisheli', 'sd' => 'Sudani', 'se' => 'Uswidi', 'sg' => 'Singapoo', 'sh' => 'Santahelena', 'si' => 'Slovenia', 'sk' => 'Slovakia', 'sl' => 'Siela Leoni', 'sm' => 'Samalino', 'sn' => 'Senegali', 'so' => 'Somalia', 'sr' => 'Sulinamu', 'st' => 'Sao Tome na Plincipe', 'sv' => 'Elsavado', 'sy' => 'Silia', 'sz' => 'Uswazi', 'tc' => 'Visiwa vya Tulki na Kaiko', 'td' => 'Chadi', 'tg' => 'Togo', 'th' => 'Tailandi', 'tj' => 'Tajikistani', 'tk' => 'Tokelau', 'tl' => 'Timoli ya Mashaliki', 'tm' => 'Tulukimenistani', 'tn' => 'Tunisia', 'to' => 'Tonga', 'tr' => 'Utuluki', 'tt' => 'Tlinidad na Tobago', 'tv' => 'Tuvalu', 'tw' => 'Taiwani', 'tz' => 'Tanzania', 'ua' => 'Uklaini', 'ug' => 'Uganda', 'us' => 'Malekani', 'uy' => 'Ulugwai', 'uz' => 'Uzibekistani', 'va' => 'Vatikani', 'vc' => 'Santavisenti na Glenadini', 've' => 'Venezuela', 'vg' => 'Visiwa vya Vilgin vya Uingeeza', 'vi' => 'Visiwa vya Vilgin vya Malekani', 'vn' => 'Vietinamu', 'vu' => 'Vanuatu', 'wf' => 'Walis na Futuna', 'ws' => 'Samoa', 'ye' => 'Yemeni', 'yt' => 'Mayotte', 'za' => 'Aflika Kusini', 'zm' => 'Zambia', 'zw' => 'Zimbabwe', ), 'pluralRules' => array ( 0 => 'n==1', 1 => 'true', ), );
class Users::SessionsController < Devise::SessionsController layout :layout def presign end def layout if params[:no_layout].present? return false else return 'user' end end end
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.2 / fcsl-pcm - 1.1.1</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fcsl-pcm <small> 1.1.1 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-01-04 10:12:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-04 10:12:16 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.5.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;FCSL &lt;fcsl@software.imdea.org&gt;&quot; homepage: &quot;http://software.imdea.org/fcsl/&quot; bug-reports: &quot;https://github.com/imdea-software/fcsl-pcm/issues&quot; dev-repo: &quot;git+https://github.com/imdea-software/fcsl-pcm.git&quot; license: &quot;Apache-2.0&quot; build: [ make &quot;-j%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {(&gt;= &quot;8.9&quot; &amp; &lt; &quot;8.12~&quot;) | (= &quot;dev&quot;)} &quot;<API key>&quot; {(&gt;= &quot;1.10.0&quot; &amp; &lt; &quot;1.11~&quot;) | (= &quot;dev&quot;)} ] tags: [ &quot;keyword:separation logic&quot; &quot;keyword:partial commutative monoid&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:fcsl&quot; &quot;date:2019-01-06&quot; ] authors: [ &quot;Aleksandar Nanevski&quot; ] synopsis: &quot;Partial Commutative Monoids&quot; description: &quot;&quot;&quot; The PCM library provides a formalisation of Partial Commutative Monoids (PCMs), a common algebraic structure used in separation logic for verification of <API key> sequential and concurrent programs. The library provides lemmas for mechanised and automated reasoning about PCMs in the abstract, but also supports concrete common PCM instances, such as heaps, histories and mutexes. This library relies on extensionality axioms: propositional and functional extentionality.&quot;&quot;&quot; url { src: &quot;https://github.com/imdea-software/fcsl-pcm/archive/v1.1.1.tar.gz&quot; checksum: &quot;sha256=<SHA256-like>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-fcsl-pcm.1.1.1 coq.8.5.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2). The following dependencies couldn&#39;t be met: - coq-fcsl-pcm -&gt; coq &gt;= dev -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fcsl-pcm.1.1.1</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
exports.find = function(options) { options || (options = {}); options.param || (options.param = 'query'); options.parse || (options.parse = JSON.parse); return function(req, res, next) { var query = req.query[options.param]; var conditions = query ? options.parse(query) : {}; req.find = req.model.find(conditions); next(); }; }; exports.limit = function(options) { options || (options = {}); options.param || (options.param = 'limit'); return function(req, res, next) { if (req.query[options.param] !== undefined) { var limit = parseInt(req.query[options.param], 10); if (options.max) { limit = Math.min(limit, options.max); } req.find = req.find.limit(limit); } next(); }; }; exports.skip = function(options) { options || (options = {}); options.param || (options.param = 'skip'); return function(req, res, next) { if (req.query[options.param] !== undefined) { var skip = parseInt(req.query[options.param], 10); req.find = req.find.skip(skip); } next(); }; }; exports.select = function(options) { options || (options = {}); options.param || (options.param = 'select'); options.delimiter || (options.delimiter = ','); return function(req, res, next) { if (req.query[options.param] !== undefined) { var select = req.query[options.param].split(options.delimiter).join(' '); req.find = req.find.select(select); } next(); }; }; exports.sort = function(options) { options || (options = {}); options.param || (options.param = 'sort'); options.delimiter || (options.delimiter = ','); return function(req, res, next) { if (req.query[options.param] !== undefined) { var sort = req.query[options.param].split(options.delimiter).join(' '); req.find = req.find.sort(sort); } next(); }; }; exports.exec = function() { return function(req, res, next) { req.find.exec(function(err, results) { if (err) return next(err); req.results = results; next(); }); }; }; exports.count = function(options) { options || (options = {}); options.param || (options.param = 'query'); options.parse || (options.parse = JSON.parse); return function(req, res, next) { var query = req.query[options.param]; var conditions = query ? options.parse(query) : {}; req.model.count(conditions, function(err, count) { if (err) return next(err); req.count = count; next(); }); }; };
// of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // copies or substantial portions of the Software. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // 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. #pragma once #include <stdexcept> #include <optional> namespace cmap { /* The underlying model for the binary tree */ namespace _model { /* A map is built like a binary tree as illustrated below. f1(k) / \ / \ f2(k) f3(k) / \ / \ f4(k) f5(k) Each subtree f1,f2,f3,f4,f5 is a function which evaluates a key and returns an `std::optional` with a value if the key matches a key in that subtree, or `std::nullopt` if there was no match in that subtree. To construct the tree we utilize two factory functions * One called `make_terminal(k,v)` which creates a function that evaluates a key and returns a std::optional. * One called `make_branch(left,right)` which creates a branch node, a function that first evaluates the left subtree, if there is a match the left subtree is returned. If unsuccessful it returns the right subtree. Example: Construct the tree above const auto f5 = make_terminal(5,15); const auto f4 = make_terminal(4,14); const auto f2 = make_terminal(3,13); const auto f3 = make_branch(f4, f5); const auto f1 = make_branch(f2, f3); // Performing a lookup for the value `5` would // produce the stacktrace f1(5) f2(5) -> {false, 13} f3(5) f4(5) -> {false, 14} f5(5) -> {true, 15} -> {true, 15} In order to easily chain together multiple subtrees there is a utility function called `merge(node1, ...)` which takes all the terminal nodes as arguments and automatically creates the branches. To reproduce the previous example using the merge function one could do the following. Example: Construct the same tree using the `merge` function const auto f5 = make_terminal(5,15); const auto f4 = make_terminal(4,14); const auto f2 = make_terminal(3,13); const auto f1 = merge(f2,f4,f5); Since the whole model is completely independent of the datatype stored there is literally no limit to what you can store in the map, as long as it is copy constructible. That means that you can nest maps and store complex types. */ template<typename K, typename V> constexpr auto make_terminal(const K key, const V value) { return [key,value](const auto _key) { return key == _key ? std::make_optional(value) : std::nullopt; }; }; constexpr auto make_branch(const auto left, const auto right) { return [left,right](auto key) -> decltype(left(key)) { const auto result = left(key); if(result != std::nullopt) { return result; } return right(key); }; } constexpr auto merge(const auto node) { return node; } constexpr auto merge(const auto left, const auto ... rest) { return make_branch(left, merge(rest...)); } } /* Functional interface Example: constexpr auto map = make_map(map(13,43), map(14,44)); constexpr auto fourty_three = lookup(map, 13); constexpr auto fourty_four = lookup(map, 14); */ constexpr auto make_map(const auto ... rest) { return _model::merge(rest...); } constexpr auto map(const auto key, const auto value) { return _model::make_terminal(key, value); } constexpr auto lookup(const auto tree, const auto key) { const auto result = tree(key); return result != std::nullopt ? result.value() : throw std::out_of_range("No such key"); } /* Class interface Example: constexpr auto map = make_lookup(map(13,43), map(14,44)); constexpr auto fourty_three = map[13]; constexpr auto fourty_four = map[14]; */ template<typename TLookup> struct lookup_type { constexpr lookup_type(const TLookup m) : map{m} {} constexpr auto operator[](const auto key) const { return lookup(map, key); } const TLookup map; }; constexpr auto make_lookup(lookup_type<auto> ... rest) { return lookup_type{make_map(rest.map...)}; } constexpr auto make_lookup(const auto ... rest) { return lookup_type{make_map(rest...)}; } } // namespace cmap
.typeahead-container { width: 240px; position: relative; margin-top: 10px; margin-left: 10px; } .typeahead-container.show .dropdown-menu { display: block; } .dropdown-menu { display: none; }
Simple implementation of Pi calculation Calculates Pi by the infinite series: 4 * Pi = 1 - 1/3 + 1/5 - 1/7 + ... For simplicity of implementation, I have converted this to the equivalent formulation: Pi = 4 - 4/3 + 4/5 - 4/7 + ... The code algorithm is implemented in iterative style. While it is possible to implement this algorithm in a recursove style, since Java 8 compiler does not implement tail-call recursion optimisation, the code hits a Stack Overflow exception for n = 100 on my machine. By comparison, the Scala compiler does perform this optimisation, and a tail recursive solution would have the same performance characteristics as the iterative java version. Build using Maven: mvn package Usage: java -jar ./target/pi-1.0-SNAPSHOT.jar n where n = number or elements to use to approximate Pi.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqoban: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / extra-dev</a></li> <li class="active"><a href="">8.11.dev / coqoban - dev</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> coqoban <small> dev <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2020-07-16 03:01:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-16 03:01:33 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.11.dev Formal proof management system num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;dev@clarus.me&quot; homepage: &quot;https://github.com/coq-contribs/coqoban&quot; license: &quot;LGPL 2&quot; build: [ [&quot;coq_makefile&quot; &quot;-f&quot; &quot;Make&quot; &quot;-o&quot; &quot;Makefile&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/Coqoban&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {= &quot;dev&quot;} ] tags: [ &quot;keyword:sokoban&quot; &quot;keyword:puzzles&quot; &quot;category:Miscellaneous/Logical Puzzles and Entertainment&quot; &quot;date:2003-09-19&quot; ] authors: [ &quot;Jasper Stein &lt;&gt;&quot; ] synopsis: &quot;Coqoban (Sokoban).&quot; description: &quot;&quot;&quot; A Coq implementation of Sokoban, the Japanese warehouse keepers&#39; game&quot;&quot;&quot; flags: light-uninstall url { src: &quot;git+https://github.com/coq-contribs/coqoban.git#master&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-coqoban.dev coq.8.11.dev</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.11.dev). The following dependencies couldn&#39;t be met: - coq-coqoban -&gt; coq &gt;= dev Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-coqoban.dev</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
package fi.helsinki.cs.okkopa.main.stage; import fi.helsinki.cs.okkopa.mail.read.EmailRead; import fi.helsinki.cs.okkopa.main.ExceptionLogger; import java.io.IOException; import java.io.InputStream; import java.util.List; import javax.mail.Message; import javax.mail.MessagingException; import org.apache.commons.io.IOUtils; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * Retrieves new emails and processes the attachments one by one by calling the next stage repeatedly. */ @Component public class GetEmailStage extends Stage<Object, InputStream> { private static final Logger LOGGER = Logger.getLogger(GetEmailStage.class.getName()); private EmailRead emailReader; private ExceptionLogger exceptionLogger; /** * * @param server * @param exceptionLogger */ @Autowired public GetEmailStage(EmailRead server, ExceptionLogger exceptionLogger) { this.exceptionLogger = exceptionLogger; this.emailReader = server; } @Override public void process(Object in) { try { emailReader.connect(); LOGGER.debug("Kirjauduttu sisään."); <API key>(); LOGGER.debug("Ei lisää viestejä."); } catch (MessagingException | IOException ex) { exceptionLogger.logException(ex); } finally { emailReader.closeQuietly(); } } private void processAttachments(Message nextMessage) throws MessagingException, IOException { List<InputStream> messagesAttachments = emailReader.<API key>(nextMessage); for (InputStream attachment : messagesAttachments) { LOGGER.debug("Käsitellään liitettä."); processNextStages(attachment); IOUtils.closeQuietly(attachment); } } private void <API key>() throws MessagingException, IOException { Message nextMessage = emailReader.getNextMessage(); while (nextMessage != null) { LOGGER.debug("Sähköposti haettu."); processAttachments(nextMessage); emailReader.cleanUpMessage(nextMessage); nextMessage = emailReader.getNextMessage(); } } }
<!DOCTYPE html> <html xmlns:msxsl="urn:<API key>:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="<API key>">.NET Portability Report</title> <style> /* Body style, for the entire document */ body { background: #F3F3F4; color: #1E1E1F; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; padding: 0; margin: 0; } /* Header1 style, used for the main title */ h1 { padding: 10px 0px 10px 10px; font-size: 21pt; background-color: #E2E2E2; border-bottom: 1px #C1C1C2 solid; color: #201F20; margin: 0; font-weight: normal; } /* Header2 style, used for "Overview" and other sections */ h2 { font-size: 18pt; font-weight: normal; padding: 15px 0 5px 0; margin: 0; } /* Header3 style, used for sub-sections, such as project name */ h3 { font-weight: normal; font-size: 15pt; margin: 0; padding: 15px 0 5px 0; background-color: transparent; } h4 { font-weight: normal; font-size: 12pt; margin: 0; padding: 0 0 0 0; background-color: transparent; } /* Color all hyperlinks one color */ a { color: #1382CE; } /* Paragraph text (for longer informational messages) */ p { font-size: 10pt; } /* Table styles */ table { border-spacing: 0 0; border-collapse: collapse; font-size: 10pt; } table th { background: #E7E7E8; text-align: left; text-decoration: none; font-weight: normal; padding: 3px 6px 3px 6px; } table td { vertical-align: top; padding: 3px 6px 5px 5px; margin: 0px; border: 1px solid #E7E7E8; background: #F7F7F8; } .NoBreakingChanges { color: darkgreen; font-weight:bold; } .FewBreakingChanges { color: orange; font-weight:bold; } .ManyBreakingChanges { color: red; font-weight:bold; } .BreakDetails { margin-left: 30px; } .CompatMessage { font-style: italic; font-size: 10pt; } .GoodMessage { color: darkgreen; } /* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */ .localLink { color: #1E1E1F; background: #EEEEED; text-decoration: none; } .localLink:hover { color: #1382CE; background: #FFFF99; text-decoration: none; } /* Center text, used in the over views cells that contain message level counts */ .textCentered { text-align: center; } /* The message cells in message tables should take up all avaliable space */ .messageCell { width: 100%; } /* Padding around the content after the h1 */ #content { padding: 0px 12px 12px 12px; } /* The overview table expands to width, with a max width of 97% */ #overview table { width: auto; max-width: 75%; } /* The messages tables are always 97% width */ #messages table { width: 97%; } /* All Icons */ .IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded { min-width: 18px; min-height: 18px; background-repeat: no-repeat; background-position: center; } /* Success icon encoded */ .IconSuccessEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ background-image: url(data:image/png;base64,<API key>/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+<API key>/H5+sHpZwYfxyRjTs+<API key>/13u3Fjrs/EdhsdDFHGB/<API key>+m3tVe/t97D52CB/ziG0nIgD/<API key>/<API key>/<API key>+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==); } /* Information icon encoded */ .IconInfoEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ background-image: url(data:image/png;base64,<API key>/<API key>+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/<API key>/HF1RsMXq+<API key>/<API key>+<API key>/<API key>=); } /* Warning icon encoded */ .IconWarningEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ background-image: url(data:image/png;base64,<API key>/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/<API key>+wVDSyyzFoJjfz9NB+pAF+<API key>/<API key>/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/<API key>==); } /* Error icon encoded */ .IconErrorEncoded { /* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */ background-image: url(data:image/png;base64,<API key>/<API key>/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+<API key>/<API key>/<API key>=); } </style> </head> <body> <h1 _locid="PortabilityReport">.NET Portability Report</h1> <div id="content"> <div id="submissionId" style="font-size:8pt;"> <p> <i> Submission Id&nbsp; <API key> </i> </p> </div> <h2 _locid="SummaryTitle"> <a name="Portability Summary"></a>Portability Summary </h2> <div id="summary"> <table> <tbody> <tr> <th>Assembly</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> </tr> <tr> <td><strong><a href="#System.Net.Http">System.Net.Http</a></strong></td> <td class="text-center">88.25 %</td> <td class="text-center">81.33 %</td> <td class="text-center">100.00 %</td> <td class="text-center">81.33 %</td> </tr> </tbody> </table> </div> <div id="details"> <a name="System.Net.Http"><h3>System.Net.Http</h3></a> <table> <tbody> <tr> <th>Target type</th> <th>ASP.NET 5,Version=v1.0</th> <th>Windows,Version=v8.1</th> <th>.NET Framework,Version=v4.6</th> <th>Windows Phone,Version=v8.1</th> <th>Recommended changes</th> </tr> <tr> <td>System.AppDomain</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use object with finalizer stored in static variable, or use app-model specific unload notifications (e.g. Application.Suspending event for modern apps)</td> </tr> <tr> <td style="padding-left:2em">add_DomainUnload(System.EventHandler)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use object with finalizer stored in static variable, or use app-model specific unload notifications (e.g. Application.Suspending event for modern apps)</td> </tr> <tr> <td style="padding-left:2em">add_ProcessExit(System.EventHandler)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use object with finalizer stored in static variable, or use app-model specific unload notifications (e.g. Application.Suspending event for modern apps)</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.<API key>)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">get_CurrentDomain</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Hashtable</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEnumerator</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Remove(System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Item(System.Object,System.Object)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.<API key></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Count</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.NameValueCollection</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Add(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetKey(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetValues(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Collections.Specialized.StringDictionary</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ContainsKey(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Item(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Item(System.String,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.SourceSwitch</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ShouldTrace(System.Diagnostics.TraceEventType)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.TraceEventType</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Diagnostics.TraceSource</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Attributes</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Switch</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">TraceEvent(System.Diagnostics.TraceEventType,System.Int32,System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Exception</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.EventHandler{System.Runtime.Serialization.<API key>})</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ICloneable</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement cloning operation yourself if needed.</td> </tr> <tr> <td style="padding-left:2em">Clone</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement cloning operation yourself if needed.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.MemoryStream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that supplies a buffer and maintain that buffer outside of memory stream. If you need the internal buffer, create a copy via .ToArray();</td> </tr> <tr> <td style="padding-left:2em">GetBuffer</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that supplies a buffer and maintain that buffer outside of memory stream. If you need the internal buffer, create a copy via .ToArray();</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.IO.Stream</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.WriteAsync</td> </tr> <tr> <td style="padding-left:2em">BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td style="padding-left:2em">BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.WriteAsync</td> </tr> <tr> <td style="padding-left:2em">Close</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Dispose instead</td> </tr> <tr> <td style="padding-left:2em">EndRead(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.ReadAsync</td> </tr> <tr> <td style="padding-left:2em">EndWrite(System.IAsyncResult)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use Stream.WriteAsync</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.HttpVersion</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Version10</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Version11</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.HttpWebRequest</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.<API key>(System.Net.<API key>)</td> </tr> <tr> <td style="padding-left:2em">AddRange(System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">AddRange(System.Int64,System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">EndGetRequestStream(System.IAsyncResult,System.Net.TransportContext@)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ServicePoint</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported - connections and connection groups are managed internally by the HTTP stack</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.AllowAutoRedirect</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.Net.<API key>)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.<API key>(System.Net.<API key>)</td> </tr> <tr> <td style="padding-left:2em">set_Connection(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpResponseMessage.Headers.Connection.Add(System.String)</td> </tr> <tr> <td style="padding-left:2em">set_Date(System.DateTime)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_Expect(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http. HttpClient.<API key>.Expect (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.Expect (applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_Host(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_IfModifiedSince(System.DateTime)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient.<API key>.IfModifiedSince (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.IfModifiedSince (applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_KeepAlive(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpResponseMessage.Headers.Connection.Add(&quot;Keep-Alive&quot;)</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClientHandler.<API key></td> </tr> <tr> <td style="padding-left:2em">set_ProtocolVersion(System.Version)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpRequestMessage.Version</td> </tr> <tr> <td style="padding-left:2em">set_Referer(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpRequestMessage.Headers.Referrer</td> </tr> <tr> <td style="padding-left:2em">set_SendChunked(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Add &quot;chunked&quot; to System.Net.Http.HttpClient.<API key>.TransferEncoding (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.TransferEncoding(applies to specific request)</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http. HttpClient.<API key>.TransferEncoding (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.TransferEncoding(applies to specific request)</td> </tr> <tr> <td style="padding-left:2em">set_UserAgent(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient.<API key>.UserAgent (applies to all requests made by that client) or System.Net.Http.HttpRequestMessage.Headers.UserAgent (applies to specific request)</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.HttpWebResponse</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ProtocolVersion</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.IPAddress</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.IPEndPoint</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.Mail.MailAddress</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.NetworkAccess</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.ServicePoint</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient, System.Net.Http.HttpClientHandler and System.Net.Http.WinHttpHandler types instead</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient, System.Net.Http.HttpClientHandler and System.Net.Http.WinHttpHandler types instead</td> </tr> <tr> <td style="padding-left:2em"><API key>(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported. Expect: 100-Continue is turned off always.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.ServicePointManager</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.HttpClient or WinHttpHandler instead.</td> </tr> <tr> <td style="padding-left:2em">FindServicePoint(System.Uri)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.WebPermission</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Net.NetworkAccess,System.Text.RegularExpressions.Regex)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Net.WebRequest</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">CreateDefault(System.Uri)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em"><API key>(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Not supported - connections and connection groups are managed internally by the HTTP stack</td> </tr> <tr> <td style="padding-left:2em">set_ContentLength(System.Int64)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpContent.Headers.ContentLength</td> </tr> <tr> <td style="padding-left:2em">set_PreAuthenticate(System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.WinHttpHandler.PreAuthenticate</td> </tr> <tr> <td style="padding-left:2em">set_Timeout(System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Net.Http.HttpClient.Timeout. More granular timeouts available: Use System.Net.Http.WinHttpHandler.ConnectTimeout, .ReceiveTimeout, .SendTimeout</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage: As CAS is not supported in newer frameworks, this property no longer has meaning</td> </tr> <tr> <td style="padding-left:2em">get_IsFullyTrusted</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage: As CAS is not supported in newer frameworks, this property no longer has meaning</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td style="padding-left:2em">AddSerializedState(System.Runtime.Serialization.<API key>)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">Demand</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Permissions.SecurityAction</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Permissions.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em"> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Principal.WindowsIdentity</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetCurrent</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Impersonate</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Security.Principal.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove this attribute</td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove this attribute</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Do not use: Exception cannot be caught since <API key> is not supported, never throw this type.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.DecoderFallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em"><API key></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.EncoderFallback</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em"><API key></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Text.Encoding</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_UTF32</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEncoding(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetEncoding(System.String,System.Text.EncoderFallback,System.Text.DecoderFallback)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetString(System.Byte[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Call Encoding.GetString(byte[], int, int)</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.ExecutionContext</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsFlowSuppressed</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.Thread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Threading.ThreadStart)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_CurrentThread</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_ManagedThreadId</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">set_IsBackground(System.Boolean)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Sleep(System.Int32)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">Start</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Do not use: exception cannot be caught since it is not thrown by framework, never throw this type. Thread.Abort is only reliable in SQL Server. Elsewhere, don&#39;t use it.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.ThreadStart</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.WaitHandle</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WaitAny(System.Threading.WaitHandle[],System.Int32,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">WaitOne(System.Int32,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Type</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().Assembly</td> </tr> <tr> <td style="padding-left:2em">get_Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().Assembly</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td style="padding-left:2em">get_ExceptionObject</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.<API key></td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Avoid usage of the UnhandledException Event, handle exceptions directly at scope of method being called</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Uri</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">HexEscape(System.Char)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">HexUnescape(System.String,System.Int32@)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsHexEncoding(System.String,System.Int32)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> </table> <p> <a href="#Portability Summary">Back to Summary</a> </p> </div> </div> </body> </html>
import codecs unicode_string = "Hello Python 3 String" bytes_object = b"Hello Python 3 Bytes" print(unicode_string, type(unicode_string)) print(bytes_object, type(bytes_object)) #decode to unicode_string ux = str(object=bytes_object, encoding="utf-8", errors="strict") print(ux, type(ux)) ux = bytes_object.decode(encoding="utf-8", errors="strict") print(ux, type(ux)) hex_bytes = codecs.encode(b"Binary Object", "hex_codec") def string_to_bytes( text ): return bin(int.from_bytes(text.encode(), 'big')) def bytes_to_string( btext ): #btext = int('<API key>', 2) return btext.to_bytes((btext.bit_length() + 7) // 8, 'big').decode() def char_to_bytes(char): return bin(ord(char)) def encodes(text): bext = text.encode(encoding="utf-8") enc_bext = codecs.encode(bext, "hex_codec") return enc_bext.decode("utf-8") def decodes(): pass if __name__ == "__main__": print( encodes("walla") )
package simple.practice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import simple.practice.service.GreetingService; @Component public class Greeting { @Autowired private GreetingService greetingService; public String printGreeting(String name){ String msg = greetingService.greetingMessage() + " User: " + name; System.out.println(msg); return msg; } }
# Source Generated with Decompyle++ # File: session_recording.pyc (Python 2.5) from __future__ import absolute_import from pushbase.<API key> import <API key> class <API key>(<API key>): def __init__(self, *a, **k): super(<API key>, self).__init__(*a, **a) self.<API key>(not (self._record_button.is_pressed)) def <API key>(self, trigger_recording): self.<API key> = trigger_recording def <API key>(self): pass def <API key>(self): if self.<API key>: self._trigger_recording() self.<API key> = True
# Generated by Django 2.1 on 2018-08-26 00:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('<API key>', '0001_initial'), ] operations = [ migrations.AlterField( model_name='book', name='cover', field=models.ImageField(blank=True, null=True, upload_to='<API key>.BookCover/bytes/filename/mimetype'), ), migrations.AlterField( model_name='book', name='index', field=models.FileField(blank=True, null=True, upload_to='<API key>.BookIndex/bytes/filename/mimetype'), ), migrations.AlterField( model_name='book', name='pages', field=models.FileField(blank=True, null=True, upload_to='<API key>.BookPages/bytes/filename/mimetype'), ), migrations.AlterField( model_name='sounddevice', name='instruction_manual', field=models.FileField(blank=True, null=True, upload_to='<API key>.<API key>/bytes/filename/mimetype'), ), ]
\begin{figure}[H] \centering \includegraphics[width=6in]{figs/run_29/<API key>} \caption{Scatter plot of turbulent kinetic energy vs radius at $z/c$=7.75, $V_{free}$=31.26, station3} \label{fig:<API key>} \end{figure}
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.FileProviders; using System.IO; namespace SpaClient { public class Startup { // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(); if (env.IsDevelopment()) { app.<API key>(); } app.UseDefaultFiles(); app.UseStaticFiles(); //Copy appsettings.env to the wwwroot directory var settingsPath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"); string sourceFile = Path.Combine(Directory.GetCurrentDirectory(), $"appsettings.{env.EnvironmentName}.json"); string destFile = Path.Combine(settingsPath, "appsettings.json"); File.Copy(sourceFile, destFile, true); app.Run(async (context) => { await context.Response.WriteAsync("Hello World!"); }); } } }
require 'active_service/model/attributes/nested_attributes' require 'active_service/model/attributes/attribute_map' require 'active_service/model/attributes/serializer' module ActiveService module Model # This module handles attribute methods not provided by ActiveAttr module Attributes extend ActiveSupport::Concern include ActiveService::Model::Attributes::NestedAttributes # Initialize a new object with data # @param [Hash] attributes The attributes to initialize the object with # @option attributes [Boolean] :_destroyed # @example # class User < ActiveService::Base # attribute :name # end # User.new(name: "Tobias") # # => #<User name="Tobias"> # User.new do |u| # u.name = "Tobias" # end # # => #<User name="Tobias"> def initialize(attributes={}) attributes ||= {} @destroyed = attributes.delete(:_destroyed) || false @owner_path = attributes.delete(:_owner_path) attributes = self.class.default_scope.apply_to(attributes) assign_attributes(attributes) && apply_defaults yield self if block_given? end # Handles missing methods # @private def method_missing(method, *args, &blk) name = method.to_s.chop if method.to_s =~ /[?=]$/ && has_association?(name) (class << self; self; end).send(:define_method, method) do |value| @attributes[:"#{name}"] = value end send method, *args, &blk else super end end # @private def respond_to_missing?(method, include_private = false) method.to_s =~ /[?=]$/ && has_association?(method.to_s.chop) || super end # Assign new attributes to a resource # @example # class User < ActiveService::Model # end # user = User.find(1) # => #<User id=1 name="Tobias"> # user.assign_attributes(name: "Lindsay") # user.changes # => { :name => ["Tobias", "Lindsay"] } def assign_attributes(new_attributes) @attributes ||= attributes # Use setter methods first unset_attributes = self.class.use_setter_methods(self, new_attributes) # Then translate attributes of associations into association instances associations = self.class.parse_associations(unset_attributes) # Then merge the associations into @attributes @attributes.merge!(associations) end alias attributes= assign_attributes def attributes @attributes ||= <API key>.new end # Returns true if attribute is defined # @private def has_attribute?(attribute_name) self.class.attribute_names.include?(attribute_name.to_s) end # @private def <API key>?(attributes_name) return false unless attributes_name.to_s.match(/_attributes/) associations = self.class.associations.values.flatten.map { |a| a[:name] } associations.include?(attributes_name.to_s.gsub("_attributes", "").to_sym) end # Handles returning data for a specific attribute # @private def get_attribute(attribute_name) @attributes[attribute_name] end # Returns complete list of attributes and included associations # @private def <API key> Serializer.new(self).serialize end # Return the value of the model `primary_key` attribute # def id # @attributes[self.class.primary_key] # end # Return `true` if other object is an ActiveService::Base and has matching data # @private def ==(other) other.is_a?(ActiveService::Base) && @attributes == other.attributes end # Delegate to the == method # @private def eql?(other) self == other end # Delegate to @attributes, allowing models to act correctly in code like: # [ Model.find(1), Model.find(1) ].uniq # => [ Model.find(1) ] # @private def hash @attributes.hash end module ClassMethods # Initialize a single resource # @private def instantiate_record(klass, record) if record.kind_of?(klass) record else klass.new(klass.parse(record)) do |resource| resource.send :<API key> end end end # Initialize a collection of resources # @private def <API key>(klass, data = {}) collection_parser.new(klass.extract_array(data)).collect! do |record| instantiate_record(klass, record) end end # Initialize a collection of resources with raw data from an HTTP request # @param [Array] parsed_data # @private def new_collection(parsed_data) <API key>(self, parsed_data) end # Initialize a new object with the "raw" parsed_data from the parsing middleware # @private def <API key>(parsed_data) instantiate_record(self, parsed_data) end # Use setter methods of model for each key / value pair in params # Return key / value pairs for which no setter method was defined on the model # @note Activeservice won't create attributes automatically # @private def use_setter_methods(model, params) params ||= {} params.inject({}) do |memo, (key, value)| writer = "#{key}=" if model.respond_to?(writer) && (model.has_attribute?(key) || model.<API key>?(key)) model.send writer, value else key = key.to_sym if key.is_a? String memo[key] = value end memo end end # Returns a mapping of attributes to fields # ActiveService can map fields from a response to attributes defined on a # model. <tt>attribute_map</tt> translates source fields to their model # attributes and vice-versa during HTTP requests. def attribute_map @attribute_map ||= ActiveService::Model::Attributes::AttributeMap.new(attributes.values) end end end end end
require 'corelib/numeric' require 'corelib/rational/base' class ::Rational < ::Numeric def self.reduce(num, den) num = num.to_i den = den.to_i if den == 0 ::Kernel.raise ::ZeroDivisionError, 'divided by 0' elsif den < 0 num = -num den = -den elsif den == 1 return new(num, den) end gcd = num.gcd(den) new(num / gcd, den / gcd) end def self.convert(num, den) if num.nil? || den.nil? ::Kernel.raise ::TypeError, 'cannot convert nil into Rational' end if ::Integer === num && ::Integer === den return reduce(num, den) end if ::Float === num || ::String === num || ::Complex === num num = num.to_r end if ::Float === den || ::String === den || ::Complex === den den = den.to_r end if den.equal?(1) && !(::Integer === num) ::Opal.coerce_to!(num, ::Rational, :to_r) elsif ::Numeric === num && ::Numeric === den num / den else reduce(num, den) end end def initialize(num, den) @num = num @den = den end def numerator @num end def denominator @den end def coerce(other) case other when ::Rational [other, self] when ::Integer [other.to_r, self] when ::Float [other, to_f] end end def ==(other) case other when ::Rational @num == other.numerator && @den == other.denominator when ::Integer @num == other && @den == 1 when ::Float to_f == other else other == self end end def <=>(other) case other when ::Rational @num * other.denominator - @den * other.numerator <=> 0 when ::Integer @num - @den * other <=> 0 when ::Float to_f <=> other else __coerced__ :<=>, other end end def +(other) case other when ::Rational num = @num * other.denominator + @den * other.numerator den = @den * other.denominator ::Kernel.Rational(num, den) when ::Integer ::Kernel.Rational(@num + other * @den, @den) when ::Float to_f + other else __coerced__ :+, other end end def -(other) case other when ::Rational num = @num * other.denominator - @den * other.numerator den = @den * other.denominator ::Kernel.Rational(num, den) when ::Integer ::Kernel.Rational(@num - other * @den, @den) when ::Float to_f - other else __coerced__ :-, other end end def *(other) case other when ::Rational num = @num * other.numerator den = @den * other.denominator ::Kernel.Rational(num, den) when ::Integer ::Kernel.Rational(@num * other, @den) when ::Float to_f * other else __coerced__ :*, other end end def /(other) case other when ::Rational num = @num * other.denominator den = @den * other.numerator ::Kernel.Rational(num, den) when ::Integer if other == 0 to_f / 0.0 else ::Kernel.Rational(@num, @den * other) end when ::Float to_f / other else __coerced__ :/, other end end def **(other) case other when ::Integer if self == 0 && other < 0 ::Float::INFINITY elsif other > 0 ::Kernel.Rational(@num**other, @den**other) elsif other < 0 ::Kernel.Rational(@den**-other, @num**-other) else ::Kernel.Rational(1, 1) end when ::Float to_f**other when ::Rational if other == 0 ::Kernel.Rational(1, 1) elsif other.denominator == 1 if other < 0 ::Kernel.Rational(@den**other.numerator.abs, @num**other.numerator.abs) else ::Kernel.Rational(@num**other.numerator, @den**other.numerator) end elsif self == 0 && other < 0 ::Kernel.raise ::ZeroDivisionError, 'divided by 0' else to_f**other end else __coerced__ :**, other end end def abs ::Kernel.Rational(@num.abs, @den.abs) end def ceil(precision = 0) if precision == 0 (-(-@num / @den)).ceil else with_precision(:ceil, precision) end end def floor(precision = 0) if precision == 0 (-(-@num / @den)).floor else with_precision(:floor, precision) end end def hash "Rational:#{@num}:#{@den}" end def inspect "(#{self})" end def rationalize(eps = undefined) %x{ if (arguments.length > 1) { #{::Kernel.raise ::ArgumentError, "wrong number of arguments (#{`arguments.length`} for 0..1)"}; } if (eps == null) { return self; } var e = #{eps.abs}, a = #{self - `e`}, b = #{self + `e`}; var p0 = 0, p1 = 1, q0 = 1, q1 = 0, p2, q2; var c, k, t; while (true) { c = #{`a`.ceil}; if (#{`c` <= `b`}) { break; } k = c - 1; p2 = k * p1 + p0; q2 = k * q1 + q0; t = #{1 / (`b` - `k`)}; b = #{1 / (`a` - `k`)}; a = t; p0 = p1; q0 = q1; p1 = p2; q1 = q2; } return #{::Kernel.Rational(`c * p1 + p0`, `c * q1 + q0`)}; } end def round(precision = 0) return with_precision(:round, precision) unless precision == 0 return 0 if @num == 0 return @num if @den == 1 num = @num.abs * 2 + @den den = @den * 2 approx = (num / den).truncate if @num < 0 -approx else approx end end def to_f @num / @den end def to_i truncate end def to_r self end def to_s "#{@num}/#{@den}" end def truncate(precision = 0) if precision == 0 @num < 0 ? ceil : floor else with_precision(:truncate, precision) end end def with_precision(method, precision) ::Kernel.raise ::TypeError, 'not an Integer' unless ::Integer === precision p = 10**precision s = self * p if precision < 1 (s.send(method) / p).to_i else ::Kernel.Rational(s.send(method), p) end end def self.from_string(string) %x{ var str = string.trimLeft(), re = /^[+-]?[\d_]+(\.[\d_]+)?/, match = str.match(re), numerator, denominator; function isFloat() { return re.test(str); } function cutFloat() { var match = str.match(re); var number = match[0]; str = str.slice(number.length); return number.replace(/_/g, ''); } if (isFloat()) { numerator = parseFloat(cutFloat()); if (str[0] === '/') { // rational real part str = str.slice(1); if (isFloat()) { denominator = parseFloat(cutFloat()); return #{::Kernel.Rational(`numerator`, `denominator`)}; } else { return #{::Kernel.Rational(`numerator`, 1)}; } } else { return #{::Kernel.Rational(`numerator`, 1)}; } } else { return #{::Kernel.Rational(0, 1)}; } } end alias divide / alias quo / end
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; using Anarian.Interfaces; using Anarian.Events; namespace Anarian.DataStructures.Input { public class Controller : IUpdatable { PlayerIndex m_playerIndex; GamePadType m_gamePadType; GamePadCapabilities <API key>; GamePadState m_gamePadState; GamePadState m_prevGamePadState; bool m_isConnected; public PlayerIndex PlayerIndex { get { return m_playerIndex; } } public GamePadType GamePadType { get { return m_gamePadType; } } public GamePadCapabilities GamePadCapabilities { get { return <API key>; } } public GamePadState GamePadState { get { return m_gamePadState; } } public GamePadState PrevGamePadState { get { return m_prevGamePadState; } } public bool IsConnected { get { return m_isConnected; } } public Controller(PlayerIndex playerIndex) { m_playerIndex = playerIndex; Reset(); } public void Reset() { <API key> = GamePad.GetCapabilities(m_playerIndex); m_gamePadType = <API key>.GamePadType; m_gamePadState = GamePad.GetState(m_playerIndex); m_prevGamePadState = m_gamePadState; m_isConnected = m_gamePadState.IsConnected; } #region Interface Implimentations void IUpdatable.Update(GameTime gameTime) { Update(gameTime); } #endregion public void Update(GameTime gameTime) { //if (!m_isConnected) return; // Get the States m_prevGamePadState = m_gamePadState; m_gamePadState = GamePad.GetState(m_playerIndex); // Update if it is connected or not m_isConnected = m_gamePadState.IsConnected; #region Preform Events if (GamePadDown != null) { if (IsButtonDown(Buttons.A)) { GamePadClicked(this, new <API key>(gameTime, Buttons.A, PlayerIndex)); } if (IsButtonDown(Buttons.B)) { GamePadClicked(this, new <API key>(gameTime, Buttons.B, PlayerIndex)); } if (IsButtonDown(Buttons.X)) { GamePadClicked(this, new <API key>(gameTime, Buttons.X, PlayerIndex)); } if (IsButtonDown(Buttons.Y)) { GamePadClicked(this, new <API key>(gameTime, Buttons.Y, PlayerIndex)); } if (IsButtonDown(Buttons.LeftShoulder)) { GamePadClicked(this, new <API key>(gameTime, Buttons.LeftShoulder, PlayerIndex)); } if (IsButtonDown(Buttons.RightShoulder)) { GamePadClicked(this, new <API key>(gameTime, Buttons.RightShoulder, PlayerIndex)); } if (IsButtonDown(Buttons.LeftStick)) { GamePadClicked(this, new <API key>(gameTime, Buttons.LeftStick, PlayerIndex)); } if (IsButtonDown(Buttons.RightStick)) { GamePadClicked(this, new <API key>(gameTime, Buttons.RightStick, PlayerIndex)); } if (IsButtonDown(Buttons.DPadUp)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadUp, PlayerIndex)); } if (IsButtonDown(Buttons.DPadDown)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadDown, PlayerIndex)); } if (IsButtonDown(Buttons.DPadLeft)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadLeft, PlayerIndex)); } if (IsButtonDown(Buttons.DPadRight)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadRight, PlayerIndex)); } } if (GamePadClicked != null) { if (ButtonPressed(Buttons.A)) { GamePadClicked(this, new <API key>(gameTime, Buttons.A, PlayerIndex)); } if (ButtonPressed(Buttons.B)) { GamePadClicked(this, new <API key>(gameTime, Buttons.B, PlayerIndex)); } if (ButtonPressed(Buttons.X)) { GamePadClicked(this, new <API key>(gameTime, Buttons.X, PlayerIndex)); } if (ButtonPressed(Buttons.Y)) { GamePadClicked(this, new <API key>(gameTime, Buttons.Y, PlayerIndex)); } if (ButtonPressed(Buttons.LeftShoulder)) { GamePadClicked(this, new <API key>(gameTime, Buttons.LeftShoulder, PlayerIndex)); } if (ButtonPressed(Buttons.RightShoulder)) { GamePadClicked(this, new <API key>(gameTime, Buttons.RightShoulder, PlayerIndex)); } if (ButtonPressed(Buttons.LeftStick)) { GamePadClicked(this, new <API key>(gameTime, Buttons.LeftStick, PlayerIndex)); } if (ButtonPressed(Buttons.RightStick)) { GamePadClicked(this, new <API key>(gameTime, Buttons.RightStick, PlayerIndex)); } if (ButtonPressed(Buttons.DPadUp)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadUp, PlayerIndex)); } if (ButtonPressed(Buttons.DPadDown)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadDown, PlayerIndex)); } if (ButtonPressed(Buttons.DPadLeft)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadLeft, PlayerIndex)); } if (ButtonPressed(Buttons.DPadRight)) { GamePadClicked(this, new <API key>(gameTime, Buttons.DPadRight, PlayerIndex)); } } if (GamePadMoved != null) { if (<API key>()) { GamePadMoved(this, new <API key>( gameTime, Buttons.LeftStick, PlayerIndex, m_gamePadState.ThumbSticks.Left, m_prevGamePadState.ThumbSticks.Left - m_gamePadState.ThumbSticks.Left) ); } if (<API key>()) { GamePadMoved(this, new <API key>( gameTime, Buttons.RightStick, PlayerIndex, m_gamePadState.ThumbSticks.Right, m_prevGamePadState.ThumbSticks.Right - m_gamePadState.ThumbSticks.Right) ); } if (HasLeftTriggerMoved()) { GamePadMoved(this, new <API key>( gameTime, Buttons.LeftTrigger, PlayerIndex, new Vector2(0.0f, m_gamePadState.Triggers.Left), new Vector2(0.0f, m_prevGamePadState.Triggers.Left) - new Vector2(0.0f, m_gamePadState.Triggers.Left)) ); } if (<API key>()) { GamePadMoved(this, new <API key>( gameTime, Buttons.RightTrigger, PlayerIndex, new Vector2(0.0f, m_gamePadState.Triggers.Right), new Vector2(0.0f, m_prevGamePadState.Triggers.Right) - new Vector2(0.0f, m_gamePadState.Triggers.Right)) ); } } #endregion } #region Helper Methods public bool ButtonPressed(Buttons button) { if (m_prevGamePadState.IsButtonDown(button) == true && m_gamePadState.IsButtonUp(button) == true) return true; return false; } public bool IsButtonDown(Buttons button) { return m_gamePadState.IsButtonDown(button); } public bool IsButtonUp(Buttons button) { return m_gamePadState.IsButtonUp(button); } public void SetVibration(float leftMotor, float rightMotor) { GamePad.SetVibration(m_playerIndex, leftMotor, rightMotor); } #region Thumbsticks public bool <API key>() { if (m_gamePadState.ThumbSticks.Left == Vector2.Zero) return false; return true; } public bool <API key>() { if (m_gamePadState.ThumbSticks.Right == Vector2.Zero) return false; return true; } #endregion #region Triggers public bool HasLeftTriggerMoved() { if (m_gamePadState.Triggers.Left == 0.0f) return false; return true; } public bool <API key>() { if (m_gamePadState.Triggers.Right == 0.0f) return false; return true; } #endregion public bool HasInputChanged(bool ignoreThumbsticks) { if ((m_gamePadState.IsConnected) && (m_gamePadState.PacketNumber != m_prevGamePadState.PacketNumber)) { //ignore thumbstick movement if ((ignoreThumbsticks == true) && ((m_gamePadState.ThumbSticks.Left.Length() != m_prevGamePadState.ThumbSticks.Left.Length()) && (m_gamePadState.ThumbSticks.Right.Length() != m_prevGamePadState.ThumbSticks.Right.Length()))) return false; return true; } return false; } #endregion #region Events public static event <API key> GamePadDown; public static event <API key> GamePadClicked; public static event <API key> GamePadMoved; #endregion } }
package api2go import ( "context" "time" ) // <API key> to allow custom context implementations type <API key> func(*API) APIContexter // APIContexter embedding context.Context and requesting two helper functions type APIContexter interface { context.Context Set(key string, value interface{}) Get(key string) (interface{}, bool) Reset() } // APIContext api2go context for handlers, nil implementations related to Deadline and Done. type APIContext struct { keys map[string]interface{} } // Set a string key value in the context func (c *APIContext) Set(key string, value interface{}) { if c.keys == nil { c.keys = make(map[string]interface{}) } c.keys[key] = value } // Get a key value from the context func (c *APIContext) Get(key string) (value interface{}, exists bool) { if c.keys != nil { value, exists = c.keys[key] } return } // Reset resets all values on Context, making it safe to reuse func (c *APIContext) Reset() { c.keys = nil } // Deadline implements net/context func (c *APIContext) Deadline() (deadline time.Time, ok bool) { return } // Done implements net/context func (c *APIContext) Done() <-chan struct{} { return nil } // Err implements net/context func (c *APIContext) Err() error { return nil } // Value implements net/context func (c *APIContext) Value(key interface{}) interface{} { if keyAsString, ok := key.(string); ok { val, _ := c.Get(keyAsString) return val } return nil } // Compile time check var _ APIContexter = &APIContext{} // ContextQueryParams fetches the QueryParams if Set func ContextQueryParams(c *APIContext) map[string][]string { qp, ok := c.Get("QueryParams") if ok == false { qp = make(map[string][]string) c.Set("QueryParams", qp) } return qp.(map[string][]string) }
body { background-color: #151515; color: #999; } a { text-decoration: none; color: #4db8ff; } #wrapper { max-width: 940px; margin: 0 auto; padding: 0 5%; } img { max-width: 100%; } h3{ margin: 0 0 1em 0; } header { font-family: 'Courgette', cursive; background: #009688; float: left; margin: 0 0 30px 0; padding: 5px 0 0 0; width: 100%; height: 80px; } #logo { text-align: center; margin: 0; } h1 { margin: 15px 0; font-size: 1.75em; font-weight: normal; line-height: 0.8em; color: #fff; } #texto_inicio { padding-top: 10em; font-family: 'Courgette', cursive; text-align: center; color: #fff; font-weight: 800; letter-spacing: 0.225em; margin: 0 0 1em 0; } #texto_inicio p{ color: #4bad92; margin: 0 0 2em 0; font-size: 100%; text-align: center; } #imagen_inicio{ } #gallery { margin: 0; padding: 0; list-style: none; } #gallery li { float: left; width: 45%; margin: 2.5%; background-color: #2E2E2E; color: #bdc3c7; } /*titulo de la galeria */ #gallery li a .titulo_trabajo { margin: 0; padding: 5%; font-size: 0.75em; color: #4bad92; } #gallery li a .parrafo_informacion{ margin: 0; padding: 5%; font-size: 0.75em; color: #E0F8EC; } #gallery li a .habilidades{ padding: 0; } #gallery li a ul .habilidad{ display:inline-block; background-color: #0F6A62; color: #fff; font-size: 0.65em; padding: 0.5em; text-transform: uppercase; width: 4em; border-radius: 40%; } #gallery li .parrafo_informacion{ margin: 0; padding: 5%; font-size: 0.75em; color: #E0F8EC; } #gallery li .titulo_trabajo { margin: 0; padding: 5%; font-size: 0.75em; color: #4bad92; } #gallery li .titulo_trabajo2 { margin: 0; padding: 5%; font-size: 1em; color: #4bad92; } #gallery li a ul .habilidad_larga{ display:inline-block; background-color: #0F6A62; color: #fff; padding: 0.5em; text-transform: uppercase; width: 6em; border-radius: 40%; font-size: 0.55em; text-align: center; } .profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; } .profile-logo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; } .contact-info a { display: block; min-height: 20px; background-repeat: no-repeat; background-size: 20px 20px; padding: 0 0 0 30px; margin: 0 0 10; } .<API key>{ padding-top: 50px; } .contact-info li.phone a { background-image: url('../img/phone.png'); } .contact-info li.mail a { background-image: url('../img/mail.png'); } .contact-info li.twitter a { background-image: url('../img/twitter.png'); } .contact-info { list-style: none; padding: 0; margin: 0; font-size: 0.9m; } nav { } nav ul { list-style: none; margin: 20px 10px; padding: 0; } nav li { display: inline-block; } nav a { font-weight: 800; padding: 15px 10px; } footer { font-size: 0.75em; text-align: center; padding-top: 50px; color: #ccc; clear: both; } .social-icon { width: 20px; height: 20px; margin: 0 5px; } .form-control { margin: 5px 0; clear: left; float: left; } form textarea { width: 20em; } nav a, nav a:visited { color: #fff; } /* links seleccionados */ nav a.selected, a:hover { color: #4bad92; } header .selected{ color: #4bad92; } float: left; width: 80%; margin: 2.5%; background-color: #2E2E2E; color: #bdc3c7; list-style:none } /*titulo de la galeria */ .titulo_trabajo { margin: 0; padding: 5%; padding-bottom: 15px; font-size: 1.2em; color: #4bad92; } .parrafo_informacion{ margin: 0; padding: 5%; font-size: 0.9em; color: #E0F8EC; } .load_images { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 0%; } .load_images2 { display: block; max-width: 90%; margin: 0 auto 30px; border-radius: 0%; }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.7.1+2 / fcsl-pcm - 1.2.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> fcsl-pcm <small> 1.2.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-02-24 14:39:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-24 14:39:15 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.1+2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;FCSL &lt;fcsl@software.imdea.org&gt;&quot; homepage: &quot;http://software.imdea.org/fcsl/&quot; bug-reports: &quot;https://github.com/imdea-software/fcsl-pcm/issues&quot; dev-repo: &quot;git+https://github.com/imdea-software/fcsl-pcm.git&quot; license: &quot;Apache-2.0&quot; build: [ make &quot;-j%{jobs}%&quot; ] install: [ make &quot;install&quot; ] depends: [ &quot;coq&quot; {(&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.13~&quot;) | (= &quot;dev&quot;)} &quot;<API key>&quot; {(&gt;= &quot;1.10.0&quot; &amp; &lt; &quot;1.12~&quot;) | (= &quot;dev&quot;)} ] tags: [ &quot;keyword:separation logic&quot; &quot;keyword:partial commutative monoid&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;logpath:fcsl&quot; &quot;date:2019-11-07&quot; ] authors: [ &quot;Aleksandar Nanevski&quot; ] synopsis: &quot;Partial Commutative Monoids&quot; description: &quot;&quot;&quot; The PCM library provides a formalisation of Partial Commutative Monoids (PCMs), a common algebraic structure used in separation logic for verification of <API key> sequential and concurrent programs. The library provides lemmas for mechanised and automated reasoning about PCMs in the abstract, but also supports concrete common PCM instances, such as heaps, histories and mutexes. This library relies on extensionality axioms: propositional and functional extentionality.&quot;&quot;&quot; url { src: &quot;https://github.com/imdea-software/fcsl-pcm/archive/v1.2.0.tar.gz&quot; checksum: &quot;sha256=<SHA256-like>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-fcsl-pcm.1.2.0 coq.8.7.1+2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2). The following dependencies couldn&#39;t be met: - coq-fcsl-pcm -&gt; coq &gt;= dev no matching version Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fcsl-pcm.1.2.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>relation-algebra: 4 m 10 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.11.2 / relation-algebra - 1.7.3</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> relation-algebra <small> 1.7.3 <span class="label label-success">4 m 10 s</span> </small> </h1> <p><em><script>document.write(moment("2020-09-11 16:27:45 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-09-11 16:27:45 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils conf-m4 1 Virtual package relying on m4 coq 8.11.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.05.0 The OCaml compiler (virtual package) ocaml-base-compiler 4.05.0 Official 4.05.0 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.8.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; synopsis: &quot;Relation Algebra and KAT in Coq&quot; maintainer: &quot;Damien Pous &lt;Damien.Pous@ens-lyon.fr&gt;&quot; homepage: &quot;http://perso.ens-lyon.fr/damien.pous/ra/&quot; dev-repo: &quot;git+https://github.com/damien-pous/relation-algebra.git&quot; bug-reports: &quot;https://github.com/damien-pous/relation-algebra/issues&quot; license: &quot;LGPL-3.0-or-later&quot; depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.11&quot; &amp; &lt; &quot;8.12~&quot;} ] depopts: [ &quot;<API key>&quot; ] build: [ [&quot;sh&quot; &quot;-exc&quot; &quot;./configure --%{<API key>:enable}%-ssr&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [make &quot;install&quot;] tags: [ &quot;keyword:relation algebra&quot; &quot;keyword:kleene algebra with tests&quot; &quot;keyword:kat&quot; &quot;keyword:allegories&quot; &quot;keyword:residuated structures&quot; &quot;keyword:automata&quot; &quot;keyword:regular expressions&quot; &quot;keyword:matrices&quot; &quot;category:Mathematics/Algebra&quot; &quot;logpath:RelationAlgebra&quot; ] authors: [ &quot;Damien Pous &lt;Damien.Pous@ens-lyon.fr&gt;&quot; &quot;Christian Doczkal &lt;christian.doczkal@ens-lyon.fr&gt;&quot; ] url { src: &quot;https://github.com/damien-pous/relation-algebra/archive/v1.7.3.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action <API key>.1.7.3 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 2h opam install -y --deps-only <API key>.1.7.3 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>4 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v <API key>.1.7.3 coq.8.11.2</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>4 m 10 s</dd> </dl> <h2>Installation size</h2> <p>Total: 8 M</p> <ul> <li>395 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/normalisation.vo</code></li> <li>374 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/untyping.vo</code></li> <li>348 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_completeness.vo</code></li> <li>339 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_completeness.glob</code></li> <li>268 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/paterson.vo</code></li> <li>217 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/compiler_opts.vo</code></li> <li>194 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix.glob</code></li> <li>188 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/relalg.vo</code></li> <li>185 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/monoid.vo</code></li> <li>168 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix.vo</code></li> <li>164 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/paterson.glob</code></li> <li>163 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmxs</code></li> <li>157 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/traces.vo</code></li> <li>149 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmxs</code></li> <li>138 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/normalisation.glob</code></li> <li>136 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/syntax.vo</code></li> <li>125 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/monoid.glob</code></li> <li>123 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/regex.vo</code></li> <li>121 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lattice.vo</code></li> <li>114 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/regex.glob</code></li> <li>112 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/relalg.glob</code></li> <li>111 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/untyping.glob</code></li> <li>105 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/atoms.glob</code></li> <li>100 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ka_completeness.glob</code></li> <li>99 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex_dec.vo</code></li> <li>96 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lattice.glob</code></li> <li>89 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ka_completeness.vo</code></li> <li>89 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rmx.vo</code></li> <li>85 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmxs</code></li> <li>78 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/traces.glob</code></li> <li>77 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmxs</code></li> <li>76 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex_dec.glob</code></li> <li>76 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix_ext.glob</code></li> <li>75 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/imp.vo</code></li> <li>74 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/compiler_opts.glob</code></li> <li>66 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix_ext.vo</code></li> <li>65 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ordinal.vo</code></li> <li>65 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/gregex.vo</code></li> <li>61 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rmx.glob</code></li> <li>59 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.vo</code></li> <li>57 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kleene.glob</code></li> <li>56 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/nfa.vo</code></li> <li>56 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sups.vo</code></li> <li>55 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex.vo</code></li> <li>53 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kleene.vo</code></li> <li>50 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_tac.vo</code></li> <li>49 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/syntax.glob</code></li> <li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmxs</code></li> <li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ordinal.glob</code></li> <li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/move.vo</code></li> <li>47 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/comparisons.vo</code></li> <li>47 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/atoms.vo</code></li> <li>46 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lang.vo</code></li> <li>44 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/level.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex.glob</code></li> <li>40 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rel.vo</code></li> <li>40 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/nfa.glob</code></li> <li>39 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sups.glob</code></li> <li>38 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lsyntax.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/dfa.vo</code></li> <li>36 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/boolean.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/bmx.vo</code></li> <li>34 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_completeness.v</code></li> <li>34 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lset.vo</code></li> <li>33 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/level.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/pair.vo</code></li> <li>32 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/glang.vo</code></li> <li>31 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/imp.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/comparisons.glob</code></li> <li>28 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/untyping.v</code></li> <li>26 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/normalisation.v</code></li> <li>25 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/gregex.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_tac.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_untyping.vo</code></li> <li>23 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmi</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rewriting.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/traces.v</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix.v</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rewriting.vo</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/factors.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lattice.v</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/monoid.v</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/factors.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/denum.vo</code></li> <li>21 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/positives.vo</code></li> <li>20 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/dfa.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/paterson.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/relalg.v</code></li> <li>18 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat.vo</code></li> <li>18 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/all.vo</code></li> <li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/move.glob</code></li> <li>17 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/bmx.glob</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ka_completeness.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lang.glob</code></li> <li>16 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/regex.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lsyntax.glob</code></li> <li>15 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sums.vo</code></li> <li>15 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/syntax.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex_dec.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rel.glob</code></li> <li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/common.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/boolean.glob</code></li> <li>13 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ordinal.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lset.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmi</code></li> <li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_untyping.glob</code></li> <li>12 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/pair.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmx</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rmx.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/glang.glob</code></li> <li>10 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/powerfix.vo</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_tac.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmi</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/imp.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/matrix_ext.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmi</code></li> <li>9 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ugregex.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/gregex.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sups.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/prop.vo</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/powerfix.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmx</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/comparisons.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat.glob</code></li> <li>8 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kleene.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/denum.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/common.glob</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmx</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lang.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/atoms.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmi</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmx</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/nfa.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lsyntax.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/compiler_opts.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/level.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rewriting.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/rel.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/dfa.v</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmx</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_reification.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sums.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/positives.glob</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_common.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_reification.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/ra_fold.cmxa</code></li> <li>6 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/mrewrite.cmxa</code></li> <li>5 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/lset.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/glang.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/boolean.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/bmx.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/common.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/pair.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/move.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/powerfix.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_untyping.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/factors.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/denum.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/positives.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/all.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_dec.cmx</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/sums.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/prop.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/prop.glob</code></li> <li>2 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/kat_dec.cmi</code></li> <li>1 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/RelationAlgebra/all.v</code></li> </ul> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y <API key>.1.7.3</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
<!-- HTML header for doxygen 1.8.6--> <!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.12"/> <title>OpenCV: Member List</title> <link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" /> <link href="../../tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../jquery.js"></script> <script type="text/javascript" src="../../dynsections.js"></script> <link href="../../search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="../../search/searchdata.js"></script> <script type="text/javascript" src="../../search/search.js"></script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"], jax: ["input/TeX","output/HTML-CSS"], }); //<![CDATA[ MathJax.Hub.Config( { TeX: { Macros: { matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9], fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4], forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6], vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3], vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9], hdotsfor: ["\\dots", 1], mathbbm: ["\\mathbb{#1}", 1], bordermatrix: ["\\matrix{#1}", 1] } } } ); </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> <link href="../../doxygen.css" rel="stylesheet" type="text/css" /> <link href="../../stylesheet.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <!--#include virtual="/google-search.html"--> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">OpenCV &#160;<span id="projectnumber">3.2.0</span> </div> <div id="projectbrief">Open Source Computer Vision</div> </td> </tr> </tbody> </table> </div> <script type="text/javascript"> //<![CDATA[ function getLabelName(innerHTML) { var str = innerHTML.toLowerCase(); // Replace all '+' with 'p' str = str.split('+').join('p'); // Replace all ' ' with '_' str = str.split(' ').join('_'); // Replace all '#' with 'sharp' str = str.split('#').join('sharp'); // Replace other special characters with 'ascii' + code for (var i = 0; i < str.length; i++) { var charCode = str.charCodeAt(i); if (!(charCode == 95 || (charCode > 96 && charCode < 123) || (charCode > 47 && charCode < 58))) str = str.substr(0, i) + 'ascii' + charCode + str.substr(i + 1); } return str; } function addToggle() { var $getDiv = $('div.newInnerHTML').last(); var buttonName = $getDiv.html(); var label = getLabelName(buttonName.trim()); $getDiv.attr("title", label); $getDiv.hide(); $getDiv = $getDiv.next(); $getDiv.attr("class", "toggleable_div label_" + label); $getDiv.hide(); } </script> <!-- end header part --> <!-- Generated by Doxygen 1.8.12 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "../../search",false,'Search'); </script> <script type="text/javascript" src="../../menudata.js"></script> <script type="text/javascript" src="../../menu.js"></script> <script type="text/javascript"> $(function() { initMenu('../../',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); </script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="<API key>"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../da/d6d/<API key>.html">videostab</a></li><li class="navelem"><a class="el" href="../../de/d24/<API key>.html"><API key></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">cv::videostab::<API key> Member List</div> </div> </div><!--header <div class="contents"> <p>This is the complete list of members for <a class="el" href="../../de/d24/<API key>.html">cv::videostab::<API key></a>, including all inherited members.</p> <table class="directory"> <tr class="even"><td class="entry"><a class="el" href="../../de/d24/<API key>.html#<API key>">run</a>(InputArray frame0, InputArray frame1, InputOutputArray flowX, InputOutputArray flowY, OutputArray errors)=0</td><td class="entry"><a class="el" href="../../de/d24/<API key>.html">cv::videostab::<API key></a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr> <tr><td class="entry"><a class="el" href="../../de/d24/<API key>.html#<API key>">~<API key></a>()</td><td class="entry"><a class="el" href="../../de/d24/<API key>.html">cv::videostab::<API key></a></td><td class="entry"><span class="mlabel">virtual</span></td></tr> </table></div><!-- contents --> <!-- HTML footer for doxygen 1.8.6--> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Dec 23 2016 13:00:29 for OpenCV by & <img class="footer" src="../../doxygen.png" alt="doxygen"/> </a> 1.8.12 </small></address> <script type="text/javascript"> //<![CDATA[ function addButton(label, buttonName) { var b = document.createElement("BUTTON"); b.innerHTML = buttonName; b.setAttribute('class', 'toggleable_button label_' + label); b.onclick = function() { $('.toggleable_button').css({ border: '2px outset', 'border-radius': '4px' }); $('.toggleable_button.label_' + label).css({ border: '2px inset', 'border-radius': '4px' }); $('.toggleable_div').css('display', 'none'); $('.toggleable_div.label_' + label).css('display', 'block'); }; b.style.border = '2px outset'; b.style.borderRadius = '4px'; b.style.margin = '2px'; return b; } function buttonsToAdd($elements, $heading, $type) { if ($elements.length === 0) { $elements = $("" + $type + ":contains(" + $heading.html() + ")").parent().prev("div.newInnerHTML"); } var arr = jQuery.makeArray($elements); var seen = {}; arr.forEach(function(e) { var txt = e.innerHTML; if (!seen[txt]) { $button = addButton(e.title, txt); if (Object.keys(seen).length == 0) { var linebreak1 = document.createElement("br"); var linebreak2 = document.createElement("br"); ($heading).append(linebreak1); ($heading).append(linebreak2); } ($heading).append($button); seen[txt] = true; } }); return; } $("h2").each(function() { $heading = $(this); $smallerHeadings = $(this).nextUntil("h2").filter("h3").add($(this).nextUntil("h2").find("h3")); if ($smallerHeadings.length) { $smallerHeadings.each(function() { var $elements = $(this).nextUntil("h3").filter("div.newInnerHTML"); buttonsToAdd($elements, $(this), "h3"); }); } else { var $elements = $(this).nextUntil("h2").filter("div.newInnerHTML"); buttonsToAdd($elements, $heading, "h2"); } }); $(".toggleable_button").first().click(); var $clickDefault = $('.toggleable_button.label_python').first(); if ($clickDefault.length) { $clickDefault.click(); } $clickDefault = $('.toggleable_button.label_cpp').first(); if ($clickDefault.length) { $clickDefault.click(); } </script> </body> </html>
@import url(http://fonts.googleapis.com/css?family=Fira+Sans:300,400,500,700|Rochester|Roboto:400,300,700); html, body { height: 100%; width: 100%; margin: 0; padding: 0; } body { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 300; line-height: 1.6; padding-top: 50px; color: #34495e; } h1, h2, h3, h4, h5, h6 { font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; color: #019875; } blockquote { margin-bottom: 0; } blockquote p { min-height: 115px; } blockquote footer { background: none; text-shadow: 0 0; padding: 0; } section { padding-bottom: 3em; margin-bottom: 0; } a { color: #019875; } footer { padding-top: 3em; padding-bottom: 3em; color: #ecf0f1; text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.2); background-color: #2c3e50; } footer a { color: #34495e; } footer a:hover { color: #049372; } footer .copyright { margin-top: 1.5em; } footer .copyright a { color: #019875; } .btn { font-weight: 300; } .pagination li a, .pagination li span { color: #019875; border-color: #ecf0f1; } .pagination .active a, .pagination .active a:hover, .pagination .active a:focus, .pagination .active span, .pagination .active span:hover, .pagination .active span:focus { background-color: #019875; border-color: #019875; } .pagination .disabled a, .pagination .disabled a:hover, .pagination .disabled a:focus, .pagination .disabled span, .pagination .disabled span:hover, .pagination .disabled span:focus { border-color: #ecf0f1; } .page-header { border-bottom: 1px solid #ecf0f1; } hr { border-top: 1px dotted #ecf0f1; } .whitesmoke { background-color: whitesmoke; } .alizarin { color: #e74c3c; } .pumpkin { color: #d35400; } .cursive { font-family: "Rochester", cursive; font-style: normal; } .teaser { padding-top: 3em; margin-bottom: 0px; } .teaser h3 { margin: 0; line-height: 1.9em; } .btn-outline { color: #019875; background-color: transparent; border-color: #019875; } .btn-outline:hover, .btn-outline:focus, .btn-outline:active, .btn-outline.active { color: whitesmoke; background-color: #019875; border-color: #019875; } .btn-brand { color: white; background-color: #019875; border-color: #049372; } .btn-brand:hover, .btn-brand:focus, .btn-brand:active { color: white; background-color: #2c3e50; border-color: #2c3e50; } .btn-link-brand { color: #019875; background: transparent; } .btn-link-brand:hover, .btn-link-brand:focus, .btn-link-brand:active { color: #049372; } .carousel-indicators { bottom: -40px; } .carousel-indicators li { border-color: #049372; } .carousel-indicators li.active { background-color: #019875; } .intro { min-height: 100%; background-image: url("../img/personal/<API key>.jpg"); background-size: 100%; background-repeat: no-repeat; background-position: top right; } .form-group { margin-bottom: 0px; } .form-group .help-block { display: block; min-height: 1.5em; margin: 0px !important; font-size: 1em !important; color: #e74c3c; } .form-group .help-block ul { margin-bottom: 0px; list-style: none; } article h2 a:hover, article h3 a:hover { color: #049372; text-decoration: none; } article img { width: 100%; padding: 4px; -<API key>: 5px; -moz-border-radius: 5px; -ms-border-radius: 5px; border-radius: 5px; border: 1px solid #ecf0f1; } article pre { background-color: whitesmoke; border-color: #ecf0f1; } .pager li a:hover, .pager li a:focus, .pager li span:hover, .pager li span:focus { background-color: #049372; color: whitesmoke; border-color: #019875; } .post-banner { margin-bottom: 1em; } #portfolio-grid a:hover { text-decoration: none; } #portfolio-grid .mix { display: none; text-align: center; margin-bottom: 20px; } #portfolio-grid .mix img { padding: 0; border: 0; -webkit-box-shadow: 5px 5px 0px #ecf0f1; -moz-box-shadow: 5px 5px 0px #ecf0f1; box-shadow: 5px 5px 0px #ecf0f1; } #portfolio-grid .mix img:hover { opacity: 0.9; } #portfolio-grid .mix h4 { margin-top: 20px; margin-bottom: 0px; } #portfolio-grid .mix p { margin-bottom: 1.5em; } .project { padding-bottom: 48px; } .project h3 { border-top: 1px dotted #ecf0f1; border-bottom: 1px dotted #ecf0f1; padding-top: 20px; padding-bottom: 20px; margin-bottom: 20px; text-align: center; } .project hr { border-style: dotted; } .project img { display: block; height: auto; width: 100%; max-width: 100%; padding: 5px; -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1); -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1); -<API key>: 6px; -moz-border-radius: 6px; -ms-border-radius: 6px; border-radius: 6px; } .errorpage { height: 100%; width: 100%; margin-bottom: 0px; background-image: url("../img/personal/hashem_zahran-error.jpg"); background-position: top right; background-repeat: no-repeat; background-size: 100%; } .errorpage .container { padding-top: 100px; } body { padding-top: 0; font-size: 16px; } main p, footer p { margin: 0; line-height: 3em; } footer { padding: 0; } footer a { color: whitesmoke; } footer a:hover { color: white; text-decoration: none; } .whitesmoke { text-shadow: 0 0; } aside, section { box-shadow: 0 0; padding-bottom: 20px; } .header p { font-size: 2.2em; font-weight: 300; } .teaser p { font-size: 2.1em; font-weight: 300; } .jumbotron { margin-bottom: 0; } .greenhaze { background-color: #019875; color: whitesmoke; } .greenhaze h1 { color: white; } aside address { margin: 0; } .list-group { font-size: 15px; } .list-group .list-group-item { background: #ecf0f1; -<API key>: 0px; -moz-border-radius: 0px; -ms-border-radius: 0px; border-radius: 0px; border: 0; } .list-group .list-group-item:nth-child(even) { background: whitesmoke; } .skills { padding-left: 20px; } .skills p { margin-bottom: 0px; } .social a { color: #019875; } .social a:hover.facebook { color: #3b5998; } .social a:hover.twitter { color: #00aced; } .social a:hover.linkedin { color: #007bb6; } .social a:hover.instagram { color: #517fa4; } .social a:hover.github { color: #4183C4; } .social a:hover.behance { color: #1769FF; } .progress { background-color: whitesmoke; margin-bottom: 10px; } .progress .progress-bar-brand { background-color: #019875; } .highlight { background: #fff; } .highlight .c { color: #998; font-style: italic; } .highlight .err { color: #a61717; background-color: #e3d2d2; } .highlight .k { font-weight: bold; } .highlight .o { font-weight: bold; } .highlight .cm { color: #998; font-style: italic; } .highlight .cp { color: #999; font-weight: bold; } .highlight .c1 { color: #998; font-style: italic; } .highlight .cs { color: #999; font-weight: bold; font-style: italic; } .highlight .gd { color: #000; background-color: #fdd; } .highlight .gd .x { color: #000; background-color: #faa; } .highlight .ge { font-style: italic; } .highlight .gr { color: #a00; } .highlight .gh { color: #999; } .highlight .gi { color: #000; background-color: #dfd; } .highlight .gi .x { color: #000; background-color: #afa; } .highlight .go { color: #888; } .highlight .gp { color: #555; } .highlight .gs { font-weight: bold; } .highlight .gu { color: #aaa; } .highlight .gt { color: #a00; } .highlight .kc { font-weight: bold; } .highlight .kd { font-weight: bold; } .highlight .kp { font-weight: bold; } .highlight .kr { font-weight: bold; } .highlight .kt { color: #458; font-weight: bold; } .highlight .m { color: #099; } .highlight .s { color: #d14; } .highlight .na { color: #008080; } .highlight .nb { color: #0086B3; } .highlight .nc { color: #458; font-weight: bold; } .highlight .no { color: #008080; } .highlight .ni { color: #800080; } .highlight .ne { color: #900; font-weight: bold; } .highlight .nf { color: #900; font-weight: bold; } .highlight .nn { color: #555; } .highlight .nt { color: #000080; } .highlight .nv { color: #008080; } .highlight .ow { font-weight: bold; } .highlight .w { color: #bbb; } .highlight .mf { color: #099; } .highlight .mh { color: #099; } .highlight .mi { color: #099; } .highlight .mo { color: #099; } .highlight .sb { color: #d14; } .highlight .sc { color: #d14; } .highlight .sd { color: #d14; } .highlight .s2 { color: #d14; } .highlight .se { color: #d14; } .highlight .sh { color: #d14; } .highlight .si { color: #d14; } .highlight .sx { color: #d14; } .highlight .sr { color: #009926; } .highlight .s1 { color: #d14; } .highlight .ss { color: #990073; } .highlight .bp { color: #999; } .highlight .vc { color: #008080; } .highlight .vg { color: #008080; } .highlight .vi { color: #008080; } .highlight .il { color: #099; }
// <API key>.h // <API key> #import <Foundation/Foundation.h> #import "<API key>.h" @interface <API key> : NSObject @property (nonatomic, assign, readonly) ISURLResponseStatus status; @property (nonatomic, copy, readonly) NSString *contentString; @property (nonatomic, readonly) id content; @property (nonatomic, assign, readonly) NSInteger requestId; @property (nonatomic, copy, readonly) NSURLRequest *request; @property (nonatomic, copy, readonly) NSData *responseData; @property (nonatomic, copy) NSDictionary *requestParams; @property (nonatomic, assign, readonly) BOOL isCache; /** * * * @param responseString * @param requestId * @param request * @param responseData * @param status * * @return */ - (instancetype)<API key>:(NSString *)responseString requestId:(NSNumber *)requestId request:(NSURLRequest *)request responseData:(NSData *)responseData status:(ISURLResponseStatus)status; /** * * * @param responseString * @param requestId * @param request * @param responseData * @param error * * @return */ - (instancetype)<API key>:(NSString *)responseString requestId:(NSNumber *)requestId request:(NSURLRequest *)request responseData:(NSData *)responseData error:(NSError *)error; /** * initWithDataresponseisCacheYESresponseisCacheNO * * @param data * * @return */ - (instancetype)initWithData:(NSData *)data; @end
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> START_ATF_NAMESPACE typedef int (WINAPIV *<API key>)(_SYMBOL_INFO *, unsigned int, void *); END_ATF_NAMESPACE
package uk.co.sftrabbit.stackanswers.fragment; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import uk.co.sftrabbit.stackanswers.R; public class AuthInfoFragment extends Fragment { public AuthInfoFragment() { // Do nothing } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.authentication_info, container, false); } }
# Entity Framwork Guidelines Entity Framework (EF) is the recommended ORM to use these days. There are other options, but most documentation (read: stackoverflow posts) use EF. In EF, you make C# objects to represent your table, use special attributes or naming conventions to tell the EF database generator what tables to make. This is called the "code-first" method. EF has migrations built in, and detects changes to your C# objects usign reflection to generate up/down migrations. ## Connection management The EF main object is the `DbContext`, which has a `DbSet<T>` for each of your model classes. This is the main handle on the database, and everything comes from here. It's doing some result caching, but as with any ORM it's stupid easy to fetch more than you want. Your code changes objects in this context, then at some point you must call `DbContext.SaveChanges` to commit the work to the database. It's kinda like a transaction. Some common errors when you `SaveChanges`: * EF model validation errors * DB constraint violations The `DbContext` is not thread-safe, but should be re-used to take advantage of its result caching. Use Ninject web extensions to create one of these per HTTP request. Ninject can thread these around for you, but sometimes for one-off things or long-lived objects it might make more sense to just instantiate the dbcontext directly. ## Connection strings EF will look in the config file for a connection string named after your context. Use this along with the web publish options in visual studio to re-write config files at publish time to use different databases. This was you can always say `new MyContext()` and have it work, and not need to thread the single dbcontext instance across the universe. ## Model classes * put code-first database models in their own assembly. To generate/run migrations, you just need a compiled assembly and a connection string. If you change the model, you're gonna break some code. If your models and code are in the same assembly, you won't be able to generate a migration until you've fixed or commented out everything. * EF can handle inheritence, so make a `TableBase` with `Id` and `DateEntered` and inherit other classes from there * When making relationships in the model classes, make a `public int FooId {get;set;}` and a `public virtual Foo {get;}`. `FooId` will be the column with the foriegn key, and `Foo` will lazy-load the related object. You can do `public virtual Foo {get;set;}` and achieve a similar database, but some parts of the relation are much easier to deal with if you have direct access to the id - notably dropdowns in editors. * on model classes, adding a `public virtual ICollection<T> Models {get;set;}` will create lazy-loaded accessor for the other side of DB relationships. Initialize these in constructors to avoid errors when working with newly created objects, or implement a lazy initialzed collection, which is some annoying boilerplate * if there's going to be a lot of objects in a virtual collection, establish the relationship on the child by setting the foreign key property and add it to the dbcontext directly. For example: // SELECTs all the votes for the election into the collection, // then queues the INSERT election.Votes.Add(new Vote(){For="Bob"}); // queues the INSERT dbcontext.Votes.Add(new Vote(){For="Bob", ElectionId=election.Id}); ## Migrations * use the `Seed` method to setup things like type tables, admin users, and roles ## Querying * don't use `Contains` in EF5 LINQ queires, that prevents LINQ from caching query plans. See http://msdn.microsoft.com/en-us/data/hh949853.aspx * EF LINQ has a lot of weird constraints, but if you follow them then you'll only select the data you need from DB. Expect to get runtime errors like "we don't know how to do X from a LINQ query" and need to re-write the query. Some common ones: * use parameter-less constructors with the object initializer syntax * don't try to call static methods * can compose a query from multiple lambda expressions, but you probably don't want to try to pass those between methods. The type signature is unholy for the lambda: query.Where(f => f.Name == "bar") * don't pay too much attention to the crazy SQL it generates; it's usually fast enough ## scratch allow `new DbContext()`, or require it be passed in via a method/constructor argument? `new` is ok when: * no model objects coming in or out of the function - things get hairy if you mix objects from different contexts * we might be a long-lived object that survives multiple HTTP requests, and therefore can't pull the one off the request context * the data we're dealing with probably isn't going to be cached in the per-request context * you're ok with hitting a real db to test this function * we're _always_ setting the connection string via the default name convention with app.config * we're _never_ going to do anything funky with the context that would require ninject * we're _never_ doing things with transactions
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>bartpy.node &mdash; BartPy 0.0.1 documentation</title> <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> <link rel="index" title="Index" href="../../genindex.html" /> <link rel="search" title="Search" href="../../search.html" /> <script src="../../_static/js/modernizr.min.js"></script> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search"> <a href="../../index.html" class="icon icon-home"> BartPy </a> <div class="version"> 0.0.1 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <p class="caption"><span class="caption-text">Contents:</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../../node.html">Node</a></li> <li class="toctree-l1"><a class="reference internal" href="../../split.html">Split</a></li> <li class="toctree-l1"><a class="reference internal" href="../../tree.html">Tree</a></li> <li class="toctree-l1"><a class="reference internal" href="../../model.html">Model</a></li> <li class="toctree-l1"><a class="reference internal" href="../../sampling.html">Samplers</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../index.html">BartPy</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../../index.html">Docs</a> &raquo;</li> <li><a href="../index.html">Module code</a> &raquo;</li> <li>bartpy.node</li> <li class="<API key>"> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <h1>Source code for bartpy.node</h1><div class="highlight"><pre> <span></span><span class="kn">from</span> <span class="nn">typing</span> <span class="k">import</span> <span class="n">Union</span> <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span> <span class="kn">from</span> <span class="nn">bartpy.data</span> <span class="k">import</span> <span class="n">Data</span> <span class="kn">from</span> <span class="nn">bartpy.split</span> <span class="k">import</span> <span class="n">Split</span><span class="p">,</span> <span class="n">SplitCondition</span> <div class="viewcode-block" id="TreeNode"><a class="viewcode-back" href="../../node.html#bartpy.node.TreeNode">[docs]</a><span class="k">class</span> <span class="nc">TreeNode</span><span class="p">:</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> A representation of a node in the Tree</span> <span class="sd"> Contains two main types of information:</span> <span class="sd"> - Data relevant for the node</span> <span class="sd"> - Links to children nodes</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">split</span><span class="p">:</span> <span class="n">Split</span><span class="p">,</span> <span class="n">depth</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">left_child</span><span class="p">:</span> <span class="s1">&#39;TreeNode&#39;</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">right_child</span><span class="p">:</span> <span class="s1">&#39;TreeNode&#39;</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span> <span class="bp">self</span><span class="o">.</span><span class="n">depth</span> <span class="o">=</span> <span class="n">depth</span> <span class="bp">self</span><span class="o">.</span><span class="n">_split</span> <span class="o">=</span> <span class="n">split</span> <span class="bp">self</span><span class="o">.</span><span class="n">_left_child</span> <span class="o">=</span> <span class="n">left_child</span> <span class="bp">self</span><span class="o">.</span><span class="n">_right_child</span> <span class="o">=</span> <span class="n">right_child</span> <span class="k">def</span> <span class="nf">update_data</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data</span><span class="p">:</span> <span class="n">Data</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_split</span><span class="o">.</span><span class="n">_data</span> <span class="o">=</span> <span class="n">data</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">data</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Data</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">data</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">left_child</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="s1">&#39;TreeNode&#39;</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_left_child</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">right_child</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="s1">&#39;TreeNode&#39;</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_right_child</span> <span class="k">def</span> <span class="nf">is_leaf_node</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="kc">False</span> <span class="k">def</span> <span class="nf">is_decision_node</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="kc">False</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">split</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_split</span> <span class="k">def</span> <span class="nf">update_y</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">y</span><span class="p">):</span> <span class="bp">self</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">update_y</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span><span class="o">.</span><span class="n">update_y</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="bp">self</span><span class="o">.</span><span class="n">right_child</span><span class="o">.</span><span class="n">update_y</span><span class="p">(</span><span class="n">y</span><span class="p">)</span></div> <div class="viewcode-block" id="LeafNode"><a class="viewcode-back" href="../../node.html#bartpy.node.LeafNode">[docs]</a><span class="k">class</span> <span class="nc">LeafNode</span><span class="p">(</span><span class="n">TreeNode</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> A representation of a leaf node in the tree</span> <span class="sd"> In addition to the normal work of a `Node`, a `LeafNode` is responsible for:</span> <span class="sd"> - Interacting with `Data`</span> <span class="sd"> - Making predictions</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">split</span><span class="p">:</span> <span class="n">Split</span><span class="p">,</span> <span class="n">depth</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span> <span class="bp">self</span><span class="o">.</span><span class="n">_value</span> <span class="o">=</span> <span class="mf">0.0</span> <span class="bp">self</span><span class="o">.</span><span class="n">_residuals</span> <span class="o">=</span> <span class="mf">0.0</span> <span class="bp">self</span><span class="o">.</span><span class="n"><API key></span> <span class="o">=</span> <span class="kc">None</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">split</span><span class="p">,</span> <span class="n">depth</span><span class="p">,</span> <span class="kc">None</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf"><API key></span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n"><API key></span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n"><API key></span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n"><API key></span><span class="p">()</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n"><API key></span> <span class="k">def</span> <span class="nf">set_value</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">:</span> <span class="nb">float</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_value</span> <span class="o">=</span> <span class="n">value</span> <span class="k">def</span> <span class="nf">residuals</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">y</span> <span class="o">-</span> <span class="bp">self</span><span class="o">.</span><span class="n">predict</span><span class="p">()</span> <span class="nd">@property</span> <span class="k">def</span> <span class="nf">current_value</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_value</span> <span class="k">def</span> <span class="nf">predict</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">float</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">current_value</span> <span class="k">def</span> <span class="nf">is_splittable</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n"><API key></span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span> <span class="k">def</span> <span class="nf">is_leaf_node</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="k">return</span> <span class="kc">True</span></div> <div class="viewcode-block" id="DecisionNode"><a class="viewcode-back" href="../../node.html#bartpy.node.DecisionNode">[docs]</a><span class="k">class</span> <span class="nc">DecisionNode</span><span class="p">(</span><span class="n">TreeNode</span><span class="p">):</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> A `DecisionNode` encapsulates internal node in the tree</span> <span class="sd"> Unlike a `LeafNode`, it contains very little actual logic beyond tying the tree together</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">split</span><span class="p">:</span> <span class="n">Split</span><span class="p">,</span> <span class="n">left_child_node</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">LeafNode</span><span class="p">,</span> <span class="s1">&#39;DecisionNode&#39;</span><span class="p">],</span> <span class="n">right_child_node</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">LeafNode</span><span class="p">,</span> <span class="s1">&#39;DecisionNode&#39;</span><span class="p">],</span> <span class="n">depth</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span> <span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">split</span><span class="p">,</span> <span class="n">depth</span><span class="p">,</span> <span class="n">left_child_node</span><span class="p">,</span> <span class="n">right_child_node</span><span class="p">)</span> <span class="k">def</span> <span class="nf">is_prunable</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span><span class="o">.</span><span class="n">is_leaf_node</span><span class="p">()</span> <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">right_child</span><span class="o">.</span><span class="n">is_leaf_node</span><span class="p">()</span> <span class="k">def</span> <span class="nf">is_decision_node</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">bool</span><span class="p">:</span> <span class="k">return</span> <span class="kc">True</span> <span class="k">def</span> <span class="nf">variable_split_on</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">SplitCondition</span><span class="p">:</span> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">left_child</span><span class="o">.</span><span class="n">split</span><span class="o">.</span><span class="n"><API key></span><span class="p">()</span></div> <div class="viewcode-block" id="split_node"><a class="viewcode-back" href="../../node.html#bartpy.node.split_node">[docs]</a><span class="k">def</span> <span class="nf">split_node</span><span class="p">(</span><span class="n">node</span><span class="p">:</span> <span class="n">LeafNode</span><span class="p">,</span> <span class="n">split_condition</span><span class="p">:</span> <span class="n">SplitCondition</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">DecisionNode</span><span class="p">:</span> <span class="sd">&quot;&quot;&quot;</span> <span class="sd"> Converts a `LeafNode` into an internal `DecisionNode` by applying the split condition</span> <span class="sd"> The left node contains all values for the splitting variable less than the splitting value</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="n">left_split</span><span class="p">,</span> <span class="n">right_split</span> <span class="o">=</span> <span class="n">node</span><span class="o">.</span><span class="n">split</span> <span class="o">+</span> <span class="n">split_condition</span> <span class="k">return</span> <span class="n">DecisionNode</span><span class="p">(</span><span class="n">node</span><span class="o">.</span><span class="n">split</span><span class="p">,</span> <span class="n">LeafNode</span><span class="p">(</span><span class="n">left_split</span><span class="p">,</span> <span class="n">depth</span><span class="o">=</span><span class="n">node</span><span class="o">.</span><span class="n">depth</span> <span class="o">+</span> <span class="mi">1</span><span class="p">),</span> <span class="n">LeafNode</span><span class="p">(</span><span class="n">right_split</span><span class="p">,</span> <span class="n">depth</span><span class="o">=</span><span class="n">node</span><span class="o">.</span><span class="n">depth</span> <span class="o">+</span> <span class="mi">1</span><span class="p">),</span> <span class="n">depth</span><span class="o">=</span><span class="n">node</span><span class="o">.</span><span class="n">depth</span><span class="p">)</span></div> </pre></div> </div> </div> <footer> <hr/> <div role="contentinfo"> <p> &copy; Copyright 2018, Jake Coltman. </p> </div> Built with <a href="http: </footer> </div> </div> </section> </div> <script type="text/javascript"> var <API key> = { URL_ROOT:'../../', VERSION:'0.0.1', LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, SOURCELINK_SUFFIX: '.txt' }; </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="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=<API key>"></script> <script type="text/javascript" src="../../_static/js/theme.js"></script> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>
<?php namespace moonland\phpexcel; use yii\helpers\ArrayHelper; use yii\base\<API key>; use yii\base\<API key>; use yii\i18n\Formatter; use PhpOffice\PhpSpreadsheet\Spreadsheet; class Excel extends \yii\base\Widget { // Border style const BORDER_NONE = 'none'; const BORDER_DASHDOT = 'dashDot'; const BORDER_DASHDOTDOT = 'dashDotDot'; const BORDER_DASHED = 'dashed'; const BORDER_DOTTED = 'dotted'; const BORDER_DOUBLE = 'double'; const BORDER_HAIR = 'hair'; const BORDER_MEDIUM = 'medium'; const <API key> = 'mediumDashDot'; const <API key> = 'mediumDashDotDot'; const BORDER_MEDIUMDASHED = 'mediumDashed'; const BORDER_SLANTDASHDOT = 'slantDashDot'; const BORDER_THICK = 'thick'; const BORDER_THIN = 'thin'; // Colors const COLOR_BLACK = 'FF000000'; const COLOR_WHITE = 'FFFFFFFF'; const COLOR_RED = 'FFFF0000'; const COLOR_DARKRED = 'FF800000'; const COLOR_BLUE = 'FF0000FF'; const COLOR_DARKBLUE = 'FF000080'; const COLOR_GREEN = 'FF00FF00'; const COLOR_DARKGREEN = 'FF008000'; const COLOR_YELLOW = 'FFFFFF00'; const COLOR_DARKYELLOW = 'FF808000'; // Horizontal alignment styles const HORIZONTAL_GENERAL = 'general'; const HORIZONTAL_LEFT = 'left'; const HORIZONTAL_RIGHT = 'right'; const HORIZONTAL_CENTER = 'center'; const <API key> = 'centerContinuous'; const HORIZONTAL_JUSTIFY = 'justify'; const HORIZONTAL_FILL = 'fill'; const <API key> = 'distributed'; // Excel2007 only // Vertical alignment styles const VERTICAL_BOTTOM = 'bottom'; const VERTICAL_TOP = 'top'; const VERTICAL_CENTER = 'center'; const VERTICAL_JUSTIFY = 'justify'; const <API key> = 'distributed'; // Excel2007 only // Read order const READORDER_CONTEXT = 0; const READORDER_LTR = 1; const READORDER_RTL = 2; // Fill types const FILL_NONE = 'none'; const FILL_SOLID = 'solid'; const <API key> = 'linear'; const FILL_GRADIENT_PATH = 'path'; const <API key> = 'darkDown'; const <API key> = 'darkGray'; const <API key> = 'darkGrid'; const <API key> = 'darkHorizontal'; const <API key> = 'darkTrellis'; const FILL_PATTERN_DARKUP = 'darkUp'; const <API key> = 'darkVertical'; const <API key> = 'gray0625'; const <API key> = 'gray125'; const <API key> = 'lightDown'; const <API key> = 'lightGray'; const <API key> = 'lightGrid'; const <API key> = 'lightHorizontal'; const <API key> = 'lightTrellis'; const <API key> = 'lightUp'; const <API key> = 'lightVertical'; const <API key> = 'mediumGray'; // Pre-defined formats const FORMAT_GENERAL = 'General'; const FORMAT_TEXT = '@'; const FORMAT_NUMBER = '0'; const FORMAT_NUMBER_00 = '0.00'; const <API key> = '#,##0.00'; const <API key> = '#,##0.00_-'; const FORMAT_PERCENTAGE = '0%'; const <API key> = '0.00%'; const <API key> = 'yyyy-mm-dd'; const <API key> = 'yy-mm-dd'; const <API key> = 'dd/mm/yy'; const <API key> = 'd/m/yy'; const <API key> = 'd-m-yy'; const FORMAT_DATE_DMMINUS = 'd-m'; const FORMAT_DATE_MYMINUS = 'm-yy'; const FORMAT_DATE_XLSX14 = 'mm-dd-yy'; const FORMAT_DATE_XLSX15 = 'd-mmm-yy'; const FORMAT_DATE_XLSX16 = 'd-mmm'; const FORMAT_DATE_XLSX17 = 'mmm-yy'; const FORMAT_DATE_XLSX22 = 'm/d/yy h:mm'; const <API key> = 'd/m/yy h:mm'; const FORMAT_DATE_TIME1 = 'h:mm AM/PM'; const FORMAT_DATE_TIME2 = 'h:mm:ss AM/PM'; const FORMAT_DATE_TIME3 = 'h:mm'; const FORMAT_DATE_TIME4 = 'h:mm:ss'; const FORMAT_DATE_TIME5 = 'mm:ss'; const FORMAT_DATE_TIME6 = 'h:mm:ss'; const FORMAT_DATE_TIME7 = 'i:s.S'; const FORMAT_DATE_TIME8 = 'h:mm:ss;@'; const <API key> = 'yy/mm/dd;@'; const <API key> = '"$"#,##0.00_-'; const FORMAT_CURRENCY_USD = '$ const <API key> = ' const FORMAT_CURRENCY_EUR = ' /** * @var string mode is an export mode or import mode. valid value are 'export' and 'import'. */ public $mode = 'export'; /** * @var boolean for set the export excel with multiple sheet. */ public $isMultipleSheet = false; /** * @var array properties for set property on the excel object. */ public $properties; /** * @var Model object or DataProvider object with much data. */ public $models; /** * @var array columns to get the attributes from the model, this valid value only the exist attribute on the model. * If this is not set, then all attribute of the model will be set as columns. */ public $columns = []; /** * @var array header to set the header column on first line. Set this if want to custom header. * If not set, the header will get attributes label of model attributes. */ public $headers = []; /** * @var string|array name for file name to export or save. */ public $fileName; /** * @var string save path is a directory to save the file or you can blank this to set the file as attachment. */ public $savePath; /** * @var string format for excel to export. Valid value are 'Xls','Xlsx','Xml','Ods','Slk','Gnumeric','Csv', and 'Html'. */ public $format; /** * @var boolean to set the title column on the first line. */ public $setFirstTitle = true; /** * @var boolean to set the file excel to download mode. */ public $asAttachment = false; /** * @var boolean to set the first record on excel file to a keys of array per line. * If you want to set the keys of record column with first record, if it not set, the header with use the alphabet column on excel. */ public $<API key> = true; /** * @var boolean to set the sheet index by sheet name or array result if the sheet not only one. */ public $setIndexSheetByName = false; /** * @var string sheetname to getting. This is only get the sheet with same name. */ public $getOnlySheet; /** * @var boolean to set the import data will return as array. */ public $asArray; /** * @var array to unread record by index number. */ public $leaveRecordByIndex = []; /** * @var array to read record by index, other will leave. */ public $<API key> = []; /** * @var array|Formatter the formatter used to format model attribute values into displayable texts. * This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]] * instance. If this property is not set, the "formatter" application component will be used. */ public $formatter; /** * @var boolean define the column autosize */ public $autoSize = false; /** * @var boolean if true, this writer pre-calculates all formulas in the spreadsheet. This can be slow on large spreadsheets, and maybe even unwanted. */ public $<API key> = false; /** * @var boolean Because of a bug in the Office2003 compatibility pack, there can be some small issues when opening Xlsx spreadsheets (mostly related to formula calculation) */ public $<API key> = false; /** * @var custom CSV delimiter for import. Works only with CSV files */ public $CSVDelimiter = ";"; /** * @var custom CSV encoding for import. Works only with CSV files */ public $CSVEncoding = "UTF-8"; /** * (non-PHPdoc) * @see \yii\base\Object::init() */ public function init() { parent::init(); if ($this->formatter == null) { $this->formatter = \Yii::$app->getFormatter(); } elseif (is_array($this->formatter)) { $this->formatter = \Yii::createObject($this->formatter); } if (!$this->formatter instanceof Formatter) { throw new <API key>('The "formatter" property must be either a Format object or a configuration array.'); } } /** * Setting data from models */ public function executeColumns(&$activeSheet = null, $models, $columns = [], $headers = []) { if ($activeSheet == null) { $activeSheet = $this->activeSheet; } $hasHeader = false; $row = 1; $char = 26; foreach ($models as $model) { if (empty($columns)) { $columns = $model->attributes(); } if ($this->setFirstTitle && !$hasHeader) { $isPlus = false; $colplus = 0; $colnum = 1; foreach ($columns as $key=>$column) { $col = ''; if ($colnum > $char) { $colplus += 1; $colnum = 1; $isPlus = true; } if ($isPlus) { $col .= chr(64+$colplus); } $col .= chr(64+$colnum); $header = ''; if (is_array($column)) { if (isset($column['header'])) { $header = $column['header']; } elseif (isset($column['attribute']) && isset($headers[$column['attribute']])) { $header = $headers[$column['attribute']]; } elseif (isset($column['attribute'])) { $header = $model->getAttributeLabel($column['attribute']); } elseif (isset($column['cellFormat']) && is_array($column['cellFormat'])) { $activeSheet->getStyle($col.$row)->applyFromArray($column['cellFormat']); } } else { if(isset($headers[$column])) { $header = $headers[$column]; } else { $header = $model->getAttributeLabel($column); } } if (isset($column['width'])) { $activeSheet->getColumnDimension(strtoupper($col))->setWidth($column['width']); } $activeSheet->setCellValue($col.$row,$header); $colnum++; } $hasHeader=true; $row++; } $isPlus = false; $colplus = 0; $colnum = 1; foreach ($columns as $key=>$column) { $col = ''; if ($colnum > $char) { $colplus++; $colnum = 1; $isPlus = true; } if ($isPlus) { $col .= chr(64+$colplus); } $col .= chr(64+$colnum); if (is_array($column)) { $column_value = $this-><API key>($model, $column); if (isset($column['cellFormat']) && is_array($column['cellFormat'])) { $activeSheet->getStyle($col.$row)->applyFromArray($column['cellFormat']); } } else { $column_value = $this-><API key>($model, ['attribute' => $column]); } $activeSheet->setCellValue($col.$row,$column_value); $colnum++; } $row++; if($this->autoSize){ foreach (range(0, $colnum) as $col) { $activeSheet-><API key>($col)->setAutoSize(true); } } } } /** * Setting label or keys on every record if <API key> is true. * @param array $sheetData * @return multitype:multitype:array */ public function executeArrayLabel($sheetData) { $keys = ArrayHelper::remove($sheetData, '1'); $new_data = []; foreach ($sheetData as $values) { $new_data[] = array_combine($keys, $values); } return $new_data; } /** * Leave record with same index number. * @param array $sheetData * @param array $index * @return array */ public function executeLeaveRecords($sheetData = [], $index = []) { foreach ($sheetData as $key => $data) { if (in_array($key, $index)) { unset($sheetData[$key]); } } return $sheetData; } /** * Read record with same index number. * @param array $sheetData * @param array $index * @return array */ public function <API key>($sheetData = [], $index = []) { foreach ($sheetData as $key => $data) { if (!in_array($key, $index)) { unset($sheetData[$key]); } } return $sheetData; } /** * Getting column value. * @param Model $model * @param array $params * @return Ambigous <NULL, string, mixed> */ public function <API key>($model, $params = []) { $value = null; if (isset($params['value']) && $params['value'] !== null) { if (is_string($params['value'])) { $value = ArrayHelper::getValue($model, $params['value']); } else { $value = call_user_func($params['value'], $model, $this); } } elseif (isset($params['attribute']) && $params['attribute'] !== null) { $value = ArrayHelper::getValue($model, $params['attribute']); } if (isset($params['format']) && $params['format'] != null) $value = $this->formatter()->format($value, $params['format']); return $value; } /** * Populating columns for checking the column is string or array. if is string this will be checking have a formatter or header. * @param array $columns * @throws <API key> * @return multitype:multitype:array */ public function populateColumns($columns = []) { $_columns = []; foreach ($columns as $key => $value) { if (is_string($value)) { $value_log = explode(':', $value); $_columns[$key] = ['attribute' => $value_log[0]]; if (isset($value_log[1]) && $value_log[1] !== null) { $_columns[$key]['format'] = $value_log[1]; } if (isset($value_log[2]) && $value_log[2] !== null) { $_columns[$key]['header'] = $value_log[2]; } } elseif (is_array($value)) { if (!isset($value['attribute']) && !isset($value['value'])) { throw new \<API key>('Attribute or Value must be defined.'); } $_columns[$key] = $value; } } return $_columns; } /** * Formatter for i18n. * @return Formatter */ public function formatter() { if (!isset($this->formatter)) $this->formatter = \Yii::$app->getFormatter(); return $this->formatter; } /** * Setting header to download generated file xls */ public function setHeaders() { header('Content-Type: application/vnd.<API key>.spreadsheetml.sheet'); header('Content-Disposition: attachment;filename="' . $this->getFileName() .'"'); header('Cache-Control: max-age=0'); } /** * Getting the file name of exporting xls file * @return string */ public function getFileName() { $fileName = 'exports.xlsx'; if (isset($this->fileName)) { $fileName = $this->fileName; if (strpos($fileName, '.xlsx') === false) $fileName .= '.xlsx'; } return $fileName; } /** * Setting properties for excel file * @param PHPExcel $objectExcel * @param array $properties */ public function properties(&$objectExcel, $properties = []) { foreach ($properties as $key => $value) { $keyname = "set" . ucfirst($key); $objectExcel->getProperties()->{$keyname}($value); } } /** * saving the xls file to download or to path */ public function writeFile($sheet) { if (!isset($this->format)) $this->format = 'Xlsx'; $objectwriter = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($sheet, $this->format); $path = 'php://output'; if (isset($this->savePath) && $this->savePath != null) { $path = $this->savePath . '/' . $this->getFileName(); } $objectwriter-><API key>($this-><API key>); $objectwriter-><API key>($this-><API key>); $objectwriter->save($path); if ($path == 'php://output') exit(); return true; } /** * reading the xls file */ public function readFile($fileName) { if (!isset($this->format)) $this->format = \PhpOffice\PhpSpreadsheet\IOFactory::identify($fileName); $objectreader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($this->format); if ($this->format == "Csv") { $objectreader->setDelimiter($this->CSVDelimiter); $objectreader->setInputEncoding($this->CSVEncoding); } $objectPhpExcel = $objectreader->load($fileName); $sheetCount = $objectPhpExcel->getSheetCount(); $sheetDatas = []; if ($sheetCount > 1) { foreach ($objectPhpExcel->getSheetNames() as $sheetIndex => $sheetName) { if (isset($this->getOnlySheet) && $this->getOnlySheet != null) { if(!$objectPhpExcel->getSheetByName($this->getOnlySheet)) { return $sheetDatas; } $objectPhpExcel-><API key>($this->getOnlySheet); $indexed = $this->getOnlySheet; $sheetDatas[$indexed] = $objectPhpExcel->getActiveSheet()->toArray(null, true, true, true); if ($this-><API key>) { $sheetDatas[$indexed] = $this->executeArrayLabel($sheetDatas[$indexed]); } if (!empty($this-><API key>)) { $sheetDatas[$indexed] = $this-><API key>($sheetDatas[$indexed], $this-><API key>); } if (!empty($this->leaveRecordByIndex)) { $sheetDatas[$indexed] = $this->executeLeaveRecords($sheetDatas[$indexed], $this->leaveRecordByIndex); } return $sheetDatas[$indexed]; } else { $objectPhpExcel-><API key>($sheetName); $indexed = $this->setIndexSheetByName==true ? $sheetName : $sheetIndex; $sheetDatas[$indexed] = $objectPhpExcel->getActiveSheet()->toArray(null, true, true, true); if ($this-><API key>) { $sheetDatas[$indexed] = $this->executeArrayLabel($sheetDatas[$indexed]); } if (!empty($this-><API key>) && isset($this-><API key>[$indexed]) && is_array($this-><API key>[$indexed])) { $sheetDatas = $this-><API key>($sheetDatas, $this-><API key>[$indexed]); } if (!empty($this->leaveRecordByIndex) && isset($this->leaveRecordByIndex[$indexed]) && is_array($this->leaveRecordByIndex[$indexed])) { $sheetDatas[$indexed] = $this->executeLeaveRecords($sheetDatas[$indexed], $this->leaveRecordByIndex[$indexed]); } } } } else { $sheetDatas = $objectPhpExcel->getActiveSheet()->toArray(null, true, true, true); if ($this-><API key>) { $sheetDatas = $this->executeArrayLabel($sheetDatas); } if (!empty($this-><API key>)) { $sheetDatas = $this-><API key>($sheetDatas, $this-><API key>); } if (!empty($this->leaveRecordByIndex)) { $sheetDatas = $this->executeLeaveRecords($sheetDatas, $this->leaveRecordByIndex); } } return $sheetDatas; } /** * (non-PHPdoc) * @see \yii\base\Widget::run() */ public function run() { if ($this->mode == 'export') { $sheet = new Spreadsheet(); if (!isset($this->models)) throw new <API key>('Config models must be set'); if (isset($this->properties)) { $this->properties($sheet, $this->properties); } if ($this->isMultipleSheet) { $index = 0; $worksheet = []; foreach ($this->models as $title => $models) { $sheet->createSheet($index); $sheet->getSheet($index)->setTitle($title); $worksheet[$index] = $sheet->getSheet($index); $columns = isset($this->columns[$title]) ? $this->columns[$title] : []; $headers = isset($this->headers[$title]) ? $this->headers[$title] : []; $this->executeColumns($worksheet[$index], $models, $this->populateColumns($columns), $headers); $index++; } } else { $worksheet = $sheet->getActiveSheet(); $this->executeColumns($worksheet, $this->models, isset($this->columns) ? $this->populateColumns($this->columns) : [], isset($this->headers) ? $this->headers : []); } if ($this->asAttachment) { $this->setHeaders(); } $this->writeFile($sheet); $sheet-><API key>(); unset($sheet); } elseif ($this->mode == 'import') { if (is_array($this->fileName)) { $datas = []; foreach ($this->fileName as $key => $filename) { $datas[$key] = $this->readFile($filename); } return $datas; } else { return $this->readFile($this->fileName); } } } /** * Exporting data into an excel file. * * ~~~ * * \moonland\phpexcel\Excel::export([ * 'models' => $allModels, * 'columns' => ['column1','column2','column3'], * //without header working, because the header will be get label from attribute label. * 'header' => ['column1' => 'Header Column 1','column2' => 'Header Column 2', 'column3' => 'Header Column 3'], * ]); * * ~~~ * * New Feature for exporting data, you can use this if you familiar yii gridview. * That is same with gridview data column. * Columns in array mode valid params are 'attribute', 'header', 'format', 'value', and footer (TODO). * Columns in string mode valid layout are 'attribute:format:header:footer(TODO)'. * * ~~~ * * \moonland\phpexcel\Excel::export([ * 'models' => Post::find()->all(), * 'columns' => [ * 'author.name:text:Author Name', * [ * 'attribute' => 'content', * 'header' => 'Content Post', * 'format' => 'text', * 'value' => function($model) { * return ExampleClass::removeText('example', $model->content); * }, * ], * 'like_it:text:Reader like this content', * 'created_at:datetime', * [ * 'attribute' => 'updated_at', * 'format' => 'date', * ], * ], * 'headers' => [ * 'created_at' => 'Date Created Content', * ], * ]); * * ~~~ * * @param array $config * @return string */ public static function export($config=[]) { $config = ArrayHelper::merge(['mode' => 'export'], $config); return self::widget($config); } /** * Import file excel and return into an array. * * ~~~ * * $data = \moonland\phpexcel\Excel::import($fileName, ['<API key>' => true]); * * ~~~ * * @param string!array $fileName to load. * @param array $config is a more configuration. * @return string */ public static function import($fileName, $config=[]) { $config = ArrayHelper::merge(['mode' => 'import', 'fileName' => $fileName, 'asArray' => true], $config); return self::widget($config); } /** * @param array $config * @return string */ public static function widget($config = []) { if ((isset($config['mode']) and $config['mode'] == 'import') && !isset($config['asArray'])) { $config['asArray'] = true; } if (isset($config['asArray']) && $config['asArray']==true) { $config['class'] = get_called_class(); $widget = \Yii::createObject($config); return $widget->run(); } else { return parent::widget($config); } } }
module Text class Sorter def self.sort(text_components) components = text_components.clone components = components.shuffle nil_priorities, components = components.partition {|c| c.priority.nil? } components = components.sort_by(&:priority_index) components = components.reverse components = components + nil_priorities end end end
<?php require_once('../../global_functions.php'); require_once('../../connections/parameters.php'); try { if (!isset($_SESSION)) { session_start(); } $s2_response = array(); $db = new dbWrapper_v3($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true); if (empty($db)) throw new Exception('No DB!'); $memcached = new Cache(NULL, NULL, $localDev); checkLogin_v2(); if (empty($_SESSION['user_id64'])) throw new Exception('Not logged in!'); //Check if logged in user is an admin $adminCheck = adminCheck($_SESSION['user_id64'], 'admin'); $steamIDmanipulator = new SteamID($_SESSION['user_id64']); $steamID32 = $steamIDmanipulator->getsteamID32(); $steamID64 = $steamIDmanipulator->getsteamID64(); if ( empty($_POST['mod_workshop_link']) || empty($_POST['mod_contact_address']) ) { throw new Exception('Missing or invalid required parameter(s)!'); } if (!filter_var($_POST['mod_contact_address'], <API key>)) { throw new Exception('Invalid email address!'); } else { $db->q( 'INSERT INTO `gds_users_options` ( `user_id32`, `user_id64`, `user_email`, `sub_dev_news`, `date_updated`, `date_recorded` ) VALUES ( ?, ?, ?, 1, NULL, NULL ) ON DUPLICATE KEY UPDATE `user_email` = VALUES(`user_email`), `sub_dev_news` = VALUES(`sub_dev_news`);', 'sss', array( $steamID32, $steamID64, $_POST['mod_contact_address'] ) ); } $steamAPI = new steam_webapi($api_key1); if (!stristr($_POST['mod_workshop_link'], 'steamcommunity.com/sharedfiles/filedetails/?id=')) { throw new Exception('Bad workshop link'); } $modWork = htmlentities(rtrim(rtrim(cut_str($_POST['mod_workshop_link'], 'steamcommunity.com/sharedfiles/filedetails/?id='), '/'), '&searchtext=')); $mod_details = $steamAPI-><API key>($modWork); if ($mod_details['response']['result'] != 1) { throw new Exception('Bad steam response. API probably down.'); } $modName = !empty($mod_details['response']['<API key>'][0]['title']) ? htmlentities($mod_details['response']['<API key>'][0]['title']) : 'UNKNOWN MOD NAME'; $modDesc = !empty($mod_details['response']['<API key>'][0]['description']) ? htmlentities($mod_details['response']['<API key>'][0]['description']) : 'UNKNOWN MOD DESCRIPTION'; $modOwner = !empty($mod_details['response']['<API key>'][0]['creator']) ? htmlentities($mod_details['response']['<API key>'][0]['creator']) : '-1'; $modApp = !empty($mod_details['response']['<API key>'][0]['consumer_app_id']) ? htmlentities($mod_details['response']['<API key>'][0]['consumer_app_id']) : '-1'; if ($_SESSION['user_id64'] != $modOwner && !$adminCheck) { throw new Exception('Insufficient privilege to add this mod. Login as the mod developer or contact admins via <strong><a class="boldGreenText" href="https://github.com/GetDotaStats/stat-collection/issues" target="_blank">issue tracker</a></strong>!'); } if ($modApp != 570) { throw new Exception('Mod is not for Dota2.'); } if (!empty($_POST['mod_steam_group']) && stristr($_POST['mod_steam_group'], 'steamcommunity.com/groups/')) { $modGroup = htmlentities(rtrim(cut_str($_POST['mod_steam_group'], 'groups/'), '/')); } else { $modGroup = NULL; } $insertSQL = $db->q( 'INSERT INTO `mod_list` (`steam_id64`, `mod_identifier`, `mod_name`, `mod_description`, `mod_workshop_link`, `mod_steam_group`) VALUES (?, ?, ?, ?, ?, ?);', 'ssssss', //STUPID x64 windows PHP is actually x86 array( $modOwner, md5($modName . time()), $modName, $modDesc, $modWork, $modGroup, ) ); if ($insertSQL) { $modID = $db->last_index(); $json_response['result'] = 'Success! Found mod and added to DB for approval as #' . $modID; $db->q( 'INSERT INTO `mod_list_owners` (`mod_id`, `steam_id64`) VALUES (?, ?);', 'is', //STUPID x64 windows PHP is actually x86 array( $modID, $modOwner, ) ); updateUserDetails($modOwner, $api_key2); $irc_message = new irc_message($<API key>); $message = array( array( $irc_message->colour_generator('red'), '[ADMIN]', $irc_message->colour_generator(NULL), ), array( $irc_message->colour_generator('green'), '[MOD]', $irc_message->colour_generator(NULL), ), array( $irc_message->colour_generator('bold'), $irc_message->colour_generator('blue'), 'Pending approval:', $irc_message->colour_generator(NULL), $irc_message->colour_generator('bold'), ), array( $irc_message->colour_generator('orange'), '{' . $modID . '}', $irc_message->colour_generator(NULL), ), array($modName), array(' || http://getdotastats.com/#admin__mod_approve'), ); $message = $irc_message->combine_message($message); $irc_message->post_message($message, array('localDev' => $localDev)); } else { $json_response['error'] = 'Mod not added to database. Failed to add mod for approval.'; } } catch (Exception $e) { $json_response['error'] = 'Caught Exception: ' . $e->getMessage(); } finally { if (isset($memcached)) $memcached->close(); if (!isset($json_response)) $json_response = array('error' => 'Unknown exception'); } try { header('Content-Type: application/json'); echo utf8_encode(json_encode($json_response)); } catch (Exception $e) { unset($json_response); $json_response['error'] = 'Caught Exception: ' . $e->getMessage(); echo utf8_encode(json_encode($json_response)); }
module Prawn module Charts class Bar < Base attr_accessor :ratio def initialize pdf, opts = {} super pdf, opts @ratio = opts[:ratio] || 0.75 end def plot_values return if series.nil? series.each_with_index do |bar,index| point_x = first_x_point index bar[:values].each do |h| fill_color bar[:color] fill do height = value_height(h[:value]) rectangle [point_x,height], bar_width, height end point_x += additional_points end end end def first_x_point index (bar_width * index) + (bar_space * (index + 1)) end def additional_points (bar_space + bar_width) * series.count end def x_points points = nil series.each_with_index do |bar,index| tmp = [] tmp << first_x_point(index) + (bar_width / 2) bar[:values].each do |h| tmp << tmp.last + additional_points end points ||= [0] * tmp.length tmp.each_with_index do |point, i| points[i] += point end end points.map do |point| (point / series.count).to_i end end def bar_width @bar_width ||= (bounds.width * ratio) / series_length.to_f end def bar_space @bar_space ||= (bounds.width * (1.0 - ratio)) / (series_length + 1).to_f end def series_length series.map { |v| v[:values].length }.max * series.count end def value_height val bounds.height * ((val - min_value) / series_height.to_f) end end end end
<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="twitter:card" content="summary" /> <meta name="twitter:creator" content="@"/> <meta name="twitter:title" content="sam"/> <meta name="<TwitterConsumerkey>" content=" &amp;nbsp;&amp;bull;&amp;nbsp; "/> <meta name="twitter:image" content="http: <meta name="author" content=""> <meta name="description" content=" &amp;nbsp;&amp;bull;&amp;nbsp; "> <meta name="generator" content="Hugo 0.41" /> <title>Msbuild &middot; sam</title> <link rel="shortcut icon" href="http: <link rel="stylesheet" href="http: <link rel="stylesheet" href="http: <link rel="stylesheet" href="http: <link href="http: </head> <body> <nav class="main-nav"> <a href='http: <a href='http: <a href='http: <a href='http: <a class="cta" href="http: </nav> <div class="profile"> <section id="wrapper"> <header id="header"> <a href='http: <img id="avatar" class="2x" src="http: </a> <h1>sam</h1> <h2> &amp; </h2> </header> </section> </div> <section id="wrapper" class="home"> <div class="archive"> <h3>2015</h3> <ul> <div class="post-item"> <div class="post-time">Jul 1</div> <a href="http: msbuild </a> </div> </ul> </div> <footer id="footer"> <div id="social"> <a class="symbol" href=""> <i class="fa fa-facebook-square"></i> </a> <a class="symbol" href="https://github.com/samrain"> <i class="fa fa-github-square"></i> </a> <a class="symbol" href=""> <i class="fa fa-twitter-square"></i> </a> </div> <p class="small"> © Copyright 2018 <i class="fa fa-heart" aria-hidden="true"></i> </p> <p class="small"> Powered by <a href="http: </p> </footer> </section> <div class="dd"> </div> <script src="http: <script src="http: <script src="http: <script>hljs.<API key>();</script> <script> var doNotTrack = false; if (!doNotTrack) { (function(i,s,o,g,r,a,m){i['<API key>']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.<API key>(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https: ga('create', 'UA-37708730-1', 'auto'); ga('send', 'pageview'); } </script> </body> </html>
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) --> <!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca --> <head> <title> Industries Chic Inc. - Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada </title> <!-- Title ends / Fin du titre --> <meta charset="utf-8" /> <meta name="dcterms.language" title="ISO639-2" content="eng" /> <meta name="dcterms.title" content="" /> <meta name="description" content="" /> <meta name="dcterms.description" content="" /> <meta name="dcterms.type" content="report, data set" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.subject" content="businesses, industry" /> <meta name="dcterms.issued" title="W3CDTF" content="" /> <meta name="dcterms.modified" title="W3CDTF" content="" /> <meta name="keywords" content="" /> <meta name="dcterms.creator" content="" /> <meta name="author" content="" /> <meta name="dcterms.created" title="W3CDTF" content="" /> <meta name="dcterms.publisher" content="" /> <meta name="dcterms.audience" title="icaudience" content="" /> <meta name="dcterms.spatial" title="ISO3166-1" content="" /> <meta name="dcterms.spatial" title="gcgeonames" content="" /> <meta name="dcterms.format" content="HTML" /> <meta name="dcterms.identifier" title="ICsiteProduct" content="536" /> <!-- EPI-11240 --> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- MCG-202 --> <meta content="width=device-width,initial-scale=1" name="viewport"> <!-- EPI-11567 --> <meta name = "format-detection" content = "telephone=no"> <!-- EPI-12603 --> <meta name="robots" content="noarchive"> <!-- EPI-11190 - Webtrends --> <script> var startTime = new Date(); startTime = startTime.getTime(); </script> <!--[if gte IE 9 | !IE ]><!--> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon"> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css"> <!--<![endif]--> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css"> <!--[if lt IE 9]> <link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" /> <link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script> <![endif] <!--[if lte IE 9]> <![endif] <noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <script>dataLayer1 = [];</script> <!-- End Google Tag Manager --> <!-- EPI-11235 --> <link rel="stylesheet" href="/eic/home.nsf/css/<API key>.css"> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" /> </head> <body class="home" vocab="http://schema.org/" typeof="WebPage"> <!-- EPIC HEADER BEGIN --> <!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER --> <noscript><iframe title="Google Tag Manager" src=" <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.<API key>(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src=' <!-- End Google Tag Manager --> <!-- EPI-12801 --> <span typeof="Organization"><meta property="legalName" content="<API key>"></span> <ul id="wb-tphp"> <li class="wb-slc"> <a class="wb-sl" href="#wb-cont">Skip to main content</a> </li> <li class="wb-slc visible-sm visible-md visible-lg"> <a class="wb-sl" href="#wb-info">Skip to "About this site"</a> </li> </ul> <header role="banner"> <div id="wb-bnr" class="container"> <section id="wb-lng" class="visible-md visible-lg text-right"> <h2 class="wb-inv">Language selection</h2> <div class="row"> <div class="col-md-12"> <ul class="list-inline mrgn-bttm-0"> <li><a href="nvgt.do?V_TOKEN=1492293427443&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=22941&V_SEARCH.docsStart=22940&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn </ul> </div> </div> </section> <div class="row"> <div class="brand col-xs-8 col-sm-9 col-md-6"> <a href="http: </div> <section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn"> <h2>Search and menus</h2> <ul class="list-inline text-right chvrn"> <li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li> </ul> <div id="mb-pnl"></div> </section> <!-- Site Search Removed --> </div> </div> <nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="<API key>"> <h2 class="wb-inv">Topics menu</h2> <div class="container nvbar"> <div class="row"> <ul class="list-inline menu"> <li><a href="https: <li><a href="http: <li><a href="https://travel.gc.ca/">Travel</a></li> <li><a href="https: <li><a href="https: <li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li> <li><a href="https: <li><a href="https: </ul> </div> </div> </nav> <!-- EPIC BODY BEGIN --> <nav role="navigation" id="wb-bc" class="" property="breadcrumb"> <h2 class="wb-inv">You are here:</h2> <div class="container"> <div class="row"> <ol class="breadcrumb"> <li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li> <li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li> <li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li> </ol> </div> </div> </nav> </header> <main id="wb-cont" role="main" property="mainContentOfPage" class="container"> <!-- End Header --> <!-- Begin Body --> <!-- Begin Body Title --> <!-- End Body Title --> <!-- Begin Body Head --> <!-- End Body Head --> <!-- Begin Body Content --> <br> <!-- Complete Profile --> <!-- Company Information above tabbed area--> <input id="showMore" type="hidden" value='more'/> <input id="showLess" type="hidden" value='less'/> <h1 id="wb-cont"> Company profile - Canadian Company Capabilities </h1> <div class="profileInfo hidden-print"> <ul class="list-inline"> <li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&amp;rstBtn.x=" class="btn btn-link">New Search</a>&nbsp;|</li> <li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do"> <input type="hidden" name="lang" value="eng" /> <input type="hidden" name="profileId" value="" /> <input type="hidden" name="prtl" value="1" /> <input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" /> <input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" /> <input type="hidden" name="V_SEARCH.depth" value="1" /> <input type="hidden" name="V_SEARCH.showStricts" value="false" /> <input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" /> </form></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=22939&amp;V_DOCUMENT.docRank=22940&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492293448527&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=123456009329&amp;profileId=&amp;key.newSearchLabel=">Previous Company</a></li> <li>|&nbsp;<a href="nvgt.do?V_SEARCH.docsStart=22941&amp;V_DOCUMENT.docRank=22942&amp;V_SEARCH.docsCount=3&amp;lang=eng&amp;prtl=1&amp;sbPrtl=&amp;profile=cmpltPrfl&amp;V_TOKEN=1492293448527&amp;V_SEARCH.command=navigate&amp;V_SEARCH.resultsJSP=%2fprfl.do&amp;estblmntNo=234567032347&amp;profileId=&amp;key.newSearchLabel=">Next Company</a></li> </ul> </div> <details> <summary>Third-Party Information Liability Disclaimer</summary> <p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p> </details> <h2> Industries Chic Inc. </h2> <div class="row"> <div class="col-md-5"> <h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2> <p>Industries Chic Inc.</p> <div class="mrgn-tp-md"></div> <p class="mrgn-bttm-0" ><a href="http: target="_blank" title="Website URL">http: <p><a href="mailto:ind.chic@videotron.ca" title="ind.chic@videotron.ca">ind.chic@videotron.ca</a></p> </div> <div class="col-md-4 mrgn-sm-sm"> <h2 class="h5 mrgn-bttm-0">Mailing Address:</h2> <address class="mrgn-bttm-md"> 3214, route 170<br/> LATERRIÈRE, Quebec<br/> G7N 1A9 <br/> </address> <h2 class="h5 mrgn-bttm-0">Location Address:</h2> <address class="mrgn-bttm-md"> 3214, route 170<br/> LATERRIÈRE, Quebec<br/> G7N 1A9 <br/> </address> <p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>: (418) 549-5027 </p> <p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>: (418) 678-2248</p> </div> <div class="col-md-3 mrgn-tp-md"> </div> </div> <div class="row mrgn-tp-md mrgn-bttm-md"> <div class="col-md-12"> </div> </div> <!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> --> <div class="wb-tabs ignore-session"> <div class="tabpanels"> <details id="details-panel1"> <summary> Full profile </summary> <!-- Tab 1 --> <h2 class="wb-invisible"> Full profile </h2> <!-- Contact Information --> <h3 class="page-header"> Contact information </h3> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> DENIS LAROUCHE </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title Director </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Company Description --> <h3 class="page-header"> Company description </h3> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Country of Ownership: </strong> </div> <div class="col-md-7"> Canada &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> No &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Industry (NAICS): </strong> </div> <div class="col-md-7"> 332710 - Machine Shops </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Manufacturer / Processor / Producer &nbsp; </div> </div> </section> <!-- Products / Services / Licensing --> <h3 class="page-header"> Product / Service / Licensing </h3> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> USINAGE <br> </div> </div> </section> <p class="mrgn-tp-lg text-right small hidden-print"> <a href="#wb-cont">top of page</a> </p> <!-- Technology Profile --> <!-- Market Profile --> <!-- Sector Information --> <details class="mrgn-tp-md mrgn-bttm-md"> <summary> Third-Party Information Liability Disclaimer </summary> <p> Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements. </p> </details> </details> <details id="details-panel2"> <summary> Contacts </summary> <h2 class="wb-invisible"> Contact information </h2> <!-- Contact Information --> <section class="container-fluid"> <div class="row mrgn-tp-lg"> <div class="col-md-3"> <strong> DENIS LAROUCHE </strong></div> </div> <div class="row mrgn-lft-md"> <div class="col-md-5"> <strong> Title: </strong> </div> <div class="col-md-7"> <!--if client gender is not null or empty we use gender based job title Director </div> </div> </section> </details> <details id="details-panel3"> <summary> Description </summary> <h2 class="wb-invisible"> Company description </h2> <section class="container-fluid"> <div class="row"> <div class="col-md-5"> <strong> Country of Ownership: </strong> </div> <div class="col-md-7"> Canada &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Exporting: </strong> </div> <div class="col-md-7"> No &nbsp; </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Industry (NAICS): </strong> </div> <div class="col-md-7"> 332710 - Machine Shops </div> </div> <div class="row"> <div class="col-md-5"> <strong> Primary Business Activity: </strong> </div> <div class="col-md-7"> Manufacturer / Processor / Producer &nbsp; </div> </div> </section> </details> <details id="details-panel4"> <summary> Products, services and licensing </summary> <h2 class="wb-invisible"> Product / Service / Licensing </h2> <section class="container-fluid"> <div class="row mrgn-bttm-md"> <div class="col-md-3"> <strong> Product Name: </strong> </div> <div class="col-md-9"> USINAGE <br> </div> </div> </section> </details> </div> </div> <div class="row"> <div class="col-md-12 text-right"> Last Update Date 2016-03-10 </div> </div> <! - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z <!-- End Body Content --> <!-- Begin Body Foot --> <!-- End Body Foot --> <!-- END MAIN TABLE --> <!-- End body --> <!-- Begin footer --> <div class="row pagedetails"> <div class="col-sm-5 col-xs-12 datemod"> <dl id="wb-dtmd"> <dt class=" hidden-print">Date Modified:</dt> <dd class=" hidden-print"> <span><time>2017-03-02</time></span> </dd> </dl> </div> <div class="clear visible-xs"></div> <div class="col-sm-4 col-xs-6"> </div> <div class="col-sm-3 col-xs-6 text-right"> </div> <div class="clear visible-xs"></div> </div> </main> <footer role="contentinfo" id="wb-info"> <nav role="navigation" class="container wb-navcurr"> <h2 class="wb-inv">About government</h2> <!-- EPIC FOOTER BEGIN --> <!-- EPI-11638 Contact us --> <ul class="list-unstyled colcount-sm-2 colcount-md-3"> <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&amp;from=Industries">Contact us</a></li> <li><a href="https: <li><a href="https: <li><a href="https: <li><a href="https: <li><a href="https: <li><a href="http://pm.gc.ca/eng">Prime Minister</a></li> <li><a href="https: <li><a href="http://open.canada.ca/en/">Open government</a></li> </ul> </nav> <div class="brand"> <div class="container"> <div class="row"> <nav class="col-md-10 ftr-urlt-lnk"> <h2 class="wb-inv">About this site</h2> <ul> <li><a href="https: <li><a href="https: <li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li> <li><a href="http: <li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li> </ul> </nav> <div class="col-xs-6 visible-sm visible-xs tofpg"> <a href="#wb-cont">Top of Page <span class="glyphicon <API key>"></span></a> </div> <div class="col-xs-6 col-md-2 text-right"> <object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object> </div> </div> </div> </div> </footer> <!--[if gte IE 9 | !IE ]><!--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script> <![endif] <script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script> <!-- EPI-10519 --> <span class="wb-sessto" data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span> <script src="/eic/home.nsf/js/jQuery.<API key>.js"></script> <!-- EPI-11190 - Webtrends --> <script src="/eic/home.nsf/js/webtrends.js"></script> <script>var endTime = new Date();</script> <noscript> <div><img alt="" id="DCSIMG" width="1" height="1" src=" </noscript> <!-- /Webtrends --> <!-- JS deps --> <script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script> <!-- EPI-11262 - Util JS --> <script src="/eic/home.nsf/js/<API key>.min.js"></script> <!-- EPI-11383 --> <script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script> <span style="display:none;" id='app-info' <API key>='' <API key>='' <API key>='' <API key>='' data-issue-tracking='' data-scm-sha1='' <API key>='' data-scm-branch='' <API key>=''></span> </body></html> <!-- End Footer --> <! - Artifact ID: CBW - IMBS - CCC Search WAR - Group ID: ca.gc.ic.strategis.imbs.ccc.search - Version: 3.26 - Built-By: bamboo - Build Timestamp: 2017-03-02T21:29:28Z
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paco: 3 m 36 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.9.0 / paco - 2.0.3</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> paco <small> 2.0.3 <span class="label label-success">3 m 36 s </span> </small> </h1> <p> <em><script>document.write(moment("2022-01-10 01:57:47 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-10 01:57:47 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 1 Virtual package relying on perl coq 8.9.0 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.04.2 The OCaml compiler (virtual package) ocaml-base-compiler 4.04.2 Official 4.04.2 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;paco@sf.snu.ac.kr&quot; version: &quot;2.0.3&quot; homepage: &quot;https://github.com/snu-sf/paco/&quot; dev-repo: &quot;git+https://github.com/snu-sf/paco.git&quot; bug-reports: &quot;https://github.com/snu-sf/paco/issues/&quot; authors: [ &quot;Chung-Kil Hur &lt;gil.hur@sf.snu.ac.kr&gt;&quot; &quot;Georg Neis &lt;neis@mpi-sws.org&gt;&quot; &quot;Derek Dreyer &lt;dreyer@mpi-sws.org&gt;&quot; &quot;Viktor Vafeiadis &lt;viktor@mpi-sws.org&gt;&quot; ] license: &quot;BSD-3&quot; build: [ [make &quot;-C&quot; &quot;src&quot; &quot;all&quot; &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;-C&quot; &quot;src&quot; &quot;-f&quot; &quot;Makefile.coq&quot; &quot;install&quot;] ] remove: [&quot;rm&quot; &quot;-r&quot; &quot;-f&quot; &quot;%{lib}%/coq/user-contrib/Paco&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.6&quot; &amp; &lt; &quot;8.10&quot;} ] synopsis: &quot;Coq library implementing parameterized coinduction&quot; tags: [ &quot;date:2018-02-11&quot; &quot;category:Computer Science/Programming Languages/Formal Definitions and Theory&quot; &quot;category:Mathematics/Logic&quot; &quot;keyword:co-induction&quot; &quot;keyword:simulation&quot; &quot;keyword:parameterized greatest fixed point&quot; ] flags: light-uninstall url { src: &quot;https://github.com/snu-sf/paco/archive/v2.0.3.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-paco.2.0.3 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-paco.2.0.3 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>11 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-paco.2.0.3 coq.8.9.0</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>3 m 36 s</dd> </dl> <h2>Installation size</h2> <p>Total: 13 M</p> <ul> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18_upto.vo</code></li> <li>1 M <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17_upto.vo</code></li> <li>964 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16_upto.vo</code></li> <li>817 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15_upto.vo</code></li> <li>710 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14_upto.vo</code></li> <li>611 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13_upto.vo</code></li> <li>527 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12_upto.vo</code></li> <li>457 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11_upto.vo</code></li> <li>392 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10_upto.vo</code></li> <li>334 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9_upto.vo</code></li> <li>318 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotac.vo</code></li> <li>281 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8_upto.vo</code></li> <li>233 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7_upto.vo</code></li> <li>228 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18.vo</code></li> <li>213 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/<API key>.vo</code></li> <li>209 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17.vo</code></li> <li>191 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16.vo</code></li> <li>191 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6_upto.vo</code></li> <li>174 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15.vo</code></li> <li>158 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14.vo</code></li> <li>154 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5_upto.vo</code></li> <li>142 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13.vo</code></li> <li>128 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12.vo</code></li> <li>123 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4_upto.vo</code></li> <li>115 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11.vo</code></li> <li>114 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation.vo</code></li> <li>113 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/examples.vo</code></li> <li>105 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation.glob</code></li> <li>102 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10.vo</code></li> <li>96 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3_upto.vo</code></li> <li>92 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18.glob</code></li> <li>90 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9.vo</code></li> <li>84 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17.glob</code></li> <li>80 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18_upto.glob</code></li> <li>79 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8.vo</code></li> <li>77 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16.glob</code></li> <li>72 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17_upto.glob</code></li> <li>72 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2_upto.vo</code></li> <li>71 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/tutorial.vo</code></li> <li>70 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15.glob</code></li> <li>69 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7.vo</code></li> <li>66 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16_upto.glob</code></li> <li>64 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14.glob</code></li> <li>61 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/<API key>.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15_upto.glob</code></li> <li>60 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6.vo</code></li> <li>59 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13.glob</code></li> <li>57 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotac.v</code></li> <li>55 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14_upto.glob</code></li> <li>54 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12.glob</code></li> <li>54 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1_upto.vo</code></li> <li>51 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5.vo</code></li> <li>50 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13_upto.glob</code></li> <li>50 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11.glob</code></li> <li>46 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12_upto.glob</code></li> <li>46 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10.glob</code></li> <li>43 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4.vo</code></li> <li>42 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11_upto.glob</code></li> <li>41 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotac.glob</code></li> <li>40 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9.glob</code></li> <li>39 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10_upto.glob</code></li> <li>38 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0_upto.vo</code></li> <li>37 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8.glob</code></li> <li>36 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3.vo</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9_upto.glob</code></li> <li>35 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8_upto.glob</code></li> <li>32 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7_upto.glob</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2.vo</code></li> <li>30 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5.glob</code></li> <li>28 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6_upto.glob</code></li> <li>28 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4.glob</code></li> <li>27 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5_upto.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3.glob</code></li> <li>26 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/tutorial.glob</code></li> <li>25 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4_upto.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1.vo</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/tutorial.v</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3_upto.glob</code></li> <li>24 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2.glob</code></li> <li>23 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2_upto.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1.glob</code></li> <li>22 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1_upto.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0_upto.glob</code></li> <li>21 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/examples.glob</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paconotation.v</code></li> <li>19 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0.vo</code></li> <li>18 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacon.vo</code></li> <li>17 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18_upto.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco18.v</code></li> <li>16 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17_upto.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16_upto.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco17.v</code></li> <li>15 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15_upto.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco16.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotacuser.vo</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14_upto.v</code></li> <li>14 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13_upto.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/hpattern.vo</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco15.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/<API key>.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12_upto.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco14.v</code></li> <li>13 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11_upto.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10_upto.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco13.v</code></li> <li>12 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco12.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6_upto.v</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacon.glob</code></li> <li>11 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco11.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco10.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1_upto.v</code></li> <li>10 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0_upto.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco9.v</code></li> <li>9 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco8.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/examples.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco7.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco6.v</code></li> <li>8 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco5.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco4.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco3.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco2.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco1.v</code></li> <li>7 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco0.v</code></li> <li>5 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco.vo</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/hpattern.v</code></li> <li>4 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacon.v</code></li> <li>3 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotacuser.v</code></li> <li>2 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/pacotacuser.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco.glob</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/paco.v</code></li> <li>1 K <code>../ocaml-base-compiler.4.04.2/lib/coq/user-contrib/Paco/hpattern.glob</code></li> </ul> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq-paco.2.0.3</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
package com.swfarm.biz.product.dao.impl; import com.swfarm.biz.product.bo.SkuSaleMapping; import com.swfarm.biz.product.dao.SkuSaleMappingDao; import com.swfarm.pub.framework.dao.<API key>; public class <API key> extends <API key><SkuSaleMapping, Long> implements SkuSaleMappingDao { public <API key>(Class<SkuSaleMapping> type) { super(type); } }
<?php namespace AppBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\<API key>; class ProfileFormType extends AbstractType { public function buildForm(<API key> $builder, array $options) { $builder->add('name'); } public function getParent() { return 'FOS\UserBundle\Form\Type\ProfileFormType'; } public function getBlockPrefix() { return 'app_user_profile'; } // For Symfony 2.x public function getName() { return $this->getBlockPrefix(); } }
using Nethereum.Generators.Model; using Nethereum.Generators.Net; namespace Nethereum.Generator.Console.Models { public class ContractDefinition { public string ContractName { get; set; } public ContractABI Abi { get; set; } public string Bytecode { get; set; } public ContractDefinition(string abi) { Abi = new <API key>().DeserialiseABI(abi); } } }
'use strict'; module.exports = require('./toPairsIn'); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2VudHJpZXNJbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCxHQUFpQixRQUFRLGFBQVIsQ0FBakIiLCJmaWxlIjoiZW50cmllc0luLmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSByZXF1aXJlKCcuL3RvUGFpcnNJbicpO1xuIl19
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # 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. configuration Sample_PSModule { param ( #Target nodes to apply the configuration [string[]]$NodeName = 'localhost', #The name of the module [Parameter(Mandatory)] [string]$Name, #The required version of the module [string]$RequiredVersion, #Repository name [string]$Repository, #Whether you trust the repository [string]$InstallationPolicy ) Import-DscResource -Module <API key> Node $NodeName { #Install a package from the Powershell gallery PSModule MyPSModule { Ensure = "present" Name = $Name RequiredVersion = "0.2.16.3" Repository = "PSGallery" InstallationPolicy="trusted" } } } #Compile it Sample_PSModule -Name "xjea" #Run it <API key> -path .\Sample_PSModule -wait -Verbose -force
package com.manniwood.cl4pg.v1.test.types; import com.manniwood.cl4pg.v1.datasourceadapters.DataSourceAdapter; import com.manniwood.cl4pg.v1.PgSession; import com.manniwood.cl4pg.v1.datasourceadapters.<API key>; import com.manniwood.cl4pg.v1.commands.DDL; import com.manniwood.cl4pg.v1.commands.Insert; import com.manniwood.cl4pg.v1.commands.Select; import com.manniwood.cl4pg.v1.resultsethandlers.<API key>; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; /** * Please note that these tests must be run serially, and not all at once. * Although they depend as little as possible on state in the database, it is * very convenient to have them all use the same db session; so they are all run * one after the other so that they don't all trip over each other. * * @author mwood * */ public class IntegerSmallIntTest { private PgSession pgSession; private DataSourceAdapter adapter; @BeforeClass public void init() { adapter = <API key>.<API key>(); pgSession = adapter.getSession(); pgSession.run(DDL.config().sql("create temporary table test(col smallint)").done()); pgSession.commit(); } @AfterClass public void tearDown() { pgSession.close(); adapter.close(); } /** * Truncate the users table before each test. */ @BeforeMethod public void truncateTable() { pgSession.run(DDL.config().sql("truncate table test").done()); pgSession.commit(); } @Test(priority = 1) public void testValue() { Integer expected = 3; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); <API key><Integer> handler = new <API key><Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } @Test(priority = 2) public void testNull() { Integer expected = null; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); <API key><Integer> handler = new <API key><Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } @Test(priority = 3) public void testSpecialValue1() { Integer expected = 32767; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); <API key><Integer> handler = new <API key><Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } @Test(priority = 4) public void testSpecialValu21() { Integer expected = -32768; pgSession.run(Insert.usingVariadicArgs() .sql("insert into test (col) values (#{java.lang.Integer})") .args(expected) .done()); pgSession.commit(); <API key><Integer> handler = new <API key><Integer>(); pgSession.run(Select.<Integer> usingVariadicArgs() .sql("select col from test limit 1") .resultSetHandler(handler) .done()); pgSession.rollback(); Integer actual = handler.getList().get(0); Assert.assertEquals(actual, expected, "scalars must match"); } }
package com.fqc.jdk8; import java.util.ArrayList; import java.util.Arrays; import java.util.Map; import java.util.Set; import java.util.stream.Collectors; public class test06 { public static void main(String[] args) { int[] arr = {1, 2, 3, 4, 5}; ArrayList<Integer> list = Arrays.stream(arr).collect(ArrayList::new, ArrayList::add, ArrayList::addAll); Set<Integer> set = list.stream().collect(Collectors.toSet()); System.out.println(set.contains(33)); ArrayList<User> users = new ArrayList<>(); for (int i = 0; i < 10; i++) { users.add(new User("name:" + i)); } Map<String, User> map = users.stream().collect(Collectors.toMap(u -> u.username, u -> u)); map.forEach((s, user) -> System.out.println(user.username)); } } class User { String username; public User(String username) { this.username = username; } }
# gofmt package An [Atom](http://atom.io) package for running `gofmt` on your buffer. Hit Ctrl-Alt-G to run it on the current file, or use command `gofmt:gofmt`, or remap to whatever keybinding you like. TODO: * Error highlighting * Flexible configuration Copyright 2014 Christopher Swenson. Licensed under the MIT License (see [LICENSE.md](LICENSE.md)).
USE [ANTERO] GO DROP VIEW IF EXISTS [dw].[<API key>] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dw].[<API key>] AS SELECT -- AIKAMUUTTUJAT [Tilastovuosi] ,[Tilastokuukausi] = d14.kuukausi_fi ,[pv_kk] = DAY(EOMONTH(d14.paivays)) ,opiskelijat_netto = opiskelijat ,[Sukupuoli] = d1.sukupuoli_fi ,[Äidinkieli] = d2.kieliryhma1_fi ,[Ikä] = CASE WHEN d3.ika_avain < 15 THEN 'alle 15 vuotta' WHEN d3.ika_avain > 70 THEN 'yli 70 vuotta' ELSE d3.ika_fi END ,[Ikäryhmä] = d3.ikaryhma3_fi ,[Kansalaisuus] = CASE WHEN d22.<API key> = '246' THEN d22.maatjavaltiot2_fi WHEN d22.<API key> != '-1' THEN 'Muu' ELSE 'Tieto puuttuu' END ,[Kansalaisuus (maanosa)] = d22.maanosa0_fi -- KOULUTUSMUUTTUJAT ,[Suorituskieli] = d23.kieli_fi ,[Majoitus] = d15.majoitus_nimi_fi ,oppimaara AS Oppimäärä ,tavoitetutkinto AS Tavoitetutkinto ,koulutus AS Koulutus -- <API key> ,[Oppilaitos] = d5.organisaatio_fi ,[Koulutuksen järjestäjä] = d11.organisaatio_fi ,[Toimipiste] = d21.organisaatio_fi ,[Oppilaitoksen kunta] = d10.kunta_fi ,[Oppilaitoksen maakunta] = d10.maakunta_fi ,d10.seutukunta_fi AS [Oppilaitoksen seutukunta] ,d10.kuntaryhma_fi AS [Oppilaitoksen kuntaryhmä] ,d10.kielisuhde_fi AS [Oppilaitoksen kunnan kielisuhde] ,[Oppilaitoksen AVI] = d10.avi_fi ,[Oppilaitoksen ELY] = d10.ely_fi ,[Oppilaitoksen opetuskieli] = d5.<API key> ,[Oppilaitostyyppi] = d5.oppilaitostyyppi_fi ,[Koul. järj. kunta] = d12.kunta_fi ,[Koul. järj. maakunta] = d12.maakunta_fi ,[Koul. järj. ELY] = d12.ely_fi ,[Koul. järj. AVI] = d12.avi_fi ,d11.<API key> AS [Koul. järj. omistajatyyppi] ,d12.seutukunta_fi AS [Koul. järj. seutukunta] ,d12.kuntaryhma_fi AS [Koul. järj. kuntaryhmä] ,d12.kielisuhde_fi AS [Koul. jarj. kunnan kielisuhde] -- KOODIT ,[Koodit Koulutuksen järjestäjä] = d11.organisaatio_koodi ,[Koodit Oppilaitos] = d5.organisaatio_koodi ,d12.kunta_koodi AS [Koodi Koul. järj. kunta] ,d12.seutukunta_koodi AS [Koodi Koul. järj. seutukunta] ,d10.kunta_koodi AS [Koodi Oppilaitoksen kunta] ,d10.seutukunta_koodi AS [Koodi Oppilaitoksen seutukunta] ,jarj_ika = CASE WHEN d3.ika_avain = -1 THEN 99 WHEN d3.ika_avain < 15 THEN 1 WHEN d3.ika_avain > 70 THEN 71 ELSE d3.jarjestys_ika END ,d14.kuukausi AS <API key> ,d1.<API key> AS jarj_sukupuoli ,d3.jarjestys_ikaryhma3 AS jarj_ikaryhma ,d2.<API key> AS jarj_aidinkieli ,CASE d22.maatjavaltiot2_fi WHEN 'Suomi' THEN 1 ELSE 2 END AS jarj_kansalaisuus ,jarj_koulutus ,jarj_oppimaara ,<API key> ,d12.<API key> AS <API key> ,d12.jarjestys_avi_koodi AS jarj_koul_jarj_avi ,d12.jarjestys_ely_koodi AS jarj_koul_jarj_ely ,d10.<API key> AS <API key> ,d10.jarjestys_ely_koodi AS <API key> ,d10.jarjestys_avi_koodi AS <API key> ,d5.<API key> AS <API key> ,d5.<API key> AS <API key> ,d15.<API key> as jarj_majoitus FROM dw.<API key> f LEFT JOIN dw.d_sukupuoli d1 ON d1.id= f.d_sukupuoli_id LEFT JOIN dw.d_kieli d2 ON d2.id = f.<API key> LEFT JOIN dw.d_ika d3 ON d3.id = f.d_ika_id LEFT JOIN dw.<API key> d5 ON d5.id = f.<API key> LEFT JOIN dw.d_alueluokitus d10 ON d10.kunta_koodi = d5.kunta_koodi LEFT JOIN dw.<API key> d11 ON d11.id = f.<API key> LEFT JOIN dw.d_alueluokitus d12 ON d12.kunta_koodi = d11.kunta_koodi LEFT JOIN dw.d_kalenteri d14 ON d14.id = f.d_kalenteri_id LEFT JOIN dw.d_majoitus d15 ON d15.id = f.d_majoitus_id LEFT JOIN dw.<API key> d21 ON d21.id = f.<API key> LEFT JOIN dw.d_maatjavaltiot2 d22 ON d22.id = f.<API key> LEFT JOIN dw.d_kieli d23 ON d23.id = f.<API key> GO USE ANTERO
var chalk = require('chalk'); var safeStringify = require('fast-safe-stringify') function handleErrorObject(key, value) { if (value instanceof Error) { return Object.getOwnPropertyNames(value).reduce(function(error, key) { error[key] = value[key] return error }, {}) } return value } function stringify(o) { return safeStringify(o, handleErrorObject, ' '); } function debug() { if (!process.env.<API key>) return; var args = [].slice.call(arguments); var lastParam = args.pop(); var color = chalk.red; if (lastParam !== true) { args.push(lastParam); color = chalk.green; } args[0] = color(args[0]); args.unshift(chalk.blue('DEBUG:')); console.log.apply(console, args); } module.exports = { stringify: stringify, debug: debug };
#pragma once #include "toolscollector.h" #include "widgetsettings.h" #include "toolbase.h" namespace Engine { namespace Tools { struct GuiEditor : public Tool<GuiEditor> { SERIALIZABLEUNIT(GuiEditor); GuiEditor(ImRoot &root); virtual Threading::Task<bool> init() override; virtual void render() override; virtual void renderMenu() override; virtual void update() override; std::string_view key() const override; private: void renderSelection(Widgets::WidgetBase *hoveredWidget = nullptr); void renderHierarchy(Widgets::WidgetBase **hoveredWidget = nullptr); bool drawWidget(Widgets::WidgetBase *w, Widgets::WidgetBase **hoveredWidget = nullptr); private: Widgets::WidgetManager *mWidgetManager = nullptr; WidgetSettings *mSelected = nullptr; std::list<WidgetSettings> mSettings; bool mMouseDown = false; bool mDragging = false; bool mDraggingLeft = false, mDraggingTop = false, mDraggingRight = false, mDraggingBottom = false; }; } } RegisterType(Engine::Tools::GuiEditor);
<?php if (isset($consumers) && is_array($consumers)){ ?> <?php $this->load->helper('security'); ?> <tbody> <?php foreach($consumers as $consumer){ ?> <tr> <td> <a data-toggle="modal" data-target="#dynamicModal" href="<?php echo site_url("consumers/edit/$consumer->id");?>"><span class="glyphicon glyphicon-pencil"></span></a> </td> <td> <?php echo $consumer->id; ?> </td> <td> <?php echo xss_clean($consumer->name); ?> </td> </tr> <?php } ?> </tbody> <tfoot> <tr class="pagination-tr"> <td colspan="3" class="pagination-tr"> <div class="text-center"> <?php echo $this->pagination->create_links(); ?> </div> </td> </tr> </tfoot> <?php }?>
package rholang.parsing.delimc.Absyn; // Java Package generated by the BNF Converter. public class TType2 extends TType { public final Type type_1, type_2; public TType2(Type p1, Type p2) { type_1 = p1; type_2 = p2; } public <R,A> R accept(rholang.parsing.delimc.Absyn.TType.Visitor<R,A> v, A arg) { return v.visit(this, arg); } public boolean equals(Object o) { if (this == o) return true; if (o instanceof rholang.parsing.delimc.Absyn.TType2) { rholang.parsing.delimc.Absyn.TType2 x = (rholang.parsing.delimc.Absyn.TType2)o; return this.type_1.equals(x.type_1) && this.type_2.equals(x.type_2); } return false; } public int hashCode() { return 37*(this.type_1.hashCode())+this.type_2.hashCode(); } }
require 'rubygems' require 'test/unit' require 'shoulda' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'sinatra' require 'sinatra/path' class Test::Unit::TestCase end
"use strict" const <API key> = require(`./<API key>`) const colorDepth = require(`./colorDepth`) module.exports = ({palette, images}) => { const converter = <API key>({ tileWidth: 7, tileHeight: 9, columns: 19, tileCount: 95, raw32bitData: colorDepth.convert8to32({palette, raw8bitData: images}), }) return { convertToPng: converter.convertToPng } }
import * as EventLogger from './' const log = new EventLogger() log.info('Basic information') log.information('Basic information') log.warning('Watch out!') log.warn('Watch out!') log.error('Something went wrong.') log.auditFailure('Audit Failure') log.auditSuccess('Audit Success') // Configurations new EventLogger('FooApplication') new EventLogger({ source: 'FooApplication', logPath: '/var/usr/local/log', eventLog: 'APPLICATION' })
# cactuscon2015 Badge design for CactusCon 2015
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http: <html xmlns="http: <head> <title>Class: HTML::Sanitizer</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="<API key>">HTML::Sanitizer</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/usr/lib/ruby/gems/1_8/gems/<API key>/lib/action_controller/vendor/html-scanner/html/sanitizer_rb.html"> /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb </a> <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> <a href="../Object.html"> Object </a> </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> </div> <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> <a href="#M000941">process_node</a>&nbsp;&nbsp; <a href="#M000938">sanitize</a>&nbsp;&nbsp; <a href="#M000939">sanitizeable?</a>&nbsp;&nbsp; <a href="#M000940">tokenize</a>&nbsp;&nbsp; </div> </div> </div> <!-- if includes --> <div id="section"> <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> <div id="method-M000938" class="method-detail"> <a name="M000938"></a> <div class="method-heading"> <a href="#M000938" class="method-signature"> <span class="method-name">sanitize</span><span class="method-args">(text, options = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href=" onclick="toggleCode('M000938-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000938-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 6</span> 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sanitize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span> = {}) 7: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">text</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">sanitizeable?</span>(<span class="ruby-identifier">text</span>) 8: <span class="ruby-identifier">tokenize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>).<span class="ruby-identifier">join</span> 9: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div id="method-M000939" class="method-detail"> <a name="M000939"></a> <div class="method-heading"> <a href="#M000939" class="method-signature"> <span class="method-name">sanitizeable?</span><span class="method-args">(text)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href=" onclick="toggleCode('M000939-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000939-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 11</span> 11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sanitizeable?</span>(<span class="ruby-identifier">text</span>) 12: <span class="ruby-operator">!</span>(<span class="ruby-identifier">text</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">text</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">text</span>.<span class="ruby-identifier">index</span>(<span class="ruby-value str">&quot;&lt;&quot;</span>)) 13: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <h3 class="section-bar">Protected Instance methods</h3> <div id="method-M000941" class="method-detail"> <a name="M000941"></a> <div class="method-heading"> <a href="#M000941" class="method-signature"> <span class="method-name">process_node</span><span class="method-args">(node, result, options)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href=" onclick="toggleCode('M000941-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000941-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 26</span> 26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">process_node</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">result</span>, <span class="ruby-identifier">options</span>) 27: <span class="ruby-identifier">result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">to_s</span> 28: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> <div id="method-M000940" class="method-detail"> <a name="M000940"></a> <div class="method-heading"> <a href="#M000940" class="method-signature"> <span class="method-name">tokenize</span><span class="method-args">(text, options)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href=" onclick="toggleCode('M000940-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000940-source"> <pre> <span class="ruby-comment cmt"># File /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.0.beta4/lib/action_controller/vendor/html-scanner/html/sanitizer.rb, line 16</span> 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tokenize</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>) 17: <span class="ruby-identifier">tokenizer</span> = <span class="ruby-constant">HTML</span><span class="ruby-operator">::</span><span class="ruby-constant">Tokenizer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">text</span>) 18: <span class="ruby-identifier">result</span> = [] 19: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">token</span> = <span class="ruby-identifier">tokenizer</span>.<span class="ruby-identifier">next</span> 20: <span class="ruby-identifier">node</span> = <span class="ruby-constant">Node</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-value">0</span>, <span class="ruby-value">0</span>, <span class="ruby-identifier">token</span>, <span class="ruby-keyword kw">false</span>) 21: <span class="ruby-identifier">process_node</span> <span class="ruby-identifier">node</span>, <span class="ruby-identifier">result</span>, <span class="ruby-identifier">options</span> 22: <span class="ruby-keyword kw">end</span> 23: <span class="ruby-identifier">result</span> 24: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> </div> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>
# -*- coding: utf-8 -*- """urls.py: messages extends""" from django.conf.urls import url from messages_extends.views import <API key>, message_mark_read urlpatterns = [ url(r'^mark_read/(?P<message_id>\d+)/$', message_mark_read, name='message_mark_read'), url(r'^mark_read/all/$', <API key>, name='<API key>'), ]
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(document).ready(function(){ var oldAction = $('#comment-form').attr("action"); hljs.<API key>(); $('#coolness div').hover(function(){ $('#coolness .second').fadeOut(500); }, function(){ $('#coolness .second').fadeIn(1000).stop(false, true); }); $(".reply a").click(function() { var add = this.className; var action = oldAction + '/' + add; $("#comment-form").attr("action", action); console.log($('#comment-form').attr("action")); }); });
#include "Sound.h" #include <Windows.h> #include "DigitalGraffiti.h" Sound::Sound(void) { // Find music and sound files std::string exeDir = DigitalGraffiti::getExeDirectory(); DigitalGraffiti::getFileList(exeDir + "\\sound\\instructions\\*", <API key>); DigitalGraffiti::getFileList(exeDir + "\\sound\\cleanup\\*", cleanupMusicList); DigitalGraffiti::getFileList(exeDir + "\\sound\\splat\\*", splatSoundList); instructionsCounter = 0; cleanupCounter = 0; splatCounter = 0; numInstructions= <API key>.size(); numCleanup = cleanupMusicList.size(); numSplat = splatSoundList.size(); if(DigitalGraffiti::DEBUG) { printf("Sound directory is: %s\n", exeDir.c_str()); printf("\tnumInstructions = %u\n", numInstructions); printf("\tnumCleanup = %u\n", numCleanup); printf("\tnumSplat = %u\n", numSplat); } } void Sound::<API key>(void) { if(numInstructions > 0) { if(DigitalGraffiti::DEBUG) { printf("Play %s\n", <API key>[instructionsCounter].c_str()); } PlaySound(TEXT(<API key>[instructionsCounter].c_str()), NULL, SND_FILENAME | SND_ASYNC| SND_NOWAIT); instructionsCounter = (instructionsCounter + 1) % numInstructions; } } void Sound::playCleanupMusic(void) { if(numCleanup > 0) { if(DigitalGraffiti::DEBUG) { printf("Play %s\n", cleanupMusicList[cleanupCounter].c_str()); } PlaySound(TEXT(cleanupMusicList[cleanupCounter].c_str()), NULL, SND_FILENAME | SND_ASYNC| SND_NOWAIT); cleanupCounter = (cleanupCounter + 1) % numCleanup; } } void Sound::playSplatSound(void) { if(numSplat > 0) { if(DigitalGraffiti::DEBUG) { printf("Play %s\n", splatSoundList[splatCounter].c_str()); } PlaySound(TEXT(splatSoundList[splatCounter].c_str()), NULL, SND_FILENAME | SND_ASYNC| SND_NOWAIT); splatCounter = (splatCounter + 1) % numSplat; } }
using System.Collections.ObjectModel; using AppStudio.Common; using AppStudio.Common.Navigation; using Windows.UI.Xaml; namespace WindowsAppStudio.Navigation { public abstract class NavigationNode : ObservableBase { private bool _isSelected; public string Title { get; set; } public string Label { get; set; } public abstract bool IsContainer { get; } public bool IsSelected { get { return _isSelected; } set { SetProperty(ref _isSelected, value); } } public abstract void Selected(); } public class ItemNavigationNode : NavigationNode, INavigable { public override bool IsContainer { get { return false; } } public NavigationInfo NavigationInfo { get; set; } public override void Selected() { NavigationService.NavigateTo(this); } } public class GroupNavigationNode : NavigationNode { private Visibility _visibility; public GroupNavigationNode() { Nodes = new <API key><NavigationNode>(); } public override bool IsContainer { get { return true; } } public <API key><NavigationNode> Nodes { get; set; } public Visibility Visibility { get { return _visibility; } set { SetProperty(ref _visibility, value); } } public override void Selected() { if (Visibility == Visibility.Collapsed) { Visibility = Visibility.Visible; } else { Visibility = Visibility.Collapsed; } } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>canon-bdds: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file: <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif] </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.10.0 / canon-bdds - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> canon-bdds <small> 8.5.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2021-12-07 06:33:16 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-07 06:33:16 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.10.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.07.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.07.1 Official release 4.07.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;matej.kosik@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/canon-bdds&quot; license: &quot;Proprietary&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/CanonBDDs&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:BDT&quot; &quot;keyword:finite sets&quot; &quot;keyword:model checking&quot; &quot;keyword:binary decision diagrams&quot; &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; &quot;category:Miscellaneous/Extracted Programs/Decision procedures&quot; ] authors: [ &quot;Emmanuel Ledinot &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/canon-bdds/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/canon-bdds.git&quot; synopsis: &quot;Canonicity of Binary Decision Dags&quot; description: &quot;&quot;&quot; A proof of unicity and canonicity of Binary Decision Trees and Binary Decision Dags. This contrib contains also a development on finite sets.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/canon-bdds/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install </h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-canon-bdds.8.5.0 coq.8.10.0</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.10.0). The following dependencies couldn&#39;t be met: - coq-canon-bdds -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-canon-bdds.8.5.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install </h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https: </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
# AndSpecification(*T*) Constructor Additional header content Initializes a new instance of the <a href="<API key>">AndSpecification(T)</a> class **Namespace:**&nbsp;<a href="<API key>">iTin.Export.ComponentModel.Patterns</a><br />**Assembly:**&nbsp;iTin.Export.Core (in iTin.Export.Core.dll) Version: 2.0.0.0 (2.0.0.0) ## Syntax **C C public AndSpecification( ISpecification<T> left, ISpecification<T> right ) **VB**<br /> VB Public Sub New ( left As ISpecification(Of T), right As ISpecification(Of T) ) # Parameters &nbsp;<dl><dt>left</dt><dd>Type: <a href="<API key>">iTin.Export.ComponentModel.Patterns.ISpecification</a>(<a href="<API key>">*T*</a>)<br />\[Missing <param name="left"/> documentation for "M:iTin.Export.ComponentModel.Patterns.AndSpecification`1.#ctor(iTin.Export.ComponentModel.Patterns.ISpecification{`0},iTin.Export.ComponentModel.Patterns.ISpecification{`0})"\]</dd><dt>right</dt><dd>Type: <a href="<API key>">iTin.Export.ComponentModel.Patterns.ISpecification</a>(<a href="<API key>">*T*</a>)<br />\[Missing <param name="right"/> documentation for "M:iTin.Export.ComponentModel.Patterns.AndSpecification`1.#ctor(iTin.Export.ComponentModel.Patterns.ISpecification{`0},iTin.Export.ComponentModel.Patterns.ISpecification{`0})"\]</dd></dl> ## Remarks \[Missing <remarks> documentation for "M:iTin.Export.ComponentModel.Patterns.AndSpecification`1.#ctor(iTin.Export.ComponentModel.Patterns.ISpecification{`0},iTin.Export.ComponentModel.Patterns.ISpecification{`0})"\] ## See Also # Reference <a href="<API key>">AndSpecification(T) Class</a><br /><a href="<API key>">iTin.Export.ComponentModel.Patterns Namespace</a><br />
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <CRecallRequest.hpp> START_ATF_NAMESPACE namespace Info { using <API key> = void (WINAPIV*)(struct CRecallRequest*, uint16_t); using <API key> = void (WINAPIV*)(struct CRecallRequest*, uint16_t, <API key>); using <API key> = void (WINAPIV*)(struct CRecallRequest*); using <API key> = void (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = void (WINAPIV*)(struct CRecallRequest*, bool); using <API key> = void (WINAPIV*)(struct CRecallRequest*, bool, <API key>); using <API key> = uint16_t (WINAPIV*)(struct CRecallRequest*); using <API key> = uint16_t (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = struct CPlayer* (WINAPIV*)(struct CRecallRequest*); using <API key> = struct CPlayer* (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = bool (WINAPIV*)(struct CRecallRequest*); using <API key> = bool (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = bool (WINAPIV*)(struct CRecallRequest*); using <API key> = bool (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = bool (WINAPIV*)(struct CRecallRequest*); using <API key> = bool (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = bool (WINAPIV*)(struct CRecallRequest*); using <API key> = bool (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = bool (WINAPIV*)(struct CRecallRequest*); using <API key> = bool (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = bool (WINAPIV*)(struct CRecallRequest*); using <API key> = bool (WINAPIV*)(struct CRecallRequest*, <API key>); using <API key> = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, bool); using <API key> = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, bool, <API key>); using <API key> = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, struct CCharacter*, bool, bool, bool); using <API key> = char (WINAPIV*)(struct CRecallRequest*, struct CPlayer*, struct CCharacter*, bool, bool, bool, <API key>); using <API key> = void (WINAPIV*)(struct CRecallRequest*); using <API key> = void (WINAPIV*)(struct CRecallRequest*, <API key>); }; // end namespace Info END_ATF_NAMESPACE
class <API key> < <API key> before_action :<API key>, only: [:show, :edit, :update, :destroy] # GET /<API key> # GET /<API key>.json def index @<API key> = <API key>.all end # GET /<API key>/1 # GET /<API key>/1.json def show end # GET /<API key>/new def new @<API key> = <API key>.new end # GET /<API key>/1/edit def edit end # POST /<API key> # POST /<API key>.json def create @<API key> = <API key>.new(<API key>) respond_to do |format| if @<API key>.save format.html { redirect_to @<API key>, notice: 'Discount technical type was successfully created.' } format.json { render :show, status: :created, location: @<API key> } else format.html { render :new } format.json { render json: @<API key>.errors, status: :<API key> } end end end # PATCH/PUT /<API key>/1 # PATCH/PUT /<API key>/1.json def update respond_to do |format| if @<API key>.update(<API key>) format.html { redirect_to @<API key>, notice: 'Discount technical type was successfully updated.' } format.json { render :show, status: :ok, location: @<API key> } else format.html { render :edit } format.json { render json: @<API key>.errors, status: :<API key> } end end end # DELETE /<API key>/1 # DELETE /<API key>/1.json def destroy @<API key>.destroy respond_to do |format| format.html { redirect_to <API key>, notice: 'Discount technical type was successfully destroyed.' } format.json { head :no_content } end end private # Use callbacks to share common setup or constraints between actions. def <API key> @<API key> = <API key>.find(params[:id]) end # Never trust parameters from the scary internet, only allow the white list through. def <API key> params.require(:<API key>).permit(:value) end end
using System.Net.Sockets; namespace VidereLib.EventArgs { <summary> EventArgs for the OnClientConnected event. </summary> public class <API key> : System.EventArgs { <summary> The connected client. </summary> public TcpClient Client { private set; get; } <summary> Constructor. </summary> <param name="client">The connected client.</param> public <API key>( TcpClient client ) { this.Client = client; } } }
require 'rubygems' require 'net/dns' module Reedland module Command class Host def self.run(address) regular = Net::DNS::Resolver.start address.join(" ") mx = Net::DNS::Resolver.new.search(address.join(" "), Net::DNS::MX) return "#{regular}\n#{mx}" end end end end
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8"> <title>onSupportNavigateUp</title> </head><body><link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script> <script type="text/javascript" src="../../../scripts/<API key>.js" async></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><link href="../../../styles/prism.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async></script><script type="text/javascript" src="../../../scripts/<API key>.js" async></script><script type="text/javascript" src="../../../scripts/main.js" defer></script><script type="text/javascript" src="../../../scripts/prism.js" async></script><script>const storage = localStorage.getItem("dokka-dark-mode") const savedDarkMode = storage ? JSON.parse(storage) : false if(savedDarkMode === true){ document.<API key>("html")[0].classList.add("theme-dark") }</script> <div class="navigation-wrapper" id="navigation-wrapper"> <div id="leftToggler"><span class="icon-toggler"></span></div> <div class="library-name"><a href="../../../index.html"><span>stripe-android</span></a></div> <div></div> <div class="pull-right d-flex"><button id="theme-toggle-button"><span id="theme-toggle"></span></button> <div id="searchBar"></div> </div> </div> <div id="container"> <div id="leftColumn"> <div id="sideMenu"></div> </div> <div id="main"> <div class="main-content" id="content" pageids="payments-core::com.stripe.android.view/<API key>/onSupportNavigateUp/#/<API key>//-1622557690"> <div class="breadcrumbs"><a href="../../index.html">payments-core</a>/<a href="../index.html">com.stripe.android.view</a>/<a href="index.html"><API key></a>/<a href="<API key>.html">onSupportNavigateUp</a></div> <div class="cover "> <h1 class="cover"><span>on</span><wbr><span>Support</span><wbr><span>Navigate</span><wbr><span><span>Up</span></span></h1> </div> <div class="platform-hinted " <API key>="<API key>"><div class="content <API key>" data-active="" data-togglable=":payments-core:dokkaHtmlPartial/release"><div class="symbol monospace"><span class="token keyword">open </span><span class="token keyword">override </span><span class="token keyword">fun </span><a href="<API key>.html"><span class="token function">onSupportNavigateUp</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div> </div> <div class="footer"><span class="go-to-top-icon"><a href=" </div> </div> </body></html>
# Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) # Require gems we care about require 'rubygems' require 'uri' require 'pathname' require 'pg' require 'active_record' require 'logger' require 'sinatra' require "sinatra/reloader" if development? require 'erb' require 'bcrypt' # Some helper constants for path-centric logic APP_ROOT = Pathname.new(File.expand_path('../../', __FILE__)) APP_NAME = APP_ROOT.basename.to_s configure do # By default, Sinatra assumes that the root is the file that calls the configure block. # Since this is not the case for us, we set it manually. set :root, APP_ROOT.to_path enable :sessions set :session_secret, ENV['SESSION_SECRET'] || 'this is a secret shhhhhhhhh' # Set the views to set :views, File.join(Sinatra::Application.root, "app", "views") end # Set up the controllers and helpers Dir[APP_ROOT.join('app', 'controllers', '*.rb')].each { |file| require file } Dir[APP_ROOT.join('app', 'helpers', '*.rb')].each { |file| require file } # Set up the database and models require APP_ROOT.join('config', 'database')
#!/bin/bash STEP=$1 TEST=$2 case "$STEP" in install) echo "Installing..." if [ -d vendor ]; then chmod 777 -R vendor rm -r vendor fi COMPOSER=dev.json composer install ;; script) echo "Run tests..."; if [ ! -d vendor ]; then echo "Application not installed. Tests stopped. Exit with code 1" exit 1 fi case "$TEST" in unit) echo "Run phpunit --verbose --testsuite=unit..."; php vendor/bin/phpunit --verbose --testsuite=unit ;; phpcs) echo "Run phpcs --encoding=utf-8 --extensions=php --standard=psr2 Okvpn/ -p..."; php vendor/bin/phpcs --encoding=utf-8 --standard=psr2 -p src ;; esac ;; esac
(function(Object) { Object.Model.Background = Object.Model.PresentationObject.extend({ "initialize" : function() { Object.Model.PresentationObject.prototype.initialize.call(this); } },{ "type" : "Background", "attributes" : _.defaults({ "skybox" : { "type" : "res-texture", "name" : "skybox", "_default" : "" }, "name" : { "type" : "string", "_default" : "new Background", "name" : "name" } }, Object.Model.PresentationObject.attributes) }); }(sp.module("object")));
<div class="mini-graph clearfix"> <div class="nav"><nav><a class="breadcrumb" href="/">Offices</a> > <span>{{office}}</span></nav></div> <h3>NYC Campaign Contributions: {{office}}</h3> <hr> <ul> <li ng-click="byTotal($event)" class="chart-option active-option">Total Funds</li> <li ng-click="byContributions($event)" class="chart-option">Contributions</li> <li ng-click="byMatch($event)" class="chart-option">Matching Funds</li> <li ng-click="byContributors($event)" class="chart-option">Number of Contributors</li> </ul> <hr> <ul class="selected-candidates"> <li ng-repeat="candidate in selectedCandidates" id="{{candidate.id}}" class="<API key>" ng-class="addActive(candidate.id)" ng-click="removeActive($event, candidate.id, $index)"> {{candidate.name}} </li> </ul> <hr> <ul class="candidate-list"> <li ng-repeat="candidate in candidates" id="can_{{candidate.id}}" class="candidate-button" ng-click="toggleSelected($event, $index)"> {{candidate.name}} </li> </ul> <div class="candidates graph-wrapper"> <svg d3="" d3-data="selectedCandidates" d3-renderer="barGraphRenderer" class="candidate-bar-graph"></svg> </div> <!--<div class="candidate-info-box" style="display: none;">--> <!--<p class="candidate-name">{{name}}</p>--> <!--<p class="total-contributors">{{count_contributors}} Contributors</p><a href="{{detail_link}}" title="{{name}} Details">Details</a>--> <!--<table class="funds">--> <!--<tr class="match-amount">--> <!--<td>Matching Funds:</td>--> <!--<td>{{candidate_match | currency}}</td>--> <!--<tr class="contribution-amount">--> <!--<td>Contributions Funds:</td>--> <!--<td>{{<API key> | currency}}</td>--> <!--<tr class="total-amount">--> <!--<td>Total Funds:</td>--> <!--<td>{{candidate_total | currency}}</td>--> <!--</table>--> <!--</div>--> <div id="candidate_info" class="candidate-info tooltip"> {{candidate_name}}<br> {{candidate_value}} </div> </div>
<?php namespace HsBundle; use HsBundle\DependencyInjection\Compiler\ReportsCompilerPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; class HsBundle extends Bundle { public function build(ContainerBuilder $container) { parent::build($container); $container->addCompilerPass(new ReportsCompilerPass()); } }
<!DOCTYPE html> <head> <meta charset="utf-8"> <link href="../style/campfire.css" rel="stylesheet"> <link href="../style/bootstrap/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <div class="chart" id="wall"></div> </body> <script src="../script/campfire-wall.js" charset="utf-8"></script> </html>
import './Modal.scss' import pugTpl from './Modal.pug' import mixin from '../../mixin' import alert from '@vue2do/component/module/Modal/alert' import confirm from '@vue2do/component/module/Modal/confirm' export default { name: 'PageCompModal', template: pugTpl(), mixins: [mixin], data() { return { testName: 'test' } }, methods: { simple() { this.$refs.simple.show() }, alert() { alert({ message: '', theme: this.typeTheme, ui: this.typeUI }) }, confirm() { confirm({ message: '', title: '', theme: 'danger', ui: 'bootstrap' }) }, showFullPop() { this.$refs.fullPop.show() }, hideFullPop() { this.$refs.fullPop.hide() }, showPureModal() { this.$refs.pureModal.show() }, hidePureModal() { this.$refs.pureModal.hide() } } }
package com.igonics.transformers.simple; import java.io.PrintStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.DefaultParser; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; import org.relique.jdbc.csv.CsvDriver; import com.igonics.transformers.simple.helpers.CSVDirWalker; import com.igonics.transformers.simple.helpers.CSVLogger; public class JavaCSVTransform { /** * @param baseDir Base Directory to Check for CSV Files * @param dbFile Database File Name or Path * @param subDirectoryDepth Recursive Depth to check for CSV Files. -1 will recurse indefinitely * @param keepTemporaryFile Keep Temporary Buffer File or Delete * */ public void createCSVDatabase(String baseDir, String dbFile,int subDirectoryDepth,boolean keepTemporaryFile){ final String BASE_DIR =baseDir==null? System.getProperty("user.dir") + "\\dataFiles" : baseDir; final String DB_FILE = dbFile==null?"DB-" + System.currentTimeMillis() + ".csv":dbFile; long startTime = System.currentTimeMillis(); CSVLogger.info("Base Dir : " + BASE_DIR); try { CSVDirWalker dirWalker = new CSVDirWalker(BASE_DIR, subDirectoryDepth); //Process Directories dirWalker.start(); CSVLogger.debug("Column Names : " + dirWalker.getHeader()); CSVLogger.info("Temporary Buffer File Complete. Starting Database Queries"); // Writing to database // Load the driver. Class.forName("org.relique.jdbc.csv.CsvDriver"); // Create a connection. The first command line parameter is the directory containing the .csv files. Connection conn = DriverManager.getConnection("jdbc:relique:csv:" + System.getProperty("user.dir")); // Create a Statement object to execute the query with. Statement stmt = conn.createStatement(); ResultSet results = stmt.executeQuery("SELECT * FROM " + dirWalker.getTempBufferPath().replaceAll(".csv", "")); CSVLogger.info("Retrieved Records From Temporary File"); // Dump out the results to a CSV file with the same format // using CsvJdbc helper function CSVLogger.info("Writing Records to database file"); long <API key> = System.currentTimeMillis(); //Create redirect stream to database file PrintStream printStream = new PrintStream(DB_FILE); //print column headings printStream.print(dirWalker.getHeader()+System.lineSeparator()); CsvDriver.writeToCsv(results, printStream, false); CSVLogger.info("Time taken to save records to database (ms): "+(System.currentTimeMillis() - <API key>)); //delete temporary file if(!keepTemporaryFile){ CSVLogger.info("Removing Temporary File"); dirWalker.removeTemporaryFile(); } //Output Program Execution Completed CSVLogger.info("Total execution time (ms) : " + (System.currentTimeMillis() - startTime) + " | Approx Size (bytes) : " + dirWalker.getTotalBytesRead()); } catch (Exception ioe) { CSVLogger.error(ioe.getMessage(), ioe); } } // TODO: Modularize Concepts public static void main(String args[]) { //Parse Command Line Options Options opts = new Options(); HelpFormatter formatter = new HelpFormatter(); opts.addOption("d", "dir", false, "Base Directory of CSV files. Default : Current Directory"); opts.addOption("db", "database", false, "Database File Name. Default DB-{timestamp}.csv"); opts.addOption("depth", "depth", false, "Recursive Depth. Set -1 to recurse indefintely. Default : -1"); opts.addOption("keepTemp",false,"Keeps Temporary file. Default : false"); opts.addOption("h", "help", false, "Display Help"); try { CommandLine cmd = new DefaultParser().parse(opts,args); if(cmd.hasOption("h") || cmd.hasOption("help")){ formatter.printHelp( "javacsvtransform", opts ); return; } //Create CSV Database With Command Line Options or Defaults new JavaCSVTransform().createCSVDatabase(cmd.getOptionValue("d"), cmd.getOptionValue("db"),Integer.parseInt(cmd.getOptionValue("depth", "-1")), cmd.hasOption("keepTemp")); } catch (ParseException e) { formatter.printHelp( "javacsvtransform", opts ); } } }
package org.jdivisitor.debugger.launcher; import java.net.InetSocketAddress; import java.util.List; import java.util.Map; import org.apache.commons.lang3.Validate; import com.sun.jdi.Bootstrap; import com.sun.jdi.VirtualMachine; import com.sun.jdi.connect.AttachingConnector; import com.sun.jdi.connect.Connector; /** * Attach (via a socket) to a listening virtual machine in debug mode. * * @author Adrian Herrera * */ public class RemoteVMConnector extends VMConnector { /** * Socket connection details. */ private final InetSocketAddress socketAddress; /** * Constructor. * * @param hostname Name of the host to connect to * @param port Port number the virtual machine is listening on */ public RemoteVMConnector(String hostname, int port) { this(new InetSocketAddress(hostname, port)); } /** * Constructor. * * @param sockAddr Socket address structure to connect to. */ public RemoteVMConnector(InetSocketAddress sockAddr) { socketAddress = Validate.notNull(sockAddr); } @Override public VirtualMachine connect() throws Exception { List<AttachingConnector> connectors = Bootstrap.<API key>() .attachingConnectors(); AttachingConnector connector = findConnector( "com.sun.jdi.SocketAttach", connectors); Map<String, Connector.Argument> arguments = connectorArguments(connector); VirtualMachine vm = connector.attach(arguments); // TODO - redirect stdout and stderr? return vm; } /** * Set the socket-attaching connector's arguments. * * @param connector A socket-attaching connector * @return The socket-attaching connector's arguments */ private Map<String, Connector.Argument> connectorArguments( AttachingConnector connector) { Map<String, Connector.Argument> arguments = connector .defaultArguments(); arguments.get("hostname").setValue(socketAddress.getHostName()); arguments.get("port").setValue( Integer.toString(socketAddress.getPort())); return arguments; } }
# of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # all copies or substantial portions of the Software. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # 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. from cliff import app from cliff import commandmanager from pbr import version as app_version import sys from kanboard_cli.commands import application from kanboard_cli.commands import project from kanboard_cli.commands import task from kanboard_cli import client class KanboardShell(app.App): def __init__(self): super(KanboardShell, self).__init__( description='Kanboard Command Line Client', version=app_version.VersionInfo('kanboard_cli').version_string(), command_manager=commandmanager.CommandManager('kanboard.cli'), deferred_help=True) self.client = None self.is_super_user = True def build_option_parser(self, description, version, argparse_kwargs=None): parser = super(KanboardShell, self).build_option_parser( description, version, argparse_kwargs=argparse_kwargs) parser.add_argument( '--url', metavar='<api url>', help='Kanboard API URL', ) parser.add_argument( '--username', metavar='<api username>', help='API username', ) parser.add_argument( '--password', metavar='<api password>', help='API password/token', ) parser.add_argument( '--auth-header', metavar='<authentication header>', help='API authentication header', ) return parser def initialize_app(self, argv): client_manager = client.ClientManager(self.options) self.client = client_manager.get_client() self.is_super_user = client_manager.is_super_user() self.command_manager.add_command('app version', application.ShowVersion) self.command_manager.add_command('app timezone', application.ShowTimezone) self.command_manager.add_command('project show', project.ShowProject) self.command_manager.add_command('project list', project.ListProjects) self.command_manager.add_command('task create', task.CreateTask) self.command_manager.add_command('task list', task.ListTasks) def main(argv=sys.argv[1:]): return KanboardShell().run(argv) if __name__ == '__main__': sys.exit(main(sys.argv[1:]))
<div> <h1 class="page-header"></h1> <form class="form-horizontal" name="project" role="form"> <div class="form-group"> <label for="projectName" class="col-sm-2 control-label"></label> <div class="col-sm-5"> <select class="form-control" ng-model="projectName" name="projectName" id="projectName"> <option ng-repeat="project in projects | filter: filterKey">{{project.name}}</option> </select> </div> <div class="col-sm-3"> <input type="text" class="form-control" name="filterKey" ng-model="filterKey" id="filterKey" placeholder=""> </div> </div> <div class="form-group"> <label for="id" class="col-sm-2 control-label"></label> <div class="col-sm-5"> <input type="text" class="form-control" name="id" ng-model="tmpProject.id" id="id"> </div> </div> <div class="form-group"> <label for="description" class="col-sm-2 control-label"></label> <div class="col-sm-8"> <textarea class="form-control" name="description" rows="5" cols="100" id="description" ng-model="tmpProject.description"></textarea> </div> </div> <div class="form-group"> <label for="parent" class="col-sm-2 control-label"></label> <div class="col-sm-5"> <select class="form-control" ng-disabled="parentReadonly" ng-model="tmpProject.parent" name="parent" id="parent"> <option value=""></option> <option ng-repeat="project in parentProjects">{{project.name}}</option> </select> </div> <div class="col-sm-3" ng-show="parentReadonly"> <button class="btn btn-default btn-block" ng-click="editParent()"></button> </div> <div class="col-sm-3" ng-hide="parentReadonly"> <input type="text" class="form-control" name="filterParentKey" ng-model="filterParentKey" id="filterParentKey" placeholder=""> </div> </div> <div class="form-group"> <label for="children" class="col-sm-2 control-label"></label> <div class="col-sm-5"> <textarea class="form-control" readonly name="children" rows="5" cols="100" id="children">{{tmpProject.children.join('\n')}}</textarea> </div> <div class="col-sm-3"> <button type="button" class="btn btn-default btn-block" data-toggle="modal" data-target="#projectList"> <span class="caret"></span> </button> </div> </div> <div class="modal fade" id="projectList" tabindex="-1" role="dialog" aria-labelledby="projectListLabel" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" ng-click="cancelSelection()" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button> <div class="col-sm-6 col-sm-offset-2 text-center" id="projectListLabel"> <h4><strong></strong></h4> </div> <div class="col-sm-3"> <input type="text" class="form-control" ng-model="childrenFilterKey" placeholder=""> </div> <div><br></div> </div> <div class="modal-body"> <div class="col-sm-4" ng-repeat="project in projectsRaw | filter: childrenFilterKey"> <label><input type="checkbox" ng-model="childrenProject[project.name]">&nbsp;{{project.name}}</label> </div>&nbsp; </div> <div class="modal-footer"> <div class="col-sm-2 col-sm-offset-8"> <button type="button" class="btn btn-success btn-block" data-dismiss="modal" ng-click="selectChildren()">&nbsp;</button> </div> <div class="col-sm-2"> <button type="button" class="btn btn-primary btn-block" data-dismiss="modal" ng-click="cancelSelection()">&nbsp;</button> </div> </div> </div> </div> </div> <! <div class="form-group"> <label class="col-sm-2 control-label"></label> <div class="col-sm-9"> <div class="panel panel-default"> <table class="table table-striped table-bordered"> <thead> <tr> <th></th> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <tr ng-repeat="contract in currentProject().contract"> <td>{{$index}}</td> <td>{{tmpProject.contract.name}}</td> <td>{{tmpProject.contract.store}}</td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp; <td></td> <td></td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> </tbody> </table> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label"></label> <div class="col-sm-9"> <div class="panel panel-default"> <table class="table table-striped table-bordered"> <thead> <tr> <th></th> <th></th> <th></th> <th></th> </tr> </thead> <tbody> <tr ng-repeat="file in currentProject().file"> <td>{{$index}}</td> <td>{{tmpProject.file.name}}</td> <td>{{tmpProject.file.store}}</td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> <tr> <td>&nbsp;&nbsp;&nbsp;&nbsp; <td></td> <td></td> <td> <span ng-click="modify($event)" class="glyphicon glyphicon-pencil"></span> <span ng-click="confirm($event)" class="glyphicon glyphicon-ok"></span> <span ng-click="remove($event)" class="glyphicon glyphicon-remove"></span> </td> </tr> </tbody> </table> </div> </div> </div> </form> <div class="col-sm-12"> <div class="col-sm-3 col-sm-offset-3"> <button type="button" class="btn btn-success btn-block" data-dismiss="modal" ng-click="confirmModify()"></button> </div> <div class="col-sm-3"> <button type="button" class="btn btn-primary btn-block" data-dismiss="modal" ng-click="cancelModify()"></button> </div> </div> <div class="col-md-8 col-md-offset-2" ng-show="message"> <div ng-class="msgClass" class="alert text-center" role="alert"> <strong >{{message}}</strong> </div> </div> <div><br></div> </div>
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace cShART { public class ARTFlystick : ARTObject { private bool visible; private int numberOfButtons; private int numberOfControllers; private int buttonStates; private float[] controllerStates; public static ARTFlystick Empty() { return new ARTFlystick(-1, false, 0, 0, 0, new float[0], ARTPoint.Empty(), ARTMatrix.Empty()); } public ARTFlystick(int id, bool visible, int numberOfButtons, int buttonStates, int numberOfControllers, float[] controllerStates, ARTPoint position, ARTMatrix matrix) : base(id, position, matrix) { this.visible = visible; this.numberOfButtons = numberOfButtons; this.numberOfControllers = numberOfControllers; this.buttonStates = buttonStates; this.controllerStates = controllerStates; } public bool isVisible() { return this.visible; } public int getNumberOfButtons() { return this.numberOfButtons; } public int <API key>() { return this.numberOfControllers; } public int getButtonStates() { return this.buttonStates; } <summary> This Method translates the button states integer into actual english for better handling. (aka tells you which button is currently pushed.) Useful for debugging. </summary> <returns>Returns a string containing names of pushed buttons</returns> public String <API key>() { //Byte binBStates = Convert.ToByte(buttonStates); // BitArray BA = new BitArray(binBStates); //int[] StatesArray = new int[]{buttonStates}; //Array.Reverse(StatesArray); BitArray binBStates = new BitArray(new int[]{buttonStates}); String output = ""; //byte[] binBStates = BitConverter.GetBytes(buttonStates); if (binBStates[3]) { output = output + "LeftButton"; } if (binBStates[2]) { if (!output.Equals("")) { output = output + "/"; } output = output + "MiddleButton"; } if (binBStates[1]) { if (!output.Equals("")) { output = output + "/"; } output = output + "RightButton"; } if (binBStates[0]) { if (!output.Equals("")) { output = output + "/"; } output = output + "Trigger"; } if (output == "") { output = "NothingPressed"; } return output + " Byte: " + binBStates.ToString(); } <summary> This method is for further button handling of the flystick. You will receive a bit array which represents the currently pushed buttons. Array value and corresponding buttons are: [0] = Trigger [1] = Right button [2] = Middle button [3] = Left button </summary> <returns>Returns a bit array represting currently pushed buttons</returns> public BitArray <API key>() { return new BitArray(new int[]{buttonStates}); } public float[] GetStickXYPos() { return this.controllerStates; } override protected String nameToString() { return "ARTFlystick"; } protected String <API key>() { String res = ""; for (int i = 0; i < this.controllerStates.Length; i++) { res = res + this.controllerStates[i]; if (i + 1 < this.controllerStates.Length) { res = res + ", "; } } return res; } override protected String extensionsToString() { return "isVisible: " + isVisible() + Environment.NewLine + "numberOfButtons: " + getNumberOfButtons() + ", buttonStates: " + getButtonStates() + Environment.NewLine + "numberOfControllers: " + <API key>() + ", controllerStates: " + <API key>() + Environment.NewLine; } } }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>PruneCluster - Realworld 50k</title> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densitydpi=device-dpi" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2.rc.2/leaflet.css"/> <script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0-beta.2.rc.2/leaflet.js"></script> <script src="../dist/PruneCluster.js"></script> <link rel="stylesheet" href="examples.css"/> </head> <body> <div id="map"></div> <script> var map = L.map("map", { attributionControl: false, zoomControl: false }).setView(new L.LatLng(59.911111, 10.752778), 15); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { detectRetina: true, maxNativeZoom: 17 }).addTo(map); var leafletView = new <API key>(); var size = 1000; var markers = []; for (var i = 0; i < size; ++i) { var marker = new PruneCluster.Marker(59.91111 + (Math.random() - 0.5) * Math.random() * 0.00001 * size, 10.752778 + (Math.random() - 0.5) * Math.random() * 0.00002 * size); markers.push(marker); leafletView.RegisterMarker(marker); } window.setInterval(function () { for (i = 0; i < size / 2; ++i) { var coef = i < size / 8 ? 10 : 1; var ll = markers[i].position; ll.lat += (Math.random() - 0.5) * 0.00001 * coef; ll.lng += (Math.random() - 0.5) * 0.00002 * coef; } leafletView.ProcessView(); }, 500); map.addLayer(leafletView); </script> </body> </html>
using System; using System.Text.RegularExpressions; namespace _07_Hideout { class Hideout { static void Main() { string input = Console.ReadLine(); while (true) { string[] parameters = Console.ReadLine().Split(); string key = Regex.Escape(parameters[0]); string pattern = @"(" + key + "{" + parameters[1] + ",})"; Regex r = new Regex(pattern); Match match = r.Match(input); if (match.Success) { Console.WriteLine("Hideout found at index {0} and it is with size {1}!", match.Index, match.Groups[0].Length); break; } } } } }
using System.ComponentModel.DataAnnotations; namespace JezekT.AspNetCore.IdentityServer4.WebApp.Models.<API key> { public class <API key> { [Display(Name = "Email", ResourceType = typeof(Resources.Models.<API key>.<API key>))] public string Email { get; set; } } }
require "rails_helper" describe "announcements/<API key>" do it "renders nothing when announcements are not visible" do allow(view).to receive(:<API key>?).and_return(false) render expect(rendered).to eq "" end it "renders the announcement when announcements are visible" do announcement = create :announcement, body: "Test" allow(view).to receive(:<API key>?).and_return(true) render expect(rendered).to match /Test/ expect(rendered).to match /#{announcement.to_cookie_key}/ expect(rendered).to match /hideAnnouncement/ end end