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 |
|---|---|---|---|---|---|
../../../tools/distrib/python_wrapper.sh | Shell | 1 | samotarnik/grpc | test/core/http/python_wrapper.sh | [
"Apache-2.0"
] |
module DotNotation exposing (expand, flatten, parse, serialize)
import Concourse exposing (JsonValue(..), decodeJsonValue, encodeJsonValue)
import Dict exposing (Dict)
import Json.Decode
import Json.Encode
import Parser
exposing
( (|.)
, (|=)
, DeadEnd
, Parser
, Problem(..)... | Elm | 5 | Caprowni/concourse | web/elm/src/DotNotation.elm | [
"Apache-2.0"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import GZ.... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/Base/Quaternion.cw | [
"Apache-2.0"
] |
VITE_APP_URL=http://start.duoli.com
# 打包环境
NODE_ENV=production
| Self | 2 | imvkmark/wulicode-tools | config/.env.self | [
"MIT"
] |
--# -path=.:alltenses:prelude
resource CombinatorsBul = Combinators - [appCN, appCNc] with
(Cat = CatBul),
(Structural = StructuralBul),
(Noun = NounBul),
(Constructors = ConstructorsBul) **
{
oper
appCN : CN -> NP -> NP
= \cn,x -> mkNP the_Art (PossNP cn x) ;
appCNc : CN -> [NP] -> NP
= \cn,xs... | Grammatical Framework | 4 | daherb/gf-rgl | src/api/CombinatorsBul.gf | [
"BSD-3-Clause"
] |
#t {
text-name: valid;
text-face-name: 2;
}
| CartoCSS | 0 | nimix/carto | test/errorhandling/issue297.mss | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- Copyright IBM Corp. 2010, 2014 -->
<!-- ... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-layout.xsp-config | [
"Apache-2.0"
] |
(*
* 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.
*)
(*****************************************************************************)
(* The environment shared by everyone *)
(*********... | OCaml | 4 | esilkensen/flow | src/hack_forked/dfind/dfindEnv.mli | [
"MIT"
] |
<html>
<head>
<title> Firebase Auth + Hasura JWT example </title>
</head>
<body>
<h1> Firebase Auth + Hasura JWT example </h1>
<form id="login-form">
Email: <input id="email" type="email"/>
Password: <input id="password" type="password" />
<button type="submit">Login</button>
</f... | HTML | 3 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/firebase-jwt/app/index.html | [
"Apache-2.0",
"MIT"
] |
module Issue157 where
X : Set
X = _
error : Set
error = Set
| Agda | 1 | cruhland/agda | test/interaction/Issue157.agda | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<definitions targetNamespace="urn:test.example.org"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:test.example.org"
... | XML | 4 | thiagooak/php-src | ext/soap/tests/bugs/bug73237.wsdl | [
"PHP-3.01"
] |
module opengles2_hello_triangle
import glesv2
import egl
import mnit_linux # for sdl
import x11
if "NIT_TESTING".environ == "true" then exit(0)
var window_width = 800
var window_height = 600
#
## SDL
#
var sdl_display = new SDLDisplay(window_width, window_height)
var sdl_wm_info = new SDLSystemWindowManagerInfo
var... | Nit | 3 | polyrabbit/polyglot | corpus/Nit/opengles2_hello_triangle.nit | [
"BSD-3-Clause"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 10.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLengt... | Mathematica | 3 | jhh67/chapel | test/users/npadmana/fftw/FFTgentest.nb | [
"ECL-2.0",
"Apache-2.0"
] |
%include lhs2TeX.sty
| Literate Haskell | 0 | cruhland/agda | notes/papers/implicit/lhs2TeXpreamble.lhs | [
"MIT"
] |
/*
* 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.
*/
#include <benchmark/benchmark.h>
#include <folly/dynamic.h>
#include <folly/json.h>
#include <react/renderer/components/view/ViewCo... | C++ | 3 | shreejitverma/react-native | ReactCommon/react/renderer/core/tests/benchmarks/RawPropsBenchmark.cpp | [
"CC-BY-4.0",
"MIT"
] |
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. 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... | Python | 4 | liminghao1630/transformers | examples/research_projects/bertabs/convert_bertabs_original_pytorch_checkpoint.py | [
"Apache-2.0"
] |
- content_for :foo do
| foo
- content_for :foo do
| bar
- content_for :baz do
| WON'T RENDER ME
- content_for :foo do
| baz
| Slim | 3 | osamtimizer/sinatra | sinatra-contrib/spec/content_for/multiple_blocks.slim | [
"MIT"
] |
(module
(type $0 (func (param i32 i32)))
(type $1 (func (param i32 i32 i32) (result i32)))
(import "env" "memory" (memory $2 8192))
(import "env" "emscripten_log" (func $fimport$0 (param i32 i32)))
(import "env" "emscripten_asm_const_int" (func $fimport$1 (param i32 i32 i32) (result i32)))
(table $0 159609 funcre... | WebAssembly | 2 | phated/binaryen | test/lld/em_asm_table.wat | [
"Apache-2.0"
] |
: main
trig getlinks
;
| MUF | 0 | revarbat/mufsim | tests/getlinks.muf | [
"BSD-2-Clause"
] |
[a<http://example.org/>].
[a[]].
[a()].
<http://example.org/s>a<http://example.org/Thing>.
<http://example.org/s>a[].
<http://example.org/s>a().
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/good/test-a-without-whitespace.ttl | [
"CC-BY-3.0"
] |
: main
me @ "fleegul" newpassword
me @ "password" checkpassword pop
me @ "fleegul" checkpassword pop
;
| MUF | 1 | revarbat/mufsim | tests/checkpassword.muf | [
"BSD-2-Clause"
] |
" Vim syntax file
" This file works only for Vim6.x
" Language: Tilde
" Maintainer: Tobias Rundström <tobi@tildesoftware.net>
" URL: http://www.tildesoftware.net
" CVS: $Id: tilde.vim,v 1.1 2004/06/13 19:31:51 vimboss Exp $
if exists("b:current_syntax")
finish
endif
"tilde dosent care ...
syn case ignore
syn mat... | VimL | 3 | uga-rosa/neovim | runtime/syntax/tilde.vim | [
"Vim"
] |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'web_resource_error_type.dart';
/// Error returned in `WebView.onWebResourceError` when a web resource loading error has occurred.
class WebResourc... | Dart | 5 | simpleclub-extended/plugins | packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/web_resource_error.dart | [
"BSD-3-Clause"
] |
Sparsity,begin,end,freq,label smoothing,accuracy
0.5,20000,76000,2000,0,0.755599975586
0.5,20000,100000,4000,0.1,0.760320007801
0.5,20000,76000,4000,0.1,0.760580003262
0.5,20000,100000,8000,0,0.756020009518
0.5,8000,100000,4000,0.1,0.757239997387
0.5,8000,76000,4000,0.1,0.757040023804
0.5,8000,76000,4000,0,0.7539600133... | CSV | 0 | deepneuralmachine/google-research | state_of_sparsity/results/sparse_rn50/technique_comparison/rn50_magnitude_pruning.csv | [
"Apache-2.0"
] |
[{:type :mutation
:selections [{:type :field
:field-name :new_person
:args [{:arg-name :data
:arg-value {:type :object
:value [{:arg-name :last_name
:arg-value {:type :string
... | edn | 3 | hagenek/lacinia | dev-resources/parser/object.edn | [
"Apache-2.0"
] |
(ns lt.util.style
"Provide style related functions.")
(defn ->px
"Appends \"px\" to `s`. If `s` is falsey then 0 is used.
Example:
```
(->px 75) ;;=> \"75px\"
(->px false) ;;=> \"0px\"
```"
[s]
(str (or s 0) "px"))
| Clojure | 4 | sam-aldis/LightTable | src/lt/util/style.cljs | [
"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 applica... | Python | 5 | nkgwer/tensorflow | tensorflow/python/distribute/strategy_common_test.py | [
"Apache-2.0"
] |
<html>
<body>
<script type="text/javascript" charset="utf-8">
const {ipcRenderer} = require('electron')
let worker = new Worker(`../workers/worker_node.js`)
worker.onmessage = function (event) {
ipcRenderer.sendToHost(event.data)
worker.terminate()
}
</script>
</body>
</html>
| HTML | 3 | lingxiao-Zhu/electron | spec/fixtures/pages/worker.html | [
"MIT"
] |
#!/usr/bin/jconsole
require 'strings'
e =: &.>
lines =: <;._2 :. unlines
unlines =: ;@:(,&LF e) :. lines
n=: #all =: {.@> comments=: lines 0 :0
Builtin
Char
Error
K Complex
O Composition
Function application
Name
Quasiquote
Z Integer
Real
List
)
typedefs =: lines 0 :0
B uint8_t
C int8_t
E Str
O struct { U r; V f; ... | J | 4 | mlochbaum/ILanguage | type.ijs | [
"0BSD"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
int main(int, char**)
{
int power_state_switch_node = open("/sys/firmware/power_state... | C++ | 3 | r00ster91/serenity | Userland/Utilities/reboot.cpp | [
"BSD-2-Clause"
] |
CREATE TABLE `tb_njzmhqupzv` (
`col_aiifakdklr` datetime(6) NULL,
`col_ulzkdgcmmu` time,
CONSTRAINT UNIQUE INDEX `uk_ikryxrhfhx` (`col_aiifakdklr`),
UNIQUE `uk_ckiseqvinv` (`col_aiifakdklr`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `tb_nzgqzlyxvk` (
`col_quthabfydl` set('enum_or_set_0','enum_or_se... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/table/test_23.sql | [
"Apache-2.0"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLOptGroupElement : HTMLElement {
[CEReactions, Reflect] attribute boolean disabled;
[CEReactions, Reflect] attribute DOMString label;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLOptGroupElement.webidl | [
"MIT"
] |
void setup() {
size(320,240);
}
void draw() {
background(0);
flower();
}
void flower() {
fill(255,0,0);
ellipse(100,100,20,20);
}
| Processing | 4 | aerinkayne/website | Tutorials/Processing/unsorted/functions-objects/functions/functions.pde | [
"MIT"
] |
module Todo.Task exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Json.Decode
import String
-- MODEL
type alias Model =
{ description : String
, completed : Bool
, edits : Maybe String
, id : Int
}
init : String -> Int -> Mod... | Elm | 5 | elenaparaschiv/todomvc | examples/elm/Todo/Task.elm | [
"MIT"
] |
require 'template'
require 'axle/opal_lib/data_source'
require 'digest-rails/opal_lib/core_pane_controller'
require 'digest-rails/opal_lib/digest_section_controller'
require 'digest-rails/opal_lib/multi_digest_controller'
require 'digest-rails/opal_lib/column_text'
require 'digest-rails/opal_lib/column_select'
requir... | Opal | 4 | bcavileer/digest-rails | app/assets/javascripts/digest-rails/opal_lib/hold/base_panelet_controller.js.opal | [
"MIT"
] |
namespace DebugStub
include Test.xs
.v = 4 | XS | 0 | xccoreco/XSharp | playground/IncludeTest.xs | [
"BSD-3-Clause"
] |
package
{
// some utilities to encapsulate using the relative read/write of the
// corrupt vector.<uint> as an absolute read/write of the whole address
// space.
public class Memory
{
public var vector:Vector.<uint>;
public var vector_base:uint;
public var vector_size:uint;
private static function neg... | ActionScript | 4 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2015-0318/Memory.as | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
--TEST--
Uninitialized PDO objects
--EXTENSIONS--
pdo
--FILE--
<?php
class MyPDO extends PDO {
public function __construct() {}
}
class MyPDOStatement extends PDOStatement {
public function __construct() {}
}
$pdo = new MyPDO;
try {
$pdo->query("foo");
} catch (Error $e) {
echo $e->getMessage(), "\n";... | PHP | 2 | NathanFreeman/php-src | ext/pdo/tests/pdo_uninitialized.phpt | [
"PHP-3.01"
] |
\data\
ngram 1=100
ngram 2=246
ngram 3=282
\1-grams:
-99 <s> -0.0544355
-1.80964 car -0.00984062
-2.61019 one -0.00984062
-1.73999 the -0.0517839
-1.92717 know -0.0273663
-1.85371 they -0.0606816
-1.88802 like -0.0273663
-1.88391 of -0.0345176
-1.94793 lot -0.0273663
-1.85772 in -0.0345176
-1.87965 really -0.00984064
... | DNS Zone | 3 | shuipi100/kaldi | src/rnnlm/test/0.1k_3gram_unpruned.arpa | [
"Apache-2.0"
] |
abc_problem :-
maplist(abc_problem, ['', 'A', bark, bOOk, treAT, 'COmmon', sQuaD, 'CONFUSE']).
abc_problem(Word) :-
L = [[b,o],[x,k],[d,q],[c,p],[n,a],[g,t],[r,e],[t,g],[q,d],[f,s],
[j,w],[h,u],[v,i],[a,n],[o,b],[e,r],[f,s],[l,y],[p,c],[z,m]],
( abc_problem(L, Word)
-> ... | Prolog | 4 | jjallaire/skylighting | skylighting-core/test/cases/abc.prolog | [
"BSD-3-Clause",
"MIT"
] |
#N canvas 847 270 519 316 12;
#X msg 101 186 2;
#X obj 78 227 print~;
#X msg 78 151 bang;
#X obj 41 122 phasor~ 1000;
#X text 118 152 bang prints one vector;
#X text 136 185 print two or more successive vectors, f 19;
#X obj 35 14 print~;
#X text 88 14 - print out raw values of a signal;
#X text 271 269 Updated for Pd ... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/print~-help.pd | [
"TCL"
] |
;--------------------------------
; CairoShell_64.nsi
!define ARCBITS 64
!define ARCNAME "x64"
!include "CairoShell.nsi"
| NSIS | 1 | anderlli0053/cairoshell | Installer/CairoShell_64.nsi | [
"Apache-2.0"
] |
{% include configuration.vars.templates.breadcrumb|default('@SyliusAdmin/ProductVariant/Index/_breadcrumb.html.twig') %}
| Twig | 1 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/ProductVariant/Index/ProductHeader/_breadcrumb.html.twig | [
"MIT"
] |
struct HelloWorld extends array
private static method onInit takes nothing returns nothing
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0, 0, 0, "Hello World")
endmethod
endstruct
| Jasmin | 3 | Gabrielarodrigues10/ga | v/VJass.j | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M15.54 10.5c.1.29.38.5.71.5.41 0 .75-.34.75-.75V10c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v1.5c0 .55.45 1 1 1h2.5v1h-2.04c-.1-.29-.38-.5-.71-.5-.41 0-.75.34-.75... | JavaScript | 2 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/JavascriptRounded.js | [
"MIT"
] |
<div>Sometimes Evernote
wraps lines inside blocks</div>
<div>Sometimes it doesn't wrap them</div>
<pre>But
careful
with
pre tags</pre> | HTML | 2 | asahiocean/joplin | packages/app-cli/tests/enex_to_md/multiline_inner_text.html | [
"MIT"
] |
package test;
import java.util.List;
import java.util.Collection;
public interface InheritReadOnlinessSubclass {
public interface Super {
Collection<String> foo();
void dummy(); // to avoid loading as SAM interface
}
public interface Sub extends Super {
List<String> foo();
}... | Java | 4 | qussarah/declare | compiler/testData/loadJava/compiledJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.java | [
"Apache-2.0"
] |
module promise_demo
import gololang.concurrent.async.Promise
function main = |args| {
let divide42 = { # my promise
let promise = Promise()
let randomNumber = java.util.Random():nextInt(5)
if randomNumber > 0 {
let result = 42.0 / randomNumber
# resolve
promise: set([randomNumber, ... | Golo | 5 | ajnavarro/language-dataset | data/github.com/TypeUnsafe/golo-tour/00d980cef4912dd8f97cc72153e6c9ab0234b8fd/07-golo.06.RivieraJUG/04-golo-s-touch/sandbox/06-b-promises.golo | [
"MIT"
] |
grammar t053heteroTP;
options {
language=JavaScript;
output=AST;
tokenVocab=t053heteroT;
}
tokens { ROOT; }
@header {
function VX(ttype, tree) {
VX.superclass.constructor.apply(this, arguments);
};
org.antlr.lang.extend(VX, org.antlr.runtime.tree.CommonTree, {
toString: function() {
return V... | G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t053heteroTP.g | [
"Apache-2.0"
] |
require '../assertions'
require '../parserAssertions'
terms = require '../../lib/parser/codeGenerator'.codeGenerator ()
_ = require 'underscore'
require 'chai'.should()
describe 'operator expression'
variable (name) = terms.complexExpression [[terms.variable [name]]]
it 'parses operators, using precedence tab... | PogoScript | 4 | featurist/pogoscript | test/parser/operatorParserSpec.pogo | [
"BSD-2-Clause"
] |
\require "b@~>0.3.0" | LilyPond | 0 | HolgerPeters/lyp | spec/package_setups/simple_with_nested_packages/c@0.3/package.ly | [
"MIT"
] |
* XLSX
[[https://travis-ci.org/tealeg/xlsx][https://img.shields.io/travis/tealeg/xlsx/master.svg?style=flat-square]]
[[https://codecov.io/gh/tealeg/xlsx][https://codecov.io/gh/tealeg/xlsx/branch/master/graph/badge.svg]]
[[https://godoc.org/github.com/tealeg/xlsx][https://godoc.org/github.com/tealeg/xlsx?status.svg]]
[... | Org | 4 | btkinghome/Spear-of-Adun | vendor/github.com/tealeg/xlsx/README.org | [
"MIT"
] |
.style {
grid-template-columns: repeat(4, [col-start);
}
| CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/errors/rome/invalid/grid/repeat/unclosed-lint-name/input.css | [
"Apache-2.0"
] |
<button id="hide" (click)="hide()">Hide</button>
<button id="show-10-rows-5-cols" (click)="showTenRowsFiveCols()">Show 10 Rows 5 Cols</button>
<button id="show-100-rows-5-cols" (click)="showOneHundredRowsFiveCols()">Show 100 Rows 5 Cols</button>
<button id="show-1000-rows-5-cols" (click)="showOneThousandRowsFiveCols()"... | HTML | 3 | tungyingwaltz/components | test/benchmarks/mdc/table/app.module.html | [
"MIT"
] |
/******************************************************************************
* Copyright 2019 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++ | 4 | seeclong/apollo | modules/canbus/vehicle/transit/protocol/llc_auxiliaryfeedback_120_test.cc | [
"Apache-2.0"
] |
# Edge project file (edit at your own risk)
# Copyright (c) 2004-2017 Elements Interactive B.V.
# -----------------------------------------
# General project properties
projectname = "view3d"
caption = "View 3D"
target type = "bin"
appuid = "0x10205d9f"
version = "1.00.0"
capabilities = "No... | Ecere Projects | 2 | elementsinteractive/edgelib | samples/View3D/workspace_eide_opengl/view3d_symbian_pre9.epj | [
"BSD-3-Clause"
] |
[
"ionAccessibilityOutline",
"ionAccessibilitySharp",
"ionAccessibility",
"ionAddCircleOutline",
"ionAddCircleSharp",
"ionAddCircle",
"ionAddOutline",
"ionAddSharp",
"ionAdd",
"ionAirplaneOutline",
"ionAirplaneSharp",
"ionAirplane",
"ionAlarmOutline",
"ionAlarmSharp",
"ionAlarm",
"ionAlb... | JSON | 2 | eddelplus/quasar | extras/ionicons-v6/icons.json | [
"MIT"
] |
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- userdpiapi.hpp
Abstract:
- This module is used for abstracting calls to ntdll DLL APIs to break DDK dependencies.
Author(s):
- Michael Niksa (MiNiksa) July-2016
--*/
#pragma once
#include "conddkrefs.h"
// From... | C++ | 4 | rasc0l/terminal | src/host/ntprivapi.hpp | [
"MIT"
] |
#tag Class
Protected Class AVCaptureInputPort
Inherits NSObject
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("AVCaptureInputPort")
return ref
End Function
#tag EndMethod
#tag Method, Flags = &h1000
Sub Constructor()
// Calling the overri... | Xojo | 4 | kingj5/iOSKit | Modules/AVFoundation/AVCaptureInputPort.xojo_code | [
"MIT"
] |
# Makefile for core library for VMS
# contributed by Jouk Jansen joukj@hrem.nano.tudelft.nl
# Last revision : 3 October 2007
.first
define gl [---.include.gl]
define math [-.math]
define vbo [-.vbo]
define tnl [-.tnl]
define shader [-.shader]
define swrast [-.swrast]
define swrast_setup [-.swrast_setup]
defin... | Module Management System | 3 | manggoguy/parsec-modified | pkgs/libs/mesa/src/src/mesa/vbo/descrip.mms | [
"BSD-3-Clause"
] |
{% skip_file if flag?(:without_playground) %}
require "./playground/*"
| Crystal | 1 | jessedoyle/crystal | src/compiler/crystal/tools/playground.cr | [
"Apache-2.0"
] |
= Documentation for JSON Feature
The json feature adds support for JSON API access for all other
features that ship with Rodauth.
When this feature is used, all other features become accessible via a
JSON API. The JSON API uses the POST method for all requests, using
the same parameter names as the features uses. J... | RDoc | 4 | dmitryzuev/rodauth | doc/json.rdoc | [
"MIT"
] |
#include "devicedefines.h"
#include "../core/customdefines.h"
/* This file includes an example integration of lib_array_mic into USB Audio */
#include <platform.h>
#include <xs1.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <xclib.h>
#include <stdint.h>
#include "mic_array.h"
#define MAX_DE... | XC | 5 | simongapp/xmos_usb_mems_interface | 01Firmware/PDM_USB/PDM_USB/src/pdm_mics/pcm_pdm_mic.xc | [
"Unlicense"
] |
.button-ok {
foo: 1;
}
.button-cancel {
foo: 1;
}
.button-custom {
foo: 1;
}
.grand .parent > .grand .parent {
foo: 1;
}
.grand .parent + .grand .parent {
foo: 1;
}
.grand .parent .grand .parent {
foo: 1;
}
.grand .parent.grand .parent {
foo: 1;
}
.grand .parent,
.grand .parentish {
foo: 1;
}
| CSS | 0 | FlyAboveGrass/wepy | packages/compiler-stylus/test/fixtures/css/selector.css | [
"BSD-3-Clause"
] |
#!/bin/bash
# The script runs the smoke test against every supported builder configuration.
#
# It's a part of the test process.
dir="$(pwd)/examples"
ok_message="\n\033[0;32m✓ OK!\033[0m\n"
error_message="\n\033[0;31m✗ Something went wrong!\033[0m\n"
cd "$dir" || exit 1
for example in `ls`
do
printf "\n\033[0;3... | Shell | 4 | taco-tues-on-a-fri/date-fns | scripts/test/smoke.sh | [
"MIT"
] |
(*
Module: Sep
Generic separators to build lenses
Author: Raphael Pinson <raphink@gmail.com>
About: License
This file is licensed under the LGPL v2+, like the rest of Augeas.
*)
module Sep =
(* Variable: colon *)
let colon = Util.del_str ":"
(* Variable: semicolon *)
let semicolon = Util.del_str ";"
(* Vari... | Augeas | 4 | zwass/launcher | pkg/augeas/assets/lenses/sep.aug | [
"MIT"
] |
//==============================================================================================================================
// An optimized AMD FSR's EASU implementation for Mobiles
// Based on https://github.com/GPUOpen-Effects/FidelityFX-FSR/blob/master/ffx-fsr/ffx_fsr1.h
// Details can be found: https://atyuwen... | F# | 5 | N500/filament | filament/src/materials/fsr/ffx_fsr1_mobile.fs | [
"Apache-2.0"
] |
(
SynthDef(\plaits,
{|bus, freq = 220, dur=1, pan=0, harm=0.5, timbre=0.5, morph=0.5, engine=7, atk=0.2, sus=0.3, mul=1.0|
var env = EnvGen.ar(Env.linen(atk, 1-atk-sus, sus, 1, -3), timeScale:dur, doneAction:0);
var sound = MiPlaits.ar(pitch: freq.cpsmidi, engine: engine, harm: harm, timbre: timbre, morph: morph, mu... | SuperCollider | 4 | pjagielski/punkt | src/main/resources/punkt-misynths.scd | [
"Apache-2.0"
] |
// use noise() to build surface, use move() for movement
// set perspective
rotate 270, 0,1,0
move -20,1,0
//move map(TIME%1000, 0,1000, 0,5),0,0
DECAY: 0.05
move 0,wave(200)*2,wave(50)*10
particle 1
stroke 1
// whole set of x*y block is a single particle
for x: -5 to 5 step 2
for y: -5 to 5 step 2
push
... | Cycript | 4 | marcinbiegun/creativecoding-sketches | Cyril/data/code_experiments/7.cy | [
"MIT"
] |
input Params {
app_id: ID!
key_hash: String!
}
| GraphQL | 3 | fuelingtheweb/prettier | tests/graphql_object_type_def/input.graphql | [
"MIT"
] |
var exec = require("child_process").exec;
var COMMAND = "{{escapeBackslashes command}}{{#if task}} {{escapeBackslashes task}}{{/if}}{{#if args}} {{{escapeBackslashes args}}}{{/if}}";
var MSG_CHECKING = "\n\x1B[1;33m \\_°< \x1B[0m\x1B[1m I'm checking your code, please wait...\x1B[0m";
var MSG_OK = "\r\x1B[1;32m \\_^> \... | Harbour | 3 | Rincelent/PhotonUI | test/githook-template.js.hb | [
"BSD-3-Clause"
] |
/*
* TODO(antoyo): support #[inline] attributes.
* TODO(antoyo): support LTO.
*
* TODO(antoyo): remove the patches.
*/
#![feature(rustc_private, decl_macro, associated_type_bounds, never_type, trusted_len)]
#![allow(broken_intra_doc_links)]
#![recursion_limit="256"]
#![warn(rust_2018_idioms)]
#![warn(unused_lifet... | Rust | 4 | rizalgowandy/rust | compiler/rustc_codegen_gcc/src/lib.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import React from 'react';
import { Trans, useTranslation } from 'react-i18next';
import emmaImg from '../../../assets/images/landing/Emma.png';
import sarahImg from '../../../assets/images/landing/Sarah.png';
import shawnImg from '../../../assets/images/landing/Shawn.png';
import { ImageLoader } from '../../helpers';... | TypeScript | 3 | fcastillo-serempre/freeCodeCamp | client/src/components/landing/components/testimonials.tsx | [
"BSD-3-Clause"
] |
(defmodule unit-mkr-tests
(behaviour ltest-unit)
(export all)
(import
(from mkr
(call/fresh 1)
(conj 2)
(disj 2)
(= 2))
(from ltest
(check-failed-assert 2)
(check-wrong-assert-exception 2))))
(include-lib "ltest/include/ltest-macros.lfe")
(include-lib "... | LFE | 4 | pzel/mkr | test/unit-mkr-tests.lfe | [
"MIT"
] |
Import trans.system
Function MonkeyType$( ty$ )
#rem
typedef unsigned long GLenum;
typedef boolean GLboolean;
typedef unsigned long GLbitfield;
typedef byte GLbyte; /* 'byte' should be a signed 8 bit type. */
typedef short GLshort;
typedef long GLint;
typedef lon... | Monkey | 4 | blitz-research/monkey | modules/dom/mkwebgl.monkey | [
"Zlib"
] |
syntax = "proto3";
package tensorflow;
message ProfilerServiceMonitorResult {
// Represents the different types of responses from the profiling service.
enum ResponseType {
// No result is returned from the profiling service.
EMPTY_RESULT = 0;
// Only device utilization is available.
UTIL_ONLY = 1... | Protocol Buffer | 4 | yage99/tensorflow | tensorflow/core/profiler/profiler_service_monitor_result.proto | [
"Apache-2.0"
] |
#tag Class
Class NSPoint
#tag Method, Flags = &h0
Sub Constructor()
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub Constructor(x as Double, y as Double)
self.x = x
self.y = y
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub Operator_Convert(other as NSPoint32)
self.Constructor(... | Xojo | 3 | jkleroy/Xojo-iOS-HTML2PDF | Extras/iOSKit/Foundation/NSPoint.xojo_code | [
"Unlicense"
] |
The [[http://www.globalreporting.org/Home|Global Reporting Initiative (GRI)]] is a widely used sustainability reporting framework which sets out the principles and indicators that organizations can use to measure and report their economic, environmental, and social performance. AMEE provides an excellent level of suppo... | Creole | 0 | OpenAMEE/datasets | documentation/Global_Reporting_Initiative/documentation.creole | [
"MIT"
] |
describe("Numeric limits should be defined",||
shortMin := SHRT_MIN
shortMax := SHRT_MAX
unsignedShortMax := USHRT_MAX
intMin := INT_MIN
intMax := INT_MAX
unsignedIntMax := UINT_MAX
longMin := LONG_MIN
longMax := LONG_MAX
unsignedLongMax := ULONG_MAX
longLongMin := LLONG_MIN
... | ooc | 3 | shamanas/rock | test/sdk/lang/limits.ooc | [
"MIT"
] |
; RUN: llc < %s -mtriple=arm64-eabi -mcpu=cyclone | FileCheck %s
define i128 @shl(i128 %r, i128 %s) nounwind readnone {
; CHECK-LABEL: shl:
; CHECK: neg [[REV_SHIFT:x[0-9]+]], x2
; CHECK: lsr [[LO_FOR_HI_NORMAL:x[0-9]+]], x0, [[REV_SHIFT]]
; CHECK: cmp x2, #0
; CHECK: csel [[LO_FOR_HI:x[0-9]+]], xzr, [[LO_FOR_HI_NORM... | LLVM | 4 | medismailben/llvm-project | llvm/test/CodeGen/AArch64/arm64-long-shift.ll | [
"Apache-2.0"
] |
using Uno;
using Uno.Compiler;
using Uno.Collections;
using Uno.UX;
namespace Fuse
{
public abstract class AppBase : Uno.Application
{
[UXPrimary]
/** The @Node.Children of the virtual root @Node of the @App.
Note that the virtual root node might be different from the @RootViewport ... | Uno | 5 | mortend/fuse-studio | Source/CodeCompletion/Outracks.CodeCompletion.UXNinja.TestsCommon/TestData/App.uno | [
"MIT"
] |
--TEST--
Bug #79242 (COM error constants don't match com_exception codes)
--EXTENSIONS--
com_dotnet
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
?>
--FILE--
<?php
var_dump(
DISP_E_DIVBYZERO,
DISP_E_OVERFLOW,
DISP_E_BADINDEX,
MK_E_UNAVAILABLE
);
?>
--EXPECT--... | PHP | 4 | NathanFreeman/php-src | ext/com_dotnet/tests/bug79242.phpt | [
"PHP-3.01"
] |
grammar Grammar;
main : ;
| ANTLR | 0 | jcs-PR/omnisharp-roslyn | test-assets/test-projects/AntlrGeneratedFiles/Grammar.g4 | [
"MIT"
] |
%{
#include <stdio.h>
Expression* lastExp = 0;
#define YYERROR_VERBOSE 1
/* dump Expression stack during parsing? */
#define DEBUG_EXP 0
int yylex();
char *yytext;
void yyerror(const char *e) {
//if(DEBUG_EXP) fprintf(stderr, "%s at token \"%s\"\n", e, yytext);
if(DEBUG_EXP) fprintf(stderr, "%s\n", e);
errMsg =... | Yacc | 3 | MatPoliquin/retro | retro/cores/atari2600/stella/src/yacc/stella.y | [
"MIT-0",
"MIT"
] |
data testing;
begin=0;
end=10;
msg="This is row %x of %y";
do i = begin to end by 1;
drop msg begin end i;
recnum=i;
label=tranwrd(tranwrd(msg,"%x",i),"%y",end);
output;
end;
run;
libname out '/home/tika/testing/sas';
libname outxpt XPORT '/home/tika/testing/sas/testing.xpt';
libname outv6 v6 '/home/tika/... | SAS | 3 | dedabob/tika | tika-parsers/src/test/resources/test-documents/testSAS.sas | [
"Apache-2.0"
] |
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/native/Resize.h>
#include <c10/cuda/CUDAStream.h>
#include <c10/cuda/CUDAException.h>
namespace at {
namespace native {
namespace {
constexpr int MULTIMARGIN_THREADS = 128;
template <int P, typename scalar_t>
__global__ void MultiMarginLoss_forwar... | Cuda | 5 | Hacky-DH/pytorch | aten/src/ATen/native/cuda/MultiMarginLoss.cu | [
"Intel"
] |
<!-- #docregion binding -->
<p>Emoji from FlowerService: {{flower.emoji}}</p>
<p>Emoji from AnimalService: {{animal.emoji}}</p>
<!-- #enddocregion binding -->
| HTML | 3 | coreyscherbing/angular | aio/content/examples/providers-viewproviders/src/app/inspector/inspector.component.html | [
"MIT"
] |
#pragma TextEncoding="UTF-8"
#pragma rtGlobals=1
#pragma ModuleName = SIDAMFourierSym
#include "SIDAM_Display"
#include "SIDAM_PeakPos"
#include "SIDAM_Utilities_Bias"
#include "SIDAM_Utilities_Control"
#include "SIDAM_Utilities_Help"
#include "SIDAM_Utilities_Image"
#include "SIDAM_Utilities_Panel"
#includ... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Fourier_Symmetrization.ipf | [
"MIT"
] |
fn test() {
let mut v: isize;
v = v + 1; //~ ERROR use of possibly-uninitialized variable: `v`
v.clone();
}
fn main() {
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/borrowck/borrowck-init-plus-equal.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/nw/src/api/object_manager_factory.h"
#include "content/nw/src/api/object_manager.h"
#include "components/keyed_service/content/browser_... | C++ | 4 | namaljayathunga/nw.js | src/api/object_manager_factory.cc | [
"MIT"
] |
[{:type :query
:selections [{:type :field
:field-name :introspect
:args [{:arg-name :types
:arg-value {:type :array
:value [{:type :enum
:value :query}
... | edn | 4 | hagenek/lacinia | dev-resources/parser/enum-reserved.edn | [
"Apache-2.0"
] |
[Desktop Entry]
Name=PyInstaller Appimage Test
GenericName=PyInstaller Appimage Test
Comment=Simple AppImage test for code frozen with PyInstaller.
Exec=false
Icon=apptest
Type=Application
StartupNotify=false
Terminal=false
Categories=Office;
| desktop | 2 | hawkhai/pyinstaller | tests/functional/data/appimage/org.pyinstaller.appimage.test.desktop | [
"Apache-2.0"
] |
"""Describe logbook events."""
from homeassistant.components.logbook.const import (
LOGBOOK_ENTRY_ENTITY_ID,
LOGBOOK_ENTRY_MESSAGE,
LOGBOOK_ENTRY_NAME,
)
from homeassistant.core import callback
from .const import DOMAIN, EVENT_ALEXA_SMART_HOME
@callback
def async_describe_events(hass, async_describe_even... | Python | 4 | liangleslie/core | homeassistant/components/alexa/logbook.py | [
"Apache-2.0"
] |
Prefix(:=<http://example.org/>)
Ontology(:MainOntology
Import( <http://localhost:10000/child1.owl> )
Import( <http://localhost:10000/child2.owl> )
Declaration(Class(:main))
)
| Web Ontology Language | 3 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/import/main.owl | [
"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 | 4 | yetsun/hue | desktop/core/src/desktop/templates/threads.mako | [
"Apache-2.0"
] |
# Check the multiple slot add and remove commands
source "../tests/includes/init-tests.tcl"
proc cluster_allocate_with_continuous_slots_local {n} {
R 0 cluster ADDSLOTSRANGE 0 3276
R 1 cluster ADDSLOTSRANGE 3277 6552
R 2 cluster ADDSLOTSRANGE 6553 9828
R 3 cluster ADDSLOTSRANGE 9829 13104
R 4 clus... | Tcl | 5 | dawnwalk/redis | tests/cluster/tests/23-multiple-slot-operations.tcl | [
"BSD-3-Clause"
] |
"""Tests for the mobile_app HTTP API."""
from binascii import unhexlify
from http import HTTPStatus
import json
from unittest.mock import patch
import pytest
from homeassistant.components.mobile_app.const import CONF_SECRET, DOMAIN
from homeassistant.const import CONF_WEBHOOK_ID
from homeassistant.setup import async_... | Python | 5 | MrDelik/core | tests/components/mobile_app/test_http_api.py | [
"Apache-2.0"
] |
/******************************************************************************
* Copyright 2019 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
... | Smarty | 4 | seeclong/apollo | modules/tools/gen_vehicle_protocol/template/message_manager.cc.tpl | [
"Apache-2.0"
] |
_ = require 'underscore'
fs = require 'fs'
path = require 'path'
{NylasAPIHelpers,
Thread,
DatabaseWriter,
Actions,
Message,
Thread} = require 'nylas-exports'
DeltaProcessor = require('../../src/services/delta-processor').default
fixturesPath = path.resolve(__dirname, '..', 'fixtures')
describe "DeltaProcessor"... | CoffeeScript | 4 | cnheider/nylas-mail | packages/client-app/spec/services/delta-processor-spec.coffee | [
"MIT"
] |
------------------------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2004 Dmitriy Anisimkov --
-- ... | Ada | 5 | bitcrystal/temp | src/minizip/contrib/ada/zlib.ads | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.