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 |
|---|---|---|---|---|---|
(alert "Hello World")
| Common Lisp | 2 | conorpreid/hello-world | a/AutoLISP.lsp | [
"MIT"
] |
<body role="document">
<nav role="navigation">
<%= render '_sidebar_navigation.rhtml' %>
<%= render '_sidebar_search.rhtml' %>
<div id="project-metadata">
<%= render '_sidebar_pages.rhtml' %>
<%= render '_sidebar_classes.rhtml' %>
</div>
</nav>
<main role="main">
<h1>Not Found</h1>
<p><%= messag... | RHTML | 2 | Bhuvanesh1208/ruby2.6.1 | lib/ruby/2.6.0/rdoc/generator/template/darkfish/servlet_not_found.rhtml | [
"Ruby"
] |
#!/usr/bin/env bash
# This script is meant to be run on a dev's machine to update the version on
# Yarn used by the monorepo. Its goal is to make sure that every mention of Yarn
# version is updated, and it re-installs the plugins to make sure those are
# up-to-date as well.
set -o pipefail
set -o errexit
set -o noun... | Shell | 5 | camiloforero/uppy | bin/update-yarn.sh | [
"MIT"
] |
REBOL [
Title: "Red Run All Together Initialisation "
Author: "Peter W A Wood"
Version: 0.1.0
Tabs: 4
Rights: "Copyright (C) 2015 Peter W A Wood. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
Purpose: {Defines tests to be run in red/run-all.r and red/tes... | R | 3 | 0xflotus/red | tests/source/units/run-all-together-init.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
namespace Grains
open System.Threading.Tasks
open HelloWorldInterfaces
type HelloGrain() =
inherit Orleans.Grain()
interface IHelloGrain with
override this.SayHello(greeting:string) =
Task.FromResult<string>("This comes from F#!")
| F# | 4 | oising/orleans | samples/FSharpHelloWorld/Grains/HelloGrain.fs | [
"MIT"
] |
<div class="row justify-content-center">
<div class="col-8">
<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">
<h2 id="jhi-quote-heading" jhiTranslate="gatewayApp.quotesQuote.home.createOrEditLabel">Create or edit a Quote</h2>
<div>
... | HTML | 4 | DBatOWL/tutorials | jhipster/jhipster-uaa/gateway/src/main/webapp/app/entities/quotes/quote/quote-update.component.html | [
"MIT"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit git-r3
DESCRIPTION="Rust zsh completions"
HOMEPAGE="http://www.rust-lang.org/"
EGIT_REPO_URI="https://github.com/rust-lang/zsh-config"
LICENSE="|| ( MIT Apache-2.0 )"
SLOT="0"
DEPEND="app-shell... | Gentoo Ebuild | 3 | gentoo/gentoo-rust | app-shells/rust-zshcomp/rust-zshcomp-9999.ebuild | [
"BSD-3-Clause"
] |
fn inside_closure(x: &mut i32) {
}
fn outside_closure_1(x: &mut i32) {
}
fn outside_closure_2(x: &i32) {
}
fn foo(a: &mut i32) {
let bar = || {
inside_closure(a)
};
outside_closure_1(a);
//~^ ERROR cannot borrow `*a` as mutable because previous closure requires unique access
outside_clos... | Rust | 3 | Eric-Arellano/rust | src/test/ui/error-codes/E0501.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-- A test suite for scalar subquery in predicate context
CREATE OR REPLACE TEMPORARY VIEW p AS VALUES (1, 1) AS T(pk, pv);
CREATE OR REPLACE TEMPORARY VIEW c AS VALUES (1, 1) AS T(ck, cv);
-- SPARK-18814.1: Simplified version of TPCDS-Q32
SELECT pk, cv
FROM p, c
WHERE p.pk = c.ck
AND c.cv = (SELECT avg(c1.cv)
... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/subquery/scalar-subquery/scalar-subquery-predicate.sql | [
"Apache-2.0"
] |
const React = window.React;
const fixturePath = window.location.pathname;
/**
* A simple routing component that renders the appropriate
* fixture based on the location pathname.
*/
class FixturesPage extends React.Component {
static defaultProps = {
fixturePath: fixturePath === '/' ? '/home' : fixturePath,
... | JavaScript | 5 | vegYY/react | fixtures/dom/src/components/fixtures/index.js | [
"MIT"
] |
package opal: import *;
package random: import uniform, randint;
package pygame: import mixer;
package colorsys: import hsv_to_rgb;
import math, os;
new <Vector> RESOLUTION = Vector(1280, 720);
new bool DEBUG_MODE = False;
new tuple FG = (255, 255, 255),
BG =... | Opal | 4 | thatsOven/pong-plus-plus | PongPlusPlus.opal | [
"MIT"
] |
/*
Navicat Oracle Data Transfer
Oracle Client Version : 11.2.0.1.0
Source Server : localhost_test
Source Server Version : 110200
Source Host : localhost:1521
Source Schema : TEST
Target Server Type : ORACLE
Target Server Version : 110200
File Encoding : 65001
Date: 2018-05-02 14:... | SQL | 4 | Nico-du/SpringAll | 06.Spring-Boot-JdbcTemplate-MultiDataSource/src/main/resources/oracle_sql.sql | [
"MIT"
] |
measure 2.8678989020441064 0.0 0.0 0.97077891715822506 0.0 0.0 2.174751721484161 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.8678989020441064 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2733640101522705 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/20/same_sentence_ppmi.dm | [
"CC-BY-3.0"
] |
{:objects
{:man
{:fields {:name {:type String}}}
:machine
{:fields {:serial {:type String}}}}
:unions
{:all {:members [:man :machine]}}
:queries
{:get_man
{:type :man
:resolve :get-man}
:get_machine
{:type :machine
:resolve :get-machine}
:get_all
{:type (list :all)
:resolve :get-all}}... | edn | 3 | hagenek/lacinia | dev-resources/typename-schema.edn | [
"Apache-2.0"
] |
in = LOAD '${input_table}' USING org.apache.hive.hcatalog.pig.HCatLoader() AS (id:chararray, occurred_at:chararray, version:int, user_id:int, longitude:double, latitude:double, geohash:chararray, tags:map[], created_at:chararray, created_by:chararray, year:chararray, month:chararray, month_id:chararray);
filter_station... | PigLatin | 3 | cwsteinbach/schedoscope | schedoscope-tutorial/src/main/resources/pig_scripts/datahub/insert_trainstations.pig | [
"Apache-2.0"
] |
package
{
import flash.display.DisplayObjectContainer;
import flash.utils.ByteArray;
import flash.system.Capabilities;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
public class MyClass
{
static var
_gc:Array,
_va:Array,
_ba:ByteArray,
_corrupted:Vector... | ActionScript | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2015-5119/MyClass.as | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
size: 1200px 480px;
dpi: 96;
lines {
data-x: csv("test/testdata/city_temperatures_london.csv" month);
data-y: csv("test/testdata/city_temperatures_london.csv" temperature);
labels: csv("test/testdata/city_temperatures_london.csv" temperature_str);
color: #06c;
marker-size: 3pt;
scale-x-padding: 0.6;
limi... | CLIPS | 3 | asmuth-archive/travistest | test/plot-lines/lines_with_labels.clp | [
"Apache-2.0"
] |
// Script header for module 'KeyboardMovement'
#define KeyboardMovement_VERSION 101
enum KeyboardMovement_Modes {
eKeyboardMovement_None,
eKeyboardMovement_Tapping,
eKeyboardMovement_Pressing
};
struct KeyboardMovement {
import static function SetMode(KeyboardMovement_Modes mode);
};
| AGS Script | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/AGS Script/KeyboardMovement_102.ash | [
"MIT"
] |
/*
* outputs a cpuid key for use in context keyed payload encoding.
*
* Author: Dimitris Glynos <dimitris at census-labs.com>
*/
#include <stdio.h>
int main()
{
unsigned long eax;
asm (
"xorl %%esi, %%esi;" /* esi is key store, zero it out */
"xorl %%edi, %%edi;" /* edi is loop iterator, ditto */
... | C | 4 | OsmanDere/metasploit-framework | tools/context/cpuid-key.c | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
{eq} = require './_helpers'
suite 'context' ->
test 'context' ->
eq '--context 1 return test/data/a.js', '''
2:(multiline):
function square(x) {
##return x * x;#
}''', it
test 'before context' ->
eq '--before-context 1 return test/data/a.js', '''
2:(multiline):
functi... | LiveScript | 3 | GerHobbelt/grasp | test/context.ls | [
"MIT"
] |
del(.Id, .ResourceId, .Identity, .Kind, .ResourceName, .ExtensionResourceName, .ParentResource, .Plan, .Properties.provisioningState, .Properties.vaultUri) | JSONiq | 1 | StefanIvemo/AzOps | src/data/template/Microsoft.KeyVault/vaults.jq | [
"MIT"
] |
PROVIDE ( ets_update_cpu_frequency = 0x40008550 ); /* Updates g_ticks_per_us on the current CPU only; not on the other core */
PROVIDE ( MD5Final = 0x4005db1c );
PROVIDE ( MD5Init = 0x4005da7c );
PROVIDE ( MD5Update = 0x4005da9c );
/* bootloader will use following functions from xtensa hal library */
xthal_get_ccount ... | Linker Script | 2 | DCNick3/esp-idf | components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld | [
"Apache-2.0"
] |
#!/usr/bin/env bash
#
# Reads the contributors.json file and tries to fill in missing data from other sources.
readonly MISSING_PICTURE_QUERY='with_entries(select(.value | has("picture") | not)) | keys[]'
readonly MISSING_BIO_QUERY='with_entries(select(.value | has("bio") | not)) | keys[]'
(
cd $(dirname $0)/... | Shell | 3 | coreyscherbing/angular | aio/scripts/contributors/populate_missing_contributor_fields.sh | [
"MIT"
] |
(defglobal ?*q* = (create$ d e f) ?*x* =)
(defglobal ?*q* = (create$ i j k) ?*x* = ?x) | CLIPS | 0 | smarr/CLIPS | test_suite/tempbug.clp | [
"Apache-2.0"
] |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | C | 3 | jzjonah/apollo | cyber/tools/cyber_recorder/player/play_task_consumer.h | [
"Apache-2.0"
] |
import React from 'react'
const NotFound = () => (
<div>404 not found</div>
)
export default NotFound
| JavaScript | 3 | pipaliyajaydip/gatsby | benchmarks/source-strapi/src/pages/404.js | [
"MIT"
] |
#
# @expect=org.quattor.pan.exceptions.ValidationException ".*value \(ddd\) is not a possible choice value.*"
#
object template choice20;
type mychoice = choice("aa", "bb", "aaa", "bbb");
bind '/x' = mychoice with length(SELF) == 3;
'/x' = "ddd";
| Pan | 3 | aka7/pan | panc/src/test/pan/Functionality/choice/choice20.pan | [
"Apache-2.0"
] |
/home/spinalvm/hdl/riscv-compliance/work//I-RF_size-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 00001817 auipc a6,0x1
80000004: 00080813 mv a6,a6
80000008: 42727037 lui zero,0x42727
8000000c: e6f00013 li zero,-401
... | ObjDump | 3 | cbrune/VexRiscv | src/test/resources/asm/I-RF_size-01.elf.objdump | [
"MIT"
] |
unit aiVector3D;
interface
type TaiVector3D = packed record
x, y, z: single;
end;
type PaiVector3D = ^TaiVector3D;
type PaiVector3DArray = array [0..0] of PaiVector3D;
type TaiVector3DArray = array[0..0] of TaiVector3D;
type PTaiVector3DArray = ^TaiVector3DArray;
implementation
end.
| Pascal | 4 | sercand/assimp | port/AssimpDelphi/aiVector3D.pas | [
"BSD-3-Clause"
] |
'reach 0.1';
export const main = Reach.App(
{ },
[ Participant('O', {
...hasRandom,
ping: Fun([], Null),
}),
],
(O) => {
const ping = () =>
O.only(() => interact.ping());
O.only(() => {
const _x = interact.random();
});
ping();
O.only(() => {
const x = decla... | RenderScript | 2 | chikeabuah/reach-lang | hs/t/y/pr20210303.rsh | [
"Apache-2.0"
] |
#version 310 es
layout (local_size_x = 8, local_size_y = 8) in;
layout (binding = 0) readonly buffer InBufY {
uvec4 data[];
} in_buf_y;
layout (binding = 1) readonly buffer InBufU {
uvec2 data[];
} in_buf_u;
layout (binding = 2) readonly buffer InBufV {
uvec2 data[];
} in_buf_v;
layout (binding = 3) re... | Slash | 4 | zongwave/libxcam | shaders/glsl/shader_lap_trans_pyr_yuv420.comp.sl | [
"Apache-2.0"
] |
--TEST--
Bug #81342: New ampersand token parsing depends on new line after it
--FILE--
<?php
$tokens = PhpToken::tokenize('<?php $x & $x; $x &
$baz;
');
foreach ($tokens as $token) {
echo $token->getTokenName(), "\n";
}
?>
--EXPECT--
T_OPEN_TAG
T_VARIABLE
T_WHITESPACE
T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG
T_W... | PHP | 3 | NathanFreeman/php-src | ext/tokenizer/tests/bug81342.phpt | [
"PHP-3.01"
] |
# Check whitespace skipping "$\n" handling.
#
# RUN: %{llbuild} ninja lex %s 2> %t.err
# RUN: %{FileCheck} < %t.err %s
# Ninja does *not* recognize '$\n' on a leading line.
# CHECK: (Token "Unknown" String:"$" Length:1 Line:[[@LINE+1]] Column:0)
$
# Check '$\n' in other contexts.
#
# CHECK: (Token "Identifier" String... | Ninja | 4 | trombonehero/swift-llbuild | tests/Ninja/Lexer/whitespace-skipping.ninja | [
"Apache-2.0"
] |
[Files]
Source: "RevitPythonShell\bin\Release\2021\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2021\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2021\RpsRuntime.dll"; DestDir: "{app}"; Flags: rep... | Inno Setup | 3 | PavelAltynnikov/revitpythonshell | Setup_RevitPythonShell_2021.iss | [
"MIT"
] |
{-# LANGUAGE CPP, RankNTypes, UndecidableInstances, GADTs, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Browser
(
-- * Hierarchy
--
-- $hierarchy
-- * Widget Funct... | C2hs Haskell | 4 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/Browser.chs | [
"MIT"
] |
module Lang
pub type event[#c] { callbacks : array[fn(#c) -> unit] }
impl event[#c] {
fn bind (f : fn(#c) -> unit) {
self.(callbacks).push(f)
}
fn fire (a : #c) {
self.(callbacks).each(fn (f) {
f(a)
})
}
// operator versions of the above
fn lbind (f : fn(#c) -> unit) { self.bind(f) }
fn... | Opal | 3 | iitalics/Opal | opal_libs/Lang/event.opal | [
"MIT"
] |
# Copyright 2020 The Go Cloud Development Kit 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 applicable law... | HCL | 4 | saeidakbari/go-cloud | mysql/main.tf | [
"Apache-2.0"
] |
function g() { return "{" f() "}" }
function f() { return $1 }
{ print "<" g() ">" }
| Standard ML | 1 | Crestwave/goawk | testdata/t.fun | [
"MIT"
] |
a { color: #1234 } | CSS | 1 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/5yer6GUWydidDHrfgacUkA/input.css | [
"Apache-2.0",
"MIT"
] |
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "cement";
version = "3.0.6";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "fccec41eab3f15a03445b1ce24c8a7e106d4d5520f6507a7145698ce68923d31";
};
# ... | Nix | 4 | siddhantk232/nixpkgs | pkgs/development/python-modules/cement/default.nix | [
"MIT"
] |
use Getopt::Std ;
use File::Glob;
$days_before = 7;
if ( ! getopts('nvd:') || @ARGV != 1 ) {
die ( "Usage: $0 [-nv] [-d days] database\n" ) ;
}
use Datascope ;
$days_before =abs($opt_d) if ($opt_d);
$dbname = shift;
@db= dbopen($dbname,"r");
@dbt= dblookup(@db,"","wfdisc","","");
$tablepath= dbquery(@d... | XProc | 3 | jreyes1108/antelope_contrib | bin/db/cleanup_dbdir/cleanup_dbdir.xpl | [
"BSD-2-Clause",
"MIT"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/lite/delegates/hexagon/builders/tests/rsqrt_test.cc | [
"Apache-2.0"
] |
#tag Module
Protected Module WebCamWFS
#tag Method, Flags = &h21
Private Function capCreateCaptureWindow(lpszWindowName as string, dwStyle as Integer, x as Integer, y as Integer, nWidth as Integer, nHeight as Integer, hWndParent as Integer, nID as Integer) As integer
#if TargetWin32
Soft Declare Fun... | REALbasic | 4 | bskrtich/WFS | Windows Functionality Suite/Graphics Helpers/Modules/WebCamWFS.rbbas | [
"MIT"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
template <typename T>
job_report_base_t<T>::job_report_base_t() {
}
template <typename T>
job_report_base_t<T>::job_report_base_t(
std::string const &_type,
uuid_u const &_id,
double _duration,
server_id_t const &_server_id)
: ... | C++ | 4 | zadcha/rethinkdb | src/clustering/administration/jobs/report.tcc | [
"Apache-2.0"
] |
table {
width: 100%;
}
.mat-form-field {
font-size: 14px;
width: 100%;
}
td, th {
width: 25%;
}
| CSS | 4 | MrADOY/manage-your-account | account-frontend/src/app/components/transactions/transactions.component.css | [
"MIT"
] |
/*
Copyright Disney Enterprises, Inc. 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
and the following modification to it: Section 6 Trademarks.
deleted and replaced with:
6. Trademarks. This License does no... | Slash | 4 | zsnake1209/SeExpr | src/demos/rman2/testse.sl | [
"Apache-2.0"
] |
--TEST--
Test that a mixed return value supports invariance
--FILE--
<?php
class Foo
{
public function method(): mixed {}
}
class Bar extends Foo
{
public function method(): mixed {}
}
?>
--EXPECT--
| PHP | 4 | NathanFreeman/php-src | Zend/tests/type_declarations/mixed/inheritance/mixed_return_inheritance_success1.phpt | [
"PHP-3.01"
] |
#!/usr/bin/env bash
# Any PyObject exposed via the public API is problematic since it must
# be made per-interpreter. This involves the following:
#
# singletons:
# - None
# - True
# - False
# - NotImplemented
# - Ellipsis
# PyTypeObject:
# - PyExc* [97]
# - static types [81]
#
# In the non-stable API we cou... | Shell | 4 | pxeger/cpython | Tools/c-analyzer/must-resolve.sh | [
"0BSD"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
ClassCount=1
ResourceCount=1
NewFileInclude1=#include "stdafx.h"
Class1=CPortView
LastClass=CPortView
LastTemplate=CFormView
Resource1=IDD_NODEVIEW
[DLG:IDD_NODEVIEW]
Type=1
Class=CPortView
ControlCount=67
Control1=IDC_EDIT11,edit,135063... | Clarion | 1 | CarysT/medusa | Tools/NodeWindowPort/NodeWindowPort.clw | [
"MIT"
] |
func adder(arg) {
other -> arg + other
}
func main() {
// Testing that this produces an `(Int) -> Int` func type.
adder(1)
}
| Harbour | 2 | dirk/hummingbird | spec/e2e_ast/closure/test.hb | [
"BSD-3-Clause"
] |
# Autocompletion for svcat.
#
if [ $commands[svcat] ]; then
source <(svcat completion zsh)
fi
| Shell | 3 | chensanle/ohmyzsh | plugins/svcat/svcat.plugin.zsh | [
"MIT"
] |
/**
整型四则运算
Author: Smallfly
*/
#import <Foundation/Foundation.h>
@interface FourOperation : NSObject
+ (FourOperation *)shared;
/**
整型四则运算
@param expression 运算表达式,注意操作数和运算符之间要有空格
@return 计算结果
*/
- (NSNumber *)caculateExpression:(NSString *)expression;
@end
| C | 4 | shipan3452/algo | object-c/08_stack/stack_practice/FourOperation.h | [
"Apache-2.0"
] |
say "\n\nBefore requires!\n\n"
require "./crystal-scopes"
require "wild_colors"
'int_literal(I64)
_debug-compiler-start-_ = true
say "\nLet's ROCK\n".red
indent-call(x, y, ...z) ->
"{x}, {y}, {z}"
say indent-call("a", "b", 47_i64, 23_i64, 11_i64, 12_i64, indent-call "masta", indent-call("blasta", "blaaasta"))
vx =... | Ox | 3 | ozra/onyx-lang | spec/onyx-alpha-throwups/testtest.ox | [
"Apache-2.0"
] |
(: Use Cases: STRING :)
(: use local functions for traversing :)
declare function local:books($ctx as document-node()) as element()*{
let $book := $ctx//book
return $book
};
declare function local:main($ctx as document-node()) as element()*{
let $books as element()* := local:books($ctx)
return <books... | XQuery | 4 | rsteppac/ipf | commons/xml/src/test/resources/xquery/string-q4.xq | [
"Apache-2.0"
] |
-rans2p_ksp_type preonly -rans2p_pc_type lu -rans2p_pc_factor_mat_solver_package mumps
-ncls_ksp_type preonly -ncls_pc_type lu -ncls_pc_factor_mat_solver_package mumps
-vof_ksp_type preonly -vof_pc_type lu -vof_pc_factor_mat_solver_package mumps
-rdls_ksp_type preonly -rdls_pc_type lu -rdls_pc_factor... | M | 1 | AntoninoScala/air-water-vv | inputTemplates/petsc.options.mumps | [
"MIT"
] |
# Function check
```haskell
module FunctionCheck where
import Syntax (Constant(..))
```
The function check governs the types of functions that our pure type system
permits. This is based on [CCω][ccw] with only three universes:
* `Type` is an impredicative universe at the bottom of the hierarchy
(equivalent to `... | Literate Haskell | 5 | tesaguri/dhall-lang | standard/FunctionCheck.lhs | [
"BSD-3-Clause"
] |
{
"cells": [
{
"cell_type": "markdown",
"source": [
"## Introduction to Probability and Statistics\r\n",
"## Assignment\r\n",
"\r\n",
"In this assignment, we will use the dataset of diabetes patients taken [from here](https://www4.stat.ncsu.edu/~boos/var.select/diabetes.html)."
],
"metada... | Jupyter Notebook | 4 | vahidbaghi/Data-Science-For-Beginners | 1-Introduction/04-stats-and-probability/solution/assignment.ipynb | [
"MIT"
] |
# Missing DOT between triples
PREFIX : <http://example/ns#>
SELECT *
{ :s1 :p1 :o1 :s2 :p2 :o2 . }
| SPARQL | 1 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg/data-r2/syntax-sparql3/syn-bad-03.rq | [
"Apache-2.0"
] |
module audiostreamerscrobbler.maintypes.SongType
struct Song = {
name,
artist,
album,
position,
length
}
augment Song {
function friendlyName = |this| -> "\"" + this: name() + "\" (" + this: artist() + ", \"" + this: album() + "\"), played " + this: position() + " seconds of " + this: length() + " seconds"
} | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/maintypes/Song.golo | [
"MIT"
] |
React = require 'react'
{ComponentRegistry, WorkspaceStore} = require 'nylas-exports'
DeveloperBar = require './developer-bar'
module.exports =
item: null
activate: (@state={}) ->
WorkspaceStore.defineSheet 'Main', {root: true},
popout: ['Center']
ComponentRegistry.register DeveloperBar,
loca... | CoffeeScript | 3 | cnheider/nylas-mail | packages/client-app/internal_packages/worker-ui/lib/main.cjsx | [
"MIT"
] |
signature dhcp_cookie {
ip-proto == udp
payload /^.{236}\x63\x82\x53\x63/
enable "dhcp"
}
| Standard ML | 3 | yaplej/bro | scripts/base/protocols/dhcp/dpd.sig | [
"Apache-2.0"
] |
#include <torch/nn/options/vision.h>
| C++ | 0 | Hacky-DH/pytorch | torch/csrc/api/src/nn/options/vision.cpp | [
"Intel"
] |
.class public op4
.super java/lang/Object
;
; standard initializer (calls java.lang.Object's initializer)
;
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.end method
.method public static main([Ljava/lang/String;)V
.limit locals 1
.limit stack 5
BeginGlobal:
.line 2
getstatic ... | Jasmin | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Jasmin/op4.j | [
"MIT"
] |
$(header)
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
PACKAGE cond_chip_pkg IS
-- ***************************************************
-- HB081107
-- boolean values are "true" and "false"
-- default-value for register instantiation
CONSTANT def_val_inst : boolean := true;
-- read register instantiation
... | VHDL | 4 | ckamtsikis/cmssw | L1TriggerConfig/L1GtConfigProducers/data/VhdlTemplates/Templates/cond2_chip_pkg.vhd | [
"Apache-2.0"
] |
open System
[<EntryPoint>]
let main argv =
let rec recLoop () =
Console.ReadLine() |> Console.WriteLine
recLoop()
recLoop()
0 // return an integer exit code
| F# | 4 | Jonkimi/websocketd | examples/f#/Echo/Program.fs | [
"BSD-2-Clause"
] |
extern crate dep;
fn main() {
unsafe {
let v = dep::my_function();
if cfg!(foo) {
assert_eq!(v, 1);
} else if cfg!(bar) {
assert_eq!(v, 2);
} else {
panic!("unknown");
}
}
}
| Rust | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/link-cfg/with-deps.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
Copyright 2021 The Kubernetes 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 in writing, ... | Go | 4 | 767829413/kubernetes | staging/src/k8s.io/component-base/logs/testinit/testinit.go | [
"Apache-2.0"
] |
arr = [10, 11, 12];
foreach(arr as k=>v){
print k, v;
}
# output: #
d = {
'a': 1,
'b': 2,
'c': 3,
};
foreach(d as k=>v){
print k, v;
}
| COBOL | 3 | cau991/ssdb | deps/cpy/samples/foreach.cpy | [
"BSD-3-Clause"
] |
<template>
<el-tag :effect="theme" class="tag-task-status" :type="type">
{{ status && status.toUpperCase() }}
</el-tag>
</template>
<script>
import { APP_THEME, TASK_STATUS } from '@shared/constants'
import colors from '@shared/colors'
const statusTypeMap = {
[TASK_STATUS.ACTIVE]: 'success',
[TA... | Vue | 4 | 9Fork/Motrix | src/renderer/components/Task/TaskStatus.vue | [
"MIT"
] |
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.journaldev.jpa.data;
import com.journaldev.jpa.data.Employee;
import javax.persistence.Column;
import javax.persistence.Entity;
import java... | AspectJ | 3 | ghiloufibelgacem/jornaldev | PrimeFaces/Primefaces-SpringRoo-Hibernate-Sample/src/main/java/com/journaldev/jpa/data/Employee_Roo_Jpa_Entity.aj | [
"MIT"
] |
'reach 0.1';
export const main = Reach.App(
{}, [Participant("A", {})], (A) => {
A.only(() => {
return 1;
});
}
);
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/Err_Block_NotNull.rsh | [
"Apache-2.0"
] |
USING: project-euler.018 tools.test ;
{ 1074 } [ euler018 ] unit-test
{ 1074 } [ euler018a ] unit-test
| Factor | 1 | alex-ilin/factor | extra/project-euler/018/018-tests.factor | [
"BSD-2-Clause"
] |
Gain id1 { gain 2 } [ output ]
AudioBufferSource id2 { url https://raw.githubusercontent.com/borismus/webaudioapi.com/master/content/posts/audio-tag/chrono.mp3
, loop true} [ id1 ]
End | Augeas | 2 | newlandsvalley/purescript-audiograph | audiograph-editor/dist/augsamples/bufferSource.aug | [
"MIT"
] |
using Fuse.Text.Bidirectional;
using Uno.Collections;
using Uno;
namespace Fuse.Text.Edit
{
public enum CaretIndex {}
struct Caret
{
public readonly int Cluster;
public readonly int LineIndex;
public readonly int RunIndex;
public readonly float2 VisualPos;
public Caret(int cluster, int lineIndex, int ru... | Uno | 4 | helilabs/fuselibs | Source/Fuse.Text/Edit.uno | [
"MIT"
] |
# Copyright (C) 2021 Square, 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | TOML | 2 | httpsgithu/retrofit | gradle/libs.versions.toml | [
"Apache-2.0"
] |
-- This code is made available 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
... | PigLatin | 4 | adineskumar/alanfgates-programmingpig | examples/ch5/batting_production.pig | [
"Apache-2.0"
] |
// check-pass
// revisions: public private
// [private]compile-flags: --document-private-items
// make sure to update `rustdoc/intra-doc/private.rs` if you update this file
/// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
//~^ WARNING public documentation for `DocMe` links to private item `DontDocMe`
//~| WARNING p... | Rust | 4 | mbc-git/rust | src/test/rustdoc-ui/intra-doc/private.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
2016-03-11 04:49:07 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined #godotengine
2016-03-11 04:49:07 - Topic for #godotengine is "Godot Engine | http://www.godotengine.org | GitHub: https://github.com/okamstudio/godot | Twitter: @godotengine | Want to contribute to Godot? New channel for en... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.#godotengine.weechatlog | [
"MIT"
] |
%
% generative learning in MLNs:
%
% maximise SUM log Pw(Xi=xi|mb(Xi))
%
% or sum N(X) - p(0|mb)n0 - P(1|mb)n1
%
% note that Pw(X|MB) = P(0|MB) || P(1|MB)
%
%
:- module(learn_mlns_generative,
[learn_mln_generative/0,
portray_mln/0]).
:- use_module(library(lists)).
:- use_module(library(tries)).
:- use_module(lib... | Prolog | 4 | ryandesign/yap | packages/CLPBN/learning/learn_mln_wgts.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
#!/bin/bash
# for version in v1.9.1 v1.10.0 v1.10.3 v1.10.12 v1.11.2 v1.11.3 v1.12.0 v1.13.1 v1.14.0 v1.14.1 ; do
for version in v1.10.12 v1.14.1 v1.15.2 ; do
echo "### $version" > $version.txt
git checkout -- go.mod && git checkout $version && go test -run=NONE -bench=Benchmark2 >> $version.txt || exit 1
done... | Shell | 3 | yankay/autoscaler | vertical-pod-autoscaler/e2e/vendor/github.com/karrick/godirwalk/bench.sh | [
"Apache-2.0"
] |
#!/usr/bin/env io
weakLink := WeakLink clone setLink(Object clone)
writeln("WeakLink to ", weakLink link asSimpleString)
writeln("Collecting")
Collector collect
if(weakLink link == nil,
writeln("Success: Object gone")
,
writeln("Error: Object not gone")
)
| Io | 3 | akluth/io | samples/misc/WeakLink.io | [
"BSD-3-Clause"
] |
// The Great Computer Language Shootout
// http://shootout.alioth.debian.org/
//
// contributed by Marcus Comstedt
int k = 0;
array(int) z = ({ 1, 0, 0, 1 });
array(int) compose(array(int) a, array(int) b)
{
return ({ a[0]*b[0], a[0]*b[1]+a[1]*b[3],
a[2]*b[0]+a[3]*b[2], a[2]*b[1]+a[3]*b[3] });
}
int extract(a... | Pike | 4 | kragen/shootout | bench/pidigits/pidigits.pike | [
"BSD-3-Clause"
] |
/* ROM version variables for esp32s3
*
* These addresses should be compatible with any ROM version for this chip.
*
* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT.
*/
_rom_chip_id = 0x40000570;
_rom_eco_version = 0x40000574;
| Linker Script | 1 | lovyan03/esp-idf | components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld | [
"Apache-2.0"
] |
// This proto describes the format of the output profile file from
// the TF-stats tool.
syntax = "proto3";
package tensorflow.profiler;
// A database of TfStatsTables.
message TfStatsDatabase {
// The table that includes IDLE time.
TfStatsTable with_idle = 4;
// The table that excludes IDLE time.
TfStatsTabl... | Protocol Buffer | 4 | EricRemmerswaal/tensorflow | tensorflow/core/profiler/protobuf/tf_stats.proto | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# Copyright 2016 The Kubernetes 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 applicab... | Shell | 4 | jiaqiluo/kubernetes | hack/update-bazel.sh | [
"Apache-2.0"
] |
// Daniel Shiffman
// https://thecodingtrain.com/CodingChallenges/147-chrome-dinosaur.html
// https://youtu.be/l0HoJHc-63Q
// Google Chrome Dinosaur Game (Unicorn, run!)
// https://editor.p5js.org/codingtrain/sketches/v3thq2uhk
class Unicorn {
int r;
float x, y, vy, gravity;
Unicorn() {
this.r = 100;
th... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_147_Chrome_Dinosaur_Game/Processing/CC_147_Chrome_Dinosaur_Game/unicorn.pde | [
"MIT"
] |
new class MergeInsertionSort {
new classmethod blockSwap(array, a, b, s) {
for ; s > 0; a--, b-- {
s--;
array[a].swap(array[b]);
}
}
new classmethod blockInsert(array, a, b, s) {
while a - s >= b {
this.blockSwap(array, a - s, a, s);
a... | Opal | 3 | thatsOven/sorting-visualizer | sorts/MergeInsertionSort.opal | [
"MIT"
] |
DROP TABLE "public"."table46";
| SQL | 0 | devrsi0n/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172670588_create_table_public_table46/down.sql | [
"Apache-2.0",
"MIT"
] |
--
-- Insert
--
insert into car_maker(id,name) values (:id,:name);
| SQL | 2 | DBatOWL/tutorials | persistence-modules/spring-boot-persistence-2/src/main/resources/com/baeldung/boot/jdbi/dao/CarMakerDao/insert.sql | [
"MIT"
] |
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: $0 [branch name]"
exit 1
fi
set -e
set -x
# Initialize local Maven repository
./tests/ci_build/initialize_maven.sh
rm -rf build/
cd jvm-packages
branch_name=$1
# Install JVM packages in local Maven repository
mvn --no-transfer-progress install -DskipTests
# Build... | Shell | 3 | puneetjain-iclp/xgboost | tests/ci_build/build_jvm_doc.sh | [
"Apache-2.0"
] |
"""Diagnostics support for the Mazda integration."""
from __future__ import annotations
from typing import Any
from homeassistant.components.diagnostics.util import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
from homeassistant.core ... | Python | 4 | MrDelik/core | homeassistant/components/mazda/diagnostics.py | [
"Apache-2.0"
] |
*-------------------------------------------------------------------------------
* F-gases
* - LLF
* - SLF
*-------------------------------------------------------------------------------
$ifthen %phase%=='conf'
* Define the fgases baseline data source
$setglobal fgasesbaseline ssp2
$if %baseline%=='ssp1' $set... | GAMS | 3 | witch-team/witchmodel | modules/mod_fgases.gms | [
"Apache-2.0"
] |
.Updaters {
margin: 0 0 0.5rem;
}
.NoUpdaters,
.Updater,
.UnmountedUpdater {
display: block;
width: 100%;
text-align: left;
background: none;
border: none;
padding: 0.25rem 0.5rem;
color: var(--color-text);
}
.Updater:focus,
.Updater:hover {
outline: none;
background-color: var(--color-background-h... | CSS | 4 | GBKstc/react-analysis | packages/react-devtools-shared/src/devtools/views/Profiler/Updaters.css | [
"MIT"
] |
(module
(memory $0 1)
(data (i32.const 1036) ",")
(data (i32.const 1048) "\01\00\00\00\0e\00\00\00b\00o\00o\00l\00.\00t\00s")
(export "memory" (memory $0))
)
| WebAssembly | 3 | romdotdog/assemblyscript | tests/compiler/bool.optimized.wat | [
"Apache-2.0"
] |
data {
// numbers of things
int<lower=1> R;
int<lower=1> I;
int<lower=1> S;
// data
int<lower=1,upper=I> item[R];
int<lower=1,upper=S> subject[R];
int<lower=0,upper=1> grade[R];
}
parameters {
// parameters
vector[S] ability;
vector[I] difficulty;
// hyperparameters
real mu_difficulty;
real<... | Stan | 4 | simeond/stancon_talks | 2017/Contributed-Talks/06_groves/binary_irt.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 5 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/refactoring/CeylonRenameInputValidator.ceylon | [
"Apache-2.0"
] |
{{ This is a very tiny, dumb and experimental version, so don't expect too much of it.
The POPaccount procedure connects to the given POP3 server and reads the number of available msgs, the size of
the account and displays the sender and subject information one-by-one on TV screen.
The circuit is built... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/Tiny pop3 client/eth_top_tv_popmail_client.spin | [
"MIT"
] |
print(2 - 1)
print(1 + 1)
print(6 / 2)
print(2 * 2)
print(15 % 10)
print(3 ^ 4)
print(4 ^ 0.5)
| Grace | 1 | Dmitri-2/GraceWebsite | js-simple/tests/retired/t003_arithmetic_test.grace | [
"MIT",
"BSD-3-Clause"
] |
<mt:Ignore>
# =======================
#
# 記事ループ-リストグループ
#
# 使い方:
# <mt:Include module="記事ループ-リストグループ" date="0" flush="0" />
#
# モディファイアの基本値:
# date = 1
# flush = 1
#
# =======================
</mt:Ignore>
<mt:Unless name="date" eq="0">
<mt:SetVar name="date" value="1" />
</mt:Unless>
<mt:Unless name="flus... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/loop_list_group.mtml | [
"MIT"
] |
Mozilla/5.0 (Linux; Android 4.2.2; en-gb; SAMSUNG SM-C105K/KKUANF2 Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Version/1.0 Chrome/18.0.1025.308 Mobile Safari/535.19
Mozilla/5.0 (Linux; Android 4.4.3; SM-C105K Build/LRX21Y) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Mobile Safari/537.36
| Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/samsung-sm-c105k.txt | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.