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 |
|---|---|---|---|---|---|
DROP TABLE IF EXISTS user;
CREATE TABLE user (
user_id INT(11) NOT NULL AUTO_INCREMENT,
username VARCHAR(45) NOT NULL ,
password VARCHAR(45) NOT NULL ,
UNIQUE KEY uni_user_username (username),
PRIMARY KEY (user_id)
);
DROP TABLE IF EXISTS role;
CREATE TABLE role (
role_id INT(11) NOT NULL AUTO_INCREMENT,
... | SQL | 3 | zeesh49/tutorials | spring-security-mvc-socket/src/main/resources/schema.sql | [
"MIT"
] |
; inherits: c
[
(for_range_loop)
(class_specifier)
(field_declaration
type: (enum_specifier)
default_value: (initializer_list))
(template_declaration)
(namespace_definition)
(try_statement)
(catch_clause)
(lambda_expression)
] @fold
| Scheme | 2 | hmac/nvim-treesitter | queries/cpp/folds.scm | [
"Apache-2.0"
] |
# websocketpp
# Chatterino2 is tested with websocketpp 0.8.1
# Exposed build flags:
# - WEBSOCKETPP_PREFIX ($$PWD by default)
# - WEBSOCKETPP_SYSTEM (1 = true) (unix only)
!defined(WEBSOCKETPP_PREFIX) {
WEBSOCKETPP_PREFIX = $$PWD
}
unix {
equals(WEBSOCKETPP_SYSTEM, "1") {
message("Building with syst... | QMake | 4 | boralv/chatterino2 | lib/websocketpp.pri | [
"MIT"
] |
#include <metal_stdlib>
#include "OperationShaderTypes.h"
using namespace metal;
typedef struct
{
float rangeReduction;
} RangeReductionUniform;
fragment half4 luminanceRangeFragment(SingleInputVertexIO fragmentInput [[stage_in]],
texture2d<half> inputTexture [[texture(0)]],
... | Metal | 4 | luoxiao/GPUImage3 | framework/Source/Operations/LuminanceRangeReduction.metal | [
"BSD-3-Clause"
] |
"ZifmiaSampler" by David Cornelson
Include Zifmia Support by David Cornelson.
Zifmia is a room. "This is the Zifmia Room."
Every turn:
Test the Title Channel;
Test the Credits Channel;
Test the Prologue Channel;
Test the Hint Channel.
To Test the Title Channel:
select the hint channel;
say "This text should s... | Inform 7 | 3 | pcbeard/fyrevm-dotnet | WinFyre/WinFyre/Games/story.ni | [
"MIT"
] |
"""Tests for the Point component."""
| Python | 1 | domwillcode/home-assistant | tests/components/point/__init__.py | [
"Apache-2.0"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:368774be111c1bf19e56581e1dcfced4719f793f9ded8eb7eaffa0c8c9c20662
size 576
| Nit | 0 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Sugarcane/info/arc0000.nit | [
"BSD-3-Clause-LBNL"
] |
variable q="\"",s="variable q=$q\\$q$q,s=$q$s${q}R;message($q$s$q$)"R;message("variable q=$q\\$q$q,s=$q$s${q}R;message($q$s$q$)"$)
| Slash | 0 | MakeNowJust/quine | quine.sl | [
"Beerware"
] |
Rebol [
Title: "Test Ping Pong Client"
File: %test-pingpong-client.r3
Note: {
Based on original Port examples which can be found at:
https://web.archive.org/web/20131012055435/http://www.rebol.net:80/wiki/Port_Examples
}
]
print "Ping pong client"
ping-count: 0
client: open tcp://127.0.0.1:8080
client/awake... | Rebol | 3 | semarie/rebol3-oldes | src/tests/test-pingpong-client.r3 | [
"Apache-2.0"
] |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by UnitTests-FancyZones.rc
//////////////////////////////
// Non-localizable
#define FILE_DESCRIPTION "PowerToys UnitTests-FancyZones"
#define INTERNAL_NAME "UnitTests-FancyZones"
#define ORIGINAL_FILENAME "UnitTests-FancyZones.dll"
// Non... | C | 0 | szlatkow/PowerToys | src/modules/fancyzones/FancyZonesTests/UnitTests/resource.h | [
"MIT"
] |
\relax
\@setckpt{contents}{
\setcounter{page}{9}
\setcounter{equation}{0}
\setcounter{enumi}{0}
\setcounter{enumii}{0}
\setcounter{enumiii}{0}
\setcounter{enumiv}{0}
\setcounter{footnote}{0}
\setcounter{mpfootnote}{0}
\setcounter{chapter}{0}
\setcounter{section}{0}
\setcounter{exercise}{0}
\setcounter{alphacount}{0}
}... | TeX | 2 | Toni-zgz/ChezScheme | csug/tspl4/contents.aux | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY lumify "http://lumify.io#" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>... | Web Ontology Language | 4 | wulinyun/lumify | datasets/flight-aware/ontology/flightTrack.owl | [
"Apache-2.0"
] |
.q-timeline
padding: 0
width: 100%
list-style: none
h6
line-height: inherit
&--dark
color: #fff
.q-timeline__subtitle
opacity: .7
&__content
padding-bottom: 24px
&__title
margin-top: 0
margin-bottom: 16px
&__subtitle
font-size: 12px
margin-bottom: 8px
opacit... | Stylus | 3 | Sirs0ri/quasar | ui/src/components/timeline/QTimeline.styl | [
"MIT"
] |
syntax = "proto2";
package upb.test;
message TestMessage {
optional int32 i32 = 1 [default = 5];
repeated int32 r_i32 = 2;
optional string str = 3 [default = "abc"];
repeated string r_str = 4;
optional TestMessage msg = 5;
repeated TestMessage r_msg = 6;
}
| Protocol Buffer | 3 | warlock135/grpc | third_party/upb/tests/test_cpp.proto | [
"Apache-2.0"
] |
module UpdateMsg exposing (UpdateMsg(..))
type UpdateMsg
= NotFound
| AOK
| Elm | 3 | Caprowni/concourse | web/elm/src/UpdateMsg.elm | [
"Apache-2.0"
] |
/*
* Copyright (C) 2013 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 app... | RenderScript | 1 | dandycheung/Dali | dali/src/main/rs/ip.rsh | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 8/27/09 by ECL, Landmann InterActive
// FUNCTIONALITY
// An admin page used to play media files
// Displays a video and associated poster frame with a name of .png in $svMediaPath
// Flash embed code is from <http://www.w3schools.com/flash/flash_inhtml.asp>
// DEPENDENCIES
// Uses the L... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/admin/media.lasso | [
"MIT"
] |
note
description: "Represents a person."
class
PERSON
create
make, make_unknown
feature {NONE} -- Creation
make (a_name: like name)
-- Create a person with `a_name' as `name'.
do
name := a_name
ensure
name = a_name
end
make_unknown
do ensure
name = Void
end
feature -- Access
name: det... | Eiffel | 4 | websharks/ace-builds | demo/kitchen-sink/docs/eiffel.e | [
"BSD-3-Clause"
] |
17490 17493
18360 18362
21347 21350
22860 22870
| Mask | 0 | urbanslug/lastz | test_data/pseudopig.n.mask | [
"MIT"
] |
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wik... | VCL | 5 | gaybro8777/osf.io | tests/test_files/varnish.vcl | [
"Apache-2.0"
] |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Analysis.Name
( Name
-- * Constructors
, gensym
, name
, nameI
, formatName
, isGenerated
-- * De Bruijn indices & levels
, Level(..)
, Index(..)
-- ** Conversions
, levelToIndex
, indexToLevel
) where
import Control.Effect.Fre... | Haskell | 5 | tabulon-ext/semantic | semantic-analysis/src/Analysis/Name.hs | [
"MIT"
] |
package com.baeldung.web;
import java.util.List;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.HttpStatus;
import org.springframework.... | Java | 4 | DBatOWL/tutorials | spring-web-modules/spring-5-mvc/src/main/java/com/baeldung/web/FooController.java | [
"MIT"
] |
{%- extends "epub/epub-cover.html" %}
{% block content %}
<div class="epub-cover">
<h1>Django Documentation</h1>
<h2><em>Release {{ release }}</em></h2>
<h3>{{ copyright }}</h3>
<p>{{ last_updated }}</p>
</div>
{% endblock %}
| HTML | 4 | jpmallarino/django | docs/_theme/djangodocs-epub/epub-cover.html | [
"BSD-3-Clause",
"0BSD"
] |
200 5 0 0
0 1 7 5 64 4 1 6 3 2 [0] [0] [0] [0] [0] [0] [0]
1 1 12 174 7 192 141 160 183 11 56 176 190 149 30 [4] [12] [5] [0] [11] [-4] [-4] [0] [14] [0] [16] [5]
2 1 15 134 14 18 142 100 86 138 89 52 75 185 64 149 41 67 [6] [3] [5] [7] [15] [1] [7] [1] [2] [12] [18] [-2] [9] [4] [-2]
3 1 11 47 41 149 81 22 96 184 ... | Eagle | 3 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/ubo_200/psp86.sch | [
"Apache-2.0"
] |
package com.blankj.utildebug.debug.tool;
import com.blankj.utildebug.debug.IDebug;
import com.blankj.utildebug.debug.tool.appInfo.AppInfoDebug;
import com.blankj.utildebug.debug.tool.clearCache.ClearCacheDebug;
import com.blankj.utildebug.debug.tool.clearStorage.ClearStorageDebug;
import com.blankj.utildebug.debug.too... | Java | 4 | YashBangera7/AndroidUtilCode | lib/utildebug/src/main/java/com/blankj/utildebug/debug/tool/AbsToolDebug.java | [
"Apache-2.0"
] |
"""Tests for template component."""
| Python | 0 | domwillcode/home-assistant | tests/components/template/__init__.py | [
"Apache-2.0"
] |
#
# Copyright (c) 2006 Lindquist Consulting, Inc.
# All rights reserved.
#
# Written by Dr. Kent Lindquist, Lindquist Consulting, Inc.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT ... | XProc | 4 | jreyes1108/antelope_contrib | nobuild/bin/utility/cf/cf.xpl | [
"BSD-2-Clause",
"MIT"
] |
import "regent"
require("initialise_grid_points")
require("model_init")
local c = regentlib.c
--This is the FIFTH loop
__demand(__leaf)
task update_uvel_boundary( velocity : region(ispace(int2d), uv_time_field),
grid_region : region(ispace(int2d), grid_fields) )
where writes(velocity.u... | Rouge | 4 | stfc/PSycloneBench | benchmarks/nemo/nemolite2d/manual_versions/regent/update_velocity_boundary.rg | [
"BSD-3-Clause"
] |
.class public Ltypes/TestTypeResolver15;
.super Ljava/lang/Object;
.method private test(Z)V
.locals 2
if-eqz p1, :cond_0
const/4 v1, 0x0
goto :goto_0
:cond_0
const/16 v1, 0x8
:goto_0
invoke-virtual {p0, v1}, Ltypes/TestTypeResolver15;->useInt(I)V
xor-int/lit8 p1, p1, 0x1
invoke-virtual {p0, p1}, L... | Smali | 3 | Dev-kishan1999/jadx | jadx-core/src/test/smali/types/TestTypeResolver15.smali | [
"Apache-2.0"
] |
try
do shell script "'/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli' --remove-system-default-profile" with administrator privileges
display dialog "The system default profile has been removed." buttons {"OK"}
on error
display alert "Failed to remove the system default profile."
... | AppleScript | 3 | rolandwalker/Karabiner-Elements | src/scripts/remove_system_default_profile.applescript | [
"Unlicense"
] |
#!/bin/bash
set -e
if [ -z "$PREFIX" ]; then
PREFIX="$CONDA_PREFIX"
fi
# When conda-build constructs a new working copy to perform a build
# in, it recursively copies *all* files and directories in the original
# source directory, including any pre-existing build products (e.g.,
# if you previously ran cmake.) Th... | Shell | 4 | Hacky-DH/pytorch | aten/conda/build.sh | [
"Intel"
] |
public
.cache
node_modules
| Handlebars | 0 | cwlsn/gatsby | plop-templates/example/.gitignore.hbs | [
"MIT"
] |
open import Agda.Primitive
open import Agda.Builtin.Equality
open import Agda.Builtin.List
open import Agda.Builtin.Reflection
testQuote : quoteTerm Setω ≡ agda-sort (inf 0)
testQuote = refl
macro
doUnquote : Term → Term → TC _
doUnquote t hole = bindTC (unquoteTC t) (unify hole)
testUnquote : doUnquote (agda-so... | Agda | 3 | cagix/agda | test/Succeed/QuoteSetOmega.agda | [
"BSD-2-Clause"
] |
{ lib
, buildPythonPackage
, fetchurl
, jieba
, pymorphy2
, sentencepiece
, spacy
, spacy-pkuseg
, spacy-transformers }:
let
buildModelPackage = { pname, version, sha256, license }:
let
lang = builtins.substring 0 2 pname;
in buildPythonPackage {
inherit pname version;
src = fetchurl {
url = "h... | Nix | 3 | siddhantk232/nixpkgs | pkgs/development/python-modules/spacy/models.nix | [
"MIT"
] |
ping -c 2 {{ pillar['myhost'] }}:
cmd.run
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/issue-42116-cli-pillar-override.sls | [
"Apache-2.0"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(declare-fun |main::lk1@7| () ... | SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.test_locks_14_true-unreach-call.c.smt2 | [
"MIT"
] |
[LevelInfo2]
Title="Les Cales du Ravitailleur"
| Forth | 0 | SeriousBuggie/UnrealTournamentPatches | SystemLocalized/ExtremeBeg.frt | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import ts from 'typescript';
import {unwrapExpression} from '../src/util';
describe('ngtsc annotation utilities', (... | TypeScript | 5 | OakMolecule/angular | packages/compiler-cli/src/ngtsc/annotations/test/util_spec.ts | [
"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++ | 5 | virdio/mediapipe | mediapipe/gpu/MPPGraphGPUDataTests.mm | [
"Apache-2.0"
] |
.. meta::
:description: Use Postgres views with Hasura
:keywords: hasura, docs, postgres, views
.. _postgres_views:
Postgres views
==============
.. contents:: Table of contents
:backlinks: none
:depth: 1
:local:
Introduction
------------
A `Postgres view <https://www.postgresql.org/docs/current/sql-cr... | reStructuredText | 5 | gh-oss-contributor/graphql-engine-1 | docs/graphql/core/guides/postgres/views.rst | [
"Apache-2.0",
"MIT"
] |
<!--- Valid comparisons should not flag anything--->
<cfscript>
y = x == 2;
z = x EQ 2;
</cfscript> | ColdFusion | 3 | tonym128/CFLint | src/test/resources/com/cflint/tests/CompareInsteadOfAssign/Compare2.cfm | [
"BSD-3-Clause"
] |
@import "something.css";
@import url("something.css");
| CSS | 1 | kitsonk/swc | css/parser/tests/fixture/rome/import/input.css | [
"Apache-2.0",
"MIT"
] |
// compile-flags:-D bogus -D dead_cod
// error-pattern:unknown lint: `bogus`
// error-pattern:requested on the command line with `-D bogus`
// error-pattern:unknown lint: `dead_cod`
// error-pattern:requested on the command line with `-D dead_cod`
// error-pattern:did you mean: `dead_code`
fn main() { }
| Rust | 2 | Eric-Arellano/rust | src/test/ui/lint/lint-unknown-lint-cmdline.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# aliases
alias txs='tmuxinator start'
alias txo='tmuxinator open'
alias txn='tmuxinator new'
alias txl='tmuxinator list'
| Shell | 3 | chensanle/ohmyzsh | plugins/tmuxinator/tmuxinator.plugin.zsh | [
"MIT"
] |
lapis = require "lapis"
import mock_action, mock_request, assert_request from require "lapis.spec.request"
mock_app = (...) ->
mock_action lapis.Application, ...
describe "lapis.application", ->
before_each ->
-- unload any dynamically loaded modules for views & actions
for k,v in pairs package.loaded
... | MoonScript | 5 | mosolovsa/lapis | spec/application_spec.moon | [
"Unlicense",
"MIT"
] |
$(function() {
$('.navdrawer-nav a[title]').tooltip({
'html': true,
'placement': 'right',
'boundary': 'viewport'
});
});
| HTML+PHP | 3 | ikafridi/PlayCast | templates/partials/sidebar_menu.js.phtml | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_swRadioMenu
Author: NKey, Garth de Wet (L-H)
Returns a list of SW radios if more than one is on the player.
Arguments:
None
Return Value:
Flexi-menu <ARRAY>
Example:
call TFAR_fnc_swRadioMenu;
Public: No
*/
private _menu = [];
private ... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/flexiUI/fnc_swRadioMenu.sqf | [
"RSA-MD"
] |
'*********************************************************************
'** (c) 2016-2017 Roku, Inc. All content herein is protected by U.S.
'** copyright and other applicable intellectual property laws and may
'** not be copied without the express permission of Roku, Inc., which
'** reserves all rights. Reuse of any ... | Brightscript | 4 | khangh/samples | advertising/RAF4RSG-sample-master/components/PlayerTask.brs | [
"MIT"
] |
// run-pass
fn foo(x: &usize) -> usize {
*x
}
pub fn main() {
let p: Box<_> = Box::new(3);
let r = foo(&*p);
assert_eq!(r, 3);
}
| Rust | 4 | ohno418/rust | src/test/ui/regions/regions-borrow-uniq.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env sage
from builtins import bytes
from random import randint
from CryptoAttacks.Utils import i2b, b2i
XorBox = [0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x8,0x9,0xa,0xb,0xc,0xd,0xe,0xf,0x1,0x0,0x3,0x2,0x5,0x4,0x7,0x6,0x9,0x8,0xb,0xa,0xd,0xc,0xf,0xe,0x2,0x3,0x0,0x1,0x6,0x7,0x4,0x5,0xa,0xb,0x8,0x9,0xe,0xf,0xc,0xd... | Sage | 5 | akbarszcz/CryptoAttacks | CryptoAttacks/Block/whitebox_aes.sage | [
"MIT"
] |
module.exports = function(source) {
return source + '\nmodule.exports.push("1");';
};
| JavaScript | 2 | 1shenxi/webpack | test/configCases/loaders/issue-9053/node_modules/loader1.js | [
"MIT"
] |
CREATE DATABASE error_summary;
| SQL | 3 | imtbkcat/tidb-lightning | tests/error_summary/data/error_summary-schema-create.sql | [
"Apache-2.0"
] |
/*
transport-sample thrift IDL file .
Execute thriftme.bat under Windows to generate the cpp stubs from this IDL.
*/
// See thrift/tutorial/tutorial.thrift and shared.thrift for more extensive examples.
namespace cpp Sample
namespace java Sample
namespace perl Sample
//This struct is not used in the sample. Show... | Thrift | 4 | Jimexist/thrift | contrib/transport-sample/Sample.thrift | [
"Apache-2.0"
] |
$$ MODE TUSCRIPT
ASK "Enter variablename": name=""
ASK "Enter value": value=""
TRACE +@name
@name=$value
PRINT @name
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Dynamic-variable-names/TUSCRIPT/dynamic-variable-names.tu | [
"Info-ZIP"
] |
-- 测试数据
INSERT INTO sys_client_details (id, access_token_validity_seconds, authorizations, auto_approve_scopes, client_id, client_secret, grant_types, redirect_url, refresh_token_validity_seconds, resource_ids, scopes) VALUES (1, 6000, null, null, 'oauth2', '$2a$10$O8uM8kd5SbsuoITG3tBifOcarqqI8GP19vzbqDzVHP5ZV9yOfvpYS'... | SQL | 3 | zcy2095/spring-boot-demo | demo-oauth/oauth-authorization-server/src/test/resources/import.sql | [
"MIT"
] |
h2. Empty Link Plugin
The Empty Link Plugin highlights link elements which link target attribute ('href') is not defined.
endprologue.
h3. Functional Description
The Plugin relies on CSS selectors to highlight the empty link elements (see https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors).
The CS... | Textile | 4 | antonella-del/Aloha-Editor | doc/guides/source/plugin_emptylink.textile | [
"CC-BY-3.0"
] |
{{0}}div {
{{1}}border: 1px solid black{{2}};
{{3}}does-not-exist: 0;
/* {{5}}color: #000 */
background: border{{4}};
{{6}}-webkit-animation: none;
{{7}}-border-width: 2px;
}
| CSS | 3 | ravitejavalluri/brackets | src/extensions/default/WebPlatformDocs/unittest-files/test1.css | [
"MIT"
] |
/*
* 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/base/Component.vala | [
"BSD-2-Clause"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/clipboard/PasteImportsDialog.ceylon | [
"Apache-2.0"
] |
#!/usr/bin/env pike
int main(int argc, array argv) {
return 0;
}
| Pike | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pike/shebang.pike | [
"MIT"
] |
functions {
real model_log_dens(
int[] deaths_slice,
int start,
int end,
//pars
vector logit_p_avg,
// data
int[] casesM
)
{
int n;
real lpmf;
int N_slice;
lpmf = 0.0;
N_slice = end - start + 1;
... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200820a7_cmdstanv.stan | [
"MIT"
] |
public final class A /* A*/ {
@kotlin.jvm.Transient()
@kotlin.jvm.Volatile()
@org.jetbrains.annotations.NotNull()
private transient volatile java.lang.String c;
@kotlin.jvm.Strictfp()
@kotlin.jvm.Synchronized()
public final synchronized strictfp void f();// f()
@org.jetbrains.annotations.NotNull()
... | Java | 4 | Mu-L/kotlin | compiler/testData/asJava/lightClasses/compilationErrors/AnnotationModifiers.java | [
"ECL-2.0",
"Apache-2.0"
] |
from django.utils.deprecation import MiddlewareMixin
from .shortcuts import get_current_site
class CurrentSiteMiddleware(MiddlewareMixin):
"""
Middleware that sets `site` attribute to request object.
"""
def process_request(self, request):
request.site = get_current_site(request)
| Python | 4 | jpmallarino/django | django/contrib/sites/middleware.py | [
"BSD-3-Clause",
"0BSD"
] |
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Simple test for a fuzzer. The fuzzer must find the interesting switch value.
#include <cstdint>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cstddef>
int Switch(int a) {
switch(a... | C++ | 4 | sdmg15/json | test/thirdparty/Fuzzer/test/Switch2Test.cpp | [
"MIT"
] |
size: 1024px 60px;
dpi: 96;
margin: 1em;
axis {
label-placement: subdivide(10);
limit: 1 16;
}
| CLIPS | 1 | asmuth-archive/travistest | test/examples/charts_reference_scale_layout_subdivide.clp | [
"Apache-2.0"
] |
```{r}
for (l in 1:10) {
j <- l + l
}
l <- 0
```
```{python}
for i in (1, 10):
j = i + i
```
```{r}
(function(x) { i <- 10; i + i * x })(l + l)
``` | RMarkdown | 2 | DeagleGross/Rplugin | testData/rename/renameForLoopTargetUsageInRmd.after.rmd | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe 'Parallel switch syntax' -Tags 'CI' {
Context 'Should be able to retrieve AST of parallel switch' {
BeforeAll {
$ast = [System.Management.Automation.Language.Parser]::ParseInput(
'switch -parallel... | PowerShell | 4 | rdtechie/PowerShell | test/powershell/Language/Scripting/SwitchParallel.Tests.ps1 | [
"MIT"
] |
#pragma once
#include "envoy/event/dispatcher.h"
#include "envoy/event/timer.h"
#include "source/common/common/assert.h"
#include "quiche/quic/core/quic_alarm.h"
#include "quiche/quic/core/quic_clock.h"
#include "quiche/quic/core/quic_time.h"
namespace Envoy {
namespace Quic {
// Implements QUIC interface
// https... | C | 4 | dcillera/envoy | source/common/quic/envoy_quic_alarm.h | [
"Apache-2.0"
] |
<%@ Page Language="C#"%>
<%@ Import Namespace="System" %>
<html><head><title>Laudanum - DNS</title></head><body>
<script runat="server">
/* *****************************************************************************
***
*** Laudanum Project
*** A Collection of Injectable Files used during a Penetration Test
***
*** ... | ASP | 4 | wgph96/SecLists | Web-Shells/laudanum-0.8/aspx/dns.aspx | [
"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 ... | JFlex | 5 | arusinha/incubator-netbeans | php/php.editor/tools/DocumentorColoringScanner.flex | [
"Apache-2.0"
] |
export default /* glsl */`
vec4 LinearToLinear( in vec4 value ) {
return value;
}
vec4 sRGBToLinear( in vec4 value ) {
return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );
}
vec4 LinearTosR... | JavaScript | 3 | omgEn/threeJs | src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js | [
"MIT"
] |
[ <http://a.example/p1> <http://a.example/o1> ; <http://a.example/p2> <http://a.example/o2> ] <http://a.example/p> <http://a.example/o> .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/blankNodePropertyList_with_multiple_triples.ttl | [
"CC-BY-3.0"
] |
<h1>Default Slider</h1>
<span>Label</span>
<mat-slider>
<input #slidey matSliderThumb>
</mat-slider>
{{slidey.value}}
<h1>Colors</h1>
<mat-slider color="primary" discrete>
<input value="50" matSliderThumb>
</mat-slider>
<mat-slider color="accent" discrete>
<input value="50" matSliderThumb>
</mat-slider>
<mat-sli... | HTML | 4 | tungyingwaltz/components | src/dev-app/mdc-slider/mdc-slider-demo.html | [
"MIT"
] |
// MIR for `main` after SimplifyCfg-final
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/tls-access.rs:6:11: 6:11
let _2: *mut u8; // in scope 0 at $DIR/tls-access.rs:8:18: 8:21
let mut _3: *mut u8; // in scope 0 at $DIR/tls-acc... | Mirah | 4 | mbc-git/rust | src/test/mir-opt/tls_access.main.SimplifyCfg-final.after.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
static const q15_t in_rfft_noisy_32[32] = {
0x0624, 0x3B86, 0x6255, 0x3C6D, 0xF810, 0xC22C, 0xA798, 0xC1F6,
0xF5AA, 0x49EE, 0x5CD9, 0x427A, 0xF255, 0xC41B, 0xA4B6, 0xBD9D,
0x0541, 0x3973, 0x593B, 0x3AB5, 0xF5C1, 0xBE4A, 0xA1E7, 0xC9EC,
0x05F3, 0x45BD, 0x5789, 0x3B32, 0x04C3, 0xC5D7, 0xB626, 0xBF51
}... | Max | 3 | ldalek/zephyr | tests/lib/cmsis_dsp/transform/src/rq15.pat | [
"Apache-2.0"
] |
subscription TeamMemberRemoved($teamID: ID!) {
teamMemberRemoved(teamID: $teamID)
}
| GraphQL | 2 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamMemberRemoved.graphql | [
"MIT"
] |
{ lib, fetchFromGitHub }:
let
pname = "RhodiumLibre";
version = "1.2.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "DunwichType";
repo = pname;
rev = version;
postFetch = ''
tar xf $downloadedFile --strip=1
install -Dm444 -t $out/share/fonts/opentype/ RhodiumLibre-Regular.otf
... | Nix | 4 | collinwright/nixpkgs | pkgs/data/fonts/rhodium-libre/default.nix | [
"MIT"
] |
// ground lines + filters
move 0,1,-10
color red
rotate 90
move 0,0,(TIME%300)/300
tile 1, 1, 30
stroke 5
color hsv(20, 250, map(HEALTH, 1,0, 255,0))
line 0,-30,0,30
end
//fxNW 0.2,0.2,wave(1000)*1
//fxK 0.5 + wave(1000)*1.5
| Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_horizon/2.cy | [
"MIT"
] |
<%inherit file="/webapps/galaxy/base_panels.mako"/>
<%namespace file="/galaxy_client_app.mako" name="galaxy_client"/>
<%def name="title()">
${_( 'Histories' )}
</%def>
<%def name="center_panel()"></%def>
<%def name="javascript_app()">
${galaxy_client.load(
app='app',
current_history_id=curre... | Mako | 4 | rikeshi/galaxy | templates/webapps/galaxy/history/view_multiple.mako | [
"CC-BY-3.0"
] |
/*
* Copyright 2020 xcffl <xcffl@protonmail.com>
* Copyright 2020 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 abov... | Vala | 5 | gslav/nuvolaplayer | src/nuvolakit-runner/components/lyrics/GecimiLyricsFetcher.vala | [
"BSD-2-Clause"
] |
/**
*
*/
package com.baeldung.boot.ddd.event;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.springframework.data.domain.AbstractAggregateRoot;
@Entity
public class Aggregate3 extends AbstractAggregateRoot<Aggregate3> {
@Id
@GeneratedValue
... | Java | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-annotations/src/main/java/com/baeldung/boot/ddd/event/Aggregate3.java | [
"MIT"
] |
drop table if exists cdp_segments;
drop table if exists cdp_customers;
create table cdp_segments (seg_id String, mid_seqs AggregateFunction(groupBitmap, UInt32)) engine=ReplacingMergeTree() order by (seg_id);
create table cdp_customers (mid String, mid_seq UInt32) engine=ReplacingMergeTree() order by (mid_seq);
alter ... | SQL | 2 | pdv-ru/ClickHouse | tests/queries/0_stateless/01220_scalar_optimization_in_alter.sql | [
"Apache-2.0"
] |
Prefix(:=<http://example.org/>)
Ontology(:Lattice
SubClassOf(:a1 :a)
SubClassOf(:a11 :a1)
SubClassOf(:a111 :a11)
SubClassOf(:a112 :a11)
SubClassOf(:a12 :a1)
SubClassOf(:a121 :a12)
SubClassOf(:a122 :a12)
SubClassOf(:a2 :a)
SubClassOf(:a21 :a2)
SubClassOf(:a211 :a21)
SubClassOf(:a212 :a21)
SubClassOf... | Web Ontology Language | 3 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/lattice.owl | [
"Apache-2.0"
] |
// MIT License
// Copyright (c) 2019-2021 bloc97
// All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// t... | GLSL | 4 | dvdvideo1234/Anime4K | glsl/Restore/Anime4K_Clamp_Highlights.glsl | [
"MIT"
] |
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifndef PERL_VERSION
#include "patchlevel.h"
#define PERL_VERSION PATCHLEVEL
#endif
#if PERL_VERSION < 5
# ifndef PL_sv_undef
# define PL_sv_undef sv_undef
# endif
# ifndef ERRSV
# define ERRSV GvSV(errgv)
# endif
# ifndef ... | XS | 3 | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | perl/ext/Data/Dumper/Dumper.xs | [
"Apache-1.1"
] |
(module
(import "wasi_unstable" "fd_write"
(func $fd_write (param i32 i32 i32 i32) (result i32))
)
(memory 1)
(export "memory" (memory 0))
(data (i32.const 0) "\08\00\00\00\0c\00\00\00Hello World\n")
(func $main (export "_start")
i32.const 1
i32.const 0
i32.con... | WebAssembly | 3 | conorpreid/hello-world | w/WebAssembly.wat | [
"MIT"
] |
userdict /DrawWaterMark get exec
| PostScript | 0 | ixjf/Windows-driver-samples | print/OEM Printer Customization Plug-in Samples/C++/watermark/wmarkps/drawmark.ps | [
"MS-PL"
] |
AHKKeyState,{{ key_name }}{% if mode %},{{ mode }}{% endif %}
| AutoHotkey | 2 | scslmd/ahk | ahk/templates/daemon/key_state.ahk | [
"MIT"
] |
package com.baeldung.reactive.responseheaders.functional.routers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RequestPredicates;
im... | Java | 4 | zeesh49/tutorials | spring-5-reactive/src/main/java/com/baeldung/reactive/responseheaders/functional/routers/ResponseHeadersRouterFunctions.java | [
"MIT"
] |
# <API name>
<API description>
# Data Structures
## User (object)
- name: Andrew (string)
An additional
multi-line description.
- here
- there
- address (object) - address description
multilined object
description
- Properties
- m1 - this should be member of address
# Propert... | API Blueprint | 2 | darkcl/drafter | test/fixtures/mson/multiline-description.apib | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jafry Hisham, 2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-11 20:56+0200\n"
"PO-Revision-Date: 2021-11-16 12:53+0000\n"
"Last-Translator: Jafry Hisham\n"
"Language... | Gettext Catalog | 3 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/postgres/locale/ms/LC_MESSAGES/django.po | [
"PostgreSQL",
"Unlicense"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*
* Implementation of this file has been influenced by AtlasPHP
*
* @link https://gith... | Zephir | 4 | tidytrax/cphalcon | phalcon/DataMapper/Pdo/Profiler/MemoryLogger.zep | [
"BSD-3-Clause"
] |
/* 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/lite/kernels/internal/reference/conv3d.h | [
"Apache-2.0"
] |
/* crc32.h -- tables for rapid CRC calculation
* Generated automatically by crc32.c
*/
local const z_crc_t FAR crc_table[TBLS][256] =
{
{
0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL,
0x706af48fUL, 0xe963a535UL, 0x9e6495a3UL, 0x0edb8832UL, 0x79dcb8a4UL,
0xe0d5e91eUL, 0x97d2d988U... | C | 4 | pyracanda/runtime | src/native/external/zlib/crc32.h | [
"MIT"
] |
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* 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 agre... | Java | 5 | AndrewReitz/kotlin | compiler/psi/src/org/jetbrains/kotlin/LambdaExpressionElementType.java | [
"ECL-2.0",
"Apache-2.0"
] |
#! /usr/bin/env perl
# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/s... | Perl | 4 | pmesnier/openssl | test/recipes/20-test_spkac.t | [
"Apache-2.0"
] |
select sum(lo_revenue), d_year, p_brand1
from lineorder, date, part, supplier
where lo_orderdate = d_datekey
and lo_partkey = p_partkey
and lo_suppkey = s_suppkey
and p_brand1 = 'MFGR#2221'
and s_region = 'EUROPE'
group by d_year, p_brand1
order by d_year, p_brand1
| SQL | 3 | OlegPt/spark | sql/core/src/test/resources/ssb/2.3.sql | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html lang="<$mt:BlogLanguage$>">
<head>
<meta charset="<$mt:PublishCharset$>">
<title><__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"> - <$mt:BlogName encode_html="1"$></title>
<$mt:Include module="<__trans phrase="HTML Head">"$>
<mt:ArchivePrevious><link rel="prev" href=... | MTML | 3 | movabletype/mt-theme-rainier | themes/rainier/templates/monthly_entry_listing.mtml | [
"MIT"
] |
T Head(Now()) == J(Dates.DateTime)
T Length(DateList()) == 6
T Isa(AbsoluteTime(),AbstractFloat)
T AbsoluteTime() > 3.6e9
T Isa(UnixTime(), Integer)
T DateList([2006,12]) == [2006,12,1,0,0,0]
| Objective-J | 3 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/system_test.sj | [
"MIT"
] |
---
title: "v1.18.0 - 2021-03-01"
linkTitle: "v1.18.0 - 2021-03-01"
weight: -93
---
<html>
<head>
<title>kubernetes/minikube - Leaderboard</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap" rel="s... | HTML | 4 | skyplaying/minikube | site/content/en/docs/contrib/leaderboard/v1.18.0.html | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.