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 |
|---|---|---|---|---|---|
-@var foo: String
%div= "%s template".format(foo)
| Scaml | 2 | glorat/scalatra | scalate/src/test/resources/WEB-INF/views/params.scaml | [
"BSD-2-Clause"
] |
<?Lassoscript
// Downloaded from TagSwap 10/3/07
// Author Johan Sölve
// Usage setHTTPstatus: '404 Not Found'
define_tag: 'setHTTPstatus', -required='statuscode';
$__http_header__ = (string_replaceregexp: $__http_header__,
-find='(^HTTP\\S+)\\s+.*?\n\n',
-replace='\\1 ' + #statuscode + '\n\n');
/de... | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/setHTTPstatus.lasso | [
"MIT"
] |
:: generated from colcon_core/shell/template/hook_set_value.bat.em
@@echo off
set "@(name)=@(value)"
| EmberScript | 2 | esteve/colcon-core | colcon_core/shell/template/hook_set_value.bat.em | [
"Apache-2.0"
] |
// zig fmt: off
test "pointer deref next to assignment" {
var a:i32=2;
var b=&a;
b.*=3;
}
| Zig | 3 | aruniiird/zig | test/stage1/behavior/bugs/3468.zig | [
"MIT"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:c0dfb1fb55b457a4a3e21a9d7623ed67a81f00c7886b96cb31a5ba41001e67ca
size 576
| Nit | 1 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Cassava/info/arc0007.nit | [
"BSD-3-Clause-LBNL"
] |
// @declaration: true
namespace X {
interface A {
kind: 'a';
}
interface B {
kind: 'b';
}
export type C = A | B;
}
export = X; | TypeScript | 4 | monciego/TypeScript | tests/cases/compiler/exportNamespaceDeclarationRetainsVisibility.ts | [
"Apache-2.0"
] |
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_CODEGEN_PENDING_OPTIMIZATION_TABLE_H_
#define V8_CODEGEN_PENDING_OPTIMIZATION_TABLE_H_
#include "src/common/globals.h"
namespace v8 {
names... | C | 4 | rajeev02101987/arangodb | 3rdParty/V8/v7.9.317/src/codegen/pending-optimization-table.h | [
"Apache-2.0"
] |
#ifndef __HIREDIS_LIBUV_H__
#define __HIREDIS_LIBUV_H__
#include <stdlib.h>
#include <uv.h>
#include "../hiredis.h"
#include "../async.h"
#include <string.h>
typedef struct redisLibuvEvents {
redisAsyncContext* context;
uv_poll_t handle;
uv_timer_t timer;
int events;
} r... | C | 3 | dawnwalk/redis | deps/hiredis/adapters/libuv.h | [
"BSD-3-Clause"
] |
<ng-content></ng-content>
<div class="mat-menu-ripple" matRipple
[matRippleDisabled]="disableRipple || disabled"
[matRippleTrigger]="_getHostElement()">
</div>
<svg
*ngIf="_triggersSubmenu"
class="mat-menu-submenu-icon"
viewBox="0 0 5 10"
focusable="false"><polygon points="0,0 5,5 0,10"/></svg>
| HTML | 3 | tungyingwaltz/components | src/material/menu/menu-item.html | [
"MIT"
] |
.//=====================================================================
.//
.// This archetype creates workflow instances based on the interactions
.// with the USER External Entity found in the action language for each
.// function (S_SYNC). It does this by calling wfl_pop_blck_xlate which
.// scans the ooa of oal su... | Arc | 5 | FMAY-Software/bridgepoint | src/org.xtuml.bp.core/arc/wfl_pop.arc | [
"Apache-2.0"
] |
// run-pass
// Test that we can infer the Target based on the Self or vice versa.
use std::mem;
trait Convert<Target> {
fn convert(&self) -> Target;
}
impl Convert<u32> for i16 {
fn convert(&self) -> u32 {
*self as u32
}
}
impl Convert<i16> for u32 {
fn convert(&self) -> i16 {
*self... | Rust | 5 | Eric-Arellano/rust | src/test/ui/traits/traits-multidispatch-infer-convert-target.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<body>
<x-custom stdDeviation="0.5"></x-custom>
<svg viewBox="1.8 2.4 2 2" preserveAspectRatio="xMinYMin meet" role="img">
<title>Test</title>
<defs>
<FILTER id="blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="0.01" />
</FILTER>
... | HTML | 3 | acidburn0zzz/parcel | packages/core/integration-tests/test/integration/html-svg-case/index.html | [
"MIT"
] |
[
(block_mapping_pair)
] @indent
| Scheme | 0 | yzia2000/nvim-treesitter | queries/yaml/indents.scm | [
"Apache-2.0"
] |
#pragma once
#include <c10/core/Storage.h>
| C | 0 | Hacky-DH/pytorch | aten/src/ATen/Storage.h | [
"Intel"
] |
(ns todomvc.session
(:require [reagent.core :as reagent]
[alandipert.storage-atom :refer [local-storage]]))
(reset! alandipert.storage-atom/storage-delay 0)
(def todos (local-storage (reagent/atom (sorted-map)) :todos-reagent))
;; will look like {id {:id _ :title _ :completed _ }}
(def todos-counter (l... | Clojure | 5 | dtelaroli/todomvc | examples/reagent/src/cljs/todomvc/session.cljs | [
"MIT"
] |
##! This script will provide an alternate way of emailing Notices so
##! that you can provide more details in the subject and body.
@load base/frameworks/notice
@load evernote/human
module Notice;
export {
redef enum Action += {
## add our extended email action to Notice's list
ACTION_EMAIL_EXT,
};
## Exten... | Bro | 5 | evernote/bro-scripts | notice_ext/scripts/main.bro | [
"BSD-3-Clause"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
Note 1
Implementation of K-Means / K-Medians classifier. If the distance metric is chosen to
be Manhatten (i.e. L1 norm) then the class essentially runs the K-Medians algorithm on the data.
Example usage, where 'trainX' is the input dataset, 'trainy' ... | J | 4 | jonghough/jlearn | clustering/kmeans.ijs | [
"MIT"
] |
module m33ki.sse
# server sent event
# http://www.sitepoint.com/implementing-push-technology-using-server-sent-events/
function ServerSourceEvent = -> DynamicObject()
:initialize(|this, response| {
this: response(response)
this: response(): type("text/event-stream")
this: response(): heade... | Golo | 4 | TypeUnsafe/golo-tour | 05-Golo.75.devoxxfr.2014/4.grosse.demo.golo.loves.java/toons/libs/m33ki.sse.golo | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:sla... | DIGITAL Command Language | 3 | hsantos9/Winds | api/test/data/feed/shanzhuoboshi.com | [
"BSD-3-Clause"
] |
g = if b then 1 else 2
g = if b; then c; else d
g = if (if b then c else d) then e else f
g = if if b then c else d then e else f
h' :: [a] -> a
h' [] = error "No head for empty lists!"
h' (x:_) = x
| Haskell | 3 | matsubara0507/semantic | test/fixtures/haskell/corpus/statements.B.hs | [
"MIT"
] |
(ns scenarios.hospital
(:use [fdb core constructs graph query] )
[:require [fdb.manage :as M]
[clojure.set :as CS :only (union difference )]])
(def db-name "hos12")
(M/drop-db-conn db-name)
(def hospital-db (M/get-db-conn db-name))
(def basic-kinds [:test/bp-systolic :test/bp-diastolic :test/temp... | Clojure | 4 | adlerliu/500lines | functionalDB/code/scenarios/hospital.clj | [
"CC-BY-3.0"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.eventbus {
Message
}
shared class Sender() extends Verticle() {
shared actual void start(Vertx vertx, Container container) {
vertx.setPeriodic {
delay = 1000;
void ... | Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/eventbus_pointtopoint/Sender.ceylon | [
"Apache-2.0"
] |
#!/bin/bash
make -f release.mk
| Shell | 2 | LuckyNigel/scrcpy | release.sh | [
"Apache-2.0"
] |
#!/usr/bin/env python
'''
===============================================================================
QR code detect and decode pipeline.
===============================================================================
'''
import os
import numpy as np
import cv2 as cv
from tests_common import NewOpenCVTests
class ... | Python | 4 | suryakantpandey/opencv | modules/objdetect/misc/python/test/test_qrcode_detect.py | [
"BSD-3-Clause"
] |
# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass si-fold-operands %s -o - | FileCheck -check-prefix=GCN %s
---
# FIXME: Is it OK to fold omod for this?
# GCN-LABEL: name: omod_inst_flag_nsz_src
# GCN: %0:vgpr_32 = nsz V_ADD_F32_e64 0, $vgpr0, 0, $vgpr1, 0, 0, implicit $exec
# GCN-NEXT: %1:vgpr_32 = V_MUL_F32... | Mirah | 3 | arunkumarbhattar/llvm | test/CodeGen/AMDGPU/omod-nsz-flag.mir | [
"Apache-2.0"
] |
package org.kohsuke.stapler.beanutils.TagTest.RootActionImpl
import org.kohsuke.stapler.beanutils.BeanUtilsTagLibrary
def st = namespace("jelly:stapler")
st.contentType(value: 'text/html')
def lib = jelly(BeanUtilsTagLibrary.class)
lib.tagWithStringTypedClassProperty(class: "stringParam");
| Groovy | 2 | rnelson01/jenkins | test/src/test/resources/org/kohsuke/stapler/beanutils/TagTest/RootActionImpl/groovyCallingJellyBuilderJellyThenTagWithStringProperty.groovy | [
"MIT"
] |
import "regent"
local c = regentlib.c
local stdlib = terralib.includec("stdlib.h")
local cstring = terralib.includec("string.h")
terralib.linklibrary("liblegms.so")
local legms = terralib.includecstring([[
#include "legms_c.h"
#include "utility_c.h"
#include "MSTable_c.h"
#include "Table_c.h"
#include "Column_c.h"
]])... | Rouge | 5 | mpokorny/legms | regent/vavg.rg | [
"Apache-2.0"
] |
# Check rule loading.
#
# RUN: %{llbuild} ninja load-manifest %s > %t 2> %t.err
# RUN: %{FileCheck} < %t %s
# RUN: %{FileCheck} --check-prefix=CHECK-ERR < %t.err %s
build target-a: phony
build target-b: phony
# CHECK: # Default Targets
# CHECK: default "target-a" "target-b"
default target-a target-b
# CHECK-ERR: def... | Ninja | 4 | uraimo/swift-llbuild | tests/Ninja/Loader/default.ninja | [
"Apache-2.0"
] |
#pragma once
#include <torch/csrc/jit/ir/ir.h>
namespace torch {
namespace jit {
// Checks if the parameters, not including the
// first param are all constants.
bool nonConstantParameters(Node* n);
} // namespace jit
} // namespace torch
| C | 4 | xiaohanhuang/pytorch | torch/csrc/jit/passes/utils/optimization_utils.h | [
"Intel"
] |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_SNAPSHOT_CONTEXT_SERIALIZER_H_
#define V8_SNAPSHOT_CONTEXT_SERIALIZER_H_
#include "src/objects/contexts.h"
#include "src/snapshot/serializer... | C | 3 | EXHades/v8 | src/snapshot/context-serializer.h | [
"BSD-3-Clause"
] |
--TEST--
class name as scalar from ::class keyword error using static in class constant
--FILE--
<?php
namespace Foo\Bar {
class One {
const Baz = static::class;
}
}
?>
--EXPECTF--
Fatal error: static::class cannot be used for compile-time class name resolution in %s on line %d
| PHP | 3 | guomoumou123/php5.5.10 | Zend/tests/class_name_as_scalar_error_001.phpt | [
"PHP-3.01"
] |
#!MC 1410
$!EXTENDEDCOMMAND COMMANDPROCESSORID='extend time mcr'
COMMAND='QUERY.NUMTIMESTEPS NUMTIMESTEPS'
$!AlterData
Equation = '{Hours}=0'
$!AlterData
Equation = '{Minutes}=0'
$!AlterData
Equation = '{Seconds}=0'
$!LOOP |NUMTIMESTEPS|
$!EXTENDEDCOMMAND COMMANDPROCESSORID='extend time mcr'
COMMAND='SET.C... | MAXScript | 3 | Mehrdadj93/handyscripts | macro/Convert_SolutionTime.mcr | [
"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.
*/
#include <fbjni/fbjni.h>
#include <react/jni/JNativeRunnable.h>
#include "JBackgroundExecutor.h"
namespace facebook {
namespace r... | C++ | 3 | anaskhraza/react-native | ReactAndroid/src/main/java/com/facebook/react/fabric/jni/JBackgroundExecutor.cpp | [
"CC-BY-4.0",
"MIT"
] |
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="fn" uri="http://ja... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/browser/speedGraph.jsp | [
"Apache-2.0"
] |
# Copyright 2017-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.2.0
EAPI=7
CRATES="
adler32-1.0.4
advapi32-sys-0.2.0
aes-0.3.2
aes-ctr-0.3.0
aes-soft-0.3.3
aesni-0.6.0
aho-corasick-0.7.6
alga-0.9.2
alsa-0.2.2
alsa-0.3.0
alsa-sys-0.1.2
ansi_te... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | media-sound/spotifyd/spotifyd-0.2.20.ebuild | [
"BSD-3-Clause"
] |
version date files npm v8 uv zlib openssl modules lts security
v18.0.0-nightly20211217a182a21636 2021-12-17 aix-ppc64,headers,linux-arm64,linux-armv7l,linux-ppc64le,linux-s390x,linux-x64,osx-arm64-tar,osx-x64-pkg,src,win-x64-7z,win-x64-exe,win-x64-msi,win-x64-zip,win-x86-7z,win-x86-exe,win-x86-msi,win-x86-zip 8.3.0 9.6... | SQL | 0 | victorfu/nvm | test/fast/Unit tests/mocks/nodejs.org-download-nightly-index.tab | [
"MIT"
] |
__includes ["ANN.nls"]
globals [
data-list ; List of pairs [Input Output] to train the network
]
;;;
;;; Setup Procedure
;;;
to setup
clear-all
; Building the Front Panel
ask patches [ set pcolor 39 ]
ask patches with [pxcor > -8] [set pcolor 38]
ask patches with [pxcor > 7] [set pcolor 37]
ask pat... | NetLogo | 4 | fsancho/IA | 11. Machine Learning/Neural Networks/ANN MultiLayer Perceptron.nlogo | [
"MIT"
] |
(in-package :house)
(setf *print-failures* t
*print-summary* t
*print-errors* t)
(define-test parameter-parsing
(assert-equal '((:a . "1")) (parse-params "a=1"))
(assert-equal '((:a . "1") (:b . "2")) (parse-params "a=1&b=2"))
(assert-equal '((:longer . "parameter names") (:look . "something like t... | Common Lisp | 5 | adlerliu/500lines | event-web-framework/code/unit-tests.lisp | [
"CC-BY-3.0"
] |
[
(chapter)
(part)
(section)
(subsection)
(subsubsection)
(paragraph)
(subparagraph)
(environment)
(displayed_equation)
] @fold
| Scheme | 1 | hmac/nvim-treesitter | queries/latex/folds.scm | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href="/css/default.css" />
<script src="/js/AdvancedCapture.js"></script>
</head>
<body>
<div data-win-control="SdkSample.ScenarioInput">
<p>
This scenario shows how to enumerat... | HTML | 2 | thisisgopalmandal/opencv | samples/winrt/JavaScript/html/AdvancedCapture.html | [
"BSD-3-Clause"
] |
#+TITLE: lang/common-lisp
#+DATE: June 13, 2018
#+SINCE: v2.0
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Fea... | Org | 5 | leezu/doom-emacs | modules/lang/common-lisp/README.org | [
"MIT"
] |
#!/usr/bin/env bash
set -x -eo pipefail
docker pull paketobuildpacks/build:tiny-cnb
docker tag paketobuildpacks/build:tiny-cnb projects.registry.vmware.com/springboot/build:tiny-cnb
docker push projects.registry.vmware.com/springboot/build:tiny-cnb
docker pull paketobuildpacks/run:tiny-cnb
docker tag paketobuildpacks... | Shell | 3 | techAi007/spring-boot | src/spring-boot-builder/build.sh | [
"Apache-2.0"
] |
USING: compiler.cfg help.markup help.syntax kernel ;
IN: compiler.cfg.predecessors
HELP: needs-predecessors
{ $values { "cfg" cfg } }
{ $description "Computes predecessor info for the cfg unless it already is up-to-date." } ;
| Factor | 3 | alex-ilin/factor | basis/compiler/cfg/predecessors/predecessors-docs.factor | [
"BSD-2-Clause"
] |
h2. The Image Plugin
The Image Plugin allows for the basic manipulation of images right within the content of an editable. It has support for:
* insertion,
* resizing by dragging or entering values, both with and without fixed aspect ratio,
* cropping,
* dragging the image around,
* changing the title, src and alt at... | Textile | 5 | luciany/Aloha-Editor | doc/guides/source/plugin_image.textile | [
"CC-BY-3.0"
] |
(* /etc/libvirt/qemu.conf *)
module Libvirtd_qemu =
autoload xfm
let eol = del /[ \t]*\n/ "\n"
let value_sep = del /[ \t]*=[ \t]*/ " = "
let indent = del /[ \t]*/ ""
let array_sep = del /,[ \t\n]*/ ", "
let array_start = del /\[[ \t\n]*/ "[ "
let array_end = del /\]/ "]"
let str_val = ... | Augeas | 4 | SIIS-cloud/pileus | libvirt/pileus-libvirt-1.2.12/src/qemu/libvirtd_qemu.aug | [
"Apache-2.0"
] |
#ifdef __cplusplus
#include <cstdint>
#include <cstddef>
#else
#include <stdint.h>
#include <stddef.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
void *completeMetadata(void *metadata);
#ifdef __cplusplus
extern "C"
#endif
int64_t *trailingFlagsForStructMetadata(void *metadata);
#ifdef __cplusplus
extern "C"
#endif... | C | 4 | gandhi56/swift | test/IRGen/prespecialized-metadata/Inputs/extraDataFields.h | [
"Apache-2.0"
] |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"fmt"
"os"
"reflect"
)
// Test that the struct field in anonunion.go was promoted.
var v1 T
var v2 = v1.L
// Test that P, Q, and R a... | Go | 4 | SSSDNSY/go | misc/cgo/testgodefs/testdata/main.go | [
"BSD-3-Clause"
] |
dependencies:
factories:
Articus\DataTransfer\Service: Articus\DataTransfer\ServiceFactory
data_transfer:
metadata_cache:
adapter:
name: blackhole
strategies:
invokables:
{{invokerPackage}}\Strategy\Date: {{invokerPackage}}\Strategy\Date
{{invokerPackage}}\Strategy\DateTime: {{invok... | HTML+Django | 3 | derBiggi/swagger-codegen | modules/swagger-codegen/src/main/resources/ze-ph/data_transfer.yml.mustache | [
"Apache-2.0"
] |
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-iso-8859-3
%%Version: 1.0 0
%%EndComments
/VIM-iso-8859-3[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef... | PostScript | 1 | uga-rosa/neovim | runtime/print/iso-8859-3.ps | [
"Vim"
] |
% Laziness
Laziness
--------
\begin{code}
module Laziness where
import Language.Haskell.Liquid.Prelude
\end{code}
Infinite Computations can lead to Unsoundness
----------------------------------------------
Infinite Computations can be refined with **false**
\begin{code}
{-@ foo :: n:Nat -> {v:Nat | v < n} @-}
fo... | Literate Haskell | 4 | curiousleo/liquidhaskell | docs/slides/niki/lhs/Laziness.lhs | [
"MIT",
"BSD-3-Clause"
] |
ConvertFrom-StringData @'
string1=string1 from foo in fr-FR
string2=string2 from foo in fr-FR
'@ | PowerShell | 3 | Jellyfrog/PowerShell | test/powershell/Language/Scripting/fr-FR/foo.psd1 | [
"MIT"
] |
;;; lang/idris/config.el -*- lexical-binding: t; -*-
(after! idris-mode
(add-hook 'idris-mode-hook #'turn-on-idris-simple-indent)
(set-repl-handler! 'idris-mode 'idris-pop-to-repl)
(set-lookup-handlers! 'idris-mode
:documentation #'idris-docs-at-point)
(map! :localleader
:map idris-mode-map
... | Emacs Lisp | 4 | leezu/doom-emacs | modules/lang/idris/config.el | [
"MIT"
] |
Vectorize umath module using AVX-512
-------------------------------------
By leveraging Intel Short Vector Math Library (SVML), 18 umath functions
(``exp2``, ``log2``, ``log10``, ``expm1``, ``log1p``, ``cbrt``, ``sin``,
``cos``, ``tan``, ``arcsin``, ``arccos``, ``arctan``, ``sinh``, ``cosh``,
``tanh``, ``arcsinh``, `... | reStructuredText | 2 | jawad26/numpy | doc/release/upcoming_changes/19478.performance.rst | [
"BSD-3-Clause"
] |
insert into t values
(7, 'seven'),
(8, 'eight'),
(9, 'nine');
| SQL | 1 | cuishuang/tidb | br/tests/lightning_checkpoint_engines_order/data/disk_quota_checkpoint.t.2.sql | [
"Apache-2.0"
] |
sleep 1
t cal -de 8
| AGS Script | 1 | waltersgrey/autoexechack | Video-Effects/PopArt/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
def sign(message, d, G, hash_function=None):
"""Sign ECDSA
Args:
message(int/arg for hash_function)
d(int): private key
G(EllipticCurvePoint_finite_field): base point
hash_function(NoneType/callable)
Returns:
r,s
"""
q = G.order()
Zq = Zmod(q)
r, s ... | Sage | 4 | akbarszcz/CryptoAttacks | CryptoAttacks/EllipticCurve/ecdsa.sage | [
"MIT"
] |
[Desktop Entry]
Type=Application
Name={{.Name}}
Exec={{.Exec}}
Icon={{.Name}}
| desktop | 3 | MegaXChan/fyne | cmd/fyne/internal/templates/data/app.desktop | [
"BSD-3-Clause"
] |
(()=>{var r={221:r=>{r.exports=function(r,e){if(!e)e={};var n=e.hsep===undefined?" ":e.hsep;var t=e.align||[];var a=e.stringLength||function(r){return String(r).length};var i=reduce(r,(function(r,e){forEach(e,(function(e,n){var t=dotindex(e);if(!r[n]||t>r[n])r[n]=t}));return r}),[]);var u=map(r,(function(r){return map... | JavaScript | 3 | blomqma/next.js | packages/next/compiled/text-table/index.js | [
"MIT"
] |
package {
import GZ.Gpu.Gpu;
<cpp>
//#include <windows.h>
</cpp>
public class OpGpu overplace Gpu {
public function OpGpu():Void{
Gpu(0, false);
Debug.fTrace("Gpu loaded");
}
override function fLoadImg(_aImg : CArray<Int, 1>, _nWidth : Int, _nHeight : Int):Void{
Debug.fTrace("Load Im... | Redcode | 3 | VLiance/GZE | src/SubLib_System/Lib_GzAndroid/Gpu/Sys/OpGpu.cw | [
"Apache-2.0"
] |
;; -*- no-byte-compile: t; -*-
;;; lang/ess/packages.el
(package! ess :pin "a7ce81bb768d7cc410885711cf99bad0f8941ac3")
(package! ess-R-data-view :pin "d6e98d3ae1e2a2ea39a56eebcdb73e99d29562e9")
(package! polymode :pin "54888d6c15249503e1a66da7bd7761a9eda9b075")
(package! poly-R :pin "c42ff3a4d0da96ccb7f826dca5c6b2eb55... | Emacs Lisp | 3 | leezu/doom-emacs | modules/lang/ess/packages.el | [
"MIT"
] |
resource "aws_vpc" "test_elb" {
cidr_block = "10.0.0.0/16"
}
resource "aws_subnet" "test_elb" {
count = length(var.availability_zones)
vpc_id = "${aws_vpc.test_elb.id}"
cidr_block = "10.0.${count.index}.0/24"
availability_zone = var.availability_zones[count.index]
}
resource "aws_internet... | HCL | 4 | tetianakravchenko/beats | x-pack/filebeat/module/aws/elb/_meta/terraform/vpc.tf | [
"ECL-2.0",
"Apache-2.0"
] |
<strong><%= render partial: "partial_only" %></strong>
| HTML+ERB | 1 | swaathi/rails | actionview/test/fixtures/actionpack/test/with_partial.html.erb | [
"MIT"
] |
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Process.h>
namespace Kernel {
ErrorOr<FlatPtr> Process::sys$fsync(int fd)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
REQUIRE_PROMISE(stdio);
auto description = TRY(fds().open_file_descript... | C++ | 3 | r00ster91/serenity | Kernel/Syscalls/fsync.cpp | [
"BSD-2-Clause"
] |
--TEST--
mb_ereg() compat test 2
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_ereg') or die("skip mb_ereg() is not available in this build");
?>
--FILE--
<?php
/* (counterpart: ext/standard/tests/reg/005.phpt) */
$a="This is a nice and simple string";
echo mb_ereg(".*(is).*(is).*",$a,$registers);
... | PHP | 4 | NathanFreeman/php-src | ext/mbstring/tests/mb_ereg-compat-02.phpt | [
"PHP-3.01"
] |
0 !echo
\ Implements Knuth's Comparison Counting sorting algorithm
\ TAOCP Vol. 3 (II ed), pg. 76, algorithm C
: len 16 ;
variable ii \ counter for outer loop
variable jj \ counter for inner loop
create input 503 , 87 , 512 , 61 , 908 , 170 , 897 , 275 ,
653 , 426 , 154 , 509 , 612 , 677 , 765 , 7... | Forth | 5 | jephthai/EvilVM | test/sort.fth | [
"MIT"
] |
#!/bin/bash
#
mkl_require good_cflags
mkl_require gitversion as KAFKACAT_VERSION default 1.7.0
function checks {
# Check that librdkafka is available, and allow to link it statically.
mkl_meta_set "rdkafka" "desc" "librdkafka is available at http://github.com/edenhill/librdkafka. To quickly download all dep... | Self | 4 | robsonpeixoto/kafkacat | configure.self | [
"BSD-2-Clause-NetBSD",
"BSD-3-Clause"
] |
# descrip.mms -- makefile for building `flex' using MMS or MMK on VMS;
# created manually from Makefile.in
# flex 2.5.0 Jan'95
MAKEFILE = descrip.mms # from [.MISC.VMS]
MAKE = $(MMS) /Descr=$(MAKEFILE)
MAKEFLAGS = $(MMSQUALIFIERS)
# Possible values for DEFS:
# "VMS" -- used just to make sure parentheses ... | Module Management System | 5 | tianqichongzhen/minix3 | commands/flex-2.5.4/MISC/VMS/descrip.mms | [
"BSD-3-Clause"
] |
****************************************************************************
* *
* Copyright 2018 ABSA Group Limited *
* ... | COBOL | 3 | yruslan/cobrix | data/test19_display_num.cob | [
"Apache-2.0"
] |
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
html,
body {
font-family: 'Source Sans Pro', sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 20px;
padding: 0;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
*,
*:before,
*:after ... | CSS | 4 | blomqma/next.js | examples/with-clerk/styles/globals.css | [
"MIT"
] |
object = require './runtime'.object
_ = require 'underscore'
createIndentStack = require './indentStack'.createIndentStack
createInterpolation = require './interpolation'.createInterpolation
exports.createParserContext =
createParserContext (terms: nil, filename: nil) = {
terms = terms
indentStack... | PogoScript | 4 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/parser/parserContext.pogo | [
"MIT"
] |
unique template site/filesystems/ceph-raid;
prefix '/system/blockdevices';
variable CEPH_OSD_DISKS = {
# SAS disks partitions
disks = list();
foreach (disk; data; value('/hardware/harddisks')) {
if (data['capacity'] > 1000 * GB) {
append(disks, disk);
};
};
disks;
};
'... | Pan | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pan/ceph-raid.pan | [
"MIT"
] |
integer paused = 0;
key botID;
//The list of positions that the bot will be heading to,
// along with waiting for 1 second between each position change
list positions = [
llGetPos() + <5,0,0>,
1.0,
llGetPos() + <0,5,0>,
1.0,
llGetPos() + <-5,0,0>,
1.0,
llGetPos() + <0,-5,0>,
1.0];
... | LSL | 5 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Path Update.lsl | [
"BSD-3-Clause"
] |
ruleset uta_real {
meta {
shares __testing, loadDirectory, initializeFile, serviceValidToday, exceptionType1, viewFile, times, cached, getTimes, businfo
provides getTimes
use module uta_time
}
global {
__testing = { "queries":
[ { "name": "__testing" }
, { "name": "loadDirectory" ... | KRL | 4 | Picolab/ManifoldApps | uta/uta_real.krl | [
"MIT"
] |
//
// Copyright (c) 2010, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 12 May 10 Brian Frank Creation
//
**
** NativeClass tests an entire native class, where the
** class is wholly implemented in Java, C#, etc
**
native class NativeClass
{
new make()
In... | Fantom | 4 | fanx-dev/fantom | src/testNative/fan/NativeClass.fan | [
"AFL-3.0"
] |
PREFIX : <http://example/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?x ?v1 ?y ?v2
{
?x :p ?v1 .
?y :p ?v2 .
OPTIONAL { ?y :p ?v3 . FILTER( ?v1 != ?v3 || ?v1 = ?v3 )}
FILTER (!bound(?v3))
}
| SPARQL | 4 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.0-w3c/data-r2/open-world/open-eq-12.rq | [
"BSD-3-Clause"
] |
// check-pass
// aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
#[derive(Empty)]
#[empty_helper] // OK, this is both derive helper and legacy derive helper
#[derive(Empty)]
struct S;
fn main() {}
| Rust | 3 | mbc-git/rust | src/test/ui/proc-macro/derive-helper-vs-legacy.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{- Copyright (c) 2011 Luis Cabellos,
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | C2hs Haskell | 5 | jpwidera/opencl | src/Control/Parallel/OpenCL/Query.chs | [
"BSD-3-Clause"
] |
<GameProjectFile>
<PropertyGroup Type="Scene" Name="crossplatform_UIImageView_Editor_1" ID="25848ead-412c-4d99-a737-9312d4f0dfa4" Version="2.1.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Scene" FrameEvent="" CallBackType="Touch" ... | Csound | 2 | dum999/CocosStudioSamples | CocosStudioProjects/crossplatform_UIImageView_Editor_1/cocosstudio/crossplatform_UIImageView_Editor_1.csd | [
"MIT"
] |
{:unions
{:Characters
{:members [:Human :Droid]}}
:objects
{:Human
{:fields
{:first_name {:type String
:resolve [:prop :firstName]}
:last_name {:type String
:resolve [:prop :lastName]}}}
:Droid
{:fields
{:designation {:type String
:resolve [:prop ... | edn | 3 | hagenek/lacinia | dev-resources/fixes-types-schema.edn | [
"Apache-2.0"
] |
1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -90.00
-1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -14.00
0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -39.00
0.00 -1.00 ... | Matlab | 0 | yinrun/LOPDC-Benchmarks | strippacking/matlab/sp-9-27-one.matlab | [
"MIT"
] |
--TEST--
Bug #61681: Malformed grammar
--FILE--
<?php
$la = "ooxx";
echo "${substr('laruence', 0, 2)}";
?>
--EXPECT--
ooxx
| PHP | 2 | thiagooak/php-src | Zend/tests/bug61681.phpt | [
"PHP-3.01"
] |
IF A list-of-MUMPS-commands
| M | 1 | LaudateCorpus1/RosettaCodeData | Task/Conditional-structures/MUMPS/conditional-structures-1.mumps | [
"Info-ZIP"
] |
(ns open-api-petstore.specs.category
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
)
(:import (java.io File)))
(def category-data
{
(ds/opt :id) int?
(ds/opt :name) string?
})
(def category-spec
(ds/spec
{:name ::category
:spec category-data}))
| Clojure | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/clojure/src/open_api_petstore/specs/category.clj | [
"Apache-2.0"
] |
#!/bin/sh
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | Shell | 3 | warlock135/grpc | tools/dockerfile/grpc_clang_tidy/clang_tidy_all_the_things.sh | [
"Apache-2.0"
] |
--TEST--
Invalid union type variance: Adding extra return type
--FILE--
<?php
class A {
public function method(): int {}
}
class B extends A {
public function method(): int|float {}
}
?>
--EXPECTF--
Fatal error: Declaration of B::method(): int|float must be compatible with A::method(): int in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/type_declarations/union_types/variance/invalid_001.phpt | [
"PHP-3.01"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# André Hagenbruch, 2011-2012
# Florian Apolloner <florian@apolloner.eu>, 2020-2021
# Jannis Leidel <jannis@leidel.info>, 2011,2013-2016
# Jannis Vajen, 2016
# Markus Holtermann <info@markusholtermann.eu>, 2020
msgid ""
msgstr ""
... | Gettext Catalog | 3 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/admin/locale/de/LC_MESSAGES/djangojs.po | [
"PostgreSQL",
"Unlicense"
] |
android {
QT += androidextras core-private
INCLUDEPATH += $$PWD
PUBLIC_HEADERS += \
$$PWD/qserialport.h \
$$PWD/qserialportinfo.h
PRIVATE_HEADERS += \
$$PWD/qserialport_p.h \
$$PWD/qserialportinfo_p.h \
$$PWD/qserialport_android_p.h
SOURCES += \
$... | QMake | 2 | uavosky/uavosky-qgroundcontrol | libs/qtandroidserialport/src/qtandroidserialport.pri | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts'/>
////type X = [number]/*1*/
goTo.marker("1");
edit.insert(";");
verify.currentLineContentIs("type X = [number];"); | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/formattingEqualsBeforeBracketInTypeAlias.ts | [
"Apache-2.0"
] |
#include "config.hats"
#include "{$TOP}/avr_prelude/kernel_staload.hats"
staload "{$TOP}/SATS/arduino.sats"
staload "{$TOP}/SATS/hardware_serial.sats"
staload "{$TOP}/SATS/eeprom.sats"
staload UN = "prelude/SATS/unsafe.sats"
#define ADDR 7
#define VAL 12
#define BLINK_DELAY_MS 1000.0
implement main () = {
fun loop... | ATS | 3 | Proclivis/arduino-ats | demo/eeprom/DATS/main.dats | [
"MIT"
] |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<body>
<h1>Subject</h1>
<p th:text="${@emailData.emailSubject}">Subject</p>
<h1>Content</h1>
<p th:text="${@emailData.emailBody}">Body</p>
<h1>Email address</h1>
<p th:te... | HTML | 4 | DBatOWL/tutorials | spring-web-modules/spring-thymeleaf-5/src/main/resources/templates/mvcdata/email-bean-data.html | [
"MIT"
] |
"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 | dany-freeman/material-ui | packages/mui-icons-material/lib/InstallDesktopRounded.js | [
"MIT"
] |
exec("swigtest.start", -1);
// OUTPUT
[a, b] = output2();
checkequal(a, 1, "[a, b] = output2(): a");
checkequal(b, 2, "[a, b] = output2(): b");
[ret, a, b] = output2Ret();
checkequal(ret, 3, "[a, b] = output2Ret(): b");
checkequal(a, 1, "[a, b] = output2Ret(): a");
checkequal(b, 2, "[a, b] = output2Ret(): b");
[c, ... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/scilab_multivalue_runme.sci | [
"BSD-3-Clause"
] |
/*
* Copyright (c) 2021 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.groovy
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.InjectMocks
import org.mockito.Mock
import org.mockito.junit.MockitoJUnitRunner
import static org.... | Groovy | 4 | stevegreenn/mockito | subprojects/groovyTest/src/test/groovy/org/mockito/groovy/GroovyMockitoTest.groovy | [
"MIT"
] |
#tag IOSView
Begin iosView RecordPlayAudioView
BackButtonTitle = "Back"
Compatibility = ""
LargeTitleMode = 2
Left = 0
NavigationBarVisible= True
TabIcon = ""
TabTitle = ""
Title = "Record and Play Audio"
Top = 0
Begin iO... | Xojo | 5 | kingj5/iOSKit | ExampleViews/AVFoundationViews/RecordPlayAudioView.xojo_code | [
"MIT"
] |
__includes ["apeBrain_02.nls" "factors_ape.nls"]
extensions [ nw table csv]
breed [primates primate]
globals [previousFightCount fightSizeList fightTable fightMetric compare]
primates-own [andCombo? myFighting? myRank myHierThold mySizeThold myProFighting mySimpleFightProbList thinkingList]
turtles-own []
patches-o... | NetLogo | 4 | mitre/strategy-mining | input/apefight/apeFight_02_fixedSeed.nlogo | [
"Apache-2.0"
] |
function git_is_stashed -d "Check if repo has stashed contents"
git_is_repo; and begin
command git rev-parse --verify --quiet refs/stash >/dev/null
end
end
| fish | 4 | codetriage-readme-bot/oh-my-fish | lib/git/git_is_stashed.fish | [
"MIT"
] |
-------------------------------------------------------------
--Copyright 2020 Science and Technologies Facilities Council
--Licensed under the MIT License
--Author Aidan Chalk, STFC Hartree Centre
import "regent"
require("src/particles/core_part")
fspace part{
neighbour_part_space : neighbour_part,
core_part_sp... | Rouge | 4 | stfc/RegentParticleDSL | tests/2d_interaction_count/interaction_count_part.rg | [
"MIT"
] |
DefaultBehavior Case AndCombiner = Origin with(components: [])
DefaultBehavior Case AndCombiner === = method(other,
components all?(=== other))
DefaultBehavior Case case:and = method(+args,
DefaultBehavior Case AndCombiner with(components: args))
DefaultBehavior Case OrCombiner = Origin with(components: [])
Def... | Ioke | 3 | olabini/ioke | src/builtin/F05_case.ik | [
"ICU",
"MIT"
] |
i am not an ontology!
| Web Ontology Language | 4 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/import/bad.owl | [
"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 a... | C++ | 3 | EricRemmerswaal/tensorflow | tensorflow/compiler/mlir/tensorflow/transforms/convert_launch_func_to_tf_call.cc | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.