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 |
|---|---|---|---|---|---|
@0xbbfd48ae4b99d013;
using CSharp = import "/csharp.capnp";
struct SomeStruct $CSharp.name("CsStruct") {
someField @0 : Int32 $CSharp.name("CsField");
someUnion : union $CSharp.name("CsUnion") {
u0 @1 : Int32;
u1 @2 : Int32;
}
someGroup : group $CSharp.name("CsGroup") {
g0 @3 : Int32;
g1 @4 : Int... | Cap'n Proto | 3 | FabInfra/capnproto-dotnetcore_Runtime | CapnpC.CSharp.Generator.Tests/No Resources/UnitTest15.capnp | [
"MIT"
] |
--TEST--
Bug #70398 (SIGSEGV, Segmentation fault zend_ast_destroy_ex)
--FILE--
<?php
define("FILE_STREAM", fopen("php://temp", "r"));
define("FILE_STREAMS", array(fopen("php://temp", "r")));
var_dump(FILE_STREAM);
var_dump(FILE_STREAMS);
?>
--EXPECTF--
resource(%d) of type (stream)
array(1) {
[0]=>
resource(%d) ... | PHP | 3 | thiagooak/php-src | Zend/tests/bug70398.phpt | [
"PHP-3.01"
] |
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<jsp:useBean id="ctx" type="com.dia... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/urlPattern/urlPattern.jsp | [
"Apache-2.0"
] |
very pawseStart is true
| Dogescript | 0 | erinkeith/dogescript | test/spec/statements/pawse/as-identifier-start/source.djs | [
"MIT"
] |
package com.baeldung.tagging;
import java.util.List;
/**
* Model for a blog post.
*
* @author Donato Rimenti
*
*/
public class Post {
/**
* Title of the post. Must be unique.
*/
private String title;
/**
* Author of the post.
*/
private String author;
/**
* Tags of the post.
*/
private List... | Java | 5 | zeesh49/tutorials | persistence-modules/java-mongodb/src/main/java/com/baeldung/tagging/Post.java | [
"MIT"
] |
#define LED 13
void setup() {
Serial.begin(9600);
Serial.print("\r\nStart");
pinMode(LED, OUTPUT);
// Turn it off for now.
digitalWrite(LED, LOW);
}
int incomingByte = 0;
void loop() {
// Check if there's a serial message waiting.
if (Serial.available() > 0) {
// If there is, read the incoming byt... | Arduino | 4 | HannesGitH/chrome-extensions-samples | apps/samples/serial/ledtoggle/sketches/serial_light/serial_light.ino | [
"Apache-2.0"
] |
package {
public class Test {
}
}
var a = [1, 2, 3, 4, 5];
for each(var i in a) {
trace(i)
} | ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/array_enumeration/Test.as | [
"Apache-2.0",
"Unlicense"
] |
<!DOCTYPE html>
<!--
* 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 required by... | HTML | 4 | martin-maunoury/lighthouse | lighthouse-cli/test/fixtures/ric-shim.html | [
"Apache-2.0"
] |
⍝ Calculate the sum of all multiples of 3 or 5 below 1000
f ← {+/⍵×(0=3|⍵)∨0=5|⍵}
sumbelow ← {f⍳⍵-1}
⎕ ← sumbelow 10 ⍝ → 23
sumbelow 1000 ⍝ → 233168
| APL | 4 | melsman/apltail | tests/sum35.apl | [
"MIT"
] |
%p
= _("Group %{group_name} couldn't be exported.") % { group_name: @group.name }
%p
= _('The errors we encountered were:')
%ul
- @errors.each do |error|
%li
#{error}
| Haml | 3 | glimmerhq/glimmerhq | app/views/notify/group_was_not_exported_email.html.haml | [
"MIT"
] |
// RUN: %target-typecheck-verify-swift
struct Pair<A, B> {
var a: A
var b: B
}
extension Pair: Codable where A: Codable, B: Codable {}
extension Pair: Collection where A == B {
// expected-error@-1 {{conditional conformance of type 'Pair<A, B>' to protocol 'Collection' does not imply conformance to inherited... | Swift | 4 | gandhi56/swift | test/decl/protocol/req/associated_type_inference_proto_ext.swift | [
"Apache-2.0"
] |
<html>
<head>
<meta name="go-import" content="gohugo.io/npmjs mod http://localhost:8072">
</head>
<body></body>
</html>
| HTML | 1 | jfecher/hugo | docs/static/npmjs/index.html | [
"Apache-2.0"
] |
\begin{code}
{-# LANGUAGE MagicHash #-}
import GHC.Exts
import Types
import Append
main = putStr (show (append_FC_L_L (FC2 a_ a_) []))
where a_ = case 'a' of { C# x -> x }
\end{code}
| Literate Haskell | 2 | ocharles/ghc | testsuite/tests/programs/cvh_unboxing/Main.lhs | [
"BSD-3-Clause"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_canUseDDRadio
Author: NKey
Checks whether it is possible for the DD radio to be used at the current height and isolated status.
Arguments:
0: Eye height ASL <NUMBER>
1: Isolated and inside <BOOL>
Return Value:
radio can be used <BOOL>
Exam... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_canUseDDRadio.sqf | [
"RSA-MD"
] |
package com.baeldung.jgit.porcelain;
import java.io.IOException;
import com.baeldung.jgit.helper.Helper;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import org.slf4j.Logger;
import org.slf4j.Log... | Java | 4 | DBatOWL/tutorials | jgit/src/main/java/com/baeldung/jgit/porcelain/Log.java | [
"MIT"
] |
import "std/string"
import "std/assert"
import "std/os"
const verbose = isString(os.env()['VERBOSE_TEST'])
const exports = {
"fatal": true,
"assertLib": assert,
}
const run = fn(desc, func) {
let cleanup = nil
if len(arguments) > 0: cleanup = arguments[0]
if verbose: println("Test: ", desc)
... | Inform 7 | 3 | lfkeitel/nitrogen | nitrogen/std/test.ni | [
"BSD-3-Clause"
] |
DO $$ DECLARE
r RECORD;
BEGIN
FOR r IN (SELECT viewname FROM pg_views WHERE schemaname = 'hdb_views' ORDER BY viewname) LOOP
EXECUTE 'DROP VIEW IF EXISTS hdb_views.' || quote_ident(r.viewname) || ' CASCADE';
END LOOP;
END $$;
| SQL | 4 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/33_to_34.sql | [
"Apache-2.0",
"MIT"
] |
// Copyright 2019 The MediaPipe 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 a... | Objective-C++ | 4 | virdio/mediapipe | mediapipe/gpu/MPPMetalUtil.mm | [
"Apache-2.0"
] |
-- Copyright 2016-2018 The Howl Developers
-- License: MIT (see LICENSE.md at the top-level directory of the distribution)
{:activities, :Buffer, :config, :mode, :sys} = howl
{:Process} = howl.io
bundle_load 'go_completer'
{:fmt} = bundle_load 'go_fmt'
{
auto_pairs: {
'(': ')'
'[': ']'
'{': '}'
'"':... | MoonScript | 3 | jasperpilgrim/howl | bundles/go/go_mode.moon | [
"MIT"
] |
<button [disabled]="isDisabled" [ngClass]="classes" #buttonRef>
<img
width="100"
src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj... | HTML | 3 | asksyllable/storybook | examples/angular-cli/src/stories/addons/docs/doc-button/doc-button.component.html | [
"MIT"
] |
%%
%unicode 6.3
%public
%class UnicodeScripts_6_3_extensions_1
%type int
%standalone
%include ../../resources/common-unicode-all-enumerated-property-defined-values-only-java
%%
<<EOF>> { printOutput(); return 1; }
\p{Script_Extensions:Arabic} { setCurCharPropertyValue("Script_Extensions:Arabic"); }
\p{Script_Exten... | JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-scripts/UnicodeScripts_6_3_extensions_1.flex | [
"BSD-3-Clause"
] |
div.svelte-xyz.svelte-xyz.bar{color:red}.foo.svelte-xyz.svelte-xyz.bar{color:red}.foo.svelte-xyz.bar span.svelte-xyz{color:red} | CSS | 0 | vatro/svelte | test/css/samples/global-compound-selector/expected.css | [
"MIT"
] |
#?RADIANCE
oconv ../brightball.rad
FORMAT=Radiance_octree
-1.00001 -1.00001 9.99999 2.00002 ../brightball.rad | Octave | 2 | SIMPLE-BuildingSimulation/rendering | test_data/images/ball.oct | [
"MIT"
] |
.App {
font-family: Arial, sans-serif;
max-width: 420px;
margin: 0 auto;
font-size: 1.5rem;
padding: 30px;
border-radius: 8px;
background: white;
line-height: 1;
}
body {
padding: 50px;
}
.add-todo {
display: flex;
width: 100%;
border-radius: 6px;
overflow: hidden;
border: 4px solid #313d5... | CSS | 4 | bkucera2/cypress | npm/react/cypress/component/advanced/radioactive-state/todos/todos.css | [
"MIT"
] |
\ @(#) t_corex.fth 98/03/16 1.2
\ Test ANS Forth Core Extensions
\
\ Copyright 1994 3DO, Phil Burk
INCLUDE? }T{ t_tools.fth
ANEW TASK-T_COREX.FTH
DECIMAL
\ STUB because missing definition in pForth - FIXME
: SAVE-INPUT ;
: RESTORE-INPUT -1 ;
TEST{
\ ==========================================================
T{ 1... | Forth | 5 | 610t/retrobsd | src/cmd/pforth/fth/t_corex.fth | [
"BSD-3-Clause"
] |
SELECT (datatype(?x +?y) AS ?z) {}
| SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/syntax-query/syntax-select-expr-03.rq | [
"Apache-2.0"
] |
{-#LANGUAGE ForeignFunctionInterface #-}
#include "cvWrapLEO.h"
-- | This module is a collection of simple edge detectors.
module CV.Edges (
-- * Common edge detectors
sobelOp,sobel
,laplaceOp,laplace,canny,susan
-- * Various aperture sizes
... | C2hs Haskell | 5 | maaleske/CV | CV/Edges.chs | [
"BSD-3-Clause"
] |
Import brl.asyncevent
#If Not BRL_HTTPREQUEST_IMPLEMENTED
#If TARGET="android" Or TARGET="ios" Or TARGET="winrt" Or TARGET="html5" Or TARGET="flash"
#BRL_HTTPREQUEST_IMPLEMENTED=True
Import "native/httprequest.${TARGET}.${LANG}"
#Endif
#Endif
#If BRL_HTTPREQUEST_IMPLEMENTED
Extern Private
Class BBHttpRequest
Meth... | Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/brl/httprequest.monkey | [
"Zlib"
] |
/*
* Copyright 2012-2020 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/WebTestClientAutoConfigurationTests.java | [
"Apache-2.0"
] |
/* Entry Point */
OUTPUT_ARCH( "riscv" )
STACK_SIZE = DEFINED(__stack_size__) ? __stack_size__ : 0x1000;
/* Specify the memory areas */
MEMORY
{
m_vector (RX) : ORIGIN = 0x000FFF00, LENGTH = 0x00000100
m_text (RX) : ORIGIN = 0x00000000, LENGTH = 0x000FFF00
m_data (RW... | Linker Script | 4 | Davidfind/rt-thread | bsp/rv32m1_vega/ri5cy/link.lds | [
"Apache-2.0"
] |
/*
* Copyright (c) 2021, Jesse Buhagiar <jooster669@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
namespace Kernel::USB {
struct [[gnu::packed]] USBDescriptorCommon {
u8 length;
u8 descriptor_type;
};
//
// Device Descriptor
// =================
//
// Thi... | C | 5 | r00ster91/serenity | Kernel/Bus/USB/USBDescriptors.h | [
"BSD-2-Clause"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Retain Analysis</title>
<style>
body {
width: 100% !important;
-webkit-t... | Mako | 3 | zuzhi/rssant | rssant/templates/email/retain_analysis.html.mako | [
"BSD-3-Clause"
] |
package com.baeldung.categories;
public interface IntegrationTest {
}
| Java | 2 | DBatOWL/tutorials | testing-modules/junit-5-basics/src/test/java/com/baeldung/categories/IntegrationTest.java | [
"MIT"
] |
;; note: this is example code and shouldn't be run in production as-is
(ns rabbitmq.tutorials.rpc-client
(:require [langohr.core :as lc]
[langohr.channel :as lch]
[langohr.queue :as lq]
[langohr.basic :as lb]
[langohr.consumers :as lcons]))
(def ^{:const true} q "rpc_... | Clojure | 5 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | clojure/src/rabbitmq/tutorials/rpc_client.clj | [
"Apache-2.0"
] |
# wpscan
> WordPress vulnerability scanner.
> More information: <https://github.com/wpscanteam/wpscan>.
- Update the vulnerability database:
`wpscan --update`
- Scan a WordPress website:
`wpscan --url {{url}}`
- Scan a WordPress website, using random user agents and passive detection:
`wpscan --url {{url}} --ste... | Markdown | 3 | derNiklaas/tldr | pages/common/wpscan.md | [
"CC-BY-4.0"
] |
--TEST--
Fixed bug #71537 (PCRE segfault from Opcache)
--FILE--
<?php
var_dump(preg_replace(array("/Monkey/"), array(2016), "Happy Year of Monkey"));
?>
--EXPECT--
string(18) "Happy Year of 2016"
| PHP | 3 | thiagooak/php-src | ext/pcre/tests/bug71537.phpt | [
"PHP-3.01"
] |
insert into `third` values (6339); | SQL | 2 | imtbkcat/tidb-lightning | tests/black-white-list/data/seconddb.third.1.sql | [
"Apache-2.0"
] |
# Copyright (c) 2022 Fyde Innovations Limited and the openFyde Authors.
# Distributed under the license specified in the root directory of this project.
# Copyright (c) 2018 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DESCRIPTION="Chrome OS ... | Gentoo Ebuild | 3 | FydeOS/chromium_os_for_raspberry_pi | overlay-rpi4/virtual/chromeos-config-bsp/chromeos-config-bsp-1.ebuild | [
"BSD-2-Clause"
] |
fail_stage:
match: '*'
sls:
- failparse
req_fail:
match: '*'
sls:
- fail
require:
- fail_stage
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/over/parse_req_fail.sls | [
"Apache-2.0"
] |
// Default parameters do not clip unless your computer's audio levels are too high.
{ SinOsc.ar() }.scope;
// Same thing with explicit parameters but using default values. Does not clip.
{ SinOsc.ar(440, 0, 1) }.scope;
// This will clip, regardless of computer audio levels.
{ SinOsc.ar(440, 0, 2) }.scope;
// Does no... | SuperCollider | 4 | drichardson/examples | SuperCollider/Clipping.scd | [
"Unlicense"
] |
[
{
"ProfileName": "CMS_Found",
"Name": "",
"Enabled": true,
"Scanner": 2,
"Author": "@six2dez1",
"Payloads": [],
"Encoder": [],
"UrlEncode": false,
"CharsToUrlEncode": "",
"Grep": [
"true,,Wordpress",
"true,Or,Drupal",
"true,Or,Joomla",
"true,Or,Magento... | BitBake | 3 | upenderadepu/BurpBounty | profiles/CMS_Found.bb | [
"Apache-2.0"
] |
#!/bin/bash
yarn add --global yarn@latest
lerna run build
lerna publish --canary
| Shell | 3 | JQuinnie/gatsby | scripts/publish-canary.sh | [
"MIT"
] |
module chapter6/mediaAssets
sig ApplicationState {
catalogs: set Catalog,
catalogState: catalogs -> one CatalogState,
currentCatalog: catalogs,
buffer: set Asset
}
sig Catalog, Asset {}
sig CatalogState {
assets: set Asset,
disj hidden, showing: set assets,
selection: set assets + Undefined
} {
hidden+show... | Alloy | 4 | chongliujlu/ColorfulAlloy | org.alloytools.alloy.extra/extra/models/book/chapter6/mediaAssets.als | [
"Apache-2.0"
] |
% "test_file.ly"
%
% Written as a test for the music21.mei module's ability to import MEI files.
% This file is a LilyPond score representing the intended musical content of
% "music21/converter/mei/test/test_file.mei" in an easier-to-verify format than
% Python objects.
% Note that, if you want to visually check wh... | LilyPond | 4 | ismail4040/DeepLeanirngJazz | music21/mei/test/test_file.ly | [
"Apache-1.1"
] |
> module Literate(extension) where
>
> extension = ".lhs"
| Literate Haskell | 2 | gregoryck/ghcid | test/bar/src/Literate.lhs | [
"BSD-3-Clause"
] |
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# @ECLASS: firefox-plugin.eclass
# @MAINTAINER:
# Stefan Kuhn <wuodan@pentoo.ch>
# @BLURB: Eclass for installing firefox plugins.
# @DESCRIPTION:
# Install extensions for firefox
inherit mozextensio... | Gentoo Eclass | 4 | longlene/clx | eclass/firefox-plugin.eclass | [
"MIT"
] |
---
prev: pattern-matching-and-functional-composition.textile
next: advanced-types.textile
title: 타입과 다형성의 기초
layout: post
---
본 강좌에서 다루는 내용은 다음과 같다.
* "정적 타입이 의미하는 것은 무엇인가?":#background
* "스칼라의 타입":#scala
* "매개변수 다형성(Parametric Polymorphism)":#parametricpoly
* "타입 추론(Type inference): 힌들리-밀너(Hindley-Milner) 시스템과 지역 타... | Textile | 5 | AstronomiaDev/scala_school | web/ko/type-basics.textile | [
"Apache-2.0"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected (IGNORE_EXIT_CODES => 1, [<<'EOF']);
(lg-full) begin
(lg-full) create "quux"
(lg-full) open "quux"
(lg-full) writing "quux"
(lg-full) close "quux"
(lg-full) open "quux" for verification
(lg-full) verified contents of "quux"
(lg-full) close "quux"... | ChucK | 3 | nguyenvannam2698/os_pintos_20211 | src/tests/filesys/base/lg-full.ck | [
"MIT"
] |
/* basic.css */
@import "sub dir/second.css";
@import url( 'sub dir/fourth.css' );
#project-title {
font-size: 25px;
}
| CSS | 3 | ravitejavalluri/brackets | test/spec/ExtensionUtils-test-files/basic.css | [
"MIT"
] |
<button>Click here! Click here! Click here! Click here! Click here! Click here!</button>
<button>
Click here! Click here! Click here! Click here! Click here! Click here!
</button>
<div>
<button>Click here! Click here! Click here! Click here! Click here! Click here!</button><button>Click here! Click here! Click here! Cl... | Handlebars | 0 | jdelStrother/prettier | tests/handlebars-whitespace/display-inline-block.hbs | [
"MIT"
] |
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | C++ | 4 | seeclong/apollo | modules/canbus/vehicle/lexus/protocol/hazard_lights_cmd_114.cc | [
"Apache-2.0"
] |
\documentclass[a4paper,russian]{article}
% generated by Docutils <http://docutils.sourceforge.net/>
% rubber: set program xelatex
\usepackage{fontspec}
% \defaultfontfeatures{Scale=MatchLowercase}
% straight double quotes (defined T1 but missing in TU):
\ifdefined \UnicodeEncodingName
\DeclareTextCommand{\textquotedb... | TeX | 4 | kokosing/hue | desktop/core/ext-py/docutils-0.14/test/functional/expected/xetex-cyrillic.tex | [
"Apache-2.0"
] |
<template>
<ul>
<li v-for="n in 10000" :key="n">
This is row {{ n + 1 }}
</li>
</ul>
</template>
| Vue | 3 | ardyno/nuxt.js | benchmarks/pages/stateless-big.vue | [
"MIT"
] |
#pragma TextEncoding="UTF-8"
#pragma rtGlobals=3
#pragma ModuleName = SIDAMUtilWaveDf
#ifndef SIDAMshowProc
#pragma hide = 1
#endif
//******************************************************************************
// Create SIDAM temporary folder root:Packages:SIDAM:procName:grfName and
// return a string co... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Utilities_WaveDf.ipf | [
"MIT"
] |
/* @generated */
digraph cfg {
"conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_1" [label="1: Start conditional_init_div0\nFormals: \nLocals: a:int \n " color=yellow style=filled]
"conditional_init_div0#15409862859031639280.1a402395676f14cae9f26917a820e9ed_1" -> "conditional_init_div0... | Graphviz (DOT) | 4 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/cpp/shared/nestedoperators/var_decl_inside_if.cpp.dot | [
"MIT"
] |
sleep 1
t app button wifi PR
| AGS Script | 0 | waltersgrey/autoexechack | WiFiButtonMode/TurnOnAndWiFi/autoexec.ash | [
"MIT"
] |
-- name: create-table-template
CREATE TABLE IF NOT EXISTS templates (
template_id SERIAL PRIMARY KEY
,template_name TEXT UNIQUE
,template_namespace VARCHAR(50)
,template_data BYTEA
,template_created INTEGER
,template_updated INTEGER
,UNIQUE(template_name, template_namespace)
);
CRE... | SQL | 3 | sthagen/drone-drone | store/shared/migrate/postgres/files/016_create_template_tables.sql | [
"Apache-2.0"
] |
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-2">
<input type="checkbox" id="switch-2" class="mdl-switch__input">
<span class="mdl-switch__label"></span>
</label>
| HTML | 2 | greatwqs/staffjoy | frontend/third_party/node/material_design_lite/switch/snippets/switch-off.html | [
"MIT"
] |
'$Revision:$'
'
Copyright 1992-2009 AUTHORS, Sun Microsystems, Inc. and Stanford University.
See the LICENSE file for license information.
'
'-- Module body'
bootstrap addSlotsTo: bootstrap stub -> 'globals' -> () From: ( | {
'Category: applications\x7fCategory: dirent\x7fModuleInfo: Module: dirent Init... | Self | 5 | phques/dir-walker-langcomp | dirWalker1.self/copy of applications/dirent.self | [
"AFL-3.0"
] |
(*-*-Mode:ats;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
ex: set ft=ats fenc=utf-8 sts=4 ts=4 sw=4 et nomod: *)
(*
MIT License
Copyright (c) 2021 Michael Truog <mjtruog at protonmail dot com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this softwar... | ATS | 5 | CloudI/CloudI | src/tests/messaging/ats/v2/main.dats | [
"MIT"
] |
a {
color: red
}
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3QvZml4dHVyZXMvcG9zdGNzcy9tYXAucG9zdGNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQTtFQUNFLFVBQXVCO0NBQ3hCIiwiZmlsZSI6InRlc3QvZml4dHVyZXMvcG9zdGNzcy9tYXAucG9zdGNzcyIsInNvdXJjZXNDb250ZW50IjpbIjpyb290IHtcbiAgLS1tYWluQ29... | CSS | 1 | sherryPrincess/wepy | packages/compiler-postcss/test/fixtures/css/map.css | [
"BSD-3-Clause"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/compiler/tf2tensorrt/segment/union_find.cc | [
"Apache-2.0"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | C | 5 | Harshitha91/Tmdb-react-native-node | ReactNativeFrontend/ios/Pods/Flipper-Folly/folly/synchronization/CallOnce.h | [
"Apache-2.0"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R05s01*/
/*Part A*/
proc freq data=sp4r.ameshousing;
tables central_air house_style / plot... | SAS | 3 | snowdj/sas-prog-for-r-users | code/SP4R05s01.sas | [
"CC-BY-4.0"
] |
##! The UI for Log Stream Control
module LogStreamControl;
export {
# Available log ids at https://www.bro.org/sphinx/scripts/base/frameworks/logging/main.bro.html#type-Log::ID
## This line tells Bro to only disable the specified log streams.
# Predefined value is empty
redef black_list_log_ids += {}... | Bro | 4 | reservoirlabs/bro-scripts | logging/log-stream-control-ui.bro | [
"Apache-2.0"
] |
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "WelcomeWidget.h"
#include <LibConfig/Client.h>
#include <LibCore/System.h>
#include <LibGUI/Application.h>
#include <LibGUI/Icon.h>
#include <LibGUI/Window.h>
#include <LibMain/Main.h>
#include <unistd.h>
Er... | C++ | 4 | r00ster91/serenity | Userland/Applications/Welcome/main.cpp | [
"BSD-2-Clause"
] |
#!/bin/bash
# Copyright 2019 The Kubernetes 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 require... | Shell | 5 | skyplaying/minikube | hack/conformance_tests.sh | [
"Apache-2.0"
] |
foo <%= if true do %>bar.<% end %>
| HTML+EEX | 2 | doughsay/elixir | lib/eex/test/fixtures/eex_template.eex | [
"Apache-2.0"
] |
.foo {
color: red;
}
/*# sourceMappingURL=file.css.map */
| CSS | 0 | fuelingtheweb/prettier | tests/css_comments/source-map.css | [
"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 | 4 | good-gym/material-ui | packages/material-ui-icons/lib/HvacOutlined.js | [
"MIT"
] |
component {
function configure() {
coldbox = {
appName : "ColdBox MVC",
reinitPassword : "",
handlersIndexAutoReload : false,
customErrorTemplate : "/coldbox/system/exceptions/Whoops.cfm",
handlerCaching : true
};
flash = {
scope = "Mock"
};
}
... | ColdFusion CFC | 4 | efectn/FrameworkBenchmarks | frameworks/CFML/coldbox/src/config/Coldbox.cfc | [
"BSD-3-Clause"
] |
node ./node_modules/.bin/lol | Batchfile | 0 | Bhanditz/yarn | __tests__/fixtures/lifecycle-scripts/script_only_pre_post/node_modules/.bin/lol.cmd | [
"BSD-2-Clause"
] |
// Copyright 2019 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.
//go:build faketime
// +build faketime
package syscall
import "unsafe"
const faketime = true
// When faketime is enabled, we redirect writes to FDs 1 and 2 ... | Go | 4 | PhilYue/go | src/syscall/time_fake.go | [
"BSD-3-Clause"
] |
#!/bin/bash
set -ex
if [ -n "$CLANG_VERSION" ]; then
if [[ $CLANG_VERSION == 7 && $UBUNTU_VERSION == 16.04 ]]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"
elif [[ $CLANG_VERSION == 9 ... | Shell | 3 | Hacky-DH/pytorch | .circleci/docker/common/install_clang.sh | [
"Intel"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using Go = import "/go.capnp";
using import "Admin.capnp".Admin;
using import "Animal.capnp".Animal;
@0xb2907c63dfc23a7d;
$Go.package("main");
$Go.import("main");
struct Cage {
admin @0 :Admin;
animal @1 :Animal;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/capnp/fixtures/struct/golang/Cage.capnp | [
"BSD-2-Clause"
] |
function _enhancd_flag_is_default
set -l opt $argv[1]
switch $SHELL
case "*bash"
switch "$opt"
case "-P" "-L" "-e" "-@"
return 0
end
case "*zsh"
switch "$opt"
case "-q" "-s" "-L" "-P"
ret... | fish | 4 | d3dave/enhancd | functions/_enhancd_flag_is_default.fish | [
"MIT"
] |
/*
* 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 ... | Java | 5 | kesavanvt/spark | common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/MergedBlockMeta.java | [
"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"
] |
Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.RebarTest do
use MixTest.Case
# rebar_dep and git_rebar are loaded dynamically
@compile {:no_warn_undefined, [:rebar_dep, :git_rebar]}
defmodule RebarAsDep do
def project do
[
app: :rebar_as_dep,
version: "0.1.0",
... | Elixir | 4 | doughsay/elixir | lib/mix/test/mix/rebar_test.exs | [
"Apache-2.0"
] |
[
{
"http://example.org/term": [ { "@id": "http://example.com/vocab#suffix" } ]
}
]
| JSONLD | 2 | fsteeg/json-ld-api | tests/expand/0058-out.jsonld | [
"W3C"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
var windowUrl = decodeURIComponent(window.location.search.substring(3))
var opened = window.open(windowUrl, '', 'show=no')
window.addEventListener('message', function (event) {
try {
opened.close()
} fina... | HTML | 3 | lingxiao-Zhu/electron | spec/fixtures/pages/webview-opener-postMessage.html | [
"MIT"
] |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// To compile these two shaders:
// fxc /E pixelMain /T ps_2_0 accelerated_surface_win.hlsl
// fxc /E vertexMain /T vs_2_0 accelerated_surface_win.hls... | HLSL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/HLSL/accelerated_surface_win.hlsl | [
"MIT"
] |
import text/Shlex
import structs/ArrayList
main: func {
args := "rock 'is kinda' \"fun don't\" you think"
tokens := Shlex split(args)
check := func (index: Int, value: String) {
if (tokens[index] != value) {
"Fail! expected tokens[#{index}] == #{value}, but got #{tokens[index]}" print... | ooc | 4 | shamanas/rock | test/sdk/text/shlex-test.ooc | [
"MIT"
] |
--# -path=.:alltenses:prelude
instance SyntaxDut of Syntax = ConstructorsDut, CatDut, StructuralDut, CombinatorsDut ;
| Grammatical Framework | 1 | daherb/gf-rgl | src/api/SyntaxDut.gf | [
"BSD-3-Clause"
] |
%!PS-Adobe-3.0
%%Creator: PCBNEW
%%CreationDate: Sun Feb 21 16:12:34 2016
%%Title: /home/mntmn/code/amiga-gfxcard/gerbers/amiga-gfxcard-drl_map.ps
%%Pages: 1
%%PageOrder: Ascend
%%BoundingBox: 0 0 596 842
%%DocumentMedia: A4 595 842 0 () ()
%%Orientation: Landscape
%%EndComments
%%BeginProlog
/line { newpath moveto lin... | PostScript | 3 | AmigaPorts/amiga2000-gfxcard | gerbers/amiga-gfxcard-drl_map.ps | [
"MIT",
"IJG",
"Unlicense"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.LV.ExampleFinder" Type="Str"><?xml version="1.0" encoding="UTF-8"?>
<nidna:ExampleProgram
xmlns:nidna="http://www.ni.com/Schemas/DNA/... | LabVIEW | 3 | ribeirojose/FINALE | src/testAssets/enabled/Dynamic_dispatch/Dynamic_dispatch.lvproj | [
"MIT"
] |
fails := false
main: func {
one()
if (fails) {
"We've had failures" println()
exit(1)
}
"Pass!" println()
}
TileId: cover from UInt
one: func {
// no value to check here
(row, column) := getTileRowColumn(256 as TileId)
}
getTileRowColumn: func (lid: TileId) -> (SizeT, Size... | ooc | 4 | shamanas/rock | test/compiler/operators/assign-numeric-and-cover.ooc | [
"MIT"
] |
/*
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <LibGfx/Forward.h>
#include <LibGfx/ImageDecoder.h>
namespace Gfx {
// Decoder for the "Quite OK Image" format (v1.0).
// https://qoiformat.org/qoi-specification... | C | 5 | densogiaichned/serenity | Userland/Libraries/LibGfx/QOILoader.h | [
"BSD-2-Clause"
] |
.class public final Lconditions/TestTernaryOneBranchInConstructor2;
.super Ljava/lang/Object;
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic construc... | Smali | 2 | DSYliangweihao/jadx | jadx-core/src/test/smali/conditions/TestTernaryOneBranchInConstructor2.smali | [
"Apache-2.0"
] |
{
"@context": { "chem": "http://example/chem#"},
"chem:protons": 12
} | JSONLD | 3 | fsteeg/json-ld-api | tests/toRdf/0023-in.jsonld | [
"W3C"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# F Wolff <friedel@translate.org.za>, 2019-2020
# Stephen Cox <stephencoxmail@gmail.com>, 2011-2012
# unklphil <villiers.strauss@gmail.com>, 2014,2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"P... | Gettext Catalog | 3 | jpmallarino/django | django/conf/locale/af/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
# - Try to find iconv
# Once done, this will define
#
# Iconv_FOUND - system has iconv
# Iconv_INCLUDE_DIRS - the iconv include directories
# Iconv_LIBRARIES - link these to use iconv
include(LibFindMacros)
find_path(ICONV_INCLUDE_DIR NAMES iconv.h)
find_library(ICONV_LIBRARY NAMES iconv libiconv)
set(I... | CMake | 4 | uga-rosa/neovim | cmake/FindIconv.cmake | [
"Vim"
] |
(*
* 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.
*)
(* This module provides an API for reading/writing signature data which is
* stored in a compact binary encoding.
*
* The data i... | OCaml | 5 | zhangmaijun/flow | src/parser_utils/type_sig/type_sig_bin.mli | [
"MIT"
] |
a $
b $ c
d $ e $ f
g $ h $ i j $ k $
| Cirru | 0 | Cardsareus/linguist | samples/Cirru/folding.cirru | [
"MIT"
] |
# Copyright (C) 2004-2009, Parrot Foundation.
# $Id$
# all timings Athlon 800, gcc 2.95.2
# parrot SVN-HEAD
# perl 5.8.0
# python 2.3.3
# perl oo1.pl 0.8
# python oo1.py 1.2 (first time)
# python oo1.py 0.51
# parrot -R cgp oo1.pasm -g -O3
# or... | Parrot Assembly | 3 | allisonrandal/pcc_testing | examples/benchmarks/oo1.pasm | [
"Artistic-2.0"
] |
<%= greeting %> bad customer: <%= bad_customer.name %><%= bad_customer_counter %> | HTML+ERB | 2 | mdesantis/rails | actionview/test/fixtures/actionpack/bad_customers/_bad_customer.html.erb | [
"MIT"
] |
<video></video>
| HTML | 0 | lingxiao-Zhu/electron | spec/fixtures/pages/fullscreen.html | [
"MIT"
] |
= form_errors(@project)
| Haml | 1 | hugorebelo/gitlabhq | app/views/projects/_errors.html.haml | [
"MIT"
] |
@charset "utf-8"; /* comment 1 */
@import /* comment 2 */ url("fineprint.css") /* comment 3 */ print /* comment 4 */; /* comment 5 */
@import /* comment 6 */ url("bluish.css") /* comment 7 */ projection /* comment 8 */, /* comment 9 */ tv /* comment 10 */;
/* comment 11 */ @import /* comment 12 */
/* comment 13 */... | CSS | 3 | fuelingtheweb/prettier | tests/css_comments/at-rules.css | [
"MIT"
] |
#!/usr/bin/env bash
# Font Logos (Font Linux) (44 icons)
# Codepoints: Nerd Fonts moved F100-F12D with holes → F300-F32D
# Nerd Fonts Version: 2.1.0
# Script Version: 1.1.0
test -n "$__i_linux_loaded" && return || __i_linux_loaded=1
i='' i_linux_alpine=$i
i='' i_linux_aosc=$i
i='' i_linux_apple=$i
i='' i_linux_arch... | Shell | 2 | th3cyb3rc0p/nerd-fonts | bin/scripts/lib/i_linux.sh | [
"MIT"
] |
valid([]).
valid([Head|Tail]) :-
fd_all_different(Head),
valid(Tail).
sudoku(Puzzle, Solution) :-
Solution = Puzzle,
Puzzle = [S11, S12, S13, S14, S15, S16, S17, S18, S19,
S21, S22, S23, S24, S25, S26, S27, S28, S29,
S31, S32, S33, S34, S35, S36, S37, S38, S39,
... | Prolog | 4 | Mynogs/Algorithm-Implementations | Sudoku/Prolog/jcla1/sudoku.prolog | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.