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
listlengths
1
8
C:\Program Files (x86)\BumpTop\Web\BumpTabs
DIGITAL Command Language
2
dyzmapl/BumpTop
trunk/win/Source/Web/BumpTabs/[email protected]
[ "Apache-2.0" ]
Document Type: IPF item: Global Version=6.0 Flags=00000100 Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 LanguagesList=English Default Language=2 Japanese Font Name=MS Gothic Japanese Font Size=10 Start Gradient=0 0 255 End Gradient=0 0 0 Windows Flags=00010100001000000010110001010010 Log Pathname=%WIN%\IE55UserRightsDeployment.txt Message Font=MS Sans Serif Font Size=8 Disk Filename=SETUP Patch Flags=0000000000000001 Patch Threshold=85 Patch Memory=4000 FTP Cluster Size=20 end item: Open/Close INSTALL.LOG end item: Remark end item: Remark Text= CHECK IE VERSION end item: Get Registry Key Value Variable=IEVERSION Key=SOFTWARE\Microsoft\Internet Explorer Value Name=Version Flags=00000100 end item: If/While Statement Variable=IEVERSION Value=6.0 Flags=00001001 end item: Remark Text= IE INSTALL FAILED - RECORD AND EXIT end item: Add Text to INSTALL.LOG Text=IE Install failed: end item: Add Text to INSTALL.LOG Text="HKLM\SOFTWARE\Microsoft\Internet Explorer\Version"=%IEVERSION% ...shoud be higher than 5.5x to indicate success end item: Add Text to INSTALL.LOG Text=+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end item: Check if File/Dir Exists Pathname=%WIN%\ISMIF32.DLL Flags=00000100 end item: Copy Local File Source=%WIN%\ISMIF32.DLL Destination=%TEMP%\ISMIF32.DLL Flags=0000000001000010 end item: Call DLL Function Pathname=%TEMP%\ISMIF32.dll Function Name=InstallStatusMIF Argument List=41IESMSWRAP Argument List=41MS Argument List=41IE Argument List=4155 Argument List=41ENU Argument List=41serial-number Argument List=41Internet Explorer 6 installation failed Argument List=010 Return Variable=0DLLRET Flags=00100000 end item: Delete File Pathname=%TEMP%\ISMIF32.DLL end item: End Block end item: Exit Installation end item: Else Statement end item: Remark Text= IE INSTALL SUCCEEDED end item: Add Text to INSTALL.LOG Text=IE6.0 Install Succeeded end item: End Block end item: Remark end item: Remark end item: Remark Text= CHECK OS end item: Get Environment Variable Variable=OS Environment=OS end item: Add Text to INSTALL.LOG Text=OS Environment Variable = %OS% end item: Remark end item: If/While Statement Variable=OS Value=NT Flags=00000011 end item: Set Variable Variable=SYSTEM Value=%SYS% end item: Else Statement end item: Set Variable Variable=SYSTEM Value=%SYS32% end item: End Block end item: Remark end item: Remark Text= CHECK FOR THE WINDOWS INSTALLER end item: Check if File/Dir Exists Pathname=%SYSTEM%\MSI.DLL Title English=SMS Wrapper Flags=00000101 end item: Add Text to INSTALL.LOG Text=%SYSTEM%\MSI.DLL not present... attempting to install the Windows Installer end item: Remark Text= TRY TO INSTALL THE WINDOWS INSTALLER end item: If/While Statement Variable=OS Value=NT Flags=00000011 end item: Install File Source=.\INSTMSI.EXE Destination=%TEMP%\INSTMSI.EXE Flags=0000000000000010 end item: Else Statement end item: Install File Source=.\INSTMSIW.EXE Destination=%TEMP%\INSTMSI.EXE Flags=0000000000000010 end item: End Block end item: Execute Program Pathname=%TEMP%\instmsi.exe Command Line=/q /r:n Flags=00000010 end item: Delete File Pathname=%TEMP%\instmsi.exe end item: Check if File/Dir Exists Pathname=%SYSTEM%\MSI.DLL Title English=SMS Wrapper Flags=00000101 end item: Remark Text= FAILED TO INSTALL THE WINDOWS INSTALLER end item: Add Text to INSTALL.LOG Text=%SYSTEM%\MSI.DLL not present, failed to install the Windows Installer end item: Add Text to INSTALL.LOG Text=+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end item: Check if File/Dir Exists Pathname=%WIN%\ISMIF32.DLL Flags=00000100 end item: Copy Local File Source=%WIN%\ISMIF32.DLL Destination=%TEMP%\ISMIF32.DLL Flags=0000000001000010 end item: Call DLL Function Pathname=%TEMP%\ISMIF32.dll Function Name=InstallStatusMIF Argument List=41IESMSWRAP Argument List=41MS Argument List=41IE Argument List=4155 Argument List=41ENU Argument List=41serial-number Argument List=41Failed to install the Windows Installer Argument List=010 Return Variable=0DLLRET Flags=00100000 end item: Delete File Pathname=%TEMP%\ISMIF32.DLL end item: End Block end item: Exit Installation end item: End Block end item: Add Text to INSTALL.LOG Text=Windows Installer is installed. end item: Else Statement end item: Add Text to INSTALL.LOG Text=Windows Installer is already installed on the system end item: End Block end item: Remark end item: If/While Statement Variable=OS Value=NT Flags=00000011 end item: Remark Text= WIN9x - REPORT STATUS AND EXIT end item: Add Text to INSTALL.LOG Text=System is running a Windows 9X OS end item: Add Text to INSTALL.LOG Text=+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end item: Edit Registry Total Keys=1 Key=Software\Microsoft\Windows\CurrentVersion\RunOnce New Value=%SYS%\IE5MSI.EXE /3 Value Name=IE5MSI Root=2 end item: Install File Source=..\..\active\ie5msi\obj\i386\ie5msi.exe Destination=%SYS%\ie5msi.exe Flags=0000000000000010 end item: Check if File/Dir Exists Pathname=%WIN%\ISMIF32.DLL Flags=00000100 end item: Copy Local File Source=%WIN%\ISMIF32.DLL Destination=%TEMP%\ISMIF32.DLL Flags=0000000001000010 end item: Call DLL Function Pathname=%TEMP%\ISMIF32.dll Function Name=InstallStatusMIF Argument List=41IESMSWRAP Argument List=41MS Argument List=41IE Argument List=4155 Argument List=41ENU Argument List=41serial-number Argument List=41Internet Explorer Install Succeeded Argument List=011 Return Variable=0DLLRET Flags=00100000 end item: Delete File Pathname=%TEMP%\ISMIF32.DLL end item: End Block end item: Exit Installation end item: Else Statement end item: Remark Text= WINNT CODE PATH end item: Add Text to INSTALL.LOG Text=System is running a Windows NT or Windows 2000 OS end item: Get Registry Key Value Variable=IEAPPATH Key=SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE Value Name=Path Flags=00000100 end item: Parse String Source=%IEAPPATH% Pattern=; Variable1=IEEXPLOREPATH end item: Add Text to INSTALL.LOG Text=IE installed to "%IEEXPLOREPATH%" end item: Install File Source=..\..\active\ie5msi\obj\i386\ie5msi.exe Destination=%SYS32%\ie5msi.exe Flags=0000000000000010 end item: Install File Source=..\..\active\ie5msi\ie5.msi Destination=%SYS32%\ie5.msi Flags=0000000000000010 end item: Execute Program Pathname=%SYS32%\ie5msi.exe Flags=00000010 end item: Get Registry Key Value Variable=URDSTATUS Key=SOFTWARE\Microsoft\Internet Explorer Default=0 Value Name=URDReturnCode Flags=00000010 end item: Edit Registry Total Keys=1 Key=SOFTWARE\Microsoft\Internet Explorer Value Name=URDReturnCode Root=193 end item: If/While Statement Variable=URDSTATUS Value=0 end item: Add Text to INSTALL.LOG Text=Succeeded in preparing IE install for Windows Installer file registration end item: Add Text to INSTALL.LOG Text=Ready to reboot the system end item: Add Text to INSTALL.LOG Text=+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end item: Check if File/Dir Exists Pathname=%WIN%\ISMIF32.DLL Flags=00000100 end item: Copy Local File Source=%WIN%\ISMIF32.DLL Destination=%TEMP%\ISMIF32.DLL Flags=0000000001000010 end item: Call DLL Function Pathname=%TEMP%\ISMIF32.dll Function Name=InstallStatusMIF Argument List=41IESMSWRAP Argument List=41MS Argument List=41IE Argument List=4155 Argument List=41ENU Argument List=41serial-number Argument List=41Internet Explorer Install Succeeded Argument List=011 Return Variable=0DLLRET Flags=00100000 end item: Delete File Pathname=%TEMP%\ISMIF32.DLL end item: End Block end item: Else Statement end item: Add Text to INSTALL.LOG Text=Failed in preparing IE install for Windows Installer file registration end item: Add Text to INSTALL.LOG Text=Ready to reboot the system end item: Add Text to INSTALL.LOG Text=+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ end item: Check if File/Dir Exists Pathname=%WIN%\ISMIF32.DLL Flags=00000100 end item: Copy Local File Source=%WIN%\ISMIF32.DLL Destination=%TEMP%\ISMIF32.DLL Flags=0000000001000010 end item: Call DLL Function Pathname=%TEMP%\ISMIF32.dll Function Name=InstallStatusMIF Argument List=41IESMSWRAP Argument List=41MS Argument List=41IE Argument List=4155 Argument List=41ENU Argument List=41serial-number Argument List=41Failed to prepare machine for user login. Administrator must login after restart. Argument List=010 Return Variable=0DLLRET Flags=00100000 end item: Delete File Pathname=%TEMP%\ISMIF32.DLL end item: End Block end item: End Block end item: End Block end
IGOR Pro
4
npocmaka/Windows-Server-2003
inetcore/setup/ieak5/other/ie55urd.ipf
[ "Unlicense" ]
a|b a|c b|c a|b|c /a|b b|/a a//c|b//c d|e|f|g|h|a
Max
0
yapingxin/libxml2
v2.9.7/libxml2-2.9.7/test/pattern/conj.pat
[ "MIT" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ #include <single_ctx_test.uc> #include <config.h> #include <gro_cfg.uc> #include <global.uc> #include <pv.uc> #include <stdmac.uc> .reg ctm_base .reg delete_bytes .reg pkt_offset .reg pms_offset .reg pkt_vec[PV_SIZE_LW] .reg read $pms[3] .xfer_order $pms .sig sig_read .reg tested_offset_len .reg expected_offset_len move(BF_A(pkt_vec, PV_NUMBER_bf), 0) move(BF_A(pkt_vec, PV_MU_ADDR_bf), 0) move(BF_A(pkt_vec, PV_CSUM_OFFLOAD_bf), 0) move(pkt_offset, 44) .while (pkt_offset < 253) move(BF_A(pkt_vec, PV_OFFSET_bf), pkt_offset) pv_write_nbi_meta(pms_offset, pkt_vec, fail#) pv_get_ctm_base(ctm_base, pkt_vec) mem[read32, $pms[0], ctm_base, <<8, pms_offset, 3], ctx_swap[sig_read] alu[delete_bytes, 0xff, AND, $pms[0], >>16] alu[expected_offset_len, delete_bytes, +, 15] alu[expected_offset_len, --, B, expected_offset_len, >>4] alu[tested_offset_len, 0x7, AND, $pms[0], >>24] test_assert_equal(tested_offset_len, expected_offset_len) test_assert_equal($pms[1], 0x04142434) .if (expected_offset_len > 3) test_assert_equal($pms[2], 0x44546474) .endif alu[pkt_offset, pkt_offset, +, 1] .endw test_pass() fail#: test_fail()
UnrealScript
3
pcasconnetronome/nic-firmware
test/datapath/pv_wr_nbi_meta_pms_opcode_offsets_test.uc
[ "BSD-2-Clause" ]
--TEST-- Instanceof on literals returns false --FILE-- <?php var_dump("abc" instanceof stdclass); ?> --EXPECT-- bool(false)
PHP
4
thiagooak/php-src
Zend/tests/instanceof_const.phpt
[ "PHP-3.01" ]
#summary Detailed description of DX7 envelope generation = Interactive model = Explore the interactive !JavaScript [http://wiki.music-synthesizer-for-android.googlecode.com/git/img/env.html implementation] of a nearly bit-accurate model of the DX7 envelope. Also see [http://wiki.music-synthesizer-for-android.googlecode.com/git/img/outlevel.html plots] of the scaling tables for both output level and rate, from the 0..99 values in DX7 patches to real-world values, measured in dB and dB/s. = The DX7 Envelope = This page contains a detailed description of the envelope generation in the DX7. Conceptually, there's an "idealized envelope" which has smooth variation of amplitude as a function of time, and then there's the actual realization in the DX7's hardware, which introduces various forms of quantization, mostly due to running with very small numbers of bits for state. == Idealized envelope == The envelope logic is fairly simple, but also quite musically expressive. The main parameters are four levels and rates, and also the output level (described in a bit more detail below). The shape of the envelope is asymmetrical - while the decay portions are purely exponential, the attack portions are a more complex shape approximating linear. This asymmetry is visible in the envelope figures in Chowning's original paper on FM synthesis - see reference below. Chowning says, "A general characteristic of percussive sounds is that the decay shape of the envelope is roughly exponential as shown in Fig. 14", while the attacks shown in examples of envelopes for brass and woodwind sounds is much closer to linear. <wiki:comment>Figures from Chowning</wiki:comment> The full state of the idealized envelope is represented as an _index_ of which part of the envelope is active (labeled 0-3 in this discussion), combined with a _level_. Typically, the envelope starts out at L4 and increases to L1. Then, when it reaches the _target_ of L1, the index increments, and it proceeds to L2 (either by decay or attack, depending on whether L1 or L2 is greater). The conversion from level parameter (L1, L2, L3, L4 in the patch) to actual level is as follows: {{{ Level 0..5 -> actual level = 2 * l Level 5..16 -> actual level = 5 + l Level 17..20 -> actual level = 4 + l Level 20..99 -> actual level = 14 + (l >> 1) }}} The output level is scaled similarly, but is just 28 + l for values 20..99. It has twice the precision of the level parameters. The exact lookup table for values 0..19 is [0, 5, 9, 13, 17, 20, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 42, 43, 45, 46]. Then, the total level is 64 `*` actual level + 32 `*` output level, normalized for full scale. This "total level" is in units of approx .0235 dB (20 log<sub>10</sub>(2) / 256), so that 256 of these steps doubles the amplitude. From measurement of timing, the minimum level seems to be clipped at 3824 counts from full scale -> 14.9375 doublings. Note, however, that velocity values > 100 can cause amplitudes greater than full scale. Full scale means both L and output level set to 99 in the patch, and no additional scaling. As mentioned above, the decay shape is simpler than the attack. An exponential decay corresponds to a linear change in dB units. First, the R parameter in the patch (range 0..99) is converted to a 6 bit value (0..63), by the formula qrate = (rate `*` 41) / 64. The rate of decay is then 0.2819 `*` 2<sup>(qrate / 4)</sup> `*` (1 + 0.25 `*` (qrate mod 4)) dB/s. This is a reasaonably good approximation to 0.28 `*` 2<sup>(qrate `*` 0.25)</sup>. Attack is based on decay, multiplying it by a factor dependent on the current level. In .0235 dB units, this factor is 2 + floor((full scale - current level) / 256). Also, level _immediately_ rises to 39.98 dB (1700 steps) above the minimum level, which helps create a crisper attack. == Output level == The output level is computed once, at the beginning of the note, and affects both the overall amplitude of the operator and also the timing. In addition to the "output level" setting in the patch, output level is also affected by velocity and scaling. The output level in the patch is in the range 0..99, and this is scaled in units of 0.7526 dB (ie 32 steps). == Hardware == Careful measurement of the DX7 reveals quite rich detail on how envelopes are actually computed. Clearly the resolution for amplitude is .0235 dB, and there are 12 bits total (for a maximum dynamic range of 72.25 dB). At a qrate of 0, the amplitude decreases by one step every 4096 samples, in other words halves every 2<sup>20</sup> samples. Each increase of 4 doubles the clock rate. Careful examination reveals that fractional multiples of qrate (ie qrate is not a multiple of 4) are clocked out using a pattern: {{{ 01010101 01010111 01110111 01111111 }}} For attacks, instead of decrementing by 1, the factor is added (thus, no actual multiplication is needed). When the clock rate increases to the point where the increment would be needed more than once per sample clock (ie for qrate >= 48), the increment value is shifted left by (qrate / 4) - 11 instead, and the increment (masked by the bit pattern above) is applied every single sample clock. = References = * [http://people.ece.cornell.edu/land/courses/ece4760/Math/GCC644/FM_synth/Chowning.pdf The Synthesis of Complex Audio Spectra by Means of Frequency Modulation], John Chowning, J AES, Sept 1973.
MediaWiki
4
google-admin/music-synthesizer-for-android
wiki/Dx7Envelope.wiki
[ "Apache-2.0" ]
package gw.specContrib.enhancements enhancement Errant_Gosu_31_Enh : String { final static function hello() {} //## issuekeys: MSG_ILLEGAL_USE_OF_MODIFIER final static property get Age () : Integer { return null} //## issuekeys: MSG_ILLEGAL_USE_OF_MODIFIER }
Gosu
1
dmcreyno/gosu-lang
gosu-test/src/test/gosu/gw/specContrib/enhancements/Errant_Gosu_31_Enh.gsx
[ "Apache-2.0" ]
/* Copyright 2021 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. ==============================================================================*/ #ifndef TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_GATHER_H_ #define TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_GATHER_H_ #include <cstring> #include "tensorflow/lite/kernels/internal/common.h" namespace tflite { namespace reference_ops { template <typename T, typename CoordsT = int32> inline void Gather(const tflite::GatherParams& op_params, const RuntimeShape& input_shape, const T* input_data, const RuntimeShape& coords_shape, const CoordsT* coords_data, const RuntimeShape& output_shape, T* output_data) { ruy::profiler::ScopeLabel label("Gather"); int axis = op_params.axis; if (axis < 0) { axis += input_shape.DimensionsCount(); } TFLITE_DCHECK_GE(axis, 0); TFLITE_DCHECK_LT(axis, input_shape.DimensionsCount()); int batch_dims = op_params.batch_dims; if (batch_dims < 0) { batch_dims += coords_shape.DimensionsCount(); } TFLITE_DCHECK_GE(batch_dims, 0); TFLITE_DCHECK_LT(batch_dims, input_shape.DimensionsCount()); TFLITE_DCHECK_LE(batch_dims, coords_shape.DimensionsCount()); TFLITE_DCHECK_GE(axis, batch_dims); for (int i = 0; i < batch_dims; ++i) { TFLITE_DCHECK_EQ(input_shape.Dims(i), coords_shape.Dims(i)); } const int axis_size = input_shape.Dims(axis); int batch_size = 1; for (int i = 0; i < batch_dims; ++i) { batch_size *= input_shape.Dims(i); } int outer_size = 1; for (int i = batch_dims; i < axis; ++i) { outer_size *= input_shape.Dims(i); } int inner_size = 1; for (int i = axis + 1; i < input_shape.DimensionsCount(); ++i) { inner_size *= input_shape.Dims(i); } int coord_size = 1; for (int i = batch_dims; i < coords_shape.DimensionsCount(); ++i) { coord_size *= coords_shape.Dims(i); } for (int batch = 0; batch < batch_size; ++batch) { for (int outer = 0; outer < outer_size; ++outer) { for (int i = 0; i < coord_size; ++i) { TFLITE_DCHECK_GE(coords_data[i], 0); TFLITE_DCHECK_LT(coords_data[i], axis_size); // TODO(rsun): replace memcpy with a for loop std::memcpy( output_data + (((batch * outer_size) + outer) * coord_size + i) * inner_size, input_data + (((batch * outer_size) + outer) * axis_size + coords_data[batch * coord_size + i]) * inner_size, sizeof(T) * inner_size); } } } } } // namespace reference_ops } // namespace tflite #endif // TENSORFLOW_LITE_KERNELS_INTERNAL_REFERENCE_GATHER_H_
C
5
EricRemmerswaal/tensorflow
tensorflow/lite/kernels/internal/reference/gather.h
[ "Apache-2.0" ]
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { WebviewContentOptions, WebviewElement, WebviewExtensionDescription, WebviewOptions } from 'vs/workbench/contrib/webview/browser/webview'; import { WebviewService } from 'vs/workbench/contrib/webview/browser/webviewService'; import { ElectronIframeWebview } from 'vs/workbench/contrib/webview/electron-sandbox/iframeWebviewElement'; export class ElectronWebviewService extends WebviewService { override createWebviewElement( id: string, options: WebviewOptions, contentOptions: WebviewContentOptions, extension: WebviewExtensionDescription | undefined, ): WebviewElement { const webview = this._instantiationService.createInstance(ElectronIframeWebview, id, options, contentOptions, extension, this._webviewThemeDataProvider); this.registerNewWebview(webview); return webview; } }
TypeScript
3
jgstern/vscode
src/vs/workbench/contrib/webview/electron-sandbox/webviewService.ts
[ "MIT" ]
Work in progress. This is the setup for a dual-boot windows/NixOS. == Installation == Current requirements: * USB stick * Latest unstable minimal installation iso, I used [[https://nixos.org/releases/nixos/unstable/nixos-15.05pre61665.4c01e6d/nixos-minimal-15.05pre61665.4c01e6d-x86_64-linux.iso the 15.06-pre one]] * (maybe) USB keyboard and therefore a USB hub * WiFi SSID and password In the current installation iso, the kernel doesn't support the MS Type cover yet, so you need a USB keyboard for the initial install. Also note that at one point the keyboard wasn't working, and I couldn't see it in lsusb output. After a cold boot it worked fine. === Steps === Preparation: * Copy the ISO to the USB stick as explained [[https://nixos.org/nixos/manual/sec-installation.html#sec-booting-from-usb in the manual]]. Note that if you just dd the image onto the USB stick, it will boot without changes * With Windows Disk Management, shrink the windows disk so you have room for your installation. Use the free space to create a new partition without a filesystem or drive letter. * Check out [[https://github.com/cransom/surface-pro-3-nixos this expression and set of patches]] and add it to support newer versions of the Type Cover as well as enable the touch screen. * Reboot the Surface and furiously tap Esc until you end up in the BIOS screen. There, turn off secure boot (don't delete the keys), and change the boot order to USB + SSD. Save. * You should now be in the NixOS installer * Attach the USB stick and keyboard if the Type Cover doesn't work. The NixOS manual is at alt+F8 Installation: * Using gdisk, print your partition table to find the empty partition you created. Find the EFI partition number (1 for me) and your new partition number (5 for me). * Create your filesystem of choice on the partition, I picked btrfs: `mkfs.btrfs -L root /dev/disk/by-id/xxx-5` (xxx is the samsung ssd). Mount it on /mnt. ** With btrfs it's wise to put the nix store in its own subvolume: `btrfs subvol create /mnt/nix; btrfs subvol create /mnt/nix/store` * We'll be using Gummiboot, which needs to access the EFI partition. `mkdir /mnt/boot; mount /dev/disk/by-id/xxx-1` * Initialize your hardware configuration: `nixos-generate-config --root /mnt` * Create your wifi credentials: `wpa_passphrase SSID PASS > /etc/wpa_supplicant.conf; cp /etc/wpa_supplicant.conf /mnt/etc`. Check that ifconfig gets an ip address. * Edit /mnt/etc/configuration.nix, making sure that you have at least: <nowiki>networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. boot.kernelPackages = pkgs.linuxPackages_latest; # be able to use the type cover in the initrd boot.kernelModules = [ "hid-microsoft" ];</nowiki> * Install: `nixos-install` If this completes successfully, you should be able to reboot, remove the USB stick, and NixOS should come up. '''Note''': If using the hid-multitouch patch, you can boot windows as well as other profiles of NixOS without using a usb keyboard.
MediaWiki
3
pmeiyu/nixos-hardware
microsoft/surface-pro/3/README.wiki
[ "CC0-1.0" ]
--- layout: default route: blog breadcrumb: - home - blog --- {% include global/navbar.html id="Blog" %} {% assign title = page.title | markdownify %} {% assign introduction = page.introduction | markdownify %} {% assign m = page.date | date: "%B" %} {% assign d = page.date | date: "%-d" %} {% assign y = page.date | date: "%Y" %} {% capture banner_title %} <a href="{{ site.url }}/blog"> The <strong>official</strong> Bulma <strong>blog</strong> </a> {% endcapture %} {% capture banner_more %} {% include elements/rss-button.html %} {% endcapture %} {% include elements/banner.html title=banner_title more=banner_more %} <header class="bd-single-header"> <div class="container is-max-desktop"> <div class="bd-single-titles"> <h1 class="title"> {{ title }} </h1> <div class="subtitle"> {{ introduction }} </div> <div class="subtitle is-date"> {{ m }} {% case d %}{% when "1" or "21" or "31" %}{{ d }}st{% when "2" or "22" %}{{ d }}nd{% when "3" or "23" %}{{ d }}rd{% else %}{{ d }}th{% endcase %}, {{ y }} </div> </div> </div> </header> {% if page.image %} <div class="bd-single-image"> <div> <figure> <img src="https://source.unsplash.com/{{ page.image }}/800x450" srcset="https://source.unsplash.com/{{ page.image }}/800x450 800w, https://source.unsplash.com/{{ page.image }}/1600x900 1600w, https://source.unsplash.com/{{ page.image }}/3200x1800 3200w " sizes="(max-width: 799px) 100vw, 1600px" alt="{{ page.alt }}" width="1600" height="900" > </figure> </div> </div> {% else %} <div class="bd-single-hr"> <div class="container is-max-desktop"> <hr> </div> </div> {% endif %} <div class="bd-single-body"> <div class="container is-max-desktop"> <div class="bd-single-content content"> {{ content }} </div> </div> </div> <div class="bd-single-hr"> <div class="container is-max-desktop"> <hr> </div> </div> <nav class="bd-pagination"> <div class="container is-max-desktop"> <div class="bd-pagination-body"> {% if page.previous.url %} <a class="button bd-fat-button is-link is-light bd-pagination-previous" href="{{ page.previous.url }}"> ← {{ page.previous.name }} </a> {% endif %} {% if page.next.url %} <a class="button bd-fat-button is-link is-light bd-pagination-next" href="{{ page.next.url }}"> {{ page.next.name }} → </a> {% endif %} </div> </div> </nav> <div class="bd-single-carbon"> {% include elements/carbon.html %} </div>
HTML
3
kalpitzeta/bulma
docs/_layouts/post.html
[ "MIT" ]
--TEST-- Bug #54060 (Memory leak in openssl_encrypt) --EXTENSIONS-- openssl --FILE-- <?php $data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243 r7-89437 r892374 r894372 r894 7289r7 f frwerfh i iurf iuryw uyrfouiwy ruy 972439 8478942 yrhfjkdhls"; $pass = "r23498rui324hjbnkj"; openssl_encrypt($data, 'des3', $pass, 0, '1qazxsw2'); echo "Done"; ?> --EXPECT-- Done
PHP
2
NathanFreeman/php-src
ext/openssl/tests/bug54060.phpt
[ "PHP-3.01" ]
#!/usr/bin/pike // -*- mode: pike -*- // $Id: hash2.pike,v 1.1 2004-05-19 18:10:02 bfulgham Exp $ // http://www.bagley.org/~doug/shootout/ void main(int argc, array(string) argv) { int n = (int)argv[-1]; if (n < 1) n = 1; mapping(string:int) hash1 = ([]); mapping(string:int) hash2 = ([]); for (int i=0; i<10000; i++) hash1["foo_" + i] = i; for (int i=0; i<n; i++) { foreach (indices(hash1), string k) { hash2[k] += hash1[k]; } } write("%d %d %d %d\n", hash1["foo_1"], hash1["foo_9999"], hash2["foo_1"], hash2["foo_9999"]); }
Pike
3
kragen/shootout
bench/hash2/hash2.pike
[ "BSD-3-Clause" ]
# This class contains methods for generating callables to be used # in metaoperators. There are two reasons for having this in a # separate class: # # 1. It needs to know about all possible builtin operators. If it # would be part of Rakudo::Internals, it would be too early in # building the settings. Augmenting Rakudo::Internals at the # the end of building the settings would also have been an option, # but that would probably slow down settings building significantly. # And since the class name is really not that important, this seemed # like a good solution. # 2. Nice to have a separate file for similar stuff. Rakudo::Internals # has become a hodgepodge of stuff of late. class Rakudo::Metaops { my $mappers := nqp::hash( nqp::tostr_I(&infix:<+>.WHERE), # optimized version for &[+] -> \list { nqp::if( nqp::iseq_i(nqp::elems(list),2), (nqp::atpos(list,0) + nqp::atpos(list,1)), nqp::if( nqp::elems(list), nqp::stmts( (my $result := nqp::shift(list)), nqp::while( nqp::elems(list), ($result := $result + nqp::shift(list)) ), $result ), 0 ) ) }, nqp::tostr_I(&infix:<~>.WHERE), # optimized version for &[~] -> \list { nqp::if( nqp::iseq_i(nqp::elems(list),2), (nqp::atpos(list,0) ~ nqp::atpos(list,1)), nqp::if( nqp::elems(list), nqp::stmts( # could possibly be done smarter (my $result := nqp::shift(list)), nqp::while( nqp::elems(list), ($result := $result ~ nqp::shift(list)) ), $result ), '' ) ) }, nqp::tostr_I(&infix:<< => >>.WHERE), # optimized version for &[=>] -> \list { nqp::if( nqp::iseq_i(nqp::elems(list),2), Pair.new(nqp::atpos(list,0),nqp::atpos(list,1)), nqp::if( nqp::isgt_i(nqp::elems(list),2), nqp::stmts( (my $result := nqp::pop(list)), nqp::while( nqp::elems(list), ($result := Pair.new(nqp::pop(list),$result)) ), $result ), (die "Too few positionals passed; expected 2 arguments but got {nqp::elems(list)}") ) ) }, nqp::tostr_I(&infix:<,>.WHERE), # optimized version for &[,] -> \list { nqp::p6bindattrinvres(nqp::create(List),List,'$!reified',list) } ); method MapperForOp(&op) is raw { nqp::if( nqp::existskey($mappers,(my str $where = nqp::tostr_I(&op.WHERE))), nqp::atkey($mappers,$where), nqp::if( nqp::iseq_i(nqp::chars(my str $assoc = &op.prec("assoc")),0) || nqp::iseq_s($assoc,'left'), -> \list { # generic left-assoc op nqp::if( nqp::iseq_i(nqp::elems(list),2), op(nqp::atpos(list,0),nqp::atpos(list,1)), nqp::if( nqp::elems(list), nqp::stmts( (my $result := nqp::shift(list)), nqp::while( nqp::elems(list), ($result := op($result,nqp::shift(list))) ), $result ), op() ) ) }, nqp::if( nqp::iseq_s($assoc,"chain"), -> \list { # generic chain-assoc op nqp::if( nqp::iseq_i(nqp::elems(list),2), op(nqp::atpos(list,0),nqp::atpos(list,1)), nqp::if( nqp::elems(list), nqp::stmts( (my $state = True), (my $current := nqp::shift(list)), nqp::while( nqp::elems(list) && ($state := op( $current, (my $next := nqp::shift(list)) )), ($current := $next) ), $state ), op() ) ) }, nqp::if( nqp::iseq_s($assoc,'right'), -> \list { # generic right-assoc op nqp::if( nqp::iseq_i(nqp::elems(list),2), op(nqp::atpos(list,0),nqp::atpos(list,1)), nqp::if( nqp::elems(list), nqp::stmts( (my $result := nqp::pop(list)), nqp::while( nqp::elems(list), ($result := op(nqp::pop(list),$result)) ), $result ), op() ) ) }, nqp::if( nqp::iseq_s($assoc,'non'), -> \list { # generic non-assoc op nqp::if( nqp::iseq_i(nqp::elems(list),2), op(nqp::atpos(list,0),nqp::atpos(list,1)), (die "Incorrect number of elements for non-associative operator: expected 2, got {nqp::elems(list)}") ) }, nqp::if( nqp::iseq_s($assoc,"list"), -> \list { # generic list/listinfix op op( nqp::p6bindattrinvres( nqp::create(List),List,'$!reified',list) ) }, (die "Don't know how to process '$assoc' associativity") ) ) ) ) ) ) } } # vim: expandtab shiftwidth=4
Perl6
5
raydiak/rakudo
src/core.c/Rakudo/Metaops.pm6
[ "Artistic-2.0" ]
' ********** Copyright 2016-2019 Roku Corp. All Rights Reserved. ********** Function onKeyEvent(key as String, press as Boolean) as Boolean 'Maps back button to leave video if press print "Ext - key= ", key if key = "back" 'If the back button is pressed if m.Video <> invalid and m.Video.visible = true m.Video.visible = false 'Hide video m.Video.control = "stop" 'Stop video from playing return true else return false end if end if end if return false end Function
Brightscript
4
khangh/samples
certification/trickplay-samples-master/RAFSSAI-with-jpeg/components/ExtVideo.brs
[ "MIT" ]
<div class="d-flex"> {% include ui/breadcrumb.html class="breadcrumb-alternate" %} </div>
HTML
2
muhginanjar/tabler
src/pages/_includes/layout/header-actions/breadcrumb.html
[ "MIT" ]
(debug) (load "../lib/all.gf") (let _ (let super Env/this Counter (fun ((n 0)) (fun inc ((d 1)) (super/inc n d)) Env/this)) (dump (bench 10 (for 10000 (let c (Counter)) (c/inc) (c/inc -1)))) )
Grammatical Framework
3
daota2/fffff
v1/bench/counter.gf
[ "MIT" ]
<li> <article> <figure class="entry-image"> <a href="<$mt:EntryPermalink$>" class="image"><img src="<mt:If tag="blog_entry_ogp_image"><mt:blog_entry_ogp_imageAsset><$mt:AssetThumbnailURL width="480"$></mt:blog_entry_ogp_imageAsset><mt:Else><mt:EntryAssets type="image" sort_order="ascend" limit="1"><$mt:AssetThumbnailURL width="480"$><mt:Else><$mt:BlogRelativeURL$>images/noimage-448.png</mt:EntryAssets></mt:If>" alt="<$mt:EntryTitle$>"></a> <mt:EntryCategories type="primary"><a href="<$mt:CategoryArchiveLink$>" class="label category"><$mt:CategoryLabel escape="html"$></a></mt:EntryCategories> </figure> <div class="entry-detail clearfix"> <div class="entry-meta clearfix"> <div class="entry-author"> <figure> <a href="<mt:Archives type="Author"><$mt:ArchiveLink$></mt:Archives>"> <mt:If tag='AuthorUserpicURL' square="1"><img src="<$mt:AuthorUserpicURL$>" width="40px" alt="<$mt:EntryAuthorDisplayName escape="html"$>" title="<$mt:EntryAuthorDisplayName escape="html"$>"><mt:Else><img src="<mt:BlogUrl>images/default-userpic-90.jpg" width="40px" alt="<$mt:EntryAuthorDisplayName escape="html"$>" title="<$mt:EntryAuthorDisplayName escape="html"$>"></mt:If> </a> </figure> <p><a href="<mt:Archives type="Author"><$mt:ArchiveLink$>"></mt:Archives><$mt:EntryAuthorDisplayName escape="html"$></a></p> </div> <div class="entry-date"> <time datetime="<$mt:EntryDate format_name='iso8601'$>"><$mt:EntryDate format="%x"$></time> </div> </div> <div class="entry-title"> <a href="<$mt:EntryPermalink$>"><$mt:EntryTitle escape="html"$></a> </div> </div> </article> </li>
MTML
3
kanpapa/mt-theme-rimo
themes/rimo/templates/entry_listing.mtml
[ "MIT" ]
DEFAULT_MACHINE="default" docker-up() { if [ -z "$1" ] then docker-machine start "${DEFAULT_MACHINE}" eval $(docker-machine env "${DEFAULT_MACHINE}") else docker-machine start $1 eval $(docker-machine env $1) fi echo $DOCKER_HOST } docker-stop() { if [ -z "$1" ] then docker-machine stop "${DEFAULT_MACHINE}" else docker-machine stop $1 fi } docker-switch() { eval $(docker-machine env $1) echo $DOCKER_HOST } docker-vm() { if [ -z "$1" ] then docker-machine create -d virtualbox --virtualbox-disk-size 20000 --virtualbox-memory 4096 --virtualbox-cpu-count 2 "${DEFAULT_MACHINE}" else docker-machine create -d virtualbox --virtualbox-disk-size 20000 --virtualbox-memory 4096 --virtualbox-cpu-count 2 $1 fi }
Shell
4
chensanle/ohmyzsh
plugins/docker-machine/docker-machine.plugin.zsh
[ "MIT" ]
diff --git a/libsrtp.gyp b/libsrtp.gyp index 27e6476..6c92165 100644 --- libsrtp.gyp +++ libsrtp.gyp @@ -5,7 +5,7 @@ { 'variables': { 'use_system_libsrtp%': 0, - 'use_openssl': 1, + 'use_openssl': 0, }, 'target_defaults': { 'defines': [
Diff
2
namaljayathunga/nw.js
patch/patches/openssl.patch
[ "MIT" ]
module audiostreamerscrobbler.utils.UrlUtils function createFormattedUrl = |url, path| { let formattedUrl = StringBuilder() formattedUrl: append(createFormattedUrl(url)) if (path: startsWith("/")) { formattedUrl: append(path: substring(1)) } else { formattedUrl: append(path) } if (not path: endsWith("/")) { formattedUrl: append("/") } return formattedUrl: toString() } function createFormattedUrl = |url| { let formattedUrl = StringBuilder() if ((not url: startsWith("http://")) and (not url: startsWith("https://"))) { formattedUrl: append("http://") } formattedUrl: append(url) if (not url: endsWith("/")) { formattedUrl: append("/") } return formattedUrl: toString() }
Golo
4
vvdleun/audiostreamerscrobbler
src/main/golo/include/utils/UrlUtils.golo
[ "MIT" ]
i=:l+:r a=i---i b=i---i:i=b+(a-b) a=i---i b=i---i:i=b+(a+(:i-a)-b)a=i---i b=i---i:i=b+(a+(:i-a)-b)goto2 :done=1goto1 ^^^^ current best /--------//--------//--------//--------//--------//--------//--------/ i=:l+:r:i=i---i c=i---i:i=c+(:i-c)goto20 c=i---i:i=c+(:i-c)c=i---i:i=c+(:i-c)c=i---i:i=c+(:i-c):done=i<0goto20 /--------//--------//--------//--------//--------//--------//--------/ z=:l+:r a=z---z b=z---z c=z---z d=z---z e=z---z f=z---z g=z---z h=z---z i=z---z j=z---z k=z---z l=z---z m=z---z n=z---z o=z---z p=z---z q=z---z r=z---z s=z---z t=z---z a-=b a-=c a-=d a-=e a-=f a-=g a-=h a-=i a-=j a-=k a-=l a-=m a-=n a-=o a-=p a-=q a-=r a-=s a-=t b-=c b-=d b-=e b-=f b-=g b-=h b-=i b-=j b-=k b-=l b-=m b-=n b-=o b-=p b-=q b-=r b-=s b-=t c-=d c-=e c-=f c-=g c-=h c-=i c-=j c-=k c-=l c-=m c-=n c-=o c-=p c-=q c-=r c-=s c-=t d-=e d-=f d-=g d-=h d-=i d-=j d-=k d-=l d-=m d-=n d-=o d-=p d-=q d-=r d-=s d-=t e-=f e-=g e-=h e-=i e-=j e-=k e-=l e-=m e-=n e-=o e-=p e-=q e-=r e-=s e-=t f-=g f-=h f-=i f-=j f-=k f-=l f-=m f-=n f-=o f-=p f-=q f-=r f-=s f-=t g-=h g-=i g-=j g-=k g-=l g-=m g-=n g-=o g-=p g-=q g-=r g-=s g-=t h-=i h-=j h-=k h-=l h-=m h-=n h-=o h-=p h-=q h-=r h-=s h-=t i-=j i-=k i-=l i-=m i-=n i-=o i-=p i-=q i-=r i-=s i-=t j-=k j-=l j-=m j-=n j-=o j-=p j-=q j-=r j-=s j-=t k-=l k-=m k-=n k-=o k-=p k-=q k-=r k-=s k-=t l-=m l-=n l-=o l-=p l-=q l-=r l-=s l-=t m-=n m-=o m-=p m-=q m-=r m-=s m-=t n-=o n-=p n-=q n-=r n-=s n-=t o-=p o-=q o-=r o-=s o-=t p-=q p-=r p-=s p-=t q-=r q-=s q-=t r-=s r-=t s-=t :i=t+s+r+q+p+o+n+m+l+k+j+i+h+g+f+e+d+c+b+a :done=1 goto1 /--------//--------//--------//--------//--------//--------//--------/ :i="" c=:r---:r:i=c+(:i-c)c=:r---:r:i=c+(:i-c)c=:r---:r:i=c+(:i-c) goto2 c=:l---:l:i=c+(:i-c)c=:l---:l:i=c+(:i-c):done=:l<0 goto3-2*(:l<0) /--------//--------//--------//--------//--------//--------//--------/ i=:l+:r:i="" c=i---i:i=c+(:i-c)c=i---i:i=c+(:i-c):done=i<0goto2-(i<0) /--------//--------//--------//--------//--------//--------//--------/ i=:l+:r:i="" x=i---i y=i---i z=i---i :i-=x x-=y x-=z y-=z :i-=y :i-=z :i=z+y+x+:i goto2 :done=1goto1 /--------//--------//--------//--------//--------//--------//--------/ i=:l+:r:i="" c=i---i:i=c+(:i-c)c=i---i:i=c+(:i-c)c=i---i:i=c+(:i-c) goto2 :done=1goto1
LOLCODE
1
Dude112113/Yolol
YololEmulator/Scripts/union.lol
[ "MIT" ]
## # This module requires Metasploit: https://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Exploit::Remote Rank = ExcellentRanking prepend Msf::Exploit::Remote::AutoCheck include Msf::Exploit::Remote::HttpClient include Msf::Exploit::CmdStager include Msf::Exploit::FileDropper def initialize(info = {}) super( update_info( info, 'Name' => 'SaltStack Salt API Unauthenticated RCE through wheel_async client', 'Description' => %q{ This module leverages an authentication bypass and directory traversal vulnerabilities in Saltstack Salt's REST API to execute commands remotely on the `master` as the root user. Every 60 seconds, `salt-master` service performs a maintenance process check that reloads and executes all the `grains` on the `master`, including custom grain modules in the Extension Module directory. So, this module simply creates a Python script at this location and waits for it to be executed. The time interval is set to 60 seconds by default but can be changed in the `master` configuration file with the `loop_interval` option. Note that, if an administrator executes commands locally on the `master`, the maintenance process check will also be performed. It has been fixed in the following installation packages: 3002.5, 3001.6 and 3000.8. Also, a patch is available for the following versions: 3002.2, 3001.4, 3000.6, 2019.2.8, 2019.2.5, 2018.3.5, 2017.7.8, 2016.11.10, 2016.11.6, 2016.11.5, 2016.11.3, 2016.3.8, 2016.3.6, 2016.3.4, 2015.8.13 and 2015.8.10. This module has been tested successfully against versions 3001.4, 3002 and 3002.2 on Ubuntu 18.04. }, 'Author' => [ 'Alex Seymour', # Original PoC 'Christophe De La Fuente' # MSF Module ], 'References' => [ ['CVE', '2021-25281'], # Auth bypass ['CVE', '2021-25282'], # Directory traversal ['URL', 'https://saltproject.io/security_announcements/active-saltstack-cve-release-2021-feb-25/'], ['URL', 'https://github.com/Immersive-Labs-Sec/CVE-2021-25281/blob/main/cve-2021-25281.py'] ], 'DisclosureDate' => '2021-02-25', 'License' => MSF_LICENSE, 'Platform' => ['unix', 'linux'], 'Arch' => [ARCH_CMD, ARCH_X86, ARCH_X64], 'Privileged' => true, 'Targets' => [ [ 'Unix Command', { 'Platform' => 'unix', 'Arch' => ARCH_CMD, 'Type' => :unix_cmd, 'DefaultOptions' => { 'PAYLOAD' => 'cmd/unix/reverse' } } ], [ 'Linux Dropper', { 'Platform' => 'linux', 'Arch' => [ARCH_X86, ARCH_X64], 'Type' => :linux_dropper, 'DefaultOptions' => { 'CMDSTAGER::FLAVOR' => :bourne, 'PAYLOAD' => 'linux/x64/meterpreter/reverse_tcp' } } ] ], 'DefaultTarget' => 1, 'DefaultOptions' => { 'WfsDelay' => 90, # The master's maintenance process check cycle is set to 60 sec. by default 'SSL' => true # Salt API uses HTTPS by default }, 'Notes' => { 'Stability' => [CRASH_SAFE], 'Reliability' => [REPEATABLE_SESSION], 'SideEffects' => [IOC_IN_LOGS] # Payload visible in log if set to DEBUG or TRACE level } ) ) register_options([ Opt::RPORT(8000), OptString.new('TARGETURI', [true, 'Base path', '/']), OptString.new( 'EXTMODSDIR', [ true, 'The Extension Module Directory ("extmods")', '/var/cache/salt/master/extmods' ] ) ]) end def check fun = 'config.values' res = send_request(fun: fun) unless res return CheckCode::Unknown('Target did not respond to check.') end # Server: CherryPy/8.9.1 unless res.headers['Server']&.match(%r{^CherryPy/[\d.]+$}) return CheckCode::Unknown('Target does not appear to be running Salt API.') end if res.code == 200 && res.get_json_document['return'] res_json = res.get_json_document['return'].first if res_json&.key?('tag') && res_json&.key?('jid') return CheckCode::Detected('Salt API responded as expected.') end end CheckCode::Safe('Unexpected Salt API response') end def exploit print_status("Executing #{target.name} for #{datastore['PAYLOAD']}") case target['Type'] when :unix_cmd execute_command(payload.encoded) when :linux_dropper execute_cmdstager(background: true) end end def execute_command(cmd, _opts = {}) vprint_status("Executing command: #{cmd}") @rand_basename = rand_text_alphanumeric(4..12) path = normalize_uri(datastore['EXTMODSDIR'], 'grains', "#{@rand_basename}.py") register_file_for_cleanup(path) cmd.gsub!("'", "\\\\'") data = <<~PYTHON import subprocess def #{rand_text_alpha(6..8)}(): subprocess.Popen('#{cmd}', shell=True) return {} PYTHON send_request(data: data, path: path) vprint_status( "Waiting up to #{wfs_delay} seconds for the Salt maintenance process check "\ 'to trigger the payload (WfsDelay option).' ) end def send_request(fun: 'pillar_roots.write', data: '', path: '') # https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.html#post--run json = { 'eauth' => 'auto', 'client' => 'wheel_async', 'fun' => fun } json['data'] = data unless data.empty? json['path'] = "../../../../../..#{path}" unless path.empty? send_request_cgi( 'method' => 'POST', 'uri' => normalize_uri(target_uri.path, 'run'), 'ctype' => 'application/json', 'data' => json.to_json ) end def path_exists?(session, path, is_dir: false) if session.type == 'meterpreter' path_exists = begin session.fs.file.stat(path) rescue StandardError nil end if is_dir return !!(path_exists && path_exists.directory?) else return !!(path_exists && path_exists.file?) end else path_exists = session.shell_command_token( "test #{is_dir ? '-d' : '-f'} \"#{path}\" && echo true" ) return !!(path_exists && path_exists =~ /true/) end end def on_new_session(session) payload_instance.stop_handler super # The Python script is being cached in the "__pycache__" directory as a # compiled bytecode file (.pyc). This will need to be deleted to avoid # being executed over and over. path = normalize_uri(datastore['EXTMODSDIR'], 'grains', '__pycache__') if session.type == 'meterpreter' session.core.use('stdapi') unless session.ext.aliases.include?('stdapi') return unless path_exists?(session, path, is_dir: true) files = begin session.fs.dir.entries(path, "#{@rand_basename}*.pyc") rescue StandardError [] end files.each do |file| file_path = normalize_uri(path, file) next unless path_exists?(session, file_path) session.fs.file.rm(file_path) if path_exists?(session, file_path) print_warning("Unable to delete #{file_path}") else print_good("Deleted #{file_path}") end end else return unless path_exists?(session, path, is_dir: true) files = session.shell_command_token( "find \"#{path}\" -maxdepth 1 -type f -name \"#{@rand_basename}*.pyc\"" ) files.each_line do |file| file.chomp! next unless path_exists?(session, file) session.shell_command_token("rm -f \"#{file}\" >/dev/null") if path_exists?(session, file) print_warning("Unable to delete #{file}") else print_good("Deleted #{file}") end end end end end
Ruby
4
moddingg33k/metasploit-framework
modules/exploits/linux/http/saltstack_salt_wheel_async_rce.rb
[ "BSD-2-Clause", "BSD-3-Clause" ]
\ Test INCLUDE errors. : T.LOAD.PAIRS 10 0 DO i . THEN ;
Forth
1
610t/retrobsd
src/cmd/pforth/fth/t_load_pairs.fth
[ "BSD-3-Clause" ]
/// <reference path='fourslash.ts' /> // @allowjs: true // @checkJs: true // @Filename: /a.js ////class Foo { //// constructor(name) { //// this.[|#name|] = name; //// } ////} verify.codeFixAvailable([ { description: "Declare a private field named '#name'." }, { description: "Ignore this error message" }, { description: "Disable checking for this file" }, { description: "Infer parameter types from usage" }, ]); verify.codeFix({ index: 0, description: [ts.Diagnostics.Declare_a_private_field_named_0.message, '#name'], newFileContent: `class Foo { #name; constructor(name) { this.#name = name; } }` });
TypeScript
4
monciego/TypeScript
tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts
[ "Apache-2.0" ]
%pre.build-log %code.bash.js-build-output .build-loader-animation.js-build-refresh .dot .dot .dot
Haml
0
nowkoai/test
app/views/shared/builds/_build_output.html.haml
[ "MIT" ]
// run-pass // aux-build:xcrate.rs extern crate xcrate; fn main() { xcrate::return_internal_fn()(); }
Rust
3
Eric-Arellano/rust
src/test/ui/impl-trait/xcrate_simple.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
module.exports = function (p: string) {}
JSX
1
oonsamyi/flow
tests/extensions/bar.jsx
[ "MIT" ]
a { value: f\6e() }
CSS
0
kitsonk/swc
css/parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/input.css
[ "Apache-2.0", "MIT" ]
%h3 500 Internal Server Error %hr %p Sorry.
Scaml
0
tototoshi/skinny-framework
yeoman-generator-skinny/app/templates/src/main/webapp/WEB-INF/views/error/500.html.scaml
[ "MIT" ]
<div class="ten-timeline"> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">November 5, 2009</p> <div class="ten-timeline-item-content"> <h3>First post! Everything started with the post “Welcome to The&nbsp;Changelog”</h3> <p><a href="/posts/welcome-to-the-changelog">Read Article</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">January 2010</p> <div class="ten-timeline-item-content"> <h3>Recorded episode #10 with Chris Wanstrath, co-founder and former CEO of&nbsp;GitHub</h3> <p> <a role="button" data-play="/podcast/10/play" href="https://cdn.changelog.com/uploads/podcast/10/the-changelog-10.mp3" title="Play Episode" >Play Episode</a> </p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">January 2010</p> <div class="ten-timeline-item-content"> <h3>Partnered with GitHub to syndicate The Changelog podcast to GitHub&nbsp;Explore</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">October 2010</p> <div class="ten-timeline-item-content"> <h3>Launched Founders&nbsp;Talk</h3> <p><a href="/founderstalk">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">August 2012</p> <div class="ten-timeline-item-content"> <h3>Wynn Netherland resigned and started at&nbsp;GitHub</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">February 2013</p> <div class="ten-timeline-item-content"> <h3>Relaunched on WordPress with a new site and&nbsp;design</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">April 2013</p> <div class="ten-timeline-item-content"> <h3>Returned from our&nbsp;pod-fade</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">May 2013</p> <div class="ten-timeline-item-content"> <h3>Joined the 5by5 podcast&nbsp;network</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">August 2013</p> <div class="ten-timeline-item-content"> <h3>Jerod joined the editorial&nbsp;team</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">October 2013</p> <div class="ten-timeline-item-content"> <h3>Jerod joined as an official co-host of The&nbsp;Changelog</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">February 2015</p> <div class="ten-timeline-item-content"> <h3>Adam resigned from Pure Charity to go full-time on Changelog&nbsp;Media</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">May 2016</p> <div class="ten-timeline-item-content"> <h3>Launched Go&nbsp;Time</h3> <p><a href="/gotime">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">September 2016</p> <div class="ten-timeline-item-content"> <h3>Partnered with&nbsp;Fastly</h3> <p><a href="https://www.fastly.com/?utm_source=changelog" target="_blank" rel="noopener noreferrer">Thanks, Fastly!</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">November 2015</p> <div class="ten-timeline-item-content"> <h3>Branding workshop with&nbsp;Elevate</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">October 2016</p> <div class="ten-timeline-item-content"> <h3>Launched our new branding and a new site on Phoenix and&nbsp;Elixir</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">January 2017</p> <div class="ten-timeline-item-content"> <h3>Worked with Breakmaster Cylinder on a new theme for The&nbsp;Changelog</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">March 2017</p> <div class="ten-timeline-item-content"> <h3>Launched JS&nbsp;Party</h3> <p><a href="/jsparty">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">June 2017</p> <div class="ten-timeline-item-content"> <h3>Partnered with&nbsp;Linode</h3> <p><a href="https://www.linode.com/changelog" target="_blank" rel="noopener noreferrer">Thanks, Linode!</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">December 2017</p> <div class="ten-timeline-item-content"> <h3>Partnered with&nbsp;Rollbar</h3> <p><a href="https://rollbar.com/changelog" target="_blank" rel="noopener noreferrer">Thanks, Rollbar!</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">January 2018</p> <div class="ten-timeline-item-content"> <h3>Launched new site design featuring the news feed on the&nbsp;homepage</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">April 2018</p> <div class="ten-timeline-item-content"> <h3>Relaunched JS&nbsp;Party</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">July 2018</p> <div class="ten-timeline-item-content"> <h3>Launched Practical&nbsp;AI</h3> <p><a href="/practicalai">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">July 2018</p> <div class="ten-timeline-item-content"> <h3>Launched&nbsp;Backstage</h3> <p><a href="/backstage">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">April 2019</p> <div class="ten-timeline-item-content"> <h3>Relaunched Go&nbsp;Time</h3> <p><a href="/gotime">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">August 2019</p> <div class="ten-timeline-item-content"> <h3>Launched Brain&nbsp;Science</h3> <p><a href="/brainscience">View Podcast</a></p> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">September 2019</p> <div class="ten-timeline-item-content"> <h3>Jerod joined full-time on Changelog&nbsp;Media</h3> </div> </div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">November 2019</p> <div class="ten-timeline-item-content"> <h3>Celebrating 10 years of&nbsp;Changelog<br />🎉</h3> </div> </div> <div class="ten-timeline-item ten-timeline-item--blank"></div> <div class="ten-timeline-item ten-timeline-item--blank"></div> <div class="ten-timeline-item"> <p class="ten-timeline-item-date">2029</p> <div class="ten-timeline-item-content"> <h3>Who knows?</h3> </div> </div> <div class="ten-timeline-line"></div> </div>
HTML+EEX
3
gustavoarmoa/changelog.com
lib/changelog_web/templates/page/_ten/ten_timeline.html.eex
[ "MIT" ]
# this is the process of uploading the updated models to s3. As I can't upload them directly to the correct orgs, this script shows how this is done # Copyright 2020 The HuggingFace Team. 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. 1. upload updated models to my account transformers-cli upload -y wmt19-ru-en transformers-cli upload -y wmt19-en-ru transformers-cli upload -y wmt19-de-en transformers-cli upload -y wmt19-en-de transformers-cli upload -y wmt19-de-en-6-6-base transformers-cli upload -y wmt19-de-en-6-6-big transformers-cli upload -y wmt16-en-de-dist-12-1 transformers-cli upload -y wmt16-en-de-dist-6-1 transformers-cli upload -y wmt16-en-de-12-1 2. ask someone to move them to: * to facebook: "wmt19-ru-en", "wmt19-en-ru", "wmt19-en-de", "wmt19-de-en" * to allenai: "wmt16-en-de-dist-12-1", "wmt16-en-de-dist-6-1", "wmt16-en-de-12-1", "wmt19-de-en-6-6-base", "wmt19-de-en-6-6-big" export b="s3://models.huggingface.co/bert" stas_to_fb () { src=$1 shift aws s3 sync $b/stas/$src $b/facebook/$src $@ } stas_to_allenai () { src=$1 shift aws s3 sync $b/stas/$src $b/allenai/$src $@ } stas_to_fb wmt19-en-ru stas_to_fb wmt19-ru-en stas_to_fb wmt19-en-de stas_to_fb wmt19-de-en stas_to_allenai wmt16-en-de-dist-12-1 stas_to_allenai wmt16-en-de-dist-6-1 stas_to_allenai wmt16-en-de-6-1 stas_to_allenai wmt16-en-de-12-1 stas_to_allenai wmt19-de-en-6-6-base stas_to_allenai wmt19-de-en-6-6-big 3. and then remove all these model files from my account transformers-cli s3 rm wmt16-en-de-12-1/config.json transformers-cli s3 rm wmt16-en-de-12-1/merges.txt transformers-cli s3 rm wmt16-en-de-12-1/pytorch_model.bin transformers-cli s3 rm wmt16-en-de-12-1/tokenizer_config.json transformers-cli s3 rm wmt16-en-de-12-1/vocab-src.json transformers-cli s3 rm wmt16-en-de-12-1/vocab-tgt.json transformers-cli s3 rm wmt16-en-de-dist-12-1/config.json transformers-cli s3 rm wmt16-en-de-dist-12-1/merges.txt transformers-cli s3 rm wmt16-en-de-dist-12-1/pytorch_model.bin transformers-cli s3 rm wmt16-en-de-dist-12-1/tokenizer_config.json transformers-cli s3 rm wmt16-en-de-dist-12-1/vocab-src.json transformers-cli s3 rm wmt16-en-de-dist-12-1/vocab-tgt.json transformers-cli s3 rm wmt16-en-de-dist-6-1/config.json transformers-cli s3 rm wmt16-en-de-dist-6-1/merges.txt transformers-cli s3 rm wmt16-en-de-dist-6-1/pytorch_model.bin transformers-cli s3 rm wmt16-en-de-dist-6-1/tokenizer_config.json transformers-cli s3 rm wmt16-en-de-dist-6-1/vocab-src.json transformers-cli s3 rm wmt16-en-de-dist-6-1/vocab-tgt.json transformers-cli s3 rm wmt19-de-en-6-6-base/config.json transformers-cli s3 rm wmt19-de-en-6-6-base/merges.txt transformers-cli s3 rm wmt19-de-en-6-6-base/pytorch_model.bin transformers-cli s3 rm wmt19-de-en-6-6-base/tokenizer_config.json transformers-cli s3 rm wmt19-de-en-6-6-base/vocab-src.json transformers-cli s3 rm wmt19-de-en-6-6-base/vocab-tgt.json transformers-cli s3 rm wmt19-de-en-6-6-big/config.json transformers-cli s3 rm wmt19-de-en-6-6-big/merges.txt transformers-cli s3 rm wmt19-de-en-6-6-big/pytorch_model.bin transformers-cli s3 rm wmt19-de-en-6-6-big/tokenizer_config.json transformers-cli s3 rm wmt19-de-en-6-6-big/vocab-src.json transformers-cli s3 rm wmt19-de-en-6-6-big/vocab-tgt.json transformers-cli s3 rm wmt19-de-en/config.json transformers-cli s3 rm wmt19-de-en/merges.txt transformers-cli s3 rm wmt19-de-en/pytorch_model.bin transformers-cli s3 rm wmt19-de-en/tokenizer_config.json transformers-cli s3 rm wmt19-de-en/vocab-src.json transformers-cli s3 rm wmt19-de-en/vocab-tgt.json transformers-cli s3 rm wmt19-en-de/config.json transformers-cli s3 rm wmt19-en-de/merges.txt transformers-cli s3 rm wmt19-en-de/pytorch_model.bin transformers-cli s3 rm wmt19-en-de/tokenizer_config.json transformers-cli s3 rm wmt19-en-de/vocab-src.json transformers-cli s3 rm wmt19-en-de/vocab-tgt.json transformers-cli s3 rm wmt19-en-ru/config.json transformers-cli s3 rm wmt19-en-ru/merges.txt transformers-cli s3 rm wmt19-en-ru/pytorch_model.bin transformers-cli s3 rm wmt19-en-ru/tokenizer_config.json transformers-cli s3 rm wmt19-en-ru/vocab-src.json transformers-cli s3 rm wmt19-en-ru/vocab-tgt.json transformers-cli s3 rm wmt19-ru-en/config.json transformers-cli s3 rm wmt19-ru-en/merges.txt transformers-cli s3 rm wmt19-ru-en/pytorch_model.bin transformers-cli s3 rm wmt19-ru-en/tokenizer_config.json transformers-cli s3 rm wmt19-ru-en/vocab-src.json transformers-cli s3 rm wmt19-ru-en/vocab-tgt.json
Shell
3
liminghao1630/transformers
scripts/fsmt/s3-move.sh
[ "Apache-2.0" ]
// Generated from <https://html.spec.whatwg.org/entities.json> by entities.rb #include "char_ref.h" %%{ machine named_char_ref; named_char_ref := |* 'AElig' . ';'? => {output[0]=0xc6; fbreak;}; 'AMP' . ';'? => {output[0]=0x26; fbreak;}; 'Aacute' . ';'? => {output[0]=0xc1; fbreak;}; 'Abreve;' => {output[0]=0x102; fbreak;}; 'Acirc' . ';'? => {output[0]=0xc2; fbreak;}; 'Acy;' => {output[0]=0x410; fbreak;}; 'Afr;' => {output[0]=0x1d504; fbreak;}; 'Agrave' . ';'? => {output[0]=0xc0; fbreak;}; 'Alpha;' => {output[0]=0x391; fbreak;}; 'Amacr;' => {output[0]=0x100; fbreak;}; 'And;' => {output[0]=0x2a53; fbreak;}; 'Aogon;' => {output[0]=0x104; fbreak;}; 'Aopf;' => {output[0]=0x1d538; fbreak;}; 'ApplyFunction;' => {output[0]=0x2061; fbreak;}; 'Aring' . ';'? => {output[0]=0xc5; fbreak;}; 'Ascr;' => {output[0]=0x1d49c; fbreak;}; 'Assign;' => {output[0]=0x2254; fbreak;}; 'Atilde' . ';'? => {output[0]=0xc3; fbreak;}; 'Auml' . ';'? => {output[0]=0xc4; fbreak;}; 'Backslash;' => {output[0]=0x2216; fbreak;}; 'Barv;' => {output[0]=0x2ae7; fbreak;}; 'Barwed;' => {output[0]=0x2306; fbreak;}; 'Bcy;' => {output[0]=0x411; fbreak;}; 'Because;' => {output[0]=0x2235; fbreak;}; 'Bernoullis;' => {output[0]=0x212c; fbreak;}; 'Beta;' => {output[0]=0x392; fbreak;}; 'Bfr;' => {output[0]=0x1d505; fbreak;}; 'Bopf;' => {output[0]=0x1d539; fbreak;}; 'Breve;' => {output[0]=0x2d8; fbreak;}; 'Bscr;' => {output[0]=0x212c; fbreak;}; 'Bumpeq;' => {output[0]=0x224e; fbreak;}; 'CHcy;' => {output[0]=0x427; fbreak;}; 'COPY' . ';'? => {output[0]=0xa9; fbreak;}; 'Cacute;' => {output[0]=0x106; fbreak;}; 'Cap;' => {output[0]=0x22d2; fbreak;}; 'CapitalDifferentialD;' => {output[0]=0x2145; fbreak;}; 'Cayleys;' => {output[0]=0x212d; fbreak;}; 'Ccaron;' => {output[0]=0x10c; fbreak;}; 'Ccedil' . ';'? => {output[0]=0xc7; fbreak;}; 'Ccirc;' => {output[0]=0x108; fbreak;}; 'Cconint;' => {output[0]=0x2230; fbreak;}; 'Cdot;' => {output[0]=0x10a; fbreak;}; 'Cedilla;' => {output[0]=0xb8; fbreak;}; 'CenterDot;' => {output[0]=0xb7; fbreak;}; 'Cfr;' => {output[0]=0x212d; fbreak;}; 'Chi;' => {output[0]=0x3a7; fbreak;}; 'CircleDot;' => {output[0]=0x2299; fbreak;}; 'CircleMinus;' => {output[0]=0x2296; fbreak;}; 'CirclePlus;' => {output[0]=0x2295; fbreak;}; 'CircleTimes;' => {output[0]=0x2297; fbreak;}; 'ClockwiseContourIntegral;' => {output[0]=0x2232; fbreak;}; 'CloseCurlyDoubleQuote;' => {output[0]=0x201d; fbreak;}; 'CloseCurlyQuote;' => {output[0]=0x2019; fbreak;}; 'Colon;' => {output[0]=0x2237; fbreak;}; 'Colone;' => {output[0]=0x2a74; fbreak;}; 'Congruent;' => {output[0]=0x2261; fbreak;}; 'Conint;' => {output[0]=0x222f; fbreak;}; 'ContourIntegral;' => {output[0]=0x222e; fbreak;}; 'Copf;' => {output[0]=0x2102; fbreak;}; 'Coproduct;' => {output[0]=0x2210; fbreak;}; 'CounterClockwiseContourIntegral;' => {output[0]=0x2233; fbreak;}; 'Cross;' => {output[0]=0x2a2f; fbreak;}; 'Cscr;' => {output[0]=0x1d49e; fbreak;}; 'Cup;' => {output[0]=0x22d3; fbreak;}; 'CupCap;' => {output[0]=0x224d; fbreak;}; 'DD;' => {output[0]=0x2145; fbreak;}; 'DDotrahd;' => {output[0]=0x2911; fbreak;}; 'DJcy;' => {output[0]=0x402; fbreak;}; 'DScy;' => {output[0]=0x405; fbreak;}; 'DZcy;' => {output[0]=0x40f; fbreak;}; 'Dagger;' => {output[0]=0x2021; fbreak;}; 'Darr;' => {output[0]=0x21a1; fbreak;}; 'Dashv;' => {output[0]=0x2ae4; fbreak;}; 'Dcaron;' => {output[0]=0x10e; fbreak;}; 'Dcy;' => {output[0]=0x414; fbreak;}; 'Del;' => {output[0]=0x2207; fbreak;}; 'Delta;' => {output[0]=0x394; fbreak;}; 'Dfr;' => {output[0]=0x1d507; fbreak;}; 'DiacriticalAcute;' => {output[0]=0xb4; fbreak;}; 'DiacriticalDot;' => {output[0]=0x2d9; fbreak;}; 'DiacriticalDoubleAcute;' => {output[0]=0x2dd; fbreak;}; 'DiacriticalGrave;' => {output[0]=0x60; fbreak;}; 'DiacriticalTilde;' => {output[0]=0x2dc; fbreak;}; 'Diamond;' => {output[0]=0x22c4; fbreak;}; 'DifferentialD;' => {output[0]=0x2146; fbreak;}; 'Dopf;' => {output[0]=0x1d53b; fbreak;}; 'Dot;' => {output[0]=0xa8; fbreak;}; 'DotDot;' => {output[0]=0x20dc; fbreak;}; 'DotEqual;' => {output[0]=0x2250; fbreak;}; 'DoubleContourIntegral;' => {output[0]=0x222f; fbreak;}; 'DoubleDot;' => {output[0]=0xa8; fbreak;}; 'DoubleDownArrow;' => {output[0]=0x21d3; fbreak;}; 'DoubleLeftArrow;' => {output[0]=0x21d0; fbreak;}; 'DoubleLeftRightArrow;' => {output[0]=0x21d4; fbreak;}; 'DoubleLeftTee;' => {output[0]=0x2ae4; fbreak;}; 'DoubleLongLeftArrow;' => {output[0]=0x27f8; fbreak;}; 'DoubleLongLeftRightArrow;' => {output[0]=0x27fa; fbreak;}; 'DoubleLongRightArrow;' => {output[0]=0x27f9; fbreak;}; 'DoubleRightArrow;' => {output[0]=0x21d2; fbreak;}; 'DoubleRightTee;' => {output[0]=0x22a8; fbreak;}; 'DoubleUpArrow;' => {output[0]=0x21d1; fbreak;}; 'DoubleUpDownArrow;' => {output[0]=0x21d5; fbreak;}; 'DoubleVerticalBar;' => {output[0]=0x2225; fbreak;}; 'DownArrow;' => {output[0]=0x2193; fbreak;}; 'DownArrowBar;' => {output[0]=0x2913; fbreak;}; 'DownArrowUpArrow;' => {output[0]=0x21f5; fbreak;}; 'DownBreve;' => {output[0]=0x311; fbreak;}; 'DownLeftRightVector;' => {output[0]=0x2950; fbreak;}; 'DownLeftTeeVector;' => {output[0]=0x295e; fbreak;}; 'DownLeftVector;' => {output[0]=0x21bd; fbreak;}; 'DownLeftVectorBar;' => {output[0]=0x2956; fbreak;}; 'DownRightTeeVector;' => {output[0]=0x295f; fbreak;}; 'DownRightVector;' => {output[0]=0x21c1; fbreak;}; 'DownRightVectorBar;' => {output[0]=0x2957; fbreak;}; 'DownTee;' => {output[0]=0x22a4; fbreak;}; 'DownTeeArrow;' => {output[0]=0x21a7; fbreak;}; 'Downarrow;' => {output[0]=0x21d3; fbreak;}; 'Dscr;' => {output[0]=0x1d49f; fbreak;}; 'Dstrok;' => {output[0]=0x110; fbreak;}; 'ENG;' => {output[0]=0x14a; fbreak;}; 'ETH' . ';'? => {output[0]=0xd0; fbreak;}; 'Eacute' . ';'? => {output[0]=0xc9; fbreak;}; 'Ecaron;' => {output[0]=0x11a; fbreak;}; 'Ecirc' . ';'? => {output[0]=0xca; fbreak;}; 'Ecy;' => {output[0]=0x42d; fbreak;}; 'Edot;' => {output[0]=0x116; fbreak;}; 'Efr;' => {output[0]=0x1d508; fbreak;}; 'Egrave' . ';'? => {output[0]=0xc8; fbreak;}; 'Element;' => {output[0]=0x2208; fbreak;}; 'Emacr;' => {output[0]=0x112; fbreak;}; 'EmptySmallSquare;' => {output[0]=0x25fb; fbreak;}; 'EmptyVerySmallSquare;' => {output[0]=0x25ab; fbreak;}; 'Eogon;' => {output[0]=0x118; fbreak;}; 'Eopf;' => {output[0]=0x1d53c; fbreak;}; 'Epsilon;' => {output[0]=0x395; fbreak;}; 'Equal;' => {output[0]=0x2a75; fbreak;}; 'EqualTilde;' => {output[0]=0x2242; fbreak;}; 'Equilibrium;' => {output[0]=0x21cc; fbreak;}; 'Escr;' => {output[0]=0x2130; fbreak;}; 'Esim;' => {output[0]=0x2a73; fbreak;}; 'Eta;' => {output[0]=0x397; fbreak;}; 'Euml' . ';'? => {output[0]=0xcb; fbreak;}; 'Exists;' => {output[0]=0x2203; fbreak;}; 'ExponentialE;' => {output[0]=0x2147; fbreak;}; 'Fcy;' => {output[0]=0x424; fbreak;}; 'Ffr;' => {output[0]=0x1d509; fbreak;}; 'FilledSmallSquare;' => {output[0]=0x25fc; fbreak;}; 'FilledVerySmallSquare;' => {output[0]=0x25aa; fbreak;}; 'Fopf;' => {output[0]=0x1d53d; fbreak;}; 'ForAll;' => {output[0]=0x2200; fbreak;}; 'Fouriertrf;' => {output[0]=0x2131; fbreak;}; 'Fscr;' => {output[0]=0x2131; fbreak;}; 'GJcy;' => {output[0]=0x403; fbreak;}; 'GT' . ';'? => {output[0]=0x3e; fbreak;}; 'Gamma;' => {output[0]=0x393; fbreak;}; 'Gammad;' => {output[0]=0x3dc; fbreak;}; 'Gbreve;' => {output[0]=0x11e; fbreak;}; 'Gcedil;' => {output[0]=0x122; fbreak;}; 'Gcirc;' => {output[0]=0x11c; fbreak;}; 'Gcy;' => {output[0]=0x413; fbreak;}; 'Gdot;' => {output[0]=0x120; fbreak;}; 'Gfr;' => {output[0]=0x1d50a; fbreak;}; 'Gg;' => {output[0]=0x22d9; fbreak;}; 'Gopf;' => {output[0]=0x1d53e; fbreak;}; 'GreaterEqual;' => {output[0]=0x2265; fbreak;}; 'GreaterEqualLess;' => {output[0]=0x22db; fbreak;}; 'GreaterFullEqual;' => {output[0]=0x2267; fbreak;}; 'GreaterGreater;' => {output[0]=0x2aa2; fbreak;}; 'GreaterLess;' => {output[0]=0x2277; fbreak;}; 'GreaterSlantEqual;' => {output[0]=0x2a7e; fbreak;}; 'GreaterTilde;' => {output[0]=0x2273; fbreak;}; 'Gscr;' => {output[0]=0x1d4a2; fbreak;}; 'Gt;' => {output[0]=0x226b; fbreak;}; 'HARDcy;' => {output[0]=0x42a; fbreak;}; 'Hacek;' => {output[0]=0x2c7; fbreak;}; 'Hat;' => {output[0]=0x5e; fbreak;}; 'Hcirc;' => {output[0]=0x124; fbreak;}; 'Hfr;' => {output[0]=0x210c; fbreak;}; 'HilbertSpace;' => {output[0]=0x210b; fbreak;}; 'Hopf;' => {output[0]=0x210d; fbreak;}; 'HorizontalLine;' => {output[0]=0x2500; fbreak;}; 'Hscr;' => {output[0]=0x210b; fbreak;}; 'Hstrok;' => {output[0]=0x126; fbreak;}; 'HumpDownHump;' => {output[0]=0x224e; fbreak;}; 'HumpEqual;' => {output[0]=0x224f; fbreak;}; 'IEcy;' => {output[0]=0x415; fbreak;}; 'IJlig;' => {output[0]=0x132; fbreak;}; 'IOcy;' => {output[0]=0x401; fbreak;}; 'Iacute' . ';'? => {output[0]=0xcd; fbreak;}; 'Icirc' . ';'? => {output[0]=0xce; fbreak;}; 'Icy;' => {output[0]=0x418; fbreak;}; 'Idot;' => {output[0]=0x130; fbreak;}; 'Ifr;' => {output[0]=0x2111; fbreak;}; 'Igrave' . ';'? => {output[0]=0xcc; fbreak;}; 'Im;' => {output[0]=0x2111; fbreak;}; 'Imacr;' => {output[0]=0x12a; fbreak;}; 'ImaginaryI;' => {output[0]=0x2148; fbreak;}; 'Implies;' => {output[0]=0x21d2; fbreak;}; 'Int;' => {output[0]=0x222c; fbreak;}; 'Integral;' => {output[0]=0x222b; fbreak;}; 'Intersection;' => {output[0]=0x22c2; fbreak;}; 'InvisibleComma;' => {output[0]=0x2063; fbreak;}; 'InvisibleTimes;' => {output[0]=0x2062; fbreak;}; 'Iogon;' => {output[0]=0x12e; fbreak;}; 'Iopf;' => {output[0]=0x1d540; fbreak;}; 'Iota;' => {output[0]=0x399; fbreak;}; 'Iscr;' => {output[0]=0x2110; fbreak;}; 'Itilde;' => {output[0]=0x128; fbreak;}; 'Iukcy;' => {output[0]=0x406; fbreak;}; 'Iuml' . ';'? => {output[0]=0xcf; fbreak;}; 'Jcirc;' => {output[0]=0x134; fbreak;}; 'Jcy;' => {output[0]=0x419; fbreak;}; 'Jfr;' => {output[0]=0x1d50d; fbreak;}; 'Jopf;' => {output[0]=0x1d541; fbreak;}; 'Jscr;' => {output[0]=0x1d4a5; fbreak;}; 'Jsercy;' => {output[0]=0x408; fbreak;}; 'Jukcy;' => {output[0]=0x404; fbreak;}; 'KHcy;' => {output[0]=0x425; fbreak;}; 'KJcy;' => {output[0]=0x40c; fbreak;}; 'Kappa;' => {output[0]=0x39a; fbreak;}; 'Kcedil;' => {output[0]=0x136; fbreak;}; 'Kcy;' => {output[0]=0x41a; fbreak;}; 'Kfr;' => {output[0]=0x1d50e; fbreak;}; 'Kopf;' => {output[0]=0x1d542; fbreak;}; 'Kscr;' => {output[0]=0x1d4a6; fbreak;}; 'LJcy;' => {output[0]=0x409; fbreak;}; 'LT' . ';'? => {output[0]=0x3c; fbreak;}; 'Lacute;' => {output[0]=0x139; fbreak;}; 'Lambda;' => {output[0]=0x39b; fbreak;}; 'Lang;' => {output[0]=0x27ea; fbreak;}; 'Laplacetrf;' => {output[0]=0x2112; fbreak;}; 'Larr;' => {output[0]=0x219e; fbreak;}; 'Lcaron;' => {output[0]=0x13d; fbreak;}; 'Lcedil;' => {output[0]=0x13b; fbreak;}; 'Lcy;' => {output[0]=0x41b; fbreak;}; 'LeftAngleBracket;' => {output[0]=0x27e8; fbreak;}; 'LeftArrow;' => {output[0]=0x2190; fbreak;}; 'LeftArrowBar;' => {output[0]=0x21e4; fbreak;}; 'LeftArrowRightArrow;' => {output[0]=0x21c6; fbreak;}; 'LeftCeiling;' => {output[0]=0x2308; fbreak;}; 'LeftDoubleBracket;' => {output[0]=0x27e6; fbreak;}; 'LeftDownTeeVector;' => {output[0]=0x2961; fbreak;}; 'LeftDownVector;' => {output[0]=0x21c3; fbreak;}; 'LeftDownVectorBar;' => {output[0]=0x2959; fbreak;}; 'LeftFloor;' => {output[0]=0x230a; fbreak;}; 'LeftRightArrow;' => {output[0]=0x2194; fbreak;}; 'LeftRightVector;' => {output[0]=0x294e; fbreak;}; 'LeftTee;' => {output[0]=0x22a3; fbreak;}; 'LeftTeeArrow;' => {output[0]=0x21a4; fbreak;}; 'LeftTeeVector;' => {output[0]=0x295a; fbreak;}; 'LeftTriangle;' => {output[0]=0x22b2; fbreak;}; 'LeftTriangleBar;' => {output[0]=0x29cf; fbreak;}; 'LeftTriangleEqual;' => {output[0]=0x22b4; fbreak;}; 'LeftUpDownVector;' => {output[0]=0x2951; fbreak;}; 'LeftUpTeeVector;' => {output[0]=0x2960; fbreak;}; 'LeftUpVector;' => {output[0]=0x21bf; fbreak;}; 'LeftUpVectorBar;' => {output[0]=0x2958; fbreak;}; 'LeftVector;' => {output[0]=0x21bc; fbreak;}; 'LeftVectorBar;' => {output[0]=0x2952; fbreak;}; 'Leftarrow;' => {output[0]=0x21d0; fbreak;}; 'Leftrightarrow;' => {output[0]=0x21d4; fbreak;}; 'LessEqualGreater;' => {output[0]=0x22da; fbreak;}; 'LessFullEqual;' => {output[0]=0x2266; fbreak;}; 'LessGreater;' => {output[0]=0x2276; fbreak;}; 'LessLess;' => {output[0]=0x2aa1; fbreak;}; 'LessSlantEqual;' => {output[0]=0x2a7d; fbreak;}; 'LessTilde;' => {output[0]=0x2272; fbreak;}; 'Lfr;' => {output[0]=0x1d50f; fbreak;}; 'Ll;' => {output[0]=0x22d8; fbreak;}; 'Lleftarrow;' => {output[0]=0x21da; fbreak;}; 'Lmidot;' => {output[0]=0x13f; fbreak;}; 'LongLeftArrow;' => {output[0]=0x27f5; fbreak;}; 'LongLeftRightArrow;' => {output[0]=0x27f7; fbreak;}; 'LongRightArrow;' => {output[0]=0x27f6; fbreak;}; 'Longleftarrow;' => {output[0]=0x27f8; fbreak;}; 'Longleftrightarrow;' => {output[0]=0x27fa; fbreak;}; 'Longrightarrow;' => {output[0]=0x27f9; fbreak;}; 'Lopf;' => {output[0]=0x1d543; fbreak;}; 'LowerLeftArrow;' => {output[0]=0x2199; fbreak;}; 'LowerRightArrow;' => {output[0]=0x2198; fbreak;}; 'Lscr;' => {output[0]=0x2112; fbreak;}; 'Lsh;' => {output[0]=0x21b0; fbreak;}; 'Lstrok;' => {output[0]=0x141; fbreak;}; 'Lt;' => {output[0]=0x226a; fbreak;}; 'Map;' => {output[0]=0x2905; fbreak;}; 'Mcy;' => {output[0]=0x41c; fbreak;}; 'MediumSpace;' => {output[0]=0x205f; fbreak;}; 'Mellintrf;' => {output[0]=0x2133; fbreak;}; 'Mfr;' => {output[0]=0x1d510; fbreak;}; 'MinusPlus;' => {output[0]=0x2213; fbreak;}; 'Mopf;' => {output[0]=0x1d544; fbreak;}; 'Mscr;' => {output[0]=0x2133; fbreak;}; 'Mu;' => {output[0]=0x39c; fbreak;}; 'NJcy;' => {output[0]=0x40a; fbreak;}; 'Nacute;' => {output[0]=0x143; fbreak;}; 'Ncaron;' => {output[0]=0x147; fbreak;}; 'Ncedil;' => {output[0]=0x145; fbreak;}; 'Ncy;' => {output[0]=0x41d; fbreak;}; 'NegativeMediumSpace;' => {output[0]=0x200b; fbreak;}; 'NegativeThickSpace;' => {output[0]=0x200b; fbreak;}; 'NegativeThinSpace;' => {output[0]=0x200b; fbreak;}; 'NegativeVeryThinSpace;' => {output[0]=0x200b; fbreak;}; 'NestedGreaterGreater;' => {output[0]=0x226b; fbreak;}; 'NestedLessLess;' => {output[0]=0x226a; fbreak;}; 'NewLine;' => {output[0]=0x0a; fbreak;}; 'Nfr;' => {output[0]=0x1d511; fbreak;}; 'NoBreak;' => {output[0]=0x2060; fbreak;}; 'NonBreakingSpace;' => {output[0]=0xa0; fbreak;}; 'Nopf;' => {output[0]=0x2115; fbreak;}; 'Not;' => {output[0]=0x2aec; fbreak;}; 'NotCongruent;' => {output[0]=0x2262; fbreak;}; 'NotCupCap;' => {output[0]=0x226d; fbreak;}; 'NotDoubleVerticalBar;' => {output[0]=0x2226; fbreak;}; 'NotElement;' => {output[0]=0x2209; fbreak;}; 'NotEqual;' => {output[0]=0x2260; fbreak;}; 'NotEqualTilde;' => {output[0]=0x2242; output[1]=0x338; fbreak;}; 'NotExists;' => {output[0]=0x2204; fbreak;}; 'NotGreater;' => {output[0]=0x226f; fbreak;}; 'NotGreaterEqual;' => {output[0]=0x2271; fbreak;}; 'NotGreaterFullEqual;' => {output[0]=0x2267; output[1]=0x338; fbreak;}; 'NotGreaterGreater;' => {output[0]=0x226b; output[1]=0x338; fbreak;}; 'NotGreaterLess;' => {output[0]=0x2279; fbreak;}; 'NotGreaterSlantEqual;' => {output[0]=0x2a7e; output[1]=0x338; fbreak;}; 'NotGreaterTilde;' => {output[0]=0x2275; fbreak;}; 'NotHumpDownHump;' => {output[0]=0x224e; output[1]=0x338; fbreak;}; 'NotHumpEqual;' => {output[0]=0x224f; output[1]=0x338; fbreak;}; 'NotLeftTriangle;' => {output[0]=0x22ea; fbreak;}; 'NotLeftTriangleBar;' => {output[0]=0x29cf; output[1]=0x338; fbreak;}; 'NotLeftTriangleEqual;' => {output[0]=0x22ec; fbreak;}; 'NotLess;' => {output[0]=0x226e; fbreak;}; 'NotLessEqual;' => {output[0]=0x2270; fbreak;}; 'NotLessGreater;' => {output[0]=0x2278; fbreak;}; 'NotLessLess;' => {output[0]=0x226a; output[1]=0x338; fbreak;}; 'NotLessSlantEqual;' => {output[0]=0x2a7d; output[1]=0x338; fbreak;}; 'NotLessTilde;' => {output[0]=0x2274; fbreak;}; 'NotNestedGreaterGreater;' => {output[0]=0x2aa2; output[1]=0x338; fbreak;}; 'NotNestedLessLess;' => {output[0]=0x2aa1; output[1]=0x338; fbreak;}; 'NotPrecedes;' => {output[0]=0x2280; fbreak;}; 'NotPrecedesEqual;' => {output[0]=0x2aaf; output[1]=0x338; fbreak;}; 'NotPrecedesSlantEqual;' => {output[0]=0x22e0; fbreak;}; 'NotReverseElement;' => {output[0]=0x220c; fbreak;}; 'NotRightTriangle;' => {output[0]=0x22eb; fbreak;}; 'NotRightTriangleBar;' => {output[0]=0x29d0; output[1]=0x338; fbreak;}; 'NotRightTriangleEqual;' => {output[0]=0x22ed; fbreak;}; 'NotSquareSubset;' => {output[0]=0x228f; output[1]=0x338; fbreak;}; 'NotSquareSubsetEqual;' => {output[0]=0x22e2; fbreak;}; 'NotSquareSuperset;' => {output[0]=0x2290; output[1]=0x338; fbreak;}; 'NotSquareSupersetEqual;' => {output[0]=0x22e3; fbreak;}; 'NotSubset;' => {output[0]=0x2282; output[1]=0x20d2; fbreak;}; 'NotSubsetEqual;' => {output[0]=0x2288; fbreak;}; 'NotSucceeds;' => {output[0]=0x2281; fbreak;}; 'NotSucceedsEqual;' => {output[0]=0x2ab0; output[1]=0x338; fbreak;}; 'NotSucceedsSlantEqual;' => {output[0]=0x22e1; fbreak;}; 'NotSucceedsTilde;' => {output[0]=0x227f; output[1]=0x338; fbreak;}; 'NotSuperset;' => {output[0]=0x2283; output[1]=0x20d2; fbreak;}; 'NotSupersetEqual;' => {output[0]=0x2289; fbreak;}; 'NotTilde;' => {output[0]=0x2241; fbreak;}; 'NotTildeEqual;' => {output[0]=0x2244; fbreak;}; 'NotTildeFullEqual;' => {output[0]=0x2247; fbreak;}; 'NotTildeTilde;' => {output[0]=0x2249; fbreak;}; 'NotVerticalBar;' => {output[0]=0x2224; fbreak;}; 'Nscr;' => {output[0]=0x1d4a9; fbreak;}; 'Ntilde' . ';'? => {output[0]=0xd1; fbreak;}; 'Nu;' => {output[0]=0x39d; fbreak;}; 'OElig;' => {output[0]=0x152; fbreak;}; 'Oacute' . ';'? => {output[0]=0xd3; fbreak;}; 'Ocirc' . ';'? => {output[0]=0xd4; fbreak;}; 'Ocy;' => {output[0]=0x41e; fbreak;}; 'Odblac;' => {output[0]=0x150; fbreak;}; 'Ofr;' => {output[0]=0x1d512; fbreak;}; 'Ograve' . ';'? => {output[0]=0xd2; fbreak;}; 'Omacr;' => {output[0]=0x14c; fbreak;}; 'Omega;' => {output[0]=0x3a9; fbreak;}; 'Omicron;' => {output[0]=0x39f; fbreak;}; 'Oopf;' => {output[0]=0x1d546; fbreak;}; 'OpenCurlyDoubleQuote;' => {output[0]=0x201c; fbreak;}; 'OpenCurlyQuote;' => {output[0]=0x2018; fbreak;}; 'Or;' => {output[0]=0x2a54; fbreak;}; 'Oscr;' => {output[0]=0x1d4aa; fbreak;}; 'Oslash' . ';'? => {output[0]=0xd8; fbreak;}; 'Otilde' . ';'? => {output[0]=0xd5; fbreak;}; 'Otimes;' => {output[0]=0x2a37; fbreak;}; 'Ouml' . ';'? => {output[0]=0xd6; fbreak;}; 'OverBar;' => {output[0]=0x203e; fbreak;}; 'OverBrace;' => {output[0]=0x23de; fbreak;}; 'OverBracket;' => {output[0]=0x23b4; fbreak;}; 'OverParenthesis;' => {output[0]=0x23dc; fbreak;}; 'PartialD;' => {output[0]=0x2202; fbreak;}; 'Pcy;' => {output[0]=0x41f; fbreak;}; 'Pfr;' => {output[0]=0x1d513; fbreak;}; 'Phi;' => {output[0]=0x3a6; fbreak;}; 'Pi;' => {output[0]=0x3a0; fbreak;}; 'PlusMinus;' => {output[0]=0xb1; fbreak;}; 'Poincareplane;' => {output[0]=0x210c; fbreak;}; 'Popf;' => {output[0]=0x2119; fbreak;}; 'Pr;' => {output[0]=0x2abb; fbreak;}; 'Precedes;' => {output[0]=0x227a; fbreak;}; 'PrecedesEqual;' => {output[0]=0x2aaf; fbreak;}; 'PrecedesSlantEqual;' => {output[0]=0x227c; fbreak;}; 'PrecedesTilde;' => {output[0]=0x227e; fbreak;}; 'Prime;' => {output[0]=0x2033; fbreak;}; 'Product;' => {output[0]=0x220f; fbreak;}; 'Proportion;' => {output[0]=0x2237; fbreak;}; 'Proportional;' => {output[0]=0x221d; fbreak;}; 'Pscr;' => {output[0]=0x1d4ab; fbreak;}; 'Psi;' => {output[0]=0x3a8; fbreak;}; 'QUOT' . ';'? => {output[0]=0x22; fbreak;}; 'Qfr;' => {output[0]=0x1d514; fbreak;}; 'Qopf;' => {output[0]=0x211a; fbreak;}; 'Qscr;' => {output[0]=0x1d4ac; fbreak;}; 'RBarr;' => {output[0]=0x2910; fbreak;}; 'REG' . ';'? => {output[0]=0xae; fbreak;}; 'Racute;' => {output[0]=0x154; fbreak;}; 'Rang;' => {output[0]=0x27eb; fbreak;}; 'Rarr;' => {output[0]=0x21a0; fbreak;}; 'Rarrtl;' => {output[0]=0x2916; fbreak;}; 'Rcaron;' => {output[0]=0x158; fbreak;}; 'Rcedil;' => {output[0]=0x156; fbreak;}; 'Rcy;' => {output[0]=0x420; fbreak;}; 'Re;' => {output[0]=0x211c; fbreak;}; 'ReverseElement;' => {output[0]=0x220b; fbreak;}; 'ReverseEquilibrium;' => {output[0]=0x21cb; fbreak;}; 'ReverseUpEquilibrium;' => {output[0]=0x296f; fbreak;}; 'Rfr;' => {output[0]=0x211c; fbreak;}; 'Rho;' => {output[0]=0x3a1; fbreak;}; 'RightAngleBracket;' => {output[0]=0x27e9; fbreak;}; 'RightArrow;' => {output[0]=0x2192; fbreak;}; 'RightArrowBar;' => {output[0]=0x21e5; fbreak;}; 'RightArrowLeftArrow;' => {output[0]=0x21c4; fbreak;}; 'RightCeiling;' => {output[0]=0x2309; fbreak;}; 'RightDoubleBracket;' => {output[0]=0x27e7; fbreak;}; 'RightDownTeeVector;' => {output[0]=0x295d; fbreak;}; 'RightDownVector;' => {output[0]=0x21c2; fbreak;}; 'RightDownVectorBar;' => {output[0]=0x2955; fbreak;}; 'RightFloor;' => {output[0]=0x230b; fbreak;}; 'RightTee;' => {output[0]=0x22a2; fbreak;}; 'RightTeeArrow;' => {output[0]=0x21a6; fbreak;}; 'RightTeeVector;' => {output[0]=0x295b; fbreak;}; 'RightTriangle;' => {output[0]=0x22b3; fbreak;}; 'RightTriangleBar;' => {output[0]=0x29d0; fbreak;}; 'RightTriangleEqual;' => {output[0]=0x22b5; fbreak;}; 'RightUpDownVector;' => {output[0]=0x294f; fbreak;}; 'RightUpTeeVector;' => {output[0]=0x295c; fbreak;}; 'RightUpVector;' => {output[0]=0x21be; fbreak;}; 'RightUpVectorBar;' => {output[0]=0x2954; fbreak;}; 'RightVector;' => {output[0]=0x21c0; fbreak;}; 'RightVectorBar;' => {output[0]=0x2953; fbreak;}; 'Rightarrow;' => {output[0]=0x21d2; fbreak;}; 'Ropf;' => {output[0]=0x211d; fbreak;}; 'RoundImplies;' => {output[0]=0x2970; fbreak;}; 'Rrightarrow;' => {output[0]=0x21db; fbreak;}; 'Rscr;' => {output[0]=0x211b; fbreak;}; 'Rsh;' => {output[0]=0x21b1; fbreak;}; 'RuleDelayed;' => {output[0]=0x29f4; fbreak;}; 'SHCHcy;' => {output[0]=0x429; fbreak;}; 'SHcy;' => {output[0]=0x428; fbreak;}; 'SOFTcy;' => {output[0]=0x42c; fbreak;}; 'Sacute;' => {output[0]=0x15a; fbreak;}; 'Sc;' => {output[0]=0x2abc; fbreak;}; 'Scaron;' => {output[0]=0x160; fbreak;}; 'Scedil;' => {output[0]=0x15e; fbreak;}; 'Scirc;' => {output[0]=0x15c; fbreak;}; 'Scy;' => {output[0]=0x421; fbreak;}; 'Sfr;' => {output[0]=0x1d516; fbreak;}; 'ShortDownArrow;' => {output[0]=0x2193; fbreak;}; 'ShortLeftArrow;' => {output[0]=0x2190; fbreak;}; 'ShortRightArrow;' => {output[0]=0x2192; fbreak;}; 'ShortUpArrow;' => {output[0]=0x2191; fbreak;}; 'Sigma;' => {output[0]=0x3a3; fbreak;}; 'SmallCircle;' => {output[0]=0x2218; fbreak;}; 'Sopf;' => {output[0]=0x1d54a; fbreak;}; 'Sqrt;' => {output[0]=0x221a; fbreak;}; 'Square;' => {output[0]=0x25a1; fbreak;}; 'SquareIntersection;' => {output[0]=0x2293; fbreak;}; 'SquareSubset;' => {output[0]=0x228f; fbreak;}; 'SquareSubsetEqual;' => {output[0]=0x2291; fbreak;}; 'SquareSuperset;' => {output[0]=0x2290; fbreak;}; 'SquareSupersetEqual;' => {output[0]=0x2292; fbreak;}; 'SquareUnion;' => {output[0]=0x2294; fbreak;}; 'Sscr;' => {output[0]=0x1d4ae; fbreak;}; 'Star;' => {output[0]=0x22c6; fbreak;}; 'Sub;' => {output[0]=0x22d0; fbreak;}; 'Subset;' => {output[0]=0x22d0; fbreak;}; 'SubsetEqual;' => {output[0]=0x2286; fbreak;}; 'Succeeds;' => {output[0]=0x227b; fbreak;}; 'SucceedsEqual;' => {output[0]=0x2ab0; fbreak;}; 'SucceedsSlantEqual;' => {output[0]=0x227d; fbreak;}; 'SucceedsTilde;' => {output[0]=0x227f; fbreak;}; 'SuchThat;' => {output[0]=0x220b; fbreak;}; 'Sum;' => {output[0]=0x2211; fbreak;}; 'Sup;' => {output[0]=0x22d1; fbreak;}; 'Superset;' => {output[0]=0x2283; fbreak;}; 'SupersetEqual;' => {output[0]=0x2287; fbreak;}; 'Supset;' => {output[0]=0x22d1; fbreak;}; 'THORN' . ';'? => {output[0]=0xde; fbreak;}; 'TRADE;' => {output[0]=0x2122; fbreak;}; 'TSHcy;' => {output[0]=0x40b; fbreak;}; 'TScy;' => {output[0]=0x426; fbreak;}; 'Tab;' => {output[0]=0x09; fbreak;}; 'Tau;' => {output[0]=0x3a4; fbreak;}; 'Tcaron;' => {output[0]=0x164; fbreak;}; 'Tcedil;' => {output[0]=0x162; fbreak;}; 'Tcy;' => {output[0]=0x422; fbreak;}; 'Tfr;' => {output[0]=0x1d517; fbreak;}; 'Therefore;' => {output[0]=0x2234; fbreak;}; 'Theta;' => {output[0]=0x398; fbreak;}; 'ThickSpace;' => {output[0]=0x205f; output[1]=0x200a; fbreak;}; 'ThinSpace;' => {output[0]=0x2009; fbreak;}; 'Tilde;' => {output[0]=0x223c; fbreak;}; 'TildeEqual;' => {output[0]=0x2243; fbreak;}; 'TildeFullEqual;' => {output[0]=0x2245; fbreak;}; 'TildeTilde;' => {output[0]=0x2248; fbreak;}; 'Topf;' => {output[0]=0x1d54b; fbreak;}; 'TripleDot;' => {output[0]=0x20db; fbreak;}; 'Tscr;' => {output[0]=0x1d4af; fbreak;}; 'Tstrok;' => {output[0]=0x166; fbreak;}; 'Uacute' . ';'? => {output[0]=0xda; fbreak;}; 'Uarr;' => {output[0]=0x219f; fbreak;}; 'Uarrocir;' => {output[0]=0x2949; fbreak;}; 'Ubrcy;' => {output[0]=0x40e; fbreak;}; 'Ubreve;' => {output[0]=0x16c; fbreak;}; 'Ucirc' . ';'? => {output[0]=0xdb; fbreak;}; 'Ucy;' => {output[0]=0x423; fbreak;}; 'Udblac;' => {output[0]=0x170; fbreak;}; 'Ufr;' => {output[0]=0x1d518; fbreak;}; 'Ugrave' . ';'? => {output[0]=0xd9; fbreak;}; 'Umacr;' => {output[0]=0x16a; fbreak;}; 'UnderBar;' => {output[0]=0x5f; fbreak;}; 'UnderBrace;' => {output[0]=0x23df; fbreak;}; 'UnderBracket;' => {output[0]=0x23b5; fbreak;}; 'UnderParenthesis;' => {output[0]=0x23dd; fbreak;}; 'Union;' => {output[0]=0x22c3; fbreak;}; 'UnionPlus;' => {output[0]=0x228e; fbreak;}; 'Uogon;' => {output[0]=0x172; fbreak;}; 'Uopf;' => {output[0]=0x1d54c; fbreak;}; 'UpArrow;' => {output[0]=0x2191; fbreak;}; 'UpArrowBar;' => {output[0]=0x2912; fbreak;}; 'UpArrowDownArrow;' => {output[0]=0x21c5; fbreak;}; 'UpDownArrow;' => {output[0]=0x2195; fbreak;}; 'UpEquilibrium;' => {output[0]=0x296e; fbreak;}; 'UpTee;' => {output[0]=0x22a5; fbreak;}; 'UpTeeArrow;' => {output[0]=0x21a5; fbreak;}; 'Uparrow;' => {output[0]=0x21d1; fbreak;}; 'Updownarrow;' => {output[0]=0x21d5; fbreak;}; 'UpperLeftArrow;' => {output[0]=0x2196; fbreak;}; 'UpperRightArrow;' => {output[0]=0x2197; fbreak;}; 'Upsi;' => {output[0]=0x3d2; fbreak;}; 'Upsilon;' => {output[0]=0x3a5; fbreak;}; 'Uring;' => {output[0]=0x16e; fbreak;}; 'Uscr;' => {output[0]=0x1d4b0; fbreak;}; 'Utilde;' => {output[0]=0x168; fbreak;}; 'Uuml' . ';'? => {output[0]=0xdc; fbreak;}; 'VDash;' => {output[0]=0x22ab; fbreak;}; 'Vbar;' => {output[0]=0x2aeb; fbreak;}; 'Vcy;' => {output[0]=0x412; fbreak;}; 'Vdash;' => {output[0]=0x22a9; fbreak;}; 'Vdashl;' => {output[0]=0x2ae6; fbreak;}; 'Vee;' => {output[0]=0x22c1; fbreak;}; 'Verbar;' => {output[0]=0x2016; fbreak;}; 'Vert;' => {output[0]=0x2016; fbreak;}; 'VerticalBar;' => {output[0]=0x2223; fbreak;}; 'VerticalLine;' => {output[0]=0x7c; fbreak;}; 'VerticalSeparator;' => {output[0]=0x2758; fbreak;}; 'VerticalTilde;' => {output[0]=0x2240; fbreak;}; 'VeryThinSpace;' => {output[0]=0x200a; fbreak;}; 'Vfr;' => {output[0]=0x1d519; fbreak;}; 'Vopf;' => {output[0]=0x1d54d; fbreak;}; 'Vscr;' => {output[0]=0x1d4b1; fbreak;}; 'Vvdash;' => {output[0]=0x22aa; fbreak;}; 'Wcirc;' => {output[0]=0x174; fbreak;}; 'Wedge;' => {output[0]=0x22c0; fbreak;}; 'Wfr;' => {output[0]=0x1d51a; fbreak;}; 'Wopf;' => {output[0]=0x1d54e; fbreak;}; 'Wscr;' => {output[0]=0x1d4b2; fbreak;}; 'Xfr;' => {output[0]=0x1d51b; fbreak;}; 'Xi;' => {output[0]=0x39e; fbreak;}; 'Xopf;' => {output[0]=0x1d54f; fbreak;}; 'Xscr;' => {output[0]=0x1d4b3; fbreak;}; 'YAcy;' => {output[0]=0x42f; fbreak;}; 'YIcy;' => {output[0]=0x407; fbreak;}; 'YUcy;' => {output[0]=0x42e; fbreak;}; 'Yacute' . ';'? => {output[0]=0xdd; fbreak;}; 'Ycirc;' => {output[0]=0x176; fbreak;}; 'Ycy;' => {output[0]=0x42b; fbreak;}; 'Yfr;' => {output[0]=0x1d51c; fbreak;}; 'Yopf;' => {output[0]=0x1d550; fbreak;}; 'Yscr;' => {output[0]=0x1d4b4; fbreak;}; 'Yuml;' => {output[0]=0x178; fbreak;}; 'ZHcy;' => {output[0]=0x416; fbreak;}; 'Zacute;' => {output[0]=0x179; fbreak;}; 'Zcaron;' => {output[0]=0x17d; fbreak;}; 'Zcy;' => {output[0]=0x417; fbreak;}; 'Zdot;' => {output[0]=0x17b; fbreak;}; 'ZeroWidthSpace;' => {output[0]=0x200b; fbreak;}; 'Zeta;' => {output[0]=0x396; fbreak;}; 'Zfr;' => {output[0]=0x2128; fbreak;}; 'Zopf;' => {output[0]=0x2124; fbreak;}; 'Zscr;' => {output[0]=0x1d4b5; fbreak;}; 'aacute' . ';'? => {output[0]=0xe1; fbreak;}; 'abreve;' => {output[0]=0x103; fbreak;}; 'ac;' => {output[0]=0x223e; fbreak;}; 'acE;' => {output[0]=0x223e; output[1]=0x333; fbreak;}; 'acd;' => {output[0]=0x223f; fbreak;}; 'acirc' . ';'? => {output[0]=0xe2; fbreak;}; 'acute' . ';'? => {output[0]=0xb4; fbreak;}; 'acy;' => {output[0]=0x430; fbreak;}; 'aelig' . ';'? => {output[0]=0xe6; fbreak;}; 'af;' => {output[0]=0x2061; fbreak;}; 'afr;' => {output[0]=0x1d51e; fbreak;}; 'agrave' . ';'? => {output[0]=0xe0; fbreak;}; 'alefsym;' => {output[0]=0x2135; fbreak;}; 'aleph;' => {output[0]=0x2135; fbreak;}; 'alpha;' => {output[0]=0x3b1; fbreak;}; 'amacr;' => {output[0]=0x101; fbreak;}; 'amalg;' => {output[0]=0x2a3f; fbreak;}; 'amp' . ';'? => {output[0]=0x26; fbreak;}; 'and;' => {output[0]=0x2227; fbreak;}; 'andand;' => {output[0]=0x2a55; fbreak;}; 'andd;' => {output[0]=0x2a5c; fbreak;}; 'andslope;' => {output[0]=0x2a58; fbreak;}; 'andv;' => {output[0]=0x2a5a; fbreak;}; 'ang;' => {output[0]=0x2220; fbreak;}; 'ange;' => {output[0]=0x29a4; fbreak;}; 'angle;' => {output[0]=0x2220; fbreak;}; 'angmsd;' => {output[0]=0x2221; fbreak;}; 'angmsdaa;' => {output[0]=0x29a8; fbreak;}; 'angmsdab;' => {output[0]=0x29a9; fbreak;}; 'angmsdac;' => {output[0]=0x29aa; fbreak;}; 'angmsdad;' => {output[0]=0x29ab; fbreak;}; 'angmsdae;' => {output[0]=0x29ac; fbreak;}; 'angmsdaf;' => {output[0]=0x29ad; fbreak;}; 'angmsdag;' => {output[0]=0x29ae; fbreak;}; 'angmsdah;' => {output[0]=0x29af; fbreak;}; 'angrt;' => {output[0]=0x221f; fbreak;}; 'angrtvb;' => {output[0]=0x22be; fbreak;}; 'angrtvbd;' => {output[0]=0x299d; fbreak;}; 'angsph;' => {output[0]=0x2222; fbreak;}; 'angst;' => {output[0]=0xc5; fbreak;}; 'angzarr;' => {output[0]=0x237c; fbreak;}; 'aogon;' => {output[0]=0x105; fbreak;}; 'aopf;' => {output[0]=0x1d552; fbreak;}; 'ap;' => {output[0]=0x2248; fbreak;}; 'apE;' => {output[0]=0x2a70; fbreak;}; 'apacir;' => {output[0]=0x2a6f; fbreak;}; 'ape;' => {output[0]=0x224a; fbreak;}; 'apid;' => {output[0]=0x224b; fbreak;}; 'apos;' => {output[0]=0x27; fbreak;}; 'approx;' => {output[0]=0x2248; fbreak;}; 'approxeq;' => {output[0]=0x224a; fbreak;}; 'aring' . ';'? => {output[0]=0xe5; fbreak;}; 'ascr;' => {output[0]=0x1d4b6; fbreak;}; 'ast;' => {output[0]=0x2a; fbreak;}; 'asymp;' => {output[0]=0x2248; fbreak;}; 'asympeq;' => {output[0]=0x224d; fbreak;}; 'atilde' . ';'? => {output[0]=0xe3; fbreak;}; 'auml' . ';'? => {output[0]=0xe4; fbreak;}; 'awconint;' => {output[0]=0x2233; fbreak;}; 'awint;' => {output[0]=0x2a11; fbreak;}; 'bNot;' => {output[0]=0x2aed; fbreak;}; 'backcong;' => {output[0]=0x224c; fbreak;}; 'backepsilon;' => {output[0]=0x3f6; fbreak;}; 'backprime;' => {output[0]=0x2035; fbreak;}; 'backsim;' => {output[0]=0x223d; fbreak;}; 'backsimeq;' => {output[0]=0x22cd; fbreak;}; 'barvee;' => {output[0]=0x22bd; fbreak;}; 'barwed;' => {output[0]=0x2305; fbreak;}; 'barwedge;' => {output[0]=0x2305; fbreak;}; 'bbrk;' => {output[0]=0x23b5; fbreak;}; 'bbrktbrk;' => {output[0]=0x23b6; fbreak;}; 'bcong;' => {output[0]=0x224c; fbreak;}; 'bcy;' => {output[0]=0x431; fbreak;}; 'bdquo;' => {output[0]=0x201e; fbreak;}; 'becaus;' => {output[0]=0x2235; fbreak;}; 'because;' => {output[0]=0x2235; fbreak;}; 'bemptyv;' => {output[0]=0x29b0; fbreak;}; 'bepsi;' => {output[0]=0x3f6; fbreak;}; 'bernou;' => {output[0]=0x212c; fbreak;}; 'beta;' => {output[0]=0x3b2; fbreak;}; 'beth;' => {output[0]=0x2136; fbreak;}; 'between;' => {output[0]=0x226c; fbreak;}; 'bfr;' => {output[0]=0x1d51f; fbreak;}; 'bigcap;' => {output[0]=0x22c2; fbreak;}; 'bigcirc;' => {output[0]=0x25ef; fbreak;}; 'bigcup;' => {output[0]=0x22c3; fbreak;}; 'bigodot;' => {output[0]=0x2a00; fbreak;}; 'bigoplus;' => {output[0]=0x2a01; fbreak;}; 'bigotimes;' => {output[0]=0x2a02; fbreak;}; 'bigsqcup;' => {output[0]=0x2a06; fbreak;}; 'bigstar;' => {output[0]=0x2605; fbreak;}; 'bigtriangledown;' => {output[0]=0x25bd; fbreak;}; 'bigtriangleup;' => {output[0]=0x25b3; fbreak;}; 'biguplus;' => {output[0]=0x2a04; fbreak;}; 'bigvee;' => {output[0]=0x22c1; fbreak;}; 'bigwedge;' => {output[0]=0x22c0; fbreak;}; 'bkarow;' => {output[0]=0x290d; fbreak;}; 'blacklozenge;' => {output[0]=0x29eb; fbreak;}; 'blacksquare;' => {output[0]=0x25aa; fbreak;}; 'blacktriangle;' => {output[0]=0x25b4; fbreak;}; 'blacktriangledown;' => {output[0]=0x25be; fbreak;}; 'blacktriangleleft;' => {output[0]=0x25c2; fbreak;}; 'blacktriangleright;' => {output[0]=0x25b8; fbreak;}; 'blank;' => {output[0]=0x2423; fbreak;}; 'blk12;' => {output[0]=0x2592; fbreak;}; 'blk14;' => {output[0]=0x2591; fbreak;}; 'blk34;' => {output[0]=0x2593; fbreak;}; 'block;' => {output[0]=0x2588; fbreak;}; 'bne;' => {output[0]=0x3d; output[1]=0x20e5; fbreak;}; 'bnequiv;' => {output[0]=0x2261; output[1]=0x20e5; fbreak;}; 'bnot;' => {output[0]=0x2310; fbreak;}; 'bopf;' => {output[0]=0x1d553; fbreak;}; 'bot;' => {output[0]=0x22a5; fbreak;}; 'bottom;' => {output[0]=0x22a5; fbreak;}; 'bowtie;' => {output[0]=0x22c8; fbreak;}; 'boxDL;' => {output[0]=0x2557; fbreak;}; 'boxDR;' => {output[0]=0x2554; fbreak;}; 'boxDl;' => {output[0]=0x2556; fbreak;}; 'boxDr;' => {output[0]=0x2553; fbreak;}; 'boxH;' => {output[0]=0x2550; fbreak;}; 'boxHD;' => {output[0]=0x2566; fbreak;}; 'boxHU;' => {output[0]=0x2569; fbreak;}; 'boxHd;' => {output[0]=0x2564; fbreak;}; 'boxHu;' => {output[0]=0x2567; fbreak;}; 'boxUL;' => {output[0]=0x255d; fbreak;}; 'boxUR;' => {output[0]=0x255a; fbreak;}; 'boxUl;' => {output[0]=0x255c; fbreak;}; 'boxUr;' => {output[0]=0x2559; fbreak;}; 'boxV;' => {output[0]=0x2551; fbreak;}; 'boxVH;' => {output[0]=0x256c; fbreak;}; 'boxVL;' => {output[0]=0x2563; fbreak;}; 'boxVR;' => {output[0]=0x2560; fbreak;}; 'boxVh;' => {output[0]=0x256b; fbreak;}; 'boxVl;' => {output[0]=0x2562; fbreak;}; 'boxVr;' => {output[0]=0x255f; fbreak;}; 'boxbox;' => {output[0]=0x29c9; fbreak;}; 'boxdL;' => {output[0]=0x2555; fbreak;}; 'boxdR;' => {output[0]=0x2552; fbreak;}; 'boxdl;' => {output[0]=0x2510; fbreak;}; 'boxdr;' => {output[0]=0x250c; fbreak;}; 'boxh;' => {output[0]=0x2500; fbreak;}; 'boxhD;' => {output[0]=0x2565; fbreak;}; 'boxhU;' => {output[0]=0x2568; fbreak;}; 'boxhd;' => {output[0]=0x252c; fbreak;}; 'boxhu;' => {output[0]=0x2534; fbreak;}; 'boxminus;' => {output[0]=0x229f; fbreak;}; 'boxplus;' => {output[0]=0x229e; fbreak;}; 'boxtimes;' => {output[0]=0x22a0; fbreak;}; 'boxuL;' => {output[0]=0x255b; fbreak;}; 'boxuR;' => {output[0]=0x2558; fbreak;}; 'boxul;' => {output[0]=0x2518; fbreak;}; 'boxur;' => {output[0]=0x2514; fbreak;}; 'boxv;' => {output[0]=0x2502; fbreak;}; 'boxvH;' => {output[0]=0x256a; fbreak;}; 'boxvL;' => {output[0]=0x2561; fbreak;}; 'boxvR;' => {output[0]=0x255e; fbreak;}; 'boxvh;' => {output[0]=0x253c; fbreak;}; 'boxvl;' => {output[0]=0x2524; fbreak;}; 'boxvr;' => {output[0]=0x251c; fbreak;}; 'bprime;' => {output[0]=0x2035; fbreak;}; 'breve;' => {output[0]=0x2d8; fbreak;}; 'brvbar' . ';'? => {output[0]=0xa6; fbreak;}; 'bscr;' => {output[0]=0x1d4b7; fbreak;}; 'bsemi;' => {output[0]=0x204f; fbreak;}; 'bsim;' => {output[0]=0x223d; fbreak;}; 'bsime;' => {output[0]=0x22cd; fbreak;}; 'bsol;' => {output[0]=0x5c; fbreak;}; 'bsolb;' => {output[0]=0x29c5; fbreak;}; 'bsolhsub;' => {output[0]=0x27c8; fbreak;}; 'bull;' => {output[0]=0x2022; fbreak;}; 'bullet;' => {output[0]=0x2022; fbreak;}; 'bump;' => {output[0]=0x224e; fbreak;}; 'bumpE;' => {output[0]=0x2aae; fbreak;}; 'bumpe;' => {output[0]=0x224f; fbreak;}; 'bumpeq;' => {output[0]=0x224f; fbreak;}; 'cacute;' => {output[0]=0x107; fbreak;}; 'cap;' => {output[0]=0x2229; fbreak;}; 'capand;' => {output[0]=0x2a44; fbreak;}; 'capbrcup;' => {output[0]=0x2a49; fbreak;}; 'capcap;' => {output[0]=0x2a4b; fbreak;}; 'capcup;' => {output[0]=0x2a47; fbreak;}; 'capdot;' => {output[0]=0x2a40; fbreak;}; 'caps;' => {output[0]=0x2229; output[1]=0xfe00; fbreak;}; 'caret;' => {output[0]=0x2041; fbreak;}; 'caron;' => {output[0]=0x2c7; fbreak;}; 'ccaps;' => {output[0]=0x2a4d; fbreak;}; 'ccaron;' => {output[0]=0x10d; fbreak;}; 'ccedil' . ';'? => {output[0]=0xe7; fbreak;}; 'ccirc;' => {output[0]=0x109; fbreak;}; 'ccups;' => {output[0]=0x2a4c; fbreak;}; 'ccupssm;' => {output[0]=0x2a50; fbreak;}; 'cdot;' => {output[0]=0x10b; fbreak;}; 'cedil' . ';'? => {output[0]=0xb8; fbreak;}; 'cemptyv;' => {output[0]=0x29b2; fbreak;}; 'cent' . ';'? => {output[0]=0xa2; fbreak;}; 'centerdot;' => {output[0]=0xb7; fbreak;}; 'cfr;' => {output[0]=0x1d520; fbreak;}; 'chcy;' => {output[0]=0x447; fbreak;}; 'check;' => {output[0]=0x2713; fbreak;}; 'checkmark;' => {output[0]=0x2713; fbreak;}; 'chi;' => {output[0]=0x3c7; fbreak;}; 'cir;' => {output[0]=0x25cb; fbreak;}; 'cirE;' => {output[0]=0x29c3; fbreak;}; 'circ;' => {output[0]=0x2c6; fbreak;}; 'circeq;' => {output[0]=0x2257; fbreak;}; 'circlearrowleft;' => {output[0]=0x21ba; fbreak;}; 'circlearrowright;' => {output[0]=0x21bb; fbreak;}; 'circledR;' => {output[0]=0xae; fbreak;}; 'circledS;' => {output[0]=0x24c8; fbreak;}; 'circledast;' => {output[0]=0x229b; fbreak;}; 'circledcirc;' => {output[0]=0x229a; fbreak;}; 'circleddash;' => {output[0]=0x229d; fbreak;}; 'cire;' => {output[0]=0x2257; fbreak;}; 'cirfnint;' => {output[0]=0x2a10; fbreak;}; 'cirmid;' => {output[0]=0x2aef; fbreak;}; 'cirscir;' => {output[0]=0x29c2; fbreak;}; 'clubs;' => {output[0]=0x2663; fbreak;}; 'clubsuit;' => {output[0]=0x2663; fbreak;}; 'colon;' => {output[0]=0x3a; fbreak;}; 'colone;' => {output[0]=0x2254; fbreak;}; 'coloneq;' => {output[0]=0x2254; fbreak;}; 'comma;' => {output[0]=0x2c; fbreak;}; 'commat;' => {output[0]=0x40; fbreak;}; 'comp;' => {output[0]=0x2201; fbreak;}; 'compfn;' => {output[0]=0x2218; fbreak;}; 'complement;' => {output[0]=0x2201; fbreak;}; 'complexes;' => {output[0]=0x2102; fbreak;}; 'cong;' => {output[0]=0x2245; fbreak;}; 'congdot;' => {output[0]=0x2a6d; fbreak;}; 'conint;' => {output[0]=0x222e; fbreak;}; 'copf;' => {output[0]=0x1d554; fbreak;}; 'coprod;' => {output[0]=0x2210; fbreak;}; 'copy' . ';'? => {output[0]=0xa9; fbreak;}; 'copysr;' => {output[0]=0x2117; fbreak;}; 'crarr;' => {output[0]=0x21b5; fbreak;}; 'cross;' => {output[0]=0x2717; fbreak;}; 'cscr;' => {output[0]=0x1d4b8; fbreak;}; 'csub;' => {output[0]=0x2acf; fbreak;}; 'csube;' => {output[0]=0x2ad1; fbreak;}; 'csup;' => {output[0]=0x2ad0; fbreak;}; 'csupe;' => {output[0]=0x2ad2; fbreak;}; 'ctdot;' => {output[0]=0x22ef; fbreak;}; 'cudarrl;' => {output[0]=0x2938; fbreak;}; 'cudarrr;' => {output[0]=0x2935; fbreak;}; 'cuepr;' => {output[0]=0x22de; fbreak;}; 'cuesc;' => {output[0]=0x22df; fbreak;}; 'cularr;' => {output[0]=0x21b6; fbreak;}; 'cularrp;' => {output[0]=0x293d; fbreak;}; 'cup;' => {output[0]=0x222a; fbreak;}; 'cupbrcap;' => {output[0]=0x2a48; fbreak;}; 'cupcap;' => {output[0]=0x2a46; fbreak;}; 'cupcup;' => {output[0]=0x2a4a; fbreak;}; 'cupdot;' => {output[0]=0x228d; fbreak;}; 'cupor;' => {output[0]=0x2a45; fbreak;}; 'cups;' => {output[0]=0x222a; output[1]=0xfe00; fbreak;}; 'curarr;' => {output[0]=0x21b7; fbreak;}; 'curarrm;' => {output[0]=0x293c; fbreak;}; 'curlyeqprec;' => {output[0]=0x22de; fbreak;}; 'curlyeqsucc;' => {output[0]=0x22df; fbreak;}; 'curlyvee;' => {output[0]=0x22ce; fbreak;}; 'curlywedge;' => {output[0]=0x22cf; fbreak;}; 'curren' . ';'? => {output[0]=0xa4; fbreak;}; 'curvearrowleft;' => {output[0]=0x21b6; fbreak;}; 'curvearrowright;' => {output[0]=0x21b7; fbreak;}; 'cuvee;' => {output[0]=0x22ce; fbreak;}; 'cuwed;' => {output[0]=0x22cf; fbreak;}; 'cwconint;' => {output[0]=0x2232; fbreak;}; 'cwint;' => {output[0]=0x2231; fbreak;}; 'cylcty;' => {output[0]=0x232d; fbreak;}; 'dArr;' => {output[0]=0x21d3; fbreak;}; 'dHar;' => {output[0]=0x2965; fbreak;}; 'dagger;' => {output[0]=0x2020; fbreak;}; 'daleth;' => {output[0]=0x2138; fbreak;}; 'darr;' => {output[0]=0x2193; fbreak;}; 'dash;' => {output[0]=0x2010; fbreak;}; 'dashv;' => {output[0]=0x22a3; fbreak;}; 'dbkarow;' => {output[0]=0x290f; fbreak;}; 'dblac;' => {output[0]=0x2dd; fbreak;}; 'dcaron;' => {output[0]=0x10f; fbreak;}; 'dcy;' => {output[0]=0x434; fbreak;}; 'dd;' => {output[0]=0x2146; fbreak;}; 'ddagger;' => {output[0]=0x2021; fbreak;}; 'ddarr;' => {output[0]=0x21ca; fbreak;}; 'ddotseq;' => {output[0]=0x2a77; fbreak;}; 'deg' . ';'? => {output[0]=0xb0; fbreak;}; 'delta;' => {output[0]=0x3b4; fbreak;}; 'demptyv;' => {output[0]=0x29b1; fbreak;}; 'dfisht;' => {output[0]=0x297f; fbreak;}; 'dfr;' => {output[0]=0x1d521; fbreak;}; 'dharl;' => {output[0]=0x21c3; fbreak;}; 'dharr;' => {output[0]=0x21c2; fbreak;}; 'diam;' => {output[0]=0x22c4; fbreak;}; 'diamond;' => {output[0]=0x22c4; fbreak;}; 'diamondsuit;' => {output[0]=0x2666; fbreak;}; 'diams;' => {output[0]=0x2666; fbreak;}; 'die;' => {output[0]=0xa8; fbreak;}; 'digamma;' => {output[0]=0x3dd; fbreak;}; 'disin;' => {output[0]=0x22f2; fbreak;}; 'div;' => {output[0]=0xf7; fbreak;}; 'divide' . ';'? => {output[0]=0xf7; fbreak;}; 'divideontimes;' => {output[0]=0x22c7; fbreak;}; 'divonx;' => {output[0]=0x22c7; fbreak;}; 'djcy;' => {output[0]=0x452; fbreak;}; 'dlcorn;' => {output[0]=0x231e; fbreak;}; 'dlcrop;' => {output[0]=0x230d; fbreak;}; 'dollar;' => {output[0]=0x24; fbreak;}; 'dopf;' => {output[0]=0x1d555; fbreak;}; 'dot;' => {output[0]=0x2d9; fbreak;}; 'doteq;' => {output[0]=0x2250; fbreak;}; 'doteqdot;' => {output[0]=0x2251; fbreak;}; 'dotminus;' => {output[0]=0x2238; fbreak;}; 'dotplus;' => {output[0]=0x2214; fbreak;}; 'dotsquare;' => {output[0]=0x22a1; fbreak;}; 'doublebarwedge;' => {output[0]=0x2306; fbreak;}; 'downarrow;' => {output[0]=0x2193; fbreak;}; 'downdownarrows;' => {output[0]=0x21ca; fbreak;}; 'downharpoonleft;' => {output[0]=0x21c3; fbreak;}; 'downharpoonright;' => {output[0]=0x21c2; fbreak;}; 'drbkarow;' => {output[0]=0x2910; fbreak;}; 'drcorn;' => {output[0]=0x231f; fbreak;}; 'drcrop;' => {output[0]=0x230c; fbreak;}; 'dscr;' => {output[0]=0x1d4b9; fbreak;}; 'dscy;' => {output[0]=0x455; fbreak;}; 'dsol;' => {output[0]=0x29f6; fbreak;}; 'dstrok;' => {output[0]=0x111; fbreak;}; 'dtdot;' => {output[0]=0x22f1; fbreak;}; 'dtri;' => {output[0]=0x25bf; fbreak;}; 'dtrif;' => {output[0]=0x25be; fbreak;}; 'duarr;' => {output[0]=0x21f5; fbreak;}; 'duhar;' => {output[0]=0x296f; fbreak;}; 'dwangle;' => {output[0]=0x29a6; fbreak;}; 'dzcy;' => {output[0]=0x45f; fbreak;}; 'dzigrarr;' => {output[0]=0x27ff; fbreak;}; 'eDDot;' => {output[0]=0x2a77; fbreak;}; 'eDot;' => {output[0]=0x2251; fbreak;}; 'eacute' . ';'? => {output[0]=0xe9; fbreak;}; 'easter;' => {output[0]=0x2a6e; fbreak;}; 'ecaron;' => {output[0]=0x11b; fbreak;}; 'ecir;' => {output[0]=0x2256; fbreak;}; 'ecirc' . ';'? => {output[0]=0xea; fbreak;}; 'ecolon;' => {output[0]=0x2255; fbreak;}; 'ecy;' => {output[0]=0x44d; fbreak;}; 'edot;' => {output[0]=0x117; fbreak;}; 'ee;' => {output[0]=0x2147; fbreak;}; 'efDot;' => {output[0]=0x2252; fbreak;}; 'efr;' => {output[0]=0x1d522; fbreak;}; 'eg;' => {output[0]=0x2a9a; fbreak;}; 'egrave' . ';'? => {output[0]=0xe8; fbreak;}; 'egs;' => {output[0]=0x2a96; fbreak;}; 'egsdot;' => {output[0]=0x2a98; fbreak;}; 'el;' => {output[0]=0x2a99; fbreak;}; 'elinters;' => {output[0]=0x23e7; fbreak;}; 'ell;' => {output[0]=0x2113; fbreak;}; 'els;' => {output[0]=0x2a95; fbreak;}; 'elsdot;' => {output[0]=0x2a97; fbreak;}; 'emacr;' => {output[0]=0x113; fbreak;}; 'empty;' => {output[0]=0x2205; fbreak;}; 'emptyset;' => {output[0]=0x2205; fbreak;}; 'emptyv;' => {output[0]=0x2205; fbreak;}; 'emsp13;' => {output[0]=0x2004; fbreak;}; 'emsp14;' => {output[0]=0x2005; fbreak;}; 'emsp;' => {output[0]=0x2003; fbreak;}; 'eng;' => {output[0]=0x14b; fbreak;}; 'ensp;' => {output[0]=0x2002; fbreak;}; 'eogon;' => {output[0]=0x119; fbreak;}; 'eopf;' => {output[0]=0x1d556; fbreak;}; 'epar;' => {output[0]=0x22d5; fbreak;}; 'eparsl;' => {output[0]=0x29e3; fbreak;}; 'eplus;' => {output[0]=0x2a71; fbreak;}; 'epsi;' => {output[0]=0x3b5; fbreak;}; 'epsilon;' => {output[0]=0x3b5; fbreak;}; 'epsiv;' => {output[0]=0x3f5; fbreak;}; 'eqcirc;' => {output[0]=0x2256; fbreak;}; 'eqcolon;' => {output[0]=0x2255; fbreak;}; 'eqsim;' => {output[0]=0x2242; fbreak;}; 'eqslantgtr;' => {output[0]=0x2a96; fbreak;}; 'eqslantless;' => {output[0]=0x2a95; fbreak;}; 'equals;' => {output[0]=0x3d; fbreak;}; 'equest;' => {output[0]=0x225f; fbreak;}; 'equiv;' => {output[0]=0x2261; fbreak;}; 'equivDD;' => {output[0]=0x2a78; fbreak;}; 'eqvparsl;' => {output[0]=0x29e5; fbreak;}; 'erDot;' => {output[0]=0x2253; fbreak;}; 'erarr;' => {output[0]=0x2971; fbreak;}; 'escr;' => {output[0]=0x212f; fbreak;}; 'esdot;' => {output[0]=0x2250; fbreak;}; 'esim;' => {output[0]=0x2242; fbreak;}; 'eta;' => {output[0]=0x3b7; fbreak;}; 'eth' . ';'? => {output[0]=0xf0; fbreak;}; 'euml' . ';'? => {output[0]=0xeb; fbreak;}; 'euro;' => {output[0]=0x20ac; fbreak;}; 'excl;' => {output[0]=0x21; fbreak;}; 'exist;' => {output[0]=0x2203; fbreak;}; 'expectation;' => {output[0]=0x2130; fbreak;}; 'exponentiale;' => {output[0]=0x2147; fbreak;}; 'fallingdotseq;' => {output[0]=0x2252; fbreak;}; 'fcy;' => {output[0]=0x444; fbreak;}; 'female;' => {output[0]=0x2640; fbreak;}; 'ffilig;' => {output[0]=0xfb03; fbreak;}; 'fflig;' => {output[0]=0xfb00; fbreak;}; 'ffllig;' => {output[0]=0xfb04; fbreak;}; 'ffr;' => {output[0]=0x1d523; fbreak;}; 'filig;' => {output[0]=0xfb01; fbreak;}; 'fjlig;' => {output[0]=0x66; output[1]=0x6a; fbreak;}; 'flat;' => {output[0]=0x266d; fbreak;}; 'fllig;' => {output[0]=0xfb02; fbreak;}; 'fltns;' => {output[0]=0x25b1; fbreak;}; 'fnof;' => {output[0]=0x192; fbreak;}; 'fopf;' => {output[0]=0x1d557; fbreak;}; 'forall;' => {output[0]=0x2200; fbreak;}; 'fork;' => {output[0]=0x22d4; fbreak;}; 'forkv;' => {output[0]=0x2ad9; fbreak;}; 'fpartint;' => {output[0]=0x2a0d; fbreak;}; 'frac12' . ';'? => {output[0]=0xbd; fbreak;}; 'frac13;' => {output[0]=0x2153; fbreak;}; 'frac14' . ';'? => {output[0]=0xbc; fbreak;}; 'frac15;' => {output[0]=0x2155; fbreak;}; 'frac16;' => {output[0]=0x2159; fbreak;}; 'frac18;' => {output[0]=0x215b; fbreak;}; 'frac23;' => {output[0]=0x2154; fbreak;}; 'frac25;' => {output[0]=0x2156; fbreak;}; 'frac34' . ';'? => {output[0]=0xbe; fbreak;}; 'frac35;' => {output[0]=0x2157; fbreak;}; 'frac38;' => {output[0]=0x215c; fbreak;}; 'frac45;' => {output[0]=0x2158; fbreak;}; 'frac56;' => {output[0]=0x215a; fbreak;}; 'frac58;' => {output[0]=0x215d; fbreak;}; 'frac78;' => {output[0]=0x215e; fbreak;}; 'frasl;' => {output[0]=0x2044; fbreak;}; 'frown;' => {output[0]=0x2322; fbreak;}; 'fscr;' => {output[0]=0x1d4bb; fbreak;}; 'gE;' => {output[0]=0x2267; fbreak;}; 'gEl;' => {output[0]=0x2a8c; fbreak;}; 'gacute;' => {output[0]=0x1f5; fbreak;}; 'gamma;' => {output[0]=0x3b3; fbreak;}; 'gammad;' => {output[0]=0x3dd; fbreak;}; 'gap;' => {output[0]=0x2a86; fbreak;}; 'gbreve;' => {output[0]=0x11f; fbreak;}; 'gcirc;' => {output[0]=0x11d; fbreak;}; 'gcy;' => {output[0]=0x433; fbreak;}; 'gdot;' => {output[0]=0x121; fbreak;}; 'ge;' => {output[0]=0x2265; fbreak;}; 'gel;' => {output[0]=0x22db; fbreak;}; 'geq;' => {output[0]=0x2265; fbreak;}; 'geqq;' => {output[0]=0x2267; fbreak;}; 'geqslant;' => {output[0]=0x2a7e; fbreak;}; 'ges;' => {output[0]=0x2a7e; fbreak;}; 'gescc;' => {output[0]=0x2aa9; fbreak;}; 'gesdot;' => {output[0]=0x2a80; fbreak;}; 'gesdoto;' => {output[0]=0x2a82; fbreak;}; 'gesdotol;' => {output[0]=0x2a84; fbreak;}; 'gesl;' => {output[0]=0x22db; output[1]=0xfe00; fbreak;}; 'gesles;' => {output[0]=0x2a94; fbreak;}; 'gfr;' => {output[0]=0x1d524; fbreak;}; 'gg;' => {output[0]=0x226b; fbreak;}; 'ggg;' => {output[0]=0x22d9; fbreak;}; 'gimel;' => {output[0]=0x2137; fbreak;}; 'gjcy;' => {output[0]=0x453; fbreak;}; 'gl;' => {output[0]=0x2277; fbreak;}; 'glE;' => {output[0]=0x2a92; fbreak;}; 'gla;' => {output[0]=0x2aa5; fbreak;}; 'glj;' => {output[0]=0x2aa4; fbreak;}; 'gnE;' => {output[0]=0x2269; fbreak;}; 'gnap;' => {output[0]=0x2a8a; fbreak;}; 'gnapprox;' => {output[0]=0x2a8a; fbreak;}; 'gne;' => {output[0]=0x2a88; fbreak;}; 'gneq;' => {output[0]=0x2a88; fbreak;}; 'gneqq;' => {output[0]=0x2269; fbreak;}; 'gnsim;' => {output[0]=0x22e7; fbreak;}; 'gopf;' => {output[0]=0x1d558; fbreak;}; 'grave;' => {output[0]=0x60; fbreak;}; 'gscr;' => {output[0]=0x210a; fbreak;}; 'gsim;' => {output[0]=0x2273; fbreak;}; 'gsime;' => {output[0]=0x2a8e; fbreak;}; 'gsiml;' => {output[0]=0x2a90; fbreak;}; 'gt' . ';'? => {output[0]=0x3e; fbreak;}; 'gtcc;' => {output[0]=0x2aa7; fbreak;}; 'gtcir;' => {output[0]=0x2a7a; fbreak;}; 'gtdot;' => {output[0]=0x22d7; fbreak;}; 'gtlPar;' => {output[0]=0x2995; fbreak;}; 'gtquest;' => {output[0]=0x2a7c; fbreak;}; 'gtrapprox;' => {output[0]=0x2a86; fbreak;}; 'gtrarr;' => {output[0]=0x2978; fbreak;}; 'gtrdot;' => {output[0]=0x22d7; fbreak;}; 'gtreqless;' => {output[0]=0x22db; fbreak;}; 'gtreqqless;' => {output[0]=0x2a8c; fbreak;}; 'gtrless;' => {output[0]=0x2277; fbreak;}; 'gtrsim;' => {output[0]=0x2273; fbreak;}; 'gvertneqq;' => {output[0]=0x2269; output[1]=0xfe00; fbreak;}; 'gvnE;' => {output[0]=0x2269; output[1]=0xfe00; fbreak;}; 'hArr;' => {output[0]=0x21d4; fbreak;}; 'hairsp;' => {output[0]=0x200a; fbreak;}; 'half;' => {output[0]=0xbd; fbreak;}; 'hamilt;' => {output[0]=0x210b; fbreak;}; 'hardcy;' => {output[0]=0x44a; fbreak;}; 'harr;' => {output[0]=0x2194; fbreak;}; 'harrcir;' => {output[0]=0x2948; fbreak;}; 'harrw;' => {output[0]=0x21ad; fbreak;}; 'hbar;' => {output[0]=0x210f; fbreak;}; 'hcirc;' => {output[0]=0x125; fbreak;}; 'hearts;' => {output[0]=0x2665; fbreak;}; 'heartsuit;' => {output[0]=0x2665; fbreak;}; 'hellip;' => {output[0]=0x2026; fbreak;}; 'hercon;' => {output[0]=0x22b9; fbreak;}; 'hfr;' => {output[0]=0x1d525; fbreak;}; 'hksearow;' => {output[0]=0x2925; fbreak;}; 'hkswarow;' => {output[0]=0x2926; fbreak;}; 'hoarr;' => {output[0]=0x21ff; fbreak;}; 'homtht;' => {output[0]=0x223b; fbreak;}; 'hookleftarrow;' => {output[0]=0x21a9; fbreak;}; 'hookrightarrow;' => {output[0]=0x21aa; fbreak;}; 'hopf;' => {output[0]=0x1d559; fbreak;}; 'horbar;' => {output[0]=0x2015; fbreak;}; 'hscr;' => {output[0]=0x1d4bd; fbreak;}; 'hslash;' => {output[0]=0x210f; fbreak;}; 'hstrok;' => {output[0]=0x127; fbreak;}; 'hybull;' => {output[0]=0x2043; fbreak;}; 'hyphen;' => {output[0]=0x2010; fbreak;}; 'iacute' . ';'? => {output[0]=0xed; fbreak;}; 'ic;' => {output[0]=0x2063; fbreak;}; 'icirc' . ';'? => {output[0]=0xee; fbreak;}; 'icy;' => {output[0]=0x438; fbreak;}; 'iecy;' => {output[0]=0x435; fbreak;}; 'iexcl' . ';'? => {output[0]=0xa1; fbreak;}; 'iff;' => {output[0]=0x21d4; fbreak;}; 'ifr;' => {output[0]=0x1d526; fbreak;}; 'igrave' . ';'? => {output[0]=0xec; fbreak;}; 'ii;' => {output[0]=0x2148; fbreak;}; 'iiiint;' => {output[0]=0x2a0c; fbreak;}; 'iiint;' => {output[0]=0x222d; fbreak;}; 'iinfin;' => {output[0]=0x29dc; fbreak;}; 'iiota;' => {output[0]=0x2129; fbreak;}; 'ijlig;' => {output[0]=0x133; fbreak;}; 'imacr;' => {output[0]=0x12b; fbreak;}; 'image;' => {output[0]=0x2111; fbreak;}; 'imagline;' => {output[0]=0x2110; fbreak;}; 'imagpart;' => {output[0]=0x2111; fbreak;}; 'imath;' => {output[0]=0x131; fbreak;}; 'imof;' => {output[0]=0x22b7; fbreak;}; 'imped;' => {output[0]=0x1b5; fbreak;}; 'in;' => {output[0]=0x2208; fbreak;}; 'incare;' => {output[0]=0x2105; fbreak;}; 'infin;' => {output[0]=0x221e; fbreak;}; 'infintie;' => {output[0]=0x29dd; fbreak;}; 'inodot;' => {output[0]=0x131; fbreak;}; 'int;' => {output[0]=0x222b; fbreak;}; 'intcal;' => {output[0]=0x22ba; fbreak;}; 'integers;' => {output[0]=0x2124; fbreak;}; 'intercal;' => {output[0]=0x22ba; fbreak;}; 'intlarhk;' => {output[0]=0x2a17; fbreak;}; 'intprod;' => {output[0]=0x2a3c; fbreak;}; 'iocy;' => {output[0]=0x451; fbreak;}; 'iogon;' => {output[0]=0x12f; fbreak;}; 'iopf;' => {output[0]=0x1d55a; fbreak;}; 'iota;' => {output[0]=0x3b9; fbreak;}; 'iprod;' => {output[0]=0x2a3c; fbreak;}; 'iquest' . ';'? => {output[0]=0xbf; fbreak;}; 'iscr;' => {output[0]=0x1d4be; fbreak;}; 'isin;' => {output[0]=0x2208; fbreak;}; 'isinE;' => {output[0]=0x22f9; fbreak;}; 'isindot;' => {output[0]=0x22f5; fbreak;}; 'isins;' => {output[0]=0x22f4; fbreak;}; 'isinsv;' => {output[0]=0x22f3; fbreak;}; 'isinv;' => {output[0]=0x2208; fbreak;}; 'it;' => {output[0]=0x2062; fbreak;}; 'itilde;' => {output[0]=0x129; fbreak;}; 'iukcy;' => {output[0]=0x456; fbreak;}; 'iuml' . ';'? => {output[0]=0xef; fbreak;}; 'jcirc;' => {output[0]=0x135; fbreak;}; 'jcy;' => {output[0]=0x439; fbreak;}; 'jfr;' => {output[0]=0x1d527; fbreak;}; 'jmath;' => {output[0]=0x237; fbreak;}; 'jopf;' => {output[0]=0x1d55b; fbreak;}; 'jscr;' => {output[0]=0x1d4bf; fbreak;}; 'jsercy;' => {output[0]=0x458; fbreak;}; 'jukcy;' => {output[0]=0x454; fbreak;}; 'kappa;' => {output[0]=0x3ba; fbreak;}; 'kappav;' => {output[0]=0x3f0; fbreak;}; 'kcedil;' => {output[0]=0x137; fbreak;}; 'kcy;' => {output[0]=0x43a; fbreak;}; 'kfr;' => {output[0]=0x1d528; fbreak;}; 'kgreen;' => {output[0]=0x138; fbreak;}; 'khcy;' => {output[0]=0x445; fbreak;}; 'kjcy;' => {output[0]=0x45c; fbreak;}; 'kopf;' => {output[0]=0x1d55c; fbreak;}; 'kscr;' => {output[0]=0x1d4c0; fbreak;}; 'lAarr;' => {output[0]=0x21da; fbreak;}; 'lArr;' => {output[0]=0x21d0; fbreak;}; 'lAtail;' => {output[0]=0x291b; fbreak;}; 'lBarr;' => {output[0]=0x290e; fbreak;}; 'lE;' => {output[0]=0x2266; fbreak;}; 'lEg;' => {output[0]=0x2a8b; fbreak;}; 'lHar;' => {output[0]=0x2962; fbreak;}; 'lacute;' => {output[0]=0x13a; fbreak;}; 'laemptyv;' => {output[0]=0x29b4; fbreak;}; 'lagran;' => {output[0]=0x2112; fbreak;}; 'lambda;' => {output[0]=0x3bb; fbreak;}; 'lang;' => {output[0]=0x27e8; fbreak;}; 'langd;' => {output[0]=0x2991; fbreak;}; 'langle;' => {output[0]=0x27e8; fbreak;}; 'lap;' => {output[0]=0x2a85; fbreak;}; 'laquo' . ';'? => {output[0]=0xab; fbreak;}; 'larr;' => {output[0]=0x2190; fbreak;}; 'larrb;' => {output[0]=0x21e4; fbreak;}; 'larrbfs;' => {output[0]=0x291f; fbreak;}; 'larrfs;' => {output[0]=0x291d; fbreak;}; 'larrhk;' => {output[0]=0x21a9; fbreak;}; 'larrlp;' => {output[0]=0x21ab; fbreak;}; 'larrpl;' => {output[0]=0x2939; fbreak;}; 'larrsim;' => {output[0]=0x2973; fbreak;}; 'larrtl;' => {output[0]=0x21a2; fbreak;}; 'lat;' => {output[0]=0x2aab; fbreak;}; 'latail;' => {output[0]=0x2919; fbreak;}; 'late;' => {output[0]=0x2aad; fbreak;}; 'lates;' => {output[0]=0x2aad; output[1]=0xfe00; fbreak;}; 'lbarr;' => {output[0]=0x290c; fbreak;}; 'lbbrk;' => {output[0]=0x2772; fbreak;}; 'lbrace;' => {output[0]=0x7b; fbreak;}; 'lbrack;' => {output[0]=0x5b; fbreak;}; 'lbrke;' => {output[0]=0x298b; fbreak;}; 'lbrksld;' => {output[0]=0x298f; fbreak;}; 'lbrkslu;' => {output[0]=0x298d; fbreak;}; 'lcaron;' => {output[0]=0x13e; fbreak;}; 'lcedil;' => {output[0]=0x13c; fbreak;}; 'lceil;' => {output[0]=0x2308; fbreak;}; 'lcub;' => {output[0]=0x7b; fbreak;}; 'lcy;' => {output[0]=0x43b; fbreak;}; 'ldca;' => {output[0]=0x2936; fbreak;}; 'ldquo;' => {output[0]=0x201c; fbreak;}; 'ldquor;' => {output[0]=0x201e; fbreak;}; 'ldrdhar;' => {output[0]=0x2967; fbreak;}; 'ldrushar;' => {output[0]=0x294b; fbreak;}; 'ldsh;' => {output[0]=0x21b2; fbreak;}; 'le;' => {output[0]=0x2264; fbreak;}; 'leftarrow;' => {output[0]=0x2190; fbreak;}; 'leftarrowtail;' => {output[0]=0x21a2; fbreak;}; 'leftharpoondown;' => {output[0]=0x21bd; fbreak;}; 'leftharpoonup;' => {output[0]=0x21bc; fbreak;}; 'leftleftarrows;' => {output[0]=0x21c7; fbreak;}; 'leftrightarrow;' => {output[0]=0x2194; fbreak;}; 'leftrightarrows;' => {output[0]=0x21c6; fbreak;}; 'leftrightharpoons;' => {output[0]=0x21cb; fbreak;}; 'leftrightsquigarrow;' => {output[0]=0x21ad; fbreak;}; 'leftthreetimes;' => {output[0]=0x22cb; fbreak;}; 'leg;' => {output[0]=0x22da; fbreak;}; 'leq;' => {output[0]=0x2264; fbreak;}; 'leqq;' => {output[0]=0x2266; fbreak;}; 'leqslant;' => {output[0]=0x2a7d; fbreak;}; 'les;' => {output[0]=0x2a7d; fbreak;}; 'lescc;' => {output[0]=0x2aa8; fbreak;}; 'lesdot;' => {output[0]=0x2a7f; fbreak;}; 'lesdoto;' => {output[0]=0x2a81; fbreak;}; 'lesdotor;' => {output[0]=0x2a83; fbreak;}; 'lesg;' => {output[0]=0x22da; output[1]=0xfe00; fbreak;}; 'lesges;' => {output[0]=0x2a93; fbreak;}; 'lessapprox;' => {output[0]=0x2a85; fbreak;}; 'lessdot;' => {output[0]=0x22d6; fbreak;}; 'lesseqgtr;' => {output[0]=0x22da; fbreak;}; 'lesseqqgtr;' => {output[0]=0x2a8b; fbreak;}; 'lessgtr;' => {output[0]=0x2276; fbreak;}; 'lesssim;' => {output[0]=0x2272; fbreak;}; 'lfisht;' => {output[0]=0x297c; fbreak;}; 'lfloor;' => {output[0]=0x230a; fbreak;}; 'lfr;' => {output[0]=0x1d529; fbreak;}; 'lg;' => {output[0]=0x2276; fbreak;}; 'lgE;' => {output[0]=0x2a91; fbreak;}; 'lhard;' => {output[0]=0x21bd; fbreak;}; 'lharu;' => {output[0]=0x21bc; fbreak;}; 'lharul;' => {output[0]=0x296a; fbreak;}; 'lhblk;' => {output[0]=0x2584; fbreak;}; 'ljcy;' => {output[0]=0x459; fbreak;}; 'll;' => {output[0]=0x226a; fbreak;}; 'llarr;' => {output[0]=0x21c7; fbreak;}; 'llcorner;' => {output[0]=0x231e; fbreak;}; 'llhard;' => {output[0]=0x296b; fbreak;}; 'lltri;' => {output[0]=0x25fa; fbreak;}; 'lmidot;' => {output[0]=0x140; fbreak;}; 'lmoust;' => {output[0]=0x23b0; fbreak;}; 'lmoustache;' => {output[0]=0x23b0; fbreak;}; 'lnE;' => {output[0]=0x2268; fbreak;}; 'lnap;' => {output[0]=0x2a89; fbreak;}; 'lnapprox;' => {output[0]=0x2a89; fbreak;}; 'lne;' => {output[0]=0x2a87; fbreak;}; 'lneq;' => {output[0]=0x2a87; fbreak;}; 'lneqq;' => {output[0]=0x2268; fbreak;}; 'lnsim;' => {output[0]=0x22e6; fbreak;}; 'loang;' => {output[0]=0x27ec; fbreak;}; 'loarr;' => {output[0]=0x21fd; fbreak;}; 'lobrk;' => {output[0]=0x27e6; fbreak;}; 'longleftarrow;' => {output[0]=0x27f5; fbreak;}; 'longleftrightarrow;' => {output[0]=0x27f7; fbreak;}; 'longmapsto;' => {output[0]=0x27fc; fbreak;}; 'longrightarrow;' => {output[0]=0x27f6; fbreak;}; 'looparrowleft;' => {output[0]=0x21ab; fbreak;}; 'looparrowright;' => {output[0]=0x21ac; fbreak;}; 'lopar;' => {output[0]=0x2985; fbreak;}; 'lopf;' => {output[0]=0x1d55d; fbreak;}; 'loplus;' => {output[0]=0x2a2d; fbreak;}; 'lotimes;' => {output[0]=0x2a34; fbreak;}; 'lowast;' => {output[0]=0x2217; fbreak;}; 'lowbar;' => {output[0]=0x5f; fbreak;}; 'loz;' => {output[0]=0x25ca; fbreak;}; 'lozenge;' => {output[0]=0x25ca; fbreak;}; 'lozf;' => {output[0]=0x29eb; fbreak;}; 'lpar;' => {output[0]=0x28; fbreak;}; 'lparlt;' => {output[0]=0x2993; fbreak;}; 'lrarr;' => {output[0]=0x21c6; fbreak;}; 'lrcorner;' => {output[0]=0x231f; fbreak;}; 'lrhar;' => {output[0]=0x21cb; fbreak;}; 'lrhard;' => {output[0]=0x296d; fbreak;}; 'lrm;' => {output[0]=0x200e; fbreak;}; 'lrtri;' => {output[0]=0x22bf; fbreak;}; 'lsaquo;' => {output[0]=0x2039; fbreak;}; 'lscr;' => {output[0]=0x1d4c1; fbreak;}; 'lsh;' => {output[0]=0x21b0; fbreak;}; 'lsim;' => {output[0]=0x2272; fbreak;}; 'lsime;' => {output[0]=0x2a8d; fbreak;}; 'lsimg;' => {output[0]=0x2a8f; fbreak;}; 'lsqb;' => {output[0]=0x5b; fbreak;}; 'lsquo;' => {output[0]=0x2018; fbreak;}; 'lsquor;' => {output[0]=0x201a; fbreak;}; 'lstrok;' => {output[0]=0x142; fbreak;}; 'lt' . ';'? => {output[0]=0x3c; fbreak;}; 'ltcc;' => {output[0]=0x2aa6; fbreak;}; 'ltcir;' => {output[0]=0x2a79; fbreak;}; 'ltdot;' => {output[0]=0x22d6; fbreak;}; 'lthree;' => {output[0]=0x22cb; fbreak;}; 'ltimes;' => {output[0]=0x22c9; fbreak;}; 'ltlarr;' => {output[0]=0x2976; fbreak;}; 'ltquest;' => {output[0]=0x2a7b; fbreak;}; 'ltrPar;' => {output[0]=0x2996; fbreak;}; 'ltri;' => {output[0]=0x25c3; fbreak;}; 'ltrie;' => {output[0]=0x22b4; fbreak;}; 'ltrif;' => {output[0]=0x25c2; fbreak;}; 'lurdshar;' => {output[0]=0x294a; fbreak;}; 'luruhar;' => {output[0]=0x2966; fbreak;}; 'lvertneqq;' => {output[0]=0x2268; output[1]=0xfe00; fbreak;}; 'lvnE;' => {output[0]=0x2268; output[1]=0xfe00; fbreak;}; 'mDDot;' => {output[0]=0x223a; fbreak;}; 'macr' . ';'? => {output[0]=0xaf; fbreak;}; 'male;' => {output[0]=0x2642; fbreak;}; 'malt;' => {output[0]=0x2720; fbreak;}; 'maltese;' => {output[0]=0x2720; fbreak;}; 'map;' => {output[0]=0x21a6; fbreak;}; 'mapsto;' => {output[0]=0x21a6; fbreak;}; 'mapstodown;' => {output[0]=0x21a7; fbreak;}; 'mapstoleft;' => {output[0]=0x21a4; fbreak;}; 'mapstoup;' => {output[0]=0x21a5; fbreak;}; 'marker;' => {output[0]=0x25ae; fbreak;}; 'mcomma;' => {output[0]=0x2a29; fbreak;}; 'mcy;' => {output[0]=0x43c; fbreak;}; 'mdash;' => {output[0]=0x2014; fbreak;}; 'measuredangle;' => {output[0]=0x2221; fbreak;}; 'mfr;' => {output[0]=0x1d52a; fbreak;}; 'mho;' => {output[0]=0x2127; fbreak;}; 'micro' . ';'? => {output[0]=0xb5; fbreak;}; 'mid;' => {output[0]=0x2223; fbreak;}; 'midast;' => {output[0]=0x2a; fbreak;}; 'midcir;' => {output[0]=0x2af0; fbreak;}; 'middot' . ';'? => {output[0]=0xb7; fbreak;}; 'minus;' => {output[0]=0x2212; fbreak;}; 'minusb;' => {output[0]=0x229f; fbreak;}; 'minusd;' => {output[0]=0x2238; fbreak;}; 'minusdu;' => {output[0]=0x2a2a; fbreak;}; 'mlcp;' => {output[0]=0x2adb; fbreak;}; 'mldr;' => {output[0]=0x2026; fbreak;}; 'mnplus;' => {output[0]=0x2213; fbreak;}; 'models;' => {output[0]=0x22a7; fbreak;}; 'mopf;' => {output[0]=0x1d55e; fbreak;}; 'mp;' => {output[0]=0x2213; fbreak;}; 'mscr;' => {output[0]=0x1d4c2; fbreak;}; 'mstpos;' => {output[0]=0x223e; fbreak;}; 'mu;' => {output[0]=0x3bc; fbreak;}; 'multimap;' => {output[0]=0x22b8; fbreak;}; 'mumap;' => {output[0]=0x22b8; fbreak;}; 'nGg;' => {output[0]=0x22d9; output[1]=0x338; fbreak;}; 'nGt;' => {output[0]=0x226b; output[1]=0x20d2; fbreak;}; 'nGtv;' => {output[0]=0x226b; output[1]=0x338; fbreak;}; 'nLeftarrow;' => {output[0]=0x21cd; fbreak;}; 'nLeftrightarrow;' => {output[0]=0x21ce; fbreak;}; 'nLl;' => {output[0]=0x22d8; output[1]=0x338; fbreak;}; 'nLt;' => {output[0]=0x226a; output[1]=0x20d2; fbreak;}; 'nLtv;' => {output[0]=0x226a; output[1]=0x338; fbreak;}; 'nRightarrow;' => {output[0]=0x21cf; fbreak;}; 'nVDash;' => {output[0]=0x22af; fbreak;}; 'nVdash;' => {output[0]=0x22ae; fbreak;}; 'nabla;' => {output[0]=0x2207; fbreak;}; 'nacute;' => {output[0]=0x144; fbreak;}; 'nang;' => {output[0]=0x2220; output[1]=0x20d2; fbreak;}; 'nap;' => {output[0]=0x2249; fbreak;}; 'napE;' => {output[0]=0x2a70; output[1]=0x338; fbreak;}; 'napid;' => {output[0]=0x224b; output[1]=0x338; fbreak;}; 'napos;' => {output[0]=0x149; fbreak;}; 'napprox;' => {output[0]=0x2249; fbreak;}; 'natur;' => {output[0]=0x266e; fbreak;}; 'natural;' => {output[0]=0x266e; fbreak;}; 'naturals;' => {output[0]=0x2115; fbreak;}; 'nbsp' . ';'? => {output[0]=0xa0; fbreak;}; 'nbump;' => {output[0]=0x224e; output[1]=0x338; fbreak;}; 'nbumpe;' => {output[0]=0x224f; output[1]=0x338; fbreak;}; 'ncap;' => {output[0]=0x2a43; fbreak;}; 'ncaron;' => {output[0]=0x148; fbreak;}; 'ncedil;' => {output[0]=0x146; fbreak;}; 'ncong;' => {output[0]=0x2247; fbreak;}; 'ncongdot;' => {output[0]=0x2a6d; output[1]=0x338; fbreak;}; 'ncup;' => {output[0]=0x2a42; fbreak;}; 'ncy;' => {output[0]=0x43d; fbreak;}; 'ndash;' => {output[0]=0x2013; fbreak;}; 'ne;' => {output[0]=0x2260; fbreak;}; 'neArr;' => {output[0]=0x21d7; fbreak;}; 'nearhk;' => {output[0]=0x2924; fbreak;}; 'nearr;' => {output[0]=0x2197; fbreak;}; 'nearrow;' => {output[0]=0x2197; fbreak;}; 'nedot;' => {output[0]=0x2250; output[1]=0x338; fbreak;}; 'nequiv;' => {output[0]=0x2262; fbreak;}; 'nesear;' => {output[0]=0x2928; fbreak;}; 'nesim;' => {output[0]=0x2242; output[1]=0x338; fbreak;}; 'nexist;' => {output[0]=0x2204; fbreak;}; 'nexists;' => {output[0]=0x2204; fbreak;}; 'nfr;' => {output[0]=0x1d52b; fbreak;}; 'ngE;' => {output[0]=0x2267; output[1]=0x338; fbreak;}; 'nge;' => {output[0]=0x2271; fbreak;}; 'ngeq;' => {output[0]=0x2271; fbreak;}; 'ngeqq;' => {output[0]=0x2267; output[1]=0x338; fbreak;}; 'ngeqslant;' => {output[0]=0x2a7e; output[1]=0x338; fbreak;}; 'nges;' => {output[0]=0x2a7e; output[1]=0x338; fbreak;}; 'ngsim;' => {output[0]=0x2275; fbreak;}; 'ngt;' => {output[0]=0x226f; fbreak;}; 'ngtr;' => {output[0]=0x226f; fbreak;}; 'nhArr;' => {output[0]=0x21ce; fbreak;}; 'nharr;' => {output[0]=0x21ae; fbreak;}; 'nhpar;' => {output[0]=0x2af2; fbreak;}; 'ni;' => {output[0]=0x220b; fbreak;}; 'nis;' => {output[0]=0x22fc; fbreak;}; 'nisd;' => {output[0]=0x22fa; fbreak;}; 'niv;' => {output[0]=0x220b; fbreak;}; 'njcy;' => {output[0]=0x45a; fbreak;}; 'nlArr;' => {output[0]=0x21cd; fbreak;}; 'nlE;' => {output[0]=0x2266; output[1]=0x338; fbreak;}; 'nlarr;' => {output[0]=0x219a; fbreak;}; 'nldr;' => {output[0]=0x2025; fbreak;}; 'nle;' => {output[0]=0x2270; fbreak;}; 'nleftarrow;' => {output[0]=0x219a; fbreak;}; 'nleftrightarrow;' => {output[0]=0x21ae; fbreak;}; 'nleq;' => {output[0]=0x2270; fbreak;}; 'nleqq;' => {output[0]=0x2266; output[1]=0x338; fbreak;}; 'nleqslant;' => {output[0]=0x2a7d; output[1]=0x338; fbreak;}; 'nles;' => {output[0]=0x2a7d; output[1]=0x338; fbreak;}; 'nless;' => {output[0]=0x226e; fbreak;}; 'nlsim;' => {output[0]=0x2274; fbreak;}; 'nlt;' => {output[0]=0x226e; fbreak;}; 'nltri;' => {output[0]=0x22ea; fbreak;}; 'nltrie;' => {output[0]=0x22ec; fbreak;}; 'nmid;' => {output[0]=0x2224; fbreak;}; 'nopf;' => {output[0]=0x1d55f; fbreak;}; 'not' . ';'? => {output[0]=0xac; fbreak;}; 'notin;' => {output[0]=0x2209; fbreak;}; 'notinE;' => {output[0]=0x22f9; output[1]=0x338; fbreak;}; 'notindot;' => {output[0]=0x22f5; output[1]=0x338; fbreak;}; 'notinva;' => {output[0]=0x2209; fbreak;}; 'notinvb;' => {output[0]=0x22f7; fbreak;}; 'notinvc;' => {output[0]=0x22f6; fbreak;}; 'notni;' => {output[0]=0x220c; fbreak;}; 'notniva;' => {output[0]=0x220c; fbreak;}; 'notnivb;' => {output[0]=0x22fe; fbreak;}; 'notnivc;' => {output[0]=0x22fd; fbreak;}; 'npar;' => {output[0]=0x2226; fbreak;}; 'nparallel;' => {output[0]=0x2226; fbreak;}; 'nparsl;' => {output[0]=0x2afd; output[1]=0x20e5; fbreak;}; 'npart;' => {output[0]=0x2202; output[1]=0x338; fbreak;}; 'npolint;' => {output[0]=0x2a14; fbreak;}; 'npr;' => {output[0]=0x2280; fbreak;}; 'nprcue;' => {output[0]=0x22e0; fbreak;}; 'npre;' => {output[0]=0x2aaf; output[1]=0x338; fbreak;}; 'nprec;' => {output[0]=0x2280; fbreak;}; 'npreceq;' => {output[0]=0x2aaf; output[1]=0x338; fbreak;}; 'nrArr;' => {output[0]=0x21cf; fbreak;}; 'nrarr;' => {output[0]=0x219b; fbreak;}; 'nrarrc;' => {output[0]=0x2933; output[1]=0x338; fbreak;}; 'nrarrw;' => {output[0]=0x219d; output[1]=0x338; fbreak;}; 'nrightarrow;' => {output[0]=0x219b; fbreak;}; 'nrtri;' => {output[0]=0x22eb; fbreak;}; 'nrtrie;' => {output[0]=0x22ed; fbreak;}; 'nsc;' => {output[0]=0x2281; fbreak;}; 'nsccue;' => {output[0]=0x22e1; fbreak;}; 'nsce;' => {output[0]=0x2ab0; output[1]=0x338; fbreak;}; 'nscr;' => {output[0]=0x1d4c3; fbreak;}; 'nshortmid;' => {output[0]=0x2224; fbreak;}; 'nshortparallel;' => {output[0]=0x2226; fbreak;}; 'nsim;' => {output[0]=0x2241; fbreak;}; 'nsime;' => {output[0]=0x2244; fbreak;}; 'nsimeq;' => {output[0]=0x2244; fbreak;}; 'nsmid;' => {output[0]=0x2224; fbreak;}; 'nspar;' => {output[0]=0x2226; fbreak;}; 'nsqsube;' => {output[0]=0x22e2; fbreak;}; 'nsqsupe;' => {output[0]=0x22e3; fbreak;}; 'nsub;' => {output[0]=0x2284; fbreak;}; 'nsubE;' => {output[0]=0x2ac5; output[1]=0x338; fbreak;}; 'nsube;' => {output[0]=0x2288; fbreak;}; 'nsubset;' => {output[0]=0x2282; output[1]=0x20d2; fbreak;}; 'nsubseteq;' => {output[0]=0x2288; fbreak;}; 'nsubseteqq;' => {output[0]=0x2ac5; output[1]=0x338; fbreak;}; 'nsucc;' => {output[0]=0x2281; fbreak;}; 'nsucceq;' => {output[0]=0x2ab0; output[1]=0x338; fbreak;}; 'nsup;' => {output[0]=0x2285; fbreak;}; 'nsupE;' => {output[0]=0x2ac6; output[1]=0x338; fbreak;}; 'nsupe;' => {output[0]=0x2289; fbreak;}; 'nsupset;' => {output[0]=0x2283; output[1]=0x20d2; fbreak;}; 'nsupseteq;' => {output[0]=0x2289; fbreak;}; 'nsupseteqq;' => {output[0]=0x2ac6; output[1]=0x338; fbreak;}; 'ntgl;' => {output[0]=0x2279; fbreak;}; 'ntilde' . ';'? => {output[0]=0xf1; fbreak;}; 'ntlg;' => {output[0]=0x2278; fbreak;}; 'ntriangleleft;' => {output[0]=0x22ea; fbreak;}; 'ntrianglelefteq;' => {output[0]=0x22ec; fbreak;}; 'ntriangleright;' => {output[0]=0x22eb; fbreak;}; 'ntrianglerighteq;' => {output[0]=0x22ed; fbreak;}; 'nu;' => {output[0]=0x3bd; fbreak;}; 'num;' => {output[0]=0x23; fbreak;}; 'numero;' => {output[0]=0x2116; fbreak;}; 'numsp;' => {output[0]=0x2007; fbreak;}; 'nvDash;' => {output[0]=0x22ad; fbreak;}; 'nvHarr;' => {output[0]=0x2904; fbreak;}; 'nvap;' => {output[0]=0x224d; output[1]=0x20d2; fbreak;}; 'nvdash;' => {output[0]=0x22ac; fbreak;}; 'nvge;' => {output[0]=0x2265; output[1]=0x20d2; fbreak;}; 'nvgt;' => {output[0]=0x3e; output[1]=0x20d2; fbreak;}; 'nvinfin;' => {output[0]=0x29de; fbreak;}; 'nvlArr;' => {output[0]=0x2902; fbreak;}; 'nvle;' => {output[0]=0x2264; output[1]=0x20d2; fbreak;}; 'nvlt;' => {output[0]=0x3c; output[1]=0x20d2; fbreak;}; 'nvltrie;' => {output[0]=0x22b4; output[1]=0x20d2; fbreak;}; 'nvrArr;' => {output[0]=0x2903; fbreak;}; 'nvrtrie;' => {output[0]=0x22b5; output[1]=0x20d2; fbreak;}; 'nvsim;' => {output[0]=0x223c; output[1]=0x20d2; fbreak;}; 'nwArr;' => {output[0]=0x21d6; fbreak;}; 'nwarhk;' => {output[0]=0x2923; fbreak;}; 'nwarr;' => {output[0]=0x2196; fbreak;}; 'nwarrow;' => {output[0]=0x2196; fbreak;}; 'nwnear;' => {output[0]=0x2927; fbreak;}; 'oS;' => {output[0]=0x24c8; fbreak;}; 'oacute' . ';'? => {output[0]=0xf3; fbreak;}; 'oast;' => {output[0]=0x229b; fbreak;}; 'ocir;' => {output[0]=0x229a; fbreak;}; 'ocirc' . ';'? => {output[0]=0xf4; fbreak;}; 'ocy;' => {output[0]=0x43e; fbreak;}; 'odash;' => {output[0]=0x229d; fbreak;}; 'odblac;' => {output[0]=0x151; fbreak;}; 'odiv;' => {output[0]=0x2a38; fbreak;}; 'odot;' => {output[0]=0x2299; fbreak;}; 'odsold;' => {output[0]=0x29bc; fbreak;}; 'oelig;' => {output[0]=0x153; fbreak;}; 'ofcir;' => {output[0]=0x29bf; fbreak;}; 'ofr;' => {output[0]=0x1d52c; fbreak;}; 'ogon;' => {output[0]=0x2db; fbreak;}; 'ograve' . ';'? => {output[0]=0xf2; fbreak;}; 'ogt;' => {output[0]=0x29c1; fbreak;}; 'ohbar;' => {output[0]=0x29b5; fbreak;}; 'ohm;' => {output[0]=0x3a9; fbreak;}; 'oint;' => {output[0]=0x222e; fbreak;}; 'olarr;' => {output[0]=0x21ba; fbreak;}; 'olcir;' => {output[0]=0x29be; fbreak;}; 'olcross;' => {output[0]=0x29bb; fbreak;}; 'oline;' => {output[0]=0x203e; fbreak;}; 'olt;' => {output[0]=0x29c0; fbreak;}; 'omacr;' => {output[0]=0x14d; fbreak;}; 'omega;' => {output[0]=0x3c9; fbreak;}; 'omicron;' => {output[0]=0x3bf; fbreak;}; 'omid;' => {output[0]=0x29b6; fbreak;}; 'ominus;' => {output[0]=0x2296; fbreak;}; 'oopf;' => {output[0]=0x1d560; fbreak;}; 'opar;' => {output[0]=0x29b7; fbreak;}; 'operp;' => {output[0]=0x29b9; fbreak;}; 'oplus;' => {output[0]=0x2295; fbreak;}; 'or;' => {output[0]=0x2228; fbreak;}; 'orarr;' => {output[0]=0x21bb; fbreak;}; 'ord;' => {output[0]=0x2a5d; fbreak;}; 'order;' => {output[0]=0x2134; fbreak;}; 'orderof;' => {output[0]=0x2134; fbreak;}; 'ordf' . ';'? => {output[0]=0xaa; fbreak;}; 'ordm' . ';'? => {output[0]=0xba; fbreak;}; 'origof;' => {output[0]=0x22b6; fbreak;}; 'oror;' => {output[0]=0x2a56; fbreak;}; 'orslope;' => {output[0]=0x2a57; fbreak;}; 'orv;' => {output[0]=0x2a5b; fbreak;}; 'oscr;' => {output[0]=0x2134; fbreak;}; 'oslash' . ';'? => {output[0]=0xf8; fbreak;}; 'osol;' => {output[0]=0x2298; fbreak;}; 'otilde' . ';'? => {output[0]=0xf5; fbreak;}; 'otimes;' => {output[0]=0x2297; fbreak;}; 'otimesas;' => {output[0]=0x2a36; fbreak;}; 'ouml' . ';'? => {output[0]=0xf6; fbreak;}; 'ovbar;' => {output[0]=0x233d; fbreak;}; 'par;' => {output[0]=0x2225; fbreak;}; 'para' . ';'? => {output[0]=0xb6; fbreak;}; 'parallel;' => {output[0]=0x2225; fbreak;}; 'parsim;' => {output[0]=0x2af3; fbreak;}; 'parsl;' => {output[0]=0x2afd; fbreak;}; 'part;' => {output[0]=0x2202; fbreak;}; 'pcy;' => {output[0]=0x43f; fbreak;}; 'percnt;' => {output[0]=0x25; fbreak;}; 'period;' => {output[0]=0x2e; fbreak;}; 'permil;' => {output[0]=0x2030; fbreak;}; 'perp;' => {output[0]=0x22a5; fbreak;}; 'pertenk;' => {output[0]=0x2031; fbreak;}; 'pfr;' => {output[0]=0x1d52d; fbreak;}; 'phi;' => {output[0]=0x3c6; fbreak;}; 'phiv;' => {output[0]=0x3d5; fbreak;}; 'phmmat;' => {output[0]=0x2133; fbreak;}; 'phone;' => {output[0]=0x260e; fbreak;}; 'pi;' => {output[0]=0x3c0; fbreak;}; 'pitchfork;' => {output[0]=0x22d4; fbreak;}; 'piv;' => {output[0]=0x3d6; fbreak;}; 'planck;' => {output[0]=0x210f; fbreak;}; 'planckh;' => {output[0]=0x210e; fbreak;}; 'plankv;' => {output[0]=0x210f; fbreak;}; 'plus;' => {output[0]=0x2b; fbreak;}; 'plusacir;' => {output[0]=0x2a23; fbreak;}; 'plusb;' => {output[0]=0x229e; fbreak;}; 'pluscir;' => {output[0]=0x2a22; fbreak;}; 'plusdo;' => {output[0]=0x2214; fbreak;}; 'plusdu;' => {output[0]=0x2a25; fbreak;}; 'pluse;' => {output[0]=0x2a72; fbreak;}; 'plusmn' . ';'? => {output[0]=0xb1; fbreak;}; 'plussim;' => {output[0]=0x2a26; fbreak;}; 'plustwo;' => {output[0]=0x2a27; fbreak;}; 'pm;' => {output[0]=0xb1; fbreak;}; 'pointint;' => {output[0]=0x2a15; fbreak;}; 'popf;' => {output[0]=0x1d561; fbreak;}; 'pound' . ';'? => {output[0]=0xa3; fbreak;}; 'pr;' => {output[0]=0x227a; fbreak;}; 'prE;' => {output[0]=0x2ab3; fbreak;}; 'prap;' => {output[0]=0x2ab7; fbreak;}; 'prcue;' => {output[0]=0x227c; fbreak;}; 'pre;' => {output[0]=0x2aaf; fbreak;}; 'prec;' => {output[0]=0x227a; fbreak;}; 'precapprox;' => {output[0]=0x2ab7; fbreak;}; 'preccurlyeq;' => {output[0]=0x227c; fbreak;}; 'preceq;' => {output[0]=0x2aaf; fbreak;}; 'precnapprox;' => {output[0]=0x2ab9; fbreak;}; 'precneqq;' => {output[0]=0x2ab5; fbreak;}; 'precnsim;' => {output[0]=0x22e8; fbreak;}; 'precsim;' => {output[0]=0x227e; fbreak;}; 'prime;' => {output[0]=0x2032; fbreak;}; 'primes;' => {output[0]=0x2119; fbreak;}; 'prnE;' => {output[0]=0x2ab5; fbreak;}; 'prnap;' => {output[0]=0x2ab9; fbreak;}; 'prnsim;' => {output[0]=0x22e8; fbreak;}; 'prod;' => {output[0]=0x220f; fbreak;}; 'profalar;' => {output[0]=0x232e; fbreak;}; 'profline;' => {output[0]=0x2312; fbreak;}; 'profsurf;' => {output[0]=0x2313; fbreak;}; 'prop;' => {output[0]=0x221d; fbreak;}; 'propto;' => {output[0]=0x221d; fbreak;}; 'prsim;' => {output[0]=0x227e; fbreak;}; 'prurel;' => {output[0]=0x22b0; fbreak;}; 'pscr;' => {output[0]=0x1d4c5; fbreak;}; 'psi;' => {output[0]=0x3c8; fbreak;}; 'puncsp;' => {output[0]=0x2008; fbreak;}; 'qfr;' => {output[0]=0x1d52e; fbreak;}; 'qint;' => {output[0]=0x2a0c; fbreak;}; 'qopf;' => {output[0]=0x1d562; fbreak;}; 'qprime;' => {output[0]=0x2057; fbreak;}; 'qscr;' => {output[0]=0x1d4c6; fbreak;}; 'quaternions;' => {output[0]=0x210d; fbreak;}; 'quatint;' => {output[0]=0x2a16; fbreak;}; 'quest;' => {output[0]=0x3f; fbreak;}; 'questeq;' => {output[0]=0x225f; fbreak;}; 'quot' . ';'? => {output[0]=0x22; fbreak;}; 'rAarr;' => {output[0]=0x21db; fbreak;}; 'rArr;' => {output[0]=0x21d2; fbreak;}; 'rAtail;' => {output[0]=0x291c; fbreak;}; 'rBarr;' => {output[0]=0x290f; fbreak;}; 'rHar;' => {output[0]=0x2964; fbreak;}; 'race;' => {output[0]=0x223d; output[1]=0x331; fbreak;}; 'racute;' => {output[0]=0x155; fbreak;}; 'radic;' => {output[0]=0x221a; fbreak;}; 'raemptyv;' => {output[0]=0x29b3; fbreak;}; 'rang;' => {output[0]=0x27e9; fbreak;}; 'rangd;' => {output[0]=0x2992; fbreak;}; 'range;' => {output[0]=0x29a5; fbreak;}; 'rangle;' => {output[0]=0x27e9; fbreak;}; 'raquo' . ';'? => {output[0]=0xbb; fbreak;}; 'rarr;' => {output[0]=0x2192; fbreak;}; 'rarrap;' => {output[0]=0x2975; fbreak;}; 'rarrb;' => {output[0]=0x21e5; fbreak;}; 'rarrbfs;' => {output[0]=0x2920; fbreak;}; 'rarrc;' => {output[0]=0x2933; fbreak;}; 'rarrfs;' => {output[0]=0x291e; fbreak;}; 'rarrhk;' => {output[0]=0x21aa; fbreak;}; 'rarrlp;' => {output[0]=0x21ac; fbreak;}; 'rarrpl;' => {output[0]=0x2945; fbreak;}; 'rarrsim;' => {output[0]=0x2974; fbreak;}; 'rarrtl;' => {output[0]=0x21a3; fbreak;}; 'rarrw;' => {output[0]=0x219d; fbreak;}; 'ratail;' => {output[0]=0x291a; fbreak;}; 'ratio;' => {output[0]=0x2236; fbreak;}; 'rationals;' => {output[0]=0x211a; fbreak;}; 'rbarr;' => {output[0]=0x290d; fbreak;}; 'rbbrk;' => {output[0]=0x2773; fbreak;}; 'rbrace;' => {output[0]=0x7d; fbreak;}; 'rbrack;' => {output[0]=0x5d; fbreak;}; 'rbrke;' => {output[0]=0x298c; fbreak;}; 'rbrksld;' => {output[0]=0x298e; fbreak;}; 'rbrkslu;' => {output[0]=0x2990; fbreak;}; 'rcaron;' => {output[0]=0x159; fbreak;}; 'rcedil;' => {output[0]=0x157; fbreak;}; 'rceil;' => {output[0]=0x2309; fbreak;}; 'rcub;' => {output[0]=0x7d; fbreak;}; 'rcy;' => {output[0]=0x440; fbreak;}; 'rdca;' => {output[0]=0x2937; fbreak;}; 'rdldhar;' => {output[0]=0x2969; fbreak;}; 'rdquo;' => {output[0]=0x201d; fbreak;}; 'rdquor;' => {output[0]=0x201d; fbreak;}; 'rdsh;' => {output[0]=0x21b3; fbreak;}; 'real;' => {output[0]=0x211c; fbreak;}; 'realine;' => {output[0]=0x211b; fbreak;}; 'realpart;' => {output[0]=0x211c; fbreak;}; 'reals;' => {output[0]=0x211d; fbreak;}; 'rect;' => {output[0]=0x25ad; fbreak;}; 'reg' . ';'? => {output[0]=0xae; fbreak;}; 'rfisht;' => {output[0]=0x297d; fbreak;}; 'rfloor;' => {output[0]=0x230b; fbreak;}; 'rfr;' => {output[0]=0x1d52f; fbreak;}; 'rhard;' => {output[0]=0x21c1; fbreak;}; 'rharu;' => {output[0]=0x21c0; fbreak;}; 'rharul;' => {output[0]=0x296c; fbreak;}; 'rho;' => {output[0]=0x3c1; fbreak;}; 'rhov;' => {output[0]=0x3f1; fbreak;}; 'rightarrow;' => {output[0]=0x2192; fbreak;}; 'rightarrowtail;' => {output[0]=0x21a3; fbreak;}; 'rightharpoondown;' => {output[0]=0x21c1; fbreak;}; 'rightharpoonup;' => {output[0]=0x21c0; fbreak;}; 'rightleftarrows;' => {output[0]=0x21c4; fbreak;}; 'rightleftharpoons;' => {output[0]=0x21cc; fbreak;}; 'rightrightarrows;' => {output[0]=0x21c9; fbreak;}; 'rightsquigarrow;' => {output[0]=0x219d; fbreak;}; 'rightthreetimes;' => {output[0]=0x22cc; fbreak;}; 'ring;' => {output[0]=0x2da; fbreak;}; 'risingdotseq;' => {output[0]=0x2253; fbreak;}; 'rlarr;' => {output[0]=0x21c4; fbreak;}; 'rlhar;' => {output[0]=0x21cc; fbreak;}; 'rlm;' => {output[0]=0x200f; fbreak;}; 'rmoust;' => {output[0]=0x23b1; fbreak;}; 'rmoustache;' => {output[0]=0x23b1; fbreak;}; 'rnmid;' => {output[0]=0x2aee; fbreak;}; 'roang;' => {output[0]=0x27ed; fbreak;}; 'roarr;' => {output[0]=0x21fe; fbreak;}; 'robrk;' => {output[0]=0x27e7; fbreak;}; 'ropar;' => {output[0]=0x2986; fbreak;}; 'ropf;' => {output[0]=0x1d563; fbreak;}; 'roplus;' => {output[0]=0x2a2e; fbreak;}; 'rotimes;' => {output[0]=0x2a35; fbreak;}; 'rpar;' => {output[0]=0x29; fbreak;}; 'rpargt;' => {output[0]=0x2994; fbreak;}; 'rppolint;' => {output[0]=0x2a12; fbreak;}; 'rrarr;' => {output[0]=0x21c9; fbreak;}; 'rsaquo;' => {output[0]=0x203a; fbreak;}; 'rscr;' => {output[0]=0x1d4c7; fbreak;}; 'rsh;' => {output[0]=0x21b1; fbreak;}; 'rsqb;' => {output[0]=0x5d; fbreak;}; 'rsquo;' => {output[0]=0x2019; fbreak;}; 'rsquor;' => {output[0]=0x2019; fbreak;}; 'rthree;' => {output[0]=0x22cc; fbreak;}; 'rtimes;' => {output[0]=0x22ca; fbreak;}; 'rtri;' => {output[0]=0x25b9; fbreak;}; 'rtrie;' => {output[0]=0x22b5; fbreak;}; 'rtrif;' => {output[0]=0x25b8; fbreak;}; 'rtriltri;' => {output[0]=0x29ce; fbreak;}; 'ruluhar;' => {output[0]=0x2968; fbreak;}; 'rx;' => {output[0]=0x211e; fbreak;}; 'sacute;' => {output[0]=0x15b; fbreak;}; 'sbquo;' => {output[0]=0x201a; fbreak;}; 'sc;' => {output[0]=0x227b; fbreak;}; 'scE;' => {output[0]=0x2ab4; fbreak;}; 'scap;' => {output[0]=0x2ab8; fbreak;}; 'scaron;' => {output[0]=0x161; fbreak;}; 'sccue;' => {output[0]=0x227d; fbreak;}; 'sce;' => {output[0]=0x2ab0; fbreak;}; 'scedil;' => {output[0]=0x15f; fbreak;}; 'scirc;' => {output[0]=0x15d; fbreak;}; 'scnE;' => {output[0]=0x2ab6; fbreak;}; 'scnap;' => {output[0]=0x2aba; fbreak;}; 'scnsim;' => {output[0]=0x22e9; fbreak;}; 'scpolint;' => {output[0]=0x2a13; fbreak;}; 'scsim;' => {output[0]=0x227f; fbreak;}; 'scy;' => {output[0]=0x441; fbreak;}; 'sdot;' => {output[0]=0x22c5; fbreak;}; 'sdotb;' => {output[0]=0x22a1; fbreak;}; 'sdote;' => {output[0]=0x2a66; fbreak;}; 'seArr;' => {output[0]=0x21d8; fbreak;}; 'searhk;' => {output[0]=0x2925; fbreak;}; 'searr;' => {output[0]=0x2198; fbreak;}; 'searrow;' => {output[0]=0x2198; fbreak;}; 'sect' . ';'? => {output[0]=0xa7; fbreak;}; 'semi;' => {output[0]=0x3b; fbreak;}; 'seswar;' => {output[0]=0x2929; fbreak;}; 'setminus;' => {output[0]=0x2216; fbreak;}; 'setmn;' => {output[0]=0x2216; fbreak;}; 'sext;' => {output[0]=0x2736; fbreak;}; 'sfr;' => {output[0]=0x1d530; fbreak;}; 'sfrown;' => {output[0]=0x2322; fbreak;}; 'sharp;' => {output[0]=0x266f; fbreak;}; 'shchcy;' => {output[0]=0x449; fbreak;}; 'shcy;' => {output[0]=0x448; fbreak;}; 'shortmid;' => {output[0]=0x2223; fbreak;}; 'shortparallel;' => {output[0]=0x2225; fbreak;}; 'shy' . ';'? => {output[0]=0xad; fbreak;}; 'sigma;' => {output[0]=0x3c3; fbreak;}; 'sigmaf;' => {output[0]=0x3c2; fbreak;}; 'sigmav;' => {output[0]=0x3c2; fbreak;}; 'sim;' => {output[0]=0x223c; fbreak;}; 'simdot;' => {output[0]=0x2a6a; fbreak;}; 'sime;' => {output[0]=0x2243; fbreak;}; 'simeq;' => {output[0]=0x2243; fbreak;}; 'simg;' => {output[0]=0x2a9e; fbreak;}; 'simgE;' => {output[0]=0x2aa0; fbreak;}; 'siml;' => {output[0]=0x2a9d; fbreak;}; 'simlE;' => {output[0]=0x2a9f; fbreak;}; 'simne;' => {output[0]=0x2246; fbreak;}; 'simplus;' => {output[0]=0x2a24; fbreak;}; 'simrarr;' => {output[0]=0x2972; fbreak;}; 'slarr;' => {output[0]=0x2190; fbreak;}; 'smallsetminus;' => {output[0]=0x2216; fbreak;}; 'smashp;' => {output[0]=0x2a33; fbreak;}; 'smeparsl;' => {output[0]=0x29e4; fbreak;}; 'smid;' => {output[0]=0x2223; fbreak;}; 'smile;' => {output[0]=0x2323; fbreak;}; 'smt;' => {output[0]=0x2aaa; fbreak;}; 'smte;' => {output[0]=0x2aac; fbreak;}; 'smtes;' => {output[0]=0x2aac; output[1]=0xfe00; fbreak;}; 'softcy;' => {output[0]=0x44c; fbreak;}; 'sol;' => {output[0]=0x2f; fbreak;}; 'solb;' => {output[0]=0x29c4; fbreak;}; 'solbar;' => {output[0]=0x233f; fbreak;}; 'sopf;' => {output[0]=0x1d564; fbreak;}; 'spades;' => {output[0]=0x2660; fbreak;}; 'spadesuit;' => {output[0]=0x2660; fbreak;}; 'spar;' => {output[0]=0x2225; fbreak;}; 'sqcap;' => {output[0]=0x2293; fbreak;}; 'sqcaps;' => {output[0]=0x2293; output[1]=0xfe00; fbreak;}; 'sqcup;' => {output[0]=0x2294; fbreak;}; 'sqcups;' => {output[0]=0x2294; output[1]=0xfe00; fbreak;}; 'sqsub;' => {output[0]=0x228f; fbreak;}; 'sqsube;' => {output[0]=0x2291; fbreak;}; 'sqsubset;' => {output[0]=0x228f; fbreak;}; 'sqsubseteq;' => {output[0]=0x2291; fbreak;}; 'sqsup;' => {output[0]=0x2290; fbreak;}; 'sqsupe;' => {output[0]=0x2292; fbreak;}; 'sqsupset;' => {output[0]=0x2290; fbreak;}; 'sqsupseteq;' => {output[0]=0x2292; fbreak;}; 'squ;' => {output[0]=0x25a1; fbreak;}; 'square;' => {output[0]=0x25a1; fbreak;}; 'squarf;' => {output[0]=0x25aa; fbreak;}; 'squf;' => {output[0]=0x25aa; fbreak;}; 'srarr;' => {output[0]=0x2192; fbreak;}; 'sscr;' => {output[0]=0x1d4c8; fbreak;}; 'ssetmn;' => {output[0]=0x2216; fbreak;}; 'ssmile;' => {output[0]=0x2323; fbreak;}; 'sstarf;' => {output[0]=0x22c6; fbreak;}; 'star;' => {output[0]=0x2606; fbreak;}; 'starf;' => {output[0]=0x2605; fbreak;}; 'straightepsilon;' => {output[0]=0x3f5; fbreak;}; 'straightphi;' => {output[0]=0x3d5; fbreak;}; 'strns;' => {output[0]=0xaf; fbreak;}; 'sub;' => {output[0]=0x2282; fbreak;}; 'subE;' => {output[0]=0x2ac5; fbreak;}; 'subdot;' => {output[0]=0x2abd; fbreak;}; 'sube;' => {output[0]=0x2286; fbreak;}; 'subedot;' => {output[0]=0x2ac3; fbreak;}; 'submult;' => {output[0]=0x2ac1; fbreak;}; 'subnE;' => {output[0]=0x2acb; fbreak;}; 'subne;' => {output[0]=0x228a; fbreak;}; 'subplus;' => {output[0]=0x2abf; fbreak;}; 'subrarr;' => {output[0]=0x2979; fbreak;}; 'subset;' => {output[0]=0x2282; fbreak;}; 'subseteq;' => {output[0]=0x2286; fbreak;}; 'subseteqq;' => {output[0]=0x2ac5; fbreak;}; 'subsetneq;' => {output[0]=0x228a; fbreak;}; 'subsetneqq;' => {output[0]=0x2acb; fbreak;}; 'subsim;' => {output[0]=0x2ac7; fbreak;}; 'subsub;' => {output[0]=0x2ad5; fbreak;}; 'subsup;' => {output[0]=0x2ad3; fbreak;}; 'succ;' => {output[0]=0x227b; fbreak;}; 'succapprox;' => {output[0]=0x2ab8; fbreak;}; 'succcurlyeq;' => {output[0]=0x227d; fbreak;}; 'succeq;' => {output[0]=0x2ab0; fbreak;}; 'succnapprox;' => {output[0]=0x2aba; fbreak;}; 'succneqq;' => {output[0]=0x2ab6; fbreak;}; 'succnsim;' => {output[0]=0x22e9; fbreak;}; 'succsim;' => {output[0]=0x227f; fbreak;}; 'sum;' => {output[0]=0x2211; fbreak;}; 'sung;' => {output[0]=0x266a; fbreak;}; 'sup1' . ';'? => {output[0]=0xb9; fbreak;}; 'sup2' . ';'? => {output[0]=0xb2; fbreak;}; 'sup3' . ';'? => {output[0]=0xb3; fbreak;}; 'sup;' => {output[0]=0x2283; fbreak;}; 'supE;' => {output[0]=0x2ac6; fbreak;}; 'supdot;' => {output[0]=0x2abe; fbreak;}; 'supdsub;' => {output[0]=0x2ad8; fbreak;}; 'supe;' => {output[0]=0x2287; fbreak;}; 'supedot;' => {output[0]=0x2ac4; fbreak;}; 'suphsol;' => {output[0]=0x27c9; fbreak;}; 'suphsub;' => {output[0]=0x2ad7; fbreak;}; 'suplarr;' => {output[0]=0x297b; fbreak;}; 'supmult;' => {output[0]=0x2ac2; fbreak;}; 'supnE;' => {output[0]=0x2acc; fbreak;}; 'supne;' => {output[0]=0x228b; fbreak;}; 'supplus;' => {output[0]=0x2ac0; fbreak;}; 'supset;' => {output[0]=0x2283; fbreak;}; 'supseteq;' => {output[0]=0x2287; fbreak;}; 'supseteqq;' => {output[0]=0x2ac6; fbreak;}; 'supsetneq;' => {output[0]=0x228b; fbreak;}; 'supsetneqq;' => {output[0]=0x2acc; fbreak;}; 'supsim;' => {output[0]=0x2ac8; fbreak;}; 'supsub;' => {output[0]=0x2ad4; fbreak;}; 'supsup;' => {output[0]=0x2ad6; fbreak;}; 'swArr;' => {output[0]=0x21d9; fbreak;}; 'swarhk;' => {output[0]=0x2926; fbreak;}; 'swarr;' => {output[0]=0x2199; fbreak;}; 'swarrow;' => {output[0]=0x2199; fbreak;}; 'swnwar;' => {output[0]=0x292a; fbreak;}; 'szlig' . ';'? => {output[0]=0xdf; fbreak;}; 'target;' => {output[0]=0x2316; fbreak;}; 'tau;' => {output[0]=0x3c4; fbreak;}; 'tbrk;' => {output[0]=0x23b4; fbreak;}; 'tcaron;' => {output[0]=0x165; fbreak;}; 'tcedil;' => {output[0]=0x163; fbreak;}; 'tcy;' => {output[0]=0x442; fbreak;}; 'tdot;' => {output[0]=0x20db; fbreak;}; 'telrec;' => {output[0]=0x2315; fbreak;}; 'tfr;' => {output[0]=0x1d531; fbreak;}; 'there4;' => {output[0]=0x2234; fbreak;}; 'therefore;' => {output[0]=0x2234; fbreak;}; 'theta;' => {output[0]=0x3b8; fbreak;}; 'thetasym;' => {output[0]=0x3d1; fbreak;}; 'thetav;' => {output[0]=0x3d1; fbreak;}; 'thickapprox;' => {output[0]=0x2248; fbreak;}; 'thicksim;' => {output[0]=0x223c; fbreak;}; 'thinsp;' => {output[0]=0x2009; fbreak;}; 'thkap;' => {output[0]=0x2248; fbreak;}; 'thksim;' => {output[0]=0x223c; fbreak;}; 'thorn' . ';'? => {output[0]=0xfe; fbreak;}; 'tilde;' => {output[0]=0x2dc; fbreak;}; 'times' . ';'? => {output[0]=0xd7; fbreak;}; 'timesb;' => {output[0]=0x22a0; fbreak;}; 'timesbar;' => {output[0]=0x2a31; fbreak;}; 'timesd;' => {output[0]=0x2a30; fbreak;}; 'tint;' => {output[0]=0x222d; fbreak;}; 'toea;' => {output[0]=0x2928; fbreak;}; 'top;' => {output[0]=0x22a4; fbreak;}; 'topbot;' => {output[0]=0x2336; fbreak;}; 'topcir;' => {output[0]=0x2af1; fbreak;}; 'topf;' => {output[0]=0x1d565; fbreak;}; 'topfork;' => {output[0]=0x2ada; fbreak;}; 'tosa;' => {output[0]=0x2929; fbreak;}; 'tprime;' => {output[0]=0x2034; fbreak;}; 'trade;' => {output[0]=0x2122; fbreak;}; 'triangle;' => {output[0]=0x25b5; fbreak;}; 'triangledown;' => {output[0]=0x25bf; fbreak;}; 'triangleleft;' => {output[0]=0x25c3; fbreak;}; 'trianglelefteq;' => {output[0]=0x22b4; fbreak;}; 'triangleq;' => {output[0]=0x225c; fbreak;}; 'triangleright;' => {output[0]=0x25b9; fbreak;}; 'trianglerighteq;' => {output[0]=0x22b5; fbreak;}; 'tridot;' => {output[0]=0x25ec; fbreak;}; 'trie;' => {output[0]=0x225c; fbreak;}; 'triminus;' => {output[0]=0x2a3a; fbreak;}; 'triplus;' => {output[0]=0x2a39; fbreak;}; 'trisb;' => {output[0]=0x29cd; fbreak;}; 'tritime;' => {output[0]=0x2a3b; fbreak;}; 'trpezium;' => {output[0]=0x23e2; fbreak;}; 'tscr;' => {output[0]=0x1d4c9; fbreak;}; 'tscy;' => {output[0]=0x446; fbreak;}; 'tshcy;' => {output[0]=0x45b; fbreak;}; 'tstrok;' => {output[0]=0x167; fbreak;}; 'twixt;' => {output[0]=0x226c; fbreak;}; 'twoheadleftarrow;' => {output[0]=0x219e; fbreak;}; 'twoheadrightarrow;' => {output[0]=0x21a0; fbreak;}; 'uArr;' => {output[0]=0x21d1; fbreak;}; 'uHar;' => {output[0]=0x2963; fbreak;}; 'uacute' . ';'? => {output[0]=0xfa; fbreak;}; 'uarr;' => {output[0]=0x2191; fbreak;}; 'ubrcy;' => {output[0]=0x45e; fbreak;}; 'ubreve;' => {output[0]=0x16d; fbreak;}; 'ucirc' . ';'? => {output[0]=0xfb; fbreak;}; 'ucy;' => {output[0]=0x443; fbreak;}; 'udarr;' => {output[0]=0x21c5; fbreak;}; 'udblac;' => {output[0]=0x171; fbreak;}; 'udhar;' => {output[0]=0x296e; fbreak;}; 'ufisht;' => {output[0]=0x297e; fbreak;}; 'ufr;' => {output[0]=0x1d532; fbreak;}; 'ugrave' . ';'? => {output[0]=0xf9; fbreak;}; 'uharl;' => {output[0]=0x21bf; fbreak;}; 'uharr;' => {output[0]=0x21be; fbreak;}; 'uhblk;' => {output[0]=0x2580; fbreak;}; 'ulcorn;' => {output[0]=0x231c; fbreak;}; 'ulcorner;' => {output[0]=0x231c; fbreak;}; 'ulcrop;' => {output[0]=0x230f; fbreak;}; 'ultri;' => {output[0]=0x25f8; fbreak;}; 'umacr;' => {output[0]=0x16b; fbreak;}; 'uml' . ';'? => {output[0]=0xa8; fbreak;}; 'uogon;' => {output[0]=0x173; fbreak;}; 'uopf;' => {output[0]=0x1d566; fbreak;}; 'uparrow;' => {output[0]=0x2191; fbreak;}; 'updownarrow;' => {output[0]=0x2195; fbreak;}; 'upharpoonleft;' => {output[0]=0x21bf; fbreak;}; 'upharpoonright;' => {output[0]=0x21be; fbreak;}; 'uplus;' => {output[0]=0x228e; fbreak;}; 'upsi;' => {output[0]=0x3c5; fbreak;}; 'upsih;' => {output[0]=0x3d2; fbreak;}; 'upsilon;' => {output[0]=0x3c5; fbreak;}; 'upuparrows;' => {output[0]=0x21c8; fbreak;}; 'urcorn;' => {output[0]=0x231d; fbreak;}; 'urcorner;' => {output[0]=0x231d; fbreak;}; 'urcrop;' => {output[0]=0x230e; fbreak;}; 'uring;' => {output[0]=0x16f; fbreak;}; 'urtri;' => {output[0]=0x25f9; fbreak;}; 'uscr;' => {output[0]=0x1d4ca; fbreak;}; 'utdot;' => {output[0]=0x22f0; fbreak;}; 'utilde;' => {output[0]=0x169; fbreak;}; 'utri;' => {output[0]=0x25b5; fbreak;}; 'utrif;' => {output[0]=0x25b4; fbreak;}; 'uuarr;' => {output[0]=0x21c8; fbreak;}; 'uuml' . ';'? => {output[0]=0xfc; fbreak;}; 'uwangle;' => {output[0]=0x29a7; fbreak;}; 'vArr;' => {output[0]=0x21d5; fbreak;}; 'vBar;' => {output[0]=0x2ae8; fbreak;}; 'vBarv;' => {output[0]=0x2ae9; fbreak;}; 'vDash;' => {output[0]=0x22a8; fbreak;}; 'vangrt;' => {output[0]=0x299c; fbreak;}; 'varepsilon;' => {output[0]=0x3f5; fbreak;}; 'varkappa;' => {output[0]=0x3f0; fbreak;}; 'varnothing;' => {output[0]=0x2205; fbreak;}; 'varphi;' => {output[0]=0x3d5; fbreak;}; 'varpi;' => {output[0]=0x3d6; fbreak;}; 'varpropto;' => {output[0]=0x221d; fbreak;}; 'varr;' => {output[0]=0x2195; fbreak;}; 'varrho;' => {output[0]=0x3f1; fbreak;}; 'varsigma;' => {output[0]=0x3c2; fbreak;}; 'varsubsetneq;' => {output[0]=0x228a; output[1]=0xfe00; fbreak;}; 'varsubsetneqq;' => {output[0]=0x2acb; output[1]=0xfe00; fbreak;}; 'varsupsetneq;' => {output[0]=0x228b; output[1]=0xfe00; fbreak;}; 'varsupsetneqq;' => {output[0]=0x2acc; output[1]=0xfe00; fbreak;}; 'vartheta;' => {output[0]=0x3d1; fbreak;}; 'vartriangleleft;' => {output[0]=0x22b2; fbreak;}; 'vartriangleright;' => {output[0]=0x22b3; fbreak;}; 'vcy;' => {output[0]=0x432; fbreak;}; 'vdash;' => {output[0]=0x22a2; fbreak;}; 'vee;' => {output[0]=0x2228; fbreak;}; 'veebar;' => {output[0]=0x22bb; fbreak;}; 'veeeq;' => {output[0]=0x225a; fbreak;}; 'vellip;' => {output[0]=0x22ee; fbreak;}; 'verbar;' => {output[0]=0x7c; fbreak;}; 'vert;' => {output[0]=0x7c; fbreak;}; 'vfr;' => {output[0]=0x1d533; fbreak;}; 'vltri;' => {output[0]=0x22b2; fbreak;}; 'vnsub;' => {output[0]=0x2282; output[1]=0x20d2; fbreak;}; 'vnsup;' => {output[0]=0x2283; output[1]=0x20d2; fbreak;}; 'vopf;' => {output[0]=0x1d567; fbreak;}; 'vprop;' => {output[0]=0x221d; fbreak;}; 'vrtri;' => {output[0]=0x22b3; fbreak;}; 'vscr;' => {output[0]=0x1d4cb; fbreak;}; 'vsubnE;' => {output[0]=0x2acb; output[1]=0xfe00; fbreak;}; 'vsubne;' => {output[0]=0x228a; output[1]=0xfe00; fbreak;}; 'vsupnE;' => {output[0]=0x2acc; output[1]=0xfe00; fbreak;}; 'vsupne;' => {output[0]=0x228b; output[1]=0xfe00; fbreak;}; 'vzigzag;' => {output[0]=0x299a; fbreak;}; 'wcirc;' => {output[0]=0x175; fbreak;}; 'wedbar;' => {output[0]=0x2a5f; fbreak;}; 'wedge;' => {output[0]=0x2227; fbreak;}; 'wedgeq;' => {output[0]=0x2259; fbreak;}; 'weierp;' => {output[0]=0x2118; fbreak;}; 'wfr;' => {output[0]=0x1d534; fbreak;}; 'wopf;' => {output[0]=0x1d568; fbreak;}; 'wp;' => {output[0]=0x2118; fbreak;}; 'wr;' => {output[0]=0x2240; fbreak;}; 'wreath;' => {output[0]=0x2240; fbreak;}; 'wscr;' => {output[0]=0x1d4cc; fbreak;}; 'xcap;' => {output[0]=0x22c2; fbreak;}; 'xcirc;' => {output[0]=0x25ef; fbreak;}; 'xcup;' => {output[0]=0x22c3; fbreak;}; 'xdtri;' => {output[0]=0x25bd; fbreak;}; 'xfr;' => {output[0]=0x1d535; fbreak;}; 'xhArr;' => {output[0]=0x27fa; fbreak;}; 'xharr;' => {output[0]=0x27f7; fbreak;}; 'xi;' => {output[0]=0x3be; fbreak;}; 'xlArr;' => {output[0]=0x27f8; fbreak;}; 'xlarr;' => {output[0]=0x27f5; fbreak;}; 'xmap;' => {output[0]=0x27fc; fbreak;}; 'xnis;' => {output[0]=0x22fb; fbreak;}; 'xodot;' => {output[0]=0x2a00; fbreak;}; 'xopf;' => {output[0]=0x1d569; fbreak;}; 'xoplus;' => {output[0]=0x2a01; fbreak;}; 'xotime;' => {output[0]=0x2a02; fbreak;}; 'xrArr;' => {output[0]=0x27f9; fbreak;}; 'xrarr;' => {output[0]=0x27f6; fbreak;}; 'xscr;' => {output[0]=0x1d4cd; fbreak;}; 'xsqcup;' => {output[0]=0x2a06; fbreak;}; 'xuplus;' => {output[0]=0x2a04; fbreak;}; 'xutri;' => {output[0]=0x25b3; fbreak;}; 'xvee;' => {output[0]=0x22c1; fbreak;}; 'xwedge;' => {output[0]=0x22c0; fbreak;}; 'yacute' . ';'? => {output[0]=0xfd; fbreak;}; 'yacy;' => {output[0]=0x44f; fbreak;}; 'ycirc;' => {output[0]=0x177; fbreak;}; 'ycy;' => {output[0]=0x44b; fbreak;}; 'yen' . ';'? => {output[0]=0xa5; fbreak;}; 'yfr;' => {output[0]=0x1d536; fbreak;}; 'yicy;' => {output[0]=0x457; fbreak;}; 'yopf;' => {output[0]=0x1d56a; fbreak;}; 'yscr;' => {output[0]=0x1d4ce; fbreak;}; 'yucy;' => {output[0]=0x44e; fbreak;}; 'yuml' . ';'? => {output[0]=0xff; fbreak;}; 'zacute;' => {output[0]=0x17a; fbreak;}; 'zcaron;' => {output[0]=0x17e; fbreak;}; 'zcy;' => {output[0]=0x437; fbreak;}; 'zdot;' => {output[0]=0x17c; fbreak;}; 'zeetrf;' => {output[0]=0x2128; fbreak;}; 'zeta;' => {output[0]=0x3b6; fbreak;}; 'zfr;' => {output[0]=0x1d537; fbreak;}; 'zhcy;' => {output[0]=0x436; fbreak;}; 'zigrarr;' => {output[0]=0x21dd; fbreak;}; 'zopf;' => {output[0]=0x1d56b; fbreak;}; 'zscr;' => {output[0]=0x1d4cf; fbreak;}; 'zwj;' => {output[0]=0x200d; fbreak;}; 'zwnj;' => {output[0]=0x200c; fbreak;}; *|; write data noerror nofinal noentry noprefix; }%% size_t match_named_char_ref ( const char *str, size_t size, int output[2] ) { int cs; int act; const char *p = str; const char *pe = str + size; const char *const eof = pe; const char *ts; const char *te; output[0] = output[1] = kGumboNoChar; %% write init; %% write exec; (void)ts; (void)act; size = p - str; return cs >= %%{ write first_final; }%%? size:0; }
Ragel in Ruby Host
4
jrekoske/jrekoske.github.io
vendor/bundle/ruby/3.1.0/gems/nokogiri-1.12.4/gumbo-parser/src/char_ref.rl
[ "MIT" ]
# Intel framework support for RADIUS usernames # CrowdStrike 2014 # [email protected] @load base/protocols/radius @load base/frameworks/intel @load policy/frameworks/intel/seen/where-locations event RADIUS::log_radius(rec: RADIUS::Info) { if ( rec?$username && rec?$result ) if ( rec$result == "success" ) Intel::seen([$indicator=rec$username, $indicator_type=Intel::USER_NAME, $where=RADIUS::IN_USER_NAME]); }
Bro
4
kingtuna/cs-bro
bro-scripts/intel-extensions/seen/radius-username.bro
[ "BSD-2-Clause" ]
*** Settings *** Library DynamicWithKwargs.py *** Variables *** ${a} a ${b} b *** Test Cases *** Simple usage ${ret} = One Arg arg=value Should Be Equal ${ret} arg:value ${ret} = Two Args first=1 second=2 Should Be Equal ${ret} first:1, second:2 ${ret} = Four Args a=A b=B c=C d=D Should Be Equal ${ret} a:A, b:B, c:C, d:D ${ret} = Kwargs a=A b=B c=C d=D Should Be Equal ${ret} a:A, b:B, c:C, d:D Variable in name ${ret} = One Arg ${a}rg=value Should Be Equal ${ret} arg:value ${ret} = Four Args ${a}=A ${b}=B c=C d=D Should Be Equal ${ret} a:A, b:B, c:C, d:D ${ret} = Kwargs ${a}=A ${b}=B c=C d=D ${a.upper()}=first Should Be Equal ${ret} A:first, a:A, b:B, c:C, d:D Order does not matter ${ret} = Two Args second=bar first=foo Should Be Equal ${ret} first:foo, second:bar ${ret} = Four Args b=B d=D c=C ${a}=A Should Be Equal ${ret} a:A, b:B, c:C, d:D Last named wins ${ret} = Two Args first=foo second=bar second=!!! first=WIN Should Be Equal ${ret} first:WIN, second:!!! ${ret} = Four Args b=B d=D c=C a=A a=X ${b}=Y c=Z ... ${a}=W d=? c=N b=I d=! Should Be Equal ${ret} a:W, b:I, c:N, d:! ${ret} = Kwargs b=B d=D c=C a=A a=X b=Y c=Z ... a=W d=? c=N ${b}=I d=! Should Be Equal ${ret} a:W, b:I, c:N, d:! Positional and named ${ret} = Two Args foo second=bar Should Be Equal ${ret} foo, second:bar ${ret} = Four Args A B d=D c=C Should Be Equal ${ret} A, B, c:C, d:D ${ret} = Args & Kwargs A B C k=1 w=2 Should Be Equal ${ret} A, B, C, k:1, w:2 ${ret} = Args, Varargs & Kwargs A B C D E k=1 w=2 Should Be Equal ${ret} A, B, C, D, E, k:1, w:2 Values with defaults can be omitted at the end ${ret} = Four Args a=A b=B c=C Should Be Equal ${ret} a:A, b:B, c:C ${ret} = Four Args a=A Should Be Equal ${ret} a:A ${ret} = Args & Kwargs a=A k=1 w=2 Should Be Equal ${ret} a:A, k:1, w:2 Values with defaults can be omitted in the middle ${ret} = Four Args a=A d=D Should Be Equal ${ret} a:A, d:D ${ret} = Four Args d=D Should Be Equal ${ret} d:D ${ret} = Four Args c=C Should Be Equal ${ret} c:C ${ret} = Args & Kwargs k=1 w=2 c=C a=A Should Be Equal ${ret} a:A, c:C, k:1, w:2 Non-string values ${ret} = One Arg arg=${42} Should Be Equal ${ret} arg:42 (int) ${ret} = Two Args first=${1} second=${2} Should Be Equal ${ret} first:1 (int), second:2 (int) ${ret} = Four Args a=${1} d=${True} Should Be Equal ${ret} a:1 (int), d:True (bool) ${ret} = Kwargs a=${1} b=${2.0} c=${False} Should Be Equal ${ret} a:1 (int), b:2.0 (float), c:False (bool) Nön-ÄSCII values ${ret} = Two Args first=ensimmäinen second=官话 Should Be Equal ${ret} first:ensimmäinen, second:官话 ${ret} = Kwargs a=Ä o=Ö third=官话 Should Be Equal ${ret} a:Ä, o:Ö, third:官话 Nön-ÄSCII names ${ret} = Nön-ÄSCII names 官话=спасибо nönäscii=官话 Should Be Equal ${ret} nönäscii:官话, 官话:спасибо ${ret} = Kwargs å=Å 官话=спасибо Should Be Equal ${ret} å:Å, 官话:спасибо Equal sign in value ${ret} = One Arg arg=bar=quux Should Be Equal ${ret} arg:bar=quux ${ret} = Kwargs a=b=c x== Should Be Equal ${ret} a:b=c, x:= Equal sign in name ${ret} = Kwargs a\=b=c x\== Should Be Equal ${ret} a=b:c, x=: Equal sign from variable ${value} = Set Variable arg=value ${ret} = One Arg ${value} Should Be Equal ${ret} arg=value Equal sign with non-existing name ${ret} = One Arg not=arg Should Be Equal ${ret} not=arg Escaping equal sign ${ret} = One Arg arg\=escaped Should Be Equal ${ret} arg=escaped Escaping value ${ret} = Four Args a=\${notvar} b=\n c=\\n d=\ Should Be Equal ${ret} a:\${notvar}, b:\n, c:\\n, d: ${ret} = Defaults w/ Specials d=\ Should Be Equal ${ret} d: Inside "Run Keyword" ${ret} = Run Keyword Four Args A B d=D c=C Should Be Equal ${ret} A, B, c:C, d:D ${ret} = Run Keyword Args & Kwargs A B d=D c=C e=E Should Be Equal ${ret} A, B, c:C, d:D, e:E Varargs without naming works ${ret} = Args & Varargs foo bar dar Should be equal ${ret} foo, bar, dar ${ret} = Args & Varargs foo bar=bar dar Should be equal ${ret} foo, bar=bar, dar ${ret} = Args & Varargs foo b\=bar dar Should be equal ${ret} foo, b=bar, dar ${ret} = Args & Varargs foo bar quux=qaax Should be equal ${ret} foo, bar, quux=qaax ${ret} = Args, Varargs & Kwargs foo bar zap Should be equal ${ret} foo, bar, zap Naming without varargs works ${ret} = Args & Varargs foo b=bar Should be equal ${ret} foo, b:bar ${ret} = Args & Varargs a=1 b=2 Should be equal ${ret} a:1, b:2 ${ret} = Args & Varargs b=B a=A Should be equal ${ret} a:A, b:B ${ret} = Args, Varargs & Kwargs x=1 a=A b=B y=2 Should be equal ${ret} a:A, b:B, x:1, y:2 Positional after named 1 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Varargs' got positional argument after named arguments. Args & Varargs foo b=bar dar Positional after named 2 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Varargs' got positional argument after named arguments. Args & Varargs foo b=bar @{EMPTY} Positional after named 3 [Documentation] FAIL Keyword 'DynamicWithKwargs.Two Args' got positional argument after named arguments. Two Args first=1 oops Positional after named 4 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Kwargs' got positional argument after named arguments. Args & Kwargs kw=value ooops Missing argument 1 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Varargs' missing value for argument 'a'. Args & Varargs b=value Missing argument 2 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Kwargs' missing value for argument 'a'. Args & Kwargs b=value kw=value c=value Multiple values for argument 1 [Documentation] FAIL Keyword 'DynamicWithKwargs.Two Args' got multiple values for argument 'first'. Two Args 1 first=oops Multiple values for argument 2 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Varargs' got multiple values for argument 'a'. Args & Varargs A B a=ooops Multiple values for argument 3 [Documentation] FAIL Keyword 'DynamicWithKwargs.Args & Kwargs' got multiple values for argument 'a'. Args & Kwargs A B a=ooops
RobotFramework
5
phil-davis/robotframework
atest/testdata/keywords/named_args/dynamic_with_kwargs.robot
[ "ECL-2.0", "Apache-2.0" ]
sub util1() ?"statement 1" ?"statement 2" end sub sub util_y() end sub
Brightscript
1
lkipke/brs
test/parser/resources/scripts/utilityExtended.brs
[ "MIT" ]
= RESTful Notes API Guide Baeldung; :doctype: book :icons: font :source-highlighter: highlightjs :toc: left :toclevels: 4 :sectlinks: [[overview]] = Overview [[overview-http-verbs]] == HTTP verbs RESTful notes tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP verbs. |=== | Verb | Usage | `GET` | Used to retrieve a resource | `POST` | Used to create a new resource | `PUT` | Used to update an existing resource | `DELETE` | Used to delete an existing resource |=== RESTful notes tries to adhere as closely as possible to standard HTTP and REST conventions in its use of HTTP status codes. |=== | Status code | Usage | `200 OK` | The request completed successfully | `201 Created` | A new resource has been created successfully. The resource's URI is available from the response's `Location` header | `204 No Content` | An update to an existing resource has been applied successfully | `400 Bad Request` | The request was malformed. The response body will include an error providing further information | `404 Not Found` | The requested resource did not exist |=== [[overview-hypermedia]] == Hypermedia RESTful Notes uses hypermedia and resources include links to other resources in their responses. Responses are in http://stateless.co/hal_specification.html[Hypertext Application from resource to resource. Language (HAL)] format. Links can be found beneath the `_links` key. Users of the API should not create URIs themselves, instead they should use the above-described links to navigate [[resources]] = Resources [[resources-FOO]] == FOO REST Service The FOO provides the entry point into the service. [[resources-foo-get]] === Accessing the foo GET A `GET` request is used to access the foo read. ==== Request structure include::{snippets}/getAFoo/http-request.adoc[] ==== Path Parameters include::{snippets}/getAFoo/path-parameters.adoc[] ==== Example response include::{snippets}/getAFoo/http-response.adoc[] ==== CURL request include::{snippets}/getAFoo/curl-request.adoc[] [[resources-foo-post]] === Accessing the foo POST A `POST` request is used to access the foo create. ==== Request structure include::{snippets}/createFoo/http-request.adoc[] ==== Example response include::{snippets}/createFoo/http-response.adoc[] ==== CURL request include::{snippets}/createFoo/curl-request.adoc[] [[resources-foo-delete]] === Accessing the foo DELETE A `DELETE` request is used to access the foo delete. ==== Request structure include::{snippets}/deleteFoo/http-request.adoc[] ==== Path Parameters include::{snippets}/deleteFoo/path-parameters.adoc[] ==== Example response include::{snippets}/deleteFoo/http-response.adoc[] ==== CURL request include::{snippets}/deleteFoo/curl-request.adoc[] [[resources-foo-put]] === Accessing the foo PUT A `PUT` request is used to access the foo update. ==== Request structure include::{snippets}/updateFoo/http-request.adoc[] ==== Path Parameters include::{snippets}/updateFoo/path-parameters.adoc[] ==== Example response include::{snippets}/updateFoo/http-response.adoc[] ==== CURL request include::{snippets}/updateFoo/curl-request.adoc[]
AsciiDoc
4
DBatOWL/tutorials
spring-boot-modules/spring-boot-springdoc/src/main/resources/asciidocs/fooapi.adoc
[ "MIT" ]
// ============================================================== // File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2016.4 // Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved. // // ============================================================== //----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG DuneDataCompressionCore your_instance_name ( .s_axi_BUS_A_AWVALID(s_axi_BUS_A_AWVALID), // input s_axi_BUS_A_AWVALID .s_axi_BUS_A_AWREADY(s_axi_BUS_A_AWREADY), // output s_axi_BUS_A_AWREADY .s_axi_BUS_A_AWADDR(s_axi_BUS_A_AWADDR), // input [9:0] s_axi_BUS_A_AWADDR .s_axi_BUS_A_WVALID(s_axi_BUS_A_WVALID), // input s_axi_BUS_A_WVALID .s_axi_BUS_A_WREADY(s_axi_BUS_A_WREADY), // output s_axi_BUS_A_WREADY .s_axi_BUS_A_WDATA(s_axi_BUS_A_WDATA), // input [31:0] s_axi_BUS_A_WDATA .s_axi_BUS_A_WSTRB(s_axi_BUS_A_WSTRB), // input [3:0] s_axi_BUS_A_WSTRB .s_axi_BUS_A_ARVALID(s_axi_BUS_A_ARVALID), // input s_axi_BUS_A_ARVALID .s_axi_BUS_A_ARREADY(s_axi_BUS_A_ARREADY), // output s_axi_BUS_A_ARREADY .s_axi_BUS_A_ARADDR(s_axi_BUS_A_ARADDR), // input [9:0] s_axi_BUS_A_ARADDR .s_axi_BUS_A_RVALID(s_axi_BUS_A_RVALID), // output s_axi_BUS_A_RVALID .s_axi_BUS_A_RREADY(s_axi_BUS_A_RREADY), // input s_axi_BUS_A_RREADY .s_axi_BUS_A_RDATA(s_axi_BUS_A_RDATA), // output [31:0] s_axi_BUS_A_RDATA .s_axi_BUS_A_RRESP(s_axi_BUS_A_RRESP), // output [1:0] s_axi_BUS_A_RRESP .s_axi_BUS_A_BVALID(s_axi_BUS_A_BVALID), // output s_axi_BUS_A_BVALID .s_axi_BUS_A_BREADY(s_axi_BUS_A_BREADY), // input s_axi_BUS_A_BREADY .s_axi_BUS_A_BRESP(s_axi_BUS_A_BRESP), // output [1:0] s_axi_BUS_A_BRESP .ap_clk(ap_clk), // input ap_clk .ap_rst_n(ap_rst_n), // input ap_rst_n .interrupt(interrupt), // output interrupt .sAxis_TDATA(sAxis_TDATA), // input [63:0] sAxis_TDATA .sAxis_TKEEP(sAxis_TKEEP), // input [7:0] sAxis_TKEEP .sAxis_TSTRB(sAxis_TSTRB), // input [7:0] sAxis_TSTRB .sAxis_TUSER(sAxis_TUSER), // input [3:0] sAxis_TUSER .sAxis_TLAST(sAxis_TLAST), // input [0:0] sAxis_TLAST .sAxis_TID(sAxis_TID), // input [0:0] sAxis_TID .sAxis_TDEST(sAxis_TDEST), // input [0:0] sAxis_TDEST .mAxis_TDATA(mAxis_TDATA), // output [63:0] mAxis_TDATA .mAxis_TKEEP(mAxis_TKEEP), // output [7:0] mAxis_TKEEP .mAxis_TSTRB(mAxis_TSTRB), // output [7:0] mAxis_TSTRB .mAxis_TUSER(mAxis_TUSER), // output [3:0] mAxis_TUSER .mAxis_TLAST(mAxis_TLAST), // output [0:0] mAxis_TLAST .mAxis_TID(mAxis_TID), // output [0:0] mAxis_TID .mAxis_TDEST(mAxis_TDEST), // output [0:0] mAxis_TDEST .moduleIdx_V(moduleIdx_V), // input [0:0] moduleIdx_V .sAxis_TVALID(sAxis_TVALID), // input sAxis_TVALID .sAxis_TREADY(sAxis_TREADY), // output sAxis_TREADY .mAxis_TVALID(mAxis_TVALID), // output mAxis_TVALID .mAxis_TREADY(mAxis_TREADY) // input mAxis_TREADY ); // INST_TAG_END ------ End INSTANTIATION Template ---------
Verilog
3
slaclab/proto-dune
firmware/common/VivadoHLS/DuneDataCompression/vivado_hls/ip/DuneDataCompressionCore.veo
[ "BSD-3-Clause-LBNL" ]
from thefuck.utils import get_all_executables from thefuck.specific.sudo import sudo_support @sudo_support def match(command): first_part = command.script_parts[0] if "-" not in first_part or first_part in get_all_executables(): return False cmd, _ = first_part.split("-", 1) return cmd in get_all_executables() @sudo_support def get_new_command(command): return command.script.replace("-", " ", 1) priority = 4500 requires_output = False
Python
3
Ishaanahuja7/thefuck
thefuck/rules/wrong_hyphen_before_subcommand.py
[ "MIT" ]
const std = @import("std"); extern threadlocal var a: i32; test { try std.testing.expect(a == 0); }
Zig
3
lukekras/zig
test/standalone/link_import_tls_dylib/main.zig
[ "MIT" ]
package com.alibaba.fastjson.serializer.issue3177; import com.alibaba.fastjson.JSON; import org.junit.Assert; import org.junit.Test; /** * * @author shenzhou-6 * @since 2020年05月26日 * * https://github.com/alibaba/fastjson/issues/3177 */ public class TestIssues3177 { @Test public void testIssues3177(){ Test3177Bean.Son son = new Test3177Bean.Son(); son.setStatus("status"); Assert.assertEquals("{\"status\":\"status\"}",JSON.toJSONString(son)); } }
Java
4
yiyanghua/fastjson
src/test/java/com/alibaba/fastjson/serializer/issue3177/TestIssues3177.java
[ "Apache-2.0" ]
#!/usr/bin/osascript # How to use this script? # It's a template which needs further setup. Duplicate the file, # remove `.template.` from the filename, # Replace all instances of <display> with the name of your monitor. # Monitor name can be seen by open System Preferences → Display, # and look at the window's title name. example: DELL P2212H. # Replace all instances of <degree> to 90, 180 or 270 # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Toggle Flip Screen <display> to <degree>° # @raycast.mode silent # Optional parameters: # @raycast.icon 🖥 # @Documentation: # @raycast.description Toggle flip (rotate) or revert the <display> to <degree>° # @raycast.author Yohanes Bandung Bondowoso # @raycast.authorURL https://github.com/ybbond use scripting additions set displayName to "<display>" set targetDegree to "<degree>°" if running of application "System Preferences" then quit application "System Preferences" end if tell application "System Preferences" activate reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays" end tell tell application "System Events" to tell process "System Preferences" set currentCount to 0 repeat while currentCount < 5 if exists tab group 1 of window displayName then set currentCount to 5 else delay 0.5 set currentCount to currentCount + 1 end if end repeat try tell window displayName if exists pop up button 2 of tab group 1 then tell pop up button 2 of tab group 1 if (value) contains "Standard" then set currentAction to "Flipping" click click menu item targetDegree of menu 1 else set currentAction to "Reverting" click click menu item "Standard" of menu 1 end if end tell else tell pop up button 1 of tab group 1 if (value) contains "Standard" then set currentAction to "Flipping" click click menu item targetDegree of menu 1 else set currentAction to "Reverting" click click menu item "Standard" of menu 1 end if end tell end if end tell on error errString log "Some error, please contact me so I can try to fix :)" end try end tell log currentAction & space & "display succeed" tell application "System Preferences" quit end tell tell application "System Events" quit end tell
AppleScript
3
daviddzhou/script-commands
commands/system/toggle-flip-screen.template.applescript
[ "MIT" ]
The AMEE category /transport/van contains data associated with the greenhouse gas emissions of van transport. Van-associated data is currently available in the following subcategory: ==Generic van== The AMEE category [[Generic_van_transport|/transport/van/generic]] contains data associated with the greenhouse gas emissions of representative van types. The data and methodology is sourced from [[http://www.defra.gov.uk/environment/business/reporting/conversion-factors.htm|DEFRA]] with emissions calculations made on on the basis of distance travelled, with the option of specifying vehicle fuel consumption for the most accurate results. This category measures CO,,2,, emissions only and should be considered to represent a useful first point of entry to van-related emissions. ==Generic bus transport - DEFRA== The AMEE [[Van_generic_Defra|DEFRA generic van transport]] category contains the most recently published [[http://www.defra.gov.uk/environment/business/reporting/conversion-factors.htm|DEFRA]] data on greenhouse gas emissions associated with representative van types in UK. The methodology uses distance-based, //per vehicle// emissions factors, requiring the user to specify the distance travelled. This category includes CO,,2,,, CH,,4,, and N,,2,,O emissions as part of each calculation. ==Generic van transport - GHG Protocol== The category [[Light_goods_truck_transport|GHGP light goods vehicles]] contains data on van-associated emissions sourced from the latest World Resources Institute [[http://www.ghgprotocol.org/about-ghgp|Greenhouse Gas Protocol (GHGP)]] documentation. This category includes emissions methodologies for light goods transport in several geographic contexts, and a separate functionality for calculating biofuel emissions. ==Generic bus transport - IPCC== The category [[Generic_van_transport_IPCC|IPCC generic van transport]] contains data on van-associated emissions sourced from the IPCC [[http://www.ipcc-nggip.iges.or.jp/|Guidelines for National Greenhouse Gas Inventories]]. This category contains data and methodologies for van transport in European and US contexts and calclulates emissions on per vehicle basis, using fuel consumption or a combination of fuel consumption, fuel efficiency and distance. ==Van freighting== The category [[Van_Freight|Van freighting]] contains data on van-associated freighting emissions, sourced from the most recently published [[http://www.defra.gov.uk/environment/business/reporting/conversion-factors.htm|DEFRA]] data. The methodologies provided in this category calculate emissions on per unit mass of freight transported, and therefore require values for mass and distance to be specified by the user.
Creole
1
OpenAMEE/datasets
transport/van/documentation.creole
[ "MIT" ]
#![feature(unsized_locals, unsized_fn_params)] //~^ WARN the feature `unsized_locals` is incomplete fn main() { struct A<X: ?Sized>(X); A as fn(str) -> A<str>; //~^ERROR the size for values of type `str` cannot be known at compilation time }
Rust
2
Eric-Arellano/rust
src/test/ui/unsized-locals/issue-50940-with-feature.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
% Mutate by renaming of an identifier or type in any program in any C-like language #pragma -char -comment -width 32767 % C tokens, so we don't break them up include "java.grm" % Our grammar simply processes lines of text define program [repeat line] [repeat lineitem] % Some files don't have a final newline end define define line [repeat lineitem] [newline] end define define lineitem [space_comment] | [space] | [id_or_number] | [not newline] [token] end define define space_comment [repeat space+] [comment] end define define id_or_number [literal] | [primitive_type] | [key] | [id] end define define primitive_type 'boolean | 'char | 'byte | 'short | 'int | 'long | 'float | 'double | 'void | 'X end define define literal [numeric_literal] | [character_literal] | [string_literal] | [boolean_literal] | [null_literal] end define define numeric_literal [number] end define define character_literal [charlit] end define define string_literal [stringlit] end define define boolean_literal 'true | 'false end define define null_literal 'null end define % Main rule - initialize everything then mutate function main replace [program] P [program] by P [renameBoolean] [renameString] [renameNumeric] [renameCharacter] end function rule renameCharacter replace $ [character_literal] _ [character_literal] by ''c' end rule rule renameBoolean replace $ [boolean_literal] _ [boolean_literal] by 'true end rule rule renameString replace $ [string_literal] _ [string_literal] by "string" end rule rule renameNumeric replace $ [numeric_literal] _ [numeric_literal] by 0 end rule
TXL
4
pseudoPixels/SourceFlow
txl_features/txl_features/java/consistentNormalizeLiterals.txl
[ "MIT" ]
unit module pervasive IniFile export Open, GetStringDefault, GetString, GetBooleanDefault, GetBoolean, GetIntDefault, GetInt, GetRealDefault, GetReal, GetStringArray, GetBooleanArray, GetIntArray, GetRealArray, Delete, SetString, SetBoolean, SetInt, SetReal, SetStringArray, SetBooleanArray, SetIntArray, SetRealArray, SetBufferWrite, Write, StartSection, GetSection, StartProperty, GetProperty, GetType, % Constant BAD_VALUE type Property : record name : string value : string comment : boolean quotes : boolean next : ^Property end record type Section : record name : string propHead : ^Property next : ^Section end record % The head var head : ^Section := nil % Are changes buffered var bufferWrite : boolean := false % The name of the iniFile var iniFilePath : string := "" % Used for listing sections/properties var listSection : ^Section := nil var listProperty : ^Property := nil % Constant const BAD_VALUE : int := -9999 const DEFAULT : string := "default" procedure FreePreviousValues var sectPtr, lastSectPtr : ^Section var propPtr, lastPropPtr : ^Property sectPtr := head loop exit when sectPtr = nil propPtr := sectPtr -> propHead loop exit when propPtr = nil lastPropPtr := propPtr propPtr := propPtr -> next free lastPropPtr end loop lastSectPtr := sectPtr sectPtr := sectPtr -> next free sectPtr end loop head := nil end FreePreviousValues procedure Echo var sectPtr : ^Section := head var propPtr : ^Property loop exit when sectPtr = nil propPtr := sectPtr -> propHead put "S: ", sectPtr -> name loop exit when propPtr = nil if propPtr -> comment then put " P: ", propPtr -> name, " (C)" else put " P: ", propPtr -> name end if propPtr := propPtr -> next end loop sectPtr := sectPtr -> next end loop end Echo procedure Open (pathName : string) var iniFile : int var line : string var lineCounter : int := 0 var pos : int var sectPtr, lastSectPtr : ^Section var propPtr, lastPropPtr : ^Property % Set error to 0 Error.Set (0) iniFilePath := pathName if index (iniFilePath, ".") = 0 then iniFilePath := iniFilePath + ".ini" end if FreePreviousValues open : iniFile, iniFilePath, get if iniFile <= 0 then return end if % Create the blank section to start new sectPtr sectPtr -> name := "" sectPtr -> next := nil propPtr := nil head := sectPtr loop exit when eof (iniFile) get : iniFile, line : * line := Str.Trim (line) lineCounter += 1 if line not= "" then if line (1) = "[" then if index (line, "]") not= length (line) then % Error, bad section on line lineCounter Error.SetMsg (eIniFileBadSection, "Bad Section on line " + intstr (lineCounter) + " of '" + iniFilePath + "'") close : iniFile return end if lastSectPtr := sectPtr new sectPtr lastSectPtr -> next := sectPtr sectPtr -> name := line (2 .. * -1) sectPtr -> next := nil propPtr := nil else % Does not open with '[' % If there's a single equals sign, assume a property/value % pair (first char must be alphanumeric). If % there's no equal sign, and it's got a non-alphanumeric % first character, assume it's a comment if ('a' <= line (1) and line (1) <= 'z') or ('A' <= line (1) and line (1) <= 'Z') or ('0' <= line (1) and line (1) <= '9') then pos := index (line, "=") if pos = 0 then % Error, missing = on line lineCounter Error.SetMsg (eIniFileMissingEquals, "Missing '=' on line " + intstr (lineCounter) + " of '" + iniFilePath + "'") close : iniFile return end if lastPropPtr := propPtr new propPtr if lastPropPtr = nil then sectPtr -> propHead := propPtr else lastPropPtr -> next := propPtr end if propPtr -> name := Str.Trim (line (1 .. pos - 1)) propPtr -> value := Str.Trim (line (pos + 1 .. *)) if length (propPtr -> value) > 0 and propPtr -> value (1) = "\"" and propPtr -> value (*) = "\"" then propPtr -> value := propPtr -> value (2 .. * -1) propPtr -> quotes := true else propPtr -> quotes := false end if propPtr -> comment := false propPtr -> next := nil else % Does not start with alphanumeric % Comment lastPropPtr := propPtr new propPtr if lastPropPtr = nil then sectPtr -> propHead := propPtr else lastPropPtr -> next := propPtr end if propPtr -> name := line propPtr -> value := "" propPtr -> comment := true propPtr -> next := nil end if % if/else - starts with alphanumeric end if % if/else - starts with '[' end if % if - not empty line end loop close : iniFile end Open function GetStringDefault (sectionName, propertyName, default : string) : string var sectPtr : ^Section := head var propPtr : ^Property % Set error to 0 Error.Set (0) loop exit when sectPtr = nil or sectPtr -> name = sectionName or (sectPtr -> name = "" and sectionName = DEFAULT) sectPtr := sectPtr -> next end loop if sectPtr = nil then % Section not found error Error.SetMsg (eIniFileSectionNotFound, "No '" + sectionName + "' section in '" + iniFilePath + "'") result default end if propPtr := sectPtr -> propHead loop exit when propPtr = nil or propPtr -> name = propertyName and not propPtr -> comment propPtr := propPtr -> next end loop if propPtr = nil then % Property not found Error.SetMsg (eIniFilePropertyNotFound, "No '" + propertyName + "' property in '" + sectionName + "' section of '" + iniFilePath + "'") result default end if result propPtr -> value end GetStringDefault function GetString (sectionName, propertyName : string) : string result GetStringDefault (sectionName, propertyName, "") end GetString function GetBooleanDefault (sectionName, propertyName : string, default : boolean) : boolean var s : string := GetString (sectionName, propertyName) if Error.Last not= 0 then result default end if if Str.Lower (s) = "true" then result true elsif Str.Lower (s) = "false" then result false else % s is not 'true' or 'false' Error.SetMsg (eIniFilePropertyNotBoolean, "Value of '" + propertyName + "' property is not 'true' or " + "'false' (value is '" + s + "')") result default end if end GetBooleanDefault function GetBoolean (sectionName, propertyName : string) : boolean result GetBooleanDefault (sectionName, propertyName, false) end GetBoolean function GetIntDefault (sectionName, propertyName : string, default : int) : int var s : string := GetStringDefault (sectionName, propertyName, "[xxx]") if s = "[xxx]" then result default end if if Error.Last not= 0 then result IniFile.BAD_VALUE end if if strintok (s) then result strint (s) end if % Error value not integer Error.SetMsg (eIniFilePropertyNotInt, "Value of '" + propertyName + "' property is not integer " + "(value is '" + s + "')") result IniFile.BAD_VALUE end GetIntDefault function GetInt (sectionName, propertyName : string) : int result GetIntDefault (sectionName, propertyName, 0) end GetInt function GetRealDefault (sectionName, propertyName : string, default : real) : real var s : string := GetStringDefault (sectionName, propertyName, "[xxx]") if s = "[xxx]" then result default end if if Error.Last not= 0 then result IniFile.BAD_VALUE end if if strrealok (s) then result strreal (s) end if % Error value not integer Error.SetMsg (eIniFilePropertyNotReal, "Value of '" + propertyName + "' property is not real " + "(value is '" + s + "')") result IniFile.BAD_VALUE end GetRealDefault function GetReal (sectionName, propertyName : string) : real result GetRealDefault (sectionName, propertyName, 0.0) end GetReal procedure GetStringArray (sectionName, propertyName : string, var numValues : int, var values : array 1 .. * of string) var counter : int := 1 var maxSize : int := upper (values) loop exit when counter > maxSize values (counter) := GetString (sectionName, propertyName + "." + intstr (counter)) exit when values (counter) = "" counter += 1 end loop if Error.Last = 0 and counter > maxSize then Error.Set (eIniFileArrayTooSmall) end if numValues := counter - 1 end GetStringArray procedure GetBooleanArray (sectionName, propertyName : string, var numValues : int, var values : array 1 .. * of boolean) var strValues : array 1 .. upper (values) of string GetStringArray (sectionName, propertyName, numValues, strValues) for i : 1 .. numValues if Str.Lower (strValues (i)) = "true" then values (i) := true elsif Str.Lower (strValues (i)) = "false" then values (i) := false else % s is not 'true' or 'false' Error.SetMsg (eIniFilePropertyNotBoolean, "Value of '" + propertyName + "." + intstr (i) + "' property is not 'true' or " + "'false' (value is '" + strValues (i) + "')") numValues := i - 1 return end if end for end GetBooleanArray procedure GetIntArray (sectionName, propertyName : string, var numValues : int, var values : array 1 .. * of int) var strValues : array 1 .. upper (values) of string GetStringArray (sectionName, propertyName, numValues, strValues) for i : 1 .. numValues if strintok (strValues (i)) then values (i) := strint (strValues (i)) else % Error value not integer Error.SetMsg (eIniFilePropertyNotInt, "Value of '" + propertyName + "." + intstr (i) + "' property is not integer " + "(value is '" + strValues (i) + "')") numValues := i - 1 return end if end for end GetIntArray procedure GetRealArray (sectionName, propertyName : string, var numValues : int, var values : array 1 .. * of real) var strValues : array 1 .. upper (values) of string GetStringArray (sectionName, propertyName, numValues, strValues) for i : 1 .. numValues if strrealok (strValues (i)) then values (i) := strreal (strValues (i)) else % Error value not integer Error.SetMsg (eIniFilePropertyNotInt, "Value of '" + propertyName + "." + intstr (i) + "' property is not integer " + "(value is '" + strValues (i) + "')") numValues := i - 1 return end if end for end GetRealArray % Write the ini file out procedure Write var iniFile : int var line : string var lineCounter : int := 0 var pos : int var sectPtr : ^Section := head var propPtr : ^Property % Set error to 0 Error.Set (0) if iniFilePath = "" then % Abort with no file opened Error.Abort (eIniFileNoIniFileOpen) return end if open : iniFile, iniFilePath, put if iniFile <= 0 then return end if loop exit when sectPtr = nil if sectPtr -> name not= "" then put : iniFile, "[", sectPtr -> name, "]" end if propPtr := sectPtr -> propHead loop exit when propPtr = nil if propPtr -> comment then put : iniFile, propPtr -> name else if propPtr -> quotes then put : iniFile, propPtr -> name, "=\"", propPtr -> value, "\"" else put : iniFile, propPtr -> name, "=", propPtr -> value end if end if propPtr := propPtr -> next end loop put : iniFile, "" sectPtr := sectPtr -> next end loop close : iniFile end Write procedure Delete (sectionName, propertyName : string) var sectPtr : ^Section := head var propPtr, lastPropPtr : ^Property := nil % Set error to 0 Error.Set (0) loop exit when sectPtr = nil or sectPtr -> name = sectionName or (sectPtr -> name = "" and sectionName = DEFAULT) sectPtr := sectPtr -> next end loop if sectPtr = nil then % Section not found error Error.SetMsg (eIniFileSectionNotFound, "No '" + sectionName + "' section in '" + iniFilePath + "'") return end if propPtr := sectPtr -> propHead loop exit when propPtr = nil or propPtr -> name = propertyName and not propPtr -> comment lastPropPtr := propPtr propPtr := propPtr -> next end loop if propPtr = nil then Error.SetMsg (eIniFilePropertyNotFound, "No '" + propertyName + "' property in '" + sectionName + "' section of '" + iniFilePath + "'") return end if if lastPropPtr = nil then sectPtr -> propHead := propPtr -> next else lastPropPtr -> next := propPtr -> next end if free propPtr if not bufferWrite then Write end if end Delete procedure SetString (sectionName, propertyName, propertyValue : string) var sectPtr : ^Section := head var lastSectPtr : ^Section := nil var propPtr, lastPropPtr : ^Property := nil % Set error to 0 Error.Set (0) loop exit when sectPtr = nil or sectPtr -> name = sectionName or (sectPtr -> name = "" and sectionName = DEFAULT) lastSectPtr := sectPtr sectPtr := sectPtr -> next end loop if sectPtr = nil then new sectPtr if lastSectPtr = nil then head := sectPtr else lastSectPtr -> next := sectPtr end if if sectionName = DEFAULT then sectPtr -> name := "" else sectPtr -> name := sectionName end if sectPtr -> propHead := nil sectPtr -> next := nil end if propPtr := sectPtr -> propHead loop exit when propPtr = nil or propPtr -> name = propertyName and not propPtr -> comment lastPropPtr := propPtr propPtr := propPtr -> next end loop if propPtr = nil then new propPtr if lastPropPtr = nil then sectPtr -> propHead := propPtr else lastPropPtr -> next := propPtr end if propPtr -> name := propertyName end if propPtr -> value := propertyValue propPtr -> comment := false if Str.Trim (propertyValue) = propertyValue then propPtr -> quotes := false else propPtr -> quotes := true end if propPtr -> next := nil if not bufferWrite then Write end if end SetString procedure SetBoolean (sectionName, propertyName : string, propertyValue : boolean) if propertyValue = true then SetString (sectionName, propertyName, "true") else SetString (sectionName, propertyName, "false") end if end SetBoolean procedure SetInt (sectionName, propertyName : string, propertyValue : int) SetString (sectionName, propertyName, intstr (propertyValue)) end SetInt procedure SetReal (sectionName, propertyName : string, propertyValue : real) SetString (sectionName, propertyName, realstr (propertyValue, 0)) end SetReal procedure SetStringArray (sectionName, propertyName : string, numValues : int, propertyValues : array 1 .. * of string) for i : 1 .. numValues SetString (sectionName, propertyName + "." + intstr (i), propertyValues (i)) end for end SetStringArray procedure SetBooleanArray (sectionName, propertyName : string, numValues : int, propertyValues : array 1 .. * of boolean) for i : 1 .. numValues if propertyValues (i) then SetString (sectionName, propertyName + "." + intstr (i), "true") else SetString (sectionName, propertyName + "." + intstr (i), "false") end if end for end SetBooleanArray procedure SetIntArray (sectionName, propertyName : string, numValues : int, propertyValues : array 1 .. * of int) for i : 1 .. numValues SetString (sectionName, propertyName + "." + intstr (i), intstr (propertyValues (i))) end for end SetIntArray procedure SetRealArray (sectionName, propertyName : string, numValues : int, propertyValues : array 1 .. * of real) for i : 1 .. numValues SetString (sectionName, propertyName + "." + intstr (i), realstr (propertyValues (i), 0)) end for end SetRealArray procedure SetBufferWrite (iniBufferWrite : boolean) bufferWrite := iniBufferWrite end SetBufferWrite procedure StartSection % Set error to 0 Error.Set (0) listSection := head end StartSection function GetSection : string var name : string % Set error to 0 Error.Set (0) if listSection not= nil then name := listSection -> name if name = "" then name := DEFAULT end if listSection := listSection -> next else % Error at end of list Error.Set (eIniFileAtEndOfList) name := "" end if result name end GetSection procedure StartProperty (sectionName : string) var sectPtr : ^Section := head % Set error to 0 Error.Set (0) loop exit when sectPtr = nil or sectPtr -> name = sectionName or (sectPtr -> name = "" and sectionName = DEFAULT) sectPtr := sectPtr -> next end loop if sectPtr not= nil then listProperty := sectPtr -> propHead else % Error at end of list Error.SetMsg (eIniFileSectionNotFound, "No '" + sectionName + "' section in '" + iniFilePath + "'") end if end StartProperty function GetProperty : string var name : string % Set error to 0 Error.Set (0) % Skip any comments loop exit when listProperty = nil or (listProperty not= nil and not listProperty -> comment) listProperty := listProperty -> next end loop % if listProperty not= nil then name := listProperty -> name listProperty := listProperty -> next else % Error at end of list Error.Set (eIniFileAtEndOfList) name := "" end if result name end GetProperty function GetType (sectionName, propertyName : string) : string var s : string := GetString (sectionName, propertyName) if Error.Last not= 0 then result "" end if if Str.Lower (s) = "true" or Str.Lower (s) = "false" then result "boolean" elsif strintok (s) then result "int" elsif strrealok (s) then result "real" else result "string" end if end GetType end IniFile
Turing
5
ttracx/OpenTuring
turing/test/support/predefs/IniFile.tu
[ "MIT" ]
<cfloop list="#arguments.parseData#" delimiters="&" index="local.kvPair"> <cfset local.keyStr = listFirst(local.kvPair, "=")> <cfset local.valStr = listLast(local.kvPair, "=", true)> // Do stuff </cfloop>
ColdFusion
3
tonym128/CFLint
src/test/resources/com/cflint/tests/VariableNameChecker/local_537.cfm
[ "BSD-3-Clause" ]
/** * NBSwapBuffer.x10 * * Rudra Distributed Learning Platform * * Copyright (c) IBM Corporation 2016 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of Rudra nor the names of its contributors may be used * to endorse or promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ package rudra.util; import x10.compiler.Volatile; import x10.util.concurrent.AtomicBoolean; import x10.compiler.Pinned; /** A very specialized non-blocking one-place swapping buffer which communicates values of type T between a producer and a consumer without consing any new values or copying values. Used to couple producers and consumers that operate at different rates. @see rudra.util.SwapBuffer @author vj */ @Pinned public class NBSwapBuffer[T]{T haszero} extends SwapBuffer[T] { @Volatile protected var datum:T; public def this(i:T){ this.datum=i; } /** Set by the writer, when the data is ready to be read from index+1. * Reset by the reader when it reads the data. */ protected val dataReady=new AtomicBoolean(false); def swap(t:T, b:Boolean):T { val result=datum; assert t!=result; datum=t; dataReady.set(b); return result; } public def needsData():Boolean=!dataReady.get(); /** Non-blocking call. If no value is available to read return t (the caller should think that a zero value was returned). Otherwise return the available value (guaranteed to not equal t), and signal that data is needed. */ public def get(t:T):T= dataReady.get()? swap(t,false):t; /** Non-blocking call. If there is no space return t with no modifications; the caller may continue to use t. Else add t to the buffer signal that data is ready, and return the old value s. Note s is not zeroed, it is the caller's responsibility to write application data in it before reading. The caller must check the return value to determine which of these two cases apply. */ public def put(t:T):T = dataReady.get()? t: swap(t, true); public def toString()="<" + typeName() + " #"+hashCode() + ">"; }
X10
5
milthorpe/rudra
x10/src/rudra/util/NBSwapBuffer.x10
[ "BSD-3-Clause" ]
<%= render("_item_title.xml", assigns) %> <description><![CDATA[ <%= SharedHelpers.md_to_html(@item.story) %> <%= video_embed(@item) %> <%= image_link(@item) %> <%= discussion_link(@item) %>]]></description>
HTML+EEX
3
gustavoarmoa/changelog.com
lib/changelog_web/templates/feed/_item.xml.eex
[ "MIT" ]
--for testing uncomment the "on run" block --on run -- set argsCmd to "ps aux | grep [s]sh" -- set argsTheme to "Homebrew" -- set argsTitle to "Custom title" -- scriptRun(argsCmd, argsTheme, argsTitle) --end run on scriptRun(argsCmd, argsTheme, argsTitle) set withCmd to (argsCmd) set withTheme to (argsTheme) set theTitle to (argsTitle) CommandRun(withCmd, withTheme, theTitle) end scriptRun on CommandRun(withCmd, withTheme, theTitle) tell application "iTerm" if it is not running then activate if (count windows) is 0 then my NewWin(withTheme) end if else my NewWin(withTheme) end if tell the current window tell the current session set name to theTitle write text withCmd end tell end tell end tell end CommandRun on NewWin(argsTheme) tell application "iTerm" try create window with profile argsTheme on error msg create window with profile "Default" end try end tell end NewWin
AppleScript
4
productinfo/shuttle
apple-scripts/iTermStable/iTerm2-stable-new-window.applescript
[ "MIT" ]
00000000111111111111111100000000 00000000111111111111111100000000 00000011111111111111111111000000 00000011111111111111111111000000 00001111111111111111111111110000 00001111111111111111111111110000 00111111111111111111111111111100 00111111111111111111111111111100 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 11111111111111111111111111111111 00111111111111111111111111111100 00111111111111111111111111111100 00001111111111111111111111110000 00001111111111111111111111110000 00000011111111111111111111000000 00000011111111111111111111000000 00000000111111111111111100000000 00000000111111111111111100000000
Mask
0
YersonSolano/CocosSharp
tests/tests/ball-hd.mask
[ "MIT" ]
#!/bin/bash set -e version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' ) git clone homebrew-tap-repo updated-homebrew-tap-repo > /dev/null if [[ $LATEST_GA = true ]]; then pushd updated-homebrew-tap-repo > /dev/null curl https://repo.spring.io/libs-release-local/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-homebrew.rb --output spring-boot-cli-${version}-homebrew.rb rm spring-boot.rb mv spring-boot-cli-*.rb spring-boot.rb git config user.name "Spring Builds" > /dev/null git config user.email "[email protected]" > /dev/null git add spring-boot.rb > /dev/null git commit -m "Upgrade to Spring Boot ${version}" > /dev/null echo "DONE" popd > /dev/null fi
Shell
3
techAi007/spring-boot
ci/scripts/update-homebrew-tap.sh
[ "Apache-2.0" ]
--TEST-- CLI php -i --SKIPIF-- <?php include "skipif.inc"; if (substr(PHP_OS, 0, 3) == 'WIN') { die ("skip not for Windows"); } ?> --FILE-- <?php $php = getenv('TEST_PHP_EXECUTABLE'); echo `"$php" -n -i`; echo "\nDone\n"; ?> --EXPECTF-- phpinfo() PHP Version => %s %a PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected]. Done
PHP
4
NathanFreeman/php-src
sapi/cli/tests/019.phpt
[ "PHP-3.01" ]
untyped global function CodeCallback_RegisterClass_CBaseCombatCharacter function CodeCallback_RegisterClass_CBaseCombatCharacter() { CBaseCombatCharacter.ClassName <- "CBaseCombatCharacter" RegisterSignal( "ContextAction_SetBusy" ) // signalled from ContextAction_SetBusy() in code /* CBaseCombatCharacter.__SetActiveWeaponByName <- CBaseCombatCharacter.SetActiveWeaponByName function CBaseCombatCharacter::SetActiveWeaponByName( weapon ) { printt( "set active weapon " + weapon + " for " + this ) return this.__SetActiveWeaponByName( weapon ) } CBaseCombatCharacter.__TakeWeapon <- CBaseCombatCharacter.TakeWeapon function CBaseCombatCharacter::TakeWeapon( weapon ) { // printt( "Take weapon " + weapon + " from " + this ) return this.__TakeWeapon( weapon ) } */ }
Squirrel
3
GeckoEidechse/NorthstarMods
Northstar.CustomServers/mod/scripts/vscripts/class/cbasecombatcharacter.nut
[ "MIT" ]
#lang scribble/doc @(require "common.rkt" (for-label help/search)) @(tools-title "help-desk") @(tools-include "help-desk")
Racket
2
rrthomas/drracket
drracket/scribblings/tools/help-desk.scrbl
[ "Apache-2.0", "MIT" ]
^XA ^LH20,20 ^FO20,00^BQ,2,10 ^FDLM,A <%= id %>^FS ^FO280,10^AD,N,15,10^FD<%= String.slice(id, 0, 6) %>^FS ^FO280,50^AD,N,15,10^FD<%= String.slice(id, 6, 6) %>^FS ^FO280,90^AD,N,15,10^FD<%= String.slice(id, 12, 6) %>^FS ^FO280,130^AD,N,15,10^FD<%= String.slice(id, 18, 6) %>^FS ^FO280,170^AD,N,10,10^FDCRTLABS.ORG^FS ^XZ
Zimpl
3
rosetta-home/kitting_system
priv/label.zpl
[ "Apache-2.0" ]
(* * 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. *) (** Performs a map, but returns the original SMap.t if there is no change **) let ident_map f map = let changed = ref false in let map' = SMap.map (fun elem -> let elem' = f elem in if elem == elem' then elem else ( changed := true; elem' )) map in if !changed then map' else map
OCaml
4
Hans-Halverson/flow
src/common/utils/sMapUtils.ml
[ "MIT" ]
.class final Landroid/support/v4/app/FragmentActivity$NonConfigurationInstances; .super Ljava/lang/Object; .source "FragmentActivity.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/support/v4/app/FragmentActivity; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x18 name = "NonConfigurationInstances" .end annotation # instance fields .field activity:Ljava/lang/Object; .field children:Ljava/util/HashMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/HashMap", "<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;" } .end annotation .end field .field custom:Ljava/lang/Object; .field fragments:Ljava/util/ArrayList; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList", "<", "Landroid/support/v4/app/Fragment;", ">;" } .end annotation .end field .field loaders:Ljava/util/HashMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/HashMap", "<", "Ljava/lang/String;", "Landroid/support/v4/app/LoaderManagerImpl;", ">;" } .end annotation .end field # direct methods .method constructor <init>()V .locals 0 .prologue .line 126 invoke-direct {p0}, Ljava/lang/Object;-><init>()V return-void .end method
Smali
2
jarekankowski/pegasus_spyware
sample1/decompiled_raw/smali/android/support/v4/app/FragmentActivity$NonConfigurationInstances.smali
[ "MIT" ]
$$ MODE TUSCRIPT LOOP bottle=1,100 SET bottlenr=100-bottle IF (bottlenr==0) THEN PRINT "no bottle of beer on the wall" EXIT ELSEIF (bottlenr==1) THEN PRINT bottlenr, " bottle of beer on the wall" PRINT bottlenr, " bottle of beer" ELSE PRINT bottlenr, " bottles of beer on the wall" PRINT bottlenr, " bottles of beer" ENDIF PRINT "Take one down, pass it around" ENDLOOP
Turing
3
LaudateCorpus1/RosettaCodeData
Task/99-Bottles-of-Beer/TUSCRIPT/99-bottles-of-beer.tu
[ "Info-ZIP" ]
<%-- Created by IntelliJ IDEA. User: Olga Date: 7/20/2016 Time: 1:47 PM To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <html> <head> <title>Send Email</title> </head> <body> <div> <h3>${headerText}</h3> <form:form method="POST" modelAttribute="mailObject" > <fieldset> <div style="float:left;"> <table cellspacing="0" width="300"> <tr> <th><label for="input_to">To</label></th> <td><form:input path="to" id="input_to" type="email"/> <small>Enter email address</small><br/> <form:errors path="to" cssStyle="color:red;font-size:small"/> </td> </tr> <tr> <th><label for="input_subject">Subject</label></th> <td><form:input path="subject" id="input_subject"/> <small>Enter the subject</small><br/> <form:errors path="subject" cssStyle="color:red;font-size:small"/> </td> </tr> <tr> <th><label for="input_text">${messageLabel}:</label></th> <td><form:textarea path="text" rows="5" cols="50" id="input_text"/> <form:errors path="text" cssStyle="color:red;font-size:small"/> </td> </tr> <tr> <th></th> <td> <input type="submit" value="Send"> </td> </tr> </table> </div> <div style="float:left; word-wrap: break-word; margin-left: 50px; width: 400px; color: grey"> ${additionalInfo} </div> </fieldset> </form:form> </div> </body> </html>
Java Server Pages
3
zeesh49/tutorials
spring-mvc-simple/src/main/webapp/WEB-INF/views/mail/send.jsp
[ "MIT" ]
#include <stdio.h> #include <stdlib.h> #include <string.h> #define BUFSIZE 4096 typedef struct _Scanner { /* Scanner state. */ int cs; int act; int have; int curline; char *ts; char *te; char *p; char *pe; char *eof; FILE *file; int done; /* Token data */ char *data; int len; int value; char buf[BUFSIZE]; } Scanner; %%{ machine Scanner; write data; }%% void scan_init( Scanner *s, FILE *file ) { memset (s, '\0', sizeof(Scanner)); s->curline = 1; s->file = file; s->eof = 0; %% write init; } #define TK_NO_TOKEN (-1) #define TK_ERR 128 #define TK_EOF 129 #define TK_Identifier 130 #define TK_Number 131 #define TK_String 132 #define ret_tok( _tok ) token = _tok; s->data = s->ts int scan( Scanner *s ) { int token = TK_NO_TOKEN; int space, readlen; while ( 1 ) { if ( s->p == s->pe ) { printf("scanner: need more data\n"); if ( s->ts == 0 ) s->have = 0; else { /* There is data that needs to be shifted over. */ printf("scanner: buffer broken mid token\n"); s->have = s->pe - s->ts; memmove( s->buf, s->ts, s->have ); s->te -= (s->ts-s->buf); s->ts = s->buf; } s->p = s->buf + s->have; space = BUFSIZE - s->have; if ( space == 0 ) { /* We filled up the buffer trying to scan a token. */ printf("scanner: out of buffer space\n"); return TK_ERR; } if ( s->done ) { printf("scanner: end of file\n"); s->p[0] = 0; readlen = 1; } else { readlen = fread( s->p, 1, space, s->file ); if ( readlen < space ) s->done = 1; } s->pe = s->p + readlen; } %%{ machine Scanner; access s->; variable p s->p; variable pe s->pe; variable eof s->eof; main := |* # Identifiers ( [a-zA-Z_] [a-zA-Z0-9_]* ) => { ret_tok( TK_Identifier ); fbreak; }; # Whitespace [ \t\n]; '"' ( [^\\"] | '\\' any ) * '"' => { ret_tok( TK_String ); fbreak; }; # Number digit+ => { ret_tok( TK_Number ); fbreak; }; # EOF 0 => { ret_tok( TK_EOF ); fbreak; }; # Anything else any => { ret_tok( *s->p ); fbreak; }; *|; write exec; }%% if ( s->cs == Scanner_error ) return TK_ERR; if ( token != TK_NO_TOKEN ) { s->len = s->p - s->data; return token; } } } int main (int argc, char** argv) { Scanner ss; int tok; scan_init(&ss, stdin); while ( 1 ) { tok = scan (&ss); if ( tok == TK_EOF ) { printf ("parser: EOF\n"); break; } else if ( tok == TK_ERR ) { printf ("parser: ERR\n"); break; } else { printf ("parser: %d \"", tok); fwrite ( ss.data, 1, ss.len, stdout ); printf ("\"\n" ); } } return 0; }
Ragel in Ruby Host
5
garethchen/hhvm-third-party
ragel/src/examples/pullscan.rl
[ "MIT" ]
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <script type="application/javascript" defer="defer" src="js/index.js"></script> <title>Ockam Node Web</title> </head> <body> <div id="main"></div> </body> </html>
HTML+EEX
2
twittner/ockam
implementations/elixir/ockam/ockam_node_web/lib/node_web/templates/index.html.eex
[ "Apache-2.0" ]
/* Route packets between a local bus and a network bus in both directions, using a switch that supports NAT (network address translation). A device on the local bus can send to a device on a network bus by specifying the bus id. If the switch has configured a public bus id (a NAT bus id) for this local bus, the remote devices can also reply. __________ ________ __________ | LOCAL | Pin 7 | NAT | Pin 12 | NETWORK | | DEVICE |_______________| SWITCH |_______________| DEVICE | |__________| Local bus |________| Bus 0.0.0.2 |__________| (NAT 0.0.0.1) */ #include <PJONSoftwareBitBang.h> // PJON object for a local bus PJONSoftwareBitBang bus(44); void setup() { pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); // Initialize LED to be off bus.strategy.set_pin(7); bus.set_receiver(receiver_function); bus.begin(); } void receiver_function(uint8_t *payload, uint16_t length, const PJON_Packet_Info &packet_info) { if((char)payload[0] == 'B') { static bool led_on = false; digitalWrite(LED_BUILTIN, led_on ? HIGH : LOW); led_on = !led_on; bus.reply("B", 1); } } void loop() { bus.receive(1000); bus.update(); }
Arduino
4
solhuebner/PJON
examples/routing/ARDUINO/Network/LocalBusViaNATSwitch/LocalDevice/LocalDevice.ino
[ "Apache-2.0" ]
-- The user_version should match the "000X" from the file name -- Ex: 0001_create_notebooks_table should have a user_verison of 1 PRAGMA user_version=1; -- Create the testing table CREATE TABLE test_table_1 ( id TEXT NOT NULL PRIMARY KEY, created_at TIMESTAMP, updated_at TIMESTAMP );
SQL
3
ldwformat/influxdb
sqlite/test_migrations/0001_create_test_table_1.sql
[ "MIT" ]
CREATE TABLE `tb_nxbyklxowd` ( `col_kcwxoovscx` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8, `col_dbtkzzfxoi` varbinary(22) NOT NULL, `col_zkfycwevvo` time DEFAULT NULL, `col_ememhbgtcx` bit(1) DEFAULT b'0', `col_zrrfkkosvo` char(203) DEFAULT NULL, `col_fpafdojbdn` decimal(9,9) DEFAULT NULL, `col_qhgfympzxa` longtext CHARACTER SET utf8, `col_tymlykugck` int(83) unsigned zerofill DEFAULT NULL, `col_awkvpagorc` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'enum_or_set_0', `col_crrxfxfdzs` datetime DEFAULT NULL, `col_cgdxdxesyd` decimal(10,0) NOT NULL, `col_iiqainhxkc` smallint(81) unsigned zerofill, `col_kbnueyzmpm` tinyblob, `col_zixjkfdybk` binary(1) NOT NULL, PRIMARY KEY (`col_dbtkzzfxoi`(10)), UNIQUE KEY `col_fpfpelfmso` (`col_dbtkzzfxoi`), UNIQUE KEY `col_dbtkzzfxoi` (`col_dbtkzzfxoi`(2)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; CREATE TABLE `tb_dlnhztodao` ( `col_rryluiawnq` varchar(24) DEFAULT '', `col_bdlbhtissa` year(4) DEFAULT NULL, `col_kfawipagkn` tinyblob ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SQL
2
yuanweikang2020/canal
parse/src/test/resources/ddl/alter/mysql_16.sql
[ "Apache-2.0" ]
[Desktop Entry] Type=Application Name=QGroundControl GenericName=Ground Control Station Comment=UAS ground control station Icon=org.mavlink.qgroundcontrol Exec=QGroundControl Terminal=false Categories=Utility;
desktop
2
dlech/qgroundcontrol
deploy/org.mavlink.qgroundcontrol.desktop
[ "Apache-2.0" ]
package com.alibaba.json.bvt.bug; import java.util.ArrayList; import java.util.List; import junit.framework.TestCase; import com.alibaba.fastjson.JSON; public class Bug_101_for_rongganlin extends TestCase { public void test_for_bug() throws Exception { Structure structure = new Structure(); List<Group> groups = new ArrayList<Group>(); List<Element> elemA = new ArrayList<Element>(); elemA.add(new Text().set("t.a", "v.t.a")); elemA.add(new Image().set("i.a", "v.i.a")); groups.add(new Group().set(elemA)); List<Element> elemB = new ArrayList<Element>(); elemB.add(new Text().set("t.b", "v.t.b")); elemB.add(new Image().set("i.b", "v.i.b")); groups.add(new Group().set(elemB)); structure.groups = groups; System.out.println(JSON.toJSON(structure)); System.out.println(JSON.toJSONString(structure)); } class Structure { public List<Group> groups; } class Group implements Object { public List<Element> elements; public Group set(List<Element> items) { this.elements = items; return this; } } interface Object { } abstract class Element { public String key, value; public Element set(String key, String value) { this.key = key; this.value = value; return this; } } class Text extends Element { } class Image extends Element { } }
Java
4
Czarek93/fastjson
src/test/java/com/alibaba/json/bvt/bug/Bug_101_for_rongganlin.java
[ "Apache-2.0" ]
= Original Prototype Rake This is the original 100 line prototype rake program. --- #!/usr/bin/env ruby require 'ftools' class Task TASKS = Hash.new attr_reader :prerequisites def initialize(task_name) @name = task_name @prerequisites = [] @actions = [] end def enhance(deps=nil, &block) @prerequisites |= deps if deps @actions << block if block_given? self end def name @name.to_s end def invoke @prerequisites.each { |n| Task[n].invoke } execute if needed? end def execute return if @triggered @triggered = true @actions.collect { |act| result = act.call(self) }.last end def needed? true end def timestamp Time.now end class << self def [](task_name) TASKS[intern(task_name)] or fail "Don't know how to rake #{task_name}" end def define_task(args, &block) case args when Hash fail "Too Many Target Names: #{args.keys.join(' ')}" if args.size > 1 fail "No Task Name Given" if args.size < 1 task_name = args.keys[0] deps = args[task_name] else task_name = args deps = [] end deps = deps.collect {|d| intern(d) } get(task_name).enhance(deps, &block) end def get(task_name) name = intern(task_name) TASKS[name] ||= self.new(name) end def intern(task_name) (Symbol === task_name) ? task_name : task_name.intern end end end class FileTask < Task def needed? return true unless File.exist?(name) latest_prereq = @prerequisites.collect{|n| Task[n].timestamp}.max return false if latest_prereq.nil? timestamp < latest_prereq end def timestamp File.new(name.to_s).mtime end end def task(args, &block) Task.define_task(args, &block) end def file(args, &block) FileTask.define_task(args, &block) end def sys(cmd) puts cmd system(cmd) or fail "Command Failed: [#{cmd}]" end def rake begin here = Dir.pwd while ! File.exist?("Rakefile") Dir.chdir("..") fail "No Rakefile found" if Dir.pwd == here here = Dir.pwd end puts "(in #{Dir.pwd})" load "./Rakefile" ARGV.push("default") if ARGV.size == 0 ARGV.each { |task_name| Task[task_name].invoke } rescue Exception => ex puts "rake aborted ... #{ex.message}" puts ex.backtrace.find {|str| str =~ /Rakefile/ } || "" end end if __FILE__ == $0 then rake end
RDoc
4
defc0n1/shoppe_promo
vendor/cache/gems/rake-11.1.2/doc/proto_rake.rdoc
[ "MIT" ]
= gl_tabs_nav({ class: 'mb-3'}) do = gl_tab_link_to _('Events'), project_product_analytics_path(@project) = gl_tab_link_to _('Graphs'), graphs_project_product_analytics_path(@project) = gl_tab_link_to _('Test'), test_project_product_analytics_path(@project) = gl_tab_link_to _('Setup'), setup_project_product_analytics_path(@project)
Haml
4
nowkoai/test
app/views/projects/product_analytics/_links.html.haml
[ "MIT" ]
#!/bin/sh # # Requires kumar_asshole script in your bin # exec kumar_asshole
Shell
0
johndemlon/hacker-scripts
kumar-asshole.sh
[ "WTFPL" ]
<body> <nav id="metadata"> <%= render '_sidebar_navigation.rhtml' %> <%= render '_sidebar_search.rhtml' %> <div id="project-metadata"> <%= render '_sidebar_pages.rhtml' %> <%= render '_sidebar_classes.rhtml' %> </div> </nav> <div id="documentation" class="description"> <h1>Not Found</h1> <p>The page <kbd><%=h path %></kbd> was not found </div>
RHTML
2
prathamesh-sonpatki/jruby
lib/ruby/2.0/rdoc/generator/template/darkfish/servlet_not_found.rhtml
[ "Ruby", "Apache-2.0" ]
function CSX = create_sky130_geometry ( CSX , x_min, x_max, y_min, y_max, unit ) CSX = AddMaterial( CSX, 'PI1' ); CSX = SetMaterialProperty( CSX, 'PI1', 'Epsilon', 2.94 ); CSX = AddMaterial( CSX, 'TOPNIT' ); CSX = SetMaterialProperty( CSX, 'TOPNIT', 'Epsilon', 7.5 ); CSX = AddMaterial( CSX, 'NILD6' ); CSX = SetMaterialProperty( CSX, 'NILD6', 'Epsilon', 4 ); CSX = AddMaterial( CSX, 'NILD5' ); CSX = SetMaterialProperty( CSX, 'NILD5', 'Epsilon', 4.1 ); CSX = AddMaterial( CSX, 'NILD4' ); CSX = SetMaterialProperty( CSX, 'NILD4', 'Epsilon', 4.2 ); CSX = AddMaterial( CSX, 'NILD3' ); CSX = SetMaterialProperty( CSX, 'NILD3', 'Epsilon', 4.5 ); CSX = AddMaterial( CSX, 'NILD2' ); CSX = SetMaterialProperty( CSX, 'NILD2', 'Epsilon', 4.05 ); CSX = AddMaterial( CSX, 'LINT' ); CSX = SetMaterialProperty( CSX, 'LINT', 'Epsilon', 7.3 ); CSX = AddMaterial( CSX, 'PSG' ); CSX = SetMaterialProperty( CSX, 'PSG', 'Epsilon', 3.9 ); CSX = AddMaterial( CSX, 'FOX' ); CSX = SetMaterialProperty( CSX, 'FOX', 'Epsilon', 3.9 ); CSX = AddMaterial( CSX, 'substr' ); CSX = SetMaterialProperty( CSX, 'substr', 'Kappa', 1.5e4 ); % CSX = AddMaterial( CSX, 'nwell' ); % CSX = SetMaterialProperty( CSX, 'nwell', 'Kappa', 2.450980e+03 ); % CSX = AddMaterial( CSX, 'diff' ); % CSX = SetMaterialProperty( CSX, 'diff', 'Kappa', 2.628812e+04 ); % CSX = AddMaterial( CSX, 'poly' ); CSX = SetMaterialProperty( CSX, 'poly', 'Kappa', 1.152605e+05 ); CSX = AddMaterial( CSX, 'licon' ); CSX = SetMaterialProperty( CSX, 'licon', 'Kappa', 0.9361e-6 / (152 * 0.17e-6 * 0.17e-6) ); CSX = AddMaterial( CSX, 'li' ); CSX = SetMaterialProperty( CSX, 'li', 'Kappa', 7.812500e+05 ); CSX = AddMaterial( CSX, 'mcon' ); CSX = SetMaterialProperty( CSX, 'mcon', 'Kappa', 0.34e-6 / (9.3 * 0.17e-6 * 0.17e-6) ); CSX = AddMaterial( CSX, 'metal1' ); CSX = SetMaterialProperty( CSX, 'metal1', 'Kappa', 2.222222e+07 ); CSX = AddMaterial( CSX, 'via1' ); CSX = SetMaterialProperty( CSX, 'via1', 'Kappa', 0.27e-6 / (4.5 * 0.15e-6 * 0.15e-6) ); CSX = AddMaterial( CSX, 'metal2' ); CSX = SetMaterialProperty( CSX, 'metal2', 'Kappa', 2.222222e+07 ); CSX = AddMaterial( CSX, 'via2' ); CSX = SetMaterialProperty( CSX, 'via2', 'Kappa', 0.42e-6 / (3.41 * 0.2e-6 * 0.2e-6) ); CSX = AddMaterial( CSX, 'metal3' ); CSX = SetMaterialProperty( CSX, 'metal3', 'Kappa', 2.517940e+07 ); CSX = AddMaterial( CSX, 'via3' ); CSX = SetMaterialProperty( CSX, 'via3', 'Kappa', 0.39e-6 / (3.41 * 0.2e-6 * 0.2e-6) ); CSX = AddMaterial( CSX, 'metal4' ); CSX = SetMaterialProperty( CSX, 'metal4', 'Kappa', 2.517940e+07 ); CSX = AddMaterial( CSX, 'via4' ); CSX = SetMaterialProperty( CSX, 'via4', 'Kappa', 0.505e-6 / (0.38 * 0.8e-6 * 0.8e-6) ); CSX = AddMaterial( CSX, 'metal5' ); CSX = SetMaterialProperty( CSX, 'metal5', 'Kappa', 2.784740e+07 ); CSX = AddBox( CSX, 'PI1', 0, [x_min y_min 5.7488], [x_max y_max 11.8834] ); CSX = AddBox( CSX, 'TOPNIT', 0, [x_min y_min 5.3711], [x_max y_max 5.7488] ); CSX = AddBox( CSX, 'NILD6', 0, [x_min y_min 4.0211], [x_max y_max 5.3711] ); CSX = AddBox( CSX, 'NILD5', 0, [x_min y_min 2.7861], [x_max y_max 4.0211] ); CSX = AddBox( CSX, 'NILD4', 0, [x_min y_min 2.0061], [x_max y_max 2.7861] ); CSX = AddBox( CSX, 'NILD3', 0, [x_min y_min 1.3761], [x_max y_max 2.0061] ); CSX = AddBox( CSX, 'NILD2', 0, [x_min y_min 1.0111], [x_max y_max 1.3761] ); CSX = AddBox( CSX, 'LINT', 0, [x_min y_min 0.9361], [x_max y_max 1.0111] ); CSX = AddBox( CSX, 'PSG', 0, [x_min y_min 0.3262], [x_max y_max 0.9361] ); CSX = AddBox( CSX, 'FOX', 0, [x_min y_min 0.0000], [x_max y_max 0.3262] ); CSX = AddBox( CSX, 'substr', 0, [x_min y_min -1.0000], [x_max y_max 0.0000] );
Matlab
4
diadatp/sky130_rf_tools
openems/create_sky130_geometry.matlab
[ "Apache-2.0" ]
{ "main": "dist/keystone-ui-icons-icons-TruckIcon.cjs.js", "module": "dist/keystone-ui-icons-icons-TruckIcon.esm.js" }
JSON
0
pazams/keystone
design-system/packages/icons/icons/TruckIcon/package.json
[ "MIT" ]
Red/System [ Title: "Red execution stack functions" Author: "Nenad Rakocevic" File: %stack.reds Tabs: 4 Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved." License: { Distributed under the Boost Software License, Version 1.0. See https://github.com/red/red/blob/master/BSL-License.txt } ] #define CALL_STACK_MASK 0F000000h #define CALL_STACK_TYPE?(p flags) (CALL_STACK_MASK and p/header = flags) #define NOT_CALL_STACK_TYPE?(p flags) (CALL_STACK_MASK and p/header <> flags) stack: context [ ;-- call stack verbose: 0 dyn-info!: alias struct! [ header [integer!] code [integer!] count [integer!] locals [integer!] ] call-frame!: alias struct! [ header [integer!] ;-- symbol ID of the calling function prev [red-value!] ;-- previous frame base ctx [node!] ;-- context for function's name fctx [node!] saved [node!] ] args-series: as series! 0 calls-series: as series! 0 a-end: as red-value! 0 c-end: as call-frame! 0 arguments: as red-value! 0 bottom: as red-value! 0 top: as red-value! 0 cbottom: as call-frame! 0 ctop: as call-frame! 0 body-symbol: 0 ;-- symbol ID anon-symbol: 0 ;-- symbol ID where-ctop: as call-frame! 0 ;-- saved call stack position for "Where:" error field #define MARK_STACK(type) [ func [fun [red-word!]][mark fun type] ] #define STACK_SET_FRAME [ either ctop = cbottom [ arguments: bottom top: bottom ][ top: arguments + 1 ;-- keep last value on stack arguments: ctop/prev ] ] ;-- header flags #enum flags! [ FLAG_INTERPRET: 80000000h ;-- Called from interpreter FLAG_THROW_ATR: 40000000h ;-- Throw function attribute FLAG_CATCH_ATR: 20000000h ;-- Catch function attribute FLAG_IN_FUNC: 10000000h ;-- Inside of a function body (volatile flag) FRAME_FUNCTION: 01000000h ;-- function! call FRAME_NATIVE: 02000000h ;-- native! or action! call FRAME_ROUTINE: 03000000h ;-- <reserved> FRAME_TRY: 04000000h ;-- TRY native FRAME_TRY_ALL: 05000000h ;-- TRY native with /ALL FRAME_CATCH: 06000000h ;-- CATCH native FRAME_EVAL: 87000000h ;-- Interpreter root frame FRAME_LOOP: 08000000h ;-- Iterator (for BREAK/CONTINUE support) FRAME_DYN_CALL: 09000000h ;-- Dynamic call (alternative stack mode) FRAME_INT_FUNC: 81000000h ;-- function! call from interpreter FRAME_INT_NAT: 82000000h ;-- native! or action! call from interpreter FRAME_IN_CFUNC: 12000000h ;-- Inside a compiled function body ] init: does [ ;-- Shortcuts for stack buffers simpler and faster access ;-- (stack buffers are not resizable with such approach ;-- this can be made more flexible (but slower) if necessary ;-- in the future) args-series: GET_BUFFER(arg-stk) calls-series: GET_BUFFER(call-stk) a-end: as cell! (as byte-ptr! args-series) + args-series/size c-end: as call-frame! (as byte-ptr! calls-series) + calls-series/size bottom: args-series/offset arguments: bottom top: bottom cbottom: as call-frame! calls-series/offset ctop: cbottom body-symbol: words/_body/symbol anon-symbol: words/_anon/symbol ] set-ctop: func [ptr [int-ptr!]][ctop: as call-frame! ptr] mark: func [ fun [red-word!] type [integer!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/mark"]] if ctop >= c-end [ top: top - 5 ;-- make space within the stack for error processing if top < bottom [top: bottom] fire [TO_ERROR(internal stack-overflow)] ] ctop/header: type or (fun/symbol << 8) ctop/prev: arguments ctop/ctx: fun/ctx ctop/fctx: null ctop/saved: null ctop: ctop + 1 arguments: top ;-- top of stack becomes frame base assert top >= bottom #if debug? = yes [if verbose > 1 [dump]] ] mark-func: func [ fun [red-word!] ctx-name [node!] /local ctx [red-context!] values [node!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/mark-func"]] if ctop >= c-end [ top: top - 5 ;-- make space within the stack for error processing if top < bottom [top: bottom] fire [TO_ERROR(internal stack-overflow)] ] values: either null? ctx-name [null][ ;-- null only happens in some libRedRT cases ctx: TO_CTX(ctx-name) ctx/values ] ctop/header: FRAME_FUNCTION or (fun/symbol << 8) ctop/prev: arguments ctop/ctx: fun/ctx ctop/fctx: ctx-name ctop/saved: values ctop: ctop + 1 arguments: top ;-- top of stack becomes frame base assert top >= bottom #if debug? = yes [if verbose > 1 [dump]] ] reset: func [ return: [cell!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/reset"]] top: arguments assert top >= bottom arguments ] keep: func [ return: [cell!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/keep"]] top: arguments + 1 ;-- keep last value in arguments slot arguments ] mark-native: MARK_STACK(FRAME_NATIVE) mark-try: MARK_STACK(FRAME_TRY) mark-try-all: MARK_STACK(FRAME_TRY_ALL) mark-catch: MARK_STACK(FRAME_CATCH) mark-eval: MARK_STACK(FRAME_EVAL) mark-dyn: MARK_STACK(FRAME_DYN_CALL) mark-loop: MARK_STACK(FRAME_LOOP) mark-interp-native: MARK_STACK(FRAME_INT_NAT) mark-interp-func: MARK_STACK(FRAME_INT_FUNC) mark-func-body: MARK_STACK(FRAME_IN_CFUNC) set-in-func-flag: func [ state [logic!] /local frame [call-frame!] ][ frame: ctop - 1 either state [ frame/header: frame/header or FLAG_IN_FUNC ][ frame/header: frame/header and not FLAG_IN_FUNC ] ] collect-calls: func [ dst [red-block!] /local p [call-frame!] ctx [node!] sym [integer!] ][ p: ctop - 1 until [ sym: p/header >> 8 and FFFFh if all [sym <> body-symbol sym <> anon-symbol][ ctx: either null? p/fctx [global-ctx][p/fctx] block/rs-append dst as red-value! word/at ctx sym integer/make-at ALLOC_TAIL(dst) (as-integer p/prev - stack/bottom) >> 4 ] p: p - 1 p <= cbottom ] ] get-call: func [ return: [red-word!] /local p [call-frame!] sym [integer!] ][ p: either where-ctop = null [ctop][where-ctop] until [ p: p - 1 sym: p/header >> 8 and FFFFh any [ all [sym <> body-symbol sym <> anon-symbol] p < cbottom ] ] where-ctop: null either p < cbottom [words/_not-found][word/at p/ctx sym] ] revert: does [ #if debug? = yes [if verbose > 0 [print-line "stack/revert"]] assert cbottom < ctop ctop: ctop - 1 either ctop = cbottom [ arguments: bottom top: bottom ][ top: arguments arguments: ctop/prev ] assert top >= bottom assert arguments >= bottom #if debug? = yes [if verbose > 1 [dump]] ] unwind-part: does [ #if debug? = yes [if verbose > 0 [print-line "stack/unwind-part"]] assert cbottom < ctop ctop: ctop - 1 either ctop = cbottom [ arguments: bottom ][ arguments: ctop/prev ] top: top - 1 assert top >= bottom assert arguments >= bottom #if debug? = yes [if verbose > 1 [dump]] ] unwind: does [ #if debug? = yes [if verbose > 0 [print-line "stack/unwind"]] assert cbottom < ctop ctop: ctop - 1 top: arguments + 1 arguments: ctop/prev assert arguments >= bottom #if debug? = yes [if verbose > 1 [dump]] ] unwind-last: func [ return: [red-value!] /local last [red-value!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/unwind-last"]] last: arguments unwind assert arguments >= bottom copy-cell last arguments ] unroll-frames: func [ flags [integer!] inner? [logic!] ;-- YES: stay in inner frame /local type [integer!] node [node!] ctx [red-context!] ][ assert cbottom < ctop until [ ctop: ctop - 1 type: CALL_STACK_MASK and ctop/header if type = FRAME_FUNCTION [ node: ctop/fctx if node <> null [ ctx: TO_CTX(node) ctx/values: ctop/saved ] ] any [ ctop <= cbottom type = flags type = FRAME_TRY_ALL ] ] if inner? [ctop: ctop + 1] STACK_SET_FRAME unless inner? [ctop: ctop + 1] ;-- ctop points past the current call frame ] unroll: func [ flags [integer!] /local last [red-value!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/unroll"]] last: arguments unroll-frames flags no assert ctop/prev >= bottom copy-cell last ctop/prev arguments: ctop/prev top: arguments ] unroll-loop: func [inner? [logic!]][ #if debug? = yes [if verbose > 0 [print-line "stack/unroll-loop"]] unroll-frames FRAME_LOOP inner? ] adjust: does [ top: top - 1 assert top >= bottom copy-cell top top - 1 ] trace-in: func [ level [integer!] list [red-block!] ;-- optional call stack storage block stk [integer!] /local fun [red-value!] top [call-frame!] base [call-frame!] sym [integer!] ][ top: as call-frame! stk base: cbottom until [ sym: base/header >> 8 and FFFFh if all [sym <> body-symbol sym <> anon-symbol][ fun: _context/get-any sym base/ctx if any [level > 1 TYPE_OF(fun) = TYPE_FUNCTION][ word/make-at sym ALLOC_TAIL(list) ] ] base: base + 1 base >= top ;-- defensive exit condition ] ] trace: func [ level [integer!] int [red-integer!] buffer [red-string!] part [integer!] return: [integer!] /local value [red-value!] fun [red-value!] top [call-frame!] base [call-frame!] sym [integer!] ][ top: as call-frame! int/value value: stack/push* int: as red-integer! value int/header: TYPE_INTEGER base: cbottom until [ sym: base/header >> 8 and FFFFh if all [sym <> body-symbol sym <> anon-symbol][ fun: _context/get-any sym base/ctx if any [level > 1 TYPE_OF(fun) = TYPE_FUNCTION][ part: word/form word/make-at sym value buffer null part if base >= cbottom [ string/concatenate-literal buffer " " part: part - 1 ] ] ] base: base + 1 base >= top ;-- defensive exit condition ] part ] set-stack: func [ err [red-object!] /local base [red-value!] int [red-integer!] ][ base: object/get-values err int: as red-integer! base + error/get-stack-id if TYPE_OF(int) = TYPE_BLOCK [exit] ;-- call stack already captured int/header: TYPE_INTEGER int/value: as-integer ctop ] throw-error: func [ err [red-object!] /local extra [red-value!] all? [logic!] ][ if ctop > cbottom [ error/set-where err as red-value! get-call set-stack err extra: top unroll-frames FRAME_TRY no ctop: ctop - 1 assert ctop >= cbottom top: extra ] if all [ ctop = cbottom NOT_CALL_STACK_TYPE?(ctop FRAME_TRY) NOT_CALL_STACK_TYPE?(ctop FRAME_TRY_ALL) ][ set-last as red-value! err natives/print* no quit -2 ] assert top >= bottom push as red-value! err throw RED_THROWN_ERROR ] throw-break: func [ return? [logic!] cont? [logic!] /local result [red-value!] save-top [red-value!] save-ctop [call-frame!] ][ assert top >= bottom result: arguments save-top: top save-ctop: ctop if ctop > cbottom [ctop: ctop - 1] ;-- unwind the stack and determine the outcome of a break/continue exception until [ if CALL_STACK_TYPE?(ctop FRAME_TRY_ALL) [ ctop: save-ctop either cont? [fire [TO_ERROR(throw continue)]][fire [TO_ERROR(throw break)]] ] ctop: ctop - 1 any [ ctop <= cbottom CALL_STACK_TYPE?(ctop FRAME_LOOP) ;-- loop found, we are fine! ] ] either all [ctop <= cbottom NOT_CALL_STACK_TYPE?(ctop FRAME_LOOP)][ arguments: result top: save-top ctop: save-ctop either cont? [fire [TO_ERROR(throw continue)]][fire [TO_ERROR(throw break)]] ][ ctop: ctop + 1 arguments: ctop/prev top: arguments assert top >= bottom either all [return? not cont?][set-last result][unset/push-last] either cont? [ throw RED_THROWN_CONTINUE ][ throw RED_THROWN_BREAK ] ] ] throw-exit: func [ return? [logic!] /local result [red-value!] save-top [red-value!] save-ctop [call-frame!] ][ assert top >= bottom result: arguments save-top: top save-ctop: ctop if ctop > cbottom [ctop: ctop - 1] ;-- unwind the stack and determine the outcome of an exit/return exception until [ if CALL_STACK_TYPE?(ctop FRAME_TRY_ALL) [ ctop: save-ctop fire [TO_ERROR(throw return)] ] ctop: ctop - 1 any [ ctop <= cbottom ctop/header and FLAG_IN_FUNC <> 0 ;-- function body, we are fine! ] ] either all [ctop <= cbottom ctop/header and FLAG_IN_FUNC = 0][ arguments: result top: save-top ctop: save-ctop fire [TO_ERROR(throw return)] ][ ctop: ctop + 1 arguments: ctop/prev top: arguments assert top >= bottom either return? [ set-last result throw RED_THROWN_RETURN ][ unset/push-last throw RED_THROWN_EXIT ] ] ] throw-throw: func [ id [integer!] /local result [red-value!] save-top [red-value!] save-ctop [call-frame!] ][ assert top >= bottom result: arguments save-top: top save-ctop: ctop if ctop > cbottom [ctop: ctop - 1] if where-ctop = null [where-ctop: ctop] ;-- unwind the stack and determine the outcome of a throw exception until [ if CALL_STACK_TYPE?(ctop FRAME_TRY_ALL) [ ctop: save-ctop fire [TO_ERROR(throw throw) result] ] ctop: ctop - 1 any [ ctop <= cbottom CALL_STACK_TYPE?(ctop FRAME_CATCH) ;-- CATCH call found, we are fine! ] ] either all [ctop <= cbottom NOT_CALL_STACK_TYPE?(ctop FRAME_CATCH)][ arguments: result top: save-top ctop: save-ctop fire [TO_ERROR(throw throw) result] ][ ctop: ctop + 1 arguments: ctop/prev top: arguments assert top >= bottom push result push result + 1 ;-- get back the NAME argument too throw id ] ] adjust-post-try: does [ if top-type? = TYPE_ERROR [ assert top - 1 >= bottom set-last top - 1 ] top: arguments + 1 ] get-ctop: func [return: [byte-ptr!]][as byte-ptr! ctop - 1] eval?: func [ ptr [byte-ptr!] parent? [logic!] return: [logic!] /local cframe [call-frame!] ][ cframe: either null? ptr [ctop][(as call-frame! ptr)] until [ cframe: cframe - 1 if FLAG_INTERPRET and cframe/header = FLAG_INTERPRET [return yes] any [parent? cframe <= cbottom] ] no ] set-last: func [ last [red-value!] return: [red-value!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/set-last"]] copy-cell last arguments ] push*: func [ return: [red-value!] /local cell [red-value!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/push*"]] cell: top top: top + 1 if top >= a-end [ top: top - 5 ;-- make space within the stack for error processing fire [TO_ERROR(internal stack-overflow)] ] cell ] push: func [ value [red-value!] return: [red-value!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/push"]] copy-cell value top push* ] pop: func [ positions [integer!] ][ #if debug? = yes [if verbose > 0 [print-line "stack/pop"]] top: top - positions if top < bottom [top: bottom] ] top-type?: func [ return: [integer!] /local value [red-value!] ][ value: top - 1 assert value >= bottom TYPE_OF(value) ] get-top: func [return: [red-value!]][ either top = bottom [top][top - 1] ] func?: func [ return: [logic!] /local value [red-value!] type [integer!] ][ value: top - 1 assert value >= bottom type: TYPE_OF(value) any [ ;@@ replace with ANY_FUNCTION? type = TYPE_FUNCTION type = TYPE_ROUTINE ] ] #if debug? = yes [ dump: does [ ;-- debug purpose only print-line "^/---- Argument stack ----" dump-memory as byte-ptr! bottom 4 (as-integer top + 1 - bottom) >> 4 print-line ["arguments: " arguments] print-line ["top: " top] print-line "^/---- Call stack ----" dump-memory as byte-ptr! cbottom 4 (as-integer ctop + 2 - cbottom) >> 4 print-line ["ctop: " ctop] ] ] ]
Red
4
GalenIvanov/red
runtime/stack.reds
[ "BSL-1.0", "BSD-3-Clause" ]
import { AnimationClip } from '../animation/AnimationClip.js'; import { FileLoader } from './FileLoader.js'; import { Loader } from './Loader.js'; class AnimationLoader extends Loader { constructor( manager ) { super( manager ); } load( url, onLoad, onProgress, onError ) { const scope = this; const loader = new FileLoader( this.manager ); loader.setPath( this.path ); loader.setRequestHeader( this.requestHeader ); loader.setWithCredentials( this.withCredentials ); loader.load( url, function ( text ) { try { onLoad( scope.parse( JSON.parse( text ) ) ); } catch ( e ) { if ( onError ) { onError( e ); } else { console.error( e ); } scope.manager.itemError( url ); } }, onProgress, onError ); } parse( json ) { const animations = []; for ( let i = 0; i < json.length; i ++ ) { const clip = AnimationClip.parse( json[ i ] ); animations.push( clip ); } return animations; } } export { AnimationLoader };
JavaScript
4
prominentdetail/three.js
src/loaders/AnimationLoader.js
[ "MIT" ]
try { dir ("milvus-helm-charts") { // sh 'helm init --client-only --skip-refresh --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts' // sh 'helm repo update' checkout([$class: 'GitSCM', branches: [[name: "${HELM_BRANCH}"]], userRemoteConfigs: [[url: "${HELM_URL}", name: 'origin', refspec: "+refs/heads/${HELM_BRANCH}:refs/remotes/origin/${HELM_BRANCH}"]]]) } // dir ("milvus_benchmark") { // print "Git clone url: ${TEST_URL}:${TEST_BRANCH}" // checkout([$class: 'GitSCM', branches: [[name: "${TEST_BRANCH}"]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_USER}", url: "${TEST_URL}", name: 'origin', refspec: "+refs/heads/${TEST_BRANCH}:refs/remotes/origin/${TEST_BRANCH}"]]]) print "Install requirements" // sh "python3 -m pip install pymilvus-distributed==0.0.57" // sh "python3 -m pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com" sh "python3 -m pip install -r requirements.txt" if ("${params.CLUSTER_NAME}" == "idc-kubernetes") { sh "export KUBECONFIG=/root/kube/.kube/config && cd milvus_benchmark && export PYTHONPATH=${env.WORKSPACE}/ && python3 main.py --image-version=${params.IMAGE_VERSION} --schedule-conf=scheduler/${params.CONFIG_FILE}" } else { sh "cd milvus_benchmark && export PYTHONPATH=${env.WORKSPACE}/ && python3 main.py --image-version=${params.IMAGE_VERSION} --schedule-conf=scheduler/${params.CONFIG_FILE}" } // } } catch (exc) { echo 'Deploy Test Failed !' throw exc }
Groovy
3
chriswarnock/milvus
tests/milvus_benchmark/ci/jenkinsfile/deploy_test.groovy
[ "Apache-2.0" ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <%method wrap> <%args scope="request"> title </%args> <div id="header"> <h1><% title %></h1> </div> <% m.content() %> </%method> <div id="footer"></div> </html> <%method greeting> <%args> name </%args> Hello, <% name | h %> </%method>
Myghty
3
omunroe-com/sbvedwllorg
examples/bench/myghty/base.myt
[ "BSD-3-Clause" ]
// // Copyright (c) 2006, Brian Frank and Andy Frank // Licensed under the Academic Free License version 3.0 // // History: // 2 Dec 05 Brian Frank Creation // 17 Sep 06 Brian Frank Ported from Java to Fan // ** ** CheckErrors walks the tree of statements and expressions looking ** for errors the compiler can detect such as invalid type usage. We ** attempt to leave all the error reporting to this step, so that we ** can batch report as many errors as possible. ** ** Since CheckErrors already performs a full tree walk down to each leaf ** expression, we also do a couple of other AST decorations in this step: ** 1) add temp local for field assignments like return ++x ** 2) add temp local for returns inside protected region ** 3) check for field accessor optimization ** 4) check for field storage requirements ** 5) add implicit coersions: auto-casts, boxing, to non-nullable ** 6) implicit call to toImmutable when assigning to const field ** 7) mark ClosureExpr.setsConst ** class CheckErrors : CompilerStep { ////////////////////////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////////////////////////////////// new make(Compiler compiler) : super(compiler) { //this.isSys = compiler.isSys } ////////////////////////////////////////////////////////////////////////// // Run ////////////////////////////////////////////////////////////////////////// override Void run() { log.debug("CheckErrors") checkPodDef(pod) walk(compiler, VisitDepth.expr) bombIfErr } ////////////////////////////////////////////////////////////////////////// // PodDef ////////////////////////////////////////////////////////////////////////// Void checkPodDef(PodDef pod) { } ////////////////////////////////////////////////////////////////////////// // TypeDef ////////////////////////////////////////////////////////////////////////// override Void visitTypeDef(TypeDef t) { // check type flags checkTypeFlags(t) // facets checkFacets(t.facets) // check for abstract slots in concrete class checkAbstractSlots(t) // check for const slots in const class checkConstType(t) // verify we don't use a restricted name if (isRestrictedName(t.name)) err("Type name '$t.name' is restricted", t.loc) // verify type name doesn't conflict with resource name checkResConflicts(t) // if type extends from any FFI types then give bridge a hook foreign := t.foreignInheritance if (foreign != null) foreign.bridge.checkType(t) // check some knuckle head doesn't override type if (t.slotDef("typeof") != null && t.qname != "sys::Obj" && t.qname != "std::Type" /*&& !isSys*/) err("Cannot override Obj.typeof()", t.slotDef("typeof").loc) // check inheritance if (t.base != null) checkBase(t, t.base) t.mixins.each |CType m| { checkMixin(t, m) } // check definite assignment of static fields checkDefiniteAssign(t.staticInit) } static Bool isRestrictedName(Str name) { // disallow types to conflict with docs URI return name == "pod" || name == "index" } private Void checkResConflicts(TypeDef t) { compiler.input.resFiles?.each |uri| { if (uri.path.first == t.name) err("Resource `$uri` conflicts with type name '$t.name'", t.loc) } } private Void checkTypeFlags(TypeDef t) { flags := t.flags loc := t.loc // these modifiers are never allowed on a type if (flags.and(FConst.Ctor) != 0) err("Cannot use 'new' modifier on type", loc) if (flags.and(FConst.Once) != 0) err("Cannot use 'once' modifier on type", loc) if (flags.and(FConst.Override) != 0) err("Cannot use 'override' modifier on type", loc) if (flags.and(FConst.Private) != 0) err("Cannot use 'private' modifier on type", loc) if (flags.and(FConst.Protected) != 0) err("Cannot use 'protected' modifier on type", loc) if (flags.and(FConst.Static) != 0) err("Cannot use 'static' modifier on type", loc) // check invalid protection combinations checkProtectionFlags(flags, loc) // check abstract and final if (flags.and(FConst.Abstract) != 0 && flags.and(FConst.Final) != 0) err("Invalid combination of 'abstract' and 'final' modifiers", loc) if (flags.and(FConst.Virtual) != 0 && flags.and(FConst.Final) != 0) err("Invalid combination of 'virtual' and 'final' modifiers", loc) } private Void checkAbstractSlots(TypeDef t) { // if already abstract, nothing to check if (t.isAbstract) return errForDef := false closure := |CSlot slot| { if (!slot.isAbstract) return if (slot.parent === t) { if (!errForDef) { err("Class '$t.name' must be abstract since it contains abstract slots", t.loc) errForDef = true } } else { err("Class '$t.name' must be abstract since it inherits but doesn't override '$slot.qname'", t.loc) } } if (compiler.input.isTest) t.slots.vals.sort.each(closure) else t.slots.each(closure) } private Void checkConstType(TypeDef t) { if (t.isVal) { t.fieldDefs.each |FieldDef f| { if (!f.isConst && !f.isStatic && f.isStorage && !f.isReadonly) err("Struct type '$t.name' cannot contain non-readonly field '$f.name'", f.loc) } } // if not const then nothing to check if (!t.isConst) return // const class cannot inherit from non-const class if (t.base != null && t.base != ns.objType && !t.base.isConst) err("Const type '$t.name' cannot subclass non-const class '$t.base.name'", t.loc) // check that each field is const or has no storage; don't // worry about statics because they are forced to be const // in another check t.fieldDefs.each |FieldDef f| { if (!f.isConst && !f.isStatic && f.isStorage /* && !isSys*/ && !f.isOnce) { if (t.isNative && t.pod.name == "sys") { //pass } else err("Const type '$t.name' cannot contain non-const field '$f.name'", f.loc) } } } private Void checkBase(TypeDef t, CType base) { // check that a public class doesn't subclass from internal classes if (t.isPublic && !base.isPublic) err("Public type '$t.name' cannot extend from internal class '$base.name'", t.loc) // if base is const, then t must be const if (!t.isConst && base.isConst) err("Non-const type '$t.name' cannot subclass const class '$base.name'", t.loc) } private Void checkMixin(TypeDef t, CType m) { // check that a public class doesn't implement from internal mixin if (t.isPublic && !m.isPublic) err("Public type '$t.name' cannot implement internal mixin '$m.name'", t.loc) // if mixin is const, then t must be const if (!t.isConst && m.isConst) err("Non-const type '$t.name' cannot implement const mixin '$m.name'", t.loc) } ////////////////////////////////////////////////////////////////////////// // FieldDef ////////////////////////////////////////////////////////////////////////// override Void visitFieldDef(FieldDef f) { // if this field overrides a concrete field, // then it never gets its own storage if (f.concreteBase != null) f.flags = f.flags.and(FConst.Storage.not) // check for invalid flags checkFieldFlags(f) // facets checkFacets(f.facets) // mixins cannot have non-abstract fields if (curType.isMixin && !f.isAbstract && !f.isStatic) err("Mixin field '$f.name' must be abstract", f.loc) // abstract field cannot have initialization if (f.isAbstract && f.init != null) err("Abstract field '$f.name' cannot have initializer", f.init.loc) // abstract field cannot have getter/setter if (f.isAbstract && (f.hasGet || f.hasSet)) err("Abstract field '$f.name' cannot have getter or setter", f.loc) // check internal type checkTypeProtection(f.fieldType, f.loc) // check that public field isn't using internal type if (curType.isPublic && (f.isPublic || f.isProtected) && !f.fieldType.isPublic) err("Public field '${curType.name}.${f.name}' cannot use internal type '$f.fieldType'", f.loc) checkParameterizedType(f.loc, f.fieldType) } private Void checkFieldFlags(FieldDef f) { flags := f.flags loc := f.loc // these modifiers are never allowed on a field if (flags.and(FConst.Ctor) != 0) err("Cannot use 'new' modifier on field", loc) if (flags.and(FConst.Final) != 0) err("Cannot use 'final' modifier on field", loc) if (flags.and(FConst.Once) != 0 && flags.and(FConst.Synthetic) == 0) err("Cannot use 'once' modifier on field", loc) // check invalid protection combinations checkProtectionFlags(flags, loc) // if native if (flags.and(FConst.Native) != 0) { if (flags.and(FConst.Const) != 0) err("Invalid combination of 'native' and 'const' modifiers", loc) if (flags.and(FConst.Abstract) != 0) err("Invalid combination of 'native' and 'abstract' modifiers", loc) if (flags.and(FConst.Static) != 0) err("Invalid combination of 'native' and 'static' modifiers", loc) } // if const if (flags.and(FConst.Const) != 0) { // invalid const flag combo if (flags.and(FConst.Abstract) != 0) err("Invalid combination of 'const' and 'abstract' modifiers", loc) else if (flags.and(FConst.Virtual) != 0 && flags.and(FConst.Override) == 0) err("Invalid combination of 'const' and 'virtual' modifiers", loc) // invalid type if (!f.fieldType.isConstFieldType) err("Const field '$f.name' has non-const type '$f.fieldType'", loc) } else { // static fields must be const if (flags.and(FConst.Static) != 0) err("Static field '$f.name' must be const", loc) } if (flags.and(FConst.Readonly) != 0) { if (flags.and(FConst.Abstract) != 0) err("Invalid combination of 'readonly' and 'abstract' modifiers", loc) if (flags.and(FConst.Const) != 0) err("Invalid combination of 'const' and 'readonly' modifiers", loc) } // check invalid protection combinations on setter (getter // can no modifiers which is checked in the parser) if (f.setter != null) { fieldProtection := flags.and(Parser.ProtectionMask.not) setterProtection := f.set.flags.and(Parser.ProtectionMask.not) if (fieldProtection != setterProtection) { // verify protection flag combinations checkProtectionFlags(f.set.flags, loc) // verify that setter has narrowed protection if (fieldProtection.and(FConst.Private) != 0) { if (setterProtection.and(FConst.Public) != 0) err("Setter cannot have wider visibility than the field", loc) if (setterProtection.and(FConst.Protected) != 0) err("Setter cannot have wider visibility than the field", loc) if (setterProtection.and(FConst.Internal) != 0) err("Setter cannot have wider visibility than the field", loc) } else if (fieldProtection.and(FConst.Internal) != 0) { if (setterProtection.and(FConst.Public) != 0) err("Setter cannot have wider visibility than the field", loc) if (setterProtection.and(FConst.Protected) != 0) err("Setter cannot have wider visibility than the field", loc) } else if (fieldProtection.and(FConst.Protected) != 0) { if (setterProtection.and(FConst.Public) != 0) err("Setter cannot have wider visibility than the field", loc) } } } } ////////////////////////////////////////////////////////////////////////// // MethodDef ////////////////////////////////////////////////////////////////////////// override Void visitMethodDef(MethodDef m) { // check invalid use of flags checkMethodFlags(m) // facets checkFacets(m.facets) // check parameters checkParams(m) // check return checkMethodReturn(m) // check ctors call super (or another this) ctor if (m.isInstanceCtor) checkInstanceCtor(m) // if method has operator facet, check it if (m.hasFacet("sys::Operator")) checkOperatorMethod(m) // check types used in signature if (!m.isAccessor) { checkTypeProtection(m.returnType, m.loc) m.paramDefs.each |ParamDef p| { checkTypeProtection(p.paramType, p.loc) } } // check that public method isn't using internal types in its signature if (!m.isAccessor && curType.isPublic && (m.isPublic || m.isProtected)) { if (!m.returnType.isPublic) err("Public method '${curType.name}.${m.name}' cannot use internal type '$m.returnType'", m.loc); m.paramDefs.each |ParamDef p| { if (!p.paramType.isPublic) err("Public method '${curType.name}.${m.name}' cannot use internal type '$p.paramType'", m.loc); } } } private Void checkMethodFlags(MethodDef m) { // check field accessors in checkFieldFlags if (m.isFieldAccessor) return flags := m.flags loc := m.loc // these modifiers are never allowed on a method if (flags.and(FConst.Final) != 0) err("Cannot use 'final' modifier on method", loc) if (flags.and(FConst.Const) != 0) err("Cannot use 'const' modifier on method", loc) if (flags.and(FConst.Readonly) != 0) err("Cannot use 'readonly' modifier on method", loc) // check invalid protection combinations checkProtectionFlags(flags, loc) // check invalid constructor flags if (flags.and(FConst.Ctor) != 0) { if (flags.and(FConst.Abstract) != 0) err("Invalid combination of 'new' and 'abstract' modifiers", loc) else if (flags.and(FConst.Override) != 0) err("Invalid combination of 'new' and 'override' modifiers", loc) else if (flags.and(FConst.Virtual) != 0) err("Invalid combination of 'new' and 'virtual' modifiers", loc) if (flags.and(FConst.Once) != 0) err("Invalid combination of 'new' and 'once' modifiers", loc) if (flags.and(FConst.Native) != 0 && flags.and(FConst.Static) == 0) err("Invalid combination of 'new' and 'native' modifiers", loc) } // check invalid static flags if (flags.and(FConst.Static) != 0) { if (flags.and(FConst.Abstract) != 0) err("Invalid combination of 'static' and 'abstract' modifiers", loc) else if (flags.and(FConst.Override) != 0) err("Invalid combination of 'static' and 'override' modifiers", loc) else if (flags.and(FConst.Virtual) != 0) err("Invalid combination of 'static' and 'virtual' modifiers", loc) if (flags.and(FConst.Once) != 0) err("Invalid combination of 'static' and 'once' modifiers", loc) } // check invalid abstract flags if (flags.and(FConst.Abstract) != 0) { if (flags.and(FConst.Native) != 0) err("Invalid combination of 'abstract' and 'native' modifiers", loc) if (flags.and(FConst.Once) != 0) err("Invalid combination of 'abstract' and 'once' modifiers", loc) } // mixins cannot have once methods if (flags.and(FConst.Once) != 0) { if (curType.isMixin) err("Mixins cannot have once methods", m.loc) } // mixins cannot have native methods if (flags.and(FConst.Native) != 0) { //TODO if (curType.isMixin) err("Mixins cannot have native methods", m.loc) } // normalize method flags after checking if (m.flags.and(FConst.Static) != 0) m.flags = flags.or(FConst.Const); } private Void checkParams(MethodDef m) { // check that defs are contiguous after first one seenDef := false m.paramDefs.each |ParamDef p| { checkParam(p) if (seenDef) { if (p.def == null) err("Parameter '$p.name' must have default", p.loc) } else { seenDef = p.def != null } } } private Void checkParam(ParamDef p) { // check type t := p.paramType if (t.isVoid) { err("Cannot use Void as parameter type", p.loc); return } if (t.isThis) { err("Cannot use This as parameter type", p.loc); return } if (t.toNonNullable.signature != "sys::Func<sys::Void,sys::This>") { checkValidType(p.loc, t) } // check parameter default type if (p.def != null)// && !p.paramType.isGenericParameter) { p.def = coerce(p.def, p.paramType.raw) |->| { err("'$p.def.toTypeStr' is not assignable to '$p.paramType'", p.def.loc) } } } private Void checkMethodReturn(MethodDef m) { if (m.ret.isThis) { if (m.isStatic) err("Cannot return This from static method", m.loc) if (m.ret.isNullable) err("This type cannot be nullable", m.loc) } if (!m.ret.isThis && !m.ret.isVoid) checkValidType(m.loc, m.ret) } private Void checkInstanceCtor(MethodDef m) { // mixins cannot have constructors if (curType.isMixin) err("Mixins cannot have instance constructors", m.loc) // ensure super/this constructor is called if (m.ctorChain == null && /*!compiler.isSys &&*/ curType.base != null && !curType.base.isObj && !curType.isSynthetic && !curType.isNative) err("Must call super class constructor in '$m.name'", m.loc) // if this constructor doesn't call a this // constructor, then check for definite assignment if (m.ctorChain?.target?.id !== ExprId.thisExpr) checkDefiniteAssign(m) } private Void checkDefiniteAssign(MethodDef? m) { //if (isSys) return if (curType != null && curType.isNative) return // get fields which: // - instance or static fields based on ctor or static {} // - aren't abstract or native // - override of abstract (no concrete base) // - not a calculated field (has storage) // - have a non-nullable, non-value type // - don't have have an init expression isStaticInit := m == null || m.isStatic fields := curType.fieldDefs.findAll |FieldDef f->Bool| { f.isStatic == isStaticInit && !f.isAbstract && !f.isNative && f.isStorage && (!f.isOverride || f.concreteBase == null) && !f.fieldType.isNullable && !f.fieldType.isJavaVal && f.init == null } if (fields.isEmpty) return // check that each one is definitely assigned fields.each |FieldDef f| { definite := m != null && m.code.isDefiniteAssign |Expr lhs->Bool| { // can't be assignment if if lhs is not a field if (lhs.id !== ExprId.field) return false // check that field assignment to the correct slot fe := (FieldExpr)lhs if (fe.field.qname != f.qname) return false // if no target assume static init ft := fe.target if (isStaticInit || ft == null) return true // check if we are assigning the field inside an // closure, in which case move check to runtime if (ft.id === ExprId.field && ((FieldExpr)ft).field.name == "\$this") { f.requiresNullCheck = true; return true } // otherwise must be assignment to this instance return ft.id === ExprId.thisExpr } if (definite) return // if we didn't have a definite assignment on an it-block // constructor that is ok, we just mark the field as requiring // a runtime check in ConstChecks step if (m != null && m.isItBlockCtor) { f.requiresNullCheck = true; return } // report error if (isStaticInit) err("Non-nullable field '$f.name' must be assigned in static initializer", f.loc) else err("Non-nullable field '$f.name' must be assigned in constructor '$m.name'", m.loc) } } private Void checkOperatorMethod(MethodDef m) { prefix := COperators.toPrefix(m.name) if (prefix == null) { err("Operator method '$m.name' has invalid name", m.loc); return } op := ShortcutOp.fromPrefix(prefix) if (m.name == "add" && !m.returnType.isThis /*&& !isSys*/) err("Operator method '$m.name' must return This", m.loc) if (m.returnType.isVoid && op !== ShortcutOp.set) err("Operator method '$m.name' cannot return Void", m.loc) if (m.params.size+1 != op.degree && !(m.params.getSafe(op.degree-1)?.hasDefault ?: false)) err("Operator method '$m.name' has wrong number of parameters", m.loc) } ////////////////////////////////////////////////////////////////////////// // Facets ////////////////////////////////////////////////////////////////////////// Void checkFacets(FacetDef[]? facets) { if (facets == null) return // check each facet (and for dups) for (i := 0; i < facets.size; ++i) { f := facets[i] checkFacet(f) for (j := i+1; j < facets.size; ++j) if (f.type.qname == facets[j].type.qname) err("Duplicate facet '$f.type'", f.loc) } } Void checkFacet(FacetDef f) { // check that facet type is actually a facet if (!f.type.fits(ns.facetType)) err("Not a facet type '$f.type'", f.loc) // check facet field assignments f.names.each |name, i| { val := f.vals[i] // check that field exists field := f.type.field(name) if (field == null) { err("Unknown facet field '${f.type}.$name'", val.loc) return } // check if facet field is deprecated checkDeprecated(field, val.loc) // if null literal if (val.id == ExprId.nullLiteral) { if (!field.fieldType.isNullable) err("Cannot assign null to non-nullable facet field '$name': '$field.fieldType'", val.loc) } // otherwise check field type (no coersion allowed) else { if (!val.ctype.fits(field.fieldType.inferredAs)) err("Invalid type for facet field '$name': expected '$field.fieldType' not '$val.ctype'", val.loc) } } } ////////////////////////////////////////////////////////////////////////// // Statements ////////////////////////////////////////////////////////////////////////// override Void enterStmt(Stmt stmt) { if (stmt.id == StmtId.tryStmt) protectedRegionDepth++ } override Void exitStmt(Stmt stmt) { if (stmt.id == StmtId.tryStmt) protectedRegionDepth-- } override Void enterFinally(TryStmt stmt) { finallyDepth++ } override Void exitFinally(TryStmt stmt) { finallyDepth-- } override Stmt[]? visitStmt(Stmt stmt) { switch (stmt.id) { case StmtId.expr: checkExprStmt((ExprStmt)stmt) case StmtId.localDef: checkLocalDef((LocalDefStmt)stmt) case StmtId.ifStmt: checkIf((IfStmt)stmt) case StmtId.returnStmt: checkReturn((ReturnStmt)stmt) case StmtId.throwStmt: checkThrow((ThrowStmt)stmt) case StmtId.forStmt: checkFor((ForStmt)stmt) case StmtId.whileStmt: checkWhile((WhileStmt)stmt) case StmtId.breakStmt: checkBreak((BreakStmt)stmt) case StmtId.continueStmt: checkContinue((ContinueStmt)stmt) case StmtId.tryStmt: checkTry((TryStmt)stmt) case StmtId.switchStmt: checkSwitch((SwitchStmt)stmt) } return null } private Void checkExprStmt(ExprStmt stmt) { if (!stmt.expr.isStmt) err("Not a statement", stmt.expr.loc) } private Void checkLocalDef(LocalDefStmt stmt) { // check not Void t := stmt.ctype if (t.isVoid) { err("Cannot use Void as local variable type", stmt.loc); return } if (t.isThis) { err("Cannot use This as local variable type", stmt.loc); return } checkValidType(stmt.loc, t) } private Void checkIf(IfStmt stmt) { stmt.condition = coerce(stmt.condition, ns.boolType) |->| { err("If condition must be Bool, not '$stmt.condition.ctype'", stmt.condition.loc) } } private Void checkThrow(ThrowStmt stmt) { stmt.exception = coerce(stmt.exception, ns.errType) |->| { err("Must throw Err, not '$stmt.exception.ctype'", stmt.exception.loc) } } private Void checkThrowExpr(ThrowExpr expr) { expr.exception = coerce(expr.exception, ns.errType) |->| { err("Must throw Err, not '$expr.exception.ctype'", expr.exception.loc) } } private Void checkFor(ForStmt stmt) { if (stmt.condition != null) { stmt.condition = coerce(stmt.condition, ns.boolType) |->| { err("For condition must be Bool, not '$stmt.condition.ctype'", stmt.condition.loc) } } } private Void checkWhile(WhileStmt stmt) { stmt.condition = coerce(stmt.condition, ns.boolType) |->| { err("While condition must be Bool, not '$stmt.condition.ctype'", stmt.condition.loc) } } private Void checkBreak(BreakStmt stmt) { if (stmt.loop == null) err("Break outside of loop (break is implicit in switch)", stmt.loc) // can't leave control of a finally block if (finallyDepth > 0) err("Cannot leave finally block", stmt.loc) } private Void checkContinue(ContinueStmt stmt) { if (stmt.loop == null) err("Continue outside of loop", stmt.loc) // can't leave control of a finally block if (finallyDepth > 0) err("Cannot leave finally block", stmt.loc) } private Void checkReturn(ReturnStmt stmt) { ret := curMethod.ret if (stmt.expr == null) { // this is just a sanity check - it should be caught in parser if (!ret.isVoid) err("Must return a value from non-Void method", stmt.loc) } else if (ret.isVoid) { // Void allows returning of anything if (!stmt.expr.ctype.isVoid) { err("Cannot return a value from Void method", stmt.loc) } } else if (ret.isThis) { stmt.expr = coerce(stmt.expr, curType) |->| { err("Cannot return '$stmt.expr.toTypeStr' as $curType This", stmt.expr.loc) } } else { stmt.expr = coerce(stmt.expr, ret) |->| { err("Cannot return '$stmt.expr.toTypeStr' as '$ret'", stmt.expr.loc) } } // can't use return inside an it-block (might be confusing) if (!stmt.isSynthetic && curType.isClosure && curType.closure.isItBlock && !stmt.isLocal) err("Cannot use return inside it-block", stmt.loc) // can't leave control of a finally block if (finallyDepth > 0) err("Cannot leave finally block", stmt.loc) // add temp local var if returning from a protected region, // we always call this variable "$return" and reuse it if // already declared by a previous return if (stmt.expr != null && protectedRegionDepth > 0 && !stmt.expr.ctype.isVoid) { v := curMethod.vars.find |MethodVar v->Bool| { v.name == "\$return" } if (v == null) v = curMethod.addLocalVar(stmt.expr.ctype, "\$return", null) stmt.leaveVar = v } } private Void checkTry(TryStmt stmt) { // check that try block not empty if (stmt.block.isEmpty) err("Try block cannot be empty", stmt.loc) // check each catch caught := CType[,] stmt.catches.each |Catch c| { CType? errType := c.errType if (errType == null) errType = ns.errType checkTypeProtection(errType, c.loc) if (!errType.fits(ns.errType)) err("Must catch Err, not '$c.errType'", c.errType.loc) else if (errType.fitsAny(caught)) err("Already caught '$errType'", c.loc) caught.add(errType) } } private Void checkSwitch(SwitchStmt stmt) { dups := Int:Int[:] stmt.cases.each |Case c| { for (i:=0; i<c.cases.size; ++i) { expr := c.cases[i] // check comparability of condition and each case checkCompare(expr, stmt.condition) // check for dups literal := expr.asTableSwitchCase if (literal != null) { if (dups[literal] == null) dups[literal] = literal else err("Duplicate case label", expr.loc) } } } } ////////////////////////////////////////////////////////////////////////// // Expr ////////////////////////////////////////////////////////////////////////// override Expr visitExpr(Expr expr) { switch (expr.id) { case ExprId.typeLiteral: checkTypeLiteral(expr) case ExprId.slotLiteral: checkSlotLiteral(expr) case ExprId.listLiteral: checkListLiteral(expr) case ExprId.mapLiteral: checkMapLiteral(expr) case ExprId.rangeLiteral: checkRangeLiteral(expr) case ExprId.boolNot: checkBool(expr) case ExprId.cmpNull: case ExprId.cmpNotNull: checkCompareNull(expr) case ExprId.assign: checkAssign(expr) case ExprId.elvis: checkElvis(expr) case ExprId.boolOr: case ExprId.boolAnd: checkBools(expr) case ExprId.same: case ExprId.notSame: checkSame(expr) case ExprId.shortcut: checkShortcut(expr) case ExprId.call: checkCall(expr) case ExprId.construction: checkConstruction(expr) case ExprId.field: checkField(expr) case ExprId.thisExpr: checkThis(expr) case ExprId.superExpr: checkSuper(expr) case ExprId.isExpr: case ExprId.isnotExpr: case ExprId.asExpr: case ExprId.coerce: checkTypeCheck(expr) case ExprId.ternary: checkTernary(expr) case ExprId.throwExpr: checkThrowExpr(expr) case ExprId.addressOfExpr: checkAddressOf(expr) } return expr } private Void checkAddressOf(AddressOfExpr expr) { if (!expr.var_v.isAssignable) err("addressof is not lvalue", expr.var_v.loc) } private Void checkTypeLiteral(LiteralExpr expr) { checkTypeProtection((CType)expr.val, expr.loc) } private Void checkSlotLiteral(SlotLiteralExpr expr) { checkSlotProtection(expr.slot, expr.loc) } private Void checkListLiteral(ListLiteralExpr expr) { // check the types and ensure that everything gets boxed listType := (ListType)expr.ctype valType := listType.v expr.vals.each |Expr val, Int i| { expr.vals[i] = coerceBoxed(val, valType) |->| { err("Invalid value type '$val.toTypeStr' for list of '$valType'", val.loc) } } } private Void checkMapLiteral(MapLiteralExpr expr) { // check the types and ensure that everything gets boxed mapType := (MapType)expr.ctype keyType := mapType.k valType := mapType.v expr.keys.each |Expr key, Int i| { expr.keys[i] = coerceBoxed(key, keyType) |->| { err("Invalid key type '$key.toTypeStr' for map type '$mapType'", key.loc) } val := expr.vals[i] expr.vals[i] = coerceBoxed(val, valType) |->| { err("Invalid value type '$val.toTypeStr' for map type '$mapType'", val.loc) } } } private Void checkRangeLiteral(RangeLiteralExpr range) { range.start = coerce(range.start, ns.intType) |->| { err("Range must be Int..Int, not '${range.start.ctype}..${range.end.ctype}'", range.loc) } range.end = coerce(range.end, ns.intType) |->| { err("Range must be Int..Int, not '${range.start.ctype}..${range.end.ctype}'", range.loc) } } private Void checkBool(UnaryExpr expr) { expr.operand = coerce(expr.operand, ns.boolType) |->| { err("Cannot apply '$expr.opToken.symbol' operator to '$expr.operand.ctype'", expr.loc) } } private Void checkCompareNull(UnaryExpr expr) { // check if operand is nullable, if so its ok t := expr.operand.ctype if (t.isNullable) return // check if operand is inside it-block ctor; we allow null checks // on non-nullable fields (like Str) during construction, but not // value types (like Int) if (curMethod != null && curMethod.isItBlockCtor) { // check that operand is this.{field} access field := expr.operand as FieldExpr if (field != null && field.target != null && field.target.id == ExprId.thisExpr && !field.ctype.isVal) return } // if we made it here, compirson to null is an error err("Comparison of non-nullable type '$t' to null", expr.loc) } private Void checkBools(CondExpr expr) { expr.operands.each |Expr operand, Int i| { expr.operands[i] = coerce(operand, ns.boolType) |->| { err("Cannot apply '$expr.opToken.symbol' operator to '$operand.ctype'", operand.loc) } } } private Void checkSame(BinaryExpr expr) { checkCompare(expr.lhs, expr.rhs) // don't allow for value types if (expr.lhs.ctype.isVal || expr.rhs.ctype.isVal) err("Cannot use '$expr.opToken.symbol' operator with value types", expr.loc) } private Bool checkCompare(Expr lhs, Expr rhs) { if (!lhs.ctype.fits(rhs.ctype) && !rhs.ctype.fits(lhs.ctype)) { err("Incomparable types '$lhs.ctype' and '$rhs.ctype'", lhs.loc) return false } return true } private Void checkAssign(BinaryExpr expr) { // check that rhs is assignable to lhs expr.rhs = coerce(expr.rhs, expr.lhs.ctype) |->| { err("'$expr.rhs.toTypeStr' is not assignable to '$expr.lhs.ctype'", expr.rhs.loc) } // check that lhs is assignable if (!expr.lhs.isAssignable) err("Left hand side is not assignable", expr.lhs.loc) // check not assigning to same variable if (expr.lhs.sameVarAs(expr.rhs)) err("Self assignment", expr.lhs.loc) // check left hand side field (common code with checkShortcut) if (expr.lhs.id === ExprId.field) expr.rhs = checkAssignField((FieldExpr)expr.lhs, expr.rhs) // check that no safe calls used on entire left hand side checkNoNullSafes(expr.lhs) // take this opportunity to generate a temp local variable if needed if (expr.leave && expr.lhs.assignRequiresTempVar) expr.tempVar = curMethod.addLocalVar(expr.lhs.ctype, null, null) } private Void checkElvis(BinaryExpr expr) { if (!expr.lhs.ctype.isNullable) err("Cannot use '?:' operator on non-nullable type '$expr.lhs.ctype'", expr.loc) expr.rhs = coerce(expr.rhs, expr.ctype) |->| { err("Cannot coerce '$expr.rhs.toTypeStr' to '$expr.ctype'", expr.rhs.loc); } } private Void checkNoNullSafes(Expr? x) { while (x is NameExpr) { ne := (NameExpr)x if (ne.isSafe) err("Null-safe operator on left hand side of assignment", x.loc) x = ne.target } } private Void checkShortcut(ShortcutExpr shortcut) { switch (shortcut.opToken) { // comparable case Token.eq: case Token.notEq: case Token.gt: case Token.gtEq: case Token.lt: case Token.ltEq: case Token.cmp: if (!checkCompare(shortcut.target, shortcut.args.first)) return } // if assignment if (shortcut.isAssign) { lhs := shortcut.target ret := shortcut.method.returnType // check that lhs is assignable if (!lhs.isAssignable) err("Target is not assignable", lhs.loc) // if the expression fits to type (no coercion supported) if (!ret.isThis && !lhs.ctype.fits(ret)) err("'$ret' is not assignable to '$lhs.ctype'", lhs.loc) // check left hand side field (common code with checkAssign) if (lhs.id === ExprId.field) checkAssignField((FieldExpr)lhs, shortcut.args.first) // check that no safe calls used on entire left hand side checkNoNullSafes(lhs) } // take this oppotunity to generate a temp local variable if needed if (shortcut.leave && shortcut.isAssign && shortcut.target.assignRequiresTempVar) shortcut.tempVar = curMethod.addLocalVar(shortcut.ctype, null, null) // we need two scratch variables to manipulate the stack cause // .NET is lame when it comes to doing anything with the stack // - scratchA: target collection // - scratchB: index indexedAssign := shortcut as IndexedAssignExpr if (indexedAssign != null) { target := (ShortcutExpr)indexedAssign.target indexedAssign.scratchA = curMethod.addLocalVar(target.target.ctype, null, null) indexedAssign.scratchB = curMethod.addLocalVar(target.args[0].ctype, null, null) } // perform normal call checking if (!shortcut.isCompare) checkCall(shortcut) } ** Check if field is assignable, return new rhs. private Expr? checkAssignField(FieldExpr lhs, Expr? rhs) { field := ((FieldExpr)lhs).field // check protection scope (which might be more narrow than the scope // of the entire field as checked in checkProtection by checkField) if (field.setter != null && slotProtectionErr(curType, field) == null) checkSlotProtection(field.setter, lhs.loc, true) // if not-const we are done if (!field.isConst && !field.isReadonly) return rhs // for purposes of const field checking, consider closures // inside a constructor or static initializer to be ok inType := curType inMethod := curMethod if (inType.isClosure) { //curType.closure.setsConst = true inType = inType.closure.enclosingType inMethod = (curType.closure.enclosingSlot as MethodDef) ?: curMethod } // check attempt to set static field outside of static initializer if (field.isStatic && !inMethod.isStaticInit) { err("Cannot set const static field '$field.name' outside of static initializer", lhs.loc) return rhs } // we allow setting an instance ctor field in an // it-block, otherwise dive in for further checking if (curType.isClosure && curType.closure.isItBlock && lhs.target is ItExpr && curType.closure.followCtorType == curType.closure.itType && curType.closure.followCtorType.fits(field.parent)) { //pass } else { // check attempt to set field outside of owning class or subclass if (inType != field.parent) { if (!inType.fits(field.parent) || !inMethod.isInstanceCtor) { if (field.parent.isVal) err("Cannot set struct field '$field.qname'", lhs.loc) else err("Cannot set const field '$field.qname'", lhs.loc) return rhs } } // check attempt to set instance field outside of ctor if (!field.isStatic && !(inMethod.isInstanceInit || inMethod.isInstanceCtor)) { if (field.parent.isVal) err("Cannot set struct field '$field.qname'", lhs.loc) else err("Cannot set const field '$field.name' outside of constructor", lhs.loc) return rhs } } // any other errors should already be logged at this point (see isConstFieldType) if (field.isConst) { // if non-const make an implicit call toImmutable ftype := field.fieldType if (ftype.isConst) return rhs else return implicitToImmutable(ftype, rhs) } return rhs } private Expr implicitToImmutable(CType fieldType, Expr rhs) { // leave null literal as is if (rhs.id == ExprId.nullLiteral) return rhs // wrap existing assigned with call toImmutable call := CallExpr.makeWithMethod(rhs.loc, rhs, ns.objToImmutable) { isSafe = true } if (fieldType.toNonNullable.isObj) return call return TypeCheckExpr.coerce(call, fieldType) } private Void checkConstruction(CallExpr call) { if (!call.method.isCtor) { // TODO warn("Using static method '$call.method.qname' as constructor", call.loc) // check that ctor method is the expected type if (call.ctype.toNonNullable != call.method.returnType.toNonNullable) err("Construction method '$call.method.qname' must return '$call.ctype.name'", call.loc) // but allow ctor to be typed as nullable call.ctype = call.method.returnType } checkCall(call) } private Void checkCall(CallExpr call) { m := call.method if (m == null) { err("Something wrong with method call?", call.loc) return } name := m.name // can't call method on Void if (call.target != null && call.target.ctype.isVoid) { err("Cannot call method on Void", call.loc) return } // check protection scope checkSlotProtection(call.method, call.loc) // if a foreign function, then verify we aren't using unsupported types if (m.isForeign) { // just log one use of unsupported return or param type and return if (!m.returnType.isSupported) { err("Method '$name' uses unsupported type '$m.returnType'", call.loc) return } unsupported := m.params.find |CParam p->Bool| { !p.paramType.isSupported } if (unsupported != null) { err("Method '$name' uses unsupported type '$unsupported.paramType'", call.loc) return } } // arguments if (!call.isDynamic || call.isCheckedCall) { // do normal call checking and coercion checkArgs(call) } if (call.isDynamic) { // if dynamic all ensure all the args are boxed call.args.each |Expr arg, Int i| { call.args[i] = box(call.args[i]) } } // if constructor if (m.isCtor && !call.isCtorChain) { // ensure we aren't calling constructors on an instance if (call.target != null && call.target.id !== ExprId.staticTarget && !call.target.synthetic) err("Cannot call constructor '$name' on instance", call.loc) // ensure we aren't calling a constructor on an abstract class if (m.parent.isAbstract && !m.isStatic) err("Calling constructor on abstract class", call.loc) } // ensure we aren't calling static methods on an instance if (m.isStatic) { if (call.target != null && call.target.id !== ExprId.staticTarget) err("Cannot call static method '$name' on instance", call.loc) } // ensure we can't calling an instance method statically if (!m.isStatic && !m.isCtor) { if (call.target == null || call.target.id === ExprId.staticTarget) err("Cannot call instance method '$name' in static context", call.loc) } // if using super if (call.target != null && call.target.id === ExprId.superExpr) { // check that super is concrete if (m.isAbstract) err("Cannot use super to call abstract method '$m.qname'", call.target.loc) // check that calling super with exact param match otherwise stack overflow if (call.args.size != m.params.size && m.name == curMethod.name && !m.isInstanceCtor) err("Must call super method '$m.qname' with exactly $m.params.size arguments", call.target.loc) } // don't allow safe calls on static type if (call.isSafe && call.target != null && call.target.id === ExprId.staticTarget) { err("Cannot use null-safe call on static target type '$call.target.ctype'", call.target.loc) return } if (call.isSafe && call.target != null && !call.target.ctype.isNullable) err("Cannot use null-safe call on non-nullable type '$call.target.ctype'", call.target.loc) // if this call is not null safe, then verify that it's target isn't // a null safe call such as foo?.bar.baz if (!call.isSafe && call.target is NameExpr && ((NameExpr)call.target).isSafe) { err("Non-null safe call chained after null safe call", call.loc) return } // if calling a method on a value-type, ensure target is // coerced to non-null; we don't do this for comparisons // and safe calls since they are handled specially if (call.target != null && !call.isCompare && !call.isSafe && !call.method.isStatic) { if (call.target.ctype.isVal || call.method.parent.isVal) { if (name == "with") { err("Cannot call 'Obj.with' on value type", call.target.loc); return } call.target = coerce(call.target, call.method.parent) |->| { err("Cannot coerce '$call.target.ctype' to '$call.method.parent'", call.target.loc) } } } // ensure call operator target() not used on non-function types if (call.isCallOp && !call.target.ctype.isFunc) err("Cannot use () call operator on non-func type '$call.target.ctype'", call.target.loc) // ensure @Operator when using add as it-block comma operator if (call.isItAdd && !call.method.hasFacet("sys::Operator")) err("Missing Operator facet: $call.method.qname", call.loc) } private Void checkField(FieldExpr f) { field := f.field // check protection scope checkSlotProtection(field, f.loc) // if a FFI, then verify we aren't using unsupported types if (!field.fieldType.isSupported) { err("Field '$field.name' has unsupported type '$field.fieldType'", f.loc) return } // ensure we aren't calling static methods on an instance if (field.isStatic) { if (f.target != null && f.target.id !== ExprId.staticTarget) err("Cannot access static field '$f.name' on instance", f.loc) } // if instance field else { if (f.target == null || f.target.id === ExprId.staticTarget) err("Cannot access instance field '$f.name' in static context", f.loc) } // if using super check that concrete if (f.target != null && f.target.id === ExprId.superExpr) { if (field.isAbstract) err("Cannot use super to access abstract field '$field.qname'", f.target.loc) } // don't allow safe access on non-nullable type if (f.isSafe && f.target != null && !f.target.ctype.isNullable) err("Cannot use null-safe access on non-nullable type '$f.target.ctype'", f.target.loc) // if this call is not null safe, then verify that it's target isn't // a null safe call such as foo?.bar.baz if (!f.isSafe && f.target is NameExpr && ((NameExpr)f.target).isSafe) { err("Non-null safe field access chained after null safe call", f.loc) return } // if using the field's accessor method if (f.useAccessor) { // check if we can optimize out the accessor (required for constants) f.useAccessor = useFieldAccessor(field) // check that we aren't using an field accessor inside of itself if (curMethod != null && (field.getter === curMethod || field.setter === curMethod) && (f.target == null || f.target.id == ExprId.thisExpr)) err("Cannot use field accessor inside accessor itself - use '&' operator", f.loc) } // if accessing storage directly else { // check that the current class gets access to direct // field storage (only defining class gets it); allow closures // same scope priviledges as enclosing class enclosing := curType.isClosure ? curType.closure.enclosingType : curType if (!field.isConst && !field.isReadonly && field.parent.qname != curType.qname && field.parent.qname != enclosing.qname) { err("Field storage for '$field.qname' not accessible", f.loc) return } // sanity check that field has storage if (!field.isStorage) { if (field is FieldDef && ((FieldDef)field).concreteBase != null) err("Field storage of inherited field '${field->concreteBase->qname}' not accessible (might try super)", f.loc) else err("Invalid storage access of field '$field.qname' which doesn't have storage", f.loc) return } // cannot use storage operator in mixin if (enclosing.isMixin && !curMethod.isSynthetic) { err("Field storage not accessible in mixin '$field.qname'", f.loc) return } } } private Bool useFieldAccessor(CField f) { // if const field then use field directly if (f.isConst || f.isReadonly || f.getter == null) return false // always use accessor if field is imported from another // pod (in which case it isn't a def in my compilation unit) def := f as FieldDef if (def == null) return true // if virtual/override/native then always use accessor if (def.isVirtual || def.isOverride || f.isNative) return true // if the field has synthetic getter and setter, then // we can safely optimize internal field accessors to // use field directly if (!def.hasGet && !def.hasSet) return false // use accessor since there is a custom getter or setter return true } private Void checkThis(ThisExpr expr) { if (inStatic) err("Cannot access 'this' in static context", expr.loc) } private Void checkSuper(SuperExpr expr) { if (inStatic) err("Cannot access 'super' in static context", expr.loc) if (curType.isMixin) { if (expr.explicitType == null) err("Must use named 'super' inside mixin", expr.loc) else if (!expr.explicitType.isMixin) err("Cannot use 'Obj.super' inside mixin (yeah I know - take it up with Sun)", expr.loc) } if (expr.explicitType != null) { if (expr.explicitType.isClass) err("Cannot use named super on class type '$expr.explicitType'", expr.loc) if (!curType.fits(expr.explicitType)) err("Named super '$expr.explicitType' not a super class of '$curType.name'", expr.loc) } } private Void checkTypeCheck(TypeCheckExpr expr) { // don't bother checking a synthetic coercion that the // compiler generated itself (which is most coercions) if (expr.synthetic) return // check type is visible checkTypeProtection(expr.check, expr.loc) // verify types are convertible check := expr.check target := expr.target.ctype if (!check.fits(target) && !target.fits(check) && !check.isMixin && !target.isMixin) err("Inconvertible types '$target' and '$check'", expr.loc) // box value types for is, as, isnot (everything but coerce) if (expr.id != ExprId.coerce && target.isVal) expr.target = box(expr.target) // don't allow as with nullable if (expr.id === ExprId.asExpr && check.isNullable) err("Cannot use 'as' operator with nullable type '$check'", expr.loc) } private Void checkTernary(TernaryExpr expr) { expr.condition = coerce(expr.condition, ns.boolType) |->| { err("Ternary condition must be Bool, not '$expr.condition.ctype'", expr.condition.loc) } expr.trueExpr = coerce(expr.trueExpr, expr.ctype) |->| { err("Ternary true expr '$expr.trueExpr.toTypeStr' cannot be coerced to $expr.ctype", expr.trueExpr.loc) } expr.falseExpr = coerce(expr.falseExpr, expr.ctype) |->| { err("Ternary false expr '$expr.falseExpr.toTypeStr' cannot be coerced to $expr.ctype", expr.falseExpr.loc) } } ////////////////////////////////////////////////////////////////////////// // Check Args ////////////////////////////////////////////////////////////////////////// private Void checkArgs(CallExpr call) { method := call.method base := call.target == null ? method.parent : call.target.ctype name := call.name args := call.args newArgs := args.dup isErr := false params := method.params genericParams := method.genericTypeErasure ? method.generic.params : null // if we are calling call(A, B...) on a FuncType, then // use the first class Func signature rather than the // version of call which got picked because we might have // picked the wrong call version sig := method.parent as FuncType if (sig != null && name == "call") { if (sig.params.size != args.size) { //ignore on sig.defaultParameterized if (sig.defaultParameterized) { objType := ns.objType.toNullable args.size.times |i| { newArgs[i] = coerceBoxed(args[i], objType) |->| { isErr = true } } } else isErr = true } else { sig.params.each |CType p, Int i| { // check each argument and ensure boxed newArgs[i] = coerceBoxed(args[i], p) |->| { isErr = true } } } } // if more args than params, always an err else if (params.size < args.size) { isErr = true } // check each arg against each parameter else { params.each |CParam p, Int i| { if (i >= args.size) { // param has a default value, then that is ok if (!p.hasDefault) isErr = true } else { // ensure arg fits parameter type (or auto-cast) pt := p.paramType.parameterizeThis(base) newArgs[i] = coerce(args[i], pt) |->| { isErr = name != "compare" // TODO let anything slide for Obj.compare //echo("args coerce err: $args[i], $pt") } // if this a parameterized generic, then we need to box // even if the expected type is a value-type (since the // actual implementation methods are all Obj based) if (!isErr && genericParams != null && genericParams[i].paramType.hasGenericParameter) newArgs[i] = box(newArgs[i]) } } } if (!isErr) { checkNamedParam(call) call.args = newArgs return } msg := "Invalid args " if (sig != null) msg += "|" + sig.params.join(", ") + "|.$name" else msg += "$name(" + params.join(", ", |p| { paramTypeStr(base, p) }) + ")" msg += ", not (" + args.join(", ", |Expr e->Str| { "$e.toTypeStr" }) + ")" err(msg, call.loc) } internal static Str paramTypeStr(CType base, CParam param) { return param.paramType.parameterizeThis(base).inferredAs.signature } private Void checkNamedParam(CallExpr call) { if (call.paramNames == null) return //args := call.args params := call.method.params call.paramNames.each |name, i| { if (params[i].name != name) { err("named param err: ${params[i].name} != $name in call $call.name", call.loc) } } } ////////////////////////////////////////////////////////////////////////// // Type ////////////////////////////////////////////////////////////////////////// private Void checkValidType(Loc loc, CType t) { if (!t.isValid) err("Invalid type '$t'", loc) checkParameterizedType(loc, t) } private Void checkParameterizedType(Loc loc, CType t) { if (t.isParameterized) { ParameterizedType o := t.deref.raw.toNonNullable if (o.defaultParameterized && o.qname != "sys::Func") { warn("Expected generic parameter", loc) } } } ////////////////////////////////////////////////////////////////////////// // Flag Utils ////////////////////////////////////////////////////////////////////////// private Void checkProtectionFlags(Int flags, Loc loc) { isPublic := flags.and(FConst.Public) != 0 isProtected := flags.and(FConst.Protected) != 0 isPrivate := flags.and(FConst.Private) != 0 isInternal := flags.and(FConst.Internal) != 0 isVirtual := flags.and(FConst.Virtual) != 0 isOverride := flags.and(FConst.Override) != 0 if (isPublic) { if (isProtected) err("Invalid combination of 'public' and 'protected' modifiers", loc) if (isPrivate) err("Invalid combination of 'public' and 'private' modifiers", loc) if (isInternal) err("Invalid combination of 'public' and 'internal' modifiers", loc) } else if (isProtected) { if (isPrivate) err("Invalid combination of 'protected' and 'private' modifiers", loc) if (isInternal) err("Invalid combination of 'protected' and 'internal' modifiers", loc) } else if (isPrivate) { if (isInternal) err("Invalid combination of 'private' and 'internal' modifiers", loc) if (isVirtual && !isOverride) err("Invalid combination of 'private' and 'virtual' modifiers", loc) } } private Void checkTypeProtection(CType t, Loc loc) { t = t.toNonNullable if (t is ParameterizedType) { x := (ParameterizedType)t x.genericArgs.each |p| { checkTypeProtection(p, loc) } } else { if (t.isInternal && t.pod != curType.pod) err("Internal type '$t' not accessible", loc) } checkDeprecated(t, loc) } private Void checkSlotProtection(CSlot slot, Loc loc, Bool setter := false) { errMsg := slotProtectionErr(curType, slot, setter) if (errMsg != null) err(errMsg, loc) checkDeprecated(slot, loc) } static Bool isSlotVisible(TypeDef curType, CSlot slot) { slotProtectionErr(curType, slot) == null } private static Str? slotProtectionErr(TypeDef curType, CSlot slot, Bool setter := false) { msg := setter ? "setter of field" : (slot is CMethod ? "method" : "field") // short circuit if method on myself if (curType == slot.parent) return null // allow closures same scope priviledges as enclosing class if (curType.isClosure) curType = curType.closure.enclosingType // consider the slot internal if its parent is internal isInternal := slot.isInternal || (slot.parent.isInternal && !slot.parent.isParameterized) if (slot.isPrivate && curType != slot.parent && curType.qname != slot.parent.qname) return "Private $msg '$slot.qname' not accessible" else if (slot.isProtected && !curType.fits(slot.parent) && curType.pod != slot.parent.pod) return "Protected $msg '$slot.qname' not accessible" else if (isInternal && curType.pod != slot.parent.pod) return "Internal $msg '$slot.qname' not accessible" else return null } ////////////////////////////////////////////////////////////////////////// // Utils ////////////////////////////////////////////////////////////////////////// ** ** Check for the deprecated facet where target is CType or CSlot ** private Void checkDeprecated(Obj target, Loc loc) { slot := target as CSlot // don't check inside: // - synthetic getter/setter or // - synthetic method of type itself // - a deprecated type itself if (curMethod != null && curMethod.isSynthetic) { if (curMethod.isFieldAccessor) return if (slot != null && slot.parent == curType) return } if (curType.facet("sys::Deprecated") != null) return // check both slot and its parent type CFacet? f := null if (slot != null) { f = slot.facet("sys::Deprecated") if (f == null) target = slot.parent } if (f == null) f = ((CType)target).facet("sys::Deprecated") if (f == null) return // we got a deprecration warning - log it kind := target is CType ? "type" : "slot" qname := (Str)target->qname msg := f.get("msg") as Str ?: "" if (!msg.isEmpty) warn("Deprecated $kind '$qname' - $msg", loc) else warn("Deprecated $kind '$qname'", loc) } ** ** Ensure the specified expression is boxed to an object reference. ** private Expr box(Expr expr) { if (expr.ctype.isVal) return TypeCheckExpr.coerce(expr, ns.objType.toNullable) else return expr } ** ** Run the standard coerce method and ensure the result is boxed. ** private Expr coerceBoxed(Expr expr, CType expected, |->| onErr) { return box(coerce(expr, expected, onErr)) } ** ** Return if `coerce` would not report a compiler error. ** static Bool canCoerce(Expr expr, CType expected) { ok := true coerce(expr, expected) |->| { ok = false } return ok } ** ** Coerce the target expression to the specified type. If ** the expression is not type compatible run the onErr function. ** static Expr coerce(Expr expr, CType expected, |->| onErr) { // route to bridge for FFI coercion if either side if foreign if (expected.isForeign) return expected.bridge.coerce(expr, expected, onErr) if (expr.ctype.isForeign) return expr.ctype.bridge.coerce(expr, expected, onErr) // normal Fantom coercion behavior return doCoerce(expr, expected, onErr) } ** ** Coerce the target expression to the specified type. If ** the expression is not type compatible run the onErr function. ** Default Fantom behavior. ** static Expr doCoerce(Expr expr, CType expected, |->| onErr) { // sanity check that expression has been typed CType actual := expr.ctype if ((Obj?)actual == null) throw NullErr("null ctype: ${expr}") // if the same type this is easy if (actual == expected) return expr // if actual type is nothing, then its of no matter if (actual.isNothing) return expr // we can never use a void expression if (actual.isVoid || expected.isVoid) { onErr() return expr } // if expr is always nullable (null literal, safe invoke, as), // then verify expected type is nullable if (expr.isAlwaysNullable) { if (!expected.isNullable) { onErr(); return expr } // null literals don't need cast to nullable types, // otherwise // fall-thru to apply coercion if (expr.id === ExprId.nullLiteral) return expr } // if the expression fits to type, that is ok if (actual.fits(expected)) { // if we have any nullable/value difference we need a coercion if (needCoerce(actual, expected)) return TypeCheckExpr.coerce(expr, expected) else return expr } // if we can auto-cast to make the expr fit then do it - we // have to treat function auto-casting a little specially here if (actual.isFunc && expected.isFunc) { // if (isFuncAutoCoerce(actual, expected)) // return TypeCheckExpr.coerce(expr, expected) } else { if (expected.fits(actual)) return TypeCheckExpr.coerce(expr, expected) } // we have an error condition onErr() return expr } /* static Bool isFuncAutoCoerce(CType actualType, CType expectedType) { // check if both are function types if (!actualType.isFunc || !expectedType.isFunc) return false actual := actualType.toNonNullable as FuncType expected := expectedType.toNonNullable as FuncType // auto-cast to or from unparameterized 'sys::Func' if (actual == null || expected == null) return true // if actual function requires more parameters than // we are expecting, then this cannot be a match if (actual.arity > expected.arity) return false // check return type if (!isFuncAutoCoerceMatch(actual.ret, expected.ret)) return false // check that each parameter is auto-castable return actual.params.all |CType actualParam, Int i->Bool| { expectedParam := expected.params[i] return isFuncAutoCoerceMatch(actualParam, expectedParam) } return true } static Bool isFuncAutoCoerceMatch(CType actual, CType expected) { if (actual.fits(expected)) return true if (expected.fits(actual)) return true if (isFuncAutoCoerce(actual, expected)) return true return false } */ static Bool needCoerce(CType from, CType to) { //always cast for generic if (from.isParameterized || to.isParameterized) return true // if either side is a value type and we got past // the equals check then we definitely need a coercion if (from.isVal || to.isVal) return true // if going from Obj? -> Obj we need a nullable coercion if (!to.isNullable) return from.isNullable return false } ////////////////////////////////////////////////////////////////////////// // Fields ////////////////////////////////////////////////////////////////////////// private Int protectedRegionDepth := 0 // try statement depth private Int finallyDepth := 0 // finally block depth //private Bool isSys }
Fantom
5
fanx-dev/fanx
compiler/compiler/fan/steps/CheckErrors.fan
[ "AFL-3.0" ]
variable "function_name" { type = string } resource "aws_lambda_function" "tf_lambda" { filename = "../lambdas/dotnetcore2/dotnetcore2.zip" function_name = var.function_name role = aws_iam_role.iam_for_lambda.arn handler = "DotNetCore2::DotNetCore2.Lambda.Function::SimpleFunctionHandler" source_code_hash = filebase64sha256("../lambdas/dotnetcore2/dotnetcore2.zip") runtime = "dotnetcore2.0" }
HCL
3
mariuspot/localstack
tests/integration/terraform/lambda.tf
[ "Apache-2.0" ]
#Signature file v4.1 #Version 1.69.0 CLSS public abstract interface java.io.Serializable CLSS public abstract interface java.lang.Comparable<%0 extends java.lang.Object> meth public abstract int compareTo({java.lang.Comparable%0}) CLSS public abstract java.lang.Enum<%0 extends java.lang.Enum<{java.lang.Enum%0}>> cons protected init(java.lang.String,int) intf java.io.Serializable intf java.lang.Comparable<{java.lang.Enum%0}> meth protected final java.lang.Object clone() throws java.lang.CloneNotSupportedException meth protected final void finalize() meth public final boolean equals(java.lang.Object) meth public final int compareTo({java.lang.Enum%0}) meth public final int hashCode() meth public final int ordinal() meth public final java.lang.Class<{java.lang.Enum%0}> getDeclaringClass() meth public final java.lang.String name() meth public java.lang.String toString() meth public static <%0 extends java.lang.Enum<{%%0}>> {%%0} valueOf(java.lang.Class<{%%0}>,java.lang.String) supr java.lang.Object CLSS public abstract interface !annotation java.lang.FunctionalInterface anno 0 java.lang.annotation.Documented() anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[TYPE]) intf java.lang.annotation.Annotation CLSS public java.lang.Object cons public init() meth protected java.lang.Object clone() throws java.lang.CloneNotSupportedException meth protected void finalize() throws java.lang.Throwable meth public boolean equals(java.lang.Object) meth public final java.lang.Class<?> getClass() meth public final void notify() meth public final void notifyAll() meth public final void wait() throws java.lang.InterruptedException meth public final void wait(long) throws java.lang.InterruptedException meth public final void wait(long,int) throws java.lang.InterruptedException meth public int hashCode() meth public java.lang.String toString() CLSS public abstract interface java.lang.annotation.Annotation meth public abstract boolean equals(java.lang.Object) meth public abstract int hashCode() meth public abstract java.lang.Class<? extends java.lang.annotation.Annotation> annotationType() meth public abstract java.lang.String toString() CLSS public abstract interface !annotation java.lang.annotation.Documented anno 0 java.lang.annotation.Documented() anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[ANNOTATION_TYPE]) intf java.lang.annotation.Annotation CLSS public abstract interface !annotation java.lang.annotation.Retention anno 0 java.lang.annotation.Documented() anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[ANNOTATION_TYPE]) intf java.lang.annotation.Annotation meth public abstract java.lang.annotation.RetentionPolicy value() CLSS public abstract interface !annotation java.lang.annotation.Target anno 0 java.lang.annotation.Documented() anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME) anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[ANNOTATION_TYPE]) intf java.lang.annotation.Annotation meth public abstract java.lang.annotation.ElementType[] value() CLSS public abstract interface java.util.EventListener CLSS public java.util.EventObject cons public init(java.lang.Object) fld protected java.lang.Object source intf java.io.Serializable meth public java.lang.Object getSource() meth public java.lang.String toString() supr java.lang.Object CLSS public final org.netbeans.api.jumpto.type.TypeBrowser cons public init() innr public abstract interface static Filter meth public !varargs static org.netbeans.spi.jumpto.type.TypeDescriptor browse(java.lang.String,java.lang.String,org.netbeans.api.jumpto.type.TypeBrowser$Filter,org.netbeans.spi.jumpto.type.TypeProvider[]) meth public !varargs static org.netbeans.spi.jumpto.type.TypeDescriptor browse(java.lang.String,org.netbeans.api.jumpto.type.TypeBrowser$Filter,org.netbeans.spi.jumpto.type.TypeProvider[]) supr java.lang.Object CLSS public abstract interface static org.netbeans.api.jumpto.type.TypeBrowser$Filter outer org.netbeans.api.jumpto.type.TypeBrowser meth public abstract boolean accept(org.netbeans.spi.jumpto.type.TypeDescriptor) CLSS public abstract org.netbeans.spi.jumpto.file.FileDescriptor cons public init() meth protected final int getLineNumber() meth public abstract java.lang.String getFileName() meth public abstract java.lang.String getOwnerPath() meth public abstract java.lang.String getProjectName() meth public abstract javax.swing.Icon getIcon() meth public abstract javax.swing.Icon getProjectIcon() meth public abstract org.openide.filesystems.FileObject getFileObject() meth public abstract void open() meth public java.lang.String getFileDisplayPath() supr org.netbeans.spi.jumpto.support.Descriptor hfds lineNr,preferred CLSS public abstract interface org.netbeans.spi.jumpto.file.FileProvider innr public final static Context innr public final static Result meth public abstract boolean computeFiles(org.netbeans.spi.jumpto.file.FileProvider$Context,org.netbeans.spi.jumpto.file.FileProvider$Result) meth public abstract void cancel() CLSS public final static org.netbeans.spi.jumpto.file.FileProvider$Context outer org.netbeans.spi.jumpto.file.FileProvider meth public int getLineNumber() meth public java.lang.String getText() meth public org.netbeans.api.project.Project getProject() meth public org.netbeans.spi.jumpto.type.SearchType getSearchType() meth public org.openide.filesystems.FileObject getRoot() supr java.lang.Object hfds currentProject,lineNr,project,sourceGroupRoot,text,type CLSS public final static org.netbeans.spi.jumpto.file.FileProvider$Result outer org.netbeans.spi.jumpto.file.FileProvider meth public void addFile(org.openide.filesystems.FileObject) meth public void addFileDescriptor(org.netbeans.spi.jumpto.file.FileDescriptor) meth public void pendingResult() meth public void setMessage(java.lang.String) supr java.lang.Object hfds ctx,message,result,retry CLSS public abstract interface org.netbeans.spi.jumpto.file.FileProviderFactory meth public abstract java.lang.String getDisplayName() meth public abstract java.lang.String name() meth public abstract org.netbeans.spi.jumpto.file.FileProvider createFileProvider() CLSS public abstract interface org.netbeans.spi.jumpto.support.AsyncDescriptor<%0 extends java.lang.Object> meth public abstract boolean hasCorrectCase() meth public abstract void addDescriptorChangeListener(org.netbeans.spi.jumpto.support.DescriptorChangeListener<{org.netbeans.spi.jumpto.support.AsyncDescriptor%0}>) anno 1 org.netbeans.api.annotations.common.NonNull() meth public abstract void removeDescriptorChangeListener(org.netbeans.spi.jumpto.support.DescriptorChangeListener<{org.netbeans.spi.jumpto.support.AsyncDescriptor%0}>) anno 1 org.netbeans.api.annotations.common.NonNull() CLSS public org.netbeans.spi.jumpto.support.Descriptor cons public init() supr java.lang.Object hfds attrs hcls DescriptorAccessorImpl CLSS public final org.netbeans.spi.jumpto.support.DescriptorChangeEvent<%0 extends java.lang.Object> cons public init({org.netbeans.spi.jumpto.support.DescriptorChangeEvent%0},java.util.Collection<? extends {org.netbeans.spi.jumpto.support.DescriptorChangeEvent%0}>) anno 1 org.netbeans.api.annotations.common.NonNull() anno 2 org.netbeans.api.annotations.common.NonNull() meth public java.util.Collection<? extends {org.netbeans.spi.jumpto.support.DescriptorChangeEvent%0}> getReplacement() anno 0 org.netbeans.api.annotations.common.NonNull() supr java.util.EventObject hfds replacement CLSS public abstract interface org.netbeans.spi.jumpto.support.DescriptorChangeListener<%0 extends java.lang.Object> intf java.util.EventListener meth public abstract void descriptorChanged(org.netbeans.spi.jumpto.support.DescriptorChangeEvent<{org.netbeans.spi.jumpto.support.DescriptorChangeListener%0}>) anno 1 org.netbeans.api.annotations.common.NonNull() CLSS public abstract interface org.netbeans.spi.jumpto.support.NameMatcher anno 0 java.lang.FunctionalInterface() fld public final static org.netbeans.spi.jumpto.support.NameMatcher ALL fld public final static org.netbeans.spi.jumpto.support.NameMatcher NONE meth public abstract boolean accept(java.lang.String) CLSS public final org.netbeans.spi.jumpto.support.NameMatcherFactory meth public static java.lang.String wildcardsToRegexp(java.lang.String,boolean) meth public static org.netbeans.spi.jumpto.support.NameMatcher createNameMatcher(java.lang.String,org.netbeans.spi.jumpto.type.SearchType) anno 0 org.netbeans.api.annotations.common.NonNull() anno 1 org.netbeans.api.annotations.common.NonNull() anno 2 org.netbeans.api.annotations.common.NonNull() meth public static org.netbeans.spi.jumpto.support.NameMatcher createNameMatcher(java.lang.String,org.netbeans.spi.jumpto.type.SearchType,java.util.Map<java.lang.String,java.lang.Object>) anno 0 org.netbeans.api.annotations.common.NonNull() anno 1 org.netbeans.api.annotations.common.NonNull() anno 2 org.netbeans.api.annotations.common.NonNull() anno 3 org.netbeans.api.annotations.common.NonNull() supr java.lang.Object hfds RE_SPECIALS hcls BaseNameMatcher,CamelCaseNameMatcher,CaseInsensitiveExactNameMatcher,CaseInsensitivePrefixNameMatcher,ExactNameMatcher,PrefixNameMatcher,RegExpNameMatcher CLSS public abstract org.netbeans.spi.jumpto.symbol.SymbolDescriptor cons public init() meth public abstract int getOffset() meth public abstract java.lang.String getOwnerName() meth public abstract java.lang.String getProjectName() meth public abstract java.lang.String getSymbolName() meth public abstract javax.swing.Icon getIcon() meth public abstract javax.swing.Icon getProjectIcon() meth public abstract org.openide.filesystems.FileObject getFileObject() meth public abstract void open() meth public java.lang.String getFileDisplayPath() anno 0 org.netbeans.api.annotations.common.NonNull() meth public java.lang.String getSimpleName() anno 0 org.netbeans.api.annotations.common.CheckForNull() supr org.netbeans.spi.jumpto.support.Descriptor hfds matchedSymbolName,provider CLSS public abstract interface org.netbeans.spi.jumpto.symbol.SymbolProvider innr public final static Context innr public final static Result meth public abstract java.lang.String getDisplayName() meth public abstract java.lang.String name() meth public abstract void cancel() meth public abstract void cleanup() meth public abstract void computeSymbolNames(org.netbeans.spi.jumpto.symbol.SymbolProvider$Context,org.netbeans.spi.jumpto.symbol.SymbolProvider$Result) CLSS public final static org.netbeans.spi.jumpto.symbol.SymbolProvider$Context outer org.netbeans.spi.jumpto.symbol.SymbolProvider meth public java.lang.String getText() meth public org.netbeans.api.project.Project getProject() meth public org.netbeans.spi.jumpto.type.SearchType getSearchType() supr java.lang.Object hfds project,text,type CLSS public final static org.netbeans.spi.jumpto.symbol.SymbolProvider$Result outer org.netbeans.spi.jumpto.symbol.SymbolProvider meth public void addResult(java.util.List<? extends org.netbeans.spi.jumpto.symbol.SymbolDescriptor>) meth public void addResult(org.netbeans.spi.jumpto.symbol.SymbolDescriptor) meth public void pendingResult() meth public void setHighlightText(java.lang.String) anno 1 org.netbeans.api.annotations.common.NonNull() meth public void setMessage(java.lang.String) supr java.lang.Object hfds dirty,highlightText,highlightTextAlreadySet,message,provider,result,retry CLSS public final !enum org.netbeans.spi.jumpto.type.SearchType fld public final static org.netbeans.spi.jumpto.type.SearchType CAMEL_CASE fld public final static org.netbeans.spi.jumpto.type.SearchType CASE_INSENSITIVE_CAMEL_CASE fld public final static org.netbeans.spi.jumpto.type.SearchType CASE_INSENSITIVE_EXACT_NAME fld public final static org.netbeans.spi.jumpto.type.SearchType CASE_INSENSITIVE_PREFIX fld public final static org.netbeans.spi.jumpto.type.SearchType CASE_INSENSITIVE_REGEXP fld public final static org.netbeans.spi.jumpto.type.SearchType EXACT_NAME fld public final static org.netbeans.spi.jumpto.type.SearchType PREFIX fld public final static org.netbeans.spi.jumpto.type.SearchType REGEXP meth public static org.netbeans.spi.jumpto.type.SearchType valueOf(java.lang.String) meth public static org.netbeans.spi.jumpto.type.SearchType[] values() supr java.lang.Enum<org.netbeans.spi.jumpto.type.SearchType> CLSS public abstract org.netbeans.spi.jumpto.type.TypeDescriptor cons public init() meth public abstract int getOffset() meth public abstract java.lang.String getContextName() meth public abstract java.lang.String getOuterName() meth public abstract java.lang.String getProjectName() meth public abstract java.lang.String getSimpleName() meth public abstract java.lang.String getTypeName() meth public abstract javax.swing.Icon getIcon() meth public abstract javax.swing.Icon getProjectIcon() meth public abstract org.openide.filesystems.FileObject getFileObject() meth public abstract void open() meth public java.lang.String getFileDisplayPath() anno 0 org.netbeans.api.annotations.common.NonNull() supr org.netbeans.spi.jumpto.support.Descriptor hfds highlightText CLSS public abstract interface org.netbeans.spi.jumpto.type.TypeProvider innr public final static Context innr public final static Result meth public abstract java.lang.String getDisplayName() meth public abstract java.lang.String name() meth public abstract void cancel() meth public abstract void cleanup() meth public abstract void computeTypeNames(org.netbeans.spi.jumpto.type.TypeProvider$Context,org.netbeans.spi.jumpto.type.TypeProvider$Result) CLSS public final static org.netbeans.spi.jumpto.type.TypeProvider$Context outer org.netbeans.spi.jumpto.type.TypeProvider meth public java.lang.String getText() meth public org.netbeans.api.project.Project getProject() meth public org.netbeans.spi.jumpto.type.SearchType getSearchType() supr java.lang.Object hfds project,text,type CLSS public final static org.netbeans.spi.jumpto.type.TypeProvider$Result outer org.netbeans.spi.jumpto.type.TypeProvider meth public void addResult(java.util.List<? extends org.netbeans.spi.jumpto.type.TypeDescriptor>) anno 1 org.netbeans.api.annotations.common.NonNull() meth public void addResult(org.netbeans.spi.jumpto.type.TypeDescriptor) anno 1 org.netbeans.api.annotations.common.NonNull() meth public void pendingResult() meth public void setHighlightText(java.lang.String) anno 1 org.netbeans.api.annotations.common.NonNull() meth public void setMessage(java.lang.String) supr java.lang.Object hfds highlightText,highlightTextAlreadySet,message,modified,result,retry
Standard ML
3
timfel/netbeans
ide/jumpto/nbproject/org-netbeans-modules-jumpto.sig
[ "Apache-2.0" ]
// This is a comment. export function comment(): string { return "comment"; }
TypeScript
2
petamoriken/deno
cli/tests/testdata/subdir/comment.ts
[ "MIT" ]
// $Id: DhvTrickleTimer.nc,v 1.2 2010-06-29 22:07:49 scipio Exp $ /* * Copyright (c) 2006 Stanford University. All 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 name of the copyright holder nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * A network trickle timer. A trickle timer has a period in the range * [L, H]. After firing, the period is doubled, up to H. If the period * is P, then the timer is scheduled to fire in the interval [0.5P, P] * (the second half of a period). The period can be reset to L (the * smallest period, and therefore the highest frequency). * * The timer may be suppressed. If a user of the interface has heard * enough packets from other nodes that indicate its transmitting a * packet would be unncessarily redundant, then the timer does not * fire. The timer has a constant K and a counter C. If C &gte; K, then * the timer does not fire. When an interval ends, C is reset to 0. * Calling <tt>incrementCounter</tt> increments C by one. * * For details, refer to Levis et al., "A Self-Regulating Algorithm * for Code Maintenance and Propagation in Wireless Sensor Networks," * NSDI 2004. The component providing this interface defines the * constants L, H, and K. * * @author Philip Levis * @date Jan 7 2006 * @author Thanh Dang * @date Aug 5 2009 */ interface DhvTrickleTimer { /** * Start the trickle timer. At boot, the timer period is its maximum * value (H). If a protocol requires starting at the minimum value * (e.g., fast start), then it should call <tt>reset</tt> before * <tt>start</tt>. * * @return error_t SUCCESS if the timer was started, EBUSY if it is already * running, and FAIL otherwise. */ command error_t start(); /** * Stop the trickle timer. This call sets the timer period to H and * C to 0. */ command void stop(); /** * Reset the timer period to L. If called while the timer is * running, then a new interval (of length L) begins immediately. */ command void reset(); /** * The trickle timer has fired. Signaled if C &gt; K. */ event void fired(); /** * Compute the window size based on Dip's estimates */ event uint32_t requestWindowSize(); /** * Resets the timer period to H. */ command void maxInterval(); }
nesC
5
mtaghiza/tinyos-main-1
tos/lib/net/dhv/interfaces/DhvTrickleTimer.nc
[ "BSD-3-Clause" ]
# Marker to tell the VCL compiler that this VCL has been adapted to the # new 4.0 format. vcl 4.0; import std; import directors; ## header vcl ### ## acl rules ## backend mesh_default_proxy { .host = "127.0.0.1"; .port = "30001"; } sub use_director_director_with_mesh_service_support { set req.http.x-original-host = req.http.host; set req.http.Host = "mesh_service_support"; unset req.http.X-Accept-Proto; set req.http.X-Accept-Proto = "https"; unset req.http.X-VaaS-Prefix; set req.http.X-VaaS-Prefix = "/mesh_service/support"; } sub use_director_director_with_mesh_service_support_and_service_tag { unset req.http.x-service-tag; set req.http.x-service-tag = "service-tag-1"; set req.http.x-original-host = req.http.host; set req.http.Host = "mesh_service_support_with_service_tag"; unset req.http.X-Accept-Proto; set req.http.X-Accept-Proto = "https"; unset req.http.X-VaaS-Prefix; set req.http.X-VaaS-Prefix = "/mesh_service_service_tag/support"; } sub vcl_init { } sub vcl_recv { if (req.http.x-use-director) { if (req.http.x-use-director == "director_with_mesh_service_support") { call use_director_director_with_mesh_service_support; } if (req.http.x-use-director == "director_with_mesh_service_support_and_service_tag") { call use_director_director_with_mesh_service_support_and_service_tag; } if (req.http.X-VaaS-Director) { return(pass); } } } sub vcl_recv { if (req.url == "/vaas_status") { return (synth(999, "")); } if (req.url == "/vaas/" && req.http.x-allow-metric-header) { return (synth(989, "")); } } sub vcl_synth { if (resp.status == 999) { set resp.status = 503; synthetic(""); } if (resp.status == 989) { set resp.status = 200; set resp.http.Content-Type = "application/json"; synthetic ( {"{ "vcl_version" : "0fd34", "varnish_status": "disabled" }"} ); return (deliver); } } ## Proper protocol redirect ## sub vcl_recv { if (!req.http.X-Forwarded-Proto) { set req.http.X-Forwarded-Proto = "http"; } } sub vcl_synth { if (resp.status == 998) { set resp.http.Location = resp.reason + req.http.host + req.url; set resp.status = 301; synthetic (""); return (deliver); } } sub protocol_redirect { if (req.esi_level == 0 && (req.method == "GET" || req.method == "HEAD")) { if ((req.http.X-Accept-Proto != "both") && (req.http.X-Accept-Proto != req.http.X-Forwarded-Proto)) { return(synth(998, req.http.X-Accept-Proto + "://")); } } } sub vcl_recv { if (req.url ~ "^\/mesh_service\/support([\/\?].*)?$") { call use_director_director_with_mesh_service_support; } else if (req.url ~ "^\/mesh_service_service_tag\/support([\/\?].*)?$") { call use_director_director_with_mesh_service_support_and_service_tag; } # Flexible ROUTER # Test ROUTER if (req.http.x-validation == "1") { return (synth(601, "Test routing response")); } # Setup default backend to use set req.backend_hint = mesh_default_proxy; # Call protocol redirect sub call protocol_redirect; # POST, PUT, DELETE are passed directly to backend if (req.method != "GET" && req.method !="HEAD") { return (pass); } return (hash); } ## test response synth ## sub vcl_synth { if (resp.status == 601) { set req.http.X-Director = regsuball(req.http.X-VaaS-Director, ".*/", "\1"); synthetic ( {"{ "route": ""} + req.http.X-Route + {"", "director": ""} + req.http.X-Director + {"" }"} ); set resp.http.X-Validation-Response = 1; set resp.http.Content-Type = "application/json"; set resp.status = 203; return (deliver); } } sub vcl_pipe { # http://www.varnish-cache.org/ticket/451 # This forces every pipe request to be the first one. set bereq.http.connection = "close"; } ## other functions ## ## empty director synth ## sub vcl_synth { if (resp.status == 404) { synthetic (resp.reason); set resp.status = 404; return (deliver); } }
VCL
4
allegro/vaas
vaas-app/src/vaas/vcl/tests/expected-vcl-4.0-with-mesh_service.vcl
[ "Apache-2.0" ]
<%-- Copyright 2012 Netflix, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="layout" content="main"/> <title>${scheduledAction.scheduledActionName} Scheduled Action</title> </head> <body> <div class="body"> <h1>Scheduled Action Details</h1> <g:if test="${flash.message}"> <div class="message">${flash.message}</div> </g:if> <div class="buttons"> <g:form class="validate"> <input type="hidden" name="id" value="${scheduledAction.scheduledActionName}"/> <g:link class="edit" action="edit" id="${scheduledAction.scheduledActionName}" params="[group: scheduledAction.autoScalingGroupName]">Edit Scheduled Action</g:link> <g:buttonSubmit class="delete" data-warning="Really delete Scheduled Action '${scheduledAction.scheduledActionName}'?" action="delete" value="Delete Scheduled Action"/> </g:form> </div> <div> <table> <tbody> <tr class="prop"> <td class="name">Name:</td> <td class="value">${scheduledAction.scheduledActionName}</td> </tr> <tr class="prop"> <td class="name">ARN:</td> <td class="value">${scheduledAction.scheduledActionARN}</td> </tr> <tr class="prop"> <td class="name">Auto Scaling Group:</td> <td class="value"><g:linkObject type="autoScaling" name="${scheduledAction.autoScalingGroupName}"/></td> </tr> <tr class="prop"> <td class="name">Start Time:</td> <td class="value">${scheduledAction.startTime}</td> </tr> <tr class="prop"> <td class="name">End Time:</td> <td class="value">${scheduledAction.endTime}</td> </tr> <tr class="prop"> <td class="name">Minimum Size:</td> <td class="value">${scheduledAction.minSize}</td> </tr> <tr class="prop"> <td class="name">Maximum Size:</td> <td class="value">${scheduledAction.maxSize}</td> </tr> <tr class="prop"> <td class="name">Desired Capacity:</td> <td class="value">${scheduledAction.desiredCapacity}</td> </tr> <tr class="prop"> <td class="name">Recurrence:</td> <td class="value">${scheduledAction.recurrence}</td> </tr> </tbody> </table> </div> </div> </body> </html>
Groovy Server Pages
3
michaelneale/asgard
grails-app/views/scheduledAction/show.gsp
[ "Apache-2.0" ]
submodule openconfig-aft-mpls { belongs-to "openconfig-aft" { prefix "oc-aft"; } import openconfig-extensions { prefix "oc-ext"; } import openconfig-mpls-types { prefix "oc-mpls-types"; } // Include common cross-AFT groupings from the common submodule. include openconfig-aft-common; oc-ext:openconfig-version "0.3.0"; organization "OpenConfig working group"; contact "OpenConfig working group www.openconfig.net"; description "Submodule containing definitions of groupings for the abstract forwarding table for MPLS label forwarding."; revision 2017-05-10 { description "Refactor to provide concretised per-AF schemas per AFT."; reference "0.3.0"; } grouping aft-mpls-structural { description "Structural grouping defining the schema for the MPLS abstract forwarding table."; list label-entry { key "label"; description "List of the MPLS entries within the abstract forwarding table. This list is keyed by the top-most MPLS label."; leaf label { type leafref { path "../config/label"; } description "Reference to the top-most MPLS label matched by the entry."; } container config { description "Configuration parameters for the MPLS AFT entry."; uses aft-mpls-entry-config; } container state { config false; description "Operational state parameters for the MPLS AFT entry."; uses aft-mpls-entry-config; uses aft-mpls-entry-state; } uses aft-common-nhop-structural; } } grouping aft-mpls-entry-config { description "Configuration parameters for the MPLS entry."; leaf label { type oc-mpls-types:mpls-label; description "The top-most MPLS label that should be matched to utilise the AFT entry."; } } grouping aft-mpls-entry-state { description "Operational state parameters for the MPLS entry."; uses aft-common-entry-state; } }
YANG
5
meodaiduoi/onos
models/openconfig/src/main/yang/aft/[email protected]
[ "Apache-2.0" ]
# Swagger Petstore # # This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. # # OpenAPI spec version: 1.0.0 # Contact: [email protected] # Generated by: https://github.com/swagger-api/swagger-codegen.git #' @title Pet operations #' @description petstore.Pet #' #' @field path Stores url path of the request. #' @field apiClient Handles the client-server communication. #' @field userAgent Set the user agent of the request. #' #' @importFrom R6 R6Class #' #' @section Methods: #' \describe{ #' #' add_pet Add a new pet to the store #' #' #' delete_pet Deletes a pet #' #' #' find_pets_by_status Finds Pets by status #' #' #' find_pets_by_tags Finds Pets by tags #' #' #' get_pet_by_id Find pet by ID #' #' #' update_pet Update an existing pet #' #' #' update_pet_with_form Updates a pet in the store with form data #' #' #' upload_file uploads an image #' #' } #' #' @export PetApi <- R6::R6Class( 'PetApi', public = list( userAgent = "Swagger-Codegen/1.0.0/r", apiClient = NULL, initialize = function(apiClient){ if (!missing(apiClient)) { self$apiClient <- apiClient } else { self$apiClient <- ApiClient$new() } }, add_pet = function(body, ...){ args <- list(...) queryParams <- list() headerParams <- character() if (!missing(`body`)) { body <- `body`$toJSONString() } else { body <- NULL } urlPath <- "/pet" resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "POST", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { # void response, no need to return anything } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, delete_pet = function(pet_id, api_key, ...){ args <- list(...) queryParams <- list() headerParams <- character() if (!missing(`api_key`)) { headerParams['api_key'] <- `api_key` } urlPath <- "/pet/{petId}" if (!missing(`pet_id`)) { urlPath <- gsub(paste0("\\{", "petId", "\\}"), `pet_id`, urlPath) } resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "DELETE", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { # void response, no need to return anything } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, find_pets_by_status = function(status, ...){ args <- list(...) queryParams <- list() headerParams <- character() if (!missing(`status`)) { queryParams['status'] <- status } urlPath <- "/pet/findByStatus" resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { returnObject <- Pet$new() result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) Response$new(returnObject, resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, find_pets_by_tags = function(tags, ...){ args <- list(...) queryParams <- list() headerParams <- character() if (!missing(`tags`)) { queryParams['tags'] <- tags } urlPath <- "/pet/findByTags" resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { returnObject <- Pet$new() result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) Response$new(returnObject, resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, get_pet_by_id = function(pet_id, ...){ args <- list(...) queryParams <- list() headerParams <- character() urlPath <- "/pet/{petId}" if (!missing(`pet_id`)) { urlPath <- gsub(paste0("\\{", "petId", "\\}"), `pet_id`, urlPath) } resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "GET", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { returnObject <- Pet$new() result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) Response$new(returnObject, resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, update_pet = function(body, ...){ args <- list(...) queryParams <- list() headerParams <- character() if (!missing(`body`)) { body <- `body`$toJSONString() } else { body <- NULL } urlPath <- "/pet" resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "PUT", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { # void response, no need to return anything } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, update_pet_with_form = function(pet_id, name, status, ...){ args <- list(...) queryParams <- list() headerParams <- character() body <- list( "name" = name, "status" = status ) urlPath <- "/pet/{petId}" if (!missing(`pet_id`)) { urlPath <- gsub(paste0("\\{", "petId", "\\}"), `pet_id`, urlPath) } resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "POST", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { # void response, no need to return anything } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } }, upload_file = function(pet_id, additional_metadata, file, ...){ args <- list(...) queryParams <- list() headerParams <- character() body <- list( "additionalMetadata" = additional_metadata, "file" = httr::upload_file(file) ) urlPath <- "/pet/{petId}/uploadImage" if (!missing(`pet_id`)) { urlPath <- gsub(paste0("\\{", "petId", "\\}"), `pet_id`, urlPath) } resp <- self$apiClient$callApi(url = paste0(self$apiClient$basePath, urlPath), method = "POST", queryParams = queryParams, headerParams = headerParams, body = body, ...) if (httr::status_code(resp) >= 200 && httr::status_code(resp) <= 299) { returnObject <- ApiResponse$new() result <- returnObject$fromJSON(httr::content(resp, "text", encoding = "UTF-8")) Response$new(returnObject, resp) } else if (httr::status_code(resp) >= 400 && httr::status_code(resp) <= 499) { Response$new("API client error", resp) } else if (httr::status_code(resp) >= 500 && httr::status_code(resp) <= 599) { Response$new("API server error", resp) } } ) )
R
4
derBiggi/swagger-codegen
samples/client/petstore/r_test/R/PetApi.r
[ "Apache-2.0" ]
require "json" module Crystal::System::VisualStudio struct Installation include JSON::Serializable @[JSON::Field(key: "installationPath")] getter directory : String @[JSON::Field(key: "installationVersion")] getter version : String # unused fields not mapped end @@found_msvc = false @@msvc_path : ::Path? def self.find_latest_msvc_path : ::Path? if !@@found_msvc @@found_msvc = true @@msvc_path = find_latest_msvc_path_impl end @@msvc_path end private def self.find_latest_msvc_path_impl # ported from https://github.com/microsoft/vswhere/wiki/Find-VC # Copyright (C) Microsoft Corporation. All rights reserved. Licensed under the MIT license. if vs_installations = get_vs_installations vs_installations.each do |installation| version_path = ::File.join(installation.directory, "VC", "Auxiliary", "Build", "Microsoft.VCToolsVersion.default.txt") next unless ::File.file?(version_path) version = ::File.read(version_path).chomp next if version.empty? return ::Path.new(installation.directory, "VC", "Tools", "MSVC", version) end end end private def self.get_vs_installations : Array(Installation)? if vswhere_path = find_vswhere vc_install_json = `#{::Process.quote(vswhere_path)} -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -products * -sort -format json`.chomp return if !$?.success? || vc_install_json.empty? Array(Installation).from_json(vc_install_json) end end private def self.find_vswhere # standard path for VS2017 15.2 and later if program_files = ENV["ProgramFiles(x86)"]? vswhere_path = ::File.join(program_files, "Microsoft Visual Studio", "Installer", "vswhere.exe") return vswhere_path if ::File.file?(vswhere_path) end ::Process.find_executable("vswhere.exe") end end
Crystal
5
jessedoyle/crystal
src/crystal/system/win32/visual_studio.cr
[ "Apache-2.0" ]
xquery version "1.0-ml"; module namespace plugin = "http://marklogic.com/data-hub/plugins"; declare namespace es = "http://marklogic.com/entity-services"; declare option xdmp:mapping "false"; (:~ : Create Content Plugin : : @param $id - the identifier returned by the collector : @param $options - a map containing options. Options are sent from Java : : @return - your transformed content :) declare function plugin:create-content( $id as xs:string, $options as map:map) as item()? { let $doc := fn:doc($id) return if ($doc/es:envelope) then $doc/es:envelope/es:instance/node() else if ($doc/envelope/instance) then $doc/envelope/instance else $doc };
XQuery
4
MLjyang/marklogic-data-hub
marklogic-data-hub/src/main/resources/scaffolding/harmonize/xqy/content.xqy
[ "Apache-2.0" ]
--TEST-- Test filetype() function: Basic functionality --FILE-- <?php echo "*** Testing filetype() with files and dirs ***\n"; print( filetype(__FILE__) )."\n"; print( filetype(".") )."\n"; echo "*** Done ***\n"; ?> --EXPECT-- *** Testing filetype() with files and dirs *** file dir *** Done ***
PHP
4
NathanFreeman/php-src
ext/standard/tests/file/filetype_basic.phpt
[ "PHP-3.01" ]
a::b {}
CSS
0
kitsonk/swc
css/parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/input.css
[ "Apache-2.0", "MIT" ]
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2011 Xilinx, Inc. // All Rights Reserved /////////////////////////////////////////////////////////////////////////////// // ____ ____ // / /\/ / // /___/ \ / Vendor : Xilinx // \ \ \/ Version : 13.2 // \ \ Application: Xilinx CORE Generator // / / Filename : chipscope_icon.veo // /___/ /\ Timestamp : Wed Jul 20 23:01:08 CEST 2011 // \ \ / \ // \___\/\___\ // // Design Name: ISE Instantiation template /////////////////////////////////////////////////////////////////////////////// // The following must be inserted into your Verilog file for this // core to be instantiated. Change the instance name and port connections // (in parentheses) to your own signal names. //----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG chipscope_icon YourInstanceName ( .CONTROL0(CONTROL0) // INOUT BUS [35:0] ); // INST_TAG_END ------ End INSTANTIATION Template ---------
Verilog
4
martonbognar/sancus-core
fpga/xilinx_avnet_lx9microbard/ise/rtl/verilog/coregen/chipscope_icon.veo
[ "BSD-3-Clause" ]
WinClick,{{ x }},{{ y }},{{ hwnd }},{{ button }},{{ n }}{% if options %},{{ options }}{% endif %}
AutoHotkey
0
scslmd/ahk
ahk/templates/daemon/win_click.ahk
[ "MIT" ]
a { color: #ABBBCCDD }
CSS
1
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css
[ "Apache-2.0" ]
DAFETF NAIF DAF ENCODED TRANSFER FILE 'DAF/CK ' '2' '6' ' ' BEGIN_ARRAY 1 10 'VG2 JUP SEDR QMW IMAGE NAV POINTING: NA ' '3B0CB8DC^8' '3B0CBFC2^8' '-7D64' '2' '2' '1' 10 '58839FB314C034^0' '1696292F466A35^0' 'B237FA488C87B^0' '-9F7721867D92B^0' '0^0' '0^0' '0^0' '1^1' '3B0CB8DC^8' '3B0CBA9E^8' END_ARRAY 1 10 TOTAL_ARRAYS 1 ~NAIF/SPC BEGIN COMMENTS~ This CK is for testing with the image: /home/acpaquette/voyager/c2065022.spice.cub This CK was generated using the following command: {} ~NAIF/SPC END COMMENTS~
XC
3
ladoramkershner/ale
tests/pytests/data/c2065022/vg2_jup_qmw_na_fc-32100_t2_1_sliced_-32100.xc
[ "Unlicense" ]
import { render, screen } from '@testing-library/react'; import React from 'react'; import { Themes } from '../settings/theme'; import Profile from './profile'; jest.mock('../../analytics'); const userProps = { user: { acceptedPrivacyTerms: true, currentChallengeId: 'string', email: 'string', emailVerified: true, profileUI: { isLocked: false, showAbout: false, showCerts: false, showHeatMap: false, showLocation: false, showName: false, showPoints: false, showPortfolio: false, showTimeLine: false, showDonation: false }, calendar: {}, streak: { current: 1, longest: 1 }, completedChallenges: [], portfolio: [], progressTimestamps: [], about: 'string', githubProfile: 'string', isBanned: false, isCheater: true, isHonest: true, isGithub: true, isLinkedIn: true, isTwitter: true, isWebsite: true, joinDate: 'string', linkedin: 'string', location: 'string', name: 'string', picture: 'string', points: 1, sendQuincyEmail: true, sound: true, theme: Themes.Default, twitter: 'string', username: 'string', website: 'string', yearsTopContributor: [], isDonating: false, is2018DataVisCert: true, isApisMicroservicesCert: true, isBackEndCert: true, isDataVisCert: true, isEmailVerified: true, isFrontEndCert: true, isFrontEndLibsCert: true, isFullStackCert: true, isInfosecQaCert: true, isQaCertV7: true, isInfosecCertV7: true, isJsAlgoDataStructCert: true, isRespWebDesignCert: true, isSciCompPyCertV7: true, isDataAnalysisPyCertV7: true, isMachineLearningPyCertV7: true }, // eslint-disable-next-line @typescript-eslint/no-empty-function navigate: () => {} }; const notMyProfileProps = { isSessionUser: false, ...userProps }; describe('<Profile/>', () => { it('renders the report button on another persons profile', () => { render(<Profile {...notMyProfileProps} />); const reportButton: HTMLElement = screen.getByText('buttons.flag-user'); expect(reportButton).toHaveAttribute('href', '/user/string/report-user'); }); it('renders correctly', () => { const { container } = render(<Profile {...notMyProfileProps} />); expect(container).toMatchSnapshot(); }); });
TypeScript
4
tikenov/freeCodeCamp
client/src/components/profile/profile.test.tsx
[ "BSD-3-Clause" ]
package com.baeldung.mongodb.file.services; import java.io.IOException; import org.bson.types.ObjectId; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.mongodb.core.query.Criteria; import org.springframework.data.mongodb.core.query.Query; import org.springframework.data.mongodb.gridfs.GridFsOperations; import org.springframework.data.mongodb.gridfs.GridFsTemplate; import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; import com.baeldung.mongodb.file.models.Video; import com.mongodb.BasicDBObject; import com.mongodb.DBObject; import com.mongodb.client.gridfs.model.GridFSFile; @Service public class VideoService { @Autowired private GridFsTemplate gridFsTemplate; @Autowired private GridFsOperations operations; public Video getVideo(String id) throws IllegalStateException, IOException { GridFSFile file = gridFsTemplate.findOne(new Query(Criteria.where("_id").is(id))); Video video = new Video(); video.setTitle(file.getMetadata().get("title").toString()); video.setStream(operations.getResource(file).getInputStream()); return video; } public String addVideo(String title, MultipartFile file) throws IOException { DBObject metaData = new BasicDBObject(); metaData.put("type", "video"); metaData.put("title", title); ObjectId id = gridFsTemplate.store(file.getInputStream(), file.getName(), file.getContentType(), metaData); return id.toString(); } }
Java
4
DBatOWL/tutorials
persistence-modules/spring-boot-persistence-mongodb/src/main/java/com/baeldung/mongodb/file/services/VideoService.java
[ "MIT" ]
//The index into the positions array of the position // that we are currently at integer position = 0; //The ID of the bot we created key botID; //The list of positions that we will be teleporting to list positions = [ llGetPos() + <5,0,0>, llGetPos() + <0,5,0>, llGetPos() + <-5,0,0>, llGetPos() + <0,-5,0>]; default { state_entry() { //Creates the bot in the sim botID = botCreateBot("Test", "Bot", "", llGetPos(), BOT_CREATE_DEFAULT); //Have the bot teleport to a new location every 5 seconds llSetTimerEvent(5); } timer() { //Get the next position to teleport to vector pos = llList2Vector(positions, position++); //Teleport the bot to the position botTeleportTo(botID, pos); //Go back to the beginning of the position list if(position == 4) position = 0; } }
LSL
5
Asterionworld/ether
doc/bot LSL Functions/Examples/bot Teleport To.lsl
[ "BSD-3-Clause" ]
export { default } from './offline-warning';
TypeScript
0
fcastillo-serempre/freeCodeCamp
client/src/components/OfflineWarning/index.tsx
[ "BSD-3-Clause" ]
## @package split # Module caffe2.python.layers.split from caffe2.python import schema from caffe2.python.layers.layers import ( ModelLayer, ) class Split(ModelLayer): def __init__(self, model, input_record, num_splits=1, axis=1, name='split', split=None, **kwargs): super(Split, self).__init__(model, name, input_record, **kwargs) self.axis = axis # Assume that first dimension is batch, so actual axis in shape is # axis - 1 axis -= 1 assert axis >= 0 assert isinstance(input_record, schema.Scalar),\ "Incorrect input type. Expected Scalar, but received: {0}".\ format(input_record) input_shape = input_record.field_type().shape assert len(input_shape) >= axis if split is None: assert input_shape[axis] % num_splits == 0 else: num_splits = len(split) assert input_shape[axis] == sum(split) if split is None: output_shape = list(input_shape) output_shape[axis] = int(output_shape[axis] / num_splits) else: output_shape = [] for i in range(num_splits): output_shape_i = list(input_shape) output_shape_i[axis] = split[i] output_shape.append(output_shape_i) data_type = input_record.field_type().base if split is None: output_scalars = [ schema.Scalar( (data_type, output_shape), self.get_next_blob_reference('output_{}'.format(i)), ) for i in range(num_splits) ] else: output_scalars = [ schema.Scalar( (data_type, output_shape[i]), self.get_next_blob_reference('output_{}'.format(i)), ) for i in range(num_splits) ] self.output_schema = schema.Tuple(*output_scalars) self.split = split def add_ops(self, net): net.Split( self.input_record.field_blobs(), self.output_schema.field_blobs(), split=self.split, axis=self.axis, )
Python
4
Hacky-DH/pytorch
caffe2/python/layers/split.py
[ "Intel" ]
/turf var/dynamic_lighting = TRUE luminosity = 1 var/tmp/lighting_corners_initialised = FALSE var/tmp/list/datum/light_source/affecting_lights // List of light sources affecting this turf. var/tmp/atom/movable/lighting_overlay/lighting_overlay // Our lighting overlay. var/tmp/list/datum/lighting_corner/corners var/tmp/has_opaque_atom = FALSE // Not to be confused with opacity, this will be TRUE if there's any opaque atom on the tile. /turf/New() . = ..() if(opacity) has_opaque_atom = TRUE // Causes any affecting light sources to be queued for a visibility update, for example a door got opened. /turf/proc/reconsider_lights() for(var/datum/light_source/L in affecting_lights) L.vis_update() /turf/proc/lighting_clear_overlay() if(lighting_overlay) returnToPool(lighting_overlay) for(var/datum/lighting_corner/C in corners) C.update_active() // Builds a lighting overlay for us, but only if our area is dynamic. /turf/proc/lighting_build_overlay() if(lighting_overlay) return var/area/A = loc if(A.dynamic_lighting) if (!lighting_corners_initialised) generate_missing_corners() getFromPool(/atom/movable/lighting_overlay, src) for(var/datum/lighting_corner/C in corners) if(!C.active) // We would activate the corner, calculate the lighting for it. for(var/L in C.affecting) var/datum/light_source/S = L S.recalc_corner(C) C.active = TRUE // Used to get a scaled lumcount. /turf/proc/get_lumcount(var/minlum = 0, var/maxlum = 1) if(!lighting_overlay) return 0.5 var/totallums = 0 for(var/datum/lighting_corner/L in corners) totallums += L.lum_r + L.lum_b + L.lum_g totallums /= 12 // 4 corners, each with 3 channels, get the average. totallums = (totallums - minlum) / (maxlum - minlum) return CLAMP01(totallums) // Can't think of a good name, this proc will recalculate the has_opaque_atom variable. /turf/proc/recalc_atom_opacity() has_opaque_atom = FALSE for(var/atom/A in src.contents + src) // Loop through every movable atom on our tile PLUS ourselves (we matter too...) if(A.opacity) has_opaque_atom = TRUE // If an opaque movable atom moves around we need to potentially update visibility. /turf/Entered(var/atom/movable/Obj, var/atom/OldLoc) . = ..() if(Obj && Obj.opacity) has_opaque_atom = TRUE // Make sure to do this before reconsider_lights(), incase we're on instant updates. Guaranteed to be on in this case. reconsider_lights() /turf/Exited(var/atom/movable/Obj, var/atom/newloc) . = ..() if(Obj && Obj.opacity) recalc_atom_opacity() // Make sure to do this before reconsider_lights(), incase we're on instant updates. reconsider_lights() /turf/change_area(var/area/old_area, var/area/new_area) if(new_area.dynamic_lighting != old_area.dynamic_lighting) if(new_area.dynamic_lighting) lighting_build_overlay() else lighting_clear_overlay() /turf/proc/generate_missing_corners() lighting_corners_initialised = TRUE if (!corners) corners = list(null, null, null, null) for (var/i = 1 to 4) if (corners[i]) // Already have a corner on this direction. continue corners[i] = new/datum/lighting_corner(src, LIGHTING_CORNER_DIAGONAL[i]) /turf/proc/get_corners() if(has_opaque_atom) return null // Since this proc gets used in a for loop, null won't be looped though. return corners // So the thing is, making things like lighting overlay data persist when a turf gets replaced is sort of hard... // As such, whenever you're causing a turf's type to change, use this proc to do it. // If you don't, the lighting engine will not approve of your shenanigans. /turf/proc/change_turf(var/new_type) // Back all this data up, so we can set it after the turf replace. // If you're wondering how this proc'll keep running since the turf should be "deleted": // BYOND never deletes turfs, when you "delete" a turf, it actually morphs the turf into a new one. // Running procs do NOT get stopped due to this. var/l_overlay = lighting_overlay // Not even a need to cast this, honestly. var/affect_lights = affecting_lights var/l_corners = corners var/old_dynamic = dynamic_lighting var/old_opacity = opacity // Create the new turf, replacing us. new new_type(src) lighting_corners_initialised = TRUE recalc_atom_opacity() lighting_overlay = l_overlay affecting_lights = affect_lights corners = l_corners if((old_opacity != opacity) || (dynamic_lighting != old_dynamic)) reconsider_lights() if(old_dynamic != dynamic_lighting) if(dynamic_lighting) lighting_build_overlay() else lighting_clear_overlay()
DM
4
PJB3005/GoonLight-Heist
Lighting/lighting_turf.dm
[ "MIT" ]