content
stringlengths
4
1.04M
lang
stringclasses
358 values
score
int64
0
5
repo_name
stringlengths
5
114
repo_path
stringlengths
4
229
repo_licenses
listlengths
1
8
%% %unicode 3.2 %public %class UnicodeLetter_3_2 %type int %standalone %include ../../resources/common-unicode-all-enumerated-property-java %% <<EOF>> { printOutput(); return 1; } [:letter:] { setCurCharPropertyValue("Letter"); } [^[:letter:]] { setCurCharPropertyValue("Not-Letter"); }
JFlex
3
Mivik/jflex
testsuite/testcases/src/test/cases/unicode-letter/UnicodeLetter_3_2.flex
[ "BSD-3-Clause" ]
@import url(djangodocs.css); @import url(djangosite.css);
CSS
0
gh-oss-contributor/graphql-engine-1
docs/_theme/djangodocs/static/default.css
[ "Apache-2.0", "MIT" ]
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local url = require("url") name = "Gists" type = "scrape" function start() set_rate_limit(1) end function vertical(ctx, domain) local gist_re = "https://gist[....
Ada
4
Elon143/Amass
resources/scripts/scrape/gists.ads
[ "Apache-2.0" ]
/** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Security\JWT\Signer; use Phalcon\Security\JWT\Exceptions\UnsupportedA...
Zephir
5
chipco/cphalcon
phalcon/Security/JWT/Signer/Hmac.zep
[ "BSD-3-Clause" ]
require 'nn' local AuxiliaryLossTable, parent = torch.class('w2nn.AuxiliaryLossTable', 'nn.Module') function AuxiliaryLossTable:__init(i) parent.__init(self) self.i = i or 1 self.gradInput = {} self.output_table = {} self.output_tensor = torch.Tensor() end function AuxiliaryLossTable:updateOutput(input...
Lua
3
zhyukun/waifu
lib/AuxiliaryLossTable.lua
[ "MIT" ]
<%@ page contentType="text/html; charset=utf-8" %> <%@ taglib prefix="a" uri="/WEB-INF/app.tld"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="res" uri="http://www.unidal.org/webres"%> <%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%> <%@taglib uri="http://java.sun.com/j...
Java Server Pages
4
woozhijun/cat
cat-home/src/main/webapp/jsp/system/appRule/crashRuleUpdate.jsp
[ "Apache-2.0" ]
#pragma once #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <ProjectTelemetry.h> #include <shlwapi.h> #include <stdexcept> #include <unordered_set> #include <winrt/base.h> #include <filesystem> #include <common/SettingsAPI/settings_helpers.h> #include <common/logger/logger.h>
C
0
szlatkow/PowerToys
src/modules/keyboardmanager/KeyboardManagerEngineLibrary/pch.h
[ "MIT" ]
# frozen_string_literal: true require "cases/helper" require "models/person" require "action_dispatch" module ActiveRecord class ShardSelectorTest < ActiveRecord::TestCase def test_middleware_locks_to_shard_by_default middleware = ActiveRecord::Middleware::ShardSelector.new(lambda { |env| assert_p...
Ruby
4
swaathi/rails
activerecord/test/cases/shard_selector_test.rb
[ "MIT" ]
{{salt['salttest.jinja_error']() }}
SaltStack
0
byteskeptical/salt
tests/integration/files/file/base/issue-10010-macro.sls
[ "Apache-2.0" ]
// Copyright 2020 The gRPC authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
Protocol Buffer
4
arghyadip01/grpc
bazel/test/python_test_repo/namespaced/upper/example/namespaced_example.proto
[ "Apache-2.0" ]
@import '../../style/themes/index'; @import '../../style/mixins/index'; @popconfirm-prefix-cls: ~'@{ant-prefix}-popconfirm'; .@{popconfirm-prefix-cls} { z-index: @zindex-popoconfirm; }
Less
2
noctis0430-open-source/ant-design-blazor
components/popconfirm/style/index.less
[ "MIT" ]
Rebol [ Title: "Rebol3 compare test script" Author: "Oldes, Peter W A Wood" File: %compare-test.r3 Tabs: 4 Needs: [%../quick-test-module.r3] ] ~~~start-file~~~ "COMPARE" ===start-group=== "char!" --test-- "char! == ..." --assert #"a" == #"a" --assert not (#"a" == 97) --test-- "char! = ..." --ass...
Rebol
4
semarie/rebol3-oldes
src/tests/units/compare-test.r3
[ "Apache-2.0" ]
(kicad_pcb (version 20171130) (host pcbnew 5.1.9-73d0e3b20d~88~ubuntu20.04.1) (general (thickness 1.6) (drawings 53) (tracks 296) (zones 0) (modules 39) (nets 46) ) (page User 150.012 119.99) (title_block (title "Splitflap controller board") (company "Scott Bezek") (comment...
KiCad
5
tomihbk/splitflap
electronics/splitflap.kicad_pcb
[ "Apache-2.0" ]
CREATE TABLE u ( xx INT UNIQUE AUTO_INCREMENT, yy INT PRIMARY KEY );
SQL
2
WizardXiao/tidb
br/tests/lightning_default-columns/data/defcol.u-schema.sql
[ "Apache-2.0" ]
h2. Release Guide This guide will describe the aloha editor release lifecyle and practical releasing example. Please read http://nvie.com/posts/a-successful-git-branching-model/ which describes in detail the branch structure and release process as seen from git. endprologue. h3. Release Lifecycle h4. Feature Relea...
Textile
4
antonella-del/Aloha-Editor
doc/guides/source/releasing.textile
[ "CC-BY-3.0" ]
SELECT array_join(array(true, false), ', '); SELECT array_join(array(2Y, 1Y), ', '); SELECT array_join(array(2S, 1S), ', '); SELECT array_join(array(2, 1), ', '); SELECT array_join(array(2L, 1L), ', '); SELECT array_join(array(9223372036854775809, 9223372036854775808), ', '); SELECT array_join(array(2.0D, 1.0D), ', ');...
SQL
4
OlegPt/spark
sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/arrayJoin.sql
[ "Apache-2.0" ]
<% from vectorbt import __version__ %> <header> <a class="homelink" rel="home" title="pdoc Home" href="https://github.com/polakowo/vectorbt"> <img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjAuMSwgU1ZHIEV4cG9ydCBQbHV...
Mako
2
haxdds/vectorbt
docs/templates/logo.mako
[ "Apache-2.0" ]
# ====================================================================================================================== # Finance # - Firm financing and valuation # ====================================================================================================================== # ================================...
GAMS
4
gemal/MAKRO
Model/finance.gms
[ "MIT" ]
;################################################## ; Author: tkoi <http://www.autohotkey.net/~tkoi> ; Modified by: majkinetor ; Modified by: Pulover ; www.autohotkey.com/community/viewtopic.php?f=2&t=40468 ; Additional thanks to just me for adapting it to AHK_L 64bit ;#################################################...
AutoHotkey
4
standardgalactic/PuloversMacroCreator
LIB/ILButton.ahk
[ "Unlicense" ]
if "%REBUILD%"=="" ( if "%BUILD_ENVIRONMENT%"=="" ( curl --retry 3 -k https://s3.amazonaws.com/ossci-windows/mkl_2020.2.254.7z --output %TMP_DIR_WIN%\mkl.7z ) else ( aws s3 cp s3://ossci-windows/mkl_2020.2.254.7z %TMP_DIR_WIN%\mkl.7z --quiet ) if errorlevel 1 exit /b if not errorlevel 0 exit /b...
Batchfile
3
xiaohanhuang/pytorch
.jenkins/pytorch/win-test-helpers/installation-helpers/install_mkl.bat
[ "Intel" ]
__includes ["SOM.nls"] ; TSet stores the Training Set globals [ TSet ] ; Setup procedure: initially, a weight is assigned to every node. to setup ca ; Create the colors to learn set TSet n-values TSet-size [n-values 3 [random-float 1]] create-ordered-turtles TSet-size [ fd 15 set size 7 set sh...
NetLogo
4
fsancho/IA
11. Machine Learning/Self Organizing Maps/SOM-color.nlogo
[ "MIT" ]
//The first name of the bot string FirstName = "Test"; //The last name of the bot string LastName = "Bot"; //The outfit name that the bot will be wearing // If this is set to "", then the bot will be wearing // the clothes that the owner is wearing currently. // If this is not set to "", it will load the outfit // from...
LSL
4
Asterionworld/ether
doc/bot LSL Functions/Examples/bot Creation.lsl
[ "BSD-3-Clause" ]
time(t *uint) uint #Foreign("time") main() { ::currentAllocator = Memory.newArenaAllocator(16 * 1024) rs := time(null) num := cast(Random.xorshift32(ref rs) % 100 + 1, int) while true { Stdout.write("Your guess: ") input := Stdin.tryReadLine() if input.error != 0 { break } pr := int.tryParse(input.val...
mupad
3
jturner/muon
examples/guessing_game.mu
[ "MIT" ]
# usage: source apollo_auto_complete.bash COMMANDS="config build build_dbg build_opt build_cpu build_gpu build_opt_gpu test coverage lint \ buildify check build_fe build_teleop build_prof doc clean format usage -h --help" MODULES="$(find /apollo/modules/* -maxdepth 0 -type d -printf "%f ")" MODULES="cyber $...
Shell
4
jzjonah/apollo
scripts/apollo_auto_complete.bash
[ "Apache-2.0" ]
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
5
sbj42/vscode
src/vs/workbench/contrib/debug/test/browser/rawDebugSession.test.ts
[ "MIT" ]
yield "Message: ${greeting}"
Smarty
0
Martin-real/spring-boot-2.1.0.RELEASE
spring-boot-project/spring-boot-autoconfigure/src/test/resources/templates/message.tpl
[ "Apache-2.0" ]
L DASYNC e_dasync_err.h e_dasync_err.c
eC
0
madanagopaltcomcast/pxCore
examples/pxScene2d/external/libnode-v10.15.3/deps/openssl/openssl/engines/e_dasync.ec
[ "Apache-2.0" ]
varying vec2 vTextureCoord; varying vec4 vColor; varying float vTextureId; uniform sampler2D uSamplers[%count%]; void main(void){ vec4 color; %forloop% gl_FragColor = color * vColor; }
GLSL
3
fanlistener/pixijs
packages/core/src/batch/texture.frag
[ "MIT" ]
--TEST-- JIT XOR: 003 --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.file_update_protection=0 opcache.jit_buffer_size=32M ;opcache.jit_debug=257 --EXTENSIONS-- opcache --FILE-- <?php function foo($a, $b) { $res = $a ^ $b; var_dump($res); } foo("abc", "\001\002\003"); ?> --EXPECT-- string(3) "```"
PHP
4
NathanFreeman/php-src
ext/opcache/tests/jit/xor_003.phpt
[ "PHP-3.01" ]
/* * This software is Copyright (c) 2016 Denis Burykin * [denis_burykin yahoo com], [denis-burykin2014 yandex ru] * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without * modification, are permitted. * */ // ****...
SystemVerilog
3
bourbon-hunter/OSCPRepo
Tools/JohnTheRipper-bleeding-jumbo/src/ztex/fpga-bcrypt/main.vh
[ "MIT" ]
{{ Propeller ADB bridge -- multiple connections with IO demo copyright 2011 spiritplumber@gmail.com buy my kits at www.f3.to! based off microbridge ( http://code.google.com/p/microbridge/ ) which is copyright 2011 Niels Brouwers Licensed under the Apache License, Version 2.0 (the "License"); you may not ...
Propeller Spin
4
deets/propeller
libraries/community/p1/All/ADB bridge beta (Also contains android and source)/spin/adb-demo-io.spin
[ "MIT" ]
#region license // Copyright (c) 2004, Rodrigo B. de Oliveira (rbo@acm.org) // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above co...
Boo
4
popcatalin81/boo
scripts/removenotice.boo
[ "BSD-3-Clause" ]
/* Copyright (c) Microsoft Corporation. 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...
CSS
3
burner/playwright
packages/html-reporter/src/common.css
[ "Apache-2.0" ]
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
C++
5
mpminardi/grpc
test/cpp/qps/usage_timer.cc
[ "Apache-2.0" ]
<div class="joplin-editable"><pre class="joplin-source" data-joplin-language="javascript" data-joplin-source-open="```javascript&#10;" data-joplin-source-close="&#10;```">function() { console.info('bonjour'); }</pre><pre class="hljs"><code><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>...
HTML
2
asahiocean/joplin
packages/app-cli/tests/md_to_html/code_block.html
[ "MIT" ]
import "regent" require("src/RegentParticleDSL") set_dimensionality(3) set_periodicity(true) disable_high_performance() enable_timing() setup_part() local format = require("std/format") fspace part{ core_part_space : core_part, neighbour_part_space : neighbour_part, a : int32[4] } setup_dsl() require("src/...
Rouge
3
stfc/RegentParticleDSL
tests/zero_part/test_copy.rg
[ "MIT" ]
--TEST-- Test typed properties with integer keys --FILE-- <?php #[AllowDynamicProperties] class T { // Class must have at least one property. Property must have a type. // Empty class or untyped property removes segfault public int $i; } $t = new T; // $x must be undefined or a non-string type $x = 1; $t-...
PHP
4
NathanFreeman/php-src
Zend/tests/type_declarations/typed_properties_086.phpt
[ "PHP-3.01" ]
class Foo { Obj? test1() { return f(this)?.i(1) } Obj? test2() { return f(this)?.i(null) } Obj? test3() { return f(null)?.i(3) } Obj? test4() { return f(null)?.i(null) } Obj? test5() { return f(this)?.j(5) } Obj? test6() { return f(null)?.j(6) } Obj? test7() { last = null; f(this)?.j(7); return last } ...
Fantom
2
fanx-dev/fanx
compiler/testCompilerx/res/misc/testSafe.fan
[ "AFL-3.0" ]
# This file is maintained automatically by "terraform init". # Manual edits may be lost in future updates. provider "registry.terraform.io/hashicorp/aws" { version = "3.52.0" constraints = "~> 3.52" hashes = [ "h1:Fy/potyWfS8NVumHqWi6STgaQUX66diUmgZDfFNBeXU=", "zh:04a4f8a1b34292fd6a72c1efe03f6f10186e...
HCL
3
tetianakravchenko/beats
x-pack/filebeat/input/awss3/_meta/terraform/.terraform.lock.hcl
[ "ECL-2.0", "Apache-2.0" ]
require "spec" {% if flag?(:musl) %} # FIXME: These thread specs occasionally fail on musl/alpine based ci, so # they're disabled for now to reduce noise. # See https://github.com/crystal-lang/crystal/issues/8738 pending Thread {% skip_file %} {% end %} describe Thread do it "allows passing an argumentles...
Crystal
5
n00p3/crystal
spec/std/thread_spec.cr
[ "Apache-2.0" ]
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
JavaScript
3
good-gym/material-ui
packages/material-ui-icons/lib/SensorsOffRounded.js
[ "MIT" ]
// Copyright 2010-2015 RethinkDB, all rights reserved. #include <algorithm> #include <limits> #include <cmath> #include "math.hpp" #include "rdb_protocol/datum_stream/array.hpp" #include "rdb_protocol/op.hpp" #include "rdb_protocol/term.hpp" #include "rdb_protocol/math_utils.hpp" #include "rdb_protocol/terms/terms.hpp...
C++
5
zadcha/rethinkdb
src/rdb_protocol/terms/random.cc
[ "Apache-2.0" ]
if application "VOX" is running then tell application "VOX" if player state is 1 then return (get artist) & " – " & (get track) else return "" end if end tell end if return ""
AppleScript
4
FedorZaytsev/MTMR
MTMR/AppleScripts/Vox.nowPlaying.scpt
[ "MIT" ]
^XA ^FT100,820^BQI,2,10 ^FH\^FDLA,#TAG_URL^FS ^FB300,1,0,C^FT380,100^A0R,61,59^FH\^FD#TAG_CODE^FS ^FO360,0^GB0,500,3^FS ^FB450,1,0,C^FT305,20^A0R,51,49^FH\^FD#PART_NUMBER^FS ^FO280,0^GB0,500,3^FS ^FB450,5,0,C^FT40,20^A0R,41,39^FH\^FD#PART_DESCRPTION^FS ^FO0,500^GB460,0,3^FS ^XZ
Zimpl
3
WPR-Engineering/part-box
config/default-large.zpl
[ "Apache-2.0" ]
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
3
akhalymon-cv/spark
sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/MergingSortWithSessionWindowStateIteratorSuite.scala
[ "Apache-2.0" ]
digraph classCallInLambda_kt { graph [nodesep=3] node [shape=box penwidth=2] edge [penwidth=2] subgraph cluster_0 { color=red 0 [label="Enter function test" style="filled" fillcolor=red]; subgraph cluster_1 { color=blue 1 [label="Enter block"]; ...
Graphviz (DOT)
4
Mu-L/kotlin
compiler/fir/analysis-tests/testData/resolve/classCallInLambda.dot
[ "ECL-2.0", "Apache-2.0" ]
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include <assert.h> #include <bits/stdint.h> #include <sys/cdefs.h> #include "in.h" __BEGIN_DECLS struct ip { #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ uint8_t ip_v : 4; uint8_t...
C
3
r00ster91/serenity
Userland/Libraries/LibC/netinet/ip.h
[ "BSD-2-Clause" ]
Production:Using Play in production Deploying:Deploying your application ProductionConfiguration:Production configuration HTTPServer:Setting up a front end HTTP server ConfiguringHttps:Configuring HTTPS !cloud:Deploying to a cloud service
TeX
3
eed3si9n/playframework
documentation/manual/working/commonGuide/production/index.toc
[ "Apache-2.0" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- generated with COPASI 4.30 (Build 236) (http://www.copasi.org) at 2020-12-28T19:18:44Z --> <?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?> <COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="30" versionDevel="2...
Component Pascal
4
MedAnisse/COPASI
speed-test-suite/multistate_gillespie.cps
[ "Artistic-2.0" ]
<!DOCTYPE html> <html ng-app="test" ng-jq> <body> <span class="before-ready">{{beforeReady}}</span> <span class="after-ready">{{afterReady}}</span> <span class="after-ready-sync">{{afterReadySync}}</span> <span class="after-ready-method">{{afterReadyMethod}}</span> <span class="after-ready-method-...
HTML
3
skylarkfw/skylark-angular2
original/angular.js-1.7.5/test/e2e/fixtures/ready/index.html
[ "MIT" ]
### 请求 /login 接口 => 成功 POST {{userServerUrl}}/login Content-Type: application/json { "mobile": "15601691300", "password": "admin123" } ### 请求 /send-sms-code 接口 => 成功 POST {{userServerUrl}}/send-sms-code Content-Type: application/json { "mobile": "15601691399", "scene": 1 } ### 请求 /sms-login 接口 => 成功 POST {{...
HTTP
3
cksspk/ruoyi-vue-pro
yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/system/controller/auth/SysAuthController.http
[ "MIT" ]
#!/bin/bash # - Update src/manifest.json with the new version number # - Run the below command # - Then the file /manifests.json also needs to be updated with the new manifest file yarn run dist && cp publish/org.joplinapp.plugins.RegisterCommandDemo.jpl ~/src/joplin-plugins-test/plugins/org.joplinapp.plugins.Registe...
Shell
3
asahiocean/joplin
packages/app-cli/tests/support/plugins/register_command/test_plugin_update.sh
[ "MIT" ]
static const uint16_t in_default_val[100] = { 0xb09e, 0x3816, 0x3626, 0x34c1, 0x3773, 0x39c3, 0x39a2, 0x39e7, 0x31a7, 0xacbc, 0xa80f, 0xa1d4, 0xb003, 0xb9b3, 0xb6f4, 0xba09, 0xb1b3, 0xb424, 0xb42c, 0xb70b, 0x2d56, 0x381e, 0x388f, 0x32c7, 0x33d9, 0x3984, 0x3a38, 0x3708, 0xa596, 0x2cc8, 0xa5ea, 0x2989, ...
Max
1
Trifunik/zephyr
tests/lib/cmsis_dsp/filtering/src/biquad_f16.pat
[ "Apache-2.0" ]
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
5
OlegPt/spark
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/OptimizerRuleExclusionSuite.scala
[ "Apache-2.0" ]
# The contents of this file are subject to the BitTorrent Open Source License # Version 1.0 (the License). You may not copy or use this file, in either # source code or executable form, except in compliance with the License. You # may obtain a copy of the License at http://www.bittorrent.com/license/. # # Software di...
NSIS
4
s4-2/scancode-toolkit
tests/licensedcode/data/datadriven/external/atarashi/BitTorrent-1.0.nsi
[ "Apache-2.0", "CC-BY-4.0" ]
{i=$(1); print i}
Logos
2
Crestwave/goawk
testdata/t.4.x
[ "MIT" ]
import { browser, element, by } from 'protractor'; describe('Tour of Heroes', () => { beforeEach(() => browser.get('/')); it('should display "Tour of Heroes"', async () => { const title = await element(by.css('app-root h1')).getText(); expect(title).toEqual('Tour of Heroes'); }); });
TypeScript
4
John-Cassidy/angular
aio/content/examples/toh-pt0/e2e/src/app.e2e-spec.ts
[ "MIT" ]
import json import logging import os from abc import abstractmethod from os.path import exists, join from typing import Optional, Type, TypeVar from twisted.internet.defer import Deferred from scrapy.crawler import Crawler from scrapy.http.request import Request from scrapy.spiders import Spider from scrapy.utils.job...
Python
4
FingerCrunch/scrapy
scrapy/core/scheduler.py
[ "BSD-3-Clause" ]
import { Vector3 } from '../math/Vector3.js'; import { Color } from '../math/Color.js'; import { Object3D } from '../core/Object3D.js'; import { Mesh } from '../objects/Mesh.js'; import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js'; import { OctahedronGeometry } from '../geometries/OctahedronGeometry.j...
JavaScript
5
o7878x/three.js
src/helpers/HemisphereLightHelper.js
[ "MIT" ]
{ width: 240, height: 240, fps: 14, outPath: './ph.gif', defaults: { transition: { duration: 0.4 }, layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' }, }, clips: [ { duration: 1, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './assets/vertical.jpg', zoomDirec...
JSON5
4
aaverty/editly
examples/ph.json5
[ "MIT" ]
background hsv(210,255,255) color white m: map(wave(1000), 0,1, -5,5) move 0,0,m stroke 4 rotate 45, 1,1,0 push for i:0 to 10 step 1 rotate 3 box 0.25 + F2*2 end pop stroke 2 color red do 10 times rotate 1 scale 1.1 sphere map(wave(1000), 0,1,0.3,10) end
Cycript
3
marcinbiegun/creativecoding-sketches
Cyril/data/code_retro/1.cy
[ "MIT" ]
--- layout: base --- {%- assign _page_mode = page.mode | default: layout.mode | default: site.data.variables.default.page.mode -%} {%- assign _page_type = page.type | default: layout.type | default: site.data.variables.default.page.type -%} {%- assign _article_header_type = page.article_header.type | default: layout.ar...
HTML
3
matt783/matt783.github.io
_layouts/page.html
[ "MIT" ]
{ "status": "Pulling fs layer", "progressDetail": { }, "id": "d837a2a1365e" }
JSON
0
dreamwy9/spring-boot
spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/resources/org/springframework/boot/buildpack/platform/docker/pull-with-empty-details.json
[ "Apache-2.0" ]
module Views.CommentBarTests exposing (all) import Expect import Message.Effects exposing (Effect(..), toHtmlID) import Message.Message exposing (CommentBarButtonKind(..), DomID(..), Message(..)) import Message.Subscription exposing (Delivery(..)) import Test exposing (Test, describe, test) import Views.CommentBar exp...
Elm
5
Caprowni/concourse
web/elm/tests/Views/CommentBarTests.elm
[ "Apache-2.0" ]
# Copyright (C) 2012, Parrot Foundation. set S1, binary:"%Ec" set S2, binary:"\xC2\x80" set S3, binary:"ABCX" set S4, utf8:"\xC4rger" print S0 print "\n" print S1 print "\n" print S2 print "\n" print S3 print "\n" print S4 print "\n" end # Local Variables: #...
Parrot Assembly
3
winnit-myself/Wifie
t/native_pbc/testdata/string.pasm
[ "Artistic-2.0" ]
Contributors ============ A total of 12 people contributed to this release. People with a "+" by their names contributed a patch for the first time. * Andras Deak + * Bob Eldering + * Charles Harris * Daniel Hrisca + * Eric Wieser * Joshua Leahy + * Julian Taylor * Michael Seifert * Pauli Virtanen * Ralf Gommers * ...
reStructuredText
0
iam-abbas/numpy
doc/changelog/1.13.1-changelog.rst
[ "BSD-3-Clause" ]
h2. Formatless Paste Plugin The formatless paste plugin can be used to strip HTML tags from pasted content. endprologue. h3. Overview With this plugin HTML tags can be removed from pasted content. It provides the following features * Strip a configurable set of tags from pasted content * Enabled / disabled via a ...
Textile
4
luciany/Aloha-Editor
doc/guides/source/plugin_formatlesspaste.textile
[ "CC-BY-3.0" ]
.heroes { list-style-type: none; padding: 0; } .heroes li { overflow:hidden; margin: .5em 0; } .heroes li > .inner { cursor: pointer; background-color: #EEE; padding: .3rem 0; height: 1.6rem; border-radius: 4px; } .heroes li:hover > .inner { color: black; background-color: #DDD; transform: tr...
CSS
4
yuchenghu/angular-cn
aio/content/examples/animations/src/app/hero-list-page.component.css
[ "MIT" ]
# Copyright (c) 2022 Fyde Innovations Limited and the openFyde Authors. # Distributed under the license specified in the root directory of this project. # Copyright 2016 The Chromium OS Authors. All rights reserved. # Distributed under the terms of the GNU General Public License v2 # @ECLASS: arc-build.eclass # @MAIN...
Gentoo Eclass
5
FydeOS/chromium_os_for_raspberry_pi
project-cros-pi/eclass/arc-build.eclass
[ "BSD-2-Clause" ]
root: ./docs structure: readme: Introduction.md summary: Summary.md
YAML
1
BetaAI/slate
.gitbook.yaml
[ "MIT" ]
"""Uses Pythagoras theorem to calculate the distance between two points in space.""" import math class Point: def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __repr__(self) -> str: return f"Point({self.x}, {self.y}, {self.z})" def distance(a: Point, b: Poi...
Python
5
JB1959/Python
maths/pythagoras.py
[ "MIT" ]
--TEST-- Bug #78543 (is_callable() on FFI\CData throws Exception) --EXTENSIONS-- ffi --FILE-- <?php $ffi = FFI::cdef(' struct test { int dummy; }; '); $test = $ffi->new('struct test'); var_dump(is_callable($test)); ?> --EXPECT-- bool(false)
PHP
4
NathanFreeman/php-src
ext/ffi/tests/bug78543.phpt
[ "PHP-3.01" ]
#tag Class Protected Class OptionParser #tag Method, Flags = &h0 Sub AddOption(o As Option) // Add an option to the parser. // // ### Parameters // * `o` - `Option` to add // // ### Exceptions // // `OptionParserException` can be thrown if one attempts to add an option with the same ...
Xojo
5
joneisen/Kaju
Other Classes/OptionParser/OptionParser.xojo_code
[ "MIT" ]
tamanhoAtual = len(aBuffer) asize(aBuffer, tamanhoAtual + len(aCandidato)) acopy(aCandidato, aBuffer, 1, len(aCandidato), tamanhoAtual + 1) //https://pt.stackoverflow.com/q/348512/101
xBase
1
piovezan/SOpt
xBase/ADVPLConcatArray.prg
[ "MIT" ]
--TEST-- PECL Bug #6109 (Error messages not kept) --EXTENSIONS-- oci8 --FILE-- <?php require(__DIR__.'/connect.inc'); // Run Test echo "Test 1\n"; $s = oci_parse($c, 'delete from table_does_not_exist'); $r = @oci_execute($s); if ($r) { echo "whoops - table does exist\n"; } else { for ($i = 0; $i < 5; $i++)...
PHP
3
NathanFreeman/php-src
ext/oci8/tests/pecl_bug6109.phpt
[ "PHP-3.01" ]
#!/bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" cd $DIR if [ ! -d palanteer ]; then git clone https://github.com/dfeneyrou/palanteer pip install wheel sudo apt install libunwind-dev libdw-dev fi cd palanteer git pull mkdir -p build cd build cmake .. -DCMAKE_BUILD_TYPE=Re...
Shell
3
GratefulJinx77/comma
selfdrive/debug/profiling/palanteer/setup.sh
[ "MIT" ]
/* * Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com> * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include "GL/gl.h" #include "GLContext.h" extern GL::GLContext* g_gl_context; void glColor3dv(GLdouble const* v) { g_gl_context->...
C++
4
HerrSpace/serenity
Userland/Libraries/LibGL/GLColor.cpp
[ "BSD-2-Clause" ]
/* Copyright 2015 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 a...
C
4
abhaikollara/tensorflow
tensorflow/core/util/equal_graph_def.h
[ "Apache-2.0" ]
#tag Class Protected Class SKReceiptRefreshRequest Inherits StoreKit.SKRequest #tag Method, Flags = &h21 Private Shared Function ClassRef() As Ptr static ref as ptr = NSClassFromString("SKReceiptRefreshRequest") return ref End Function #tag EndMethod #tag Method, Flags = &h0 Sub Constructor(properties...
Xojo
4
kingj5/iOSKit
Modules/StoreKit/SKReceiptRefreshRequest.xojo_code
[ "MIT" ]
# Test Player A #set N := { 1 .. 4}; #var x[N] real >= 0; #var z real; # Objective function #maximize objective: z; # Constraints #subto a: # z+x[2]+x[3] <= 0; #subto b: # z-x[2]-x[3]+2*x[4] <= 0; #subto c: # z+x[2]-x[3]+2*x[4] <= 0; #subto d1: # x[1]+x[2]+x[3]+x[4] <= 1; #subto d2: # x[1]+x[2]+x[...
Zimpl
4
ArielMant0/ko2017
sheet11/task28/test.zpl
[ "MIT" ]
/* Copyright 2016 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 a...
C
5
EricRemmerswaal/tensorflow
tensorflow/python/lib/core/ndarray_tensor.h
[ "Apache-2.0" ]
/- We use the following auxiliary type instead of (Σ α : Type, α) because the code generator produces better code for `pointed`. For `pointed`, the code generator erases the field `α`. -/ structure pointed := (α : Type) (a : α) /- The following two commands demonstrate the difference. To remove the overhead i...
Lean
5
JLimperg/lean
tests/lean/run/heap_mem.lean
[ "Apache-2.0" ]
# Import and Export # wtf why can I use these terminators, but not Op_Newline? # oh maybe the word parser does something with it? # TODO: Also test import 'frontend/syntax' import 'bar' as foo import 'core/util' (log, p_die, foo as bar) import 'core/util' as myutil (log as mylog) import 'one'; import 'two' #ech...
Tea
2
Schweinepriester/oil
tea/testdata/file.tea
[ "Apache-2.0" ]
<div n:foreach="$foo as $bar"> <div> {if true} {$var} {else} {$foo} {/if} </div> </div>
Latte
2
timfel/netbeans
php/php.latte/test/unit/data/testfiles/indent/testIfElseBlock.latte
[ "Apache-2.0" ]
<%= cond do %> <% Post.is_published(@changeset.data) -> %> <%= link "Unpublish", to: "#{@action}/unpublish", class: "ui red fluid basic button", method: :post, data: [confirm: "Are you sure?"] %> <% Post.is_publishable(@changeset.data) -> %> <button class="ui green fluid basic button js-publish-modal">Publish</butt...
HTML+EEX
4
PsOverflow/changelog.com
lib/changelog_web/templates/admin/post/_publish_buttons.html.eex
[ "MIT" ]
export default "a.js";
JavaScript
1
fourstash/webpack
test/configCases/rebuild/rebuildWithNewDependencies/a.js
[ "MIT" ]
def f() -> void begin b() end def b() -> void begin f() end
Cycript
2
matheuspb/cython
examples/cross_call.cy
[ "MIT" ]
[ The 196-algorithm implemented in brainfuck by Mats Linander. This program reads a number in the form of a string of decimal digits terminated by a unix style newline (0x10) and tries to determine if the entered number is a lychrel number. A lychrel number is a number which never yields a palindrome when itera...
Brainfuck
3
RubenNL/brainheck
examples/196-commented.bf
[ "Apache-2.0" ]
C Copyright(c) 1998, Space Science and Engineering Center, UW-Madison C Refer to "McIDAS Software Acquisition and Distribution Policies" C in the file mcidas/data/license.txt C *** $Id: nvxrect.dlm,v 1.2 2001/11/06 20:46:30 daves Exp $ *** C **********************************************************************...
IDL
5
oxelson/gempak
extlibs/AODT/v72/odtmcidas/navcal/navcal/nvxrect.dlm
[ "BSD-3-Clause" ]
// RUN: %sourcekitd-test -req=cursor -pos=5:16 %s -- %s | %FileCheck %s protocol View {} struct MyView: View {} func indicator<T>(_ a: T) -> some View { MyView() } // CHECK: source.lang.swift.decl.generic_type_param
Swift
4
gandhi56/swift
test/SourceKit/CursorInfo/rdar_64230277.swift
[ "Apache-2.0" ]
/* Copyright 2017 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 a...
C++
4
yage99/tensorflow
tensorflow/lite/toco/graph_transformations/create_im2col_arrays.cc
[ "Apache-2.0" ]
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
5
sbj42/vscode
src/vs/platform/windows/electron-main/windows.ts
[ "MIT" ]
package gw.specContrib.enhancements.enhWithTypeParams enhancement Errant_EnhSet1<Integer>: Set<Integer> { }
Gosu
2
dmcreyno/gosu-lang
gosu-test/src/test/gosu/gw/specContrib/enhancements/enhWithTypeParams/Errant_EnhSet1.gsx
[ "Apache-2.0" ]
(* ****** ****** *) #include "share/atspre_staload.hats" #include "share/atspre_staload_libats_ML.hats" (* ****** ****** *) abstype item abstype itemopt(bool) (* ****** ****** *) extern fun{} itemopt_is_some (x0: itemopt(b)): [b==true] void extern fun{} itemopt_is_none (x0: itemopt(b)): [b==false] void (* ****** ...
ATS
3
ats-lang/ATS-CodeBook
RECIPE/CountingByHash/CountingByHash.dats
[ "MIT" ]
/* Copyright 2019 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 agree...
C
4
abhaikollara/tensorflow
tensorflow/core/kernels/collective_nccl_gatherer.h
[ "Apache-2.0" ]
functions { vector gp_pred_rng(vector x2, vector f1, vector x1, real alpha, real lscale, real jitter2) { // rng for predictive distribution of latent values at test locations int N1 = rows(x1); int N2 = rows(x2); vector[N2] f2; { matrix[N1, N1] K = c...
Stan
5
tonyctan/BDA_R_demos
demos_rstan/poisson_gp.stan
[ "BSD-3-Clause" ]
$$ MODE TUSCRIPT file="lines.txt" ERROR/STOP OPEN (file,READ,-std-) line2fetch=7
Turing
2
LaudateCorpus1/RosettaCodeData
Task/Read-a-specific-line-from-a-file/TUSCRIPT/read-a-specific-line-from-a-file.tu
[ "Info-ZIP" ]
.class public synchronized kilim/test/ex/ExYieldSub .super kilim/test/ex/ExYieldBase ; ------------------------------------------------------------- .method public <init>()V ; ------------------------------------------------------------- aload 0 invokespecial kilim/test/ex/ExYieldBase/<init>()V return ...
Jasmin
4
little-pan/kilim
test/kilim/test/ex/ExYieldSub.j
[ "MIT" ]
; Title: Win32 Network Shell ; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003 ; Author: hdm[at]metasploit.com [BITS 32] ; [ebp + 0] = kernel32.dll base ; [ebp + 4] = LGetProcAddress ; [ebp + 8] = LoadLibraryA ; edi = socket LSetCommand: push "CMD" mov ebx, esp ...
Assembly
2
OsmanDere/metasploit-framework
external/source/shellcode/windows/msf2/win32_stage_shell.asm
[ "BSD-2-Clause", "BSD-3-Clause" ]
.test { @color: red; color: @color; }
CSS
2
fuelingtheweb/prettier
tests/css_atword/atword.css
[ "MIT" ]