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 |
|---|---|---|---|---|---|
untyped
global function Grenade_FileInit
global function GetGrenadeThrowSound_1p
global function GetGrenadeDeploySound_1p
global function GetGrenadeThrowSound_3p
global function GetGrenadeDeploySound_3p
global function GetGrenadeProjectileSound
const DEFAULT_FUSE_TIME = 2.25
const DEFAULT_WARNING_TIME = 1.0
global co... | Squirrel | 5 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/weapons/_grenade.nut | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CControlSurfaceProbePropPage
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "controlsurfaceprobe.h"
LastPage=0
ClassCount=3
Class1=CCapabilitiesDialog
Class2=CControlSurfaceProbeAp... | Clarion | 3 | Schrankee/Cakewalk-Control-Surface-SDK | Surfaces/ControlSurfaceProbe/ControlSurfaceProbe.clw | [
"MIT"
] |
//##1. this one is ok
from java.lang.Math import sin, round
mymatrix = [ 60. 120. ; 90. 360.]
def mysin(arg double, toRand boolean) => round(sin(arg)*100)/100.
calledD = 0
def getF() => calledD++; true
def doings(){
res = mysin(mymatrix^, getF())
"" + [res, calledD]
}
~~~~~
//##2. onyl one arg vec self
from ja... | Augeas | 2 | michaeldesu/Concurnas | tests/com/concurnas/compiler/scopeAndType/vectorizationSATC.conc.aug | [
"MIT"
] |
from datetime import datetime
from django.conf import settings
from django.utils.crypto import constant_time_compare, salted_hmac
from django.utils.http import base36_to_int, int_to_base36
class PasswordResetTokenGenerator:
"""
Strategy object used to generate and check tokens for the password
reset mech... | Python | 4 | KaushikSathvara/django | django/contrib/auth/tokens.py | [
"BSD-3-Clause",
"0BSD"
] |
import "moment";
console.log("Hello from scoped!");
| TypeScript | 0 | Preta-Crowz/deno | cli/tests/import_maps/scope/scoped.ts | [
"MIT"
] |
<meta property="og:title" content="Cryptee, Encrypted & Private Photos & Documents" />
<meta property="og:description" content="Cryptee is a safe, encrypted place to write personal documents, privately store photos and more." />
<meta property="og:image" content="https://crypt.ee/imgs/hero/cryptee-photos-docs-hero.jpg"... | Kit | 3 | pws1453/web-client | source/imports/www/schema-json.kit | [
"MIT"
] |
(pr a)
(pr b) | Shen | 0 | ragnard/shen-truffle | src/test/resources/custom-test-programs/test.shen | [
"BSD-3-Clause"
] |
### /role/create 成功
POST {{baseUrl}}/role/create
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{accessToken}}
#Authorization: Bearer 9d250d9b6c034a6c88bf4034cdf1d4cc
name=测试角色
### /role/update 成功
POST {{baseUrl}}/role/update
Content-Type: application/x-www-form-urlencoded
Authorization: Beare... | HTTP | 3 | ssSlowDown/onemall | management-web-app/src/main/java/cn/iocoder/mall/managementweb/controller/permission/RoleController.http | [
"MulanPSL-1.0"
] |
<?Lassoscript
// Last modified 3/7/10 by ECL, Landmann InterActive
// FUNCTIONALITY
// This is the place where images, files and templates are managed
// DataTypes are self-named.
// CHANGE NOTES
// 10/12/07
// Recoded for CMS v. 3.0
// First implementation
// 4/30/08
// Changed logout_dialog URL
// 9/26/08
// Added ... | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/admin/library.lasso | [
"MIT"
] |
package com.baeldung.jpa.IdGeneration;
import javax.persistence.EntityManager;
import javax.transaction.Transactional;
public class UserService {
EntityManager entityManager;
public UserService(EntityManager entityManager) {
this.entityManager = entityManager;
}
@Transactional
public lo... | Java | 4 | DBatOWL/tutorials | persistence-modules/java-jpa-3/src/main/java/com/baeldung/jpa/IdGeneration/UserService.java | [
"MIT"
] |
"""
BCE0101-2.boo(9,9): BCE0101: Return type 'void' cannot be used on a generator. Did you mean 'void*'? You can also use 'System.Collections.IEnumerable' or 'object'.
"""
class A:
virtual def SpawnBalls():
pass
class B(A):
def SpawnBalls():
yield
| Boo | 3 | popcatalin81/boo | tests/testcases/errors/BCE0101-2.boo | [
"BSD-3-Clause"
] |
team,group,wspi,wspi_offense,wspi_defense,group_first,group_second,group_third_advance,group_third_no_advance,group_fourth,sixteen,quarter,semi,final,win
Germany,B,95.90262448,3.83583948,0.38574662,1.00000,0.00000,0.00000,0.00000,0.00000,1.00000,1.00000,1.00000,0.59410,0.44560
USA,D,95.16692363,3.54303547,0.39614129,1.... | CSV | 2 | h4ckfu/data | womens-world-cup-predictions/wwc-forecast-20150626-184421.csv | [
"CC-BY-4.0"
] |
if (beresp.status >= 500 && beresp.status < 600) {
/* deliver stale if the object is available */
if (stale.exists) {
return(deliver_stale);
}
if (req.restarts < 1 && (req.request == "GET" || req.request == "HEAD")) {
restart;
}
/* else go to... | VCL | 4 | dimitar-ivanov-tryzens/fastly-magento | app/code/community/Fastly/CDN/etc/vcl_snippets/fetch.vcl | [
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Github" version="124" parent_scheme="Default">
<option name="LINE_SPACING" value="1.6" />
<option name="EDITOR_FONT_SIZE" value="13" />
<option name="CONSOLE_FONT_NAME" value="Menlo" />
<option name="CONSOLE_FONT_SIZE" value="10" />
<option name="CONSOLE_LI... | Clean | 2 | ajnavarro/language-dataset | data/github.com/bagwaa/intellij-settings/3cfc420abc95ad1d7b66a410add277ecb4ad67dc/colors/Fleure_0.icl | [
"MIT"
] |
// aux-build:issue-20727.rs
// ignore-cross-compile
extern crate issue_20727;
// @has issue_20727_4/trait.Index.html
pub trait Index<Idx: ?Sized> {
// @has - '//*[@class="rust trait"]' 'trait Index<Idx: ?Sized> {'
// @has - '//*[@class="rust trait"]' 'type Output: ?Sized'
type Output: ?Sized;
// @has... | Rust | 4 | Eric-Arellano/rust | src/test/rustdoc/issue-20727-4.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.stringContentIsNotModifiedEvenIfInvalid {
background: url('@images');
background: url("$images");
background: url('/+0PX!/"\a?~^[]{} $%#');
background: url("/+0PX!/'\a?~^[]{} $%#");
background: url(
"whitespace-around-string"
);
}
.validUnquotedUrls {
background: url(
whitespace-around-string
... | CSS | 3 | tumido/prettier | tests/format/css/inline-url/inline_url.css | [
"MIT"
] |
const cmp = @import("cmp.zig");
const testing = @import("std").testing;
fn test__cmpdi2(a: i64, b: i64, expected: i64) !void {
var result = cmp.__cmpdi2(a, b);
try testing.expectEqual(expected, result);
}
test "cmpdi2" {
// minInt == -9223372036854775808
// maxInt == 9223372036854775807
// minInt/... | Zig | 5 | lukekras/zig | lib/std/special/compiler_rt/cmpdi2_test.zig | [
"MIT"
] |
key botID;
default
{
state_entry()
{
//Creates the bot in the sim at the given position
botID = botCreateBot("Test", "Bot", "", llGetPos(), BOT_CREATE_DEFAULT);
//The center of the allowed wandering area
vector origin = llGetPos();
//The distance away from the origin along the x-... | LSL | 5 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Wander Within.lsl | [
"BSD-3-Clause"
] |
/*
* Copyright 2014-2019 Jiří Janoušek <janousek.jiri@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of con... | Vala | 4 | xcffl/nuvolaruntime | src/nuvolakit-runner/components/keybindings/ActionsKeyBinderServer.vala | [
"BSD-2-Clause"
] |
-- test cases for bitwise functions
-- null
select bit_count(null);
-- boolean
select bit_count(true);
select bit_count(false);
-- byte/tinyint
select bit_count(cast(1 as tinyint));
select bit_count(cast(2 as tinyint));
select bit_count(cast(3 as tinyint));
-- short/smallint
select bit_count(1S);
select bit_count(2... | SQL | 5 | kesavanvt/spark | sql/core/src/test/resources/sql-tests/inputs/bitwise.sql | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
; Copyright (C) 2010 The Android Open Source Project
;
; 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 ... | Jasmin | 3 | Unknoob/buck | third-party/java/dx/tests/112-dex-return-jsr-result/blort.j | [
"Apache-2.0"
] |
#!/bin/sh
# 884
# capture-pane should send colours after SGR 0
PATH=/bin:/usr/bin
TERM=screen
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null
TMP=$(mktemp)
trap "rm -f $TMP" 0 1 15
$TMUX -f/dev/null new -d "
printf '\033[31;42;1mabc\033[0;31mdef\n'
p... | Shell | 4 | listx/tmux | regress/capture-pane-sgr0.sh | [
"ISC"
] |
# ======================================================================================================================
# Exports
# - Armington demand for exports of both domestically produced and imported goods
# =========================================================================================================... | GAMS | 5 | gemal/MAKRO | Model/exports.gms | [
"MIT"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/cc/experimental/libtf/tests/perf_test.cc | [
"Apache-2.0"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snap.net.nz>
--
-- Module Name: tx_add_crc32 - Behavioral
--
-- Description: Add the required 8 bytes of preamble to the data packet.
--
--------------------------------------------------------... | VHDL | 5 | hamsternz/FPGA_Webserver | hdl/tx/tx_add_crc32.vhd | [
"MIT"
] |
# Convert a bcs date to an jq compatible date.
# The bcs date should already be in UTC.
# https://stedolan.github.io/jq/manual/v1.5/#Dates
def bcsToEpochSeconds(bcs_date):
bcs_date
| sub(" "; "T")
| sub("\\..*$"; "Z")
| fromdateiso8601;
# Returns true if the jq function `now` is more than `seconds` ahe... | JSONiq | 5 | ljyanesm/cromwell | src/ci/resources/bcs.jq | [
"Apache-2.0",
"BSD-3-Clause"
] |
#!/bin/bash
# This script helps identify pull requests that were merged without a what's
# new entry, where one would be appropriate.
if [ $# -ne 2 ]
then
echo "Usage: GITHUB_TOKEN=... $0 <prev_release_ref> <whats_new_version>" >&2
exit 1
fi
from_branch=$1
to_file=$2
logged_prs() {
git log --oneline $from_branch..... | Shell | 5 | emarkou/scikit-learn | maint_tools/whats_missing.sh | [
"BSD-3-Clause"
] |
constant f : nat → nat → nat
constant g : string → string → string
infix ` & `:60 := f
infix ` & `:60 := g
set_option pp.notation false
#check 0 & 1
#check "a" & "b"
#check tt & ff
notation `[[`:max l:(foldr `, ` (h t, f h t) 0 `]]`:0) := l
notation `[[`:max l:(foldr `, ` (h t, g h t) "" `]]`:0) := l
#check [[ (1:... | Lean | 4 | ericrbg/lean | tests/lean/over_notation.lean | [
"Apache-2.0"
] |
destruction 1.8786468305915567 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.2272447190584243 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.1165067785446601 0.29819645503070868 0.0 0.0 1.1165067785446601 0.0 0.0 1.3396503298588698 0.0 0.0 0.0 0.0 0.0 1.3396503298588698 0.0 0.0 0.0 0.0 1.8786468305915567 1.8786468305915567 0.0 0.0 0.0 0.0 0.0 1.473181... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/20/full_corpus_ppmi.dm | [
"CC-BY-3.0"
] |
.. _multiprocessing-best-practices:
Multiprocessing best practices
==============================
:mod:`torch.multiprocessing` is a drop in replacement for Python's
:mod:`python:multiprocessing` module. It supports the exact same operations,
but extends it, so that all tensors sent through a
:class:`python:multiproce... | reStructuredText | 5 | Hacky-DH/pytorch | docs/source/notes/multiprocessing.rst | [
"Intel"
] |
-- Copyright 2017-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.
name = "RapidDNS"
type = "scrape"
function start()
set_rate_limit(5)
end
function vertical(ctx, domain)
scrape(ctx, {url=build_url(domain)})
end
function ... | Ada | 4 | Elon143/Amass | resources/scripts/scrape/rapiddns.ads | [
"Apache-2.0"
] |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
--------------------------------------------------------------------------------
-- |
-- Module : Foreign.C... | C2hs Haskell | 5 | jmatsushita/cuda | src/Foreign/CUDA/Driver/Graph/Build.chs | [
"BSD-3-Clause"
] |
/**
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 m... | G-code | 4 | FANsZL/hive | parser/src/java/org/apache/hadoop/hive/ql/parse/PrepareStatementParser.g | [
"Apache-2.0"
] |
size: 1024px 60px;
dpi: 96;
margin: 1em;
axis {
scale: logarithmic(10);
tick-placement: exponential-steps(10 10);
label-format: base(10);
limit: 0 10000;
}
| CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_reference_scale_layout_exponential_steps.clp | [
"Apache-2.0"
] |
set datafile separator whitespace
set datafile commentschar ""
set xlabel "Runtime (s)"
set ylabel "Memory (kB)"
set terminal pngcairo size 1280,800
set xtics rotate
set yrange [0:*]
set key below
set grid
set style fill solid 1.0 border -1
set linetype 1 lc rgb '#ff0000'
set linetype 2 lc rgb '#00ff39'
set linetype 3... | Gnuplot | 4 | rmartinc/keycloak | testsuite/performance/tests/src/main/gnuplot/jstat/common.gp | [
"Apache-2.0"
] |
// run-pass
#![allow(unused_variables)]
// Regression test for #40951.
const FOO: [&'static str; 1] = ["foo"];
fn find<T: PartialEq>(t: &[T], element: &T) { }
fn main() {
let x = format!("hi");
find(&FOO, &&*x);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-40951.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Test date_offset_get() function : basic functionality
--FILE--
<?php
//Set the default time zone
date_default_timezone_set('Europe/London');
echo "*** Testing date_offset_get() : basic functionality ***\n";
$winter = date_create('2008-12-25 14:25:41');
$summer = date_create('2008-07-02 14:25:41');
echo "Win... | PHP | 4 | NathanFreeman/php-src | ext/date/tests/date_offset_get_basic1.phpt | [
"PHP-3.01"
] |
% BSD 3-Clause License
%
% Copyright (c) 2017, Ali ElShakankiry
% 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 not... | TXL | 4 | alishak/TAG | TXL/UID_declarations.txl | [
"BSD-3-Clause"
] |
ruleset io.picolabs.collection {
meta {
description <<
Wrapper around subscription ruleset
for managing a collection of member picos.
Raises collection:new_member and collection:member_removed events.
Intended to be wrapped by a developer-supplied ruleset
which uses it as a module, a... | KRL | 4 | CambodianCoder/pico-engine | packages/pico-engine/legacy/krl/io.picolabs.collection.krl | [
"MIT"
] |
<mt:If name="comment_confirmation">
<$mt:Var name="page_title" value="<__trans phrase="Confirmation...">"$>
<$mt:Var name="message" value="<p class="message success"><__trans phrase="Your comment has been submitted!"></p>"$>
<mt:Else name="comment_pending">
<$mt:Var name="page_title" value="<__trans phrase="Thank... | MTML | 3 | movabletype/mt-theme-eiger | themes/eiger/templates/comment_response.mtml | [
"MIT"
] |
INTERFACE zif_abapgit_data_deserializer
PUBLIC .
TYPES: BEGIN OF ty_result,
table TYPE tadir-obj_name,
deletes TYPE REF TO data,
updates TYPE REF TO data,
inserts TYPE REF TO data,
END OF ty_result.
TYPES: ty_results TYPE STANDARD TABLE OF ty_result WITH KE... | ABAP | 4 | Manny27nyc/abapGit | src/data/zif_abapgit_data_deserializer.intf.abap | [
"MIT"
] |
///////////////////////////////////////////////////////////////////////
// File: tablerecog.h
// Description: Functions to detect structure of tables.
// Author: Nicholas Beato
//
// (C) Copyright 2010, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file... | C | 5 | quangzinhh/tesseract | src/textord/tablerecog.h | [
"Apache-2.0"
] |
#!/usr/bin/env bash
##
# @license Copyright 2020 The Lighthouse 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 re... | Shell | 3 | martin-maunoury/lighthouse | .github/scripts/bump-nightly-version.sh | [
"Apache-2.0"
] |
// run-rustfix
#![allow(clippy::unnecessary_operation)]
#![warn(clippy::bytes_nth)]
fn main() {
let s = String::from("String");
s.bytes().nth(3);
let _ = &s.bytes().nth(3);
s[..].bytes().nth(3);
}
| Rust | 3 | narpfel/rust-clippy | tests/ui/bytes_nth.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#include <print.h>
#include "usb_std_requests.h"
void USB_ParseSetupPacket(unsigned char b[], USB_SetupPacket_t &p)
{
// Byte 0: bmRequestType.
p.bmRequestType.Recipient = b[0] & 0x1f;
p.bmRequestType.Type = (b[0] & 0x60) >> 5;
p.bmRequestType.Direction = b[0] >> 7;
// Byte 1: bRequest
... | XC | 4 | simongapp/xmos_usb_mems_interface | 01Firmware/PDM_USB/module_usb_shared/src/usb_std_requests.xc | [
"Unlicense"
] |
package foo
fun test() {
println(f())
println(g())
}
inline fun f(): Int = 1
inline fun g(): Int = 1 | Groff | 3 | qussarah/declare | jps-plugin/testData/incremental/pureKotlin/inlineUsedWhereDeclared/inline.kt.new.2 | [
"Apache-2.0"
] |
@DependencyManagementBom("foo:bar:1.0")
@DependencyManagementBom("alpha:bravo:2.0")
class DuplicateDependencyManagement {
} | Groovy | 2 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-cli/src/test/resources/grab-samples/duplicateDependencyManagementBom.groovy | [
"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 | 4 | OlegPt/spark | core/src/test/scala/org/apache/spark/api/r/JVMObjectTrackerSuite.scala | [
"Apache-2.0"
] |
ALTER TABLE hdb_catalog.event_log
ADD COLUMN archived BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE hdb_catalog.event_log
SET archived = 't'
WHERE
trigger_name NOT IN (SELECT name from hdb_catalog.event_triggers);
CREATE INDEX ON hdb_catalog.event_log (delivered);
| SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/26_to_27.sql | [
"Apache-2.0",
"MIT"
] |
namespace Ryujinx.Graphics.Gpu.Shader.Cache.Definition
{
/// <summary>
/// Graphics API type accepted by the shader cache.
/// </summary>
enum CacheGraphicsApi : byte
{
/// <summary>
/// OpenGL Core
/// </summary>
OpenGL,
/// <summary>
/// OpenGL ES
... | C# | 4 | BSoDGamingYT/Ryujinx | Ryujinx.Graphics.Gpu/Shader/Cache/Definition/CacheGraphicsApi.cs | [
"MIT"
] |
.className {
background: red;
color: yellow;
}
.subClass {
composes: className;
background: blue;
}
| CSS | 3 | blomqma/next.js | test/integration/css-fixtures/composes-basic/pages/index.module.css | [
"MIT"
] |
@inproceedings{zhu2016generative,
title={Generative Visual Manipulation on the Natural Image Manifold},
author={Zhu, Jun-Yan and Kr{\"a}henb{\"u}hl, Philipp and Shechtman, Eli and Efros, Alexei A.},
booktitle={Proceedings of European Conference on Computer Vision (ECCV)},
year={2016}
}
@InProceedings{xie15hed,... | TeX | 1 | chuxiuhong/ganilla | datasets/bibtex/handbags.tex | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
a = new_A();
delete_A(a);
aa = new_AA();
delete_AA(aa);
try
b = new_B();
swigtestswigtesterror("new_BB created.")
catch
end
del_b = delete_B;
try
bb = new_BB();
swigtesterror("new_BB created.")
catch
end
del_bb = delete_BB;
try
c = new_C();
swigtesterror("new_C created.")... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/default_constructor_runme.sci | [
"BSD-3-Clause"
] |
#!/usr/bin/env python
# coding=utf8
# Nerd Fonts Version: 2.1.0
# Script Version: 1.1.0
# Example Usage:
# ./generate-glyph-info-from-set.py --font ../../src/glyphs/materialdesignicons-webfont.ttf --start f001 --end f847 --offset 4ff --prefix mdi
# ./generate-glyph-info-from-set.py --font ../../src/glyphs/weathericons... | Python | 4 | th3cyb3rc0p/nerd-fonts | bin/scripts/generate-glyph-info-from-set.py | [
"MIT"
] |
Extension { #name : #RGBehavior }
{ #category : #'*GToolkit-Extensions' }
RGBehavior >> gtLocalMethodsFor: aView [
<gtView>
^ aView list
title: 'Local methods';
priority: 10;
items: [ self localMethods sorted: [ :a :b | a name < b name ] ];
itemText: [ :eachMethod | eachMethod name ]
]
| Smalltalk | 4 | feenkcom/gtoolk | src/GToolkit-Extensions/RGBehavior.extension.st | [
"MIT"
] |
# A query which carries a lot of data
query rows_50_nesting_level_1 {
hge_events(limit: 50){
event_status
last_update
affiliations_events_by_event_id(limit: 2) {
affiliation{
publisher{
publisher_name
}
}
}
}
}
# Simple query which returns one row with its obj... | GraphQL | 3 | gh-oss-contributor/graphql-engine-1 | server/bench-wrk/queries.graphql | [
"Apache-2.0",
"MIT"
] |
export { getStaticPaths, a as getStaticProps } from '.'
export default function Test() {
return <div />
}
| JavaScript | 2 | blomqma/next.js | packages/next-swc/crates/core/tests/fixture/ssg/getStaticProps/should-remove-combined-named-export-specifiers/input.js | [
"MIT"
] |
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/lpnorm_op.h"
#include "caffe2/operators/operator_fallback_gpu.h"
namespace caffe2 {
REGISTER_CUDA_OPERATOR(LpNorm, GPUFallbackOp);
REGISTER_CUDA_OPERATOR(LpNormGradient, GPUFallbackOp);
} // namespace caffe2
| Cuda | 3 | Hacky-DH/pytorch | caffe2/operators/lpnorm_op.cu | [
"Intel"
] |
# Copyright 2015 Google Inc. 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... | Smali | 1 | jbg168/enjarify | tests/test5/smali/a/a.smali | [
"Apache-2.0"
] |
"""Constants for emulated_hue."""
HUE_SERIAL_NUMBER = "001788FFFE23BFC2"
HUE_UUID = "2f402f80-da50-11e1-9b23-001788255acc"
DOMAIN = "emulated_hue"
| Python | 1 | liangleslie/core | homeassistant/components/emulated_hue/const.py | [
"Apache-2.0"
] |
--TEST--
Error when setting session.save_handler to user via ini_set
--EXTENSIONS--
session
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
ini_set('session.save_handler', 'user');
?>
--EXPECTF--
Warning: ini_set(): Session save handler "user" cannot be set by ini_set() in %s on line %d
| PHP | 4 | NathanFreeman/php-src | ext/session/tests/error_when_setting_save_handler_ini_setting_in_runtime.phpt | [
"PHP-3.01"
] |
@ui
Feature: UI - Random Number Generator
Scenario: Successfully generate a random number
Given we are expecting a random number between min and max
And I am on random-number-generator page
When I enter min 1
And I enter max 10
And I press Generate button
Then I should receive a random number... | Cucumber | 3 | DBatOWL/tutorials | testing-modules/cucumber/src/test/resources/com/baeldung/cucumber/tags/acceptance/ui/random-number.feature | [
"MIT"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | ECL | 3 | miguelvazq/HPCC-Platform | ecl/regress/mluber8.ecl | [
"Apache-2.0"
] |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<RootNamespace>XMLBuilder</RootNamespace>
<OutputType>Library</OutputType>
<AssemblyName>XMLBuilder</AssemblyName>
<AllowGlobals>False</AllowGlobals>
<AllowLegacyOu... | Oxygene | 3 | ararog/xmlbuilder | XMLBuilder/XMLBuilder.oxygene | [
"Apache-2.0"
] |
export default /* glsl */`
#ifdef USE_ALPHATEST
uniform float alphaTest;
#endif
`;
| JavaScript | 2 | brunnacroches/portifolio-brunna | node_modules/three/src/renderers/shaders/ShaderChunk/alphatest_pars_fragment.glsl.js | [
"Unlicense"
] |
name = "tests"
| Python | 0 | jorges119/localstack | tests/__init__.py | [
"Apache-2.0"
] |
[attr\~=x] {} | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/input.css | [
"Apache-2.0"
] |
(define defstruct
Name Attributes -> (let Selectors (selectors Name Attributes)
Constructor (constructor Name Attributes)
Recognisor (recognisor Name)
Name))
(define selectors
Name Attributes -> (map (/. A (selector Name A)) Att... | Shen | 3 | WilliamStone/Shen.java | shen/test/structures-untyped.shen | [
"Unlicense"
] |
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn atomic_foo(); //~ ERROR E0092
}
fn main() {
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/error-codes/E0092.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module ModuleWithDeadCode (class FooBar, bar, exportThatUsesBar, foo, results) where
import Prelude
class FooBar a where
foo :: a
bar :: a -> Boolean
instance intFooBar :: FooBar Int where
foo = 0
bar _ = true
exportThatUsesBar :: forall a. (FooBar a) => a -> Boolean
exportThatUsesBar = bar
foreign import ... | PureScript | 3 | andys8/purescript | tests/purs/bundle/3551/ModuleWithDeadCode.purs | [
"BSD-3-Clause"
] |
200 5
0 1 11 3 4 177 9 7 2 8 10 1 5 6 [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0]
1 1 3 37 141 137 [-3] [15] [6]
2 1 5 169 178 41 22 156 [23] [22] [23] [9] [16]
3 1 3 187 155 18 [3] [3] [-1]
4 1 3 93 12 191 [4] [7] [-7]
5 1 1 134 [0]
6 1 6 67 200 102 36 94 57 [0] [3] [3] [1] [0] [1]
7 1 5 98 82 191 12 130 [-5] ... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_consumer_producer/ubo200_rs09/psp200_5.sch | [
"Apache-2.0"
] |
Markdown
========
Rich can render Markdown to the console. To render markdown, construct a :class:`~rich.markdown.Markdown` object then print it to the console. Markdown is a great way of adding rich content to your command line applications. Here's an example of use::
MARKDOWN = """
# This is an h1
Rich... | reStructuredText | 5 | traviscook21/rich | docs/source/markdown.rst | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R04d01*/
/*Part A*/
data sp4r.random (drop=i);
call streaminit(123);
do i=1 to 10;
... | SAS | 5 | snowdj/sas-prog-for-r-users | code/SP4R04d01.sas | [
"CC-BY-4.0"
] |
{{#imports}}
import '{{{ . }}}';
{{/imports}}
{{^imports}}
import 'core-js';
{{/imports}}
import 'regenerator-runtime/runtime';
export {};
| Smarty | 2 | Dolov/umi | packages/preset-built-in/src/plugins/generateFiles/core/polyfill.tpl | [
"MIT"
] |
sleep 1
t ia2 -warp 1
| AGS Script | 0 | waltersgrey/autoexechack | SuperViewHERO3Black/Hero3PlusSilver/autoexec.ash | [
"MIT"
] |
(class_definition
body: (_) @scope)
(block) @scope
(try_statement) @scope
(catch_clause) @scope
(finally_clause) @scope
| Scheme | 3 | yzia2000/nvim-treesitter | queries/dart/locals.scm | [
"Apache-2.0"
] |
# Copyright 2021 The Google Research 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... | Shell | 5 | DionysisChristopoulos/google-research | zebraix/base/diff_test.sh | [
"Apache-2.0"
] |
module org-openroadm-degree {
namespace "http://org/openroadm/degree";
prefix org-openroadm-degree;
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
organization
"Open ROADM MSA";
contact
"OpenROADM.org.";
description
"YANG definitions for a Degree in Networ... | YANG | 4 | tohotforice/onos-sdwsn | models/openroadm/src/main/yang/org-openroadm-degree.yang | [
"Apache-2.0"
] |
fun handler r = return <xml><body>
{[r.A]}, {[r.B]}
</body></xml>
fun main () = return <xml><body>
<form>
<textbox{#A}/>
<textbox{#B}/>
<submit action={handler}/>
</form>
</body></xml>
| UrWeb | 3 | apple314159/urweb | tests/formLimit.ur | [
"BSD-3-Clause"
] |
signature dpd_ssl_server {
ip-proto == tcp
# Server hello.
payload /^((\x15\x03[\x00\x01\x02\x03]....)?\x16\x03[\x00\x01\x02\x03]..\x02...((\x03[\x00\x01\x02\x03\x04])|(\x7F[\x00-\x50]))|...?\x04..\x00\x02).*/
requires-reverse-signature dpd_ssl_client
enable "ssl"
tcp-state responder
}
signature dpd_ssl_cl... | Standard ML | 3 | yaplej/bro | scripts/base/protocols/ssl/dpd.sig | [
"Apache-2.0"
] |
(set-logic QF_AUFBV)
(declare-fun SymVar_0 () (_ BitVec 64))
(declare-fun SymVar_1 () (_ BitVec 64))
(declare-fun SymVar_2 () (_ BitVec 64))
(assert (= (_ bv16 64) (bvand (_ bv16 64) (bvxor SymVar_0 (bvxor SymVar_1 SymVar_2)))))
(check-sat)
(get-model)
| SMT | 3 | o2e/Triton | src/samples/smt/af.smt2 | [
"Apache-2.0"
] |
async = require '../lib/asyncControl'
should = require 'chai'.should()
describe 'while statement'
throws (error) =
with callback (callback) =
throw (error)
returns error (error) =
with callback (callback) =
callback (error)
returns (result) =
with callback ... | PogoScript | 4 | featurist/pogoscript | test/asyncWhileSpec.pogo | [
"BSD-2-Clause"
] |
module Data.Semigroup.App.Spec (testTree) where
import Data.Semigroup.App
import Hedgehog
import qualified Hedgehog.Gen as Gen
import qualified Hedgehog.Range as Range
import Properties
import qualified Test.Tasty as Tasty
import qualified Test.Tasty.Hedgehog as Tasty
app :: MonadGen m =... | Haskell | 4 | Temurson/semantic | test/Data/Semigroup/App/Spec.hs | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"id": "3c78dad1-bbc2-4f32-b4fa-ecc18285eacf",
"metadata": {},
"source": [
"# Lab: Chicago taxifare tip prediction on Google Cloud Vertex Pipelines using the TFX SDK"
]
},
{
"cell_type": "markdown",
"id": "6c0fc146-a03f-49eb-8a2b-92f97f1935de",
"... | Jupyter Notebook | 5 | memeyankm/training-data-analyst | self-paced-labs/vertex-ai/vertex-pipelines/tfx/lab_exercise.ipynb | [
"Apache-2.0"
] |
;; Testing the property-list-mixin.
(include-file "include/flavors.lfe")
(defflavor pl1 ()
(property-list-mixin)
)
(endflavor pl1)
| LFE | 3 | rvirding/flavors | test/p-list.lfe | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<p>Hi ${recipientName}</p>
<p>${text}</p>
<p>Regards,</p>
<p>
<em>${senderName} at Baeldung</em> <br />
<img src="cid:attachment.png" />
</p>
</body>
</html>
| FreeMarker | 3 | DBatOWL/tutorials | spring-web-modules/spring-mvc-basics-2/src/main/resources/mail-templates/template-freemarker.ftl | [
"MIT"
] |
#pragma once
#include <fstream>
#include <string>
#include "cereal/gen/cpp/log.capnp.h"
#include "selfdrive/sensord/sensors/sensor.h"
class FileSensor : public Sensor {
protected:
std::ifstream file;
public:
FileSensor(std::string filename);
~FileSensor();
int init();
virtual void get_event(cereal::Sensor... | C | 3 | shoes22/openpilot | selfdrive/sensord/sensors/file_sensor.h | [
"MIT"
] |
12
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0
1 0 0 | NetLinx | 0 | mdp19pn/Chaste | apps/texttest/weekly/MeshConvert/simple_cube.axi | [
"Apache-2.0",
"BSD-3-Clause"
] |
sleep 1
t app led red_front on
sleep 1
t app led red_front off
sleep 1
t app led red_top_bottom on
sleep 1
t app led red_top_bottom off
sleep 1
t app led red_front on
sleep 1
t app led red_front off
sleep 1
t app led red_top_bottom on
sleep 1
t app led red_top_bottom off
sleep 1
t app led red_front on
sleep 1
t app led... | AGS Script | 1 | waltersgrey/autoexechack | LED-Dance/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
20 5 2 0
0 1 18 12 5 15 16 4 18 6 2 1 13 20 9 3 10 17 8 7 14 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0]
1 5 2 17 21 [3 6 -1 8 4 -1 1 0 4 0 -2 6 1... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/mm_j20/psp246.sch | [
"Apache-2.0"
] |
VarComparability
implicit
DECLARE
Math::BigFloat.STORE_s():::ENTER
DECLARE
Math::BigFloat.STORE_s():::EXIT13
return
String
java.lang.String
22
DECLARE
Math::BigFloat.TIESCALAR_s():::ENTER
$class
String # isParam = true
java.lang.String
22
DECLARE
Math::BigFloat.TIESCALAR_s():::EXIT11
$class
String # isParam = true
... | BlitzBasic | 2 | eurecom-s3/invscov | daikon/java/daikon/test/split/targets/BigFloat.decls | [
"Apache-2.0"
] |
#include "helper.h"
#include "../utils/string_utils.h"
#include <algorithm>
#include <sstream>
VersionHelper::VersionHelper(const size_t major, const size_t minor, const size_t revision) :
major{ major },
minor{ minor },
revision{ revision }
{
}
template<typename CharT>
struct Constants;
template<>
str... | C++ | 4 | tameemzabalawi/PowerToys | src/common/version/helper.cpp | [
"MIT"
] |
use std::marker;
struct Foo<T> { foo: Option<Option<Foo<T>>>, marker: marker::PhantomData<T> }
//~^ ERROR recursive type `Foo` has infinite size
impl<T> Foo<T> { fn bar(&self) {} }
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-17431-4.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
package test
public fun getFoo(): kotlin.Int
| Text | 1 | qussarah/declare | compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFunGetFoo.txt | [
"Apache-2.0"
] |
#ifndef CAFFE2_OPERATORS_SPATIAL_BATCH_NORM_OP_IMPL_CUH_
#define CAFFE2_OPERATORS_SPATIAL_BATCH_NORM_OP_IMPL_CUH_
#include "caffe2/operators/spatial_batch_norm_op.h"
#include <limits>
#include <cub/block/block_reduce.cuh>
#include <cub/cub.cuh>
#include "caffe2/core/context_gpu.h"
#include "caffe2/utils/math.h"
#in... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/spatial_batch_norm_op_impl.cuh | [
"Intel"
] |
--TEST--
Trying use name of an internal class as interface name
--FILE--
<?php
interface stdClass { }
?>
--EXPECTF--
Fatal error: Cannot declare interface stdClass, because the name is already in use in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/inter_06.phpt | [
"PHP-3.01"
] |
void allow(int addr, int len, string mark)
{
string block=sprintf("%d.%d.%d.%d/%d",addr>>24,(addr>>16)&255,(addr>>8)&255,addr&255,len);
//string block = sprintf("%d:%d", addr, addr + (1<<(16-len)) - 1);
write("Allowing: %s\n",block);
Process.create_process(({"iptables","-I","INPUT","--src",bloc... | Pike | 4 | stephenangelico/shed | find_traffic.pike | [
"MIT"
] |
(*
* aPLib compression library - the smaller the better :)
*
* TMT Pascal packing example
*
* Copyright (c) 1998-2009 by Joergen Ibsen / Jibz
* All Rights Reserved
*
* http://www.ibsensoftware.com/
*
* -> VPascal by Veit Kannegieser, 23.09.1998
* -> TMT Pascal by Oleg Prokhorov
*)
uses apli... | Pascal | 4 | nehalem501/gendev | tools/files/applib/contrib/tmt/appack.pas | [
"BSD-3-Clause"
] |
extensions [ nw ]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Declare Variables ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | NetLogo | 5 | ajnavarro/language-dataset | data/github.com/openmole/openmole-market/efd649088e6e4acb741a6fdfa0688563c8441a69/metamimetic-networks/model/OM_Metamimetic_Networks_GIT.nlogo | [
"MIT"
] |
public func getVersion() -> Int {
#if BEFORE
return 0
#else
return 1
#endif
}
#if BEFORE
public final class AddStoredProperty {
public init() {
forth = "Chuck Moore"
}
public var forth: String
public var languageDesigners: [String] {
return [forth]
}
}
#else
public final class AddStoredProp... | Swift | 4 | lwhsu/swift | validation-test/Evolution/Inputs/class_add_property.swift | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.