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 |
|---|---|---|---|---|---|
/*
*
* myname.lex : A sample Flex program
* that does token replacement.
*/
%%
%NAME { printf("%s",getenv("LOGNAME")); }
%HOST { printf("%s",getenv("HOST")); }
%HOSTTYPE { printf("%s",getenv("HOSTTYPE"));}
%HOME { printf("%s",getenv("HOME")); }
%%
| Lex | 4 | DemiMarie/flex | examples/manual/myname.lex | [
"BSD-4-Clause-UC"
] |
"""Generate config flow file."""
from __future__ import annotations
import json
from .model import Config, Integration
BASE = """
\"\"\"Automatically generated by hassfest.
To update, run python3 -m script.hassfest
\"\"\"
# fmt: off
FLOWS = {}
""".strip()
UNIQUE_ID_IGNORE = {"huawei_lte", "mqtt", "adguard"}
de... | Python | 5 | MrDelik/core | script/hassfest/config_flow.py | [
"Apache-2.0"
] |
package com.alibaba.json.bvt.bug;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
import com.alibaba.json.bvtVO.PushMsg;
public class Bug_for_sankun extends TestCase {
public void test_sankun() throws Exception {
PushMsg bean = new PushMsg();
JSON.toJSONString(bean);
}
}
| Java | 2 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/bug/Bug_for_sankun.java | [
"Apache-2.0"
] |
TDObjectGatewayLeafNode{#name:'Tode',#contents:'| repoSpec gitCheckout |
gitCheckout := GsFile _expandEnvVariable: \'GS_SHARED_GIT_CHECKOUT_TODE\' isClient: false.
repoSpec := GsFile _expandEnvVariable: \'GS_SHARED_REPO_TODE\' isClient: false.
^TDProjectSpecEntryDefinition new
baseline: \'Tode\'
repository: repo... | STON | 3 | ahdach/GsDevKit_home | sys/default/server/projects/Tode.ston | [
"MIT"
] |
title: Test Title
author: Test Author
created: 2020-08-08
url: http://jpd236.github.io/kotwords
copyright: (c) 2020 Kotwords
notes:
rows:
- - clue: Row 1
answer: AAAAAAAAA
- - clue: Row 2 Clue 1
answer: AAAAAAA
- clue: Row 2 Clue 2
answer: AAAAAAAA
- - clue: Row 3 Clue 1
answer: AAAAAAA
- clue: Row... | Rouge | 1 | jpd236/kotwords | src/commonTest/resources/rows-garden/test-mini.rg | [
"Apache-2.0"
] |
#include "caffe2/operators/create_scope_op.h"
C10_DEFINE_bool(
caffe2_workspace_stack_debug,
false,
"Enable debug checks for CreateScope's workspace stack");
namespace caffe2 {
CAFFE_KNOWN_TYPE(detail::WorkspaceStack);
template <>
bool CreateScopeOp<CPUContext>::RunOnDevice() {
auto* ws_stack = Operato... | C++ | 5 | Hacky-DH/pytorch | caffe2/operators/create_scope_op.cc | [
"Intel"
] |
[[getting-started]]
= Getting Started
include::attributes.adoc[]
If you are getting started with Spring Boot, or "`Spring`" in general, start by reading this section.
It answers the basic "`what?`", "`how?`" and "`why?`" questions.
It includes an introduction to Spring Boot, along with installation instructions.
We ... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/getting-started.adoc | [
"Apache-2.0"
] |
fileFormatVersion: 2
guid: 08e4b0da54cb4d56bfcbae22dd49ab8d
timeCreated: 1600906388 | Unity3D Asset | 0 | mattinjersey/ml-agents | com.unity.ml-agents.extensions/Runtime/Match3/Match3ActuatorComponent.cs.meta | [
"Apache-2.0"
] |
tests/cases/compiler/arithmeticOnInvalidTypes.ts(3,9): error TS2365: Operator '+' cannot be applied to types 'Number' and 'Number'.
tests/cases/compiler/arithmeticOnInvalidTypes.ts(4,10): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
tests/cases... | Text | 3 | nilamjadhav/TypeScript | tests/baselines/reference/arithmeticOnInvalidTypes.errors.txt | [
"Apache-2.0"
] |
- view: _opportunity_history
sql_table_name: salesforce._opportunity_history
fields:
# dimensions #
- dimension: id
primary_key: true
sql: ${TABLE}.id
- dimension: amount
type: number
sql: ${TABLE}.amount
- dimension_group: close
type: time
timeframes: [date, week, month]
conve... | LookML | 4 | rsharma03/blocks_salesforce | submodules/opportunity_snapshot/_opportunity_history.view.lookml | [
"MIT"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright 2017-2018 Paulo Moura <pmoura@logtalk.org>
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with t... | Logtalk | 4 | PaulBrownMagic/logtalk3 | library/expecteds/expected_with_filter.lgt | [
"Apache-2.0"
] |
CREATE DATABASE `alter_random` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
| SQL | 1 | suryatmodulus/tidb | br/tests/lightning_alter_random/data/alter_random-schema-create.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux && (mips64 || mips64le)
// +build linux
// +build mips64 mips64le
#include "textflag.h"
//
// System calls for mips64, Linux
//
// func Sysc... | GAS | 3 | rleungx/go | src/syscall/asm_linux_mips64x.s | [
"BSD-3-Clause"
] |
#!./parrot -Oc -Cj
#
# Ack by Leopold Toetsch
# Fib and Tak by Joshua Isom
# use less registers (leo)
# time ./parrot -Oc -Cj recursive-2.pir 11
# real 2.32 s (AMD X2@2000)
.sub main :main
.param pmc argv
.local int argc, n
argc = argv
n = 1
unless argc == 2 goto argsok
$S0 = argv[1]
n ... | Parrot | 5 | kragen/shootout | bench/recursive/recursive.parrot | [
"BSD-3-Clause"
] |
create database if not exists tool_135; | SQL | 2 | imtbkcat/tidb-lightning | tests/tool_135/data/tool_135-schema-create.sql | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<h2>en</h2>
<table border="1">
<xsl:for-each selec... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/sort-locale.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
import { graphql } from "gatsby"
import React from "react"
export default function One({ data }) {
return <div>Template 2. Node id {data.testNode.id}</div>
}
export const query = graphql`
query {
testNode(id: { eq: "2" }) {
id
}
}
`
| JavaScript | 3 | waltercruz/gatsby | integration-tests/node-manifest/src/templates/two.js | [
"MIT"
] |
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#pragma include __INCLUDE__ + ";" + "setup\idp\"
#include <idp.iss>
#define AppName "AppGet"
#define AppPublisher "AppGet"
#define AppURL "https://appget.net/"
#define SupportURL "https://github... | Inno Setup | 4 | shakeyourbunny/appget | setup/appget.iss | [
"Apache-2.0"
] |
@motorway: #F56544;
@trunk: @motorway;
@primary: #FFC53C;
@secondary: @primary;
@road: #ccc;
@track: @road;
@footway: #ac9;
@cycleway: #9ca;
#roads::line {
[zoom>=8][zoom<=12] {
[type='motorway'] { line-color:@motorway; }
[type='trunk'] { line-color:@trunk; }
[type='motorway'],
[ty... | CartoCSS | 4 | FreeYeti/tilemill | examples/open-streets-dc/highway.mss | [
"BSD-3-Clause"
] |
- if @status == 401
| Unauthorized!
- elsif @status == 404
| Page not found!
- elsif @status == 422
| Unprocessable Entity
- else
| Something's wrong with our lighthouse.
| Slim | 3 | phulei/dockerlabs | play-with-docker/Portus/app/views/errors/_status_title.html.slim | [
"MIT"
] |
module com.networknt.prometheus {
exports com.networknt.metrics.prometheus;
requires com.networknt.audit;
requires com.networknt.config;
requires com.networknt.handler;
requires com.networknt.utility;
requires com.networknt.client;
requires simpleclient;
requires simpleclient.common;
... | Jasmin | 3 | KellyShao/light-4j | prometheus/src/main/java/module-info.j | [
"Apache-2.0"
] |
/*
*
* Copyright 2018 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 agree... | Objective-C++ | 5 | warlock135/grpc | test/core/iomgr/ios/CFStreamTests/CFStreamClientTests.mm | [
"Apache-2.0"
] |
self: super:
# Overlay that adds `buildToolbox`, an enhanced version of `buildEnv`
{
buildToolbox = super.callPackage ./build-toolbox.nix { };
}
| Nix | 2 | fairhopeweb/postgrest | nix/overlays/build-toolbox/default.nix | [
"MIT"
] |
<%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
%if message:
${render_msg( message, 'done' )}
%endif
<div class="report">
<div class="reportBody">
<h3 align="center">
User Registrations for ${month_label} ${year_label}
</h3>
<h4 al... | Mako | 4 | rikeshi/galaxy | templates/webapps/reports/registered_users_specified_month.mako | [
"CC-BY-3.0"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Estimate all GARCH model parameters (gamma, omega, alpha and beta)
** with Maximum Likelikhood many times. s.t. Elog(alpha_0 z_t^2 + beta_0) < 0. (or simply alpha + beta <1) (Since alpha>0 and beta>0)
**
** Date:
** 10/01/2015
**
** Author:
** ... | Ox | 5 | tamerdilaver/Group4_Code_Data | CS_SIM_0_GARCH.ox | [
"MIT"
] |
POM_ARTIFACT_ID=converter-gson
POM_NAME=Converter: Gson
POM_DESCRIPTION=A Retrofit Converter which uses Gson for serialization.
| INI | 1 | MGaetan89/retrofit | retrofit-converters/gson/gradle.properties | [
"Apache-2.0"
] |
module Svc {
@ A rate group driver component with input and output cycle ports
passive component RateGroupDriver {
@ Cycle input to the rate group driver
sync input port CycleIn: Cycle
@ Cycle output from the rate group driver
output port CycleOut: [RateGroupDriverRateGroupPorts] Cycle
}
}
| FORTRAN | 4 | AlperenCetin0/fprime | Svc/RateGroupDriver/RateGroupDriver.fpp | [
"Apache-2.0"
] |
; RUN: %swift-llvm-opt -mtriple i686-windows -swift-merge-functions -swiftmergefunc-threshold=4 %s | %FileCheck %s
@g = external global i32
define dllexport i32 @f(i32 %x, i32 %y) {
%sum = add i32 %x, %y
%sum2 = add i32 %sum, %y
%l = load i32, i32* @g, align 4
%sum3 = add i32 %sum2, %y
ret i32 %sum3
}
defi... | LLVM | 3 | gandhi56/swift | test/LLVMPasses/merge_func_coff.ll | [
"Apache-2.0"
] |
package com.baeldung.di.spring;
public class AudioBookServiceImpl implements AudioBookService {
}
| Java | 1 | DBatOWL/tutorials | spring-di/src/main/java/com/baeldung/di/spring/AudioBookServiceImpl.java | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M10.83 8H21V6H8.83l2 2zm5 5H18v-2h-4.17l2 2zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41L14 16.83z"
}), 'Fil... | JavaScript | 4 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/FilterListOffTwoTone.js | [
"MIT"
] |
%
% Tries to round clipping path dimensions, as stored in array pagebbox, so they
% match one of the known sizes in the papersizes array. Lower left coordinates
% are always set to 0.
%
/roundpagebbox {
7 dict begin
/papersizes [8.5 inch 11 inch 14 inch 17 inch] def
/mappapersize {
/val exch def
/slop .5 in... | PostScript | 4 | newluhux/plan9port | src/cmd/postscript/psfiles/roundpage.ps | [
"MIT"
] |
#
# needs to check subset on stations which have not had equip_remove
# needs to change unlink to unless $opt_V after testing.
#
use Getopt::Std ;
use strict ;
# use diagnostics ;
use Datascope ;
use archive;
our ($opt_v,$opt_V,$opt_d,$opt_e,$opt_n,$opt_r,$opt_s,$opt_t);
{ # Main pr... | XProc | 3 | jreyes1108/antelope_contrib | bin/usarray/baler_request/baler_request.xpl | [
"BSD-2-Clause",
"MIT"
] |
{% set keyfile = pillar['keyfile'] %}
{% set crtfile = pillar['crtfile'] %}
{% set user = pillar['user'] %}
private_key:
x509.private_key_managed:
- name: {{ keyfile }}
self_signed_cert:
x509.certificate_managed:
- name: {{ crtfile }}
# crtfile is many folders deep, so this line will cause
# file.... | SaltStack | 4 | Noah-Huppert/salt | tests/integration/files/file/base/x509/self_signed_file_error.sls | [
"Apache-2.0"
] |
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "testlib_api.h"
int main() {
testlib_symbols()->kotlin.root.initializeGlobalCleaner();
return 0;
}
| C++ | 2 | Mu-L/kotlin | kotlin-native/backend.native/tests/interop/cleaners/leak.cpp | [
"ECL-2.0",
"Apache-2.0"
] |
{
width: 600, height: 800,
outPath: './videos.mp4',
defaults: {
transition: { duration: 0 },
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ duration: 2, layers: [{ type: 'title-background', text: 'Editly can handle all formats and sizes with different fits', backgrou... | JSON5 | 3 | aaverty/editly | examples/videos.json5 | [
"MIT"
] |
{create-factory}:React = require \react
{path} = require \react-dom-factories
SvgWrapper = create-factory require \./SvgWrapper
module.exports = class ToggleButton extends React.PureComponent
# get-default-props :: () -> Props
@default-props =
open: false
flipped: false
# render :: a -> R... | LiveScript | 4 | santiagoGuti/react-selectize | src/ToggleButton.ls | [
"Apache-2.0"
] |
= Agnostic Application Generators (padrino-gen)
=== Overview
Padrino comes preloaded with flexible code generators powered in part by the excellent Thor gem
(incidentally also used in the Rails 3 generators). These generators are intended to allow for easy code generation
both in creating new applications and buildin... | RDoc | 4 | CyberFerret/padrino-framework | padrino-gen/README.rdoc | [
"MIT"
] |
export default "import";
| JavaScript | 0 | 1shenxi/webpack | test/configCases/resolve-merging/override/node_modules/package2/import.js | [
"MIT"
] |
# Turtle does not allow literals-as-subjects
"hello" <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/o> .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-struct-04.ttl | [
"CC-BY-3.0"
] |
.section
.list-group-flush
div (:class "list-group-item border-0")
.title "I"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/concurrency/01.java) $ :class java
.col
.lang Kotlin
pre.code $ code ... | Cirru | 3 | driver733/kot | cirru/concurrency.cirru | [
"MIT"
] |
import * as path from 'path';
export default {
html: `
import
<p>1 + 2 + 3 + 4 = 10</p>
local
<p>1 + 2 + 3 + 4 = 10</p>
<button>Add a number</button>
`,
before_test() {
delete require.cache[path.resolve(__dirname, 'data.js')];
},
async test({ assert, target, window }) {
const btn = target.querySelec... | JavaScript | 3 | Theo-Steiner/svelte | test/runtime/samples/reactive-import-statement/_config.js | [
"MIT"
] |
\begin{code}
module Type.BetaNBE.Stability where
\end{code}
\begin{code}
open import Utils
open import Type
open import Type.BetaNormal
open import Type.BetaNormal.Equality
open import Type.BetaNBE
open import Type.BetaNBE.Completeness
open import Builtin.Constant.Type Ctx⋆ (_⊢Nf⋆ *)
open import Relation.Binary.Propo... | Literate Agda | 4 | AriFordsham/plutus | plutus-metatheory/src/Type/BetaNBE/Stability.lagda | [
"Apache-2.0"
] |
postulate
id : {t : Set} → t → t
_≡_ : {t : Set} → t → t → Set
⊤ : Set
record FunctorOp (f : Set → Set) : Set₁ where
record FunctorLaws (f : Set → Set) {{op : FunctorOp f}} : Set₁ where
-- demand functor laws to access <*>, but promise we won't use them in our definition
record ApplyOp (A : Set → Set) {{_ : Fu... | Agda | 5 | cruhland/agda | test/Succeed/Issue2171.agda | [
"MIT"
] |
<div>
<table class="table table-bordered table-condensed">
<tr>
<td class="col-md-3">
<span>Name</span>
</td>
<td>
<select class="form-control" ng-model="$ctrl.state.editModel.name" disable-authorization="DockerContainerUpdate">
<option value="no">None</option>
... | HTML | 3 | dzma352/portainer | app/docker/components/container-restart-policy/container-restart-policy.html | [
"Zlib"
] |
"""Tests for manual_mqtt component."""
| Python | 0 | domwillcode/home-assistant | tests/components/manual_mqtt/__init__.py | [
"Apache-2.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... | AspectJ | 4 | dm20/hadoop-mapreduce | src/test/system/aop/org/apache/hadoop/mapred/JTProtocolAspect.aj | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m12 5.69-5 4.5V18h10v-7.81l-5-4.5zM12 16c-1.1 0-2-.9-2-2s2-4 2-4 2 2.9 2 4-.9 2-2 2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M12 3 2 12... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/WaterDamageTwoTone.js | [
"MIT"
] |
=head1 NAME
PAST - Parrot abstract syntax tree
=head1 DESCRIPTION
This file brings together the various PAST/POST modules
to build the PAST.pbc module.
=cut
.include 'compilers/pct/src/PCT/Node.pir'
.include 'compilers/pct/src/PAST/Node.pir'
.include 'compilers/pct/src/PAST/Compiler.pir'
.include 'compilers/pc... | Parrot Internal Representation | 1 | winnit-myself/Wifie | compilers/pct/src/PAST.pir | [
"Artistic-2.0"
] |
i=--:i m="="n=0s=i---i+">"
j=i---i s=j+s x/=j>m j=i---i s=j+s x/=j>m j=i---i s=j+s goto2+(j<m)
e=d d=c c=b b=a a=s i-- s=i---i+">" j=i---i s=j+s goto2+(j<m)
k=0ifa>b thent=a a=b b=t k=1end ifb>c thent=b b=c c=t k=1end
ifc>d thent=c c=d d=t k=1end ifd>e thent=d d=e e=t k=1end goto6-k*2
:o=a+b+c+d+e goto++:done
//<Y><... | LOLCODE | 0 | Dude112113/Yolol | YololEmulator/Scripts/NyefariSort.lol | [
"MIT"
] |
-#
-# Copyright (C) 2009-2010 the original author or authors.
-# See the notice.md file distributed with this work for additional
-# information regarding copyright ownership.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You... | Scaml | 2 | splatch/karaf | manual/src/main/webapp/WEB-INF/scalate/layouts/default.scaml | [
"Apache-2.0"
] |
#
#
use Getopt::Std ;
use strict ;
use Datascope ;
use archive ;
use Cwd ;
our ($opt_v,$opt_p,$opt_d,$host);
{
my ($db,$Pf,$mseed_dir,$dbdir,$cmd,$base,$suffix,$ref,$pffile,$pfdir,$pfbase,$pfsuffix);
my ($row,$sta,$chan,$time,$endtime,$samprate,$yd,$tsec,$ntsamp,$tsamp);
my ($nti... | XProc | 3 | jreyes1108/antelope_contrib | bin/usarray/baler2db/baler2db.xpl | [
"BSD-2-Clause",
"MIT"
] |
#eval
(do {
a : nat ← [1, 2, 3, 4],
b : nat ← [4, 5, 6],
(guard $ 2 * a ≥ b : list unit),
(guard $ b < 6 : list unit),
return (a, b) } : list (nat × nat) )
| Lean | 3 | JLimperg/lean | tests/lean/list_monad1.lean | [
"Apache-2.0"
] |
package com.baeldung.di.spring;
import org.springframework.stereotype.Component;
@Component
public class AccountServiceImpl implements AccountService {
}
| Java | 3 | DBatOWL/tutorials | spring-di/src/main/java/com/baeldung/di/spring/AccountServiceImpl.java | [
"MIT"
] |
--TEST--
ldap_escape() test DN
--EXTENSIONS--
ldap
--FILE--
<?php
$subject = 'foo=bar(baz)*';
var_dump(ldap_escape($subject, '', LDAP_ESCAPE_DN));
?>
--EXPECT--
string(15) "foo\3dbar(baz)*"
| PHP | 4 | NathanFreeman/php-src | ext/ldap/tests/ldap_escape_dn.phpt | [
"PHP-3.01"
] |
<ul>
{{#shopping_list}}
<li>{{quantity}}x {{name}}</li>
{{/shopping_list}}
</ul>
| mupad | 3 | royriojas/buildfirst | ch07/06_shopping-list/app/views/templates/list.mu | [
"MIT"
] |
/*
* Copyright (c) 2004, Technische Universitat Berlin
* 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 notice,
* this list of... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/chips/tda5250/HplTda5250ConfigP.nc | [
"BSD-3-Clause"
] |
#! /bin/sh -e
# DP: Use lib instead of lib64 as multilibdir on amd64 and ppc64.
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-b... | Darcs Patch | 3 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/gcc-multilib64dir.dpatch | [
"MIT"
] |
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace {{packageName}}.Attributes
{
/// <summary>
/// Model state validation ... | HTML+Django | 5 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/aspnetcore/2.1/validateModel.mustache | [
"Apache-2.0"
] |
*** Settings ***
Resource atest_resource.robot
Library expected_output/ExpectedOutputLibrary.py
*** Variables ***
${SEP_CHAR1} =
${SEP_CHAR2} -
${SEP_LINE1} ${SEP_CHAR1 * 78}
${SEP_LINE2} ${SEP_CHAR2 * 78}
${MSG_211} 2 tests, 1 passed, 1 failed
${MSG_110} 1 test, 1 ... | RobotFramework | 4 | bhirsz/robotframework | atest/robot/cli/console/console_resource.robot | [
"ECL-2.0",
"Apache-2.0"
] |
"""The Hardware integration."""
from __future__ import annotations
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
from . import websocket_api
from .const import DOMAIN
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Set up Hardware."""... | Python | 4 | liangleslie/core | homeassistant/components/hardware/__init__.py | [
"Apache-2.0"
] |
module org-openroadm-user-mgmt {
namespace "http://org/openroadm/user-mgmt";
prefix org-openroadm-user-mgmt;
organization "Open ROADM MSA";
contact
"OpenROADM.org";
description
"YANG definitions of user managements.
Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-user-mgmt@2016-10-14.yang | [
"Apache-2.0"
] |
{% set keyfile = pillar['keyfile'] %}
{% set crtfile = pillar['crtfile'] %}
{% set subjectAltName = pillar['subjectAltName']|default('DNS:alt.service.local') %}
{% set fileMode = pillar['fileMode']|default('0600') %}
private_key:
x509.private_key_managed:
- name: {{ keyfile }}
self_signed_cert:
x509.certifica... | SaltStack | 3 | Noah-Huppert/salt | tests/integration/files/file/base/x509/self_signed_different_properties.sls | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://unplugged.teamstudio.com</namespace-uri>
<default-prefix>unp</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>UnpBootHeader</component-type>
<composite-name>UnpBootH... | XPages | 4 | teamstudio/xcontrols-domino | xcontrols/CustomControls/UnpBootHeader.xsp-config | [
"Apache-2.0"
] |
import Stack from '../../../data-structures/stack/Stack';
/**
* @param {number} numberOfDiscs
* @param {Stack} fromPole
* @param {Stack} withPole
* @param {Stack} toPole
* @param {function(disc: number, fromPole: number[], toPole: number[])} moveCallback
*/
function hanoiTowerRecursive({
numberOfDiscs,
fromP... | JavaScript | 5 | buledong/javascript-algorithms | src/algorithms/uncategorized/hanoi-tower/hanoiTower.js | [
"MIT"
] |
SndBuf b => Binaural binaural => dac;
"special:dope" => b.read;
while( true )
{
0 => b.pos;
200::ms => now;
}
| ChucK | 2 | mariobuoninfante/chugins | Binaural/panB.ck | [
"MIT"
] |
{% if data.user is not null %}
{% import '@SyliusUi/Macro/labels.html.twig' as label %}
{{ label.status(data.user.enabled) }}
{% else %}
<span class="ui icon label">
<i class="spy icon"></i> {{ 'sylius.ui.guest'|trans }}
</span>
{% endif %}
| Twig | 4 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/Customer/Grid/Field/enabled.html.twig | [
"MIT"
] |
package ch31_graph
import scala.collection.mutable
import scala.collection.mutable.ArrayBuffer
import scala.util.control.Breaks._
class Graph(vertex: Array[String]) {
require(vertex.nonEmpty, "nonEmpty vertex required")
val adjacency = new Array[mutable.MutableList[String]](vertex.length)
for (i <- Range(0, ve... | Scala | 5 | shipan3452/algo | scala/src/main/scala/ch31_graph/Graph.scala | [
"Apache-2.0"
] |
%%
%unicode 10.0
%public
%class UnicodeScripts_10_0_extensions_1
%type int
%standalone
%include ../../resources/common-unicode-all-enumerated-property-defined-values-only-java
%%
<<EOF>> { printOutput(); return 1; }
\p{Script_Extensions:Adlam} { setCurCharPropertyValue("Script_Extensions:Adlam"); }
\p{Script_Exten... | JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-scripts/UnicodeScripts_10_0_extensions_1.flex | [
"BSD-3-Clause"
] |
#!perl -w
BEGIN {
unless ($ENV{AUTHOR_TESTING}) {
print qq{1..0 # SKIP these tests are for testing by the author\n};
exit
}
}
# This file was automatically generated by Dist::Zilla::Plugin::AuthorSignatureTest
use strict;
use warnings;
use Test::More;
unless (eval { require Test::Signature; 1 }) {
p... | Perl | 3 | pmesnier/openssl | external/perl/Text-Template-1.56/t/author-signature.t | [
"Apache-2.0"
] |
msgid "foo"
msgstr ""
| Gettext Catalog | 0 | simonberger/symfony | src/Symfony/Component/Translation/Tests/fixtures/empty-translation.po | [
"MIT"
] |
{
"base": "0.000 TESTS",
"quote": "0.000 TESTS"
} | Max | 0 | ZhengGuoDeveloper/steem | python_scripts/tests/api_tests/database_api/get_current_price_feed.json.pat | [
"MIT"
] |
package TL;
interface TL;
method Action ped_button_push();
(* always_enabled *)
method Action set_car_state_N(Bool x);
(* always_enabled *)
method Action set_car_state_S(Bool x);
(* always_enabled *)
method Action set_car_state_E(Bool x);
(* always_ena... | Bluespec | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Bluespec/TL.bsv | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 5 | akhalymon-cv/spark | sql/core/src/test/scala/org/apache/spark/sql/streaming/TriggerAvailableNowSuite.scala | [
"Apache-2.0"
] |
# Add X509 Subject Alternative Name attributes to SSL::Info
#
# Grant Stavely gstavely@evernote.com
@load base/protocols/ssl
@load base/utils/conn-ids
@load base/frameworks/files
@load base/files/x509
module SSL;
export {
redef record Info += {
## List of DNS entries in SAN
san_dns: vector of string &log &opti... | Bro | 5 | evernote/bro-scripts | ssl_ext_san/scripts/main.bro | [
"BSD-3-Clause"
] |
- dashboard: compute_engine_insights
title: Compute Engine Insights
layout: newspaper
preferred_viewer: dashboards-next
elements:
- name: 'Cores: Usage and Cost Insights'
type: text
title_text: 'Cores: Usage and Cost Insights'
subtitle_text: ''
body_text: 'The graphs below show your core usage... | LookML | 3 | looker/block-placeholder-6 | dashboards/compute_engine.dashboard.lookml | [
"MIT"
] |
<VirtualHost *:80>
ServerName profiling.phpdocumentor.local
DocumentRoot /var/www/xhgui/webroot
</VirtualHost>
| ApacheConf | 3 | alejo8591/cymetria-php | lab9/vendor/phpdocumentor/phpdocumentor/ansible/roles/phpdocumentor.profiling/files/profiling.phpdocumentor.local.vhost | [
"MIT"
] |
#!/usr/bin/env python3
import sys
import time
from tools.zookeeper import Zookeeper
# Usage: check_consumption.py <averaging_time_sec> <max_average_power_W>
# Exit code: 0 -> passed
# 1 -> failed
if __name__ == "__main__":
z = Zookeeper()
averaging_time_s = int(sys.argv[1])
max_average_power = floa... | Python | 4 | robin-reckmann/openpilot | tools/zookeeper/check_consumption.py | [
"MIT"
] |
=pod
=head1 NAME
EVP_CIPHER-DES - The DES EVP_CIPHER implementations
=head1 DESCRIPTION
Support for DES symmetric encryption using the B<EVP_CIPHER> API.
=head2 Algorithm Names
The following algorithms are available in the FIPS provider as well as the
default provider:
=over 4
=item "DES-EDE3-ECB" or "DES-EDE3"... | Pod | 4 | pmesnier/openssl | doc/man7/EVP_CIPHER-DES.pod | [
"Apache-2.0"
] |
(kicad_pcb (version 4) (host pcbnew "(2015-10-16 BZR 6271)-product")
(general
(links 194)
(no_connects 16)
(area 86.538999 43.485999 213.689001 139.648001)
(thickness 1.6)
(drawings 15)
(tracks 983)
(zones 0)
(modules 33)
(nets 150)
)
(page A4)
(title_block
(title "Amig... | KiCad | 4 | AmigaPorts/amiga2000-gfxcard | kicad/amiga-gfxcard.kicad_pcb | [
"MIT",
"IJG",
"Unlicense"
] |
--TEST--
Test static typed properties with references
--FILE--
<?php
class A {
static iterable $it = [];
static ?array $a;
}
A::$a = &A::$it;
try {
A::$it = new ArrayIterator();
} catch (TypeError $e) { var_dump($e->getMessage()); }
var_dump(A::$it);
A::$a = &$a;
A::$it = new ArrayIterator();
try {
... | PHP | 3 | thiagooak/php-src | Zend/tests/type_declarations/typed_properties_079.phpt | [
"PHP-3.01"
] |
;Ni1
; Generated by the ni plugin using Elektra (see libelektra.org).
= root
| Inform 7 | 0 | kodebach/libelektra | tests/shell/shell/one_value.ni | [
"MIT",
"BSD-3-Clause-Clear",
"Apache-2.0",
"BSD-3-Clause"
] |
$(document).ready(function() {
// add the search form and bind the events
$('h1').after([
'<p>Filter entries by content:',
'<input type="text" value="" id="searchbox" style="width: 50%">',
'<input type="submit" id="searchbox-submit" value="Filter"></p>'
].join('\n'));
function dofilte... | JavaScript | 5 | shawwn/cpython | Doc/tools/static/changelog_search.js | [
"0BSD"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><g><rect fill="none" height="20" width="20" y="0"/></g><g><g><g><path d="M16.5,3h-7C8.67,3,8,3.67,8,4.5v5C8,10.33,8.67,11,9.5,11h7c0.83,0,1.5-0.67,1.5-1.5v-5C18,3.67,17.33,3,16.5,3z M9.5,9.5V6h7v3.5H9.5z... | SVG | 2 | Imudassir77/material-design-icons | src/content/dynamic_feed/materialiconsround/20px.svg | [
"Apache-2.0"
] |
//
// Copyright (c) 2018, chunquedong
// Licensed under the Academic Free License version 3.0
//
// History:
// 2018-07-14 Jed Young
//
**
** Str Extension
**
class StrExt {
**
** Create an input stream to read characters from the this string.
** The input stream is designed only to read character data. Atte... | Fantom | 5 | fanx-dev/fanx | library/std/fan/io/StrExt.fan | [
"AFL-3.0"
] |
import io/[Writer], ../../io/TabbedWriter
import ../../middle/[Visitor, Node]
/**
* Extension of TabbedWriter that allows to handle
* blocks opening/closing and appending of nodes.
*/
AwesomeWriter: class extends TabbedWriter {
visitor: Visitor
init: func ~awesome (=visitor, .stream) {
super(strea... | ooc | 4 | fredrikbryntesson/launchtest | source/rock/backend/cnaughty/AwesomeWriter.ooc | [
"MIT"
] |
; inherits: json
(comment) @comment
| Scheme | 0 | hmac/nvim-treesitter | queries/jsonc/highlights.scm | [
"Apache-2.0"
] |
export default "original";
| JavaScript | 0 | 1shenxi/webpack | test/watchCases/parsing/caching-harmony/0/changing-module.js | [
"MIT"
] |
#world {
point-file: url(foo.png);
point-transform: "translate(2, 2), scale(2, 2)";
}
| CartoCSS | 2 | nimix/carto | test/rendering/transforms_backwards.mss | [
"Apache-2.0"
] |
/********************************************************************************
* 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/projectView/ModuleTreeStructureProvider.ceylon | [
"Apache-2.0"
] |
@0x9ef128e10a8010b2;
struct Message
{
value @0 : EnumType;
enum EnumType
{
one @0;
two @1;
tHrEe @2;
}
}
| Cap'n Proto | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/format_schemas/02030_capnp_enum.capnp | [
"Apache-2.0"
] |
CoordMode, Pixel, {{ coord_mode }}
PixelSearch, xpos, ypos,{{ x1 }},{{ y1 }},{{ x2 }},{{ y2 }},{{ color }},{{ variation }}{% if options %},{% for option in options %} {{ option }}{% endfor %}{% endif %}
| AutoHotkey | 3 | scslmd/ahk | ahk/templates/daemon/pixel_search.ahk | [
"MIT"
] |
import asyncdispatch, asyncnet
var port: Port
proc createServer() {.async.} =
var server = newAsyncSocket()
server.setSockOpt(OptReuseAddr, true)
bindAddr(server)
port = getLocalAddr(server)[1]
server.listen()
while true:
let client = await server.accept()
discard await client.recvLine()
asyncChec... | Nimrod | 4 | JohnAD/Nim | tests/async/tasyncsend4757.nim | [
"MIT"
] |
{% extends tmpl %}
{% block content %}{{ block.super }} one{% endblock %}
| HTML | 2 | jpmallarino/django | tests/template_tests/relative_templates/one_var.html | [
"BSD-3-Clause",
"0BSD"
] |
ManifestDPIAware true
!macro AddToShellSpecific Where
DeleteRegKey SHELL_CONTEXT "Software\Classes\${Where}\shell\ipfs-desktop"
WriteRegStr SHELL_CONTEXT "Software\Classes\${Where}\shell\ipfs-desktop" "MUIVerb" "Add to IPFS"
WriteRegStr SHELL_CONTEXT "Software\Classes\${Where}\shell\ipfs-desktop" "Icon" "$appExe... | NSIS | 4 | unbeatable-101/ipfs-desktop | assets/build/nsis.nsh | [
"MIT"
] |
#!/usr/bin/env awk -f
#
# @license Apache-2.0
#
# Copyright (c) 2017 The Stdlib 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
#
# ... | Awk | 4 | ghalimi/stdlib | tools/awk/kurtosis.awk | [
"BSL-1.0"
] |
/*
* Copyright (c) 2020 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
. = CONFIG_FLASH_CONFIG_OFFSET;
KEEP(*(.flash_conf))
. = CONFIG_IMAGE_VECTOR_TABLE_OFFSET;
KEEP(*(.boot_hdr.ivt))
| Linker Script | 3 | maxvankessel/zephyr | soc/arm/nxp_imx/rt6xx/boot_header.ld | [
"Apache-2.0"
] |
:: Usage:
:: - Drag & drop .cpp file on this file from Windows explorer
:: - Run from cmd/powershell:
:: - > _winpack_build_sample.cmd cpp\opencv_version.cpp
:: Requires:
:: - CMake
:: - MSVS 2015/2017/2019
:: (tools are searched on default paths or environment should be pre-configured)
@echo off
setlocal
SET SCRIPT... | Batchfile | 4 | artun3e/opencv | samples/_winpack_build_sample.cmd | [
"BSD-3-Clause"
] |
;;;; LUNA Minimoog MIDI control change code definitions
;;;;
;;;; These are documented at the following URL:
;;;; * https://help.uaudio.com/hc/en-us/articles/360041479272-Moog-Minimoog
;;; Controllers Section
(defun glide () 5)
(defun toggle-glide () 65)
;;; Oscillator Bank Section
(defun osc-1-range () 33)
(defun ... | LFE | 4 | ioolkos/undermidi | include/luna/minimoog.lfe | [
"BSD-2-Clause"
] |
//
// Copyright (c) 2009, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 23 Jul 09 Brian Frank Creation
//
/*
using compiler
**
** EnvTest is used to define a new working dir which is used to
** compile new pods and then execute them in another process.
**
clas... | Fantom | 5 | fanx-dev/fanx | compiler/testCompiler/fan/EnvTest.fan | [
"AFL-3.0"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | ECL | 4 | miguelvazq/HPCC-Platform | ecl/regress/jholt1.ecl | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.