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 |
|---|---|---|---|---|---|
/- This test assumes the total order on terms used by simp compares local constants
using the order they appear in the local context. -/
example (m : ℕ) : ∀ n k, m + n = k → n + m = k := by intros; simp; assumption
example (m : ℕ) : ∀ n k, m + n = k → n + m = k := by intros; simp; assumption
example (m : ℕ) : ∀ n k,... | Lean | 4 | solson/lean | tests/lean/run/1685.lean | [
"Apache-2.0"
] |
<%@ WebHandler Language="C#" Class="Handler2" %>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Web;
public class Handler2 : IHttpHandler {
public void ProcessRequest (HttpContext context) {
//string x = "-an";
string x = context.Request["x"];
Process prc=new Process();
prc.Sta... | ASP | 3 | laotun-s/webshell | aspx/as.ashx | [
"MIT"
] |
implementation module Util.SimpleTCPServer
import StdEnv
import Data.Maybe
import System._Posix
import TCPIP
instance zero (Logger a b s t) where zero = \_ _ w -> (undef, w)
serve :: !(Server req res .st logst sentinfo) .st !*World -> *World | fromString req & toString res
serve server st w
# (ok, mbListener, w) = o... | Clean | 5 | clean-cloogle/Cloogle | backend/Util/SimpleTCPServer.icl | [
"MIT"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
A.only(() => {
assert(sqrt(9, 5) == 3, "sqrt 9 = 3");
assert(sqrt(10, 5) == 3, "sqrt 10 = 3");
assert(sqrt(1024, 5) == 32, "sqrt 1024 = 32");
assert(sqrt(336400, 10) == 580, "sqrt 336400... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/y/sqrt.rsh | [
"Apache-2.0"
] |
it("should include test.js in SourceMap for bundle0 chunk", function() {
var fs = require("fs");
var source = fs.readFileSync(__filename + ".map", "utf-8");
var map = JSON.parse(source);
expect(map.sources).toContain("webpack:///./test.js");
});
it("should not produce a SourceMap for vendors chunk", function() {
... | JavaScript | 4 | 1shenxi/webpack | test/configCases/source-map/exclude-chunks-source-map/index.js | [
"MIT"
] |
#lang scribble/manual
@(require
"../defs.rkt"
(for-label (only-meta-in 0 cur/stdlib/bool))
(for-label (only-in (only-meta-in 1 cur/stdlib/bool) bool->meta-bool meta-bool->bool))
(for-label (only-meta-in 0 cur))
(for-label (only-in racket/base boolean? displayln))
scribble/eval)
@(define curnel-eval (curne... | Racket | 5 | bluephoenix47/cic-redex | cur-doc/cur/scribblings/stdlib/bool.scrbl | [
"BSD-2-Clause"
] |
@import "ui-variables";
.open-in-salesforce-btn {
padding: 3px 4px 5px 4px;
box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15), 0 0.5px 0.5px 0.5px rgba(0,0,0,0.07);
border-radius: 3px;
background-color: @background-primary;
background-image: linear-gradient(to top, fadeout(difference(@background-primary, white),... | Less | 3 | cnheider/nylas-mail | packages/client-app/internal_packages/nylas-private-salesforce/stylesheets/open-in-salesforce-btn.less | [
"MIT"
] |
' lookupguifont.bmx
Strict
Import MaxGUI.Drivers
AppTitle = "LookupGuiFont() Example"
Const strSampleText$ = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla eget mauris quis dolor "+..
"ullamcorper dapibus. Duis facilisis ullamcorper metus. Pellentesque eget enim. Vivamus auctor hendrerit turpis. "... | BlitzMax | 5 | jabdoa2/blitzmax | mod/maxgui.mod/maxgui.mod/doc/lookupguifont.bmx | [
"Zlib"
] |
!insertmacro MUI_LANGUAGE "English"
## disable russian for now
#!insertmacro MUI_LANGUAGE "Russian"
# include defined strings
!include "langStrings.nsh" | NSIS | 1 | frank-spec/NiceHashMiner | installer/nsis_template/include_common/langs.nsh | [
"MIT"
] |
fileFormatVersion: 2
guid: 5c751f31fa1d4664a8a162241f8a7812
folderAsset: yes
timeCreated: 1483528414
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 1 | allureyc/xLua | Test/UnitTest/StreamingAssets/ltest.meta | [
"BSD-3-Clause"
] |
_debug_parser_start_=1
type BasicBlock
@in-edges = [] of BasicBlock 'get 'set
@out-edges = [] of BasicBlock 'get 'set
init(@name) ->
to-s(io) ->
io << "BB#"
io << @name
end
type BasicBlockEdge < value
init(cfg, from-name, to-name) ->
@from = cfg.create-node(from-name)
@to =... | Ox | 4 | ozra/onyx-lang | samples/havlak.ox | [
"Apache-2.0"
] |
#!python
# cython: embedsignature=True, binding=True
def simple_func(x, y, z):
return x + y + z
# Cython code directly callable from Python
def fib(n):
if n < 2:
return n
return fib(n-2) + fib(n-1)
# Typed Cython code
def fib_int(int n):
if n < 2:
return n
return fib_int(n-2) +... | Cython | 4 | firebolt55439/ray | doc/examples/cython/cython_examples/cython_simple.pyx | [
"Apache-2.0"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_htmllinks.dpatch by Torsten Marek <shlomme@debian.org>
## DP: Fix the links in the documentation HTML files.
@DPATCH@
diff -urNad python-qt4-4.1~/doc/pyqt4ref.html python-qt4-4.1/doc/pyqt4ref.html
--- python-qt4-4.1~/doc/pyqt4ref.html 2006-11-05 00:51:19.000000000 +0100
+... | Darcs Patch | 3 | JrCs/opendreambox | recipes/python/python-pyqt/02_htmllinks.dpatch | [
"MIT"
] |
package test;
class JExtendsKFooZ extends KFooZ {
} | Java | 2 | AndrewReitz/kotlin | compiler/testData/compileJavaAgainstKotlin/method/primitiveOverrideWithInlineClass/InlineIntOverridesObject.java | [
"ECL-2.0",
"Apache-2.0"
] |
func $foo ( var %i i32 ) i32
func $fact ( var %n i32) i32
func $fact ( var %n i32) i32
func $foo ( var %i i32 ) i32
func $fact (
var %n i32) i32 {
if (ne i32 i32 (dread i32 %n, constval i32 1)) {
call &foo(
sub i32 (dread i32 %n, constval i32 1))
return (regread i32 %%retval)}
else {
return... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0026-mapleall-irbuild-edge-externfunc/Main.mpl | [
"MulanPSL-1.0"
] |
desc: Test that return_changes fails gracefully.
table_variable_name: tbl
tests:
- py: tbl.insert([{'result':i} for i in range(1,100)]).pluck('first_error', 'inserted')
ot: {'inserted':99}
- py: tbl.update({'foo':'bar'}, return_changes=True)['changes'].count()
runopts:
array_limit: 40
ot: 40
... | YAML | 3 | zadcha/rethinkdb | test/rql_test/src/regression/2838.py.yaml | [
"Apache-2.0"
] |
v1t = Time.Span(0)
v2t = Time.Span(0)
10000.times ~>
t = Time.now
x = 0
(0...9999999999999).each-with-index (i) ~>
x += i * 2
v1t += Time.now - t
t = Time.now
z = 0
(0...9999999999999).each (i) ~>
z += i * 2
v2t += Time.now - t
end
say "each_with_index: {v1t}"
say "each: {v2t}... | Ox | 2 | ozra/onyx-lang | spec/onyx-alpha-throwups/soft-lambda-excess-args-timings.ox | [
"Apache-2.0"
] |
{:queries
{:last_name {:type String
:resolve :queries/fred}}
:objects
{:Barney
{:fields
{:last_name {:type String
:resolve :Barney/last-name}}}}
:roots {:query :Barney}}
| edn | 3 | hagenek/lacinia | dev-resources/root-object-with-conflicts-schema.edn | [
"Apache-2.0"
] |
import * as React from 'react';
import TabsUnstyled from '@mui/base/TabsUnstyled';
import TabsListUnstyled from '@mui/base/TabsListUnstyled';
import TabPanelUnstyled from '@mui/base/TabPanelUnstyled';
import TabUnstyled from '@mui/base/TabUnstyled';
export default function UnstyledTabsBasic() {
return (
<TabsUns... | TypeScript | 4 | aaronadamsCA/material-ui | docs/data/material/components/tabs/UnstyledTabsBasic.tsx | [
"MIT"
] |
// check-fail
struct Foo {}
impl Foo {
fn bar(foo: Foo<Target = usize>) {}
//~^ associated type bindings are not allowed here
}
fn main() {}
| Rust | 4 | mbc-git/rust | src/test/ui/lifetimes/issue-83753-invalid-associated-type-supertrait-hrtb.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
say"program QR(output);begin write('s//chr 34/e x s//rxFDrkcI8/ x s//chr 47/e x s//.XFeJJmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9Zl3QiL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQFL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL2JmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9Zl2dIr9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL9ZmtQiL2JmtQiL9ZmtQiL9ZmtQF8PZmtQiL9W7GbIfBqlNckvCW... | Parrot Assembly | 0 | SilasX/quine-relay | intermediate/QR.pasm | [
"MIT",
"Unlicense"
] |
' Module monkey.set
'
' Placed into the public domain 24/02/2011.
' No warranty implied; use at your own risk.
Private
Import map
Public
Class Set<T>
Method New( map:Map<T,Object> )
Self.map=map
End
Method Clear()
map.Clear
End
Method Count()
Return map.Count()
End
Method IsEmpty?()
Return ma... | Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/monkey/set.monkey | [
"Zlib"
] |
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="Build">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCP... | Oxygene | 3 | nchevsky/remobjects-sugar | Sugar.Data/Sugar.Data.Echoes.WinRT.BuildServer.oxygene | [
"BSD-3-Clause"
] |
export default "xy";
| JavaScript | 0 | 1shenxi/webpack | test/statsCases/split-chunks/node_modules/xy.js | [
"MIT"
] |
<h1>Index Body</h1>
<h3>Message: {{Message}} </h3> | HTML | 2 | mkosakana/iris | _examples/view/layout/handlebars/views/index.html | [
"BSD-3-Clause"
] |
import QtQuick 2.11
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.11
import QtCharts 2.3
import QGroundControl 1.0
import QGroundControl.Palette 1.0
import QGroundControl.Controls 1.0
import QGroundControl.Controllers 1... | QML | 4 | uav-operation-system/qgroundcontrol | src/QmlControls/MAVLinkChart.qml | [
"Apache-2.0"
] |
<template>
<v-container class="fill-height">
<v-row
align="center"
justify="center"
>
<v-color-picker
v-bind="$attrs"
v-on="$listeners"
></v-color-picker>
</v-row>
</v-container>
</template>
<script>
export default {
name: 'Usage',
inheritAttrs: false,... | Vue | 4 | mattgrande/vuetify | packages/docs/src/examples/v-color-picker/usage.vue | [
"MIT"
] |
module Language.PureScript.CST.Errors
( ParserErrorInfo(..)
, ParserErrorType(..)
, ParserWarningType(..)
, ParserError
, ParserWarning
, prettyPrintError
, prettyPrintErrorMessage
, prettyPrintWarningMessage
) where
import Prelude
import qualified Data.Text as Text
import Data.Char (isSpace, toUppe... | Haskell | 5 | dunhamsteve/purescript | lib/purescript-cst/src/Language/PureScript/CST/Errors.hs | [
"BSD-3-Clause"
] |
--TEST--
strtotime() with relative offsets
--FILE--
<?php
date_default_timezone_set('UTC');
$base_time = 1204200000; // 28 Feb 2008 12:00:00
$offsets = array(
// offset around a day
'80412 seconds',
'86399 seconds',
'86400 seconds',
'86401 seconds',
'112913 seconds',
// offset around 7 d... | PHP | 4 | thiagooak/php-src | ext/date/tests/strtotime-relative.phpt | [
"PHP-3.01"
] |
--TEST--
Bug #74547 mysqli::change_user() doesn't accept null as $database argument w/strict_types
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
declare(strict_types=1);
require_once("connect.inc");
if (!$link = my_mysqli_connect($host, $user, $passwd... | PHP | 4 | NathanFreeman/php-src | ext/mysqli/tests/bug74547.phpt | [
"PHP-3.01"
] |
<%: func UserListToWriter(userList []string, w io.Writer) (int, error)%>
<%~ "index.html" %>
<%@ body { %>
<% for _, user := range userList { %>
<ul>
<%+ "user.html" %>
</ul>
<% } %>
<% } %>
| HTML | 3 | tamsanh/examples | http_responsewriter/herotemplate/template/userlistwriter.html | [
"MIT"
] |
<%--
Copyright 2012 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | Groovy Server Pages | 3 | michaelneale/asgard | grails-app/views/image/analyze.gsp | [
"Apache-2.0"
] |
(ns promitto.lib.deferred
(:require
[promitto.lib.utils :refer [fn? ->arr promise? next-tick chain]]
[promitto.lib.types :refer [states new-state new-pool new-buf]]
[promitto.lib.promise :refer [promise]]))
(defn ^:private pusher
[pool]
(fn [type fn]
(cond (fn? fn)
(.push (aget pool type) f... | wisp | 5 | h2non/promitto | src/deferred.wisp | [
"MIT"
] |
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifdef KERNEL_STATIC
#include "inc_vendor.h"
#include "inc_types.h"
#include "inc_platform.cl"
#include "inc_common.cl"
#endif
DECLSPEC void gpu_decompress_entry (GLOBAL_AS pw_idx_t *pws_idx, GLOBAL_AS u32 *pws_comp, pw_t *buf, const u64 gid)
{
cons... | OpenCL | 4 | Masha/hashcat | OpenCL/shared.cl | [
"MIT"
] |
BITS 32
andpd xmm0, xmm1
hlt
| Assembly | 1 | brenden7158/v86 | tests/expect/tests/task_switch_test_sse.asm | [
"BSD-2-Clause"
] |
--TEST--
mb_check_encoding()
--EXTENSIONS--
mbstring
--FILE--
<?php
ini_set('default_charset', 'UTF-8');
// Valid
$str = "Japanese UTF-8 text. 日本語のUTF-8テキスト";
$arr = [1234, 12.34, TRUE, FALSE, NULL, $str, 'key'=>$str, $str=>'val'];
var_dump(mb_check_encoding($str), mb_check_encoding($arr));
// Invalid
$str = "Japanese... | PHP | 4 | NathanFreeman/php-src | ext/mbstring/tests/mb_check_encoding.phpt | [
"PHP-3.01"
] |
{
"cells": [
{
"cell_type": "markdown",
"source": [
"# Time series forecasting with ARIMA\n",
"\n",
"In this notebook, we demonstrate how to:\n",
"- prepare time series data for training an ARIMA time series forecasting model\n",
"- implement a simple ARIMA model to forecast the next HORIZO... | Jupyter Notebook | 5 | subramanir2143/ML-For-Beginners | 7-TimeSeries/2-ARIMA/solution/notebook.ipynb | [
"MIT"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
A.only(() => {
const day = 'TUESDAY';
const template = `I will gladly pay you ${DAY} for a hamburger today`;
});
exit();
}
);
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/template_literals.rsh | [
"Apache-2.0"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2021 Intel Corporation
#ifdef HAVE_ONEVPL
#include "streaming/onevpl/accelerators/dx11_alloc_resource.hpp... | C++ | 5 | nowireless/opencv | modules/gapi/src/streaming/onevpl/accelerators/dx11_alloc_resource.cpp | [
"Apache-2.0"
] |
intersection()
{
linear_extrude(height = 100, center = true, convexity= 3)
import(file = "example013.dxf");
rotate([0, 90, 0])
linear_extrude(height = 100, center = true, convexity= 3)
import(file = "example013.dxf");
rotate([90, 0, 0])
linear_extrude(height = 100, center = true, convexity= 3)
import(file =... | OpenSCAD | 3 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/examples/example013.scad | [
"MIT"
] |
package org.xtendroid.utils
import android.app.ProgressDialog
import android.os.AsyncTask
import android.os.Build
import org.eclipse.xtext.xbase.lib.Functions.Function2
class AsyncBuilder<Result> extends AsyncTask<Object, Object, Result> {
var protected ProgressDialog progressDialog
var protected (AsyncBuilder,... | Xtend | 4 | kusl/Xtendroid | Xtendroid/src/org/xtendroid/utils/AsyncBuilder.xtend | [
"MIT"
] |
{% assign sitenav__list = site.data.sitenav %}
<ul>
{% for sitenav__item in sitenav__list %}
<li {% if sitenav__item.url == "/" %}class="index"{% endif %}>
<a href="{{ site.baseurl }}{{ sitenav__item.page.url | replace:'index.html','' }}">{{ sitenav__item.page.title }}</a>
</li>
{% endfor %}
<li><a ... | Liquid | 3 | enterstudio/spfjs | web/includes/nav.liquid | [
"MIT"
] |
namespace Company.WebApplication1
#nowarn "20"
open System
open System.Collections.Generic
open System.IO
open System.Linq
open System.Threading.Tasks
open Microsoft.AspNetCore
open Microsoft.AspNetCore.Builder
open Microsoft.AspNetCore.Hosting
#if !NoHttps
open Microsoft.AspNetCore.HttpsPolicy
#endif
open Microsoft.... | F# | 4 | tomaswesterlund/aspnetcore | src/ProjectTemplates/Web.ProjectTemplates/content/StarterWeb-FSharp/Program.fs | [
"MIT"
] |
== Spring Cloud Alibaba Cloud OSS
OSS(Object Storage Service)is a storage product on Alibaba Cloud. Spring Cloud Alibaba Cloud OSS provides the commercialized storage service in conformity with Spring Cloud specifications. We provide easy-to-use APIs and supports the integration of Resource in the Spring framework.
=... | AsciiDoc | 4 | chenjj950307/spring-cloud-aibaba | spring-cloud-alibaba-docs/src/main/asciidoc/oss.adoc | [
"Apache-2.0"
] |
export { default } from './List';
export * from './List';
export { default as listClasses } from './listClasses';
export * from './listClasses';
| TypeScript | 3 | good-gym/material-ui | packages/material-ui/src/List/index.d.ts | [
"MIT"
] |
size: 1024px 512px;
dpi: 96;
bars {
limit-x: 0 13;
scale-y-padding: 5;
data-x: csv("test/testdata/city_temperatures.csv" month);
data-y: csv("test/testdata/city_temperatures.csv" temp_moscow);
width: 2em;
color: #666;
}
| CLIPS | 3 | asmuth-archive/travistest | test/plot-bars/bars_negative_values.clp | [
"Apache-2.0"
] |
module.exports = function(name) {
var a = load(require, name);
var r = require;
var b = r(name);
if(a !== b) return "FAIL";
return a;
}
function load(requireFunction, name) {
return requireFunction(name);
} | JavaScript | 3 | 1shenxi/webpack | test/cases/parsing/context/templates/templateLoaderIndirect.js | [
"MIT"
] |
type MyResultPriv<T> = Result<T, u16>;
pub type MyResultPub<T> = Result<T, u64>;
// @has private_type_alias/fn.get_result_priv.html '//pre' 'Result<u8, u16>'
pub fn get_result_priv() -> MyResultPriv<u8> {
panic!();
}
// @has private_type_alias/fn.get_result_pub.html '//pre' 'MyResultPub<u32>'
pub fn get_result_pu... | Rust | 4 | Eric-Arellano/rust | src/test/rustdoc/private-type-alias.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
;;
;
; Name: stager_sock_reverse_icmp
; Qualities: Can Have Nulls
; Platforms: Linux
; Authors: skape <mmiller [at] hick.org>
; vlad902 <vlad902 [at] gmail.com>
; Version: $Revision: 1417 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is ... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/linux/ia32/stager_sock_reverse_icmp.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
Instr("cs.fm.BasicFM", {
arg freq = 440,
amp = 0.9,
gate = 0,
carrierFreqRatio = 1.0,
modulatorFreqRatio = 1.0,
// not sure if having these defaults here actually does anything.
modEnvShape = Env.adsr(
attackTime: 0.05,
decayTime: 0.1,
sustainLevel: 0.5 * amp,
releaseTi... | SuperCollider | 4 | btashton/pygments | tests/examplefiles/example.scd | [
"BSD-2-Clause"
] |
"""Fixtures for IntelliFire integration tests."""
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, Mock, patch
from aiohttp.client_reqrep import ConnectionKey
import pytest
@pytest.fixture
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
"""Mock setting up a config... | Python | 4 | liangleslie/core | tests/components/intellifire/conftest.py | [
"Apache-2.0"
] |
--TEST--
Bug #81409: Incorrect JIT code for ADD with a reference to array
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1M
opcache.jit=tracing
--FILE--
<?php
function foo(&$a) {
$n = count($a);
$a = $a + [$n=>1];
}
function bar() {
$x = [];
for ($i = 0; $i... | PHP | 4 | NathanFreeman/php-src | ext/opcache/tests/jit/bug81409.phpt | [
"PHP-3.01"
] |
"""Test basic initialization for the Legacy Nest API using mocks for the Nest python library."""
from unittest.mock import MagicMock, PropertyMock, patch
import pytest
from .common import TEST_CONFIG_LEGACY
DOMAIN = "nest"
@pytest.fixture
def nest_test_config():
"""Fixture to specify the overall test fixture ... | Python | 5 | MrDelik/core | tests/components/nest/test_init_legacy.py | [
"Apache-2.0"
] |
## Licensed to Cloudera, Inc. under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. Cloudera, Inc. licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this f... | Mako | 3 | yetsun/hue | apps/jobbrowser/src/jobbrowser/templates/tasktrackers.mako | [
"Apache-2.0"
] |
Class {
#name : #GtNotificationDismissedStatus,
#superclass : #GtNotificationStatus,
#category : 'GToolkit-World-Notifications'
}
{ #category : #accessing }
GtNotificationDismissedStatus class >> registryValue [
^ 'dismissed'
]
{ #category : #testing }
GtNotificationDismissedStatus >> isDismissed [
^ true
]
| Smalltalk | 4 | feenkcom/gtoolk | src/GToolkit-World/GtNotificationDismissedStatus.class.st | [
"MIT"
] |
// check-pass
#![feature(generic_associated_types)]
use std::marker::PhantomData;
trait Family: Sized {
type Item<'a>;
fn apply_all<F>(&self, f: F)
where
F: FamilyItemFn<Self> { }
}
struct Array<T>(PhantomData<T>);
impl<T: 'static> Family for Array<T> {
type Item<'a> = &'a T;
}
trait Fami... | Rust | 4 | ohno418/rust | src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-90612.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# $Id: presol.zpl,v 1.7 2010/06/10 19:42:40 bzfkocht Exp $
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#* *
#* File....: presol.zpl *
#* Name....: Presolve ... | Zimpl | 3 | npwebste/UPS_Controller | lib/scipoptsuite-5.0.1/zimpl/check/presol.zpl | [
"AFL-1.1"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.http {
HttpServerRequest
}
import org.vertx.java.core.buffer {
Buffer
}
shared class Server() extends Verticle() {
shared actual void start(Vertx vertx, Container container) {
... | Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/proxyserver/Server.ceylon | [
"Apache-2.0"
] |
module util/seqrel[elem]
/*
* A sequence utility for modeling sequences as just a
* relation as opposed to reifying them into sequence
* atoms like the util/sequence module does.
*
* @author Greg Dennis
*/
open util/integer
open util/ordering[SeqIdx] as ord
sig SeqIdx {}
/** sequence covers a prefix of SeqIdx... | Alloy | 4 | haslab/Electrum | electrum/src/main/resources/models/util/seqrel.als | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
# Da... | Module Management System | 3 | addstone/unrealengine3 | Development/External/wxWindows_2.4.0/src/common/descrip.mms | [
"FSFAP"
] |
#Signature file v4.1
#Version 1.50
CLSS public abstract java.awt.Component
cons protected init()
fld protected javax.accessibility.AccessibleContext accessibleContext
fld public final static float BOTTOM_ALIGNMENT = 1.0
fld public final static float CENTER_ALIGNMENT = 0.5
fld public final static float LEFT_ALIGNMENT =... | Standard ML | 4 | timfel/netbeans | ide/mylyn.util/nbproject/org-netbeans-modules-mylyn-util.sig | [
"Apache-2.0"
] |
class freight_station_t
{
factory = null // factory_x
road_depot = null // tile_x
road_unload = null // tile_x
ship_depot = null // tile_x
constructor(f)
{
factory = f
}
function _save()
{
return ::saveinstance("freight_station_t", this)
}
}
class freight_station_manager_t extends node_t
{
freigh... | Squirrel | 4 | Andarix/simutrans_nightly | simutrans/ai/sqai/station_manager.nut | [
"Artistic-1.0"
] |
# Swagger Petstore
#
# This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
#
# OpenAPI spec version... | R | 4 | derBiggi/swagger-codegen | samples/client/petstore/R/R/UserApi.r | [
"Apache-2.0"
] |
#![allow(unused_variables)]
#![allow(non_camel_case_types)]
#![deny(dead_code)]
struct Foo {
x: usize,
b: bool, //~ ERROR: field is never read
}
fn field_read(f: Foo) -> usize {
f.x.pow(2)
}
enum XYZ {
X, //~ ERROR variant is never constructed
Y { //~ ERROR variant is never constructed
a:... | Rust | 4 | Eric-Arellano/rust | src/test/ui/lint/dead-code/lint-dead-code-4.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
* Copyright (c) 2004, Technische Universitat Berlin
* 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... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/chips/tda5250/HplTda5250DataP.nc | [
"BSD-3-Clause"
] |
;;; editor/format/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil)
;;;###autoload (autoload '+format:region "editor/format/autoload/evil" nil t)
(evil-define-operator +format:region (beg end)
"Evil ex interface to `+format/region'."
(interactive "<r>")
(+format/region beg end))
| Emacs Lisp | 4 | leezu/doom-emacs | modules/editor/format/autoload/evil.el | [
"MIT"
] |
namespace OpenAPI.Model
open System
open System.Collections.Generic
open Newtonsoft.Json
module ApiResponse =
//#region ApiResponse
[<CLIMutable>]
type ApiResponse = {
[<JsonProperty(PropertyName = "code")>]
Code : int;
[<JsonProperty(PropertyName = "type")>]
Type : string;
[<JsonProperty... | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-functions/OpenAPI/src/model/ApiResponse.fs | [
"Apache-2.0"
] |
GET /foo HTTP/1.1\r\n
ba\0z: bar\r\n
\r\n | HTTP | 0 | ashishmjn/gunicorn | tests/requests/invalid/005.http | [
"MIT"
] |
x : -3.0 > 4.0 | Objective-J | 0 | justinmann/sj | tests/comparison12.sj | [
"Apache-2.0"
] |
module Drv {
type DataBuffer
@ Data Buffer Port
port DataBuffer(
ref buff: Drv.DataBuffer @< A data buffer
)
}
| FORTRAN | 3 | AlperenCetin0/fprime | Drv/DataTypes/DataTypes.fpp | [
"Apache-2.0"
] |
#
mes 2,EM_WSIZE,EM_PSIZE
exp $top_size
#ifdef __sparc
inp $top_size2
pro $top_size, 0
mes 11
zer EM_PSIZE
lal 0
loi EM_PSIZE
cal $top_size2
asp 2*EM_PSIZE
lfr EM_WSIZE
ret EM_WSIZE
end 0
pro $top_size2, 3*EM_WSIZE+3*EM_PSIZE
#else
pro $top_size, 3*EM_WSIZE+3*EM_PSIZE
#endif
mes 11
lal 0
loi EM_PSIZE ... | Eiffel | 2 | wyan/ack | lang/occam/lib/par_misc.e | [
"BSD-3-Clause"
] |
module FlashShellP {
uses {
interface Boot;
interface Leds;
interface ShellCommand;
interface BlockRead;
interface BlockWrite;
}
} implementation {
event void Boot.booted() {
if (call BlockWrite.erase() != SUCCESS)
call Leds.led1Toggle();
}
event void BlockRead.readDone(storag... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/lib/net/blip/shell/FlashShellP.nc | [
"BSD-3-Clause"
] |
FROM openjdk:8-jdk-alpine
COPY target/shipping-service-async-0.0.1-SNAPSHOT.jar app.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=docker","/app.jar"] | Dockerfile | 3 | DBatOWL/tutorials | reactive-systems/shipping-service/Dockerfile | [
"MIT"
] |
-- simple.adb: simple example of array declarations and access
procedure Simple is
-- Array type declarations:
-- * index range can be any discrete type
-- * lower and upper bound can be arbitrary
-- * components can have any type
type AT1 is array (1..50) of Integer;
type AT2 is array (4..457) of Integer;
... | Ada | 4 | nodew/hlines | test-data/test.ada | [
"BSD-3-Clause"
] |
%name pluralParse
%token_type {int}
%extra_argument {struct parse_state *s}
%right T_QMARK.
%left T_OR.
%left T_AND.
%left T_EQ T_NE.
%left T_LT T_LE T_GT T_GE.
%left T_ADD T_SUB.
%left T_MUL T_DIV T_MOD.
%right T_NOT.
%nonassoc T_COLON T_N T_LPAREN T_RPAREN.
%include {
#include <assert.h>
struct parse_state {
int ... | Yacc | 4 | fanck0605/luci-1 | modules/luci-base/src/plural_formula.y | [
"Apache-2.0"
] |
module Prelude.Char
import Builtins
isUpper : Char -> Bool
isUpper x = x >= 'A' && x <= 'Z'
isLower : Char -> Bool
isLower x = x >= 'a' && x <= 'z'
isAlpha : Char -> Bool
isAlpha x = isUpper x || isLower x
isDigit : Char -> Bool
isDigit x = (x >= '0' && x <= '9')
isAlphaNum : Char -> Bool
isAlphaNum x = isDigit x... | Idris | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Idris/Chars.idr | [
"MIT"
] |
pragma solidity ^0.7.4;
contract EthCall {
uint public value;
constructor() public payable {
value = 5;
}
} | Solidity | 4 | bifrost-platform/ganache-core | src/chains/ethereum/ethereum/tests/api/eth/contracts/EthCall.sol | [
"MIT"
] |
-- (c) 2009 Femke Johansson under LGPL
concrete FoodsDut of Foods = {
lincat
Comment = {s : Str};
Quality = {s : AForm => Str};
Kind = { s : Number => Str};
Item = {s : Str ; n : Number};
lin
Pred item quality =
{s = item.s ++ copula ! item.n ++ quality.s ! APred};
This = det Sg "deze";
These = ... | Grammatical Framework | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Grammatical Framework/FoodsDut.gf | [
"MIT"
] |
# Parameters
param T := read "producer.dat" as "1n" use 1 comment "#";
set Ts := {1..T};
set Ns := {read "producer.dat" as "<n+>" skip 1 use 1 comment "#"};
param N := card(Ns);
param pMin[Ns*Ts] := read "producer.dat" as "<1n,2n> 3n" skip 2 use (N*T) comment "#";
param pMax[Ns*Ts] := read "producer.dat" as "... | Zimpl | 4 | sebMathieu/dsima | simulator/models/producer-flexEvaluation.zpl | [
"BSD-3-Clause"
] |
{{ data.sourceCurrency.name }}
| Twig | 1 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/ExchangeRate/Grid/Field/sourceCurrencyName.html.twig | [
"MIT"
] |
require 'axle/opal_lib/digest_helpers'
require 'digest-rails/opal_lib/hot_helpers'
require 'digest-rails/opal_lib/quick_html_table'
require 'digest-rails/opal_lib/hot_like_table'
require 'digest-rails/opal_lib/table'
class PaneletTable
def init(config)
@data_source = config[:data_source]
@table = Table.ne... | Opal | 3 | bcavileer/digest-rails | app/assets/javascripts/digest-rails/opal_lib/hold/panelet_table.js.opal | [
"MIT"
] |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft® HTML Help Workshop 4.1">
<!-- Sitemap 1.0 -->
</HEAD><BODY>
<UL>
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="readme">
<param name="Local" value="readme\files\README.html">
</OBJEC... | RHTML | 2 | i-s-o/rubyinstaller | resources/chm/index.hhk.rhtml | [
"BSD-3-Clause"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
module CodeLocSet : Flow_set.S with type elt = string * Loc.t
type t
val empty : t
(* Raises if the given loc has `source` set t... | OCaml | 4 | zhangmaijun/flow | src/typing/errors/error_suppressions.mli | [
"MIT"
] |
#![derive(Copy)] //~ ERROR cannot determine resolution for the attribute macro `derive`
//~^ ERROR `derive` attribute cannot be used at crate level
#![test]//~ ERROR cannot determine resolution for the attribute macro `test`
//~^ ERROR `test` attribute cannot be used at crate level
#![test_case]//~ ERROR cannot deter... | Rust | 2 | ohno418/rust | src/test/ui/derives/issue-36617.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-SRL-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
... | ObjDump | 4 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-SRL-01.elf.objdump | [
"Apache-2.0"
] |
INSERT INTO acl_sid (id, principal, sid) VALUES
(1, 1, 'manager'),
(2, 1, 'hr'),
(3, 0, 'ROLE_EDITOR');
INSERT INTO acl_class (id, class) VALUES
(1, 'com.baeldung.acl.persistence.entity.NoticeMessage');
INSERT INTO system_message(id,content) VALUES
(1,'First Level Message'),
(2,'Second Level Message'),
(3,'Third Lev... | SQL | 3 | DBatOWL/tutorials | spring-security-modules/spring-security-acl/src/main/resources/acl-data.sql | [
"MIT"
] |
import React from "react"
import { Link } from "gatsby"
import { QueryDataCachesView } from "../../../components/query-data-caches/view"
import { useDataForAddingStaticQueryTest } from "../../../components/query-data-caches/adding-static-query-blank"
export default function AddingStaticQueryToPageTemplatePageA({ path ... | JavaScript | 4 | pipaliyajaydip/gatsby | e2e-tests/development-runtime/src/pages/query-data-caches/adding-static-query-A-to-B-to-A-link/page-A.js | [
"MIT"
] |
#!/bin/bash
SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR
mkdir -p ../../build/yi-hack/bin/ || exit 1
rsync -av ./_install/* ../../build/yi-hack/ || exit 1
| JSONiq | 3 | bolt1502/yi-hack | src/jq/install.jq | [
"MIT"
] |
label cca0030:
call gl(0,"bgcc0000a")
call vsp(0,1)
with wipeleft
pause (500.0/1000.0)
pause (1000.0/1000.0)
play bgm "bgm/bgm001.ogg"
"そして、日曜日。"
call gl(0,"bgcc0007f")
call vsp(0,1)
with wipeleft
"屋上。"
"すべての準備が整う。"
太一 "「ご苦労様です」"
call gl(1,"TCMM0000|TCMM000x")
... | Ren'Py | 3 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/cca/cca0030.rpy | [
"Apache-2.0"
] |
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-|
Module : Unicorn.Internal.Unicorn
Description : The Unicorn CPU emulator.
Copyright : (c) Adrian Herrera, 2016
License : GPL-2
Low-level bindings for the Unicorn CPU emulator framework.
This module should not be directly im... | C2hs Haskell | 5 | clayne/unicorn_pe | unicorn/bindings/haskell/src/Unicorn/Internal/Unicorn.chs | [
"MIT"
] |
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47];
const IDX: usize = 3;
const VAL: i32 = ARR[IDX];
const BLUB: [i32; (ARR[0] - 41) as usize] = [5];
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/feature-gates/feature-gate-const-indexing.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
"""Tests of the initialization of the balboa integration."""
from unittest.mock import MagicMock
from homeassistant.components.balboa.const import DOMAIN as BALBOA_DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const import CONF_HOST
from homeassistant.core import HomeAssistant
f... | Python | 5 | MrDelik/core | tests/components/balboa/test_init.py | [
"Apache-2.0"
] |
CREATE OR REPLACE VIEW hdb_catalog.hdb_table_info_agg AS (
select
tables.table_name as table_name,
tables.table_schema as table_schema,
coalesce(columns.columns, '[]') as columns,
coalesce(pk.columns, '[]') as primary_key_columns,
coalesce(constraints.constraints, '[]') as constraints,
coalesce(views.view_i... | SQL | 5 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/13_to_14.sql | [
"Apache-2.0",
"MIT"
] |
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build (freebsd || netbsd || openbsd) && gc
// +build freebsd netbsd openbsd
// +build gc
#include "textflag.h"
// System call support for 386 BSD
// Jus... | GAS | 2 | fuxiuyin/blob-csi-driver | vendor/golang.org/x/sys/unix/asm_bsd_386.s | [
"Apache-2.0"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
/**
Las Venturas Playground v3.0 - Highjump Map
This map was created by LastTRace - LVP Mapper
08/05/2010 - Added by Jay
... | PAWN | 3 | EPIC-striker/playground | pawn/Resources/Maps/MapZones/Jumps/HighJump.pwn | [
"MIT"
] |
const A = () => (
<div>
<p>A Component</p>
/* Test */
</div>
)
export default A
| JavaScript | 3 | blomqma/next.js | test/integration/eslint/eslint-ignore/components/a.js | [
"MIT"
] |
--
-- Apache Derby scripts by Steve Stewart.
-- Based on Srinivas Venkatarangaiah's file for Cloudscape
--
-- In your Quartz properties file, you'll need to set
-- org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.CloudscapeDelegate
--
-- Known to work with Apache Derby 10.0.2.1
--
create tabl... | SQL | 4 | Evan43789596/spring-boot-demo | spring-boot-demo-task-quartz/init/dbTables/tables_derby_previous.sql | [
"MIT"
] |
var css = require('css');
const { isEmpty } = require('lodash');
const visit = require('unist-util-visit');
const { commentToData } = require('../comment-to-data');
function visitComments(node, cb) {
node.rules.forEach(rule => {
if (rule.type === 'rule') {
visitDeclarations(rule.declarations, cb);
} el... | JavaScript | 3 | fcastillo-serempre/freeCodeCamp | curriculum/test/utils/plugins/get-css-comments.js | [
"BSD-3-Clause"
] |
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you ... | HTML | 4 | DominiqueDeCordova/echarts | test/gauge-distance.html | [
"Apache-2.0"
] |
#!/bin/sh
lflag=0
while getopts 'lh' OPTION
do
case $OPTION in
l) lflag=1
;;
h) echo "Usage: [-l]"
echo " -l: use mapping xml files in local CMSSW area"
exit
;;
esac
done
if [ ${lflag} -eq 0 ]
then
echo "Setting up sqlite_file:l1config.db with xml files fr... | DIGITAL Command Language | 4 | ckamtsikis/cmssw | CondTools/L1Trigger/test/bootstrap.com | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.