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 |
|---|---|---|---|---|---|
package com.baeldung.demo;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class DemoRestController {
@GetMapping(value = "/welcome")
public ResponseEntity<String> ... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-artifacts-2/src/main/java/com/baeldung/demo/DemoRestController.java | [
"MIT"
] |
=================================================================
This file was generated from Processor Expert 03.33
project "RTOSDemo", 18/06/2005, 18:00
-----------------------------------------------------------------
There is no signal defined in this project.
Hint: Signals may be defined in the Bean Inspec... | Standard ML | 0 | JVVJV/FreeRTOS | FreeRTOS/Demo/HCS12_CodeWarrior_small/DOC/RTOSDemo.sig | [
"MIT"
] |
( Generated from test_comments_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _helloworld[ -- ret ]
"Hello Harold!" me @ swap notify
0
;
: __start
"me" match me ! me @ location loc ! trig trigger !
_helloworld
;
| MUF | 3 | revarbat/pymuv | tests/test_comments_cmp.muf | [
"MIT"
] |
(* ::Package:: *)
IntegrationErrorPlot[
errorData_,
names_,
errorKind_,
upperError_: 1,
lowerRelative_: 1.*^-17] :=
With[
{series = Length[names],
errorDataAndEmpty = Append[errorData, {0, 0}],
minWork = Min[First /@ Flatten[errorData, 1]],
maxWork = Max[First /@ Flatten[errorData, 1]],
unit =... | Mathematica | 5 | tnuvoletta/Principia | mathematica/integration.wl | [
"MIT"
] |
"""The rmvtransport component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/rmvtransport/__init__.py | [
"Apache-2.0"
] |
(ns d.server
(:require [com.appsflyer.donkey.core :as donkey-core]
[com.appsflyer.donkey.server :as donkey-server])
(:gen-class)
(:import (io.vertx.core.impl.cpu CpuCoreSensor)))
(def empty-body
(bytes (byte-array (map (comp byte int) ""))))
(def empty-response
{:status 200
:headers {"conten... | Clojure | 4 | mattiapenati/web-frameworks | clojure/donkey/src/d/server.clj | [
"MIT"
] |
factorial (n) =
if (n == 0)
1
else
n * factorial (n - 1)
print factorial (n) = console.log "factorial #(n): #(factorial (n))"
print factorial 3
print factorial 5
print factorial 10
| PogoScript | 3 | featurist/pogoscript | examples/factorial.pogo | [
"BSD-2-Clause"
] |
"""
23
42
"""
import System
import System.Collections.Generic
interface ListInterface (IList[of int]):
pass
class Impl (List[of int], ListInterface):
pass
class Impl2 (List[of int], IList[of int]):
pass
l = Impl()
l.Add(23)
print l[0]
l2 = Impl2()
l2.Add(42)
print l2[0]
| Boo | 3 | popcatalin81/boo | tests/testcases/regression/BOO-1220-1.boo | [
"BSD-3-Clause"
] |
# Combine existing list of authors with everyone known in git, sort, add header.
tail --lines=+3 AUTHORS > AUTHORS.tmp
git log --format='%aN' | grep -v abraidwood | grep -v Rich-Harris | grep -v ForbesLindesay >> AUTHORS.tmp
echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS
sort -u AUTHORS... | Shell | 3 | joseconstela/meteor | tools/tests/apps/modules/packages/modules-test-package/node_modules/acorn/bin/update_authors.sh | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | spreoW/spring-framework | spring-web/src/main/java/org/springframework/http/client/reactive/HttpComponentsClientHttpConnector.java | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Ockam Node</title>
</head>
<body>
Error
</body>
</html>
| HTML+EEX | 0 | twittner/ockam | implementations/elixir/ockam/ockam_node_web/lib/node_web/templates/error.html.eex | [
"Apache-2.0"
] |
(import
[aliasing [get-best-match]]
[applicationinsights [TelemetryClient]]
[applicationinsights.exceptions [enable]]
[bottle [abort get :as handle-get hook http-date parse-date request redirect response static-file view :as render-view]]
[config [*asset-hash* *banned-agents-page* *debu... | Hy | 4 | CyberFlameGO/sushy | sushy/routes.hy | [
"MIT"
] |
// @useCaseSensitiveFileNames: false
// @filename: C:/foo/bar/Baz/src/utils.ts
export function exist() {}
// @filename: C:/foo/bar/Baz/src/sample.ts
import { exit } from "./utils.js";
exit() | TypeScript | 2 | monciego/TypeScript | tests/cases/compiler/missingMemberErrorHasShortPath.ts | [
"Apache-2.0"
] |
Setup:
$ . $TESTDIR/setup.sh
$ printf 'foo\n' > ./exitcodes_test.txt
$ printf 'bar\n' >> ./exitcodes_test.txt
Normal matching:
$ ag foo exitcodes_test.txt
1:foo
$ ag zoo exitcodes_test.txt
[1]
Inverted matching:
$ ag -v foo exitcodes_test.txt
2:bar
$ ag -v zoo exitcodes_test.txt
1:foo
2:bar... | Perl | 3 | kknives/the_silver_searcher | tests/exitcodes.t | [
"Apache-2.0"
] |
do {
print("hello")
} catch MyErr.a(let code),
MyErr.b(let code)
// RUN: %sourcekitd-test -req=format -line=5 -length=1 %s | %FileCheck --strict-whitespace %s
// CHECK: key.sourcetext: ""
| Swift | 2 | gandhi56/swift | test/SourceKit/CodeFormat/indent-trailing/trailing-catch-item-no-comma.swift | [
"Apache-2.0"
] |
#ifndef LibTorch_Lite_h
#define LibTorch_Lite_h
#include <torch/csrc/jit/mobile/import.h>
#include <torch/csrc/jit/mobile/module.h>
#include <torch/script.h>
#endif
| C | 1 | Hacky-DH/pytorch | ios/LibTorch-Lite.h | [
"Intel"
] |
[Desktop Entry]
Type=Application
Name=nnn
Comment=Terminal file manager
Exec=nnn
Terminal=true
Icon=nnn
MimeType=inode/directory
Categories=System;FileTools;FileManager;ConsoleOnly
Keywords=File;Manager;Management;Explorer;Launcher
| desktop | 3 | wk30/nnn | misc/desktop/nnn.desktop | [
"BSD-2-Clause"
] |
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
const EmergencyKit = () => (
<Layout>
<SEO title="Emergency Kit" />
<h1>If you click the skip link, the next tab will take you to the "Go back to homepage" link.</h1>
<p... | JavaScript | 3 | Pabelnedved/ghostlocoko | examples/using-reach-skip-nav/src/pages/emergency-kit.js | [
"MIT"
] |
<h1>Listing Books</h1>
<table>
<tr>
<th>Title</th>
<th>Summary</th>
<th></th>
<th></th>
<th></th>
</tr>
<%= for book <- @books do %>
<tr>
<%# comment %>
<td><%= book.title %></td>
<td><%= book.content %></td>
<td><%= link "Show", to: book_path(@conn, :show, book) %></td>
... | HTML+EEX | 4 | websharks/ace-builds | demo/kitchen-sink/docs/html_elixir.eex | [
"BSD-3-Clause"
] |
module namespace deepfs = "http://www.deepfs.org/";
declare function deepfs:pe2pn($f as element()+) as xs:string* {
for $e in $f
return fn:string-join(
for $v in $e/ancestor-or-self::*
return if ($v/@root) then '' else fn:data($v/@name), '/')
};
| XQuery | 4 | JensErat/basex | basex-examples/src/main/resources/xml/deepfs.xq | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | JavaScript | 4 | kklt2002/vscode | build/npm/update-all-grammars.js | [
"MIT"
] |
// run-pass
#![allow(dead_code)]
enum E { V16(u16), V32(u32) }
static C: (E, u16, u16) = (E::V16(0xDEAD), 0x600D, 0xBAD);
pub fn main() {
let (_, n, _) = C;
assert!(n != 0xBAD);
assert_eq!(n, 0x600D);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/consts/const-enum-tuple.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
"1.9.0"
| MoonScript | 0 | fastcoding/lapis | lapis/version.moon | [
"MIT",
"Unlicense"
] |
import math
// Does not build
Point: cover {
x, y: Float
norm ::= (this x pow(2.0f) + this y pow(2.0f)) sqrt()
normToo : Float { get { (this x pow(2.0f) + this y pow(2.0f)) sqrt() } }
}
main: func {
p := (2, 2) as Point
n1 := p norm
n2 := p normToo
if (n1 != n2) {
"Fail: expected ... | ooc | 2 | shamanas/rock | test/compiler/properties/pdfe-cover.ooc | [
"MIT"
] |
#!/bin/sh
PATH=/bin:/usr/bin
TERM=screen
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null
TMUX2="$TEST_TMUX -Ltest2"
$TMUX2 kill-server 2>/dev/null
TMP=$(mktemp)
trap "rm -f $TMP" 0 1 15
$TMUX2 -f/dev/null new -d || exit 1
$TMUX2 set -as terminal-overrid... | Shell | 3 | listx/tmux | regress/am-terminal.sh | [
"ISC"
] |
package com.android.tools.idea.lang.aidl.lexer;
import com.intellij.lexer.*;
import com.intellij.psi.tree.IElementType;
import static com.android.tools.idea.lang.aidl.lexer.AidlTokenTypes.*;
%%
%{
public _AidlLexer() {
this((java.io.Reader)null);
}
%}
%public
%class _AidlLexer
%implements FlexLexer
%function... | JFlex | 4 | phpc0de/idea-android | android-lang/src/com/android/tools/idea/lang/aidl/lexer/_AidlLexer.flex | [
"Apache-2.0"
] |
<% provide :title, @inbound_email.message_id %>
<h1><%= @inbound_email.message_id %>: <%= @inbound_email.status %></h1>
<ul>
<li><%= button_to "Route again", main_app.rails_conductor_inbound_email_reroute_path(@inbound_email), method: :post %></li>
<li><%= button_to "Incinerate", main_app.rails_conductor_inbound_... | HTML+ERB | 3 | jstncarvalho/rails | actionmailbox/app/views/rails/conductor/action_mailbox/inbound_emails/show.html.erb | [
"MIT"
] |
PROGRAM_NAME='SnmpMonitorCommon'
(***********************************************************)
(* FILE CREATED ON: 05/21/2016 AT: 20:18:04 *)
(***********************************************************)
(* FILE_LAST_MODIFIED_ON: 12/12/2016 AT: 12:57:02 *)
(**************************************... | NetLinx | 5 | marselle001/amx-snmp-library | SnmpMonitorCommon.axi | [
"MIT"
] |
model Context {
config: map[string]any,
certEnvironment: any
}
init(context: Context);
function getTimestamp(): string;
function getConfig(key: string): string;
function getSdkVersion(): string;
function toUrlEncodedRequestBody(bizParams: map[string]any): bytes;
async function readAsJson(response: $Response, ... | Tea | 4 | zenithEver/easysdk | tea/kernel/main.tea | [
"MIT"
] |
/* handle 503s */
if (obj.status >= 500 && obj.status < 600) {
/* deliver stale object if it is available */
if (stale.exists) {
return(deliver_stale);
}
}
# Return empty response in case fastlyCdn/geoip/getaction/ has been processed already
if (obj.status == 98... | VCL | 4 | paliarush/fastly-magento2 | etc/vcl_snippets/error.vcl | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
try
D = new_D();
catch
swigtesterror();
end
if A_do_x(D) <> 1 then swigtesterror(); end
try
delete_D(D);
catch
swigtesterror();
end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/abstract_access_runme.sci | [
"BSD-3-Clause"
] |
# module b/utils.nim
let x* = 10
| Nimrod | 0 | JohnAD/Nim | tests/modules/b/utils.nim | [
"MIT"
] |
def g: 43;
| JSONiq | 0 | Abhibob/gojq | cli/testdata/m2/m3.jq | [
"MIT"
] |
<gpx version="1.1">
<trk>
<name><%= DateTime.to_iso8601(@drive.start_date) %></name>
<trkseg>
<%= for position <- @drive.positions do %>
<trkpt lat="<%= position.latitude %>" lon="<%= position.longitude %>">
<ele><%= position.elevation %></ele>
... | HTML+EEX | 3 | kuma/teslamate | lib/teslamate_web/templates/drive/gpx.xml.eex | [
"MIT"
] |
<base>
{
for $item in /items/item
let $idname := concat($item/id, $item/name)
where $idname != '2second'
order by $item/id
return $item/id
}
</base> | XQuery | 4 | rikvb/camel | components/camel-saxon/src/test/resources/org/apache/camel/component/xquery/flwor-expression.xquery | [
"Apache-2.0"
] |
#
# Copyright (C) 2019 The Falco 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 ... | R | 3 | dnwe/falco | test/plot-live.r | [
"Apache-2.0"
] |
## nghttp2
ifneq ($(USE_BINARYBUILDER_NGHTTP2), 1)
$(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://github.com/nghttp2/nghttp2/releases/download/v$(NGHTTP2_VER)/$(notdir $@)
$(SRCCACHE)/nghttp2-$(NGHTTP2_VER)/source-extracted: $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2
$(JLCHECKSU... | Makefile | 2 | jonas-schulze/julia | deps/nghttp2.mk | [
"MIT"
] |
/**
* Copyright [2012-2014] PayPal Software Foundation
*
* 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 ap... | PigLatin | 3 | moony320/shifu | src/main/pig/EncodeData.pig | [
"Apache-2.0"
] |
"""Test the Forecast.Solar config flow."""
from unittest.mock import patch
from homeassistant.components.forecast_solar.const import (
CONF_AZIMUTH,
CONF_DAMPING,
CONF_DECLINATION,
CONF_INVERTER_SIZE,
CONF_MODULES_POWER,
DOMAIN,
)
from homeassistant.config_entries import SOURCE_USER
from homeas... | Python | 5 | MrDelik/core | tests/components/forecast_solar/test_config_flow.py | [
"Apache-2.0"
] |
/*
Bulllord Game Engine
Copyright (C) 2010-2017 Trix
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercia... | XC | 3 | timgates42/Bulllord-Engine | plugins/iap/iapentry.xc | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R07d09*/
/*Part A*/
proc iml;
startTime = time();
simulations = 1000;
sampleSize = 2... | SAS | 5 | snowdj/sas-prog-for-r-users | code/SP4R07d09.sas | [
"CC-BY-4.0"
] |
BwJ | PureBasic | 1 | rajeevsrao/onnx | onnx/backend/test/data/node/test_convinteger_with_padding/test_data_set_0/input_1.pb | [
"MIT"
] |
#ifndef Py_INTERNAL_GENOBJECT_H
#define Py_INTERNAL_GENOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
/* runtime lifecycle */
extern void _PyAsyncGen_Fini(PyInterpreterState *);
/* other API */
#ifndef WITH_FREELISTS
// without fr... | C | 4 | lostbeta/cpython | Include/internal/pycore_genobject.h | [
"0BSD"
] |
$! File: PCSI_PRODUCT_GNV_CURL.COM
$!
$! $Id$
$!
$! This command file packages up the product CURL into a sequential
$! format kit
$!
$! Copyright 2009 - 2020, John Malmberg
$!
$! Permission to use, copy, modify, and/or distribute this software for any
$! purpose with or without fee is hereby granted, provided that the... | DIGITAL Command Language | 4 | jjatria/curl | packages/vms/pcsi_product_gnv_curl.com | [
"curl"
] |
const MDX_WRAPPERS_LOCATION = `mdx-wrappers-dir`
const MDX_SCOPES_LOCATION = `mdx-scopes-dir`
module.exports = {
MDX_WRAPPERS_LOCATION,
MDX_SCOPES_LOCATION,
}
| JavaScript | 3 | JQuinnie/gatsby | packages/gatsby-plugin-mdx/constants.js | [
"MIT"
] |
create database `x``f"n`; | SQL | 0 | cuishuang/tidb | br/tests/lightning_exotic_filenames/data/xfn-schema-create.sql | [
"Apache-2.0"
] |
? my $context = $main::context;
? $_mt->wrapper_file("wrapper.mt")->(sub {
? my $title = "Built-in and standard class libraries";
<title><?= $title ?> - Documents - JSX</title>
?= $_mt->render_file("header.mt");
?= $_mt->render_file("breadcrumb.mt", [ qw(Documents doc.html) ], [$title]);
<div id="main">
<h2><?= $titl... | Mathematica | 4 | monkpit/JSX | doc/src/doc/stdlibref.mt | [
"MIT"
] |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
--------------------------------------------------------------------------------
-- |
-- Module : Foreign.CUDA.Driver.Module.Query
-- Copyright : [20... | C2hs Haskell | 5 | jmatsushita/cuda | src/Foreign/CUDA/Driver/Module/Query.chs | [
"BSD-3-Clause"
] |
# The purpose of this test is to exercise weird code paths for the well-formed
# type check
{ example0: \r -> (r : forall (a : Fields) . forall (b : Type) . { a })
, example1: \u -> (u : forall (a : Alternatives) . forall (b : Type) . < a >)
}
| Grace | 3 | DebugSteven/grace | tasty/data/complex/well-formed-input.grace | [
"BSD-3-Clause"
] |
union U {
var x: int;
var y: real;
}
proc main() {
var uu = new U(y=20.0);
writeln(uu);
}
| Chapel | 3 | jhh67/chapel | test/types/unions/union-init2.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
KIDS Distribution saved on Apr 30, 2015@13:14:31
Version 8
**KIDS**:HDI*1.0*14^
**INSTALL NAME**
HDI*1.0*14
"BLD",9232,0)
HDI*1.0*14^HEALTH DATA & INFORMATICS^0^3150430^y
"BLD",9232,1,0)
^^1^1^3150123^
"BLD",9232,1,1,0)
See National Patch Module for details.
"BLD",9232,4,0)
^9.64PA^^
"BLD",9232,6)
3^
"BLD",9232,6.3)
2... | Genshi | 4 | mdgeek/VistA-FHIR-CWF | Scripts/Install/CWF/kid/21-HDI_1_14_V8.kid | [
"Apache-2.0"
] |
#!/bin/awk -f
# 5 lines 1 code 3 comments 1 blanks
# This is a comment
{ print $0 }
| Awk | 2 | Redfire75369/tokei | tests/data/awk.awk | [
"Apache-2.0",
"MIT"
] |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/nw/src/browser/pepper/pepper_broker_message_filter.h"
#include <string>
#include "components/content_settings/core/browser/host_co... | C++ | 4 | namaljayathunga/nw.js | src/browser/pepper/pepper_broker_message_filter.cc | [
"MIT"
] |
"""Test the Aladdin Connect model class."""
from homeassistant.components.aladdin_connect.model import DoorDevice
from homeassistant.core import HomeAssistant
async def test_model(hass: HomeAssistant) -> None:
"""Test model for Aladdin Connect Model."""
test_values = {
"device_id": "1",
"door_... | Python | 4 | liangleslie/core | tests/components/aladdin_connect/test_model.py | [
"Apache-2.0"
] |
/*
* Copyright (C) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* @file init_pms.uc
* @brief Initialization of packet modifier indirect scripts.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef _INIT_PMS_UC_
#define _INIT_PMS_UC_
#macro hex_format(VALUE)
#define_eval _HEX_IN (VALUE)
#... | UnrealScript | 4 | pcasconnetronome/nic-firmware | firmware/apps/nic/init_pms.uc | [
"BSD-2-Clause"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
## dummy stub for https://github.com/JuliaBinaryWrappers/GMP_jll.jl
baremodule GMP_jll
using Base, Libdl
Base.Experimental.@compiler_options compile=min optimize=0 infer=false
const PATH_list = String[]
const LIBPATH_list = String[]
export... | Julia | 4 | jonas-schulze/julia | stdlib/GMP_jll/src/GMP_jll.jl | [
"MIT"
] |
import OSS;
import OpenPlatform;
import RPCUtil;
import RPC;
import OSSUtil;
import Util;
import FileForm;
import EndpointUtil;
extends RPC;
init(config: RPC.Config){
super(config);
@endpointRule = '';
checkConfig(config);
@endpoint = getEndpoint('imagesearch', @regionId, @endpointRule, @network, @suffix, ... | Tea | 4 | alibabacloud-sdk-swift/alibabacloud-sdk | imagesearch-20200212/main.tea | [
"Apache-2.0"
] |
$ORIGIN example.org.
$TTL 7200
@ 43200 IN SOA ns1.example.org. hostmaster.example.org. 2020030700 7200 3600 864000 7200
IN NS friend-dns.example.com.
IN NS ns-a.example.net.
IN NS ns1.example.org.
IN NS ns2.example.org.
... | DNS Zone | 2 | IT-Sumpfling/dnscontrol | commands/test_data/example.org.zone.zone | [
"MIT"
] |
# This script is sourced by the user and uses
# their shell. Try not to use tcshisms.
# Do not execute this script without sourcing,
# because it won't have any effect then.
# That is, always run this script with
#
# source ./emsdk_env.csh
#
# instead of just plainly running with
#
# ./emsdk_env.csh
#
# which ... | Tcsh | 4 | matt9ucci/emsdk | emsdk_env.csh | [
"MIT"
] |
acl purge {
"localhost";
"127.0.0.1";
}
backend sqlapi {
.host = "127.0.0.1";
.port = "8080";
}
backend windshaft {
.host = "127.0.0.1";
.port = "8181";
}
sub vcl_recv {
# Allowing PURGE from localhost
if (req.request == "PURGE") {
if (!client.ip ~ purge) {
error 4... | VCL | 4 | Baschdl/docker-cartodb | config/varnish.vcl | [
"BSD-3-Clause"
] |
macroscript spinner_precision
category:"Tools"
internalcategory:"Tools"
Tooltip:"Spinner precision"
buttontext:"Spn. precision"
(
rollout roSpinner "Spinner Precision" width:168 height:32
(
radioButtons rdo1 "" pos:[8,8] width:155 height:16 labels:#("0", "1", "2", "3", "4") columns:5
on rdo1 changed state do
... | MAXScript | 4 | 89096000/MaxScript | Widgets/spinner_precision.mcr | [
"MIT"
] |
---
prev: type-basics.textile
next: sbt.textile
title: Advanced types
layout: post
---
This lesson covers:
* "View bounds":#viewbounds ("type classes")
* "Other Type Bounds":#otherbounds
* "Higher kinded types & ad-hoc polymorphism":#higher
* "F-bounded polymorphism / recursive types":#fbounded
* "Structural types":#... | Textile | 5 | AstronomiaDev/scala_school | web/advanced-types.textile | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("circle", {
cx: "9",
cy: "16.5",
r: "1"
}, "0"), /*#__PURE__*/_jsx("circle", {
cx: "15",
cy: "16.5",
r: "1"
}, "1"), /*#__PURE__*/_jsx("path", {
d: "M17.25 9.... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/CarRentalOutlined.js | [
"MIT"
] |
# cmd
> Android service manager.
> More information: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/cmd/>.
- List every running service:
`cmd -l`
- Call a specific service:
`cmd {{alarm}}`
- Call a service with arguments:
`cmd {{vibrator}} {{vibrate 300}}`
| Markdown | 3 | derNiklaas/tldr | pages/android/cmd.md | [
"CC-BY-4.0"
] |
class_name Layer extends Reference
# A class for layer properties.
var name := ""
var visible := true
var locked := false
var frame_container : HBoxContainer
var new_cels_linked := false
var linked_cels := [] # Array of Frames
func _init(_name := "", _visible := true, _locked := false, _frame_container := HBoxConta... | GDScript | 4 | triptych/Pixelorama | src/Classes/Layer.gd | [
"MIT"
] |
HAI 1.3
I HAS A COINZ ITZ A BUKKIT
COINZ HAS A SRS 0 ITZ 200
COINZ HAS A SRS 1 ITZ 100
COINZ HAS A SRS 2 ITZ 50
COINZ HAS A SRS 3 ITZ 20
COINZ HAS A SRS 4 ITZ 10
COINZ HAS A SRS 5 ITZ 5
COINZ HAS A SRS 6 ITZ 2
COINZ HAS A SRS 7 ITZ 1
BTW MEMORY[R][C] ITZ THE NUMBR OF WAYS YOU C... | LOLCODE | 4 | LeartS/loleuler | 031.lol | [
"MIT"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 4 | EricRemmerswaal/tensorflow | tensorflow/compiler/mlir/tfr/utils/utils.h | [
"Apache-2.0"
] |
################################################
################# ZIP PATH 1 #################
zip_begin_path
zip_is_teleporter true
zip_path_point 595.769 971.013 68.367
zip_path_point 617.240 982.719 85.965
zip_end_path
################# END ZIP PATH 1 #################
################# ZIP PA... | Zimpl | 1 | ajnavarro/language-dataset | data/github.com/PSEmulator/Client/6f644a754736b7a44f4fd660562dbe1bf1ade87f/expansion1/expansion1/ugd03.zpl | [
"MIT"
] |
import "autoLayout"
AutoLayoutForm form1 { contents = Elemental3 { }, clientSize = { 1024, 768 } };
class Elemental3 : Col
{
bgColor = skyBlue;
Bar r2 { this, bgColor = blue };
// Bar r { this, bgColor = beige, minSize.h = 10, maxSize.h = 10 };
Bar r { this, bgColor = beige, minSize.h = 10, maxSize.h = 10... | eC | 3 | N-eil/ecere-sdk | autoLayout/tests/test3.ec | [
"BSD-3-Clause"
] |
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "keycloak.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate to 20 characters because this is used to set the node identif... | Smarty | 4 | kevinpollet/charts | incubator/keycloak/templates/_helpers.tpl | [
"Apache-2.0"
] |
using Uno;
using Uno.Testing;
using Uno.UX;
using FuseTest;
namespace Fuse.Views.Test
{
public class ExportedViewsTest
{
[Test]
public void ExportTest()
{
var root = TestRootPanel.CreateWithChild(new Fuse.Views.Test.UX.ExportTest());
var t = Fuse.ExportedViews.FindTemplate("MyExportedView");
Assert.A... | Uno | 3 | helilabs/fuselibs | Source/Fuse.Views/Tests/ExportedViews.uno | [
"MIT"
] |
// FLAGS: -d3
// OUTPUT: \[debug\] Run time error 4: "Array index out of bounds"
// OUTPUT: \[debug\] Attempted to read/write array element at index 100 in array of size 1
// OUTPUT: \[debug\] AMX backtrace:
// OUTPUT: \[debug\] #0 000000d8 in public out_of_bounds_pos \(\) at .*bounds\.pwn:29
// OUTPUT: \[debug\]... | PAWN | 3 | SL-RP/samp-plugin-crashdetect | tests/bounds.pwn | [
"BSD-2-Clause"
] |
// simple-ipsec.click An IP Router Configuration with IPsec/ESP support
// This file is an extended version of a canonical IP router that also supports
// IPsec ESP tunnels between gateways
// This configuration uses network sources (FromDevice and to Device elements)
// Kernel configuration for cone as a... | Click | 5 | ANLAB-KAIST/NBA | configs/ipsec_router_simple.click | [
"MIT"
] |
from .DummyModel import DummyModel
model_map = {
"DummyModel": DummyModel
}
| Python | 1 | Hacky-DH/pytorch | benchmarks/distributed/rpc/parameter_server/models/__init__.py | [
"Intel"
] |
syntax = "proto3";
package tensorflow.rpc;
import "tensorflow/core/framework/tensor.proto";
import "tensorflow/core/protobuf/struct.proto";
message CallRequest {
string method = 1;
repeated TensorProto input_tensors = 2;
}
message CallResponse {
repeated TensorProto output_tensors = 1;
}
message ListRequest ... | Protocol Buffer | 4 | EricRemmerswaal/tensorflow | tensorflow/distribute/experimental/rpc/proto/tf_rpc_service.proto | [
"Apache-2.0"
] |
DROP TABLE IF EXISTS car;
CREATE TABLE car (id int(10) NOT NULL AUTO_INCREMENT,
model varchar(50) NOT NULL,
year int(4) NOT NULL,
PRIMARY KEY (id));
INSERT INTO car (model, year) VALUES ('BMW', 2000);
INSERT INTO car (model, year) VALUES ('BENZ', 2010);
INSERT INTO car (model, year) VALUES ('PORCHE', ... | SQL | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-repo/src/main/resources/car-mysql.sql | [
"MIT"
] |
; Simple example
"Hello World" println
| Ioke | 1 | olabini/ioke | test/scripts/hello_world.ik | [
"ICU",
"MIT"
] |
screen quiz_question_answer_explanation_screen(quiz_question):
on "show" action With(dissolve)
on "hide" action With(dissolve)
frame:
style_prefix "confirm"
xfill True
xsize 1200
xmargin 50
ypadding 30
yalign .25
background '#fffe'
vbox:
... | Ren'Py | 5 | googlebleh/LearnToCodeRPG | game/scripts/quiz_questions.rpy | [
"BSD-3-Clause"
] |
module.exports = {
reactStrictMode: true,
experimental: {
serverComponents: true,
// runtime: 'edge',
},
}
| JavaScript | 4 | hanneslund/next.js | test/integration/react-streaming-and-server-components/switchable-runtime/next.config.js | [
"MIT"
] |
"""Tests for the Freebox config flow."""
from unittest.mock import Mock, patch
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN
from homeassistant.components.button.const import SERVICE_PRESS
from homeassistant.components.freebox.const import DOMAIN
from homeassistant.const import ATTR_ENTITY_ID, CO... | Python | 4 | MrDelik/core | tests/components/freebox/test_button.py | [
"Apache-2.0"
] |
/* Copyright 2017 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/compiler/tf2xla/kernels/image_resize_ops.cc | [
"Apache-2.0"
] |
14 10 15 34 34 39 26 5 21 27 7 46 35 28 36 36 8 12 39 42 31 46 4 23 27 11 32 5 12 9 24 5 26 27 30 50 43 1 32 19
10 36 49 19 35 8 49 41 13 8 27 30 9 2 49 43 18 2 29 47 38 3 23 27 16 15 13 43 31 12 18 46 28 46 38 40 3 8 46 47
22 39 11 35 13 13 39 36 37 49 12 18 12 28 45 35 41 34 14 45 15 18 4 49 42 37 9 44 16 3 42 46 32 ... | Matlab | 0 | yinrun/LOPDC-Benchmarks | lofri/matlab/n40-m4-r50-7.matlab | [
"MIT"
] |
#!/bin/bash
echo "=== Installing the website dependencies"
cd "$1" || exit
yarn
echo "=== Building website"
NODE_ENV=production ./node_modules/.bin/gatsby build
| Shell | 4 | JQuinnie/gatsby | scripts/publish-site-from-npm.sh | [
"MIT"
] |
/W [ 32 38 723 40 126 723 168 168 723 171 171 723 173 173 723 175 175 723 180 180 723 184 184 723 187 187 723 258 258 723 260 260 723 262 262 723 268 268 723 270 270 723 280 280 723 282 282 723 286 286 723 305 305 723 313 313 723 317 317 723 710 711 723 728 733 723 8211 8212 723 8216 8218 723 8220 8222 723 8240 8240 72... | Redcode | 0 | amirul1000/health-care-hospital-management-system- | application/third_party/mpdf60/ttfontdata/ocrb.cw | [
"MIT"
] |
---
title: Terms of service
layout: single
container-size: narrow
---
<div class="card card-md">
<div class="card-body">
<h3 class="card-title">{{ page.title }}</h3>
<div class="markdown">
{% capture license %}{% include terms-of-service.md %}{% endcapture %}
{{ license | markdownify }}
</div>
</div>
</d... | HTML | 2 | muhginanjar/tabler | src/pages/terms-of-service.html | [
"MIT"
] |
CREATE TABLE `tb_wbrbzvpfra` (
`col_lokvnorvsp` char(235) CHARACTER SET utf8mb4 DEFAULT NULL,
`col_vazlbmjjtl` char(1) DEFAULT NULL,
`col_kcxzselokz` mediumint(229) unsigned NOT NULL DEFAULT '1',
`col_bjiezlcrgf` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') NOT NULL DEFAULT 'enum_or_set_0',
PRIMARY KE... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/table/mysql_17.sql | [
"Apache-2.0"
] |
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "cloudserver.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limite... | Smarty | 5 | kevinpollet/charts | stable/cloudserver/templates/_helpers.tpl | [
"Apache-2.0"
] |
color([ 128/255, 0/255, 0/255 ])
cube(size=[10,10,10],center=false); | OpenSCAD | 4 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/transformations/colorEx1.scad | [
"MIT"
] |
--TEST--
mysqli_stmt_prepare()
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require_once("connect.inc");
// Note: No SQL tests here! We can expand one of the *fetch()
// tests to a generic SQL test, if we ever need that.
// We would duplicate the SQ... | PHP | 3 | NathanFreeman/php-src | ext/mysqli/tests/mysqli_stmt_big_prepare.phpt | [
"PHP-3.01"
] |
#
# 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 not us... | Python | 3 | akhalymon-cv/spark | python/pyspark/pandas/typedef/string_typehints.py | [
"Apache-2.0"
] |
/***************************************************
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text above must be included... | Arduino | 5 | gvvynplaine/The-Open-Book | Examples/Tiny_Book_IL91874_Test/Tiny_Book_IL91874_Test.ino | [
"MIT"
] |
Sporth s => dac;
s.parse("440 0.1 sine");
1::second => now;
s.parse("880 0.1 sine");
3::second => now;
| ChucK | 3 | brandenbyers/Sporth | util/chorth/reparse.ck | [
"MIT"
] |
/*
* This file is part of the X10 project (http://x10-lang.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.php
*
*... | X10 | 5 | octonion/examples | languages/x10/KMeans.x10 | [
"MIT"
] |
# Problem 28
# What is the sum of the numbers on the diagonals in a 1001 by 1001 spiral
# formed in the same way?
# Starting with the number 1 and moving to the right in a clockwise
# direction a 5 by 5 spiral is formed as follows:
#
# 21 22 23 24 25
# 20 7 8 9 10
# 19 6 1 2 11
# 18 5 4 3 12
# 17 16 15 14 13
... | Fancy | 4 | bakkdoor/fancy | examples/project-euler/28.fy | [
"BSD-3-Clause"
] |
// spec to include
* all _projects_ visible for the _current user_ are returned
* _projects_ may be active or closed
USER: project lead, admin
| AsciiDoc | 1 | therockstorm/openapi-generator | modules/openapi-generator/src/test/resources/3_0/asciidoc/specs/rest/project/GET/spec.adoc | [
"Apache-2.0"
] |
:- initialization logtalk_load(['00-util','01-python','02-fs','03-homebrew','04-apt','05-git','06-meta','07-managed',marelle,sudo]).
| Logtalk | 1 | PaulBrownMagic/logtalk3 | tools/wrapper/marelle/loader.lgt | [
"Apache-2.0"
] |
const createRunner = require('atom-mocha-test-runner').createRunner;
module.exports = createRunner({ testSuffixes: ['test.js'] });
| JavaScript | 3 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | packages/dalek/test/runner.js | [
"MIT"
] |
/* global QUnit, URLify */
'use strict';
QUnit.module('admin.URLify');
QUnit.test('empty string', function(assert) {
assert.strictEqual(URLify('', 8, true), '');
});
QUnit.test('preserve nonessential words', function(assert) {
assert.strictEqual(URLify('the D is silent', 15, true), 'the-d-is-silent');
});
Q... | JavaScript | 5 | jpmallarino/django | js_tests/admin/URLify.test.js | [
"BSD-3-Clause",
"0BSD"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="MissionPoint" ID="8852bf71-27c9-4716-8202-12e04b29b651" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Node" CanEdit="False" FrameEvent="" ctype="SingleNodeObjectData">
... | Csound | 3 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/MissionPoint.csd | [
"MIT"
] |
( Generated from test_literal_int_variants_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _main[ _arg -- ret ]
{
99 98 97 96 95 195935983 195935983 12345678
12345678 668 0
}list var! _valid_numbers
var _num
_valid_numbers @ foreach
_num ! pop
{ _n... | MUF | 3 | revarbat/pymuv | tests/test_literal_int_variants_cmp.muf | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.