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 |
|---|---|---|---|---|---|
require("socket")
class TCPSocket {
"""
TCP Socket class.
"""
forwards_unary_ruby_methods
def TCPSocket open: server port: port {
"""
@server Server hostname to open Socket on.
@port Server port to open Socket on.
Creates and opens a new @TCPSocket@ on @server and @port.
"""
open(... | Fancy | 4 | bakkdoor/fancy | lib/rbx/tcp_socket.fy | [
"BSD-3-Clause"
] |
with Ada.Unchecked_Deallocation;
package body Tree_Naive_Pointers is
procedure initialize is
begin
Reset(g);
end;
procedure make_node(n: out NodePtr; x: Integer) is
begin
n := new Node;
n.x := x;
n.y := Random(g);
end make_node;
procedure delete_node(n: in out NodePtr) is
procedure free is new Ada.Uncheck... | Ada | 5 | r00ster91/completely-unscientific-benchmarks | ada/tree_naive_pointers.adb | [
"Apache-2.0",
"MIT"
] |
package com.macro.mall.dao;
import com.macro.mall.dto.OmsOrderDeliveryParam;
import com.macro.mall.dto.OmsOrderDetail;
import com.macro.mall.dto.OmsOrderQueryParam;
import com.macro.mall.model.OmsOrder;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 订单查询自定义Dao
* Created by macro on 2018/1... | Java | 4 | nowinli/mall | mall-admin/src/main/java/com/macro/mall/dao/OmsOrderDao.java | [
"Apache-2.0"
] |
Version 3/190914 of Vorple Modal Windows (for Glulx only) by Juhana Leinonen begins here.
"Modal windows are dialog prompts or other information windows that pop up on top of the play area and require user action to dismiss."
Include version 3 of Vorple by Juhana Leinonen.
Use authorial modesty.
Chapter 1 - Modal w... | Inform 7 | 5 | vorple/inform7 | Extensions/Juhana Leinonen/Vorple Modal Windows.i7x | [
"CC-BY-4.0"
] |
// Main header script - this will be included into every script in
// the game (local and global). Do not place functions here; rather,
// place import definitions and #define names here to be used by all
// scripts.
| AGS Script | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/AGS Script/GlobalScript.ash | [
"MIT"
] |
def meh: "meh";
| JSONiq | 0 | aakropotkin/jq | tests/modules/c/d.jq | [
"CC-BY-3.0"
] |
new dynamic binaryInsertionSort;
new class TimSort {
new int MIN_MERGE = 32,
MIN_GALLOP = 7,
INITIAL_TMP_STORAGE_LENGTH = 256;
new method __init__(a, length) {
this.a = a;
this.len = length;
this.tmp = sortingVisualizer.createValueArray((this.len >> 1)
... | Opal | 5 | thatsOven/sorting-visualizer | sorts/TimSort.opal | [
"MIT"
] |
<!--
ASP_KIT
up.asp = File upload
by: Unknown
modified: 25/06/2003
-->
<%
Set oScriptNet = Server.CreateObject("WSCRIPT.NETWORK")
%>
<%
Response.Buffer = true
Function BuildUpload(RequestBin)
'Get the boundary
PosBeg = 1
PosEnd = InstrB(PosBeg,RequestBin,getByteString(chr(13)))
boundary = Mi... | ASP | 3 | laotun-s/webshell | web-malware-collection-13-06-2012/ASP/up.asp | [
"MIT"
] |
// Copyright 2010-2016 RethinkDB, all rights reserved.
#ifndef CRYPTO_COMPARE_HPP
#define CRYPTO_COMPARE_HPP
#include <openssl/crypto.h>
#include <array>
namespace crypto {
template <std::size_t N>
inline bool compare_equal(
std::array<unsigned char, N> const &lhs,
std::array<unsigned char, N> const... | C++ | 4 | zadcha/rethinkdb | src/crypto/compare_equal.hpp | [
"Apache-2.0"
] |
[lightning]
table-concurrency = 1
[checkpoint]
enable = true
schema = "tidb_lightning_checkpoint_test_cppk"
driver = "mysql"
keep-after-success = "origin"
[mydumper]
read-block-size = 1
| TOML | 2 | Howie59/tidb | br/tests/lightning_checkpoint/config.toml | [
"Apache-2.0",
"BSD-3-Clause"
] |
*---------------------------------------------------------------------------------
*
* IO73-sector sets
*
*---------------------------------------------------------------------------------
set ns73 "Industries in national accounting definition, 73 sectors" /
01000 " 1 Agriculture and horticulture"
02000 " 2 For... | GAMS | 3 | gemal/MAKRO | Model/Sets/IO73.sets.gms | [
"MIT"
] |
load "common.gnu"
data = "../data/set_difference.csv"
set output dir."set_difference".ext
set title "set difference"
plot data using 1:2, for [i=3:21] '' using 1:i
| Gnuplot | 2 | jafingerhut/bifurcan | benchmarks/gnuplot/set_difference.gnu | [
"MIT"
] |
## Licensed to Cloudera, Inc. under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. Cloudera, Inc. licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this f... | Mako | 3 | yetsun/hue | desktop/core/src/desktop/templates/connectors/connectors.mako | [
"Apache-2.0"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | yage99/tensorflow | tensorflow/core/tpu/ops/tpu_partitioned_output_op.cc | [
"Apache-2.0"
] |
<%--
Copyright 2012 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | Groovy Server Pages | 3 | michaelneale/asgard | grails-app/views/domain/show.gsp | [
"Apache-2.0"
] |
(***********************************************************
amx-lib-redis
v0.1.0
A Redis database client for AMX's NetLinx programming language.
Redis Comamnds:
http://redis.io/commands
Redis Protocol Specification:
http://redis.io/topics/protocol
*****************... | NetLinx | 4 | amclain/amx-lib-redis | amx-lib-redis.axi | [
"MIT"
] |
-- Copyright 2016 Stanford University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... | Rouge | 3 | StanfordLegion/bootcamp2017 | DependentPartitioning/5.rg | [
"Apache-2.0"
] |
0.38572172740397104 0.753172511022528 0.7572025086773071 0.6375406381514317 0.051238366943649916 0.8934399924248659 0.9643780573830937 0.028162091255060417 0.2778793894588396 0.5704608364596863 0.5397058058028547 0.22072770891610438 0.4027735515767188 0.5595802373475535 0.45644484025650955 0.18603062502177115 0.1256376... | Logos | 0 | gabicavalcante/pymoo | tests/problems/resources/DASCMOP/10/DASCMOP4.x | [
"Apache-2.0"
] |
#NoTrayIcon
FileInstall(">>>AUTOIT SCRIPT<<<", @ScriptDir & "\TokenTestFile_Extracted.au3")
Exit
$DUMMY = (1 + 2 - 3 / 4) ^ 2
$DUMMY += 1 > 2 < 3 <> 4 >= 5 <= 6 = 7 & 8
$DUMMY -= True == True = True
$DUMMY /= 1
$DUMMY *= 1.123
$DUMMY &= 1500
$DUMMY = 1234567887654321
MYFUNC($DUMMY, $DUMMY)
$OSHELL = ObjCreate("shell.... | AutoIt | 2 | fossabot/myAut2Exe | samples/AutoIt316_TokenFile/decompiled/TokenTestFile_Decompiled.au3 | [
"MS-PL"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | sbj42/vscode | src/vs/editor/common/core/editOperation.ts | [
"MIT"
] |
'imp' 'imp.wav' loadfile
'seq' '60 62 64 66 67 69 72' gen_vals
1.5 metro
0.3 maytrig
dup
1 'seq' tseq mtof
0.4
48 mtof
pluck
dup 1024 'imp' conv 0.03 * +
| SourcePawn | 3 | aleatoricforest/Sporth | examples/conv.sp | [
"MIT"
] |
from numpy cimport (
ndarray,
uint8_t,
)
cpdef bint is_matching_na(object left, object right, bint nan_matches_none=*)
cpdef bint checknull(object val)
cpdef bint checknull_old(object val)
cpdef ndarray[uint8_t] isnaobj(ndarray arr)
cdef bint is_null_datetime64(v)
cdef bint is_null_timedelta64(v)
cdef bint ... | Cython | 3 | ajayiagbebaku/NFL-Model | venv/Lib/site-packages/pandas/_libs/missing.pxd | [
"MIT"
] |
interface I1 {
iObj:{ };
iNum:number;
iAny:any;
iFn():void;
}
interface I2 {
iFn(n:number, s:string):void;
}
class C1 implements I1,I2 {
private iFn();
private iFn(n?:number, s?:string) { }
private iAny:any;
private iNum:number;
private iObj:{ };
}
interface I3 {
... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/interfaceImplementation1.ts | [
"Apache-2.0"
] |
config const n = 10;
iter foo() {
for i in 1..n do yield i;
}
for param i in foo() do
writeln(i);
| Chapel | 4 | jhh67/chapel | test/trivial/bharshbarg/paramForOverIter.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
require 'template'
class CorePaneController
def init
Logger.log('CorePaneController.init',self);
end
attr_accessor :request
#def method_missing(method_sym, *arguments, &block)
# r = ClientContext.get(method_sym)
# Logger.log("method_missing #{self.class.to_s} #{method_sym}",r)
... | Opal | 4 | bcavileer/digest-rails | app/assets/javascripts/digest-rails/opal_lib/hold/core_pane_controller.js.opal | [
"MIT"
] |
"""Tests for the nsw_rural_fire_service_feed component."""
| Python | 0 | domwillcode/home-assistant | tests/components/nsw_rural_fire_service_feed/__init__.py | [
"Apache-2.0"
] |
SELECT
i_brand_id brand_id,
i_brand brand,
t_hour,
t_minute,
sum(ext_price) ext_price
FROM item,
(SELECT
ws_ext_sales_price AS ext_price,
ws_sold_date_sk AS sold_date_sk,
ws_item_sk AS sold_item_sk,
ws_sold_time_sk AS time_sk
FROM web_sales, date_dim
WHERE d_date_sk = ws_sold_date_... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpcds/q71.sql | [
"Apache-2.0"
] |
MyRec := RECORD
STRING1 Value1;
STRING1 Value2;
END;
SomeFile := DATASET([{'C', 'G'},
{'C', 'C'},
{'A', 'X'},
{'B', 'G'},
{'A', 'B'}], MyRec);
SortedRecs := SORT(SomeFile, Value1);
GroupedRecs1 := GROUP(SomeFile, Value1)... | ECL | 4 | jeclrsg/HPCC-Platform | esp/src/eclwatch/ecl/GROUP_Example.ecl | [
"Apache-2.0"
] |
div.svelte-xyz>p>em{color:red} | CSS | 3 | Theo-Steiner/svelte | test/css/samples/omit-scoping-attribute-descendant-global-inner-multiple/expected.css | [
"MIT"
] |
var r = 1..10 by 2;
var r2 = 1..10 by 2;
var r3 = 1..9 by 2;
var r4 = 1..10;
writeln(ident(r, r2));
writeln(ident(r, r3));
writeln(ident(r, r4));
| Chapel | 3 | jhh67/chapel | test/deprecated/rangeIdent.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
- dashboard: console_login_overview
title: Console Login Overview
layout: newspaper
elements:
- name: Top User Logins (Top 10)
title: Top User Logins (Top 10)
model: aws_athena_cloudtrail
explore: cloudtrail_logs
type: looker_bar
fields:
- cloudtrail_logs.total_successful_logins
- cl... | LookML | 4 | voltagebots/aws_cloudtrail_block | console_login_overview.dashboard.lookml | [
"MIT"
] |
REBOL [
Title: "Red/System alias test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %alias-test.r
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
change-dir %../
~~~start-file~~~ "alias... | R | 4 | 0xflotus/red | system/tests/source/compiler/alias-test.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
BreshapedJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_reshape_allowzero_reordered/test_data_set_0/output_0.pb | [
"Apache-2.0"
] |
% BSD 3-Clause License
%
% Copyright (c) 2017, Ali ElShakankiry
% All rights reserved.
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided that the following conditions are met:
%
% * Redistributions of source code must retain the above copyright not... | TXL | 4 | alishak/TAG | TXL/checkImports.txl | [
"BSD-3-Clause"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
_macro_binop_ev := rec(
ev := self >> self.t.value(self.semantic(self._vval(1), self._vval(2), [])).ev(),
);
################################
# MACRO_2xf
#
Class(vunpacklo_2xf, _macro_binop_ev, VecExp_2.binary(), rec(
... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/platforms/macro/code.gi | [
"BSD-2-Clause-FreeBSD"
] |
/// IC principals (user and canister smart contract IDs)
import Prim "mo:⛔";
import Blob "Blob";
import Hash "Hash";
module {
/// Internet Computer principal identifiers.
/// Convert to `Blob` for access to bytes.
public type Principal = Prim.Types.Principal;
/// Conversion.
public let fromActor : (a : act... | Modelica | 5 | cybrowl/motoko-base | src/Principal.mo | [
"Apache-2.0"
] |
import * as React from 'react';
import { ForwardRef, Memo } from 'react-is';
// Simplified polyfill for IE11 support
// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3
const fnNameMatchRegex = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;
export fu... | TypeScript | 5 | omidtajik/material-ui | packages/material-ui-utils/src/getDisplayName.ts | [
"MIT"
] |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell | 4 | warlock135/grpc | tools/distrib/build_ruby_environment_macos.sh | [
"Apache-2.0"
] |
( Generated from test_comprehensions_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _main[ _arg -- ret ]
var _k
var _v
{ 3 4 5 6 7 8 9 }list var! _mylist
{ }list _mylist @ foreach
_v ! pop
_v @ _v @ * swap []<-
repeat var! _squares
{ }list _mylist @ fore... | MUF | 3 | revarbat/pymuv | tests/test_comprehensions_cmp.muf | [
"MIT"
] |
//! Attributes producing expressions in invalid locations
// aux-build:attr-stmt-expr.rs
#![feature(proc_macro_hygiene)]
#![feature(stmt_expr_attributes)]
extern crate attr_stmt_expr;
use attr_stmt_expr::{duplicate, no_output};
fn main() {
let _ = #[no_output] "Hello, world!";
//~^ ERROR expected expression... | Rust | 4 | Eric-Arellano/rust | src/test/ui/proc-macro/attr-invalid-exprs.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="19008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="IOScan.Faults" Type="Str"></Property>
<Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property>
<Property Name="IOScan.NetWatchdogEnabled" Type="Bool">false</Pr... | LabVIEW | 3 | bogdanp-ni/Instrument-Custom-Device | Source/Instrument Addon.lvproj | [
"Apache-2.0"
] |
.App {
font-family: sans-serif;
text-align: center;
display: grid;
place-items: center;
min-height: 100vh;
}
.count {
font-size: 5rem;
color: white;
width: 150px;
height: 150px;
border-radius: 50%;
display: grid;
place-items: center;
cursor: pointer;
user-select: none;
transition: all 100... | CSS | 3 | bkucera2/cypress | npm/react/cypress/component/advanced/radioactive-state/counter/counter.css | [
"MIT"
] |
module Spacing
no : {n : Nat} -> Nat
no {n} = ?no_rhs
spaced : {n : Nat} -> Nat
spaced { n } = ?spaced_rhs
s1 : {n : Nat} -> Nat
s1 { n} = ?s1_rhs
s2 : {n : Nat} -> Nat
s2 { n} = ?s2_rhs
s3 : {n : Nat} -> Nat
s3 { n} = ?s3_rhs
noSEq : {n : Nat} -> Nat
noSEq {n = a} = ?noSEq_rhs
spacedEq : {n : Nat} -> Nat
sp... | Idris | 3 | ska80/idris-jvm | tests/idris2/interactive013/Spacing.idr | [
"BSD-3-Clause"
] |
<div class="modal error hidden" id="modal-delete-selections">
<h2>DELETE</h2>
<p>the selected photo(s) will be gone <strong>forever</strong>!</p>
<b></b>
<section id="deleting-filenames"></section>
<progress id="deleting-selections" class="progress" value="0" max="100"></progress>
<but... | Kit | 2 | pws1453/web-client | source/imports/app/photos-modal-delete-selections.kit | [
"MIT"
] |
crandom
Random
p0
(tRp1
(I2
(I2147483648
I1812115682
I2741755497
I1028055730
I809166036
I2773628650
I62321950
I535290043
I349877800
I976167039
I2490696940
I3631326955
I2107991114
I2941205793
I3199611605
I1871971556
I1456108540
I2984591044
I140836801
I4203227310
I3652722980
I4031971234
I555769760
I697301296
I2347638880
... | SQL | 0 | shawwn/cpython | Lib/test/randv2_64.pck | [
"0BSD"
] |
%p
Issue was #{@issue_status} by #{sanitize_name(@updated_by.name)}
| Haml | 2 | hugorebelo/gitlabhq | app/views/notify/issue_status_changed_email.html.haml | [
"MIT"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 1 | matt-noonan/retypd-data | data/printenv.decls | [
"MIT"
] |
#%RAML 1.0 DataType
properties:
id: integer
name: string
ownerName?: string
| RAML | 3 | zeesh49/tutorials | raml/resource-types-and-traits/types/Foo.raml | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<webview src="./a.html"/>
<script>
var {ipcRenderer} = require('electron')
var wv = document.querySelector('webview')
wv.addEventListener('dom-ready', () => {
ipcRenderer.send('webview-dom-ready', wv.getWebCo... | HTML | 3 | lingxiao-Zhu/electron | spec/fixtures/pages/webview-did-attach-event.html | [
"MIT"
] |
import * as React from 'react';
import Box from '@mui/material/Box';
import Card from '@mui/material/Card';
import CardActions from '@mui/material/CardActions';
import CardContent from '@mui/material/CardContent';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
const bull ... | TypeScript | 4 | dany-freeman/material-ui | docs/data/material/components/cards/OutlinedCard.tsx | [
"MIT"
] |
# 10000 triple objects (10000 triples) more than the default Bison stack size
@prefix : <http://example.org/ns#> .
:a :b :c1, :c2, :c3, :c4, :c5, :c6, :c7, :c8, :c9, :c10, :c11, :c12, :c13, :c14, :c15, :c16, :c17, :c18, :c19, :c20, :c21, :c22, :c23, :c24, :c25, :c26, :c27, :c28, :c29, :c30, :c31, :c32, :c33, :c34, :c35... | Turtle | 0 | joshrose/audacity | lib-src/lv2/sord/tests/test-15.ttl | [
"CC-BY-3.0"
] |
<#
.Synopsis
Uploads from a VSTS release build layout to python.org
.Description
Given the downloaded/extracted build artifact from a release
build run on python.visualstudio.com, this script uploads
the files to the correct locations.
.Parameter build
The location on disk of the extracted b... | PowerShell | 4 | pxeger/cpython | Tools/msi/uploadrelease.ps1 | [
"0BSD"
] |
--TEST--
Constructor promotion cannot be used in a free function
--FILE--
<?php
function __construct(public $prop) {}
?>
--EXPECTF--
Fatal error: Cannot declare promoted property outside a constructor in %s on line %d
| PHP | 2 | NathanFreeman/php-src | Zend/tests/ctor_promotion_free_function.phpt | [
"PHP-3.01"
] |
" When you're writing shell scripts and you are in doubt which test to use,
" which shell environment variables are defined, what the syntax of the case
" statement is, and you need to invoke 'man sh'?
"
" Your problems are over now!
"
" Attached is a Vim script file for turning gvim into a shell script editor.
" It ma... | VimL | 3 | uga-rosa/neovim | runtime/pack/dist/opt/shellmenu/plugin/shellmenu.vim | [
"Vim"
] |
= yield_content :foo do
| baz
| Slim | 1 | osamtimizer/sinatra | sinatra-contrib/spec/content_for/yield_block.slim | [
"MIT"
] |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | 4 | UniiqTV/ExoPlayer | docs/doc/reference/com/google/android/exoplayer2/source/rtsp/RtpPacket.html | [
"Apache-2.0"
] |
vcl 4.0;
import std;
import directors;
import rtstatus;
backend default {
.host = "127.0.0.1";
.port = "8080";
}
backend server1 {
.host = "127.0.0.1";
.port ="8081";
}
backend server2 {
.host = "127.0.0.1";
.port = "8082";
}
sub vcl_init {
new bar = directors.round_robin();
bar.add_backend(server1);
bar.add... | VCL | 4 | lkarsten/libvmod-rtstatus | example.vcl | [
"BSD-2-Clause"
] |
rly foo bigger bar
shh 1
wow
| Dogescript | 0 | erinkeith/dogescript | test/spec/operators/bigger/control/rly/source.djs | [
"MIT"
] |
camera {
location <-100, 50, -250>
look_at <0, 0, 0>
}
light_source {
<-200, 0, 0>
color rgb <1, 1, 1> * 2
}
// Saturn
union {
// Gas giant
sphere {
<0, 0, 0>, 58.232
pigment{
image_map {
gif "map/saturnmap.gif"
map_type 1
... | POV-Ray SDL | 4 | spcask/pov-ray-tracing | src/scene15.pov | [
"MIT"
] |
/*
Security Groups and Rules for Cluster.
Note: Please see our Production Guide for network security
recommendations.
https://gravitational.com/teleport/docs/production/#firewall-configuration
*/
// Create a Security Group
resource "aws_security_group" "cluster" {
name = "${var.cluster_name}-cluster"
vpc_id =... | HCL | 4 | antonio-te/teleport | examples/aws/terraform/starter-cluster/cluster_sg.tf | [
"Apache-2.0"
] |
untyped
global function CodeCallback_RegisterClass_CPlayer
global function PlayerDropsScriptedItems
global function IsDemigod
global function EnableDemigod
global function DisableDemigod
int __nextInputHandle = 0
global struct PlayerSlowDownEffect
{
float slowEndTime
float speedCap // max speed multiplier if thi... | Squirrel | 4 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/class/cplayer.nut | [
"MIT"
] |
100 5 0 0
0 1 6 3 1 5 2 6 4 [0] [0] [0] [0] [0] [0]
1 1 1 74 [10]
2 1 1 73 [14]
3 1 1 62 [14]
4 1 1 42 [5]
5 1 1 57 [8]
6 1 1 30 [10]
7 1 1 63 [13]
8 1 1 89 [9]
9 1 1 26 [11]
10 1 1 14 [13]
11 1 1 93 [10]
12 1 1 95 [6]
13 1 1 85 [5]
14 1 1 28 [6]
15 1 1 99 [12]
16 1 1 49 [13]
17 1 1 81 [12]
18 1 1 59... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/testsetd/psp48.sch | [
"Apache-2.0"
] |
/*
* Copyright 2017-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/gui/URLBar.vala | [
"BSD-2-Clause"
] |
import Types "Types";
/// Demo script types
module {
public type UserId = Types.UserId;
public type VideoId = Types.VideoId;
public type Command = {
#reset : Types.TimeMode ;
#putRewardTransfer : { sender : UserId ; receiver : UserId ; amount : Nat };
#createTestData : { users : [UserId] ; videos : ... | Modelica | 4 | gajendraks/cancan | backend/Demo.mo | [
"Apache-2.0"
] |
#%RAML 1.0 Trait
usage: Use this trait for resources whose response body is a single item
responses:
200:
body:
application/json:
type: <<typeName>>
example: !include /examples/<<typeName>>.json
| RAML | 3 | zeesh49/tutorials | raml/modularization/traits/hasResponseItem.raml | [
"MIT"
] |
fn cplusplus_mode(x: isize) -> &'static isize {
&x
//~^ ERROR cannot return reference to function parameter `x` [E0515]
}
fn main() {}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/borrowck/borrowck-local-borrow-outlives-fn.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
locate port Fw.BufferGet at "Buffer/Buffer.fpp"
locate port Fw.BufferSend at "Buffer/Buffer.fpp"
locate port Fw.Cmd at "Cmd/Cmd.fpp"
locate port Fw.CmdReg at "Cmd/Cmd.fpp"
locate port Fw.CmdResponse at "Cmd/Cmd.fpp"
locate port Fw.Com at "Com/Com.fpp"
locate port Fw.Log at "Log/Log.fpp"
locate port Fw.LogText at "Log/L... | FORTRAN | 3 | AlperenCetin0/fprime | Fw/locs.fpp | [
"Apache-2.0"
] |
sequence&J J J | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_sequence_insert_at_front/test_data_set_0/input_0.pb | [
"Apache-2.0"
] |
#+TITLE: editor/snippets
#+DATE: February 11, 2017
#+SINCE: v2.0
#+STARTUP: inlineimages
* Table of Contents :TOC:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration]... | Org | 4 | leezu/doom-emacs | modules/editor/snippets/README.org | [
"MIT"
] |
<link rel="import" href="../bower_components/polymer/polymer.html">
<script>
(function () {
'use strict';
var ENTER_KEY = 13;
var ESC_KEY = 27;
Polymer({
is: 'td-input',
extends: 'input',
listeners: {
'keyup': '_keyupAction',
'keypress': '_keypressAction'
},
_keypressAction: function(e, detail... | HTML | 4 | dtelaroli/todomvc | examples/polymer/elements/td-input.html | [
"MIT"
] |
0.5 dmetro 0.2 maytrig
# number of units/tubes
10
# amplitude
0.3
# damp
0.2
# shake_max: amount of energy to add back into the system
0
# main resonant frequency
458
# first resonant frequency
600
# second resonant frequency
750
# period of time over which all sound is stopped
0.09
drip
dup dup 3 8 10000 z... | SourcePawn | 1 | aleatoricforest/Sporth | examples/drip.sp | [
"MIT"
] |
//my.ini file
[sitemap]
/home = default:index
/info = default:info
| INI | 2 | donsbot/hhvm | hphp/test/zend/good/ext/standard/tests/general_functions/bug49692.ini | [
"PHP-3.01",
"Zend-2.0"
] |
/**
* This file is part of the Phalcon.
*
* (c) Phalcon Team <team@phalcon.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Phalcon\Html\Helper;
/**
* Class Link
*/
class Link extends AbstractSeries
{
/**
... | Zephir | 4 | chipco/cphalcon | phalcon/Html/Helper/Link.zep | [
"BSD-3-Clause"
] |
include "php.grm"
function main
match [program] _ [program]
end function
| TXL | 1 | grammarware/slps | topics/grammars/php/cordy/PHP345/Txl/php.txl | [
"BSD-3-Clause"
] |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_CODEGEN_SOURCE_POSITION_H_
#define V8_CODEGEN_SOURCE_POSITION_H_
#include <iosfwd>
#include "src/base/bit-field.h"
#include "src/common/glo... | C | 5 | EXHades/v8 | src/codegen/source-position.h | [
"BSD-3-Clause"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:b2dcb5e3f476f7408242ab47bca6db795d5847021440a5f904cc4bfa04df7f44
size 576
| Nit | 0 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Olives/info/arc0006.nit | [
"BSD-3-Clause-LBNL"
] |
<section class="live live--<%= @episode.podcast.slug %> js-live <%= status_class(@episode) %>">
<div class="live-content">
<div class="live-info">
<header class="live-info-header">
<h2 class="live-info-header-show">
<%= EpisodeView.podcast_name_and_number(@episode) %>
</h2>
... | HTML+EEX | 4 | gustavoarmoa/changelog.com | lib/changelog_web/templates/live/show.html.eex | [
"MIT"
] |
<svg version="1.1" class="ionicon-table-status"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="512px" height="512px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<g>
<circle class="dot" cx="256" cy="256" r="64"/>
... | Handlebars | 2 | zadcha/rethinkdb | admin/static/handlebars/table_status_indicator.hbs | [
"Apache-2.0"
] |
<VirtualHost *:80>
ServerAdmin foo@bar.org
DocumentRoot /var/www/airtime/public
<Directory /var/www/airtime/public>
DirectoryIndex index.php
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
| ApacheConf | 3 | krattai/AEBL | interfaces/ATS_VM/dev_tools/fabric/airtime.vhost | [
"BSD-2-Clause"
] |
--TEST--
Error case: class constant as an encapsed containing a variable
--FILE--
<?php
class myclass
{
const myConst = "$myVar";
}
?>
--EXPECTF--
Fatal error: Constant expression contains invalid operations in %s on line %d
| PHP | 3 | thiagooak/php-src | tests/classes/constants_error_005.phpt | [
"PHP-3.01"
] |
rly foo isa Bar
shh 1
wow
| Dogescript | 0 | PinkDiamond1/dogescript | test/language-spec/operators/isa/control-flow/source.djs | [
"MIT"
] |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "rdb_protocol/terms/write_hook.hpp"
#include <string>
#include "clustering/administration/admin_op_exc.hpp"
#include "containers/archive/string_stream.hpp"
#include "rdb_protocol/btree.hpp"
#include "rdb_protocol/error.hpp"
#include "rdb_protocol/func.hp... | C++ | 4 | zadcha/rethinkdb | src/rdb_protocol/terms/write_hook.cc | [
"Apache-2.0"
] |
{
"Version" : 0.2,
"ModuleName" : "Writer",
"Options" : {
"Warnings" : "All",
"PreprocessorDefinitions" : [
"IMPORT_STATIC=\"\""
],
"IncludeDirs" : [
"$(ECERE_SDK_SRC)/ecere/src/gfx/drivers/gl3",
"$(ECERE_SDK_SRC)/ecere/src/gfx/newFonts/cc",
"$(ECERE_... | Ecere Projects | 3 | mingodad/ecere-sdk | samples/guiAndGfx/EcereOffice/Writer/Writer.epj | [
"BSD-3-Clause"
] |
// Copyright 2019 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Protocol Buffer | 4 | mpminardi/grpc | examples/python/data_transmission/demo.proto | [
"Apache-2.0"
] |
Jesper Cockx's test case:
\texttt{-}
\begin{code}
postulate A : Set
\end{code}
| Literate Agda | 2 | cruhland/agda | test/interaction/Token-highlighting-literate.lagda | [
"MIT"
] |
.graphiql-explorer-root {
font-size: 12px;
text-overflow: ellipsis;
overflow: unset;
white-space: nowrap;
margin: 0;
padding: 8px;
font-family: Consolas, Inconsolata, 'Droid Sans Mono', Monaco, monospace;
}
.graphiql-explorer-abstractfields-label {
color: #ca9800;
padding-left: 5px;
}
.graphiql-expl... | CSS | 2 | gh-oss-contributor/graphql-engine-1 | console/src/components/Services/ApiExplorer/OneGraphExplorer/OneGraphExplorer.css | [
"Apache-2.0",
"MIT"
] |
//
// regression test for #8005
macro_rules! test { () => { fn foo() -> i32 { 1; } } }
//~^ ERROR mismatched types
fn no_return() -> i32 {} //~ ERROR mismatched types
fn bar(x: u32) -> u32 { //~ ERROR mismatched types
x * 2;
}
fn baz(x: u64) -> u32 { //~ ERROR mismatch... | Rust | 2 | Eric-Arellano/rust | src/test/ui/liveness/liveness-return-last-stmt-semi.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Modifying a readonly property
--FILE--
<?php
class Test {
readonly public int $prop;
readonly public array $prop2;
public function __construct() {
// Initializing assignments.
$this->prop = 1;
$this->prop2 = [];
}
}
function byRef(&$ref) {}
$test = new Test;
var_dump... | PHP | 4 | NathanFreeman/php-src | Zend/tests/readonly_props/readonly_modification.phpt | [
"PHP-3.01"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_func
rdlong outa, objptr
wrlong arg01, objptr
_func_ret
ret
objptr
long @@@objmem
COG_BSS_START
fit 496
objmem
long 0[1]
org COG_BSS_START
arg01
res 1
fit 496
| Parrot Assembly | 2 | archivest/spin2cpp | Test/Expect/stest108.pasm | [
"MIT"
] |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
void dump(int *arr, int size)
{
int idx;
for (idx = 0; idx < size; idx++)
printf("%08d\n", arr[idx]);
}
void __merge(int *arr, int p, int q, int r)
{
int *tmp;
int i, j, k;
tmp = (int*)malloc((r - p + 1) * sizeof(int));
if (!tm... | C | 5 | shipan3452/algo | c-cpp/12_sorts/merge_sort.c | [
"Apache-2.0"
] |
--- lenses/pg_hba.aug.orig 2018-03-08 17:37:53 UTC
+++ lenses/pg_hba.aug
@@ -81,6 +81,7 @@ module Pg_Hba =
(* View: filter
The pg_hba.conf conf file *)
let filter = (incl "/var/lib/pgsql/data/pg_hba.conf" .
+ incl "%%PREFIX%%/pgsql/data/pg_hba.conf" .
incl "/var/li... | Augeas | 2 | jrmarino/ravensource | bucket_61/augeas/patches/patch-lenses_pg__hba.aug | [
"FTL"
] |
// Code in this file is a heavily modified version of the dynamic loader
// from android's bionic library. Here is the license for that project:
/*
* Copyright (C) 2016 The Android Open Source Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are... | C++ | 5 | dllehr-amd/pytorch | torch/csrc/deploy/loader.cpp | [
"Intel"
] |
%%%
%%% Authors:
%%% Konstantin Popov
%%%
%%% Copyright:
%%% Konstantin Popov, 1997
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation
%%% of Oz 3
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http://www.mozart-oz.org/LICE... | Oz | 5 | Ahzed11/mozart2 | lib/tools/browser/browser/bufsAndStreams.oz | [
"BSD-2-Clause"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:collection';
import 'events.dart';
/// A callback used by [PointerEventResampler.sample] and
/// [PointerEventResampler.stop] to process a r... | Dart | 5 | Mayb3Nots/flutter | packages/flutter/lib/src/gestures/resampler.dart | [
"BSD-3-Clause"
] |
static const uint16_t in_com1[2209] = {
0x1fc8, 0xb0a5, 0xaca3, 0xb043, 0x301e, 0x3831, 0x2ffc, 0xb7d2,
0xb41e, 0xb836, 0xa713, 0x3505, 0x3239, 0x30a9, 0xb61d, 0xb56d,
0xb7f3, 0x2d1d, 0x3590, 0x2f3e, 0x1ad2, 0xb113, 0x3688, 0xacfd,
0xb25b, 0xb124, 0x3512, 0x2890, 0xadd0, 0x328c, 0xb16c, 0xb0f6,
0xb4... | Max | 1 | Trifunik/zephyr | tests/lib/cmsis_dsp/matrix/src/unary_f16.pat | [
"Apache-2.0"
] |
//define classes, interfaces et al
d=s;
class MyClass<X>(-n String, -m String)
{
a =6;
def add(toAdd X) void { }
def do(n int) void
{
this.a= n**5;
}
class Inner
{
}
}
class Singleton
{
}
zzz = new A.C(2,3);
bobby List<Integer> = new List<Integer>(1);
a = actor MyClass<String>(3);
stuff = zzz.a
stu... | Web Ontology Language | 1 | michaeldesu/Concurnas | tests/com/concurnas/compiler/ast/testClasses.owl | [
"MIT"
] |
# kernel printf: this should not be compiled into the "real" kernel because
# it takes up quite a lot of space, but it can be included as needed for
# debugging
include "util.sl";
# compute:
# *pdiv = num / denom
# *pmod = num % denom
# Pass a null pointer if you want to discard one of the results
# https://en.wi... | Slash | 5 | jes/scamp-cpu | kernel/kprintf.sl | [
"Unlicense"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports System.Threading
Imports Microsoft.CodeAnalysis.Completion.Providers
Impo... | Visual Basic | 4 | frandesc/roslyn | src/Features/VisualBasic/Portable/Completion/KeywordRecommenders/Expressions/GetXmlNamespaceKeywordRecommender.vb | [
"MIT"
] |
#+TITLE: lang/faust
#+DATE: July 23, 2019
#+SINCE: v2.1.0
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#plugins][Plugins]]
- [[#features][Features]]
* Description
Add support to Faust language inside emacs.
+ Faust code syntax hightlighting and indentation... | Org | 4 | leezu/doom-emacs | modules/lang/faust/README.org | [
"MIT"
] |
/* This file was generated by upbc (the upb compiler) from the input
* file:
*
* envoy/config/core/v3/backoff.proto
*
* Do not edit -- your changes will be discarded when the file is
* regenerated. */
#ifndef ENVOY_CONFIG_CORE_V3_BACKOFF_PROTO_UPBDEFS_H_
#define ENVOY_CONFIG_CORE_V3_BACKOFF_PROTO_UPBDEFS_H_
... | C | 2 | arghyadip01/grpc | src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.