content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
sequencelengths
1
8
normal**bold**//italic//__courier__normal
Creole
0
jquorning/ada-wiki
regtests/expect/wiki-import/multi.creole
[ "Apache-2.0" ]
{:main reagenttest.runtests :output-to "target/bundle/resources/public/js/out/index.js" :output-dir "target/bundle/resources/public/js/out" :asset-path "js/out" :target :bundle ; :bundle-cmd {:none ["npx" "webpack" "--mode=development"] ; :default ["npx" "webpack"]} }
edn
3
oakmac/reagent
test-environments/bundle/build.edn
[ "MIT" ]
/*--------------------------------------------------*/ /* SAS Programming for R Users - code for exercises */ /* Copyright 2016 SAS Institute Inc. */ /*--------------------------------------------------*/ /*SP4R07d01*/ /*Part A*/ proc iml; items ={'Groceries','Utilities','Rent','Car Expenses', 'Fun Money','Personal Expenses'}; weeks ={'Week 1','Week 2','Week 3','Week 4'}; amounts ={ 96 78 82 93, 61 77 62 68, 300 300 300 300, 25 27 98 18, 55 34 16 53, 110 85 96 118}; weeklyIncome={900 850 1050 950}; print items amounts weeklyIncome; print items, amounts, weeklyIncome; /*Part B*/ reset noname; weeklyTotals=amounts[+,]; print "Total Expenses for Each Week", weeklyTotals [colname=weeks format=dollar8.2]; /*Part C*/ itemTotals=amounts[,+]; print "Total Expenses for Each Item", itemTotals[rowname=items format=dollar8.2]; /*Part D*/ weeklyPercentage=amounts/weeklyIncome; print "Percentage of income spent on each item, by week", weeklyPercentage[rowname=items colname=weeks format=percent7.2]; /*Part E*/ monthlyIncome =weeklyIncome[+]; itemProportion =itemTotals/monthlyIncome; print "Each Item as a Percentage of Monthly Income", itemProportion[rowname=items format=percent7.2]; quit;
SAS
4
snowdj/sas-prog-for-r-users
code/SP4R07d01.sas
[ "CC-BY-4.0" ]
<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"> <% if @options.main_page && main_page = @files.find { |f| f.full_name == @options.main_page } then %> <%= main_page.description %> <% else %> <p>This is the API documentation for <%= @title %>. <% end %> </div>
RHTML
4
prathamesh-sonpatki/jruby
lib/ruby/2.0/rdoc/generator/template/darkfish/index.rhtml
[ "Ruby", "Apache-2.0" ]
a { color: #ABCD }
CSS
0
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/39pbt1sIeFh8WWhCalZS4g/input.css
[ "Apache-2.0" ]
#!/bin/bash SCRIPT_DIR=$(cd `dirname $0` && pwd) cd $SCRIPT_DIR cd jq-1.5 || exit 1 make clean make || exit 1 mkdir -p ../_install/bin || exit 1 cp ./jq ../_install/bin || exit 1 arm-openwrt-linux-strip ../_install/bin/* || exit 1
JSONiq
3
bolt1502/yi-hack
src/jq/compile.jq
[ "MIT" ]
grammar t056lexer1; options {language=JavaScript;} a : A {this.xlog(this.input);} ; A : '\\' 't' {this.setText(" ");} ; WS : (' '|'\n') {$channel=HIDDEN;} ;
G-code
4
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t056lexer1.g
[ "Apache-2.0" ]
<?php /** @generate-class-entries */ namespace LDAP { /** * @strict-properties * @not-serializable */ final class Connection { } /** * @strict-properties * @not-serializable */ final class Result { } /** * @strict-properties * @not-serializable */ final class ResultEntry { } } namespace { #ifdef HAVE_ORALDAP function ldap_connect(?string $uri = null, int $port = 389, string $wallet = UNKNOWN, string $password = UNKNOWN, int $auth_mode = GSLC_SSL_NO_AUTH): LDAP\Connection|false {} #else function ldap_connect(?string $uri = null, int $port = 389): LDAP\Connection|false {} #endif function ldap_unbind(LDAP\Connection $ldap): bool {} /** @alias ldap_unbind */ function ldap_close(LDAP\Connection $ldap): bool {} function ldap_bind(LDAP\Connection $ldap, ?string $dn = null, ?string $password = null): bool {} function ldap_bind_ext(LDAP\Connection $ldap, ?string $dn = null, ?string $password = null, ?array $controls = null): LDAP\Result|false {} #ifdef HAVE_LDAP_SASL function ldap_sasl_bind(LDAP\Connection $ldap, ?string $dn = null, ?string $password = null, ?string $mech = null, ?string $realm = null, ?string $authc_id = null, ?string $authz_id = null, ?string $props = null): bool {} #endif /** @param LDAP\Connection|array $ldap */ function ldap_read($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null): LDAP\Result|array|false {} /** @param LDAP\Connection|array $ldap */ function ldap_list($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null): LDAP\Result|array|false {} /** @param LDAP\Connection|array $ldap */ function ldap_search($ldap, array|string $base, array|string $filter, array $attributes = [], int $attributes_only = 0, int $sizelimit = -1, int $timelimit = -1, int $deref = LDAP_DEREF_NEVER, ?array $controls = null): LDAP\Result|array|false {} function ldap_free_result(LDAP\Result $result): bool {} function ldap_count_entries(LDAP\Connection $ldap, LDAP\Result $result): int {} function ldap_first_entry(LDAP\Connection $ldap, LDAP\Result $result): LDAP\ResultEntry|false {} function ldap_next_entry(LDAP\Connection $ldap, LDAP\ResultEntry $entry): LDAP\ResultEntry|false {} /** * @return array<int|string, int|array>|false * @refcount 1 */ function ldap_get_entries(LDAP\Connection $ldap, LDAP\Result $result): array|false {} function ldap_first_attribute(LDAP\Connection $ldap, LDAP\ResultEntry $entry): string|false {} function ldap_next_attribute(LDAP\Connection $ldap, LDAP\ResultEntry $entry): string|false {} /** * @return array<int|string, int|string|array> * @refcount 1 */ function ldap_get_attributes(LDAP\Connection $ldap, LDAP\ResultEntry $entry): array {} /** * @return array<int|string, int|string>|false * @refcount 1 */ function ldap_get_values_len(LDAP\Connection $ldap, LDAP\ResultEntry $entry, string $attribute): array|false {} /** * @return array<int|string, int|string>|false * @refcount 1 * @alias ldap_get_values_len */ function ldap_get_values(LDAP\Connection $ldap, LDAP\ResultEntry $entry, string $attribute): array|false {} function ldap_get_dn(LDAP\Connection $ldap, LDAP\ResultEntry $entry): string|false {} /** * @return array<int|string, int|string>|false * @refcount 1 */ function ldap_explode_dn(string $dn, int $with_attrib): array|false {} function ldap_dn2ufn(string $dn): string|false {} function ldap_add(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bool {} function ldap_add_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): LDAP\Result|false {} function ldap_delete(LDAP\Connection $ldap, string $dn, ?array $controls = null): bool {} function ldap_delete_ext(LDAP\Connection $ldap, string $dn, ?array $controls = null): LDAP\Result|false {} function ldap_modify_batch(LDAP\Connection $ldap, string $dn, array $modifications_info, ?array $controls = null): bool {} function ldap_mod_add(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bool {} function ldap_mod_add_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): LDAP\Result|false {} function ldap_mod_replace(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bool {} /** @alias ldap_mod_replace */ function ldap_modify(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bool {} function ldap_mod_replace_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): LDAP\Result|false {} function ldap_mod_del(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): bool {} function ldap_mod_del_ext(LDAP\Connection $ldap, string $dn, array $entry, ?array $controls = null): LDAP\Result|false {} function ldap_errno(LDAP\Connection $ldap): int {} function ldap_error(LDAP\Connection $ldap): string {} function ldap_err2str(int $errno): string {} function ldap_compare(LDAP\Connection $ldap, string $dn, string $attribute, string $value, ?array $controls = null): bool|int {} #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) function ldap_rename(LDAP\Connection $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls = null): bool {} function ldap_rename_ext(LDAP\Connection $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, ?array $controls = null): LDAP\Result|false {} /** @param array|string|int $value */ function ldap_get_option(LDAP\Connection $ldap, int $option, &$value = null): bool {} /** @param array|string|int|bool $value */ function ldap_set_option(?LDAP\Connection $ldap, int $option, $value): bool {} function ldap_count_references(LDAP\Connection $ldap, LDAP\Result $result): int {} function ldap_first_reference(LDAP\Connection $ldap, LDAP\Result $result): LDAP\ResultEntry|false {} function ldap_next_reference(LDAP\Connection $ldap, LDAP\ResultEntry $entry): LDAP\ResultEntry|false {} #ifdef HAVE_LDAP_PARSE_REFERENCE /** @param array $referrals */ function ldap_parse_reference(LDAP\Connection $ldap, LDAP\ResultEntry $entry, &$referrals): bool {} #endif #ifdef HAVE_LDAP_PARSE_RESULT /** * @param int $error_code * @param string $matched_dn * @param string $error_message * @param array $referrals * @param array $controls */ function ldap_parse_result(LDAP\Connection $ldap, LDAP\Result $result, &$error_code, &$matched_dn = null, &$error_message = null, &$referrals = null, &$controls = null): bool {} #endif #endif #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC) function ldap_set_rebind_proc(LDAP\Connection $ldap, ?callable $callback): bool {} #endif #ifdef HAVE_LDAP_START_TLS_S function ldap_start_tls(LDAP\Connection $ldap): bool {} #endif function ldap_escape(string $value, string $ignore = "", int $flags = 0): string {} #ifdef STR_TRANSLATION function ldap_t61_to_8859(string $value): string|false {} function ldap_8859_to_t61(string $value): string|false {} #endif #ifdef HAVE_LDAP_EXTENDED_OPERATION_S /** * @param string $response_data * @param string $response_oid */ function ldap_exop(LDAP\Connection $ldap, string $request_oid, ?string $request_data = null, ?array $controls = NULL, &$response_data = UNKNOWN, &$response_oid = null): LDAP\Result|bool {} #endif #ifdef HAVE_LDAP_PASSWD /** * @param array $controls */ function ldap_exop_passwd(LDAP\Connection $ldap, string $user = "", string $old_password = "", string $new_password = "", &$controls = null): string|bool {} #endif #ifdef HAVE_LDAP_WHOAMI_S function ldap_exop_whoami(LDAP\Connection $ldap): string|false {} #endif #ifdef HAVE_LDAP_REFRESH_S function ldap_exop_refresh(LDAP\Connection $ldap, string $dn, int $ttl): int|false {} #endif #ifdef HAVE_LDAP_PARSE_EXTENDED_RESULT /** * @param string $response_data * @param string $response_oid */ function ldap_parse_exop(LDAP\Connection $ldap, LDAP\Result $result, &$response_data = null, &$response_oid = null): bool {} #endif }
PHP
5
NathanFreeman/php-src
ext/ldap/ldap.stub.php
[ "PHP-3.01" ]
<#import "template.ftl" as layout> <@layout.registrationLayout; section> <#if section = "header"> ${msg("deleteAccountConfirm")} <#elseif section = "form"> <form action="${url.loginAction}" class="form-vertical" method="post"> <div class="alert alert-warning" style="margin-top:0 !important;margin-bottom:30px !important"> <span class="pficon pficon-warning-triangle-o"></span> ${msg("irreversibleAction")} </div> <p>${msg("deletingImplies")}</p> <ul style="color: #72767b;list-style: disc;list-style-position: inside;"> <li>${msg("loggingOutImmediately")}</li> <li>${msg("errasingData")}</li> </ul> <p class="delete-account-text">${msg("finalDeletionConfirmation")}</p> <div id="kc-form-buttons"> <input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" type="submit" value="${msg("doConfirmDelete")}" /> <#if triggered_from_aia> <button class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" style="margin-left: calc(100% - 220px)" type="submit" name="cancel-aia" value="true" />${msg("doCancel")}</button> </#if> </div> </form> </#if> </@layout.registrationLayout>
FreeMarker
3
evtr/keycloak
themes/src/main/resources/theme/base/login/delete-account-confirm.ftl
[ "Apache-2.0" ]
namespace ts.tscWatch { describe("unittests:: tsbuildWatch:: watchMode:: configFileErrors:: reports syntax errors in config file", () => { function build(sys: WatchedSystem) { sys.checkTimeoutQueueLengthAndRun(1); // build the project sys.checkTimeoutQueueLength(0); } verifyTscWatch({ scenario: "configFileErrors", subScenario: "reports syntax errors in config file", sys: () => createWatchedSystem( [ { path: `${projectRoot}/a.ts`, content: "export function foo() { }" }, { path: `${projectRoot}/b.ts`, content: "export function bar() { }" }, { path: `${projectRoot}/tsconfig.json`, content: Utils.dedent` { "compilerOptions": { "composite": true, }, "files": [ "a.ts" "b.ts" ] }` }, libFile ], { currentDirectory: projectRoot } ), commandLineArgs: ["--b", "-w"], changes: [ { caption: "reports syntax errors after change to config file", change: sys => replaceFileText(sys, `${projectRoot}/tsconfig.json`, ",", `, "declaration": true,`), timeouts: build, }, { caption: "reports syntax errors after change to ts file", change: sys => replaceFileText(sys, `${projectRoot}/a.ts`, "foo", "fooBar"), timeouts: build, }, { caption: "reports error when there is no change to tsconfig file", change: sys => replaceFileText(sys, `${projectRoot}/tsconfig.json`, "", ""), timeouts: build, }, { caption: "builds after fixing config file errors", change: sys => sys.writeFile(`${projectRoot}/tsconfig.json`, JSON.stringify({ compilerOptions: { composite: true, declaration: true }, files: ["a.ts", "b.ts"] })), timeouts: build, } ] }); }); }
TypeScript
4
monciego/TypeScript
src/testRunner/unittests/tsbuildWatch/configFileErrors.ts
[ "Apache-2.0" ]
#world { polygon-fill: #000; [zoom=22] { polygon-fill: #f00000; } [zoom=21] { polygon-fill: #0f0000; } [zoom=20] { polygon-fill: #00f000; } [zoom=19] { polygon-fill: #000f00; } [zoom=18] { polygon-fill: #0000f0; } [zoom=17] { polygon-fill: #00000f; } }
CartoCSS
2
nimix/carto
test/rendering/highzooms.mss
[ "Apache-2.0" ]
defmodule HelloWeb.Endpoint do use Phoenix.Endpoint, otp_app: :hello plug Plug.Parsers, parsers: [:json, :urlencoded, :multipart], pass: ["*/*"], json_decoder: Phoenix.json_library() plug HelloWeb.Router end
Elixir
4
efectn/FrameworkBenchmarks
frameworks/Elixir/phoenix/lib/hello_web/endpoint.ex
[ "BSD-3-Clause" ]
macroScript openMaxFile icon:#("~set_and_get_paths",4) category:"Tools" toolTip:"Open Max File..." ( max file open )
MAXScript
2
89096000/MaxScript
Workflow/set_and_get_paths/MacroScripts/~openMaxFile.mcr
[ "MIT" ]
/** * * NativeLearner.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; import x10.compiler.Native; import x10.compiler.NativeCPPInclude; import x10.compiler.NativeRep; /** * Container class for a native learner. */ @NativeRep("c++", "rudra::NativeLearner*", "rudra::NativeLearner", null) public class NativeLearner { @Native("c++", "NativeLearner::setLoggingLevel(#level)") public static def setLoggingLevel(level:Int):void {} @Native("c++", "NativeLearner::setAdaDeltaParams(#rho, #epsilon, #defaultRho, #defaultEpsilon)") public static def setAdaDeltaParams(rho:Float, epsilon:Float, defaultRho:Float, defaultEpsilon:Float):void {} @Native("c++", "NativeLearner::setMeanFile(#fn->c_str())") public static def setMeanFile(fn:String):void {} @Native("c++", "NativeLearner::setSeed(#id, #seed, #defaultSeed)") public static def setSeed(id:Long, seed:Int, defaultSeed:Int):void {} @Native("c++", "NativeLearner::setMoM(#mom)") public static def setMoM(mom:Float):void {} @Native("c++", "NativeLearner::setJobID(#jobID->c_str())") public static def setJobID(jobID:String):void {} @Native("c++", "NativeLearner::initFromCFGFile(#cfgName->c_str())") public static def initFromCFGFile(cfgName:String):void {} @Native("c++", "new rudra::NativeLearner(#id)") public def this(id:Long){} @Native("c++", "#this->initNativeLand(#id, #confName->c_str(), #seed, #defaultSeed, #numLearner)") public def initNativeLand(id:Long, confName:String, numLearner:Long):void{} @Native("c++", "#this->checkpoint(#outputFileName->c_str())") public def checkpoint(outputFileName:String):void { } @Native("c++", "#this->getNetworkSize()") public def getNetworkSize():Long { return 0; } @Native("c++", "#this->initAsLearner(#trainData->c_str(), #trainLabels->c_str(), #batchSize, #weightsFile->c_str(), #solverType->c_str())") public def initAsLearner(trainData:String, trainLabels:String, batchSize:long, weightsFile:String, solverType:String):void { } @Native("c++", "#this->initAsTester(#testData->c_str(), #testLabels->c_str(), #batchSize, #solverType->c_str())") public def initAsTester(testData:String, testLabels:String, batchSize:long, solverType:String):void { } @Native("c++", "#this->trainMiniBatch()") public def trainMiniBatch():float{ return 0F; } @Native("c++", "#this->getGradients(#gradients->raw)") public def getGradients(gradients:Rail[Float]):void {} @Native("c++", "#this->accumulateGradients(#gradients->raw)") public def accumulateGradients(gradients:Rail[Float]):void {} @Native("c++", "#this->serializeWeights(#weights->raw)") public def serializeWeights(weights:Rail[Float]):void {} @Native("c++", "#this->deserializeWeights(#weights->raw)") public def deserializeWeights(weights:Rail[Float]):void {} @Native("c++", "#this->setLearningRateMultiplier(#lrMult)") public def setLearningRateMultiplier(lrMult:Float):void { } @Native("c++", "#this->acceptGradients(#delta->raw, #multiplier)") public def acceptGradients(val delta:Rail[Float], val multiplier:Float):void{} @Native("c++", "#this->testOneEpoch(#weights->raw)") public def testOneEpoch(weights:Rail[Float]):Float { return -3.0f; } /** * Free all native-allocated memory. Afterwards, this object is no * longer valid and no further method invocations should be made. */ @Native("c++", "#this->cleanup()") public def cleanup():void { } } // vim: shiftwidth=4:tabstop=4:expandtab
X10
4
milthorpe/rudra
x10/src/rudra/NativeLearner.x10
[ "BSD-3-Clause" ]
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <stddef.h> #include <stdint.h> #include <qnnpack/common.h> #include <qnnpack/params.h> #ifdef __cplusplus extern "C" { #endif #define DECLARE_PYTORCH_Q8GEMM_SPARSE_UKERNEL_FUNCTION(fn_name) \ PYTORCH_QNNP_INTERNAL void fn_name( \ size_t mr, \ size_t nr, \ const uint8_t* a, \ size_t a_stride, \ const uint8_t* packed_w, \ const uint32_t* w_row_ptr, \ const uint32_t* w_block_ids_ptr, \ uint8_t* c, \ size_t c_stride, \ size_t output_channel_index, \ const union pytorch_qnnp_conv_quantization_params* quantization_params); DECLARE_PYTORCH_Q8GEMM_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_sparse_1x4_ukernel_4x8__neon) DECLARE_PYTORCH_Q8GEMM_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_sparse_1x4_ukernel_8x8__neon) DECLARE_PYTORCH_Q8GEMM_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_sparse_1x4_ukernel_4x8__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_sparse_1x4_ukernel_8x8__aarch64_neon) DECLARE_PYTORCH_Q8GEMM_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_sparse_1x4_ukernel_4x4c2__sse2) #define DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_UKERNEL_FUNCTION(fn_name) \ PYTORCH_QNNP_INTERNAL void fn_name( \ size_t mr, \ size_t nr, \ const uint8_t* a, \ size_t a_stride, \ const uint8_t* packed_w, \ const uint32_t* w_row_ptr, \ const uint32_t* w_block_ids_ptr, \ const float* b, \ float* c, \ size_t c_stride, \ size_t output_channel_index, \ const struct pytorch_qnnp_conv_dynamic_quantization_params* quantization_params); DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_dq_sparse_1x4_ukernel_8x4__neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_dq_sparse_1x4_ukernel_8x4__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_dq_sparse_1x4_ukernel_8x4__aarch64_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_UKERNEL_FUNCTION(pytorch_q8gemm_dq_sparse_1x4_ukernel_8x4__sse2) #define DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION(fn_name) \ PYTORCH_QNNP_INTERNAL void fn_name( \ size_t mr, \ size_t nr, \ const uint8_t* a_packed, \ const uint8_t* packed_w, \ const uint32_t* w_row_ptr, \ const uint32_t* w_block_ids_ptr, \ const float* b, \ float* c, \ size_t c_stride, \ size_t output_channel_index, \ const struct pytorch_qnnp_conv_dynamic_quantization_params* quantization_params); DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION( pytorch_q8gemm_dq_sparse_1x4_ukernel_4x8_packedA__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION( pytorch_q8gemm_dq_sparse_8x1_ukernel_4x8_packedA__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION( pytorch_q8gemm_dq_sparse_1x4_ukernel_8x4_packedA__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION( pytorch_q8gemm_dq_sparse_1x4_ukernel_8x8_packedA__aarch64_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION( pytorch_q8gemm_dq_sparse_8x1_ukernel_8x8_packedA__aarch64_neon) DECLARE_PYTORCH_Q8GEMM_DYNAMIC_QUANTIZATION_SPARSE_PACKEDA_UKERNEL_FUNCTION( pytorch_q8gemm_dq_sparse_1x4_ukernel_8x4_packedA__sse2) #define DECLARE_PYTORCH_Q8GEMM_PARSE_PACKA_UKERNEL_FUNCTION(fn_name) \ PYTORCH_QNNP_INTERNAL void fn_name( \ const size_t mr, \ const size_t K, \ const uint8_t* a, \ const size_t a_stride, \ uint8_t* a_packed); DECLARE_PYTORCH_Q8GEMM_PARSE_PACKA_UKERNEL_FUNCTION( pytorch_q8gemm_sparse_packA_ukernel_4x4__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_PARSE_PACKA_UKERNEL_FUNCTION( pytorch_q8gemm_sparse_packA_ukernel_8x4__aarch32_neon) DECLARE_PYTORCH_Q8GEMM_PARSE_PACKA_UKERNEL_FUNCTION( pytorch_q8gemm_sparse_packA_ukernel_8x4__aarch64_neon) DECLARE_PYTORCH_Q8GEMM_PARSE_PACKA_UKERNEL_FUNCTION( pytorch_q8gemm_sparse_packA_ukernel_8x4__sse2) #ifdef __cplusplus } /* extern "C" */ #endif
C
3
Hacky-DH/pytorch
aten/src/ATen/native/quantized/cpu/qnnpack/src/qnnpack/q8gemm_sparse.h
[ "Intel" ]
%%{ # RFC 5234 B.1. Core Rules # https://tools.ietf.org/html/rfc5234#appendix-B.1 machine rfc5234_abnf_core_rules; alphtype int; include rfc3629_utf8 "rfc3629_utf8.rl"; LF = "\n"; CR = "\r"; CRLF = "\r\n"; SP = " "; HTAB = "\t"; WSP = SP | HTAB; DQUOTE = '"'; DIGIT = [0-9]; ALPHA = [a-zA-Z]; # RFC6532 extension for UTF-8 content rfc5234_VCHAR = 0x21..0x7e; VCHAR = rfc5234_VCHAR | utf8_non_ascii; }%%
Ragel in Ruby Host
4
ylecuyer/mail
lib/mail/parsers/rfc5234_abnf_core_rules.rl
[ "MIT" ]
-- This test file was converted from udaf.sql. CREATE OR REPLACE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1), (2), (3), (4) as t1(int_col1); CREATE FUNCTION myDoubleAvg AS 'test.org.apache.spark.sql.MyDoubleAvg'; SELECT default.myDoubleAvg(udf(int_col1)) as my_avg, udf(default.myDoubleAvg(udf(int_col1))) as my_avg2, udf(default.myDoubleAvg(int_col1)) as my_avg3 from t1; SELECT default.myDoubleAvg(udf(int_col1), udf(3)) as my_avg from t1; CREATE FUNCTION udaf1 AS 'test.non.existent.udaf'; SELECT default.udaf1(udf(int_col1)) as udaf1, udf(default.udaf1(udf(int_col1))) as udaf2, udf(default.udaf1(int_col1)) as udaf3 from t1; DROP FUNCTION myDoubleAvg; DROP FUNCTION udaf1;
SQL
3
OlegPt/spark
sql/core/src/test/resources/sql-tests/inputs/udf/udf-udaf.sql
[ "Apache-2.0" ]
#+TITLE: lang/nix #+DATE: May 4, 2020 #+SINCE: v2.0.7 #+STARTUP: inlineimages nofold * Table of Contents :TOC_3:noexport: - [[#description][Description]] - [[#maintainers][Maintainers]] - [[#module-flags][Module Flags]] - [[#plugins][Plugins]] - [[#prerequisites][Prerequisites]] - [[#features][Features]] - [[#keybindings][Keybindings]] - [[#configuration][Configuration]] - [[#troubleshooting][Troubleshooting]] * Description Adds many tools for [[https://nixos.org/][Nix(OS)]] users in nice package for Doom users. + Syntax highlighting + Completion through ~company~ / ~helm~ + Nix option lookup + Formatting (~nixfmt~) ** Maintainers This module has no dedicated maintainers. ** Module Flags This module provides no flags. ** Plugins + [[https://github.com/NixOS/nix-mode][nix-mode]] + [[https://github.com/jwiegley/nix-update-el][nix-update]] * Prerequisites + ~nixfmt~ is required to use formatting + If you have Nix(OS) installed it can be installed through Nix configuration ~environment.systemPackages = with pkgs; [ nixfmt ];~ (recommended) + Or through nix-env ~nix-env -iA nixpkgs.nixfmt~ + Or through nix-shell ~nix-shell -f https://github.com/serokell/nixfmt/archive/master.tar.gz -i~ + ~:editor format~ ~format-all~ also supports ~nixfmt~ so you can use that also to format Nix code, default binding is ~SPC c f~ in evil. * Features ** Keybindings | Binding | Description | |-------------------+----------------------| | ~<localleader> b~ | ~nix-build~ | | ~<localleader> f~ | ~nix-update-fetch~ | | ~<localleader> o~ | ~+nix/lookup-option~ | | ~<localleader> p~ | ~nix-format-buffer~ | | ~<localleader> r~ | ~nix-repl-show~ | | ~<localleader> s~ | ~nix-repl-shell~ | | ~<localleader> u~ | ~nix-unpack~ | * Configuration * Troubleshooting + There aren't any known problems.
Org
4
leezu/doom-emacs
modules/lang/nix/README.org
[ "MIT" ]
// Declaration file daikon-output/DataStructures/StackAr.decls rewritten by ComparablePairsDescFileReader // Wed May 28 17:24:50 EDT 2003 VarComparability implicit // Declarations for DataStructures/StackAr.java // Written Wed May 28 17:23:56 2003 ListImplementors java.util.List DECLARE DataStructures.StackAr.StackAr():::ENTER DECLARE DataStructures.StackAr.StackAr():::EXIT30 this DataStructures.StackAr # isParam=true hashcode -2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] -2[-2] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int -2 DECLARE DataStructures.StackAr.StackAr(int):::ENTER capacity int # isParam=true int 0 DECLARE DataStructures.StackAr.StackAr(int):::EXIT40 capacity int # isParam=true int 0 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.isEmpty():::ENTER this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.isEmpty():::EXIT48 return boolean boolean 1 this DataStructures.StackAr # isParam=true hashcode 3 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 2[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.isFull():::ENTER this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.isFull():::EXIT57 return boolean boolean 1 this DataStructures.StackAr # isParam=true hashcode 3 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 2[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.makeEmpty():::ENTER this DataStructures.StackAr # isParam=true hashcode -2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] -2[-2] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int -2 DECLARE DataStructures.StackAr.makeEmpty():::EXIT68 this DataStructures.StackAr # isParam=true hashcode -2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] -2[-2] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int -2 DECLARE DataStructures.StackAr.top():::ENTER this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.top():::EXIT78 return java.lang.Object hashcode -2 return.class java.lang.Class java.lang.String -1 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.top():::EXIT79 return java.lang.Object hashcode 1 return.class java.lang.Class java.lang.String -1 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.pop():::ENTER this DataStructures.StackAr # isParam=true hashcode -2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] -2[-2] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int -2 DECLARE DataStructures.StackAr.pop():::EXIT91 this DataStructures.StackAr # isParam=true hashcode -2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] -2[-2] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int -2 DECLARE DataStructures.StackAr.push(java.lang.Object):::ENTER x java.lang.Object # isParam=true hashcode 1 x.class java.lang.Class java.lang.String -1 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.push(java.lang.Object):::EXIT103 x java.lang.Object # isParam=true hashcode 1 x.class java.lang.Class java.lang.String -1 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.topAndPop():::ENTER this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.topAndPop():::EXIT112 return java.lang.Object hashcode -2 return.class java.lang.Class java.lang.String -1 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.topAndPop():::EXIT115 return java.lang.Object hashcode 1 return.class java.lang.Class java.lang.String -1 this DataStructures.StackAr # isParam=true hashcode 2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] 1[0] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int 0 DECLARE DataStructures.StackAr.main(java.lang.String[]):::ENTER args java.lang.String[] # isParam=true hashcode 1 args.class java.lang.Class java.lang.String -1 args[] java.lang.String[] java.lang.String[] 0[1] args[].toString java.lang.String[] java.lang.String[] -1 DECLARE DataStructures.StackAr.main(java.lang.String[]):::EXIT136 args java.lang.String[] # isParam=true hashcode 1 args.class java.lang.Class java.lang.String -1 args[] java.lang.String[] java.lang.String[] 0[1] args[].toString java.lang.String[] java.lang.String[] -1 DECLARE DataStructures.StackAr:::OBJECT this DataStructures.StackAr # isParam=true hashcode -2 this.theArray java.lang.Object[] hashcode -2 this.theArray.class java.lang.Class java.lang.String -1 this.theArray[] java.lang.Object[] hashcode[] -2[-2] this.theArray[].class java.lang.Class[] java.lang.String[] -1 this.topOfStack int int -2
BlitzBasic
3
eurecom-s3/invscov
daikon/java/daikon/test/split/targets/StackAr.decls
[ "Apache-2.0" ]
PROXY TCP4 192.168.0.1 192.16...\r\n
HTTP
0
ashishmjn/gunicorn
tests/requests/invalid/pp_01.http
[ "MIT" ]
// plabels.pwn - player labels #include <a_samp> #include <streamer> #include <sscanf2> #include <foreach> #include <zcmd> #define MAX_WEAPON_NAME 21 #define MAX_LABEL_STRING 256 #define LABEL_COLOR 0x20B2AAFF // light sea green #define LABEL_DRAW_DISTANCE 20.0 #define LABEL_STREAM_DISTANCE 20.0 enum LabelMode { MODE_DISABLED, MODE_GLOBAL, MODE_PLAYER } enum E_PLAYER_DATA { Float:PLAYER_POS[3], Float:PLAYER_ANGLE, Float:PLAYER_HEALTH, Float:PLAYER_ARMOUR, PLAYER_INTERIOR, PLAYER_VIRTUAL_WORLD, PLAYER_SKIN, PLAYER_PING, PLAYER_MONEY, PLAYER_WEAPON, PLAYER_AMMO, PLAYER_SCORE } new const WEAPON_NAMES[57][MAX_WEAPON_NAME] = { "Fist", "Brass knuckles", "Golf club", "Nightstick", "Knife", "Bat", "Shovel", "Pool cue", "Katana", "Chainsaw", "Purple dildo", "Dildo", "Vibrator", "Vibrator", "Flowers", "Cane", "Grenade", "Tear gas", "Molotov", "Vehicle gun", "Vehicle gun", "Unknown", "Colt 45", "Silenced pistol", "Deagle", "Shotgun", "Sawn-off shotgun", "Combat shotgun", "Mac-10", "MP5", "AK-47", "M4", "Tec-9", "Cuntgun", "Sniper", "Rocket launcher", "Heat seeking RPG", "Flamethrower", "Minigun", "Satchel", "Detonator", "Spraycan", "Fire extinguisher","Camera", "Night vision goggles", "Infrared goggles", "Parachute", "Fake pistol", "Pistol whip", "Vehicle", "Helicopter blades", "Explosion", "Car parking", "Drowning", "Collisionh", "Splat", "Unknown" }; new Text3D:playerLabels[MAX_PLAYERS][MAX_PLAYERS]; new LabelMode:playerLabelMode[MAX_PLAYERS]; new playerLabelTargetID[MAX_PLAYERS]; new playerData[MAX_PLAYERS][E_PLAYER_DATA]; GetLabelString(playerid, targetid, dest[], maxlength = sizeof(dest)) { new Float:distance = GetPlayerDistanceFromPoint(playerid, playerData[targetid][PLAYER_POS][0], playerData[targetid][PLAYER_POS][1], playerData[targetid][PLAYER_POS][2]); format(dest, maxlength, "[id: %i, health: %0.2f, armour: %0.2f, ping: %i]\n\ skin: %i, money: $%i, score: %i\n\ distance: %0.2f\n\ weapon: %s, ammo: %i\n\ interior: %i, world: %i\n\ pos: %0.4f, %0.4f, %0.4f, %0.4f", targetid, playerData[targetid][PLAYER_HEALTH], playerData[targetid][PLAYER_ARMOUR], playerData[targetid][PLAYER_PING], playerData[targetid][PLAYER_SKIN], playerData[targetid][PLAYER_MONEY], playerData[targetid][PLAYER_SCORE], distance, WEAPON_NAMES[playerData[targetid][PLAYER_WEAPON]], playerData[targetid][PLAYER_AMMO], playerData[targetid][PLAYER_INTERIOR], playerData[targetid][PLAYER_VIRTUAL_WORLD], playerData[targetid][PLAYER_POS][0], playerData[targetid][PLAYER_POS][1], playerData[targetid][PLAYER_POS][2], playerData[targetid][PLAYER_ANGLE] ); return 1; } CreatePlayerLabel(playerid, targetid) { new string[MAX_LABEL_STRING]; GetLabelString(playerid, targetid, string); playerLabels[playerid][targetid] = CreateDynamic3DTextLabel(string, LABEL_COLOR, 0.0, 0.0, 0.0, LABEL_DRAW_DISTANCE, targetid, _, _, _, _, playerid, LABEL_STREAM_DISTANCE); return 1; } DestroyPlayerLabel(playerid) { foreach (new i : Player) { DestroyDynamic3DTextLabel(playerLabels[i][playerid]); if (playerLabelMode[i] == MODE_PLAYER && playerLabelTargetID[i] == playerid) { playerLabelMode[i] = MODE_DISABLED; SendClientMessage(i, 0xFFFFFFFF, "SERVER: Player labels disabled"); } } return 1; } UpdatePlayerLabel(playerid, targetid) { new string[MAX_LABEL_STRING]; if (playerLabelMode[playerid] == MODE_DISABLED) return 0; if (playerLabelMode[playerid] == MODE_PLAYER && playerLabelTargetID[playerid] != targetid) return 0; if (!IsPlayerInRangeOfPoint(playerid, LABEL_STREAM_DISTANCE, playerData[targetid][PLAYER_POS][0], playerData[targetid][PLAYER_POS][1], playerData[targetid][PLAYER_POS][2])) return 0; GetLabelString(playerid, targetid, string); UpdateDynamic3DTextLabelText(playerLabels[playerid][targetid], LABEL_COLOR, string); return 1; } public OnPlayerConnect(playerid) { for (new i = 0; i < MAX_PLAYERS; i++) { playerLabels[playerid][i] = Text3D:-1; } playerLabelMode[playerid] = MODE_DISABLED; playerLabelTargetID[playerid] = INVALID_PLAYER_ID; return 1; } public OnPlayerDisconnect(playerid, reason) { foreach (new i : Player) { DestroyDynamic3DTextLabel(playerLabels[i][playerid]); if (playerLabelMode[i] == MODE_PLAYER && playerLabelTargetID[i] == playerid) { playerLabelMode[i] = MODE_DISABLED; SendClientMessage(i, 0xFFFFFFFF, "SERVER: Player labels disabled"); } } return 1; } public OnPlayerSpawn(playerid) { foreach (new i : Player) { if (i != playerid) { CreatePlayerLabel(i, playerid); } } return 1; } public OnPlayerDeath(playerid, killerid, reason) { DestroyPlayerLabel(playerid); return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { playerData[playerid][PLAYER_INTERIOR] = newinteriorid; foreach (new i : Player) { if (i != playerid) { UpdatePlayerLabel(i, playerid); } } return 1; } public OnPlayerUpdate(playerid) { new worldid = GetPlayerVirtualWorld(playerid); if (worldid != playerData[playerid][PLAYER_VIRTUAL_WORLD]) { playerData[playerid][PLAYER_VIRTUAL_WORLD] = worldid; goto Update; } new skinid = GetPlayerSkin(playerid); if (skinid != playerData[playerid][PLAYER_SKIN]) { playerData[playerid][PLAYER_SKIN] = skinid; goto Update; } new score = GetPlayerScore(playerid); if (score != playerData[playerid][PLAYER_SCORE]) { playerData[playerid][PLAYER_SCORE] = score; goto Update; } new money = GetPlayerMoney(playerid); if (money != playerData[playerid][PLAYER_MONEY]) { playerData[playerid][PLAYER_MONEY] = money; goto Update; } new weapon = GetPlayerWeapon(playerid); if (weapon != playerData[playerid][PLAYER_WEAPON]) { playerData[playerid][PLAYER_WEAPON] = weapon; playerData[playerid][PLAYER_AMMO] = GetPlayerAmmo(playerid); goto Update; } new ammo = GetPlayerAmmo(playerid); if (ammo != playerData[playerid][PLAYER_AMMO]) { playerData[playerid][PLAYER_AMMO] = ammo; goto Update; } new Float:health; GetPlayerHealth(playerid, health); if (health != playerData[playerid][PLAYER_HEALTH]) { playerData[playerid][PLAYER_HEALTH] = health; goto Update; } new Float:armour; GetPlayerArmour(playerid, armour); if (armour != playerData[playerid][PLAYER_ARMOUR]) { playerData[playerid][PLAYER_ARMOUR] = armour; goto Update; } new Float:angle; GetPlayerFacingAngle(playerid, angle); if (angle != playerData[playerid][PLAYER_ANGLE]) { playerData[playerid][PLAYER_ANGLE] = angle; goto Update; } new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if (x != playerData[playerid][PLAYER_POS][0] || y != playerData[playerid][PLAYER_POS][1] || z != playerData[playerid][PLAYER_POS][2]) { playerData[playerid][PLAYER_POS][0] = x; playerData[playerid][PLAYER_POS][1] = y; playerData[playerid][PLAYER_POS][2] = z; goto Update; } new ping = GetPlayerPing(playerid); if (ping != playerData[playerid][PLAYER_PING]) { playerData[playerid][PLAYER_PING] = ping; goto Update; } Update: foreach (new i : Player) { if (i != playerid) { UpdatePlayerLabel(i, playerid); } } return 1; } CMD:pl(playerid, params[]) { if (playerLabelMode[playerid] != MODE_DISABLED) { playerLabelMode[playerid] = MODE_DISABLED; foreach (new i : Player) { DestroyDynamic3DTextLabel(playerLabels[playerid][i]); playerLabels[playerid][i] = Text3D:-1; } return SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Player labels disabled"); } new targetid; if (sscanf(params, "u", targetid)) { targetid = INVALID_PLAYER_ID; } else { if (!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xAAAAAAFF, "SERVER: Player is not connected."); if (targetid == playerid) return SendClientMessage(playerid, 0xAAAAAAFF, "SERVER: The player entered is yourself!"); } if (targetid == INVALID_PLAYER_ID) { playerLabelMode[playerid] = MODE_GLOBAL; playerLabelTargetID[playerid] = INVALID_PLAYER_ID; foreach (new i : Player) { if (i != playerid) { CreatePlayerLabel(playerid, i); } } } else { playerLabelMode[playerid] = MODE_PLAYER; playerLabelTargetID[playerid] = targetid; CreatePlayerLabel(playerid, targetid); } SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Player labels enabled"); return 1; }
PAWN
4
nathanramli/SA-MP
filterscripts/plabels.pwn
[ "Apache-2.0" ]
# ; $Id$ ; ; (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands. ; ; This product is part of the Amsterdam Compiler Kit. ; ; Permission to use, sell, duplicate or disclose this software must be ; obtained in writing. Requests for such permissions may be sent to ; ; Dr. Andrew S. Tanenbaum ; Wiskundig Seminarium ; Vrije Universiteit ; Postbox 7161 ; 1007 MC Amsterdam ; The Netherlands ; ; mes 2,EM_WSIZE,EM_PSIZE #define ARG1 0 #define ARG2 EM_DSIZE #define IRES 2*EM_DSIZE ; _fif is called with three parameters: ; - address of integer part result (IRES) ; - float two (ARG2) ; - float one (ARG1) ; and returns an EM_DSIZE-byte floating point number exp $_fif pro $_fif,0 lal 0 loi 2*EM_DSIZE fif EM_DSIZE lal IRES loi EM_PSIZE sti EM_DSIZE ret EM_DSIZE end ?
Eiffel
3
wyan/ack
lang/pc/libpc/fif.e
[ "BSD-3-Clause" ]
CLASS ScriptApiType END CLASS PUBLIC FUNCTION Distance(X AS REAL8,Y AS REAL8) AS REAL8 RETURN Math.Sqrt(X^2+Y^2)
xBase
3
JohanNel/XSharpPublic
ScriptSamples/XIDE/2-Arguments-Helper.prg
[ "Apache-2.0" ]
/* * Copyright 2006-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ /* * This table MUST be kept in ascending order of the NID each method * represents (corresponding to the pkey_id field) as OBJ_bsearch * is used to search it. */ static const EVP_PKEY_ASN1_METHOD *standard_methods[] = { &ossl_rsa_asn1_meths[0], &ossl_rsa_asn1_meths[1], #ifndef OPENSSL_NO_DH &ossl_dh_asn1_meth, #endif #ifndef OPENSSL_NO_DSA &ossl_dsa_asn1_meths[0], &ossl_dsa_asn1_meths[1], &ossl_dsa_asn1_meths[2], &ossl_dsa_asn1_meths[3], &ossl_dsa_asn1_meths[4], #endif #ifndef OPENSSL_NO_EC &ossl_eckey_asn1_meth, #endif &ossl_rsa_pss_asn1_meth, #ifndef OPENSSL_NO_DH &ossl_dhx_asn1_meth, #endif #ifndef OPENSSL_NO_EC &ossl_ecx25519_asn1_meth, &ossl_ecx448_asn1_meth, #endif #ifndef OPENSSL_NO_EC &ossl_ed25519_asn1_meth, &ossl_ed448_asn1_meth, #endif #ifndef OPENSSL_NO_SM2 &ossl_sm2_asn1_meth, #endif };
C
3
pmesnier/openssl
crypto/asn1/standard_methods.h
[ "Apache-2.0" ]
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/lite/kernels/internal/optimized/cpu_check.h" #if defined __linux__ && defined __aarch64__ #include <sys/auxv.h> #endif namespace tflite { namespace { // The implementation of dotprod detection is copied from ruy's internal // function DetectDotprod(). // At the moment it's only implemented on Linux ARM64. Consider syncing again // with ruy in the future to share improvements. #if defined __linux__ && defined __aarch64__ bool DetectDotprodByLinuxAuxvMethod() { // This is the value of HWCAP_ASIMDDP in sufficiently recent Linux headers, // however we need to support building against older headers for the time // being. const int kLocalHwcapAsimddp = 1 << 20; return getauxval(AT_HWCAP) & kLocalHwcapAsimddp; } #endif } // namespace bool DetectArmNeonDotprod() { #if defined __linux__ && defined __aarch64__ return DetectDotprodByLinuxAuxvMethod(); #endif return false; } } // namespace tflite
C++
4
yage99/tensorflow
tensorflow/lite/kernels/internal/optimized/cpu_check.cc
[ "Apache-2.0" ]
factorial(num) New ii,result If num<0 Quit "Negative number" If num["." Quit "Not an integer" Set result=1 For ii=1:1:num Set result=result*ii Quit result Write $$factorial(0) ; 1 Write $$factorial(1) ; 1 Write $$factorial(2) ; 2 Write $$factorial(3) ; 6 Write $$factorial(10) ; 3628800 Write $$factorial(-6) ; Negative number Write $$factorial(3.7) ; Not an integer
M
3
LaudateCorpus1/RosettaCodeData
Task/Factorial/MUMPS/factorial-1.mumps
[ "Info-ZIP" ]
FORMAT: 1A # Message API ## GET /message + Response 200 (text/plain; charset=utf-8) Hello World!
API Blueprint
2
tomoyamachi/dredd
packages/dredd/test/fixtures/multifile/message.apib
[ "MIT" ]
<script> console.log(JSON.stringify({ numberOfEntries: window.localStorage.length, testValue: window.localStorage.getItem('test') })); </script>
HTML
3
lingxiao-Zhu/electron
spec/fixtures/pages/partition/one.html
[ "MIT" ]
--TEST-- str_pad() function: usage variations - Non printable chars --INI-- precision=14 --FILE-- <?php // Split from str_pad for NUL Bytes // 7-bit ASCII $string = chr(0).chr(255).chr(128).chr(234).chr(143); /* different pad_lengths */ $pad_lengths = [ -PHP_INT_MAX, // huge negative value -1, // negative value 0, // pad_length < sizeof(input_string) 9, // pad_length <= sizeof(input_string) 10, // pad_length > sizeof(input_string) 16, // pad_length > sizeof(input_string) ]; $pad_string = "="; /*loop through to use each variant of $pad_length on each element of $input_strings array */ foreach ($pad_lengths as $pad_length ) { // default pad_string & pad_type var_dump( bin2hex( str_pad($string, $pad_length) ) ); // default pad_type var_dump( bin2hex( str_pad($string, $pad_length, $pad_string) ) ); var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_LEFT) ) ); var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_RIGHT) ) ); var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_BOTH) ) ); } ?> DONE --EXPECT-- string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(10) "00ff80ea8f" string(18) "00ff80ea8f20202020" string(18) "00ff80ea8f3d3d3d3d" string(18) "3d3d3d3d00ff80ea8f" string(18) "00ff80ea8f3d3d3d3d" string(18) "3d3d00ff80ea8f3d3d" string(20) "00ff80ea8f2020202020" string(20) "00ff80ea8f3d3d3d3d3d" string(20) "3d3d3d3d3d00ff80ea8f" string(20) "00ff80ea8f3d3d3d3d3d" string(20) "3d3d00ff80ea8f3d3d3d" string(32) "00ff80ea8f2020202020202020202020" string(32) "00ff80ea8f3d3d3d3d3d3d3d3d3d3d3d" string(32) "3d3d3d3d3d3d3d3d3d3d3d00ff80ea8f" string(32) "00ff80ea8f3d3d3d3d3d3d3d3d3d3d3d" string(32) "3d3d3d3d3d00ff80ea8f3d3d3d3d3d3d" DONE
PHP
4
thiagooak/php-src
ext/standard/tests/strings/str_pad_variation2.phpt
[ "PHP-3.01" ]
#!/bin/sh jar -cvf cmd.war warfiles/*
Shell
3
5tr1x/SecLists
Web-Shells/laudanum-0.8/jsp/makewar.sh
[ "MIT" ]
/** Copyright 2015 Acacia Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package org.acacia.resilience; import x10.compiler.Native; import x10.util.ArrayList; import x10.util.HashMap; import x10.util.Set; import x10.util.HashSet; import x10.util.StringBuilder; import x10.regionarray.Array; import x10.util.Map.Entry; import org.acacia.util.Utils; import org.acacia.util.Conts; import org.acacia.util.PlaceToNodeMapper; import org.acacia.server.AcaciaServer; public class FaultToleranceScheduler { /** * Default constructor */ public def this() { } /** * This method partitions the graph with replications. */ public static def mapReplicationstoPlaces(): HashMap[Int, String]{ //val converter:MetisPartitioner = new MetisPartitioner(); var resilienceLevel:Int = Int.parse(Utils.call_getAcaciaProperty("org.acacia.resilience.resilienceLevel")); if(resilienceLevel != 0n) { val nPlaces:Int = Int.parse(Utils.getAcaciaProperty("org.acacia.server.nplaces")); Console.OUT.println(nPlaces+"wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww"); val itr:Iterator[Place] = Place.places().iterator(); val placeToHostMap:HashMap[Long, String] = new HashMap[Long, String](); //We don't need hostPlaceCounter, it can be generated by using the Arraylist length in hostToPlaceMap. But used it for temporary manner. val hostPlaceCounter:HashMap[String, Int] = new HashMap[String, int](); //counterForHoasts is for used in the case where nHosts>1 val counterForHoasts:HashMap[String, Int] = new HashMap[String, int](); val counterForPlacesByHost:HashMap[String, HashMap[Int,Int]] = new HashMap[String, HashMap[Int,Int]](); //hostToPlaceMap maps list of places to the corresponding host val hostToPlaceMap:HashMap[String, ArrayList[Int]] = new HashMap[String, ArrayList[Int]](); val result:HashMap[Int, String] = new HashMap[Int, String](); //The three methods to get the nHost - HostLists val hostLst:Rail[String] = org.acacia.util.Utils.getPrivateHostList(); val hostIDMap:HashMap[String, String] = AcaciaServer.getLiveHostIDList(); //var hostList:HashSet[String] = new HashSet[String](); while(itr.hasNext()){ val p:Place = itr.next(); Console.OUT.println("resilience p.id " + p.id); val hostName:String = PlaceToNodeMapper.getHost(p.id); if(hostPlaceCounter.containsKey(hostName)) { var PlaceConterMap:HashMap[Int,Int] = counterForPlacesByHost.get(hostName); PlaceConterMap.put(p.id as Int,0n); counterForPlacesByHost.put(hostName,PlaceConterMap); hostPlaceCounter.put(hostName,hostPlaceCounter.get(hostName) + 1n); var temp:ArrayList[Int] = hostToPlaceMap.get(hostName); temp.add(p.id as Int); hostToPlaceMap.put(hostName, temp); } else { hostPlaceCounter.put(hostName,1n); counterForHoasts.put(hostName,0n); var PlaceConterMap:HashMap[Int,Int] = new HashMap[Int,Int](); //usedHostsCounter is the counter of hosts that exceeded the reference number. PlaceConterMap.put(-1n,0n); //ReferenceForHosts is the reference number for the counter values. PlaceConterMap.put(-2n,0n); //nextLevel is a counter of Hosts that exceeded the reference number+1. Only used in one case PlaceConterMap.put(-3n,0n); PlaceConterMap.put(p.id as Int,0n); counterForPlacesByHost.put(hostName,PlaceConterMap); var temp:ArrayList[Int] = new ArrayList[Int](); temp.add(p.id as Int); hostToPlaceMap.put(hostName, temp); } //hostList.add(hostName); Console.OUT.println("resilience p.id " + p.id + " hostName : " + hostName); placeToHostMap.put(p.id, hostName); Console.OUT.println("placeToHostMap entry for place" + p.id); } Console.OUT.println("placeToHostMap Created"); //The three methods to get the nHost - nHost val hostLstLen:Int = hostLst.size as Int; val hostIDMapLen:Int = hostIDMap.size() as Int; val hostListLen:Int = hostPlaceCounter.size() as Int; val nHosts:Int = hostLstLen; Console.OUT.println("placeToHostMap.entries() : " + placeToHostMap.entries().size()); var itr2:Iterator[x10.util.Map.Entry[Long, String]] = placeToHostMap.entries().iterator(); if(resilienceLevel >= nPlaces - 1n){ while(itr2.hasNext()){ var frequency:Int=nPlaces; val itemPlace:x10.util.Map.Entry[Long, String] = itr2.next(); val pid:Int=itemPlace.getKey() as int; var resultString:String = ""; if(itemPlace==null){ break; } for (var k:Int = 0n; k < nPlaces; k++){ if(pid != k){ resultString = resultString + k; if(k<nPlaces-1) { resultString = resultString + ","; } } } resultString = resultString + "$"; result.put(pid,resultString); Console.OUT.println("Replications in all the places"); } return result; } if(nHosts==1n) { val counter = new Rail[Int](nPlaces+1); //i is the reference number for the counter values. //counter(nPlaces) is the counter of places that exceeded the reference number. var i:Int=0n; //nextLevel is a counter of places that exceeded the reference number+1. Only used in one case var nextLevel:Int=0n; while(itr2.hasNext()){ val itemPlace:x10.util.Map.Entry[Long, String] = itr2.next(); val pid:Int=itemPlace.getKey() as int; var resultString:String = ""; if(itemPlace==null){ break; } for (var k:Int = 0n; k < resilienceLevel; k++){ var completed:Boolean = false; for (var j:Int = 0n; j < nPlaces; j++){ if(pid != j){ if(counter(j) == i) { counter(j)++; resultString = resultString + j; counter(nPlaces)++; completed = true; if(counter(nPlaces) == nPlaces){ counter(nPlaces) = nextLevel; i++; nextLevel = 0n; } break; } } } if(completed == false){ for (var j:Int = 0n; j < nPlaces; j++){ if(pid != j){ if(counter(j) == i+1n) { counter(j)++; resultString = resultString + j; nextLevel++; completed = true; break; } } } } if(k<resilienceLevel-1n) { resultString = resultString + ","; } } resultString = resultString + "$"; result.put(pid,resultString); Console.OUT.println("Only One Host - Replications " + i+1 + " in" + counter(nPlaces)+ "places. Replications "+i+2+ "in "+nextLevel+" places. All other have "+i+"Replications."); } return result; } if(nHosts>1) { //if(nHosts <= resilienceLevel) //{ //counterForHoasts created in the begining will be used as the counter //usedHostsCounter is the counter of hosts that exceeded the reference number. var usedHostsCounter:Int=0n; //ReferenceForHosts is the reference number for the counter values. var referenceForHosts:Int=0n; //nextLevel is a counter of Hosts that exceeded the reference number+1. Only used in one case var nextLevelForHosts:Int=0n; while(itr2.hasNext()){ val itemPlace:x10.util.Map.Entry[Long, String] = itr2.next(); val pid:Int=itemPlace.getKey() as int; var resultString:String = ""; if(itemPlace==null){ break; } val hostName:String = itemPlace.getValue(); //var hostItr:Iterator[x10.util.Map.Entry[String, HashMap[Int,Int]]] = counterForPlacesByHost.entries().iterator(); var hostItr:Iterator[x10.util.Map.Entry[String, ArrayList[Int]]] = hostToPlaceMap.entries().iterator(); while(hostItr.hasNext()) { val itemHost:x10.util.Map.Entry[String, ArrayList[Int]] = hostItr.next(); val hostID:String = itemHost.getKey(); var placeList:ArrayList[Int] = itemHost.getValue(); // val itemHost:x10.util.Map.Entry[String, HashMap[Int,Int]] = hostItr.next(); // val hostID:String = itemHost.getKey(); // var counterListByPlaces:HashMap[Int,Int] = itemHost.getValue(); var counterListByPlaces:HashMap[Int,Int] = counterForPlacesByHost.get(hostID); var i:Int = counterListByPlaces.get(-2n); var completed:Boolean = false; var placeItr:Iterator[Int] = placeList.iterator(); while(placeItr.hasNext()){ var j:Int = placeItr.next(); if(pid != j){ if(counterListByPlaces.get(j) == i) { counterListByPlaces.put(j,counterListByPlaces.get(j)+1n); resultString = resultString + j; counterListByPlaces.put(-1n,counterListByPlaces.get(-1n)+1n); completed = true; if(counterListByPlaces.get(-1n) == placeList.size() as Int){ counterListByPlaces.put(-1n,counterListByPlaces.get(-3n)); i++; counterListByPlaces.put(-2n,i); counterListByPlaces.put(-3n,0n); } break; } } } if(completed == false){ var placeItr2:Iterator[Int] = placeList.iterator(); while(placeItr2.hasNext()){ var j:Int = placeItr2.next(); if(pid != j){ if(counterListByPlaces.get(j) == i+1n) { counterListByPlaces.put(j,counterListByPlaces.get(j)+1n); resultString = resultString + j; counterListByPlaces.put(-3n,counterListByPlaces.get(-3n)+1n); completed = true; break; } } } } if(hostItr.hasNext()) { resultString = resultString + ","; } } resultString = resultString + "$"; result.put(pid,resultString); //Console.OUT.println("More than One Host - Replications " + i+1 + " in" + counter(nPlaces)+ "places. Replications "+i+2+ "in "+nextLevel+" places. All other have "+i+"Replications."); } //} // if(nHosts > resilienceLevel) // { // // } // if(nHosts < resilienceLevel) // { // //Will be implemented in future. For now use one replication for a host. // } } return result; } return null; } }
X10
5
mdherath/Acacia
src/org/acacia/resilience/FaultToleranceScheduler.x10
[ "Apache-2.0" ]
#pragma TextEncoding="UTF-8" #pragma rtGlobals=3 #pragma ModuleName=SIDAMDisplay #include "SIDAM_InfoBar" #include "SIDAM_Utilities_Image" #include "SIDAM_Utilities_WaveDf" #ifndef SIDAMshowProc #pragma hide = 1 #endif //@ // Show a trace of 1D wave, an image of 2D wave, and a layer of 3D wave. // // ## Parameters // w : wave // A numeric wave, or a refrence wave containing references to numeric waves. // traces : int {0, 1, or 2}, default 0 // * 0: Normal // * 1: Show a 2D waves as traces. // 1st dimension is `x`, and the number of traces is `DimSize(w,1)`. // * 2: Append a 2D wave (2,n) as a trace to a graph. // The dimension labels (`%x` and `%y`, or `%p` and `%q`) must // be appropriately given. Then this works as // `AppendToGraph w[%y][] vs w[%x][]`, or // `AppendToGraph w[%q][] vs w[%p][]`. // history : int {0 or !0}, default 0 // Set !0 to print this command in the history. // // ## Returns // str // The name of window. //@ Function/S SIDAMDisplay(Wave w, [int traces, int history]) STRUCT paramStruct s Wave/Z s.w = w s.traces = ParamIsDefault(traces) ? 0 : traces s.history = ParamIsDefault(history) ? 0 : history if (validate(s)) printf "%sSIDAMDisplay gave error: %s\r", PRESTR_CAUTION, s.errMsg return "" endif switch (WaveType(s.w, 1)) case 1: // numeric return displayNumericWave(s.w, s.traces, s.history) case 4: // wave reference return displayWaveRefWave(s.w, s.history) endswitch End Static Function validate(STRUCT paramStruct &s) if (WaveType(s.w, 1) == 4) // wave reference // Make sure if all references are valid Wave/WAVE wrefw = s.w Make/B/U/N=(numpnts(s.w))/FREE tw = validateWave(wrefw[p],s) if (WaveMax(tw)) s.errMsg = "an invalid wave(s) is contained in the reference wave." return 1 endif elseif (validateWave(s.w, s)) return 1 endif if (s.traces < 0 || s.traces > 2) s.errMsg = "traces is 0, 1, or 2." return 1 endif if (s.traces && !(WaveType(s.w,1)==1 && WaveDims(s.w)==2)) s.errMsg = "the traces option is valid for 2D numeric waves." return 1 endif s.history = s.history ? 1 : 0 return 0 End Static Function validateWave(Wave/Z w, STRUCT paramStruct &s) if (!WaveExists(w)) s.errMsg = "wave not found." return 1 elseif (WaveType(w,1) != 1) // null, text, data folder s.errMsg = "the wave must be a numeric wave or a reference wave." return 1 endif // the following for numeric if (WaveDims(w) > 3) s.errMsg = "the dimension of wave must be less than 4." return 1 elseif (WaveType(w,2) == 2) s.errMsg = "a numeric free wave is not accepted." return 1 elseif (s.traces==2 && !canBeDisplayedAsXYTrace(w)) s.errMsg = "the wave can not be displayed as xy-trace." return 1 endif return 0 End Static Function canBeDisplayedAsXYTrace(Wave/Z w) if (WaveDims(w) != 2 || !strlen(WinName(0,1))) return 0 endif int hasP = FindDimLabel(w,0,"p")!=-2, hasQ = FindDimLabel(w,0,"q")!=-2 int hasX = FindDimLabel(w,0,"x")!=-2, hasY = FindDimLabel(w,0,"y")!=-2 if (hasP && hasQ) return 1 elseif (hasX && hasY) return 2 else return 0 endif End Static Structure paramStruct Wave w String errMsg uchar traces uchar history EndStructure //------------------------------------------------------------- // Menu functions //------------------------------------------------------------- Static Function/S menu(int mode, String shortCutStr) int isBrowserShown = strlen(GetBrowserSelection(-1)) int n = SIDAMnumberOfSelectedWaves() String prefix = "" if (!isBrowserShown || !n) prefix = "(" elseif (mode==1 && (n!=1 || WaveDims($GetBrowserSelection(0))!=2)) prefix = "(" elseif (mode==2 && !canBeDisplayedAsXYTrace($GetBrowserSelection(0))) prefix = "(" endif switch (mode) case 0: return prefix + "Display Selected Wave" + SelectString(n>1, "", "s") \ + shortCutStr case 1: return prefix + "Display Selected Wave as 1d-traces" + shortCutStr case 2: return prefix + "Append Selected Wave as xy-trace" + shortCutStr endswitch End Static Function menuDo() Make/N=(SIDAMnumberOfSelectedWaves())/WAVE/FREE ww=$GetBrowserSelection(p) SIDAMDisplay(ww,history=1) End //------------------------------------------------------------- // For numeric wave //------------------------------------------------------------- Static Function/S displayNumericWave(Wave w, int traces, int history) if (history) echo(w,traces) endif if (WaveDims(w)==1) Display/K=1 w SIDAMInfoBar(S_name) return S_name elseif (WaveDims(w)==2 && traces==1) return displayNumericWaveTrace(w) elseif (canBeDisplayedAsXYTrace(w) && traces==2) return displayNumericWaveTraceXY(w) else // 2D (trace=0) or 3D return displayNumericWaveLayer(w) endif End Static Function/S displayNumericWaveLayer(Wave w) Display/K=1/HIDE=1 as NameOfWave(w) String pnlName = S_name AppendImage/W=$pnlName/G=1 w ModifyImage/W=$pnlName $PossiblyQuoteName(NameOfWave(w)) ctabAutoscale=3 ModifyGraph/W=$pnlName standoff=0,tick=3,noLabel=2,axThick=0,margin=1 String cmdStr sprintf cmdStr, "ModifyGraph/W=%s width=%s, height=%s"\ , PossiblyQuoteName(pnlName), SIDAM_WINDOW_WIDTH, SIDAM_WINDOW_HEIGHT Execute/Q cmdStr SIDAMInfoBar(pnlName) SetWindow $pnlName hide=0 return pnlName End Static Function/S displayNumericWaveTrace(Wave w) int i Display/K=1 w[][0] for (i = 1; i < DimSize(w,1); i++) AppendToGraph w[][i]/TN=$(NameOfWave(w)+"#"+num2istr(i)) endfor SIDAMInfoBar(S_name) return S_name End Static Function/S displayNumericWaveTraceXY(Wave w) String grfName = WinName(0,1) int mode = canBeDisplayedAsXYTrace(w) if (mode == 1) AppendToGraph/W=$grfName w[%q][] vs w[%p][] Wave/Z iw = SIDAMImageWaveRef(grfName) if (WaveExists(iw)) ModifyGraph/W=$grfName offset($NameOfWave(w))={DimOffset(iw,0),DimOffset(iw,1)} ModifyGraph/W=$grfName muloffset($NameOfWave(w))={DimDelta(iw,0),DimDelta(iw,1)} endif elseif (mode == 2) AppendToGraph/W=$grfName w[%y][] vs w[%x][] endif int hasmarker = FindDimLabel(w,0,"marker")!=-2 if (hasmarker) ModifyGraph/W=$grfName mode($NameOfWave(w))=3,zmrkNum($NameOfWave(w))={w[%marker][*]} endif return grfName End //------------------------------------------------------------- // For wave reference wave //------------------------------------------------------------- Static Function/S displayWaveRefWave(Wave/WAVE w, int history) String winNameList = "" int i // Display 2D and 3D waves and remove their references from the input wave for (i = numpnts(w) - 1; i >= 0; i--) if (WaveDims(w[i]) == 1) continue endif winNameList += SIDAMDisplay(w[i],history=history) + ";" DeletePoints i, 1, w endfor if (!numpnts(w)) return winNameList endif // Display the remaining 1D waves Display/K=1 String grfName = S_name for (i = 0; i < numpnts(w); i++) AppendToGraph/W=$grfName w[i] endfor if (history) echo(w,0) endif SIDAMInfoBar(grfName) return winNameList + grfName End //------------------------------------------------------------- // History //------------------------------------------------------------- Static Function/S echo(Wave w, int traces) if (WaveType(w,1) == 1) // numeric if (traces) printf "%sSIDAMDisplay(%s,traces=%d)\r", PRESTR_CMD,GetWavesDataFolder(w,2),traces else printf "%sSIDAMDisplay(%s)\r", PRESTR_CMD,GetWavesDataFolder(w,2) endif elseif (WaveType(w,1) == 4) // reference Wave/WAVE ww = w int i, length String cmdStr = PRESTR_CMD+"AppendToGraph ", addStr printf "%sDisplay", PRESTR_CMD for (i = 0; i < numpnts(ww); i++) addStr = GetWavesDataFolder(ww[i],4) if (i==0 || length+strlen(addStr)+1 >= MAXCMDLEN) // +1 for "," printf "\r%s%s", cmdStr, addStr length = strlen(cmdStr)+strlen(addStr) else printf ",%s", addStr length += strlen(addStr)+1 endif endfor printf "\r" endif End
IGOR Pro
5
yuksk/SIDAM
src/SIDAM/func/SIDAM_Display.ipf
[ "MIT" ]
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module PostgREST.DbStructure.Table ( Column(..) , Table(..) , TablesMap ) where import qualified Data.Aeson as JSON import qualified Data.HashMap.Strict as M import PostgREST.DbStructure.Identifiers (FieldName, QualifiedIdentifier (..), Schema, TableName) import Protolude data Table = Table { tableSchema :: Schema , tableName :: TableName , tableDescription :: Maybe Text -- TODO Find a better way to separate tables and views , tableIsView :: Bool -- The following fields identify what can be done on the table/view, they're not related to the privileges granted to it , tableInsertable :: Bool , tableUpdatable :: Bool , tableDeletable :: Bool , tablePKCols :: [FieldName] , tableColumns :: [Column] } deriving (Show, Ord, Generic, JSON.ToJSON) instance Eq Table where Table{tableSchema=s1,tableName=n1} == Table{tableSchema=s2,tableName=n2} = s1 == s2 && n1 == n2 data Column = Column { colName :: FieldName , colDescription :: Maybe Text , colNullable :: Bool , colType :: Text , colMaxLen :: Maybe Int32 , colDefault :: Maybe Text , colEnum :: [Text] } deriving (Eq, Show, Ord, Generic, JSON.ToJSON) type TablesMap = M.HashMap QualifiedIdentifier Table
Haskell
4
fjf2002/postgrest
src/PostgREST/DbStructure/Table.hs
[ "MIT" ]
#version 3.6; #include "colors.inc" global_settings { assumed_gamma 1.0 } background { color rgb <0.25, 0.25, 0.25> } camera { location <0.0, 0.5, -4.0> direction 1.5*z right x*image_width/image_height look_at <0.0, 0.0, 0.0> } light_source { <0, 0, 0> color rgb <1, 1, 1> translate <-5, 5, -5> } light_source { <0, 0, 0> color rgb <0.25, 0.25, 0.25> translate <6, -6, -6> } #declare a = 0; #while (a < 360) box { <-0.5, -0.5, -0.5> <0.5, 0.5, 0.5> texture { pigment { color Red } finish { specular 0.6 } normal { agate 0.25 scale 1/2 } } rotate a } #declare a = a + 45; #end
POV-Ray SDL
3
qeedquan/misc_utilities
gfx/povray/boxhedron.pov
[ "MIT" ]
"""Constants for the Image integration.""" DOMAIN = "image"
Python
1
tbarbette/core
homeassistant/components/image/const.py
[ "Apache-2.0" ]
"key1","A","row1" "key2","B","<p>row2</p>" "key3","C","row3" "key4","D","row4" "key5","E","row5" "key6","F","<a href="/url-example">link</a>"
CSV
0
Mu-L/Laravel-Excel
tests/Data/Disks/Local/csv-with-html-tags.csv
[ "MIT" ]
MM3M Printscape
Papyrus
0
richardlehane/testsf
cmd/sf/testdata/skeleton-suite/fmt/fmt-1275-signature-id-1651.psc
[ "Apache-2.0" ]
export { default } from '@mui/material/Alert'; export * from '@mui/material/Alert';
TypeScript
1
dany-freeman/material-ui
packages/mui-lab/src/SpeedDialAction/SpeedDialAction.d.ts
[ "MIT" ]
import ReactDOM from 'react-dom' import { BrowserRouter } from 'react-router-dom' import { App } from './App' ReactDOM.hydrate( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('app') )
JSX
3
laineus/vite
packages/playground/ssr-react/src/entry-client.jsx
[ "MIT" ]
const Builder = @import("std").build.Builder; pub fn build(b: *Builder) void { const target = .{ .cpu_arch = .x86_64, .os_tag = .windows, .abi = .msvc, }; const mode = b.standardReleaseOptions(); const obj = b.addObject("issue_5825", "main.zig"); obj.setTarget(target); obj.setBuildMode(mode); const exe = b.addExecutable("issue_5825", null); exe.subsystem = .Console; exe.linkSystemLibrary("kernel32"); exe.linkSystemLibrary("ntdll"); exe.setTarget(target); exe.setBuildMode(mode); exe.addObject(obj); const test_step = b.step("test", "Test the program"); test_step.dependOn(&exe.step); }
Zig
4
lukekras/zig
test/standalone/issue_5825/build.zig
[ "MIT" ]
karto and pose graph 1. good reference about pose graph [url](https://lucacarlone.mit.edu/datasets) 2. A practical introduction to pose-graph SLAM with ROS [url](http://sauravag.com/2017/07/an-practical-introduction-to-pose-graph-slam/)
RMarkdown
0
Cc19245/slambook_mylearn
pose_graph/readme.rmd
[ "MIT" ]
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "include/v8-isolate.h" #include "src/heap/heap.h" #include "testing/gtest/include/gtest/gtest.h" namespace v8 { TEST(ResourceConstraints, ConfigureDefaultsFromHeapSizeSmall) { const size_t KB = static_cast<size_t>(i::KB); const size_t MB = static_cast<size_t>(i::MB); const size_t pm = i::Heap::kPointerMultiplier; v8::ResourceConstraints constraints; constraints.ConfigureDefaultsFromHeapSize(1 * MB, 1 * MB); ASSERT_EQ(i::Heap::MinOldGenerationSize(), constraints.max_old_generation_size_in_bytes()); ASSERT_EQ(3 * 512 * pm * KB, constraints.max_young_generation_size_in_bytes()); ASSERT_EQ(0u, constraints.initial_old_generation_size_in_bytes()); ASSERT_EQ(0u, constraints.initial_young_generation_size_in_bytes()); } TEST(ResourceConstraints, ConfigureDefaultsFromHeapSizeLarge) { const size_t KB = static_cast<size_t>(i::KB); const size_t MB = static_cast<size_t>(i::MB); const size_t pm = i::Heap::kPointerMultiplier; v8::ResourceConstraints constraints; constraints.ConfigureDefaultsFromHeapSize(100u * MB, 3000u * MB); ASSERT_EQ(3000u * MB - 3 * 8192 * pm * KB, constraints.max_old_generation_size_in_bytes()); ASSERT_EQ(3 * 8192 * pm * KB, constraints.max_young_generation_size_in_bytes()); ASSERT_EQ(100u * MB - 3 * 512 * pm * KB, constraints.initial_old_generation_size_in_bytes()); ASSERT_EQ(3 * 512 * pm * KB, constraints.initial_young_generation_size_in_bytes()); } TEST(ResourceConstraints, ConfigureDefaults) { const size_t KB = static_cast<size_t>(i::KB); const size_t MB = static_cast<size_t>(i::MB); const size_t pm = i::Heap::kPointerMultiplier; const size_t hlm = i::Heap::kHeapLimitMultiplier; v8::ResourceConstraints constraints; constraints.ConfigureDefaults(2048u * MB, 0u); ASSERT_EQ(512u * hlm * MB, constraints.max_old_generation_size_in_bytes()); ASSERT_EQ(3 * 4096 * pm * KB, constraints.max_young_generation_size_in_bytes()); ASSERT_EQ(0u, constraints.initial_old_generation_size_in_bytes()); ASSERT_EQ(0u, constraints.initial_young_generation_size_in_bytes()); } } // namespace v8
C++
4
EXHades/v8
test/unittests/api/resource-constraints-unittest.cc
[ "BSD-3-Clause" ]
CLASS zcl_abapgit_repo_cs_migration DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. CLASS-METHODS run RAISING zcx_abapgit_exception zcx_abapgit_not_found. PROTECTED SECTION. PRIVATE SECTION. TYPES: ty_repo_ids TYPE SORTED TABLE OF zif_abapgit_persistence=>ty_repo-key WITH UNIQUE KEY table_line. CLASS-METHODS get_unconverted_repo_ids RETURNING VALUE(rt_repo_ids) TYPE ty_repo_ids. CLASS-METHODS clear_repo_metadata IMPORTING iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception zcx_abapgit_not_found. CLASS-METHODS convert_checksums IMPORTING iv_repo_key TYPE zif_abapgit_persistence=>ty_repo-key RAISING zcx_abapgit_exception zcx_abapgit_not_found. ENDCLASS. CLASS ZCL_ABAPGIT_REPO_CS_MIGRATION IMPLEMENTATION. METHOD clear_repo_metadata. DATA lo_repo_persistence TYPE REF TO zcl_abapgit_persistence_repo. lo_repo_persistence ?= zcl_abapgit_persist_factory=>get_repo( ). lo_repo_persistence->rewrite_repo_meta( iv_repo_key ). ENDMETHOD. METHOD convert_checksums. DATA lo_cs TYPE REF TO zcl_abapgit_repo_checksums. DATA lv_xml TYPE zif_abapgit_persistence=>ty_content-data_str. DATA: BEGIN OF ls_repo_extract, local_checksums TYPE zif_abapgit_persistence=>ty_local_checksum_tt, END OF ls_repo_extract. lv_xml = zcl_abapgit_persistence_db=>get_instance( )->read( iv_type = zcl_abapgit_persistence_db=>c_type_repo iv_value = iv_repo_key ). REPLACE ALL OCCURRENCES OF '<_--28C_TYPE_REPO_--29>' IN lv_xml WITH '<REPO>'. REPLACE ALL OCCURRENCES OF '</_--28C_TYPE_REPO_--29>' IN lv_xml WITH '</REPO>'. CALL TRANSFORMATION id OPTIONS value_handling = 'accept_data_loss' SOURCE XML lv_xml RESULT repo = ls_repo_extract. IF lines( ls_repo_extract-local_checksums ) = 0. RETURN. ENDIF. CREATE OBJECT lo_cs EXPORTING iv_repo_key = iv_repo_key. lo_cs->force_write( ls_repo_extract-local_checksums ). ENDMETHOD. METHOD get_unconverted_repo_ids. DATA lt_cs_ids TYPE ty_repo_ids. DATA lv_repo_id LIKE LINE OF rt_repo_ids. DATA lv_index TYPE i. SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname) INTO TABLE rt_repo_ids WHERE type = zcl_abapgit_persistence_db=>c_type_repo. SELECT value FROM (zcl_abapgit_persistence_db=>c_tabname) INTO TABLE lt_cs_ids WHERE type = zcl_abapgit_persistence_db=>c_type_repo_csum. LOOP AT rt_repo_ids INTO lv_repo_id. lv_index = sy-tabix. READ TABLE lt_cs_ids TRANSPORTING NO FIELDS WITH KEY table_line = lv_repo_id. IF sy-subrc = 0. " Already converted DELETE rt_repo_ids INDEX lv_index. ENDIF. ENDLOOP. ENDMETHOD. METHOD run. DATA lt_repo_ids TYPE ty_repo_ids. DATA lv_repo_id LIKE LINE OF lt_repo_ids. lt_repo_ids = get_unconverted_repo_ids( ). LOOP AT lt_repo_ids INTO lv_repo_id. convert_checksums( lv_repo_id ). clear_repo_metadata( lv_repo_id ). ENDLOOP. ENDMETHOD. ENDCLASS.
ABAP
4
gepparta/abapGit
src/repo/zcl_abapgit_repo_cs_migration.clas.abap
[ "MIT" ]
%% %unicode 12.1 %public %class UnicodeGraphemeClusterBreak_12_1 %type int %standalone %include ../../resources/common-unicode-all-enumerated-property-java %% <<EOF>> { printOutput(); return 1; } \p{GraphemeClusterBreak:CR} { setCurCharPropertyValue("GraphemeClusterBreak:CR"); } \p{GraphemeClusterBreak:Control} { setCurCharPropertyValue("GraphemeClusterBreak:Control"); } \p{GraphemeClusterBreak:Extend} { setCurCharPropertyValue("GraphemeClusterBreak:Extend"); } \p{GraphemeClusterBreak:L} { setCurCharPropertyValue("GraphemeClusterBreak:L"); } \p{GraphemeClusterBreak:LF} { setCurCharPropertyValue("GraphemeClusterBreak:LF"); } \p{GraphemeClusterBreak:LV} { setCurCharPropertyValue("GraphemeClusterBreak:LV"); } \p{GraphemeClusterBreak:LVT} { setCurCharPropertyValue("GraphemeClusterBreak:LVT"); } \p{GraphemeClusterBreak:Other} { setCurCharPropertyValue("GraphemeClusterBreak:Other"); } \p{GraphemeClusterBreak:Prepend} { setCurCharPropertyValue("GraphemeClusterBreak:Prepend"); } \p{GraphemeClusterBreak:Regional_Indicator} { setCurCharPropertyValue("GraphemeClusterBreak:Regional_Indicator"); } \p{GraphemeClusterBreak:SpacingMark} { setCurCharPropertyValue("GraphemeClusterBreak:SpacingMark"); } \p{GraphemeClusterBreak:T} { setCurCharPropertyValue("GraphemeClusterBreak:T"); } \p{GraphemeClusterBreak:V} { setCurCharPropertyValue("GraphemeClusterBreak:V"); } \p{GraphemeClusterBreak:ZWJ} { setCurCharPropertyValue("GraphemeClusterBreak:ZWJ"); }
JFlex
3
Mivik/jflex
testsuite/testcases/src/test/cases/unicode-grapheme-break/UnicodeGraphemeClusterBreak_12_1.flex
[ "BSD-3-Clause" ]
/* * Copyright (C) 2017-2019 Netronome Systems, Inc. All rights reserved. * * @file global.uc * @brief Global data plane initialization. * * SPDX-License-Identifier: BSD-2-Clause */ #include "license.h" /* Optimization and simplifying assumptions */ // - 4 CTX mode // - LM Index 0 is reserved for local use (code that does not call into other code) // - Single NBI // - Single PCIe /* Set MUPEMemConfig = 1 to inidcate to PE to use 1/2 of CTM for packets */ .init_csr xpb:CTMXpbMap.MuPacketReg.MUPEMemConfig 1 .num_contexts 4 #macro fatal_error(REASON) .begin .reg ctx .reg pc .reg sts .reg time local_csr_wr[MAILBOX_0, 0xfe] local_csr_rd[TIMESTAMP_LOW] immed[time, 0] local_csr_wr[MAILBOX_1, time] local_csr_rd[ACTIVE_CTX_STS] immed[sts, 0] alu[ctx, 7, AND, sts] local_csr_wr[MAILBOX_2, ctx] alu[pc, --, B, sts, <<7] alu[pc, --, B, pc, >>15] alu[pc, pc, +, 7] local_csr_wr[MAILBOX_3, pc] ctx_arb[kill] .end #endm // eBPF trampoline (must be first instruction) br[start#] br[ebpf_reentry#] start#: // enable NN receive config from CTM .reg ctxs local_csr_rd[CTX_ENABLES] immed[ctxs, 0] alu[ctxs, ctxs, AND~, 0x7] alu[ctxs, ctxs, OR, 0x2] alu[ctxs, ctxs, OR, 1, <<30] local_csr_wr[CTX_ENABLES, ctxs] local_csr_wr[PSEUDO_RANDOM_NUMBER, 42] // cache the context bits for T_INDEX .reg volatile t_idx_ctx local_csr_rd[ACTIVE_CTX_STS] immed[t_idx_ctx, 0] alu[t_idx_ctx, t_idx_ctx, AND, 7] .reg_addr t_idx_ctx 29 A alu[t_idx_ctx, --, B, t_idx_ctx, <<7]
UnrealScript
3
pcasconnetronome/nic-firmware
firmware/apps/nic/global.uc
[ "BSD-2-Clause" ]
//This file is part of "GZE - GroundZero Engine" //The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0). //For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code. package { import GZ.Base.Math.Math; import GZ.Gfx.Shape; import GZ.Gfx.Triangle; import GZ.Base.Pt; /** * @author Maeiky */ public class Pixel { use Triangle.uPoint3D; typedef tLS; public static function fTestShape(_oShape : Shape):Void { // _oShape.nTLx = 0 } //TODO private inline in .cpp public pure function fCopyPixelToDest(_aDest : CArray<Int32, 2>, _nPixelClip : UInt, _nX : Int, _nY : Int ):Void { //_aDest[_nY][_nX] = 0xFFFFFF var _nPixelFrame : UInt = 0; //var _nPixelClip : UInt = 0; var _nFrameAlpha : UInt = 0; var _nFrameRed : UInt = 0; var _nFrameBlue : UInt = 0; var _nFrameGreen : UInt = 0; var _nClipAlpha : UInt = 0; var _nClipRed : UInt = 0; var _nClipBlue : UInt = 0; var _nClipGreen : UInt = 0; /* if(_nGetY < nHeight && _nGetX < nWidth ){ _nPixelClip = aPixelArray[_nGetY][_nGetX]; }else { _nPixelClip = 0; }*/ _nPixelFrame = _aDest[_nY][_nX]; if(_nPixelFrame == 0){ //No pixel //_nPixelFrame = _nPixelClip; _aDest[_nY][_nX] = _nPixelClip; }else { //Test if it is with alpha _nFrameAlpha = ( _nPixelFrame >> 24 ) & 0xFF; if (_nFrameAlpha != 255) { /* _nClipAlpha = ( _nPixelClip >> 24 ) & 0xFF; if(_nClipAlpha != 0){ //Not transparent //Mix pixel _nFrameRed = ( _nPixelFrame >> 16 ) & 0xFF; _nFrameBlue = ( _nPixelFrame >> 8 ) & 0xFF; _nFrameGreen = _nPixelFrame & 0xFF; _nClipRed = ( _nPixelClip >> 16 ) & 0xFF; _nClipBlue = ( _nPixelClip >> 8 ) & 0xFF; _nClipGreen = _nPixelClip & 0xFF; _nClipRed = _nClipRed + (_nFrameRed - _nClipRed)* _nFrameAlpha / 255 _nClipBlue = _nClipBlue + (_nFrameBlue - _nClipBlue) * _nFrameAlpha / 255 _nClipGreen = _nClipGreen + (_nFrameGreen - _nClipGreen ) * _nFrameAlpha / 255 //_nFrameAlpha = _nFrameAlpha + (255-_nFrameAlpha) * _nClipAlpha / 255 ; _nClipAlpha = _nClipAlpha + (255 - _nClipAlpha) * _nFrameAlpha / 255 ; if (_nClipAlpha > 255) { _nClipAlpha = 255; } _aDest[_nY][_nX] = (_nClipAlpha << 24 ) | (_nClipRed << 16 ) | ( _nClipBlue << 8 ) | _nClipGreen } */ ////////// Mix pixel with destination ///////////// var _nRevAlphaDest :UInt = 255-(_nPixelFrame >> 24); if (_nRevAlphaDest != 255) { var _nResL : UInt = (_nPixelClip << 8) & 0xFF00FF00; var _nResH : UInt = _nPixelClip & 0xFF00FF00; var _nFramL : UInt = (_nPixelFrame & 0x00FF00FF) << 8; var _nFramH : UInt = _nPixelFrame & 0xFF00FF00 ; _nResL = (_nFramL + (_nResL >> 8) * _nRevAlphaDest) & 0xFF00FF00; _nResH = (_nFramH + (_nResH >> 8) * _nRevAlphaDest) & 0xFF00FF00; ///////////////////////////////////////////////// _aDest[_nY][_nX] = _nResH | (_nResL >> 8); } } } } public pure function fGetSmoothPixel(_aSource : CArray<Int32, 2>, _nLx : UInt32, _nTy : UInt32, _aDest : CArray<Int32, 2>, _nDestX : UInt32, _nDestY : UInt32, _nAlpha : UInt32, _nPcBrRed : UInt32, _nPcBrGreen: UInt32, _nPcBrBlue: UInt32, _nPcRevRed : UInt32, _nPcRevBlue: UInt32, _nPcRevGreen: UInt32, _nOfRevRed:UInt32, _nOfRevBlue:UInt32, _nOfRevGreen:UInt32 ):Void { //Debug.fConsole("_nDestY " + _nDestY); //Debug.fConsole("_nDestX " + _nDestX); //_aDest[_nDestY][_nDestX] = 0x48FF00FF; //return; var _nPixelFrame : UInt32 = _aDest[_nDestY][_nDestX]; if(_nPixelFrame & 0xFF000000 != 0xFF000000){ //Not Already have full color pixel //var _nLx :UInt32 = _nX - Math.nPixHPrec + 128; //var _nTy :UInt32 = _nY - Math.nPixHPrec + 128; var _nRx :UInt32 = Math.fIPixFrac(_nLx + Math.nPixPrec ) ; var _nBy :UInt32 = Math.fIPixFrac(_nTy + Math.nPixPrec ); var _nRAlphaTR : UInt32 = (_nRx * (Math.nPixPrec - Math.fIPixFrac(_nTy)) + Math.nPixHPrec) >> Math.nPixSP8; var _nRAlphaBR : UInt32 = (_nRx * _nBy + (Math.nPixHPrec - 1)) >> Math.nPixSP8; var _nRAlphaBL : UInt32 = ((Math.nPixPrec - Math.fIPixFrac(_nLx)) * _nBy + (Math.nPixHPrec - 1)) >> Math.nPixSP8; var _nRAlphaTL : UInt32 = 257 - (_nRAlphaBR + _nRAlphaTR + _nRAlphaBL); //Last doesnt need to be calculated again //var _nRAlphaTL : UInt = ((Math.nPixPrec - Math.fIPixFrac(_nLx)) * (Math.nPixPrec - Math.fIPixFrac(_nTy)) + Math.nPixHPrec) >> Math.nPixSP8; _nLx = _nLx >> Math.nPixSP; _nTy = _nTy >> Math.nPixSP; var _nPixTL : UInt32 = _aSource[_nTy][_nLx ]; var _nPixTR : UInt32 = _aSource[_nTy][_nLx + 1]; var _nPixBL : UInt32 = _aSource[_nTy + 1][_nLx]; var _nPixBR : UInt32 = _aSource[_nTy + 1][_nLx + 1]; // hi bits: mask, shift, multiply, mask var _nResH : UInt32 = (((_nPixTL & 0xFF00FF00) >> 8) * _nRAlphaTL); _nResH += (((_nPixTR & 0xFF00FF00) >> 8) * _nRAlphaTR); _nResH += (((_nPixBL & 0xFF00FF00) >> 8) * _nRAlphaBL); _nResH += (((_nPixBR & 0xFF00FF00) >> 8) * _nRAlphaBR); /* //If result is 0 alpha stop here if (_nResH & 0xFF000000 == 0) { return; }*/ // lo bits: mask, multiply, mask, shift var _nResL : UInt32 = (_nPixTL & 0x00FF00FF) * _nRAlphaTL); _nResL += (_nPixTR & 0x00FF00FF) * _nRAlphaTR); _nResL += (_nPixBL & 0x00FF00FF) * _nRAlphaBL); _nResL += (_nPixBR & 0x00FF00FF) * _nRAlphaBR); //////// Alpha/TInt effect /////////// var _nResHH : UInt32 = _nResH >> 24; var _nResLL : UInt32 = _nResL >> 24; _nResH =_nResH >> 8 & 0x000000FF; _nResL =_nResL >> 8 & 0x000000FF; _nResLL = (((_nResHH - _nResLL ))* Math.fMin(Math.fMax(_nPcBrRed + _nOfRevRed, 0), 256) + (( _nResLL ) * _nPcRevRed) ) * _nAlpha * (Math.fMin(Math.fMax(_nPcBrRed + 256, 0), 256) ); _nResH = (((_nResHH - _nResH))* Math.fMin(Math.fMax(_nPcBrGreen + _nOfRevGreen , 0), 256) + ((_nResH ) * _nPcRevGreen) ) * _nAlpha * (Math.fMin(Math.fMax(_nPcBrGreen + 256, 0), 256) ); _nResL = (((_nResHH - _nResL) ) * Math.fMin(Math.fMax(_nPcBrBlue + _nOfRevBlue , 0), 256) + ((_nResL) * _nPcRevBlue) ) * _nAlpha * (Math.fMin(Math.fMax(_nPcBrBlue + 256, 0), 256) ); /* _nPcBrRed -256 -> + 256 * _nPcLg = _nPcBrRed * _nPcLg = min 0, max 256 _nPcBrRed -256 -> + 256 _nPcDk =_nPcBrRed + 256 * _nPcDk = min 0, max 256 ( (Alpha - Color) * _nPcLg + (Color) ) * _nGlobAlpha * _nPcDk _nResLL = (((_nResHH - _nResLL ))*_nPcLgRed + (( _nResLL ) * _nPcRevRed) ) * _nAlpha * _nPcDkRed; _nResH = (((_nResHH - _nResH))*_nPcLgBlue + ((_nResH ) * _nPcRevBlue) ) * _nAlpha * _nPcDkGreen; _nResL = (((_nResHH - _nResL) )*_nPcLgGreen + ((_nResL) * _nPcRevGreen) ) * _nAlpha * _nPcDkBlue; */ _nResL = (_nResLL & 0xFF000000) | (_nResL >> 16); _nResH = (_nResHH * _nAlpha << 16) | (_nResH >> 16); //////////////////////////////////////// //_nResL = _nResL & 0xFF00FF00; //Only if no color transform _nResH = _nResH & 0xFF00FF00; ////////// Mix pixel with destination ///////////// var _nRevAlphaDest :UInt32 = 255-(_nPixelFrame >> 24); if (_nRevAlphaDest != 255) { var _nFramL : UInt32 = (_nPixelFrame & 0x00FF00FF) << 8; var _nFramH : UInt32 = _nPixelFrame & 0xFF00FF00 ; _nResL = (_nFramL + (_nResL >> 8) * _nRevAlphaDest) & 0xFF00FF00; _nResH = (_nFramH + (_nResH >> 8) * _nRevAlphaDest) & 0xFF00FF00; } ///////////////////////////////////////////////// _aDest[_nDestY][_nDestX] = _nResH | (_nResL >> 8); /* <cpp> #ifndef GZ_D_CpuRenderer_Reverse_BlueAndRed </cpp> _aDest[_nDestY][_nDestX] = _nResH | ((_nResL ) >> 24) | ((_nResL& 0x000FF000) << 8); //Reverse blue & Red <cpp> #else </cpp> _aDest[_nDestY][_nDestX] = _nResH | (_nResL >> 8); <cpp> #endif </cpp> */ } } public pure function fDrawSegTri(_nDirX : Int, _oPtT : Pt<Float>, _oPtL : Pt<Float>, _rPtST : Mapped<uPoint3D>, _rPtSL : Mapped<uPoint3D>, _oPtSegT : Pt<Float>, _oPtSegL : Pt<Float>, _rPtSegST: Mapped<uPoint3D>, _rPtSegSL : Mapped<uPoint3D>, _aDest : CArray<Int32, 2>, _aSource : CArray<Int32, 2>, _nPosX : Int, _nPosY : Int, _nX_Start : Int, _nX_End : Int, _nY_Start : Int, _nY_End : Int, _nLimW : UInt, _nLimH : UInt, _nLast :Int, _nAlpha : UInt, _nPcBrRed: UInt, _nPcBrGreen : UInt, _nPcBrBlue : UInt, _nPcRevRed : UInt, _nPcRevGreen: UInt , _nPcRevBlue: UInt, _nOfRevRed:UInt, _nOfRevBlue:UInt, _nOfRevGreen:UInt, _nFirst:Int, _bNothingRight:Bool = false):Void { //public function fDrawSegTri(_nDirX : Int, _oPtT : Pt<Float>, _oPtL : Pt<Float>, _rPtST : Mapped<uPoint3D>, _rPtSL : Mapped<uPoint3D>, _oPtSegT : Pt<Float>, _oPtSegL : Pt<Float>, _rPtSegST: Mapped<uPoint3D>, _rPtSegSL : Mapped<uPoint3D>, _aDest : CArray<Int32, 2>, _aSource : CArray<Int32, 2>, _nPosX : Int, _nPosY : Int, _nX_Start : Int, _nX_End : Int, _nY_Start : Int, _nY_End : Int, _nLimW : UInt, _nLimH : UInt, _nLast :Int, _nAlpha : UInt, _nPcBrRed: UInt, _nPcBrGreen : UInt, _nPcBrBlue : UInt, _nPcRevRed : UInt, _nPcRevGreen: UInt , _nPcRevBlue: UInt, _nOfRevRed:UInt, _nOfRevBlue:UInt, _nOfRevGreen:UInt, _nFirst:Int, _bNothingRight:Bool = false):Void { if(_oPtSegT.nY + 0.01 > _oPtSegL.nY){ //Ignore segment triangle < 1px height return; //Visible GLitch } var _nLimit : Float = 0.1; if( _oPtSegT.nZ < _nLimit || _oPtSegL.nZ < _nLimit || _oPtT.nZ < _nLimit || _oPtL.nZ < _nLimit){ return; } /* Debug.fConsole("--*******"); Debug.fConsole("--_rPtST: " + _rPtST.nX + ", " +_rPtST.nY ); Debug.fConsole("--_rPtSL: " + _rPtSL.nX + ", " +_rPtSL.nY ); Debug.fConsole("--_rPtSegST: " + _rPtSegST.nX + ", " +_rPtSegST.nY ); Debug.fConsole("--_rPtSegSL: " + _rPtSegSL.nX + ", " +_rPtSegSL.nY ); */ /* Debug.fConsole(" Math.nSP " + (1 << Math.nSP) ); Debug.fConsole("----------------------------"); Debug.fConsole("--_oPtT: " + _oPtT.nX + ", " +_oPtT.nY ); Debug.fConsole("--_oPtL: " + _oPtL.nX + ", " +_oPtL.nY ); Debug.fConsole("--_oPtSegT: " + _oPtSegT.nX + ", " +_oPtSegT.nY ); Debug.fConsole("--_oPtSegL: " + _oPtSegL.nX + ", " +_oPtSegL.nY ); Debug.fConsole("---------------------"); //Debug.fConsole("_oPtM: " + _oPtM.nX + ", " +_oPtM.nY ); Debug.fConsole("---fDrawSegTri--"); Debug.fConsole("--_oPtSegT: " + _oPtSegT.nX + ", " +_oPtSegT.nY ); Debug.fConsole("--_oPtSegL: " + _oPtSegT.nX + ", " +_oPtSegL.nY ); Debug.fConsole("--_nDirX: " + _nDirX ); */ /* if(Math.fAbs() ){ } */ //Debug.fTrace("---fDrawSegTri--"); var _nFloatPrec : Float = Math.nPrec; //var _nDirX : Int = _oTri.nDrawDir; /////////////// var _nFL1x:Int = _oPtSegT.nX * Math.nPrec; var _nFL2x:Int = _oPtSegL.nX * Math.nPrec; var _nFTy:Int = _oPtSegT.nY* Math.nPrec; var _nFBy:Int = _oPtSegL.nY * Math.nPrec; var _nSL1x:Float = ( _rPtSegST.nX * 256.0 + 64.0) / _oPtSegT.nZ; var _nSL1y:Float = ( _rPtSegST.nY * 256.0 - 64.0) / _oPtSegT.nZ; var _nSL1z:Float = 1 / _oPtSegT.nZ; var _nSL2x:Float = (_rPtSegSL.nX * 256.0 + 64.0) / _oPtSegL.nZ; var _nSL2y:Float = (_rPtSegSL.nY * 256.0 - 64.0) / _oPtSegL.nZ; var _nSL2z:Float = 1 / _oPtSegL.nZ; ///////////// var _nSlopeTy : Int = _oPtT.nY * Math.nPrec; var _nSlopeTx : Int = _oPtT.nX * Math.nPrec; var _nSlopeLy : Int = _oPtL.nY * Math.nPrec; var _nSlopeLx : Int = _oPtL.nX * Math.nPrec; var _nSlopeSTx: Float = (_rPtST.nX * 256.0 + 64.0) / _oPtT.nZ; var _nSlopeSTy : Float = (_rPtST.nY * 256.0 - 64.0) /_oPtT.nZ; var _nSlopeSTz: Float = 1/ _oPtT.nZ; var _nSlopeSLx : Float = (_rPtSL.nX * 256.0 + 64.0) / _oPtL.nZ; var _nSlopeSLy : Float = (_rPtSL.nY * 256.0 - 64.0) / _oPtL.nZ; var _nSlopeSLz : Float = 1/ _oPtL.nZ; var _nIPosX : Int = _nPosX - Math.nPrec; var _nIPosY : Int = _nPosY - Math.nPrec; //var _nIPosX : Int = _nPosX - Math.nPrec + GZ::Math::nHPrec/2; //var _nIPosY : Int = _nPosY - Math.nPrec - GZ::Math::nHPrec/2; /* <cpp> GZ_printf("\n_nPosX%d", _nIPosX); GZ_printf("\n_nPosY %d", _nIPosY); </cpp> */ var _nSLx : Float; //Source from right to left var _nSLy : Float; //Source from right to left var _nSLz : Float; //Source from right to left var _nSRx : Float; //Source from right to left var _nSRy : Float; //Source from right to left var _nSRz : Float; //Source from right to left var _nGetX : UInt = 0; var _nGetY : UInt = 0; /////////////////////////////////// var _nX : Int = 0; var _nY : Int = 0; var _nPixelFrame : UInt = 0; var _nPixelClip : UInt = 0; var _nXStart : Int = 0; var _nXEnd : Int = 0; var _nXDist : Int = 0; var _nOffX : Int = 0; var _nOffY : Int = 0; var _nIntOffX : Int = Math.fITronc(_nIPosX + Math.nHPrec); var _nIntOffY : Int = Math.fITronc(_nIPosY + Math.nHPrec); /* var _nAjustLimitY : Int = 0; if (_nIntOffY < 0) { _nAjustLimitY = Math.nPrec; }*/ var _nLimXTOffset : Int = (Math.nPrec + Math.nHPrec) - (_nIPosX + Math.nHPrec - _nIntOffX ) - Math.nPrec; //var _nFHeight : Int = (_nFBy - _nFTy); //Int is important no *256 var _nFHeight : Int = (_nFBy - _nFTy) ; //+1 Seem to remove bug when value are too fit to check futer var _nFHeightSlope : Int = (_nSlopeLy - _nSlopeTy ) ; //+1 Seem to remove bug when value are too fit to check futer if(_nFHeight == 0 || _nFHeightSlope == 0){ return; } //var _nFHeight : Int = (_nFBy - _nFTy) + (1); //+1 Seem to remove bug when value are too fit to check futer //var _nFHeightSlope : Int = (_nSlopeLy - _nSlopeTy ) + (1); //+1 Seem to remove bug when value are too fit to check futer //var _nFHeight : Int = (_nFBy - _nFTy) + (1<< Math.nDivPrec); //+1 Seem to remove bug when value are too fit to check futer //var _nFHeightSlope : Int = (_nSlopeLy - _nSlopeTy ) + (1<< Math.nDivPrec); //+1 Seem to remove bug when value are too fit to check futer //var _nFHeight : Int = (_nFBy - _nFTy) + 1; //+1 Seem to remove bug when value are too fit to check futer //var _nFHeightSlope : Int = (_nSlopeLy - _nSlopeTy ) + 1; //+1 Seem to remove bug when value are too fit to check futer var _nDif_FLx:Int = (tLS(_nFL2x - _nFL1x) << Math.nDivPrec) / _nFHeight; var _nDif_FRx:Int = ((tLS(_nSlopeLx - _nSlopeTx)) << Math.nDivPrec) / _nFHeightSlope; var _nFHeightFloat : Float = _nFHeight / _nFloatPrec; var _nDif_SLx:Float = ((_nSL2x - _nSL1x)) / _nFHeightFloat; var _nDif_SLy:Float = ((_nSL2y - _nSL1y) ) / _nFHeightFloat; var _nDif_SLz:Float = ((_nSL2z - _nSL1z) ) / _nFHeightFloat; var _nFHeightFloatSlope : Float = _nFHeightSlope / _nFloatPrec; var _nDif_SRx:Float = ((_nSlopeSLx - _nSlopeSTx)) / _nFHeightFloatSlope; var _nDif_SRy:Float = ((_nSlopeSLy - _nSlopeSTy)) / _nFHeightFloatSlope; var _nDif_SRz:Float = ((_nSlopeSLz - _nSlopeSTz)) / _nFHeightFloatSlope; var _nTopY : Int = _nIPosY + _nFTy; //Doit etre un Int var _nRealY : Int = Math.fMax( Math.fITronc(_nIPosY + _nFTy) + _nFirst, _nIntOffY + _nY_Start ); var _nRealYPix : Int = _nRealY >> Math.nSP; //var _nToY : Int = Math.fMin( Math.fITronc(_nIPosY + _nFBy)+ (_nLast*512) + 256 , _nIntOffY + _nY_End + _nAjustLimitY); var _nToY : Int = Math.fMin( Math.fITronc(_nIPosY + _nFBy) + Math.nPrec , _nIntOffY + _nY_End ); var y:Int = Math.fIFrac( _nIPosY + _nFTy ) * -1 - ( Math.fITronc(_nIPosY + _nFTy) - _nRealY); var _nYFloat:Float = y / _nFloatPrec; ///////// var _nFTyFloat:Float = _nFTy / _nFloatPrec; var _nSlopeTyFloat:Float = _nSlopeTy / _nFloatPrec; /////////////// // var _nstartY :Int = y; //var _nAliL : Int = Math.nHPrec/2 * _nDirX; //var _nAliR : Int = Math.nHPrec / 2 * _nDirX ; var _nAliL : Int = 0; var _nAliR : Int = 0; // Sub over pixels subsecent tri /// if(_nDirX < 0){ // _nAliL = Math.nHPrec / -2 * _nDirX; Must be same as opposate dir bercause it will overlap en seme tranparent }else{ // _nAliR = Math.nHPrec / -2 * _nDirX ; } ///////////////////////////////////// var _nXAdd : Int = Math.nPrec * _nDirX; var _nXAddFloat : Float = _nDirX; var _nDirEndX : Int = _nAliR + Math.nPrec; var _nDirBegX : Int = Math.nPrec - _nAliL; if (_nDirX == -1) { _nDirEndX = _nAliR; _nDirBegX = 0 - _nAliL; } var _nIncY:Int; var x:Int; var _nXLimit : Int; // _nLimW -= 128; // _nLimH -= 128; /* <cpp> GZ_printf("\nASSS %d", _nToY); GZ_printf("\nA_nRealY %d", _nRealY); </cpp> */ if(_nRealY <= 0){ //Don't render negaative Y, maybe useless if we put bounding _nRealY = 0; } while (_nRealY < _nToY) { //_nTest = _nToY >> Math.nSP; ////Debug.fConsole("_nTest: " + _nTest ); //////////////////////////////////////////////// _nSLx = _nSL1x + (_nYFloat * _nDif_SLx); //X pos from source _nSLy = _nSL1y + (_nYFloat * _nDif_SLy); _nSLz = _nSL1z + (_nYFloat * _nDif_SLz); _nSRx = _nSlopeSTx + (( _nYFloat + (_nFTyFloat - _nSlopeTyFloat) ) * _nDif_SRx); _nSRy = _nSlopeSTy + (( _nYFloat + (_nFTyFloat - _nSlopeTyFloat) ) * _nDif_SRy); _nSRz = _nSlopeSTz + (( _nYFloat + (_nFTyFloat - _nSlopeTyFloat) ) * _nDif_SRz); _nXStart = _nFL1x + (tLS(y) * _nDif_FLx) >> Math.nDivPrec; _nXEnd = _nSlopeTx + ((tLS((y + (_nFTy - _nSlopeTy ) ) ) * _nDif_FRx) >> Math.nDivPrec); /* var _nTest : Int = _nXStart >> Math.nSP; Debug.fConsole("_nXStart: " + _nTest ); var _nTest3 : Int = _nXEnd >> Math.nSP; Debug.fConsole("_nXEnd: " + _nTest3 ); */ if (_nDirX == 1) { _nXDist = Math.fMax(_nXEnd - _nXStart, 1); //Minim of 1, remove bug of 0 div -> not test with 1 pixel x = Math.fMax( _nDirBegX, _nX_Start - _nXStart + _nLimXTOffset); _nXLimit = Math.fMin(_nXDist + _nDirEndX, _nX_End - _nXStart + _nLimXTOffset + Math.nPrec ); }else { _nXDist = Math.fMin(_nXEnd - _nXStart, -1 );//Maximum of 1, remove bug of 0 div x = Math.fMin( _nDirBegX, _nX_End - _nXStart + _nLimXTOffset ); _nXLimit = Math.fMax(_nXDist + _nDirEndX, _nX_Start - _nXStart + _nLimXTOffset - Math.nPrec); } var _nXDistFloat : Float = _nXDist /_nFloatPrec; var _nDif_SLRx:Float = ((_nSRx - _nSLx) ) / _nXDistFloat; var _nDif_SLRy:Float = ((_nSRy - _nSLy) ) / _nXDistFloat; var _nDif_SLRz:Float = ((_nSRz - _nSLz) ) / _nXDistFloat; //Debug.fConsole("_nXDistFloat: " + _nXDistFloat ); var _nXFrac :Int = Math.fIFrac(_nIPosX + _nXStart+ x); //var _nXEndFrac :Int = Math.fIFrac(_nIPosX + _nXEnd+ x); x -= _nXFrac; _nX = _nIPosX + _nXStart + _nXFrac; var _nRealXPix : Int = (_nX + x ) >> Math.nSP; var _nXFloat : Float = x / _nFloatPrec; //_nXLimit += _nXEndFrac; //var _nTest : Int = (_nX + x ) >> Math.nSP; //Debug.fConsole("--_nXLimit: " + (_nXLimit >> Math.nPrec ) ); // Debug.fConsole("_nIPosY: " + _nIPosY ); /* <cpp> GZ_printf("\n__nXLimit %d", (_nXLimit >> 1024)); GZ_printf("\n__nDirX %d", _nDirX); GZ_printf("\nx %d", x); </cpp> */ _nXLimit = Math.fITronc(_nXLimit - x ) + x; if (_nDirX == 1 && x < _nXLimit || _nDirX == -1 && x > _nXLimit) {//Remove bug for (; x != _nXLimit; x += _nXAdd) { var _n1OnZ : Float = _nSLz + (_nXFloat * _nDif_SLRz ); _nGetX = Math.fFloatToInt( (_nSLx + (_nXFloat * _nDif_SLRx )) / (_n1OnZ) ) ; _nGetY = Math.fFloatToInt( (_nSLy + (_nXFloat * _nDif_SLRy )) / (_n1OnZ) ) ; ////////////////////////// //Rotation Z !!!! //_nGetY = (_nGetY - 56) / (((56-_nGetX )/111 /2.4 ) + 1) + 56; //_nGetX = m_getBezier(0, 35, 111, _nGetX/111); /////////////////// // Pixel.fCopyPixelToDes t(_aDest,0xFFFF00FF, (_nX+x)/1024, _nRealY/1024); //Debug.fConsole("--_oPtSegT: " + ... if (_nGetX > _nLimW || _nGetY > _nLimH) { //Todo negate _nGetX = 0; _nGetY = 0; } //(_nX+x ) >> Math.nSP //inline Pixel.fGetSmoothPixel(_aSource, _nGetX , _nGetY , _aDest, _nRealXPix, _nRealYPix , _nAlpha, _nPcBrRed,_nPcBrGreen , _nPcBrBlue , _nPcRevRed, _nPcRevGreen, _nPcRevBlue, _nOfRevRed, _nOfRevBlue, _nOfRevGreen); //Pixel.fCopyPixelToDest(_aDest,0xFF000000, (_nX+x)/1024, _nRealY/1024); <cpp> #ifdef GZ_D_CpuRenderer_Reverse_BlueAndRed </cpp> inline Pixel.fGetSmoothPixel(_aSource, _nGetX , _nGetY , _aDest, _nRealXPix, _nRealYPix , _nAlpha, _nPcBrBlue ,_nPcBrGreen , _nPcBrRed , _nPcRevBlue , _nPcRevGreen, _nPcRevRed, _nOfRevBlue, _nOfRevRed, _nOfRevGreen); <cpp> #else </cpp> inline Pixel.fGetSmoothPixel(_aSource, _nGetX , _nGetY , _aDest, _nRealXPix, _nRealYPix , _nAlpha, _nPcBrRed,_nPcBrGreen , _nPcBrBlue , _nPcRevRed, _nPcRevGreen, _nPcRevBlue, _nOfRevRed, _nOfRevBlue, _nOfRevGreen); <cpp> #endif </cpp> //Pixel.fCopyPixelToDest(_aDest,_aSource[_nGetY/256][_nGetX/256], (_nX+x)/1024, _nRealY/1024); /* <cpp> GZ_printf("\nASSS"); </cpp> */ //Pixel. (_aDest,0xFFFFFF00, (_nX+x)/1024, _nRealY/1024); //Pixel.fCopyPixelToDest(_aDest,0xFF000000, (_nX+x)/1024, _nRealY/1024); _nRealXPix += _nDirX; _nXFloat += _nXAddFloat; } } _nYFloat += 1; y += Math.nPrec; _nRealY += Math.nPrec; _nRealYPix++; } } public static function fDrawClipSquare(_aDest : CArray<Int32, 2>, _aSource : CArray<Int32, 2>, _nPosX : Int, _nPosY : Int, _nX_Start:Int, _nX_End:Int, _nY_Start:Int, _nY_End:Int ):Void { var _nPixelClip : UInt = 0; var _nX : Int = 0; var _nY : Int = 0; for (var y:Int = _nY_Start; y <= _nY_End; y++) { _nY = y + _nPosY; for (var x:Int = _nX_Start; x <= _nX_End ; x++) { _nX = x + _nPosX; _nPixelClip = _aSource[y][x]; Pixel.fCopyPixelToDest(_aDest, _nPixelClip, _nX, _nY); } } /* //Only test if(nCx != 0){ //Top pic test point _aDest[nPosY + nTy][nPosX + nTx] = 0xFF0000FF; _aDest[nPosY + nBy][nPosX + nBx] = 0xFF0000FF; _aDest[nPosY + nTLy][nPosX + nTLx] = 0xFFFF0000; _aDest[nPosY + nBLy][nPosX + nBLx] = 0xFFFF0000; _aDest[nPosY + nTRy][nPosX + nTRx] = 0xFFFF0000; _aDest[nPosY + nBRy][nPosX + nBRx] = 0xFFFF0000; _aDest[nPosY][nPosX] = 0xFF00FF00;//center }*/ ///////// } } }
Redcode
3
VLiance/GZE
src/Lib_GZ/Gfx/Pixel.cw
[ "Apache-2.0" ]
/*--------------------------------------------------*/ /* SAS Programming for R Users - code for exercises */ /* Copyright 2016 SAS Institute Inc. */ /*--------------------------------------------------*/ /*SP4R03s02*/ /*Part A*/ data sp4r.cars; length mpg_quality $ 6; set sp4r.cars; if mpg_average < 20 then mpg_quality='Low'; else if mpg_average < 30 then mpg_quality='Medium'; else mpg_quality='High'; run; /*Part B*/ proc print data=sp4r.cars (firstobs=65 obs=70); var mpg_average mpg_quality; run;
SAS
4
snowdj/sas-prog-for-r-users
code/SP4R03s02.sas
[ "CC-BY-4.0" ]
{{ SEE I2cKeyPad object for keypad/MCP23008 schematic }} CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 CLK_FREQ = ((_clkmode - xtal1) >> 6) * _xinfreq ' system freq as a constant MS_001 = CLK_FREQ / 1_000 ' ticks in 1ms US_001 = CLK_FREQ / 1_000_000 ' ticks in 1us 'pin assignments interrupt = 0 'MCP23008 INT pin to propeller i2cSCL = 1 i2cSDA = 2 MCP23008_Addr = %0100_0000 bSize = 5 'circular buffer size plus 1 (keep one slot open) VAR long useser ' USB serial connection detected T/F long debugsw ' control output to Parallax Terminal byte keychar byte timeout 'seconds for auto-off long Stack[37] byte kBuff[bSize] 'Circular buffer, keep one slot open byte SaveBuff[bSize] byte head, tail OBJ KeyPad : "I2CKeyPad" Debug : "FullDuplexSerial" pub Start | keytime, keysw timeout := 5 'time allowed before clearing key buffer ' dira[interrupt] ~ 'set interrupt pin to input dira[16..23] ~~ 'set QS LEDS to outputs useser := false if ina[31] == 1 ' RX (pin 31) is high if USB is connected Debug.start(31, 30, 0, 115200) ' ignore tx echo on rx useser := true ' Debug serial connection is active debugsw := true else outa[30] := 0 ' Force Propeller Tx line LOW if USB not connected waitcnt(clkfreq / 2 + cnt) if debugsw == true Debug.str(string(16,"Start",13)) ' CLS, disp msg KeyPad.Init(MCP23008_Addr, i2cSDA, i2cSCL, false, interrupt, @keychar) 'do NOT drive SCL - using pullups keychar := 0 keysw := false repeat if keychar <> 0 KEYtime := cnt 'set start time when a key is pressed keysw := true ' DisplayChar(keychar) ' uses LEDs on Quickstart board to indicate key pressed WriteBuff(keychar) keychar := 0 CopyBuff(@SaveBuff) waitcnt(MS_001 * 5 + cnt) if keysw == true if (cnt - KEYtime) > (timeout * clkfreq) ' if timeout secs passed ? ' outa[16..23] := 0 ' turn off QuickStart LEDs keysw := false ClearBuff PUB WriteBuff(keybyte) 'add element to circular buffer kBuff[tail] := keybyte tail := (tail + 1) // bSize if tail == head head := (head + 1) // bSize if debugsw == true debug.tx(keybyte) debug.str(String(" head,tail ")) debug.dec(head) debug.tx(",") debug.dec(tail) debug.str(String(" count ")) debug.dec(BuffCnt) if IsFull debug.str(String(" Full ")) debug.tx(13) PUB ReadBuff 'destructive read of buffer if IsEmpty return repeat ' debug.tx(kBuff[head]) head :=(head + 1) // bSize until head == tail ' debug.tx(13) PUB MoveBuff(buffaddr) | idx, tmp 'clears source buffer during copy bytefill(buffaddr,0,bSize) if IsEmpty return idx := 0 repeat byte [buffaddr][idx++] := kBuff[head] head :=(head + 1) // bSize until head == tail if debugsw == false return debug.str(string("Buffer: ")) repeat idx from 0 to bSize - 1 tmp := byte [buffaddr][idx] if tmp == 0 debug.tx(13) quit debug.tx(tmp) PUB CopyBuff(buffaddr) | idx, tmp, hd 'does not clear source buffer during copy bytefill(buffaddr,0,bSize) if IsEmpty return idx := 0 hd := head repeat byte [buffaddr][idx++] := kBuff[hd] hd :=(hd + 1) // bSize until hd == tail if debugsw == false return debug.str(string("Buffer: ")) repeat idx from 0 to bSize - 1 tmp := byte [buffaddr][idx] if tmp == 0 debug.tx(13) quit debug.tx(tmp) PUB IsEmpty : result 'return true if buffer is empty if tail == head result := true else result:= false PUB IsFull : result 'return true if buffer is full result := (tail + 1) // bSize == head PUB BuffCnt : result | tmp 'return number of elements in buffer tmp := tail if tmp < head tmp += bSize result := tmp - head PUB CLearBuff tail := head if debugsw == true debug.str(string("Buffer cleared",13)) PRI DisplayChar(dispchar) 'indicate key pressed on Quickstart board LEDS outa[16..23] := 0 case dispchar "1" : outa[16] := 1 "2" : outa[17] := 1 "3" : outa[18] := 1 "A" : OUTA[17..16] := %11 "4" : outa[19] := 1 "5" : outa[20] := 1 "6" : outa[21] := 1 "B" : outa[18..17] := %11 "7" : outa[22] := 1 "8" : outa[23] := 1 "9" : outa[16] := 1 outa[23] := 1 "C" : OUTA[19..18] := %11 "*" : OUTA[18..16] := %111 "0" : OUTA[23..16] := %1111_1111 "#" : OUTA[23..21] := %111 "D" : OUTA[20..19] := %11
Propeller Spin
4
deets/propeller
libraries/community/p1/All/I2CKeypad/I2CKeypad/KeyPad_Demo.spin
[ "MIT" ]
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; /** * This contract does nothing and should do nothing. */ contract NoOp {}
Solidity
1
Shiba-Chain/ganache
src/chains/ethereum/ethereum/tests/api/eth/contracts/NoOp.sol
[ "MIT" ]
% Using java fragment grammar include "java.grm" %program must be a function (method or constructor) by itself redefine program [block] end define function main match [program] P [program] end function
TXL
3
pseudoPixels/SourceFlow
txl_features/txl_features/java/isblock.txl
[ "MIT" ]
import React from 'react'; import fs from 'fs' import Immutable from 'immutable'; import classNames from 'classnames'; import {Flexbox, RetinaImg} from 'nylas-component-kit'; import {Actions, PreferencesUIStore, Utils} from 'nylas-exports'; class PreferencesTabItem extends React.Component { static displayName = 'PreferencesTabItem'; static propTypes = { selection: React.PropTypes.instanceOf(Immutable.Map).isRequired, tabItem: React.PropTypes.instanceOf(PreferencesUIStore.TabItem).isRequired, } _onClick = () => { Actions.switchPreferencesTab(this.props.tabItem.tabId); } _onClickAccount = (event, accountId) => { Actions.switchPreferencesTab(this.props.tabItem.tabId, {accountId}); event.stopPropagation(); } render() { const {selection, tabItem} = this.props const {tabId, displayName} = tabItem; const classes = classNames({ item: true, active: tabId === selection.get('tabId'), }); let path = `icon-preferences-${displayName.toLowerCase().replace(" ", "-")}.png` if (!fs.existsSync(Utils.imageNamed(path))) { path = "icon-preferences-general.png"; } const icon = ( <RetinaImg className="tab-icon" name={path} mode={RetinaImg.Mode.ContentPreserve} /> ); return ( <div className={classes} onClick={this._onClick}> {icon} <div className="name">{displayName}</div> </div> ); } } class PreferencesTabsBar extends React.Component { static displayName = 'PreferencesTabsBar'; static propTypes = { tabs: React.PropTypes.instanceOf(Immutable.List).isRequired, selection: React.PropTypes.instanceOf(Immutable.Map).isRequired, } renderTabs() { return this.props.tabs.map((tabItem) => <PreferencesTabItem key={tabItem.tabId} tabItem={tabItem} selection={this.props.selection} /> ); } render() { return ( <div className="container-preference-tabs"> <Flexbox direction="row" className="preferences-tabs"> <div style={{flex: 1}} /> {this.renderTabs()} <div style={{flex: 1}} /> </Flexbox> </div> ); } } export default PreferencesTabsBar;
JSX
4
cnheider/nylas-mail
packages/client-app/internal_packages/preferences/lib/preferences-tabs-bar.jsx
[ "MIT" ]
2 3 + CR . : F ( blah ) DUP DROP 1 + ; 1 F CR .
Forth
2
btashton/pygments
tests/examplefiles/demo.frt
[ "BSD-2-Clause" ]
#!/bin/sh # # SH_KIT # # list.sh = Directory & File Listing # # by: The Dark Raver # modified: 16/12/2005 # echo Content-Type: text/html echo if [ "$QUERY_STRING" != "" ] then echo PATH: $QUERY_STRING "<br><hr>" echo `ls $QUERY_STRING` > /tmp/test else echo PATH: / "<br><hr>" echo > /tmp/test QUERY_STRING="/" root="1" fi out=`grep "/" /tmp/test` if [ "$out" != "" ] then echo FICHERO: $QUERY_STRING echo "<hr><pre>" cat $QUERY_STRING else if [ "$root" != "1" ] then echo "( ) <a href=?"$QUERY_STRING"/..>".."</a><br>" fi for i in `ls $QUERY_STRING` do if [ "$root" == "1" ] then echo "( ) <a href=?/"$i">"$i"</a><br>" else echo "( ) <a href=?"$QUERY_STRING"/"$i">"$i"</a><br>" fi done fi
Shell
3
5tr1x/SecLists
Web-Shells/FuzzDB/list.sh
[ "MIT" ]
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ .iconLanguage { vertical-align: text-bottom; margin-right: 5px; }
CSS
3
noomorph/docusaurus
packages/docusaurus-theme-classic/src/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css
[ "CC-BY-4.0", "MIT" ]
insert into bar5 values (961077, 64), (962483, 65), (803091, 66), (169721, 67), (805020, 68), (569930, 69), (692943, 70), (556931, 71), (355833, 72), (748948, 73), (929378, 74), (345412, 75), (471696, 76), (921104, 77), (76005, 78), (394266, 79), (980710, 80), (16816, 81), (101867, 82), (252809, 83), (813961, 84), (326177, 85), (801978, 86), (848167, 87), (98026, 88), (375880, 89), (413323, 90), (63655, 91), (995567, 92), (627253, 93), (891667, 94), (843488, 95), (443254, 96), (646182, 97), (265108, 98), (600415, 99), (758126, 100), (255088, 101), (711617, 102), (1031988, 103), (147732, 104), (280964, 105), (459818, 106), (379351, 107), (731413, 108), (684168, 109), (776543, 110), (194325, 111), (513129, 112), (588785, 113), (541773, 114), (787101, 115), (955307, 116), (468434, 117), (339858, 118), (17876, 119), (381514, 120), (968116, 121), (115734, 122), (471821, 123), (359271, 124), (650456, 125), (366435, 126), (158684, 127), (244927, 128), (857059, 129), (576385, 130), (670155, 131), (285843, 132), (739871, 133), (1033368, 134), (803785, 135), (467781, 136), (58529, 137), (1017108, 138), (814471, 139), (648721, 140), (234494, 141), (659421, 142), (380829, 143), (217446, 144), (620233, 145), (520777, 146), (192127, 147), (655509, 148), (176001, 149), (489667, 150), (829697, 151), (342620, 152), (177823, 153), (1044025, 154), (302717, 155), (289531, 156), (93984, 157), (93484, 158), (931561, 159), (290222, 160), (121630, 161), (23718, 162), (115823, 163); insert into bar5 values (522956, 164), (516881, 165), (268477, 166), (362396, 167), (1042997, 168), (460731, 169), (59690, 170), (773734, 171), (215808, 172), (374448, 173), (486208, 174), (189864, 175), (236578, 176), (324127, 177), (687395, 178), (940887, 179), (712202, 180), (1012974, 181), (966280, 182), (240676, 183), (692743, 184), (812337, 185), (28255, 186), (596214, 187), (132278, 188), (448852, 189), (616251, 190), (550356, 191), (610533, 192), (955711, 193), (627803, 194), (630329, 195), (298983, 196), (724059, 197), (435056, 198), (805093, 199), (1045125, 200), (901624, 201), (262881, 202), (694923, 203), (819922, 204), (7264, 205), (149784, 206), (72631, 207), (138167, 208), (427982, 209), (916812, 210), (288854, 211), (788863, 212), (760730, 213), (1040698, 214), (10130, 215), (164276, 216), (694343, 217), (685920, 218), (324798, 219), (458423, 220), (437859, 221), (152110, 222), (990035, 223), (530619, 224), (326295, 225), (953901, 226), (141298, 227), (143176, 228), (651983, 229), (710067, 230), (1029498, 231), (32780, 232), (311544, 233), (821333, 234), (689332, 235), (132399, 236), (629846, 237), (888863, 238), (255852, 239), (336606, 240), (781305, 241), (955416, 242), (636528, 243), (206525, 244), (824236, 245), (64772, 246), (826784, 247), (341331, 248), (958078, 249), (775832, 250), (907492, 251), (419692, 252), (725563, 253), (544767, 254), (486554, 255), (912737, 256), (292074, 257), (174443, 258), (213195, 259), (349896, 260), (881344, 261), (861398, 262), (1017150, 263); insert into bar5 values (255865, 264), (819614, 265), (629653, 266), (654056, 267), (872600, 268), (680575, 269), (318455, 270), (605098, 271), (271929, 272), (297386, 273), (529947, 274), (638623, 275), (843891, 276), (427223, 277), (1145, 278), (217867, 279), (276475, 280), (649892, 281), (696176, 282), (212393, 283), (450962, 284), (172096, 285), (703016, 286), (223126, 287), (187658, 288), (684496, 289), (166737, 290), (542427, 291), (667068, 292), (513624, 293), (151574, 294), (777359, 295), (1027410, 296), (170568, 297), (609521, 298), (844592, 299), (646917, 300), (461756, 301), (456040, 302), (1024086, 303), (667753, 304), (950197, 305), (982004, 306), (71205, 307), (466118, 308), (180360, 309), (384120, 310), (470944, 311), (957749, 312), (652976, 313), (859332, 314), (64393, 315), (38775, 316), (537668, 317), (4737, 318), (673097, 319), (421418, 320), (896884, 321), (586123, 322), (932085, 323), (789193, 324), (4797, 325), (652595, 326), (861695, 327), (866092, 328), (237138, 329), (833871, 330), (269362, 331), (10280, 332), (502410, 333), (965266, 334), (476336, 335), (514137, 336), (56471, 337), (450271, 338), (551003, 339), (359582, 340), (444096, 341), (769278, 342), (769326, 343), (488964, 344), (201357, 345), (781449, 346), (570550, 347), (730561, 348), (713040, 349), (577995, 350), (1040711, 351), (848672, 352), (213112, 353), (652377, 354), (788755, 355), (645365, 356), (987558, 357), (385050, 358), (771734, 359), (712421, 360), (218744, 361), (939144, 362), (224852, 363); insert into bar5 values (622288, 364), (308570, 365), (16093, 366), (165153, 367), (574601, 368), (520267, 369), (748990, 370), (286206, 371), (326928, 372), (503006, 373), (950997, 374), (430372, 375), (219846, 376), (763512, 377), (588792, 378), (859218, 379), (1008674, 380), (244185, 381), (606510, 382), (284606, 383), (594252, 384), (546969, 385), (284208, 386), (85024, 387), (664136, 388), (845518, 389), (4608, 390), (460781, 391), (176740, 392), (85572, 393), (673127, 394), (63246, 395), (193177, 396), (124988, 397), (757724, 398), (328503, 399), (443383, 400), (666753, 401), (933365, 402), (903120, 403), (83418, 404), (73846, 405), (438224, 406), (1016817, 407), (668106, 408), (201275, 409), (245372, 410), (731551, 411), (632059, 412), (476863, 413), (15465, 414), (804300, 415), (175800, 416), (885997, 417), (407204, 418), (575953, 419), (579002, 420), (1011900, 421), (479664, 422), (418291, 423), (95892, 424), (684147, 425), (971458, 426), (554477, 427), (972076, 428), (753792, 429), (999536, 430), (588842, 431), (59155, 432), (207599, 433), (25171, 434), (344584, 435), (437125, 436), (28006, 437), (721359, 438), (697157, 439), (53253, 440), (655904, 441), (163647, 442), (474516, 443), (127252, 444), (894365, 445), (840825, 446), (386926, 447), (881675, 448), (962584, 449), (506282, 450), (867772, 451), (826940, 452), (244981, 453), (208787, 454), (1018368, 455), (41196, 456), (69013, 457), (754208, 458), (3851, 459), (265504, 460), (399691, 461), (574721, 462), (1029722, 463); insert into bar5 values (137179, 464), (756882, 465), (27260, 466), (876563, 467), (697934, 468), (600020, 469), (462964, 470), (636484, 471), (27466, 472), (578368, 473), (825391, 474), (698676, 475), (590152, 476), (785035, 477), (219890, 478), (699033, 479), (287407, 480), (634728, 481), (432892, 482), (551536, 483), (182647, 484), (1001244, 485), (830525, 486), (354179, 487), (335661, 488), (405812, 489), (233099, 490), (510354, 491), (241008, 492), (424036, 493), (199292, 494), (30076, 495), (981044, 496), (405795, 497), (944326, 498), (563580, 499), (102155, 500), (1034028, 501), (596733, 502), (145794, 503), (979514, 504), (334190, 505), (103834, 506), (972941, 507), (605084, 508), (66786, 509), (648204, 510), (207359, 511), (79310, 512), (242366, 513), (127346, 514), (870168, 515), (755470, 516), (1043775, 517), (190247, 518), (11279, 519), (6394, 520), (440641, 521), (556191, 522), (107783, 523), (532848, 524), (947177, 525), (787856, 526), (593574, 527), (912736, 528), (625761, 529), (722344, 530), (216100, 531), (358742, 532), (740514, 533), (11855, 534), (638858, 535), (955428, 536), (812371, 537), (837148, 538), (126840, 539), (1006375, 540), (69450, 541), (343054, 542), (1025583, 543), (552553, 544), (972697, 545), (604615, 546), (316827, 547), (789630, 548), (292842, 549), (603035, 550), (255203, 551), (742823, 552), (601383, 553), (377051, 554), (811283, 555), (776801, 556), (513652, 557), (896316, 558), (132966, 559), (93427, 560), (820310, 561), (488407, 562), (211698, 563); insert into bar5 values (945247, 564), (434377, 565), (859240, 566), (152008, 567), (999542, 568), (848245, 569), (745335, 570), (80247, 571), (877203, 572), (858749, 573), (187084, 574), (624684, 575), (643964, 576), (501265, 577), (624158, 578), (830187, 579), (926891, 580), (910869, 581), (206430, 582), (612505, 583), (120859, 584), (124851, 585), (490286, 586), (391058, 587), (316201, 588), (961618, 589), (90412, 590), (517328, 591), (900117, 592), (303170, 593), (210974, 594), (499600, 595), (1004371, 596), (949992, 597), (723108, 598), (109954, 599), (941736, 600), (964910, 601), (91180, 602), (235158, 603), (911954, 604), (532219, 605), (526074, 606), (347223, 607), (63048, 608), (855841, 609), (702489, 610), (263093, 611), (676014, 612), (125480, 613), (500886, 614), (276116, 615), (464467, 616), (882123, 617), (308553, 618), (488830, 619), (134247, 620), (169859, 621), (463196, 622), (336153, 623), (966777, 624), (291854, 625), (639289, 626), (110761, 627), (881625, 628), (424949, 629), (399029, 630), (303433, 631), (920798, 632), (178281, 633), (538819, 634), (957234, 635), (454775, 636), (412406, 637), (7898, 638), (172095, 639), (825144, 640), (127830, 641), (581484, 642), (1039479, 643), (211719, 644), (30758, 645), (7823, 646), (48936, 647), (305022, 648), (176136, 649), (319056, 650), (738329, 651), (273446, 652), (921142, 653), (529748, 654), (533127, 655), (749340, 656), (324090, 657), (887672, 658), (1032190, 659), (641011, 660), (101946, 661), (1009745, 662), (160173, 663); insert into bar5 values (317049, 664), (789570, 665), (151780, 666), (961118, 667), (342587, 668), (749987, 669), (330733, 670), (854554, 671), (439488, 672), (837270, 673), (739172, 674), (86005, 675), (1004072, 676), (712221, 677), (328178, 678), (492577, 679), (633630, 680), (813356, 681), (205730, 682), (821776, 683), (979369, 684), (569390, 685), (6103, 686), (430587, 687), (897056, 688), (85062, 689), (581147, 690), (904813, 691), (481204, 692), (993071, 693), (31600, 694), (920583, 695), (672939, 696), (646070, 697), (525138, 698), (222177, 699), (633862, 700), (290277, 701), (741751, 702), (909564, 703), (638141, 704), (785102, 705), (967279, 706), (189657, 707), (774432, 708), (891824, 709), (127149, 710), (973651, 711), (644003, 712), (572876, 713), (1043422, 714), (821773, 715), (78984, 716), (27147, 717), (611272, 718), (640264, 719), (600320, 720), (84022, 721), (769420, 722), (954097, 723), (911077, 724), (745847, 725), (384754, 726), (727574, 727), (637735, 728), (528054, 729), (949212, 730), (416136, 731), (895811, 732), (647389, 733), (377441, 734), (837981, 735), (584897, 736), (478868, 737), (132447, 738), (660040, 739), (444160, 740), (927987, 741), (487388, 742), (878435, 743), (955009, 744), (800232, 745), (529950, 746), (209729, 747), (374336, 748), (375688, 749), (486453, 750), (52390, 751), (157749, 752), (860736, 753), (962868, 754), (972760, 755), (609037, 756), (550567, 757), (376856, 758), (156844, 759), (738592, 760), (632913, 761), (180240, 762), (856810, 763); insert into bar5 values (456491, 764), (984053, 765), (26488, 766), (991278, 767), (467098, 768), (221256, 769), (962081, 770), (775052, 771), (155571, 772), (588331, 773), (586076, 774), (1038600, 775), (305071, 776), (361674, 777), (15430, 778), (905667, 779), (957898, 780), (758737, 781), (830282, 782), (896508, 783), (54996, 784), (205938, 785), (766826, 786), (1005741, 787), (22425, 788), (164335, 789), (960651, 790), (517843, 791), (281893, 792), (735363, 793), (928810, 794), (352771, 795), (946559, 796), (100079, 797), (670877, 798), (713382, 799), (306156, 800), (1004006, 801), (940302, 802), (60712, 803), (604828, 804), (770210, 805), (944567, 806), (609980, 807), (197927, 808), (88038, 809), (732804, 810), (722116, 811), (19468, 812), (199434, 813), (595448, 814), (548386, 815), (838286, 816), (171508, 817), (685503, 818), (655383, 819), (300127, 820), (309998, 821), (59059, 822), (499607, 823), (911598, 824), (325932, 825), (718954, 826), (716564, 827), (960340, 828), (578449, 829), (920741, 830), (838058, 831), (26667, 832), (45440, 833), (900808, 834), (795082, 835), (257152, 836), (116422, 837), (261057, 838), (64819, 839), (823577, 840), (839320, 841), (64916, 842), (692287, 843), (85596, 844), (136745, 845), (752626, 846), (624484, 847), (519964, 848), (449023, 849), (423901, 850), (37226, 851), (518990, 852), (951478, 853), (475364, 854), (1038658, 855), (9688, 856), (185819, 857), (607435, 858), (524959, 859), (221329, 860), (159588, 861), (924220, 862), (515238, 863); insert into bar5 values (189993, 864), (452636, 865), (318139, 866), (102894, 867), (726931, 868), (532423, 869), (57206, 870), (449106, 871), (885686, 872), (890336, 873), (545462, 874), (374086, 875), (361186, 876), (1008043, 877), (937273, 878), (874161, 879), (80851, 880), (908802, 881), (527850, 882), (570968, 883), (128278, 884), (585684, 885), (909505, 886), (360060, 887), (813200, 888), (920096, 889), (545374, 890), (320296, 891), (757552, 892), (651405, 893), (113612, 894), (444374, 895), (1007880, 896), (901424, 897), (428986, 898), (599474, 899), (146454, 900), (943329, 901), (989213, 902), (207531, 903), (239244, 904), (903315, 905), (848688, 906), (1045357, 907), (638842, 908), (835098, 909), (604425, 910), (429471, 911), (420850, 912), (940626, 913), (601081, 914), (26422, 915), (618607, 916), (360441, 917), (779615, 918), (662976, 919), (127143, 920), (156669, 921), (438744, 922), (556700, 923), (452312, 924), (653851, 925), (220404, 926), (964015, 927), (811521, 928), (334628, 929), (460850, 930), (335472, 931), (89007, 932), (636451, 933), (720604, 934), (762220, 935), (875434, 936), (170124, 937), (383433, 938), (745772, 939), (742555, 940), (903328, 941), (784686, 942), (949103, 943), (648903, 944), (125263, 945), (618415, 946), (567393, 947), (866291, 948), (497958, 949), (693849, 950), (890740, 951), (764685, 952), (350145, 953), (360884, 954), (284371, 955), (353900, 956), (835311, 957), (59377, 958), (708749, 959), (48199, 960), (90833, 961), (49210, 962), (9419, 963); insert into bar5 values (672169, 964), (77358, 965), (549291, 966), (747069, 967), (84987, 968), (529014, 969), (325728, 970), (311366, 971), (724799, 972), (572745, 973), (196301, 974), (994681, 975), (199947, 976), (697530, 977), (161301, 978), (285531, 979), (331199, 980), (761588, 981), (868662, 982), (538669, 983), (77898, 984), (899258, 985), (423188, 986), (528061, 987), (17784, 988), (638552, 989), (539355, 990), (92307, 991), (273440, 992), (838951, 993), (508215, 994), (473428, 995), (721459, 996), (699180, 997), (755936, 998), (896542, 999), (526685, 1000), (701382, 1001), (742567, 1002), (724956, 1003), (916887, 1004), (193988, 1005), (825811, 1006), (996238, 1007), (851562, 1008), (443610, 1009), (241994, 1010), (656069, 1011), (459937, 1012), (707706, 1013), (377611, 1014), (595321, 1015), (504031, 1016), (831335, 1017), (40402, 1018), (158564, 1019), (970, 1020), (301824, 1021), (954169, 1022), (478945, 1023), (875285, 1024), (705050, 1025), (684744, 1026), (834995, 1027), (809097, 1028), (588486, 1029), (980610, 1030), (1009487, 1031), (453812, 1032), (332390, 1033), (682983, 1034), (997963, 1035), (892303, 1036), (140634, 1037), (618962, 1038), (1001335, 1039), (591567, 1040), (587615, 1041), (159436, 1042), (2434, 1043), (757087, 1044), (541268, 1045), (852484, 1046), (570863, 1047), (1009097, 1048), (897036, 1049), (715842, 1050), (160560, 1051), (1024563, 1052), (575721, 1053), (618183, 1054), (345147, 1055), (1044467, 1056), (886130, 1057), (747431, 1058), (275444, 1059), (49120, 1060), (307181, 1061), (766670, 1062), (1020643, 1063);
SQL
2
imtbkcat/tidb-lightning
tests/tool_135/data/tool_135.bar5.sql
[ "Apache-2.0" ]
macroScript setScenePath icon:#("~set_and_get_paths",2) category:"Tools" toolTip:"Set Scene path to current directory" ( local dir=sysinfo.currentdir setdir #scene dir format "Scene path set to %\n" dir )
MAXScript
3
89096000/MaxScript
Workflow/set_and_get_paths/MacroScripts/~setScenePath.mcr
[ "MIT" ]
@mixin test() { $values: blue red; @each $val in $values { color : $val; @for $i from 2 through 10 { background: $i; } } @for $i from 2 through 10 { color: $i; } @while $k > 0 { color: $k; } }
CSS
2
fuelingtheweb/prettier
tests/stylefmt/nested-mixin-2/nested-mixin-2.css
[ "MIT" ]
#![feature(decl_macro)] mod m { macro mac() {} } fn main() { m::mac!(); //~ ERROR macro `mac` is private }
Rust
3
Eric-Arellano/rust
src/test/ui/privacy/decl-macro.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
mes 2,2,2 exa end end bss 2,0,1
Eiffel
0
wyan/ack
mach/em22/libend/end.e
[ "BSD-3-Clause" ]
component { public any function abs(){ x=123; } }
ColdFusion CFC
1
tonym128/CFLint
src/test/resources/com/cflint/tests/FunctionCollision/function_abs.cfc
[ "BSD-3-Clause" ]
BEGIN { print-"6" }
Awk
0
Crestwave/goawk
testdata/gawk/minusstr.awk
[ "MIT" ]
fun error21 () : nothing fun foo(arr:int[10]): nothing { puti(8); } var a:int[10]; { foo(a); }
Grace
3
yorgosk/grace-compiler
examples/semantics/errors/error21.grace
[ "MIT" ]
package org.jetbrains.kotlin.aspects.debug.core; import org.aspectj.lang.annotation.SuppressAjWarnings; import org.eclipse.core.resources.IFile; import org.eclipse.debug.core.sourcelookup.ISourceLookupDirector; import org.eclipse.jdt.core.JavaCore; import org.eclipse.jdt.debug.core.IJavaStackFrame; import org.jetbrains.kotlin.core.debug.KotlinSourceLookupNavigator; public aspect KotlinSourceLookupAspect { pointcut getSourceElement(Object object) : args(object) && execution(Object ISourceLookupDirector.getSourceElement(Object)); @SuppressAjWarnings({"adviceDidNotMatch"}) Object around(Object object) : getSourceElement(object) { Object result = proceed(object); if (result instanceof IFile) { String fileName = ((IFile) result).getName(); if (JavaCore.isJavaLikeFileName(fileName)) { return result; } } if (object instanceof IJavaStackFrame) { IJavaStackFrame frame = (IJavaStackFrame) object; IFile kotlinSourceFile = KotlinSourceLookupNavigator.INSTANCE.findKotlinSourceFile(frame); return kotlinSourceFile != null ? kotlinSourceFile : result; } return result; } }
AspectJ
3
jan-zajic/kotlin-eclipse
kotlin-eclipse-aspects/src/org/jetbrains/kotlin/aspects/debug/core/KotlinSourceLookupAspect.aj
[ "Apache-2.0" ]
SET join_algorithm = 'auto'; SET max_bytes_in_join = 100; DROP TABLE IF EXISTS t; DROP TABLE IF EXISTS nr; CREATE TABLE t (`x` UInt32, `s` LowCardinality(String)) ENGINE = Memory; CREATE TABLE nr (`x` Nullable(UInt32), `s` Nullable(String)) ENGINE = Memory; INSERT INTO t VALUES (1, 'l'); INSERT INTO nr VALUES (2, NULL); SET join_use_nulls = 0; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l LEFT JOIN nr AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l RIGHT JOIN nr AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l FULL JOIN nr AS r USING (x) ORDER BY t.x; SELECT '-'; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l LEFT JOIN t AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l RIGHT JOIN t AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l FULL JOIN t AS r USING (x) ORDER BY t.x; SELECT '-'; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l LEFT JOIN nr AS r USING (s) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l RIGHT JOIN nr AS r USING (s) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l FULL JOIN nr AS r USING (s) ORDER BY t.x; SELECT '-'; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l LEFT JOIN t AS r USING (s) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l RIGHT JOIN t AS r USING (s) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l FULL JOIN t AS r USING (s) ORDER BY t.x; SET join_use_nulls = 1; SELECT '-'; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l LEFT JOIN nr AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l RIGHT JOIN nr AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l FULL JOIN nr AS r USING (x) ORDER BY t.x; SELECT '-'; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l LEFT JOIN t AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l RIGHT JOIN t AS r USING (x) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l FULL JOIN t AS r USING (x) ORDER BY t.x; SELECT '-'; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l LEFT JOIN nr AS r USING (s) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l RIGHT JOIN nr AS r USING (s) ORDER BY t.x; SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM t AS l FULL JOIN nr AS r USING (s) ORDER BY t.x; SELECT '-'; -- TODO -- SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l LEFT JOIN t AS r USING (s) ORDER BY t.x; -- SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l RIGHT JOIN t AS r USING (s) ORDER BY t.x; -- SELECT t.x, l.s, r.s, toTypeName(l.s), toTypeName(r.s) FROM nr AS l FULL JOIN t AS r USING (s) ORDER BY t.x; DROP TABLE t; DROP TABLE nr;
SQL
3
pdv-ru/ClickHouse
tests/queries/0_stateless/01477_lc_in_merge_join_left_key.sql
[ "Apache-2.0" ]
{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set icon %} <img width="20" height="30" alt="Sylius" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAYAAAB/E6/TAAAFS0lEQVRIx61WaUxcVRRmGEqtCyaaGBP/maYxsdX0B5RSQKBlhmFtC7QspbRoAdHQ2EhqK8u0oGUX2afDOkOHZXDCvradYbZSmFJAxEawGqppqv5qMBFm3lzPue8NDiCGgi85efe9e3K/833n3HOvg8MzPmf6JDxBe64TjtsWJnZF6GqUEfpaI52sjeM5/B/PMa2U79mdz8fxcWWRe+BQ2axQU0mE6goSZai/hP+DR6qdtgxw/t43vJDhcrpAo+n2zsD2/PxDN8SMqzyDCPtL/hCNVC2LAPDD8RY/9Im/I+NvCShAU0klSZho8RT2FM+6yTKImzxj2aMpi4Qri/wSTM1RgZoqEjJS/ZN4uu8V9E0aa9m8jMl3m6mz5IF2R6SupjBQU8kI1OXkUGv2X66N6SRAmddp8001KfeGjkgWwnU1w/i9u0vsuGmgpDEWqGB22AWifeR/u5wAu+Ujw6XEU3FlMVJV8jbOh9+sdsZ31y/TO0/q6/rijI1imkeddPMSgiQ0N6eMjRcw6WBLAniHqqtN1EH+AY08xtDAd+vP5XEBJuXMDLyL44v3OzcnYfI4q3Xx97deAmkeonQAZsbkRxvqL9NK07CVlgx52d+f6wggfMXPppefuRiAFZUgxthwnmNlFoCMQZoqBqL3xbnTdpUWt9WqS4Xyxrd0Tv9imPb6j8gqAMHgHaaVzGdO99BKSzG1rcikXJjY2uaFjUijBLlSAlhWFsoMxpH6WiXO7ekU87fdFS5NddEIVY8mXwBWcygdADEIFqCuJLHGxtRtdwbbYytXYJWIi3OsrCChFQCWoTMc2FZnsD0ZUz2U1ciTueeB1QOuApEVgwzh30zlD1oX9Em73/HfOYLqcQQZNowIujWdA59zIs0KK1qJQjZfDTjvPlS4eo3Y7gp+REfJunaxp1vMg/J1+tjUtmoubZLdgKO/P3wO9tWMHSsChWFBSePvyBPRBxiuz9c+xed8rmfFgMYi+zn3gXz+SUM93yYdRM3n2L+/hhXmi0C+FiFf79Dza1TOBnq6tyowuqv8Tduin052uEEk2ImnovX1n6TdU71Bo9PV8PYqP+NBaTudG1NQoPmnv+0I1Uqm7FkhKObrmE460fvrzC70uzwNAUZ1lUW/15y95K3IHhUq8wpPKUv2xxoamgWaCgLnDBOslSxCR1aeMcpEdbM6Z1tAInWFM1th8rN2FUjW5KsSfbyGi1kJ4SC7eECeScCYg01ZjJfi6lOv9i8Zn+4C8+Ghr1F7a6C2moTppPMnDPXilLHW3TZAQggfFFjLiuYLjhUC0sVQx9fLkqkMgrZchRsLtkQPtka0dPy2Hmy+YvZSXWN8+4qI4GYZCYI9c9xQOxg/foMuEm+UHeW6BWPHypavJxcmVG85JA7W0ASXmgZcfFtyphDEXZ5p4RhSY4HTEZyBb7NHa7bVuzOP+A+WkCB11ePYUdlXR/XSx1y3sNqB0YPyhL5OS1lFdpZSVmf7JPtQNlwYmdiDrQG2ArAFzV0hJp7tXxC/3iIi1KwA2OSzYlXCWZawUsLCNvYKFd5REuXRJMY7gWUjoFUmy2QA0IyMDwPDAO5WZCsIYFOzbi9BpE5cceRyC5k3BQaXFFTBU5ljA6KS4WUla7L71X/vMeIQusH8W6/1AytcaHPMKLsMcgRYwV3PKsKOrm8QUpW4trXqieutokBpasVrPs05866ydIyWcYVF0Nw2MgDCm5FHW7YFL5XQEwtwHb9bpRsfG2GqIhoBbGYfqEQrbGYCm9oKRnDsrbi6yrz+MQZuRyR4qOzb2j+/o13ho7vsneNvcYu7Y+75gz8AAAAASUVORK5CYII=" /> <span class="sf-toolbar-value">{{ collector.version }}</span> {% endset %} {% set text %} <div class="sf-toolbar-info-group"> <div class="sf-toolbar-info-piece"> <b>Sylius</b> <span><a href="https://sylius.com">{{ collector.version }}</a></span> </div> <div class="sf-toolbar-info-piece"> <b>Extensions</b> {% for extension in collector.extensions %} <span class="sf-toolbar-status sf-toolbar-status-{{ extension.enabled ? 'green' : 'red' }}"> {{ extension.name }} </span> {% endfor %} </div> </div> <div class="sf-toolbar-info-group"> <div class="sf-toolbar-info-piece"> <b>Currency</b> <span class="sf-toolbar-status sf-toolbar-status-green"> <abbr title="Current {% if collector.currencyCode == collector.defaultCurrencyCode %}and default {% endif %}currency"> {{ collector.currencyCode|default('Undefined') }} </abbr> </span> {% if collector.currencyCode != collector.defaultCurrencyCode %} <span class="sf-toolbar-status"> <abbr title="Default locale"> {{ collector.defaultCurrencyCode }} </abbr> </span> {% endif %} </div> <div class="sf-toolbar-info-piece"> <b>Locale</b> <span class="sf-toolbar-status sf-toolbar-status-green"> <abbr title="Current {% if collector.localeCode == collector.defaultLocaleCode %}and default {% endif %}locale"> {{ collector.localeCode|default('Undefined') }} </abbr> </span> {% if collector.localeCode != collector.defaultLocaleCode %} <span class="sf-toolbar-status"> <abbr title="Default locale"> {{ collector.defaultLocaleCode }} </abbr> </span> {% endif %} </div> </div> <div class="sf-toolbar-info-group"> <div class="sf-toolbar-info-piece"> <b>Resources</b> <span><a href="https://docs.sylius.com/en/latest/" rel="help">Sylius Documentation</a></span> </div> </div> {% endset %} {% include '@WebProfiler/Profiler/toolbar_item.html.twig' with {'link': false, additional_classes: 'sf-toolbar-block-right'} %} {% endblock %}
Twig
4
orestshes/Sylius
src/Sylius/Bundle/CoreBundle/Resources/views/Collector/sylius.html.twig
[ "MIT" ]
create table public.categories ( id serial NOT NULL PRIMARY KEY, name text NOT NULL ); insert into public.categories (id, name) values (1, 'Funny'), (2, 'Weird'), (3, 'Dumb'), (4, 'Cute'), (5, 'Interesting'); create type meme_status AS enum ('new', 'old', 'retired'); create table public.memes ( id serial NOT NULL PRIMARY KEY, name text NOT NULL, category_id INTEGER REFERENCES categories(id), metadata jsonb, created_at TIMESTAMP NOT NULL, status meme_status DEFAULT 'old' ); insert into public.memes (name, category_id, created_at) values ('NO. Rage Face', 5, NOW()), ('"Not Bad" Obama Face', 5, NOW()), ('You Know I Had to Do It to Em', 5, NOW()), ('Rage Comics', 1, NOW()), ('Okay Guy', 4, NOW()), ('Derp', 2, NOW()), ('Jessi Slaughter', 2, NOW()), ('Brazzers', 3, NOW()), ('Dat Boi', 1, NOW()), ('Bad Luck Brian', 4, NOW()), ('Philosoraptor', 4, NOW()), ('Harambe the Gorilla', 4, NOW()), ('Press F to Pay Respects', 1, NOW()), ('GamerGate', 4, NOW()), ('60''s Spider-Man', 1, NOW()), ('MonkaS', 2, NOW()), ('Rage Guy (FFFFFUUUUUUUU-)', 4, NOW()), ('Ricardo Milos', 3, NOW()), ('[10] Guy', 1, NOW()), ('Wat', 3, NOW()), ('Big Chungus', 1, NOW()), ('Haters Gonna Hate', 3, NOW()), ('Do You Even Lift?', 1, NOW()), ('Kappa', 5, NOW()), ('Sad Keanu', 5, NOW()), ('"You Are Already Dead" / "Omae Wa Mou Shindeiru"', 1, NOW()), ('Mega Milk / Titty Monster', 4, NOW()), ('Annoying Facebook Girl', 3, NOW()), ('Raise Your Dongers', 3, NOW()), ('Fight Club: 5/7 Movie', 5, NOW()), ('друг', 3, NOW()), ('Reaction Images', 2, NOW()), ('I Hope Senpai Will Notice Me', 1, NOW()), ('Cereal Guy', 4, NOW()), ('Serbia Strong / Remove Kebab', 3, NOW()), ('High Expectations Asian Father', 4, NOW()), ('PTSD Clarinet Boy', 2, NOW()), ('Homophobic Seal', 4, NOW()), ('Fus Ro Dah', 4, NOW()), ('Zalgo', 3, NOW()), ('Aww Yea Guy', 2, NOW()), ('Copypasta', 5, NOW()), ('Futurama Fry / Not Sure If', 2, NOW()), ('Are You Serious Face / Seriously?', 4, NOW()), ('One Does Not Simply Walk into Mordor', 4, NOW()), ('Gangnam Style', 1, NOW()), ('Cool Story, Bro', 2, NOW()), ('True Story', 2, NOW()), ('Sweet Brown / Ain''t Nobody Got Time for That', 4, NOW()), ('Darude - Sandstorm', 4, NOW()), ('Creepypasta', 2, NOW()), ('Based God', 3, NOW()), ('All the Things', 4, NOW()), ('Kek', 1, NOW()), ('Meatspin', 5, NOW()), ('Waifu', 3, NOW()), ('Belle Delphine', 5, NOW()), ('Facepalm', 5, NOW()), ('If You Know What I Mean', 4, NOW()), ('Bye Felicia', 3, NOW()), ('Emergence (Metamorphosis)', 3, NOW()), ('Hide The Pain Harold', 2, NOW()), ('Rule 63', 3, NOW()), ('I Know That Feel Bro', 2, NOW()), ('Cash Me Ousside / Howbow Dah', 2, NOW()), ('Deal With It', 3, NOW()), ('Momo Challenge', 1, NOW()), ('Socially Awkward Penguin', 2, NOW()), ('Nope! Chuck Testa', 3, NOW()), ('To Be Fair, You Have To Have a Very High IQ to Understand Rick and Morty', 5, NOW()), ('First World Problems', 2, NOW()), ('Fap', 4, NOW()), ('That Really Rustled My Jimmies', 1, NOW()), ('Moon Moon', 4, NOW()), ('The Most Interesting Man in the World', 5, NOW()), ('Dank Memes', 5, NOW()), ('Challenge Accepted', 3, NOW()), ('Xzibit Yo Dawg', 4, NOW()), ('Ayy LMAO', 5, NOW()), ('Grumpy Cat', 1, NOW()), ('Nyan Cat', 2, NOW()), ('Boxxy', 3, NOW()), ('Mr. Hands', 1, NOW()), ('Joseph Ducreux / Archaic Rap', 1, NOW()), ('Harlem Shake', 1, NOW()), ('Oh Crap / OMG Rage Face', 5, NOW()), ('Shrek Is Love, Shrek Is Life', 3, NOW()), ('Delete System32', 1, NOW()), ('Musically Oblivious 8th Grader', 2, NOW()), ('2/10 Would Not Bang', 5, NOW()), ('Insanity Wolf', 2, NOW()), ('Mocking SpongeBob', 4, NOW()), ('Success Kid / I Hate Sandcastles', 2, NOW()), ('JoJo''s Bizarre Adventure', 3, NOW()), ('The Tragedy of Darth Plagueis The Wise', 2, NOW()), ('What People Think I Do / What I Really Do', 2, NOW()), ('Rebecca Black - Friday', 3, NOW()), ('Tide POD Challenge', 2, NOW()), ('U WOT M8', 4, NOW()), ('Smile.jpg', 2, NOW()), ('Dafuq', 3, NOW()), ('Yaranaika? (やらないか)', 2, NOW()), ('The Fappening / Celebgate', 3, NOW()), ('That''s Racist!', 4, NOW()), ('Genius', 5, NOW()), ('I See What You Did There', 5, NOW()), ('Roll Safe', 3, NOW()), ('PewDiePie', 4, NOW()), ('Weird Flex But Ok', 3, NOW()), ('My Body Is Ready', 1, NOW()), ('Billy Herrington / Gachimuchi', 2, NOW()), ('Don''t Talk To Me Or My Son Ever Again', 2, NOW()), ('Disaster Girl', 3, NOW()), ('Cheeki Breeki', 1, NOW()), ('That Escalated Quickly', 5, NOW()), ('Son, I Am Disappoint', 5, NOW()), ('Nyannyancosplay / Hit or Miss', 3, NOW()), ('Jet Fuel Can''t Melt Steel Beams', 4, NOW()), ('Your Argument Is Invalid', 5, NOW()), ('B Button Emoji 🅱', 5, NOW()), ('Chubby Bubbles Girl', 3, NOW()), ('Miley Cyrus Sex Tape Facebook Scams', 1, NOW()), ('Homestuck', 2, NOW()), ('This Is So Sad Alexa Play Despacito', 3, NOW()), ('Majora''s Mask Creepypasta (BEN DROWNED)', 1, NOW()), ('Sweet Jesus Face', 2, NOW()), ('Come At Me Bro', 5, NOW()), ('Inglip', 5, NOW()), ('Swag', 2, NOW()), ('I Have No Idea What I''m Doing', 1, NOW()), ('Shut Up And Take My Money!', 2, NOW()), ('Neil deGrasse Tyson Reaction', 2, NOW()), ('"Y U NO" Guy', 4, NOW()), ('Rule 34', 5, NOW()), ('Overly Attached Girlfriend', 2, NOW()), ('Scumbag Steve', 2, NOW()), ('I Took an Arrow in the Knee', 1, NOW()), ('Rules of the Internet', 2, NOW()), ('You Don''t Say?', 1, NOW()), ('The Mandela Effect', 4, NOW()), ('Woman Yelling at a Cat', 2, NOW()), ('Good Guy Greg', 2, NOW()), ('ಠ_ಠ Look of Disapproval', 1, NOW()), ('Pepe the Frog', 5, NOW()), ('Ridiculously Photogenic Guy', 3, NOW()), ('Ancient Aliens', 1, NOW()), ('Has Anyone Really Been Far Even as Decided to Use Even Go Want to do Look More Like?', 5, NOW()), ('Slender Man', 2, NOW()), ('Doge', 1, NOW()), ('( ͡° ͜ʖ ͡°) / Lenny Face', 1, NOW()), ('Navy Seal Copypasta', 2, NOW()), ('Forever Alone', 4, NOW()), ('Zerg Rush', 2, NOW()), ('Trollface', 3, NOW()), ('My Little Pony: Friendship is Magic', 4, NOW()), ('Me Gusta', 5, NOW()), ('Do A Barrel Roll', 5, NOW()), ('Flipping Tables / (╯°□°)╯︵ ┻━┻', 2, NOW()), ('Ermahgerd', 4, NOW()), ('Loss', 2, NOW()), ('Dolan', 4, NOW()), ('Ugandan Knuckles', 4, NOW()), ('Yao Ming Face / Bitch Please', 1, NOW()), ('Duck Face', 3, NOW()), ('Boku no Pico', 2, NOW()), ('Rickroll', 5, NOW()), ('Bowsette', 3, NOW()), ('Poker Face', 3, NOW()), ('Twitch Plays Pokemon', 3, NOW()), ('Desu', 3, NOW()), ('What Are Those?', 3, NOW()), ('TheLegend27', 5, NOW()), ('Karen', 5, NOW()), ('Keep Calm and Carry On', 5, NOW()), ('Katy t3h PeNgU1N oF d00m', 2, NOW()), ('Oh God Why', 2, NOW()), ('Polandball', 4, NOW()), ('Ahegaokin - アヘ顔菌', 4, NOW()), ('Slowpoke', 2, NOW()), ('Stonks', 5, NOW()), ('Instagram Quote Rebuttals / Hipster Edits', 3, NOW()), ('Shock Sites', 1, NOW()), ('Shoop Da Whoop', 4, NOW()), ('I Can Count to Potato', 2, NOW()), ('Spaghetti Stories', 3, NOW()), ('Advice Dog', 5, NOW()), ('420 Blaze It', 5, NOW()), ('James Doakes'' "Surprise Motherfucker"', 1, NOW()), ('Business Cat', 3, NOW()), ('Trolling', 5, NOW()), ('Side Eyeing Chloe', 5, NOW()), ('Tendies Stories', 3, NOW()), ('What Is This I Don''t Even', 2, NOW()), ('I''m Twelve Years Old and What is This?', 2, NOW()), ('This Is Fine', 3, NOW()), ('The Narwhal Bacons at Midnight', 4, NOW()), ('Mother of God', 2, NOW()), ('''Murica', 1, NOW()), ('I Came', 4, NOW()), ('ME!ME!ME!', 5, NOW()), ('Draw Me Like One of Your French Girls', 1, NOW()), ('Virgin vs. Chad', 2, NOW()), ('Ahegao', 5, NOW()), ('Are You A Wizard', 5, NOW()), ('Feels', 1, NOW()), ('Pokémon', 5, NOW()), ('Strutting Leo', 4, NOW()), ('Troll Science / Troll Physics', 5, NOW()), ('Sanic Hegehog', 4, NOW()), ('Kekistan', 2, NOW()), ('Mom''s Spaghetti', 2, NOW()), ('I Lied', 2, NOW()), ('Freddie Mercury Rage Pose', 2, NOW()), ('Conspiracy Keanu', 1, NOW()), ('Five Nights at Freddy''s', 1, NOW()), ('Indestructible Nokia 3310', 4, NOW()), ('Distracted Boyfriend', 4, NOW()), ('Piper Perri Surrounded', 3, NOW()), ('Shadman / Shadbase', 1, NOW()), ('LOL Guy', 4, NOW()), ('It''s A Trap!', 1, NOW()), ('Staredad', 3, NOW()), ('Feels Good Man', 3, NOW()), ('ZONE-sama', 1, NOW()), ('Me and the Boys', 4, NOW()), ('Trap', 1, NOW()), ('WE WUZ KINGS', 4, NOW()), ('Ryan Gosling', 4, NOW()), ('Notices Bulge / OwO What''s This?', 5, NOW()), ('???? PROFIT!!!!', 4, NOW()), ('30-Year-Old Boomer', 4, NOW()), ('Galaxy Brain', 4, NOW()), ('Idiot Nerd Girl', 1, NOW()), ('Pool''s Closed', 4, NOW()), ('Kony 2012', 2, NOW()), ('Video 1444', 1, NOW()), ('Pepega', 3, NOW()), ('Huahuehuahue', 1, NOW()), ('O RLY?', 2, NOW()), ('Feel Like a Sir', 2, NOW()), ('Absolute Unit', 3, NOW()), ('An Hero', 5, NOW()), ('SOON', 1, NOW()), ('Stahp', 5, NOW()), ('Weeaboo', 3, NOW()), ('The Cake Is a Lie', 2, NOW()), ('Lord Marquaad E', 5, NOW()), ('THEN WHO WAS PHONE?', 2, NOW()), ('Yes, This is Dog', 1, NOW()), ('Chris-Chan / CWC / Christian Weston Chandler', 4, NOW()), ('REEEEEEE', 5, NOW()), ('Honey Badger', 3, NOW()), ('Tree Fiddy', 2, NOW()), ('Greentext Stories', 3, NOW()), ('Minecraft Creeper', 1, NOW()), ('Surprised Pikachu', 1, NOW()), ('Big Smoke''s Order', 3, NOW()), ('College Freshman', 4, NOW()), ('All Your Base Are Belong to Us', 1, NOW()), ('Like A Boss', 3, NOW()), ('Jeff the Killer', 1, NOW()), ('I Herd U Liek Mudkips', 1, NOW()), ('Thicc', 4, NOW()), ('Hover Hand', 3, NOW()), ('The Bongcheon-Dong Ghost', 2, NOW()), ('Lavender Town Syndrome Creepypasta', 2, NOW()), ('Foul Bachelor Frog', 1, NOW()), ('John is Kill', 1, NOW()), ('College Liberal', 2, NOW()), ('Impossibru', 4, NOW()), ('I Accidentally', 2, NOW()), ('U MAD?', 4, NOW()), ('It''s Over 9000!', 5, NOW()), ('Ligma', 5, NOW()), ('Newfags Can''t Triforce', 3, NOW()), ('He Protec but He Also Attac', 1, NOW()), ('Feels Bad Man / Sad Frog', 2, NOW()), ('Are You Fucking Kidding Me?', 5, NOW()), ('Leeroy Jenkins', 2, NOW()), ('I Don''t Want to Live on This Planet Anymore', 2, NOW()), ('Courage Wolf', 1, NOW()), ('Cinnamon Challenge', 5, NOW()), ('But That''s None of My Business', 1, NOW()), ('Goatse', 3, NOW()), ('4chan', 1, NOW()), ('241543903 / Heads In Freezers', 1, NOW()), ('Half-Life 3 Confirmed', 4, NOW()), ('Antoine Dodson / Bed Intruder', 5, NOW()), ('9GAG', 4, NOW()), ('Bobs and Vegana', 1, NOW()), ('The Circle Game', 2, NOW()), ('Is This a Pigeon?', 3, NOW()), ('Good Luck, I''m Behind 7 Proxies', 3, NOW()), ('FAIL / Epic Fail', 2, NOW()), ('Hey Girls, Did You Know...', 5, NOW()), ('Virgin-Killing Sweater', 4, NOW()), ('NPC Wojak', 3, NOW()), ('Deez Nuts', 4, NOW()), ('Handsome Face', 1, NOW()), ('Reaction Guys / Gaijin 4Koma', 2, NOW()), ('In Soviet Russia...', 5, NOW()), ('Scumbag Stacy', 1, NOW()), ('Moth Lamp', 1, NOW()), ('OK Symbol 👌', 1, NOW()), ('Cuck', 1, NOW()), ('Lazy College Senior', 1, NOW()), ('T-Pose', 3, NOW()), ('Filthy Frank', 3, NOW()), ('Third World Success', 1, NOW()), ('Rain Drop Drop Top', 3, NOW()), ('Scarlett Johansson Leaked Nudes', 3, NOW()), ('Hugh Mungus', 3, NOW()), ('Hentai Quotes', 4, NOW()), ('Trigger', 2, NOW()), ('Technoviking', 5, NOW()), ('YOLO', 5, NOW()), ('They Don''t Think It Be Like It Is But It Do', 5, NOW()), ('I Came Out to Have a Good Time and I''m Honestly Feeling So Attacked Right Now', 1, NOW()), ('Condescending Wonka / Creepy Wonka', 1, NOW()), ('Trash Doves', 2, NOW()), ('Wojak / Feels Guy', 1, NOW()), ('Electric Boogaloo', 3, NOW()), ('*Tips Fedora*', 3, NOW()), ('I''m Already Tracer', 4, NOW()), ('Epic Sax Guy', 2, NOW()), ('Yes - Roundabout / To Be Continued', 2, NOW()), ('How Is Babby Formed?', 4, NOW()), ('POMF =3', 5, NOW()), ('Some Men Just Want to Watch the World Burn', 4, NOW()), ('Minecraft', 1, NOW()), ('Honey Boo Boo Child', 3, NOW()), ('I Dunno LOL ¯\(°_o)/¯', 2, NOW()), ('Spider-Man Pointing at Spider-Man', 4, NOW()), ('Zyzz', 4, NOW()), ('Wood Sitting on a Bed', 2, NOW()), ('X, X Everywhere', 3, NOW()), ('Clown Pepe / Honk Honk / Clown World', 2, NOW()), ('Computer Reaction Faces', 2, NOW()), ('Git Gud', 1, NOW()), ('He-Man Sings / HEYYEYAAEYAAAEYAEYAA', 5, NOW()), ('Ultra Instinct Shaggy', 2, NOW()), ('Za Warudo / WRYYYYY', 5, NOW()), ('Ruined Childhood', 1, NOW()), ('fsjal', 5, NOW()), ('Giovanna Plowman / Tampon Girl', 3, NOW()), ('Steven Crowder''s "Change My Mind" Campus Sign', 4, NOW()), ('Tumblr', 5, NOW()), ('Jesus is a Jerk', 5, NOW()), ('Wombo Combo', 2, NOW()), ('Yee', 5, NOW()), ('This Kills The Crab', 4, NOW()), ('BME Pain Olympics', 1, NOW()), ('Crying Cat', 2, NOW()), ('Trypophobia', 2, NOW()), ('Brent Rambo', 3, NOW()), ('Tenso', 5, NOW()), ('Duwang', 3, NOW()), ('Johny Johny Yes Papa', 1, NOW()), ('Thot', 3, NOW()), ('Didn''t Read LOL', 4, NOW()), ('Russian Sleep Experiment', 3, NOW()), ('Trigglypuff', 4, NOW()), ('Puking Rainbows', 3, NOW()), ('Coldsteel The Hedgeheg', 3, NOW()), ('Moon Man', 3, NOW()), ('Wingboner & Clopping', 2, NOW()), ('Sharkeisha Fight Video', 2, NOW()), ('In This Moment I Am Euphoric', 1, NOW()), ('This Isn''t Even My Final Form', 4, NOW()), ('Dashcon', 3, NOW()), ('Vivian James', 4, NOW()), ('Squidward''s Suicide', 2, NOW()), ('Hail Hydra', 5, NOW()), ('Vengeance Dad', 4, NOW()), ('Everybody Walk the Dinosaur', 1, NOW()), ('Puts On Sunglasses / YEEEEAAAHHH', 5, NOW()), ('Casually Pepper Spray Everything Cop', 3, NOW()), ('The Dab', 1, NOW()), ('Carl!', 3, NOW()), ('You Must Construct Additional Pylons!', 2, NOW()), ('Expand Dong', 4, NOW()), ('1 Guy 1 Jar', 2, NOW()), ('PROTIP', 1, NOW()), ('Longcat', 5, NOW()), ('Thanks, Obama!', 2, NOW()), ('Shooting Stars', 4, NOW()), ('Ash Pedreiro / Dat Ash', 2, NOW()), ('Awesome Face / Epic Smiley', 1, NOW()), ('My Immortal / The Worst Fanfiction Ever', 2, NOW()), ('Almost Politically Correct Redneck', 3, NOW()), ('Overly Manly Man', 2, NOW()), ('Natalia Poklonskaya', 3, NOW()), ('Coomer', 5, NOW()), ('CSI 4 Pane Comics', 2, NOW()), ('Skull Trumpet / Doot Doot', 5, NOW()), ('SpongeGar / Primitive Sponge / Caveman Spongebob', 3, NOW()), ('Confused Nick Young', 1, NOW()), ('Gamer Joker / Gamers Rise Up / We Live in a Society', 1, NOW()), ('Prepare Your Anus', 3, NOW()), ('Creepy Chan (Allison Harvard)', 1, NOW()), ('Nothing To Do Here / Jet Pack Guy', 3, NOW()), ('Pretty Cool Guy', 2, NOW()), ('Zoë Quinn', 3, NOW()), ('Mr. Bones'' Wild Ride', 1, NOW()), ('Hitler''s "Downfall" Parodies', 5, NOW()), ('Divide By Zero', 1, NOW()), ('48÷2(9+3) = ?', 3, NOW()), ('Baneposting', 2, NOW()), ('The Grifter', 5, NOW()), ('Unexpected John Cena / And His Name is John Cena', 2, NOW()), ('Check Your Privilege', 2, NOW()), ('It Is Wednesday My Dudes', 3, NOW()), ('We Live In a Society Social Media Reactions', 5, NOW()), ('Friendship Ended With Mudasir', 3, NOW()), ('Neckbeard', 5, NOW()), ('tl;dr', 4, NOW()), ('Trololo Guy', 2, NOW()), ('Hentai Woody / 変態ウッディー', 2, NOW()), ('Cupcakes', 3, NOW()), ('OP is a Faggot', 3, NOW()), ('Cats', 3, NOW()), ('Super Smash Brothers', 4, NOW()), ('Earth-chan', 1, NOW()), ('Derpy Hooves', 3, NOW()), ('Unhelpful High School Teacher', 5, NOW()), ('Nicolas Cage', 1, NOW()), ('Dubs Guy / “Check ’Em”', 5, NOW()), ('Burger King Foot Lettuce', 5, NOW()), ('Brian Peppers', 2, NOW()), ('Arthur''s Fist', 1, NOW()), ('Horse Head Mask', 2, NOW()), ('Deus Vult', 3, NOW()), ('Smudge the Cat', 2, NOW()), ('You Know Nothing, Jon Snow', 3, NOW()), ('The Rake', 3, NOW()), ('Herobrine', 3, NOW()), ('Salt Bae', 3, NOW()), ('Horrifying House-guest / Shadowlurker', 1, NOW()), ('Caught Me Sleeping / Bae Caught Me Slippin', 4, NOW()), ('Math Lady / Confused Lady', 4, NOW()), ('KEKW', 4, NOW()), ('Shitposting', 2, NOW()), ('Warlizard Gaming Forum', 4, NOW()), ('It Was Me, Dio!', 3, NOW()), ('Blue Waffle', 5, NOW()), ('Memes', 1, NOW()), ('Super S Stussy', 5, NOW()), ('Reddit', 4, NOW()), ('Guile''s Theme Goes with Everything', 5, NOW()), ('Alternate Universe', 4, NOW()), ('Yoshi Committed Tax Fraud', 1, NOW()), ('Somebody Toucha My Spaghet', 1, NOW()), ('Bone Hurting Juice', 5, NOW()), ('Why Not Both? / Why Don''t We Have Both?', 4, NOW()), ('Nope.avi', 1, NOW()), ('Steven Universe', 3, NOW()), ('Cave Johnson / Combustible Lemons', 5, NOW()), ('Kanye Interrupts / Imma Let You Finish', 5, NOW()), ('*Record Scratch* *Freeze Frame*', 4, NOW()), ('Old Gregg', 3, NOW()), ('I, For One, Welcome Our New Insect Overlords', 2, NOW()), ('Goodnight Sweet Prince', 2, NOW()), ('Padoru', 4, NOW()), ('"Anime Was a Mistake"', 2, NOW()), ('>Shadman', 1, NOW()), ('Finger Boxes', 4, NOW()), ('Feeling Cute, Might Delete Later', 2, NOW()), ('Peachette / Super Crown', 4, NOW()), ('Imminent Ned / Brace Yourselves, Winter is Coming', 5, NOW()), ('Trollestia / Molestia / Tyrant Celestia', 5, NOW()), ('Seems Legit / Sounds Legit', 3, NOW()), ('Potato Jesus', 3, NOW()), ('*Teleports Behind You* Nothing Personal, Kid', 3, NOW()), ('McKayla is Not Impressed', 5, NOW()), ('Now Kiss!', 4, NOW()), ('Donde Esta La Biblioteca / Spanish Rap', 2, NOW()), ('Candle Cove', 2, NOW()), ('The Glorious PC Gaming Master Race', 1, NOW()), ('The Dress / What Color Is This Dress?', 2, NOW()), ('Waffles? Don''t You Mean Carrots?', 4, NOW()), ('Karate Kyle', 4, NOW()), ('Spoderman / Spodermen', 5, NOW()), ('Steamed Hams', 2, NOW()), ('Too Much Water', 1, NOW()), ('Slaps Roof of Car', 3, NOW()), ('Bitches Love Smiley Faces', 4, NOW()), ('Phteven / Tuna the Dog', 1, NOW()), ('Sudden Clarity Clarence', 5, NOW()), ('The Backrooms', 5, NOW()), ('Mereana Mordegard Glesgorv', 1, NOW()), ('Dear Sister Parodies / "Mmm Whatcha'' Say"', 5, NOW()), ('Tourette''s Guy', 1, NOW()), ('Begone, Thot', 1, NOW()), ('A Cat Is Fine Too', 4, NOW()), ('There Are No Girls on the Internet', 2, NOW()), ('Go Home, You Are Drunk', 1, NOW()), ('Pawn Stars', 1, NOW()), ('Spoopy', 1, NOW()), ('Gotta Go Fast', 1, NOW()), ('Kill Yourself', 1, NOW()), ('Banana For Scale', 4, NOW()), ('My Parents Are Dead / Batman Slapping Robin', 1, NOW()), ('uwu', 1, NOW()), ('Gary Oak', 1, NOW()), ('The Main Difference Between Europe and USA', 3, NOW()), ('9 + 10 = 21', 4, NOW()), ('Shit Was So Cash', 4, NOW()), ('Name Puns', 4, NOW()), ('Wonderwall', 3, NOW()), ('Pokeparents / Pokedads', 4, NOW()), ('THE GAME', 3, NOW()), ('Chad Thundercock', 2, NOW()), ('Eyebrows on Fleek', 1, NOW()), ('Weegee', 2, NOW()), ('Montage Parodies', 1, NOW()), ('Actual Advice Mallard', 1, NOW()), ('Inception', 2, NOW()), ('You''re Doing It Wrong', 3, NOW()), ('This Looks Shopped', 2, NOW()), ('Advice Animals', 3, NOW()), ('He Will Not Divide Us', 3, NOW()), ('Close Enough', 1, NOW()), ('"This Is the Ideal Male Body"', 4, NOW()), ('Battletoads Pre-order', 5, NOW()), ('Boardroom Suggestion', 2, NOW()), ('Cocaine Bear', 3, NOW()), ('Carl the Cuck and AIDS Skrillex', 5, NOW()), ('Oh, You', 4, NOW()), ('Epic Beard Man', 2, NOW()), ('Everything Went Better Than Expected', 2, NOW()), ('Ah Shit, Here We Go Again', 4, NOW()), ('Limes Guy / Why Can''t I Hold All These Limes?', 1, NOW()), ('"Mitochondria is the Powerhouse of the Cell"', 2, NOW()), ('Normie', 3, NOW()), ('Alt + F4', 5, NOW()), ('Download More RAM', 3, NOW()), ('Confused Travolta', 2, NOW()), ('Troll Quotes', 4, NOW()), ('Nigel Thornberry Remixes', 1, NOW()), ('Hipster Mermaid / Hipster Ariel', 4, NOW()), ('My Name Is Jeff', 2, NOW()), ('Daily Dose / Piccolo Dick', 4, NOW()), ('X Grab My Y', 3, NOW()), ('Cory in the House', 5, NOW()), ('Doomer', 3, NOW()), ('Zangief Kid', 4, NOW()), ('Descriptive Noise', 1, NOW()), ('Jebaited', 4, NOW()), ('How Can She Slap?', 5, NOW()), ('Cracking Open a Cold One With the Boys', 4, NOW()), ('Release The Kraken!', 2, NOW()), ('What Has Been Seen Cannot Be Unseen', 1, NOW()), ('Nobody:', 4, NOW()), ('Yeah Science, Bitch', 4, NOW()), ('Diabeetus', 4, NOW()), ('Cake Farts', 3, NOW()), ('Ted Cruz Zodiac Killer', 2, NOW()), ('Anti-Joke Chicken', 2, NOW()), ('spritecranberry.net', 5, NOW()), ('Pacha Edits / When The Sun Hits That Ridge Just Right', 1, NOW()), ('Sonic.exe', 1, NOW()), ('That''s What She Said', 4, NOW()), ('Bee Movie Script / According To All Known Laws Of Aviation', 1, NOW()), ('JonTron', 2, NOW()), ('Girls Laughing', 3, NOW()), ('YouTube Poop / YTP', 5, NOW()), ('It''s Something', 3, NOW()), ('U Jelly?', 2, NOW()), ('Trolldad', 4, NOW()), ('Gabe Newell', 5, NOW()), ('Wololo', 1, NOW()), ('Stefán Karl Stefánsson / Robbie Rotten', 3, NOW()), ('Dragon Dildos', 5, NOW()), ('PINGAS', 4, NOW()), ('Oh Stop It, You', 2, NOW()), ('This Ain''t It, Chief', 4, NOW()), ('Who''s Getting the Best Head?', 4, NOW()), ('Feels Good', 1, NOW()), ('Sam Hyde', 3, NOW()), ('What in Tarnation', 1, NOW()), ('We Are Number One', 2, NOW()), ('Happy Merchant', 1, NOW()), ('Right In Front Of My Salad', 4, NOW()), ('You Keep Using That Word, I Do Not Think It Means What You Think It Means', 1, NOW()), ('Om Nom Nom Nom', 4, NOW()), ('The Rock Driving', 1, NOW()), ('RIP in Peace', 3, NOW()), ('SCP Foundation', 1, NOW()), ('Hipster Kitty', 4, NOW()), ('What''s All This Racket? / Mirada Fija', 1, NOW()), ('BORN TO DIE / WORLD IS A FUCK / Kill Em All 1989 / I am trash man / 410,757,864,530 DEAD COPS', 3, NOW()), ('Bepis', 2, NOW()), ('Why Do Slavs Squat? / Slav Squat', 3, NOW()), ('Ken Bone', 4, NOW()), ('Team Fortress 2', 5, NOW()), ('Butthurt', 5, NOW()), ('It''s Free Real Estate', 5, NOW()), ('Tits or GTFO', 2, NOW()), ('Cult of Kek', 3, NOW()), ('Gabe the Dog / Bork Remixes', 2, NOW()), ('Forced to Drink Milk', 4, NOW()), ('Meme Man', 3, NOW()), ('Interior Semiotics', 2, NOW()), ('YouTube', 5, NOW()), ('Rekt', 1, NOW()), ('I Put on My Robe and Wizard Hat', 1, NOW()), ('Thai Political Crisis Breakup', 3, NOW()), ('Furries', 5, NOW()), ('The Wadsworth Constant', 3, NOW()), ('Bogdanoff Twins', 1, NOW()), ('Do Want / Do Not Want', 4, NOW()), ('Actual Cannibal Shia LaBeouf', 5, NOW()), ('Ah, I See You''re a Man of Culture As Well', 5, NOW()), ('RWBY', 1, NOW()), ('It''s Dangerous to Go Alone! Take This', 3, NOW()), ('Double Rainbow', 2, NOW()), ('You Just Activated My Trap Card!', 3, NOW()), ('Oh Fuck Yeah Spread It', 5, NOW()), ('Adalia Rose', 3, NOW()), ('Dark Souls', 4, NOW()), ('Guys Literally Only Want One Thing And It''s Fucking Disgusting', 4, NOW()), ('Zuckerberg Note Pass', 4, NOW()), ('Asians in the Library', 4, NOW()), ('Conceited Reaction', 4, NOW()), ('Undertale', 2, NOW()), ('Ben Swolo', 3, NOW()), ('This Is Why We Can''t Have Nice Things', 3, NOW()), ('Bee Movie', 2, NOW()), ('Ted the Caver', 2, NOW()), ('Give Her The Dick', 5, NOW()), ('Why Are We Still Here? Just To Suffer?', 3, NOW()), ('Boruto''s Dad', 2, NOW()), ('Suh Dude', 5, NOW()), ('The Casting Couch', 4, NOW()), ('Soy Boy', 1, NOW()), ('Deep Fried Memes', 4, NOW()), ('They Told Me I Could Be Anything I Wanted', 3, NOW()), ('Wew Lad', 1, NOW()), ('Put Your Finger Here', 2, NOW()), ('Gaben', 3, NOW()), ('Internet Husband', 5, NOW()), ('Did He Died?', 4, NOW()), ('Rare Pepe', 3, NOW()), ('The Song of My People!', 4, NOW()), ('Ladies and Gentlemen, We Got Him', 5, NOW()), ('Justin Bieber', 2, NOW()), ('SO HARDCORE', 5, NOW()), ('Shit Tyrone, Get It Together', 1, NOW()), ('Chonk / Oh Lawd He Comin''', 5, NOW()), ('Le Monke / Uh Oh Stinky', 2, NOW()), ('Costanza.jpg / George Costanza Reaction Face', 1, NOW()), ('"I Saw Flying Lotus in a Grocery Store..." Copypasta', 2, NOW()), ('Does Bruno Mars Is Gay?', 4, NOW()), ('Daquan', 5, NOW()), ('Pokémon Creepy Black', 5, NOW()), ('Ebola-chan', 2, NOW()), ('Katawa Shoujo', 4, NOW()), ('Candlejack', 1, NOW()), ('They''re Good Dogs Brent', 5, NOW()), ('Kreygasm', 5, NOW()), ('Three Wolf Moon', 3, NOW()), ('Dating Site Murderer', 2, NOW()), ('Supa Hot Fire', 1, NOW()), ('Full Retard', 4, NOW()), ('"It''s Gonna Be May"', 1, NOW()), ('Futurama Zoidberg / Why Not Zoidberg?', 1, NOW()), ('Yeet', 3, NOW()), ('Skeleton War', 5, NOW()), ('Edgy', 4, NOW()), ('2Spooky', 1, NOW()), ('Dindu Nuffin', 3, NOW()), ('No Fap September / No Fap Months', 3, NOW()), ('Aesthetic', 2, NOW()), ('Make Me a Sandwich', 5, NOW()), ('Chemistry Cat', 4, NOW()), ('Ainsley Harriott', 3, NOW()), ('Soy Boy Face', 5, NOW()), ('I Like Turtles', 3, NOW()), ('Dog Fort', 1, NOW()), ('SpongeBob SquarePants', 4, NOW()), ('JoJo''s Pose', 3, NOW()), ('Crying Michael Jordan', 2, NOW()), ('Doom Paul / It''s Happening', 3, NOW()), ('PogChamp', 2, NOW()), ('hunter2', 4, NOW()), ('Oh Fuck, Put It Back In', 3, NOW()), ('Whomst', 1, NOW()), ('This Man (Ever Dream This Man)', 1, NOW()), ('Agar.io', 1, NOW()), ('The Undertaker Threw Mankind Off Hell in a Cell', 2, NOW()), ('Suicide Mouse', 5, NOW()), ('People Die If They Are Killed', 3, NOW()), ('I Should Buy a Boat Cat', 3, NOW()), ('Amber Lamps', 2, NOW()), ('My Faggot Dog', 4, NOW()), ('Keemstar', 4, NOW()), ('Fukouna Shoujo 03', 1, NOW()), ('Damn Daniel', 1, NOW()), ('Overwatch', 5, NOW()), ('Dub the Dew', 3, NOW()), ('Kill It With Fire', 1, NOW()), ('Instructions Unclear', 5, NOW()), ('Black Guy on the Phone', 4, NOW()), ('Adventure Time', 4, NOW()), ('Sheltered College Freshman', 1, NOW()), ('Didney Worl', 4, NOW()), ('Bruh', 3, NOW()), ('It''s So Fucking Big', 4, NOW()), ('8chan / 8kun', 2, NOW()), ('iPhone Whale', 1, NOW()), ('This Is Sparta!', 5, NOW()), ('My Name Is Yoshikage Kira', 2, NOW()), ('Is This a JoJo Reference?', 3, NOW()), ('Aww Yiss', 1, NOW()), ('Succ', 2, NOW()), ('Persian Cat Room Guardian', 1, NOW()), ('Ight Imma Head Out', 3, NOW()), ('GachiGASM / GachiBASS', 3, NOW()), ('Emoticons', 5, NOW()), ('Cats Wanting Fruit Loops', 4, NOW()), ('Eggplant Emoji 🍆', 5, NOW()), ('Dummy Thicc', 5, NOW()), ('You''ve Been Gnomed', 3, NOW()), ('Drake The Type Of...', 1, NOW()), ('Ramirez, Do Everything!', 1, NOW()), ('ROFLcopter', 1, NOW()), ('Florida Man', 4, NOW()), ('Fap Guy', 4, NOW()), ('LOLWUT', 5, NOW()), ('Understandable, Have a Nice Day', 3, NOW()), ('Crab Rave', 5, NOW()), ('What You Think You Look Like vs. What You Actually Look Like', 5, NOW()), ('OK Boomer', 5, NOW()), ('Pokéfusion / Pokémon Fusion', 3, NOW()), ('INB4', 4, NOW()), ('Emo Dad', 1, NOW()), ('FrankerZ', 2, NOW()), ('Godwin''s Law', 3, NOW()), ('Hello Darkness, My Old Friend', 2, NOW()), ('[Intensifies]', 1, NOW()), ('Snowclone', 1, NOW()), ('3 Guys 1 Hammer', 1, NOW()), ('MULTI-TRACK DRIFTING', 1, NOW()), ('Impact', 3, NOW()), ('Brother, May I Have Some Oats', 2, NOW()), ('Menacing / ゴゴゴゴ', 2, NOW()), ('Demotivational Posters', 4, NOW()), ('I Have The Weirdest Boner', 5, NOW()), ('You Had One Job', 4, NOW()), ('Doki Doki Literature Club', 2, NOW()), ('Oh? You''re Approaching Me? / JoJo Approach', 3, NOW()), ('Harp Darp / Herp Derp', 3, NOW()), ('Shut Down Everything', 5, NOW()), ('Designated Shitting Streets / Poo in the Loo', 3, NOW()), ('Woll Smoth', 3, NOW()), ('First Day on the Internet Kid', 4, NOW()), ('Wheaton''s Law', 5, NOW()), ('Fedora Shaming', 1, NOW()), ('I Crave That Mineral', 3, NOW()), ('I''m Rick Harrison and This Is My Pawn Shop', 3, NOW()), ('Obedece a la morsa / Obey the walrus', 3, NOW()), ('Confession Bear', 3, NOW()), ('Roof Koreans', 1, NOW()), ('Brother Sharp (犀利哥)', 3, NOW()), ('Grammar Nazi', 2, NOW()), ('Delet This', 4, NOW()), ('I Must Go', 2, NOW()), ('Pokepuns', 4, NOW()), ('Vaporwave', 4, NOW()), ('Tony Kornheiser''s "Why"', 4, NOW()), ('My Face When (MFW) / That Face When (TFW)', 1, NOW()), ('Cringeworthy', 4, NOW()), ('Pepperidge Farm Remembers', 2, NOW()), ('Solaire of Astora', 2, NOW()), ('Kyubey', 5, NOW()), ('HNNNNNNG', 3, NOW()), ('Coffin Dance / Dancing Pallbearers', 4, NOW()), ('It''s Goofy Time!', 2, NOW()), ('Let''s Get This Bread', 3, NOW()), ('Derpina', 1, NOW()), ('fortniteburger.net', 1, NOW()), ('Crying Laughing Emoji 😂', 4, NOW()), ('Loli-chan', 2, NOW()), ('Hipster Barista', 1, NOW()), ('Friend Zone', 2, NOW()), ('Marauder Shields', 3, NOW()), ('Falcon Punch', 2, NOW()), ('"Tunak Tunak Tun" Dance', 2, NOW()), ('The Illuminati', 1, NOW()), ('You Gonna Get Raped', 5, NOW()), ('Destroy Dick December', 4, NOW()), ('I Will Survive', 1, NOW()), ('Increasingly Verbose Memes', 4, NOW()), ('Gnome Child', 1, NOW()), ('Thanos Car', 2, NOW()), ('I Didn''t Choose The Thug Life, The Thug Life Chose Me', 2, NOW()), ('Exploitables', 3, NOW()), ('Autonomous Sensory Meridian Response (ASMR)', 5, NOW()), ('Luke, I am Your Father', 1, NOW()), ('Gold Membership Trolling', 1, NOW()), ('Matrix Morpheus', 2, NOW()), ('They See Me Rollin''', 3, NOW()), ('Anime / Manga', 5, NOW()), ('Cthulhu', 4, NOW()), ('YTMND', 1, NOW()), ('Face Swap', 1, NOW()), ('I''m The Goddamn Batman', 3, NOW()), ('The Barber', 3, NOW()), ('Hackerman', 4, NOW()), ('Pepe Silvia', 3, NOW()), ('Cole Sprouse''s Tumblr Experiment', 3, NOW()), ('Gremlin D.Va', 4, NOW()), ('Mariah Mallad (Momokun)', 1, NOW()), ('Best Cry Ever', 3, NOW()), ('Shrek', 3, NOW()), ('Goth GF', 4, NOW()), ('Rose / randytaylor69', 4, NOW()), ('League of Legends', 3, NOW()), ('Women Logic', 5, NOW()), ('Queensland Rail Etiquette Posters', 4, NOW()), ('/r9k/', 4, NOW()), ('Do It Faggot', 5, NOW()), ('When I''m Bored', 1, NOW()), ('Dimitri Finds Out', 3, NOW()), ('Disintegration Effect / I Don''t Feel So Good', 2, NOW()), ('Give Pikachu a Face', 4, NOW()), ('Sonic the Hedgehog', 1, NOW()), ('Mesothelioma Ad Copypasta', 4, NOW()), ('2014 Tumblr-4chan Raids', 5, NOW()), ('Amy''s Baking Company PR Scandal', 1, NOW()), ('Donald Trump', 5, NOW()), ('NO U', 1, NOW()), ('Sonichu', 5, NOW()), ('QUALITY', 2, NOW()), ('Lyra Plushie', 3, NOW()), ('*breath in* Boi', 4, NOW()), ('Doggo', 2, NOW()), ('Everything Changed When The Fire Nation Attacked', 1, NOW()), ('Big Man Tyrone', 1, NOW()), ('Autistic Screeching', 4, NOW()), ('Cleganebowl', 4, NOW()), ('When You See it...', 1, NOW()), ('Unflattering Beyonce', 3, NOW()), ('Apply Cold Water To That Burn', 4, NOW()), ('COMBO BREAKER', 4, NOW()), ('Put Shoe on Head', 5, NOW()), ('It Will Be Fun, They Said', 3, NOW()), ('Trumpet Boy', 3, NOW()), ('Blinking White Guy', 2, NOW()), ('TR-8R the Stormtrooper', 2, NOW()), ('QWOP', 3, NOW()), ('Touhou Project (東方Project)', 3, NOW()), ('Anti-Zombie Fortress', 4, NOW()), ('This is Bob', 2, NOW()), ('Planking', 3, NOW()), ('Poot Lovato', 4, NOW()), ('Giga Pudding', 4, NOW()), ('I''m Ethan Bradberry', 4, NOW()), ('Pun Dog', 4, NOW()), ('We''re a Culture, Not a Costume', 4, NOW()), ('Rape Face', 1, NOW()), ('Racists On 4chan', 4, NOW()), ('Ceiling Cat', 5, NOW()), ('"How Do You Do, Fellow Kids?"', 4, NOW()), ('Boonk Gang', 5, NOW()), ('Henlo', 4, NOW()), ('Commit Sudoku', 5, NOW()), ('iDubbbz', 3, NOW()), ('Chocolate Bird', 4, NOW()), ('The Room', 1, NOW()), ('Surprised Patrick', 1, NOW()), ('If It Fits I Sits', 2, NOW()), ('Big Red', 5, NOW()), ('Gentlemen', 4, NOW()), ('Send Nudes', 4, NOW()), ('Pootis', 5, NOW()), ('Dipper Goes To Taco Bell', 2, NOW()), ('Splatoon', 4, NOW()), ('Nuclear Gandhi', 1, NOW()), ('P-P-P-Powerbook!', 5, NOW()), ('+1', 2, NOW()), ('Ameno', 5, NOW()), ('Schrute Facts', 2, NOW()), ('Encyclopedia Dramatica', 5, NOW()), ('Esther Verkest''s Help Sign', 3, NOW()), ('Starter Packs', 1, NOW()), ('Twitter', 1, NOW()), ('Smoke Weed Everyday', 5, NOW()), ('Groyper', 5, NOW()), ('Money Printer Go Brrr', 2, NOW()), ('Thug Life', 2, NOW()), ('Mass Effect 3 Endings Reception', 2, NOW()), ('If Young Metro Don''t Trust You', 4, NOW()), ('Push It Somewhere Else Patrick', 4, NOW()), ('Special Feeling / 特別な気分', 5, NOW()), ('Ed, Edd n Eddy', 3, NOW()), ('Pusheen', 2, NOW()), ('Yaoi Hands', 4, NOW()), ('U.N. Owen Was Her?', 5, NOW()), ('You Are A Pirate', 1, NOW()), ('How Do I Shot Web?', 3, NOW()), ('GiantDad', 1, NOW()), ('Am I a Joke To You?', 4, NOW()), ('Annoyed Picard', 5, NOW()), ('Ellen Baker (New Horizon)', 4, NOW()), ('You So Precious When You Smile', 1, NOW()), ('Cat Breading', 1, NOW()), ('LulzSec Hacks', 5, NOW()), ('Obunga', 3, NOW()), ('Surprise Buttsecks', 1, NOW()), ('Okay, This Is Epic', 1, NOW()), ('Am I the Only One Around Here', 5, NOW()), ('Stop Right There, Criminal Scum', 3, NOW()), ('Buenos Dias, Mandy', 5, NOW()), ('Paul Christoforo Ocean Marketing Emails', 2, NOW()), ('If You Watch X Backwards, It''s About Y', 4, NOW()), ('E3 Sony 2006 / Giant Enemy Crab', 4, NOW()), ('Storm Area 51', 4, NOW()), ('Yare Yare Daze', 4, NOW()), ('This Could Be Us But You Playing', 2, NOW()), ('Paranoid Parrot', 3, NOW()), ('Die Cis Scum', 3, NOW()), ('Evil Kermit', 2, NOW()), ('Breaking Bad Comics', 5, NOW()), ('Nobody Expects The Spanish Inquisition', 3, NOW()), ('WTF Is This Shit!?', 4, NOW()), ('Google Ultron', 3, NOW()), ('Just According to Keikaku', 2, NOW()), ('Unlimited Blade Works', 5, NOW()), ('Bad Joke Eel', 3, NOW()), ('Anonymous', 3, NOW()), ('Bronyspeak', 5, NOW()), ('[Help!] The Girl I Like Won’t Respond to My Emails (´・ω・`)', 2, NOW()), ('Twitch Emotes', 5, NOW()), ('Checkmate, Atheists', 5, NOW()), ('Cursed Image', 4, NOW()), ('Nailed It', 3, NOW()), ('Peanut Butter Jelly Time', 2, NOW()), ('4chumblr', 3, NOW()), ('Reply Girls', 5, NOW()), ('Man''s Not Hot', 2, NOW()), ('The Rent is Too Damn High / Jimmy McMillan', 3, NOW()), ('Turn To Page 394', 5, NOW()), ('Social Justice Warrior', 1, NOW()), ('A Wild X Appears! / Wild X Appeared!', 4, NOW()), ('Bimbofication', 4, NOW()), ('Brainlet', 1, NOW()), ('Bad Apple!!', 2, NOW()), ('Comic Sans', 3, NOW()), ('Chris Hansen', 2, NOW()), ('Bonsai Kittens', 1, NOW()), ('The Tails Doll', 1, NOW()), ('Hatsune Miku / Vocaloid', 2, NOW()), ('This Is a Flammenwerfer, It Werfs Flammen', 1, NOW()), ('You Reposted in the Wrong Neighborhood', 2, NOW()), ('Chuck Norris Facts', 5, NOW()), ('ManningFace', 3, NOW()), ('Alignment Charts', 5, NOW()), ('Fire Emblem', 3, NOW()), ('Excuse Me What the Fuck', 4, NOW()), ('Body Inflation', 4, NOW()), ('Nice Girl Bike', 2, NOW()), ('LOLcats', 4, NOW()), ('The Ass Was Fat / Arthur Sees A Fat Ass', 2, NOW()), ('Handsome Squidward / Squidward Falling', 2, NOW()), ('Technologically Impaired Duck', 3, NOW()), ('Johnny Sins', 5, NOW()), ('Mind = Blown', 4, NOW()), ('Mission Report: December 16th, 1991', 2, NOW()), ('Ben Garrison', 2, NOW()), ('Pee Is Stored in the Balls', 1, NOW()), ('Cigar Guy', 3, NOW()), ('Queen of England Death Predictions', 4, NOW()), ('IKEA Monkey', 4, NOW()), ('Long Neck Reaction Guy', 4, NOW()), ('Dril', 1, NOW()), ('HowToBasic', 1, NOW()), ('Lie Down / Try Not To Cry / Cry A Lot', 3, NOW()), ('Pepehands', 5, NOW()), ('Amanda Todd''s Death', 3, NOW()), ('Every Day I''m Shufflin', 4, NOW()), ('I Love You 3000', 5, NOW()), ('Super Smash Brothers Ultimate', 1, NOW()), ('Smug Frog', 1, NOW()), ('GigaChad', 4, NOW()), ('Despacito 2', 1, NOW()), ('Crash Bandicoot "Woah"', 1, NOW()), ('Time Traveling Hipster', 2, NOW()), ('Respect Women', 3, NOW()), ('American Chopper Argument', 3, NOW()), ('"Milhouse Is Not A Meme"', 3, NOW()), ('Why The Fuck You Lyin''', 1, NOW()), ('Goosh Goosh', 1, NOW()), ('My Bike Got Stolen Recently', 2, NOW()), ('I''m in That Weird Part of YouTube', 2, NOW()), ('GiIvaSunner / SiIvaGunner', 2, NOW()), ('Oh No, It''s Retarded', 2, NOW()), ('Everyday We Stray Further From God''s Light', 1, NOW()), ('Bel-Air (Fresh Prince)', 4, NOW()), ('Attack on Titan / Shingeki No Kyojin', 5, NOW()), ('Avatar: The Last Airbender / The Legend of Korra', 5, NOW()), ('A.I.Channel / Ai Kizuna', 3, NOW()), ('Gondola', 5, NOW()), ('Brad''s Wife', 4, NOW()), ('What Is the Airspeed Velocity of an Unladen Swallow?', 3, NOW()), ('Diglett Underground', 5, NOW()), ('Stop Girl', 3, NOW()), ('Bongo Cat', 4, NOW()), ('Ken-Sama', 1, NOW()), ('Etika', 2, NOW()), ('Attractive Convict', 1, NOW()), ('Bronies', 4, NOW()), ('Shia LaBeouf''s Intense Motivational Speech / Just Do It', 2, NOW()), ('Top 10 Anime List Parodies', 2, NOW()), ('I Told You About Stairs', 3, NOW()), ('30-Year-Old Virgin Wizard', 4, NOW()), ('You Tried', 5, NOW()), ('Bitch I Might Be', 1, NOW()), ('Special Delivery Instructions', 1, NOW()), ('Naked Banana', 5, NOW()), ('Raptor Jesus', 2, NOW()), ('Youngster Joey', 1, NOW()), ('What You See vs. What She Sees', 1, NOW()), ('LOL Jesus', 2, NOW()), ('Do It For Her', 4, NOW()), ('Sad Panda', 2, NOW()), ('Gingers Do Have Souls!', 3, NOW()), ('Hand Me the Aux Cord', 5, NOW()), ('Apu Apustaja', 1, NOW()), ('You Just Have to Say That You''re Fine', 1, NOW()), ('The Absolute Madman', 3, NOW()), ('Sea-Lioning', 1, NOW()), ('Pony Reactions', 4, NOW()), ('Nut Button', 2, NOW()), ('Video Game Logic', 4, NOW()), ('Biggie Cheese', 5, NOW()), ('Pakalu Papito', 3, NOW()), ('Describe Yourself in 3 Fictional Characters', 5, NOW()), ('Call Me Maybe', 5, NOW()), ('A Winner Is You', 3, NOW()), ('Pics or It Didn''t Happen', 4, NOW()), ('Get Down (Geddan)', 4, NOW()), ('Poggers', 3, NOW()), ('Laughing Tom Cruise', 1, NOW()), ('Vibe Check', 1, NOW()), ('Amerimutt / Le 56% Face', 5, NOW()), ('Good Girl Gina', 2, NOW()), ('Ant-Man Will Defeat Thanos by Crawling Up His Butt and Expanding', 2, NOW()), ('James Franco “First Time?”', 4, NOW()), ('Shadilay', 2, NOW()), ('Snek', 4, NOW()), ('I''m in Me Mum''s Car, Broom Broom', 5, NOW()), ('Yamcha''s Death Pose', 4, NOW()), ('Circle Jerk', 5, NOW()), ('DJ P0N-3 / Vinyl Scratch', 4, NOW()), ('Luna Game / The End is Neigh', 4, NOW()), ('Kill la Kill', 4, NOW()), ('Luigi''s Death Stare', 3, NOW()), ('Anti-Masturbation Cross', 2, NOW()), ('I Regret Nothing', 2, NOW()), ('You Must Be New Here', 5, NOW()), ('Fuck Me, Right?', 1, NOW()), ('Friendzone Johnny', 2, NOW()), ('Fukkireta (吹っ切れた)', 3, NOW()), ('Birthday Dog', 2, NOW()), ('You Vs. The Guy She Told You Not to Worry About', 3, NOW()), ('Rage Quit', 2, NOW()), ('Differenze Linguistiche', 4, NOW()), ('Wake Me Up Inside (Can''t Wake Up)', 2, NOW()), ('I Studied the Blade', 5, NOW()), ('Crazy Frog Brothers', 5, NOW()), ('Inappropriate Timing Spongebob Banner', 2, NOW()), ('Despacito', 2, NOW()), ('Amazing Horse', 5, NOW()), ('Hipster Glasses', 1, NOW()), ('You Either Die A Hero, Or You Live Long Enough To See Yourself Become The Villain', 1, NOW()), ('Eat Hot Chip and Lie', 3, NOW()), ('Steve Buscemeyes', 4, NOW()), ('I''m an Anteater!!!', 2, NOW()), ('Vape Nation', 3, NOW()), ('Friend Zone Fiona', 1, NOW()), ('Starecat / Grafics Cat', 4, NOW()), ('Ralph Pootawn', 5, NOW()), ('What is Love?', 5, NOW()), ('Wolf Girl With You', 5, NOW()), ('Ayaya', 5, NOW()), ('Learn to Code', 2, NOW()), ('My Little Pony Character Fandom', 2, NOW()), ('Dancing Spider-Man', 5, NOW()), ('Why Wub Woo / Dashface', 2, NOW()), ('Meanwhile in...', 3, NOW()), ('It''s Super Effective!', 5, NOW()), ('White People Dancing / LOL White People', 5, NOW()), ('Just As Planned', 5, NOW()), ('Absolutely Disgusting', 5, NOW()), ('Big Enough', 4, NOW()), ('Bro Fist', 1, NOW()), ('Vladimir Putin', 4, NOW()), ('5ever', 4, NOW()), ('It Was At This Moment He Knew... He Fucked Up', 1, NOW()), ('Sweating Towel Guy', 3, NOW()), ('Moonbase Alpha Text to Speech', 4, NOW()), ('Dis Gon B Gud', 2, NOW()), ('Linda Glocke / I Will Destroy ISIS', 2, NOW()), ('He Will Never Have a Girlfriend', 3, NOW()), ('Ocean Man', 3, NOW()), ('Family Guy Effect', 5, NOW()), ('Owling', 3, NOW()), ('Bitch I''m Fabulous', 1, NOW()), ('DSPGaming', 3, NOW()), ('Savage Patrick', 2, NOW()), ('Awoo~', 2, NOW()), ('Stock Photo Clichés', 4, NOW()), ('Cookie Clicker', 3, NOW()), ('LUL', 1, NOW()), ('Howard the Alien / Money Longer Alien', 5, NOW()), ('Image Macros', 5, NOW()), ('Griefing', 5, NOW()), ('I Did It for the Lulz', 1, NOW()), ('Yiff', 4, NOW()), ('Change Da World... My Final Message', 4, NOW()), ('Interior Crocodile Alligator', 5, NOW()), ('That Wasn''t Very Cash Money of You', 2, NOW()), ('Facebook', 3, NOW()), ('Streisand Effect', 1, NOW()), ('Professor Badass', 2, NOW()), ('Unpopular Opinion Puffin', 5, NOW()), ('Get To The Choppa', 4, NOW()), ('Zamii070 Harassment Controversy', 2, NOW()), ('Salty', 1, NOW()), ('BadBoy2 / I''m 18, Do I Have Potential?', 5, NOW()), ('No Items, Fox Only, Final Destination', 2, NOW()), ('Super Mario', 5, NOW()), ('Improvise. Adapt. Overcome', 3, NOW()), ('Shaggy''s Power', 2, NOW()), ('Game Grumps', 2, NOW()), ('I Drink Your Milkshake!', 3, NOW()), ('I Don''t Like Sand', 3, NOW()), ('Diretide', 3, NOW()), ('360 No Scope', 1, NOW()), ('Facebook Cartoon Profile Picture Week', 3, NOW()), ('Cuteness Overload', 1, NOW()), ('Instagram', 2, NOW()), ('That''s How Mafia Works', 3, NOW()), ('Boneless Pizza', 4, NOW()), ('Milkshake Duck', 3, NOW()), ('Misunderstood D-Bag', 3, NOW()), ('Magikarp Guy', 1, NOW()), ('Content Aware Scaling', 4, NOW()), ('0.5x A Presses / But First We Need to Talk About Parallel Universes', 2, NOW()), ('Spanish Laughing Guy / "El Risitas" Interview Parodies', 5, NOW()), ('Untoons', 5, NOW()), ('/pol/', 3, NOW()), ('Katya Lischina', 2, NOW()), ('Polybius', 3, NOW()), ('Bold Move Cotton', 1, NOW()), ('Super Cool Ski Instructor', 1, NOW()), ('Gijinka / Moe Anthropomorphism', 5, NOW()), ('Hey Beter', 4, NOW()), ('Bait / This is Bait', 4, NOW()), ('Nickelback', 2, NOW()), ('Sitting Lyra', 1, NOW()), ('Keyboard Cat', 4, NOW()), ('It''s Not Lupus', 4, NOW()), ('Row Row Fight the Powah', 1, NOW()), ('Monster Musume / Daily Life with Monster Girl', 5, NOW()), ('Naruto Run', 1, NOW()), ('Blyat / Cyka Blyat', 4, NOW()), ('How About No?', 1, NOW()), ('Le Toucan', 2, NOW()), ('Cats Can Have a Little Salami', 1, NOW()), ('You''ve Heard of the Elf on the Shelf...', 5, NOW()), ('They''re Taking the Hobbits to Isengard', 3, NOW()), ('Recorded with a Potato', 4, NOW()), ('Best Gore', 1, NOW()), ('Supercut', 5, NOW()), ('That Would Be Great', 2, NOW()), ('Legal Loli', 3, NOW()), ('What is a man?', 3, NOW()), ('Oh Long Johnson', 2, NOW()), ('So Long, Gay Bowser', 3, NOW()), ('Sweet Apple Massacre (My Little Pony Fanfiction)', 5, NOW()), ('Nico Nico Nii', 5, NOW()), ('Awkward Moment Seal', 4, NOW()), ('Straight Outta Somewhere / #StraightOutta', 3, NOW()), ('The Alot', 2, NOW()), ('Jasmine Masters "And I Oop"', 3, NOW()), ('In Ur Base', 4, NOW()), ('4chan Party Van', 3, NOW()), ('Grandma Finds the Internet', 2, NOW()), ('Super Bowl XLIX Halftime "Left Shark"', 2, NOW()), ('S[he] Be[lie]ve[d] (Sbeve)', 5, NOW()), ('The Picard Song', 5, NOW()), ('What The Fuck Am I Reading?', 3, NOW()), ('Plastic Love', 4, NOW()), ('Celebrity Pokemon Evolutions', 2, NOW()), ('BBQ Becky', 3, NOW()), ('"You Could Stop at Five or Six Stores"', 4, NOW()), ('Allahu Akbar', 4, NOW()), ('Zelda''s Response', 5, NOW()), ('Slide Into Your DMs', 2, NOW()), ('Astronaut Sloth', 5, NOW()), ('Nice Boat.', 4, NOW()), ('Unsettled Tom', 2, NOW()), ('Oh No Baby! What Is You Doin???', 5, NOW()), ('Bunchie', 5, NOW()), ('Winnie The Pooh''s Home Run Derby', 1, NOW()), ('What Are You Doing, Step Bro?', 2, NOW()), ('All Right, Gentlemen!', 5, NOW()), ('Boar Vessel', 2, NOW()), ('Happy Cat', 3, NOW()), ('NOMA - Brain Power', 4, NOW()), ('Fuck Logic', 3, NOW()), ('Don''t Worry, He Knows', 5, NOW()), ('Here in My Garage', 1, NOW()), ('I''m Literally the Guy in the Pic', 4, NOW()), ('Dinkleberg', 4, NOW()), ('Brushie Brushie Brushie', 2, NOW()), ('OK So Basically I''m Monky', 1, NOW()), ('Just Kidding... Unless?', 1, NOW()), ('Bench Tails', 1, NOW()), ('Make Your Own Album Cover', 2, NOW()), ('Woody Harrelson Reddit AMA', 1, NOW()), ('Strong Black Woman Who Don''t Need No Man', 3, NOW()), ('Dihydrogen Monoxide Hoax', 3, NOW()), ('Clever Girl', 5, NOW()), ('The D', 1, NOW()), ('Globglogabgalab', 2, NOW()), ('WTF BOOM!', 1, NOW()), ('Sheltering Suburban Mom', 3, NOW()), ('Fakemon', 4, NOW()), ('Race Guy', 2, NOW()), ('Gadsden Flag / Don''t Tread On Me', 1, NOW()), ('Spider-Man Ass Slap', 3, NOW()), ('Adolf Hitler', 2, NOW()), ('You Win the Internet!', 2, NOW()), ('I''m Watching You', 1, NOW()), ('Dick Flattening', 2, NOW()), ('Dankey Kang', 3, NOW()), ('What Year Is It?', 2, NOW()), ('Ara Ara', 5, NOW()), ('L.A. Noire "Doubt" / Press X To Doubt', 2, NOW()), ('How to Wear a Men''s Shirt', 3, NOW()), ('Gravity Falls', 3, NOW()), ('Pop Team Epic', 2, NOW()), ('Interior Monologue Captioning', 5, NOW()), ('I Showed You My Dick Please Respond', 2, NOW()), ('Dragons Having Sex with Cars', 5, NOW()), ('Baldi''s Basics in Education and Learning', 2, NOW()), ('I Was Only Pretending To Be Retarded', 4, NOW()), ('Creepy Villager', 3, NOW()), ('Annoying Childhood Friend', 4, NOW()), ('Manly Tears', 4, NOW()), ('>Implying (Implying Implications)', 1, NOW()), ('Thinking Face Emoji 🤔', 3, NOW()), ('Corey Worthington''s Party', 4, NOW()), ('Bone Apple Tea', 3, NOW()), ('R+L=J', 5, NOW()), ('Still a Better Love Story than Twilight', 5, NOW()), ('That''s the Evilest Thing I Can Imagine', 1, NOW()), ('Hipster', 2, NOW()), ('Smugleaf', 5, NOW()), ('NSFW', 4, NOW()), ('Sarah Jessica Parker Looks Like a Horse', 5, NOW()), ('Rasta Science Teacher', 1, NOW()), ('Ken M', 4, NOW()), ('Tiger Mom', 3, NOW()), ('Magibon', 1, NOW()), ('Top Gun Hat', 2, NOW()), ('Party Hard', 1, NOW()), ('Did You Just Assume My Gender?', 4, NOW()), ('Lord Tachanka', 1, NOW()), ('Activated Almonds', 4, NOW()), ('Fifty Shades of Grey', 3, NOW()), ('New Guy', 5, NOW()), ('Bro, I''m Straight Up Not Having a Good Time', 2, NOW()), ('Charlie Sheen Rant / #tigerblood', 3, NOW()), ('Cracky-chan', 4, NOW()), ('"You And Me" Parodies', 5, NOW()), ('The YouTube Sexual Abuse Scandal', 5, NOW()), ('That Post Gave Me Cancer', 3, NOW()), ('Assuming Control', 2, NOW()), ('Get A Brain Morans', 5, NOW()), ('I''m Baby', 4, NOW()), ('Trust Nobody, Not Even Yourself', 4, NOW()), ('How Italians Do Things', 4, NOW()), ('I''ve Seen Enough Hentai To Know Where This Is Going', 3, NOW()), ('Nazi Pepe Controversy', 3, NOW()), ('Feeling Cute Challenge', 5, NOW()), ('Shiny Pidgey', 2, NOW()), ('Yes Chad', 1, NOW()), ('Cheeky Nando''s', 2, NOW()), ('BonbiBonkers', 1, NOW()), ('It''s Okay to Be White', 3, NOW()), ('Portal 2 Space Personality Core', 1, NOW()), ('Lex Luthor Took Forty Cakes', 3, NOW()), ('Video Games Appeal to the Male Fantasy', 3, NOW()), ('Spooky Scary Skeletons', 4, NOW()), ('Mary Sue', 1, NOW()), ('The Last Page of the Internet', 1, NOW()), ('BLACKED', 2, NOW()), ('Gohan Blanco', 3, NOW()), ('Piracy, It''s a Crime', 4, NOW()), ('What I Watched / What I Expected / What I Got', 1, NOW()), ('You Get Nothing! You Lose! Good Day, Sir!', 2, NOW()), ('Demopan', 4, NOW()), ('-fag (Suffix)', 1, NOW()), ('Surprise, Bitch', 1, NOW()), ('Girugamesh', 5, NOW()), ('Don''t Look at Her', 1, NOW()), ('Who Created Kirby?', 3, NOW()), ('White Knight', 5, NOW()), ('Medieval Tapestry Edits', 5, NOW()), ('Loud Nigra', 5, NOW()), ('Lonk', 4, NOW()), ('Caramelldansen', 5, NOW()), ('No Nut November', 2, NOW()), ('Shipping', 4, NOW()), ('Todd Howard', 4, NOW()), ('Chocolate Rain', 4, NOW()), ('Where Is Your God Now?', 4, NOW()), ('Desiree Jennings Dystonia Hoax', 5, NOW()), ('Welcome To The Salty Spitoon. How Tough Are Ya?', 3, NOW()), ('Well Yes, But Actually No', 1, NOW()), ('Lame Pun Coon', 5, NOW()), ('I Cri Evrytiem', 1, NOW()), ('Then Perish', 3, NOW()), ('I Got 99 Problems But a Bitch Ain''t One', 1, NOW()), ('/b/', 2, NOW()), ('DOOM: Repercussions of Evil', 2, NOW()), ('Zoomer', 4, NOW()), ('Wrong Lyrics Christina', 5, NOW()), ('Brittany Venti', 3, NOW()), ('You See Ivan...', 5, NOW()), ('Ponify', 5, NOW()), ('Unidan', 3, NOW()), ('Red Shirt Guy', 1, NOW()), ('How to Break Your Thumb Ligament', 5, NOW()), ('Ding Fries Are Done', 5, NOW()), ('Stu Making Chocolate Pudding At 4 AM', 3, NOW()), ('Thank You Kanye, Very Cool!', 1, NOW()), ('Lonely Computer Guy / Net Noob', 3, NOW()), ('Game of Thrones', 2, NOW()), ('YES! YES!', 5, NOW()), ('Graphic Design Is My Passion', 2, NOW()), ('It''s High Noon', 5, NOW()), ('Bikini Bridge', 5, NOW()), ('Single-Serving Site', 1, NOW()), ('Gavin', 4, NOW()), ('Meme Magic', 2, NOW()), ('2019 Tokyo Yandere Stabbing', 3, NOW()), ('Budd Dwyer Suicide Video', 3, NOW()), ('ProJared Cheating Scandal', 1, NOW()), ('Urban Dictionary', 2, NOW()), ('Bill O''Reilly Rant', 1, NOW()), ('Christopher Poole / moot', 3, NOW()), ('Polite Cat', 2, NOW()), ('The Woah', 2, NOW()), ('Trump Is Playing 4D Chess', 4, NOW()), ('Whatcha Thinkin Bout?', 1, NOW()), ('Don''t Hug Me I''m Scared', 1, NOW()), ('Can You Please Photoshop The Sun Between My Fingers?', 1, NOW()), ('Dakimakura / Body Pillow', 3, NOW()), ('Domo', 2, NOW()), ('But I Poop From There', 4, NOW()), ('Smug Wendy''s', 3, NOW()), ('Grape-kun', 5, NOW()), ('Monster Girls', 1, NOW()), ('Angry Pepe', 2, NOW()), ('Final Boss of the Internet', 2, NOW()), ('Brock Obama', 1, NOW()), ('Star Wars', 4, NOW()), ('GIF', 1, NOW()), ('Fuck Yeah Seaking', 1, NOW()), ('Lenin Cat', 2, NOW()), ('Kowalski', 4, NOW()), ('Tumblr Nose', 5, NOW()), ('Big Dick Energy', 5, NOW()), ('It Really Do Be Like That Sometimes', 3, NOW()), ('Erratas', 3, NOW()), ('Honk Honk / Chen Edits', 2, NOW()), ('The More You Know', 2, NOW()), ('Anita Sarkeesian', 3, NOW()), ('Spy Crab', 1, NOW()), ('e621', 5, NOW()), ('Super Smash Bros Character Predictions', 4, NOW()), ('9/11 Tourist Guy', 4, NOW()), ('Angelina Jolie''s Leg', 5, NOW()), ('Y Tho', 2, NOW()), ('My Hero Academia', 2, NOW()), ('Do She Got a Booty? (She Do)', 3, NOW()), ('Doctor Whooves / Time Turner', 1, NOW()), ('Meth, Not Even Once', 5, NOW()), ('Stoner Dog', 4, NOW()), ('Don''t Judge Challenge', 2, NOW()), ('Red Leader Standing By', 5, NOW()), ('That Pool', 2, NOW()), ('Spiders Georg', 4, NOW()), ('Topkek', 3, NOW()), ('Lying Down Game', 2, NOW()), ('Dancing Baby', 1, NOW()), ('Renai Circulation', 4, NOW()), ('Mia Khalifa Death Threats', 3, NOW()), ('Clippy', 2, NOW()), ('Some Of You Guys Are Alright', 5, NOW()), ('Sonic Original Characters', 5, NOW()), ('Eli Porter', 2, NOW()), ('asdfmovie', 2, NOW()), ('Benis', 5, NOW()), ('Horse-Sized Duck', 2, NOW()), ('Hmm Today I Will', 2, NOW()), ('SourPls', 3, NOW()), ('Don''t Blink "The Weeping Angels"', 2, NOW()), ('Original vs. Un-Tumblrized', 5, NOW()), ('Yotsuba Koiwai / 404 Girl', 2, NOW()), ('He Needs Some Milk', 2, NOW()), ('Babby', 5, NOW()), ('Happy Keanu', 4, NOW()), ('Gordon Ramsay', 1, NOW()), ('Cock and Ball Torture', 5, NOW()), ('Pregnancy Announcement', 2, NOW()), ('That Damn Smile', 4, NOW()), ('I''m sorry, I can''t hear you over the sound of how awesome I am', 5, NOW()), ('Hunger Games Simulator', 5, NOW()), ('Christ-chan', 3, NOW()), ('Look at This Dude / Flipagram Roast Videos', 2, NOW()), ('Everyone Loses Their Minds', 5, NOW()), ('Nevada-Tan', 1, NOW()), ('Beautiful Cinnamon Roll Too Good For This World, Too Pure', 4, NOW()), ('I Can''t Believe You''ve Done This!', 4, NOW()), ('Barack Obama', 4, NOW()), ('Your Music''s Bad and You Should Feel Bad', 1, NOW()), ('Excuse Me Sir, Do You Have a Moment to Talk About Jesus Christ?', 3, NOW()), ('Swole', 2, NOW()), ('Glen Coco', 2, NOW()), ('Bread Helmet Man', 1, NOW()), ('Lick Icons', 3, NOW()), ('She Was His Queen...', 5, NOW()), ('Skinny Legend', 1, NOW()), ('Sage', 5, NOW()), ('You Have My Sword, And My Bow, And My Axe', 1, NOW()), ('Keyhole Turtleneck', 4, NOW()), ('Hitler Did Nothing Wrong', 3, NOW()), ('God I Wish That Were Me', 1, NOW()), ('Prancing Cera', 3, NOW()), ('Vince McMahon Reaction', 2, NOW()), ('Protect IP Act / Stop Online Piracy Act (PIPA / SOPA)', 2, NOW()), ('Channel Awesome Implosion / #ChangeTheChannel', 4, NOW()), ('Penis Goes Where/Cock goes where', 4, NOW()), ('Robot Unicorn Attack / Harmony Harmony', 5, NOW()), ('The "!1" Phenomenon', 5, NOW()), ('Fish4Hoes', 2, NOW()), ('King Crimson (JoJo)', 1, NOW()), ('Mirai Nikki Yandere Face', 3, NOW()), ('Le', 4, NOW()), ('MEMRI TV', 3, NOW()), ('Faces of Marijuana', 1, NOW()), ('orz', 4, NOW()), ('I''m Going To Build My Own Theme Park With Blackjack and Hookers', 3, NOW()), ('#SlaneGirl', 3, NOW()), ('Curb Your Enthusiasm Theme Remixes', 2, NOW()), ('You Shall Not Pass!!!', 4, NOW()), ('NOT THE BEES!', 2, NOW()), ('You Cheated Not Only the Game, But Yourself', 4, NOW()), ('Perfectly Timed Photos', 4, NOW()), ('Filthy Casual', 1, NOW()), ('Warhammer 40,000', 1, NOW()), ('I Can''t Even', 1, NOW()), ('Angry German Kid / Keyboard Crasher', 1, NOW()), ('Updog', 4, NOW()), ('Ryan Gosling Won''t Eat His Cereal', 5, NOW()), ('Trainers Hate Him', 1, NOW()), ('IDDQD', 1, NOW()), ('Unnecessary Censorship', 4, NOW()), ('Marge Krumping', 3, NOW()), ('Cr1TiKaL', 4, NOW()), ('You On Kazoo', 4, NOW()), ('Black Twitter', 2, NOW()), ('I Watch It For The Plot', 2, NOW()), ('Actual Sexual Advice Girl', 1, NOW()), ('The FitnessGram Pacer Test', 1, NOW()), ('Dogs', 5, NOW()), ('Wii Fit Girl', 4, NOW()), ('Oh God What Have I Done?', 3, NOW()), ('Get Out Frog / Frogout / Me Obrigue', 5, NOW()), ('The Great Subscriber War / Subscribe to PewDiePie', 4, NOW()), ('Swiggity Swag', 4, NOW()), ('Slow Clap', 2, NOW()), ('Old Man Yells at Cloud', 4, NOW()), ('Wait, That''s Illegal', 1, NOW()), ('The World According To...', 5, NOW()), ('Hurr Durr', 4, NOW()), ('Bianca Devins'' Murder', 3, NOW()), ('Alberto Barbosa', 5, NOW()), ('420', 3, NOW()), ('Senior College Student', 1, NOW()), ('Annoyed Bird', 1, NOW()), ('Emojipasta', 5, NOW()), ('And It''s Gone', 1, NOW()), ('Toto''s "Africa"', 4, NOW()), ('Ctrl+Alt+Del', 2, NOW()), ('"Speak to the Manager" Haircut', 4, NOW()), ('Laundry Room Viking', 5, NOW()), ('Glowing Eyes', 4, NOW()), ('Baby Godfather', 4, NOW()), ('Guess I''ll Die', 5, NOW()), ('Polish Jerry', 2, NOW()), ('Pokémon Sun and Moon', 1, NOW()), ('Crazy Girlfriend Praying Mantis', 3, NOW()), ('I''m At Soup / Soup Store', 4, NOW()), ('It''s More Likely Than You Think', 1, NOW()), ('Disney''s Frozen Whitewashing Controversy', 2, NOW()), ('Guido Jesus', 4, NOW()), ('Weber Cooks', 3, NOW()), ('People Who Thank the Bus Driver', 3, NOW()), ('Jesusland', 3, NOW()), ('Nigerian Scams', 2, NOW()), ('But Can It Run Crysis?', 1, NOW()), ('Kumamon', 3, NOW()), ('Immature High Schoolers', 4, NOW()), ('Jam It In! / You Lost Me', 3, NOW()), ('You''re A Wizard, Harry!', 4, NOW()), ('Serious Cat', 2, NOW()), ('Fake History', 5, NOW()), ('"S" Stands For? / Smile Sweet Sister Sadistic Suprise Service', 5, NOW()), ('The Holders', 1, NOW()), ('The Human Centipede', 3, NOW()), ('Tabby', 5, NOW()), ('LazyTown', 1, NOW()), ('Days Without Sex', 4, NOW()), ('Safety Not Guaranteed', 2, NOW()), ('Sweetie Belle Derelle', 1, NOW()), ('Pony Re-Imaginings', 2, NOW()), ('Forever Resentful Mother', 1, NOW()), ('Trying to Hold a Fart Next to a Cute Girl in Class', 2, NOW()), ('Enderman', 2, NOW()), ('Billie Eilish''s 18th Birthday', 4, NOW()), ('Hentai Haven', 4, NOW()), ('Creepy Katara', 4, NOW()), ('Ben Shapiro DESTROYS Liberals', 1, NOW()), ('Leekspin / Loituma Girl', 5, NOW()), ('Advice God', 3, NOW()), ('Flutterrage / Flutterbitch', 5, NOW()), ('Saturdays Are For The Boys', 4, NOW()), ('Logan Paul', 2, NOW()), ('Endless Eight / Kyon-kun Denwa!', 4, NOW()), ('Vic Mignogna Sexual Harassment Allegations', 2, NOW()), ('It''s Time to Stop', 4, NOW()), ('Nelson the Bull Terrier / Walter', 5, NOW()), ('GET', 4, NOW()), ('Doesn''t Matter, Had Sex', 5, NOW()), ('Rotten.com', 4, NOW()), ('Van-sama / Fercussion', 3, NOW()), ('I AM ERROR', 3, NOW()), ('Let''s Go Bowling', 3, NOW()), ('Sleep Tight Pupper', 4, NOW()), ('69', 3, NOW()), ('Behind The Meme', 2, NOW()), ('Tobuscus', 2, NOW()), ('My Wife''s Son', 1, NOW()), ('Alinity', 5, NOW()), ('Nightcore', 1, NOW()), ('Hampster Dance', 4, NOW()), ('Gee Bill! How Come Your Mom Lets You Eat Two Wieners?', 5, NOW()), ('Tuxedo Winnie the Pooh', 3, NOW()), ('ExHentai / SadPanda', 4, NOW()), ('Skeptical Baby', 5, NOW()), ('Batman', 4, NOW()), ('Food Network Recipe Reviews', 1, NOW()), ('Sosig', 2, NOW()), ('ISIS-chan', 2, NOW()), ('Sminem', 3, NOW()), ('The Amazing Atheist', 4, NOW()), ('Needs More Cowbell', 5, NOW()), ('Mic Drop', 4, NOW()), ('Original Character Do Not Steal', 5, NOW()), ('John Cena', 1, NOW()), ('Monkey Puppet', 1, NOW()), ('Eddy Wally''s "Wow"', 3, NOW()), ('Hi, My Name Is Reggie', 1, NOW()), ('Based Stickman', 5, NOW()), ('Pew Pew', 3, NOW()), ('Ayuwoki', 1, NOW()), ('Drakeposting', 3, NOW()), ('Occupy Wall Street', 5, NOW()), ('Caturday', 3, NOW()), ('A Midsummer Night''s Lewd Dream / 真夏の夜の淫夢', 4, NOW()), ('You''re Gonna Have a Bad Time', 4, NOW()), ('Wii Fit Trainer', 2, NOW()), ('Minor Mistake Marvin', 2, NOW()), ('Facebomb', 3, NOW()), ('Twerking', 5, NOW()), ('NEDM', 5, NOW()), ('CathyMay15', 2, NOW()), ('Involuntary Celibacy / Incel', 2, NOW()), ('Hungry Kim Jong-un', 5, NOW()), ('Gay Test', 1, NOW()), ('Patrick Bateman With an Axe', 3, NOW()), ('Keanu Reeves', 4, NOW()), ('I Never Asked For This', 4, NOW()), ('Don''t Ask Who Joe Is / Joe Mama', 5, NOW()), ('The Weighted Companion Cube', 4, NOW()), ('Tom Preston', 1, NOW()), ('Layers of Irony', 2, NOW()), ('Nuke It From Orbit', 3, NOW()), ('How About I Slap Your Shit', 5, NOW()), ('Three Seashells', 5, NOW()), ('Cumbox', 5, NOW()), ('Snails Sleep 3', 3, NOW()), ('And In That Moment I Swear We Were Infinite', 4, NOW()), ('Depression Dog', 3, NOW()), ('They Had Us In the First Half', 3, NOW()), ('Delete This Nephew', 3, NOW()), ('Wise Confucius', 1, NOW()), ('Pancake Bunny', 4, NOW()), ('No God, Please No!', 2, NOW()), ('One-Punch Man', 4, NOW()), ('Oprah''s "You Get a Car"', 1, NOW()), ('Sleeping Shaq', 4, NOW()), ('Going to the Store', 2, NOW()), ('TheReportOfTheWeek', 3, NOW()), ('Welcome to The Internet', 3, NOW()), ('Photo Fads', 4, NOW()), ('Crossed-Out Pride Flag Emoji Combination', 5, NOW()), ('When U Mom Com Home And Make Hte Spagheti', 4, NOW()), ('I Too Like to Live Dangerously', 3, NOW()), ('ProjektMelody', 2, NOW()), ('Me Me Big Boy', 1, NOW()), ('Flat Is Justice / Delicious Flat Chest', 3, NOW()), ('Epic Handshake', 3, NOW()), ('1337 speak', 3, NOW()), ('Epic Fail Guy', 4, NOW()), ('We Did It Reddit!', 5, NOW()), ('Why Would You Say Something So Controversial Yet So Brave?', 2, NOW()), ('Fallout', 3, NOW()), ('4chan Word Filter', 4, NOW()), ('Oh Joy Sex Toy''s "Cuck" Comic', 3, NOW()), ('Why So Serious?', 3, NOW()), ('Ordinary Muslim Man', 4, NOW()), ('You Are NOT The Father!', 5, NOW()), ('Snape Kills Dumbledore', 2, NOW()), ('Pokemon Lost Silver', 3, NOW()), ('The Legend of Zelda', 5, NOW()), ('OMG Cat', 4, NOW()), ('Kanye West', 2, NOW()), ('Be Strong For Mother', 1, NOW()), ('Argentina Is White', 1, NOW()), ('But Our Princess is in Another Castle!', 5, NOW()), ('Oh God How Did This Get Here I Am Not Good With Computer', 4, NOW()), ('Nope', 3, NOW()), ('Shit People Say', 1, NOW()), ('What Cleopatra May Have Looked Like', 5, NOW()), ('Numa Numa', 2, NOW()), ('Hold My Beer', 4, NOW()), ('Stand Cries / ORA ORA ORA / MUDA MUDA MUDA', 5, NOW()), ('In The Way Guy', 5, NOW()), ('High Impact Sexual Violence', 2, NOW()), ('Ram Ranch', 5, NOW()), ('Short Tyler1', 2, NOW()), ('Featuring Dante From The Devil May Cry Series', 3, NOW()), ('Limecat', 3, NOW()), ('Ultimate Insult Man', 4, NOW()), ('Indonesian Reporting Commission Facebook Takedowns', 5, NOW()), ('Pink Shirt Guy', 4, NOW()), ('Foul Bachelorette Frog', 5, NOW()), ('Wat Do?', 4, NOW()), ('Kim Jong-un', 5, NOW()), ('Internet Tough Guy', 3, NOW()), ('"i lik the bred"', 3, NOW()), ('Scumbag Hat', 3, NOW()), ('Sans', 2, NOW()), ('Don''t Look at Them Ricky!', 3, NOW()), ('John Lennon The Absolute Madman', 4, NOW()), ('Nic Cage as Everyone', 2, NOW()), ('Inappropriate Timing Bill Clinton', 4, NOW()), ('Doxing', 1, NOW()), ('Salad Fingers', 5, NOW()), ('HABEEB IT', 3, NOW()), ('Privilege Denying Dude', 4, NOW()), ('Fat Yoshi', 1, NOW()), ('Amouranth', 3, NOW()), ('h3h3productions', 2, NOW()), ('Doctor Who', 4, NOW()), ('Desk Flip', 5, NOW()), ('Massimo D''Alema', 1, NOW()), ('I Throw My Hands Up In The Air Sometimes Saying Ayo', 4, NOW()), ('Roses Are Red, Violets Are Blue', 1, NOW()), ('Jesus Take The Wheel', 5, NOW()), ('Over-Educated Problems', 1, NOW()), ('I Can Be Your Angle Or Yuor Devil', 5, NOW()), ('But It''s Honest Work', 1, NOW()), ('Kyle', 5, NOW()), ('Cicada Block', 4, NOW()), ('& Knuckles', 2, NOW()), ('Has Science Gone Too Far?', 1, NOW()), ('And Then I Said', 1, NOW()), ('Calm Your Tits', 1, NOW()), ('30-50 Feral Hogs', 1, NOW()), ('PS3 Has No Games', 5, NOW()), ('I''m The Juggernaut, Bitch!', 2, NOW()), ('Anime Tiddies', 1, NOW()), ('Gordon Ramsay''s Lamb Sauce', 3, NOW()), ('Pokémon Sword and Shield', 5, NOW()), ('England Is My City', 3, NOW()), ('Nanomachines, Son', 3, NOW()), ('Noob Tube', 4, NOW()), ('Extra Thicc', 1, NOW()), ('Who Would Win?', 5, NOW()), ('Crabcore', 5, NOW()), ('Horse Armor', 4, NOW()), ('Fortnite', 2, NOW()), ('Maru the Cat', 4, NOW()), ('Shamefur Dispray', 3, NOW()), ('Free Helicopter Rides', 2, NOW()), ('Skipping Leg Day', 5, NOW()), ('Star Wars Kid', 4, NOW()), ('Fully Automated Luxury Gay Space Communism', 1, NOW()), ('Tentaquil', 1, NOW()), ('Dancing Stormtrooper', 5, NOW()), ('Bazinga', 1, NOW()), ('Horny Samus', 3, NOW()), ('Dinner with Waifu / Otaku Dates', 5, NOW()), ('Professor Oak', 3, NOW()), ('Wow Queen, You''re So Beautiful', 3, NOW()), ('Free Candy Van', 3, NOW()), ('Shit That Siri Says', 5, NOW()), ('Scottish Pokémon Trainer', 2, NOW()), ('So I Got That Goin'' For Me, Which is Nice', 3, NOW()), ('The Old Reddit Switch-a-roo', 4, NOW()), ('Who Is She? (Vine)', 2, NOW()), ('Evil Duolingo Owl', 1, NOW()), ('Duane!', 1, NOW()), ('Sweet Home Alabama', 1, NOW()), ('Overconfident Alcoholic', 2, NOW()), ('I Made You a Cookie, But I Eated It', 2, NOW()), ('Panty and Stocking', 5, NOW()), ('Kyle Punches Drywall', 1, NOW()), ('How People View Me After I Say I''m...', 4, NOW()), ('I''ll Take a Potato Chip and EAT IT!', 3, NOW()), ('Gaston', 3, NOW()), ('A Small Loan of a Million Dollars', 4, NOW()), ('Deepfakes', 2, NOW()), ('Infomercial Fails', 5, NOW()), ('Mafia City', 4, NOW()), ('Monster Girl Quest', 2, NOW()), ('"They Ask You How You Are and You Say That You''re Fine"', 5, NOW()), ('Internet Fight', 1, NOW()), ('Ha Ha Ha, No', 5, NOW()), ('Woomy', 5, NOW()), ('I Swear On Me Mum', 2, NOW()), ('MAD', 5, NOW()), ('Leonardo DiCaprio''s Oscar', 1, NOW()), ('You Have Died of Dysentery', 1, NOW()), ('At First I Was Like...', 2, NOW()), ('"Come On, It''s 2015" / Current Year', 4, NOW()), ('NONONONO Cat', 4, NOW()), ('Starbucks Drake Hands', 4, NOW()), ('Surreal Memes', 4, NOW()), ('Waluigi', 2, NOW()), ('Staring Hamster', 5, NOW()), ('I find your lack of faith disturbing', 5, NOW()), ('Basic Bitch', 1, NOW()), ('Forced Meme', 4, NOW()), ('Pleb', 5, NOW()), ('Internet Is Leaking', 4, NOW()), ('DJ Khaled', 2, NOW()), ('Hypnotoad', 1, NOW()), ('Who''s That Pokémon?', 5, NOW()), ('They Did Surgery On a Grape', 5, NOW()), ('Berserk', 5, NOW()), ('That''s a Penis', 3, NOW()), ('Sturgeon Face', 2, NOW()), ('The Almighty Loaf', 4, NOW()), ('Bitch Lasagna', 3, NOW()), ('On All Levels Except Physical, I am a Wolf', 2, NOW()), ('Autism', 3, NOW()), ('Otaku Test', 3, NOW()), ('Cosplay', 4, NOW()), ('Onii-chan', 3, NOW()), ('Goose on Fire / Fire Duck', 2, NOW()), ('Uvuvwevwevwe', 4, NOW()), ('Creepy Garfield', 1, NOW()), ('Flying Lawnmower', 4, NOW()), ('Hey Its Me Ur Brother', 2, NOW()), ('Engrish', 3, NOW()), ('Grimdark', 2, NOW()), ('TriHard', 3, NOW()), ('Bart, Get Out! I''m Piss!', 1, NOW()), ('Imagefap Trolling', 1, NOW()), ('Dramatic Chipmunk', 1, NOW()), ('Captain Hydra / Captain America "Hail Hydra" Edits', 5, NOW()), ('Just Waiting For A Mate', 1, NOW()), ('That''s The Joke', 4, NOW()), ('Glenn Beck Rape & Murder Hoax', 2, NOW()), ('I Can''t Fap to This', 4, NOW()), ('VTEC just kicked in, yo!', 5, NOW()), ('Scene Wolf', 3, NOW()), ('Javert Reaction GIFs', 5, NOW()), ('Social Justice Blogging', 3, NOW()), ('September 11th, 2001 Attacks', 3, NOW()), ('Well Meme''d', 5, NOW()), ('Say Sike Right Now', 1, NOW()), ('Club Penguin', 1, NOW()), ('The End of the World', 3, NOW()), ('Crack Kid', 5, NOW()), ('A Potato Flew Around My Room', 1, NOW()), ('Oh My God, Karen, You Can’t Just Ask Someone Why They''re White', 4, NOW()), ('McNuggies', 5, NOW()), ('Tsundere', 3, NOW()), ('Nyanyanyanyanyanyanya!', 5, NOW()), ('I Whip My Hair Back and Forth', 4, NOW()), ('Steve Jobs vs. Bill Gates', 5, NOW()), ('One Finger Selfie Challenge', 5, NOW()), ('The Scroll of Truth', 1, NOW()), ('Big Bill Hell''s', 5, NOW()), ('No, This Is Patrick', 1, NOW()), ('4chan Drinking Game Cards', 3, NOW()), ('You Are Now Breathing Manually', 3, NOW()), ('Daily Struggle', 4, NOW()), ('Fluffy Ponies', 3, NOW()), ('Lolrus', 1, NOW()), ('Captain Obvious', 3, NOW()), ('Birds with Arms', 5, NOW()), ('Vore', 2, NOW()), ('1 Lunatic 1 Ice Pick', 3, NOW()), ('Bait and Switch Videos / Pictures', 5, NOW()), ('Sopa de Macaco / Uma Delicia', 1, NOW()), ('Priority Peter', 1, NOW()), ('Oblivious Suburban Mom', 4, NOW()), ('My Disappointment Is Immeasurable', 3, NOW()), ('Sweet Jesus, Pooh! That''s Not Honey!', 5, NOW()), ('Get In The Fucking Robot Shinji', 4, NOW()), ('Name a More Iconic Duo', 5, NOW()), ('Albert Einstein Copypasta', 3, NOW()), ('Big, If True', 4, NOW()), ('Madara Uchiha Copypasta', 1, NOW()), ('Watermelon Headshot', 2, NOW()), ('It''s Just a Prank', 1, NOW()), ('Your Ecards / Someecards.com', 2, NOW()), ('Mitt Romney', 2, NOW()), ('Fluttercry / Characters Watching Tv', 1, NOW()), ('Yaass', 2, NOW()), ('Roller Coaster Chess', 2, NOW()), ('Beep Beep Lettuce', 4, NOW()), ('Mike Inel / Manyakis', 5, NOW()), ('The Worst Trade Deal', 2, NOW()), ('TikTok', 3, NOW()), ('Be Like Bill', 5, NOW()), ('Just Little Things', 4, NOW()), ('"Pen Pineapple Apple Pen"', 2, NOW()), ('That Is Mahogany', 5, NOW()), ('The Hacker Known as 4Chan', 3, NOW()), ('Confused Mr. Krabs', 5, NOW()), ('Gratata', 1, NOW()), ('Steve Rambo Videos / "Oh Shit, I''m Sorry"', 4, NOW()), ('Megami Tensei - Persona', 1, NOW()), ('Mikey Wilson (Middle Finger kid)', 4, NOW()), ('Epstein Didn''t Kill Himself', 3, NOW()), ('Lonelygirl15', 5, NOW()), ('Even Speedwagon Is Afraid!', 2, NOW()), ('Picardía', 5, NOW()), ('Net Neutrality', 3, NOW()), ('Somebody Once Told Me', 5, NOW()), ('The Situation Room', 4, NOW()), ('Dancing Hot Dog Snapchat Filter', 5, NOW()), ('Operation Darknet', 3, NOW()), ('Kill Me', 2, NOW()), ('Who Killed Hannibal?', 4, NOW()), ('Espurr''s Stare', 1, NOW()), ('Slaps Chicken at 3275.95 MPH', 2, NOW()), ('Ebin', 5, NOW()), ('I Want to Cum Inside Rainbow Dash', 5, NOW()), ('Look At Me, I''m The Captain Now', 4, NOW()), ('*Hits Blunt*', 1, NOW()), ('Sweden Yes', 5, NOW()), ('Sauce', 2, NOW()), ('Darth Vader''s Noooooooooooo!', 2, NOW()), ('Oh, Worm?', 5, NOW()), ('The Flying Spaghetti Monster', 2, NOW()), ('Shit Just Got Real', 5, NOW()), ('This Is Snek', 1, NOW()), ('Baton Roue', 2, NOW()), ('How To Draw an Owl', 2, NOW()), ('All Star', 3, NOW()), ('Dark Knight 4 Pane', 1, NOW()), ('Star vs. the Forces of Evil', 1, NOW()), ('Just Go On The Internet and Tell Lies', 3, NOW()), ('7 Grand Dad', 1, NOW()), ('Lurk Moar', 2, NOW()), ('Fake and Gay', 1, NOW()), ('Kitler', 4, NOW()), ('VideoGameDunkey', 3, NOW()), ('Operation Payback', 1, NOW()), ('Oh Baby, a Triple!', 4, NOW()), ('Gar', 2, NOW()), ('DansGame', 3, NOW()), ('Osama Bin Laden''s Death', 4, NOW()), ('Shit, I''m Late For School', 1, NOW()), ('Hello My Future Girlfriend', 3, NOW()), ('France Is Bacon', 5, NOW()), ('Get In The Bag, Nebby', 2, NOW()), ('Scout Face', 5, NOW()), ('Dedotated Wam', 1, NOW()), ('Perfection', 1, NOW()), ('Corona-chan', 3, NOW()), ('Turn 360 Degrees and Walk Away', 4, NOW()), ('Weird Twitter', 3, NOW()), ('You Came to the Wrong Neighborhood', 1, NOW()), ('Smol', 3, NOW()), ('Auto-Tune', 3, NOW()), ('Press X to Jason', 3, NOW()), ('Jesus', 3, NOW()), ('Rip and Tear', 3, NOW()), ('Something Awful', 2, NOW()), ('That Awkward Moment', 4, NOW()), ('Iridocyclitis', 3, NOW()), ('Stawp it, Rahn!', 5, NOW()), ('Snu-Snu', 5, NOW()), ('Despite Being Only 13 Percent of the Population', 4, NOW()), ('I''m About to End This Man''s Whole Career', 1, NOW()), ('Sheeeit', 3, NOW()), ('No Way Fag', 3, NOW()), ('Coaxed Into a Snafu', 2, NOW()), ('Pajama Kid', 4, NOW()), ('Netorare', 1, NOW()), ('Kai the Hatchet-Wielding Hitchhiker', 1, NOW()), ('Internet Explorer', 3, NOW()), ('Stop Bullying Comics', 2, NOW()), ('Listen Here You Little Shit', 1, NOW()), ('I Hope You Step on a LEGO', 4, NOW()), ('Google Search Suggestions', 1, NOW()), ('Solo Jazz Pattern', 4, NOW()), ('Kevin Durant MVP Speech', 5, NOW()), ('ISIS / Daesh', 3, NOW()), ('Ooh Mister Darcy', 1, NOW()), ('Hey Man You See That Guy Over There', 3, NOW()), ('Furry Scale', 5, NOW()), ('I''m OK With This', 1, NOW()), ('Y''all Got Anymore of...', 4, NOW()), ('Taiwan #1', 5, NOW()), ('#CuttingForBieber', 3, NOW()), ('Paul Blart: Mall Cop', 5, NOW()), ('Mishapocalypse', 4, NOW()), ('XD', 4, NOW()), ('I Have The High Ground', 2, NOW()), ('Jesus', 4, NOW()), ('Cheezburger', 2, NOW()), ('Heart-Shaped Boob Challenge', 3, NOW()), ('Rush B', 3, NOW()), ('I Wish I Was At Home', 3, NOW()), ('Pineapple on Pizza Debate', 5, NOW()), ('MaximilianMus "Oh Yeah Yeah"', 2, NOW()), ('Walt Jr. Loves Breakfast', 4, NOW()), ('I Am The Table', 3, NOW()), ('Awaken, My Masters', 4, NOW()), ('Pizza is a Vegetable', 4, NOW()), ('Noot Noot', 1, NOW()), ('Swearing on a Christian Server', 5, NOW()), ('Karma Is a Bitch', 3, NOW()), ('Lemme Smash', 2, NOW()), ('Splat Tim', 5, NOW()), ('We Need To Go Deeper', 3, NOW()), ('eHarmony Video Bio', 3, NOW()), ('Thinking With Portals', 1, NOW()), ('Misinformationalized / You Hear About Video Games?', 5, NOW()), ('DURR PLANT', 2, NOW()), ('First', 3, NOW()), ('Dragon Ball', 1, NOW()), ('Me, An Intellectual', 5, NOW()), ('What If Zelda Was A Girl?', 4, NOW()), ('The Sneaky Hat', 4, NOW()), ('Pretty Girls, Ugly Faces', 2, NOW()), ('It''s Simple, We Kill The Batman', 5, NOW()), ('Another One', 5, NOW()), ('Trivago Guy', 5, NOW()), ('Gru''s Plan', 5, NOW()), ('Y U Do Dis?', 4, NOW()), ('Beyblades eBay Auction', 2, NOW()), ('This is someone dying while having an MRI scan.', 2, NOW()), ('We Can''t Stop Here, This is Bat Country', 5, NOW()), ('@Wendys', 4, NOW()), ('Please Disconnect The Bluetooth Speaker', 3, NOW()), ('UNITINU / UNITIИU', 5, NOW()), ('Spengbab', 5, NOW()), ('Put Some Respeck on My Name', 3, NOW()), ('The Ratio', 4, NOW()), ('Electronic Entertainment Expo (E3)', 5, NOW()), ('Bush Did 9/11', 4, NOW()), ('Michelle Jenneke''s Warm Up Dance', 5, NOW()), ('How-Old.net', 3, NOW()), ('The Simpsons', 2, NOW()), ('No Homo', 2, NOW()), ('PFFFTTTCHH', 1, NOW()), ('Ugly Children Lawsuit Hoax', 4, NOW()), ('Facebook University Meme Pages', 3, NOW()), ('Eccentric Witness Lady / Backin'' Up', 1, NOW()), ('Fake Pokémon Battles', 4, NOW()), ('Sherlock', 2, NOW()), ('MySpace Angles', 5, NOW()), ('The Floor is Lava / Hot Lava Game', 2, NOW()), ('You Laugh, You Lose', 4, NOW()), ('Rawr XD', 4, NOW()), ('Taylor Swift', 4, NOW()), ('David Kalac''s 4chan Murder Confession', 5, NOW()), ('Half-Life', 2, NOW()), ('Greater Internet Fuckwad Theory', 4, NOW()), ('Angry Dog Noises', 4, NOW()), ('I''m Gonna Do What''s Called a Pro Gamer Move', 2, NOW()), ('Internet Death Hoaxes', 4, NOW()), ('Ali-A''s Intro', 5, NOW()), ('¿Quieres?', 1, NOW()), ('Cooking by the Book', 5, NOW()), ('Lil Bub', 4, NOW()), ('Are Ya Winning, Son?', 2, NOW()), ('I Want to Believe', 2, NOW()), ('Most People Rejected His Message', 3, NOW()), ('Hoenn Confirmed', 1, NOW()), ('Figwit', 4, NOW()), ('Turn Up the Volume', 5, NOW()), ('"Copy That"', 5, NOW()), ('Welcome to Chili''s', 3, NOW()), ('niconico', 1, NOW()), ('I Didn''t Get No Sleep ''Cause Of Ya''ll', 5, NOW()), ('Stannis the Mannis', 1, NOW()), ('Stupid Sexy Flanders', 4, NOW()), ('Drunk Baby', 3, NOW()), ('Into The Trash It Goes / Opinion Discarded', 5, NOW()), ('Binders Full of Women', 4, NOW()), ('Steam Sales', 1, NOW()), ('Antonio Banderas'' Laptop Reaction', 3, NOW()), ('LOL', 1, NOW()), ('With Great Power Comes Great Responsibility', 3, NOW()), ('NYC Cardstand Earthcam Trolling / "I''ll Be There in 30 Minutes"', 1, NOW()), ('"Bitch I Look Like Goku"', 2, NOW()), ('He Does It for Free', 5, NOW()), ('Jazz Music Stops', 5, NOW()), ('>tfw no gf', 1, NOW()), ('Internet Slang', 4, NOW()), ('Wolverine Crush', 3, NOW()), ('Nyanners', 2, NOW()), ('Like Skyrim With Guns', 5, NOW()), ('Wheelchair Drake', 3, NOW()), ('WataMote / It''s Not My Fault That I''m Not Popular', 2, NOW()), ('Abandon Thread', 4, NOW()), ('Arthur', 4, NOW()), ('Cupcake Dog', 1, NOW()), ('Free Bleeding', 2, NOW()), ('Have You Ever Been So Angry That You...', 1, NOW()), ('BRODYQUEST', 1, NOW()), ('Koichi Pose', 3, NOW()), ('They Took Our Jobs!', 3, NOW()), ('Brotherman Bill', 2, NOW()), ('Trayvon Martin''s Death', 3, NOW()), ('Brazilian Slutwalk Flasher', 3, NOW()), ('Gekyume''s Circumcision', 1, NOW()), ('The Pumpkin Dance', 4, NOW()), ('Chadwardenn', 1, NOW()), ('Breaking Bad', 1, NOW()), ('Emily Faked Cancer', 5, NOW()), ('Ear Rape', 2, NOW()), ('Dubstep', 1, NOW()), ('Snickers "Hungry?" Commercials', 4, NOW()), ('RCDart', 2, NOW()), ('Me Explaining to My Mom', 3, NOW()), ('Homer Simpson Backs Into Bushes', 1, NOW()), ('Mr. Worldwide', 4, NOW()), ('Website Anthropomorphism', 4, NOW()), ('Mehmet My Son', 5, NOW()), ('Mods Are Asleep', 2, NOW()), ('Modern Problems Require Modern Solutions', 5, NOW()), ('The Enigma of Amigara Fault / This Is My Hole', 3, NOW()), ('Duckroll', 1, NOW()), ('Woke', 3, NOW()), ('Imgur', 1, NOW()), ('Webcomics', 2, NOW()), ('Country Girls Make Do', 3, NOW()), ('Vinesauce', 5, NOW()), ('Lolicon', 5, NOW()), ('Simp', 3, NOW()), ('I Forced a Bot', 2, NOW()), ('Michael Rosen', 5, NOW()), ('Choo Choo Motherfucker', 2, NOW()), ('Ran Off Da Plug Twice', 2, NOW()), ('Waiting for OP', 5, NOW()), ('The Nuzlocke Challenge', 2, NOW()), ('Painis Cupcake (Penis Cupcake)', 4, NOW()), ('Kim Jong Il Looking At Things', 2, NOW()), ('Plebcomics', 3, NOW()), ('Impossible is Nothing', 1, NOW()), ('Beanos', 3, NOW()), ('I;m Thinking About Thos Beans', 3, NOW()), ('Over 9000 Penises', 1, NOW()), ('Childhood Enhanced', 3, NOW()), ('When Did This Become Hotter Than This', 1, NOW()), ('Objection!', 2, NOW()), ('Disgustang', 4, NOW()), ('Noice', 2, NOW()), ('LeafyIsHere', 1, NOW()), ('Ironic Memes', 4, NOW()), ('Cool Dog', 5, NOW()), ('Totally Looks Like / Separated At Birth', 3, NOW()), ('Vomit-chan', 3, NOW()), ('Pokémon GO', 4, NOW()), ('Dick Neck', 3, NOW()), ('Stop It Son, You Are Doing Me A Frighten', 3, NOW()), ('The Nutshack', 1, NOW()), ('G.I. Joe PSAs', 2, NOW()), ('Drake', 5, NOW()), ('Bernie Sanders', 2, NOW()), ('True Capitalist Radio', 1, NOW()), ('I''m Commander Shepard', 3, NOW()), ('Captain Hindsight', 4, NOW()), ('DeviantArt', 3, NOW()), ('Salil Sawarim / Saleel al-Sawarim', 2, NOW()), ('More Dakka', 2, NOW()), ('Voiceoverpete', 2, NOW()), ('Redneck Randal', 5, NOW()), ('Horse_ebooks', 3, NOW()), ('Let Me In', 5, NOW()), ('FunnyJunk', 2, NOW()), ('Check Out My Mixtape', 1, NOW()), ('MOAR', 3, NOW()), ('I''ve Made a Huge Mistake', 3, NOW()), ('Nyoro~n', 1, NOW()), ('Because of Parkinson''s', 4, NOW()), ('Outstanding Move / Maravillosa Jugada', 2, NOW()), ('Poe''s Law', 5, NOW()), ('Cinemagraphs', 4, NOW()), ('Ideal GF', 1, NOW()), ('Kamina Glasses', 3, NOW()), ('Hold My Flower', 5, NOW()), ('We Irritating', 1, NOW()), ('Fermi Paradox', 3, NOW()), ('Follow The Damn Train, CJ!', 5, NOW()), ('Sonic For Real Justice', 5, NOW()), ('Mike Wazowski-Sulley Face Swap', 4, NOW()), ('Tails Gets Trolled', 5, NOW()), ('Floating Chinese Government Officials', 2, NOW()), ('Bitches Don''t Know', 1, NOW()), ('Skidaddle Skidoodle Your Dick Is Now a Noodle', 5, NOW()), ('7-day No Fap Challenge', 2, NOW()), ('Floral Shoppe (フローラルの専門店)', 3, NOW()), ('200% Mad', 4, NOW()), ('"Why Is the FBI Here?"', 5, NOW()), ('Smitty Werbenjagermanjensen', 5, NOW()), ('The Warriors Blew a 3-1 Lead', 5, NOW()), ('I Lived Bitch', 5, NOW()), ('Moon''s Haunted', 5, NOW()), ('I Will Now Buy Your Game', 5, NOW()), ('The Miz Girl', 2, NOW()), ('Triple Parentheses / (((Echo)))', 1, NOW()), ('Gag Names', 1, NOW()), ('Vibrating GIFs', 2, NOW()), ('Back to the Future Day', 2, NOW()), ('Never Say No to Panda', 1, NOW()), ('Carlos', 2, NOW()), ('Do You Think This Is a Game?', 4, NOW()), ('Masahiro Sakurai', 1, NOW()), ('Down With Cis', 3, NOW()), ('Inhaling Seagull', 3, NOW()), ('We''ll bang, OK?', 2, NOW()), ('Meme Economy', 5, NOW()), ('Come to Brazil', 4, NOW()), ('The Walking Dead', 1, NOW()), ('Lana Del Rey', 5, NOW()), ('Stoner Comics / Tree Comics', 1, NOW()), ('Me IRL', 1, NOW()), ('Garry''s Mod', 2, NOW()), ('Cockmongler', 4, NOW()), ('Story Time Jesus', 3, NOW()), ('YouTube Comment Memes', 4, NOW()), ('Twilight Sparkle Alicorn Controversy', 3, NOW()), ('Miss Kobayashi''s Dragon Maid', 3, NOW()), ('Sakurafish / Every Day Until You Like It', 1, NOW()), ('Condom Challenge', 5, NOW()), ('CD Emotes', 3, NOW()), ('Gardevoir', 5, NOW()), ('I''m You, But Stronger', 1, NOW()), ('Scumbag Brain', 3, NOW()), ('#NotMyRodrick', 2, NOW()), ('Taxmaster', 4, NOW()), ('They''re Eating Her!', 3, NOW()), ('Leave Britney Alone', 2, NOW()), ('Exodia the Forbidden One', 5, NOW()), ('This is delicious cake', 2, NOW()), ('Ice Cream Cone Guy', 2, NOW()), ('Vagineer', 1, NOW()), ('Casey Anthony Trial', 5, NOW()), ('OMG RUN Guy / Tampon Head Rage Face', 1, NOW()), ('Sco Pa Tu Manaa', 1, NOW()), ('My Brand', 5, NOW()), ('Meme of the Month Calendars', 3, NOW()), ('A Man Has Fallen Into the River in Lego City', 3, NOW()), ('Jaden Smith', 5, NOW()), ('McDonald''s Mulan Szechuan Sauce', 5, NOW()), ('Neon Genesis Evangelion', 5, NOW()), ('Dog Poo Girl', 2, NOW()), ('I Want My Hat Back', 1, NOW()), ('Sakuya''s breast padding', 5, NOW()), ('Throwback Thursday', 3, NOW()), ('Megalovania', 5, NOW()), ('They''re The Same Picture', 3, NOW()), ('They Played Us Like A Damn Fiddle!', 4, NOW()), ('YouTube Automatic Caption FAIL', 2, NOW()), ('Nice Meme', 2, NOW()), ('Dawn of the Final Day', 3, NOW()), ('The Legend of Zelda Timeline Theories', 1, NOW()), ('Nicki Minaj', 4, NOW()), ('Elf on the Shelf', 5, NOW()), ('Anthony Fantano', 2, NOW()), ('But Can You Do This?', 1, NOW()), ('George Takei Calls Out Anti-Gay School Board Member', 3, NOW()), ('Sky King / Richard Russell', 1, NOW()), ('Miss Me With That Gay Shit', 2, NOW()), ('Donglegate / Adria Richards', 2, NOW()), ('Spirit Pokémon', 5, NOW()), ('Roblox', 4, NOW()), ('Headless Mami', 2, NOW()), ('You Forgot Poland', 1, NOW()), ('Bottom Text', 5, NOW()), ('Vsauce', 2, NOW()), ('I Have Drawn You', 3, NOW()), ('What''s Wrong Big Boy?', 1, NOW()), ('Milo Yiannopoulos', 3, NOW()), ('Krispy Kreme / Froggy Fresh', 1, NOW()), ('I Fear No Man', 5, NOW()), ('Bitches Be Like', 5, NOW()), ('I''m Really Feeling It', 5, NOW()), ('Monkey Haircut', 1, NOW()), ('Why Are You Booing Me? I''m Right', 3, NOW()), ('Cancer', 4, NOW()), ('University of Maryland Sorority E-Mail Rant', 5, NOW()), ('Moe', 4, NOW()), ('Human Bean', 4, NOW()), ('Goblin Slayer', 5, NOW()), ('Evil Toddler', 2, NOW()), ('Can I Be Drawn Better?', 4, NOW()), ('The Gendo Pose', 3, NOW()), ('I Hope Mom and Dad Don''t Find Out', 2, NOW()), ('Pot of Greed', 4, NOW()), ('WHARRGARBL / Sprinkler Dog', 3, NOW()), ('Alt-right', 4, NOW()), ('Tebowing', 4, NOW()), ('Ted Williams / The Golden Voice', 1, NOW()), ('McDonald''s "Ran Ran Ru" Commercial', 1, NOW()), ('Open Eye Crying Laughing Emoji', 2, NOW()), ('Subway Sandwich Porn', 3, NOW()), ('Weaponized Autism', 2, NOW()), ('3DPD', 5, NOW()), ('Dr DisRespect', 3, NOW()), ('That''s just like, your opinion, man', 5, NOW()), ('Surprised Kitty', 2, NOW()), ('Happy Gary', 3, NOW()), ('Paula Deen Riding Things', 1, NOW()), ('Hot Dog Legs', 2, NOW()), ('Holy Shit It''s a Dinosaur!', 1, NOW()), ('Grape Lady', 4, NOW()), ('Fistful of Yen', 5, NOW()), ('Squart Guy', 1, NOW()), ('Sir, This Is an Arby''s', 4, NOW()), ('Folgers "Brother and Sister" Commercial', 4, NOW()), ('Who Killed Captain Alex?', 2, NOW()), ('fgsfds', 1, NOW()), ('Are You Not Entertained?', 5, NOW()), ('Shitlord', 3, NOW()), ('Cone-ing', 3, NOW()), ('Yamero', 5, NOW()), ('Single Topic Blogs', 3, NOW()), ('Angery', 3, NOW()), ('Squidward Fad', 2, NOW()), ('Enjoy Your AIDS', 1, NOW()), ('Vancouver Riot Kiss', 3, NOW()), ('Who''s Awesome? You''re Awesome! / Sos Groso, Sabelo!', 3, NOW()), ('Oh God! I Can See Forever!', 3, NOW()), ('Crossguard Lightsaber', 1, NOW()), ('Cyanide and Happiness', 3, NOW()), ('When Mama Isn''t Home', 4, NOW()), ('Cheems', 3, NOW()), ('Joe Biden', 3, NOW()), ('A Weapon to Surpass Metal Gear', 1, NOW()), ('Markiplier', 4, NOW()), ('Have You Ever Had A Dream Like This?', 2, NOW()), ('2 Guys 1 Fish', 2, NOW()), ('The Floor Is...', 5, NOW()), ('Shitty Charmander', 5, NOW()), ('Tonight''s Big Loser', 4, NOW()), ('Scary Maze Game', 5, NOW()), ('Lewd', 3, NOW()), ('"Millennials Are Killing..."', 4, NOW()), ('Beta Uprising', 1, NOW()), ('Don''t Tase Me Bro!', 4, NOW()), ('Pickup Line Panda', 3, NOW()), ('Chinese Cartoons', 4, NOW()), ('Lauren Phillips Lifting Alice Merchesi', 5, NOW()), ('World of Warcraft', 4, NOW()), ('Team Siren', 2, NOW()), ('Long Boy', 4, NOW()), ('How''d It Get Burned?', 5, NOW()), ('Covfefe', 2, NOW()), ('MissingNo.', 5, NOW()), ('Deadass', 5, NOW()), ('Damn Nature, You Scary!', 4, NOW()), ('Attack on Titan Opening Credits Parodies', 3, NOW()), ('Soraya Montenegro', 1, NOW()), ('Friendship Arsenal', 4, NOW()), ('Once-ler', 1, NOW()), ('Bertstrips', 2, NOW()), ('Mimikyu', 4, NOW()), ('Wanna Sprite Cranberry', 3, NOW()), ('The Emoji Movie', 1, NOW()), ('This Is So Sad', 1, NOW()), ('Vidya', 3, NOW()), ('Red Equal Sign', 2, NOW()), ('Mini Keanu Reeves', 1, NOW()), ('xkcd', 5, NOW()), ('What If We Kissed In', 5, NOW()), ('Bully Hunters', 1, NOW()), ('50 Cent Drive By', 3, NOW()), ('That Fucking Cat', 2, NOW()), ('Stop Trying to Make Fetch Happen', 1, NOW()), ('Internet Hate Machine', 1, NOW()), ('Dammit Jim, I''m a Doctor, Not a X', 5, NOW()), ('Andy'' Sixx''s Log of Shit', 5, NOW()), ('Danbooru', 3, NOW()), ('The Great Toilet Paper Debate', 3, NOW()), ('The Goggles Do Nothing!', 3, NOW()), ('Miss Teen USA South Carolina', 1, NOW()), ('Rappin'' for Jesus', 3, NOW()), ('Ridley is Too Big', 2, NOW()), ('Curb Your Enthusiasm', 1, NOW()), ('Billie Eilish''s Body Reveal Tour Video', 1, NOW()), ('MOM HOLY FUCK', 2, NOW()), ('Lemon Stealing Whores', 2, NOW()), ('Anarcho-Capitalism', 4, NOW()), ('Nickelback''s "Photograph"', 5, NOW()), ('Squidward Dab', 5, NOW()), ('Yesn''t', 3, NOW()), ('Grand Theft Auto', 1, NOW()), ('Drinking Out of Cups', 4, NOW()), ('Sonic the Hedgehog (2020 Film)', 4, NOW()), ('Art Student Owl', 4, NOW()); update memes set status = 'retired' where id < 1000; update memes set status = 'new' where id > 2000;
SQL
5
saendu/supabase
schemas/memes/_init.sql
[ "Apache-2.0" ]
# Copyright 1999-2019 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit cargo git-r3 CARGO_FETCH_CRATES=yes DESCRIPTION="Cardano CLI" HOMEPAGE="https://github.com/input-output-hk/cardano-cli" EGIT_REPO_URI="https://github.com/input-output-hk/cardano-cli.git" EGIT_COMMIT="v${PV}" EGIT_SUBMODULES=( '*' ) RESTRICT="mirror" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="dev-vcs/git" RDEPEND="${DEPEND}"
Gentoo Ebuild
3
gentoo/gentoo-rust
net-misc/cardano-cli/cardano-cli-1.0.1.ebuild
[ "BSD-3-Clause" ]
module: harp-x86 Synopsis: Pentium Move instructions Author: Tony Mann Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: See License.txt in this distribution for details. Warranty: Distributed WITHOUT WARRANTY OF ANY KIND /// Plain move comes in 32-bit versions only. We use mov. The zero and sign /// extend versions aren't worth looking at. Only the 8 -> 32 bit version is /// worth worrying about, and that saves one byte at the cost of one cycle. /// Additions for PC ... /// We must allow for constant references. Address constants are /// analogous to const-refs. Indirect constants are analogous to /// spill-refs. Hence we can share templates to avoid too many extra /// cases. EMIT-M-SPILL-DEST has been modified to allow for indirect /// constant refs too. with-ops-in pentium-instructions (move) c-preserved-destroys-fn := pentium-method (du) destroys-tmp1-if(ic/spill-ref(du-def(1)) & ic/spill-ref(du-uze(1))) end pentium-method; end with-ops-in; define pentium-template move // first check for eliminatable case pattern (be, d, s is d) #f; // Register destination and zero source pattern (be, d :: <real-register> by colour, s :: <integer> of zero-number?) harp-out (be) eor(be, d, d, d) end; // Register destination and source i32 pattern (be, d :: <real-register> by colour, s :: <ac/const-ref> by colour) emit(be, #xb8 + d.real-register-number); emit-immediate-constant(be, s); //!!!! DO THE 8 BIT CASE !!!! // Spill/constant destination and source i32/constant pattern (be, d :: <ic/spill-ref> by colour, s :: <ac/const-ref> by colour) emit(be, #xc7); emit-m-c-spill-dest(be, d, 0); emit-immediate-constant(be, s); // Register/register pattern (be, d :: <real-register> by colour, s :: <real-register> by colour) emit(be, #x89); emit-reg-direct(be, d, s.ex-reg); // Register destination and spill/constant source pattern (be, d :: <real-register> by colour, s :: <ic/spill-ref> by colour) emit(be, #x8b); emit-m-c-spill-dest(be, s, d.ex-reg); // Register into spill pattern (be, d :: <ic/spill-ref> by colour, s :: <real-register> by colour) emit(be, #x89); emit-m-c-spill-dest(be, d, s.ex-reg); // [Indirect constant|Spill]/spill needs a temporary pattern (be, d :: <ic/spill-ref> by colour, s :: <ic/spill-ref> by colour) harp-out (be) move(be, reg--tmp1, s); move(be, d, reg--tmp1); end harp-out; end pentium-template; /// MOVE-LOWER-BYTE moves the 3 most significant bytes of the operand1 /// and the least significant byte of operand 2 into the destination. /// This is useful for retagging of shorts. with-ops-in pentium-instructions (move-lower-byte) c-preserved-destroys-fn := tmp1-fn; // not worth being smarter prefer-fn := pentium-method (duu) prefer(duu-def(1), byte-addressable-regs); end pentium-method; end; define pentium-template move-lower-byte pattern (be, d by byte-reg-ref, s1, s2 :: <integer> of unsigned-eight-bits?) harp-out (be) move(be, d, s1) end; emit(be, #xb0 + d.real-register-number); emit-one-byte(be, s2); pattern (be, d :: <real-register> by colour, s1, s2 :: <integer> of unsigned-eight-bits?) harp-out (be) and(be, d, s1, ash(-1, 8)) end; unless (zero?(s2)) harp-out (be) or(be, d, d, s2) end; end unless; pattern (be, d :: <ic/spill-ref> by colour, s1, s2 :: <integer> of unsigned-eight-bits?) harp-out (be) move(be, d, s1) end; emit(be, #xc6); emit-m-c-spill-dest(be, d, 0); emit-one-byte(be, s2); pattern (be, d by byte-reg-ref, s1, s2 by byte-reg-ref) harp-out (be) move(be, d, s1) end; emit(be, #x88); emit-reg-direct(be, d, s2.ex-reg); // catch-all case pattern (be, d, s1, s2) harp-out (be) and(be, reg--tmp1, s2, #xff); and(be, d, s1, ash(-1, 8)); or(be, d, d, reg--tmp1); end harp-out; end pentium-template; /// MOVE-ARG-COUNT-BYTE loads the arg-count register with only the low byte /// of a fixnum. This optimisation saves on code size, as a 4 byte move is big. define pentium-template move-arg-count-byte // the expected case - const into ecx pattern (be, d by ecx-ref, s :: <integer> of unsigned-eight-bits?) emit(be, #xb1); emit-one-byte(be, s); // catch-all case pattern (be, d, s) harp-out (be) move(be, d, s) end; end pentium-template; /// Now for load - this may use the reg--tmp1 internally, but there's no /// problem about it returning its result there. The operation is either mov /// or movzx. define constant ld-byte = #xb6; define constant ld-half = #xb7; define constant ld-word = #x8b; define constant ld-byte-signed = #xbe; define constant ld-half-signed = #xbf; define method emit-ld-operation (be :: <harp-x86-back-end>, type :: <integer>) unless (type == ld-word) emit(be, #x0f); end unless; emit(be, type); end method; define pentium-template ld pattern (be, d, r, s) canon(be, local-fn(ld-word), d, r, s); end pentium-template; define pentium-template ldh pattern (be, d, r, s) canon(be, local-fn(ld-half), d, r, s); end pentium-template; define pentium-template ldb pattern (be, d, r, s) canon(be, local-fn(ld-byte), d, r, s); end pentium-template; define pentium-template ldh-signed pattern (be, d, r, s) canon(be, local-fn(ld-half-signed), d, r, s); end pentium-template; define pentium-template ldb-signed pattern (be, d, r, s) canon(be, local-fn(ld-byte-signed), d, r, s); end pentium-template; define method coerce-constant-with-offset (be :: <harp-x86-back-end>, addr-const :: <constant-reference>, offset :: <integer>) => (c :: <constant-reference>) if (offset = 0) addr-const; else call-instruction(constant-ref, be, addr-const.cr-refers-to-object, offset: offset + addr-const.cr-const-offset); end if; end method; define method coerce-constant-with-offset (be :: <harp-x86-back-end>, offset1 :: <integer>, offset2 :: <integer>) => (o :: <integer>) offset1 + offset2; end method; define method ld-op (index-op :: <integer>) select (index-op) ld-word => local-fn(ld-word); ld-half => local-fn(ld-half); ld-byte => local-fn(ld-byte); ld-half-signed => local-fn(ld-half-signed); ld-byte-signed => local-fn(ld-byte-signed); otherwise => #f; end; end method; define local-pentium-template (ld-word, ld-half, ld-byte, ld-half-signed, ld-byte-signed) options (self); // sxx is a load to the temporary register followed by a move to spill pattern (be, i by ld-op, d :: <ic/spill-ref> by colour, r, s) i(be, reg--tmp1, r, s); harp-out (be) move(be, d, reg--tmp1) end; // rrc at word - assume canonicalisation, of course pattern (be, i, d :: <real-register> by colour, r :: <real-register> by colour, s :: <ac/const-ref> by colour) emit-ld-operation(be, i); emit-reg-offset(be, r, s, d.ex-reg); // rrr pattern (be, i, d :: <real-register> by colour, r :: <real-register> by colour, s :: <real-register> by colour) emit-ld-operation(be, i); emit-reg-indexed(be, r, s, d.ex-reg); // rrs we load the temporary and load off it pattern (be, i by ld-op, d :: <real-register> by colour, r :: <real-register> by colour, s :: <ic/spill-ref> by colour) harp-out (be) move(be, reg--tmp1, s) end; i(be, d, r, reg--tmp1); // rsc we do like rrs pattern (be, i by ld-op, d :: <real-register> by colour, r :: <ic/spill-ref> by colour, s :: <ac/const-ref> by colour) harp-out (be) move(be, reg--tmp1, r) end; i(be, d, reg--tmp1, s); // rss we construct the address with an add pattern (be, i by ld-op, d :: <real-register> by colour, r :: <ic/spill-ref> by colour, s :: <ispill> by colour) harp-out (be) move(be, reg--tmp1, r); add(be, reg--tmp1, reg--tmp1, s); end; i(be, d, reg--tmp1, 0); // Address constant with fixed constant: pattern (be, i, d :: <real-register> by colour, r :: <i-address-constant-reference>, s :: <integer>) let new = coerce-constant-with-offset(be, r, s); emit-ld-operation(be, i); emit-reg-constant-offset(be, new, d.ex-reg); // rcc pattern (be, i, d :: <real-register> by colour, r :: <integer>, s :: <integer>) emit-ld-operation(be, i); emit-reg-constant-offset(be, s + r, d.ex-reg); end local-pentium-template; // define the emit values for the indexed load ops as constants define constant ld-index = ld-word; define constant ldb-index = ld-byte; define constant ldh-index = ld-half; define constant ldb-index-signed = ld-byte-signed; define constant ldh-index-signed = ld-half-signed; // and also put the constants in the info field of the ops for easy // access by the templates. with-ops-in pentium-instructions (ld-index) info := ld-index end; with-ops-in pentium-instructions (ldb-index) info := ldb-index end; with-ops-in pentium-instructions (ldh-index) info := ldh-index end; with-ops-in pentium-instructions (ldb-index-signed) info := ldb-index-signed end; with-ops-in pentium-instructions (ldh-index-signed) info := ldh-index-signed end; define method simple-load-op (be :: <harp-x86-back-end>, index-op :: <integer>) => (op :: <op>) let instrs = be.instructions; select (index-op) ld-index => op-element(instrs, ld); ldb-index => op-element(instrs, ldb); ldh-index => op-element(instrs, ldh); ldb-index-signed => op-element(instrs, ldb-signed); ldh-index-signed => op-element(instrs, ldh-signed); end select; end method; /// LD-INDEX is like LD but takes an extra argument which must be a /// constant. This allows array indexing to make full use of the 386 /// addressing modes. define pentium-template (ld-index, ldb-index, ldh-index, ldb-index-signed, ldh-index-signed) options (self); // Handle the case where 2 of the args are constants pattern (be, i :: <integer> by op-info, d, r, s :: <ac/const-ref> by colour, o :: <integer>) let base = coerce-constant-with-offset(be, s, o); harp-reapply(be, simple-load-op(be, i), d, r, base); // Handle the case where 2 of the args are constants pattern (be, i :: <integer> by op-info, d, s :: <ac/const-ref> by colour, r, o :: <integer>) let base = coerce-constant-with-offset(be, s, o); harp-reapply(be, simple-load-op(be, i), d, r, base); pattern (be, i, d :: <ispill> by colour, r, s, o :: <integer>) harp-reapply(be, i, reg--tmp1, r, s, o); harp-out (be) move(be, d, reg--tmp1) end; // The main case where we can make use of the 386 addressing modes. pattern (be, i :: <integer> by op-info, d :: <real-register> by colour, r, s, o :: <integer>) let tmps = list(reg--tmp1); let rn = ensure-mreg(be, r, tmps); let sn = ensure-mreg(be, s, tmps); if (sn) emit-ld-operation(be, i); emit-double-indexed(be, rn, sn, o,d.ex-reg); else // Where both base registers are spills, we must add them // together first. harp-out (be) add(be, rn, rn, s) end; // rn is tmp1 emit-ld-operation(be, i); emit-reg-offset(be, rn, o, d.ex-reg); end if; end pentium-template; with-ops-in pentium-instructions (ld-index-scaled) info := ld-index end; with-ops-in pentium-instructions (ldh-index-scaled) info := ldh-index end; with-ops-in pentium-instructions (ldh-index-scaled-signed) info := ldh-index-signed end; /// LD-INDEX-SCALED is like LD-INDEX but the first of the offset parameters /// is scaled by the size of the data item for the load. This allows array /// indexing to make full use of the 386 addressing modes. define pentium-template (ld-index-scaled, ldh-index-scaled, ldh-index-scaled-signed) options (self); // Handle the case where the scale arg is constant pattern (be, i :: <integer> by op-info, d, r, s :: <integer>, o :: <integer>) let scale = i.scale-factor; harp-reapply(be, simple-load-op(be, i), d, r, (s * scale) + o); pattern (be, i, d :: <ispill> by colour, r, s, o :: <integer>) harp-reapply(be, i, reg--tmp1, r, s, o); harp-out (be) move(be, d, reg--tmp1) end; // Handle the case where the unscaled base arg is constant pattern (be, i :: <integer> by op-info, d :: <real-register> by colour, r :: <ac/const-ref> by colour, s, o :: <integer>) let scale = i.scale-factor; let tmps = list(reg--tmp1); let sn = ensure-mreg(be, s, tmps); let base = coerce-constant-with-offset(be, r, o); emit-ld-operation(be, i); emit-reg-offset-scaled(be, sn, scale, base, d.ex-reg); // The main case where we can make use of the 386 addressing modes. pattern (be, i :: <integer> by op-info, d :: <real-register> by colour, r, s, o :: <integer>) let scale = i.scale-factor; let tmps = list(reg--tmp1, reg--tmp2); let rn = ensure-mreg(be, r, tmps); let sn = ensure-mreg(be, s, tmps); emit-ld-operation(be, i); emit-double-index-scaled(be, sn, scale, rn, o, d.ex-reg); end pentium-template; /// Instructions for loading from the Thread Environment Block /// /// First, some general support for segment registers:- define method segment-prefix (segment :: <pentium-segment-register>) => (prefix :: <integer>) select (segment) es => #x26; cs => #x2e; ss => #x36; ds => #x3e; fs => #x64; gs => #x65; end select; end method; define method op--store-thread-local (be :: <harp-x86-windows-back-end>, data, offset :: <integer>) => () emit(be, fs.segment-prefix); harp-out(be) st(be, data, 0, offset); end harp-out; end method; define method op--load-thread-local (be :: <harp-x86-windows-back-end>, dest :: <real-register>, offset :: <integer>) => () emit(be, fs.segment-prefix); harp-out(be) ld(be, dest, 0, offset); end harp-out; end method; define method op--tlb-base-register (be :: <harp-x86-windows-back-end>, dest :: <real-register>) => () op--load-thread-local(be, dest, #x14); end method; /// Linux TEB support: /// We use Linux' TLV support here. define method op--tlb-base-register (be :: <harp-x86-unix-back-end>, dest :: <real-register>) => () op--load-thread-local(be, dest, /* dummy */ 0); end method; define constant $teb = thread-local-runtime-reference("teb"); define method op--store-thread-local (be :: <harp-x86-linux-back-end>, data, offset :: <integer>) => () emit(be, gs.segment-prefix); harp-out(be) st(be, data, $teb, 0 /*ignore offset for Linux */); end harp-out; end method; define method op--load-thread-local (be :: <harp-x86-linux-back-end>, dest :: <real-register>, offset :: <integer>) => () emit(be, gs.segment-prefix); harp-out(be) ld(be, dest, $teb, 0 /*ignore offset for Linux */); end harp-out; end method; define method op--store-thread-local (be :: <harp-x86-freebsd-back-end>, data, offset :: <integer>) => () harp-out(be) push(be, reg--tmp2); end harp-out; emit(be, gs.segment-prefix); harp-out(be) ld(be, reg--tmp2, 0, 0); st(be, data, $teb, reg--tmp2); pop(be, reg--tmp2); end harp-out; end method; define method op--load-thread-local (be :: <harp-x86-freebsd-back-end>, dest :: <real-register>, offset :: <integer>) => () emit(be, gs.segment-prefix); harp-out(be) ld(be, dest, 0, 0); ld(be, dest, $teb, dest); end harp-out; end method; /// Now the templates // Temporary: the TLB is currently stored in the Windows TIB at offset #x14 // (reserved for application use as pvArbitrary). with-ops-in pentium-instructions (get-teb, set-teb) info := #x14 end; with-ops-in pentium-instructions (get-seh, set-seh) info := 0 end; define pentium-template (get-teb, get-seh) options (self); pattern (be, index :: <integer> by op-info, dest :: <real-register> by colour) op--load-thread-local(be, dest, index); pattern (be, index :: <integer> by op-info, dest) op--load-thread-local(be, reg--tmp1, index); harp-out (be) move(be, dest, reg--tmp1) end; end pentium-template; define pentium-template (set-teb, set-seh) options (self); pattern (be, index :: <integer> by op-info, data :: <ic/spill-ref> by colour) harp-out (be) move(be, reg--tmp1, data) end; op--store-thread-local(be, reg--tmp1, index); /* may clobber reg--tmp2 */ pattern (be, index :: <integer> by op-info, data) op--store-thread-local(be, data, index); /* may clobber reg--tmp2 */ end pentium-template; define pentium-template (ld-teb) pattern (be, dest :: <ic/spill-ref> by colour, index) harp-out (be) ld-teb(be, reg--tmp1, index); move(be, dest, reg--tmp1); end harp-out; pattern (be, dest :: <real-register> by colour, index :: <integer>) op--tlb-base-register(be, dest); harp-out (be) ld(be, dest, dest, index); end harp-out; end pentium-template; define pentium-template (ld-teb-address) pattern (be, dest :: <ic/spill-ref> by colour, index) harp-out (be) ld-teb-address(be, reg--tmp1, index); move(be, dest, reg--tmp1); end harp-out; pattern (be, dest :: <real-register> by colour, index :: <integer>) op--tlb-base-register(be, dest); unless (index == 0) harp-out (be) add(be, dest, dest, index); end harp-out; end unless; end pentium-template; define pentium-template (st-teb) pattern (be, data :: <ic/spill-ref> by colour, index :: <integer>) harp-out (be) move(be, reg--tmp2, data); st-teb(be, reg--tmp2, index); end; pattern (be, data, index :: <integer>) op--tlb-base-register(be, reg--tmp1); harp-out (be) st(be, data, reg--tmp1, index); end harp-out; end pentium-template; define pentium-template (get-stack-bottom) // The stack bottom (i.e., the highest address) is stored at offxet #x04 // in the TEB pattern (be, dest :: <real-register> by colour) op--load-thread-local(be, dest, #x04); end pentium-template; /// Store on this godforsaken processor with only 8 registers presents /// problems. We will potentially need 2 temporary registers when doing the /// spill/spill/spill case. Ugh! Furthermore, we can store at byte only /// registers A C D B. Storing at half requires a prefix of the operand size /// prefix $66. // This code differs from the CL version because of the losss of first // class variable objects. Instead we give constant values to each of // the names for later identity testing. We choose as constant values, // something which will be directly emitted in at least oine circumstance. define constant st-byte = #xc6; define constant st-half = #x89; define constant st-word = #xc7; define method emit-st-operation (be :: <harp-x86-back-end>, type :: <integer>, src) if (ac/const-ref(src)) if (type == st-half) emit(be, #x66, #xc7); else emit(be, type); end if; else select (type) st-byte => if (byte-reg-ref(src)) emit(be, #x88); else harp-error("Attempt to ST register %s at BYTE fails", src); end if; st-half => emit(be, #x66, #x89); st-word => emit(be, #x89); end select; end if; end method; define method ex-whatsit (x) if (ac/const-ref(x)) 0 else x.ex-reg end; end method; define method emit-possible-immediate-arg (be :: <harp-back-end>, x, l :: <integer>) if (ac/const-ref(x)) if (instance?(x, <abstract-integer>)) select (l) st-byte => emit-one-byte(be, x); st-half => emit-two-bytes(be, x); st-word => emit-four-bytes(be, x); end select; else select (l) st-word => emit-constant-ref(be, x); end select; end if; end if; end method; define pentium-template st pattern (be, d, r, s) canon(be, local-fn(st-word), d, r, s); end pentium-template; define pentium-template sth pattern (be, d, r, s) canon(be, local-fn(st-half), d, r, s); end pentium-template; define pentium-template stb pattern (be, d, r, s) canon(be, local-fn(st-byte), d, r, s); end pentium-template; define method word-store (x) if (x == st-word) st-op(x) else #f end; end method; define method st-op (index-op :: <integer>) select (index-op) st-word => local-fn(st-word); st-half => local-fn(st-half); st-byte => local-fn(st-byte); otherwise => #f; end; end method; define local-pentium-template (st-word, st-half, st-byte) options (self); // srx case for st-word must not clobber TMP2 as this is the // *safe-reg-for-st*. But for st-byte we MUST use tmp2. pattern (be, i by word-store, d :: <ic/spill-ref> by colour, r :: <real-register> by colour, s :: <ac/const-ref> by colour) harp-out (be) move(be, reg--tmp1, d) end; i(be, reg--tmp1, r, s); // sxx case is load spill to second temp than run rxx. pattern (be, i by st-op, d :: <ic/spill-ref> by colour, r, s) harp-out (be) move(be, reg--tmp2, d) end; i(be, reg--tmp2, r, s); // rrc pattern (be, i, d, r :: <real-register> by colour, s :: <ac/const-ref> by colour) emit-st-operation(be, i, d); emit-reg-offset(be, r, s, d.ex-whatsit); emit-possible-immediate-arg(be, d, i); /// rrr pattern (be, i, d, r :: <real-register> by colour, s :: <real-register> by colour) emit-st-operation(be, i, d); emit-reg-indexed(be, r, s, d.ex-whatsit); emit-possible-immediate-arg(be, d, i); // special case - rrs with the addressing register as esi (= tmp1) // we make esi live inside the instruction, and destructively modify it. pattern (be, i by st-op, d, r by esi-ref, s :: <ic/spill-ref> by colour) harp-out (be) add(be, esi, esi, s) end; i(be, d, esi, 0); // rrs goes via one temporary pattern (be, i by st-op, d, r :: <real-register> by colour, s :: <ic/spill-ref> by colour) harp-out (be) move(be, reg--tmp1, s) end; i(be, d, r, reg--tmp1); // rsc also goes via one temporary pattern (be, i by st-op, d, r :: <ic/spill-ref> by colour, s :: <ac/const-ref> by colour) harp-out (be) move(be, reg--tmp1, r) end; i(be, d, reg--tmp1, s); // rss involves constructing the address with an add pattern (be, i by st-op, d, r :: <ic/spill-ref> by colour, s :: <ic/spill-ref> by colour) harp-out (be) move(be, reg--tmp1, r); add(be, reg--tmp1, reg--tmp1, s); end; i(be, d, reg--tmp1, 0); // Address constant with fixed constant: pattern (be, i, d, r :: <i-address-constant-reference>, s :: <integer>) let new = coerce-constant-with-offset(be, r, s); emit-st-operation(be, i, d); emit-reg-constant-offset(be, new, d.ex-whatsit); emit-possible-immediate-arg(be, d, i); // Address constant with fixed constant: pattern (be, i, d, r :: <integer>, s :: <integer>) emit-st-operation(be, i, d); emit-reg-constant-offset(be, r + s, d.ex-whatsit); emit-possible-immediate-arg(be, d, i); end local-pentium-template; // define the emit values for the indexed store ops as constants define constant st-index = st-word; define constant stb-index = st-byte; define constant sth-index = st-half; // and also put the constants in the info field of the ops for easy // access by the templates. with-ops-in pentium-instructions (st-index) info := st-index end; with-ops-in pentium-instructions (stb-index) info := stb-index end; with-ops-in pentium-instructions (sth-index) info := sth-index end; define method simple-store-op (be :: <harp-x86-back-end>, index-op :: <integer>) => (op :: <op>) let instrs = be.instructions; select (index-op) st-index => op-element(instrs, st); stb-index => op-element(instrs, stb); sth-index => op-element(instrs, sth); end select; end method; /// ST-INDEX is like ST but takes an extra argument which must be a /// constant. This allows array indexing to make full use of the 386 /// addressing modes. define pentium-template (st-index, stb-index, sth-index) options (self); // Handle the case where 2 of the args are constants pattern (be, i :: <integer> by op-info, d, r, s :: <ac/const-ref> by colour, o :: <integer>) let base = coerce-constant-with-offset(be, s, o); harp-reapply(be, simple-store-op(be, i), d, r, base); // Handle the case where 2 of the args are constants pattern (be, i :: <integer> by op-info, d, s :: <ac/const-ref> by colour, r, o :: <integer>) let base = coerce-constant-with-offset(be, s, o); harp-reapply(be, simple-store-op(be, i), d, r, base); // The main case. // If 2 of the 3 arguments are spills, we can use the temporaries we // have reserved. If all 3 are spills, we add two of them into a // temporary, and still get by with only 2 temps. pattern (be, i :: <integer> by op-info, d, r, s, o :: <integer>) let tmps = list(reg--tmp2, reg--tmp1); // NB tmp2 is 1st in tmp list because it's byte-adressable (necessary for d) let dn = ac/const-ref(d) | ensure-mreg(be, d, tmps); let rn = ensure-mreg(be, r, tmps); let sn = ensure-mreg(be, s, tmps); if (sn) emit-st-operation(be, i, dn); emit-double-indexed(be, rn, sn, o, dn.ex-whatsit); emit-possible-immediate-arg(be, dn, i); else // This is the pathological case where d r s are all spills. harp-out (be) add(be, rn, rn, s) end; // rn is tmp1 emit-st-operation(be, i, dn); emit-reg-offset(be, rn, o, dn.ex-whatsit); emit-possible-immediate-arg(be, dn, i); end if; end pentium-template; with-ops-in pentium-instructions (st-index-scaled) info := st-index end; with-ops-in pentium-instructions (sth-index-scaled) info := sth-index end; define method scale-factor (index-op :: <integer>) => (scale :: <integer>) select (index-op) st-index => 4; // words are 4 bytes ld-index => 4; // words are 4 bytes sth-index => 2; // halves are 2 ldh-index => 2; // halves are 2 ldh-index-signed => 2; // halves are 2 end select; end method; /// ST-INDEX-SCALED is like ST-INDEX but the first of the offset parameters /// is scaled by the size of the data item for the store. This allows array /// indexing to make full use of the 386 addressing modes. define pentium-template (st-index-scaled, sth-index-scaled) options (self); // Handle the case where the scale arg is constant pattern (be, i :: <integer> by op-info, d, r, s :: <integer>, o :: <integer>) let scale = i.scale-factor; harp-reapply(be, simple-store-op(be, i), d, r, (s * scale) + o); // Handle the case where the unscaled base arg is constant pattern (be, i :: <integer> by op-info, d, r :: <ac/const-ref> by colour, s, o :: <integer>) let scale = i.scale-factor; let tmps = list(reg--tmp1, reg--tmp2); let dn = ac/const-ref(d) | ensure-mreg(be, d, tmps); let sn = ensure-mreg(be, s, tmps); let base = coerce-constant-with-offset(be, r, o); emit-st-operation(be, i, dn); emit-reg-offset-scaled(be, sn, scale, base, dn.ex-whatsit); emit-possible-immediate-arg(be, dn, i); // The main case. // If all 3 args are spills, we need 3 temporary registers. Hence tmp3 // is disallowed, as well as tmp2. pattern (be, i :: <integer> by op-info, d, r, s, o :: <integer>) let scale = i.scale-factor; let tmps = list(reg--tmp1, reg--tmp2, reg--tmp3); let dn = ac/const-ref(d) | ensure-mreg(be, d, tmps); let rn = ensure-mreg(be, r, tmps); let sn = ensure-mreg(be, s, tmps); emit-st-operation(be, i, dn); emit-double-index-scaled(be, sn, scale, rn, o, dn.ex-whatsit); emit-possible-immediate-arg(be, dn, i); end pentium-template; /// CONDITIONAL-MOVE /// Use the CMPXCHG instruction, with the LOCK prefix to guarantee atomicity /// even with multiprocessors define pentium-template (conditional-move) /// For this instruction, constant references are treated as direct /// (address) constant references even if they are actually /// indirect. This is designed to make life easier for harp-cg /// to avoid having to allocate a new direct constant. pattern (be, tag, var :: <real-register> by colour, new-val :: <real-register> by colour, comp) harp-out (be) move(be, eax, comp) end; emit(be, lock); emit(be, #x0f); emit(be, #xb1); emit-reg-offset(be, var, 0, new-val.ex-reg); emit-branch-sdi(be, bne-x, tag); pattern (be, tag, var :: <i-constant-reference>, new-val :: <real-register> by colour, comp) harp-out (be) move(be, eax, comp) end; emit(be, lock); emit(be, #x0f); emit(be, #xb1); emit-constant-operand(be, var, new-val.ex-reg); emit-branch-sdi(be, bne-x, tag); pattern (be, tag, var :: <ispill> by colour, new-val :: <real-register> by colour, comp) harp-out (be) move(be, reg--tmp2, var); conditional-move(be, tag, reg--tmp2, new-val, comp); end; pattern (be, tag, var, new-val, comp) harp-out (be) move(be, reg--tmp1, new-val); conditional-move(be, tag, var, reg--tmp1, comp); end; end pentium-template; define constant $vector-cond-move-destroys = vector(eax, reg--tmp1, reg--tmp2); with-ops-in pentium-instructions (conditional-move) c-preserved-destroys-fn := pentium-method (uuu) destroys-tmp1-if(ic/spill-ref(uuu-uze(2))) end pentium-method; destroys-fn := constant-fn($vector-cond-move-destroys); prefer-fn := pentium-method (uuu) prefer(uuu-uze(3), $vector-eax); end pentium-method; clash-fn := pentium-method (uuu) list(list(uuu-uze(1), eax), list(uuu-uze(2), eax)); end pentium-method; end with-ops-in;
Dylan
5
kryptine/opendylan
sources/harp/x86/moves.dylan
[ "BSD-2-Clause" ]
(* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) module Ast = Flow_ast open Flow_ast_mapper open Reason let ( * ) : 'a 'b 'c 'd. ('a -> 'c) -> ('b -> 'd) -> 'a * 'b -> 'c * 'd = (fun f g (x, y) -> (f x, g y)) (* Internal module that helps track what generics are in scope during traversal of the AST. The scope data structures themselves are handled by generic_scope.ml, but this helper module is what handles pushing and popping scopes onto the stack (using the call stack). *) module ScopeHelper : sig val init : unit -> unit val in_function_scope : Generic_cx.t -> ALoc.id list -> (Generic_cx.t -> unit) -> (unit -> 'a) -> 'a val in_class_toplevel_scope : ALoc.id list -> ALoc.id -> (unit -> 'a) -> 'a val in_class_prop_scope : Generic_cx.t -> (Generic_cx.t -> unit) -> (unit -> 'a) -> 'a end = struct let class_tparams : ALoc.id list ref = ref [] let clear_class_tparams () = class_tparams := [] let get_class_tparams () = !class_tparams let set_class_tparams params = class_tparams := params let init () = clear_class_tparams () let in_function_scope cx tparams set_cx f = let class_tparams = get_class_tparams () in clear_class_tparams (); let tps = class_tparams @ tparams in let res = Generic_scope.in_scope cx tps (Fn.compose f set_cx) in set_class_tparams class_tparams; res let in_class_toplevel_scope tparams id f = let tps = id :: tparams in let old_class_tparams = get_class_tparams () in set_class_tparams tps; let res = f () in set_class_tparams old_class_tparams; res let in_class_prop_scope cx set_cx f = let class_tparams = get_class_tparams () in clear_class_tparams (); let res = Generic_scope.in_scope cx class_tparams (Fn.compose f set_cx) in set_class_tparams class_tparams; res end type ml = ALoc.t type tl = ALoc.t * Type.t (* This visitor walks the AST and produces a generic context (generic_cx.ml), which contains information about what tvars are in what generic scopes. It's the responsibility of this visitor to call #mark or #blame *) (* The context passed in here needs to be the file-local context for the module, not the leader context, because this process is concerned with munged underscores which is a file-local setting. *) class finder cx = object (this) inherit [ml, tl, ml, tl] Flow_polymorphic_ast_mapper.mapper as super method on_type_annot a = a method on_loc_annot a = a val mutable gcx : Generic_cx.t = Generic_cx.new_gcx () method set_gcx gcx' = gcx <- gcx' method exec ast = gcx <- Generic_scope.init gcx; ScopeHelper.init (); let (_ : (ml, tl) Ast.Statement.t list) = this#toplevel_statement_list ast in gcx (* Mark the tvars in a type as being in the current scope, *and* record where an annotation needs to be added if an out-of-scope generic flows into the tvars. This blame information is not always available--for example, in a case like class C { } function f<X>(x: X) { C = x } there's nothing to annotate that would fix the error. Hence the `mark` method below. *) method blame reason ty = gcx <- Generic_cx.blame_ids_of_type cx gcx ty (Generic_scope.scope_id ()) reason (* Mark the tvars in a type as being in the current scope *) method mark ty = gcx <- Generic_cx.mark_ids_of_type cx gcx ty (Generic_scope.scope_id ()) method! statement (loc, stmt) = let open Ast.Statement in match stmt with | ClassDeclaration cls -> let (_ : (ml, tl) Ast.Class.t) = this#class_with_loc loc cls in (loc, stmt) | _ -> super#statement (loc, stmt) method! expression ((loc, ty), expr) = let open Ast.Expression in match expr with | Class cls -> let (_ : (ml, tl) Ast.Class.t) = this#class_with_loc loc cls in ((loc, ty), expr) | _ -> super#expression ((loc, ty), expr) method! function_ node = let { Ast.Function.id = ident; params; body; async = _; generator = _; predicate; return; tparams; sig_loc = _; comments = _; } = node in let (_ : (ml, tl) Ast.Identifier.t option) = map_opt this#t_function_identifier ident in let (_ : (ml, tl) Ast.Type.annotation_or_hint) = this#labeled_type_annotation_hint "return" return in let (_ : (ml, tl) Ast.Type.Predicate.t option) = map_opt this#type_predicate predicate in let tparams = this#get_tparams tparams in (* Check the function body in a scope that contains both the function's parameters and also any class type parameters if we're inside a class toplevel. *) ScopeHelper.in_function_scope gcx tparams this#set_gcx (fun () -> let (_ : (ml, tl) Ast.Function.Params.t) = this#function_params params in let (_ : (ml, tl) Ast.Function.body) = this#function_body body in () ); node (* Classes need their declaration locations to have the ALoc.id for `this`, in case they're anonymous. Non-anonymous classes use the loc for their identifiers as the ALoc.id for `this`. This mirrors the behavior of `this` in statement.ml *) method class_with_loc decl_loc cls = let { Ast.Class.id; body; tparams; extends; implements; class_decorators; comments = _ } = cls in let (_ : (ml, tl) Ast.Identifier.t option) = map_opt this#class_identifier id in let (_ : (ml, tl) Ast.Class.Extends.t option) = map_opt this#class_extends extends in let (_ : (ml, tl) Ast.Class.Implements.t option) = map_opt this#class_implements implements in let (_ : (ml, tl) Ast.Class.Decorator.t list) = map_list this#class_decorator class_decorators in let tparams = this#get_tparams tparams in let id = Context.make_aloc_id cx (Base.Option.value_map ~f:(fun ((loc, _), _) -> loc) ~default:decl_loc id) in (* This doesn't put the class' tparams and `this` in scope immediately. Instead, we store these tparams, and then when we enter a toplevel method body or a property initialization, we put them in scope at that point. This allows properties and method params/returns to be out-of-scope for the typeparams, which is desirable--we want to ask for annotations if a tparam flows into anything externally visible in the class *) ScopeHelper.in_class_toplevel_scope tparams id (fun () -> let (_ : (ml, tl) Ast.Class.Body.t) = this#class_body body in () ); cls method! class_ _ = failwith "Use class_with_loc" method! class_method meth = let { Ast.Class.Method.kind = _; key; value; static; decorators; comments } = meth in let (_, is_munged) = this#object_key_label key in let check_body () = let (_ : (ml, tl) Ast.Expression.Object.Property.key) = this#object_key key in let (_, _) = (this#on_loc_annot * this#function_expression) value in let (_ : (ml, tl) Ast.Class.Decorator.t list) = Base.List.map ~f:this#class_decorator decorators in let (_ : (ml, unit) Ast.Syntax.t option) = Base.Option.map ~f:this#syntax comments in () in if is_munged && not static then ScopeHelper.in_class_prop_scope gcx this#set_gcx check_body else check_body (); meth method! class_property prop = let { Ast.Class.Property.key; value; annot; static; variance = _; comments = _ } = prop in let (label, is_munged) = this#object_key_label key in let check_prop () = let (_ : (ml, tl) Ast.Expression.Object.Property.key) = this#object_key key in let (_ : (ml, tl) Ast.Type.annotation_or_hint) = this#labeled_type_annotation_hint label annot in () in ( if is_munged && not static then (* Special case for munged properties *) ScopeHelper.in_class_prop_scope gcx this#set_gcx (fun () -> let () = check_prop () in let (_ : (ml, tl) Ast.Class.Property.value) = this#class_property_value value in () ) else let () = check_prop () in (* Here we actually install the tparams collected in `class_with_loc` into the scope *) ScopeHelper.in_class_prop_scope gcx this#set_gcx (fun () -> let (_ : (ml, tl) Ast.Class.Property.value) = this#class_property_value value in () ) ); prop method object_key_label key = match key with | Ast.Expression.Object.Property.Literal _ -> ("literal property", false) | Ast.Expression.Object.Property.Identifier (_, { Ast.Identifier.name = label; _ }) -> let is_munged = Signature_utils.is_munged_property_string label && Context.should_munge_underscores cx in (Utils_js.spf "property `%s`" label, is_munged) | Ast.Expression.Object.Property.PrivateName private_name -> let _ = this#private_name private_name in let (_, { Ast.PrivateName.name; _ }) = private_name in (Utils_js.spf "private property `%s`" name, false) | Ast.Expression.Object.Property.Computed _ -> ("computed property", false) method! class_private_field field = let { Ast.Class.PrivateField.key = (_, { Ast.PrivateName.name = label; _ }) as key; value; annot; static; variance = _; comments = _; } = field in let check_prop () = let (_ : ml Ast.PrivateName.t) = this#private_name key in let (_ : (ml, tl) Ast.Type.annotation_or_hint) = this#labeled_type_annotation_hint label annot in () in ( if not static then ScopeHelper.in_class_prop_scope gcx this#set_gcx (fun () -> let (_ : (ml, tl) Ast.Class.Property.value) = this#class_property_value value in check_prop () ) else let () = check_prop () in ScopeHelper.in_class_prop_scope gcx this#set_gcx (fun () -> let (_ : (ml, tl) Ast.Class.Property.value) = this#class_property_value value in () ) ); field method type_param_id tparam = let (_, { Ast.Type.TypeParam.name = (loc, _); bound = _; variance = _; default = _ }) = tparam in Context.make_aloc_id cx loc method get_tparams (tparams : (ALoc.t, ALoc.t * Type.t) Ast.Type.TypeParams.t option) = this#type_params_opt tparams (Base.Option.value_map ~default:[] ~f:(fun (_, { Ast.Type.TypeParams.params; _ }) -> Base.List.map ~f:this#type_param_id params ) ) method! pattern_object_property_identifier_key ?kind:_ key = (* Don't explore object property identifier keys, only value identifiers. *) key method labeled_type_annotation_hint name node = let open Ast.Type in begin match node with | Missing (loc, ty) -> let (_ : ALoc.t * Type.t) = this#on_type_annot (loc, ty) in this#blame (mk_reason (RCustom name) loc) ty | Available annot -> let (_ : (ml, tl) Ast.Type.annotation) = this#type_annotation annot in () end; node method! binding_pattern ?(kind = Ast.Statement.VariableDeclaration.Var) ((_, patt) as expr) = (* We can only suggest annotations for bare variable declarations, not destructurings. *) let open Ast.Pattern in begin match patt with | Identifier { Identifier.name = ((loc, ty), { Ast.Identifier.name; _ }); annot = Ast.Type.Missing _; _; } -> this#blame (mk_reason (RIdentifier (OrdinaryName name)) loc) ty | _ -> () end; super#binding_pattern ~kind expr method! t_pattern_identifier ?kind (((_, ty), _) as node) = (* If `kind` is None, then this is the LHS of an assignment, while it it's Some _, it's a variable declaration. We only are concerned with declarations here: statement.ml guarantees that the type on a declaration is the general type of the variable in its environment, while assignments just have its specific type. *) Base.Option.iter ~f:(fun _ -> this#mark ty) kind; super#t_pattern_identifier ?kind node end
OCaml
5
zhangmaijun/flow
src/typing/generics/scoped_tvar_finder.ml
[ "MIT" ]
PHP_NEW_EXTENSION(reflection, php_reflection.c, no,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
M4
0
thiagooak/php-src
ext/reflection/config.m4
[ "PHP-3.01" ]
//------------------------------------------------------------------------------ // Shader code for texcube-sapp sample. // // NOTE: This source file also uses the '#pragma sokol' form of the // custom tags. //------------------------------------------------------------------------------ //#pragma sokol @ctype mat4 hmm_mat4 #pragma sokol @vs vs_i uniform vs_params_i { mat4 mvp; }; in vec4 pos; in vec4 color0; in vec2 texcoord0; in vec4 inst_pos; out vec4 color; out vec4 color_inst; out vec2 uv; const vec4 palette[10] = vec4[10]( vec4(1,0,0,1), vec4(0,1,0,1), vec4(0,0,1,1), vec4(1,1,0,1), vec4(0,1,1,1), vec4(1,1,1,1), vec4(0,0,0,1), vec4(0.2,0.2,0.2,1), vec4(0.3,0.3,0.3,1), vec4(0.9,0.9,0.9,1) ); void main() { vec4 delta_pos = vec4(inst_pos.xyz,0); float w = inst_pos.w; color_inst = palette[int(w)]; gl_Position = mvp * (pos + delta_pos); color = color0; uv = texcoord0/4; } #pragma sokol @end #pragma sokol @fs fs_i uniform sampler2D tex; in vec4 color; in vec4 color_inst; in vec2 uv; out vec4 frag_color; void main() { vec4 c = color; vec4 txt = texture(tex, uv); c = txt * c * color_inst; frag_color = c ; } #pragma sokol @end #pragma sokol @program instancing vs_i fs_i
GLSL
4
gamemaker1/v
examples/sokol/05_instancing_glsl/rt_glsl_instancing.glsl
[ "MIT" ]
# need to set npc and npc_sprite before calling these labels label npc_conversation_start: $ renpy.show(npc_sprite) # Annika or Marco player smile "Hello!" npc "Hey [player_name]! What's up?" player "Well, I learned some tech buzzwords and would like to learn more about them." npc "Sure, what would you like to know?" $ label = None $ done_label = 'DONE' while label != done_label: $ choices = [(topic, ask_npc[topic]) for topic in topics_to_ask] $ choices.append((_("That's all"), done_label)) $ label = renpy.display_menu(choices) if label != done_label: $ renpy.call(label=label) # no need to discard the asked topic here since it's discarded inside each label npc "Anything else?" player "That's all I need to know. Thanks!" npc "No problem. Have a good night!" player "You as well!" play sound 'audio/sfx/phone_hangup.wav' $ renpy.hide(npc_sprite) if not plot_buzzword_ask in persistent.achievements: $ add_achievement(plot_buzzword_ask) return label npc_choose_question: label ask_hackathon: # use `discard` instead of `remove` to prevent the exception in case the player rolls back $ topics_to_ask.discard(_('Hackathon')) player "What is a hackathon?" npc "It's an event where people come together to design and implement cool tech projects." npc "Hackathons aren't usually too long. Most last for one or two days. Now imagine people hacking away at their laptops overnight! You get the idea." npc "People usually form small teams to collaborate. It's especially cool when the team consists of people with different expertise, not just software engineers, but graphic designers and product managers as well." npc "It's a great way to brainstorm, prototype, and test out ideas that might one day evolve into full-fledged products." player "That sounds cool!" npc "Yeah! I've only been to one or two of them, but my company has those seasonal innovation events that I'll be checking out soon." npc "You should go to some hackathons as well! You'll learn to collaborate with other developers and even designers." npc "Plus, hackathon projects look great on your résumé." player "Cool! But how do I find hackathon events?" npc "Just search online! You might be surprised by the number of hackathons happening locally near you." player "That's awesome! I'll check that out when I get a bit better at coding." # TODO: todo_list.add_todo('Try out hackathons'), needs more writing player "(Hmmm, so that's what a {b}hackathon{/b} is about.)" $ todo_list.complete_todo(todo_ask_hackathon) player "Checked it off my To-Do." return label ask_fullstack: $ topics_to_ask.discard(_('Full-Stack')) player "What is a full-stack developer?" npc "A full-stack developer usually refers to a full-stack web developer. It's a role for people who can develop both client and server software." npc "You might have heard about front-end and back-end already. Full-stack is front-end and back-end put together." npc "Front-end is synonymous with client software, or User Interface (UI). It refers to the appearance of the application we are using." npc "Like the layout of a website." npc "Back-end is synonymous with server software, or the logic. Like how the database remembers your information on a e-shopping website." npc "Again, put front-end and back-end together and you have full-stack!" player "Wow. Then a full-stack developer must be a real jack-of-all-trades." npc "Exactly! If that's something you'd like to learn more about, check out the courses on [freeCodeCamp]!" player "I'll do that, thanks!" # TODO: add glossary player "(Hmmm, so that's what {b}full-stack{/b} is about.)" $ todo_list.complete_todo(todo_ask_fullstack) player "Checked it off my To-Do." return label ask_machinelearning: $ topics_to_ask.discard(_('Machine Learning')) player "What is Machine Learning?" npc "By definition, Machine Learning is a method of data analysis that automates analytical model building." npc "Basically, our goal is to build a model based on the data we observe." npc "The model can be a regression model, meaning that it can give estimates. For example, we can build a regression model that estimates the price of a house based on the house's location, layout, etc." npc "The model can also be a classification, like classifying cats versus dogs." player "Wow..." npc "I know. Amazing, isn't it?" npc "Machine Learning requires a lot of mathematical knowledge. You need to be familiar with linear algebra, calculus, and so on." player "That sounds intense, but really cool!" npc "Remember that [freeCodeCamp] has resources if you'd like to get started with Machine Learning." npc "You can build a lot of cool projects with Machine Learning. How about {a=https://www.freecodecamp.org/news/discord-ai-chatbot/}a chatbot that speaks like your favorite character{/a}?" player "Sounds awesome! Thanks for sharing!" player "(Hmmm, so that's what {b}machine learning{/b} is about.)" $ todo_list.complete_todo(todo_ask_machinelearning) player "Checked it off my To-Do." return label ask_conference: $ topics_to_ask.discard(_('Conference')) player "What is a tech conference?" npc "Tech conferences are places for developers to gather and learn about the cutting-edge advances in the field of software." npc "There are usually talks given by speakers who are subject experts in their respective fields." npc "There may also be booths and demo sessions for people to show off their ideas and prototypes." npc "Sometimes there are career fairs where companies try to recruit conference attendees. Make sure to bring your résumé if you're interested." player "What are those conferences about? Tech sounds like a huge field." npc "Conferences usually have more specific topics. For example, there could be conferences for game developers, for web developers, or for developers who work with a particular programming language like Python or Java." player "Sounds like a lot of fun!" npc "Yep. Some companies even sponsor their employees to attend annual conferences so they can keep their skills up-to-date." npc "Search for local conferences around you if you are interested!" player "I sure will!" player "(Hmmm, so that's what a tech {b}conference{/b} is about.)" $ todo_list.complete_todo(todo_ask_conference) player "Checked it off my To-Do." return label ask_versioncontrol: $ topics_to_ask.discard(_('Version Control')) player "What is version control?" player "(And why should I care?)" npc "That's a great question to ask. Let me tell you what version control is, and, yes, why you should care." player "!" player "(Ehhh... I guess I had why-bother written all over my face...)" npc "By definition, version control is the practice of tracking and managing changes to software code." npc "Version control systems are software tools that help software teams manage changes to source code over time." npc "Examples include Git, which is the most popular modern one." npc "Some companies that have been in the industry for a while might also use older version control software like Subversion (SVN), Perforce, and so on." player "And why should I care?" npc "Well, version control can be your life saver when you find a bug in your code." npc "For example, what do you do when a new change you've made broke the existing tests?" npc "As a starter, you can try reverting to the previous working version where the tests were still passing and debug from there." player "That sounds pretty useful." npc "Version control is pretty useful. You should definitely understand it to increase your developer output." player "Thanks for the tip!" player "(Hmmm, so that's what {b}version control{/b} is about.)" $ todo_list.complete_todo(todo_ask_versioncontrol) player "Checked it off my To-Do." return label ask_devops: $ topics_to_ask.discard(_('DevOps')) player "What is DevOps?" npc "By definition, DevOps is the combination of cultural philosophies, practices, and tools for better software delivery." npc "Some of its core principles include Continuous Improvement and Automate Everything You Can." player "Wow. The automation one sounds pretty extreme." npc "Well, if you can, automation saves a lot of time and effort!" npc "DevOps is a big subject, and I highly recommend reading about it online if you're interested." npc "Just remember it's not just a job title, but more of a mindset." player "Alright, I'll do my own research. Thanks." player "(Hmmm, so that's what {b}DevOps{/b} is about.)" $ todo_list.complete_todo(todo_ask_devops) player "Checked it off my To-Do." return label ask_agile: $ topics_to_ask.discard(_('Agile')) player "What is agile development?" npc "The definition might be boring but here it goes: Agile is an iterative approach to project management and software development." npc "Teams work in fast iterations, deliver frequent builds, and receive frequent feedback in order to build better software." npc "The software requirements, plans, and results are evaluated continuously so teams have a tight feedback loop." npc "Some people call agile a methodology, but to me, it's more like a mindset." player "Fail fast, fail often?" npc "Exactly. And that's how you improve." player "Haha I can see how this mindset is helpful in lifelong learning. That's awesome." player "(Hmmm, so that's what {b}agile{/b} development is about.)" $ todo_list.complete_todo(todo_ask_agile) player "Checked it off my To-Do." return label ask_api: $ topics_to_ask.discard(_('API')) player "What is an API?" player "(And why is everyone going around using those three-letter acronyms?)" npc "API stands for application programing interface." npc "It is a software intermediary that allows two applications to talk to, or interface, with each other." npc "For example, say a weather organization provides an API for the weather report." npc "You may build a website to display weather reports by contacting their API." npc "The weather app built into your phone might also use the exact same API as its data source." npc "So this one weather API can be used by anyone and any application to communicate the state of the weather." npc "For a three-letter acronym, API is quite a mouthful to explain, huh?" player "Yeah... but I think I get the idea now." player "(Hmmm, so that's what an {b}API{/b} is about.)" $ todo_list.complete_todo(todo_ask_api) player "Checked it off my To-Do." return label ask_userexperience: $ topics_to_ask.discard(_('User Experience')) player "What is User Experience?" npc "Thinking ahead of just writing code, aren't you? You might have it in you to become a product manager!" player "(Uh, thanks, I guess?)" npc "User Experience, commonly abbreviated UX, is how a user interacts with and experiences a product, system or service." npc "It includes a person's perceptions of utility, ease of use, and efficiency." npc "We might say a website has poor user experience when it has poor usability or presentation." npc "For example, a news website has poor user experience if new articles are scattered all over the site. You as a user won't be able to find anything you are looking for there." npc "But fear not, we have User Experience Design that'll come to the rescue." npc "There are time-tested UX flows and templates designed to make an application clean and crisp." player "(Hmmm... have I encountered any sites that have either really great or really bad user experience?)" npc "My turn to ask a question. What do you think about the user experience of [freeCodeCamp]?" menu: "What do you think about the user experience of [freeCodeCamp]?" "So far so good!": npc "That's what I think as well. You can maybe learn something by navigating through their site and taking notes." "Needs work!": npc "Whelp, they always welcome feedback from the community. So do let them know!" player "Will do!" player "(Hmmm, so that's what {b}User Experience{/b} is about.)" $ todo_list.complete_todo(todo_ask_userexperience) player "Checked it off my To-Do." return
Ren'Py
5
googlebleh/LearnToCodeRPG
game/scripts/labels/npc_question_and_answer.rpy
[ "BSD-3-Clause" ]
path = require 'path' fs = require 'fs-plus' temp = require 'temp' ThemeManager = require '../../src/theme-manager' Package = require '../../src/package' describe "ThemeManager", -> themeManager = null resourcePath = NylasEnv.getLoadSettings().resourcePath configDirPath = NylasEnv.getConfigDirPath() beforeEach -> # spyOn(console, "log") spyOn(console, "warn") spyOn(console, "error") theme_dir = path.resolve(__dirname, '../../internal_packages') # Don't load ALL of our packages. Some packages may do very expensive # and asynchronous things on require, including hitting the database. packagePaths = [ path.resolve(__dirname, '../../internal_packages/ui-light') path.resolve(__dirname, '../../internal_packages/ui-dark') ] spyOn(NylasEnv.packages, "getAvailablePackagePaths").andReturn packagePaths NylasEnv.packages.packageDirPaths.unshift(theme_dir) themeManager = new ThemeManager({packageManager: NylasEnv.packages, resourcePath, configDirPath}) afterEach -> themeManager.deactivateThemes() describe "theme getters and setters", -> beforeEach -> NylasEnv.packages.loadPackages() it 'getLoadedThemes get all the loaded themes', -> themes = themeManager.getLoadedThemes() expect(themes.length).toEqual(2) it 'getActiveThemes get all the active themes', -> waitsForPromise -> themeManager.activateThemes() runs -> names = NylasEnv.config.get('core.themes') expect(names.length).toBeGreaterThan(0) themes = themeManager.getActiveThemes() expect(themes).toHaveLength(names.length) describe "when the core.themes config value contains invalid entry", -> it "ignores theme", -> NylasEnv.config.set 'core.themes', [ 'ui-light' null undefined '' false 4 {} [] 'ui-dark' ] expect(themeManager.getEnabledThemeNames()).toEqual ['ui-dark', 'ui-light'] describe "::getImportPaths()", -> it "returns the theme directories before the themes are loaded", -> NylasEnv.config.set('core.themes', ['theme-with-index-less', 'ui-dark', 'ui-light']) paths = themeManager.getImportPaths() # syntax theme is not a dir at this time, so only two. expect(paths.length).toBe 2 expect(paths[0]).toContain 'ui-light' expect(paths[1]).toContain 'ui-dark' it "ignores themes that cannot be resolved to a directory", -> NylasEnv.config.set('core.themes', ['definitely-not-a-theme']) expect(-> themeManager.getImportPaths()).not.toThrow() describe "when the core.themes config value changes", -> it "add/removes stylesheets to reflect the new config value", -> themeManager.onDidChangeActiveThemes didChangeActiveThemesHandler = jasmine.createSpy() waitsForPromise -> themeManager.activateThemes() runs -> didChangeActiveThemesHandler.reset() NylasEnv.config.set('core.themes', []) waitsFor -> didChangeActiveThemesHandler.callCount == 1 runs -> didChangeActiveThemesHandler.reset() expect(document.querySelectorAll('style.theme')).toHaveLength 0 NylasEnv.config.set('core.themes', ['ui-dark']) waitsFor -> didChangeActiveThemesHandler.callCount == 1 runs -> didChangeActiveThemesHandler.reset() sheets = Array.from(document.querySelectorAll('style[priority="1"]')) expect(sheets).toHaveLength 1 expect(sheets[0].getAttribute('source-path')).toMatch /ui-dark/ NylasEnv.config.set('core.themes', ['ui-light', 'ui-dark']) waitsFor -> didChangeActiveThemesHandler.callCount == 1 runs -> didChangeActiveThemesHandler.reset() sheets = Array.from(document.querySelectorAll('style[priority="1"]')) expect(sheets).toHaveLength 2 expect(sheets[0].getAttribute('source-path')).toMatch /ui-dark/ expect(sheets[1].getAttribute('source-path')).toMatch /ui-light/ NylasEnv.config.set('core.themes', []) waitsFor -> didChangeActiveThemesHandler.callCount == 1 runs -> didChangeActiveThemesHandler.reset() sheets = Array.from(document.querySelectorAll('style[priority="1"]')) expect(sheets).toHaveLength(1) # ui-dark has an directory path, the syntax one doesn't NylasEnv.config.set('core.themes', ['theme-with-index-less', 'ui-light']) waitsFor -> didChangeActiveThemesHandler.callCount == 1 runs -> sheets = Array.from(document.querySelectorAll('style[priority="1"]')) expect(sheets).toHaveLength 2 importPaths = themeManager.getImportPaths() expect(importPaths.length).toBe 1 expect(importPaths[0]).toContain 'ui-light' it 'adds theme-* classes to the workspace for each active theme', -> themeManager.onDidChangeActiveThemes didChangeActiveThemesHandler = jasmine.createSpy() waitsForPromise -> themeManager.activateThemes() runs -> expect(document.body.classList.contains('theme-ui-light')).toBe(true) themeManager.onDidChangeActiveThemes didChangeActiveThemesHandler = jasmine.createSpy() NylasEnv.config.set('core.themes', ['theme-with-ui-variables']) waitsFor -> didChangeActiveThemesHandler.callCount > 0 runs -> # `theme-` twice as it prefixes the name with `theme-` expect(document.body.classList.contains('theme-theme-with-ui-variables')).toBe(true) expect(document.body.classList.contains('theme-ui-dark')).toBe(false) describe "when a theme fails to load", -> it "logs a warning", -> NylasEnv.packages.activatePackage('a-theme-that-will-not-be-found') .then () -> expect("This should have thrown!!").toBe(true) .catch (err) -> expect(err.message).toMatch(/Failed to load/) expect(console.warn.callCount).toBe 1 expect(console.warn.argsForCall[0][0]).toContain "Could not resolve 'a-theme-that-will-not-be-found'" describe "::requireStylesheet(path)", -> afterEach -> themeManager.removeStylesheet(path.join(__dirname, '..', 'fixtures', 'css.css')) themeManager.removeStylesheet(path.join(__dirname, '..', 'fixtures', 'sample.less')) it "synchronously loads css at the given path and installs a style tag for it in the head", -> NylasEnv.styles.onDidAddStyleElement styleElementAddedHandler = jasmine.createSpy("styleElementAddedHandler") cssPath = path.join(__dirname, '..', 'fixtures', 'css.css') lengthBefore = document.querySelectorAll('head style').length themeManager.requireStylesheet(cssPath) expect(document.querySelectorAll('head style').length).toBe lengthBefore + 1 expect(styleElementAddedHandler).toHaveBeenCalled() element = document.querySelector('head style[source-path*="css.css"]') expect(element.getAttribute('source-path')).toBe themeManager.stringToId(cssPath) expect(element.textContent).toBe fs.readFileSync(cssPath, 'utf8') # doesn't append twice styleElementAddedHandler.reset() themeManager.requireStylesheet(cssPath) expect(document.querySelectorAll('head style').length).toBe lengthBefore + 1 expect(styleElementAddedHandler).not.toHaveBeenCalled() element.remove() it "synchronously loads and parses less files at the given path and installs a style tag for it in the head", -> lessPath = path.join(__dirname, '..', 'fixtures', 'sample.less') lengthBefore = document.querySelectorAll('head style').length themeManager.requireStylesheet(lessPath) lengthAfter = document.querySelectorAll('head style').length expect(lengthAfter).toBe lengthBefore + 1 element = document.querySelector('head style[source-path*="sample.less"]') expect(element.getAttribute('source-path')).toBe themeManager.stringToId(lessPath) expect(element.textContent).toBe """ #header { color: #4d926f; } h2 { color: #4d926f; } """ # doesn't append twice themeManager.requireStylesheet(lessPath) expect(document.querySelectorAll('head style').length).toBe lengthBefore + 1 element.remove() it "supports requiring css and less stylesheets without an explicit extension", -> themeManager.requireStylesheet path.join(__dirname, '..', 'fixtures', 'css') expect(document.querySelector('head style[source-path*="css.css"]').getAttribute('source-path')).toBe themeManager.stringToId(path.join(__dirname, '..', 'fixtures', 'css.css')) themeManager.requireStylesheet path.join(__dirname, '..', 'fixtures', 'sample') expect(document.querySelector('head style[source-path*="sample.less"]').getAttribute('source-path')).toBe themeManager.stringToId(path.join(__dirname, '..', 'fixtures', 'sample.less')) document.querySelector('head style[source-path*="css.css"]').remove() document.querySelector('head style[source-path*="sample.less"]').remove() it "returns a disposable allowing styles applied by the given path to be removed", -> cssPath = require.resolve('../fixtures/css.css') expect(window.getComputedStyle(document.body)['font-weight']).not.toBe("bold") disposable = themeManager.requireStylesheet(cssPath) expect(window.getComputedStyle(document.body)['font-weight']).toBe("bold") NylasEnv.styles.onDidRemoveStyleElement styleElementRemovedHandler = jasmine.createSpy("styleElementRemovedHandler") disposable.dispose() expect(window.getComputedStyle(document.body)['font-weight']).not.toBe("bold") expect(styleElementRemovedHandler).toHaveBeenCalled() describe "base style sheet loading", -> workspaceElement = null beforeEach -> workspaceElement = document.createElement('nylas-workspace') workspaceElement.appendChild document.createElement('nylas-theme-wrap') jasmine.attachToDOM(workspaceElement) waitsForPromise -> themeManager.activateThemes() runs -> themeManager.onDidChangeActiveThemes didChangeActiveThemesHandler = jasmine.createSpy() additionalDelay = null @waitsForThemeRefresh = -> waitsFor -> # We need to wait a bit of additional time for the browser to actually # apply the CSS to the elements we check. if didChangeActiveThemesHandler.callCount > 0 additionalDelay ?= Date.now() + 100 return Date.now() > additionalDelay return false it "loads the correct values from the theme's ui-variables file", -> NylasEnv.config.set('core.themes', ['theme-with-ui-variables']) @waitsForThemeRefresh() runs -> # an override loaded in the base css of theme-with-ui-variables expect(getComputedStyle(workspaceElement)["background-color"]).toBe "rgb(0, 0, 255)" # a value that is not overridden in the theme node = document.querySelector('nylas-theme-wrap') nodeStyle = window.getComputedStyle(node) expect(nodeStyle['padding-top']).toBe "150px" expect(nodeStyle['padding-right']).toBe "150px" expect(nodeStyle['padding-bottom']).toBe "150px" describe "when there is a theme with incomplete variables", -> it "loads the correct values from the fallback ui-variables", -> NylasEnv.config.set('core.themes', ['theme-with-incomplete-ui-variables']) @waitsForThemeRefresh() runs -> # an override loaded in the base css of theme-with-incomplete-ui-variables expect(getComputedStyle(workspaceElement)["background-color"]).toBe "rgb(0, 0, 255)" # a value that is not overridden in the theme node = document.querySelector('nylas-theme-wrap') nodeStyle = window.getComputedStyle(node) expect(nodeStyle['background-color']).toBe "rgb(152, 123, 0)" describe "when a non-existent theme is present in the config", -> beforeEach -> NylasEnv.config.set('core.themes', ['non-existent-dark-ui']) waitsForPromise -> themeManager.activateThemes() it 'uses the default theme and logs a warning', -> activeThemeNames = themeManager.getActiveThemeNames() expect(console.warn.callCount).toBe(1) expect(activeThemeNames.length).toBe(1) expect(activeThemeNames).toContain('ui-light') describe "when in safe mode", -> beforeEach -> themeManager = new ThemeManager({packageManager: NylasEnv.packages, resourcePath, configDirPath, safeMode: true}) describe 'when the enabled UI theme is bundled with N1', -> beforeEach -> NylasEnv.config.set('core.themes', ['ui-light']) waitsForPromise -> themeManager.activateThemes() it 'uses the enabled themes', -> activeThemeNames = themeManager.getActiveThemeNames() expect(activeThemeNames.length).toBe(1) expect(activeThemeNames).toContain('ui-light') describe 'when the enabled UI theme is not bundled with N1', -> beforeEach -> NylasEnv.config.set('core.themes', ['installed-dark-ui']) waitsForPromise -> themeManager.activateThemes() it 'uses the default UI theme', -> activeThemeNames = themeManager.getActiveThemeNames() expect(activeThemeNames.length).toBe(1) expect(activeThemeNames).toContain('ui-light') describe 'when the enabled UI theme is not bundled with N1', -> beforeEach -> NylasEnv.config.set('core.themes', ['installed-dark-ui']) waitsForPromise -> themeManager.activateThemes() it 'uses the default UI theme', -> activeThemeNames = themeManager.getActiveThemeNames() expect(activeThemeNames.length).toBe(1) expect(activeThemeNames).toContain('ui-light')
CoffeeScript
5
cnheider/nylas-mail
packages/client-app/spec/themes/theme-manager-spec.coffee
[ "MIT" ]
defmodule ChatApi.Lambdas.Lambda do use Ecto.Schema import Ecto.Changeset alias ChatApi.Accounts.Account alias ChatApi.Users.User @type t :: %__MODULE__{ code: String.t(), description: String.t(), language: String.t(), last_deployed_at: DateTime.t() | nil, last_executed_at: DateTime.t() | nil, name: String.t(), runtime: String.t(), status: String.t(), lambda_function_name: String.t() | nil, lambda_function_handler: String.t() | nil, lambda_revision_id: String.t() | nil, lambda_last_update_status: String.t() | nil, metadata: map() | nil, # Relations account_id: any(), account: any(), creator_id: any(), creator: any(), # Timestamps inserted_at: any(), updated_at: any() } @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id schema "lambdas" do field(:code, :string) field(:description, :string) field(:language, :string) field(:last_deployed_at, :utc_datetime) field(:last_executed_at, :utc_datetime) field(:metadata, :map) field(:name, :string) field(:runtime, :string) field(:status, :string, default: "pending") field(:lambda_function_name, :string) field(:lambda_function_handler, :string) field(:lambda_revision_id, :string) field(:lambda_last_update_status, :string) belongs_to(:account, Account) belongs_to(:creator, User, foreign_key: :creator_id, references: :id, type: :integer) timestamps() end @doc false def changeset(lambda, attrs) do lambda |> cast(attrs, [ :name, :description, :code, :language, :runtime, :status, :last_deployed_at, :last_executed_at, :account_id, :lambda_function_name, :lambda_function_handler, :lambda_revision_id, :lambda_last_update_status, :metadata ]) |> validate_required([ :account_id, :name, :status ]) |> validate_inclusion(:status, ["active", "inactive", "pending"]) |> validate_inclusion(:language, ["javascript"]) |> validate_inclusion(:runtime, ["nodejs14.x"]) end end
Elixir
4
ZmagoD/papercups
lib/chat_api/lambdas/lambda.ex
[ "MIT" ]
GET /api/v1/blocks/1 HTTP/1.1 Host: example.com
HTTP
0
jaromil/bigchaindb
docs/root/source/installation/api/http-samples/get-block-request.http
[ "Apache-2.0" ]
it "foobars [123]", ->
CoffeeScript
0
bkucera2/cypress
packages/server/test/support/fixtures/ids/existing.coffee
[ "MIT" ]
from cymem.cymem cimport Pool from preshed.maps cimport PreshMap cimport numpy as np from libc.stdint cimport uint64_t from .structs cimport MorphAnalysisC from .strings cimport StringStore from .typedefs cimport attr_t, hash_t cdef class Morphology: cdef readonly Pool mem cdef readonly StringStore strings cdef PreshMap tags # Keyed by hash, value is pointer to tag cdef MorphAnalysisC create_morph_tag(self, field_feature_pairs) except * cdef int insert(self, MorphAnalysisC tag) except -1 cdef int check_feature(const MorphAnalysisC* morph, attr_t feature) nogil cdef list list_features(const MorphAnalysisC* morph) cdef np.ndarray get_by_field(const MorphAnalysisC* morph, attr_t field) cdef int get_n_by_field(attr_t* results, const MorphAnalysisC* morph, attr_t field) nogil
Cython
3
snosrap/spaCy
spacy/morphology.pxd
[ "MIT" ]
-- Macro_namedSelSets.ms - visual named selection set manager -- October 30, 2001 -- Mark Young, Ravi Karra /* Revision History: 19 Juin 2003; pfbreton changed layers handling and object properties handling to work with the new Layers logic change 24 mai 2003: pf breton changed the name of the button text and tooltips */ macroScript namedSelSets ButtonText:"Edit Named Selection Sets..." --pfb 24.05.2003 category:"Edit" internalCategory:"Edit" tooltip:"Edit Named Selection Sets..." --pfb 24.05.2003 ( global vEditNamedSelectionSets global ensMenu, sToolbar if (vEditNamedSelectionSets != undefined) do ( try DestroyDialog vEditNamedSelectionSets catch () ) rcMenu ensMenu ( local clone_node, is_cut menuItem mi_rename "Rename (F2)" menuItem mi_cut "Cut (Ctrl+X)" menuItem mi_copy "Copy (Ctrl+C)" menuItem mi_paste "Paste (Ctrl+V)" menuItem mi_collapse "Collapse All" menuItem mi_expand "Expand All" seperator sep1 menuItem mi_create "" menuItem mi_delete "" --menuItem mi_pick "" menuItem mi_add "" menuItem mi_subtract "" seperator sep2 menuItem mi_selectSet "" menuItem mi_selectName "" menuItem mi_query "" menuItem mi_findNext "Find Next (Ctrl+G)" on mi_rename picked do ( vEditNamedSelectionSets.startEdit() ) on mi_collapse picked do ( for n in vEditNamedSelectionSets.vTVSets.nodes where n.parent != undefined do n.expanded = false ) on mi_expand picked do ( for n in vEditNamedSelectionSets.vTVSets.nodes where n.parent != undefined do n.expanded = true ) on mi_create picked do vEditNamedSelectionSets.executeButton #create on mi_delete picked do vEditNamedSelectionSets.executeButton #delete --on mi_pick picked do vEditNamedSelectionSets.executeButton #pick on mi_add picked do vEditNamedSelectionSets.executeButton #add on mi_subtract picked do vEditNamedSelectionSets.executeButton #subtract on mi_selectSet picked do vEditNamedSelectionSets.executeButton #selectSet on mi_selectName picked do vEditNamedSelectionSets.executeButton #selectName on mi_filter picked do vEditNamedSelectionSets.executeButton #filter on mi_findNext picked do vEditNamedSelectionSets.findNext() on ensMenu open do ( local rcMenuStr = "" local btns = vEditNamedSelectionSets.btns for i=1 to btns.count do ( local b = btns[i] as string rcMenuStr += ";ensMenu.mi_" + b + ".text = \"" + vEditNamedSelectionSets.btnToolTips[i] + "\"" + ";ensMenu.mi_" + b + ".enabled = " + vEditNamedSelectionSets.vToolbar.buttons[i].enabled as string ) execute rcMenuStr -- set states for cut/copy/paste local sel = vEditNamedSelectionSets.vTVSets.selectedItem mi_rename.enabled = mi_copy.enabled = mi_cut.enabled = (sel.parent != undefined) try ( mi_paste.enabled = sel.parent != undefined and clone_node != undefined and clone_node.parent != undefined and sel.text != clone_node.parent.text ) catch ( mi_paste.enabled = false ) ) on mi_cut picked do ( if clone_node != undefined then clone_node.image = 2 clone_node = vEditNamedSelectionSets.vTVSets.selectedItem clone_node.image = 3 is_cut = true ) on mi_copy picked do ( try(if clone_node != undefined then clone_node.image = 2)catch() clone_node = vEditNamedSelectionSets.vTVSets.selectedItem is_cut = false ) on mi_paste picked do ( if clone_node != undefined then ( vEditNamedSelectionSets.tvClone clone_node is_cut if is_cut then (clone_node = undefined) vEditNamedSelectionSets.vTVSets.refresh() ) ) ) rollout vEditNamedSelectionSets "Named Selection Sets" width:340 height:375 ( -------------------------------------------------------- local btnToolTips = #( "Create New Set", "Remove", "Add Selected Objects", "Subtract Selected Objects", "Select Objects in Set", "Select Objects By Name", "Highlight Selected Objects") local menuStrs = #("Rename") -------------------------------------------------------- local bw = 24, bh = 24 local vToolbar, ini_file = ((getDir #plugcfg) + "\\namedSelSets.ini") --activexControl vToolBar "MSComctlLib.Toolbar" pos:[10,5] width:280 height:24 button vCreate "" pos:[10 + bw*0, 5] width:bw height:bh tooltip:"Create New Set" button vDelete "" pos:[10 + bw*1, 5] width:bw height:bh tooltip:"Remove" button vAdd "" pos:[10 + bw*2, 5] width:bw height:bh tooltip:"Add Selected Objects" button vSubtract "" pos:[10 + bw*3, 5] width:bw height:bh tooltip:"Subtract Selected Objects" button vSelectSet "" pos:[10 + bw*4, 5] width:bw height:bh tooltip:"Select Objects in Set" button vSelectName "" pos:[10 + bw*5, 5] width:bw height:bh tooltip:"Select Objects By Name" button vQuery "" pos:[10 + bw*6, 5] width:bw height:bh tooltip:"Highlight Selected Objects" activexControl vTVSets "MSComctlLib.TreeCtrl" pos:[10,10+bh] width:320 height:300 activexControl vStatusBar "MSComctlLib.SBarCtrl" pos:[1,360] width:325 height:20 -- Image list controls for holding icons activeXControl ilTv "{2C247F23-8591-11D1-B16A-00C0F0283628}" height:0 width:0 activeXControl ilTb "{2C247F23-8591-11D1-B16A-00C0F0283628}" height:0 width:0 timer tmr "" interval:1 active:false edittext et "" pos:[1000,1000] -- Various locals local btns = #(#create, #delete, #add, #subtract, #selectSet, #selectName, #query) local highNodes = #() -- highlighted nodes local nmsNode -- top node for named selection sets local tvBackColor = color 223 223 223, tvNodeHighColor = color 0 120 0, tvSetHighColor = color 0 0 120 local in_drag = false, drag_node, drop_node, mouse_icon -- various key equivalents local kCtrl = 2, kF2 = 113, kF5 = 116, kDelete = 46, kCtrlX = 24, kCtrlC = 3, kCtrlV = 22, kCtrlG = 7 local iconDir = (getDir #ui) + "\\icons" fn initToolbar tb = ( tb.appearance = #ccFlat tb.style = #tbrFlat tb.buttonWidth = ilTb.imageheight = 16 tb.buttonHeight = ilTb.imagewidth = 16 tb.borderStyle = #ccNone for i=1 to btns.count do ilTb.listImages.add i btns[i] (loadPicture (iconDir + "\\tool" + btns[i] + ".ico")) tb.imageList = ilTb for i=1 to btns.count do ( local btn = tb.buttons.add() btn.key = btns[i] as string btn.image = i --if btns[i] == #pick then btn.style = #tbrCheck btn.toolTipText = btnToolTips[i] ) ) fn initButtons = ( -- collect the toolbar buttons into vToolbar.buttons array local btnStr = "" for i = 1 to btns.count do btnStr += ";append vEditNamedSelectionSets.vToolbar.buttons vEditNamedSelectionSets.v" + btns[i] execute btnStr -- assign image indices for b = 1 to btns.count do ( local ii = b*2-1 if b > 6 then ii -= 1 vToolbar.buttons[b].images = #( iconDir + "\\enss_tools_16i.bmp", iconDir + "\\enss_tools_16a.bmp", 13, ii, ii, ii+1, ii+1) try( vToolbar.buttons[b].toolTip = btnToolTips[b] )catch() ) ) fn initTreeView tv = ( local TV_FIRST = 0x1100 local TVM_SETINDENT = (TV_FIRST + 7) local TVM_SETBKCOLOR = (TV_FIRST + 29) local TVM_SETINSERTMARKCOLOR = (TV_FIRST + 37) local TVM_SETLINECOLOR = (TV_FIRST + 40) windows.sendMessage tv.hWnd TVM_SETBKCOLOR 0 0xDDDDDD windows.sendMessage tv.hWnd TVM_SETINSERTMARKCOLOR 0 0xDDDDDD windows.sendMessage tv.hWnd TVM_SETINDENT 0 1 tv.labelEdit = #tvwManual tv.font.size = 10 tv.scroll = true tv.fullRowSelect = true tv.style = #tvwPlusPictureText --tv.style = #tvwTreeLinesPlusMinusPictureText tv.hideSelection = false tv.oleDragMode = #ccOLEDragAutomatic tv.oleDropMode = #ccOLEDropManual ilTv.imageheight = 16 ilTv.imagewidth = 16 ilTv.listImages.add 1 #selSet (loadPicture (iconDir + "\\tvSet.ico")) ilTv.listImages.add 2 #node (loadPicture (iconDir + "\\tvObj.ico")) ilTv.listImages.add 3 #cutNode (loadPicture (iconDir + "\\tvCutObj.ico")) tv.imageList = ilTv ) fn initStatusBar sb = ( sb.style = #sbrSimple sb.simpleText = "" sb.font.size = 10 ) fn findChildNode tvn text = ( local c = tvn.child for i=1 to tvn.children do ( if text == c.text then return c c = c.next ) return undefined ) fn getHitNode = ( local p = getCursorPos vTVSets vTVSets.hitTest (p.x*15) (p.y*15) ) fn isSelSet tag = ( ((classof tag) == String and selectionSets[tag] != undefined) ) fn addNodesToTreeView tv_nodes max_nodes parent:undefined = ( if isValidNode max_nodes then max_nodes = #(max_nodes) for i=1 to max_nodes.count do ( local c = max_nodes[i] if c == undefined do continue local tvn if parent == undefined then ( tvn = tv_nodes.add() tvn.text = c.name tvn.tag = c ) else ( -- add the tv node as a child tvn = tv_nodes.add parent.index 4 "" c.name 2 -- tag the tv node with the child tvn.tag = c ) tvn.backcolor = tvBackcolor tvn.expanded = true ) ) function addSettoTreeView name = ( local ssNode = vTVSets.nodes.add nmsNode.index 4 "" name ssNode.expanded = false ssNode.backcolor = tvBackColor ssNode.tag = name ssNode.image = 1 ssNode.sorted = true ssNode ) function fUpdateTools sel: = ( if sel == undefined then return() local btns = vToolbar.buttons if sel == unsupplied do sel = vTVSets.selectedItem local scene = (selection.count > 0) local list = if sel.parent == undefined then false else isSelSet sel.tag local any = sel.parent != undefined vdelete.enabled = any vselectSet.enabled = any vselectName.enabled = true --vpick.enabled = list vadd.enabled = scene and any vsubtract.enabled = scene and any local cursel = getCurrentSelection() local setStr = if list then sel.text else if (isValidNode sel.tag) then sel.parent.text else "" local selStr = if cursel.count == 1 then cursel[1].name else cursel.count as string vStatusBar.simpleText = "{" + setStr + "} - " + "Selected: " + selStr ) function fResetGUI = ( local tv_nodes = vTVSets.nodes vTVSets.nodes.clear() nmsNode = tv_nodes.add() nmsNode.text = "Named Selection Sets" nmsNode.expanded = true nmsNode.backcolor = tvBackColor/*color 180 180 180*/ -- nmsNode.forecolor = red -- nmsNode.bold = true nmsNode.sorted = true vTVSets.selectedItem = nmsNode for i=1 to getNumNamedSelSets() do ( local ssNode = addSetToTreeView (getNamedSelSetName i) addNodesToTreeView tv_nodes selectionSets[i] parent:ssNode ) ) function fRefresh = ( local selIndex = if vTVSets.selectedItem == undefined then 1 else vTVSets.selectedItem.index fResetGUI() vTVSets.refresh() vTVSets.selectedItem = vTVSets.nodes[selIndex] ) function fCreateSet = ( local a, b=undefined, i=1 while (b == undefined) do ( local c = "New Set" if (i > 1) do c = c + " (" + (i as string) + ")" if (selectionSets[c] == undefined) then b = c else i = i + 1 ) try selectionSets[c] = selection catch () vTVSets.selectedItem = (addSettoTreeView c) addNodesToTreeView vTVSets.nodes (getCurrentSelection()) parent:vTVSets.selectedItem enableAccelerators = false vTVSets.startLabelEdit() ) function fAddObjects objs selSet:undefined mode:#add = ( local s, t, sel = (if selSet == undefined then vTVSets.selectedItem else selSet) if objs == undefined or sel == undefined or sel.parent == undefined then return() if (isValidNode sel.tag) then sel = sel.parent t = sel.text local u = #() try s = selectionSets[t] catch s = undefined if (s != undefined) do ( u = for w in s collect w for w in objs do ( local i = findItem u w if (mode == #subtract) then ( if (i > 0) do ( vTVSets.nodes.remove (findChildNode sel u[i].name).index deleteItem u i ) ) else if (i == 0) do ( append u w addNodesToTreeView vTVSets.nodes w parent:sel ) ) selectionSets[t] = u ) ) function fDeleteItem = ( local sel = vTVSets.selectedItem if (sel != undefined) do ( local val = sel.tag if (classof val) == String and selectionSets[val] != undefined then ( deleteItem selectionSets sel.text if sel.previous != undefined then vTVSets.selectedItem = sel.previous vTVSets.nodes.remove sel.index ) else if (isValidNode val) then ( fAddObjects val mode:#subtract ) ) ) function fPickObjects = ( local objs = #() append objs (pickObject message:"Pick Objects to Add" /*count:#multiple*/) fAddObjects objs vToolbar.buttons[#pick].value = #tbrUnpressed ) function fSelectObjects = ( local selSet, o sel = vTVSets.selectedItem if sel.parent == undefined then return() if (isValidNode sel.tag) then sel = sel.parent try selSet = selectionSets[sel.text] catch selSet = undefined with redraw Off ( if (selSet!= undefined) do ( clearSelection() local fh = for o in selSet where (o != undefined not o.isHidden and not o.isFrozen) collect o if fh.count != selset.count then ( local unset = QueryBox "This set contains hidden and/or frozen objects.\nDo you want these objects to be unhidden and unfrozen?\n(Choosing \"No\" means that the hidden/frozen objects will not be selected.)" \ title:"3ds max" if unset == true then ( unhide selSet doLayer:true -- pfbreton; 19 Juin 2003 unfreeze selset doLayer:true -- pfbreton; 19 Juin 2003 select selSet ) else select fh ) else select selSet ) ) ) function fChangeName completed = ( if (vListSets.selection == 0) then ( if (vEditName.text != "") do vEditName.text = "" ) else if (completed) do ( local s = vListSets.selected if ((findItem vListSets.items vEditName.text) > 0) then vEditName.text = s else ( local u, w=#() for u in selectionSets[s] do append w u deleteItem selectionSets s selectionSets[vEditName.text] = w fShowSets() fSelectSet name:vEditName.text ) ) ) function fSelQuery objs = ( setWaitCursor() -- clear existing highlights for hn in highNodes do ( try ( hn.forecolor = black hn.bold = false ) catch() ) vTVSets.selectedItem = nmsNode highNodes = #() local c = nmsNode.child for i=1 to nmsNode.children do ( local qNodes = #() if objs.count == 0 then ( c = c.next continue ) local has_one = false for o in objs do ( local cNode = findChildNode c o.name if cNode != undefined then ( append qNodes cNode has_one = true ) ) if has_one then ( append highNodes c join highNodes qNodes ) c = c.next ) if highNodes.count > 0 then highNodes[1].ensureVisible() -- highlight the nodes for hn in highNodes do ( hn.bold = true hn.forecolor = if (isKindOf hn.tag String) then tvSetHighColor else tvNodeHighColor ) setArrowCursor() ) function findNext = ( if highNodes.count < 2 then return() local sel = vTVSets.selectedItem local c if sel == undefined then c = nmsNode.child else c = if (isValidNode sel.tag) then sel.parent else if (isSelSet sel.tag) then sel else nmsNode.child while true do ( c = if c.next == undefined then c.firstSibling else c.next if c.bold == true then ( vTVSets.selectedItem = c; exit()) ) ) function fOpen = ( -- try ( if GetCommandPanelTaskMode() == #modify and subobjectlevel > 0 then max rns else ( local pos = execute (getIniSetting ini_file #general #position) local width = execute (getIniSetting ini_file #general #width) local height = execute (getIniSetting ini_file #general #height) if pos == ok then pos = [100, 100] if width == ok then width = 340 if height == ok then height = 375 createDialog vEditNamedSelectionSets width:width height:height pos:pos \ style:#(#style_titlebar, #style_sysmenu, #style_resizing, #style_minimizebox) escapeEnable:false registerViewWindow vEditNamedSelectionSets ) ) -- catch () ) fn startEdit = ( enableAccelerators = false if vTVSets.selectedItem.parent != undefined then ( vTVSets.startLabelEdit() ) ) fn executeButton name = ( undo on ( case name of ( #create: fCreateSet() #delete: fDeleteItem() #add: fAddObjects (getCurrentSelection()) --#pick: if btn.value == #tbrPressed then fPickObjects() else btn.value = #tbrPressed #subtract: fAddObjects (getCurrentSelection()) mode:#subtract #selectSet: fSelectObjects() #selectName: ( local objs = (selectByName title:"Select Objects") if objs != undefined then select objs ) #query: (fSelQuery selection) ) ) ) fn tvClone tvNode kMove = ( local objs = if isSelSet tvNode.tag then selectionSets[tvNode.text] else #(tvNode.tag) fAddObjects objs if kMove and not (isSelSet tvNode.tag) then ( fAddObjects objs selSet:tvNode mode:#subtract ) gc light:true ) on vEditNamedSelectionSets open do ( vToolbar = sToolbar () initTreeView vTVSets --initToolbar vToolbar initButtons () initStatusBar vStatusbar fResetGUI() fUpdateTools() vTVSets.size = [vEditNamedSelectionSets.width,vEditNamedSelectionSets.height] - [20, 60] vStatusbar.pos = [10, vEditNamedSelectionSets.height-25] vStatusbar.size = [vEditNamedSelectionSets.width - 20, 20] callbacks.addScript #selectionSetChanged "vEditNamedSelectionSets.fUpdateTools()" \ id:#vEditNamedSelectionSets callbacks.addScript #filePostOpen "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #systemPostReset "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #systemPostNew "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #nodePostDelete "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #nodeRenamed "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #sceneNodeAdded "vEditNamedSelectionSets.tmr.active=true" \ id:#vEditNamedSelectionSets callbacks.addScript #sceneUndo "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #sceneRedo "vEditNamedSelectionSets.fResetGUI()" \ id:#vEditNamedSelectionSets callbacks.addScript #systemPreReset "destroyDialog vEditNamedSelectionSets" \ id:#vEditNamedSelectionSets callbacks.addScript #systemPreNew "destroyDialog vEditNamedSelectionSets" \ id:#vEditNamedSelectionSets callbacks.addScript #filePreOpen "destroyDialog vEditNamedSelectionSets" \ id:#vEditNamedSelectionSets ) on vEditNamedSelectionSets close do ( -- try ( callbacks.removeScripts id:#vEditNamedSelectionSets unRegisterViewWindow vEditNamedSelectionSets ensMenu.clone_node = undefined setIniSetting ini_file #general #position ((getDialogpos vEditNamedSelectionSets) as string) setIniSetting ini_file #general #width (vEditNamedSelectionSets.width as string) setIniSetting ini_file #general #height (vEditNamedSelectionSets.height as string) ) -- catch () ) on vEditNamedSelectionSets resized size do ( vTVSets.size = size - [20, 60] vStatusbar.pos = [10, size.y-25] vStatusbar.size = [size.x - 20, 20] ) on vToolbar buttonClick btn do executeButton (btn.key as name) -- button clicks on vCreate pressed do executeButton #create on vDelete pressed do executeButton #delete on vAdd pressed do executeButton #add on vSubtract pressed do executeButton #subtract on vSelectSet pressed do executeButton #selectSet on vSelectName pressed do executeButton #selectName on vQuery pressed do executeButton #query on vTVSets keyUp KeyCode Shift do ( --print kF2 case keyCode of ( kF5: fRefresh() kF2: startEdit() kDelete: fDeleteItem() ) ) on vTVSets keyPress keyCode do ( --MessageBox "KeyPress" local sel = vTVSets.selectedItem case keyCode of ( kCtrlX : if isValidNode sel.tag then ensMenu.mi_cut.picked() kCtrlC : if isValidNode sel.tag then ensMenu.mi_copy.picked() kCtrlV : if sel.parent != undefined then ensMenu.mi_paste.picked() kCtrlG : findNext() ) ) on vTVSets beforeLabelEdit cancel do enableAccelerators = false on vTVSets afterLabelEdit cancel newString do ( if cancel==1 then return () local sel = vTVSets.selectedItem local val = sel.tag if isSelSet val then ( local objs = for o in selectionSets[sel.text] collect o deleteItem selectionSets sel.text selectionSets[newString] = objs sel.tag = newString ) else if (isValidNode val) then ( val.name = newString ) ) on vTVSets MouseUp btn shift x y do ( enableAccelerators = false local sel = getHitNode() fUpdateTools() if btn == 2 and sel != undefined do ( vTVSets.selectedItem = sel popupmenu ensMenu pop:[x, y] rollout:vEditNamedSelectionSets ) ) on vTVSets DblClick do ( local p = getCursorPos vTVSets if (vTVSets.hitTest (p.x*15) (p.y*15)) != undefined then vTVSets.selectedItem.expanded = not vTVSets.selectedItem.expanded local val = vTVSets.selectedItem.tag undo "Select Set" on ( if isSelSet val then fSelectObjects() else if (isValidNode val) then select val ) ) on vTVSets OLEStartDrag data effects do ( drag_node = getHitNode() if drag_node == undefined or drag_node.parent == undefined then return() mouse_icon = vTVSets.mouseIcon --vTVSets.mouseIcon = loadPicture (iconDir + "tvSet.ico")--ilTv.listImages[drag_node.image].picture --drag_node.createDragImage() showProperties data -- data.clear() ) on vTVSets OLEDragOver data Effect Button Shift x y State do ( try ( drop_node = getHitNode() if drop_node != undefined and isSelSet drop_node.tag then ( if drop_node.text != drag_node.parent.text then vTVSets.selectedItem = drop_node --dropHighlight else vTVSets.selectedItem = undefined ) ) catch() ) on vTVSets OLEDragDrop data Effect btn key x y do ( if drop_node != undefined and (isSelSet drop_node.tag) then tvClone drag_node (key != kCtrl) ) on tmr tick do ( fRefresh(); tmr.active = false) on vTVSets OLECompleteDrag effect do ( --RK: Defect 510242, no need to update --if drop_node != undefined then ( tmr.active = true /*hack!!! refresh after drag&drop*/ ) drop_node = undefined ) on vEditNamedSelectionSets help do ( helpSys.help 3412 ) ) struct sToolbar (buttons=#()) vEditNamedSelectionSets.fOpen() /* eof */ )
MAXScript
5
89096000/MaxScript
3D/3ds2ae/02_resources/max scripts/3ds ax scripts/Macro_NamedSelSets.mcr
[ "MIT" ]
module RPN use Lang pub type rpn_cmd = CmdConst(int) or CmdDrop() or CmdDup() or CmdSwap() or CmdFn1(fn(int) -> int) or CmdFn2(fn(int, int) -> int) impl array[int] { fn exec (cmd : rpn_cmd) { match cmd { CmdConst(n) { self.push(n) } CmdDrop() { self.pop() } CmdDup() { self.push(self[self.len() - 1]) } CmdSwap() { let i = self.len() - 1; let j = self.len() - 2; let a = self[i]; let b = self[j]; self[i] = b; self[j] = a; } CmdFn1(f) { let a = self[self.len() - 1]; self.pop(); self.push(f(a)); } CmdFn2(f) { let a = self[self.len() - 2]; let b = self[self.len() - 1]; self.pop(); self.pop(); self.push(f(a, b)); } } }} impl string { fn triml () { let i = 0; while i < self.len() and self[i].space?() { i = i + 1; } self[i,] } } pub fn parseAll (str : string) { str = str.triml(); if str.empty?() { [] } else { let (cmd, str') = parse(str); cmd $ parseAll(str') } } pub fn parse (str : string) { if str[0].digit?() { let (num, str') = parseNumber(str); (CmdConst(num), str') } else { let (id, str') = parseCmdName(str); (cmdByName(id), str') } } fn parseNumber (str : string) { let i = 0; while i < str.len() and str[i].digit?() { i = i + 1; } (str[0, i].to_int(), str[i,]) } fn parseCmdName (str : string) { let i = 0; while i < str.len() and not str[i].space?() { i = i + 1; } (str[0, i], str[i,]) } fn cmdByName (name : string) { match name { "drop" -> CmdDrop() "dup" -> CmdDup() "swap" -> CmdSwap() "neg" -> CmdFn1(.neg) "+" -> CmdFn2(.add) "-" -> CmdFn2(.sub) "*" -> CmdFn2(.mul) "/" -> CmdFn2(.div) } } pub fn main () { let console = IO::console(); let stack = array(); let going = true; while going { console.write("\n"); if stack.empty?() { console.write("(none)"); } else { stack.each |x| { console.write(x.str() + " "); } } console.write("\n"); let input = console.prompt("# "); if input.empty?() { going = false; } else { parseAll(input).each(stack.exec); } } console.write("\n") }
Opal
4
iitalics/Opal
examples/rpn.opal
[ "MIT" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="13008000"> <Property Name="NI.LV.All.SourceOnly" Type="Bool">false</Property> <Property Name="NI.Project.Description" Type="Str"></Property> <Item Name="My Computer" Type="My Computer"> <Property Name="IOScan.Faults" Type="Str"></Property> <Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property> <Property Name="IOScan.NetWatchdogEnabled" Type="Bool">false</Property> <Property Name="IOScan.Period" Type="UInt">10000</Property> <Property Name="IOScan.PowerupMode" Type="UInt">0</Property> <Property Name="IOScan.Priority" Type="UInt">9</Property> <Property Name="IOScan.ReportModeConflict" Type="Bool">true</Property> <Property Name="IOScan.StartEngineOnDeploy" Type="Bool">false</Property> <Property Name="NI.SortType" Type="Int">3</Property> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="source_vi" Type="Folder" URL="../source_vi"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> <Item Name="languages" Type="Folder" URL="../languages"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> <Item Name="images" Type="Folder" URL="../images"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> <Item Name="eeg_files" Type="Folder" URL="../eeg_files"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> <Item Name="client_examples" Type="Folder" URL="../client_examples"> <Property Name="NI.DISK" Type="Bool">true</Property> </Item> <Item Name="Main.vi" Type="VI" URL="../Main.vi"/> <Item Name="config.ini" Type="Document" URL="../config.ini"/> <Item Name="REQUIREMENTS.txt" Type="Document" URL="../REQUIREMENTS.txt"/> <Item Name="Dependencies" Type="Dependencies"> <Property Name="NI.SortType" Type="Int">2</Property> <Item Name="vi.lib" Type="Folder"> <Item Name="8.6CompatibleGlobalVar.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/config.llb/8.6CompatibleGlobalVar.vi"/> <Item Name="__closeStorageFromObject.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__closeStorageFromObject.vi"/> <Item Name="__convertUtcTime.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__convertUtcTime.vi"/> <Item Name="__createXmlString.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__createXmlString.vi"/> <Item Name="__getPropertyTypeObject.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/__getPropertyTypeObject.vi"/> <Item Name="__getPropertyTypeStorage.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/__getPropertyTypeStorage.vi"/> <Item Name="__linkRefnumDefinitionObject.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__linkRefnumDefinitionObject.vi"/> <Item Name="__linkRefnumDefinitionStorage.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__linkRefnumDefinitionStorage.vi"/> <Item Name="__loadFloat64Channel.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadFloat64Channel.vi"/> <Item Name="__loadInt32Channel.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadInt32Channel.vi"/> <Item Name="__loadPropEnum.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropEnum.vi"/> <Item Name="__loadPropErrFilter.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropErrFilter.vi"/> <Item Name="__loadPropFloat32.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropFloat32.vi"/> <Item Name="__loadPropFloat64.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropFloat64.vi"/> <Item Name="__loadPropInt16.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropInt16.vi"/> <Item Name="__loadPropInt32.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropInt32.vi"/> <Item Name="__loadPropRef.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropRef.vi"/> <Item Name="__loadPropRefList.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropRefList.vi"/> <Item Name="__loadPropString.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropString.vi"/> <Item Name="__loadPropTime.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropTime.vi"/> <Item Name="__loadPropUInt8.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__loadPropUInt8.vi"/> <Item Name="__queryObjects.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__queryObjects.vi"/> <Item Name="__savePropEnum.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropEnum.vi"/> <Item Name="__savePropErrFilter.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropErrFilter.vi"/> <Item Name="__savePropFloat32.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropFloat32.vi"/> <Item Name="__savePropFloat64.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropFloat64.vi"/> <Item Name="__savePropInt16.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropInt16.vi"/> <Item Name="__savePropInt32.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropInt32.vi"/> <Item Name="__savePropRef.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropRef.vi"/> <Item Name="__savePropRefList.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropRefList.vi"/> <Item Name="__savePropString.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropString.vi"/> <Item Name="__savePropTime.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropTime.vi"/> <Item Name="__savePropUInt8.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__savePropUInt8.vi"/> <Item Name="__setErrSource.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/__setErrSource.vi"/> <Item Name="_closeDataStorage.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_closeDataStorage.vi"/> <Item Name="_commitObject.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_commitObject.vi"/> <Item Name="_commitStorage.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_commitStorage.vi"/> <Item Name="_commitTransaction.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_commitTransaction.vi"/> <Item Name="_createObject.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_createObject.vi"/> <Item Name="_findOpenStorage.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_findOpenStorage.vi"/> <Item Name="_getChannelLength.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_getChannelLength.vi"/> <Item Name="_getObjDefByName.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_getObjDefByName.vi"/> <Item Name="_getPluginListFromUsi.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_getPluginListFromUsi.vi"/> <Item Name="_getPropDefByName.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_getPropDefByName.vi"/> <Item Name="_getPropertyType.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_getPropertyType.vi"/> <Item Name="_isTdmDataStructure.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_isTdmDataStructure.vi"/> <Item Name="_L_localizedStrings.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_L_localizedStrings.vi"/> <Item Name="_L_NodeNames.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_L_NodeNames.vi"/> <Item Name="_L_stringTable.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_L_stringTable.vi"/> <Item Name="_loadObjectDefinitions.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_loadObjectDefinitions.vi"/> <Item Name="_loadProperty.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_loadProperty.vi"/> <Item Name="_loadPropertyDefinitions.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_loadPropertyDefinitions.vi"/> <Item Name="_mapPropertyNames.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_mapPropertyNames.vi"/> <Item Name="_mapTdmObjectTypes.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_mapTdmObjectTypes.vi"/> <Item Name="_mapTdmPropertyNames.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_mapTdmPropertyNames.vi"/> <Item Name="_openDataStorage.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_openDataStorage.vi"/> <Item Name="_openFunction.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_openFunction.ctl"/> <Item Name="_openStorageWithRootNoPluginCheck.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_openStorageWithRootNoPluginCheck.vi"/> <Item Name="_openWithRoot.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_openWithRoot.vi"/> <Item Name="_saveProperty.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_saveProperty.vi"/> <Item Name="_sortStorageFormat.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/utility/_sortStorageFormat.vi"/> <Item Name="_stringsToBeTranslated.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/_stringsToBeTranslated.ctl"/> <Item Name="_TDM_DATA_MODEL.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/_TDM_DATA_MODEL.vi"/> <Item Name="Application Directory.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/file.llb/Application Directory.vi"/> <Item Name="bh3_acc100mg_waveform_format.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_acc100mg_waveform_format.vi"/> <Item Name="bh3_bluetooth_read.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_bluetooth_read.vi"/> <Item Name="bh3_breathing_waveform_format.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_breathing_waveform_format.vi"/> <Item Name="bh3_crc8.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_crc8.vi"/> <Item Name="bh3_create_package.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_create_package.vi"/> <Item Name="bh3_data_array_to_data_string.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_data_array_to_data_string.vi"/> <Item Name="bh3_ECG_waveform_format.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_ECG_waveform_format.vi"/> <Item Name="bh3_lifesign.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_lifesign.vi"/> <Item Name="bh3_open_bt_cnx.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/support_vi/bh3_open_bt_cnx.vi"/> <Item Name="bh3_set_accelerometer_100mg_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_accelerometer_100mg_packet_transmit_state.vi"/> <Item Name="bh3_set_accelerometer_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_accelerometer_packet_transmit_state.vi"/> <Item Name="bh3_set_breathing_waveform_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_breathing_waveform_packet_transmit_state.vi"/> <Item Name="bh3_set_ECG_waveform_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_ECG_waveform_packet_transmit_state.vi"/> <Item Name="bh3_set_extended_data_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_extended_data_packet_transmit_state.vi"/> <Item Name="bh3_set_general_data_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_general_data_packet_transmit_state.vi"/> <Item Name="bh3_set_r_r_data_packet_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_set_r_r_data_packet_transmit_state.vi"/> <Item Name="bh3_stop_all_transmit_state.vi" Type="VI" URL="/&lt;vilib&gt;/MuSAE Lab/BioHarness3 Toolkit/command_vi/bh3_stop_all_transmit_state.vi"/> <Item Name="Bluetooth Generate Error Cluster.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/Bluetooth.llb/Bluetooth Generate Error Cluster.vi"/> <Item Name="Bluetooth RFCOMM Service Discovery.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/Bluetooth.llb/Bluetooth RFCOMM Service Discovery.vi"/> <Item Name="BuildHelpPath.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/BuildHelpPath.vi"/> <Item Name="channel_count.ctl" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/Control Def/channel_count.ctl"/> <Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Check if File or Folder Exists.vi"/> <Item Name="Check Path.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Check Path.vi"/> <Item Name="Check Special Tags.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Check Special Tags.vi"/> <Item Name="Clear Errors.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Clear Errors.vi"/> <Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Convert property node font to graphics font.vi"/> <Item Name="dataModel.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/dataModel.ctl"/> <Item Name="Details Display Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Details Display Dialog.vi"/> <Item Name="DialogType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogType.ctl"/> <Item Name="DialogTypeEnum.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/DialogTypeEnum.ctl"/> <Item Name="Directory of Top Level VI.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Directory of Top Level VI.vi"/> <Item Name="Draw Flattened Pixmap.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Draw Flattened Pixmap.vi"/> <Item Name="Dynamic To Waveform Array.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/Dynamic To Waveform Array.vi"/> <Item Name="Emotiv Task.lvclass" Type="LVClass" URL="/&lt;vilib&gt;/NI/Emotiv Toolkit/Emotiv Task.lvclass"/> <Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Cluster From Error Code.vi"/> <Item Name="Error Code Database.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Error Code Database.vi"/> <Item Name="ErrWarn.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/ErrWarn.ctl"/> <Item Name="eventvkey.ctl" Type="VI" URL="/&lt;vilib&gt;/event_ctls.llb/eventvkey.ctl"/> <Item Name="ex_CorrectErrorChain.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/ex_CorrectErrorChain.vi"/> <Item Name="Find Tag.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Find Tag.vi"/> <Item Name="FixBadRect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/pictutil.llb/FixBadRect.vi"/> <Item Name="Format Message String.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Format Message String.vi"/> <Item Name="gain_ADS1299.ctl" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/Control Def/gain_ADS1299.ctl"/> <Item Name="General Error Handler CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler CORE.vi"/> <Item Name="General Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/General Error Handler.vi"/> <Item Name="Get File Extension.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/libraryn.llb/Get File Extension.vi"/> <Item Name="Get Object Info.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Object Info.vi"/> <Item Name="Get Property (DBL).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (DBL).vi"/> <Item Name="Get Property (Enum).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (Enum).vi"/> <Item Name="Get Property (I16).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (I16).vi"/> <Item Name="Get Property (I32).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (I32).vi"/> <Item Name="Get Property (SGL).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (SGL).vi"/> <Item Name="Get Property (Storage Refnum).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (Storage Refnum).vi"/> <Item Name="Get Property (Storage Refnums).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (Storage Refnums).vi"/> <Item Name="Get Property (String).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (String).vi"/> <Item Name="Get Property (Time Stamp).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (Time Stamp).vi"/> <Item Name="Get Property (U8).vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property (U8).vi"/> <Item Name="Get Property Type.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/Get Property Type.vi"/> <Item Name="Get Property.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/Get Property.vi"/> <Item Name="Get String Text Bounds.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Get String Text Bounds.vi"/> <Item Name="Get Text Rect.vi" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/Get Text Rect.vi"/> <Item Name="GetHelpDir.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetHelpDir.vi"/> <Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/GetRTHostConnectedProp.vi"/> <Item Name="imagedata.ctl" Type="VI" URL="/&lt;vilib&gt;/picture/picture.llb/imagedata.ctl"/> <Item Name="Internecine Avoider.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/Internecine Avoider.vi"/> <Item Name="List DataPlugins.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/utility/List DataPlugins.vi"/> <Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Longest Line Length in Pixels.vi"/> <Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/> <Item Name="NeuroSky Driver.lvlib" Type="Library" URL="/&lt;vilib&gt;/NI/LabVIEW - NeuroSky Driver/NeuroSky Driver.lvlib"/> <Item Name="NI_BMTK_common.lvlib" Type="Library" URL="/&lt;vilib&gt;/addons/Biomedical/NI_BMTK_common.lvlib"/> <Item Name="NI_BMTK_FileIO.lvlib" Type="Library" URL="/&lt;vilib&gt;/addons/Biomedical/NI_BMTK_FileIO.lvlib"/> <Item Name="NI_FileType.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/lvfile.llb/NI_FileType.lvlib"/> <Item Name="NI_LVConfig.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/config.llb/NI_LVConfig.lvlib"/> <Item Name="NI_OSC.lvlib" Type="Library" URL="/&lt;vilib&gt;/NIOSC/NI_OSC.lvlib"/> <Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/&lt;vilib&gt;/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/> <Item Name="Not Found Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Not Found Dialog.vi"/> <Item Name="Number of Waveform Samples.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/Number of Waveform Samples.vi"/> <Item Name="openbci_channel_count.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_channel_count.vi"/> <Item Name="openbci_close_cnx.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_close_cnx.vi"/> <Item Name="openbci_device.ctl" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/Control Def/openbci_device.ctl"/> <Item Name="openbci_eeg_order_8ch_16ch.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Support/openbci_eeg_order_8ch_16ch.vi"/> <Item Name="openbci_new_cnx.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_new_cnx.vi"/> <Item Name="openbci_parse_acc_data.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Support/openbci_parse_acc_data.vi"/> <Item Name="openbci_parse_eeg_data.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Support/openbci_parse_eeg_data.vi"/> <Item Name="openbci_read.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_read.vi"/> <Item Name="openbci_read_channel_settings.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_read_channel_settings.vi"/> <Item Name="openbci_read_registers.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_read_registers.vi"/> <Item Name="openbci_read_until_eot.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Support/openbci_read_until_eot.vi"/> <Item Name="openbci_reset_hw_32bit.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_reset_hw_32bit.vi"/> <Item Name="openbci_reset_register.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_reset_register.vi"/> <Item Name="openbci_start.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_start.vi"/> <Item Name="openbci_startup.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_startup.vi"/> <Item Name="openbci_stop.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/openbci_stop.vi"/> <Item Name="openbci_wait_w_error.vi" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Support/openbci_wait_w_error.vi"/> <Item Name="package_parts.ctl" Type="VI" URL="/&lt;vilib&gt;/OpenBCI/Comm Protocol/Control Def/package_parts.ctl"/> <Item Name="ParseXMLParams.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/lvStorage.llb/ParseXMLParams.vi"/> <Item Name="Read JPEG File.vi" Type="VI" URL="/&lt;vilib&gt;/picture/jpeg.llb/Read JPEG File.vi"/> <Item Name="Search and Replace Pattern.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Search and Replace Pattern.vi"/> <Item Name="Set Bold Text.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set Bold Text.vi"/> <Item Name="Set String Value.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Set String Value.vi"/> <Item Name="Simple Error Handler.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Simple Error Handler.vi"/> <Item Name="Space Constant.vi" Type="VI" URL="/&lt;vilib&gt;/dlg_ctls.llb/Space Constant.vi"/> <Item Name="specialProperties.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/specialProperties.ctl"/> <Item Name="subFile Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/express/express input/FileDialogBlock.llb/subFile Dialog.vi"/> <Item Name="System Exec.vi" Type="VI" URL="/&lt;vilib&gt;/Platform/system.llb/System Exec.vi"/> <Item Name="TagReturnType.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/TagReturnType.ctl"/> <Item Name="Task Type.ctl" Type="VI" URL="/&lt;vilib&gt;/NI/Emotiv Toolkit/Utilities/Task Type.ctl"/> <Item Name="TCP Listen Internal List.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/TCP Listen Internal List.vi"/> <Item Name="TCP Listen List Operations.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/TCP Listen List Operations.ctl"/> <Item Name="TCP Listen.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/tcp.llb/TCP Listen.vi"/> <Item Name="thinkgear.dll" Type="Document" URL="/&lt;vilib&gt;/NI/_LabVIEW - NeuroSky Driver_internal_deps/thinkgear.dll"/> <Item Name="thinkgear.lvlib" Type="Library" URL="/&lt;vilib&gt;/NI/LabVIEW - NeuroSky Driver/thinkgear.lvlib"/> <Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog CORE.vi"/> <Item Name="Three Button Dialog.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Three Button Dialog.vi"/> <Item Name="Trim Whitespace.vi" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/Trim Whitespace.vi"/> <Item Name="usiDataType.ctl" Type="VI" URL="/&lt;vilib&gt;/express/express shared/ex_EditUserDefinedProperties/usiDataType.ctl"/> <Item Name="usiPluginInformation.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/utility/usiPluginInformation.ctl"/> <Item Name="usiPropDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/usiPropDef.ctl"/> <Item Name="usiTypeDef.ctl" Type="VI" URL="/&lt;vilib&gt;/Platform/storage/Storage.llb/usiTypeDef.ctl"/> <Item Name="VISA Configure Serial Port" Type="VI" URL="/&lt;vilib&gt;/Instr/_visa.llb/VISA Configure Serial Port"/> <Item Name="VISA Configure Serial Port (Instr).vi" Type="VI" URL="/&lt;vilib&gt;/Instr/_visa.llb/VISA Configure Serial Port (Instr).vi"/> <Item Name="VISA Configure Serial Port (Serial Instr).vi" Type="VI" URL="/&lt;vilib&gt;/Instr/_visa.llb/VISA Configure Serial Port (Serial Instr).vi"/> <Item Name="Waveform Array To Dynamic.vi" Type="VI" URL="/&lt;vilib&gt;/express/express shared/transition.llb/Waveform Array To Dynamic.vi"/> <Item Name="WDT Number of Waveform Samples CDB.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples CDB.vi"/> <Item Name="WDT Number of Waveform Samples DBL.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples DBL.vi"/> <Item Name="WDT Number of Waveform Samples EXT.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples EXT.vi"/> <Item Name="WDT Number of Waveform Samples I8.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples I8.vi"/> <Item Name="WDT Number of Waveform Samples I16.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples I16.vi"/> <Item Name="WDT Number of Waveform Samples I32.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples I32.vi"/> <Item Name="WDT Number of Waveform Samples SGL.vi" Type="VI" URL="/&lt;vilib&gt;/Waveform/WDTOps.llb/WDT Number of Waveform Samples SGL.vi"/> <Item Name="whitespace.ctl" Type="VI" URL="/&lt;vilib&gt;/Utility/error.llb/whitespace.ctl"/> </Item> <Item Name="lvStorage.dll" Type="Document" URL="lvStorage.dll"> <Property Name="NI.PreserveRelativePath" Type="Bool">true</Property> </Item> </Item> <Item Name="Build Specifications" Type="Build"> <Item Name="MuLES_portable" Type="EXE"> <Property Name="App_copyErrors" Type="Bool">true</Property> <Property Name="App_INI_aliasGUID" Type="Str">{AA23FAA7-FFA5-40D8-A957-47AC765A3DE3}</Property> <Property Name="App_INI_GUID" Type="Str">{96619C8A-9921-4385-AB90-84B47CAC4986}</Property> <Property Name="App_INI_itemID" Type="Ref">/My Computer/source_vi/gui/various/mules.ini</Property> <Property Name="App_serverConfig.httpPort" Type="Int">8002</Property> <Property Name="Bld_autoIncrement" Type="Bool">true</Property> <Property Name="Bld_buildCacheID" Type="Str">{01CE06F4-9E9B-4D6F-B545-4EC2E604789E}</Property> <Property Name="Bld_buildSpecName" Type="Str">MuLES_portable</Property> <Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property> <Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property> <Property Name="Bld_localDestDir" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME</Property> <Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property> <Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property> <Property Name="Bld_previewCacheID" Type="Str">{58060354-9400-4D2A-9761-AA539898DD57}</Property> <Property Name="Bld_version.build" Type="Int">4</Property> <Property Name="Bld_version.major" Type="Int">1</Property> <Property Name="Bld_version.minor" Type="Int">3</Property> <Property Name="Bld_version.patch" Type="Int">2</Property> <Property Name="Destination[0].destName" Type="Str">mules.exe</Property> <Property Name="Destination[0].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME/mules.exe</Property> <Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property> <Property Name="Destination[0].type" Type="Str">App</Property> <Property Name="Destination[1].destName" Type="Str">Support Directory</Property> <Property Name="Destination[1].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME/data</Property> <Property Name="Destination[2].destName" Type="Str">MuLES folder</Property> <Property Name="Destination[2].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME</Property> <Property Name="Destination[3].destName" Type="Str">images</Property> <Property Name="Destination[3].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME/images</Property> <Property Name="Destination[4].destName" Type="Str">languages</Property> <Property Name="Destination[4].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME/languages</Property> <Property Name="Destination[5].destName" Type="Str">eeg_files</Property> <Property Name="Destination[5].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME/eeg_files</Property> <Property Name="Destination[6].destName" Type="Str">client_examples</Property> <Property Name="Destination[6].path" Type="Path">../builds/MuLES_portable/NI_AB_PROJECTNAME/client_examples</Property> <Property Name="Destination[6].preserveHierarchy" Type="Bool">true</Property> <Property Name="DestinationCount" Type="Int">7</Property> <Property Name="Exe_cmdLineArgs" Type="Bool">true</Property> <Property Name="Exe_iconItemID" Type="Ref">/My Computer/source_vi/gui/various/MuLES_icon.ico</Property> <Property Name="Source[0].itemID" Type="Str">{4E2C6847-987A-4EA7-BF97-705E3104B92E}</Property> <Property Name="Source[0].type" Type="Str">Container</Property> <Property Name="Source[1].destinationIndex" Type="Int">0</Property> <Property Name="Source[1].itemID" Type="Ref">/My Computer/Main.vi</Property> <Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property> <Property Name="Source[1].type" Type="Str">VI</Property> <Property Name="Source[2].destinationIndex" Type="Int">2</Property> <Property Name="Source[2].itemID" Type="Ref">/My Computer/config.ini</Property> <Property Name="Source[2].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[3].Container.applyDestination" Type="Bool">true</Property> <Property Name="Source[3].Container.applyInclusion" Type="Bool">true</Property> <Property Name="Source[3].destinationIndex" Type="Int">3</Property> <Property Name="Source[3].itemID" Type="Ref">/My Computer/images</Property> <Property Name="Source[3].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[3].type" Type="Str">Container</Property> <Property Name="Source[4].Container.applyDestination" Type="Bool">true</Property> <Property Name="Source[4].Container.applyInclusion" Type="Bool">true</Property> <Property Name="Source[4].destinationIndex" Type="Int">4</Property> <Property Name="Source[4].itemID" Type="Ref">/My Computer/languages</Property> <Property Name="Source[4].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[4].type" Type="Str">Container</Property> <Property Name="Source[5].Container.applyDestination" Type="Bool">true</Property> <Property Name="Source[5].Container.applyInclusion" Type="Bool">true</Property> <Property Name="Source[5].destinationIndex" Type="Int">5</Property> <Property Name="Source[5].itemID" Type="Ref">/My Computer/eeg_files</Property> <Property Name="Source[5].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[5].type" Type="Str">Container</Property> <Property Name="Source[6].Container.applyDestination" Type="Bool">true</Property> <Property Name="Source[6].Container.applyInclusion" Type="Bool">true</Property> <Property Name="Source[6].destinationIndex" Type="Int">6</Property> <Property Name="Source[6].itemID" Type="Ref">/My Computer/client_examples</Property> <Property Name="Source[6].sourceInclusion" Type="Str">Include</Property> <Property Name="Source[6].type" Type="Str">Container</Property> <Property Name="SourceCount" Type="Int">7</Property> <Property Name="TgtF_companyName" Type="Str">MuSAE Lab</Property> <Property Name="TgtF_fileDescription" Type="Str">MuSAE Lab EEG Server. Provides and interface between different EEG devices and applications</Property> <Property Name="TgtF_internalName" Type="Str">MuLES</Property> <Property Name="TgtF_legalCopyright" Type="Str">Copyright © Raymundo Cassani and Hubert Banville</Property> <Property Name="TgtF_productName" Type="Str">MuLES</Property> <Property Name="TgtF_targetfileGUID" Type="Str">{56287559-D975-45BF-853A-304CF4A6B0CD}</Property> <Property Name="TgtF_targetfileName" Type="Str">mules.exe</Property> </Item> <Item Name="MuLES_installer" Type="Installer"> <Property Name="Destination[0].name" Type="Str">MuSAE_Lab</Property> <Property Name="Destination[0].parent" Type="Str">{3912416A-D2E5-411B-AFEE-B63654D690C0}</Property> <Property Name="Destination[0].tag" Type="Str">{B02012E6-1D99-4D5A-97ED-8F32279BCAE2}</Property> <Property Name="Destination[0].type" Type="Str">userFolder</Property> <Property Name="Destination[0].unlock" Type="Bool">true</Property> <Property Name="Destination[1].name" Type="Str">MuLES</Property> <Property Name="Destination[1].parent" Type="Str">{B02012E6-1D99-4D5A-97ED-8F32279BCAE2}</Property> <Property Name="Destination[1].tag" Type="Str">{1E42C379-2480-403F-95B0-89B3CCD541CA}</Property> <Property Name="Destination[1].type" Type="Str">userFolder</Property> <Property Name="Destination[1].unlock" Type="Bool">true</Property> <Property Name="DestinationCount" Type="Int">2</Property> <Property Name="DistPart[0].flavorID" Type="Str">_full_</Property> <Property Name="DistPart[0].productID" Type="Str">{FE82D7AF-0A22-40E8-B7A5-9D7615296BA6}</Property> <Property Name="DistPart[0].productName" Type="Str">NI USI 2.0.1</Property> <Property Name="DistPart[0].upgradeCode" Type="Str">{D1EDC484-7B17-11D7-83CE-00C0F03EBEBE}</Property> <Property Name="DistPart[1].flavorID" Type="Str">DefaultFull</Property> <Property Name="DistPart[1].productID" Type="Str">{CD4CAB41-CAB7-436F-8D66-A83B95F2F3E6}</Property> <Property Name="DistPart[1].productName" Type="Str">NI LabVIEW Run-Time Engine 2013 f2</Property> <Property Name="DistPart[1].SoftDep[0].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[0].productName" Type="Str">NI LabVIEW 2013 Run-Time Engine Non-English Support.</Property> <Property Name="DistPart[1].SoftDep[0].upgradeCode" Type="Str">{DDE96050-C9ED-4EAC-B310-5EA217776FEA}</Property> <Property Name="DistPart[1].SoftDep[1].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[1].productName" Type="Str">NI ActiveX Container</Property> <Property Name="DistPart[1].SoftDep[1].upgradeCode" Type="Str">{1038A887-23E1-4289-B0BD-0C4B83C6BA21}</Property> <Property Name="DistPart[1].SoftDep[2].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[2].productName" Type="Str">NI System Web Server 13.0</Property> <Property Name="DistPart[1].SoftDep[2].upgradeCode" Type="Str">{FCF64B73-B7D4-4971-8F11-24BAF7CC3E6C}</Property> <Property Name="DistPart[1].SoftDep[3].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[3].productName" Type="Str">Math Kernel Libraries</Property> <Property Name="DistPart[1].SoftDep[3].upgradeCode" Type="Str">{EA05DCF9-F239-4387-8904-04D678031F6B}</Property> <Property Name="DistPart[1].SoftDep[4].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[4].productName" Type="Str">NI Logos 5.5</Property> <Property Name="DistPart[1].SoftDep[4].upgradeCode" Type="Str">{5E4A4CE3-4D06-11D4-8B22-006008C16337}</Property> <Property Name="DistPart[1].SoftDep[5].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[5].productName" Type="Str">NI TDM Streaming 2.4</Property> <Property Name="DistPart[1].SoftDep[5].upgradeCode" Type="Str">{4CD11BE6-6BB7-4082-8A27-C13771BC309B}</Property> <Property Name="DistPart[1].SoftDep[6].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[6].productName" Type="Str">NI LabVIEW 2013 Web Server</Property> <Property Name="DistPart[1].SoftDep[6].upgradeCode" Type="Str">{A66A5CC8-EEB5-4982-8B92-F591AF36060E}</Property> <Property Name="DistPart[1].SoftDep[7].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[7].productName" Type="Str">NI LabVIEW 2013 Real-Time NBFifo</Property> <Property Name="DistPart[1].SoftDep[7].upgradeCode" Type="Str">{76E4763E-0DC4-4195-BC50-084193FFA84B}</Property> <Property Name="DistPart[1].SoftDep[8].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[8].productName" Type="Str">NI VC2008MSMs</Property> <Property Name="DistPart[1].SoftDep[8].upgradeCode" Type="Str">{FDA3F8BB-BAA9-45D7-8DC7-22E1F5C76315}</Property> <Property Name="DistPart[1].SoftDep[9].exclude" Type="Bool">false</Property> <Property Name="DistPart[1].SoftDep[9].productName" Type="Str">NI Error Reporting 2013</Property> <Property Name="DistPart[1].SoftDep[9].upgradeCode" Type="Str">{42E818C6-2B08-4DE7-BD91-B0FD704C119A}</Property> <Property Name="DistPart[1].SoftDepCount" Type="Int">10</Property> <Property Name="DistPart[1].upgradeCode" Type="Str">{A661D981-0A3B-4081-A5B5-1FAA03CFAF84}</Property> <Property Name="DistPartCount" Type="Int">2</Property> <Property Name="INST_author" Type="Str">Toshiba</Property> <Property Name="INST_buildLocation" Type="Path">../builds/MuLES_installer</Property> <Property Name="INST_buildLocation.type" Type="Str">relativeToCommon</Property> <Property Name="INST_buildSpecName" Type="Str">MuLES_installer</Property> <Property Name="INST_defaultDir" Type="Str">{1E42C379-2480-403F-95B0-89B3CCD541CA}</Property> <Property Name="INST_productName" Type="Str">MuLES</Property> <Property Name="INST_productVersion" Type="Str">1.3.0</Property> <Property Name="INST_readmeID" Type="Ref">/My Computer/source_vi/gui/various/README.rtf</Property> <Property Name="InstSpecBitness" Type="Str">32-bit</Property> <Property Name="InstSpecVersion" Type="Str">13008051</Property> <Property Name="MSI_arpCompany" Type="Str">MuSAE Lab</Property> <Property Name="MSI_arpURL" Type="Str">http://musaelab.ca/</Property> <Property Name="MSI_autoselectDrivers" Type="Bool">true</Property> <Property Name="MSI_distID" Type="Str">{BF5C95BB-5DE7-42D2-BE60-2D00405006A9}</Property> <Property Name="MSI_licenseID" Type="Ref">/My Computer/source_vi/gui/various/LICENSE.rtf</Property> <Property Name="MSI_osCheck" Type="Int">0</Property> <Property Name="MSI_upgradeCode" Type="Str">{3AD414AA-3E54-4219-8BC8-8CC66ECF01B4}</Property> <Property Name="MSI_windowMessage" Type="Str">MuLES is a piece of software designed in LabVIEW, that aims at simplifying the use of common commercial electroencephalography (EEG) devices. It allows easy EEG data acquisition, recording and interfacing with other software (clients) programmed in any language that supports basic network socket programming.</Property> <Property Name="MSI_windowTitle" Type="Str">Welcome to MuSAE Lab EEG Server (MuLES) installer</Property> <Property Name="RegDest[0].dirName" Type="Str">Software</Property> <Property Name="RegDest[0].dirTag" Type="Str">{DDFAFC8B-E728-4AC8-96DE-B920EBB97A86}</Property> <Property Name="RegDest[0].parentTag" Type="Str">2</Property> <Property Name="RegDestCount" Type="Int">1</Property> <Property Name="Source[0].dest" Type="Str">{1E42C379-2480-403F-95B0-89B3CCD541CA}</Property> <Property Name="Source[0].File[0].dest" Type="Str">{1E42C379-2480-403F-95B0-89B3CCD541CA}</Property> <Property Name="Source[0].File[0].name" Type="Str">mules.exe</Property> <Property Name="Source[0].File[0].Shortcut[0].destIndex" Type="Int">1</Property> <Property Name="Source[0].File[0].Shortcut[0].name" Type="Str">MuLES</Property> <Property Name="Source[0].File[0].Shortcut[0].subDir" Type="Str"></Property> <Property Name="Source[0].File[0].Shortcut[1].destIndex" Type="Int">1</Property> <Property Name="Source[0].File[0].Shortcut[1].name" Type="Str">MuLES</Property> <Property Name="Source[0].File[0].Shortcut[1].subDir" Type="Str"></Property> <Property Name="Source[0].File[0].ShortcutCount" Type="Int">1</Property> <Property Name="Source[0].File[0].tag" Type="Str">{56287559-D975-45BF-853A-304CF4A6B0CD}</Property> <Property Name="Source[0].FileCount" Type="Int">1</Property> <Property Name="Source[0].name" Type="Str">MuLES_portable</Property> <Property Name="Source[0].tag" Type="Ref">/My Computer/Build Specifications/MuLES_portable</Property> <Property Name="Source[0].type" Type="Str">EXE</Property> <Property Name="SourceCount" Type="Int">1</Property> </Item> </Item> </Item> </Project>
LabVIEW
2
ajnavarro/language-dataset
data/github.com/MuSAELab/MuLES/8d0bd7041aa401360fecc1c8427acd5c22709ca4/MuLES_source/MuLES.lvproj
[ "MIT" ]
\ @(#) forget.fth 98/01/26 1.2 \ forget.fth \ \ forget part of dictionary \ \ Author: Phil Burk \ Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom \ \ Permission to use, copy, modify, and/or distribute this \ software for any purpose with or without fee is hereby granted. \ \ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL \ WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED \ WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL \ THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR \ CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING \ FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF \ CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF \ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. \ \ 19970701 PLB Use unsigned compares for machines with "negative" addresses. variable RFENCE \ relocatable value below which we won't forget : FREEZE ( -- , protect below here ) here rfence a! ; : FORGET.NFA ( nfa -- , set DP etc. ) dup name> >code dp ! prevname ( dup current ! ) dup context ! n>nextlink headers-ptr ! ; : VERIFY.FORGET ( nfa -- , ask for verification if below fence ) dup name> >code rfence a@ u< \ 19970701 IF >newline dup id. ." is below fence!!" cr drop ELSE forget.nfa THEN ; : (FORGET) ( <name> -- ) BL word findnfa IF verify.forget ELSE ." FORGET - couldn't find " count type cr abort THEN ; variable LAST-FORGET \ contains address of last if.forgotten frame 0 last-forget ! : IF.FORGOTTEN ( <name> -- , place links in dictionary without header ) bl word find IF ( xt ) here \ start of frame last-forget a@ a, \ Cell[0] = rel address of previous frame last-forget a! \ point to this frame compile, \ Cell[1] = xt for this frame ELSE ." IF.FORGOTTEN - couldn't find " dup 9 dump cr count type cr abort THEN ; if.forgotten noop : [FORGET] ( <name> -- , forget then exec forgotten words ) (forget) last-forget BEGIN a@ dup 0<> \ 19970701 IF dup here u> \ 19970701 IF dup cell+ x@ execute false ELSE dup last-forget a! true THEN ELSE true THEN UNTIL drop ; : FORGET ( <name> -- , execute latest [FORGET] ) " [FORGET]" find IF execute ELSE ." FORGET - couldn't find " count type cr abort THEN ; : ANEW ( -- , forget if defined then redefine ) >in @ bl word find IF over >in ! forget THEN drop >in ! variable ; : MARKER ( <name> -- , define a word that forgets itself when executed, ANS ) CREATE latest namebase - \ convert to relocatable , \ save for DOES> DOES> ( -- body ) @ namebase + \ convert back to NFA verify.forget ;
Forth
5
danielyoureelewis/parallel-forth
fth/forget.fth
[ "0BSD" ]
At: "013.hac":4: parse error: syntax error parser stacks: state value #STATE# (null) #STATE# (null) #STATE# keyword: template [3:1..8] #STATE# < [3:10] #STATE# paramtype: pint [3:11..14] #STATE# keyword: defproc [4:1..7] in state #STATE#, possible rules are: template_formal_decl: base_param_type . template_formal_id_list (#RULE#) acceptable tokens are: ID (shift)
Bison
1
broken-wheel/hacktist
hackt_docker/hackt/test/parser/process/013.stderr.bison
[ "MIT" ]
\documentclass{article} \usepackage{agda} \begin{document} \begin{code} data Nat : Set where zero : Nat suc : Nat -> Nat \end{code} \end{document}
Literate Agda
3
shlevy/agda
test/LaTeXAndHTML/succeed/Indenting.lagda
[ "BSD-3-Clause" ]
@number: 102px; nylas-theme-wrap { /* padding-top: 102px;*/ padding-right: @number; padding-bottom: @number; }
Less
2
cnheider/nylas-mail
packages/client-app/spec/fixtures/packages/theme-with-package-file/styles/second.less
[ "MIT" ]
#define SWIFT_NAME(X) __attribute__((swift_name(#X))) #ifndef SWIFT_ENUM_EXTRA # define SWIFT_ENUM_EXTRA #endif #ifndef SWIFT_ENUM # define SWIFT_ENUM(_name) \ enum _name _name; \ enum __attribute__((enum_extensibility(open))) \ __attribute__((external_source_symbol(language="Swift", \ defined_in="swift_name", generated_declaration))) \ SWIFT_ENUM_EXTRA _name #endif // Renaming global variables. int SNFoo SWIFT_NAME(Bar); // Renaming tags and fields. struct SWIFT_NAME(SomeStruct) SNSomeStruct { double X SWIFT_NAME(x); }; // Renaming C functions struct SNSomeStruct SNMakeSomeStruct(double X, double Y) SWIFT_NAME(makeSomeStruct(x:y:)); struct SNSomeStruct SNMakeSomeStructForX(double X) SWIFT_NAME(makeSomeStruct(x:)); // Renaming typedefs. typedef int SNIntegerType SWIFT_NAME(MyInt); // Renaming enumerations. SWIFT_ENUM(SNColorChoice) { SNColorRed SWIFT_NAME(Rouge), SNColorGreen, SNColorBlue }; // swift_private attribute void SNTransposeInPlace(struct SNSomeStruct *value) __attribute__((swift_private)); typedef struct { double x, y, z; } SNPoint SWIFT_NAME(Point); // Importing a value into a member. extern double DefaultXValue __attribute__((swift_name("SomeStruct.defaultX"))); // Importing a function as a method. struct SNSomeStruct SNAdding(struct SNSomeStruct *value, double x) SWIFT_NAME(SomeStruct.adding(self:x:)); // Importing a function as an initializer. struct SNSomeStruct SNCreate(double x) SWIFT_NAME(SomeStruct.init(theX:)); // Importing a function as a static property getter. struct SNSomeStruct SNSomeStructGetDefault(void) SWIFT_NAME(getter:SomeStruct.defaultValue()); // Importing a function as a static property setter. void SNSomeStructSetDefault(struct SNSomeStruct value) SWIFT_NAME(setter:SomeStruct.defaultValue(_:)); // Importing a function as an instance property getter. double SNSomeStructGetFoo(struct SNSomeStruct s) SWIFT_NAME(getter:SomeStruct.foo(self:)); // Importing a function as an instance property setter. void SNSomeStructSetFoo(struct SNSomeStruct s, double value) SWIFT_NAME(setter:SomeStruct.foo(self:_:));
C
4
lwhsu/swift
test/IDE/Inputs/swift_name.h
[ "Apache-2.0" ]
#include "__emit.inc" stock test__function(&local_refvar, local_refarray[]) { const local_const = 0; new local_var = 0; static local_static_var = 0; local_label: // ok __emit call global_func; __emit sysreq.c global_native; __emit sysreq.n global_native 0; // should trigger an error __emit call global_const; __emit call global_var; __emit call local_refvar; __emit call local_refarray; __emit call local_const; __emit call local_var; __emit call local_static_var; __emit call local_label; __emit call 0; __emit sysreq.c global_const; __emit sysreq.c global_var; __emit sysreq.c local_refvar; __emit sysreq.c local_refarray; __emit sysreq.c local_const; __emit sysreq.c local_var; __emit sysreq.c local_static_var; __emit sysreq.c local_label; __emit sysreq.c 0; } main() { new t, a[1]; test__function(t, a); // 18 }
PAWN
3
pawn-lang/pawn
source/compiler/tests/__emit_p3.pwn
[ "Zlib" ]
" Syntax file for scdoc files " Maintainer: Gregory Anders <[email protected]> " Last Updated: 2021-08-04 if exists('b:current_syntax') finish endif let b:current_syntax = 'scdoc' syntax match scdocFirstLineError "\%^.*$" syntax match scdocFirstLineValid "\%^\S\+(\d[0-9A-Za-z]*)\%(\s\+\"[^"]*\"\%(\s\+\"[^"]*\"\)\=\)\=$" syntax region scdocCommentError start="^;\S" end="$" keepend syntax region scdocComment start="^; " end="$" keepend syntax region scdocHeaderError start="^#\{3,}" end="$" keepend syntax region scdocHeader start="^#\{1,2}" end="$" keepend syntax match scdocIndentError "^[ ]\+" syntax match scdocLineBreak "++$" syntax match scdocOrderedListMarker "^\s*\.\%(\s\+\S\)\@=" syntax match scdocListMarker "^\s*-\%(\s\+\S\)\@=" syntax match scdocTableStartMarker "^[\[|\]][\[\-\]]" syntax match scdocTableMarker "^[|:][\[\-\] ]" syntax region scdocBold concealends matchgroup=scdocBoldDelimiter start="\\\@<!\*" end="\\\@<!\*" syntax region scdocUnderline concealends matchgroup=scdocUnderlineDelimiter start="\<\\\@<!_" end="\\\@<!_\>" syntax region scdocPre matchgroup=scdocPreDelimiter start="^\t*```" end="^\t*```" hi link scdocFirstLineValid Comment hi link scdocComment Comment hi link scdocHeader Title hi link scdocOrderedListMarker Statement hi link scdocListMarker scdocOrderedListMarker hi link scdocLineBreak Special hi link scdocTableMarker Statement hi link scdocTableStartMarker scdocTableMarker hi link scdocFirstLineError Error hi link scdocCommentError Error hi link scdocHeaderError Error hi link scdocIndentError Error hi link scdocPreDelimiter Delimiter hi scdocBold term=bold cterm=bold gui=bold hi scdocUnderline term=underline cterm=underline gui=underline hi link scdocBoldDelimiter scdocBold hi link scdocUnderlineDelimiter scdocUnderline
VimL
4
uga-rosa/neovim
runtime/syntax/scdoc.vim
[ "Vim" ]
<test>passed formatted xml erb</test>
HTML+ERB
0
mdesantis/rails
actionview/test/fixtures/actionpack/test/formatted_xml_erb.xml.erb
[ "MIT" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="17008000"> <Item Name="My Computer" Type="My Computer"> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.tcp.enabled" Type="Bool">false</Property> <Property Name="server.tcp.port" Type="Int">0</Property> <Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property> <Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property> <Property Name="server.vi.callsEnabled" Type="Bool">true</Property> <Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property> <Property Name="specify.custom.address" Type="Bool">false</Property> <Item Name="G# - CreateDestroy.lvproj" Type="Document" URL="../CreateDestroy/G# - CreateDestroy.lvproj"/> <Item Name="G# - DebugServer.lvproj" Type="Document" URL="../DebugServer/G# - DebugServer.lvproj"/> <Item Name="G# - Dependency Injection.lvproj" Type="Document" URL="../CreateDestroy/G# - Dependency Injection.lvproj"/> <Item Name="G# - Interface.lvproj" Type="Document" URL="../Interface/G# - Interface.lvproj"/> <Item Name="G# - Performance.lvproj" Type="Document" URL="../Performance/G# - Performance.lvproj"/> <Item Name="G# - Polymorphism.lvproj" Type="Document" URL="../Polymorphism/G# - Polymorphism.lvproj"/> <Item Name="G# - Properties.lvproj" Type="Document" URL="../Properties/G# - Properties.lvproj"/> <Item Name="G# - Serialization.lvproj" Type="Document" URL="../Serialization/G# - Serialization.lvproj"/> <Item Name="G# - StaticClasses.lvproj" Type="Document" URL="../StaticClasses/G# - StaticClasses.lvproj"/> <Item Name="G# - SupportMethods.lvproj" Type="Document" URL="../SupportMethods/G# - SupportMethods.lvproj"/> <Item Name="Dependencies" Type="Dependencies"/> <Item Name="Build Specifications" Type="Build"/> </Item> </Project>
LabVIEW
3
JamesBalisciano/gsharp
VIPM/Files/examples/AddQ/G#/Examples.lvproj
[ "BSD-3-Clause" ]
#include "OldABI.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <unistd.h> #include <sys/mman.h> #include <malloc/malloc.h> #include <objc/runtime.h> #include <Foundation/Foundation.h> // Implementation of ObjC classes // with bits set to mimic the pre-stable Swift ABI // and additional memory protection to detect mis-use #if __has_include(<objc/objc-internal.h>) #include <objc/objc-internal.h> #else extern "C" Class objc_initializeClassPair(Class superclass, const char *name, Class cls, Class metacls); extern "C" id _objc_rootRetain(id); extern "C" void _objc_rootRelease(id); extern "C" id _objc_rootAutorelease(id); extern "C" uintptr_t _objc_rootRetainCount(id); extern "C" bool _objc_rootTryRetain(id); extern "C" bool _objc_rootIsDeallocating(id); #endif // This class stands in for the pre-stable ABI's SwiftObject. // Stable Swift's class is named Swift._SwiftObject (but mangled). __attribute__((objc_root_class)) @interface SwiftObject { id isa; } @end @implementation SwiftObject +(void)initialize { } +(id)allocWithZone:(struct _malloc_zone_t *)zone { return class_createInstance(self, 0); } +(id)alloc { return [self allocWithZone:nil]; } +(id)class { return self; } -(id)class { return object_getClass(self); } +(id)superclass { return class_getSuperclass(self); } -(id)superclass { return class_getSuperclass([self class]); } +(BOOL)isMemberOfClass:(Class)cls { return object_getClass(self) == cls; } -(BOOL)isMemberOfClass:(Class)cls { return [self class] == cls; } -(id)self { return self; } -(BOOL)isProxy { return NO; } -(struct _malloc_zone_t *)zone { return malloc_default_zone(); } -(void)doesNotRecognizeSelector:(SEL)sel { Class cls = [self class]; fprintf(stderr, "unrecognized selector %c[%s %s]\n", class_isMetaClass(cls) ? '+' : '-', class_getName(cls), sel_getName(sel)); abort(); } +(id)retain { return self; } +(void)release { } +(id)autorelease { return self; } +(uintptr_t)retainCount { return ~(uintptr_t)0; } +(BOOL)_tryRetain { return YES; } +(BOOL)_isDeallocating { return NO; } -(id)retain { return _objc_rootRetain(self); } -(void)release { _objc_rootRelease(self); } -(id)autorelease { return _objc_rootAutorelease(self); } -(uintptr_t)retainCount { return _objc_rootRetainCount(self); } -(BOOL)_tryRetain { return _objc_rootTryRetain(self); } -(BOOL)_isDeallocating { return _objc_rootIsDeallocating(self); } -(void)dealloc { object_dispose(self); } -(BOOL)isKindOfClass:(Class)other { for (Class cls = object_getClass(self); cls; cls = class_getSuperclass(cls)) if (cls == other) return YES; return NO; } +(BOOL)isSubclassOfClass:(Class)other { for (Class cls = self; cls; cls = class_getSuperclass(cls)) if (cls == other) return YES; return NO; } -(BOOL)respondsToSelector:(SEL)sel { if (!sel) return NO; return class_respondsToSelector(object_getClass(self), sel); } +(BOOL)instancesRespondToSelector:(SEL)sel { if (!sel) return NO; return class_respondsToSelector(self, sel); } -(uintptr_t)hash { return (uintptr_t)self; } -(BOOL)isEqual:(id)other { return self == other; } +(NSString *)description { return @"FakeSwiftObject class"; } -(NSString *)description { return @"FakeSwiftObject instance"; } -(NSString *)debugDescription { return [self description]; } - (BOOL)isNSArray__ { return NO; } - (BOOL)isNSCFConstantString__ { return NO; } - (BOOL)isNSData__ { return NO; } - (BOOL)isNSDate__ { return NO; } - (BOOL)isNSDictionary__ { return NO; } - (BOOL)isNSObject__ { return NO; } - (BOOL)isNSOrderedSet__ { return NO; } - (BOOL)isNSNumber__ { return NO; } - (BOOL)isNSSet__ { return NO; } - (BOOL)isNSString__ { return NO; } - (BOOL)isNSTimeZone__ { return NO; } - (BOOL)isNSValue__ { return NO; } @end static char *AllocTailGuardedPointer(size_t size) { // Round up to page boundary. size_t writeableSize = (size + PAGE_MAX_SIZE - 1) & ~(PAGE_MAX_SIZE - 1); // Allocate writeable memory plus one guard page. char *writeableBuffer = (char *)mmap(0, writeableSize + PAGE_MAX_SIZE, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0); if (writeableBuffer == MAP_FAILED) abort(); // Mark the guard page inaccessible. mprotect(writeableBuffer + writeableSize, PAGE_MAX_SIZE, 0); // Scribble on the prefix. memset(writeableBuffer, 0x55, writeableSize - size); // Return the address just before the guard page. // FIXME: this doesn't handle alignment properly, // but we don't need to for this test's usage. return writeableBuffer + writeableSize - size; } static Class CreateOldABISubclass(Class supercls, const char *name) { // Allocate class and metaclass in tail-guarded memory. // If the Swift runtime incorrectly tries to read Swift // metadata from this class then it'll crash. char *clsbuf = AllocTailGuardedPointer(5*sizeof(uintptr_t)); char *metabuf = AllocTailGuardedPointer(5*sizeof(uintptr_t)); Class result = objc_initializeClassPair(supercls, name, (Class)clsbuf, (Class)metabuf); // Set the old is-Swift bit in the class. uintptr_t *words = (uintptr_t *)clsbuf; words[4] |= 1; return result; } static Class FakeOldABIClass; __attribute__((constructor)) static void initialize(void) { FakeOldABIClass = CreateOldABISubclass([SwiftObject class], "_TtC6OldABI8Subclass"); } bool CanTestOldABI() { // These tests don't work until the stable ABI is using its designed bit. // This check can be removed after SWIFT_CLASS_IS_SWIFT_MASK is made // static everywhere. Class cls = objc_getClass("_TtCs19__EmptyArrayStorage"); if (!cls) abort(); uintptr_t *words = (uintptr_t *)cls; if ((words[4] & 3) != 2) return false; // wrong stable is-Swift bit return true; } id AllocOldABIObject() { return [FakeOldABIClass alloc]; }
Objective-C++
4
lwhsu/swift
test/Interpreter/SDK/Inputs/OldABI/OldABI.mm
[ "Apache-2.0" ]
@arc shared false
Arc
0
actsone8/sandbox
test/mock/dep-warn/basic/src/http/get-deps_missing/config.arc
[ "Apache-2.0" ]
[Desktop Entry] Type=Application Name=OpenToonz Comment=2D animation Icon=io.github.OpenToonz Exec=opentoonz Categories=Graphics; Terminal=false
desktop
1
rozhuk-im/opentoonz
toonz/sources/xdg-data/io.github.OpenToonz.desktop
[ "BSD-3-Clause" ]
#! /bin/sh -e # DP: gcc/doc/invoke.texi: Fix locale name. dir= if [ $# -eq 3 -a "$2" = '-d' ]; then pdir="-d $3" dir="$3/" elif [ $# -ne 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0 ;; -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 ;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 esac exit 0 --- gcc/doc/invoke.texi~ 2004-08-27 00:42:53.000000000 +0200 +++ gcc/doc/invoke.texi 2004-11-21 13:59:19.000000000 +0100 @@ -10980,7 +10980,7 @@ national conventions. GCC inspects the locale categories @env{LC_CTYPE} and @env{LC_MESSAGES} if it has been configured to do so. These locale categories can be set to any value supported by your -installation. A typical value is @samp{en_UK} for English in the United +installation. A typical value is @samp{en_GB} for English in the United Kingdom. The @env{LC_CTYPE} environment variable specifies character
Darcs Patch
4
aliostad/deep-learning-lang-detection
data/test/bash/4004dbd3bf5f9cfafeb1e7250d20bdd7ae5d6594gcc-doc-locale.dpatch
[ "MIT" ]
module Views.TopBar exposing ( breadcrumbs , concourseLogo , paused ) import Application.Models exposing (Session) import Assets import ColorValues import Concourse exposing (hyphenNotation) import Dashboard.FilterBuilder exposing (instanceGroupFilter) import DateFormat import Dict import Html exposing (Html) import Html.Attributes exposing ( class , href , id ) import Message.Message exposing (DomID(..), Message(..)) import RemoteData import Routes import SideBar.SideBar exposing (byPipelineId, isPipelineVisible, lookupPipeline) import Time import Url import Views.InstanceGroupBadge as InstanceGroupBadge import Views.Styles as Styles concourseLogo : Html Message concourseLogo = Html.a (href "/" :: Styles.concourseLogo False False) [] paused : { paused : Bool , pausedBy : Maybe String , pausedAt : Maybe Time.Posix , timeZone : Time.Zone } -> Html Message paused p = let text = pausedText p in Html.span (class "pause-details" :: Styles.pauseDetails) [ Html.text text ] pausedText : { paused : Bool , pausedBy : Maybe String , pausedAt : Maybe Time.Posix , timeZone : Time.Zone } -> String pausedText p = if p.paused then case ( p.pausedBy, p.pausedAt ) of ( Just by, Just at ) -> "paused by " ++ by ++ " on " ++ formatDate p.timeZone at ( Just by, Nothing ) -> "paused by " ++ by ( Nothing, Just at ) -> "paused on " ++ formatDate p.timeZone at ( Nothing, Nothing ) -> "" else "" breadcrumbs : Session -> Routes.Route -> List (Html Message) breadcrumbs session route = let buildBreadcrumbs ( components, isPaused, isArchived ) = [ Html.a (href "/" :: Styles.concourseLogo isPaused isArchived) [] , Html.div (id "breadcrumbs" :: Styles.breadcrumbContainer isPaused isArchived) <| case List.reverse components of x :: xs -> (List.map (\fn -> fn False) xs |> List.reverse ) ++ [ x True ] [] -> [] ] in buildBreadcrumbs <| case route of Routes.Pipeline { id } -> case lookupPipeline (byPipelineId id) session of Nothing -> ( [], False, False ) Just pipeline -> ( pipelineBreadcrumbs session pipeline [], pipeline.paused, pipeline.archived ) Routes.Build { id, groups } -> case lookupPipeline (byPipelineId id) session of Nothing -> ( [], False, False ) Just pipeline -> ( pipelineBreadcrumbs session pipeline groups ++ [ breadcrumbSeparator , jobBreadcrumb id.jobName ] , pipeline.paused , pipeline.archived ) Routes.Resource { id, groups } -> case lookupPipeline (byPipelineId id) session of Nothing -> ( [], False, False ) Just pipeline -> ( pipelineBreadcrumbs session pipeline groups ++ [ breadcrumbSeparator , resourceBreadcrumb id ] , pipeline.paused , pipeline.archived ) Routes.Job { id, groups } -> case lookupPipeline (byPipelineId id) session of Nothing -> ( [], False, False ) Just pipeline -> ( pipelineBreadcrumbs session pipeline groups ++ [ breadcrumbSeparator , jobBreadcrumb id.jobName ] , pipeline.paused , pipeline.archived ) Routes.Dashboard _ -> ( [ clusterNameBreadcrumb session ], False, False ) Routes.Causality { id, direction, version, groups } -> case lookupPipeline (byPipelineId id) session of Nothing -> ( [], False, False ) Just pipeline -> ( pipelineBreadcrumbs session pipeline groups ++ [ breadcrumbSeparator , resourceBreadcrumb <| Concourse.resourceIdFromVersionedResourceId id , breadcrumbSeparator , causalityBreadCrumb id direction (Maybe.withDefault Dict.empty version) ] , pipeline.paused , pipeline.archived ) _ -> ( [], False, False ) breadcrumbComponent : Bool -> { icon : { component : Assets.ComponentType , widthPx : Float , heightPx : Float } , name : String } -> List (Html Message) breadcrumbComponent isLastBreadcrumb { name, icon } = [ Html.div (Styles.breadcrumbComponent icon) [] , if isLastBreadcrumb then Html.div Styles.ellipsedText [ Html.text <| decodeName name ] else Html.text <| decodeName name ] breadcrumbSeparator : Bool -> Html Message breadcrumbSeparator _ = Html.li (class "breadcrumb-separator" :: Styles.breadcrumbItem False False) [ Html.text "/" ] clusterNameBreadcrumb : Session -> Bool -> Html Message clusterNameBreadcrumb session _ = Html.div Styles.clusterName [ Html.text session.clusterName ] pipelineBreadcrumbs : Session -> Concourse.Pipeline -> List String -> List (Bool -> Html Message) pipelineBreadcrumbs session pipeline groups = let pipelineGroup = session.pipelines |> RemoteData.withDefault [] |> List.filter (\p -> p.name == pipeline.name && p.teamName == pipeline.teamName) |> List.filter (isPipelineVisible session) inInstanceGroup = Concourse.isInstanceGroup pipelineGroup instanceGroupBreadcrumb isLastBreadcrumb = Html.a (id "breadcrumb-instance-group" :: (href <| Routes.toString <| Routes.Dashboard { searchType = Routes.Normal <| instanceGroupFilter pipeline , dashboardView = Routes.ViewNonArchivedPipelines } ) :: Styles.breadcrumbItem True isLastBreadcrumb ) [ InstanceGroupBadge.view ColorValues.white (List.length pipelineGroup) , Html.text <| pipelineNameView pipeline.name pipeline.archived ] in (if inInstanceGroup then [ instanceGroupBreadcrumb , breadcrumbSeparator ] else [] ) ++ [ pipelineBreadcrumb inInstanceGroup pipeline groups ] pipelineNameView : String -> Bool -> String pipelineNameView pipelineName isArchived = if isArchived then pipelineName ++ " (archived)" else pipelineName pipelineBreadcrumb : Bool -> Concourse.Pipeline -> List String -> Bool -> Html Message pipelineBreadcrumb inInstanceGroup pipeline groups isLastBreadcrumb = let text = if inInstanceGroup then hyphenNotation pipeline.instanceVars else pipelineNameView pipeline.name pipeline.archived in Html.a ([ id "breadcrumb-pipeline" , href <| Routes.toString <| Routes.pipelineRoute pipeline groups ] ++ Styles.breadcrumbItem True isLastBreadcrumb ) (breadcrumbComponent isLastBreadcrumb { icon = { component = Assets.PipelineComponent , widthPx = 28 , heightPx = 16 } , name = text } ) jobBreadcrumb : String -> Bool -> Html Message jobBreadcrumb jobName isLastBreadcrumb = Html.li (id "breadcrumb-job" :: Styles.breadcrumbItem False isLastBreadcrumb) (breadcrumbComponent isLastBreadcrumb { icon = { component = Assets.JobComponent , widthPx = 32 , heightPx = 17 } , name = jobName } ) resourceBreadcrumb : Concourse.ResourceIdentifier -> Bool -> Html Message resourceBreadcrumb resource isLastBreadcrumb = Html.a ([ id "breadcrumb-resource" , href <| Routes.toString <| Routes.resourceRoute resource Nothing ] ++ Styles.breadcrumbItem True isLastBreadcrumb ) (breadcrumbComponent isLastBreadcrumb { icon = { component = Assets.ResourceComponent , widthPx = 32 , heightPx = 17 } , name = resource.resourceName } ) causalityBreadCrumb : Concourse.VersionedResourceIdentifier -> Concourse.CausalityDirection -> Concourse.Version -> Bool -> Html Message causalityBreadCrumb rv direction version isLastBreadcrumb = let component = case direction of Concourse.Downstream -> Assets.DownstreamCausalityComponent Concourse.Upstream -> Assets.UpstreamCausalityComponent name = String.join "," <| Concourse.versionQuery version in Html.a ([ id "breadcrumb-causality" , href <| Routes.toString <| Routes.resourceRoute (Concourse.resourceIdFromVersionedResourceId rv) (Just version) ] ++ Styles.breadcrumbItem True isLastBreadcrumb ) (breadcrumbComponent isLastBreadcrumb { icon = { component = component , widthPx = 32 , heightPx = 17 } , name = name } ) decodeName : String -> String decodeName name = Maybe.withDefault name (Url.percentDecode name) formatDate : Time.Zone -> Time.Posix -> String formatDate = DateFormat.format [ DateFormat.monthNameAbbreviated , DateFormat.text " " , DateFormat.dayOfMonthNumber , DateFormat.text " " , DateFormat.yearNumber , DateFormat.text " " , DateFormat.hourFixed , DateFormat.text ":" , DateFormat.minuteFixed , DateFormat.text ":" , DateFormat.secondFixed , DateFormat.text " " , DateFormat.amPmUppercase ]
Elm
5
Caprowni/concourse
web/elm/src/Views/TopBar.elm
[ "Apache-2.0" ]
MODULE mg_tm_dlm DESCRIPTION TextMate 2 example DLM VERSION 1.0 SOURCE mgalloy BUILD_DATE October 23, 2012 CHECKSUM 12af36 function mg_function 2 2 keywords procedure mg_routine 1 IDL_MAXPARAMS keywords obsolete
IDL
0
mgalloy/idl.tmbundle
Tests/mg_tm_dlm.dlm
[ "BSD-3-Clause" ]
@0x9ef128e10a8010b3; struct Nested1 { one @0 : UInt64; two @1 : UInt64; } struct Nested { value @0 : List(UInt64); array @1 : List(List(UInt64)); tuple @2 : List(Nested1); } struct Message { nested @0 : Nested; }
Cap'n Proto
3
pdv-ru/ClickHouse
tests/queries/0_stateless/format_schemas/02030_capnp_nested_table.capnp
[ "Apache-2.0" ]
animal = ()
Self
0
LaudateCorpus1/RosettaCodeData
Task/Inheritance-Single/Self/inheritance-single-1.self
[ "Info-ZIP" ]
package jadx.tests.integration.others; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; import java.util.concurrent.CountDownLatch; import org.junit.jupiter.api.Test; import jadx.core.dex.nodes.ClassNode; import jadx.tests.api.IntegrationTest; import static jadx.tests.api.utils.JadxMatchers.containsOne; import static jadx.tests.api.utils.JadxMatchers.countString; import static org.hamcrest.MatcherAssert.assertThat; public class TestIssue13b extends IntegrationTest { public static class TestCls { private static final String PROPERTIES_FILE = ""; private static final String TAG = ""; private final CountDownLatch mInitializedLatch = new CountDownLatch(1); public int mC2KServerPort = 0; private String mSuplServerHost = ""; public int mSuplServerPort = 0; private String mC2KServerHost = ""; public TestCls() { Properties mProperties = new Properties(); try { File file = new File(PROPERTIES_FILE); FileInputStream stream = new FileInputStream(file); mProperties.load(stream); stream.close(); mSuplServerHost = mProperties.getProperty("SUPL_HOST"); String portString = mProperties.getProperty("SUPL_PORT"); if (mSuplServerHost != null && portString != null) { try { mSuplServerPort = Integer.parseInt(portString); } catch (NumberFormatException e) { Log.e(TAG, "unable to parse SUPL_PORT: " + portString); } } mC2KServerHost = mProperties.getProperty("C2K_HOST"); portString = mProperties.getProperty("C2K_PORT"); if (mC2KServerHost != null && portString != null) { try { mC2KServerPort = Integer.parseInt(portString); } catch (NumberFormatException e) { Log.e(TAG, "unable to parse C2K_PORT: " + portString); } } } catch (IOException e) { Log.e(TAG, "Could not open GPS configuration file " + PROPERTIES_FILE); } Thread mThread = new Thread(); mThread.start(); while (true) { try { mInitializedLatch.await(); break; } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } private static class Log { public static void e(String tag, String s) { } } } @Test public void test() { ClassNode cls = getClassNode(TestCls.class); String code = cls.getCode().toString(); assertThat(code, countString(4, "} catch (")); assertThat(code, countString(3, "Log.e(")); assertThat(code, containsOne("Thread.currentThread().interrupt();")); } }
Java
4
DSYliangweihao/jadx
jadx-core/src/test/java/jadx/tests/integration/others/TestIssue13b.java
[ "Apache-2.0" ]
# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: waf-utils.eclass # @MAINTAINER: # [email protected] # @AUTHOR: # Original Author: Gilles Dartiguelongue <[email protected]> # Various improvements based on cmake-utils.eclass: Tomáš Chvátal <[email protected]> # Proper prefix support: Jonathan Callen <[email protected]> # @SUPPORTED_EAPIS: 4 5 6 # @BLURB: common ebuild functions for waf-based packages # @DESCRIPTION: # The waf-utils eclass contains functions that make creating ebuild for # waf-based packages much easier. # Its main features are support of common portage default settings. [[ ${EAPI} == [45] ]] && inherit eutils inherit multilib toolchain-funcs multiprocessing case ${EAPI:-0} in 4|5|6) EXPORT_FUNCTIONS src_configure src_compile src_install ;; *) die "EAPI=${EAPI} is not supported" ;; esac # @ECLASS-VARIABLE: WAF_VERBOSE # @DESCRIPTION: # Set to OFF to disable verbose messages during compilation # this is _not_ meant to be set in ebuilds : ${WAF_VERBOSE:=ON} # @FUNCTION: waf-utils_src_configure # @DESCRIPTION: # General function for configuring with waf. waf-utils_src_configure() { debug-print-function ${FUNCNAME} "$@" local fail if [[ ! ${_PYTHON_ANY_R1} && ! ${_PYTHON_SINGLE_R1} && ! ${_PYTHON_R1} ]]; then eerror "Using waf-utils.eclass without any python-r1 suite eclass is not supported." eerror "Please make sure to configure and inherit appropriate -r1 eclass." eerror "For more information and examples, please see:" eerror " https://wiki.gentoo.org/wiki/Project:Python/waf-utils_integration" fail=1 else if [[ ! ${EPYTHON} ]]; then eerror "EPYTHON is unset while calling waf-utils. This most likely means that" eerror "the ebuild did not call the appropriate eclass function before calling waf." if [[ ${_PYTHON_ANY_R1} ]]; then eerror "Please ensure that python-any-r1_pkg_setup is called in pkg_setup()." elif [[ ${_PYTHON_SINGLE_R1} ]]; then eerror "Please ensure that python-single-r1_pkg_setup is called in pkg_setup()." else # python-r1 eerror "Please ensure that python_setup is called before waf-utils_src_configure()," eerror "or that the latter is used within python_foreach_impl as appropriate." fi eerror fail=1 fi if [[ ${PYTHON_REQ_USE} != *threads* ]]; then eerror "Waf requires threading support in Python. To accomodate this requirement," eerror "please add 'threads(+)' to PYTHON_REQ_USE variable (above inherit line)." eerror "For more information and examples, please see:" eerror " https://wiki.gentoo.org/wiki/Project:Python/waf-utils_integration" fail=1 fi fi [[ ${fail} ]] && die "Invalid use of waf-utils.eclass" local libdir=() # @ECLASS-VARIABLE: WAF_BINARY # @DESCRIPTION: # Eclass can use different waf executable. Usually it is located in "${S}/waf". : ${WAF_BINARY:="${S}/waf"} # @ECLASS-VARIABLE: NO_WAF_LIBDIR # @DEFAULT_UNSET # @DESCRIPTION: # Variable specifying that you don't want to set the libdir for waf script. # Some scripts does not allow setting it at all and die if they find it. [[ -z ${NO_WAF_LIBDIR} ]] && libdir=(--libdir="${EPREFIX}/usr/$(get_libdir)") tc-export AR CC CPP CXX RANLIB echo "CCFLAGS=\"${CFLAGS}\" LINKFLAGS=\"${CFLAGS} ${LDFLAGS}\" \"${WAF_BINARY}\" --prefix=${EPREFIX}/usr ${libdir[@]} $@ configure" CCFLAGS="${CFLAGS}" LINKFLAGS="${CFLAGS} ${LDFLAGS}" "${WAF_BINARY}" \ "--prefix=${EPREFIX}/usr" \ "${libdir[@]}" \ "$@" \ configure || die "configure failed" } # @FUNCTION: waf-utils_src_compile # @DESCRIPTION: # General function for compiling with waf. waf-utils_src_compile() { debug-print-function ${FUNCNAME} "$@" local _mywafconfig [[ ${WAF_VERBOSE} == ON ]] && _mywafconfig="--verbose" local jobs="--jobs=$(makeopts_jobs)" echo "\"${WAF_BINARY}\" build ${_mywafconfig} ${jobs}" "${WAF_BINARY}" ${_mywafconfig} ${jobs} || die "build failed" } # @FUNCTION: waf-utils_src_install # @DESCRIPTION: # Function for installing the package. waf-utils_src_install() { debug-print-function ${FUNCNAME} "$@" echo "\"${WAF_BINARY}\" --destdir=\"${D}\" install" "${WAF_BINARY}" --destdir="${D}" install || die "Make install failed" # Manual document installation einstalldocs }
Gentoo Eclass
4
NighttimeDriver50000/Sabayon-Packages
local_overlay/eclass/waf-utils.eclass
[ "MIT" ]
<template> <div class="text-center"> <v-rating v-bind="$attrs" v-on="$listeners" ></v-rating> </div> </template> <script> export default { name: 'Usage', inheritAttrs: false, data: () => ({ show: true, defaults: { 'background-color': null, dense: false, color: null, 'empty-icon': '$mdiStarOutline', 'full-icon': '$mdiStar', 'half-icon': '$mdiStarHalfFull', 'half-increments': false, length: 5, hover: true, readonly: false, value: 3, size: 64, }, options: { booleans: [ 'half-increments', 'hover', 'readonly', ], selects: { color: [ 'primary', 'warning', 'green', 'red', 'blue', 'error', 'teal', 'red lighten-3', ], 'background-color': [ 'grey lighten-2', 'warning lighten-1', 'green lighten-2', 'red lighten-2', 'grey', '#eee', 'cyan lighten-2', 'grey lighten-1', ], 'empty-icon': [ '$mdiHeartOutline', '$mdiStarOutline', ], 'full-icon': [ '$mdiHeart', '$mdiStar', ], 'half-icon': [ '$mdiHeartHalfFull', '$mdiStarHalfFull', ], }, sliders: { length: [1, 15], size: [0, 100], value: [0, 15, 0.5], }, }, tabs: ['dense'], }), } </script>
Vue
4
VBeytok/vuetify
packages/docs/src/examples/v-rating/usage.vue
[ "MIT" ]