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 |
|---|---|---|---|---|---|
@import '~example/test.css';
| CSS | 0 | blomqma/next.js | test/integration/css-fixtures/npm-import-nested/styles/global.css | [
"MIT"
] |
module FindUsage where
import FindUsage.Definition (usageId, ($%), Usage(..))
import FindUsage.Reexport (toBeReexported)
usagePatternMatch ∷ Usage → Usage
usagePatternMatch x = case x of
Used _ → x
_ $% _ → x
usageFn ∷ ∀ a. a → a
usageFn = usageId toBeReexported
| PureScript | 4 | andys8/purescript | tests/support/pscide/src/FindUsage.purs | [
"BSD-3-Clause"
] |
d=$PWD
redo-ifchange "$2.fs"
if [ -e "$2.diffbase" ]; then
redo-ifchange "$2.diffbase"
read diffbase <$2.diffbase
diffbase=$diffbase.list
redo-ifchange "$diffbase"
else
diffbase=/dev/null
redo-ifcreate "$2.diffbase"
fi
(
cd "$2" &&
find . -print | sort | "$d/try_fakeroot.sh" "$d/$2.fakeroot" "$d/fileids.py"
)... | Stata | 3 | BlameJohnny/redo | docs/cookbook/container/default.list.do | [
"Apache-2.0"
] |
/*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.scripting.resolve
import org.jetbrains.kotlin.descriptors.*
import org.jetbrains... | Kotlin | 3 | jiqimaogou/kotlin | plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/resolve/ScriptProvidedPropertyDescriptor.kt | [
"ECL-2.0",
"Apache-2.0"
] |
package org.openapitools.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@Canonical
class InlineObject {
/* Updated name of the pet */
String name
/* Updated status of the pet */
String status
}
| Groovy | 4 | therockstorm/openapi-generator | samples/client/petstore/groovy/src/main/groovy/org/openapitools/model/InlineObject.groovy | [
"Apache-2.0"
] |
trivial-copy-size-limit = 2
| TOML | 0 | Eric-Arellano/rust | src/tools/clippy/tests/ui-toml/toml_trivially_copy/clippy.toml | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.0.2-bee76a0~70~ubuntu18.04.1)
(general
(thickness 1.6)
(drawings 71)
(tracks 159)
(zones 0)
(modules 7)
(nets 19)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user hide)
(33 F.Adhes user hide)
(34 B.Pa... | KiCad | 4 | lab-mathias-claussen/PicoDVI | hardware/pmod_hyperram/pmod_hyperram.kicad_pcb | [
"BSD-3-Clause"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,2.38,-2.03,2.37,-2.03,2.01,1.82,0.73,4.39,4.39,4.40
20.20,2.38,-2.01,2.38,-2.01,2.01,1.82,0.75,4.39,4.39,4.39
20.40,2.38,-2.00,2.38,-2.00,2.01,1.83,0.77,4.38,4.39,4.38
20.61,2.39,-1.99,2.38... | CSV | 2 | vinzmc/AutoEq | results/innerfidelity/innerfidelity_harman_in-ear_2019v2/Phiaton MS 100 BA/Phiaton MS 100 BA.csv | [
"MIT"
] |
"use strict";
/** @type {import("../../../../").Configuration[]} */
module.exports = [
{
output: {
globalObject: "null || new Function('return this')()"
}
},
{
output: {
globalObject: "(new Function('return this'))()"
}
},
{
output: {
globalObject: "1 > 2 ? null : new Function('return this')()"... | JavaScript | 4 | fourstash/webpack | test/configCases/issues/issue-12924/webpack.config.js | [
"MIT"
] |
//! 42 lines 25 code 9 comments 8 blanks
(*************
Reference:
https://github.com/ats-lang/ats-lang.github.io/blob/master/DOCUMENT/ATS2TUTORIAL/CODE/chap_stream_vt.dats
**************)
#include "share/atspre_staload.hats"
/* Lazy-evaluated integer iterator */
fun from
(n: int): stream_vt(int) =
$ldelay(... | ATS | 4 | Redfire75369/tokei | tests/data/ats.dats | [
"Apache-2.0",
"MIT"
] |
;; test_enumerable.nu
;; tests for Nu enumerable extensions.
;;
;; Copyright (c) 2007 Tim Burks, Radtastical Inc.
(class TestEnumerable is NuTestCase
(- testEach is
(set sum 0)
((array 100 200 300) each:
(do (n) (set sum (+ sum n))))
(assert_equal 600 sum)
(set sum... | Nu | 4 | mattbeshara/nu | test/test_enumerable.nu | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Monokai copy" version="124" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<font>
<option name="EDITOR_FONT_NAME" value="Consolas" />
<option name="EDITOR_FONT_SIZE" value="15" />
</font>
<font>
<option name="EDITOR_FO... | Clean | 1 | ajnavarro/language-dataset | data/github.com/fa32/ps/60a8d801c36f358f567f380231c2db41d9733d2d/colors/Monokai copy - Kopie_0.icl | [
"MIT"
] |
{{"abc"}}
{{'abc'}}
{{" \" \" ' more double quote than single quote "}}
{{' \' \' " more single quote than double quote '}}
{{' " \' \" \\ '}}
{{" \" \' ' \\ "}}
| Handlebars | 2 | fuelingtheweb/prettier | tests/glimmer/string-literals.hbs | [
"MIT"
] |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | QML | 5 | vincentdavoust/qgroundcontrol | src/ui/toolbar/MessageIndicator.qml | [
"Apache-2.0"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
ImportAll(spiral);
SkewRDFT := BSkewPRDFT;
BRDFT := PolyBDFT;
alphai := (n,i,a) -> Cond(i mod 2 = 0, (a + Int(i/2))/n, (1-a + Int(i/2))/n);
time_r := a -> [[1, -CosPi(2*a)/SinPi(2*a)],
[0, 1/SinPi(2*a)]];
r_time := a... | GAP | 3 | sr7cb/spiral-software | namespaces/spiral/sym/rft/rftalg.gi | [
"BSD-2-Clause-FreeBSD"
] |
frequency,raw
20.00,12.99
20.20,13.00
20.40,13.01
20.61,13.03
20.81,13.04
21.02,13.05
21.23,13.05
21.44,13.06
21.66,13.07
21.87,13.07
22.09,13.08
22.31,13.09
22.54,13.10
22.76,13.10
22.99,13.11
23.22,13.12
23.45,13.12
23.69,13.13
23.92,13.13
24.16,13.14
24.40,13.13
24.65,13.13
24.89,13.14
25.14,13.14
25.39,13.14
25.65,... | CSV | 1 | vinzmc/AutoEq | measurements/rtings/data/inear/EarFun Free/EarFun Free.csv | [
"MIT"
] |
func $band32I (
var %i i32
) i32 {
return (
band i32(dread i32 %i,
constval i32 0x12))}
func $band32I_2 (
var %i i32
) i32 {
return (
band i32(dread i32 %i,
constval i32 0x112))}
func $band32RR (
var %i i32, var %j i32
) i32 {
return (
band i32(dread i32 %i,
... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0008-mapleall-irbuild-edge-band/Main.mpl | [
"MulanPSL-1.0"
] |
<%@ WebHandler Language="C#" CodeBehind="Redirect.ashx.cs" Class="WebServer.Redirect" %>
| ASP | 0 | pyracanda/runtime | src/libraries/Common/tests/System/Net/Prerequisites/Servers/CoreFxNetCloudService/WebServer/Redirect.ashx | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated with COPASI 4.23.178+ (Debug) (http://www.copasi.org) at 2018-03-28 21:08:09 UTC -->
<?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?>
<COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="23" versionDeve... | Component Pascal | 5 | SzVarga/COPASI | TestSuite/events/EventTest31.cps | [
"Artistic-2.0"
] |
#!/usr/bin/env perl
##
## Author......: See docs/credits.txt
## License.....: MIT
##
use strict;
use warnings;
use Digest::SHA qw (sha256);
sub module_constraints { [[0, 127], [32, 32], [0, 31], [32, 32], [-1, -1]] }
sub module_generate_hash
{
my $word = shift;
my $id = shift;
my $rest = shift;
if (defi... | Perl | 3 | Masha/hashcat | tools/test_modules/m10600.pm | [
"MIT"
] |
.no-show-div {
background-color: #ecfdff;
border: 1px #444 solid;
padding: 1rem;
color: #444;
}
.error {
color: red;
}
| CSS | 3 | coreyscherbing/angular | aio/content/examples/template-expression-operators/src/app/app.component.css | [
"MIT"
] |
mul2:
shl rdi, 1
ret
| Parrot Assembly | 2 | giag3/peng-utils | pasm-examples-unix/include/mul.pasm | [
"MIT"
] |
package {
import GZ.Gpu.ShaderBase.ProgramShader;
import GzOpenGL.OpenGL;
public extension ShaderBase {
public var sSharder : String;
public var nId : Val;
public var bReady : Bool;
public var nLineError : UInt;
public var nSourceError : UInt;
public var hGlsl_ES_Version : eGlsl_ES_Version;
... | Redcode | 4 | VLiance/GZE | src/Lib_GZ/Gpu/ShaderBase/ShaderBase.cw | [
"Apache-2.0"
] |
plot(1)
# NAME
plot - line graphs on the command line
# SYNOPSIS
_plot_ [OPTIONS]
# DESCRIPTION
plot reads sequences of numbers and outputs a line graph.
# OPTIONS
## INPUT
*-i* <filename>[:flags]
add <filename> as a data source. This also creates a data pipeline,
which is either empty, or copied from the _... | SuperCollider | 5 | barrygu/plot | docs/plot.1.scd | [
"MIT"
] |
<mt:Unless regex_replace="/\s*\n+/g","\n"><mt:Ignore>
# =======================
#
# 検索結果
#
# =======================
</mt:Ignore>
<!DOCTYPE html>
<html lang="<mt:BlogLanguage />">
<head>
<mt:Include module="コンフィグ-共通" />
<mt:Include module="コンフィグ-検索結果" />
<mt:Include module="head要素" />
<meta name="robots" content="noi... | MTML | 2 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/search_results.mtml | [
"MIT"
] |
-include ../../run-make-fulldeps/tools.mk
# only-x86_64-unknown-linux-musl
# How to manually run this
# $ ./x.py test --target x86_64-unknown-linux-musl src/test/run-make/static-pie
all:
$(RUSTC) --target $(TARGET) -C target-feature=+crt-static test-aslr.rs
# Check that no dynamic interpreter is set
! readelf -l ... | Makefile | 3 | Eric-Arellano/rust | src/test/run-make/static-pie/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Trait delayed variance check succeeds
--FILE--
<?php
// Taken from bug #79179.
spl_autoload_register(function() {
interface InterfaceB extends InterfaceA {}
});
interface InterfaceA {}
trait SomeTrait {
abstract public function func(): ?InterfaceA;
}
class Foo {
public function func(): ?Interf... | PHP | 4 | thiagooak/php-src | Zend/tests/type_declarations/variance/trait_success.phpt | [
"PHP-3.01"
] |
namespace Alive
{
/**
A @Rectangle with a gradient fading out near the bottom of an element.
Before
```xml
<Panel Color="White" Size="400">
<Image Url="https://icons-for-free.com/iconfiles/png/512/profile+profile+page+user+icon-1320186864367220794.png" />
</Panel>
```
After
```xml
<Panel Color=... | Uno | 3 | fusetools/fuselibs-public | Source/Fuse.UXKits.Alive/Docs/ContentGradient.ux.uno | [
"MIT"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 8.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 157, 7]
NotebookDataLength... | Mathematica | 3 | kvmanohar22/gtsam | gtsam_unstable/slam/doc/ypr.nb | [
"BSD-3-Clause"
] |
set table 'stats_smooth_mcsplines.csv'
set samples 1000; plot 'stats.csv' using 2:1 smooth mcsplines
unset table
f(x) = m*x
fit f(x) 'stats_smooth_mcsplines.csv' via m
set term png size 1920,1080
set output "stats_plot.png"
set title "Time versus RLimit"
set xlabel "Time in seconds"
set xtics 2.5
set ylabel "RLimit"... | Gnuplot | 4 | SwampertX/FStar | .scripts/statistics_plot.gnu | [
"Apache-2.0"
] |
class quicksort
sort: (items) ->
return items if items.length <= 1
pivot = items.shift()
left = []
right = []
# Comment in the middle
while items.length > 0
current = items.shift()
if current < pivot
left.push(current)
else
right.push(current);
sort(le... | CoffeeScript | 4 | pyrolabs/atom | spec/fixtures/coffee.coffee | [
"MIT"
] |
// Copyright (c) 2021 Microsoft, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/hid/electron_hid_delegate.h"
#include <string>
#include <utility>
#include "content/public/browser/web_contents.h"
#include "shell/browser/hid/hid_chooser_... | C++ | 4 | tylerkahn/electron | shell/browser/hid/electron_hid_delegate.cc | [
"MIT"
] |
.. _ray-LSF-deploy:
Deploying on LSF
================
This document describes a couple high-level steps to run ray cluster on LSF.
1) Obtain desired nodes from LSF scheduler using bsub directives.
2) Obtain free ports on the desired nodes to start ray services like dashboard, redis etc.
3) Start ray head node on one... | reStructuredText | 3 | 77loopin/ray | doc/source/cluster/lsf.rst | [
"Apache-2.0"
] |
#!/bin/bash
$Jmeter_home/bin/jmeter -n -t load_test.jmx -l log.csv -e -o ./report | Shell | 2 | DBatOWL/tutorials | quarkus-vs-springboot/run_test.sh | [
"MIT"
] |
{
metadata: {
namespace: "XLink",
namespaceURI: "http://www.w3.org/1999/xlink",
export: "CORE_EXPORT",
},
data: [
"actuate",
"arcrole",
"href",
"role",
"show",
"title",
"type",
],
}
| JSON5 | 3 | zealoussnow/chromium | third_party/blink/renderer/core/svg/xlink_attribute_names.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
processIoCodeFor := method(path,
d := Directory clone setPath(path)
processed := d folderNamedCreateIfAbsent("_ioCodeProcessed")
d folderNamed("_ioCode") filesWithExtension(".io") foreach(file,
processed fileNamed(file name) openForUpdating truncateToSize(0) write("__noShuffling__;\n") write(file contents asMess... | Io | 3 | akluth/io | tools/old/processIoCodeFor.io | [
"BSD-3-Clause"
] |
#include <THC/THCStorage.hpp>
#include <ATen/cuda/ThrustAllocator.h>
#include <thrust/device_ptr.h>
#include <thrust/fill.h>
#if (defined(CUDA_VERSION) && CUDA_VERSION >= 7000) || defined(USE_ROCM)
#include <thrust/system/cuda/execution_policy.h>
#endif
#include <TH/THHalf.h>
#include <THC/generic/THCStorage.cu>
#in... | Cuda | 1 | sanchitintel/pytorch | aten/src/THC/THCStorage.cu | [
"Intel"
] |
open tactic
/-
Given a metavariable ?m with local context
(α : Type) (a : α)
then, the following unification problem should fail
?m α =?= ((λ (α : Type) (a : α), α) α a)
type_context will try the type incorrect assignment
?m := λ α', ((λ (α : Type) (a : α), α) α' a)
-/
def ex1 (α : Type) (a : α) : T... | Lean | 5 | ericrbg/lean | tests/lean/run/unify_approx_bug.lean | [
"Apache-2.0"
] |
-- Macro Scripts File
-- Created: Jan 1 1999
-- Modified March 2 1999
-- Author: Frank DeLise
-- Macro Scripts for Compound Objects
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
macroScript Morph
category:"Objects"
... | MAXScript | 4 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_Compounds.mcr | [
"MIT"
] |
<div class="ui stackable grid" {{ sylius_test_html_attribute('product-price-content') }}>
<div class="seven wide column">
{% if not product.enabledVariants.empty() %}
{% include '@SyliusShop/Product/Show/_price.html.twig' %}
{% endif %}
</div>
<div class="nine wide right aligned ... | Twig | 3 | c2cn/Sylius | src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/_priceWidget.html.twig | [
"MIT"
] |
#!/bin/bash
set -ex
# see if we have a new cheatsheet
# if other docs end up being generated automatically we can chuck in the relevant scripts here
go run scripts/generate_cheatsheet.go
# commit and push if we have a change
if [[ -z $(git status -s -- docs/*) ]]; then
echo "no changes to commit in the docs direct... | Shell | 4 | bravmi/lazydocker | .circleci/update_docs.sh | [
"MIT"
] |
CStdlib {
printf(fmt cstring) int #Foreign("printf") #VarArgs
:stdin pointer #Foreign("stdin")
:stderr pointer #Foreign("stderr")
fgets(s pointer #As("char *"), size int, stream pointer #As("FILE *")) pointer #Foreign("fgets")
fopen(pathname cstring, mode cstring) pointer #Foreign("fopen")
fread(ptr pointer, size... | mupad | 4 | jturner/muon | lib/stdio.mu | [
"MIT"
] |
#Signature file v4.1
#Version 9.22
CLSS public abstract interface java.io.Closeable
intf java.lang.AutoCloseable
meth public abstract void close() throws java.io.IOException
CLSS public abstract interface java.io.DataInput
meth public abstract boolean readBoolean() throws java.io.IOException
meth public abstract byte... | Standard ML | 4 | timfel/netbeans | platform/openide.util/nbproject/org-openide-util.sig | [
"Apache-2.0"
] |
(module
(func (export "func") (param i32 f64 f32) (result i32) (unreachable))
(global (export "global") f64 (f64.const 0))
(table (export "table") 0 50 anyfunc)
(memory (export "memory") 1)
)
| WebAssembly | 1 | slave5vw/wasmer | lib/c-api/tests/wasm-c-api/example/reflect.wat | [
"MIT"
] |
configuration Jn516DebugC {
provides interface Jn516Debug;
}
implementation {
components Jn516DebugP;
Jn516Debug = Jn516DebugP;
components MainC;
Jn516DebugP.Boot -> MainC;
components LedsC;
Jn516DebugP.Leds -> LedsC;
components PlatformSerialC;
Jn516DebugP.UartControl -> PlatformSerialC;
Jn516DebugP.Uart... | nesC | 4 | tgtakaoka/tinyos-prod | tos/chips/jn516/radio/debug/Jn516DebugC.nc | [
"BSD-3-Clause"
] |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002-2012, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that ... | C++ | 5 | thisisgopalmandal/opencv | 3rdparty/openexr/Imath/ImathColorAlgo.cpp | [
"BSD-3-Clause"
] |
"""
Configuration parameters:
path.internal.ansi2html
"""
import sys
import os
import re
from subprocess import Popen, PIPE
MYDIR = os.path.abspath(os.path.join(__file__, '..', '..'))
sys.path.append("%s/lib/" % MYDIR)
# pylint: disable=wrong-import-position
from config import CONFIG
from globals import error
... | Python | 4 | zelorun/cheat.sh | lib/frontend/html.py | [
"MIT"
] |
(defmodule test_eval
(export (a 1) (b 1))
(import))
;; Test when a macro is evaluated.
(defmacro xxx (a)
(: io fwrite '"xxx: ~p\n" (list a))
`(list ,(xx a 2)))
(defmacro yyy (a)
`(let ((z ,(yy a 1)))
(list z)))
;; Helper functions can be defined after macros, as long as before use.
(eval-when-compile
... | LFE | 4 | haetze/lfe | dev/test_eval.lfe | [
"Apache-2.0"
] |
/*
* Kubernetes Ingress module
*/
variable "ingress_name" {
type = string
description = "Ingress name. Defaults to a random name."
default = ""
}
variable "ingress_host" {
type = string
description = "Ingress hostname"
default = "www.petshop.com.br"
}
| HCL | 3 | DBatOWL/tutorials | terraform/best-practices/k8s-modules/modules/ingress/www.petshop.com.br/variables.tf | [
"MIT"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-IO-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-IO-01.elf.objdump | [
"Apache-2.0"
] |
100.0, 0.6300, 302.1900
200.0, 0.5000, 284.6200
300.0, 0.4600, 258.2500
400.0, 0.2300, 194.6300 | Lasso | 0 | tui95/lasio | tests/examples/not_a_las_file.las | [
"MIT"
] |
type PokemonType {
pokemon_type: String @mock(value: "Electric")
}
| GraphQL | 3 | fuelingtheweb/prettier | tests/graphql_object_type_def/directives.graphql | [
"MIT"
] |
background black
color white
stroke 4
scale 6
box
s
do 40 times
scale wave(10000)
rotate TIME/1000
color hsv((TIME/10)%255, 200, 150)
ball
box
end
| Cycript | 2 | marcinbiegun/creativecoding-sketches | Cyril/data/code_old/5.cy | [
"MIT"
] |
#ifdef ECERE_STATIC
public import static "ecere"
public import static "EDA"
#else
public import "ecere"
public import "EDA"
#endif
#include "sqlite3.h"
import "EDASQLite.ec"
static class SQLiteCipherDataSource : SQLiteDataSource
{
class_property(name) = "SQLiteCipher";
class_property(databaseFileExtension) = "... | eC | 4 | N-eil/ecere-sdk | eda/drivers/sqliteCipher/EDASQLiteCipher.ec | [
"BSD-3-Clause"
] |
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
// ISSUE: KT-32452
interface A {
suspend fun foo(input: String): String
}
open class B<T : Any> {
fun <U, R : Any, T> call(function: suspend T.(U) -> R): R = TODO()
fun <U, R : Any, T> call(function: suspend T.(U) -> List<R>): List<R> = TODO()
}
class ... | Kotlin | 4 | Mu-L/kotlin | compiler/testData/diagnostics/tests/callableReference/suspendCallableReference.kt | [
"ECL-2.0",
"Apache-2.0"
] |
CREATE TABLE IF NOT EXISTS `department` (
`id` int NOT NULL AUTO_INCREMENT PRIMARY KEY,
`name` varchar(20)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
ALTER TABLE `employee` ADD `dept_id` int AFTER `email`; | SQL | 4 | zeesh49/tutorials | flyway/db/migration/V2_0__create_department_schema.sql | [
"MIT"
] |
<body id="top" role="document" class="file">
<nav role="navigation">
<div id="project-navigation">
<%= render '_sidebar_navigation.rhtml' %>
<%= render '_sidebar_search.rhtml' %>
</div>
<%= render '_sidebar_table_of_contents.rhtml' %>
<div id="project-metadata">
<%= render '_sidebar_pages.rhtml' %... | RHTML | 3 | Bhuvanesh1208/ruby2.6.1 | lib/ruby/2.6.0/rdoc/generator/template/darkfish/page.rhtml | [
"Ruby"
] |
>> %Introduction
>> intro = "Abhishek Sharma"
intro =
"Abhishek Sharma"
>> x = 4;
>> x
x =
4
>> y = 3;
>> x + y
ans =
7
>> arr = 1:10
arr =
1 2 3 4 5 6 7 8 9 10
>> clear
>> x = 1:10;
>> y = ... | Matlab | 3 | abhisheks008/Fifth-Semester-UEMK-2019-Batch | IT WORKSHOP/IT_WORKSHOP_MATLAB-1_12_07_2021.matlab | [
"MIT"
] |
'reach 0.1';
export const main = Reach.App(
{}, [Participant('A', {})], (A) => {
A.publish().timeout(0, 0);
return 0;
}
);
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/Err_ToConsensus_TimeoutArgs.rsh | [
"Apache-2.0"
] |
from libcpp.memory cimport (
shared_ptr,
unique_ptr,
make_unique,
make_shared,
static_pointer_cast
)
from ray.includes.common cimport (
CGcsClientOptions,
CRayStatus,
)
from cython.operator cimport dereference
from libcpp cimport nullptr
from ray.includes.gcs_client cimport (
CInternalK... | Cython | 4 | 77loopin/ray | python/ray/includes/gcs_client.pxi | [
"Apache-2.0"
] |
#!/bin/bash
# For testing subprocesses that require input
# Ask the user for login details
read -p 'Username: ' user
read -sp 'Password: ' pass
echo
echo Hello $user
| Shell | 4 | ikysil/lazygit | test/shell_script_input_prompt.sh | [
"MIT"
] |
// this will create a high resolution sphere with a 2mm radius
sphere(2, $fn=100); | OpenSCAD | 4 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/primitive_solids/sphereEx2.scad | [
"MIT"
] |
frequency,raw
20.00,-12.89
20.20,-12.79
20.40,-12.69
20.61,-12.60
20.81,-12.50
21.02,-12.40
21.23,-12.30
21.44,-12.20
21.66,-12.10
21.87,-12.00
22.09,-11.90
22.31,-11.80
22.54,-11.70
22.76,-11.60
22.99,-11.50
23.22,-11.40
23.45,-11.30
23.69,-11.20
23.92,-11.10
24.16,-11.00
24.40,-10.91
24.65,-10.81
24.89,-10.71
25.14,-... | CSV | 0 | vinzmc/AutoEq | measurements/referenceaudioanalyzer/data/onear/HDM-X/MyST IzoPhones-7/MyST IzoPhones-7.csv | [
"MIT"
] |
// run-pass
fn main() {
let &ref a = &[0i32] as &[_];
assert_eq!(a, &[0i32] as &[_]);
let &ref a = "hello";
assert_eq!(a, "hello");
match "foo" {
"fool" => unreachable!(),
"foo" => {},
ref _x => unreachable!()
}
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/pattern/usefulness/issue-30240-rpass.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(ns hu.test.maths
(:require
[assert :refer [equal deep-equal]]
[hu.lib.maths :as _]))
(suite :cross
(fn []
(test :basic
(fn []
(deep-equal (.cross _ [3 4 5] [9 -3 0]) [15 45 -45])
(deep-equal (.cross _ [22 3 4] [-2 3 4]) [0 -96 72])
(deep-equal (.cross _ [2 3 4] [2 3 4]) [... | wisp | 4 | h2non/hu | test/maths.wisp | [
"MIT"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## jeo.dpatch by <vagrant@trusty64>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' jeo-de... | Darcs Patch | 2 | aliostad/deep-learning-lang-detection | data/train/bash/0e59e6e36fab2bf3c5cd261fc1754373c45770fajeo.dpatch | [
"MIT"
] |
options(scipen=999)
rstudio = Sys.getenv("RSTUDIO_USER_IDENTITY") != ""
loadLibrary = function (name) {
if (!require(name, character.only=TRUE)) {
install.packages(name)
library(name, character.only=TRUE)
}
}
loadLibrary("ggplot2")
loadLibrary("gridExtra")
jmhCSV = function (path) {
data = read.csv(path, sep... | R | 5 | JiMu-Bao/kryo | benchmarks/charts/common.r | [
"BSD-3-Clause"
] |
#define resize_h_width 16
#define resize_h_height 16
static unsigned char resize_h_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x30, 0x0c, 0x38, 0x1c, 0xfc, 0x3f,
0xfe, 0x7f, 0xff, 0xff, 0xfe, 0x7f, 0xfc, 0x3f, 0x38, 0x1c, 0x30, 0x0c,
0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
| Mask | 2 | trofi/afterstep | afterstep/desktop/cursors/resize_h.xbm.mask | [
"MIT"
] |
(* Module: AptCacherNGSecurity
Lens for config files like the one found in
/etc/apt-cacher-ng/security.conf
About: License
Copyright 2013 Erik B. Andersen; this file is licenced under the LGPL v2+.
*)
module AptCacherNGSecurity =
autoload xfm
(* Define a Username/PW pair *)
let authpair = [ key /[^ \... | Augeas | 4 | zwass/launcher | pkg/augeas/assets/lenses/aptcacherngsecurity.aug | [
"MIT"
] |
.stylus-options-relative-import
/* imported via vite.config.js */
color green
| Stylus | 0 | laineus/vite | packages/playground/css/options/relative-import.styl | [
"MIT"
] |
// Vertex Shader
struct VS_INPUT
{
float3 vPosition : POSITION;
float3 vColor: COLOR0;
};
struct PS_INPUT
{
float4 vPosition : SV_POSITION;
float4 vColor : TEXCOORD0;
};
cbuffer SceneConstantBuffer : register(b0)
{
float4x4 g_MVPMatrix;
};
PS_INPUT VSMain( VS_INPUT i )
{
PS_INPUT o;
o.vPosition = mul( g_MVPM... | HLSL | 4 | oravnat/openvr | samples/bin/shaders/axes.hlsl | [
"BSD-3-Clause"
] |
label ccb2020:
play bgm "bgm/bgm005.ogg"
call gl(0,"bgcc0002c")
call vsp(0,1)
with ImageDissolve("sys/EFMSK_22_MSK.bmp",time=1)
"庭で炊飯の用意をする。"
"米が食いたくなった。"
"電子ジャーは使えないので、飯ごうで炊くのだ。"
"ここでおいしいごはんの炊き方をば。"
"①自分を信じる"
"②米を量る"
"③米の一粒一粒が尊い命を持っている"
"④その無数の命で、人は生きていく"
"⑤だがどの命もやがて... | Ren'Py | 3 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccb/ccb2020.rpy | [
"Apache-2.0"
] |
CREATE TABLE hdb_catalog.hdb_action
(
action_name TEXT PRIMARY KEY,
action_defn JSONB NOT NULL,
comment TEXT NULL,
is_system_defined boolean default false
);
CREATE TABLE hdb_catalog.hdb_action_permission
(
action_name TEXT NOT NULL,
role_name TEXT NOT NULL,
definition JSONB NOT NULL DEFAULT '{}'::jsonb,... | SQL | 5 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/31_to_32.sql | [
"Apache-2.0",
"MIT"
] |
desc_sv=Webmin-användare
| SystemVerilog | 0 | GalaxyGFX/webmin | acl/module.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
(*
Module: Quote
Generic module providing useful primitives for quoting
Author: Raphael Pinson <raphael.pinson@camptocamp.com>
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
This is a generic module which doesn't apply to files directly.
You can use its... | Augeas | 5 | zwass/launcher | pkg/augeas/assets/lenses/quote.aug | [
"MIT"
] |
very foo is bar()
| Dogescript | 0 | joeratt/dogescript | test/spec/var/very-init/source.djs | [
"MIT"
] |
disp(%pi);
| Scilab | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Scilab/scilab_script.sce | [
"MIT"
] |
= yield_content :foo
= yield_content :foo
= yield_content :foo
| Slim | 0 | osamtimizer/sinatra | sinatra-contrib/spec/content_for/multiple_yields.slim | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" ... | LabVIEW | 2 | JKISoftware/JKI-Simple-Localization | src/JKI Simple Localization.lvproj | [
"BSD-3-Clause"
] |
/****************************************************************************
*
* (c) 2009-2019 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
* @file
* @author Gus Grubba <gus@au... | QML | 4 | uav-operation-system/qgroundcontrol | custom-example/res/Custom/Widgets/CustomIconButton.qml | [
"Apache-2.0"
] |
"""
The following undirected network consists of seven vertices and twelve edges
with a total weight of 243.

The same network can be represented by the matrix below.
A B C D E F G
A - 16 12 21 - - -
B 16 - - 17 20 - -
C 12 - - 28 - 31 -
D 21 17 28 - 18 19 23
... | Python | 5 | NavpreetDevpuri/Python | project_euler/problem_107/sol1.py | [
"MIT"
] |
module Utils.Keyboard exposing (keys, onKeyDown, onKeyUp)
import Html exposing (Attribute)
import Html.Events exposing (keyCode, on)
import Json.Decode as Json
keys :
{ backspace : Int
, enter : Int
, up : Int
, down : Int
}
keys =
{ backspace = 8
, enter = 13
, up = 38
, down = 4... | Elm | 4 | jtlisi/alertmanager | ui/app/src/Utils/Keyboard.elm | [
"ECL-2.0",
"Apache-2.0"
] |
// This is a script. How exciting!
// Content of this file is irrelevant; it is used for testing `getPrecachePages`
| JavaScript | 0 | JQuinnie/gatsby | packages/gatsby-plugin-offline/src/__tests__/fixtures/public/script.js | [
"MIT"
] |
parser grammar Arista_aspath;
import Legacy_common;
options {
tokenVocab = AristaLexer;
}
s_ip_as_path
:
AS_PATH
ipap_access_list
;
ipap_access_list
:
ACCESS_LIST
name = WORD
action = access_list_action
regex = WORD
(origin = ipap_origin)?
NEWLINE
;
ipap_origin
:
ANY
| EGP
| IGP
... | ANTLR | 4 | pranavbj-amzn/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/arista/Arista_aspath.g4 | [
"Apache-2.0"
] |
---
title: "Chapter 4"
output:
html_document:
css: style.css
highlight: tango
---
```{r, include=FALSE}
knitr::opts_chunk$set(cache = FALSE, echo = TRUE, fig.align = "center", comment = "#>", message = FALSE)
```
```{r}
require(data.table)
require(ggplot2)
theme_set(
theme_bw(base_size = 14, base_famil... | RMarkdown | 4 | chuvanan/rdatatable-cookbook | cookbook/chapter4-groupby.rmd | [
"CC-BY-4.0"
] |
import "std/test"
const arr = ["one", "two"]
test.run("array prepend", fn(assert) {
const prependArr = prepend(arr, "zero")
assert.isEq(prependArr[0], "zero")
})
test.run("array push", fn(assert) {
const pushArr = push(arr, "three")
assert.isEq(len(pushArr), 3)
assert.isEq(pushArr[2], "three")
})... | Inform 7 | 4 | lfkeitel/nitrogen | tests/basic/collections.ni | [
"BSD-3-Clause"
] |
/* Example DATA step code for linguist */
libname source 'C:\path\to\file'
data work.working_copy;
set source.original_file.sas7bdat;
run;
data work.working_copy;
set work.working_copy;
if Purge = 1 then delete;
run;
data work.working_copy;
set work.working_copy;
if ImportantVariable = . then MissingFlag = 1;
... | SAS | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/SAS/data.sas | [
"MIT"
] |
(: io format '"Hello world!~n")
| LFE | 2 | LaudateCorpus1/RosettaCodeData | Task/Hello-world-Text/LFE/hello-world-text.lfe | [
"Info-ZIP"
] |
create table `pk` (
a tinyint primary key clustered auto_increment
);
| SQL | 3 | WizardXiao/tidb | br/tests/lightning_tool_1472/data/EE1472.pk-schema.sql | [
"Apache-2.0"
] |
<html>
<head><title> FreeMarker Spring MVC Hello World</title>
<style>
body, input {
font-family: Calibri, Arial;
margin: 0px;
padding: 0px;
}
#header h2 {
color: white;
background-color: #3275A8;
height: 50px;
padding: 5px 0 0 5px;
font-size: 20px;
}
.datatable {margin-bottom:5px;border:1px solid #eee;borde... | FreeMarker | 3 | zeesh49/tutorials | spring-freemarker/src/main/webapp/WEB-INF/views/ftl/index.ftl | [
"MIT"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Clean data using the cleaning and filtering steps as described in Barndorff-Nielsen et al. (2009)
**
** Date:
** 12/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.H. Hoogerheide & S.J. Koopman
**
*/
#... | Ox | 5 | tamerdilaver/Group4_Code_Data | 1CleanData.ox | [
"MIT"
] |
//
// Copyright (c) 2008, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 14 May 08 Brian Frank Creation
//
**
** MimeTypeTest
**
class MimeTypeTest : Test
{
//////////////////////////////////////////////////////////////////////////
// Identity
////////////////... | Fantom | 4 | fanx-dev/fanx | library/testSys/fan/io/MimeTypeTest.fan | [
"AFL-3.0"
] |
fn main() {
let v = vec![1i32, 2, 3];
for _ in v[1..] {
//~^ ERROR [i32]` is not an iterator [E0277]
//~^^ ERROR known at compilation time
}
struct K {
n: i32,
}
let mut v2 = vec![K { n: 1 }, K { n: 1 }, K { n: 1 }];
for i2 in v2[1..] {
//~^ ERROR [K]` is not an iterator [E0277]
//~^^ ... | Rust | 3 | mbc-git/rust | src/test/ui/suggestions/slice-issue-87994.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// run-pass
#![feature(imported_main)]
pub mod foo {
pub fn bar() {
println!("Hello world!");
}
}
use foo::bar as main;
| Rust | 4 | mbc-git/rust | src/test/ui/entry-point/imported_main_from_inner_mod.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
List = []
# List is Muteable
# means value can be change
List.insert(0 , 5)
List.insert(1,10)
List.insert(0,6)
print(List)
List.remove(6)
List.append(9)
List.append(1)
List.sort()
print(List)
List.pop()
List.reverse()
print(List)
"""
List.append(1)
print(List)
List.append(2)
print(List)
List.insert(... | Python | 4 | sulphatet/Python | List.py | [
"MIT"
] |
str = "val\ue"
| TOML | 0 | vanillajonathan/julia | stdlib/TOML/test/testfiles/invalid/string-bad-uni-esc.toml | [
"Zlib"
] |
{:objects
{:Employer
{:fields
{:id {:type (non-null ID)}
:name {:type (non-null String)}}}
:User
{:fields
{:id {:type (non-null ID)}
:employer {:type :Employer}}}
:Query
{:fields
{:user {:type (non-null :User)
:args {:id {:type (non-null ID)}}
:resolve :query/user}}}}} | edn | 4 | hagenek/lacinia | dev-resources/nullability.edn | [
"Apache-2.0"
] |
(module
(memory $memory (export "memory") 1)
(data (i32.const 12) "\00\00\00\00"))
| WebAssembly | 2 | 1shenxi/webpack | test/cases/wasm/memory/memory.wat | [
"MIT"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[Participant('A', { x: UInt })],
(A) => {
require(A.interact.x == 5);
});
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/lifted_interact_nonfun.rsh | [
"Apache-2.0"
] |
server {
listen 80;
server_name www.example.com example.com;
root /var/www/www.example.com/web;
if ($http_host != "www.example.com") {
rewrite ^ http://www.example.com$request_uri permanent;
}
index index.php index.html;
location = /favicon.ico {
... | ApacheConf | 4 | tsrivishnu/certbot | certbot-compatibility-test/nginx/nginx-roundtrip-testdata/owncloud/sites-available/www.example.com.vhost | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.