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 |
|---|---|---|---|---|---|
shh naive fizzbuzz
such fizz much n
very ans is ''
rly n % 3 is 0
ans more 'fizz'
wow
rly n % 5 is 0
ans more 'buzz'
wow
shh return number
rly ans is ''
wow n
amaze ans
wow
much n as 1 next n smallerish 100 next n bigified
very res is plz fizz with n
console dos... | Dogescript | 3 | PinkDiamond1/dogescript | docker/samples/fizzbuzz.djs | [
"MIT"
] |
use clippy_utils::diagnostics::span_lint_and_sugg;
use clippy_utils::{is_expr_identity_function, is_trait_method};
use rustc_errors::Applicability;
use rustc_hir as hir;
use rustc_lint::LateContext;
use rustc_span::{source_map::Span, sym};
use super::FLAT_MAP_IDENTITY;
/// lint use of `flat_map` for `Iterators` where... | Rust | 4 | narpfel/rust-clippy | clippy_lints/src/methods/flat_map_identity.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
invalid-escape = "This string has a bad \/ escape character."
| TOML | 2 | vanillajonathan/julia | stdlib/TOML/test/testfiles/invalid/string-bad-slash-escape.toml | [
"Zlib"
] |
<html>
<head>
<title>Link element test</title>
<link rel="stylesheet" href="link.css">
</head>
<body>
<div id="foo">I should be styled!</div>
</body>
</html>
| HTML | 3 | r00ster91/serenity | Base/res/html/misc/link.html | [
"BSD-2-Clause"
] |
[Desktop Entry]
Type=Application
Name=Test Menu Item Install
Exec=touch /tmp/xdg-test-menu-item-install.tmp
StartupNotify=false
| desktop | 2 | freedesktop-unofficial-mirror/xdg__xdg-utils | tests/xdg-desktop-menu/data/menu_item_test.desktop | [
"MIT"
] |
(*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*)
theory Sep_Provers_Example
imports Sep_Provers
begin
axiomatization
Moo :: "'a ::... | Isabelle | 5 | pirapira/eth-isabelle | sep_algebra/Sep_Provers_Example.thy | [
"Apache-2.0"
] |
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/copy_op.h"
namespace caffe2 {
template <>
class CopyOnDeviceLikeOp<CUDAContext, CUDAContext, CUDAContext>
: public Operator<CUDAContext> {
public:
template <class... Args>
explicit CopyOnDeviceLikeOp(Args&&... args)
: Operator<CUDAContext>... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/copy_op.cu | [
"Intel"
] |
module: access-path-implementation
synopsis: FFI declarations to allow access-path to call the debugger
nub on demand
author: Paul Howard
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in ... | Dylan | 3 | kryptine/opendylan | sources/runtime-manager/access-path/nub-ffi-defs.dylan | [
"BSD-2-Clause"
] |
Red/System [
Title: "Red/System call binding"
Author: ["Bruno Anselme" "Nenad Rakocevic"]
EMail: "be.red@free.fr"
File: %call.reds
Rights: "Copyright (c) 2014-2015 Bruno Anselme"
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.tx... | Red | 5 | GalenIvanov/red | runtime/call.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
# This is a first attempt and some type of logging
def log [message:any] {
let now = (date now | date format '%Y%m%d_%H%M%S.%f')
let mess = $"($now)|DBG|($message)(char nl)"
echo $mess | autoview
} | Nu | 3 | x3rAx/nu_scripts | stdlib_candidate/logging.nu | [
"MIT"
] |
<mt:Ignore>
# =======================
#
# ウィジェット-検索
#
# =======================
</mt:Ignore>
<div class="widget widget-search">
<form method="get" class="form-inline" id="search" action="<mt:AdminCGIPath /><mt:SearchScript />">
<input class="form-control form-control-sm" type="text" name="search" value="... | MTML | 2 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/widget_search.mtml | [
"MIT"
] |
#pragma once
#include <ATen/record_function.h>
#include <c10/util/Optional.h>
namespace torch {
namespace autograd {
namespace profiler {
// Creates a new profiling scope using RecordFunction and invokes its starting
// callbacks.
TORCH_API at::Tensor record_function_enter(const std::string& name, const c10::optional<... | C | 4 | xiaohanhuang/pytorch | torch/csrc/autograd/record_function_ops.h | [
"Intel"
] |
[[messaging.kafka]]
== Apache Kafka Support
https://kafka.apache.org/[Apache Kafka] is supported by providing auto-configuration of the `spring-kafka` project.
Kafka configuration is controlled by external configuration properties in `spring.kafka.*`.
For example, you might declare the following section in `applicatio... | AsciiDoc | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/messaging/kafka.adoc | [
"Apache-2.0"
] |
def fill:"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... | JSONiq | 0 | aakropotkin/jq | tests/utf8-truncate.jq | [
"CC-BY-3.0"
] |
regular-module:
module.run:
- name: test.echo
- text: hello
custom-module:
module.run:
- name: test.recho
- text: hello
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/custom_module.sls | [
"Apache-2.0"
] |
div {
em > 'Foo'
bar > 'Bar'
}
---
div {
em >
'Foo'
bar >
'Bar'
}
===================================
div {
em > 'Foo'
bar > 'Bar'
}
span; section > div {
'A'
"B"
}
---
div {
em >
'Foo'
bar >
'Bar'
}
span;
section >
div {
'A'
'B'
}
=====================================
de... | Mask | 2 | atmajs/MaskJS | test/tmpl/stringify/node_many.mask | [
"MIT"
] |
inline fun {{receiver}}.{{functionName}}(): {{returnType}} = {{functionName}}() {}
inline fun {{receiver}}.{{functionName}}({{additionalParams}}{{#additionalParams}}, {{/additionalParams}}init: (@AnkoViewDslMarker {{lambdaArgType}}).() -> Unit): {{returnType}} {
return ankoView({{factory}}, theme = 0) { init() }
}
... | HTML+Django | 4 | tobiasdubois/anko | anko/props/templates/view.mustache | [
"Apache-2.0"
] |
Feature: hub issue transfer
Background:
Given I am in "git://github.com/octocat/hello-world.git" git repo
And I am "srafi1" on github.com with OAuth token "OTOKEN"
Scenario: Transfer issue
Given the GitHub API server:
"""
count = 0
post('/graphql') {
halt 401 unless request.env['HTTP_... | Cucumber | 4 | JLLeitschuh/hub | features/issue-transfer.feature | [
"MIT"
] |
module.exports (terms) =
scope (statementList, alwaysGenerateFunction: false, variables: []) =
if (statementList.length == 1 @and @not alwaysGenerateFunction)
statement = statementList.0
if (statement.isReturn)
statement.expression
else
st... | PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/scope.pogo | [
"MIT"
] |
xquery version "1.0-ml";
import module namespace config = "http://marklogic.com/data-hub/config" at "/com.marklogic.hub/config.xqy";
import module namespace hub-test = "http://marklogic.com/data-hub/test" at "/test/data-hub-test-helper.xqy";
hub-test:clear-jobs-database(),
hub-test:clear-provenance-records($config:FIN... | XQuery | 3 | iveyMarklogic/marklogic-data-hub | marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/data-services/provenance/migrateProvenance/setup.xqy | [
"Apache-2.0"
] |
; Define a Dog object
Dog = Origin mimic do(
barkPhrase = "woof!"
bark = method(barkPhrase))
; Create Chihuahua subclass of Dog
Chihuahua = Dog mimic do(
barkPhrase = "yip!"
)
"Dog bark: #{Dog bark}" println
"Chihuahua bark: #{Chihuahua bark}" println
; make an instance
myChihuahua = Chihuahua mimic do(
ba... | Ioke | 4 | olabini/ioke | examples/misc/inheritance.ik | [
"ICU",
"MIT"
] |
// @target: es5
var x = "\u{67";
| TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/conformance/es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts | [
"Apache-2.0"
] |
/*
MYTHREAD: the unique thread index
June. 6, 2008
Liao
*/
#include <stdio.h>
int main(){
printf("I am thread: %d \n", MYTHREAD);
return 0;
}
| Unified Parallel C | 1 | maurizioabba/rose | tests/CompileTests/UPC_tests/mythread.upc | [
"BSD-3-Clause"
] |
ifdef !disable_ox_libspicing below
-- -- _replacing babeling_ by staying on Onyx naming ball court side -- --
ifdef !disable_ox_typarchy
-- Crystal compatibility aliases:
-- The aliased types are hard coded into the compiler
type Object = Any
type Class = Kind
type Symbol = Tag
type Pointer = Ptr... | Ox | 4 | ozra/onyx-lang | src/onyx_prelude_intro.ox | [
"Apache-2.0"
] |
# This is a basic /etc/fstab that mounts up all of the virtual filesystems
# that older versions of Finit used to mount internally. It can serve as a
# starting point for systems running Busybox's mount implementation. Make
# sure that CONFIG_FEATURE_MOUNT_HELPERS enabled; as this is required
# create the /dev/{pts,shm... | BitBake | 3 | srand/finit | contrib/fstab.bb | [
"MIT"
] |
redo-ifchange gitvars.pre prodname
read PROD <prodname
exec >$3
# Fix each line from gitvars.pre where git may or may not have already
# substituted the variables. If someone generated a tarball with 'git archive',
# then the data will have been substituted already. If we're in a checkout of
# the git repo, then it... | Stata | 4 | BlameJohnny/redo | redo/version/gitvars.do | [
"Apache-2.0"
] |
a { value: 10p\32x } | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/0LKvnY2GhG7ss8EXa0t6tQ/input.css | [
"Apache-2.0",
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_parseFrequenciesInput
Author: Dorbedo
parses a frequencies array and fills it up with default values
does a valuecheck and ignores wrong values
Arguments:
0: argument name <STRING>
1: min amount of channels <NUMBER>
2: min freq <NUMBER>
... | SQF | 5 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_parseFrequenciesInput.sqf | [
"RSA-MD"
] |
/*##############################################################################
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 | 3 | miguelvazq/HPCC-Platform | ecl/regress/indexread17.ecl | [
"Apache-2.0"
] |
#!/usr/bin/gnuplot -persist
set title "Boehm-GC: Pause Times - Classic vs. Optimized Modes" font ",18"
set xlabel "Interval #"
set xtics out nomirror
set xtic 1000000
set grid noxtics ytics
set ylabel "Pause Time [ms]"
set terminal pdfcairo transparent enhanced fontscale 0.5 size 5.00in, 3.00in
set key box at 4810000... | Gnuplot | 4 | gamemaker1/v | vlib/v/tests/bench/gcboehm/GC_bench.plt | [
"MIT"
] |
reverted:
--- ../../../../external/protobuf_2.5.0/src/google/protobuf/io/zero_copy_stream_impl_lite.cc 2013-02-26 09:56:42.000000000 -0800
+++ ./src/google/protobuf/io/zero_copy_stream_impl_lite.cc 2016-01-27 09:52:04.639700200 -0800
@@ -32,6 +32,8 @@
// Based on original Protocol Buffers design by
// Sanjay Ghemaw... | Diff | 1 | zadcha/rethinkdb | mk/support/pkg/patch/protobuf_1-fix-build-errors.patch | [
"Apache-2.0"
] |
module openconfig-wifi-types {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/wifi/wifi-types";
// Assign this module a prefix to be used by other modules, when imported.
prefix "oc-wifi-types";
import openconfig-extensions { prefix oc-ext; }
// Some required meta
organization... | YANG | 4 | fossabot/public | release/models/wifi/openconfig-wifi-types.yang | [
"Apache-2.0"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## cassandra_logdir_fix.dpatch by Michael Shuler <michael@pbandjelly.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--ex... | Darcs Patch | 3 | xsir/stratio-cassandra | debian/patches/002cassandra_logdir_fix.dpatch | [
"Apache-2.0"
] |
=pod
=head1 NAME
EVP_PKEY_missing_parameters, EVP_PKEY_copy_parameters, EVP_PKEY_parameters_eq,
EVP_PKEY_cmp_parameters, EVP_PKEY_eq,
EVP_PKEY_cmp - public key parameter and comparison functions
=head1 SYNOPSIS
#include <openssl/evp.h>
int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);
int EVP_PKEY_copy_par... | Pod | 4 | lbbxsxlz/openssl | doc/man3/EVP_PKEY_copy_parameters.pod | [
"Apache-2.0"
] |
{{>partial_header}}
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using {{packageName}}.Attributes;
{{#hasAuthMethods}}using {{packageN... | HTML+Django | 5 | jjssoftware/swagger-codegen | modules/swagger-codegen/src/main/resources/aspnetcore/3.0/controller.mustache | [
"Apache-2.0"
] |
(*
* The MIT License (MIT)
*
* Copyright (c) 2014 Hongwei Xi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | ATS | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/ATS/csv_parse.hats | [
"MIT"
] |
enum A { A }
enum B { B }
fn main() { let x: A = A::A; match x { B::B => { } } } //~ ERROR mismatched types
| Rust | 3 | Eric-Arellano/rust | src/test/ui/match/match-tag-nullary.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }}
/*
* This file is automatically generated; any changes will be lost.
*/
#nullable enable
#pragma warning disable
using Beef.Data.Database.Cdc;
using Beef.Entities;
using Beef.Mapper;
{{#ifeq Root.JsonSerializer 'Newt... | Harbour | 5 | ciaranodonnell/Beef | tools/Beef.CodeGen.Core/Templates/DbCdcEntity_cs.hb | [
"MIT"
] |
input Params {
# Id
id: ID
# Name
name: String
}
| GraphQL | 3 | fuelingtheweb/prettier | tests/graphql_newline/input.graphql | [
"MIT"
] |
import QtQuick.Layouts 1.4
import QtQuick 2.4
import QtQuick.Controls 2.0
import org.kde.kirigami 2.4 as Kirigami
import Mycroft 1.0 as Mycroft
Mycroft.Delegate {
id: systemImageFrame
skillBackgroundColorOverlay: "#000000"
property bool hasTitle: sessionData.title.length > 0 ? true : false
property bo... | QML | 3 | assistent-cat/mycroft-core | mycroft/res/ui/SYSTEM_AnimatedImageFrame.qml | [
"Apache-2.0"
] |
mes 2,2,4
exa edata
edata
con 0
| Eiffel | 0 | wyan/ack | mach/em24/libend/edata.e | [
"BSD-3-Clause"
] |
package com.baeldung.doubles;
import java.math.BigDecimal;
public class SplitFloatingPointNumbers {
public static void main(String[] args) {
double doubleNumber = 24.04;
splitUsingFloatingTypes(doubleNumber);
splitUsingString(doubleNumber);
splitUsingBigDecimal(doubleNum... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-lang-math/src/main/java/com/baeldung/doubles/SplitFloatingPointNumbers.java | [
"MIT"
] |
/* fourth.css */
#project-title {
font-family: serif;
} | CSS | 2 | ravitejavalluri/brackets | test/spec/ExtensionUtils-test-files/sub dir/fourth.css | [
"MIT"
] |
_seq '67 69 71 72 74 76' gen_vals
_args 4 zeros
72 mtof 4 pset
_amps '1.0 0.5 0.25 0.5' gen_vals
_pad 262144 4 p 40 'amps' gen_padsynth
1 p 40 200 scale 4 * bpm2dur dmetro
0.6 maytrig dup 0 _args tset
0.002 0.004 0.2 tenvx
0 p 0 4 scale floor _seq tget
0.1 port
mtof
dup 2 _args tset
0.2 1
0 _args tget 0 5 trand dup f... | SourcePawn | 2 | wtholliday/Sporth | util/pd/distant_intelligence.sp | [
"MIT",
"Unlicense"
] |
{} (:package |test-math)
:configs $ {} (:init-fn |test-math.main/main!) (:reload-fn |test-math.main/reload!)
:files $ {}
|test-math.main $ {}
:ns $ quote
ns test-math.main $ :require
:defs $ {}
|test-numbers $ quote
defn test-numbers ()
assert= 3 (+ 1 2)
... | Cirru | 5 | calcit-lang/calcit.rs | calcit/test-math.cirru | [
"MIT"
] |
xof 0303txt 0032
template XSkinMeshHeader {
<3cf169ce-ff7c-44ab-93c0-f78f62d172e2>
WORD nMaxSkinWeightsPerVertex;
WORD nMaxSkinWeightsPerFace;
WORD nBones;
}
template VertexDuplicationIndices {
<b8d65549-d7c9-4995-89cf-53a9a8b031e3>
DWORD nIndices;
DWORD nOriginalVertices;
array DWORD indices[nIndices];
}
tem... | Logos | 3 | sercand/assimp | test/models/X/test_cube_text.x | [
"BSD-3-Clause"
] |
Transcript show: ’hello world’; cr.
| Smalltalk | 1 | kennethsequeira/Hello-world | Pharo/pharo.st | [
"MIT"
] |
/**
* @license Copyright 2016 The Lighthouse 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... | CSS | 3 | martin-maunoury/lighthouse | clients/extension/styles/lighthouse.css | [
"Apache-2.0"
] |
#!/bin/sh
set -e
cd ~/.vim_runtime
cat ~/.vim_runtime/vimrcs/basic.vim > ~/.vimrc
echo "Installed the Basic Vim configuration successfully! Enjoy :-)"
| Shell | 4 | shriniwas26/vimrc | install_basic_vimrc.sh | [
"MIT"
] |
--TEST--
Bug #47168 (printf of floating point variable prints maximum of 40 decimal places)
--FILE--
<?php
$dyadic = 0.00000000000045474735088646411895751953125;
var_dump(printf ("%1.41f\n",unserialize(serialize($dyadic))));
?>
--EXPECT--
0.00000000000045474735088646411895751953125
int(44)
| PHP | 3 | guomoumou123/php5.5.10 | ext/standard/tests/strings/bug47168.phpt | [
"PHP-3.01"
] |
// nested function calls with cast.
fn main() {
self.ptr
.set(intrinsics::arith_offset(self.ptr.get() as *mut u8, 1) as *mut T);
self.ptr
.set(intrinsics::arith_offset(self.ptr.get(), mem::size_of::<T>() as isize) as *mut u8);
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/issue-2324.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# Copyright (C) 2001-2008, Parrot Foundation.
=head1 NAME
examples/benchmarks/primes2.pir - Calculate prime numbers < 10000
=head1 SYNOPSIS
% time ./parrot examples/benchmarks/primes2.pir
=head1 DESCRIPTION
Calculates all the prime numbers up to 10000 and prints out the number
of primes and the last one found... | Parrot Internal Representation | 5 | winnit-myself/Wifie | examples/benchmarks/primes2_i.pir | [
"Artistic-2.0"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
contract ContextMock is Context {
event Sender(address sender);
function msgSender() public {
emit Sender(_msgSender());
}
event Data(bytes data, uint256 integerValue, string stringValue);
function m... | Solidity | 4 | FabianBenShaddai/openzeppelin-contracts | contracts/mocks/ContextMock.sol | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<?python
#
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | Genshi | 3 | sassoftware/conary | conary/server/templates/files.kid | [
"Apache-2.0"
] |
-- The user_version should match the "000X" from the file name
-- Ex: 0001_create_notebooks_table should have a user_verison of 1
PRAGMA user_version=1;
-- Create the initial table to store notebooks
CREATE TABLE notebooks (
id TEXT NOT NULL PRIMARY KEY,
org_id TEXT NOT NULL,
name TEXT NOT NULL,
spec TEXT NOT ... | SQL | 4 | ldwformat/influxdb | sqlite/migrations/0001_create_notebooks_table.sql | [
"MIT"
] |
```{r}
# @type x : numeric
# @type y : numeric
test_function <- function(x<caret>, y, z, d) {
print("This is test function")
barplot(x)
x + 1 + 1
z
}
x <- 10
z <- "dsds"
y <- x + x
```
```{python}
x = 10
def test_function(x):
return 42 + x
```
```{r}
y <- y * x
``` | RMarkdown | 3 | DeagleGross/Rplugin | testData/rename/renameParameterInRmd.rmd | [
"MIT",
"BSD-2-Clause",
"Apache-2.0"
] |
= Documentation for HTTP Basic Auth Feature
The HTTP basic auth feature allows logins using HTTP basic authentication,
described in RFC 1945.
In your routing block, you can require HTTP basic authentication via:
rodauth.require_http_basic_auth
If you want to allow HTTP basic authentication but not require it, you... | RDoc | 4 | monorkin/rodauth | doc/http_basic_auth.rdoc | [
"MIT"
] |
BEGIN { FS=" "; }
NR == 1 { nf=split(FILENAME,f,".")
print "<HTML>";
print "<HEAD><TITLE>" f[1] "</TITLE></HEAD>";
print "<BODY BGCOLOR=\"#ffffff\">";
print "<H1>Vim Documentation: " f[1] "</H1>";
print "<A NAME=\"top\"></A>";
print "<HR>";
print "<PRE>";
}
{
#
# protect special chars
#
gsub(/&/,"\\&... | Awk | 5 | uga-rosa/neovim | runtime/doc/maketags.awk | [
"Vim"
] |
# Model for brewnit
module model
import db_binding
redef class Fermentable
redef fun to_s do
return "{class_name}: {name}, potential: {potential}, colour: {colour}"
end
end
redef class Yeast
redef fun to_s do
var ret = new Buffer
ret.append "Yeast {brand}, {name}"
if not aliases.is_empty then ret.append "... | Nit | 4 | ajnavarro/language-dataset | data/github.com/R4PaSs/brewnit/2e8cf983d6dbae1e57f2d1c79cb3a98d2e992c26/src/model/model.nit | [
"MIT"
] |
label ccb0008a:
太一 "「掃除、手伝おうか?」"
call gl(1,"TCYM0003|TCYM0003")
call vsp(1,1)
with dissolve
"美希はにっこり笑う。"
voice "vfccb0008amki000"
美希 "「ことわる」"
太一 "「うわーーーーーーーーーーんっ」"
"拒絶されたっ。"
"手ひどく、容赦なく、一片の同情さえなく。"
call gl(1,"TCYM0021|TCYM0021")
call vsp(1,1)
with dissolve
voice "v... | Ren'Py | 3 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccb/ccb0008a.rpy | [
"Apache-2.0"
] |
require './assertions'
parser = require '../lib/parser/parser'
require './parserAssertions'
create terms () = require '../lib/parser/codeGenerator'.code generator ()
describe 'parser'
terms = nil
before
terms := create terms ()
describe 'terminals'
describe 'integers'
it 'can parse 5'
(e... | PogoScript | 5 | featurist/pogoscript | test/parserSpec.pogo | [
"BSD-2-Clause"
] |
<?xml version="1.0"?>
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/doid/imports/symp_import.owl#"
xml:base="http://purl.obolibrary.org/obo/doid/imports/symp_import.owl"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:obo="http://purl.obolibrary.org/obo/"
xmlns:owl="http://www.w3.org/2002/07/owl#... | Web Ontology Language | 4 | cthoyt/HumanDiseaseOntology | src/ontology/imports/symp_import.owl | [
"CC0-1.0"
] |
<div class="panel white hidden" id="panel-sort">
<small class="wide"><span class="gray">sort by</span> name</small>
<p sort="azdesc" class="clickable" onclick="changeFolderSort('azdesc');">a - z</p>
<i sort="azdesc" class="ri-arrow-down-fill" onclick="changeFolderSort('azdesc');"></i>
<b></b>
... | Kit | 3 | pws1453/web-client | source/imports/app/docs-panel-sort.kit | [
"MIT"
] |
<%= render partial: "test/second_json_partial" %> | HTML+ERB | 1 | swaathi/rails | actionview/test/fixtures/test/_first_json_partial.json.erb | [
"MIT"
] |
2016-01-21 11:34:14 fsociety hey sir
2016-01-21 11:39:23 error406 Mornin! how u dooo
2016-01-21 11:39:58 fsociety sleepy
2016-01-21 11:40:03 fsociety very sleepy
2016-01-21 11:40:29 fsociety realised i have to write my youtube list as a txtfile and give it to you, because well no chromecast on dean's phone.
2016-01-21 ... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.error406.weechatlog | [
"MIT"
] |
import { isZhCN } from '../utils/util';
import packageInfo from '../../../package.json';
import logo from '../assets/logo.svg';
import antDesignVue from '../assets/ant-design-vue.svg';
import { SearchOutlined } from '@ant-design/icons-vue';
export default {
props: {
name: String,
searchData: Array,
},
da... | JSX | 4 | YaroShkvorets/ant-design-vue | site/src/components/header.jsx | [
"MIT"
] |
_ = require 'underscore'
proxyquire = require 'proxyquire'
stubDefaultsJSON = null
execHitory = []
ChildProcess =
exec: (command, callback) ->
execHitory.push(arguments)
callback(null, '', null)
fs =
exists: (path, callback) ->
callback(true)
readFile: (path, callback) ->
callback(null, JSON.st... | CoffeeScript | 3 | cnheider/nylas-mail | packages/client-app/spec/default-client-helper-spec.coffee | [
"MIT"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/ReplayCircleFilledOutlined.js | [
"MIT"
] |
create table utf8mb4 (`主键` int primary key comment '注释'); | SQL | 4 | WizardXiao/tidb | br/tests/lightning_character_sets/utf8mb4/charsets.utf8mb4-schema.sql | [
"Apache-2.0"
] |
CLASS ltc_ci DEFINITION FINAL FOR TESTING
DURATION MEDIUM
RISK LEVEL CRITICAL.
PRIVATE SECTION.
METHODS run_ci FOR TESTING RAISING cx_static_check.
ENDCLASS.
CLASS ltc_ci IMPLEMENTATION.
METHOD run_ci.
DATA lv_repo_url TYPE string.
IF zcl_abapgit_persist_factory=>get_settings( )->read( )->get_... | ABAP | 4 | Manny27nyc/abapGit | src/objects/zcl_abapgit_object_pdts.clas.testclasses.abap | [
"MIT"
] |
!include "MUI2.nsh"
!searchparse /file ../Source/AppDef.h '#define APP_VERSIONSTR _T("' APP_VERSION '")'
!define PROGRAM_NAME "ElfView"
!define DISPLAY_NAME "Elf Viewer"
; The name of the installer
Name "${DISPLAY_NAME} v${APP_VERSION}"
; The file to write
OutFile "${PROGRAM_NAME}-${APP_VERSION}-32.exe"
... | NSIS | 5 | Croden1999/Play- | tools/ElfView/win32_installer/installer32.nsi | [
"BSD-2-Clause"
] |
--TEST--
Test get_declared_classes() function : testing autoloaded classes
--FILE--
<?php
echo "*** Testing get_declared_classes() : testing autoloaded classes ***\n";
spl_autoload_register(function ($class_name) {
require_once $class_name . '.inc';
});
echo "\n-- before instance is declared --\n";
var_dump(in_ar... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/class_object/get_declared_classes_variation1.phpt | [
"PHP-3.01"
] |
Features Found By Circle
Xs Ys Xe Ye Len Xc Yc Rad Ang.st Ang.end
125 110 123 102 110 106 110 19 0 333
111 94 82 118 44 86 94 25 0 100
228 104 204 120 34 210 104 18 0 110
90 135 81 110 32 94 119 17 104 215
| Arc | 2 | dkuspawono/TILT-Compiler | BenchData/csim.arc | [
"MIT-CMU"
] |
module C
import A
A.defA = ?newHole
| Idris | 0 | Qqwy/Idris2-Erlang | idris2/tests/idris2/import003/C.idr | [
"BSD-3-Clause"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
import {REACT_DE... | JavaScript | 3 | GBKstc/react-analysis | packages/react-devtools-shared/src/devtools/views/ErrorBoundary/WorkplaceGroup.js | [
"MIT"
] |
100 5 0 0
0 1 6 3 24 21 2 33 1 [0] [0] [0] [0] [0] [0]
1 1 1 59 [12]
2 1 1 23 [9]
3 1 3 74 51 58 [7] [7] [7]
4 1 1 100 [6]
5 1 1 14 [7]
6 1 1 71 [12]
7 1 1 19 [9]
8 1 1 79 [15]
9 1 1 20 [7]
10 1 2 22 8 [13] [13]
11 1 1 69 [10]
12 1 1 67 [13]
13 1 1 81 [12]
14 1 1 18 [11]
15 1 1 85 [12]
16 1 1 44 [13]
... | Eagle | 0 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/testsetc/psp167.sch | [
"Apache-2.0"
] |
#pragma TextEncoding="UTF-8"
#pragma rtGlobals=3
#pragma ModuleName=SIDAMShowParameters
#include "SIDAM_Utilities_Image"
#ifndef SIDAMshowProc
#pragma hide = 1
#endif
Static Constant FONTSIZE = 10
Static Constant FONTSTYLE = 0
Function SIDAMShowParameters()
String grfName = WinName(0,1)
DFREF df... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_ShowParameters.ipf | [
"MIT"
] |
#!/usr/bin/env zsh
# vim:ft=zsh ts=2 sw=2 sts=2
_emotty_sets[emoji]="
crystal_ball
ghost
jack_o_lantern
see_no_evil_monkey
hear_no_evil_monkey
speak_no_evil_monkey
smiling_cat_face_with_open_mouth
extraterrestrial_alien
rocket
billiards
bomb
pill
japanese_symbol_for_beginner
direct_hit
cy... | Shell | 3 | chensanle/ohmyzsh | plugins/emotty/emotty_emoji_set.zsh | [
"MIT"
] |
rly foo
shh 1
but rly bar
shh 2
but
shh 3
wow
| Dogescript | 0 | joeratt/dogescript | test/spec/rly/rly-but-rly-but/source.djs | [
"MIT"
] |
discard """
output: '''123
c is not nil'''
"""
# bug #9149
type
Container = ref object
data: int
converter containerToString*(x: Container): string = $x.data
var c = Container(data: 123)
var str = string c
echo str
if c == nil: # this line can compile on v0.18, but not on 0.19
echo "c is nil"
if not c.i... | Nimrod | 3 | JohnAD/Nim | tests/overload/tconverter_to_string.nim | [
"MIT"
] |
'fileTypes': ['alittle']
'name': 'Alittle'
'scopeName': 'source.alittle'
'patterns': [
{
'captures':
'0':
'name': 'keyword.alittle'
'match': 'alittle'
}
]
| CoffeeScript | 2 | pyrolabs/atom | spec/fixtures/packages/package-with-grammars/grammars/alittle.cson | [
"MIT"
] |
#!/usr/bin/env bash
set -euo pipefail
shopt -s globstar
# NOTE: we want to use --network=host everywhere we use docker here, for
# performance (supposedly). We include X:X port mappings which will be used on
# Mac and Windows(?) where --network=host is ignored.
echo_pretty() {
echo ">>> $(tput setaf 2)$1$(tput s... | Shell | 5 | devrsi0n/graphql-engine | server/benchmarks/bench.sh | [
"Apache-2.0",
"MIT"
] |
module Fw {
type ComBuffer
@ Port for passing communication packet buffers
port Com(
ref data: ComBuffer @< Buffer containing packet data
context: U32 @< Call context value; meaning chosen by user
)
}
| FORTRAN | 2 | AlperenCetin0/fprime | Fw/Com/Com.fpp | [
"Apache-2.0"
] |
#!/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 | 5 | ghalimi/stdlib | tools/awk/skewness.awk | [
"BSL-1.0"
] |
-- Let's prove substitutivity, symmetry and transitivity of equality:
make ship : (X : Set)(x : X)(y : X)(q : :- x == y)(P : X -> Set) -> P x -> P y ;
lambda X, x, y, q, P, px ;
give coe (P x) (P y) ?q px ;
give con (refl (X -> Set) P % x y _) ;
root ;
make sym := (\ S s t q -> ship S s t _ (\ x -> :- x == s) _) : (S ... | PigLatin | 4 | mietek/epigram | src/Detritus/Fibonacci.pig | [
"MIT"
] |
#include <errno.h>
#include <string.h> // strcmp, strerror
#include <sys/utsname.h> // uname
#include "liboffsetfinder64.hpp"
#include "getoffsets.h"
static offsets_t off;
static bool didInit = false;
static tihmstar::offsetfinder64* finder = 0;
offsets_t* get_offsets()
{
if (!didInit){
find... | C++ | 4 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2017-13861/liboffsetfinder64/getoffsets.cpp | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
parameters:
- name: artifacts
type: object
default: {}
- name: downloadPath
type: string
default: $(Build.SourcesDirectory)
steps:
- ${{ each artifact in parameters.artifacts }}:
- task: DownloadBuildArtifacts@0
displayName: Download ${{artifact}}
inputs:
artifactName: ${{... | YAML | 4 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | script/vsts/platforms/templates/download-unzip.yml | [
"MIT"
] |
example. 86400 IN SOA ns1 admin 2018031900 (
1800 900 604800 86400 )
86400 IN NS ns1
86400 IN NS ns2
86400 IN ZONEMD 2018031900 1 1 (
31cefb03814f5062
ad12fa951ba0ef5f
8da6ae354a415767
246f7dc932ceb1e7
... | DNS Zone | 3 | luisdallos/unbound | testdata/zonemd.example_a2.zone | [
"BSD-3-Clause"
] |
using AMQPClient
const VIRTUALHOST = "/"
const HOST = "127.0.0.1"
function send()
# 1. Create a connection to the localhost or 127.0.0.1 of virtualhost '/'
connection(; virtualhost=VIRTUALHOST, host=HOST) do conn
# 2. Create a channel to send messages
channel(conn, AMQPClient.UNUSED_CHANNEL, tr... | Julia | 4 | muhammadali8767/rabbit_php | julia/new_task.jl | [
"Apache-2.0"
] |
<p class="username gray"></p>
<p class="email gray"></p>
<button id="verify-email-warning" class="red" onclick="showVerifyEmailPopup();">verify your email address</button>
<p> </p>
<p>
<span>plan</span>
<span>
<span class="storage allowedStorage">400</span>
<small class="unit gray allowed... | Kit | 1 | pws1453/web-client | source/imports/app/account-tab-overview.kit | [
"MIT"
] |
# Bash script
# for x in {0..8}; do
# for i in {30..37}; do
# for a in {40..47}; do
# echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "
# done
# echo
# done
# echo
# done
# echo ""
# Nushell 0.32.0
for x in 0..8 {
let row = (for i in 30..37 {
let row = (f... | Nu | 4 | x3rAx/nu_scripts | coloring/color_tables.nu | [
"MIT"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
/**
* There are two types of countdowns in Las Venturas Playground. Firstly, there is the global
* countdown which will be shown for a... | PAWN | 5 | EPIC-striker/playground | pawn/Features/Visual/Countdown.pwn | [
"MIT"
] |
package com.baeldung.trywithresource;
public class AutoCloseableMain {
public static void main(String[] args) throws Exception {
orderOfClosingResources();
}
private static void orderOfClosingResources() throws Exception {
try (AutoCloseableResourcesFirst af = new AutoCloseableResourcesFi... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-exceptions-2/src/main/java/com/baeldung/trywithresource/AutoCloseableMain.java | [
"MIT"
] |
<!-- Cartpole Model
The state space is populated with joints in the order that they are
defined in this file. The actuators also operate on joints.
State-Space (name/joint/parameter):
- cart slider position (m)
- pole hinge angle (rad)
- cart slider v... | Mako | 5 | RussellM2020/maml_gps | vendor/mujoco_models/inverted_double_pendulum.xml.mako | [
"MIT"
] |
using Uno;
using Uno.UX;
namespace Fuse
{
public static class StaticClass
{
}
public class NotStaticClass
{
}
}
| Uno | 3 | mortend/fuse-studio | Source/CodeCompletion/Outracks.CodeCompletion.UXNinja.TestsCommon/TestData/StaticClass.uno | [
"MIT"
] |
%%
%unicode 5.1
%public
%class UnicodeNotGeneralCategory
%type int
%standalone
%include ../../resources/common-unicode-enumerated-property-java
%%
<<EOF>> { printOutput(); return 1; }
\p{Ll} { setCurCharPropertyValue("Ll"); }
\P{Ll} { setCurCharPropertyValue("Not-Ll"); }
| JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-general-category/UnicodeNotGeneralCategory.flex | [
"BSD-3-Clause"
] |
#include "pch.h"
#include "start_visible.h"
bool is_start_visible()
{
static const auto app_visibility = []() {
winrt::com_ptr<IAppVisibility> result;
CoCreateInstance(CLSID_AppVisibility,
nullptr,
CLSCTX_INPROC_SERVER,
__uu... | C++ | 4 | tameemzabalawi/PowerToys | src/modules/ShortcutGuide/ShortcutGuide/start_visible.cpp | [
"MIT"
] |
trait Bar {
type Baz;
}
struct Foo<T> where T: Bar, <T as Bar>::Baz: String { //~ ERROR expected trait, found struct
t: T,
}
struct Qux<'a, T> where T: Bar, <&'a T as Bar>::Baz: String { //~ ERROR expected trait, found struct
t: &'a T,
}
fn foo<T: Bar>(_: T) where <T as Bar>::Baz: String { //~ ERROR expe... | Rust | 3 | Eric-Arellano/rust | src/test/ui/traits/assoc_type_bound_with_struct.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
MSTRINGIFY(
// Node indices for each link
//#define float3 float4
__kernel void
IntegrateKernel(
const int numNodes,
const float solverdt,
__global float * g_vertexInverseMasses,
__global float4 * g_vertexPositions,
__global float4 * g_vertexVelocity,
__global float4 * g_vertexPreviousPositions,
... | OpenCL | 3 | albertobarri/idk | tests/third_party/bullet/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC/Integrate.cl | [
"MIT"
] |
{
"version" : "v1_0_21",
"payload" : {
"payloadName" : "SmsCptPrepaidPayload",
"payloadClass" : "ru.fix.cpapsm.smpp.server.graph.SmsCptPrepaidPayload",
"payloadDoc" : [ "Отправка SMS контент провайдеру от пользователя с prepaid тарификацией" ]
},
"startPoint" : {
"coordinates" : {
"x" : 14... | Rouge | 4 | fix-ru/completable-reactor | completable-reactor-graph-viewer/src/test/resources/PayloadWithEmpty.rg | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.