content
stringlengths 4
1.04M
| lang
stringclasses 358
values | score
int64 0
5
| repo_name
stringlengths 5
114
| repo_path
stringlengths 4
229
| repo_licenses
sequencelengths 1
8
|
---|---|---|---|---|---|
// Copyright (c) 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package edwards25519
import (
"crypto/subtle"
)
// A dynamic lookup table for variable-base, constant-time scalar muls.
type projLookupTable struct {
points [8]projCached
}
// A precomputed lookup table for fixed-base, constant-time scalar muls.
type affineLookupTable struct {
points [8]affineCached
}
// A dynamic lookup table for variable-base, variable-time scalar muls.
type nafLookupTable5 struct {
points [8]projCached
}
// A precomputed lookup table for fixed-base, variable-time scalar muls.
type nafLookupTable8 struct {
points [64]affineCached
}
// Constructors.
// Builds a lookup table at runtime. Fast.
func (v *projLookupTable) FromP3(q *Point) {
// Goal: v.points[i] = (i+1)*Q, i.e., Q, 2Q, ..., 8Q
// This allows lookup of -8Q, ..., -Q, 0, Q, ..., 8Q
v.points[0].FromP3(q)
tmpP3 := Point{}
tmpP1xP1 := projP1xP1{}
for i := 0; i < 7; i++ {
// Compute (i+1)*Q as Q + i*Q and convert to a ProjCached
// This is needlessly complicated because the API has explicit
// receivers instead of creating stack objects and relying on RVO
v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.Add(q, &v.points[i])))
}
}
// This is not optimised for speed; fixed-base tables should be precomputed.
func (v *affineLookupTable) FromP3(q *Point) {
// Goal: v.points[i] = (i+1)*Q, i.e., Q, 2Q, ..., 8Q
// This allows lookup of -8Q, ..., -Q, 0, Q, ..., 8Q
v.points[0].FromP3(q)
tmpP3 := Point{}
tmpP1xP1 := projP1xP1{}
for i := 0; i < 7; i++ {
// Compute (i+1)*Q as Q + i*Q and convert to AffineCached
v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.AddAffine(q, &v.points[i])))
}
}
// Builds a lookup table at runtime. Fast.
func (v *nafLookupTable5) FromP3(q *Point) {
// Goal: v.points[i] = (2*i+1)*Q, i.e., Q, 3Q, 5Q, ..., 15Q
// This allows lookup of -15Q, ..., -3Q, -Q, 0, Q, 3Q, ..., 15Q
v.points[0].FromP3(q)
q2 := Point{}
q2.Add(q, q)
tmpP3 := Point{}
tmpP1xP1 := projP1xP1{}
for i := 0; i < 7; i++ {
v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.Add(&q2, &v.points[i])))
}
}
// This is not optimised for speed; fixed-base tables should be precomputed.
func (v *nafLookupTable8) FromP3(q *Point) {
v.points[0].FromP3(q)
q2 := Point{}
q2.Add(q, q)
tmpP3 := Point{}
tmpP1xP1 := projP1xP1{}
for i := 0; i < 63; i++ {
v.points[i+1].FromP3(tmpP3.fromP1xP1(tmpP1xP1.AddAffine(&q2, &v.points[i])))
}
}
// Selectors.
// Set dest to x*Q, where -8 <= x <= 8, in constant time.
func (v *projLookupTable) SelectInto(dest *projCached, x int8) {
// Compute xabs = |x|
xmask := x >> 7
xabs := uint8((x + xmask) ^ xmask)
dest.Zero()
for j := 1; j <= 8; j++ {
// Set dest = j*Q if |x| = j
cond := subtle.ConstantTimeByteEq(xabs, uint8(j))
dest.Select(&v.points[j-1], dest, cond)
}
// Now dest = |x|*Q, conditionally negate to get x*Q
dest.CondNeg(int(xmask & 1))
}
// Set dest to x*Q, where -8 <= x <= 8, in constant time.
func (v *affineLookupTable) SelectInto(dest *affineCached, x int8) {
// Compute xabs = |x|
xmask := x >> 7
xabs := uint8((x + xmask) ^ xmask)
dest.Zero()
for j := 1; j <= 8; j++ {
// Set dest = j*Q if |x| = j
cond := subtle.ConstantTimeByteEq(xabs, uint8(j))
dest.Select(&v.points[j-1], dest, cond)
}
// Now dest = |x|*Q, conditionally negate to get x*Q
dest.CondNeg(int(xmask & 1))
}
// Given odd x with 0 < x < 2^4, return x*Q (in variable time).
func (v *nafLookupTable5) SelectInto(dest *projCached, x int8) {
*dest = v.points[x/2]
}
// Given odd x with 0 < x < 2^7, return x*Q (in variable time).
func (v *nafLookupTable8) SelectInto(dest *affineCached, x int8) {
*dest = v.points[x/2]
}
| Go | 4 | SSSDNSY/go | src/crypto/ed25519/internal/edwards25519/tables.go | [
"BSD-3-Clause"
] |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef ARCH_SPINLOCK_HPP_
#define ARCH_SPINLOCK_HPP_
#include <pthread.h>
#include <string.h>
#include "errors.hpp"
// I don't know the "clean" way to detect the availability of the pthread
// spinlock feature. For now we just use __MACH__ to default to mutex (which
// will just work) on Apple systems. If it's ever useful, making our own
// spinlock implementation could be an option.
#if defined(__MACH__)
#define SPINLOCK_PTHREAD_MUTEX
#else
#define SPINLOCK_PTHREAD_SPINLOCK
#endif
// TODO: we should use regular mutexes on single core CPU
// instead of spinlocks
class spinlock_t {
public:
friend class spinlock_acq_t;
spinlock_t();
~spinlock_t();
private:
void lock();
void unlock();
#if defined(SPINLOCK_PTHREAD_SPINLOCK)
pthread_spinlock_t l;
#elif defined (SPINLOCK_PTHREAD_MUTEX)
pthread_mutex_t l;
#endif
DISABLE_COPYING(spinlock_t);
};
class spinlock_acq_t {
public:
explicit spinlock_acq_t(spinlock_t *the_lock) : the_lock_(the_lock) {
the_lock_->lock();
}
~spinlock_acq_t() {
the_lock_->unlock();
}
private:
spinlock_t *the_lock_;
DISABLE_COPYING(spinlock_acq_t);
};
#endif /* ARCH_SPINLOCK_HPP_ */
| C++ | 5 | zadcha/rethinkdb | src/arch/spinlock.hpp | [
"Apache-2.0"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
contract HelloWorld {
uint256 public value;
event ValueSet(uint256);
constructor() payable {
value = 5;
}
function setValue(uint256 val) public {
value = val;
emit ValueSet(val);
}
function getConstVal() public pure returns (uint8) {
return 123;
}
}
| Solidity | 5 | Shiba-Chain/ganache | src/chains/ethereum/ethereum/tests/contracts/HelloWorld.sol | [
"MIT"
] |
extends Node2D
func _draw() -> void:
var size : Vector2 = Global.current_project.size
var positions : Array = get_tile_positions(size)
var tilemode_opacity := Global.tilemode_opacity
var _position := position
var _scale := scale
if Global.mirror_view:
_position.x = _position.x + Global.current_project.size.x
_scale.x = -1
draw_set_transform(_position, rotation, _scale)
var modulate_color := Color(tilemode_opacity, tilemode_opacity, tilemode_opacity, tilemode_opacity) # premultiply alpha blending is applied
var current_frame_texture: Texture = Global.canvas.currently_visible_frame.get_texture()
for pos in positions:
draw_texture(current_frame_texture, pos, modulate_color)
draw_set_transform(position, rotation, scale)
func get_tile_positions(size):
match Global.current_project.tile_mode:
Global.TileMode.BOTH:
return [
Vector2(0, size.y), # Down
Vector2(-size.x, size.y), # Down left
Vector2(-size.x, 0), # Left
-size, # Up left
Vector2(0, -size.y), # Up
Vector2(size.x, -size.y), # Up right
Vector2(size.x, 0), # Right
size # Down right
]
Global.TileMode.X_AXIS:
return [
Vector2(size.x, 0), # Right
Vector2(-size.x, 0), # Left
]
Global.TileMode.Y_AXIS:
return [
Vector2(0, size.y), # Down
Vector2(0, -size.y), # Up
]
_:
return []
| GDScript | 5 | triptych/Pixelorama | src/UI/Canvas/TileMode.gd | [
"MIT"
] |
import Debug = "mo:base/Debug";
// local imports
import Random = "Random";
import State = "State";
import Grid = "Grid";
actor Life {
stable var state : State.State =
do {
let rand = Random.new();
State.new(64, func (i, j) { rand.next() % 2 == 1 });
};
system func preupgrade() {
state := cur.toState();
};
system func postupgrade() {
Debug.print("upgraded to v2!");
};
public query func stableState() : async Text {
debug_show(cur.toState());
};
var cur = Grid.Grid(state);
var nxt = Grid.Grid(State.new(cur.size(), func (i, j) { false; }));
public func next() : async Text {
cur.next(nxt);
let temp = cur;
cur := nxt;
nxt := temp;
cur.toText();
};
public query func current() : async Text {
cur.toText()
};
};
| Modelica | 4 | DaveSimplifire/examples | motoko/life/versions/v2/life/main.mo | [
"Apache-2.0"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Paste all cleaned date files below each other and save in one CSV file
**
** Date:
** 16/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.H. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <oxfloat.h>
main(){
decl mData2008, mData2009, mData2010, mData2011, mData2012, mData2013, mData2014;
//load data
mData2008 = loadmat("2008_Cleaned.csv");
mData2009 = loadmat("2009_Cleaned.csv");
mData2010 = loadmat("2010_Cleaned.csv");
mData2011 = loadmat("2011_Cleaned.csv");
mData2012 = loadmat("2012_Cleaned.csv");
mData2013 = loadmat("2013_Cleaned.csv");
mData2014 = loadmat("2014_Cleaned.csv");
//save data below each other
savemat("Cleaned_all.csv", mData2008| mData2009| mData2010| mData2011| mData2012| mData2013| mData2014);
} | Ox | 3 | tamerdilaver/Group4_Code_Data | 2PasteCSVFilesBelowEachOther.ox | [
"MIT"
] |
%%
%unicode 2.1
%public
%class UnicodePropList_Numeric_2_1
%type int
%standalone
%include ../../resources/common-unicode-binary-property-java
%%
\p{Numeric} { setCurCharPropertyValue(); }
[^] { }
<<EOF>> { printOutput(); return 1; }
| JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-proplist/UnicodePropList_Numeric_2_1.flex | [
"BSD-3-Clause"
] |
; v8u301
; https://www.java.com/en/download/manual.jsp
[Components]
Name: "utilities\jre"; Description: "Java Runtime Environment (JRE)"; Types: full;
[Files]
Source: "{#MySrcDir}\utilities\jre\*.exe"; DestDir: "{app}\jre"; Components: utilities\jre or java; Flags: ignoreversion recursesubdirs createallsubdirs
[Run]
Filename: "{app}\jre\jre-8u301-windows-x64.exe"; Parameters: "/s"; Components: utilities\jre or java; Check: Is64BitInstallMode
Filename: "{app}\jre\jre-8u301-windows-i586.exe"; Parameters: "/s"; Components: utilities\jre or java; Check: not Is64BitInstallMode
; The following program associates .jar files with java binary, allowing double-clicking them to run
; https://johann.loefflmann.net/en/software/jarfix/index.html
Filename: "{app}\jre\jarfix.exe"; Parameters: "/s"; Components: utilities\jre or java
| Inno Setup | 2 | reckdo/retoolkit | src/installer/utilities/jre.iss | [
"Apache-2.0"
] |
{% extends "layouts/base.volt" %}
{% block header %}
{% include 'partials/header.volt' %}
{% endblock %}
{% block head_custom %}
{% include 'partials/custom_css.volt' %}
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar.volt' %}
{% endblock %}
{% block content %}
{% include 'partials/content_header.volt' %}
{% include 'partials/content.volt' %}
{% endblock %}
{% block footer %}
{% include 'partials/footer.volt' %}
{% endblock %}
{% block footer_js %}
{{ assets.outputJs('footer') }}
{% endblock %}
| Volt | 4 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/layouts/webtools.volt | [
"BSD-3-Clause"
] |
#!/usr/bin/env python
counts=dict()
mails=list()
fname=input('Enter file name:')
fh=open(fname)
for line in fh:
if not line.startswith('From '):
continue
# if line.startswith('From:'):
# continue
id=line.split()
mail=id[1]
mails.append(mail)
freq_mail = max(mails, key=mails.count) #To find frequent mail
print(freq_mail, mails.count(freq_mail)) #To find countof frequent mail
"""
for x in mails:
counts[x]=counts.get(x,0)+1
bigmail=None
bigvalue=None
for key,value in counts.items():
if bigvalue==None or bigvalue<value:
bigmail=key
bigvalue=value
print(bigmail, bigvalue)
"""
| Python | 3 | nicetone/Python | email id dictionary/dict1.py | [
"MIT"
] |
--TEST--
Bug #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement)
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = '<?xml version="1.0" encoding="utf-8" ?>
<test>
</test>';
$root = simplexml_load_string($xml);
$clone = clone $root;
var_dump($root);
var_dump($clone);
var_dump($clone->asXML());
echo "Done\n";
?>
--EXPECTF--
object(SimpleXMLElement)#%d (0) {
}
object(SimpleXMLElement)#%d (0) {
}
string(%d) "<?xml version="1.0" encoding="utf-8"?>
<test>
</test>
"
Done
| PHP | 4 | NathanFreeman/php-src | ext/simplexml/tests/bug39662.phpt | [
"PHP-3.01"
] |
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
<PropertyGroup>
<ProductVersion>3.5</ProductVersion>
<OutputType>StaticLibrary</OutputType>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<AllowLegacyCreate>False</AllowLegacyCreate>
<Name>Sugar (OS X)</Name>
<RootNamespace>Sugar</RootNamespace>
<SDK>OS X</SDK>
<ProjectGuid>{ab7ab88b-2370-43bf-844b-54d015da9e57}</ProjectGuid>
<AssemblyName>Sugar</AssemblyName>
<DefaultUses>Foundation</DefaultUses>
<DeploymentTargetVersion>10.7</DeploymentTargetVersion>
<AllowLegacyOutParams>False</AllowLegacyOutParams>
<CreateHeaderFile>False</CreateHeaderFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<Optimize>False</Optimize>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE;OSX</DefineConstants>
<CaptureConsoleOutput>False</CaptureConsoleOutput>
<StartMode>Project</StartMode>
<XmlDoc>False</XmlDoc>
<XmlDocWarningLevel>WarningOnPublicMembers</XmlDocWarningLevel>
<EnableUnmanagedDebugging>False</EnableUnmanagedDebugging>
<GenerateDebugInfo>True</GenerateDebugInfo>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<Optimize>True</Optimize>
<OutputPath>.\bin</OutputPath>
<GenerateDebugInfo>True</GenerateDebugInfo>
<EnableAsserts>False</EnableAsserts>
<DefineConstants>OSX</DefineConstants>
<CaptureConsoleOutput>False</CaptureConsoleOutput>
<StartMode>Project</StartMode>
<XmlDoc>False</XmlDoc>
<XmlDocWarningLevel>WarningOnPublicMembers</XmlDocWarningLevel>
<EnableUnmanagedDebugging>False</EnableUnmanagedDebugging>
</PropertyGroup>
<ItemGroup>
<Reference Include="AppKit.fx" />
<Reference Include="CoreServices.fx" />
<Reference Include="Foundation.fx" />
<Reference Include="libNougat.fx" />
<Reference Include="libxml2.fx" />
<Reference Include="rtl.fx" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Oxygene\RemObjects.Oxygene.Nougat.targets" />
<PropertyGroup>
<PreBuildEvent />
</PropertyGroup>
<Import Project="Sugar.Shared.projitems" Label="Shared" />
</Project> | Oxygene | 2 | mosh/sugar | Sugar/Sugar.Nougat.OSX.oxygene | [
"BSD-3-Clause"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="Example - Simple.vi" Type="VI" URL="../Example - Simple.vi"/>
<Item Name="AI.lvclass" Type="LVClass" URL="../AI_class/AI.lvclass"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Cluster From Error Code.vi"/>
<Item Name="DAQmx Fill In Error Info.vi" Type="VI" URL="/<vilib>/DAQmx/miscellaneous.llb/DAQmx Fill In Error Info.vi"/>
<Item Name="DAQmx Create Task.vi" Type="VI" URL="/<vilib>/DAQmx/create/task.llb/DAQmx Create Task.vi"/>
<Item Name="DAQmx Create Channel (AI-Voltage-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Voltage-Basic).vi"/>
<Item Name="DAQmx Create Virtual Channel.vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Virtual Channel.vi"/>
<Item Name="DAQmx Timing (Sample Clock).vi" Type="VI" URL="/<vilib>/DAQmx/configure/timing.llb/DAQmx Timing (Sample Clock).vi"/>
<Item Name="DAQmx Timing.vi" Type="VI" URL="/<vilib>/DAQmx/configure/timing.llb/DAQmx Timing.vi"/>
<Item Name="DAQmx Read (Analog 2D DBL NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 2D DBL NChan NSamp).vi"/>
<Item Name="DAQmx Read.vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read.vi"/>
<Item Name="NI_AALBase.lvlib" Type="Library" URL="/<vilib>/Analysis/NI_AALBase.lvlib"/>
<Item Name="DAQmx Flatten Channel String.vi" Type="VI" URL="/<vilib>/DAQmx/miscellaneous.llb/DAQmx Flatten Channel String.vi"/>
<Item Name="DAQmx Create Scale.vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale.vi"/>
<Item Name="DAQmx Create Scale (Linear).vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale (Linear).vi"/>
</Item>
<Item Name="lvanlys.dll" Type="Document" URL="/<resource>/lvanlys.dll"/>
</Item>
<Item Name="Build Specifications" Type="Build"/>
</Item>
</Project>
| LabVIEW | 2 | ismet55555/LabVIEW-DAQ-Classes | DAQ/Analog Input/AI OOP.lvproj | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/custom</namespace-uri>
<default-prefix>xc</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>UnpBootFiles</component-type>
<composite-name>UnpBootFiles</composite-name>
<composite-file>/UnpBootFiles.xsp</composite-file>
<composite-extension>
<designer-extension>
<in-palette>true</in-palette>
<category>XControls</category>
<render-markup><?xml version="1.0" encoding="UTF-8"?> 
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"> 
<div style="border: 2px solid #A9A9A9; padding: 3px; margin: 5px;">
<h1>UnpBootFiles v1.7.0</h1>
<div>
To use this custom control make sure you have set the Custom Properties.
</div>
</div>
</xp:view></render-markup>
</designer-extension>
</composite-extension>
<property>
<property-name>filestitle</property-name>
<property-class>string</property-class>
<description>The title for the list</description>
</property>
<property>
<property-name>fileslist</property-name>
<property-class>object</property-class>
<description>An array of file objects that contain filename and url for each file. If you're using a FormViewer, then pass in viewScope.images</description>
</property>
</composite-component>
</faces-config>
| XPages | 4 | teamstudio/xcontrols-domino | sampler-app/CustomControls/UnpBootFiles.xsp-config | [
"Apache-2.0"
] |
# 1 s/r conflict and 1 r/r conflict
class A
rule
target: a
a :
| a list
list :
| list ITEM
end
| Yacc | 3 | puzzle/nochmal | spec/dummy/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/rrconf.y | [
"MIT"
] |
online 3.0689827352935839 0.0 0.0 2.886661178499629 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7880488898315194 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.0689827352935839 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
estimate 0.0 2.886661178499629 0.0 0.0 0.0 0.0 0.94075102944431566 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1935139979396836 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.9058319254879028 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5798083590595744 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
use 0.0 0.0 2.1447238337702514 0.0 0.0 0.0 0.19881368471493818 0.0 0.0 2.550188941878416 1.297425973383048 0.0 0.0 0.0 0.0 1.4515766532103063 1.8570417613184707 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.297425973383048 0.0 0.10784190650921155 0.0 1.6338982100042612 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1447238337702514 0.0 2.1447238337702514 0.0 0.0 1.1638945807585255 2.550188941878416 0.0 0.0 0.0 2.550188941878416 1.8570417613184707 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2433361224383614 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.8570417613184707 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2433361224383614 0.0 0.0 0.0 0.0 0.0
bring 0.0 0.0 0.0 3.4844981792552492 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 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0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
service 0.0 0.0 0.0 0.0 0.0 0.0 0.84544084963999089 1.7498971238671432 0.0 0.0 1.9440531383081003 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.75446907143426423 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.810521745683578 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.8899632873634138 3.1968161068034688 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.2805253749293137 0.0 3.1968161068034688 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
traffic 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.6628857468775133 0.0 0.0 0.0 1.0303631881340027 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.886661178499629 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.3606048750045796 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.1098047298138387 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.3974868022656195 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
operational_permit 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.3974868022656195 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.8029519103737841 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.3560329274374587 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
scramble 2.3758355547336385 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 0.0 0.0 0.0 2.0393633181124255 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.886661178499629 0.0 2.886661178499629 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.3758355547336385 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
outage 0.0 0.0 0.0 0.0 0.0 0.0 0.47074740019858008 1.7806687825338967 0.0 0.0 2.2625068694266353 0.74268111568222195 0.0 0.0 0.0 0.0 0.0 2.4166575492538933 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.766069983112744 0.0 0.0 0.0 0.0 2.4166575492538933 0.0 0.0 0.0 0.0 0.0 0.0 1.7235103686939481 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5152698379220033 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
manage 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.3560329274374587 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.4960990909337291 0.0 0.0 0.0 0.0 0.0 2.2988745135975099 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
additional 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1289754768021125 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.7043396217056741 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
sub_-_sea_repair 0.0 0.0 0.0 0.0 0.0 0.0 1.8570417613184707 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.1098047298138387 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.9556540499865802 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
work 0.0 0.0 0.0 0.0 0.0 2.3758355547336385 0.0 1.1520601231115228 0.0 0.0 0.0 0.51953756436801224 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.985273467167739 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1935139979396836 2.5989791060478482 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7880488898315194 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 2.886661178499629 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
issue 3.985273467167739 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0393633181124255 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
break 0.0 3.8029519103737841 0.0 0.0 0.0 0.0 1.8570417613184707 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.9015641990418937 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.8029519103737841 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
remain 0.0 0.0 0.0 0.0 0.0 3.0689827352935839 0.0 1.845207303671468 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.886661178499629 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7880488898315194 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
restore 0.0 0.0 0.0 0.0 0.0 1.9058319254879028 0.47074740019858008 0.0 0.0 0.0 2.2625068694266353 1.4358282962421673 0.0 0.0 0.0 0.0 0.0 2.4166575492538933 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7235103686939481 2.1289754768021125 1.4358282962421673 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.8221226573620579 0.0 0.0 0.0 0.0 0.0 0.62489808002583835 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 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0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
expect 0.0 0.0 0.0 0.0 0.0 0.0 1.7392587256620873 0.0 0.0 0.0 0.0 0.0 2.4811960703914648 0.0 0.0 0.0 0.0 2.9920216941574553 0.0 0.0 2.2988745135975099 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.9920216941574553 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1447238337702514 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.7043396217056741 0.0 0.0 0.0 0.0 0.0 3.3974868022656195 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
indicate 0.0 0.0 0.0 0.0 0.0 0.0 1.0461115451021419 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.9920216941574553 0.0 0.0 0.0 0.0 1.6057273330375645 0.0 2.7043396217056741 0.0 0.0 0.0 2.1447238337702514 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.4811960703914648 1.3180452605857838 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.3974868022656195 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
stable 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5798083590595744 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.8029519103737841 0.0 0.0 3.3974868022656195 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
repair 0.0 0.0 0.0 0.0 0.0 0.0 0.24760384888437034 0.45891294255157744 1.5003668173797384 0.0 1.3462161375524799 0.0 1.6826883741736931 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.5003668173797384 0.0 0.0 1.5003668173797384 1.9058319254879028 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.89423101380942305 0.0 0.0 2.1935139979396836 0.0 0.0 0.0 0.0 0.0 0.51953756436801224 0.0 0.0 1.3462161375524799 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.45891294255157744 0.0 0.0 2.1935139979396836 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.2126847449279576 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.9058319254879028 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
problem 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0742824220688381 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.35296436454219654 0.0 1.4515766532103063 0.0 1.8570417613184707 0.0 0.0 0.10784190650921155 0.0 0.0 0.0 0.0 0.0 0.0 1.9440531383081006 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.1638945807585255 0.0 0.0 0.0 2.550188941878416 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.550188941878416 2.550188941878416 0.0 0.0 0.0 0.0 0.0 0.0 3.2433361224383614 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2433361224383614 0.0 0.0 0.0 3.2433361224383614 0.0 0.0 0.0 0.0
take 0.0 0.0 0.0 0.0 0.0 0.0 1.8570417613184707 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.4166575492538933 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.8029519103737841 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1289754768021125 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cut 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.8412934043503317 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.766069983112744 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5989791060478482 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5152698379220033 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
implement 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.7325104986723705 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5798083590595744 0.0 3.5798083590595744 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
receive 0.0 0.0 0.0 0.0 0.0 0.0 1.297425973383048 0.0 3.243336122438361 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.9556540499865802 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.5087350670502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.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
experience 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.5930762154840057 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.2772232660655285 0.0 1.2772232660655285 0.0 0.0 0.0 0.0 0.62663569992437929 0.0 0.0 0.0 0.0 1.9703704466254739 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.9895411936137477 0.0 0.0 0.0 0.0 0.0 0.0 1.4595448228594834 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.6826883741736931 0.0 0.0 0.0 0.0 0.9895411936137477 0.0 0.0 0.0 0.0 0.0 1.9703704466254739 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.9703704466254739 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
SEACOM 3.0689827352935839 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7880488898315194 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.0689827352935839 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 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.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0111924411457291 0.0 0.0 0.26199258633646988 0.0 0.0 0.0 0.0 2.2988745135975099 0.0 0.0 0.0 0.0 0.0 0.0 2.2988745135975099 0.0 0.0 0.0 1.3180452605857838 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.2988745135975099 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.7043396217056741 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.3974868022656195
incident 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.4358282962421673 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.9015641990418937 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.2084170184819483 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
repair_time 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.94075102944431566 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.7043396217056741 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0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0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
P2P_traffic 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.8029519103737841 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.985273467167739 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
downtime 2.1935139979396836 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.6338982100042609 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.91258015247761926 2.4166575492538933 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.4050566375754137 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.4166575492538933 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.3974868022656195 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.1935139979396836 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Seacom_capacity 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.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.0 0.0
ensure 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5152698379220033 0.0 0.0 3.1098047298138387 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4.2084170184819483 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
cooperation 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.2126847449279576 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.7880488898315194 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.985273467167739 0.0 0.0 3.2921262866077936 3.5798083590595744 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
experienced 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0393633181124255 0.0 0.0 0.0 0.0 0.0 0.0 0.0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0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 5.5947113796018391 0.0 0.0 0.0
depend 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.5152698379220033 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
| DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/30/same_sentence_ppmi.dm | [
"CC-BY-3.0"
] |
// Copyright 2018 The Grafeas Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
lexer grammar FilterExpressionLexer;
// Lexer Rules
// ===========
DOT : '.';
HAS : ':';
OR : 'OR';
AND : 'AND';
NOT : 'NOT';
LPAREN : '(';
RPAREN : ')';
LBRACE : '[';
RBRACE : ']';
LBRACKET : '{';
RBRACKET : '}';
COMMA : ',';
LESS_THAN : '<';
LESS_EQUALS : '<=';
GREATER_THAN : '>';
GREATER_EQUALS : '>=';
NOT_EQUALS : '!=';
EQUALS : '=';
EXCLAIM : '!';
MINUS : '-';
PLUS : '+';
STRING : '"' Character* '"';
WS : Whitespace;
DIGIT : Digit;
HEX_DIGIT : '0x' HexDigit+;
EXPONENT : Exponent;
TEXT : (StartChar | TextEsc) (MidChar | TextEsc)*;
BACKSLASH : '\\';
fragment Character
: ' ' | '!' | '#' .. '[' | ']' .. '~'
| CharactersFromU00A1
| TextEsc
| '\\' ('a' | 'b' | 'f' | 'n' | 'r' | 't' | 'v')?
| Whitespace
;
fragment TextEsc
: EscapedChar
| UnicodeEsc
| OctalEsc
| HexEsc
;
fragment UnicodeEsc
: '\\' 'u' HexDigit HexDigit HexDigit HexDigit
;
fragment OctalEsc
: '\\' [0-3]? OctalDigit? OctalDigit
;
fragment HexEsc
: '\\x' HexDigit HexDigit
;
fragment Digit
: [0-9]
;
fragment Exponent
: [eE] (PLUS|MINUS)? Digit+
;
fragment HexDigit
: Digit | [a-fA-F]
;
fragment OctalDigit
: [0-7]
;
fragment StartChar
: '#' .. '\''
| '*'
| '/'
| ';'
| '?'
| '@'
| [A-Z]
| '^' .. 'z'
| '|'
| CharactersFromU00A1
;
fragment MidChar
: StartChar
| Digit
| PLUS
| MINUS
;
fragment EscapedChar
: '\\' [:=<>+~"\\.*]
;
fragment Whitespace
: (' '|'\r'|'\t'|'\u000C'|'\n')
;
fragment CharactersFromU00A1
: '\u00A1' .. '\ufffe'
;
| ANTLR | 4 | agv426/grafeas | server-go/filtering/parser/gen/FilterExpressionLexer.g4 | [
"Apache-2.0"
] |
package org.intellij.grammar.expression;
import com.intellij.lexer.*;
import com.intellij.psi.tree.IElementType;
import static org.intellij.grammar.expression.ExpressionTypes.*;
%%
%{
public _ExpressionLexer() {
this((java.io.Reader)null);
}
%}
%public
%class _ExpressionLexer
%implements FlexLexer
%function advance
%type IElementType
%unicode
EOL="\r"|"\n"|"\r\n"
LINE_WS=[\ \t\f]
WHITE_SPACE=({LINE_WS}|{EOL})+
COMMENT="//".*
NUMBER=[0-9]+(\.[0-9]*)?
ID=[:letter:][a-zA-Z_0-9]*
STRING=('([^'\\]|\\.)*'|\"([^\"\\]|\\.)*\")
SYNTAX=;|.|\+|-|\*\*|\*|==|=|"/"|,|\(|\)|\^|\!=|\!|>=|<=|>|<
%%
<YYINITIAL> {
{WHITE_SPACE} { return com.intellij.psi.TokenType.WHITE_SPACE; }
"BETWEEN" { return BETWEEN; }
"AND" { return AND; }
{COMMENT} { return COMMENT; }
{NUMBER} { return NUMBER; }
{ID} { return ID; }
{STRING} { return STRING; }
{SYNTAX} { return SYNTAX; }
[^] { return com.intellij.psi.TokenType.BAD_CHARACTER; }
}
| JFlex | 4 | JojOatXGME/Grammar-Kit | tests/org/intellij/grammar/expression/_ExpressionLexer.flex | [
"Apache-2.0"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "tensorflow/lite/profiling/signpost_profiler.h"
#import <Foundation/Foundation.h>
#import <os/log.h>
#import <os/signpost.h>
#include <cstdint>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_map>
#include <utility>
#include "tensorflow/lite/core/api/profiler.h"
namespace tflite {
namespace profiling {
class SignpostProfiler : public tflite::Profiler {
public:
SignpostProfiler()
: log_(nullptr), msg_buf_(std::ios::out | std::ios::ate), last_event_handle_(0) {
if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *)) {
log_ = os_log_create("org.tensorflow.lite", "Tracing");
}
}
~SignpostProfiler() override {
if (log_) {
os_release(log_);
}
}
uint32_t BeginEvent(const char *tag, EventType event_type, int64_t event_metadata1,
int64_t event_metadata2) override {
if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *)) {
if (!os_signpost_enabled(log_)) {
return 0;
}
// We encode the signpost message as tag@event_metadata1/event_metadata2.
// In case of OPERATOR_INVOKE_EVENT, the event message will be
// op_name@node_index/subgraph_index. See the macro TFLITE_SCOPED_TAGGED_OPERATOR_PROFILE
// defined in tensorflow/lite/core/api/profiler.h for details.
msg_buf_.str(""); // reset the buffer.
msg_buf_ << tag << "@" << event_metadata1 << "/" << event_metadata2;
std::string msg_str = msg_buf_.str();
const char *msg = msg_str.c_str();
os_signpost_id_t signpost_id = os_signpost_id_generate(log_);
switch (event_type) {
case EventType::DEFAULT:
os_signpost_interval_begin(log_, signpost_id, "default", "%s", msg);
break;
case EventType::OPERATOR_INVOKE_EVENT:
os_signpost_interval_begin(log_, signpost_id, "operator invoke", "%s", msg);
break;
case EventType::DELEGATE_OPERATOR_INVOKE_EVENT:
os_signpost_interval_begin(log_, signpost_id, "delegate operator invoke", "%s", msg);
break;
case EventType::GENERAL_RUNTIME_INSTRUMENTATION_EVENT:
os_signpost_interval_begin(log_, signpost_id, "runtime instrumentation", "%s", msg);
break;
default:
os_signpost_interval_begin(log_, signpost_id, "unknown", "%s", msg);
}
uint32_t event_handle = ++last_event_handle_;
saved_events_[event_handle] = std::make_pair(signpost_id, event_type);
return event_handle;
} else {
return 0;
}
}
void EndEvent(uint32_t event_handle) override {
if (@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 5.0, *)) {
if (!os_signpost_enabled(log_)) {
return;
}
auto it = saved_events_.find(event_handle);
if (it != saved_events_.end()) {
auto signpost_id = it->second.first;
auto event_type = it->second.second;
switch (event_type) {
case EventType::DEFAULT:
os_signpost_interval_end(log_, signpost_id, "default");
break;
case EventType::OPERATOR_INVOKE_EVENT:
os_signpost_interval_end(log_, signpost_id, "operator invoke");
break;
case EventType::DELEGATE_OPERATOR_INVOKE_EVENT:
os_signpost_interval_end(log_, signpost_id, "delegate operator invoke");
break;
case EventType::GENERAL_RUNTIME_INSTRUMENTATION_EVENT:
os_signpost_interval_end(log_, signpost_id, "runtime instrumentation");
break;
default:
os_signpost_interval_end(log_, signpost_id, "unknown");
}
saved_events_.erase(it);
}
}
}
private:
os_log_t log_;
std::stringstream msg_buf_;
uint32_t last_event_handle_;
std::unordered_map<uint32_t, std::pair<os_signpost_id_t, EventType>> saved_events_;
};
std::unique_ptr<tflite::Profiler> MaybeCreateSignpostProfiler() {
#if defined(TFLITE_ENABLE_DEFAULT_PROFILER)
return std::unique_ptr<tflite::Profiler>(new SignpostProfiler());
#else // TFLITE_ENABLE_DEFAULT_PROFILER
if ([[[NSProcessInfo processInfo] environment] objectForKey:@"debug.tflite.trace"]) {
return std::unique_ptr<tflite::Profiler>(new SignpostProfiler());
} else {
return nullptr;
}
#endif // TFLITE_ENABLE_DEFAULT_PROFILER
}
} // namespace profiling
} // namespace tflite
| Objective-C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/lite/profiling/signpost_profiler.mm | [
"Apache-2.0"
] |
{# This syntax should be equivalent to salt['test.ping']() #}
{% set is_true = salt.test.ping() %}
always-passes:
test.succeed_without_changes:
- name: is_true_{{ is_true }}
| SaltStack | 3 | byteskeptical/salt | tests/integration/files/file/base/jinja_dot_notation.sls | [
"Apache-2.0"
] |
QT += widgets
SOURCES += \
$$PWD/exportdata.cpp \
$$PWD/exporter.cpp \
$$PWD/webviewexporter.cpp
HEADERS += \
$$PWD/exportdata.h \
$$PWD/exporter.h \
$$PWD/webviewexporter.h
| QMake | 2 | lizhyumzi/vnote | src/export/export.pri | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Expressions
Public Class FromKeywordRecommenderTests
Inherits RecommenderTests
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneInClassDeclarationTest()
VerifyRecommendationsMissing(<ClassDeclaration>|</ClassDeclaration>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneAfterDimEqualsNewTest()
VerifyRecommendationsMissing(<MethodBody>Dim x = New |</MethodBody>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneAfterFromTest()
VerifyRecommendationsMissing(<ClassDeclaration>Dim x = New Goo From |</ClassDeclaration>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneAfterWith1Test()
VerifyRecommendationsMissing(<ClassDeclaration>Dim x = New With |</ClassDeclaration>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneAfterWith2Test()
VerifyRecommendationsMissing(<ClassDeclaration>Dim x = New Goo With |</ClassDeclaration>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterDimEqualsNewTypeNameTest()
VerifyRecommendationsContain(<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
End Class
Module Program
Sub Main(args As String())
Dim x = new C |
End Sub
End Module</File>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterDimEqualsNewTypeNameAndParensTest()
VerifyRecommendationsContain(<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
End Class
Module Program
Sub Main(args As String())
Dim x = new C() |
End Sub
End Module</File>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneAfterDimAsNewTest()
VerifyRecommendationsMissing(<MethodBody>Dim x As New |</MethodBody>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterDimAsNewTypeNameTest()
VerifyRecommendationsContain(<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
End Class
Module Program
Sub Main(args As String())
Dim x as new C |
End Sub
End Module</File>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterDimAsNewTypeNameAndParensTest()
VerifyRecommendationsContain(<MethodBody>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
End Class
Module Program
Sub Main(args As String())
Dim x As new C() |
End Sub
End Module</MethodBody>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoneAfterAssignmentNewTest()
VerifyRecommendationsMissing(<MethodBody>x = New |</MethodBody>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterAssignmentNewTypeNameTest()
VerifyRecommendationsContain(<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
End Class
Module Program
Sub Main(args As String())
Dim b = New C |
End Sub
End Module</File>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterAssignmentNewTypeNameAndParensTest()
VerifyRecommendationsContain(<MethodBody>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
End Class
Module Program
Sub Main(args As String())
Dim x as C
x = new C() |
End Sub
End Module</MethodBody>, "From")
End Sub
<WorkItem(542741, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542741")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromAfterLambdaHeaderTest()
VerifyRecommendationsContain(<MethodBody>Dim q1 As Func(Of Integer()) = Function() |</MethodBody>, "From")
End Sub
<WorkItem(543291, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/543291")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoFromAfterDotTest()
Dim code = <File>
Class C
Sub M()
Dim c As New C.|
End Sub
End Class
</File>
VerifyRecommendationsMissing(code, "From")
End Sub
<WorkItem(542252, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/542252")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NoFromIfNotCollectionInitializerTest()
Dim code = <File>
System
Imports System.Collections.Generic
Imports System.Linq
Module Program
Sub Main(args As String())
Dim y = New Goo() |
End Sub
End Module
Class Goo
End Class
</File>
VerifyRecommendationsMissing(code, "From")
End Sub
<WorkItem(530953, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530953")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub NotAfterEolTest()
VerifyRecommendationsMissing(
<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
Dim b = New C
|
End Class</File>, "From")
End Sub
<WorkItem(530953, "http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/530953")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub AfterExplicitLineContinuationTest()
VerifyRecommendationsContain(
<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
Dim b = New C _
|
End Class</File>, "From")
End Sub
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub AfterExplicitLineContinuationTestCommentsAfterLineContinuation()
VerifyRecommendationsContain(
<File>Imports System.Collections.Generic
Class C
Implements IEnumerable(Of Integer)
Public Sub Add(i As Integer)
End Sub
Dim b = New C _ ' Test
|
End Class</File>, "From")
End Sub
<WorkItem(4754, "https://github.com/dotnet/roslyn/issues/4754")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromForTypeInheritingCollectionInitializerPatternTest()
Dim code = <File>
Imports System.Collections
Public Class SupportsAdd
Implements IEnumerable
Public Function GetEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator
Throw New NotImplementedException()
End Function
Public Sub Add(x As Object)
End Sub
End Class
Public Class DerivedSupportsAdd
Inherits SupportsAdd
End Class
Class Program
Sub Goo()
Dim x = New DerivedSupportsAdd |
End Sub
End Class
</File>
VerifyRecommendationsContain(code, "From")
End Sub
<WorkItem(4754, "https://github.com/dotnet/roslyn/issues/4754")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromForTypeInheritingCollectionInitializerPatternInAccessibleTest()
Dim code = <File>
Imports System.Collections
Public Class SupportsAdd
Implements IEnumerable
Public Function GetEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator
Throw New NotImplementedException()
End Function
Protected Sub Add(x As Object)
End Sub
End Class
Public Class DerivedSupportsAdd
Inherits SupportsAdd
End Class
Class Program
Sub Goo()
Dim x = New DerivedSupportsAdd |
End Sub
End Class
</File>
VerifyRecommendationsMissing(code, "From")
End Sub
<WorkItem(4754, "https://github.com/dotnet/roslyn/issues/4754")>
<Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)>
Public Sub FromForTypeInheritingCollectionInitializerPatternAccessibleTest()
Dim code = <File>
Imports System.Collections
Public Class SupportsAdd
Implements IEnumerable
Public Function GetEnumerator() As IEnumerator Implements IEnumerable.GetEnumerator
Throw New NotImplementedException()
End Function
Protected Sub Add(x As Object)
End Sub
End Class
Public Class DerivedSupportsAdd
Inherits SupportsAdd
Sub Goo()
Dim x = New DerivedSupportsAdd |
End Sub
End Class</File>
VerifyRecommendationsContain(code, "From")
End Sub
End Class
End Namespace
| Visual Basic | 4 | frandesc/roslyn | src/EditorFeatures/VisualBasicTest/Recommendations/Expressions/FromKeywordRecommenderTests.vb | [
"MIT"
] |
=pod
=head1 NAME
BIO_f_readbuffer
- read only buffering BIO that supports BIO_tell() and BIO_seek()
=head1 SYNOPSIS
#include <openssl/bio.h>
const BIO_METHOD *BIO_f_readbuffer(void);
=head1 DESCRIPTION
BIO_f_readbuffer() returns the read buffering BIO method.
This BIO filter can be inserted on top of BIO's that do not support BIO_tell()
or BIO_seek() (e.g. A file BIO that uses stdin).
Data read from a read buffering BIO comes from an internal buffer which is
filled from the next BIO in the chain.
BIO_gets() is supported for read buffering BIOs.
Writing data to a read buffering BIO is not supported.
Calling BIO_reset() on a read buffering BIO does not clear any buffered data.
=head1 NOTES
Read buffering BIOs implement BIO_read_ex() by using BIO_read_ex() operations
on the next BIO (e.g. a file BIO) in the chain and storing the result in an
internal buffer, from which bytes are given back to the caller as appropriate
for the call. BIO_read_ex() is guaranteed to give the caller the number of bytes
it asks for, unless there's an error or end of communication is reached in the
next BIO. The internal buffer can grow to cache the entire contents of the next
BIO in the chain. BIO_seek() uses the internal buffer, so that it can only seek
into data that is already read.
=head1 RETURN VALUES
BIO_f_readbuffer() returns the read buffering BIO method.
=head1 SEE ALSO
L<bio(7)>,
L<BIO_read(3)>,
L<BIO_gets(3)>,
L<BIO_reset(3)>,
L<BIO_ctrl(3)>.
=head1 COPYRIGHT
Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use
this file except in compliance with the License. You can obtain a copy
in the file LICENSE in the source distribution or at
L<https://www.openssl.org/source/license.html>.
=cut
| Pod | 5 | pmesnier/openssl | doc/man3/BIO_f_readbuffer.pod | [
"Apache-2.0"
] |
# We need a value larger than list-max-ziplist-value to make sure
# the list has the right encoding when it is swapped in again.
array set largevalue {}
set largevalue(ziplist) "hello"
set largevalue(linkedlist) [string repeat "hello" 4]
| Tcl | 3 | tomliugen/tomliugen-redis-3.2.2-rc | tests/unit/type/list-common.tcl | [
"BSD-3-Clause"
] |
print ${(%):-'%F{yellow}The `cargo` plugin is deprecated and has been moved to the `rust` plugin.'}
print ${(%):-'Please update your .zshrc to use the `%Brust%b` plugin instead.%f'}
(( ${fpath[(Ie)$ZSH/plugins/rust]} )) || {
fpath=("$ZSH/plugins/rust" $fpath)
source "$ZSH/plugins/rust/rust.plugin.zsh"
}
| Shell | 3 | ohmyzsh/oh-my-zsh | plugins/cargo/cargo.plugin.zsh | [
"MIT"
] |
{layout '@layout.latte'}
{var $robots = false}
{block title}File {$fileName}{/block}
{block content}
<div id="source">
{var $lineRegex = '~<span class="line">(\s*)(\d+):(\s*)</span>([^\\n]*(?:\\n|$))~'}
<pre class="numbers"><code>{$source|replaceRE:$lineRegex,'<span class="l"><a href="#$2">$1$2$3</a></span>'|noescape}</code></pre>
<pre class="code"><code>{$source|replaceRE:$lineRegex,'<span id="$2" class="l">$4</span>'|noescape}</code></pre>
</div>
{/block}
| Latte | 4 | gitetsu/aws-sdk-php | build/docs/theme/source.latte | [
"Apache-2.0"
] |
module Ref {
@ Component for receiving and performing a math operation
queued component MathReceiver {
# ----------------------------------------------------------------------
# General ports
# ----------------------------------------------------------------------
@ Port for receiving the math operation
async input port mathOpIn: MathOp
@ Port for returning the math result
output port mathResultOut: MathResult
@ The rate group scheduler input
sync input port schedIn: Svc.Sched
# ----------------------------------------------------------------------
# Special ports
# ----------------------------------------------------------------------
@ Command receive
command recv port cmdIn
@ Command registration
command reg port cmdRegOut
@ Command response
command resp port cmdResponseOut
@ Event
event port eventOut
@ Parameter get
param get port prmGetOut
@ Parameter set
param set port prmSetOut
@ Telemetry
telemetry port tlmOut
@ Text event
text event port textEventOut
@ Time get
time get port timeGetOut
# ----------------------------------------------------------------------
# Parameters
# ----------------------------------------------------------------------
@ The multiplier in the math operation
param FACTOR: F32 default 1.0 id 0 \
set opcode 10 \
save opcode 11
# ----------------------------------------------------------------------
# Events
# ----------------------------------------------------------------------
@ Factor updated
event FACTOR_UPDATED(
val: F32 @< The factor value
) \
severity activity high \
id 0 \
format "Factor updated to {f}" \
throttle 3
@ Math operation performed
event OPERATION_PERFORMED(
val: MathOp @< The operation
) \
severity activity high \
id 1 \
format "{} operation performed"
@ Event throttle cleared
event THROTTLE_CLEARED \
severity activity high \
id 2 \
format "Event throttle cleared"
# ----------------------------------------------------------------------
# Commands
# ----------------------------------------------------------------------
@ Clear the event throttle
async command CLEAR_EVENT_THROTTLE \
opcode 0
# ----------------------------------------------------------------------
# Telemetry
# ----------------------------------------------------------------------
@ The operation
telemetry OPERATION: MathOp id 0
@ Multiplication factor
telemetry FACTOR: F32 id 1
}
}
| FORTRAN | 4 | AlperenCetin0/fprime | docs/Tutorials/MathComponent/MathReceiver/MathReceiver.fpp | [
"Apache-2.0"
] |
This is just a dummy file to let Configure know that Devel::PPPort
is an XS module. The real XS code is autogenerated from PPPort_xs.PL
when this module is built and will go to RealPPPort.xs.
| XS | 0 | vlinhd11/vlinhd11-android-scripting | perl/src/ext/Devel-PPPort/PPPort.xs | [
"Apache-2.0"
] |
data division.
linkage section.
01 require.
01 request.
01 response.
procedure division.
local mysql.
perform require using "mysql" giving mysql.
local name.
local address.
local notes.
local id.
move name in body in request to name.
move address in body in request to address.
move notes in body in request to notes.
move id in body in request to id.
local connection.
perform insert-supplier.
insert-supplier section.
local options.
move object to options.
move "root" to user in options.
move "" to password in options.
move "cobolscriptwebsite" to database in options.
perform createConnection in mysql using options giving connection.
perform connect in connection.
local datavalues.
move array to datavalues.
perform push in datavalues using name.
perform push in datavalues using address.
perform push in datavalues using notes.
perform push in datavalues using id.
perform query in connection using "update suppliers set Name = ?, Address = ?, Notes = ? where Id = ?" datavalues insert-end.
insert-end section using err, result.
if err then
display "Error"
stop run
end-if.
local location.
move "/supplier/view?id=" to location.
add id to location.
local headers.
move object to headers.
move location to headers("Location").
perform writeHead in response using 302 headers.
perform end in connection.
stop run.
| COBOL | 3 | jmptrader/CobolScript | samples/website/pages/supplierUpdate.cob | [
"MIT"
] |
{{ sylius_render_notifications_widget() }}
| Twig | 1 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/Layout/_notificationWidget.html.twig | [
"MIT"
] |
"""Diagnostics support for IQVIA."""
from __future__ import annotations
from typing import Any
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from .const import DOMAIN
async def async_get_config_entry_diagnostics(
hass: HomeAssistant, entry: ConfigEntry
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
coordinators: dict[str, DataUpdateCoordinator] = hass.data[DOMAIN][entry.entry_id]
return {
"entry": {
"title": entry.title,
"data": dict(entry.data),
},
"data": {
data_type: coordinator.data
for data_type, coordinator in coordinators.items()
},
}
| Python | 4 | MrDelik/core | homeassistant/components/iqvia/diagnostics.py | [
"Apache-2.0"
] |
package com.baeldung.interfaces.polymorphysim;
public class Square implements Shape {
@Override
public String name() {
return "Square";
}
}
| Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-lang-oop-inheritance/src/main/java/com/baeldung/interfaces/polymorphysim/Square.java | [
"MIT"
] |
{{
*************************************************
* uMP3 Play Music Object *
* Version 1.0 *
* Released: 6/02/2007 *
* Revised: -/--/---- *
* Author: Scott Gray *
* *
* Questions? Please post on the Propeller forum *
* http://forums.parallax.com/forums/ *
*************************************************
This object interfaces with Rogue Robotics uMP3 MP3 player. Basic play song and get
status functionality only. Can use uMP3 to access files on SD memory card. This is
not provided by this object.
Uses the extended full-duplex serial object which uses up one cog continously.
To use in program:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
ump3 : "uMP3"
Pub Start
ump3.start(2,3,9600) ' Rx,Tx, Baud
}}
VAR
long started ' flag use for cog started result
Byte statchk[16] ' string for status from uMP3
OBJ
Serial : "Extended_FDSerial"
PUB start(rxpin, txpin, baud) | check
'' Qualifies pins and baud input
'' -- makes tx pin an output and sets up other values if valid
stop ' stop if already started
if (rxpin => 0) and (rxpin < 28) ' qualify rx pin
if (txpin => 0) and (txpin < 28) and (txpin <> rxpin) ' qualify tx pin
if lookdown(baud : 9600, 19200) ' qualify baud rate setting
started := Serial.start(rxpin, txpin, 0, baud) ' Start FD serial cog
Serial.SetDelimiter(">") ' Set delimter to uMP3 prompt
if started ' if started check uMP3
repeat 5 ' try for 5 seconds
waitcnt(cnt+clkfreq) ' one second wait
check := idle ' check for idle
if check
quit ' finish if idle
if not check ' if never idle mark not started
started~
return started
PUB stop
'' Stops uMP3 Object, frees up a cog
if started ' stop cog if one is started
Serial.rxflush ' first flush receive buffer
Serial.stop ' then stop cog
started~
PUB play (songptr)
'' Plays song passed by string pointer
if started
Serial.str(String("PC F /")) ' uMP3 play file command
Serial.str(songptr)
Serial.str(String(13)) ' send return to complete command
PUB status (statusptr)
'' Returns uMP3 status string
if started
Serial.RxFlush ' flush any old receive stuff
Serial.str(String("PC Z",13)) ' uMP3 status command
Serial.RxStrTime(100,statusptr)
if byte[statusptr] == 0 ' could be extra prompt
Serial.RxStrTime(100,statusptr) ' try again
if byte[statusptr] == 0 ' if still no status
byte[statusptr] := "N" ' return 'N' for null
PUB setVol (volume) | scaledVol
'' Sets the uMP3 volume based on input from 0 to 100, with 100 being full volume
if started
scaledVol := (volume * 255) / 100 ' scale volume 0 to 255
scaledVol := 0 #> (255 - scaledVol) ' invert for uMP3 volume definition
Serial.RxFlush ' flush any old receive stuff
Serial.str(String("ST V ")) ' uMP3 volume command
Serial.dec(scaledVol)
Serial.str(String(13))
PUB idle : yesNo
'' Returns true if uMP3 player is stopped.
yesNo~
if started
status(@statchk) ' get status
if statchk[0] == "S" ' if stopped, then idle
yesNo~~
return yesNo
PUB wait : noErr
'' Returns true after waiting for uMP3 player to stop.
'' Returns false if the player is not giving status
noErr~
if started
repeat ' check until uMP3 is stopped
status(@statchk) ' get status
if statchk[0] == "S" ' if stopped,
noErr~~ ' then no error,
quit ' and done waiting.
else
if statchk[0] == "N" ' if no status,
noErr~ ' then error,
quit ' and quit since will wait forever.
return noErr
| Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/uMP3 Player Simple Interface/uMP3.spin | [
"MIT"
] |
#+TITLE: lang/idris
#+DATE: October 6, 2020
#+SINCE: v2.0.9
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
* Description
This module adds rudimentary Idris support.
** Maintainers
This module has no dedicated maintainers.
** Module Flags
This module provides no flags.
** Plugins
# A list of linked plugins
+ [[https://github.com/idris-hackers/idris-mode/][idris-mode]]
* Prerequisites
This module has no prerequisites.
* Features
In addition to =idris-mode= goodness, adds frequently used functions under the localleader key.
| Org | 3 | leezu/doom-emacs | modules/lang/idris/README.org | [
"MIT"
] |
DROP TABLE IF EXISTS fill;
CREATE TABLE fill (date Date, val Int, str String) ENGINE = Memory;
INSERT INTO fill VALUES (toDate('2019-05-24'), 13, 'sd0')(toDate('2019-05-10'), 16, 'vp7')(toDate('2019-05-25'), 17, '0ei')(toDate('2019-05-30'), 18, '3kd')(toDate('2019-05-15'), 27, 'enb')(toDate('2019-06-04'), 5, '6az')(toDate('2019-05-23'), 15, '01v')(toDate('2019-05-08'), 28, 'otf')(toDate('2019-05-19'), 20, 'yfh')(toDate('2019-05-07'), 26, '2ke')(toDate('2019-05-07'), 18, 'prh')(toDate('2019-05-09'), 25, '798')(toDate('2019-05-10'), 1, 'myj')(toDate('2019-05-11'), 18, '3s2')(toDate('2019-05-23'), 29, '72y');
SELECT '*** table without fill to compare ***';
SELECT * FROM fill ORDER BY date, val;
-- Some useful cases
SELECT '*** date WITH FILL, val ***';
SELECT * FROM fill ORDER BY date WITH FILL, val;
SELECT '*** date WITH FILL FROM 2019-05-01 TO 2019-05-31, val WITH FILL ***';
SELECT * FROM fill ORDER BY date WITH FILL FROM toDate('2019-05-01') TO toDate('2019-05-31'), val WITH FILL;
SELECT '*** date DESC WITH FILL, val WITH FILL FROM 1 TO 6 ***';
SELECT * FROM fill ORDER BY date DESC WITH FILL, val WITH FILL FROM 1 TO 6;
-- Some weird cases
SELECT '*** date DESC WITH FILL TO 2019-05-01 STEP -2, val DESC WITH FILL FROM 10 TO -5 STEP -3 ***';
SELECT * FROM fill ORDER BY date DESC WITH FILL TO toDate('2019-05-01') STEP -2, val DESC WITH FILL FROM 10 TO -5 STEP -3;
SELECT '*** date WITH FILL TO 2019-06-23 STEP 3, val WITH FILL FROM -10 STEP 2';
SELECT * FROM fill ORDER BY date WITH FILL TO toDate('2019-06-23') STEP 3, val WITH FILL FROM -10 STEP 2;
DROP TABLE fill;
CREATE TABLE fill (a UInt32, b Int32) ENGINE = Memory;
INSERT INTO fill VALUES (1, -2), (1, 3), (3, 2), (5, -1), (6, 5), (8, 0);
SELECT '*** table without fill to compare ***';
SELECT * FROM fill ORDER BY a, b;
SELECT '*** a WITH FILL, b WITH fill ***';
SELECT * FROM fill ORDER BY a WITH FILL, b WITH fill;
SELECT '*** a WITH FILL, b WITH fill TO 6 STEP 2 ***';
SELECT * FROM fill ORDER BY a WITH FILL, b WITH fill TO 6 STEP 2;
SELECT * FROM fill ORDER BY a WITH FILL STEP -1; -- { serverError 475 }
SELECT * FROM fill ORDER BY a WITH FILL FROM 10 TO 1; -- { serverError 475 }
SELECT * FROM fill ORDER BY a DESC WITH FILL FROM 1 TO 10; -- { serverError 475 }
SELECT * FROM fill ORDER BY a WITH FILL FROM -10 to 10; -- { serverError 475 }
DROP TABLE fill;
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00995_order_by_with_fill.sql | [
"Apache-2.0"
] |
// @ts-check
/**
* @type {import('next').NextConfig}
**/
module.exports = {
i18n: {
locales: ['en', 'fr', 'de'],
defaultLocale: 'en',
},
webpack(config, { dev, ...other }) {
if (!dev) {
// https://formatjs.io/docs/guides/advanced-usage#react-intl-without-parser-40-smaller
config.resolve.alias['@formatjs/icu-messageformat-parser'] =
'@formatjs/icu-messageformat-parser/no-parser'
}
return config
},
}
| JavaScript | 4 | blomqma/next.js | examples/with-react-intl/next.config.js | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-15 09:00+0100\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <[email protected]>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: contrib/admin/static/admin/js/SelectFilter2.js:38
#, javascript-format
msgid "Available %s"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:44
#, javascript-format
msgid ""
"This is the list of available %s. You may choose some by selecting them in "
"the box below and then clicking the \"Choose\" arrow between the two boxes."
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:60
#, javascript-format
msgid "Type into this box to filter down the list of available %s."
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:65
msgid "Filter"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:69
msgid "Choose all"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:69
#, javascript-format
msgid "Click to choose all %s at once."
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:75
msgid "Choose"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:77
msgid "Remove"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:83
#, javascript-format
msgid "Chosen %s"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:89
#, javascript-format
msgid ""
"This is the list of chosen %s. You may remove some by selecting them in the "
"box below and then clicking the \"Remove\" arrow between the two boxes."
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:99
msgid "Remove all"
msgstr ""
#: contrib/admin/static/admin/js/SelectFilter2.js:99
#, javascript-format
msgid "Click to remove all chosen %s at once."
msgstr ""
#: contrib/admin/static/admin/js/actions.js:64
msgid "%(sel)s of %(cnt)s selected"
msgid_plural "%(sel)s of %(cnt)s selected"
msgstr[0] ""
msgstr[1] ""
#: contrib/admin/static/admin/js/actions.js:130
msgid ""
"You have unsaved changes on individual editable fields. If you run an "
"action, your unsaved changes will be lost."
msgstr ""
#: contrib/admin/static/admin/js/actions.js:143
msgid ""
"You have selected an action, but you haven’t saved your changes to "
"individual fields yet. Please click OK to save. You’ll need to re-run the "
"action."
msgstr ""
#: contrib/admin/static/admin/js/actions.js:144
msgid ""
"You have selected an action, and you haven’t made any changes on individual "
"fields. You’re probably looking for the Go button rather than the Save "
"button."
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:13
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:111
msgid "Now"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:14
msgid "Midnight"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:15
msgid "6 a.m."
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:16
msgid "Noon"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:17
msgid "6 p.m."
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:78
#, javascript-format
msgid "Note: You are %s hour ahead of server time."
msgid_plural "Note: You are %s hours ahead of server time."
msgstr[0] ""
msgstr[1] ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:86
#, javascript-format
msgid "Note: You are %s hour behind server time."
msgid_plural "Note: You are %s hours behind server time."
msgstr[0] ""
msgstr[1] ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:129
msgid "Choose a Time"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:159
msgid "Choose a time"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:176
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:334
msgid "Cancel"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:239
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:319
msgid "Today"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:256
msgid "Choose a Date"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:313
msgid "Yesterday"
msgstr ""
#: contrib/admin/static/admin/js/admin/DateTimeShortcuts.js:325
msgid "Tomorrow"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:11
msgid "January"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:12
msgid "February"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:13
msgid "March"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:14
msgid "April"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:15
msgid "May"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:16
msgid "June"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:17
msgid "July"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:18
msgid "August"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:19
msgid "September"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:20
msgid "October"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:21
msgid "November"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:22
msgid "December"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:25
msgctxt "abbrev. month January"
msgid "Jan"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:26
msgctxt "abbrev. month February"
msgid "Feb"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:27
msgctxt "abbrev. month March"
msgid "Mar"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:28
msgctxt "abbrev. month April"
msgid "Apr"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:29
msgctxt "abbrev. month May"
msgid "May"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:30
msgctxt "abbrev. month June"
msgid "Jun"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:31
msgctxt "abbrev. month July"
msgid "Jul"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:32
msgctxt "abbrev. month August"
msgid "Aug"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:33
msgctxt "abbrev. month September"
msgid "Sep"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:34
msgctxt "abbrev. month October"
msgid "Oct"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:35
msgctxt "abbrev. month November"
msgid "Nov"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:36
msgctxt "abbrev. month December"
msgid "Dec"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:39
msgctxt "one letter Sunday"
msgid "S"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:40
msgctxt "one letter Monday"
msgid "M"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:41
msgctxt "one letter Tuesday"
msgid "T"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:42
msgctxt "one letter Wednesday"
msgid "W"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:43
msgctxt "one letter Thursday"
msgid "T"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:44
msgctxt "one letter Friday"
msgid "F"
msgstr ""
#: contrib/admin/static/admin/js/calendar.js:45
msgctxt "one letter Saturday"
msgid "S"
msgstr ""
#: contrib/admin/static/admin/js/collapse.js:16
#: contrib/admin/static/admin/js/collapse.js:34
msgid "Show"
msgstr ""
#: contrib/admin/static/admin/js/collapse.js:30
msgid "Hide"
msgstr ""
| Gettext Catalog | 2 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/admin/locale/en/LC_MESSAGES/djangojs.po | [
"PostgreSQL",
"Unlicense"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { once } from 'vs/base/common/functional';
const charTable: { [hex: string]: number } = {
'0': 0,
'1': 1,
'2': 2,
'3': 3,
'4': 4,
'5': 5,
'6': 6,
'7': 7,
'8': 8,
'9': 9,
A: 10,
B: 11,
C: 12,
D: 13,
E: 14,
F: 15
};
const decodeData = (str: string) => {
const output = new Uint8ClampedArray(str.length / 2);
for (let i = 0; i < str.length; i += 2) {
output[i >> 1] = (charTable[str[i]] << 4) | (charTable[str[i + 1]] & 0xF);
}
return output;
};
/*
const encodeData = (data: Uint8ClampedArray, length: string) => {
const chars = '0123456789ABCDEF';
let output = '';
for (let i = 0; i < data.length; i++) {
output += chars[data[i] >> 4] + chars[data[i] & 0xf];
}
return output;
};
*/
/**
* Map of minimap scales to prebaked sample data at those scales. We don't
* sample much larger data, because then font family becomes visible, which
* is use-configurable.
*/
export const prebakedMiniMaps: { [scale: number]: () => Uint8ClampedArray } = {
1: once(() =>
decodeData(
'0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792'
)
),
2: once(() =>
decodeData(
'000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126'
)
)
};
| TypeScript | 4 | sbj42/vscode | src/vs/editor/browser/viewParts/minimap/minimapPreBaked.ts | [
"MIT"
] |
#!/bin/bash
build () {
CC=$1
TARGET_SUFFIX=$2
CFLAGS=$3
echo "[*] Building for ${TARGET_SUFFIX}..."
for type in {shellcode,system,findsock}
do ${CC} ${CFLAGS} -Wall -Werror -fPIC -fno-stack-protector samba-root-${type}.c -shared -o samba-root-${type}-${TARGET_SUFFIX}.so
done
}
rm -f *.o *.so *.gz
#
# Linux GLIBC
#
# x86
build "gcc" "linux-glibc-x86_64" "-m64 -D OLD_LIB_SET_2"
build "gcc" "linux-glibc-x86" "-m32 -D OLD_LIB_SET_1"
# ARM
build "arm-linux-gnueabi-gcc-5" "linux-glibc-armel" "-march=armv5 -mlittle-endian"
build "arm-linux-gnueabihf-gcc-5" "linux-glibc-armhf" "-march=armv7 -mlittle-endian"
build "aarch64-linux-gnu-gcc-4.9" "linux-glibc-aarch64" ""
# MIPS
build "mips-linux-gnu-gcc-5" "linux-glibc-mips" "-D OLD_LIB_SET_1"
build "mipsel-linux-gnu-gcc-5" "linux-glibc-mipsel" "-D OLD_LIB_SET_1"
build "mips64-linux-gnuabi64-gcc-5" "linux-glibc-mips64" "-D OLD_LIB_SET_1"
build "mips64el-linux-gnuabi64-gcc-5" "linux-glibc-mips64el" "-D OLD_LIB_SET_1"
# SPARC
build "sparc64-linux-gnu-gcc-5" "linux-glibc-sparc64" ""
build "sparc64-linux-gnu-gcc-5" "linux-glibc-sparc" "-m32 -D OLD_LIB_SET_1"
# PowerPC
build "powerpc-linux-gnu-gcc-5" "linux-glibc-powerpc" "-D OLD_LIB_SET_1"
build "powerpc64-linux-gnu-gcc-5" "linux-glibc-powerpc64" ""
build "powerpc64le-linux-gnu-gcc-4.9" "linux-glibc-powerpc64le" ""
# S390X
build "s390x-linux-gnu-gcc-5" "linux-glibc-s390x" ""
gzip -9 *.so
rm -f *.o *.so
| Shell | 3 | OsmanDere/metasploit-framework | data/exploits/CVE-2017-7494/build.sh | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
Rem
Or is a boolean operator that performs the OR function.
End Rem
For i=1 To 5
If i=2 Or i=4 Print "!" Else Print i
Next | BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/or.bmx | [
"Zlib"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Paste all cleaned date files below each other and save in one CSV file
**
** Date:
** 16/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.H. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <oxfloat.h>
#include <oxdraw.h>
main(){
decl mData2008, mData2009, mData2010, mData2011, mData2012, mData2013, mData2014;
mData2008 = loadmat("FiveMinuteReturns2008.csv");
mData2009 = loadmat("FiveMinuteReturns2009.csv");
mData2010 = loadmat("FiveMinuteReturns2010.csv");
mData2011 = loadmat("FiveMinuteReturns2011.csv");
mData2012 = loadmat("FiveMinuteReturns2012.csv");
mData2013 = loadmat("FiveMinuteReturns2013.csv");
mData2014 = loadmat("FiveMinuteReturns2014.csv");
savemat("FiveMinuteReturns_all.csv", mData2008 ~ mData2009 ~ mData2010 ~ mData2011 ~ mData2012 ~ mData2013 ~ mData2014);
mData2008 = loadmat("SecondPrices2008.csv");
mData2009 = loadmat("SecondPrices2009.csv");
mData2010 = loadmat("SecondPrices2010.csv");
mData2011 = loadmat("SecondPrices2011.csv");
mData2012 = loadmat("SecondPrices2012.csv");
mData2013 = loadmat("SecondPrices2013.csv");
mData2014 = loadmat("SecondPrices2014.csv");
savemat("SecondPrices_all.csv", mData2008 ~ mData2009 ~ mData2010 ~ mData2011 ~ mData2012 ~ mData2013 ~ mData2014);
mData2008 = loadmat("ReturnsEveryTrade2008.csv");
mData2009 = loadmat("ReturnsEveryTrade2009.csv");
mData2010 = loadmat("ReturnsEveryTrade2010.csv");
mData2011 = loadmat("ReturnsEveryTrade2011.csv");
mData2012 = loadmat("ReturnsEveryTrade2012.csv");
mData2013 = loadmat("ReturnsEveryTrade2013.csv");
mData2014 = loadmat("ReturnsEveryTrade2014.csv");
savemat("ReturnsEveryTrade_all.csv", mData2008 | mData2009 | mData2010 | mData2011 | mData2012 | mData2013 | mData2014);
mData2008 = loadmat("PricesEveryTrade2008.csv");
mData2009 = loadmat("PricesEveryTrade2009.csv");
mData2010 = loadmat("PricesEveryTrade2010.csv");
mData2011 = loadmat("PricesEveryTrade2011.csv");
mData2012 = loadmat("PricesEveryTrade2012.csv");
mData2013 = loadmat("PricesEveryTrade2013.csv");
mData2014 = loadmat("PricesEveryTrade2014.csv");
savemat("PricesEveryTrade_all.csv", mData2008 | mData2009 | mData2010 | mData2011 | mData2012 | mData2013 | mData2014);
} | Ox | 3 | tamerdilaver/Group4_Code_Data | 6PasteCSVFilesBelowEachOther.ox | [
"MIT"
] |
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=x86_64-linux-gnu -mattr=+avx512f -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=ALL
--- |
define void @test_insert_128_idx0() {
ret void
}
define void @test_insert_128_idx0_undef() {
ret void
}
define void @test_insert_128_idx1() {
ret void
}
define void @test_insert_128_idx1_undef() {
ret void
}
define void @test_insert_256_idx0() {
ret void
}
define void @test_insert_256_idx0_undef() {
ret void
}
define void @test_insert_256_idx1() {
ret void
}
define void @test_insert_256_idx1_undef() {
ret void
}
...
---
name: test_insert_128_idx0
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $zmm0, $ymm1
; ALL-LABEL: name: test_insert_128_idx0
; ALL: [[COPY:%[0-9]+]]:vr512 = COPY $zmm0
; ALL: [[COPY1:%[0-9]+]]:vr128x = COPY $xmm1
; ALL: [[VINSERTF32x4Zrr:%[0-9]+]]:vr512 = VINSERTF32x4Zrr [[COPY]], [[COPY1]], 0
; ALL: $zmm0 = COPY [[VINSERTF32x4Zrr]]
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = COPY $zmm0
%1(<4 x s32>) = COPY $xmm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<4 x s32>), 0
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_128_idx0_undef
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $ymm0, $ymm1
; ALL-LABEL: name: test_insert_128_idx0_undef
; ALL: [[COPY:%[0-9]+]]:vr128x = COPY $xmm1
; ALL: undef %2.sub_xmm:vr512 = COPY [[COPY]]
; ALL: $zmm0 = COPY %2
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = IMPLICIT_DEF
%1(<4 x s32>) = COPY $xmm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<4 x s32>), 0
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_128_idx1
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $ymm0, $ymm1
; ALL-LABEL: name: test_insert_128_idx1
; ALL: [[COPY:%[0-9]+]]:vr512 = COPY $zmm0
; ALL: [[COPY1:%[0-9]+]]:vr128x = COPY $xmm1
; ALL: [[VINSERTF32x4Zrr:%[0-9]+]]:vr512 = VINSERTF32x4Zrr [[COPY]], [[COPY1]], 1
; ALL: $zmm0 = COPY [[VINSERTF32x4Zrr]]
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = COPY $zmm0
%1(<4 x s32>) = COPY $xmm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<4 x s32>), 128
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_128_idx1_undef
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $ymm0, $ymm1
; ALL-LABEL: name: test_insert_128_idx1_undef
; ALL: [[DEF:%[0-9]+]]:vr512 = IMPLICIT_DEF
; ALL: [[COPY:%[0-9]+]]:vr128x = COPY $xmm1
; ALL: [[VINSERTF32x4Zrr:%[0-9]+]]:vr512 = VINSERTF32x4Zrr [[DEF]], [[COPY]], 1
; ALL: $zmm0 = COPY [[VINSERTF32x4Zrr]]
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = IMPLICIT_DEF
%1(<4 x s32>) = COPY $xmm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<4 x s32>), 128
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_256_idx0
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $zmm0, $ymm1
; ALL-LABEL: name: test_insert_256_idx0
; ALL: [[COPY:%[0-9]+]]:vr512 = COPY $zmm0
; ALL: [[COPY1:%[0-9]+]]:vr256x = COPY $ymm1
; ALL: [[VINSERTF64x4Zrr:%[0-9]+]]:vr512 = VINSERTF64x4Zrr [[COPY]], [[COPY1]], 0
; ALL: $zmm0 = COPY [[VINSERTF64x4Zrr]]
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = COPY $zmm0
%1(<8 x s32>) = COPY $ymm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<8 x s32>), 0
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_256_idx0_undef
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $ymm0, $ymm1
; ALL-LABEL: name: test_insert_256_idx0_undef
; ALL: [[COPY:%[0-9]+]]:vr256x = COPY $ymm1
; ALL: undef %2.sub_ymm:vr512 = COPY [[COPY]]
; ALL: $zmm0 = COPY %2
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = IMPLICIT_DEF
%1(<8 x s32>) = COPY $ymm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<8 x s32>), 0
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_256_idx1
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $ymm0, $ymm1
; ALL-LABEL: name: test_insert_256_idx1
; ALL: [[COPY:%[0-9]+]]:vr512 = COPY $zmm0
; ALL: [[COPY1:%[0-9]+]]:vr256x = COPY $ymm1
; ALL: [[VINSERTF64x4Zrr:%[0-9]+]]:vr512 = VINSERTF64x4Zrr [[COPY]], [[COPY1]], 1
; ALL: $zmm0 = COPY [[VINSERTF64x4Zrr]]
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = COPY $zmm0
%1(<8 x s32>) = COPY $ymm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<8 x s32>), 256
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
---
name: test_insert_256_idx1_undef
alignment: 16
legalized: true
regBankSelected: true
registers:
- { id: 0, class: vecr }
- { id: 1, class: vecr }
- { id: 2, class: vecr }
body: |
bb.1 (%ir-block.0):
liveins: $ymm0, $ymm1
; ALL-LABEL: name: test_insert_256_idx1_undef
; ALL: [[DEF:%[0-9]+]]:vr512 = IMPLICIT_DEF
; ALL: [[COPY:%[0-9]+]]:vr256x = COPY $ymm1
; ALL: [[VINSERTF64x4Zrr:%[0-9]+]]:vr512 = VINSERTF64x4Zrr [[DEF]], [[COPY]], 1
; ALL: $zmm0 = COPY [[VINSERTF64x4Zrr]]
; ALL: RET 0, implicit $ymm0
%0(<16 x s32>) = IMPLICIT_DEF
%1(<8 x s32>) = COPY $ymm1
%2(<16 x s32>) = G_INSERT %0(<16 x s32>), %1(<8 x s32>), 256
$zmm0 = COPY %2(<16 x s32>)
RET 0, implicit $ymm0
...
| Mirah | 4 | medismailben/llvm-project | llvm/test/CodeGen/X86/GlobalISel/select-insert-vec512.mir | [
"Apache-2.0"
] |
component {
public void function leakMemory(leak_modifier) {
leaky_variable = leak_modifier;
leakier_variable = leaky_variable * 2;
return leaky_variable * leakier_variable;
}
public void function poorlyWrittenFunction() {
writeDump('
<img style="width:100%;float:left;" src="#request.imagefolder#/#application.SiteInfo.site_foldername#/404.jpg">
');
}
} | ColdFusion CFC | 2 | tonym128/CFLint | src/test/resources/com/cflint/tests/VarScoper/scriptSample186.cfc | [
"BSD-3-Clause"
] |
/* Tests accepting a bool */
export proc takesBool(x: bool) {
writeln(x);
}
/* Tests returning a bool */
export proc getBool(): bool {
var ret: bool = true;
return ret;
}
/* Tests taking and returning a bool */
export proc takeAndReturn(x: bool): bool {
return x;
}
| Chapel | 4 | jhh67/chapel | test/interop/python/multilocale/boolFunctions.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_CCTEST_COMPILER_NODEOBSERVER_TESTER_H_
#define V8_CCTEST_COMPILER_NODEOBSERVER_TESTER_H_
#include "src/compiler/node-observer.h"
#include "src/compiler/simplified-operator.h"
#include "src/objects/type-hints.h"
#include "test/cctest/cctest.h"
namespace v8 {
namespace internal {
namespace compiler {
// Helpers to test TurboFan compilation using the %ObserveNode intrinsic.
struct ObserveNodeScope {
public:
ObserveNodeScope(Isolate* isolate, NodeObserver* node_observer)
: isolate_(isolate) {
DCHECK_NOT_NULL(isolate_);
DCHECK_NULL(isolate_->node_observer());
isolate_->set_node_observer(node_observer);
}
~ObserveNodeScope() {
DCHECK_NOT_NULL(isolate_->node_observer());
// Checks that the code wrapped by %ObserveNode() was actually compiled in
// the test.
CHECK(isolate_->node_observer()->has_observed_changes());
isolate_->set_node_observer(nullptr);
}
private:
Isolate* isolate_;
};
class CreationObserver : public NodeObserver {
public:
explicit CreationObserver(std::function<void(const Node*)> handler)
: handler_(handler) {
DCHECK(handler_);
}
Observation OnNodeCreated(const Node* node) override {
handler_(node);
return Observation::kStop;
}
private:
std::function<void(const Node*)> handler_;
};
class ModificationObserver : public NodeObserver {
public:
explicit ModificationObserver(
std::function<void(const Node*)> on_created_handler,
std::function<NodeObserver::Observation(
const Node*, const ObservableNodeState& old_state)>
on_changed_handler)
: on_created_handler_(on_created_handler),
on_changed_handler_(on_changed_handler) {
DCHECK(on_created_handler_);
DCHECK(on_changed_handler_);
}
Observation OnNodeCreated(const Node* node) override {
on_created_handler_(node);
return Observation::kContinue;
}
Observation OnNodeChanged(const char* reducer_name, const Node* node,
const ObservableNodeState& old_state) override {
return on_changed_handler_(node, old_state);
}
private:
std::function<void(const Node*)> on_created_handler_;
std::function<NodeObserver::Observation(const Node*,
const ObservableNodeState& old_state)>
on_changed_handler_;
};
} // namespace compiler
} // namespace internal
} // namespace v8
#endif // V8_CCTEST_COMPILER_NODEOBSERVER_TESTER_H_
| C | 3 | EXHades/v8 | test/cctest/compiler/node-observer-tester.h | [
"BSD-3-Clause"
] |
@echo off
rem openbash - launch bash running in the generated OpenConsole binary
rem Runs the OpenConsole.exe binary generated by the build in the debug directory.
rem Defaults to your `~` directory.
call opencon bash ~ | Batchfile | 3 | Ghosty141/Terminal | tools/openbash.cmd | [
"MIT"
] |
/// <reference path="fourslash.ts" />
// @strict: true
//// interface User {
//// address?: {
//// city: string;
//// "postal code": string;
//// }
//// };
//// declare const user: User;
//// user.address[|./**/|]
verify.completions({
marker: "",
exact: [
{ name: "city", text: "(property) city: string", insertText: "?.city", replacementSpan: test.ranges()[0] },
{ name: "postal code", text: "(property) \"postal code\": string", insertText: "?.[\"postal code\"]", replacementSpan: test.ranges()[0] }
],
preferences: { includeInsertTextCompletions: true },
});
| TypeScript | 5 | monciego/TypeScript | tests/cases/fourslash/completionAutoInsertQuestionDot.ts | [
"Apache-2.0"
] |
{
"Version" : 0.2,
"ModuleName" : "materials",
"Options" : {
"Warnings" : "All",
"TargetType" : "Executable",
"TargetFileName" : "materials",
"Libraries" : [
"ecere"
]
},
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Debug" : true,
"Optimization" : "None",
"PreprocessorDefinitions" : [
"_DEBUG"
],
"Console" : true,
"FastMath" : false
}
},
{
"Name" : "Release",
"Options" : {
"Debug" : false,
"Optimization" : "Speed",
"FastMath" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"ECERE_STATIC"
],
"TargetFileName" : "materials.html",
"Libraries" : [
"ecereStatic",
"z",
"freetype",
"jpeg",
"png"
],
"LibraryDirs" : [
"../../../ecere/obj/emscripten.linux.emscripten"
],
"FastMath" : true
}
}
],
"Files" : [
"materials.ec"
],
"ResourcesPath" : "",
"Resources" : [
{
"Folder" : "watersky",
"Files" : [
"../ModelViewer/skycube/bk.jpg",
"../ModelViewer/skycube/dn.jpg",
"../ModelViewer/skycube/fr.jpg",
"../ModelViewer/skycube/lf.jpg",
"../ModelViewer/skycube/rt.jpg",
"../ModelViewer/skycube/up.jpg"
]
},
{
"Folder" : "forest",
"Files" : [
"bk.jpg",
"dn.jpg",
"fr.jpg",
"lf.jpg",
"rt.jpg",
"up.jpg"
],
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Folder" : "ecere",
"Files" : [
{
"Folder" : "shaders",
"Files" : [
"../../../ecere/src/gfx/drivers/gl3/default.frag",
"../../../ecere/src/gfx/drivers/gl3/default.vert"
]
},
"C:/Windows/Fonts/tahomabd.ttf"
],
"Options" : {
"ExcludeFromBuild" : true
},
"Configurations" : [
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"teapot.3DS",
"normal.jpg"
]
}
| Ecere Projects | 1 | N-eil/ecere-sdk | samples/3D/materials/materials.epj | [
"BSD-3-Clause"
] |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Create a workspace in a subdirectory to allow running multiple builds in isolation.
# WORKSPACE_NAME env variable needs to contain name of the workspace to create.
# All cmdline args will be passed to run_tests.py script (executed in the
# newly created workspace)
set -ex
cd "$(dirname "$0")/../../.."
repo_root="$(pwd)"
export repo_root
rm -rf "${WORKSPACE_NAME}"
git clone . "${WORKSPACE_NAME}"
# clone gRPC submodules, use data from locally cloned submodules where possible
# shellcheck disable=SC2016,SC1004
git submodule foreach 'cd "${repo_root}/${WORKSPACE_NAME}" \
&& git submodule update --init --reference ${repo_root}/${name} ${name}'
echo "Running run_tests.py in workspace ${WORKSPACE_NAME}"
python "${WORKSPACE_NAME}/tools/run_tests/run_tests.py" "$@"
| Shell | 5 | samotarnik/grpc | tools/run_tests/helper_scripts/run_tests_in_workspace.sh | [
"Apache-2.0"
] |
global function FFA_Init
void function FFA_Init()
{
ClassicMP_ForceDisableEpilogue( true )
ScoreEvent_SetupEarnMeterValuesForMixedModes()
AddCallback_OnPlayerKilled( OnPlayerKilled )
}
void function OnPlayerKilled( entity victim, entity attacker, var damageInfo )
{
if ( victim != attacker && victim.IsPlayer() && attacker.IsPlayer() && GetGameState() == eGameState.Playing )
{
AddTeamScore( attacker.GetTeam(), 1 )
// why isn't this PGS_SCORE? odd game
attacker.AddToPlayerGameStat( PGS_ASSAULT_SCORE, 1 )
}
} | Squirrel | 4 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ffa.nut | [
"MIT"
] |
days(Y,M,D,Total) :-
years_to_days(Y, D1),
months_to_day(M, Y, D2),
Total is D1+D2+D-1.
years_to_days(Y0, DY) :-
Y1 is Y0-1900,
DY is Y1*365+((Y1+3)//4).
months_to_day(1,_,0).
months_to_day(2,_,31).
months_to_day(3,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+ED.
months_to_day(4,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+ED.
months_to_day(5,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+ED.
months_to_day(6,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+ED.
months_to_day(7,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+30+ED.
months_to_day(8,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+30+31+ED.
months_to_day(9,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+30+31+31+ED.
months_to_day(10,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+30+31+31+30+ED.
months_to_day(11,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+30+31+31+30+31+ED.
months_to_day(12,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+31+30+31+30+31+31+30+31+30+ED.
months_to_day(13,Y,DM) :- % should never succeed...
extra_day(Y,ED),
DM is 31+28+31+30+31+30+31+31+30+31+30+31+ED.
extra_day(Y,1) :- Y mod 4 == 0, !.
extra_day(_,0).
date(Total, Y, M, D) :-
get_years(Total, Y, DaysLeft),
get_months(DaysLeft, Y, M, D0),
D is D0+1.
get_years(Total, Y, DaysLeft) :-
daysperyear(Y,D0),
D0 =< Total,
Y1 is Y+1,
daysperyear(Y1,D1),
D1 > Total, !,
DaysLeft is Total-D0.
get_months(Total, Y, Month, Days) :-
months_to_day(Month, Y, DM),
DM =< Total,
Month1 is Month+1,
months_to_day(Month1, Y, DM1),
DM1 > Total, !,
Days is Total-DM.
gendays(120,_) :- !.
gendays(I0,D0) :- !,
J is I0+1900,
format('days(~d,~d).~n',[J,D0]),
( I0 mod 4 =:= 0 -> D is D0+366 ; D is D0+365 ),
I is I0+1,
gendays(I, D).
daysperyear(1900,0).
daysperyear(1901,366).
daysperyear(1902,731).
daysperyear(1903,1096).
daysperyear(1904,1461).
daysperyear(1905,1827).
daysperyear(1906,2192).
daysperyear(1907,2557).
daysperyear(1908,2922).
daysperyear(1909,3288).
daysperyear(1910,3653).
daysperyear(1911,4018).
daysperyear(1912,4383).
daysperyear(1913,4749).
daysperyear(1914,5114).
daysperyear(1915,5479).
daysperyear(1916,5844).
daysperyear(1917,6210).
daysperyear(1918,6575).
daysperyear(1919,6940).
daysperyear(1920,7305).
daysperyear(1921,7671).
daysperyear(1922,8036).
daysperyear(1923,8401).
daysperyear(1924,8766).
daysperyear(1925,9132).
daysperyear(1926,9497).
daysperyear(1927,9862).
daysperyear(1928,10227).
daysperyear(1929,10593).
daysperyear(1930,10958).
daysperyear(1931,11323).
daysperyear(1932,11688).
daysperyear(1933,12054).
daysperyear(1934,12419).
daysperyear(1935,12784).
daysperyear(1936,13149).
daysperyear(1937,13515).
daysperyear(1938,13880).
daysperyear(1939,14245).
daysperyear(1940,14610).
daysperyear(1941,14976).
daysperyear(1942,15341).
daysperyear(1943,15706).
daysperyear(1944,16071).
daysperyear(1945,16437).
daysperyear(1946,16802).
daysperyear(1947,17167).
daysperyear(1948,17532).
daysperyear(1949,17898).
daysperyear(1950,18263).
daysperyear(1951,18628).
daysperyear(1952,18993).
daysperyear(1953,19359).
daysperyear(1954,19724).
daysperyear(1955,20089).
daysperyear(1956,20454).
daysperyear(1957,20820).
daysperyear(1958,21185).
daysperyear(1959,21550).
daysperyear(1960,21915).
daysperyear(1961,22281).
daysperyear(1962,22646).
daysperyear(1963,23011).
daysperyear(1964,23376).
daysperyear(1965,23742).
daysperyear(1966,24107).
daysperyear(1967,24472).
daysperyear(1968,24837).
daysperyear(1969,25203).
daysperyear(1970,25568).
daysperyear(1971,25933).
daysperyear(1972,26298).
daysperyear(1973,26664).
daysperyear(1974,27029).
daysperyear(1975,27394).
daysperyear(1976,27759).
daysperyear(1977,28125).
daysperyear(1978,28490).
daysperyear(1979,28855).
daysperyear(1980,29220).
daysperyear(1981,29586).
daysperyear(1982,29951).
daysperyear(1983,30316).
daysperyear(1984,30681).
daysperyear(1985,31047).
daysperyear(1986,31412).
daysperyear(1987,31777).
daysperyear(1988,32142).
daysperyear(1989,32508).
daysperyear(1990,32873).
daysperyear(1991,33238).
daysperyear(1992,33603).
daysperyear(1993,33969).
daysperyear(1994,34334).
daysperyear(1995,34699).
daysperyear(1996,35064).
daysperyear(1997,35430).
daysperyear(1998,35795).
daysperyear(1999,36160).
daysperyear(2000,36525).
daysperyear(2001,36891).
daysperyear(2002,37256).
daysperyear(2003,37621).
daysperyear(2004,37986).
daysperyear(2005,38352).
daysperyear(2006,38717).
daysperyear(2007,39082).
daysperyear(2008,39447).
daysperyear(2009,39813).
daysperyear(2010,40178).
daysperyear(2011,40543).
daysperyear(2012,40908).
daysperyear(2013,41274).
daysperyear(2014,41639).
daysperyear(2015,42004).
daysperyear(2016,42369).
daysperyear(2017,42735).
daysperyear(2018,43100).
daysperyear(2019,43465).
| Prolog | 3 | ryandesign/yap | regression/dados/daynumber.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
import Data.List.Views
-- total
isSuffix : Eq a => List a -> List a -> Bool
isSuffix input1 input2 with (snocList input1, snocList input2)
isSuffix _ _ | (Snoc x xs xsrec, Snoc y ys ysrec)
= (x == y) && (isSuffix _ _ | (xsrec, ysrec))
isSuffix _ _ | (Empty, s) = True
isSuffix _ _ | (s, Empty) = False
| Idris | 3 | ska80/idris-jvm | tests/typedd-book/chapter10/IsSuffix.idr | [
"BSD-3-Clause"
] |
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
chunkFilename: "[name].js",
uniqueName: 'my "app"'
},
performance: {
hints: false
},
optimization: {
chunkIds: "named",
minimize: false
}
};
| JavaScript | 3 | 1shenxi/webpack | test/configCases/web/attach-existing/webpack.config.js | [
"MIT"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type error_status = Vcs_utils.error_status =
| Not_installed of { path: string }
| Errored of string
val merge_base : ?cwd:string -> string -> string -> (string, error_status) result Lwt.t
val files_changed_since : ?cwd:string -> string -> (string list, error_status) result Lwt.t
val files_changed_since_mergebase_with :
?cwd:string -> string -> (string * string list, error_status) result Lwt.t
| OCaml | 4 | zhangmaijun/flow | src/common/vcs/hg.mli | [
"MIT"
] |
DROP TABLE IF EXISTS `your_log`;
CREATE TABLE `your_log` (
`click_id` int(11) NOT NULL AUTO_INCREMENT,
`click_time` datetime NOT NULL,
`shorturl` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`referrer` varchar(200) COLLATE latin1_german2_ci NOT NULL,
`user_agent` varchar(255) COLLATE latin1_german2_ci NOT NULL,
`ip_address` varchar(41) COLLATE latin1_german2_ci NOT NULL,
`country_code` char(2) COLLATE latin1_german2_ci NOT NULL,
PRIMARY KEY (`click_id`),
KEY `shorturl` (`shorturl`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;
DROP TABLE IF EXISTS `your_options`;
CREATE TABLE `your_options` (
`option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`option_name` varchar(64) COLLATE latin1_german2_ci NOT NULL DEFAULT '',
`option_value` longtext COLLATE latin1_german2_ci NOT NULL,
PRIMARY KEY (`option_id`,`option_name`),
KEY `option_name` (`option_name`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;
DROP TABLE IF EXISTS `your_url`;
CREATE TABLE `your_url` (
`keyword` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`url` text CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`title` text CHARACTER SET utf8,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`ip` varchar(41) COLLATE latin1_german2_ci NOT NULL,
`clicks` int(10) unsigned NOT NULL,
PRIMARY KEY (`keyword`),
KEY `timestamp` (`timestamp`),
KEY `ip` (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci;
| SQL | 3 | safareli/prisma | packages/migrate/src/__tests__/fixtures/introspection/mysql/setup.sql | [
"Apache-2.0"
] |
Include 1 (img):
Photo
Include 2 (pre):
* item 1
''item''
== dd ==
item 2
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-txt/template-1.creole | [
"Apache-2.0"
] |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include "absl/flags/flag.h"
#include <grpc/support/log.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/create_channel.h>
#include "src/proto/grpc/testing/echo.grpc.pb.h"
#include "test/cpp/util/test_config.h"
ABSL_FLAG(std::string, address, "", "Address to connect to");
ABSL_FLAG(std::string, mode, "", "Test mode to use");
using grpc::testing::EchoRequest;
using grpc::testing::EchoResponse;
int main(int argc, char** argv) {
grpc::testing::InitTest(&argc, &argv, true);
auto stub = grpc::testing::EchoTestService::NewStub(grpc::CreateChannel(
absl::GetFlag(FLAGS_address), grpc::InsecureChannelCredentials()));
EchoRequest request;
EchoResponse response;
grpc::ClientContext context;
context.set_wait_for_ready(true);
if (absl::GetFlag(FLAGS_mode) == "bidi") {
auto stream = stub->BidiStream(&context);
for (int i = 0;; i++) {
std::ostringstream msg;
msg << "Hello " << i;
request.set_message(msg.str());
GPR_ASSERT(stream->Write(request));
GPR_ASSERT(stream->Read(&response));
GPR_ASSERT(response.message() == request.message());
}
} else if (absl::GetFlag(FLAGS_mode) == "response") {
EchoRequest request;
request.set_message("Hello");
auto stream = stub->ResponseStream(&context, request);
for (;;) {
GPR_ASSERT(stream->Read(&response));
}
} else {
gpr_log(GPR_ERROR, "invalid test mode '%s'",
absl::GetFlag(FLAGS_mode).c_str());
return 1;
}
}
| C++ | 4 | echo80313/grpc | test/cpp/end2end/server_crash_test_client.cc | [
"Apache-2.0"
] |
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${DIR}/apollo_base.sh"
function calibrate_camera_camera() {
LOG="${APOLLO_ROOT_DIR}/data/log/camera_camera_calibrator.out"
MODULE="camera_camera_calibrator"
# check if the module has started
NUM_PROCESSES="$(pgrep -f "${MODULE}" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
echo "Start to calibrate Camera-Camera extrinsics, Ctrl+C to exit."
eval "${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/${MODULE} \
--flagfile=${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/conf/${MODULE}.conf \
2>&1 | tee ${LOG}"
fi
}
function calibrate_lidar_camera() {
LOG="${APOLLO_ROOT_DIR}/data/log/camera_lidar_calibrator.out"
MODULE="lidar_camera_calibrator"
# check if the module has started
NUM_PROCESSES="$(pgrep -f "${MODULE}" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
echo "Start to calibrate LiDAR-Camera extrinsics, Ctrl+C to exit."
eval "${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/${MODULE} \
--flagfile=${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/conf/${MODULE}.conf \
2>&1 | tee ${LOG}"
fi
}
function calibrate_radar_camera() {
LOG="${APOLLO_ROOT_DIR}/data/log/camera_radar_calibrator.out"
MODULE="radar_camera_calibrator"
# check if the module has started
NUM_PROCESSES="$(pgrep -f "${MODULE}" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
echo "Start to calibrate Radar-Camera extrinsics, Ctrl+C to exit."
eval "${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/${MODULE} \
--flagfile=${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/conf/${MODULE}.conf \
2>&1 | tee ${LOG}"
fi
}
function visualize_radar_lidar() {
LOG="${APOLLO_ROOT_DIR}/data/log/radar_lidar_visualizer.out"
MODULE="radar_lidar_visualizer"
# check if the module has started
NUM_PROCESSES="$(pgrep -f "${MODULE}" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
echo "Visualize Radar and LiDAR data, Ctrl+C to exit."
eval "${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/${MODULE} \
--flagfile=${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/conf/${MODULE}.conf \
2>&1 |tee ${LOG}"
fi
}
function calibrate_imu_vehicle() {
LOG="${APOLLO_ROOT_DIR}/data/log/imu_car_calibrator.out"
MODULE="imu_car_calibrator"
# check if the module has started
NUM_PROCESSES="$(pgrep -f "${MODULE}" | grep -cv '^1$')"
if [ "${NUM_PROCESSES}" -eq 0 ]; then
echo "Start to calibrate Imu-Vehicle extrinsics, Ctrl+C to exit."
eval "${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/${MODULE} \
--flagfile=${APOLLO_ROOT_DIR}/modules/calibration/${MODULE}/conf/${MODULE}.conf \
2>&1 | tee ${LOG}"
fi
}
case $1 in
all)
calibrate_camera_camera
calibrate_lidar_camera
calibrate_radar_camera
visualize_radar_lidar
calibrate_imu_vehicle
;;
camera_camera)
calibrate_camera_camera
;;
lidar_camera)
calibrate_lidar_camera
;;
radar_camera)
calibrate_radar_camera
;;
visualize)
visualize_radar_lidar
;;
imu_vehicle)
calibrate_imu_vehicle
;;
*)
calibrate_camera_camera
calibrate_lidar_camera
calibrate_radar_camera
visualize_radar_lidar
calibrate_imu_vehicle
;;
esac
| Shell | 5 | jzjonah/apollo | scripts/sensor_calibration.sh | [
"Apache-2.0"
] |
for $value in 'blue' 'green' 'red'
.sel-{$value}
a b
| Stylus | 2 | dev-itsheng/wepy | packages/compiler-stylus/test/fixtures/stylus/list-each.styl | [
"BSD-3-Clause"
] |
"""Constants for the tankerkoenig integration."""
DOMAIN = "tankerkoenig"
NAME = "tankerkoenig"
CONF_FUEL_TYPES = "fuel_types"
CONF_STATIONS = "stations"
DEFAULT_RADIUS = 2
DEFAULT_SCAN_INTERVAL = 30
FUEL_TYPES = {"e5": "Super", "e10": "Super E10", "diesel": "Diesel"}
ATTR_BRAND = "brand"
ATTR_CITY = "city"
ATTR_FUEL_TYPE = "fuel_type"
ATTR_HOUSE_NUMBER = "house_number"
ATTR_POSTCODE = "postcode"
ATTR_STATION_NAME = "station_name"
ATTR_STREET = "street"
ATTRIBUTION = "Data provided by https://www.tankerkoenig.de"
| Python | 2 | mtarjoianu/core | homeassistant/components/tankerkoenig/const.py | [
"Apache-2.0"
] |
This is another literate file.
c = 1
| Literate CoffeeScript | 0 | decaffeinate/bulk-decaffeinate | test/examples/literate-coffeescript/C.litcoffee | [
"MIT"
] |
Module: dylan-user
define library part2
use collections;
use common-dylan;
use io;
end library part2;
define module part2
use common-dylan;
use format-out;
use set;
use standard-io;
use streams;
end module part2;
| Dylan | 3 | Ashindustry007/competitive-programming | advent-of-code/2018/day20/part2-library.dylan | [
"WTFPL"
] |
/*
* Copyright (C)2005-2019 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
package php;
/**
Exception that represents error in the program logic.
This kind of exception should lead directly to a fix in your code.
**/
@:native('LogicException')
extern class LogicException extends Exception {}
/**
Exception thrown if a callback refers to an undefined function
or if some arguments are missing.
**/
@:native('BadFunctionCallException')
extern class BadFunctionCallException extends LogicException {}
/**
Exception thrown if a callback refers to an undefined method
or if some arguments are missing.
**/
@:native('BadMethodCallException')
extern class BadMethodCallException extends BadFunctionCallException {}
/**
Exception thrown if a value does not adhere to a defined valid data domain.
**/
@:native('DomainException')
extern class DomainException extends LogicException {}
/**
Exception thrown if an argument is not of the expected type.
**/
@:native('InvalidArgumentException')
extern class InvalidArgumentException extends LogicException {}
/**
Exception thrown if a length is invalid.
**/
@:native('LengthException')
extern class LengthException extends LogicException {}
/**
Exception thrown when an illegal index was requested.
This represents errors that should be detected at compile time.
**/
@:native('OutOfRangeException')
extern class OutOfRangeException extends LogicException {}
| Haxe | 4 | wiltonlazary/haxe | std/php/LogicException.hx | [
"MIT"
] |
module Views.Toggle exposing (TextDirection(..), toggleSwitch)
import Assets
import Html exposing (Html)
import Html.Attributes exposing (attribute, href, style)
import Message.Message exposing (DomID(..), Message(..))
import Routes
type TextDirection
= Left
| Right
toggleSwitch :
{ on : Bool
, hrefRoute : Routes.Route
, text : String
, textDirection : TextDirection
, ariaLabel : String
, styles : List (Html.Attribute Message)
}
-> Html Message
toggleSwitch { ariaLabel, hrefRoute, text, textDirection, styles, on } =
let
textElem =
Html.text text
iconElem =
Html.div
[ style "background-image" <|
Assets.backgroundImage <|
Just (Assets.ToggleSwitch on)
, style "background-size" "contain"
, style "height" "20px"
, style "width" "35px"
, style "flex-shrink" "0"
, case textDirection of
Left ->
style "margin-left" "10px"
Right ->
style "margin-right" "10px"
]
[]
in
Html.a
([ href <| Routes.toString hrefRoute
, attribute "aria-label" ariaLabel
, style "display" "flex"
, style "align-items" "center"
, style "flex-direction" <|
case textDirection of
Right ->
"row"
Left ->
"row-reverse"
]
++ styles
)
[ iconElem, textElem ]
| Elm | 5 | Caprowni/concourse | web/elm/src/Views/Toggle.elm | [
"Apache-2.0"
] |
ruleset org.sovrin.agent {
meta {
use module org.sovrin.agent_message alias a_msg
use module org.sovrin.agent.ui alias invite
use module io.picolabs.wrangler alias wrangler
use module io.picolabs.visual_params alias vp
use module webfinger alias wf
shares __testing, html, ui, getEndpoint, connections, pendingConnections
provides connections, ui
}
global {
__testing = { "queries":
[ { "name": "__testing" }
, { "name": "connections", "args": [ "label" ] }
, { "name": "getEndpoint", "args" : ["my_did", "endpoint"] }
, { "name": "pendingConnections" }
] , "events":
[ { "domain": "webfinger", "type": "webfinger_wanted" }
, { "domain": "sovrin", "type": "update_endpoint", "attrs" : ["my_did", "their_host"] }
, { "domain": "agent", "type": "pending_connections_cleanup_requested" }
, { "domain": "agent", "type": "connections_cleanup_requested" }
]
}
html = function(c_i){
invite:html(c_i)
}
ui = function(){
connections = ent:connections
.values()
.sort(function(a,b){
a{"created"} cmp b{"created"}
});
{
"name": ent:label,
"connections": connections.length() => connections | null,
"invitation": invitation(),
"wf": ent:webfinger,
}
}
invitation = function(){
uKR = wrangler:channel("agent");
eci = uKR{"id"};
im = a_msg:connInviteMap(
null, // @id
ent:label,
uKR{["sovrin","indyPublic"]},
a_msg:localServiceEndpoint(eci)
);
ep = <<#{meta:host}/sky/cloud/#{eci}/#{meta:rid}/html.html>>;
ep + "?c_i=" + math:base64encode(im.encode())
}
//Function added by Jace, Beto, and Michael to update the connection's endpoints
getEndpoint = function(my_did, endpoint) {
endpoint + ent:connections.filter(function(v) {
v{"my_did"} == my_did
}).values().map(function(x) {
x{"their_endpoint"}
})[0].extract(re#(/sky/event/.*)#).head()//.split("/").slice(3, 8).join("/")
}
connections = function(label) {
matching = function(x){x{"label"}==label};
label => ent:connections.filter(matching).values().head()
| ent:connections
}
pendingConnections = function(){
ent:pending_conn
}
}
//
// on ruleset_added
//
rule on_installation {
select when wrangler ruleset_added where event:attr("rids") >< meta:rid
pre {
label = event:attr("label")
|| event:attr("rs_attrs"){"label"}
}
if wrangler:channel("agent").isnull() then
wrangler:createChannel(meta:picoId,"agent","sovrin")
always {
ent:label := label || wrangler:name();
ent:connections := {};
raise wrangler event "ruleset_needs_cleanup_period" attributes {
"domain": meta:rid
}
}
}
rule webfinger_check {
select when webfinger webfinger_wanted
fired {
ent:webfinger := wf:webfinger(wrangler:name())
}
}
rule check_label {
select when agent check_state
pre {
bad = ent:label.isnull() || typeof(ent:label) != "String" || ent:label == ""
}
if bad then noop()
fired {
ent:label := wrangler:name()
}
}
//
// send ssi_agent_wire message
//
rule send_ssi_agent_wire_message {
select when sovrin new_ssi_agent_wire_message
pre {
se = event:attr("serviceEndpoint")
pm = event:attr("packedMessage")
}
http:post(
se,
body=pm,
headers={"content-type":"application/ssi-agent-wire"},
autosend = {"eci": meta:eci, "domain": "http", "type": "post"}
)
}
rule save_last_http_response {
select when http post
fired {
ent:last_http_response := event:attrs
}
}
rule record_eci_not_found_error {
select when http post status_code re#404#
pre {
content = event:attr("content").decode()
eci = content{"error"}.extract(re#ECI not found: (.+)#).head()
conn = ent:connections.filter(function(c){
c{"their_did"} == eci
})
vk = conn.keys().head()
}
if eci && conn then noop()
fired {
ent:connections{[vk,"error"]} := "ECI not found: "+eci
}
}
//
// accept invitation
//
rule accept_invitation {
select when sovrin new_invitation
url re#(http.+[?].*((c_i=)|(d_m=)).+)# setting(url)
pre {
qs = url.split("?").tail().join("?")
args = qs.split("&")
.map(function(x){x.split("=")})
.collect(function(x){x[0]})
.map(function(x){x[0][1]})
c_i = args{"c_i"} || args{"d_m"}
im = math:base64decode(c_i).decode()
their_label = im{"label"}
need_router_connection = event:attr("need_router_connection")
}
if im && their_label then
wrangler:createChannel(meta:picoId,their_label,"connection")
setting(channel)
fired {
raise agent event "check_state" attributes {};
raise edge event "need_router_connection"
attributes {
"invitation": im,
"channel": channel,
"label": their_label,
"txnId": meta:txnId,
"sovrin_event": "invitation_accepted",
} if need_router_connection;
raise sovrin event "invitation_accepted"
attributes {
"invitation": im,
"channel": channel
} if need_router_connection.isnull()
}
}
//
// initiate connections request
//
rule initiate_connection_request {
select when sovrin invitation_accepted
pre {
im = event:attr("invitation")
chann = event:attr("channel")
my_did = chann{"id"}
my_vk = chann{["sovrin","indyPublic"]}
ri = event:attr("routing").klog("routing information")
rks = ri => ri{"their_routing"} | null
endpoint = ri => ri{"endpoint"} | a_msg:localServiceEndpoint(my_did)
rm = a_msg:connReqMap(ent:label,my_did,my_vk,endpoint,rks,im{"@id"})
.klog("connections request")
reqURL = im{"serviceEndpoint"}
pc = {
"label": im{"label"},
"my_did": my_did,
"@id": rm{"@id"},
"my_did": my_did,
"their_vk": im{"recipientKeys"}.head(),
"their_routing": im{"routingKeys"}.defaultsTo([]),
}
packedBody = a_msg:packMsg(pc,rm)
}
fired {
ent:pending_conn := ent:pending_conn.defaultsTo([]).append(pc);
raise sovrin event "new_ssi_agent_wire_message" attributes {
"serviceEndpoint": reqURL, "packedMessage": packedBody
}
}
}
//
// receive messages
//
rule route_new_message {
select when sovrin new_message protected re#(.+)# setting(protected)
pre {
outer = math:base64decode(protected).decode()
kids = outer{"recipients"}
.map(function(x){x{["header","kid"]}})
my_vk = wrangler:channel(meta:eci){["sovrin","indyPublic"]}
sanity = (kids >< my_vk)
.klog("sanity")
all = indy:unpack(event:attrs,meta:eci)
msg = all{"message"}.decode()
event_type = a_msg:specToEventType(msg{"@type"})
}
if event_type then
send_directive("message routed",{"event_type":event_type})
fired {
raise agent event "check_state" attributes {};
raise sovrin event event_type attributes
all.put("message",msg)
.put("need_router_connection",event:attr("need_router_connection"))
}
}
//
// connections/request
//
rule handle_connections_request {
select when sovrin connections_request
pre {
msg = event:attr("message")
their_label = msg{"label"}
need_router_connection = event:attr("need_router_connection")
}
if their_label then
wrangler:createChannel(meta:picoId,their_label,"connection")
setting(channel)
fired {
raise edge event "need_router_connection"
attributes {
"message": msg,
"channel": channel,
"label": their_label,
"txnId": meta:txnId,
"sovrin_event": "connections_request_accepted",
} if need_router_connection;
raise sovrin event "connections_request_accepted"
attributes {
"message": msg,
"channel": channel,
} if need_router_connection.isnull()
}
}
rule having_router_connection_pursue_connection {
select when edge new_router_connection_recorded
where event:attr("txnId") == meta:txnId
fired {
raise sovrin event event:attr("sovrin_event")
attributes event:attrs
}
}
rule initiate_connections_response {
select when sovrin connections_request_accepted
pre {
msg = event:attr("message")
req_id = msg{"@id"}
connection = msg{"connection"}
their_did = connection{"DID"}
publicKeys = connection{["DIDDoc","publicKey"]}
.map(function(x){x{"publicKeyBase58"}})
their_vk = publicKeys.head()
service = connection{["DIDDoc","service"]}
.filter(function(x){
x{"type"}=="IndyAgent"
&& x{"id"}.match(their_did+";indy")
}).head()
se = service{"serviceEndpoint"}
their_rks = service{"routingKeys"}.defaultsTo([])
chann = event:attr("channel")
my_did = chann{"id"}
my_vk = chann{["sovrin","indyPublic"]}
ri = event:attr("routing").klog("routing information")
rks = ri => ri{"their_routing"} | null
endpoint = ri => ri{"endpoint"} | a_msg:localServiceEndpoint(my_did)
rm = a_msg:connResMap(req_id, my_did, my_vk, endpoint,rks)
c = {
"created": time:now(),
"label": msg{"label"},
"my_did": my_did,
"their_did": their_did,
"their_vk": their_vk,
"their_endpoint": se,
"their_routing": their_rks,
}
pm = a_msg:packMsg(c,rm,meta:eci)
}
fired {
raise agent event "new_connection" attributes c;
raise sovrin event "new_ssi_agent_wire_message" attributes {
"serviceEndpoint": se, "packedMessage": pm
}
}
}
//
// connections/response
//
rule handle_connections_response {
select when sovrin connections_response
pre {
msg = event:attr("message")
verified = a_msg:verify_signatures(msg)
connection = verified{"connection"}
service = connection && connection{["DIDDoc","service"]}
.filter(function(x){x{"type"}=="IndyAgent"})
.head()
their_vk = service{"recipientKeys"}.head()
their_rks = service{"routingKeys"}.defaultsTo([])
cid = msg{["~thread","thid"]}
index = ent:pending_conn.defaultsTo([])
.reduce(function(a,p,i){
a<0 && p{"@id"}==cid => i | a
},-1)
c = index < 0 => null | ent:pending_conn[index]
.delete("@id")
.put({
"created": time:now(),
"their_did": connection{"DID"},
"their_vk": their_vk,
"their_endpoint": service{"serviceEndpoint"},
"their_routing": their_rks,
})
}
if typeof(index) == "Number" && index >= 0 then noop()
fired {
raise agent event "new_connection" attributes c;
ent:pending_conn := ent:pending_conn.splice(index,1)
}
}
//
// record a new connection
//
rule record_new_connection {
select when agent new_connection
pre {
their_vk = event:attr("their_vk")
}
fired {
ent:connections{their_vk} := event:attrs;
raise agent event "connections_changed"
attributes { "connections": ent:connections }
}
}
//
// trust_ping/ping
//
rule handle_trust_ping_request {
select when sovrin trust_ping_ping
pre {
msg = event:attr("message")
rm =a_msg:trustPingResMap(msg{"@id"})
their_key = event:attr("sender_key")
conn = ent:connections{their_key}
pm = a_msg:packMsg(conn,rm)
se = conn{"their_endpoint"}
may_respond = msg{"response_requested"} == false => false | true
}
if se && may_respond then noop()
fired {
raise sovrin event "new_ssi_agent_wire_message" attributes {
"serviceEndpoint": se, "packedMessage": pm
}
}
}
//
// trust_ping/ping_response
//
rule handle_trust_ping_ping_response {
select when sovrin trust_ping_ping_response
}
//
// initiate trust ping
//
rule initiate_trust_ping {
select when sovrin trust_ping_requested
pre {
their_vk = event:attr("their_vk")
conn = ent:connections{their_vk}
rm = a_msg:trustPingMap()
pm = a_msg:packMsg(conn,rm)
se = conn{"their_endpoint"}
}
if se then noop()
fired {
raise sovrin event "new_ssi_agent_wire_message" attributes {
"serviceEndpoint": se, "packedMessage": pm
}
}
}
//
// basicmessage/message
//
rule handle_basicmessage_message {
select when sovrin basicmessage_message
pre {
their_key = event:attr("sender_key")
conn = ent:connections{their_key}
msg = event:attr("message")
wmsg = conn.put(
"messages",
conn{"messages"}.defaultsTo([])
.append(msg.put("from","incoming"))
)
}
fired {
ent:connections{their_key} := wmsg
}
}
//
// initiate basicmessage
//
rule initiate_basicmessage {
select when sovrin send_basicmessage
pre {
their_key = event:attr("their_vk")
conn = ent:connections{their_key}
content = event:attr("content").decode()
bm = a_msg:basicMsgMap(content)
pm = a_msg:packMsg(conn,bm)
se = conn{"their_endpoint"}
wmsg = conn.put(
"messages",
conn{"messages"}.defaultsTo([])
.append(bm.put("from","outgoing")
.put("color",vp:colorRGB().join(","))
)
)
}
if se then noop()
fired {
raise sovrin event "new_ssi_agent_wire_message" attributes {
"serviceEndpoint": se, "packedMessage": pm
};
ent:connections{their_key} := wmsg
}
}
//
// convenience rule to clean up known expired connection
//
rule delete_connection {
select when sovrin connection_expired
pre {
their_vk = event:attr("their_vk")
pairwise = ent:connections{their_vk}
the_did = pairwise{"my_did"}
override = event:attr("final_cleanup")
}
if the_did == meta:eci || override then
send_directive("delete",{"connection":pairwise})
fired {
clear ent:connections{their_vk};
raise edge event "router_connection_deletion_requested"
attributes {"label":pairwise{"label"}};
raise wrangler event "channel_deletion_requested"
attributes {"eci": the_did} if wrangler:channel(the_did);
raise agent event "connections_changed"
attributes { "connections": ent:connections }
}
}
rule update_connection_endpoint {
select when sovrin update_endpoint
pre {
my_did = event:attr("my_did")
new_endpoint_host = event:attr("their_host")
new_endpoint = getEndpoint(my_did, new_endpoint_host)
}
fired {
ent:connections := ent:connections.map(function(v, k) {
(v{"my_did"} == my_did) => v.set(["their_endpoint"], new_endpoint)| v
})
}
}
//
// clean up internal data structures as needed
//
rule clean_up_pending_connections {
select when agent pending_connections_cleanup_requested
foreach ent:pending_conn.defaultsTo([]) setting(conn)
pre {
eci = conn{"my_did"}
label = conn{"label"}
}
if eci && label then noop()
fired {
raise edge event "router_connection_deletion_requested"
attributes {"label":label};
raise wrangler event "channel_deletion_requested"
attributes {"eci":eci} if wrangler:channel(eci)
}
finally {
raise agent event "pending_connections_cleanup_completed" attributes {} on final
}
}
rule finalize_clean_up_pending_connections {
select when agent pending_connections_cleanup_completed
fired {
clear ent:pending_conn;
raise agent event "pending_connections_cleared" attributes {}
}
}
rule clean_up_prior_to_pico_deletion_part0 {
select when wrangler rulesets_need_to_cleanup
where wrangler:channel("agent")
fired {
raise wrangler event "channel_deletion_requested"
attributes {"name":"agent"}
}
}
rule clean_up_prior_to_pico_deletion_part1a {
select when wrangler rulesets_need_to_cleanup
fired {
raise agent event "pending_connections_cleanup_requested" attributes {}
}
}
rule clean_up_prior_to_pico_deletion_part1b {
select when wrangler rulesets_need_to_cleanup
where ent:pending_conn.isnull()
fired {
raise agent event "pending_connections_cleared" attributes {}
}
}
rule clean_up_prior_to_pico_deletion_part2a {
select when wrangler rulesets_need_to_cleanup
foreach ent:connections.keys() setting(vk)
fired {
raise sovrin event "connection_expired"
attributes {"their_vk":vk,"final_cleanup":true}
}
finally {
raise agent event "connections_cleared" attributes {} on final
}
}
rule clean_up_prior_to_pico_deletion_part2b {
select when wrangler rulesets_need_to_cleanup
where ent:connections.keys().length() == 0
fired {
raise agent event "connections_cleared" attributes {}
}
}
rule clean_up_prior_to_pico_deletion_part3 {
select when wrangler rulesets_need_to_cleanup
before (agent pending_connections_cleared
and agent connections_cleared)
fired {
raise wrangler event "cleanup_finished"
attributes {"domain": meta:rid}
}
}
rule prepare_to_clean_up_connections {
select when agent connections_cleanup_requested
pre {
bad_connections =
ent:connections
.filter(function(v){v{"their_vk"}.isnull()})
clean_connections =
ent:connections
.filter(function(v){v{"their_vk"}})
}
send_directive("clean_connections",{
"bad_connections":bad_connections,
"clean_connections":clean_connections
})
fired {
raise agent event "ready_to_clean_up_connections" attributes {
"bad_connections":bad_connections,
"clean_connections":clean_connections
}
}
}
rule clean_up_connections {
select when agent ready_to_clean_up_connections
foreach event:attr("bad_connections") setting(conn)
pre {
label = conn{"label"}
eci = conn{"my_did"}
}
fired {
raise edge event "router_connection_deletion_requested"
attributes {"label":label};
raise wrangler event "channel_deletion_requested"
attributes {"eci":eci} if wrangler:channel(eci)
}
finally {
ent:connections := event:attr("clean_connections") on final
}
}
}
| KRL | 5 | Picolab/G2S | krl/org.sovrin.agent.krl | [
"MIT"
] |
var $nan_f32 <f32> = nanf
var $nan_f64 <f64> = nan
var $inf_f32 <f32> = -inff
var $inf_f64 <f64> = inf
var $g_f32 <f32> = -1.2f
var $g_f64 <f64> = 1.2
func $add_f32 () f32 {
return (
add f32(dread f32 $g_f32, constval f32 inff))}
func $add_f64 () f64 {
return (
add f64(dread f64 $g_f64, constval f64 -inf))}
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
| Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0018-mapleall-irbuild-edge-constfloat/Main.mpl | [
"MulanPSL-1.0"
] |
_ = require 'underscore'
codegen utils = require './codegenUtils'
module.exports (terms) = {
function strategy (strategy) = {
strategy = strategy
generate java script parameters (buffer, scope) =
codegen utils.write (self.strategy.function parameters (), ',') to buffer (buffer, scope) with delimiter
generate java script parameter statements (buffer, scope, args) =
self.strategy.generate java script parameter statements (buffer, scope, args)
function parameters () = strategy.function parameters ()
defined parameters () = strategy.defined parameters ()
}
normal strategy (parameters) = {
parameters = parameters
function parameters () = self.parameters
generate java script parameter statements (buffer, scope, args) = nil
defined parameters () = self.parameters
}
splat strategy (before: nil, splat: nil, after: nil) = {
before = before
splat = splat
after = after
function parameters () = self.before
defined parameters () = self.before.concat [self.splat].concat (self.after)
generate java script parameter statements (buffer, scope, args) =
buffer.write "var "
buffer.write (self.splat.generate (scope))
buffer.write "=Array.prototype.slice.call("
buffer.write (args.generate (scope))
buffer.write ",#(self.before.length),"
buffer.write (args.generate (scope))
buffer.write ".length"
if (self.after.length > 0)
buffer.write "-#(self.after.length)"
buffer.write ");"
if ((before.length > 0) && (after.length > 0))
buffer.write "if("
buffer.write (args.generate (scope))
buffer.write ".length>#(before.length)){"
for (n = 0, n < self.after.length, ++n)
after arg = self.after.(n)
args index = self.after.length - n
buffer.write "var "
buffer.write (after arg.generate (scope))
buffer.write "="
buffer.write (args.generate (scope))
buffer.write "["
buffer.write (args.generate (scope))
buffer.write ".length-#(args index)];"
if ((before.length > 0) && (after.length > 0))
buffer.write "}"
}
optional strategy (before: nil, options: nil) =
{
before = before
options = options
options variable = terms.generated variable ['options']
function parameters () = self.before.concat [self.options variable]
defined parameters () = before.concat [param, where: option <- self.options, param = terms.variable (option.field)]
generate java script parameter statements (buffer, scope, args) =
option names = _.map (self.options) @(option)
codegen utils.concat name (option.field)
buffer.write "var "
buffer.write (option names.join ',')
buffer.write ";"
for each @(option) in (self.options)
option name = codegen utils.concat name (option.field)
buffer.write "#(option name)="
buffer.write (self.options variable.generate (scope))
buffer.write "!==void 0&&Object.prototype.hasOwnProperty.call("
buffer.write (self.options variable.generate (scope))
buffer.write ",'#(option name)')&&"
buffer.write (self.options variable.generate (scope))
buffer.write ".#(option name)!==void 0?"
buffer.write (self.options variable.generate (scope))
buffer.write ".#(option name):"
buffer.write (option.value.generate (scope))
buffer.write ";"
}
}
| PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/closureParameterStrategies.pogo | [
"MIT"
] |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <string.h>
#include "_cgo_export.h"
int CheckIssue6907C(_GoString_ s) {
return CheckIssue6907Go(s);
}
| C | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | misc/cgo/test/issue6907export_c.c | [
"BSD-3-Clause"
] |
import { Button, Dialog } from "../components";
const Login = () => {
return (
<>
<Button />
<Dialog />
</>
);
};
export default Login;
| JavaScript | 3 | fourstash/webpack | examples/reexport-components/pages/Login.js | [
"MIT"
] |
/****************************************************************************
POKER Game Interface
Copyright (c) 2001 Jerome Jacovella-St-Louis
All Rights Reserved.
bet.ec - Poker Bet Window
****************************************************************************/
import "poker.ec"
class Bet : Window
{
background = activeBorder;
borderStyle = fixed;
clientSize = Size { 140, 80 };
int * thisBet;
Button bet
{
this,
text = "Bet",
size = Size { 40, 20 },
anchor = Anchor { horz = -20 };
hotKey = b,
isDefault = true;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
int theBet = (int) strtod(edit.contents, null) * 2;
if(theBet > 0 && *thisBet + theBet >= currentBet)
{
*thisBet += theBet;
Destroy(1);
}
return true;
}
};
Button pass
{
this,
text = currentBet ? "Fold" : "Pass",
size = Size { 40, 20 },
anchor = Anchor { horz = 20 },
hotKey = currentBet ? f : p;
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
Destroy(0);
return true;
}
};
bool OnKeyHit(Key key, unichar ch)
{
if(key == escape) Destroy(0);
return true;
}
EditBox edit { this, anchor = Anchor { top = 10 }, size = Size { 80, 20 } };
property int * thisBet { set { this.thisBet = value; } };
void OnRedraw(Surface surface)
{
surface.SetForeground(red);
surface.WriteTextf(0, 65, "$%.2f to you.", (currentBet - *thisBet) / 2.0);
}
}
| eC | 4 | N-eil/ecere-sdk | samples/games/cards/poker/bet.ec | [
"BSD-3-Clause"
] |
#!/bin/bash
if [ -f $1 ];then
cat $1| awk '{printf("\""$1"\":true,\n")}'
else
echo "argument $1 if not a file!"
fi
| Shell | 3 | shankerwangmiao/grafana | vendor/github.com/go-xorm/xorm/gen_reserved.sh | [
"Apache-2.0"
] |
--- Macro Scripts File
-- Created: Nov 17 1998
-- Modified: April 22 2002 Fred Ruff
-- Author: Frank DeLise
-- Macro Scripts for Modifiers
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
-- Requires AddmodFunc.ms
macroScript Bend
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Bend"
tooltip:"Bend Modifier"
Icon:#("Standard_Modifiers",1)
(
on execute do AddMod Bend
on isEnabled return mcrUtils.ValidMod Bend
)
macroScript Taper
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Taper"
tooltip:"Taper Modifier"
Icon:#("Standard_Modifiers",2)
(
on execute do AddMod Taper
on isEnabled return mcrUtils.ValidMod Taper
)
macroScript MeshSmooth
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"MeshSmooth"
tooltip:"MeshSmooth Modifier"
Icon:#("Standard_Modifiers",19)
(
on execute do AddMod MeshSmooth
on isEnabled return mcrUtils.ValidMod MeshSmooth
)
macroScript Ripple
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Ripple"
tooltip:"Ripple Modifier"
Icon:#("Standard_Modifiers",9)
(
on execute do AddMod Ripple
on isEnabled return mcrUtils.ValidMod Ripple
)
macroScript Wave
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Wave"
tooltip:"Wave Modifier"
Icon:#("Standard_Modifiers",8)
(
on execute do AddMod Wave
on isEnabled return mcrUtils.ValidMod Wave
)
macroScript Edit_Mesh
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Edit Mesh Modifier"
ButtonText:"Edit Mesh"
Icon:#("Max_Edit_Modifiers",1)
(
on execute do AddMod Edit_Mesh
on isEnabled return mcrUtils.ValidMod Edit_Mesh
)
macroScript Edit_Spline
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Edit Spline Modifier"
ButtonText:"Edit Spline"
Icon:#("Max_Edit_Modifiers",11)
(
on execute do AddMod Edit_Spline
on isEnabled return mcrUtils.ValidMod Edit_Spline
)
macroScript Relax
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Relax"
tooltip:"Relax Modifier"
Icon:#("Standard_Modifiers",21)
(
on execute do AddMod Relax
on isEnabled return mcrUtils.ValidMod Relax
)
macroScript Edit_Patch
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Edit Patch Modifier"
ButtonText:"Edit Patch"
Icon:#("Max_Edit_Modifiers",2)
(
on execute do AddMod Edit_Patch
on isEnabled return mcrUtils.ValidMod Edit_Patch
)
macroScript Twist
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Twist"
tooltip:"Twist Modifier"
Icon:#("Standard_Modifiers",4)
(
on execute do AddMod Twist
on isEnabled return mcrUtils.ValidMod Twist
)
macroScript Extrude
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Extrude"
tooltip:"Extrude Modifier"
Icon:#("Standard_Modifiers",13)
(
on execute do AddMod Extrude
on isEnabled return mcrUtils.ValidMod Extrude
)
macroScript Lathe
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Lathe"
tooltip:"Lathe Modifier"
Icon:#("Standard_Modifiers",14)
(
on execute do AddMod Lathe
on isEnabled return mcrUtils.ValidMod Lathe
)
macroScript Bevel
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Bevel"
tooltip:"Bevel Modifier"
Icon:#("Standard_Modifiers",17)
(
on execute do AddMod Bevel
on isEnabled return mcrUtils.ValidMod Bevel
)
macroScript Stretch
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Stretch"
tooltip:"Stretch Modifier"
Icon:#("Standard_Modifiers",5)
(
on execute do AddMod Stretch
on isEnabled return mcrUtils.ValidMod Stretch
)
macroScript Face_Extrude
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Face Extrude Modifier"
ButtonText:"Face Extrude"
Icon:#("Max_Edit_Modifiers",5)
(
on execute do AddMod Face_Extrude
on isEnabled return mcrUtils.ValidMod Face_Extrude
)
macroScript Optimize
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Optimize"
tooltip:"Optimize Modifier"
Icon:#("Standard_Modifiers",34)
(
on execute do AddMod Optimize
on isEnabled return mcrUtils.ValidMod Optimize
)
macroScript Displace
category:"Modifiers"
internalcategory:"Modifiers"
ButtonText:"Displace"
tooltip:"Displace Modifier"
Icon:#("Standard_Modifiers",18)
(
on execute do AddMod Displace
on isEnabled return mcrUtils.ValidMod Displace
)
macroScript Linked_xform
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Linked XForm Modifier"
ButtonText:"Linked XForm"
Icon:#("Standard_Modifiers",32)
(
on execute do AddMod Linked_xform
on isEnabled return mcrUtils.ValidMod Linked_xform
)
macroScript Affect_Region
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Affect Region Modifier"
ButtonText:"Affect Region"
Icon:#("Standard_Modifiers",15)
(
on execute do AddMod Affect_Region
on isEnabled return mcrUtils.ValidMod Affect_Region
)
macroScript Uvwmap
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"UVW Map Modifier"
ButtonText:"UVW Map"
Icon:#("Material_Modifiers",4)
(
on execute do AddMod Uvwmap
on isEnabled return mcrUtils.ValidMod Uvwmap
)
macroScript Volumeselect
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Volume Select Modifier"
ButtonText:"Volume Select"
Icon:#("Max_Edit_Modifiers",4)
(
on execute do AddMod VolumeSelect
on isEnabled return mcrUtils.ValidMod VolumeSelect
)
macroScript Material_ID
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Material Modifier"
ButtonText:"Material"
Icon:#("Material_Modifiers",2)
(
on execute do AddMod Materialmodifier
on isEnabled return mcrUtils.ValidMod Materialmodifier
)
macroScript Smooth
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Smooth Modifier"
ButtonText:"Smooth"
Icon:#("Standard_Modifiers",23)
(
on execute do AddMod smooth
on isEnabled return mcrUtils.ValidMod smooth
)
macroScript Normalmodifier
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Normal Modifier"
ButtonText:"Normal Modifier"
Icon:#("Max_Edit_Modifiers",6)
(
on execute do AddMod Normalmodifier
on isEnabled return mcrUtils.ValidMod Normalmodifier
)
macroScript Skin
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Skin Modifier"
ButtonText:"Skin"
Icon:#("Standard_Modifiers",26)
(
on execute do AddMod Skin
on isEnabled return mcrUtils.ValidMod Skin
)
macroScript Unwrap_UVW
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Unwrap UVW Modifier"
ButtonText:"Unwrap UVW"
Icon:#("Material_Modifiers",6)
(
on execute do AddMod Unwrap_UVW
on isEnabled return mcrUtils.ValidMod Unwrap_UVW
)
macroScript Push
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Push Modifier"
ButtonText:"Push"
Icon:#("Standard_Modifiers",36)
(
on execute do AddMod Push
on isEnabled return mcrUtils.ValidMod Push
)
macroScript Trim_Extend
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Trim/Extend Modifier"
ButtonText:"Trim/Extend"
Icon:#("Max_Edit_Modifiers",14)
(
on execute do AddMod Trim_Extend
on isEnabled return mcrUtils.ValidMod Trim_Extend
)
macroScript Squeeze
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Squeeze Modifier"
ButtonText:"Squeeze"
Icon:#("Standard_Modifiers",6)
(
on execute do AddMod Squeeze
on isEnabled return mcrUtils.ValidMod Squeeze
)
macroScript Delete_Spline
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Delete Spline Modifier"
ButtonText:"Delete Spline"
Icon:#("Max_Edit_Modifiers",12)
(
on execute do AddMod DeleteSplineModifier
on isEnabled return mcrUtils.ValidMod DeleteSplineModifier
)
macroScript CrossSection
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"CrossSection Modifier"
ButtonText:"CrossSection"
Icon:#("Surface_Tools",1)
(
on execute do AddMod CrossSection
on isEnabled return mcrUtils.ValidMod CrossSection
)
macroScript Surface
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Surface Modifier"
ButtonText:"Surface"
Icon:#("Surface_Tools",2)
(
on execute do AddMod surface
on isEnabled return mcrUtils.ValidMod surface
)
macroScript Lattice
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Lattice Modifier"
ButtonText:"Lattice"
Icon:#("Max_Edit_Modifiers",8)
(
on execute do AddMod Lattice
on isEnabled return mcrUtils.ValidMod Lattice
)
macroScript Fillet_Chamfer
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Fillet/Chamfer Modifier"
ButtonText:"Fillet/Chamfer"
Icon:#("Max_Edit_Modifiers",13)
(
on execute do AddMod Fillet_Chamfer
on isEnabled return mcrUtils.ValidMod Fillet_Chamfer
)
macroScript Morpher
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Morpher Modifier"
ButtonText:"Morpher"
Icon:#("Standard_Modifiers",24)
(
on execute do AddMod Morpher
on isEnabled return mcrUtils.ValidMod Morpher
)
macroScript Normalize_Spline
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Normalize Spline Modifier"
ButtonText:"Normalize Spline"
Icon:#("Max_Edit_Modifiers",13)
(
on execute do AddMod Normalize_Spline
on isEnabled return mcrUtils.ValidMod Normalize_Spline
)
macroScript FFD_2x2x2
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"FFD 2x2x2 Modifier"
ButtonText:"FFD 2x2x2"
Icon:#("Standard_Modifiers",10)
(
on execute do AddMod FFD_2x2x2
on isEnabled return mcrUtils.ValidMod FFD_2x2x2
)
macroScript FFD_4x4x4
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"FFD 4x4x4 Modifier"
ButtonText:"FFD 4x4x4"
Icon:#("Standard_Modifiers",10)
(
on execute do AddMod FFD_4x4x4
on isEnabled return mcrUtils.ValidMod FFD_4x4x4
)
macroScript FFD_3x3x3
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"FFD 3x3x3 Modifier"
ButtonText:"FFD 3x3x3"
Icon:#("Standard_Modifiers",10)
(
on execute do AddMod FFD_3x3x3
on isEnabled return mcrUtils.ValidMod FFD_3x3x3
)
macroScript CameraMap
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Camera Map Modifier"
ButtonText:"Camera Map"
Icon:#("Deform_Modifiers",1)
(
on execute do AddMod CameraMap
on isEnabled return mcrUtils.ValidMod CameraMap
)
macroScript XForm
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"XForm Modifier"
ButtonText:"XForm"
Icon:#("Standard_Modifiers",31)
(
on execute do AddMod XForm
on isEnabled return mcrUtils.ValidMod XForm
)
macroScript Slice
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Slice Modifier"
ButtonText:"Slice"
Icon:#("Standard_Modifiers",30)
(
on execute do AddMod slicemodifier
on isEnabled return mcrUtils.ValidMod slicemodifier
)
macroScript FFD_Select
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"FFD Select Modifier"
ButtonText:"FFD Select"
Icon:#("Standard_Modifiers",12)
(
on execute do AddMod FFD_Select
on isEnabled return mcrUtils.ValidMod FFD_Select
)
macroScript Melt
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Melt Modifier"
ButtonText:"Melt"
Icon:#("Standard_Modifiers",20)
(
on execute do
( try (AddMod Melt) Catch(MessageBox "Melt not installed!" Title:"Modifiers")
)
on isEnabled return mcrUtils.ValidMod Melt
)
macroScript STL_Check
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"STL Check Modifier"
ButtonText:"STL Check"
Icon:#("Standard_Modifiers",33)
(
on execute do AddMod STL_Check
on isEnabled return mcrUtils.ValidMod STL_Check
)
macroScript Cap_Holes
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Cap Holes Modifier"
ButtonText:"Cap Holes"
Icon:#("Standard_Modifiers",29)
(
on execute do AddMod Cap_Holes
on isEnabled return mcrUtils.ValidMod Cap_Holes
)
macroScript Preserve
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Preserve Modifier"
ButtonText:"Preserve"
Icon:#("Standard_Modifiers",35)
(
on execute do AddMod Preserve
on isEnabled return mcrUtils.ValidMod Preserve
)
macroScript Spline_Select
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Spline Select Modifier"
ButtonText:"Spline Select"
Icon:#("Max_Edit_Modifiers",10)
(
on execute do AddMod SplineSelect
on isEnabled return mcrUtils.ValidMod SplineSelect
)
macroScript Material_By_Element
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Material By Element Modifier"
ButtonText:"Material By Element"
Icon:#("Material_Modifiers",3)
(
on execute do AddMod MaterialByElement
on isEnabled return mcrUtils.ValidMod MaterialByElement
)
macroScript UVW_Xform
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"UVW XForm Modifier"
ButtonText:"UVW XForm"
Icon:#("Material_Modifiers",5)
(
on execute do AddMod UVW_Xform
on isEnabled return mcrUtils.ValidMod UVW_Xform
)
macroScript PatchDeform
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Patch Deform Modifier"
ButtonText:"Patch Deform"
Icon:#("Deform_Modifiers",3)
(
on execute do AddMod PatchDeform
on isEnabled return mcrUtils.ValidMod PatchDeform
)
macroScript NSurf_Sel
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"NURBS Surface Selection Modifier"
ButtonText:"NURBS Surface Select"
Icon:#("Max_Edit_Modifiers",16)
(
on execute do AddMod NSurf_Sel
on isEnabled return mcrUtils.ValidMod NSurf_Sel
)
macroScript Vertex_Paint
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Vertex Paint Modifier"
ButtonText:"Vertex Paint"
Icon:#("Standard_Modifiers",37)
(
on execute do
( if ((AddMod VertexPaint) == true) then -- it worked, do so logical presets
(
for i = 1 to selection.count do
(
selection[i].showvertexcolors = true
selection[i].vertexcolorsshaded = true
selection[i].wirecolor = white
)
)
-- else do nothing
)
on isEnabled return mcrUtils.ValidMod VertexPaint
)
macroScript Skew
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Skew Modifier"
ButtonText:"Skew"
Icon:#("Standard_Modifiers",3)
(
on execute do AddMod Skew
on isEnabled return mcrUtils.ValidMod Skew
)
macroScript Mesh_Select
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Mesh Select Modifier"
ButtonText:"Mesh Select"
Icon:#("Max_Edit_Modifiers",3)
(
on execute do AddMod Mesh_Select
on isEnabled return mcrUtils.ValidMod Mesh_Select
)
macroScript SurfDeform
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Surf Deform Modifier"
ButtonText:"Surf Deform"
Icon:#("Deform_Modifiers",5)
(
on execute do AddMod SurfDeform
on isEnabled return mcrUtils.ValidMod SurfDeform
)
macroScript Disp_Approx
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Disp Approx Modifier"
ButtonText:"Disp Approx"
Icon:#("Max_Edit_Modifiers",18)
(
on execute do AddMod Disp_Approx
on isEnabled return mcrUtils.ValidMod Disp_Approx
)
macroScript Bevel_Profile
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Bevel Profile Modifier"
ButtonText:"Bevel Profile"
Icon:#("Standard_Modifiers",16)
(
on execute do AddMod Bevel_Profile
on isEnabled return mcrUtils.ValidMod Bevel_Profile
)
macroScript PathDeform
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Path Deform Modifier"
ButtonText:"Path Deform"
Icon:#("Deform_Modifiers",7)
(
on execute do AddMod PathDeform
on isEnabled return mcrUtils.ValidMod PathDeform
)
macroScript FFDBox
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"FFD Box Modifier"
ButtonText:"FFD Box"
Icon:#("Standard_Modifiers",10)
(
on execute do AddMod FFDBox
on isEnabled return mcrUtils.ValidMod FFDBox
)
macroScript FFDCyl
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"FFD Cylinder Modifier"
ButtonText:"FFD Cylinder"
Icon:#("Standard_Modifiers",11)
(
on execute do AddMod FFDCyl
on isEnabled return mcrUtils.ValidMod FFDCyl
)
macroScript Tessellate
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Tessellate Modifier"
ButtonText:"Tessellate"
Icon:#("Max_Edit_Modifiers",7)
(
on execute do AddMod Tessellate
on isEnabled return mcrUtils.ValidMod Tessellate
)
macroScript Spherify
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Spherify Modifier"
ButtonText:"Spherify"
Icon:#("Standard_Modifiers",22)
(
on execute do AddMod Spherify
on isEnabled return mcrUtils.ValidMod Spherify
)
macroScript Flex
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Flex Modifier"
ButtonText:"Flex"
Icon:#("Standard_Modifiers",27)
(
on execute do AddMod Flex
on isEnabled return mcrUtils.ValidMod Flex
)
macroScript Mirror
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Mirror Modifier"
ButtonText:"Mirror"
Icon:#("Standard_Modifiers",28)
(
on execute do AddMod Mirror
on isEnabled return mcrUtils.ValidMod Mirror
)
macroScript DeleteMesh
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Delete Mesh Modifier"
ButtonText:"Delete Mesh"
Icon:#("Max_Edit_Modifiers",9)
(
on execute do AddMod DeleteMesh
on isEnabled return mcrUtils.ValidMod DeleteMesh
)
macroScript Noise
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Noise Modifier"
ButtonText:"Noise"
Icon:#("Standard_Modifiers",7)
(
on execute do AddMod Noisemodifier
on isEnabled return mcrUtils.ValidMod Noisemodifier
)
-- Added new r4 modifiers
--***********************************************************************************************
macroScript DeletePatch
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Delete Patch Modifier"
ButtonText:"Delete Patch"
(
on execute do AddMod DeletePatch
on isEnabled return mcrUtils.ValidMod DeletePatch
)
macroScript PatchSelect
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Patch Select Modifier"
ButtonText:"Patch Select"
(
on execute do AddMod Patch_Select
on isEnabled return mcrUtils.ValidMod Patch_Select
)
macroScript PointCache
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Point Cache Modifier"
ButtonText:"Point Cache"
(
on execute do AddMod Point_Cache
on isEnabled return mcrUtils.ValidMod Point_Cache
)
macroScript HSDSModifier
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"HSDS Modifier"
ButtonText:"HSDS Modifier"
(
on execute do AddMod HSDS_Modifier
on isEnabled return mcrUtils.ValidMod HSDS_Modifier
)
macroScript ConvertToPatch
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Convert To Patch Modifier"
ButtonText:"Convert To Patch"
(
on execute do AddMod ConvertToPatch
on isEnabled return mcrUtils.ValidMod ConvertToPatch
)
macroScript SpaceCameraMap
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Camera Map (WSM)"
ButtonText:"* Camera Map"
Icon:#("Deform_Modifiers",1)
(
on execute do addModifier $ (SpaceCameraMap ())
on isEnabled return (superclassof $ == GeometryClass)
)
macroScript SpaceSurfDeform
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"SurfDeform (WSM)"
ButtonText:"* Surf Deform"
Icon:#("Deform_Modifiers",5)
(
on execute do addModifier $ (SpaceSurfDeform ())
on isEnabled return (superclassof $ == GeometryClass)
)
macroScript PolySelect
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Poly Select Modifier"
ButtonText:"Poly Select"
(
on execute do AddMod Poly_Select
on isEnabled return mcrUtils.ValidMod Poly_Select
)
--***********************************************************************************************
-- added max 5 modifiers
macroScript Subdivide
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Subdivide"
ButtonText:"Subdivide"
(
on execute do AddMod Subdivide
on isEnabled return mcrUtils.ValidMod Subdivide
)
macroScript WSubdivide
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Subdivide (WSM)"
ButtonText:"* Subdivide"
(
on execute do AddMod subdivideSpacewarpModifier
on isEnabled return mcrUtils.ValidMod subdivideSpacewarpModifier
)
macroScript EditNormals
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Edit Normals "
ButtonText:"Edit Normals "
(
on execute do AddMod EditNormals
on isEnabled return mcrUtils.ValidMod EditNormals
)
macroScript Symmetry
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Symmetry"
ButtonText:"Symmetry"
(
on execute do AddMod Symmetry
on isEnabled return mcrUtils.ValidMod Symmetry
)
macroScript VertexWeld
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"Vertex Weld "
ButtonText:"Vertex Weld "
(
on execute do AddMod Vertex_Weld
on isEnabled return mcrUtils.ValidMod Vertex_Weld
)
macroScript SplineIkControl
category:"Modifiers"
internalcategory:"Modifiers"
tooltip:"SplineIkControl "
ButtonText:"SplineIkControl "
(
on execute do AddMod Spline_Ik_Control
on isEnabled return mcrUtils.ValidMod Spline_Ik_Control
)
| MAXScript | 4 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_Modifiers.mcr | [
"MIT"
] |
# Taken from http://coffeescript.org/
# Objects:
math =
root: Math.sqrt
square: square
cube: (x) -> x * square x
# Splats:
race = (winner, runners...) ->
print winner, runners
| CoffeeScript | 4 | 1shenxi/webpack | examples/source-map/example.coffee | [
"MIT"
] |
include "testcase.txl"
keys
'boolean 'new
end keys
define ruby_statements
[repeat ruby_lang_stmt]
end define
define ruby_lang_stmt
[al_ragel_stmt]
| [ruby_expr_stmt]
| [ruby_if_stmt]
| [EX] 'do [IN] [NL] [ruby_statements] [EX] 'end [IN] [NL]
end define
define ruby_type_decl
[al_type_decl]
| 'boolean
end define
define ruby_expr_stmt
[ruby_expr] '; [NL]
end define
define ruby_expr
[ruby_term] [repeat ruby_expr_extend]
end define
define ruby_expr_extend
[al_expr_op] [ruby_term]
end define
define ruby_term
[al_term]
| [stringlit] [union]
| [id] [repeat ruby_dot_id]
| [SPOFF] [id] [repeat ruby_dot_id] '( [SPON] [ruby_args] ')
| [union]
end define
define ruby_dot_id
'. [id]
end define
define ruby_args
[list ruby_expr]
end define
define ruby_sign
'- | '+
end define
define ruby_if_stmt
'if [ruby_expr] [NL] [IN]
[ruby_statements] [EX]
[opt ruby_else]
'end [NL]
end define
define ruby_else
'else [NL] [IN]
[ruby_statements] [EX]
end define
define ruby_lang
[ruby_statements]
'%% [NL]
[ruby_statements]
[ragel_def]
end define
define program
[lang_indep]
| [ruby_lang]
end define
redefine al_host_block
'{ [NL] [IN] [al_statements] [EX] '} [NL]
| '{ [NL] [IN] [ruby_statements] [EX] '} [NL]
end define
redefine cond_action_stmt
'action [id] '{ [al_expr] '} [NL]
| 'action [id] '{ [ruby_expr] '} [NL]
end redefine
function initDecl1 VarDecl [al_variable_decl]
deconstruct VarDecl
'bool Id [id] ';
replace [repeat ruby_lang_stmt]
by
Id '= 'false ';
end function
function initDecl2 VarDecl [al_variable_decl]
deconstruct VarDecl
'char Id [id] ';
replace [repeat ruby_lang_stmt]
by
Id '= ''c' ';
end function
function initDecl3 VarDecl [al_variable_decl]
deconstruct VarDecl
'int Id [id] ';
replace [repeat ruby_lang_stmt]
by
Id '= '0 ';
end function
function initDecl4 VarDecl [al_variable_decl]
deconstruct VarDecl
'ptr Id [id] ';
replace [repeat ruby_lang_stmt]
by
Id '= '-1 ';
end function
function initDecl5 VarDecl [al_variable_decl]
deconstruct VarDecl
Type [al_type_decl] Id [id] Union [union] ';
replace [repeat ruby_lang_stmt]
by
Id '= '[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] ';
end function
function alStmtToRuby1 AlStmt [action_lang_stmt]
deconstruct AlStmt
VarDecl [al_variable_decl]
deconstruct VarDecl
Type [al_type_decl] Id [id] OptUnion [opt union] ';
replace [repeat ruby_lang_stmt]
by
_ [initDecl1 VarDecl] [initDecl2 VarDecl]
[initDecl3 VarDecl] [initDecl4 VarDecl]
[initDecl5 VarDecl]
end function
rule alTermToRuby1
replace [al_term]
'first_token_char
by
'data '[ts]
end rule
rule alTermToRuby2
replace [al_term]
'< _ [al_type_decl] '> '( AlExpr [al_expr] ')
by
'( AlExpr ')
end rule
function alTermToRuby
replace [al_term]
AlTerm [al_term]
by
AlTerm
[alTermToRuby1]
[alTermToRuby2]
end function
function alExprExtendToRuby AlExprExtend [repeat al_expr_extend]
deconstruct AlExprExtend
Op [al_expr_op] Term [al_term] Rest [repeat al_expr_extend]
construct RubyRest [repeat ruby_expr_extend]
_ [alExprExtendToRuby Rest]
replace [repeat ruby_expr_extend]
by
Op Term [alTermToRuby] RubyRest
end function
% Note: this doesn't go into the ( al_expr ) form of al_term.
function alExprToRuby AlExpr [al_expr]
deconstruct AlExpr
ALTerm [al_term] AlExprExtend [repeat al_expr_extend]
construct RubyExprExtend [repeat ruby_expr_extend]
_ [alExprExtendToRuby AlExprExtend]
construct Result [opt ruby_expr]
ALTerm [alTermToRuby] RubyExprExtend
replace [opt ruby_expr]
by
Result
end function
function alStmtToRuby2 AlStmt [action_lang_stmt]
deconstruct AlStmt
AlExpr [al_expr] ';
construct OptRubyExpr [opt ruby_expr]
_ [alExprToRuby AlExpr]
deconstruct OptRubyExpr
RubyExpr [ruby_expr]
replace [repeat ruby_lang_stmt]
by
RubyExpr ';
end function
function liftBlock
replace [repeat ruby_lang_stmt]
'do Block [repeat ruby_lang_stmt] 'end
by
Block
end function
function alOptElseRuby AlOptElse [opt al_else]
deconstruct AlOptElse
'else
AlSubStmt [action_lang_stmt]
construct AlSubStmts [repeat action_lang_stmt]
AlSubStmt
construct RubySubStmts [repeat ruby_lang_stmt]
_ [alToRuby AlSubStmts]
deconstruct RubySubStmts
RubySubStmt [ruby_lang_stmt]
replace [opt ruby_else]
by
'else
RubySubStmts [liftBlock]
end function
function alStmtToRuby3 AlStmt [action_lang_stmt]
deconstruct AlStmt
'if '( AlExpr [al_expr] ')
AlSubStmt [action_lang_stmt]
AlOptElse [opt al_else]
construct OptRubyExpr [opt ruby_expr]
_ [alExprToRuby AlExpr]
deconstruct OptRubyExpr
RubyExpr [ruby_expr]
construct AlSubStmts [repeat action_lang_stmt]
AlSubStmt
construct RubySubStmts [repeat ruby_lang_stmt]
_ [alToRuby AlSubStmts]
construct OptRubyElse [opt ruby_else]
_ [alOptElseRuby AlOptElse]
replace [repeat ruby_lang_stmt]
by
'if RubyExpr
RubySubStmts [liftBlock]
OptRubyElse
'end
end function
function alStmtToRuby4a AlStmt [action_lang_stmt]
deconstruct AlStmt
'printi Id [id] ';
replace [repeat ruby_lang_stmt]
by
'print '( Id ') ';
end function
function alStmtToRuby4b AlStmt [action_lang_stmt]
deconstruct AlStmt
'prints String [stringlit] ';
replace [repeat ruby_lang_stmt]
by
'print '( String ') ';
end function
function alStmtToRuby4c AlStmt [action_lang_stmt]
deconstruct AlStmt
'printb Id [id] ';
replace [repeat ruby_lang_stmt]
by
'_a = Id '[0..pos-1] ';
'print '( '_a '. 'pack '( '"c*" ') ') ';
end function
function alStmtToRuby4d AlStmt [action_lang_stmt]
deconstruct AlStmt
'print_token ';
replace [repeat ruby_lang_stmt]
by
'_m = 'data '[ts..te-1] ';
'print '( '_m '. 'pack '( '"c*" ') ') ';
end function
function alStmtToRuby5 AlStmt [action_lang_stmt]
deconstruct AlStmt
'{ AlSubStmts [repeat action_lang_stmt] '}
construct RubySubStmts [repeat ruby_lang_stmt]
_ [alToRuby AlSubStmts]
replace [repeat ruby_lang_stmt]
by
'do RubySubStmts 'end
end function
function alStmtToRuby6 AlStmt [action_lang_stmt]
deconstruct AlStmt
RagelStmt [al_ragel_stmt]
replace [repeat ruby_lang_stmt]
by
RagelStmt
end function
rule fixCharLit
replace $ [al_term]
CharLit [charlit]
construct BaseId [id]
'id
construct Id [id]
BaseId [unquote CharLit]
construct EmptyString [stringlit]
'""
construct Repl [stringlit]
EmptyString [quote Id]
by
Repl '[0]
end rule
function alToRuby AlStmts [repeat action_lang_stmt]
deconstruct AlStmts
FirstStmt [action_lang_stmt] Rest [repeat action_lang_stmt]
construct RubyFirst [repeat ruby_lang_stmt]
_
[alStmtToRuby1 FirstStmt]
[alStmtToRuby2 FirstStmt]
[alStmtToRuby3 FirstStmt]
[alStmtToRuby4a FirstStmt]
[alStmtToRuby4b FirstStmt]
[alStmtToRuby4c FirstStmt]
[alStmtToRuby4d FirstStmt]
[alStmtToRuby5 FirstStmt]
[alStmtToRuby6 FirstStmt]
[fixCharLit]
construct RubyRest [repeat ruby_lang_stmt]
_ [alToRuby Rest]
replace [repeat ruby_lang_stmt]
by
RubyFirst [. RubyRest]
end function
rule actionTransRuby
replace [al_host_block]
'{ AlStmts [repeat action_lang_stmt] '}
construct RubyStmts [repeat ruby_lang_stmt]
_ [alToRuby AlStmts]
by
'{ RubyStmts '}
end rule
rule condTransRuby
replace [cond_action_stmt]
'action Id [id] '{ AlExpr [al_expr] '}
construct OptRubyExpr [opt ruby_expr]
_ [alExprToRuby AlExpr]
deconstruct OptRubyExpr
RubyExpr [ruby_expr]
by
'action Id '{ RubyExpr '}
end rule
rule lowercaseMachine
replace $ [machine_stmt]
'machine Id [id] ';
by
'machine Id [tolower] ';
end rule
function langTransRuby
replace [program]
Definitions [repeat action_lang_stmt]
'%%
Initializations [repeat action_lang_stmt]
RagelDef [ragel_def]
construct RubyDefinitions [repeat ruby_lang_stmt]
_ [alToRuby Definitions]
construct RubyInitializations [repeat ruby_lang_stmt]
_ [alToRuby Initializations]
construct NewRagelDef [ragel_def]
RagelDef [actionTransRuby] [condTransRuby] [lowercaseMachine]
import ArrayInits [ruby_statements]
ArrayInitStmts [repeat ruby_lang_stmt]
by
RubyDefinitions
'%%
ArrayInitStmts [. RubyInitializations]
NewRagelDef
end function
function main
replace [program]
P [program]
export ArrayInits [ruby_statements]
_
by
P [langTransRuby]
end function
| TXL | 4 | garethchen/hhvm-third-party | ragel/src/test/langtrans_ruby.txl | [
"MIT"
] |
/*****************************************************************************
*
* QUERY:
* VACUUM
* ANALYZE
*
*****************************************************************************/
AnalyzeStmt:
analyze_keyword opt_verbose
{
PGVacuumStmt *n = makeNode(PGVacuumStmt);
n->options = PG_VACOPT_ANALYZE;
if ($2)
n->options |= PG_VACOPT_VERBOSE;
n->relation = NULL;
n->va_cols = NIL;
$$ = (PGNode *)n;
}
| analyze_keyword opt_verbose qualified_name opt_name_list
{
PGVacuumStmt *n = makeNode(PGVacuumStmt);
n->options = PG_VACOPT_ANALYZE;
if ($2)
n->options |= PG_VACOPT_VERBOSE;
n->relation = $3;
n->va_cols = $4;
$$ = (PGNode *)n;
}
;
| Yacc | 4 | AldoMyrtaj/duckdb | third_party/libpg_query/grammar/statements/analyze.y | [
"MIT"
] |
export default function merge(acc: object, item: object): object;
| TypeScript | 2 | starmarke/starmarke | node_modules/@mui/system/merge.d.ts | [
"MIT"
] |
<mt:Ignore>
# =======================
#
# 記事ループ-本文
#
# 使い方:
# <mt:Include module="コンフィグ-記事ループ" />
# <mt:Include module="記事ループ-本文" tag="h1" date="0" sns_top="1" sns_bottom="1" />
#
# モディファイアの基本値:
# tag = h3
# date = 1
# sns_top = 0
# sns_bottom = 0
#
# =======================
</mt:Ignore>
<mt:Unless name="tag">
<mt:SetVar name="tag" value="h3" />
</mt:Unless>
<mt:Unless name="date" eq="0">
<mt:SetVar name="date" value="1" />
</mt:Unless>
<mt:Unless name="sns_top">
<mt:SetVar name="sns_top" value="0" />
</mt:Unless>
<mt:Unless name="sns_bottom">
<mt:SetVar name="sns_bottom" value="0" />
</mt:Unless>
<mt:Ignore>
# SNS Button
# ----------------------------
</mt:Ignore>
<mt:SetVarBlock name="ec_sns_list">
<ul class="list-inline">
<li class="post-share-item post-share-twitter">
<a href="http://twitter.com/share?text=<mt:Var name="ec_share_title" encode_url="1" />&url=<mt:Var name="ec_share_url" /><mt:If name="ec_website_twitter">&via=<mt:Var name="ec_website_twitter" />&related=<mt:Var name="ec_website_twitter" /></mt:If>" rel="nofollow" target="_blank" onClick="window.open(encodeURI(decodeURI(this.href)), 'tweetwindow', 'width=650, height=470, personalbar=0, toolbar=0, scrollbars=1, sizable=1'); return false;" class="btn btn-primary btn-twitter"><i class="fa fa-twitter"></i><span class="post-share-label">ツイート</span></a>
</li>
<li class="post-share-item post-share-facebook">
<a href="http://www.facebook.com/sharer.php?u=<mt:EntryPermalink encode_url="1" />" rel="nofollow" target="_blank" onClick="window.open(encodeURI(decodeURI(this.href)), 'fbwindow', 'width=650, height=470, personalbar=0, toolbar=0, scrollbars=1, sizable=1'); return false;" class="btn btn-primary btn-facebook"><i class="fa fa-facebook"></i><span class="post-share-label">シェア</span></a>
</li>
<li class="post-share-item post-share-fblike">
<div class="fb-like" data-href="<mt:EntryPermalink />" data-layout="box_count" data-action="like" data-show-faces="false" data-share="false"></div>
</li>
<li class="post-share-item post-share-line">
<a href="http://line.me/R/msg/text/?<mt:Var name="ec_share_title" encode_url="1" />%0D%0A<mt:Var name="ec_share_url" encode_url="1" />" rel="nofollow" target="_blank" class="btn btn-primary btn-line"><img src="<mt:Var name="ec_static_path" />images/line.svg" width="20" height="20"><span class="post-share-label">送る</span></a>
</li>
<li class="post-share-item post-share-hatena">
<a href="http://b.hatena.ne.jp/entry/<mt:Var name="ec_share_url" encode_url="1" />" data-hatena-bookmark-title="<mt:Var name="ec_share_title" />" data-hatena-bookmark-layout="simple" rel="nofollow" target="_blank" class="hatena-bookmark-button btn btn-primary btn-hatena"><img src="<mt:Var name="ec_static_path" />images/hatena_bookmark.svg" width="14" height="14"><span class="post-share-label">はてブ</span></a>
<script type="text/javascript" src="https://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
</li>
<li class="post-share-item post-share-google-plus">
<a href="https://plus.google.com/share?url=<mt:Var name="ec_share_url" encode_url="1" />" rel="nofollow" target="_blank" onclick="window.open(this.href, 'gpluswindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;" class="btn btn-primary btn-google-plus"><i class="fa fa-google-plus"></i><span class="post-share-label">+1する</span></a>
</li>
<li class="post-share-item post-share-pinterest">
<a href="http://www.pinterest.com/pin/create/button/?url=<mt:Var name="ec_share_url" encode_url="1" />&media=<mt:Var name="ec_meta_eyecatch" />&description=<mt:Var name="ec_share_title" encode_url="1" />" rel="nofollow" target="_blank" class="btn btn-primary btn-pinterest"><i class="fa fa-pinterest"></i><span class="post-share-label">Pin it</span></a>
</li>
<li class="post-share-item post-share-feedly">
<a href="http://cloud.feedly.com/#subscription%2Ffeed%2F<mt:Link template="feed_recent" encode_url="1" />" rel="nofollow" target="_blank" class="btn btn-primary btn-feedly"><img src="<mt:Var name="ec_static_path" />images/feedly.svg" width="18" height="18"><span class="post-share-label">Feedly</span></a>
</li>
</ul>
</mt:SetVarBlock>
<mt:Ignore>
# ----------------------------
</mt:Ignore>
<div class="post">
<div class="post-header">
<<mt:Var name="tag" /> class="post-header-title"><mt:EntryTitle encode_html="1" /></<mt:Var name="tag" />>
<ul class="post-header-meta">
<mt:If name="date" eq="1">
<li class="post-date"><time datetime="<mt:EntryDate language="en" format="%Y-%m-%d" />"><mt:EntryDate language="en" format="$ec_entry_date" /></time></li>
</mt:If>
<mt:Unless name="ec_taxonomy_basename" eq="">
<li class="post-category"><a href="<mt:Var name="ec_taxonomy_path" />" class="label label-pull label-primary"><mt:Var name="ec_taxonomy_label" /></a></li>
</mt:Unless>
</ul>
<!-- /.post-header --></div>
<mt:If name="sns_top" eq="1">
<div class="post-share post-share-top">
<mt:Var name="ec_sns_list" />
<!-- /.post-share --></div>
</mt:If>
<div class="post-contents">
<mt:EntryBody />
<mt:IfArchiveType archive_type="Individual">
<div id="more-<mt:Var name="ec_entry_id" />" class="post-contents-more">
<mt:EntryMore />
<!-- /.post-contents-more --></div>
</mt:IfArchiveType>
<!-- /.post-contents --></div>
<mt:If name="sns_bottom" eq="1">
<div class="post-share post-share-bottom">
<mt:Var name="ec_sns_list" />
<!-- /.post-share --></div>
</mt:If>
<mt:If name="ec_post_link_url">
<p class="post-more"><a href="<mt:Var name="ec_post_link_url" />" title="「<mt:EntryTitle encode_html="1" />」の詳細ページへ" class="btn btn-sm btn-secondary">詳細はこちら <i class="fa fa-angle-right"></i></a></p>
<mt:Else>
<mt:If tag="EntryMore">
<mt:If name="archive_listing" note="一覧関係のテンプレートであれば">
<p class="post-more"><a href="<mt:EntryPermalink />#more-<mt:Var name="ec_post_id" />" title="「<mt:EntryTitle encode_html="1" />」の詳細ページへ" class="btn btn-sm btn-secondary">もっと読む <i class="fa fa-angle-right"></i></a></p>
<mt:ElseIf name="blog_index" note="ブログトップページのテンプレート(blog_index)であれば">
<p class="post-more"><a href="<mt:EntryPermalink />#more-<mt:Var name="ec_post_id" />" title="「<mt:EntryTitle encode_html="1" />」の詳細ページへ" class="btn btn-sm btn-secondary">もっと読む <i class="fa fa-angle-right"></i></a></p>
</mt:If>
</mt:If>
</mt:If>
<mt:IfArchiveType archive_type="Individual">
<div class="post-footer">
<ul class="post-footer-meta">
<mt:EntryIfTagged>
<li class="post-tag"><dfn title="Tag of this Entry">タグ </dfn><mt:EntryTags glue='<span class="delimiter">, </span>'><a href="<mt:Var name="ec_search_path" />?IncludeBlogs=<mt:BlogID />&tag=<mt:TagName encode_url="1" />&limit=<mt:Var name="ec_search_count" op="*" value="2" />&blog_id=<mt:BlogID />" rel="tag" class="label label-default"><mt:TagName encode_html="1" /></a></mt:EntryTags></li>
</mt:EntryIfTagged>
<mt:If name="date" eq="1">
<li class="post-date"><dfn title="Publication date of this Entry">公開日 </dfn><time datetime="<mt:EntryDate language="en" format="%Y-%m-%d %H:%m:%S" />"><mt:EntryDate language="en" format="$ec_entry_date" /> <mt:EntryDate language="en" format="$ec_entry_time" /></time></li>
</mt:If>
<li class="post-url"><dfn title="Permalink of this Entry">URL </dfn><mt:EntryPermalink /></li>
</ul>
<!-- /.post-footer --></div>
</mt:IfArchiveType>
<!-- /.post --></div> | MTML | 5 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/loop_body.mtml | [
"MIT"
] |
<interface name="spi">
<method rtype="uint8_t" name="rxtx">
<arg atype="uint8_t*" name="rxdata" />
<arg atype="uint8_t" name="txdata" />
</method>
</interface>
| D | 3 | CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/libs/driverv2/include/spi.di | [
"MIT"
] |
<%= error_messages_for :user %>
<% form_for :user do |f| %>
<p>
<label for="password">New Password</label><br />
<%= f.password_field :password -%>
</p>
<p>
<label for="password_confirmation">Confirm New Password</label><br />
<%= f.password_field :password_confirmation -%>
</p>
<table><tr>
<td><%= submit_tag 'Submit' -%></td>
<td><%= submit_tag 'Cancel' -%></td>
</tr></table>
<% end %>
| RHTML | 4 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/account/change_password.rhtml | [
"MIT"
] |
INSERT INTO `empty_strings` VALUES (1, ""), (2, """"), (4, ''), (8, ''''), (16, "\""), (32, '\'');
| SQL | 3 | imtbkcat/tidb-lightning | tests/various_types/data/vt.empty_strings.sql | [
"Apache-2.0"
] |
/*
* Copyright (c) 2017, Lee Keitel
* This file is released under the BSD 3-Clause license.
*
* This file demonstrates recursion using the Fibonacci sequence.
*/
const fib = fn(x) {
if x == 0 or x == 1 {
return x
}
return fib(x-1) + fib(x-2)
}
const main = fn() {
for i = 0; i < 31; i += 1 {
println("Fib of ", i, " is ", fib(i))
}
}
main()
| Inform 7 | 4 | lfkeitel/nitrogen | examples/fibRecursive.ni | [
"BSD-3-Clause"
] |
chroot=Chroot-katalog att köra BIND under,3,Standard
named_user=Användare att starta BIND som,3,Standard
named_group=Grupp att starta BIND som,3,Standard
show_list=Visa domäner som,1,0-Ikoner,1-Lista
records_order=Visa poster ordnade,1,1-efter namn,2-efter värde,3-efter IP,0-kronologiskt
max_zones=Maximalt antal zoner att visa,0
rev_def=Förnya bakåt är,1,0-På som standard,1-Av som standard
support_aaaa=Stödjer DNS för IPv6-adresser,1,0-Nej,1-Ja
allow_comments=Tillåta kommentarer för poster,1,0-Nej,1-Ja
allow_wild=Tillåta jokertecken,1,0-Nej,1-Ja
soa_style=Serienummer,1,0-Löpande nummer,1-Datumbaserade (ÅÅÅÅMMDDnn)
master_ttl=Lägga till $ttl högst upp på nya zonfiler,1,1-Ja,0-Nej
master_dir=Katalog för master-zonfiler,3,Standard
slave_dir=Katalog för slav/återvändszonfiler,3,Standard
named_conf=Fullständig sökväg till filen named.conf,0
named_path=Fullständig sökväg till angiven exekverbar fil,0
pid_file=Standardplacering av PID-fil,3,/var/run/named.pid
start_cmd=Startkommando för BIND,3,Standard
| SystemVerilog | 2 | GalaxyGFX/webmin | bind8/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
// This placeholder is to support a legacy/regression test in ReactFresh-test.
// Without this mock, jest.mock('scheduler/tracing') throws.
| JavaScript | 2 | GBKstc/react-analysis | packages/react-reconciler/src/__mocks__/scheduler/tracing.js | [
"MIT"
] |
fun main () = return <xml><body>
<a link={other ()}>Go to the other one!</a>
</body></xml>
and other () = return <xml><body>
<a link={main ()}>Return to <tt>main</tt>!</a>
</body></xml>
| UrWeb | 1 | apple314159/urweb | demo/rec.ur | [
"BSD-3-Clause"
] |
<h1>HelloWorld</h1> | Handlebars | 0 | tiendq/Ghost | test/utils/fixtures/test.hbs | [
"MIT"
] |
module org-openroadm-external-pluggable {
namespace "http://org/openroadm/external/pluggable";
prefix org-openroadm-external-pluggable;
import org-openroadm-equipment-states-types {
prefix org-openroadm-equipment-states-types;
}
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
organization
"OPEN ROADM MSA";
contact
"OpenROADM.org.";
description
"YANG definitions for External Pluggable
Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
AT&T Intellectual Property. All other rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the Members of the Open ROADM MSA Agreement nor the names of its
contributors may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.";
revision 2016-10-14 {
description
"Version 1.2";
}
grouping external-pluggable {
list pluggables {
key "clli";
leaf clli {
type string;
description
"Location CLLI where pluggable resides";
}
list ext-pluggables {
key "pluggable-number node-type";
leaf pluggable-number {
type uint32;
description
"Identifier of the pluggable in a given
office, i.e., 1, 2..N";
}
leaf node-type {
type org-openroadm-common-types:node-types;
}
leaf pluggable-id {
type string;
description
"Network-wide unique identifier for a pluggable";
}
leaf vendor {
type string;
description
"Identifier of the supplier for the pluggable";
}
leaf customer-code {
type string;
description
"Owner of the pluggable";
}
container external-connection {
leaf clli {
type string;
description
"Location of CLLI where ROADM resides";
}
leaf node-number{
type uint32;
}
leaf node-id {
type string;
description
"Identifier of a ROADM node";
}
leaf srg-number {
type uint16;
}
leaf pp-number {
type uint16;
}
leaf bit-rate {
type uint32;
}
leaf signal-format {
type string;
}
leaf reach {
type string;
}
leaf optic {
type org-openroadm-common-types:optic-types;
}
leaf state {
type org-openroadm-equipment-states-types:states;
description
"A xponder can be in one of the following
states";
}
}
container tail {
leaf client-equipment {
type string;
}
leaf client-equipmentId {
type string;
}
leaf clfi {
type string;
}
}
}
}
}
}
| YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/[email protected] | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.sql.execution.benchmark
import java.io.File
import org.apache.spark.benchmark.Benchmark
import org.apache.spark.sql.DataFrame
import org.apache.spark.util.Utils
/**
* Benchmark for performance with very wide and nested DataFrames.
* To run this benchmark:
* {{{
* 1. without sbt:
* bin/spark-submit --class <this class>
* --jars <spark core test jar>,<spark catalyst test jar> <spark sql test jar>
* 2. build/sbt "sql/test:runMain <this class>"
* 3. generate result: SPARK_GENERATE_BENCHMARK_FILES=1 build/sbt "sql/test:runMain <this class>"
* Results will be written to "benchmarks/WideSchemaBenchmark-results.txt".
* }}}
*/
object WideSchemaBenchmark extends SqlBasedBenchmark {
private val scaleFactor = 100000
private val widthsToTest = Seq(1, 100, 2500)
private val depthsToTest = Seq(1, 100, 250)
assert(scaleFactor > widthsToTest.max)
import spark.implicits._
private var tmpFiles: List[File] = Nil
private def deleteTmpFiles(): Unit = tmpFiles.foreach(Utils.deleteRecursively)
/**
* Writes the given DataFrame to parquet at a temporary location, and returns a DataFrame
* backed by the written parquet files.
*/
private def saveAsParquet(df: DataFrame): DataFrame = {
val tmpFile = File.createTempFile("WideSchemaBenchmark", "tmp")
tmpFiles ::= tmpFile
tmpFile.delete()
df.write.parquet(tmpFile.getAbsolutePath)
assert(tmpFile.isDirectory())
spark.read.parquet(tmpFile.getAbsolutePath)
}
/**
* Adds standard set of cases to a benchmark given a dataframe and field to select.
*/
private def addCases(
benchmark: Benchmark,
df: DataFrame,
desc: String,
selector: String): Unit = {
benchmark.addCase(desc + " (read in-mem)") { iter =>
df.selectExpr(s"sum($selector)").noop()
}
benchmark.addCase(desc + " (exec in-mem)") { iter =>
df.selectExpr("*", s"hash($selector) as f").selectExpr(s"sum($selector)", "sum(f)").noop()
}
val parquet = saveAsParquet(df)
benchmark.addCase(desc + " (read parquet)") { iter =>
parquet.selectExpr(s"sum($selector) as f").noop()
}
benchmark.addCase(desc + " (write parquet)") { iter =>
saveAsParquet(df.selectExpr(s"sum($selector) as f"))
}
}
def parsingLargeSelectExpressions(): Unit = {
val benchmark = new Benchmark("parsing large select", 1, output = output)
for (width <- widthsToTest) {
val selectExpr = (1 to width).map(i => s"id as a_$i")
benchmark.addCase(s"$width select expressions") { iter =>
spark.range(1).toDF.selectExpr(selectExpr: _*)
}
}
benchmark.run()
}
def manyColumnFieldReadAndWrite(): Unit = {
val benchmark = new Benchmark("many column field r/w", scaleFactor, output = output)
for (width <- widthsToTest) {
// normalize by width to keep constant data size
val numRows = scaleFactor / width
val selectExpr = (1 to width).map(i => s"id as a_$i")
val df = spark.range(numRows).toDF.selectExpr(selectExpr: _*).cache()
df.count() // force caching
addCases(benchmark, df, s"$width cols x $numRows rows", "a_1")
}
benchmark.run()
}
def wideShallowlyNestedStructFieldReadAndWrite(): Unit = {
val benchmark = new Benchmark(
"wide shallowly nested struct field r/w", scaleFactor, output = output)
for (width <- widthsToTest) {
val numRows = scaleFactor / width
var datum: String = "{"
for (i <- 1 to width) {
if (i == 1) {
datum += s""""value_$i": 1"""
} else {
datum += s""", "value_$i": 1"""
}
}
datum += "}"
datum = s"""{"a": {"b": {"c": $datum, "d": $datum}, "e": $datum}}"""
val df = spark.read.json(spark.range(numRows).map(_ => datum)).cache()
df.count() // force caching
addCases(benchmark, df, s"$width wide x $numRows rows", "a.b.c.value_1")
}
benchmark.run()
}
def deeplyNestedStructFieldReadAndWrite(): Unit = {
val benchmark = new Benchmark("deeply nested struct field r/w", scaleFactor, output = output)
for (depth <- depthsToTest) {
val numRows = scaleFactor / depth
var datum: String = "{\"value\": 1}"
var selector: String = "value"
for (i <- 1 to depth) {
datum = "{\"value\": " + datum + "}"
selector = selector + ".value"
}
val df = spark.read.json(spark.range(numRows).map(_ => datum)).cache()
df.count() // force caching
addCases(benchmark, df, s"$depth deep x $numRows rows", selector)
}
benchmark.run()
}
def bushyStructFieldReadAndWrite(): Unit = {
val benchmark = new Benchmark("bushy struct field r/w", scaleFactor, output = output)
for (width <- Seq(1, 100, 1000)) {
val numRows = scaleFactor / width
var numNodes = 1
var datum: String = "{\"value\": 1}"
var selector: String = "value"
var depth = 1
while (numNodes < width) {
numNodes *= 2
datum = s"""{"left_$depth": $datum, "right_$depth": $datum}"""
selector = s"left_$depth." + selector
depth += 1
}
// TODO(ekl) seems like the json parsing is actually the majority of the time, perhaps
// we should benchmark that too separately.
val df = spark.read.json(spark.range(numRows).map(_ => datum)).cache()
df.count() // force caching
addCases(benchmark, df, s"$numNodes x $depth deep x $numRows rows", selector)
}
benchmark.run()
}
def wideArrayFieldReadAndWrite(): Unit = {
val benchmark = new Benchmark("wide array field r/w", scaleFactor, output = output)
for (width <- widthsToTest) {
val numRows = scaleFactor / width
var datum: String = "{\"value\": ["
for (i <- 1 to width) {
if (i == 1) {
datum += "1"
} else {
datum += ", 1"
}
}
datum += "]}"
val df = spark.read.json(spark.range(numRows).map(_ => datum)).cache()
df.count() // force caching
addCases(benchmark, df, s"$width wide x $numRows rows", "value[0]")
}
benchmark.run()
}
def wideMapFieldReadAndWrite(): Unit = {
val benchmark = new Benchmark("wide map field r/w", scaleFactor, output = output)
for (width <- widthsToTest) {
val numRows = scaleFactor / width
val datum = Tuple1((1 to width).map(i => ("value_" + i -> 1)).toMap)
val df = spark.range(numRows).map(_ => datum).toDF.cache()
df.count() // force caching
addCases(benchmark, df, s"$width wide x $numRows rows", "_1[\"value_1\"]")
}
benchmark.run()
}
def runBenchmarkWithDeleteTmpFiles(benchmarkName: String)(func: => Any): Unit = {
runBenchmark(benchmarkName) {
func
}
deleteTmpFiles()
}
override def runBenchmarkSuite(mainArgs: Array[String]): Unit = {
runBenchmarkWithDeleteTmpFiles("parsing large select expressions") {
parsingLargeSelectExpressions()
}
runBenchmarkWithDeleteTmpFiles("many column field read and write") {
manyColumnFieldReadAndWrite()
}
runBenchmarkWithDeleteTmpFiles("wide shallowly nested struct field read and write") {
wideShallowlyNestedStructFieldReadAndWrite()
}
runBenchmarkWithDeleteTmpFiles("deeply nested struct field read and write") {
deeplyNestedStructFieldReadAndWrite()
}
runBenchmarkWithDeleteTmpFiles("bushy struct field read and write") {
bushyStructFieldReadAndWrite()
}
runBenchmarkWithDeleteTmpFiles("wide array field read and write") {
wideArrayFieldReadAndWrite()
}
runBenchmarkWithDeleteTmpFiles("wide map field read and write") {
wideMapFieldReadAndWrite()
}
}
}
| Scala | 5 | akhalymon-cv/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/WideSchemaBenchmark.scala | [
"Apache-2.0"
] |
;Based on the paper Efficient Evaluation of Pointer Predicates
; with Z3 SMT Solver in SLAM2, Buonimova, Moura, Ball, Levin
; initial translation
; f,v,x: fields, variables, location terms
; x' stands for the result of the translation for the
; term x by applying the translation rules recursively
; f' denotes encoding for the field index f
; B is the maximum number of basic locations in the program
; 1) Basic Location encoding: each variable v is replaced with a
; unique positive integer n, n < B
; 2) Dereference *x is replaced with !S(x',D)
; 3) Direct field access x.f is replaced with !S(x',f'),
; where f' is a non-negative integer n, n < N
; (not sure what big N is, possibly the number of fields of x)
; 4) Indirect field access x->f is replaced with !S(!S(x',D),f')
; Implementation Axioms (I.b in the paper)
; Address relation, true when the first int is Var,
; the second is the address of Var
(declare-rel A (Int Int))
;S(x,f,v) is v = x->f
(declare-rel !S (Int Int Int))
(declare-rel !A (Int Int))
(declare-rel !V (Int Int))
(declare-rel !D (Int))
(rule (!D -1))
;1 forall X > 0, !A(X) > 0
(rule (=> (and (> X 0) (!A X V)) (> V 0)))
;2 forall X,Y: !A(X) = !A(Y) => X = Y
(rule (=> (and (!A X V) (!A Y V)) (= X Y)))
; 2a, 2b not amenable to rule/query formation so used 2
; 2a forall X > B !A(X) = !A(!S(X,0))
;(rule (=> (> X B) (and (and (!A X Q) (!S X 0 Z)) (!A Z Q))))
; 2b forall X>B Y != (!S(X,0) => !A(X) = !A(Y) => (X = Y))
;3 forall X, F>=0: !S(X,F)>B
(rule (=> (and (!S X F B) (>= F 0)) (> B 0)))
;4 forall X, !A(!S(X,!D)) = !V(X)
(rule (=> ((!S X !D Y) (!A Y Z)) (!V X Z)))
; modified 5 from Axioms II in paper
;5a forall X,F >= 0: !Sm1(!S(X,F)) = X
;5b !Sm2(!S(X,F)) = F
(rule (=> (and (S X F Z) (> F 0)) (Sm1 Z X)))
(rule (=> (and (S X F Z) (> F 0)) (Sm2 Z F)))
;6 forall X,Y,F >= 0: !V(X) = !V(Y) => !V(!S(X,F)) = !V(!S(Y,F))
(rule (=> (and (!V X Z) (!V Y Z)) (and (and (!S X F Z) (!V Z Q)) (and (!S Y F Zp) (!V Zp Q)))))
;7
;X is an aggregate location
; T the relation data type of a field can be used to determine
; the address of the next field
; forall F, 0 <= F < N-1, A(S(X,F+1)) = A(S(X,F)) + T(X,F)
; NOTE: in the paper it reads
; forall F, 0 <= F < N-1, A(X,F+1) = A(X,F) + T(X,F)
; this must be a typo because A only takes one argument
; there are no negative fields
;(<= 0 F)
; there is at least one more field
;(< F (- N 1))
; The fth element of S is Q1
;(S X F Q1)
; The fth plus 1 element of S is Q2
;(S X (+ F 1) Q2)
; the address of Q1 is Z
;(A Q1 Z)
; the address of Q2 is Zprime
;(A Q2 Zprime)
; The length of the fth field (determined by type) is Zt
;(T X F Zt)
; The address of the element in the the next field is
; the address of the current element plus the length of the
; fth field determined by type
(rule (=> (and (and (and (and (and (and (<= 0 F) (< F (- N 1))) (!S X F Q1)) (!S X (+ F 1) Q2)) (!A Q1 Z)) (!A Q2 Zprime)) (!T X F Zt)) (= Zprime (+ Z Zt))))
; 8
; locations as field indices
; translation change
; x[k], k is a variable or a location term
; if k is a variable, k' is an integer that encodes k as a basic location
; if k is a location term, k' is the translation of k by
; the (modified) translation rules, then x[k] is translated into
; !S(x',!V(n')), assume integers belong to the interval 0..N-1
; axiom change
; new axiom, forall X > 0: !V(X) != !D
(rule (=> (and (> X 0) (!V X Q)) (not (= Q !D))))
| SMT | 5 | ouankou/rose | projects/SMTPathFeasibility/tools/pointerPredicateRules.smt2 | [
"BSD-3-Clause"
] |
@keyframes a\,c { \66rom {} } | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/input.css | [
"Apache-2.0",
"MIT"
] |
/* DQ (2/3/2011): Bug report from iastate: arg_with_THREADS_reparse/short_test.upc */
#include <upc.h>
#include <upc_collective.h>
#include <upc_io.h>
#define NELEMS 10
shared int *scatter_A;
int main ()
{
// Before turning off the EDG constant folding for UPC THREADS and MY_THREAD pseudo-constants.
// scatter_A = ((shared[1] int *)(upc_all_alloc((THREADS ),(THREADS ))));
// After turning off the EDG constant folding for UPC THREADS and MY_THREAD pseudo-constants.
// scatter_A = ((shared[1] int *)(upc_all_alloc((THREADS ),(((((THREADS ) * 10)) * (sizeof(int )))))));
// New behavior after EDG bug fix.
// Without the -rose:upc_threads 1 option this is unparsed as:
// scatter_A = ((shared[1] int *)(upc_all_alloc((THREADS ),(((((THREADS ) * 10)) * (sizeof(int )))))));
// With the -rose:upc_threads 1 option this is unparsed as:
// scatter_A = ((shared[1] int *)(upc_all_alloc((1),((((1 * 10)) * (sizeof(int )))))));
// Original code
scatter_A = (shared int *)upc_all_alloc(THREADS, THREADS*NELEMS*sizeof(int));
return 0;
}
| Unified Parallel C | 4 | maurizioabba/rose | tests/CompileTests/UPC_tests/test2011_01.upc | [
"BSD-3-Clause"
] |
<html>
<head>
<title>shadow_dom_test.html</title>
<script type="text/javascript" src="test_bootstrap.js">
</script>
<script type="text/javascript">
goog.require('goog.testing.jsunit');
goog.require('webdriver.chrome');
goog.require('bot.locators');
</script>
</head>
<body>
<H1>Page for Shadow DOM chromedriver tests</H1>
The various sections are highlighted with colored borders to make it more obvious
where each element comes from. Default to pushing the content off the first
screen, to test that scrolling to the elements works.
<div id="padding"></div>
<script>
document.getElementById('padding').style.height = window.innerHeight;
</script>
<div id="outerDiv">
<div id="innerDiv" style="border-style:solid;border-color:yellow">
stuff
</div>
</div>
<template id="parentTemplate">
<div id="parentDiv">
<div style="border-style:solid;border-color:green">
<H3>Parent</H3>
<H4>Contents</H4>
<content></content>
</div>
</div>
</template>
<template id="childTemplate">
<div id="childDiv">
<div style="border-style:solid;border-color:red">
<H3 id="heading">Child</H3>
As the child of a nested shadow root, this is the most likely
to go wrong bit of the page, so we'll concentrate our tests here.
<H4>Contents</H4>
<content></content>
<input id="textBox" type="text" value="foo"/>
<input type="button" onClick="buttonWasClicked()" value="button"
id="button"/>
</div>
</div>
</template>
<script type="text/javascript" >
var parentShadowRoot = document.querySelector('#innerDiv').createShadowRoot();
parentShadowRoot.appendChild(document.querySelector('#parentTemplate'
).content.cloneNode(true));
var childShadowRoot = parentShadowRoot.querySelector("#parentDiv"
).createShadowRoot();
childShadowRoot.appendChild(document.querySelector('#childTemplate'
).content.cloneNode(true));
function buttonWasClicked() {
document.querySelector("* /deep/ #textBox").value="Button Was Clicked";
}
</script>
<script type="text/javascript">
function getCenterCoordinate(elem) {
var rect = elem.getClientRects()[0];
var x = rect.left + (rect.right - rect.left) / 2;
var y = rect.top + (rect.bottom - rect.top) / 2;
return new goog.math.Coordinate(x, y);
}
function testShadowRootIsElementClickable() {
// check isElementClickable works as expected on elements within a shadow
// DOM
var elemButton = document.querySelector("* /deep/ #button");
var elemText = document.querySelector("* /deep/ #textBox");
// scroll to the element
webdriver.chrome.getLocationInView(elemButton, true);
assertTrue(
"Button #button should be clickable",
webdriver.chrome.isElementClickable(elemButton,
getCenterCoordinate(elemButton)).clickable);
assertFalse(
"Textbox #textBox should not be clickable from #button's location",
webdriver.chrome.isElementClickable(elemText,
getCenterCoordinate(elemButton)).clickable);
}
function testShadowRootIsDisplayed() {
// check isDisplayed works as expected on elements within a shadow
// DOM
var elem = document.querySelector("* /deep/ #textBox");
assertTrue("Text box #textBox should be visible",
webdriver.chrome.isElementDisplayed(elem));
document.querySelector("#outerDiv").style.display="None";
try {
assertFalse(
"Text box #textBox should not be visible",
webdriver.chrome.isElementDisplayed(elem));
} finally {
document.querySelector("#outerDiv").style.display="";
}
}
function testShadowRootFindElement() {
// check FindElement works as expected on elements within a shadow
// DOM
var elemDiv = document.querySelector("* /deep/ #childDiv");
var elemButton = document.querySelector("* /deep/ #button");
assertEquals(
"webdriver.chrome.findElement didn't find the element #button",
elemButton,
webdriver.chrome.findElement({"id" : "button"}, elemDiv));
}
function testBotLocatorsFindElements() {
// webdriver.chrome.findElement depends on bot.locators.findElements.
// So check that bot.locators.findElements keeps working as expected
// with shadow roots
var elemDiv = document.querySelector("* /deep/ #childDiv");
var elemButton = document.querySelector("* /deep/ #button");
var elems = bot.locators.findElements({"id" : "button"}, elemDiv);
assertEquals("webdriver.chrome.findElements didn't find exactly 1 element for #button",
1,
elems.length);
assertEquals(
"webdriver.chrome.findElement didn't find the element button",
elemButton,
elems[0]);
}
</script>
</body>
</html>
| HTML | 5 | weilandia/selenium | javascript/chrome-driver/test/shadow_dom_test.html | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2C8.69 2 6 4.69 6 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm3 7h-2v2h-2V9H9V7h2V5h2v2h2v2zm-5 7H6.5v6H10c.8 0 1.5-.7 1.5-1.5v-3c0-.8-.7-1.5-1.5-1.5zm0 4.5H8v-3h2v3zm8-4.5h-5v6h1.5v-2h1.1l.9 2H18l-.86-2H18v-4zm-1.5 2.5h-2v-1h2v1zm-13-.5h-2v-2H0v6h1.5v-2.5h2V22H5v-6H3.5zm18.5.5v-2h-1.5v2h-2V20h2v2H22v-2h2v-1.5z"
}), 'HdrEnhancedSelectSharp'); | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/HdrEnhancedSelectSharp.js | [
"MIT"
] |
grammar mysql_drop;
import mysql_literal_tokens, mysql_idents;
drop_database: DROP (DATABASE | SCHEMA) if_exists? name;
drop_table: DROP TEMPORARY? TABLE if_exists? table_name (',' table_name)* drop_table_options*;
drop_table_options: (RESTRICT | CASCADE);
if_exists: IF EXISTS;
| ANTLR | 3 | zhongyu211/maxwell | src/main/antlr4/imports/mysql_drop.g4 | [
"Apache-2.0"
] |
fun implicitRef() {
A.AA.x.hashCode()
} | Groff | 1 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/companionObjectToSimpleObject/companionReferenceImplicit.kt.new.2 | [
"Apache-2.0"
] |
require_relative 'iap_subscription_pricing_info'
module Spaceship
module Tunes
class IAPSubscriptionPricingTier < TunesBase
# @return (String) Number of the subscription price tier (e.g. "1" for Tier 1 )
attr_accessor :tier_stem
# @return (String) Name of the tier (e.g. "ITC.addons.pricing.tier.1" for Tier 1)
attr_accessor :tier_name
# @return ([Spaceship::Tunes::IAPSubscriptionPricingInfo]) A list of all prices for the respective countries
attr_accessor :pricing_info
attr_mapping(
"tierStem" => :tier_stem,
"tierName" => :tier_name
)
def pricing_info
@pricing_info ||= raw_data['pricingInfo'].map { |info| IAPSubscriptionPricingInfo.new(info) }
end
end
end
end
| Ruby | 5 | Baumchen/fastlane | spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb | [
"MIT"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList
import java.util.List
import org.openapitools.model.ReadOnlyFirst
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for ArrayTest
*/
@MicronautTest
public class ArrayTestSpec extends Specification {
private final ArrayTest model = new ArrayTest()
/**
* Model tests for ArrayTest
*/
void "ArrayTest test"() {
// TODO: test ArrayTest
}
/**
* Test the property 'arrayOfString'
*/
void "ArrayTest property arrayOfString test"() {
// TODO: test arrayOfString
}
/**
* Test the property 'arrayArrayOfInteger'
*/
void "ArrayTest property arrayArrayOfInteger test"() {
// TODO: test arrayArrayOfInteger
}
/**
* Test the property 'arrayArrayOfModel'
*/
void "ArrayTest property arrayArrayOfModel test"() {
// TODO: test arrayArrayOfModel
}
}
| Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayTestSpec.groovy | [
"Apache-2.0"
] |
import ensurepip
import sys
if __name__ == "__main__":
sys.exit(ensurepip._main())
| Python | 1 | shawwn/cpython | Lib/ensurepip/__main__.py | [
"0BSD"
] |
#pragma once
// ${generated_comment}
#include <ATen/Context.h>
#include <ATen/NativeMetaFunctions.h>
#include <ATen/core/Reduction.h>
#include <c10/core/ScalarType.h>
#include <c10/core/TensorOptions.h>
#include <array>
#include <functional>
#include <string>
#include <tuple>
#include <vector>
namespace c10 {
class Scalar;
}
namespace at {
struct Generator;
class Tensor;
struct Type;
} // namespace at
namespace at {
namespace native {
${native_function_declarations}
} // namespace native
} // namespace at
| C | 2 | Hacky-DH/pytorch | aten/src/ATen/templates/NativeFunctions.h | [
"Intel"
] |
{
"name": "Vue-Nw-Webpack",
"version": "0.1.7",
"main": "./nw-main.js",
"node-remote": "*://localhost/*",
"window": {
"width": 1280,
"height": 865,
"icon": "./logo.png"
}
}
| JSON | 2 | frank-dspeed/nw.js | test/sanity/issue7197-load/package.json | [
"MIT"
] |
#include <torch/csrc/jit/passes/variadic_ops.h>
#include <torch/csrc/jit/ir/alias_analysis.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/remove_mutation.h>
namespace torch {
namespace jit {
namespace {
class VariadicUpdater {
public:
explicit VariadicUpdater(
std::shared_ptr<Graph> graph,
NodeKind op,
NodeKind variadic_op,
size_t list_idx = 0)
: graph_(std::move(graph)),
op_(op),
variadic_op_(variadic_op),
list_idx_(list_idx) {}
bool run() {
collectOpNodes(graph_->block());
bool changed = false;
for (auto n : op_nodes_) {
changed |= replaceWithVariadicOp(n);
}
return changed;
}
private:
void collectOpNodes(Block* block) {
for (auto node : block->nodes()) {
if (node->kind() == op_) {
op_nodes_.push_back(node);
}
for (Block* b : node->blocks()) {
collectOpNodes(b);
}
}
}
bool replaceWithVariadicOp(Node* op_node) {
const size_t num_inputs = op_node->inputs().size();
TORCH_CHECK(list_idx_ < num_inputs);
if (op_node->input(list_idx_)->node()->kind() != prim::ListConstruct) {
return false;
}
auto list = op_node->input(list_idx_)->node();
const size_t list_len = list->inputs().size();
// We do not transform ops whose list input can not be moved to the
// position before op. This in turn implies that there is some mutation
// of the input list before op.
if (!getOrCreateAliasDb()->couldMoveBeforeTopologically(list, op_node)) {
return false;
}
// Construct new inputs
std::vector<Value*> inputs;
inputs.reserve(num_inputs + list_len - 1);
inputs.insert(
inputs.end(),
op_node->inputs().begin(),
op_node->inputs().begin() + list_idx_);
inputs.insert(inputs.end(), list->inputs().begin(), list->inputs().end());
inputs.insert(
inputs.end(),
op_node->inputs().begin() + list_idx_ + 1,
op_node->inputs().end());
auto var_op_node = op_node->owningGraph()->create(variadic_op_, inputs);
var_op_node->output()->setType(op_node->output()->type());
GRAPH_UPDATE("Adding\n", *var_op_node);
var_op_node->insertBefore(op_node);
GRAPH_UPDATE("Replacing\n", *op_node, "with\n", *var_op_node);
op_node->output()->replaceAllUsesWith(var_op_node->output());
GRAPH_UPDATE("Deleting\n", *op_node);
op_node->destroy();
if (!list->hasUses()) {
GRAPH_UPDATE("Deleting\n", *list);
list->destroy();
}
return true;
}
AliasDb* getOrCreateAliasDb() {
if (!aliasDb_) {
aliasDb_ = std::make_unique<AliasDb>(graph_);
}
return aliasDb_.get();
}
std::shared_ptr<Graph> graph_;
std::unique_ptr<AliasDb> aliasDb_ = nullptr;
std::vector<Node*> op_nodes_;
NodeKind op_;
NodeKind variadic_op_;
size_t list_idx_;
};
} // namespace
bool UseVariadicOp(
const std::shared_ptr<Graph>& graph,
NodeKind op,
NodeKind variadic_op,
size_t list_idx) {
const std::string pass_name = std::string("variadic ") + op.toQualString();
GRAPH_DUMP("Before " + pass_name, graph);
bool changed = VariadicUpdater(graph, op, variadic_op, list_idx).run();
if (changed) {
GRAPH_DUMP("After " + pass_name, graph);
}
return changed;
}
bool RemoveListMutationAndUseVariadicOp(
const std::shared_ptr<Graph>& graph,
NodeKind op,
NodeKind variadic_op,
size_t list_idx) {
bool changed_in_last_iter = true;
bool changed = false;
while (changed_in_last_iter) {
changed_in_last_iter = RemoveListMutation(graph);
changed_in_last_iter =
UseVariadicOp(graph, op, variadic_op, list_idx) || changed_in_last_iter;
changed = changed || changed_in_last_iter;
}
return changed;
}
bool UseVariadicCat(const std::shared_ptr<Graph>& graph) {
return UseVariadicOp(graph, aten::cat, prim::VarConcat);
}
bool RemoveListMutationAndUseVariadicCat(const std::shared_ptr<Graph>& graph) {
return RemoveListMutationAndUseVariadicOp(graph, aten::cat, prim::VarConcat);
}
bool UseVariadicStack(const std::shared_ptr<Graph>& graph) {
return UseVariadicOp(graph, aten::stack, prim::VarStack);
}
bool RemoveListMutationAndUseVariadicStack(
const std::shared_ptr<Graph>& graph) {
return RemoveListMutationAndUseVariadicOp(graph, aten::stack, prim::VarStack);
}
} // namespace jit
} // namespace torch
| C++ | 5 | sanchitintel/pytorch | torch/csrc/jit/passes/variadic_ops.cpp | [
"Intel"
] |