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 |
|---|---|---|---|---|---|
class Fancy {
class Enumerable {
"""
Mixin-Class with useful methods for collections that implement an @each:@ method.
"""
expects_interface: 'each:
def at: index {
"""
@index @Fixnum@ that is the 0-based index into @self.
@return Value in @self at 0-based position defined by @... | Fancy | 5 | bakkdoor/fancy | lib/enumerable.fy | [
"BSD-3-Clause"
] |
<%@ page contentType="text/html; charset=utf-8"%>
<style>
.form-control {
height: 30px;
}
</style>
<table>
<tr>
<th>
<div class="input-group" style="float:left;">
<span class="input-group-addon">开始</span>
<input type="text" id="time" style="width:130px"/>
</div>
... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/app/linechartDetail.jsp | [
"Apache-2.0"
] |
--TEST--
SplFileObject::fgetcsv with alternative delimiter
--FILE--
<?php
$fp = fopen('SplFileObject__fgetcsv3.csv', 'w+');
fputcsv($fp, array(
'field1',
'field2',
'field3',
5
), '|');
fclose($fp);
$fo = new SplFileObject('SplFileObject__fgetcsv3.csv');
try {
var_dump($fo->fgetcsv('invalid'));
} ca... | PHP | 3 | NathanFreeman/php-src | ext/spl/tests/SplFileObject_fgetcsv_delimiter_error.phpt | [
"PHP-3.01"
] |
@mixin rtl()
.v-application--is-rtl &
@content
@mixin ltr()
.v-application--is-ltr &
@content
| Sass | 4 | ahmadiqbal1/vuetify | packages/vuetify/src/styles/tools/_rtl.sass | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {getFileSystem, PathManipulation} from '@angular/compiler-cli/private/localize';
import {ɵParsedTranslation} fr... | TypeScript | 5 | John-Cassidy/angular | packages/localize/tools/src/translate/source_files/es2015_translate_plugin.ts | [
"MIT"
] |
class Reverse[A: (Real[A] val & Number) = USize] is Iterator[A]
"""
Produces a decreasing range [max, min] with step `dec`, for any `Number` type.
(i.e. the reverse of `Range`)
Example program:
```pony
use "collections"
actor Main
new create(env: Env) =>
for e in Reverse(10, 2, 2) do
... | Pony | 5 | presidentbeef/ponyc | packages/collections/reverse.pony | [
"BSD-2-Clause"
] |
package com.baeldung.webclient;
import com.baeldung.webclient.status.WebClientStatusCodeHandler;
import com.github.tomakehurst.wiremock.WireMockServer;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringRunner;
i... | Java | 5 | DBatOWL/tutorials | spring-5-reactive-client/src/test/java/com/baeldung/webclient/WebClientStatusCodeHandlerIntegrationTest.java | [
"MIT"
] |
grasp = require '..'
require! {
'cli-color': clc
path
}
{strict-equal: equal, deep-equal, throws}:assert = require 'assert'
{keys, reject, map, lines} = require 'prelude-ls'
{EventEmitter} = require 'events'
class StdIn extends EventEmitter
(@data) ~>
@current-line = 0
@data-len = @data?.length
emit-d... | LiveScript | 4 | GerHobbelt/grasp | test/_helpers.ls | [
"MIT"
] |
export const n = 33;
| JavaScript | 1 | 1shenxi/webpack | test/cases/wasm/global-refs-imported-global/env.js | [
"MIT"
] |
.icon-react-one {
@apply absolute w-20 z-10;
right: 13%;
top: 8%;
}
.icon-electron {
@apply absolute w-16 z-0;
left: 17%;
top: 35%;
}
.icon-vue {
@apply absolute w-16 z-10;
right: 33%;
top: 3%;
}
.icon-angular {
@apply absolute w-12 z-10;
right: 21%;
top: 33%;
}
.icon-flutter {
@apply absolute... | CSS | 3 | saendu/supabase | www/components/FloatingIcons/FloatingIcons.module.css | [
"Apache-2.0"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
function f28825()
eval(:(1+1))
end
| Julia | 1 | TimoLarson/julia | test/embedding/include_and_eval.jl | [
"Zlib"
] |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | 5 | akshit-protonn/models | official/vision/image_classification/configs/base_configs.py | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- Copyright IBM Corp. 2010, 2014 -->
<!-- ... | XPages | 4 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-misc.xsp-config | [
"Apache-2.0"
] |
a { color: #aabcccdd } | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/oj5Yn0RxnGFEbVphKqrL2Q/input.css | [
"Apache-2.0"
] |
"""The upc_connect component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/upc_connect/__init__.py | [
"Apache-2.0"
] |
module ciena-waveserver-lldp {
namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-lldp";
prefix lldp;
import ciena-waveserver-typedefs {
prefix cienawstypes;
}
organization
"Ciena Corporation";
contact
"Web URL: http://www.ciena.com/
Postal: 7035 Ridge Road
Ha... | YANG | 5 | meodaiduoi/onos | models/ciena/waveserverai/src/main/yang/ciena-waveserver-lldp@2017-06-16.yang | [
"Apache-2.0"
] |
#Signature file v4.1
#Version 1.58
CLSS public java.beans.FeatureDescriptor
cons public init()
meth public boolean isExpert()
meth public boolean isHidden()
meth public boolean isPreferred()
meth public java.lang.Object getValue(java.lang.String)
meth public java.lang.String getDisplayName()
meth public java.lang.Stri... | Standard ML | 2 | timfel/netbeans | ide/api.xml.ui/nbproject/org-netbeans-api-xml-ui.sig | [
"Apache-2.0"
] |
; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.
%ifdef BORINGSSL_PREFIX
%include "boringssl_prefix_symbols_nasm.inc"
%endif
%ifidn __OUTPUT_FORMAT__,obj
section code use32 class=code align=64
%elifidn __OUTPUT_FORMAT__,win32
$@feat.00 equ 1
section .text... | Assembly | 3 | zealoussnow/chromium | third_party/boringssl/win-x86/crypto/fipsmodule/md5-586.asm | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
// Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/osr/osr_view_proxy.h"
#include <memory>
namespace electron {
OffscreenViewProxy::OffscreenViewProxy(views::View* view) : view_(view) {
view_bitmap_ = std::... | C++ | 4 | lingxiao-Zhu/electron | shell/browser/osr/osr_view_proxy.cc | [
"MIT"
] |
{#ASda}
========
Evaluation
----------
Evaluation
==========
LiquidHaskell Is For Real
-------------------------
<div class="hidden">
\begin{code}
main = putStrLn "Easter Egg: to force Makefile"
\end{code}
</div>
<br>
**Substantial Code Bases**
10KLoc, 50+ Modules
<br>
**Complex Properties**
Memory Safet... | Literate Haskell | 0 | curiousleo/liquidhaskell | docs/slides/ETH14/lhs/11_Evaluation.lhs | [
"MIT",
"BSD-3-Clause"
] |
namespace Alive
{
/**
A Panel with the same height as the floating button of a [Drawer](api:alive/drawer).
*/
public partial class DrawerButtonBackground {}
}
| Uno | 3 | helilabs/fuselibs | Source/Fuse.UXKits.Alive/Docs/DrawerButtonBackground.ux.uno | [
"MIT"
] |
role q {
token stopper { \' }
token escape:sym<\\> { <sym> <item=.backslash> }
token backslash:sym<qq> { <?before 'q'> <quote=.LANG('MAIN','quote')> }
token backslash:sym<\\> { <text=.sym> }
token backslash:sym<stopper> { <text=.stopper> }
token backslash:sym<miscq> { {} . }
method tweak... | Perl6 | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Perl 6/RoleQ.pm6 | [
"MIT"
] |
// MIR for `main` after Inline
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/inline-options.rs:8:11: 8:11
let _1: (); // in scope 0 at $DIR/inline-options.rs:9:5: 9:18
let _2: (); // in scope 0 at $DIR/inline-opti... | Mirah | 2 | mbc-git/rust | src/test/mir-opt/inline/inline_options.main.Inline.after.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
if 'asserts' not in config.available_features:
config.unsupported = True
| INI | 3 | gandhi56/swift | test/AutoDiff/compiler_crashers_fixed/lit.local.cfg | [
"Apache-2.0"
] |
Red [
Title: "VID macOS GUI post-processing rules"
Author: "Nenad Rakocevic"
File: %rules.red
Tabs: 4
Rights: "Copyright (C) 2017-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/dockimbel/Red/blob/master/BSL-License... | Red | 4 | GalenIvanov/red | modules/view/backends/gtk3/rules.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
- page_title @path.split("/").reverse.map(&:humanize)
- @content_class = "limit-container-width" unless fluid_layout
.documentation.md.gl-mt-3
= markdown @markdown
| Haml | 2 | glimmerhq/glimmerhq | app/views/help/show.html.haml | [
"MIT"
] |
#include "buffer_cache/types.hpp"
#include "debug.hpp"
void debug_print(printf_buffer_t *buf, block_magic_t magic) {
buf->appendf("block_magic{");
char *bytes = magic.bytes;
debug_print_quoted_string(buf, reinterpret_cast<uint8_t *>(bytes), sizeof(magic.bytes));
buf->appendf("}");
}
| C++ | 4 | zadcha/rethinkdb | src/buffer_cache/types.cc | [
"Apache-2.0"
] |
SUITESPARSE = $(CURDIR)
export SUITESPARSE
KIND = -DDINT
all: go
include SuiteSparse_config/SuiteSparse_config.mk
go: run
- ( cd UMFPACK/Source ; ./ucov.di )
- ( cd AMD/Source ; ./acov.di )
run: prog
- ./ut > ut.out
- tail ut.out
prog:
( cd SuiteSparse_config ; $(MAKE) )
( cd AMD ; $(MAKE) library )
( ... | D | 3 | gabrielfougeron/SuiteSparse | UMFPACK/Tcov/Makefile.di | [
"Apache-2.0"
] |
from manimlib.animation.animation import Animation
from manimlib.animation.composition import Succession
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.mobject.mobject import Group
from manimlib.utils.bezier import integer_interpolate
from manimlib.utils.config_ops import digest_config
fro... | Python | 4 | OrKedar/geo-manimgl-app | manimlib/animation/creation.py | [
"MIT"
] |
#%RAML 1.0
title: Example API
securitySchemes:
token_auth:
type: x-my-token
securedBy: token_auth
/posts:
get:
| RAML | 4 | PlaceMe-SAS/osprey | examples/custom-auth/api.raml | [
"Apache-2.0"
] |
= f.label :visibility_level, class: 'label-bold' do
= _('Visibility level')
.js-visibility-level-dropdown{ data: { visibility_level_options: visibility_level_options(@group).to_json, default_level: f.object.visibility_level } }
| Haml | 3 | glimmerhq/glimmerhq | app/views/shared/groups/_visibility_level.html.haml | [
"MIT"
] |
[Exposed=(Window,Worker,Worklet)]
interface ReadableByteStreamController {
readonly attribute ReadableStreamBYOBRequest? byobRequest;
readonly attribute unrestricted double? desiredSize;
undefined close();
undefined enqueue(ArrayBufferView chunk);
undefined error(optional any e);
};
| WebIDL | 3 | saschanaz/streams-1 | reference-implementation/lib/ReadableByteStreamController.webidl | [
"BSD-3-Clause"
] |
<http://example.org/node> <http://example.org/prop> <scheme:\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F%20!\u0022#$%&'()*+,-./0123456789:/%3C=%3E?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\u005C]\u005E_\u0060a... | Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/good/test-uri-escape.ttl | [
"CC-BY-3.0"
] |
import caffe2.python.fakelowp.init_shared_libs # noqa
import numpy as np
from caffe2.python import core, workspace
from caffe2.python.onnx.onnxifi import onnxifi_caffe2_net
from hypothesis import given, strategies as st, settings
from caffe2.python.fakelowp.test_utils import print_test_debug_info
import caffe2.python.... | Python | 5 | Hacky-DH/pytorch | caffe2/contrib/fakelowp/test/test_int8_ops_nnpi.py | [
"Intel"
] |
- name: "Andorra"
flag: "ad"
- name: "United Arab Emirates"
flag: "ae"
- name: "Afghanistan"
flag: "af"
- name: "Antigua"
flag: "ag"
- name: "Anguilla"
flag: "ai"
- name: "Armenia"
flag: "am"
- name: "Angolan"
flag: "ao"
- name: "Antarctica"
flag: "aq"
- name: "Argentina"
flag: "ar"
- name: "American ... | YAML | 2 | muhginanjar/tabler | src/pages/_data/flags.yml | [
"MIT"
] |
server {
listen 69.50.225.155:9000;
listen 127.0.0.1;
server_name .example.com;
server_name example.*;
}
| DIGITAL Command Language | 2 | tsrivishnu/certbot | certbot-nginx/certbot_nginx/tests/testdata/etc_nginx/sites-enabled/example.com | [
"Apache-2.0"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
@endpointMap = {
ap-northeast-1 = 'ice.aliyuncs.com',
ap-northeast-2-pop = 'ice.aliyuncs.com',
ap-south-1 = 'ice.aliyuncs.com'... | Tea | 5 | aliyun/alibabacloud-sdk | ice-20201109/main.tea | [
"Apache-2.0"
] |
oauth.consumerKey=//TODO
oauth.consumerSecret=//TODO
oauth.accessToken=//TODO
oauth.accessTokenSecret=//TODO
| INI | 0 | zeesh49/tutorials | Twitter4J/src/main/resources/twitter4j.properties | [
"MIT"
] |
ruleset io.picolabs.execution-order2 {
meta {
shares getOrder
}
global {
getOrder = function(){
ent:order;
}
}
rule reset_order {
select when execution_order reset_order
send_directive("2 - reset_order");
always {
ent:order :=... | KRL | 4 | CambodianCoder/pico-engine | test-rulesets/execution-order2.krl | [
"MIT"
] |
#import <ATen/native/metal/MetalCommandBuffer.h>
#import <ATen/native/metal/MetalTensorUtils.h>
#import <ATen/native/metal/MetalContext.h>
#import <ATen/native/metal/mpscnn/MPSCNNUtils.h>
#import <ATen/native/metal/mpscnn/MPSImage+Tensor.h>
#import <ATen/native/metal/mpscnn/MPSImageUtils.h>
#import <ATen/native/metal/m... | Objective-C++ | 4 | Hacky-DH/pytorch | aten/src/ATen/native/metal/mpscnn/MPSImageWrapper.mm | [
"Intel"
] |
--TEST--
Bug #41970 (call_user_func_*() leaks on failure)
--FILE--
<?php
$a = array(4,3,2);
var_dump(call_user_func_array("sort", array($a)));
try {
var_dump(call_user_func_array("strlen", array($a)));
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
var_dump(call_user_func("sort", $a));
try {
var_... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/general_functions/bug41970.phpt | [
"PHP-3.01"
] |
from moto.redshift import responses as redshift_responses
from localstack import config
from localstack.services.infra import start_moto_server
from localstack.utils.common import recurse_object
def apply_patches():
# patch itemize() to return proper XML response tags
def itemize(data, parent_key=None, *ar... | Python | 4 | jorges119/localstack | localstack/services/redshift/redshift_starter.py | [
"Apache-2.0"
] |
package com.baeldung.find
import org.junit.Test
import static org.junit.Assert.assertTrue
class SetFindUnitTest {
@Test
void whenSetContainsElement_thenCheckReturnsTrue() {
def set = ['a', 'b', 'c'] as Set
assertTrue(set.contains('a'))
assertTrue('a' in set)
}
} | Groovy | 3 | DBatOWL/tutorials | core-groovy-collections/src/test/groovy/com/baeldung/find/SetFindUnitTest.groovy | [
"MIT"
] |
parameters, Context.Request, "{{paramName}}", {{>innerParameterType}} | HTML+Django | 1 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/csharp-nancyfx/innerParameterValueOfArgs.mustache | [
"Apache-2.0"
] |
{{ value|super_reverse }}
| HTML | 2 | sharad16j/flask | tests/templates/template_filter.html | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
if add(7, 9) <> 16 then swigtesterror(); end
if do_op(7, 9, funcvar_get()) <> 16 then swigtesterror(); end
exec("swigtest.quit", -1);
| Scilab | 2 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/funcptr_runme.sci | [
"BSD-3-Clause"
] |
f1(const &v) {
#pragma unused v
}
f2(const ...) { }
f3(const v) {
#pragma unused v
}
f4(...) { }
f5(v) {
#pragma unused v
}
f6(&v) {
#pragma unused v
}
main() {
new a;
f1(a);
f2(a);
f3(a);
f4(a);
f5(a);
f6(a);
}
| PAWN | 1 | pawn-lang/pawn | source/compiler/tests/meaningless_class_specifiers_gh_172.pwn | [
"Zlib"
] |
#!/bin/sh /usr/share/dpatch/dpatch-run
## 03-kfreebsd.dpatch by Petr Salinger <Petr.Salinger@seznam.cz>
##
## DP: FTBFS on GNU/kFreeBSD (Closes: #374841).
@DPATCH@
diff -Naurp dvd+rw-tools-7.1.orig/Makefile.m4 dvd+rw-tools-7.1/Makefile.m4
--- dvd+rw-tools-7.1.orig/Makefile.m4 2008-03-02 17:17:09.000000000 +0000
+++ d... | Darcs Patch | 3 | mtdcr/opendreambox | meta-opendreambox/recipes-multimedia/dvd+rw-tools/files/04-kfreebsd.dpatch | [
"MIT"
] |
query MyQuery @directive(
arg: 5
) {
field
@skip(if: true) @nope
otherField
...fragmentSpread, @include(if: ["this isn't even a boolean", "wow, that's really odd",,,,,])
}
fragment YouCanHaveDirectivesHereToo on SomeType @yesReally(what: "yes") {
fields
... on AType @what(sup: "yo") @otherDirective { goo... | GraphQL | 2 | fuelingtheweb/prettier | tests/graphql_directives/directives.graphql | [
"MIT"
] |
set location;
set geo;
param coord{i in location, j in geo};
param dist{i in location, j in location};
data;
set location := BNA LAX;
set geo := LAT LON;
param coord:
LAT LON :=
BNA 36.12 -86.67
LAX 33.94 -118.4
;
let dist['BNA','LAX'] := 2 * 6372.8 * asin (sqrt(sin(atan(1... | AMPL | 3 | LaudateCorpus1/RosettaCodeData | Task/Haversine-formula/AMPL/haversine-formula.ampl | [
"Info-ZIP"
] |
discard """
output: '''@["aaa", "bbb", "ccc"]'''
"""
const
foo = @["aaa", "bbb", "ccc"]
proc myTuple: tuple[n: int, bar: seq[string]] =
result.n = 42
result.bar = newSeqOfCap[string](foo.len)
for f in foo:
result.bar.add(f)
# It works if you change the below `const` to `let`
const
(n, bar) = myTuple... | Nimrod | 4 | JohnAD/Nim | tests/vm/tnewseqofcap.nim | [
"MIT"
] |
(ns hu.lib.collection
(:require
[hu.lib.type :refer [object? array? empty? iterable? not-empty?]]
[hu.lib.object :refer [keys filter]]))
(defcurry ^void each
"Iterates over elements of an iterable object,
executing the callback for each element"
[clt cb]
(when (iterable? clt)
(.for-each (keys clt... | wisp | 5 | h2non/hu | src/collection.wisp | [
"MIT"
] |
#[ #[ Multiline comment in already
commented out code. ]#
proc p[T](x: T) = discard
]#
echo "This is code"
var
p = 0B0_10001110100_0000101001000111101011101111111011000101001101001001'f64
proc getAlphabet(): string =
var accm = ""
for letter in 'a'..'z': # see iterators
accm.add(letter)
return accm
... | Nimrod | 4 | Thanh090/OnlineCompiler-1337 | public/JAVASCRIPT/ace/demo/kitchen-sink/docs/nim.nim | [
"BSD-3-Clause"
] |
" Tests for :[count]close! command
func Test_close_count()
enew! | only
let wids = [win_getid()]
for i in range(5)
new
call add(wids, win_getid())
endfor
4wincmd w
close!
let ids = []
windo call add(ids, win_getid())
call assert_equal([wids[5], wids[4], wids[3], wids[1], wids[0]], ids)
1... | VimL | 3 | uga-rosa/neovim | src/nvim/testdir/test_close_count.vim | [
"Vim"
] |
AC_DEFUN([FA_CHECK_CUDA], [
AC_ARG_WITH(cuda,
[AS_HELP_STRING([--with-cuda=<prefix>], [prefix of the CUDA installation])])
AC_ARG_WITH(cuda-arch,
[AS_HELP_STRING([--with-cuda-arch=<gencodes>], [device specific -gencode flags])],
[],
[with_cuda_arch=default])
if test x$with_cuda != xno; then
if test x$with_c... | M4 | 3 | CyberFlameGO/milvus | internal/core/src/index/thirdparty/faiss/acinclude/fa_check_cuda.m4 | [
"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 ma... | Pascal | 4 | Jimexist/thrift | tutorial/delphi/DelphiServer/DelphiServer.dpr | [
"Apache-2.0"
] |
(sigil
(sigil_name) @_sigil_name
(quoted_content) @surface
(#eq? @_sigil_name "F"))
(sigil
(sigil_name) @_sigil_name
(quoted_content) @heex
(#eq? @_sigil_name "H"))
(sigil
(sigil_name) @_sigil_name
(quoted_content) @zig
(#eq? @_sigil_name "Z"))
(sigil
(sigil_name) @_sigil_name
(quoted_cont... | Scheme | 3 | last-partizan/nvim-treesitter | queries/elixir/injections.scm | [
"Apache-2.0"
] |
// -- IsCrypt.iss --
// Include file with support functions to download encryption support
// Must be included before adding [Files] entries
//
#if FileExists('iscrypt-custom.ico')
#define iscryptico 'iscrypt-custom.ico'
#define iscrypticosizes '[32, 48, 64]'
#else
#define iscryptico 'iscrypt.ic... | Inno Setup | 5 | mqt635/issrc | iscrypt.iss | [
"FSFAP"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/platform/issue/common/issueReporterUtil.ts | [
"MIT"
] |
package scala.tools.eclipse.contribution.weaving.jdt.debug;
import org.eclipse.jdt.internal.debug.ui.BreakpointMarkerUpdater;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.Position;
/**
* We suppress Breakpoi... | AspectJ | 3 | elemgee/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/debug/SuppressBreakpointMarkerUpdaterAspect.aj | [
"BSD-3-Clause"
] |
#
# UnZip for VMS - MMS (or MMK) Source Dependency File.
#
# This description file is included by other description files. It is
# not intended to be used alone. Verify proper inclusion.
.IFDEF INCL_DESCRIP_DEPS
.ELSE
$$$$ THIS DESCRIPTION FILE IS NOT INTENDED TO BE USED THIS WAY.
.ENDIF
[.$(DEST)]CRC32.OBJ : []CR... | Module Management System | 3 | ThirdProject/android_external_unzip | vms/descrip_deps.mms | [
"Info-ZIP"
] |
KIDS Distribution saved on Feb 04, 2020@11:50:21
Text only version of CTEval report
**KIDS**:SAMI*18.0*4^
**INSTALL NAME**
SAMI*18.0*4
"BLD",11433,0)
SAMI*18.0*4^SAMI^0^3200204^y
"BLD",11433,1,0)
^^1^1^3200202^
"BLD",11433,1,1,0)
CTReport in text format
"BLD",11433,4,0)
^9.64PA^^
"BLD",11433,6.3)
2
"BLD",11433,"KRN",0... | Genshi | 4 | OSEHRA/SAMI-VAPALS-ELCAP | dist/18-4/sami-1.18.0.4-i4.kid | [
"Apache-2.0"
] |
// Copyright 2012 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | Thrift | 4 | kokosing/hue | apps/impala/thrift/ExecStats.thrift | [
"Apache-2.0"
] |
#
mes 2, EM_WSIZE, EM_PSIZE
/*
* Tests _dup_ and _dus_ by loading 20 bytes from _src_, then making
* and checking some duplicates. The compilers might never _dup_ or
* _dus_ with large sizes, so the compilers might work even if this
* test fails. You can cheat this test if _cms_ always pushes zero.
*/
... | Eiffel | 3 | wyan/ack | tests/plat/core/dup_e.e | [
"BSD-3-Clause"
] |
/* 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 a... | C | 5 | EricRemmerswaal/tensorflow | tensorflow/python/framework/python_api_parameter_converter.h | [
"Apache-2.0"
] |
module org-openroadm-srg {
namespace "http://org/openroadm/srg";
prefix org-openroadm-srg;
organization
"OPEN ROADM MSA";
contact
"OpenROADM.org.";
description
"YANG definitions for an Add/Drop group in Network Model
Copyright of the Members of the Open ROADM MSA Agreement dated (c) 20... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-srg@2016-10-14.yang | [
"Apache-2.0"
] |
# Makefile for core library for VMS
# contributed by Jouk Jansen joukj@hrem.nano.tudelft.nl
# Last revision : 3 October 2007
.first
define gl [---.include.gl]
define math [-.math]
define swrast [-.swrast]
define array_cache [-.array_cache]
define glapi [-.glapi]
define main [-.main]
define shader [-.shader]
.... | Module Management System | 3 | manggoguy/parsec-modified | pkgs/libs/mesa/src/src/mesa/swrast/descrip.mms | [
"BSD-3-Clause"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module Marshal_tools_lwt = Marshal_tools.MarshalToolsFunctor (struct
type 'a result = 'a Lwt.t
type fd = Lwt_unix.file_descr
... | OCaml | 4 | esilkensen/flow | src/hack_forked/utils/marshal_tools/marshal_tools_lwt.ml | [
"MIT"
] |
(*** This file is part of Lem. eth-isabelle project just uses it. See lem-license. ***)
chapter {* Generated by Lem from tuple.lem. *}
theory "Lem_tuple"
imports
Main
"Lem_bool"
"Lem_basic_classes"
begin
(*open import Bool Basic_classes*)
(* ----------------------- *)
(* fst *)... | Isabelle | 4 | pirapira/eth-isabelle | lem/Lem_tuple.thy | [
"Apache-2.0"
] |
package com.alibaba.json.bvt.parser.deser;
import com.alibaba.fastjson.JSON;
import junit.framework.TestCase;
import org.junit.Assert;
public class FieldDeserializerTest9 extends TestCase {
public void test_0 () throws Exception {
assertTrue(JSON.parseObject("{\"id\":true\t}", VO.class).id);
asse... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/parser/deser/FieldDeserializerTest9.java | [
"Apache-2.0"
] |
/*
Copyright 2021 Scott Bezek and the splitflap contributors
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 app... | OpenSCAD | 4 | chrisdearman/splitflap | 3d/tools/connector_case.scad | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_setAdditionalSwStereo
Author: NKey
Sets the stereo setting for additional channel the SW radio
Arguments:
0: Radio <STRING>
1: Stereo Range (0,2) (0 - Both, 1 - Left, 2 - Right) <NUMBER>
Return Value:
None
Example:
[(call TFAR_fnc_acti... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_setAdditionalSwStereo.sqf | [
"RSA-MD"
] |
load'jd'
jdadminx'corona'
CSVFOLDER =:'/development/j/coronavirus'
NB. https://www.census.gov/quickfacts/fact/table/chicagocityillinois/POP010210
chi_pop =: 2695598
NB. build dbs
jd'csvprobe /replace chicago-cases.csv'
jd'csvcdefs /replace /h 1 /v 30 chicago-cases.csv'
jd'csvscan chicago-cases.csv'
jd'csvrd chicago-c... | J | 3 | vmchale/coronavirus | chicago-db.ijs | [
"BSD-3-Clause"
] |
= ugc
Describe your project here
:include:ugc.rdoc
| RDoc | 0 | snoopdave/incubator-usergrid | ugc/README.rdoc | [
"Apache-2.0"
] |
tests/cases/compiler/extBaseClass2.ts(2,31): error TS2339: Property 'B' does not exist on type 'typeof M'.
tests/cases/compiler/extBaseClass2.ts(7,29): error TS2304: Cannot find name 'B'.
==== tests/cases/compiler/extBaseClass2.ts (2 errors) ====
module N {
export class C4 extends M.B {
... | Text | 2 | nilamjadhav/TypeScript | tests/baselines/reference/extBaseClass2.errors.txt | [
"Apache-2.0"
] |
#!/usr/bin/env bash
###############################################################################
# Copyright 2018 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of... | Shell | 4 | jzjonah/apollo | docker/build/installers/install_protobuf.sh | [
"Apache-2.0"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "WexTestClass.h"
using namespace WEX::Logging;
class EnumSetTests
{
TEST_CLASS(EnumSetTests);
TEST_METHOD(Constructors)
{
enum class Flags
{
Zero,
... | C++ | 5 | memcpy-rand-rand-rand/terminal | src/til/ut_til/EnumSetTests.cpp | [
"MIT"
] |
#!/bin/sh
set -e
# this script will take the CA cert from @packages/https-proxy/ca
# and regenerate all the certs in this directory from it
# folders:
# ca contains a mock CA
# client contains public info that a client would have
# server contains private info that a server would have
CA_PATH=../../../ca
rm ... | Shell | 4 | bkucera2/cypress | packages/https-proxy/test/helpers/certs/regenerate-certs.sh | [
"MIT"
] |
interface Animal { animal }
interface Dog extends Animal { dog }
interface Cat extends Animal { cat }
function foo1(bar: { a:number }[]): Dog;
function foo1(bar: { a:string }[]): Animal;
function foo1([x]: { a:number | string }[]): Dog {
return undefined;
}
function foo2(bar: { a:number }[]): Cat;
func... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/functionOverloads44.ts | [
"Apache-2.0"
] |
import { deferred } from "../unit/test_util.ts";
const promise = deferred();
const listener = Deno.listen({ port: 4319 });
console.log("READY");
const conn = await listener.accept();
const httpConn = Deno.serveHttp(conn);
const { request, respondWith } = (await httpConn.nextRequest())!;
const {
response,
socket,
}... | TypeScript | 3 | petamoriken/deno | cli/tests/testdata/websocket_server_multi_field_connection_header_test.ts | [
"MIT"
] |
CREATE TABLE `tb_ezaysnxloa` (
`col_koftcyrhcl` int(233) DEFAULT '1',
`col_nacwazcyzi` varbinary(12),
UNIQUE `col_koftcyrhcl` (`col_koftcyrhcl`)
) DEFAULT CHARSET=utf8;
RENAME TABLE `tb_ezaysnxloa` TO `tb_wsxpqlbxhr`;
ALTER TABLE `tb_wsxpqlbxhr` ADD COLUMN (`col_nnckvjhnnd` tinytext CHARACTER SET utf8 COLLATE utf... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_58.sql | [
"Apache-2.0"
] |
'Hello World' printLine | Self | 0 | conorpreid/hello-world | s/Self.self | [
"MIT"
] |
# Method - controller of functions
## Class Method
Property = require('./property')
class Method extends Property
logger: require('debug')('yang:method')
@property 'data',
set: (value) -> @set value, { force: true }
get: -> switch
when @binding? then @do.bind this
... | Literate CoffeeScript | 5 | EnesKilicaslan/yang-js | src/method.litcoffee | [
"Apache-2.0"
] |
<script src="shared.js"></script>
<link rel="stylesheet" href="shared.css" />
<style>
html, body {
min-width: 460px;
min-height: 133px;
}
hr {
width: 100%;
}
</style>
<p>
<b>This page includes an extra development build of React. 🚧</b>
</p>
<p>
The React build on this page includes both... | HTML | 3 | GBKstc/react-analysis | packages/react-devtools-extensions/popups/deadcode.html | [
"MIT"
] |
:mod:`http.cookiejar` --- Cookie handling for HTTP clients
==========================================================
.. module:: http.cookiejar
:synopsis: Classes for automatic handling of HTTP cookies.
.. moduleauthor:: John J. Lee <jjl@pobox.com>
.. sectionauthor:: John J. Lee <jjl@pobox.com>
**Source code:** ... | reStructuredText | 5 | oleksandr-pavlyk/cpython | Doc/library/http.cookiejar.rst | [
"0BSD"
] |
# Check the handling of generator commands, which are not rerun when they change.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: touch %t.build/config.ninja
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build &> %t1.out
# RUN: %{FileCheck} --check-prefix CHECK-FIRST --inpu... | Ninja | 4 | trombonehero/swift-llbuild | tests/Ninja/Build/changed-generator-commands.ninja | [
"Apache-2.0"
] |
export { named } from "./a";
| JavaScript | 2 | 1shenxi/webpack | test/cases/scope-hoisting/reexport-star-exposed-cjs/b.js | [
"MIT"
] |
#%RAML 1.0 DataType
properties:
code: integer
message: string
| RAML | 3 | zeesh49/tutorials | raml/resource-types-and-traits/types/Error.raml | [
"MIT"
] |
Logger.configure_backend(:console, colors: [enabled: false])
ExUnit.start()
| Elixir | 2 | doughsay/elixir | lib/ex_unit/test/test_helper.exs | [
"Apache-2.0"
] |
// Created by Mathias Leppich on 03/02/14.
// Copyright (c) 2014 Bit Bar. All rights reserved.
// Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/cocoa/NSColor+Hex.h"
@implementation NSColor (Hex)
- (NSStri... | Objective-C++ | 4 | lingxiao-Zhu/electron | shell/browser/ui/cocoa/NSColor+Hex.mm | [
"MIT"
] |
#!/bin/bash
if [ "${SKIP_EXEC_RC_LOCAL}" = "YES" ] ; then
echo "skip /etc/rc.local: SKIP_EXEC_RC_LOCAL=${SKIP_EXEC_RC_LOCAL}"
exit
fi
if [ "${DOCKER_DEPLOY_TYPE}" = "HOST" ] ; then
echo "skip /etc/rc.local: DOCKER_DEPLOY_TYPE=${DOCKER_DEPLOY_TYPE}"
exit
fi | Shell | 3 | yuanweikang2020/canal | docker/image/alidata/bin/exec_rc_local.sh | [
"Apache-2.0"
] |
# Check that we emulate -t clean
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: touch %t.build/input
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build > %t1.out
# RUN: test -f %t.build/build.db
# RUN: %{FileCheck} --check-prefix=CHECK-BEFORE-CLEAN < %t1.out %s
#
# RUN: %... | Ninja | 5 | allevato/swift-llbuild | tests/Ninja/Build/t-clean.ninja | [
"Apache-2.0"
] |
$$ MODE tuscript
SET nr1=RANDOM_NUMBERS (1,9,1)
LOOP
SET nr2=RANDOM_NUMBERS (1,9,1)
IF (nr2!=nr1) EXIT
ENDLOOP
LOOP
SET nr3=RANDOM_NUMBERS (1,9,1)
IF (nr3!=nr1,nr2) EXIT
ENDLOOP
LOOP
SET nr4=RANDOM_NUMBERS (1,9,1)
IF (nr4!=nr1,nr2,nr3) EXIT
ENDLOOP
SET nr=JOIN(nr1,"'",nr2,nr3,nr4), limit=10
LOOP r=1,limit
S... | Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Bulls-and-cows/TUSCRIPT/bulls-and-cows.tu | [
"Info-ZIP"
] |
/*
* Copyright (c) 2001-2002 Michael David Adams.
* All rights reserved.
*/
/* __START_OF_JASPER_LICENSE__
*
* JasPer License Version 2.0
*
* Copyright (c) 2001-2006 Michael David Adams
* Copyright (c) 1999-2000 Image Power, Inc.
* Copyright (c) 1999-2000 The University of British Columbia
*
* All rights re... | C | 5 | thisisgopalmandal/opencv | 3rdparty/libjasper/jas_tvp.c | [
"BSD-3-Clause"
] |
--TEST--
sapi_windows_cp_conv basic functionality
--SKIPIF--
<?php
if (PHP_OS_FAMILY !== 'Windows') die('skip for Windows only');
if (!sapi_windows_cp_set(1252) || !sapi_windows_cp_set(65001)) die('skip codepage not available');
?>
--FILE--
<?php
var_dump(
bin2hex(sapi_windows_cp_conv(65001, 1252, 'äöü')),
bin2... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/strings/sapi_windows_cp_conv.phpt | [
"PHP-3.01"
] |
@import url("foo.css") screen and (orientation:landscape); | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/OEG8DCXSJeDTU7pt4fTE-g/input.css | [
"Apache-2.0"
] |
<div class="ui inverted divided equal height stackable grid">
{{ sylius_template_event('sylius.shop.layout.footer.grid') }}
</div>
<div class="ui hidden divider"></div>
| Twig | 0 | titomtd/Sylius | src/Sylius/Bundle/ShopBundle/Resources/views/Layout/Footer/_grid.html.twig | [
"MIT"
] |
// print-pings.click
// This configuration reads packets from a device, and prints out any ICMP
// echo requests it receives.
// You can run it at user level (as root) as
// 'userlevel/click < conf/print-pings.click'
// or in the kernel with
// 'click-install conf/print-pings.click'
FromDevice(eth1) // read packe... | Click | 4 | MacWR/Click-changed-for-ParaGraph | conf/print-pings.click | [
"Apache-2.0"
] |
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#ifndef RUNTIME_POINTER_BITS_H
#define RUNTIME_POINTER_BITS_H
#include <cstdint>
#include "Common.h"
template <typename T>
ALWAYS_INLINE T* setPointerBits(T* ptr, un... | C | 4 | Mu-L/kotlin | kotlin-native/runtime/src/main/cpp/PointerBits.h | [
"ECL-2.0",
"Apache-2.0"
] |
/--------//--------//--------//--------//--------//--------//--------/
z=100y=10w=z*y
r=:i%8:i-=r:i/=8o+=r*y^p b+=w^p++*((r>3)*z+(r%4>1)*y+r%2)x/=:i>7 goto2
:o=(:i*y^p)+o+"":b=b+w^p*((:i>3)*z+(:i%4>1)*y+:i%2)+""o=0b=0p=0:done=1
goto2
:b=b+w^p*((:i>3)*z+(:i%4>1)*y+:i%2)+""
/--------//--------//--------//--------//-... | LOLCODE | 1 | Dude112113/Yolol | YololEmulator/Scripts/OctalAndBinaryConversion.lol | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.