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 |
|---|---|---|---|---|---|
.wizard-endpoints {
display: block;
width: 200px;
height: 300px;
border: 1px solid rgb(163, 163, 163);
border-radius: 5px;
float: left;
margin-right: 15px;
padding: 25px 20px;
cursor: pointer;
box-shadow: 0 3px 10px -2px rgb(161 170 166 / 60%);
}
.wizard-endpoints:hover {
box-shadow: 0 3px 10px -... | CSS | 3 | GizMan/portainer | app/portainer/views/wizard/wizard-endpoints/wizard-endpoints.css | [
"Zlib"
] |
(assert (=
(sha224 (bytes "abc"))
[23097d22 3405d822 8642a477 bda255b3 2aadbce4 bda0b3f7 e36c9da7])
)
(assert (=
(sha224 [])
[d14a028c 2a3a2bc9 476102bb 288234c4 15a2b01f 828ea62a c5b3e42f])
)
(assert (=
(hmac-sha224 (* [0b] 20) (bytes "Hi There"))
[896fb1128abbdf196832107cd49df33f47b4b1169912ba4f53684b22])
)
... | Slash | 4 | Leo-Neat/h2o | deps/picotls/deps/cifra/shitlisp/test-sha224.sl | [
"MIT"
] |
/** Copyright (c) 2009, University of Szeged
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of condition... | nesC | 3 | mtaghiza/tinyos-main-1 | tos/sensorboards/mts400/HplAccel202P.nc | [
"BSD-3-Clause"
] |
a ← ⊃ ⍴ 1 2 3
+/ a, ⍳ 7 ⍝ --> 31 | APL | 3 | melsman/apltail | tests/cons.apl | [
"MIT"
] |
discard """
cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
output: '''(allocCount: 102, deallocCount: 102)'''
"""
type
FutureBase = ref object
someData: string
const
# Just to occupy some RAM
BigData = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
... | Nimrod | 5 | JohnAD/Nim | tests/arc/tclosureiter.nim | [
"MIT"
] |
<template>
<div class="container">
<image class="cover" :src="data.hp_img_url" mode="widthFix" />
<view class="cover-author">
<text class="gray">{{data.hp_author}}</text>
</view>
<view class="content">
<text>{{content}}</text>
</view>
<view class="content-author">
<text class... | Vue | 4 | ye1088/uni-app | examples/uniapp-one/pages/home/main.vue | [
"Apache-2.0"
] |
//#define DEBUG
#ifdef DEBUG
#include <android/log.h>
#define LOGV(...) __android_log_print(ANDROID_LOG_INFO, "exploit", __VA_ARGS__); printf(__VA_ARGS__); printf("\n"); fflush(stdout)
#define LOGD(...) __android_log_print(ANDROID_LOG_INFO, "exploit", __VA_ARGS__); printf(__VA_ARGS__); printf("\n"); fflush(stdout)
#el... | C | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2014-3153/log.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
/**
Copyright 2015 Acacia Team
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
di... | X10 | 4 | mdherath/Acacia | src/org/acacia/tinkerpop/blueprints/impl/AcaciaGraph.x10 | [
"Apache-2.0"
] |
- // MIR for `do_not_miscompile` before InstCombine
+ // MIR for `do_not_miscompile` after InstCombine
fn do_not_miscompile() -> () {
let mut _0: (); // return place in scope 0 at $DIR/inst_combine_deref.rs:54:24: 54:24
let _1: i32; // in scope 0 at $DIR/ins... | Diff | 3 | mbc-git/rust | src/test/mir-opt/inst_combine_deref.do_not_miscompile.InstCombine.diff | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... | Ada | 5 | CandyROM/external_libncurses | Ada95/src/terminal_interface-curses-forms-field_types-enumeration-ada.adb | [
"X11"
] |
domain: "[m, n] -> { S_14[j] : 0 <= j < m; S_19[i, j] : 0 <= i < n and 0 <= j < m; S_27[i, j, k] : i >= 0 and i < j < m and 0 <= k < n; S_29[i, j] : i >= 0 and i < j < m }"
child:
context: "[m, n] -> { [] : 0 < m <= 2147483647 and -2147483648 <= n <= 2147483647 }"
child:
schedule: "[m, n] -> [{ S_19[i, ... | Smalltalk | 1 | chelini/isl-haystack | test_inputs/codegen/correlation.st | [
"MIT"
] |
= todo
Generate this with
todo rdoc
After you have described your command line interface | RDoc | 1 | vStone/gli | test/apps/todo_legacy/todo.rdoc | [
"Apache-2.0"
] |
within ModelicaByExample.Subsystems.Pendula;
model System "A system of pendula"
import Modelica.Constants.g_n;
import Modelica.Constants.pi;
parameter Integer n=15 "Number of pendula";
parameter Modelica.SIunits.Position x[n] = linspace(0,(n-1)*0.05,n);
parameter Modelica.SIunits.Time T = 54;
parameter Mod... | Modelica | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Modelica/System.mo | [
"MIT"
] |
<VirtualHost *:80>
ServerName my-site.local
DocumentRoot /path/to/silex/web
# ENVIROMENT ##############################################################
SetEnv APP_ENV dev # CHANGE IT
# MIXED ##############################################################... | ApacheConf | 5 | fabiocicerchia/Silex-Setup | app/configs/host.vhost | [
"MIT"
] |
@import './default.less';
@line-height-base: 1.66667;
@mode: compact;
@font-size-base: 12px;
@font-size-lg: @font-size-base + 2px;
// default paddings
@default-padding-lg: 24px; // containers
@default-padding-md: 16px; // small containers and buttons
@default-padding-sm: 12px; // Form controls and items
@default-padd... | Less | 3 | noctis0430-open-source/ant-design-blazor | components/style/themes/compact.less | [
"MIT"
] |
#!/bin/bash
set -ex
mkdir -p /usr/local/include
cp jni.h /usr/local/include
| Shell | 4 | Hacky-DH/pytorch | .circleci/docker/common/install_jni.sh | [
"Intel"
] |
Import transcc
Import android
Import android_ndk
Import flash
Import glfw
Import html5
Import ios
Import psm
Import stdcpp
Import winrt
Import xna
Function Builders:StringMap<Builder>( tcc:TransCC )
Local builders:=New StringMap<Builder>
builders.Set "android",New AndroidBuilder( tcc )
builders.Set "android_ndk"... | Monkey | 3 | blitz-research/monkey | src/transcc/builders/builders.monkey | [
"Zlib"
] |
"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 | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/SatelliteAltOutlined.js | [
"MIT"
] |
<!DOCTYPE html>
<!--
Copyright 2014 Mozilla 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 applicable law or agreed to... | HTML | 4 | MMeent/pdf.js | examples/components/singlepageviewer.html | [
"Apache-2.0"
] |
--for testing uncomment the "on run" block
--on run
-- set argsCmd to "ps aux | grep [s]sh"
-- set argsTheme to "Homebrew"
-- set argsTitle to "Custom title"
-- CommandRun(argsCmd, argsTheme, argsTitle)
--end run
on scriptRun(argsCmd, argsTheme, argsTitle)
set withCmd to (argsCmd)
set withTheme to (argsTheme)
set t... | AppleScript | 4 | desynced/legendary-octo-broccoli | apple-scripts/terminal/terminal-new-window.applescript | [
"MIT"
] |
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for lib/ecstatic.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../prettify.css" />
<link rel="stylesheet" href="../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type=... | HTML | 4 | PokerTiger/f7demo | node_modules/ecstatic/coverage/lcov-report/lib/ecstatic.js.html | [
"MIT"
] |
let $auction := doc("auction.xml") return
for $b in $auction//site/regions return count($b//item)
| XQuery | 3 | santoshkumarkannur/sirix | bundles/sirix-xquery/src/test/resources/xmark/queries/fndoc/q06.xq | [
"BSD-3-Clause"
] |
// ---------------------------------------------------------------------
// The Great Computer Language Shootout
// http://shootout.alioth.debian.org/
//
// Code based on / inspired by existing, relevant Shootout submissions
//
// Contributed by Anthony Borla
// ---------------------------------------------------------... | Pike | 3 | kragen/shootout | bench/recursive/recursive.pike | [
"BSD-3-Clause"
] |
*-------------------------------------------------------------------------------
* System Integration:
* - Capacity constraint
* - Flexibility constraint
* - Grid Investment
* - Capacity growth constraint
*-------------------------------------------------------------------------------
$ifthen %phase%=='conf'
$setglob... | GAMS | 5 | witch-team/witchmodel | modules/mod_systint.gms | [
"Apache-2.0"
] |
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.12.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
Func _IniDeleteEx($... | AutoIt | 5 | sdoddler/D-D-Software-Suite | Include/IniEx.au3 | [
"Unlicense"
] |
setenv LESSOPEN "|/usr/bin/lesspipe.sh %s"
setenv LESS_ADVANCED_PREPROCESSOR 1
| Tcsh | 2 | joedavis/void-packages | srcpkgs/lesspipe/files/lesspipe.csh | [
"BSD-2-Clause"
] |
--TEST--
Bug #35705 (strtotime() fails to parse soap date format without TZ)
--FILE--
<?php
date_default_timezone_set("UTC");
echo date(DATE_ISO8601, strtotime('2000-10-10T10:12:30.000')) . "\n";
?>
--EXPECT--
2000-10-10T10:12:30+0000
| PHP | 4 | guomoumou123/php5.5.10 | ext/date/tests/bug35705.phpt | [
"PHP-3.01"
] |
SELECT
"function_info".function_schema,
"function_info".function_name,
coalesce("function_info".info, '[]'::json) AS info
FROM (
SELECT
function_name,
function_schema,
-- This field corresponds to the 'RawFunctionInfo' Haskell type
json_agg(
json_build_object(
'oid', "pg_function".... | SQL | 5 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/pg_function_metadata.sql | [
"Apache-2.0",
"MIT"
] |
func $foo (
var %i i32
#var %i1 i32, var %j1 i32, var %k1 i32
) i32 {
return (
add i32(dread i32 %i,
constval i32 -998))}
func $foo1 (
var %i i32, var %j i32, var %k i32,
var %i1 i32, var %j1 i32, var %k1 i32
) i32 {
return (
add i32(dread i32 %i, dread i32 %j))}
func $foo2 (
... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0004-mapleall-irbuild-edge-add/Main.mpl | [
"MulanPSL-1.0"
] |
--TEST--
dl() filename length checks (CVE-2007-4887)
--SKIPIF--
<?php
$enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
if (!in_array(php_sapi_name(), $enabled_sapi)) {
die('skip dl() is not enabled for ' . php_sapi_name());
}
?>
--INI--
enable_dl=1
--FILE--
<?php
var_dump(dl(str_repeat("a", 8376757)));
?... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/general_functions/dl-cve-2007-4887.phpt | [
"PHP-3.01"
] |
#! /bin/sh -e
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 < $0
;;
-unpatch)
patch $... | Darcs Patch | 3 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/link-libs.dpatch | [
"MIT"
] |
class WithEmptyType {}
class OtherType {}
typedef AnotherOne = Int
| Haxe | 2 | jonasmalacofilho/haxe | tests/misc/projects/Issue3288/WithEmptyType.hx | [
"MIT"
] |
BxJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_tril_zero/test_data_set_0/input_0.pb | [
"Apache-2.0"
] |
data Nat := ('zero : Nat) ; ('suc : (n : Nat) -> Nat) ;
make zero := 'zero : Nat ;
make suc := (\ x -> 'suc x) : Nat -> Nat ;
let plus (m : Nat)(n : Nat) : Nat ;
<= Nat.Ind m ;
= n ;
= 'suc (plus n^1 n) ;
root ;
module Vec ;
lambda A : Set ;
make VecD : Nat -> IDesc Nat ;
give (\ n -> 'fsigmaD ['nil 'cons] [ ('cons... | PigLatin | 3 | mietek/epigram | test/LetVec.pig | [
"MIT"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Vector.h>
#include <LibWeb/Layout/Node.h>
namespace Web::Layout {
class StackingContext {
public:
StackingContext(Box&, StackingContext* parent);
StackingContext* parent(... | C | 3 | r00ster91/serenity | Userland/Libraries/LibWeb/Painting/StackingContext.h | [
"BSD-2-Clause"
] |
@import './_variables.scss'
// Theme
+theme(v-calendar-category) using ($material)
.v-calendar-category__column,
.v-calendar-category__column-header
border-right: map-deep-get($material, 'calendar', 'line-color') $calendar-line-width solid
.v-calendar-category
.v-calendar-category__category
text-align: ... | Sass | 3 | Mikilll94/vuetify | packages/vuetify/src/components/VCalendar/VCalendarCategory.sass | [
"MIT"
] |
t app appmode photo
t app button shutter PR
sleep 3
t app led red_front on
sleep 10
t app led red_front off
sleep 1
deletedir d:\DCIM
reboot yes
| AGS Script | 1 | waltersgrey/autoexechack | deletemedia/deletephoto/HERO3PlusSilver/autoexec.ash | [
"MIT"
] |
/*
** Master Thesis Econometrics
**
** Purpose:
** For some fixed parameter values simulate and estimate T-GAS(1,1) model parameters
** with Maximum Likelikhood many times. s.t. stationarity conditions of Bougerol's Theorem
**
** Date:
** 15/08/2015
**
** Author:
** Tamer Dilaver
**
** Supervisor:
** Fran... | Ox | 5 | tamerdilaver/Simulation_t-GAS | SIM_t-GAS_0.ox | [
"MIT"
] |
template(name="mailActions")
div.trigger-item.trigger-item-mail
div.trigger-content.trigger-content-mail
div.trigger-text.trigger-text-email
| {{_'r-send-email'}}
div.trigger-dropdown-mail
input(id="email-to",type=text,placeholder="{{_'r-to'}}")
input(id="email-subject",type=text... | Jade | 3 | moqmar/wekan | client/components/rules/actions/mailActions.jade | [
"MIT"
] |
<?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>
<public>true</public>
</faces-config-extension>
<composite-component>
<component-type>mobileMemberView</component-type>
... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/nsf/Teamroom/CustomControls/mobileMemberView.xsp-config | [
"Apache-2.0"
] |
import App from 'next/app'
import { setConfig } from '../lib/config'
setConfig({ hello: 'world' })
function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />
}
MyApp.getInitialProps = async (appContext) => {
// calls page's `getInitialProps` and fills `appProps.pageProps`
const appProps = a... | JavaScript | 4 | blomqma/next.js | test/integration/required-server-files-ssr-404/pages/_app.js | [
"MIT"
] |
module Main where
import Prelude
import Effect.Console (log)
import Effect.Uncurried (EffectFn3, mkEffectFn7, runEffectFn3, runEffectFn7)
import Test.Assert (assert)
testBothWays = do
res <- (runEffectFn7 $ mkEffectFn7 \x1 x2 x3 x4 x5 x6 x7 -> pure 42) 1 2 3 4 5 6 7
assert $ res == 42
foreign import add3 :: Eff... | PureScript | 4 | andys8/purescript | tests/purs/passing/EffFn.purs | [
"BSD-3-Clause"
] |
;;; editor/god/config.el -*- lexical-binding: t; -*-
(use-package! god-mode
:hook (doom-after-init-modules . god-mode-all)
:config
(add-hook 'post-command-hook #'+god--configure-cursor-and-modeline-h)
(add-hook 'overwrite-mode-hook #'+god--toggle-on-overwrite-h)
(after! which-key
(which-key-enable-god-m... | Emacs Lisp | 4 | leezu/doom-emacs | modules/editor/god/config.el | [
"MIT"
] |
*-------------------------------------------------------------------------------
* Default Climate Policy Implementation
*
* Options:
* --policy={bau (default),ctax}
* Implement a climate policy setting
* [ --scen= ]
* Policy variant.
* For ctax, it can be {ramsey,spa,XXX}, defining the growh r... | GAMS | 4 | witch-team/witchmodel | modules/core_policy.gms | [
"Apache-2.0"
] |
alias fl="flutter"
alias flr="flutter run"
alias fldoc="flutter doctor"
alias flb="flutter build"
alias flattach="flutter attach"
alias flget="flutter packages get"
alias flc="flutter clean"
| Shell | 3 | chensanle/ohmyzsh | plugins/flutter/flutter.plugin.zsh | [
"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 | yage99/tensorflow | tensorflow/compiler/xla/tests/get_dimension_size_test.cc | [
"Apache-2.0"
] |
=pod
=head1 NAME
EVP_PKEY-DSA, EVP_KEYMGMT-DSA - EVP_PKEY DSA keytype and algorithm support
=head1 DESCRIPTION
For B<DSA> the FIPS186-4 standard specifies that the values used for FFC
parameter generation are also required for parameter validation.
This means that optional FFC domain parameter values for I<seed>, I... | Pod | 4 | pmesnier/openssl | doc/man7/EVP_PKEY-DSA.pod | [
"Apache-2.0"
] |
if [ $commands[operator-sdk] ]; then
source <(operator-sdk completion zsh)
compdef _operator-sdk operator-sdk
fi
| Shell | 3 | residwi/ohmyzsh | plugins/operator-sdk/operator-sdk.plugin.zsh | [
"MIT"
] |
// Copyright 2021 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | C | 3 | bostikforever/grpc | src/core/lib/resource_quota/resource_quota.h | [
"Apache-2.0"
] |
package com.baeldung.storedprocedure.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedStoredProcedureQuery;
import javax.persistence.StoredProcedureParam... | Java | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-repo/src/main/java/com/baeldung/storedprocedure/entity/Car.java | [
"MIT"
] |
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Current Track
# @raycast.mode inline
# @raycast.refreshTime 30s
# Optional parameters:
# @raycast.packageName Spotify
# @raycast.icon images/spotify-logo.png
# Documentation:
# @raycast.author Thomas Paul Mann
# @raycast.authorUR... | AppleScript | 5 | tanaynistala/script-commands | commands/media/spotify/spotify-current-track.applescript | [
"MIT"
] |
"""Config flow for the Hardkernel integration."""
from __future__ import annotations
from typing import Any
from homeassistant.config_entries import ConfigFlow
from homeassistant.data_entry_flow import FlowResult
from .const import DOMAIN
class HardkernelConfigFlow(ConfigFlow, domain=DOMAIN):
"""Handle a confi... | Python | 4 | liangleslie/core | homeassistant/components/hardkernel/config_flow.py | [
"Apache-2.0"
] |
xilil-nabyf-gynih-duheb-gokyp-bofet-nekac-bosod-lozin-kuvyh-poxix
| BitBake | 0 | ArrogantWombatics/openbsd-src | regress/usr.bin/ssh/unittests/sshkey/testdata/rsa1_1.fp.bb | [
"BSD-3-Clause"
] |
Code.require_file("test_helper.exs", __DIR__)
defmodule MapSetTest do
use ExUnit.Case, async: true
doctest MapSet
test "new/1" do
result = MapSet.new(1..5)
assert MapSet.equal?(result, Enum.into(1..5, MapSet.new()))
end
test "new/2" do
result = MapSet.new(1..5, &(&1 + 2))
assert MapSet.equ... | Elixir | 4 | doughsay/elixir | lib/elixir/test/elixir/map_set_test.exs | [
"Apache-2.0"
] |
= Ruby Standard Library
The Ruby Standard Library is a vast collection of classes and modules that you
can require in your code for additional features.
Below is an overview of libraries and extensions followed by a brief
description.
== Libraries
Abbrev:: Calculates a set of unique abbreviations for a given set of... | RDoc | 3 | bkmgit/ruby-packer | ruby/doc/standard_library.rdoc | [
"MIT"
] |
SELECT
cd_gender,
cd_marital_status,
cd_education_status,
count(*) cnt1,
cd_purchase_estimate,
count(*) cnt2,
cd_credit_rating,
count(*) cnt3
FROM
customer c, customer_address ca, customer_demographics
WHERE
c.c_current_addr_sk = ca.ca_address_sk AND
ca_state IN ('KY', 'GA', 'NM') AND
cd_dem... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpcds/q69.sql | [
"Apache-2.0"
] |
// @strict: true
// Repro from #20196
type A = {
a: (x: number) => string
};
type B = {
a: (x: boolean) => string
};
function call0(p: A | B) {
p.a("s"); // Error
}
function callN<T extends A | B>(p: T) {
p.a("s"); // Error
var a: T["a"] = p.a;
a(""); // Error
a("", "", "", "")... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/functionCallOnConstrainedTypeVariable.ts | [
"Apache-2.0"
] |
domain: "[M] -> { S1[] : M >= 0 }"
child:
context: "[M] -> { [] : M >= 0 }"
| Smalltalk | 1 | chelini/isl-haystack | test_inputs/codegen/cloog/0D-3.st | [
"MIT"
] |
#%RAML 1.0 Library
uses:
strings: stringTypes.raml
types:
EnvVarValue:
type: string
EnvVarSecret:
type: object
description: An environment variable set to a secret
properties:
secret:
type: string
description: |
The name of the secret to refer to. At runtime, the va... | RAML | 4 | fquesnel/marathon | docs/docs/rest-api/public/api/v2/types/environmentVariable.raml | [
"Apache-2.0"
] |
<h1><%= @project.name -%></h1>
<h3>validate error:<br>
<pre>
<%= @errText -%>
</pre>
</h3>
| RHTML | 3 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/pipeline/valid_status.rhtml | [
"MIT"
] |
//===--- XPCService.cpp ---------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 4 | kbongort/swift | tools/SourceKit/tools/sourcekitd/bin/XPC/Service/XPCService.cpp | [
"Apache-2.0"
] |
#poi_label[maki=''] {
opacity:1.0;
comp-op:src-over;
} | CartoCSS | 3 | nimix/carto | test/rendering-mss/issue_339b.mss | [
"Apache-2.0"
] |
#!/usr/bin/env bash
set -eo pipefail
IFS=$'\n\t'
ROOT="${BASH_SOURCE[0]%/*}"
SEMVER_REGEX="v?([0-9]+)(\.[0-9]+)?(\.[0-9]+)?(-([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?(\+([0-9A-Za-z\-]+(\.[0-9A-Za-z\-]+)*))?"
CHANNEL_REGEX="^[a-z]+"
LATEST_TAG=$(git describe --tags --abbrev=0)
VERSION=""
channel="stable"
if [[ "$LATEST... | Shell | 3 | gh-oss-contributor/graphql-engine-1 | scripts/get-console-assets-version.sh | [
"Apache-2.0",
"MIT"
] |
\title{Maximum a Posteriori Estimation}
\subsection{Maximum a Posteriori Estimation}
Maximum a posteriori (MAP) estimation is a form of approximate
posterior inference. It uses the mode as a point estimate of the
posterior distribution,
\begin{align*}
\mathbf{z}_\text{MAP}
&=
\arg \max_\mathbf{z}
p(\mathbf{z}... | TeX | 3 | xiangze/edward | docs/tex/tutorials/map.tex | [
"Apache-2.0"
] |
#ifndef TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_STATIC_VAR_INIT_CALLS_FUNCTION_H
#define TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_STATIC_VAR_INIT_CALLS_FUNCTION_H
inline int increment(int t) { return t + 1; }
struct Incrementor {
static int incrementee;
};
int Incrementor::... | C | 4 | gandhi56/swift | test/Interop/Cxx/class/inline-function-codegen/Inputs/static-var-init-calls-function.h | [
"Apache-2.0"
] |
package universe_test
import "testing"
import "csv"
option now = () => 2030-01-01T00:00:00Z
testcase to_float {
inData =
"
#datatype,string,long,dateTime:RFC3339,boolean,string,string
#group,false,false,false,false,true,true
#default,_result,,,,,
,result,table,_time,_value,_field,_measurement
,,... | FLUX | 4 | metrico/flux | stdlib/universe/to_convert_test.flux | [
"MIT"
] |
"oneart.wav" diskin
3.5 allpass dup
| SourcePawn | 0 | aleatoricforest/Sporth | examples/allpass.sp | [
"MIT"
] |
function sample_page() {
<header>
<h3>HTML in Opa</h3>
</header>
<article>
<div class=container>
<p>Learning by examples.</p>
</div>
</article>
}
| Opa | 3 | btashton/pygments | tests/examplefiles/test.opa | [
"BSD-2-Clause"
] |
// rustfmt-max_width: 80
struct Foo {
#[cfg(feature = "serde")]
bytes: [[u8; 17]; 5], // Same size as signature::ED25519_PKCS8_V2_LEN
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/issue-2342.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@STATIC;1.0;p;13;CPArray+KVO.jt;12607;@STATIC;1.0;i;9;CPArray.ji;8;CPNull.jt;12562;
objj_executeFile("CPArray.j",YES);
objj_executeFile("CPNull.j",YES);
var _1=objj_getClass("CPObject");
if(!_1){
throw new SyntaxError("*** Could not find definition for class \"CPObject\"");
}
var _2=_1.isa;
class_addMethods(_1,[new obj... | Objective-J | 5 | Me1000/CappInventory | Build/Desktop/Inventory/Inventory.app/Contents/Resources/Inventory/Frameworks/Foundation/ObjJ.environment/Foundation.sj | [
"MIT"
] |
# This module implements a circular buffer.
module circular_buffer
# Class CircularBuffer implements buffer that holds at most the last
# `capacity` elements written to it.
class CircularBuffer
super SimpleCollection[String]
# capacity is the size of the circular buffer.
private var capacity: Int
# ne... | Nit | 4 | PuerkitoBio/nitfind | circular_buffer.nit | [
"BSD-3-Clause"
] |
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="fn" uri="http://ja... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/crash/appCrashTrend.jsp | [
"Apache-2.0"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 3 | EricRemmerswaal/tensorflow | tensorflow/core/kernels/data/reduce_dataset_op.h | [
"Apache-2.0"
] |
;;; lang/scala/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +scala-comment-indent-new-line-fn (&optional _)
"Continue the commnt on the current line.
Meant to be used for `scala-mode's `comment-line-break-function'."
(let* ((state (syntax-ppss))
(comment-start-pos (nth 8 state)))
(sa... | Emacs Lisp | 5 | leezu/doom-emacs | modules/lang/scala/autoload.el | [
"MIT"
] |
<mt:CategorySets content_type="ニュース">
<mt:ArchiveList type="ContentType-Category">
<mt:ArchiveListHeader>
<section class="content-side-section content-side-section-box">
<div class="content-side-section-box-title"><mt:CategorySetName></div>
<ul class="text-smaller">
</mt:ArchiveListHeader>
... | MTML | 2 | movabletype/mt-theme-jungfrau | themes/jungfrau/templates/template_450.mtml | [
"MIT"
] |
div>p.svelte-xyz{color:red} | CSS | 2 | Theo-Steiner/svelte | test/css/samples/omit-scoping-attribute-descendant-global-outer/expected.css | [
"MIT"
] |
#COPYRIGHT
#
#All contributions by the University of California:
#Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
#All rights reserved.
#
#All other contributions:
#Copyright (c) 2014, 2015, the respective contributors
#All rights reserved.
#
#Caffe uses a shared copyright model: each co... | CMake | 4 | thisisgopalmandal/opencv | cmake/OpenCVFindAtlas.cmake | [
"BSD-3-Clause"
] |
@echo off
yarn %*
| Batchfile | 1 | sbj42/vscode | scripts/npm.bat | [
"MIT"
] |
%{
#include <string>
#include "tile/lang/parser.y.h"
%}
%option reentrant bison-bridge
%option noyywrap never-interactive
id [A-Z][a-zA-Z0-9_]*'?
iid [a-z][a-zA-Z0-9_]*'?
sid #[A-Za-z][a-zA-Z0-9_]*'?
siid $[A-Za-z][a-zA-Z0-9_]*'?
float [0-9]+(\.[0-9]+|([\.0-9]+)?[eE][-+]?[0-9]+)
int ... | Lex | 4 | redoclag/plaidml | tile/lang/tile.lex | [
"Apache-2.0"
] |
FORMAT: 1A
# Beehive API
## Honey [/honey{?beekeeper}]
### GET
+ Parameters
+ beekeeper: `Pavan` (string, optional) - Beekeeper.
Description...
+ Default: `Honza`
+ Members
+ `Adam` - Adam K.
+ `Pavan` - Pavan S.
+ `Honza` - Honza J.
+ Response 200... | API Blueprint | 4 | tomoyamachi/dredd | packages/dredd-transactions/test/fixtures/apib/prefer-sample.apib | [
"MIT"
] |
--TEST--
Test typed properties error condition (type mismatch object)
--FILE--
<?php
class Dummy {}
new class(new Dummy) {
public stdClass $std;
public function __construct(Dummy $dummy) {
$this->std = $dummy;
}
};
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Cannot assign Dummy to property cla... | PHP | 4 | thiagooak/php-src | Zend/tests/type_declarations/typed_properties_005.phpt | [
"PHP-3.01"
] |
package com.taobao.arthas.core.view;
import com.taobao.arthas.core.util.Constants;
import com.taobao.arthas.core.util.StringUtils;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import static java.lang.Math.abs;
import static java.lang.Math.max;
import stati... | Java | 5 | weihubeats/arthas | core/src/main/java/com/taobao/arthas/core/view/TableView.java | [
"Apache-2.0"
] |
const otherFile = fn() {
println("Hello from ", _FILE)
}
return otherFile
| Inform 7 | 2 | lfkeitel/nitrogen | examples/fileset/another.ni | [
"BSD-3-Clause"
] |
/*
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/Temporal/TimeZone.h>
#include <LibJS/Runtime/Temporal/TimeZoneConstructor.h>
namespace JS::Temporal {
// 11.2 The Temporal.TimeZone Constructor,... | C++ | 5 | r00ster91/serenity | Userland/Libraries/LibJS/Runtime/Temporal/TimeZoneConstructor.cpp | [
"BSD-2-Clause"
] |
PREFIX : <>
SELECT *
WHERE { : : : . }
| SPARQL | 1 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg/data-r2/syntax-sparql1/syntax-qname-05.rq | [
"Apache-2.0"
] |
func() { (1, "bob") }
t : func()
a := t.item1
b := t.item2
(a=, b=copy) func()
(c:, d:copy) func()
(e:=, f:=) (1.0, 4) | Objective-J | 1 | justinmann/sj | tests/tuple1.sj | [
"Apache-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// 2D Water Ripples
// Video: https://youtu.be/BZUdGqeOD0w
// Algorithm: https://web.archive.org/web/20160418004149/http://freespace.virgin.net/hugo.elias/graphics/x_water.htm
int cols;
int rows;
float[][] current;// = new float[cols][rows];
... | Processing | 5 | aerinkayne/website | CodingChallenges/CC_102_WaterRipples/Processing/CC_102_WaterRipples/CC_102_WaterRipples.pde | [
"MIT"
] |
--TEST--
Proper source duplication on assignment to typed property
--FILE--
<?php
class Foo {
public int $bar;
}
$foo = new Foo();
for ($i = 0; $i < 5; $i++) {
$foo->bar = "5";
var_dump($foo->bar);
}
?>
--EXPECT--
int(5)
int(5)
int(5)
int(5)
int(5)
| PHP | 2 | thiagooak/php-src | Zend/tests/type_declarations/typed_properties_042.phpt | [
"PHP-3.01"
] |
set(CMAKE_SYSTEM_PROCESSOR riscv64)
set(GNU_MACHINE riscv64-linux-gnu CACHE STRING "GNU compiler triple")
set(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version")
include("${CMAKE_CURRENT_LIST_DIR}/riscv.toolchain.cmake")
| CMake | 2 | artun3e/opencv | platforms/linux/riscv64-gnu.toolchain.cmake | [
"BSD-3-Clause"
] |
#pragma once
#include "envoy/network/address.h"
#include "absl/types/optional.h"
namespace Envoy {
namespace Udp {
/**
* Hash policy for UDP transport layer protocol.
*/
class HashPolicy {
public:
virtual ~HashPolicy() = default;
/**
* @param downstream_address is the address of the peer client.
* @retu... | C | 4 | dcillera/envoy | envoy/udp/hash_policy.h | [
"Apache-2.0"
] |
--TEST--
Test socket_set_block return values
--EXTENSIONS--
sockets
--FILE--
<?php
$socket = socket_create_listen(0);
var_dump(socket_set_block($socket));
socket_close($socket);
$socket2 = socket_create_listen(0);
socket_close($socket2);
try {
var_dump(socket_set_block($socket2));
} catch (Error $e) {
echo $e... | PHP | 3 | NathanFreeman/php-src | ext/sockets/tests/socket_set_block-retval.phpt | [
"PHP-3.01"
] |
#! /bin/sh -e
# DP: There are two exception mechanisms to choose from: zero-cost and
# DP: setjump/longjump. The Ada run-time library uses either of them
# DP: but not both. Build both versions of the run-time library.
# This patch changes the way the upstream Makefiles build the run-time
# library. Before the pat... | Darcs Patch | 5 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/ada-sjlj.dpatch | [
"MIT"
] |
/*
* Program type: Embedded Dynamic SQL
*
* Description:
* This program updates departments' budgets, given
* the department and the new budget information parameters.
*
* An input SQLDA is allocated for the update query
* with parameter markers.
* The contents of this file are subject to the Interbase... | Eiffel | 5 | AlexeyMochalov/firebird | examples/dyn/dyn4.e | [
"Condor-1.1"
] |
[
{
"ProfileName": "RCE-linux-Based",
"Name": "",
"Enabled": true,
"Scanner": 1,
"Author": "@Sy3Omda",
"Payloads": [
"true,;cat /e${hahaha}tc/${heywaf}pas${catchthis}swd",
"true,;cat$u /etc$u/passwd$u",
"true,;{cat,/etc/passwd}",
"true,;cat\u003c/etc/passwd",
"tru... | BitBake | 1 | upenderadepu/BurpBounty | profiles/RCE-linux-Based.bb | [
"Apache-2.0"
] |
/*
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWasm/AbstractMachine/Configuration.h>
namespace Wasm {
struct Interpreter {
virtual ~Interpreter() = default;
virtual void interpret(Configuration&) = 0;
virtual b... | C | 3 | r00ster91/serenity | Userland/Libraries/LibWasm/AbstractMachine/Interpreter.h | [
"BSD-2-Clause"
] |
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.library
import org.jetbrains.kotlin.konan.file.File
import org.jetbrains.kotlin.... | Kotlin | 5 | Mu-L/kotlin | compiler/util-klib/src/org/jetbrains/kotlin/library/ToolingResolve.kt | [
"ECL-2.0",
"Apache-2.0"
] |
INI_SECURITY = "[Configuration\\Security]\nUseMasterPassword=1\nMasterPasswordVerifier=\n"
USERNAME = 'username'
HOST = 'server.feralhosting.com'
PASSWORD='A35C7659654B2AB83C292F392E323D31392F392E2A392E723A392E3D3034332F2835323B723F33312F383A2F383A3B2F3B3B3B'
SAMPLE_INI = <<-END
[Sessions\\username@server.feralhostin... | Ruby | 4 | OsmanDere/metasploit-framework | spec/lib/rex/parser/winscp_spec.rb | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
scriptname _DE_Tent_PreventFallThrough extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if !akNewContainer && akOldContainer == Game.GetPlayer() && Game.GetPlayer().IsInInterior()
float myZ = self.GetPositionZ()
self.MoveTo(self, afZOffset = 100.0)
... | Papyrus | 3 | chesko256/Campfire | Scripts/Source/_DE_Tent_PreventFallThrough.psc | [
"MIT"
] |
pub const Integer = u32;
| Zig | 1 | aruniiird/zig | test/stage1/behavior/bugs/655_other_file.zig | [
"MIT"
] |
.line[data-v-35af5ff9]{text-align:center} | CSS | 1 | yuanweikang2020/canal | admin/admin-web/src/main/resources/public/static/css/chunk-98f505d0.5280f88f.css | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.