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 |
|---|---|---|---|---|---|
server {
listen 80;
listen [::]:80;
server_name resources.thehack.org.cn;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name resources.thehack.org.cn;
# ssl settings and certificates
include ssl/ssl.nginxconf;
locatio... | Nginx | 3 | hackinit/local-nginx | sites-available/resources.nginxconf | [
"MIT"
] |
$highlight_theme = hexo-config("highlight_theme")
if $highlight_theme == "normal"
$highlight-deletion = #fdd
$highlight-addition = #dfd
else
$highlight-deletion = #008000
$highlight-addition = #800000
| Stylus | 3 | lllove0/blog-theme | source/css/_common/components/highlight/diff.styl | [
"MIT"
] |
%http://www.cs.man.ac.uk/~pjj/bnf/c_syntax.bnf
%token int_const char_const float_const id string enumeration_const
%%
translation_unit : external_decl
| translation_unit external_decl
;
external_decl : function_definition
| decl
;
function_definition : decl_specs declarator decl_list compound_stat
| d... | Lex | 4 | StyXman/kgt | examples/c_syntax.lex | [
"BSD-2-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/platform/terminal/node/heartbeatService.ts | [
"MIT"
] |
transformed data {
int N = 5;
int K = 1;
array[5] int<lower=0, upper=1> y = {1, 1, 1, 1, 0};
matrix[5, 1] X = [[1], [1], [1], [1], [1]];
}
parameters {
vector[K] b;
}
model {
y ~ bernoulli_logit(X * b);
}
| Stan | 4 | sthagen/stan-dev-stan | src/test/test-models/good/services/bug_2390_model.stan | [
"CC-BY-3.0",
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="xhr-doc-imported.xsl" />
<xsl:template match="/root">
<xsl:call-template name="works" />
</xsl:template>
</xsl:stylesheet>
| XSLT | 2 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/xhr-doc.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
// strings.hb
import stddef;
extern int strcasecmp(char* str1, char* str2);
extern int strncasecmp(char* str1, char* str2, size_t len);
extern char* index(char* src, int ch);
extern char* rindex(char* src, int ch);
| Harbour | 3 | ueki5/cbc | import/strings.hb | [
"Unlicense"
] |
fn main() {
(0..)
.map(
#[target_feature(enable = "")]
//~^ ERROR: attribute should be applied to a function
#[track_caller]
|_| (),
//~^ NOTE: not a function
)
.next();
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/macros/issue-68060.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import std/asyncjs
proc fn1(n: int): Future[int] {.async.} = return n
proc main2() =
proc fn2(n: int): Future[int] {.async.} = return n
proc main3(a: auto) =
proc fn3(n: int): Future[int] {.async.} = return n
proc main4() {.async.} =
proc fn4(n: int): Future[int] {.async.} = return n
discard
| Nimrod | 4 | JohnAD/Nim | tests/js/t17177.nim | [
"MIT"
] |
fn main() {
assert_eq!(1, 2) //~ ERROR: expected `;`
assert_eq!(3, 4) //~ ERROR: expected `;`
println!("hello");
}
| Rust | 2 | mbc-git/rust | src/test/ui/parser/macros-no-semicolon.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{
"BABEL_8_BREAKING": true,
"plugins": ["transform-typescript"]
}
| JSON | 3 | fatash89/babel | packages/babel-plugin-transform-typescript/test/fixtures/class/uninitialized-definite/options.json | [
"MIT"
] |
;; Copyright (c) 2011-2014 Robert Virding. All rights reserved.
;;
;; 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 ... | LFE | 4 | rvirding/chat_demo | src/chat_ws_handler.lfe | [
"BSD-2-Clause"
] |
spring.rsocket.server.port=7000
server.port=8081
| INI | 0 | DBatOWL/tutorials | spring-5-webflux/src/main/resources/application-server.properties | [
"MIT"
] |
extensions [ gis ; GIS extension for NetLogo, needed if using imported shapefiles
nw ; NW extension for NetLogo, needed to create the network shapes for houses, destinations, etc.
... | NetLogo | 5 | hubahuuduwu/abm-workshop | 2020_Training_series_materials/Tram_Commute_Model/TramCommute.nlogo | [
"MIT"
] |
ruleset sample {
meta {
name "Hello World"
description <<
Hello world
>>
author "Phil Windley"
}
// just one rule
rule hello {
select when web pageview
notify("Hello world!", "Just a note to say hello");
}
}
| KRL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/KRL/helloworld.krl | [
"MIT"
] |
##############################################################################
# PM2
##############################################################################
# Start commands
pm2 start <file> # Start an application
pm2 start <app_id> # Start a stopped application
pm2 start <app_id> ecosystem.conf... | Shell | 4 | imdex1009/awesome-cheatsheets | tools/pm2.sh | [
"MIT"
] |
# culture="de-DE"
ConvertFrom-StringData @'
messageDate = Today is
d0 = Sunday (in German)
d1 = Monday (in German)
d2 = Tuesday (in German)
d3 = Wednesday (in German)
d4 = Thursday (in German)
d5 = Friday (in German)
d6 = Saturday (in German)
'@
| PowerShell | 4 | Jellyfrog/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/assets/de-DE/localized.psd1 | [
"MIT"
] |
-- Copyright 2018 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 | 5 | elliottslaughter/regent-tutorial | Regions/2.rg | [
"Apache-2.0"
] |
//
// MatOfKeyPoint.m
//
// Created by Giles Payne on 2019/12/27.
//
#import "MatOfKeyPoint.h"
#import "Range.h"
#import "Point2f.h"
#import "KeyPoint.h"
#import "CvType.h"
#import "ArrayUtil.h"
@implementation MatOfKeyPoint
static const int _depth = CV_32F;
static const int _channels = 7;
#ifdef __cplusplus
- (i... | Objective-C++ | 3 | artun3e/opencv | modules/core/misc/objc/common/MatOfKeyPoint.mm | [
"BSD-3-Clause"
] |
[[howto.hotswapping]]
== Hot Swapping
Spring Boot supports hot swapping.
This section answers questions about how it works.
[[howto.hotswapping.reload-static-content]]
=== Reload Static Content
There are several options for hot reloading.
The recommended approach is to use <<using#using.devtools,`spring-boot-devtool... | AsciiDoc | 4 | Cuiqingqiang/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/hotswapping.adoc | [
"Apache-2.0"
] |
--TEST--
Bug #46843 (CP936 euro symbol is not converted properly)
--EXTENSIONS--
mbstring
--FILE--
<?php
var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936')));
var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE')));
?>
--EXPECT--
string(4) "20ac"
string(2) "80"
| PHP | 3 | NathanFreeman/php-src | ext/mbstring/tests/bug46843.phpt | [
"PHP-3.01"
] |
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/crystal/doctor.el
(unless (executable-find "icr")
(warn! "Couldn't find icr. REPL will not work"))
| Emacs Lisp | 3 | leezu/doom-emacs | modules/lang/crystal/doctor.el | [
"MIT"
] |
Fix rendering in macOS BigSur
See: https://bugreports.qt.io/browse/QTBUG-86513.
Upstream commits (combined in this patch):
- Qt 6.0: 40fb97e97f550b8afd13ecc3a038d9d0c2d82bbb
- Qt 6.0: 3857f104cac127f62e64e55a20613f0ac2e6b843
- Qt 6.1: abee4cdd5925a8513f51784754fca8fa35031732
--- old/qtbase/src/plugins/styles/mac/... | Diff | 4 | apokalyzr/bitcoin | depends/patches/qt/fix_bigsur_style.patch | [
"MIT"
] |
var $g ptr
var $h i32
func $multiwayfunc ( var %p ptr) ptr {
multiway (dread ptr %p) @labdft {
(dread ptr $g): goto @lab1
(add ptr (dread i32 $g, dread i32 $h)): goto @lab0
(conststr ptr "world"): goto @lab9 }
@lab0
return (dread ptr $g)
@labdft
return (conststr ptr "hello")
@lab9
return (add ptr (conststr... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0058-mapleall-irbuild-edge-multiwaystr/Main.mpl | [
"MulanPSL-1.0"
] |
#!/bin/csh
#This script can be used to generate a web page to compare histograms from
#two input root files produced using the EDAnalyzers in RecoEgamma/Examples,
#by running one of:
#
#
#
# "Validation/RecoEgamma/test/PhotonValidator_cfg.py
#
# The default list of histograms (configurable) is based on version V... | Tcsh | 4 | ckamtsikis/cmssw | Validation/RecoEgamma/test/bkgValidation.csh | [
"Apache-2.0"
] |
/*
* This config is the same than tester-l3 but repeats itself for every 4 packet
* size starting at $L.
*
* You can grep the output for RESULT and make a nice graph out of this to see
* how your DUT react to different packet sizes.
*
* A launch line would be :
* sudo bin/click -c 0xf -n 4 -- conf/fastclick/... | Click | 5 | BorisPis/asplos22-nicmem-fastclick | conf/pktgen/tester-l3-loop.click | [
"BSD-3-Clause-Clear"
] |
\require "c@>=0.2.0" | LilyPond | 0 | HolgerPeters/lyp | spec/package_setups/transitive/b@0.2/package.ly | [
"MIT"
] |
--TEST--
ReflectionExtension::getINIEntries()
--INI--
user_agent=php
--FILE--
<?php
$ext = new ReflectionExtension("standard");
$inis = $ext->getINIEntries();
var_dump($inis["user_agent"]);
?>
--EXPECT--
string(3) "php"
| PHP | 3 | thiagooak/php-src | ext/reflection/tests/015.phpt | [
"PHP-3.01"
] |
#!/usr/bin/env bash
# Copyright 2019 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
#
# Unles... | Shell | 3 | yage99/tensorflow | tensorflow/tools/dockerfiles/tests/build-mkl-horovod.sh | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | EngineLessCC/vscode | src/vs/workbench/contrib/format/browser/formatModified.ts | [
"MIT"
] |
(module
(type $none_=>_none (func))
(memory $0 0)
(export "testFor" (func $unify-local-flags/testFor))
(export "testWhile" (func $unify-local-flags/testFor))
(export "testDo" (func $unify-local-flags/testDo))
(export "memory" (memory $0))
(func $unify-local-flags/testFor
(local $0 i32)
loop $for-loop|2
lo... | WebAssembly | 3 | romdotdog/assemblyscript | tests/compiler/unify-local-flags.optimized.wat | [
"Apache-2.0"
] |
expression
expression, term, factor
0, 1, 36, 37, 38, 39, 28, 29
expression -> expression 38 term | expression 39 term | term
term -> term 36 factor | term 37 factor | factor
factor -> 28 expression 29 | 0 | 1
| Rouge | 3 | vampy/university | compilers/labs/lab4/src/step2/expression.rg | [
"MIT"
] |
/* Copyright 2017-2020 The Verible 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 o... | Lex | 5 | imphil/verible | verilog/parser/verilog.lex | [
"Apache-2.0"
] |
main() return;
| PAWN | 0 | TheFuseGamer/SampSharp | env/gamemodes/empty.pwn | [
"Apache-2.0"
] |
package jadx.core.clsp;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import jadx.core.dex.instructions.args.ArgType;
/**
* Class node in classpath graph
*/
public class ClspClass {
private final ArgType ... | Java | 4 | mazhidong/jadx | jadx-core/src/main/java/jadx/core/clsp/ClspClass.java | [
"Apache-2.0"
] |
[[import autoload from require "lapis.util"
autoload "models"
]]
| MoonScript | 1 | tommy-mor/lapis | lapis/cmd/templates/models.moon | [
"MIT",
"Unlicense"
] |
BX2_newJ^K8?q
@ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_momentum_multiple/test_data_set_0/output_1.pb | [
"Apache-2.0"
] |
<html><body><div sec:authentication="name"></div></body></html>
| HTML | 1 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-autoconfigure/src/test/resources/templates/security-dialect.html | [
"Apache-2.0"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3
#pragma ModuleName=SIDAMConfig
#ifndef SIDAMshowProc
#pragma hide = 1
#endif
#include "SIDAM_Utilities_misc"
// Return keys of a table as a list
Function/S SIDAMConfigKeys(String tableName)
Variable refNum
Open/R/Z refNum as SIDAMConfigPath(0)
proc... | IGOR Pro | 4 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Config.ipf | [
"MIT"
] |
--TEST--
$GLOBALS resize
--FILE--
<?php
function foo() {
for ($i = 0; $i < 100; $i++) {
$GLOBALS["A". $i] = 1; //trigger resize
}
return "ops";
}
$GLOBALS[foo()] = "ops";
?>
DONE
--EXPECT--
DONE
| PHP | 1 | thiagooak/php-src | Zend/tests/globals_005.phpt | [
"PHP-3.01"
] |
// FIR Sinc filter tests, Perry R. Cook, 10/12
// Stream of rapid impulse responses, designed
// be looked at in wave/spectral display
Impulse imp => FIR f => WvOut w => dac;
w.wavFilename("temp.wav");
1.0 => imp.gain;
4096 => f.order;
4096 :: samp => now;
4096 :: samp => now;
2.0 => f.sinc; 1.0 => imp.next;
4096 ... | ChucK | 3 | ccdarabundit/chugins | FIR/examples/FIRSincImpulseTests.ck | [
"MIT"
] |
#!/usr/bin/env sage
import copy
import collections
import functools
import logging
import operator
import json
import sys
# A point on a curve similar to a target prime curve (same p, a, different b) with small
# prime order n.
AttackPoint = collections.namedtuple("AttackPoint", ["b", "gx", "gy", "n"])
AttackPoint.AsS... | Sage | 5 | BearerPipelineTest/google-ctf | 2021/quals/crypto-tiramisu/challenge/sage/find_attack_points.sage | [
"Apache-2.0"
] |
\section{asm/gbz80/types.h File Reference}
\label{asm/gbz80/types.h}\index{asm/gbz80/types.h@{asm/gbz80/types.h}}
Types definitions for the gb.
\subsection*{Typedefs}
\begin{CompactItemize}
\item
\label{asm/gbz80/types.h_a2}
\index{INT8@{INT8}!asm/gbz80/types.h@{asm/gbz80/types.h}}\index{asm/gbz80/types.h@{asm/gbz8... | TeX | 4 | asiekierka/gb-studio | buildTools/win32-ia32/gbdk/doc/libc/latex/asm_gbz80_types.h.tex | [
"MIT"
] |
global function BobMap_InitTempProps
void function BobMap_InitTempProps()
{
PrecacheModel( $"models/vistas/planet_blue_sun.mdl" )
CreatePropDynamic( $"models/vistas/planet_blue_sun.mdl", GetEnt( "skybox_cam_level" ).GetOrigin(), GetEnt( "skybox_cam_level" ).GetAngles() )
} | Squirrel | 3 | GeckoEidechse/NorthstarMods | Northstar.Custom/mod/scripts/vscripts/mp/levels/mp_bob_temp_props.nut | [
"MIT"
] |
# Un mondo più realistico
Nella situazione citata, Pierino riusciva a muoversi quasi senza stancarsi o avere fame. In un mondo più realistico, ci si deve sedere e riposare di tanto in tanto, e anche nutrirsi. Si rende questo mondo più realistico, implementando le seguenti regole:
1. Spostandosi da un luogo all'altro,... | Markdown | 3 | subramanir2143/ML-For-Beginners | 8-Reinforcement/1-QLearning/translations/assignment.it.md | [
"MIT"
] |
/**
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
export default function transformer(file, api, options) {
const j = api.jscodeshift;
const root = j(file.source);
const printOptions = options.printOptions;
root.findJSXElements('Tabs').forEach(({ node }) => {
... | JavaScript | 5 | dany-freeman/material-ui | packages/mui-codemod/src/v5.0.0/tabs-scroll-buttons.js | [
"MIT"
] |
<div class="modal error hidden" id="modal-delete-folder" fid="">
<h2>DELETE</h2>
<p>everything in this folder will be gone <strong>forever</strong>!</p>
<b></b>
<section>
<p class="bold" id="deleting-foldername">A long foldername</p>
</section>
<progress id="deleting-f... | Kit | 3 | pws1453/web-client | source/imports/app/docs-modal-delete-folder.kit | [
"MIT"
] |
<template>
<v-container fluid>
<v-switch v-model="switchMe">
<template v-slot:label>
Turn on the progress: <v-progress-circular
:indeterminate="switchMe"
:value="0"
size="24"
class="ml-2"
></v-progress-circular>
</template>
</v-switch>
</v-... | Vue | 3 | mark-gene/vuetify | packages/docs/src/examples/v-switch/slot-label.vue | [
"MIT"
] |
"""Tests for tcp component."""
| Python | 0 | domwillcode/home-assistant | tests/components/tcp/__init__.py | [
"Apache-2.0"
] |
#+TITLE: lang/julia
#+DATE: April 8, 2020
#+SINCE: v1.3
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#language-server][Language Server]]
- [[#lsp-jul... | Org | 4 | leezu/doom-emacs | modules/lang/julia/README.org | [
"MIT"
] |
Strict
Import "bmk_modutil.bmx"
Import "bmk_bank.bmx"
Import "bmk_modinfo.bmx"
Function Zap( path$,stream:TStream )
If Not path Return False
Local name$=StripDir( path )
Local skip=False
If name[..1]="."
skip=True
Else If name.ToLower().EndsWith( ".bak" )
skip=True
EndIf
If skip
stream.WriteLine... | BlitzMax | 4 | jabdoa2/blitzmax | src/bmk/bmk_zap.bmx | [
"Zlib"
] |
a { padding: 0 1 0px 1px } | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/4WSp4-HbKB-f1GLF00sf6A/input.css | [
"Apache-2.0"
] |
'reach 0.1';
const Common = {
get: Fun([], Data({ None: Null, Some: UInt })),
put: Fun([UInt], Null),
};
export const main =
Reach.App(
{ },
[Participant('Alice',
{ ...Common })
],
(Alice) => {
const f = (m) => m.match({
None: 4,
Some: i => i,
});
const ... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/n/match_no_closure.rsh | [
"Apache-2.0"
] |
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
TextArea {
id: logDisplay
readOnly: true
text: torInstance.logMessages.join('\n')
textFormat: TextEdit.PlainText
wrapMode: TextEdit.Wrap
Connections {
target: torInstance.process
onLogMessage: {
... | QML | 4 | garrettr/ricochet | src/ui/qml/TorLogDisplay.qml | [
"OpenSSL"
] |
---
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r, echo=FALSE, message = FALSE, warnings = FALSE}
library(tidyverse)
#df <- readr::read_rds("2019-02-17_tidy_tuesday_tweets.rds")
df <- rtweet::search_tweets("#tidytuesday", n = 18000, include_rts = FALSE)
clean_d... | RMarkdown | 5 | StephRoark/tidytuesday-1 | community_resources/code_chunks/weekly_collection.rmd | [
"CC0-1.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | Thrift | 3 | Jimexist/thrift | test/ManyOptionals.thrift | [
"Apache-2.0"
] |
scriptname _Camp_LightFireFurnScript extends ObjectReference
import CampUtil
import _CampInternal
import Math
bool property is_stone auto
{ Set to TRUE if this lighting furniture is for Strike Stone. }
bool property is_flamespell auto
{ Set to TRUE if this lighting furniture is for Flame Spell. }
Actor property Play... | Papyrus | 5 | chesko256/Campfire | Scripts/Source/_Camp_LightFireFurnScript.psc | [
"MIT"
] |
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Shell | 3 | deepneuralmachine/google-research | dialogue_ope/airdialogue_ope/script/debug.sh | [
"Apache-2.0"
] |
#!/usr/bin/env sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
case "$1" in
--inspect*) INSPECT="$1"; shift;;
esac
ROOT="$(dirname "$0")"
"$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" --compatibility=1.63 "$@"
| Shell | 3 | sbj42/vscode | resources/server/bin/server-old.sh | [
"MIT"
] |
# Copyright 1999-2020 Random Person
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: non-gentoo-copyright.eclass
# @MAINTAINER:
# Random Dev <random.dev@gentoo.org>
# @AUTHOR:
# Random Dev <random.dev@gentoo.org>
# @BLURB: Stub eclass.
| Gentoo Eclass | 1 | floppym/pkgcheck | testdata/repos/gentoo/eclass/non-gentoo-copyright.eclass | [
"BSD-3-Clause"
] |
%%{
# RFC 3629 4. Syntax of UTF-8 Byte Sequences
# https://tools.ietf.org/html/rfc3629#section-4
machine rfc3629_utf8;
alphtype int;
utf8_tail = 0x80..0xBF;
utf8_2byte = 0xC2..0xDF utf8_tail;
utf8_3byte = 0xE0 0xA0..0xBF utf8_tail |
0xE1..0xEC utf8_tail utf8_tail |
... | Ragel in Ruby Host | 5 | ylecuyer/mail | lib/mail/parsers/rfc3629_utf8.rl | [
"MIT"
] |
<?Lassoscript
// Last modified 8/31/09 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= OutputGallery }
{Description= Outputs a Gallery }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 1/14/09 }
{Usage= OutputGallery }
{ExpectedResults= Outp... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/OutputGallery.lasso | [
"MIT"
] |
<html><body>Hello!</body></html> | FreeMarker | 1 | rmartinc/keycloak | testsuite/integration-arquillian/servers/auth-server/services/testsuite-providers/src/main/resources/theme-resources/templates/test.ftl | [
"Apache-2.0"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Henrique Azevedo <pintasart.mail@gmail.com>, 2018
# Jannis Leidel <jannis@leidel.info>, 2011
# jorgecarleitao <jorgecarleitao@gmail.com>, 2014
# Nuno Mariz <nmariz@gmail.com>, 2012-2013,2018
# Raúl Pedro Fernandes Santos, 2014
m... | Gettext Catalog | 4 | jpmallarino/django | django/contrib/humanize/locale/pt/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
# 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 applica... | Python | 5 | akshit-protonn/models | research/object_detection/data_decoders/tf_sequence_example_decoder_test.py | [
"Apache-2.0"
] |
{
outPath: './remote.mp4',
allowRemoteRequests: true,
audioFilePath: './assets/High [NCS Release] - JPB (No Copyright Music)-R8ZRCXy5vhA.m4a',
clips: [
{ layers: [{ type: 'image', path: 'https://picsum.photos/400/400' }] },
{ layers: [{ type: 'image', path: 'https://picsum.photos/200/400' }] },
{ l... | JSON5 | 2 | aaverty/editly | examples/remote.json5 | [
"MIT"
] |
structure A = struct
signature S = sig
val x : int
end
end
structure B : A.S = struct
val x = 42
end
| UrWeb | 3 | apple314159/urweb | tests/sigInModule.ur | [
"BSD-3-Clause"
] |
source "../tests/includes/init-tests.tcl"
source "../tests/includes/job-utils.tcl"
test "WORKING returns the retry time for the job" {
set qname [randomQueue]
set id [D 0 addjob $qname myjob 5000 replicate 3 retry 123]
assert {[D 0 working $id] == 123}
D 0 ackjob $id
}
test "WORKING can prevent the jo... | Tcl | 3 | justincase/disque | tests/cluster/tests/11-waiting-nack.tcl | [
"BSD-3-Clause"
] |
// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "clustering/generic/nonoverlapping_regions.hpp"
bool valid_regions_helper(const std::vector<region_t> ®ionvec,
const std::set<region_t> ®ionset) {
// Disallow empty regions.
if (regionset.find(region_t()) != regions... | C++ | 4 | zadcha/rethinkdb | src/clustering/generic/nonoverlapping_regions.cc | [
"Apache-2.0"
] |
namespace Ryujinx.HLE.HOS.Services.Ptm.Psm
{
enum ChargerType
{
None,
ChargerOrDock,
UsbC
}
} | C# | 3 | BSoDGamingYT/Ryujinx | Ryujinx.HLE/HOS/Services/Ptm/Psm/Types/ChargerType.cs | [
"MIT"
] |
# Práctica 1 - Parte 1
¿Qué patrón es más fácil de desarrollar (Monolítica vs. Microservicios) y por qué?
- El patrón que podría ser más fácil de aplicar sería el de microservicios ya que la manera en como se organiza el proyecto mediate módulos por separado y que entre ellas tengan una comunicación para realizar las ... | RMarkdown | 3 | jarmarj/DAS_Sistemas | Ene-Jun-2021/monjaras-granados-alicia-montserrat/practica1_SegundoParcial/parte1.rmd | [
"MIT"
] |
fn get_nprocs { m : nat | m > 0 }() : int(m) =
"ext#"
| ATS | 2 | lambdaxymox/polyglot | SATS/nproc.sats | [
"BSD-3-Clause"
] |
a
b
b
/a
/b
/c
a/b
a/b/c
//a
//b
//c
a//b
a//c
b//c
| Max | 0 | yapingxin/libxml2 | v2.9.7/libxml2-2.9.7/test/pattern/simple.pat | [
"MIT"
] |
--TEST--
Unserialize leak in SplObjectStorage
--FILE--
<?php
$payload = 'C:16:"SplObjectStorage":113:{x:i:2;O:8:"stdClass":1:{},a:2:{s:4:"prev";i:2;s:4:"next";O:8:"stdClass":0:{}};r:7;,R:2;s:4:"next";;r:3;};m:a:0:{}}';
try {
var_dump(unserialize($payload));
} catch (Exception $e) {
echo $e->getMessage(), "\n";... | PHP | 3 | thiagooak/php-src | ext/standard/tests/serialize/unserialize_leak.phpt | [
"PHP-3.01"
] |
@import url('import1.css');
.testClass {
color: #000;
}
| CSS | 2 | ravitejavalluri/brackets | test/spec/LiveDevelopment-MultiBrowser-test-files/simple1.css | [
"MIT"
] |
package com.baeldung.hibernate;
import com.baeldung.hibernate.pojo.Employee;
import com.baeldung.hibernate.pojo.EntityDescription;
import com.baeldung.hibernate.pojo.Phone;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import ja... | Java | 5 | DBatOWL/tutorials | persistence-modules/hibernate-mapping/src/test/java/com/baeldung/hibernate/DynamicMappingIntegrationTest.java | [
"MIT"
] |
Definitions
-----------
n: Features
m: Datapoints
K: Clusters
X: m×n dataset
class kMeans
####initialize
Initialize a new k-means clustering object.
Pass the following options, and proceed to clustering.
Options:
* `K` (Integer) *Default: 5*
The number of clusters.
* `maxIterations` (Integer) *Def... | Literate CoffeeScript | 5 | Nacalyator/Statistics | node_modules/kmeans-js/src/kMeans.litcoffee | [
"MIT"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. worker.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 RAND-NUM PIC 9(2).
01 CURRENT-TIME.
05 T-HOURS PIC 99.
05 T-MINS PIC 99.
05 T-SECS PIC 99.
05 T-MS PIC 999.
... | COBOL | 3 | 6un9-h0-Dan/cobaul | example/hello.cob | [
"MIT"
] |
untyped
global function MenuPrivateMatch_Init
global function InitPrivateMatchMenu
global function HandleLockedCustomMenuItem
global function GetMapImageForMapName
struct
{
var menu
array matchStatusRuis
array MMDevStringElems
array teamSlotBackgrounds
array teamSlotBackgroundsNeutral
var enemyTeamBackgro... | Squirrel | 5 | GeckoEidechse/NorthstarMods | Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut | [
"MIT"
] |
//This configuration file is to test the icm6error element.
//To run the test with another machine, you can change the source address in InfiniteSource (i.e.3ffe:1ce1:2:0:200::2) to the ip6 machine that you want to send the packet to. Also, change the (IP6ADDR ETHADD) pair of IP6NDSolicitor to your click router mach... | Click | 5 | MacWR/Click-changed-for-ParaGraph | conf/icmp6error.click | [
"Apache-2.0"
] |
/*
* 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 | 5 | xcffl/nuvolaruntime | src/nuvolakit-runner/components/actions/ActionsBinding.vala | [
"BSD-2-Clause"
] |
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils bash-completion-r1
DESCRIPTION="Systems programming language from Mozilla"
HOMEPAGE="https://www.rust-lang.org/"
MY_SRC_URI="https://static.rust-lang.org/dist/rust-nightly"
MY_SRC_SRC_URI="ht... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | dev-lang/rust-bin/rust-bin-9999.ebuild | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
# 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.
set -ex
readonly SCRIPTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly ROOT_DIR="$SCRIPTS_DIR/.."
function is_expected_fa... | Shell | 4 | Mayb3Nots/flutter | dev/bots/codelabs_build_test.sh | [
"BSD-3-Clause"
] |
// run-pass
#![allow(dead_code)]
// regression test for issue 4875
// pretty-expanded FIXME #23616
pub struct Foo<T> {
data: T,
}
fn foo<T>(Foo{..}: Foo<T>) {
}
pub fn main() {
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-4875.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{% extends 'tests/_data/fixtures/views/templates/b.volt' %}{% block body %}###{{ super() }}###{% endblock %}
| Volt | 2 | tidytrax/cphalcon | tests/_data/fixtures/views/templates/c.volt | [
"BSD-3-Clause"
] |
module openconfig-transport-line-common {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/transport-line-common";
prefix "oc-line-com";
// import some basic types
import iana-if-type { prefix ift; }
import openconfig-extensions { prefix oc-ext; }
import openconfig-interfaces { p... | YANG | 5 | dorado18/public | release/models/optical-transport/openconfig-transport-line-common.yang | [
"Apache-2.0"
] |
# Parameters
param N := read "network.csv" as "1n" use 1 comment "#";
set Ns := {0..N-1};
set N0 := {1..N-1};
param L := read "network.csv" as "2n" use 1 comment "#";
set Ls := {1..L};
param piTp := read "network.csv" as "3n" use 1 comment "#";
param piTd := read "network.csv" as "4n" use 1 comment "#";
param S... | Zimpl | 4 | sebMathieu/dsima | simulator/models/DSO-linearOpf-accessAgreement.zpl | [
"BSD-3-Clause"
] |
#summary People who contributed to this project
= About =
A successful project requires many people to play many roles. Some members write code or documentation, while others are valuable as testers, submitting patches and suggestions.
==Founders==
|| *Name* ||
|| [https://github.com/alexo Alex Objelean] ||
|| Bogd... | MediaWiki | 2 | supakiad/wro4j | docs/TheTeam.wiki | [
"Apache-2.0"
] |
apiVersion: release-notes/v2
kind: bug-fix
area: istioctl
releaseNotes:
- |
**Fixed** `istioctl profile diff` and `istioctl profile dump` have unexpected info logs.
| YAML | 1 | rveerama1/istio | releasenotes/notes/34325.yaml | [
"Apache-2.0"
] |
/* 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 | 5 | EricRemmerswaal/tensorflow | tensorflow/core/kernels/gpu_prim_helpers.h | [
"Apache-2.0"
] |
BH1J ? | PureBasic | 2 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_adam_multiple/test_data_set_0/input_8.pb | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>Spring Utils Demo</title>
<style type="text/css">
.param{
color:green;
font-style: italic;
}
</style>
</head>
<body>
Parameter set by you: <p th:text="${parameter}" class="param"/>
</body>
</html> | HTML | 3 | zeesh49/tutorials | spring-custom-aop/src/main/resources/templates/other.html | [
"MIT"
] |
#+TITLE: lang/factor
#+DATE: December 3, 2019
#+SINCE: v3.0.0
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#configuration][Configuration]]
-... | Org | 3 | leezu/doom-emacs | modules/lang/factor/README.org | [
"MIT"
] |
/* eslint react/no-danger: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'underscore';
import {Actions, WorkspaceStore, DOMUtils} from 'nylas-exports';
import NylasStore from 'nylas-store';
const TipsBackgroundEl = document.createElement('tutorial-tip-background');
const TipsContain... | JSX | 4 | cnheider/nylas-mail | packages/client-app/src/components/decorators/has-tutorial-tip.jsx | [
"MIT"
] |
Rem
Float is a 32 bit floating point BlitzMax primitive type.
End Rem
Local a:float
a=1
for i=1 to 8
print a
a=a*0.1
next
for i=1 to 8
a=a*10
print a
next
| BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/float.bmx | [
"Zlib"
] |
:coffeescript
alert "Hello, Coffee!" | Scaml | 0 | maslovalex/scalate | scalate-core/src/test/resources/org/fusesource/scalate/scaml/coffee.scaml | [
"Apache-2.0"
] |
@keyframes why{0%{color:red}100%{color:blue}} | CSS | 3 | Theo-Steiner/svelte | test/css/samples/global-keyframes-with-no-elements/expected.css | [
"MIT"
] |
# this is a GNUPLOT script generating the figure of spi_master_freq_tv.png
set xlabel "Input delay (ns)"
set xrange [0: 125]
set ylabel "Fmax (MHz)"
set yrange [0: 81]
set xtics 12.5 textcolor rgb "black"
set ytics 10 textcolor rgb "black"
set border 3 lc rgb "gray" lw 2
set grid lt -1 lc rgb "gray" lw 2
set samples 1... | Gnuplot | 3 | DCNick3/esp-idf | docs/_static/diagrams/spi/spi_master_freq_tv.plt | [
"Apache-2.0"
] |
fileFormatVersion: 2
guid: 3def27a586fdac545a71c421a4593354
timeCreated: 1483528414
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | jiahaodev/xLua | Test/UnitTest/StreamingAssets/luaCallCsReflect.lua.meta | [
"BSD-3-Clause"
] |
.update-package-dependencies-status .loading.inline-block {
vertical-align: text-bottom;
}
| Less | 1 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | packages/update-package-dependencies/styles/update-package-dependencies.less | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.