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 |
|---|---|---|---|---|---|
# Produces a GraphViz Dot file from the data in the contributors.json file.
# Documentation for this syntax at https://stedolan.github.io/jq/manual
to_entries
| map(select(
(.value.groups | index("Angular")) or
(.value.groups | index("Collaborators"))))
| map(.value |= {
name: .name,
lead: (.lead // .mentor // ... | JSONiq | 3 | coreyscherbing/angular | aio/scripts/contributors/org_chart.jq | [
"MIT"
] |
# =============================================================
# This script is written to generate structured multi-block
# grid for a nozzle profile with respect to grid guideline.
#==============================================================
# written by Pay Dehpanah
# last update: Sep 2021
#=====================... | Glyph | 4 | pdpdhp/nozzlemesher | nozz_mesh.glf | [
"BSD-3-Clause"
] |
# all sub postcircumfix {;} candidates here please
proto sub postcircumfix:<{; }>($, $, *%) is nodal {*}
multi sub postcircumfix:<{; }>(\SELF, @indices) {
my \target = nqp::create(IterationBuffer);
my int $dims = @indices.elems; # reifies
my $indices := nqp::getattr(@indices,List,'$!reified');
sub... | Perl6 | 4 | raydiak/rakudo | src/core.c/hash_multislice.pm6 | [
"Artistic-2.0"
] |
/*
* Copyright 2012-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 | techAi007/spring-boot | spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/r2dbc/ConnectionPoolMetrics.java | [
"Apache-2.0"
] |
<% form_tag url_for(:action => 'forgot_password') do %>
What is the email address for your account?<br />
<%= text_field_tag :email, "", :size => 30 %><br />
<%= submit_tag 'Request Password' %>
<% end %>
| RHTML | 4 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/account/forgot_password.rhtml | [
"MIT"
] |
module Graphics.UI.FLTK.LowLevel.HorFillSlider
(
-- *Hierarchy
--
-- $hierarchy
)
where
-- $hierarchy
-- @
-- "Graphics.UI.FLTK.LowLevel.Base.Widget"
-- |
-- v
-- "Graphics.UI.FLTK.LowLevel.Base.Valuator"
-- |
-- v
-- "Graphics.UI.FLTK.LowLevel.Base.Slider"
-- |
-- v
-- "Graphics.UI.FLTK.LowLevel... | C2hs Haskell | 3 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/HorFillSlider.chs | [
"MIT"
] |
[develop]
script_dir=$base/lib/@(project_name)
[install]
install_scripts=$base/lib/@(project_name)
| EmberScript | 2 | bergercookie/ros2cli | ros2pkg/ros2pkg/resource/ament_python/setup.cfg.em | [
"Apache-2.0"
] |
= nginx_substitutions_filter =
_Note: this module is not distributed with the Nginx source. Installation instructions can be found [#Installation below]._
== Description ==
`nginx_substitutions_filter` is a filter module which can do both regular expression and fixed string substitutions on response bodies. This mo... | MediaWiki | 4 | steamboatid/nginx | debian/modules/http-subs-filter/doc/README.google_code_home_page.wiki | [
"BSD-2-Clause"
] |
CREATE TABLE `tb_lqvkbeqhuw` (
`col_gseshvltxd` tinytext CHARACTER SET latin1,
`col_otuwjnlrtt` decimal,
UNIQUE INDEX `col_otuwjnlrtt` (`col_otuwjnlrtt`),
UNIQUE `col_gseshvltxd` (`col_gseshvltxd`(26))
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
RENAME TABLE `tb_lqvkbeqhuw` TO `tb_mqghelxirz`;
ALTER TABLE `tb_mqghe... | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_41.sql | [
"Apache-2.0"
] |
functions {
real model_log_dens(
int[] deaths_slice,
int start,
int end,
//pars
vector logit_p_avg,
// data
int[] casesM
)
{
int n;
real lpmf;
int N_slice;
lpmf = 0.0;
N_slice = end - start + 1;
... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200820b3_cmdstanv.stan | [
"MIT"
] |
Rebol [
Title: "Clean"
Author: "Christopher Ross-Gill"
Date: 18-Apr-2018
File: %clean.red
Version: 0.1.2
Purpose: "Converts errant CP-1252 codepoints within a UTF-8 binary"
Rights: http://opensource.org/licenses/Apache-2.0
Type: module
Name: rgchris.clean
Exports: [clean]
History: [
18-Apr-2018 0.1.2 "Ren-... | Rebol | 5 | hostilefork/rgchris-scripts | ren-c/clean.reb | [
"Apache-2.0"
] |
var foo1 = "a/".replace(/.[/]/, "");
var foo2 = "a//".replace(/.[//]/g, "");
var foo3 = "a/".replace(/.[/no sleep /till/]/, "bugfix");
| TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/compiler/regExpWithSlashInCharClass.ts | [
"Apache-2.0"
] |
--TEST--
Fixed bug #69756 (Fatal error: Nesting level too deep - recursive dependency? with ===).
--FILE--
<?php
$arr = range(1, 2);
foreach($arr as &$item ) {
var_dump($arr === array(1, 2));
}
?>
--EXPECT--
bool(true)
bool(true)
| PHP | 3 | thiagooak/php-src | Zend/tests/bug69756.phpt | [
"PHP-3.01"
] |
// FLAGS: -d3
// OUTPUT: \[debug\] Run time error 27: "General error \(unknown or unspecific error\)"
// OUTPUT: \[debug\] AMX backtrace:
// OUTPUT: \[debug\] #0 00000344 in end \(\) at .*args\.pwn:86
// OUTPUT: \[debug\] #1 0000032c in f8 \(UknownTag:n=999\) at .*args\.pwn:82
// OUTPUT: \[debug\] #2 000002fc in f... | PAWN | 3 | SL-RP/samp-plugin-crashdetect | tests/args.pwn | [
"BSD-2-Clause"
] |
package org.zstack.core.aspect;
import org.zstack.utils.Utils;
import org.zstack.utils.logging.CLogger;
import org.springframework.beans.factory.annotation.Autowired;
import org.zstack.core.encrypt.EncryptRSA;
public aspect EncryptAspect {
private static final CLogger logger = Utils.getLogger(EncryptAspect.class)... | AspectJ | 3 | qianfei11/zstack | core/src/main/java/org/zstack/core/aspect/EncryptAspect.aj | [
"Apache-2.0"
] |
// deno-lint-ignore-file
export function retb() {
return "b";
}
| JavaScript | 1 | Preta-Crowz/deno | cli/tests/esm_imports_b.js | [
"MIT"
] |
"""Support for Fibaro switches."""
from __future__ import annotations
from homeassistant.components.switch import ENTITY_ID_FORMAT, SwitchEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_p... | Python | 4 | liangleslie/core | homeassistant/components/fibaro/switch.py | [
"Apache-2.0"
] |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | 4 | EricRemmerswaal/tensorflow | tensorflow/python/distribute/tpu_util.py | [
"Apache-2.0"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED... | CSS | 3 | raihan71/draft-js | examples/draft-0-10-0/playground/src/index.css | [
"MIT"
] |
{}
:users $ {}
|root $ {} (:id |root) (:name |root) (:nickname |root) (:avatar nil) (:theme :star-trail)
:ir $ {} (:package |app)
:root $ {} (:ns |main) (:def |main!)
:files $ {}
|app.comp.page-members $ {}
:ns $ {} (:type :expr) (:by |S1lNv50FW) (:at 1550076412760) (:id |ytgdqU0an)
... | Cirru | 2 | Cardsareus/linguist | samples/Cirru/calcit.cirru | [
"MIT"
] |
% Default to the notebook output style
% Inherit from the specified cell style.
\documentclass{article}
\usepackage{graphicx} % Used to insert images
\usepackage{adjustbox} % Used to constrain images to a maximum size
\usepackage{color} % Allow colors to be defined
\usepackage{... | TeX | 4 | WTRipper/jupyter_contrib_nbextensions | src/jupyter_contrib_nbextensions/nbextensions/highlighter/export_highlights.tex | [
"BSD-3-Clause-Clear"
] |
REBOL [
System: "REBOL [R3] Language Interpreter and Run-time Environment"
Title: "REBOL 3 Mezzanine: To-Type Helpers"
Rights: {
Copyright 2012 REBOL Technologies
REBOL is a trademark of REBOL Technologies
}
License: {
Licensed under the Apache License, Version 2.0
See: http://www.apache.org/licenses/LICEN... | Rebol | 4 | 0branch/r3 | src/mezz/mezz-types.reb | [
"Apache-2.0"
] |
import unittest
from test import test_tools
test_tools.skip_if_missing("peg_generator")
with test_tools.imports_under_tool("peg_generator"):
from pegen.grammar_parser import GeneratedParser as GrammarParser
from pegen.validator import SubRuleValidator, ValidationError
from pegen.testutil import parse_strin... | Python | 4 | oleksandr-pavlyk/cpython | Lib/test/test_peg_generator/test_grammar_validator.py | [
"0BSD"
] |
CLASS zcl_abapgit_gui_utils DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS is_renderable
IMPORTING
!io_obj TYPE REF TO object
RETURNING
VALUE(rv_yes) TYPE abap_bool .
CLASS-METHODS is_event_handler
IMPORTING
!io_obj TYPE REF TO object
... | ABAP | 4 | jeevanrajv1901/ABAPGIT | src/ui/core/zcl_abapgit_gui_utils.clas.abap | [
"MIT"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* Main Container */
.mainContainerV1 {
flex: 1 1 0%;
max-width: 100%;
padding: 40px 0;
}
.mainContain... | CSS | 4 | sfiquet/jest | website/src/components/v1/legacyCSS.css | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Class(AVX_LDST, rec(
list := [],
__call__ := meth(arg)
local self;
self := arg[1];
Append(self.list, Drop(arg, 1));
end,
getList := self >> self.list :: SSE_LDST.list,
));
_evshuf1 := self >> let(
a := ... | GAP | 5 | sr7cb/spiral-software | namespaces/spiral/platforms/avx/code.gi | [
"BSD-2-Clause-FreeBSD"
] |
package com.baeldung.springintegration.controllers;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
@ManagedBean(name = "helloPFMBean")
@SessionScoped
public class HelloPFMBean {
private String magicWord;
public String getMagicWord() {
return magicWord;
}
public ... | Java | 4 | zeesh49/tutorials | jsf/src/main/java/com/baeldung/springintegration/controllers/HelloPFMBean.java | [
"MIT"
] |
#!/bin/csh
c++ -std=c++1z ${1} -I ${ROOTSYS}/include -L ${ROOTSYS}/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lTMVA -lMinuit -lXMLIO -lMLP -lTreePlayer -lz -lGui -pthread -lm -ldl
mv a.out ${1}.exe
| Tcsh | 2 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/macros/rmt/compile.csh | [
"Apache-2.0"
] |
import "std/test"
let grandparentInitRan = false
class grandParent {
const init = fn() {
grandparentInitRan = true
}
const doStuff = fn(msg) {
return 'Grandparent: '+msg
}
}
class parentPrinter ^ grandParent {
let z
const init = fn() {
parent()
this.z = "pare... | Inform 7 | 4 | lfkeitel/nitrogen | tests/classes/parent.ni | [
"BSD-3-Clause"
] |
/*
* Copyright 2012-2021 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 | techAi007/spring-boot | spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/reactive/AdditionalHealthEndpointPathsWebFluxHandlerMapping.java | [
"Apache-2.0"
] |
import MenuItem from '@material-ui/core/MenuItem';
import Tab from '@material-ui/core/Tab';
import { green as greenColor, red, yellow } from '@material-ui/core/colors';
import MuiTabs from '@material-ui/core/Tabs';
import TableContext from '@material-ui/core/Table/TableContext';
import SwitchBase from '@material-ui/cor... | JavaScript | 2 | dany-freeman/material-ui | packages/mui-codemod/src/v5.0.0/optimal-imports.test/expected.js | [
"MIT"
] |
#if defined __AVX512__ || defined __AVX512F__
#include <immintrin.h>
void test()
{
__m512i a, b, c;
a = _mm512_dpwssd_epi32(a, b, c); // VNNI
}
#else
#error "AVX512-CLX is not supported"
#endif
int main() { return 0; }
| C++ | 3 | thisisgopalmandal/opencv | cmake/checks/cpu_avx512clx.cpp | [
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/custom</namespace-uri>
<default-prefix>xc</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>_layoutBS3</component-type>
<composite-name>_layoutBS3</co... | XPages | 3 | zeromancer1972/XPages-JDBC | CustomControls/_layoutBS3.xsp-config | [
"Apache-2.0"
] |
# this code gives the numbers of integers, floats, and strings present in the list
a = ["Hello", 35, "b", 45.5, "world", 60]
i = f = s = 0
for j in a:
if isinstance(j, int):
i = i + 1
elif isinstance(j, float):
f = f + 1
else:
s = s + 1
print(f"Number of integers are: {i}")
print(f... | Python | 3 | Wish1991/Python | Differentiate_List.py | [
"MIT"
] |
data Bar = MkBar
data Baz = MkBaz
data Vect : Nat -> Type -> Type where
Nil : Vect Z a
(::) : a -> Vect k a -> Vect (S k) a
desc : Type -> String
desc Int = "Int"
desc Nat = "Nat"
desc (Vect n a) = "Vector of " ++ show n ++ " " ++ desc a
desc Type = "Type"
desc _ = "Something else"
descNat : Type -> String... | Idris | 4 | boxfire/rapid | tests/chez/chez007/TypeCase.idr | [
"BSD-3-Clause"
] |
lib LibC
TCP_NODELAY = 0x01
end
| Crystal | 1 | n00p3/crystal | src/lib_c/x86_64-openbsd/c/netinet/tcp.cr | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
const ARR: [usize; 1] = [2];
const ARR2: [i32; ARR[0]] = [5, 6];
fn main() {
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/consts/const-index-feature-gate.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Test array_is_list() function
--FILE--
<?php
function test_is_list(string $desc, $val) : void {
try {
printf("%s: %s\n", $desc, json_encode(array_is_list($val)));
} catch (TypeError $e) {
printf("%s: threw %s\n", $desc, $e->getMessage());
}
}
test_is_list("empty", []);
test_is_lis... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/general_functions/array_is_list.phpt | [
"PHP-3.01"
] |
// Happy 5th birthday!
//
// #algofive
//
rotate
color white
sphereDetail 3
for i: 0 to 20 step 1
push
rotate 10*wave(1000)
scale 0.5 + 1.2*wave(10000)
color white
stroke 6
box F1+1
pop
stroke 3
color hsv(wave(10000)*255, 200, map(F1, 0,1,0,255))
scale 2
push
tile 4,4,4
sphere 0.5
en... | Cycript | 2 | marcinbiegun/creativecoding-sketches | Cyril/data/code_performance1/1.cy | [
"MIT"
] |
Rebol [
title: "Required value for needs file test"
]
export test-needs-file-value: 42
| Rebol | 2 | 0branch/r3 | src/tests/units/files/test-needs-file-value.reb | [
"Apache-2.0"
] |
# Copyright (C) 2001-2003, Parrot Foundation.
# $Id$
=head1 NAME
examples/pasm/cat.pasm - cat-like utility
=head1 SYNOPSIS
% ./parrot examples/pasm/cat.pasm
=head1 DESCRIPTION
Simple C<cat>-like utility to test PIO read/write. Does not use STDIO.
Echoes what you type once you hit return.
You'll have to Ctl-... | Parrot Assembly | 4 | allisonrandal/pcc_testing | examples/pasm/cat.pasm | [
"Artistic-2.0"
] |
import structs/[HashMap, ArrayList, List]
import ../[Env, Process, wait, unistd, Pipe]
import PipeUnix
version(unix || apple) {
include errno, signal
errno : extern Int
SIGTERM: extern Int
SIGKILL: extern Int
SIGSEGV: extern Int
SIGABRT: extern Int
WNOHANG: extern Int
kill: extern func (Long, Int)
signal: extern f... | ooc | 5 | fredrikbryntesson/launchtest | sdk/os/native/ProcessUnix.ooc | [
"MIT"
] |
// @allowJs: true
// @checkJs: true
// @outDir: /out
// @lib: es6
// @declaration: true
// @filename: index.js
/** @type {?} */
export const a = null;
/** @type {*} */
export const b = null;
/** @type {string?} */
export const c = null;
/** @type {string=} */
export const d = null;
/** @type {st... | TypeScript | 3 | monciego/TypeScript | tests/cases/conformance/jsdoc/declarations/jsDeclarationsReusesExistingNodesMappingJSDocTypes.ts | [
"Apache-2.0"
] |
\documentclass{article}
\usepackage[fancyhdr,pdf]{latex2man}
\input{common.tex}
\begin{document}
\begin{Name}{3}{unw\_is\_fpreg}{David Mosberger-Tang}{Programming Library}{unw\_is\_fpreg}unw\_is\_fpreg -- check if a register is a floating-point register
\end{Name}
\section{Synopsis}
\File{\#include $<$libunwind.h$... | TeX | 4 | pyracanda/runtime | src/coreclr/pal/src/libunwind/doc/unw_is_fpreg.tex | [
"MIT"
] |
;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Rewritten for x64 by agix
; Compatible: Windows 7
; Architecture: x64
; Size: 570 bytes
; Build: >build.py stager_reverse_https
;------------------------------------------... | Assembly | 4 | OsmanDere/metasploit-framework | external/source/shellcode/windows/x64/src/stager/stager_reverse_https.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
Red [
Title: "Red MOVE test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %move-test.red
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../quick-test/quick-test.red
~~... | Red | 5 | 0xflotus/red | tests/source/units/move-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
/++
Auto-generated Linux syscall constants for SPARC
+/
module mir.linux.arch.sparc.uapi._asm.unistd;
version(LDC) pragma(LDC_no_moduleinfo);
enum NR_restart_syscall = 0;
enum NR_exit = 1;
enum NR_fork = 2;
enum NR_read = 3;
enum NR_write = 4;
enum NR_open = 5;
enum NR_close = 6;
enum NR_wait4 = 7;
enum NR_creat = 8;
... | D | 3 | libmir/mir-linux-kernel | source/mir/linux/arch/sparc/uapi/_asm/unistd.di | [
"BSL-1.0"
] |
// SuperCollider Examples
//boot server
s.boot;
// SC as system for sound synthesis and sound processing
// patching synth moduls by writing synth defs:
(
SynthDef("mod", {
var sig, resfreq;
sig = Saw.ar(100);
resfreq = SinOsc.kr(2) * 200 + 500;
sig = RLPF.ar(sig, resfreq, 0.1);
sig = sig * 0.3;
Out.ar(0, s... | SuperCollider | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/SuperCollider/example.scd | [
"MIT"
] |
const path = require(`path`)
const fs = require(`fs-extra`)
const mime = require(`mime`)
const prettyBytes = require(`pretty-bytes`)
const md5File = require(`md5-file`)
const { createContentDigest, slash } = require(`gatsby-core-utils`)
exports.createFileNode = async (
pathToFile,
createNodeId,
pluginOptions = ... | JavaScript | 4 | pipaliyajaydip/gatsby | packages/gatsby-source-filesystem/src/create-file-node.js | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
#If DEBUG Then
' See comment in DefiniteAssignment.
#Const REFERENCE_STATE = True
#End If
Namespace Microsoft.CodeAna... | Visual Basic | 5 | ffMathy/roslyn | src/Compilers/VisualBasic/Portable/Analysis/FlowAnalysis/DefinitelyAssignedWalker.vb | [
"MIT"
] |
#include <gtest/gtest.h>
namespace caffe2 {
namespace {
TEST(ContextTest, BasicInit) {
}
} // namespace
} // namespace caffe2
| C++ | 3 | Hacky-DH/pytorch | caffe2/contrib/opencl/context_test.cc | [
"Intel"
] |
#tag Class
Protected Class SKProduct
Inherits NSObject
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("SKProduct")
return ref
End Function
#tag EndMethod
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
declare function downloadable... | Xojo | 4 | kingj5/iOSKit | Modules/StoreKit/SKProduct.xojo_code | [
"MIT"
] |
extends /templates/core/modal-base
block modal-header-content
.clearfix
.text-center
h2.modal-title(data-i18n="courses.greetings")
h3(data-i18n="choose_hero.programming_language_description")
block modal-body-content
#choice-area.text-center
button.lang-choice-btn.btn.btn-success.btn-lg(data-languag... | Jade | 4 | cihatislamdede/codecombat | app/templates/courses/choose-language-modal.jade | [
"CC-BY-4.0",
"MIT"
] |
// run-pass
#![allow(illegal_floating_point_literal_pattern)] // FIXME #41620
#![feature(exclusive_range_pattern)]
pub fn main() {
match 5_usize {
1_usize..=5_usize => {}
_ => panic!("should match range"),
}
match 1_usize {
1_usize..5_usize => {}
_ => panic!("should match range ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/binding/match-range.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module DurationTests exposing (all, start)
import Duration exposing (Duration)
import Expect exposing (..)
import Test exposing (..)
import Time
start : Int
start =
10 * 1000
second : Int
second =
1 * 1000
minute : Int
minute =
60 * 1000
hour : Int
hour =
60 * 60 * 1000
all : Test
all =
d... | Elm | 4 | Caprowni/concourse | web/elm/tests/DurationTests.elm | [
"Apache-2.0"
] |
Unit LazComLib_1_0_TLB;
// Imported LazComLib on 19/11/2014 15:59:16 from D:\_development\Lazarus\LazComDll\LazComDll.tlb
{$mode delphi}{$H+}
interface
Uses
Windows,ActiveX,Classes,Variants;
Const
LazComLibMajorVersion = 1;
LazComLibMinorVersion = 0;
LazComLibLCID = 0;
LIBID_LazComLib : TGUID = '{570A55B... | Pascal | 4 | gammy55/linguist | samples/Pascal/lazcomlib_1_0_tlb.pas | [
"MIT"
] |
--TEST--
Test escapeshellcmd() allowed argument length
--FILE--
<?php
ini_set('memory_limit', -1);
$var_2 = str_repeat('A', 1024*1024*64);
escapeshellcmd($var_2);
?>
===DONE===
--EXPECTF--
Fatal error: escapeshellcmd(): Command exceeds the allowed length of %d bytes in %s on line %d
| PHP | 3 | thiagooak/php-src | ext/standard/tests/general_functions/escapeshellcmd_bug71270.phpt | [
"PHP-3.01"
] |
--TEST--
static type cannot take part in an intersection type
--FILE--
<?php
class A {
public function foo(): static&Iterator {}
}
?>
--EXPECTF--
Fatal error: Type static cannot be part of an intersection type in %s on line %d
| PHP | 3 | NathanFreeman/php-src | Zend/tests/type_declarations/intersection_types/invalid_types/invalid_static_type.phpt | [
"PHP-3.01"
] |
GET /api/v1/transactions/4957744b3ac54434b8270f2c854cc1040228c82ea4e72d66d2887a4d3e30b317 HTTP/1.1
Host: example.com
| HTTP | 1 | jaromil/bigchaindb | docs/root/source/installation/api/http-samples/get-tx-id-request.http | [
"Apache-2.0"
] |
lexer grammar t027eof;
options {
language=JavaScript;
}
END: '\u0000';
SPACE: ' ';
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t027eof.g | [
"Apache-2.0"
] |
static const q15_t in_com1[300] = {
0xD108, 0x3B5A, 0xF106, 0x2062, 0x4CFA, 0x1DB6, 0xE285, 0xB149,
0xBFC4, 0x2FB7, 0x0A15, 0x07C6, 0x225C, 0xCBC8, 0x11A0, 0x11FB,
0x28A3, 0x5478, 0x5D02, 0xD113, 0xD59C, 0x0487, 0xD0DB, 0x5322,
0xFCE5, 0x26BC, 0x4F8A, 0x09F3, 0xFD2E, 0xBC11, 0xC38F, 0xF0DD,
0x0DBA, ... | Max | 1 | psychogenic/zephyr | tests/lib/cmsis_dsp/statistics/src/q15.pat | [
"Apache-2.0"
] |
source "../tests/includes/init-tests.tcl"
source "../tests/includes/job-utils.tcl"
test "QSCAN based on non blocking iterator" {
# Create 512 queues, each has a job enqueued
for {set i 0} {$i < 512} {incr i} {
set qname [randomQueue]
lappend myqueues $qname
D 0 addjob $qname myjob 5000... | Tcl | 4 | justincase/disque | tests/cluster/tests/08-qscan.tcl | [
"BSD-3-Clause"
] |
config = require("lapis.config").get!
if config.postgres
require "lapis.db.postgres.schema"
elseif config.mysql
require "lapis.db.mysql.schema"
else
error "You have to configure either postgres or mysql"
| MoonScript | 4 | tommy-mor/lapis | lapis/db/schema.moon | [
"MIT",
"Unlicense"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "Digitorus"
type = "cert"
function start()
set_rate_limit(2)
end
function vertical(ctx, domain)
scrape(ctx, {['url']=build_url(domain)})
end
function bu... | Ada | 4 | Elon143/Amass | resources/scripts/cert/digitorus.ads | [
"Apache-2.0"
] |
LITHO,CANAL,CODIGO
000600,C,000301
000606,C,000240
000603,C,000303
000605,C,000305
000616,C,000261
000601,C,000242
000619,C,000333
000615,C,000323
000617,C,000335
000613,C,000321
000612,C,000279
000629,C,000353
000611,C,000338
000614,C,000210
000609,C,000314
000607,C,000207
000618,C,000308
000639,C,000270
000620,C,0002... | IDL | 1 | plandauro/admision | storage/calificacion/2019-Ihojaidentificacionpe02.dlm | [
"MIT"
] |
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#directory : 'src',
#baseline : 'PharoThings',
#platforms : [ #pharo ]
}
],
#testing : {
#include : {
#projects : [
'BaselineOfTostSerializer',
'BaselineOfReadWriteLock',
'BaselineOfObjectTravel', ... | STON | 4 | dionisiydk/PharoThings | .smalltalk.ston | [
"MIT"
] |
te %_NTTREE%\unittests\conhost.api.tests.dll %1 %2 %3 %4 %5 %6 %7 %8 %9
te %_NTTREE%\unittests\conhost.uia.tests.dll %1 %2 %3 %4 %5 %6 %7 %8 %9 | Batchfile | 1 | Ghosty141/Terminal | src/host/runft.bat | [
"MIT"
] |
<GameProjectFile>
<PropertyGroup Type="Scene" Name="crossplatform_UIPageView_Editor_1" ID="25848ead-412c-4d99-a737-9312d4f0dfa4" Version="2.1.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Scene" FrameEvent="" CallBackType="Touch" c... | Csound | 3 | dum999/CocosStudioSamples | CocosStudioProjects/crossplatform_UIPageView_Editor_1/cocosstudio/crossplatform_UIPageView_Editor_1.csd | [
"MIT"
] |
#if (30 < 40 < 50)
#warning "Test passed."
#endif
#if !(30 < 40 < 35)
#warning "Test passed."
#endif
#if (30 < 40)
#warning "Test passed."
#endif
#if !(40 < 35)
#warning "Test passed."
#endif
main () {
}
| PAWN | 2 | pawn-lang/pawn | source/compiler/tests/constexpr_result_prop_gh_308.pwn | [
"Zlib"
] |
{-# LANGUAGE CPP, RankNTypes, UndecidableInstances, GADTs, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Table
(
-- * Hierarchy
--
-- $hierarchy
-- * Widget Functio... | C2hs Haskell | 4 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/Table.chs | [
"MIT"
] |
#version 450
layout(location = 0) out vec4 o_Target;
layout(set = 2, binding = 0) uniform MyMaterial_color {
vec4 color;
};
void main() {
o_Target = color * 0.5;
}
| GLSL | 3 | Schell-0x52/bevy | assets/shaders/hot.frag | [
"Apache-2.0",
"MIT"
] |
.email-sign-up strong,
.email-sign-up p {
font-family: 'Lato', sans-serif;
font-size: 1rem;
}
@media (min-width: 500px) {
.email-sign-up strong,
.email-sign-up p {
font-size: 1.17rem;
}
}
| CSS | 3 | fcastillo-serempre/freeCodeCamp | client/src/pages/email-sign-up.css | [
"BSD-3-Clause"
] |
// Binomial model with beta(1,1) prior
data {
int<lower=0> N; // number of experiments
int<lower=0> y; // number of successes
}
parameters {
real<lower=0,upper=1> theta; // probability of success in range (0,1)
}
model {
// model block creates the log density to be sampled
theta ~ be... | Stan | 4 | tonyctan/BDA_R_demos | demos_rstan/binom.stan | [
"BSD-3-Clause"
] |
package com.airbnb.lottie.animation.content;
import com.airbnb.lottie.model.KeyPathElement;
public interface KeyPathElementContent extends KeyPathElement, Content {
}
| Java | 2 | congwiny/lottie-android | lottie/src/main/java/com/airbnb/lottie/animation/content/KeyPathElementContent.java | [
"Apache-2.0"
] |
static const q15_t in_default_val[100] = {
0xE62B, 0x1CF7, 0x3208, 0x37FC, 0x2781, 0x3AD3, 0x69CF, 0x5E5B,
0x2BC7, 0xF39B, 0xFACD, 0xFC7A, 0xD180, 0xBC84, 0xAEE2, 0xDA97,
0xD292, 0xD9FC, 0xAF9D, 0xCA17, 0xFAD5, 0x4342, 0x2821, 0x2EB8,
0x3F63, 0x46A5, 0x4E09, 0x3C16, 0x1876, 0x1355, 0x04C3, 0x1530,
0... | Max | 3 | maxvankessel/zephyr | tests/lib/cmsis_dsp/filtering/src/biquad_q15.pat | [
"Apache-2.0"
] |
static const q7_t in_com1[256] = {
0x52, 0x01, 0x47, 0x20, 0xA5, 0xFD, 0xFC, 0x44,
0xF5, 0xCB, 0x2A, 0xE7, 0x1E, 0x28, 0xFF, 0xEF,
0x3E, 0x2C, 0x05, 0x32, 0xAE, 0x09, 0xBE, 0xF5,
0x24, 0xFA, 0xDE, 0xD6, 0xF4, 0xE7, 0x0D, 0xD7,
0x10, 0x19, 0x0C, 0xC8, 0xBB, 0x1E, 0x05, 0xAA,
0x44, 0x60, 0x2D, 0x2... | Max | 1 | Trifunik/zephyr | tests/lib/cmsis_dsp/basicmath/src/q7.pat | [
"Apache-2.0"
] |
%{
//#define YYDEBUG
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! !!
!! ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION !!
!! ... | Yacc | 5 | run1206/EntityFramework6 | src/EntityFramework/Core/Common/EntitySql/CqlGrammar.y | [
"Apache-2.0"
] |
2016-02-24 01:18:27 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined #bspwm
2016-02-24 01:18:27 [01:18]
2016-02-24 01:18:27 - Topic for #bspwm is ""BSPWM support channel""
2016-02-24 01:18:27 - Topic set by earsplit (~sunn@pool-96-246-172-70.nwrknj.fios.verizon.net) on Thu, 07 Nov 2013 04... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.#bspwm.weechatlog | [
"MIT"
] |
items = ['a', 'b']
// push, append at the end
items[] = 'c'
var_dump(items)
// pop, take at the end
last_element = items[]
var_dump(last_element)
// unshift, insert at the begin
[]items = 'd'
var_dump(items)
// shift, take at the begin
first_element = []items
var_dump(first_element, items)
| Tea | 1 | lemonworks/tealang.github.io | tests/syntax/square-expression.tea | [
"Apache-2.0"
] |
implementation module StalinSort
import StdEnv
stalinSort :: [a] -> [a] | < a
stalinSort [] = []
stalinSort [x] = [x]
stalinSort [x, y : zs]
| x <= y = [x : stalinSort [y : zs]]
| otherwise = stalinSort [x : zs]
| Clean | 3 | abrudz/stalin-sort | clean/StalinSort.icl | [
"MIT"
] |
module snabb-nfvconfig-v1 {
namespace "http://snabb.co/nfvconfig-v1";
prefix snabb-nfvconfig-v1;
import ietf-yang-types { prefix yang; }
import ietf-inet-types { prefix inet; }
organization "Snabb";
contact "snabb-devel@googlegroups.com";
description
"This module describes the configuration of Snab... | YANG | 5 | peahonen/snabb | src/program/snabbnfv/snabb-nfvconfig-v1.yang | [
"Apache-2.0"
] |
"""Define constants for the Soma component."""
DOMAIN = "soma"
HOST = "host"
PORT = "port"
API = "api"
| Python | 3 | domwillcode/home-assistant | homeassistant/components/soma/const.py | [
"Apache-2.0"
] |
= Ōlelo Wiki
[[http://rubygems.org/gems/olelo|{{https://badge.fury.io/rb/olelo.png|Gem}}]]
[[https://travis-ci.org/minad/olelo|{{https://secure.travis-ci.org/minad/olelo.png?branch=master|Build Status}}]]
[[https://gemnasium.com/minad/olelo|{{https://gemnasium.com/minad/olelo.png?travis|Dependency Status}}]]
[[https:/... | Creole | 4 | swipswaps/olelo | README.creole | [
"MIT"
] |
Import trans
Global _trans:Translator
Class Translator
'***** Expressions *****
Method TransConstExpr$( expr:ConstExpr ) Abstract
Method TransNewObjectExpr$( expr:NewObjectExpr ) Abstract
Method TransNewArrayExpr$( expr:NewArrayExpr ) Abstract
Method TransSelfExpr$( expr:SelfExpr ) Abstract
Method T... | Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/trans/translator.monkey | [
"Zlib"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
param(
[Parameter(Mandatory)]
[semver]
$ReleaseVersion,
[Parameter()]
[string]
$WingetRepoPath = "$PSScriptRoot/../../winget-pkgs",
[Parameter()]
[string]
$FromRepository = 'rjmholt',
[Parameter()]
[... | PowerShell | 5 | dahlia/PowerShell | tools/releaseToWinget.ps1 | [
"MIT"
] |
Lemma step_deterministic :
deterministic step.
Proof with eauto.
unfold deterministic.
intros t t' t'' E1 E2.
generalize dependent t''.
induction E1; intros t'' E2; inversion E2; subst; clear E2...
(* ST_AppAbs *)
- inversion H3.
- exfalso; apply value__normal in H...
(* ST_App1 *)
- invers... | Coq | 3 | andorp/plfa.github.io | papers/scp/determinism.coq | [
"CC-BY-4.0"
] |
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\Program Files (x86)\AutoIt3\Icons\au3.ico
#AutoIt3Wrapper_Outfile=LogFileParser.exe
#AutoIt3Wrapper_Outfile_x64=LogFileParser64.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_Change2CUI=y
#AutoIt3Wrapper_Res_Comment=$LogFile p... | AutoIt | 3 | jschicht/LogFileParser | LogFileParser.au3 | [
"CC-BY-3.0"
] |
{**
* lkjsdhf lkdsajf hlsakjdfh dsf
* sdf safs dsfds sdf ds
* asdf dsaff hsajfhsa lkjf hlksajd hf
* s df dsafdsafds f
*}
<!DOCTYPE html>
<html>
<head>
<title>Nette Application Skeleton</title>
</head>
<body>
</body>
</html>
| Latte | 1 | arusinha/incubator-netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/comment-with-asterisk.latte | [
"Apache-2.0"
] |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | 5 | UniiqTV/ExoPlayer | docs/doc/reference/com/google/android/exoplayer2/util/ParsableByteArray.html | [
"Apache-2.0"
] |
HAI 1.2
HOW IZ I CALCULATE_CIRCLE_PERIMETER YR RADIUS
I HAS A RESULT
BOTH SAEM RADIUS AN 0, O RLY?
YA RLY, GTFO
NO WAI
RESULT R PRODUKT OF 6.28 AN RADIUS
FOUND YR RESULT
OIC
IF U SAY SO
I HAS A RADIUS
I HAS A PERIMETER
VISIBLE "GIMME RADIUS:"
GIMMEH RADIUS
RADIU... | LOLCODE | 3 | Himanshu21git/Lokalise-source | lolcode-fun-post/calculate_perimeter.lol | [
"MIT"
] |
# asm.fy
# This file loads Rubinius bytecode versions of some core methods for
# improved performance.
class Rubinius Generator {
forwards_unary_ruby_methods
alias_ruby_setters
class Label {
forwards_unary_ruby_methods
}
}
require: "asm/array"
require: "asm/class"
require: "asm/integer"
| Fancy | 2 | bakkdoor/fancy | lib/asm.fy | [
"BSD-3-Clause"
] |
.ErrorTree, .WarningTree {
padding: 0.25rem 0 0 0;
}
.HeaderRow {
padding: 0 0.25rem;
}
.HeaderRow {
padding: 0 0.25rem;
}
.Error, .Warning {
padding: 0 0.5rem;
display: flex;
align-items: center;
}
.Error {
border-top: 1px solid var(--color-console-error-border);
background-color: var(--color-conso... | CSS | 2 | GBKstc/react-analysis | packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorsAndWarningsTree.css | [
"MIT"
] |
.q-tab-panels
background: #fff
.q-tab-panel
padding: 16px
| Sass | 2 | ygyg70/quasar | ui/src/components/tab-panels/QTabPanel.sass | [
"MIT"
] |
J333? | PureBasic | 2 | rajeevsrao/onnx | onnx/backend/test/data/pytorch-operator/test_operator_basic/test_data_set_0/input_1.pb | [
"MIT"
] |
{
"@context": "0127-context-1.jsonld",
"@id": "ex:id",
"prop": {
"value": "v"
}
}
| JSONLD | 1 | donbowman/rdflib | test/jsonld/1.1/expand/0127-in.jsonld | [
"BSD-3-Clause"
] |
export default {
html: '<div><span>lol</span></div>'
};
| JavaScript | 1 | Theo-Steiner/svelte | test/runtime/samples/component-slot-slot/_config.js | [
"MIT"
] |
void main() {
var start = new int[2];
int[] sums = {0, 0};
for (int i = 0; i < 2; i++) {
var xs = stdin.read_line().split(" ");
start[i] = int.parse(xs[xs.length - 1]) - 1;
}
int i = 0;
while (true) {
for (int j = 0; j < 2; j++) {
start[j] = (start[j] + 3*i + 6) % 10;
sums[j] += start[j] + 1;
i += ... | Vala | 3 | abeaumont/competitive-programming | advent-of-code/2021/day21/part1.vala | [
"WTFPL"
] |
(*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under t... | F# | 4 | klorel/or-tools | examples/contrib/fsvolsay3-lpSolve.fs | [
"Apache-2.0"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
Note 1
This is an implementation of the Nedler-Mead method for
unconstrained function optimization.
Example usage of dyadic verb minimizeNelderMead:
1-dimensional example (function from R->R), where the function
to minimize is given by
func = 5x^2 -7x... | J | 3 | ajnavarro/language-dataset | data/github.com/jonghough/jlearn/8361c081b618b69bfc36decde67c689d46d5c917/optimize/neldermead.ijs | [
"MIT"
] |
# ------------------------------------------------------------------------------
# FILE: emotty.plugin.zsh
# DESCRIPTION: Return an emoji for the current $TTY number.
# AUTHOR: Alexis Hildebrandt (afh[at]surryhill.net)
# VERSION: 1.0.0
# DEPENDS: emoji plugin
#
# There are different... | Shell | 4 | sshishov/ohmyzsh | plugins/emotty/emotty.plugin.zsh | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.