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 |
|---|---|---|---|---|---|
// Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/certificate_trust.h"
#include <memory>
#include <string>
#include <utility>
#import <Cocoa/Cocoa.h>
#import <SecurityInterface/SFCertificateTrustPanel.h>
... | Objective-C++ | 4 | TarunavBA/electron | shell/browser/ui/certificate_trust_mac.mm | [
"MIT"
] |
/* Copyright 2019 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/kernels/densify.cc | [
"Apache-2.0"
] |
//
// Copyright 2020 Google Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, di... | SCSS | 5 | simonziegler/material-components-web | packages/mdc-theme/_replace.scss | [
"MIT"
] |
[Desktop Entry]
Name=CorsixTH
Exec=corsix-th
Comment=Open source clone of Theme Hospital
Comment[de]=Ein Klon von Theme Hospital
Icon=corsix-th
Type=Application
Terminal=false
StartupNotify=false
Categories=Game;Simulation;
Keywords=hospital;simulation;bullfrog;
| desktop | 3 | rmnvgr/CorsixTH | CorsixTH/com.corsixth.corsixth.desktop | [
"MIT"
] |
data {
int<lower=0> J;
real y[J];
real<lower=0> sigma[J];
}
parameters {
real mu;
real logtau;
real theta_prime[J];
}
model {
mu ~ normal(0, 10);
logtau ~ normal(5, 1);
theta_prime ~ normal(0, 1);
for (j in 1:J) {
y[j] ~ normal(mu + exp(logtau) * theta_prime[j], sigma[j]);
}
}
| Stan | 4 | zhangyewu/edward | examples/eight_schools/eight_schools.stan | [
"Apache-2.0"
] |
(ns fw.lib.macros)
(defmacro ?
"Strict equality comparison"
[x y]
`(identical? ~x ~y))
(defmacro a?
"Evalute if the given value is an array"
[x expr]
`(if (.is-array Array ~x) ~expr ~x))
(defmacro l?
"Length of the given value"
[x]
`(.-length ~x))
(defmacro c->
"Clone the given array"
[arr]
... | wisp | 4 | h2non/fw | src/macros.wisp | [
"MIT"
] |
create table virtual_only (
id int primary key,
id_plus_1 int as (id + 1) virtual,
id_plus_2 int as (id + 2) virtual
);
| SQL | 4 | cuishuang/tidb | br/tests/lightning_generated_columns/data/gencol.virtual_only-schema.sql | [
"Apache-2.0"
] |
Require Import List.
Fixpoint prisoo' nd n k accu :=
match nd with
| O => rev accu
| S nd' => let ra := match k with
| O => (true, S n, (n + n))
| S k' => (false, n, k')
end in
prisoo' nd' (snd (fst ra)) (snd ra) ((fst (fst ra))::accu)
end.
D... | Coq | 3 | LaudateCorpus1/RosettaCodeData | Task/100-doors/Coq/100-doors-2.coq | [
"Info-ZIP"
] |
#!/bin/bash
set -e
if [ -z $1 ] ; then
echo "$0 <destination directory>"
exit 1
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
OCV="$( cd "${DIR}/../../.." >/dev/null 2>&1 && pwd )"
mkdir -p "${1}" # Docker creates non-existed mounts with 'root' owner, lets ensure that dir exists... | Shell | 5 | thisisgopalmandal/opencv | modules/videoio/misc/build_plugins.sh | [
"BSD-3-Clause"
] |
"""
Connection limitation.
Number of connections from one IP is limited.
We have nothing against scripting and automated queries.
Even the opposite, we encourage them. But there are some
connection limits that even we can't handle.
Currently the limits are quite restrictive, but they will be relaxed
in the future.
Us... | Python | 5 | liudonghua123/cheat.sh | lib/limits.py | [
"MIT"
] |
Setup:
$ . $TESTDIR/../setup.sh
$ printf "hello=你好\n" > test.txt
$ printf "hello=你好\n" >> test.txt
Normal search:
$ $TESTDIR/../../ag --nocolor --workers=1 --parallel 你好
test.txt:1:hello=你好
test.txt:2:hello=你好
Case-insensitive search:
$ $TESTDIR/../../ag --nocolor --workers=1 --parallel -i 你好
test.... | Perl | 3 | kknives/the_silver_searcher | tests/fail/unicode_case_insensitive.t | [
"Apache-2.0"
] |
div {
script disabled {
var a = 10;
}
}
----
div {
script disabled {
var a = 10;
}
}
=================
div {
style scoped{
span {}
}
}
----
div {
style scoped {
span {}
}
}
=================
define foo {
slot change(event) {
var a = 10;
}
}
-----
define foo {
slot chang... | Mask | 2 | atmajs/MaskJS | test/tmpl/stringify/content.mask | [
"MIT"
] |
# Placeholder file for Sprintf.pm6 in the "newer-sprintf" branch
| Perl6 | 0 | lucasbuchala/rakudo | src/core.e/Rakudo/Internals/Sprintf.pm6 | [
"Artistic-2.0"
] |
'use strict'
# TODO: this is math mode only!!
export class Latexsym
args = @args = {}
# CTOR
(generator, options) ->
symbols = @symbols = new Map([
* \mho '\u2127' # ℧
* \Join '\u2A1D' # ⨝
* \Box ... | LiveScript | 3 | fgborges/latex2e-js | src/packages/latexsym.ls | [
"MIT"
] |
//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 | 4 | VLiance/GZE | src/Lib_GZ/Gfx/Tile/LayerData.cw | [
"Apache-2.0"
] |
{#
# Copyright (c) 2017 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2014-2015 Deciso B.V.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code m... | Volt | 4 | johanneskastl/opnsense-core | src/opnsense/mvc/app/views/layout_partials/base_tabs_content.volt | [
"BSD-2-Clause"
] |
#!/usr/bin/env sage
# Use sage's built in Elliptic Curve Method for factorization of large composites
import sys
n = int(sys.argv[1])
try:
if len(sys.argv) > 2:
print(ecm.find_factor(n, int(sys.argv[2]))[0])
else:
print(ecm.find_factor(n)[0])
except:
print(0)
| Sage | 4 | CrackerCat/RsaCtfTool | sage/ecm.sage | [
"Beerware"
] |
-------------------------------------------------------------
--Copyright 2020 Science and Technologies Facilities Council
--Licensed under the MIT License
--Author Aidan Chalk, STFC Hartree Centre
import "regent"
local kernel_combine = {}
--Experimental function to test combining a set of kernels into a single kern... | Rouge | 5 | stfc/RegentParticleDSL | src/utils/kernel_combine.rg | [
"MIT"
] |
primitive ApplyReleaseBackpressureAuth
new create(from: AmbientAuth) =>
None
| Pony | 0 | presidentbeef/ponyc | packages/backpressure/auth.pony | [
"BSD-2-Clause"
] |
#!/usr/bin/env zsh
# vim:ft=zsh ts=2 sw=2 sts=2
# Note: The heavy_black_heart emoji requires $emoji2[emoji_style]
# to be rendered as the emoji red heart.
_emotty_sets[love]="
green_heart
blue_heart
purple_heart
yellow_heart
heavy_black_heart
broken_heart
heart_with_arrow
heart_with_ribbon
sparkling_... | Shell | 3 | chensanle/ohmyzsh | plugins/emotty/emotty_love_set.zsh | [
"MIT"
] |
@include "include/Parser"
BEGIN {
START_TEST("Parser.awk")
T("tokenize()", 8)
{
delete tokens
tokenize(tokens, "0")
delete expected
expected[0] = "0"
assertEqual(tokens, expected)
delete tokens
tokenize(tokens, "3.14")
delete expected
... | Awk | 4 | vitaly-zdanevich/translate-shell | test/TestParser.awk | [
"Unlicense"
] |
{
"cells": [
{
"cell_type": "markdown",
"id": "88c79f5b",
"metadata": {},
"source": [
"# Lesson 4: Deploy your first domain node with Hagrid\n",
"\n",
"<b><u>Instructors</b></u>: Ishan Mishra, Phil Culliton\n",
"\n",
"\n",
"This tutorial is a step-by-step walkthrough of how to <b>... | Jupyter Notebook | 5 | vishalbelsare/PySyft | notebooks/course3/L4_DeployNode.ipynb | [
"Apache-1.1"
] |
body {
background: url(//example.com/image.png) url(https://example.com/image.png);
background-image: url(http://example.com/image.png);
}
| CSS | 2 | acidburn0zzz/webpack | test/configCases/css/external/style2.css | [
"MIT"
] |
<html>
<!---
#======================================#
# DeV: XiX .### 9/26/11 #
# # #
# ### /##/ #
# # ,# #
# v3r 1.2 \#####` #
#======================================#
# F... | ColdFusion | 1 | 0x27/clusterd | src/lib/coldfusion/fuze.cfml | [
"MIT"
] |
import {AppPage} from '../app.po';
import {browser, logging} from 'protractor';
describe('cli-hello-world-ivy App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
page.navigateTo();
});
it('should display title',
() => { expect(page.getHeading()).toEqual('Bonjour cli-hello-wo... | TypeScript | 4 | duluca/angular | integration/cli-hello-world-ivy-i18n/e2e/fr/app.e2e-spec.ts | [
"MIT"
] |
#tag Module
Protected Module Packets
#tag Method, Flags = &h21
Private Function CreateBNLS(ID As Byte, Data As String) As String
Dim Buffer As String
MemClass.WriteWORD(Buffer, 3 + LenB(Data), True)
MemClass.WriteBYTE(Buffer, ID)
MemClass.WriteRaw(Buffer, Data)
Return Bu... | REALbasic | 5 | carlbennett/BNRBot | src/Modules/Packets.rbbas | [
"MIT"
] |
//
// Copyright 2018 Google Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, di... | SCSS | 5 | simonziegler/material-components-web | packages/mdc-menu-surface/_mixins.scss | [
"MIT"
] |
#tag Class
Protected Class UIColorPickerViewController
Inherits UIKit.UINavigationController
#tag Method, Flags = &h1000
Sub Constructor()
// Calling the overridden superclass constructor.
// Note that this may need modifications if there are multiple constructor choices.
// Possible constructor calls:
... | Xojo | 4 | kingj5/iOSKit | Modules/Extensions/UIColorPickerViewController.xojo_code | [
"MIT"
] |
namespace OpenAPI.Model
open System
open System.Collections.Generic
module InlineObject1 =
//#region InlineObject1
type inline_object_1 = {
AdditionalMetadata : string;
File : System.IO.Stream;
}
//#endregion
| F# | 3 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/model/InlineObject1.fs | [
"Apache-2.0"
] |
package com.baeldung.primary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Created by Gebruiker on 7/19/2018.
*/@Service
public class ManagerService {
@Autowired
private Manager manager;
public Manager getManager() {
return... | Java | 4 | DBatOWL/tutorials | spring-core-2/src/main/java/com/baeldung/primary/ManagerService.java | [
"MIT"
] |
--TEST--
ZE2 Late Static Binding stacking static calleds
--FILE--
<?php
class TestA {
public static function test() {
echo get_class(new static()) . "\n";
TestB::test();
echo get_class(new static()) . "\n";
TestC::test();
echo get_class(new static()) . "\n";
TestBB::... | PHP | 3 | thiagooak/php-src | Zend/tests/lsb_005.phpt | [
"PHP-3.01"
] |
# This file contains tests that can't be run on Joule 570x
# /docker/tester-exec.sh will use this file to remove tests from a manifest
| Mask | 0 | kraj/intel-iot-refkit | meta-iotqa/conf/test/570x.mask | [
"MIT"
] |
@X { val = Env.cur.homeDir }
class Foo {}
facet class X { const Obj? val } | Fantom | 1 | fanx-dev/fanx | compiler/testCompilerx/res/facet/testErrors4.fan | [
"AFL-3.0"
] |
.root
font: var(--font-size-sm)/var(--line-height-sm) var(--font-primary)
margin: var(--spacing-xs) 0
background: var(--color-back)
border-radius: 2em
border: 1px solid var(--color-subtle)
padding-right: 1em
display: inline-flex
max-width: 300px
.input
font: inherit
background: ... | Sass | 3 | snosrap/spaCy | website/src/styles/newsletter.module.sass | [
"MIT"
] |
$ORIGIN simple.com.
$TTL 300
@ IN SOA ns3.serverfault.com. sysadmin.stackoverflow.com. 2020022300 3600 600 604800 1440
172800 IN NS ns-1313.awsdns-36.org.
172800 IN NS ns-736.awsdns-28.net.
172800 IN NS ns-cloud-c1.googledomains.com.
172800 IN NS ns-c... | DNS Zone | 3 | IT-Sumpfling/dnscontrol | commands/test_data/simple.com.zone | [
"MIT"
] |
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"accelerator": "TPU",
"colab": {
"name": "Keras MNIST TPU end-to-end - training, saved model and online inference",
"provenance": [],
"collapsed_sections": []
},
"environment": {
"name": "tf22-cpu.2-2.m47",
"type": "gcloud",
"uri": "gcr.io... | Jupyter Notebook | 5 | memeyankm/training-data-analyst | courses/fast-and-lean-data-science/01_MNIST_TPU_Keras.ipynb | [
"Apache-2.0"
] |
-- Copyright 2019 Stanford University
--
-- 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... | Rouge | 5 | syamajala/cholesky | mmat.rg | [
"Apache-2.0"
] |
# @prefix without prefix name .
@prefix <http://www.w3.org/2013/TurtleTests/> .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-prefix-04.ttl | [
"CC-BY-3.0"
] |
#+TITLE: ui/doom-quit
#+DATE: February 19, 2017
#+SINCE: v2.0
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configurations][Configuratio... | Org | 4 | leezu/doom-emacs | modules/ui/doom-quit/README.org | [
"MIT"
] |
// @lib: es5,es2015.promise
// @noEmitHelpers: true
// @target: ES5
declare var y;
async function hoisting() {
var a0, a1 = 1;
function z() {
var b0, b1 = 1;
}
if (true) {
var c0, c1 = 1;
}
for (var a = 0; y;) {
}
for (var b in y) {
}
... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/es5-asyncFunctionHoisting.ts | [
"Apache-2.0"
] |
unit
class Abody
implement A
import B
body procedure MyA
var b : ^B
new b
b -> MyB
put "A"
end MyA
body procedure MyA2
put "C"
end MyA2
end Abody
| Turing | 3 | ttracx/OpenTuring | turing/test/implement by example/Abody.tu | [
"MIT"
] |
{{!-- Fancy HTML based dashboard
Uses bootstrap and chartjs to generate static dashboard.
Meta variables:
- title
- theme
Colors from: http://clrs.cc/
--}}
<!DOCTYPE html>
<html>
<head>
<!-- Bootstrap and font awesome -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content... | Harbour | 4 | zix99/sshsysmon | sshsysmon/templates/htmldash.hb | [
"MIT"
] |
# this file has been copied by the R-package antaresXpansion
#
# this file should have been copied in the temporary folder of
# current expansion optimisation, i.e.:
# study_path/user/expansion/temp/
#
# all data files are supposed to be located in the same folder
data;
#number of mc years
set YEAR := include in_m... | AMPL | 3 | AntaresSimulatorTeam/antares-launcher | tests/data/STUDIES-IN-FOR-TEST/one_node_v7/user/expansion/temp/master_dat.ampl | [
"Apache-2.0"
] |
#!/usr/bin/env io
/* The Great Computer Language Shootout
http://shootout.alioth.debian.org
Contributed by Ian Osgood
*/
Vector setItemType("float64")
vector := method(v := Vector clone; call evalArgs foreach(n, v append(n)); v)
Body := Object clone do(
solarMass := 4 * Number constants pi squared
d... | Io | 4 | akluth/io | samples/shootout/nbody.io | [
"BSD-3-Clause"
] |
const fs = require("fs");
module.exports = {
findBundle: function(i, options) {
var files = fs.readdirSync(options.output.path);
return ["runtime.js", files.filter(f => /^main/.test(f))[0]];
}
};
| JavaScript | 3 | 1shenxi/webpack | test/configCases/split-chunks/runtime-chunk-no-async/test.config.js | [
"MIT"
] |
#\30hash {} | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/XetGJrWBJuC-NtgpX2eq1Q/input.css | [
"Apache-2.0",
"MIT"
] |
#############################################################################
##
#W sml512.cy GAP library of groups Hans Ulrich Besche
## Bettina Eick, Eamonn O'Brien
##
SMALL_GROUP_LIB[ 512 ][ 103 ] := [
"%%%%%%%%(D9-->e1)<,,8c%n%D2&%%!{PHD=]!}uHD8... | Cycript | 3 | hulpke/smallgrp | small7/sml512.cy | [
"Artistic-2.0"
] |
#pragma once
#include "test/mocks/upstream/priority_set.h"
#include "test/test_common/simulated_time_system.h"
#include "load_balancer_fuzz_base.h"
namespace Envoy {
namespace Upstream {
class ZoneAwareLoadBalancerFuzzBase : public Event::TestUsingSimulatedTime,
public LoadBalan... | C | 4 | dcillera/envoy | test/common/upstream/zone_aware_load_balancer_fuzz_base.h | [
"Apache-2.0"
] |
// scalac: -Yimports:hello.world.minidef
class C {
val v: Numb = Magic
def greet() = println("hello, world!")
}
| Scala | 3 | jamesanto/scala | test/files/neg/yimports-custom/C_2.scala | [
"Apache-2.0"
] |
server {
listen 80;
server_name localhost localhost.local;
access_log /var/log/nginx/localhost_access.log;
error_log /var/log/nginx/localhost_error.log warn;
root /var/www/localhost;
index index.php index.html;
sendfile off;
location ~* \.php {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fp... | ApacheConf | 3 | tonitone/vapnosta | vhosts/nginx.localhost.vhost | [
"MIT"
] |
Darwin
Dispatch
MachO
ObjectiveC
libkern
os
| Text | 0 | lwhsu/swift | utils/api_checker/sdk-module-lists/fixed-clang-modules-common.txt | [
"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.
*)
type init_result = {
ok: bool;
errors: Flow_error.ErrorSet.t Utils_js.FilenameMap.t;
warnings: Flow_error.ErrorSet.t Utils_js... | OCaml | 4 | zhangmaijun/flow | src/services/inference/init_js.mli | [
"MIT"
] |
import "autoLayout"
class Title : Element { maxSize = { 1430, 0 }, font = { "Verdana", 60, bold = true }, fgColor = textColor; };
class CCol : Col { hAlignment = center, vAlignment = center; };
class BMBar : Bar { maxSize.h = 60; };
class MBar : Bar { maxSize.h = 30; };
define textColor = 0xFF2F3A3E;
class Header : ... | eC | 4 | N-eil/ecere-sdk | autoLayout/base.ec | [
"BSD-3-Clause"
] |
# ---
# jupyter:
# kernelspec:
# display_name: R
# language: R
# name: ir
# ---
# %% [markdown]
# This is a jupyter notebook that uses the IR kernel.
# %%
sum(1:10)
# %%
plot(cars)
# %%
| R | 3 | st--/jupytext | tests/notebooks/mirror/ipynb_to_percent/ir_notebook.low.r | [
"MIT"
] |
inherit eutils
ECLASS=patch
INHERITED="$INHERITED $ECLASS"
DESCRIPTION="Base class for applying patches."
patch_base=${FILESDIR}/patch
addsrc_base=${FILESDIR}/addsrc
# {{{ Patch applay
patch_dir ()
{
local dir=$1
local i=""
local patch_from_file=""
EPATCH_SUFFIX="patch.bz2"
EPATCH_SIN... | Gentoo Eclass | 4 | yamadharma/gentoo-portage-local | eclass/patch.eclass | [
"CC-BY-4.0"
] |
"!dlroW ,olleH"> , v
| : <
@ | Befunge | 0 | rish246/HelloWorld | Befunge/HelloWorld.befunge | [
"MIT"
] |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Win7Elevate.rc
//
#define IDD_EMBEDDED_DLL 110
#define IDD_EMBEDDED_TIOR 111
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC ... | C | 2 | OsmanDere/metasploit-framework | external/source/exploits/bypassuac/Win7Elevate/Resource.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
answer = ""
| TOML | 0 | vanillajonathan/julia | stdlib/TOML/test/testfiles/valid/string-empty.toml | [
"Zlib"
] |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.6;
/**
* @title BlockhashStore
* @notice This contract provides a way to access blockhashes older than
* the 256 block limit imposed by the BLOCKHASH opcode.
* You may assume that any blockhash stored by the contract is correct.
* Note that the contract de... | Solidity | 5 | mhrones/solidity-challenge | node_modules/@chainlink/contracts/src/v0.6/dev/BlockhashStore.sol | [
"MIT"
] |
(***********************************************************
AMX VOLUME CONTROL LIBRARY
v1.0.0
Website: https://github.com/amclain/amx-lib-volume
-- THIS IS A THIRD-PARTY LIBRARY AND IS NOT AFFILIATED WITH --
-- THE AMX ORGANIZATION --
... | NetLinx | 5 | RBSystems/amx-lib-volume | amx-lib-volume.axi | [
"Apache-2.0"
] |
#tag Class
Private Class AVCaptureMovieFileOutput
Inherits AVFoundation.AVCaptureFileOutput
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("AVCaptureMovieFileOutput")
return ref
End Function
#tag EndMethod
#tag ComputedProperty, Flags = &h0
#... | Xojo | 3 | kingj5/iOSKit | Modules/AVFoundation/AVCaptureMovieFileOutput.xojo_code | [
"MIT"
] |
Array = function (n:number, s:string) {return n;}; | TypeScript | 0 | nilamjadhav/TypeScript | tests/cases/compiler/redefineArray.ts | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | kklt2002/vscode | src/vs/editor/common/controller/cursorAtomicMoveOperations.ts | [
"MIT"
] |
<GameFile>
<PropertyGroup Name="LogoLayer" Type="Layer" ID="1d8c7d35-cb9f-4d43-a9f6-685fefd7dea5" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="4" ctype="GameLayerObjectData">
<Size X="640.0000" Y=... | Csound | 3 | tony2u/Medusa | Test/Test/Art/Src/Test/cocosstudio/LogoLayer.csd | [
"MIT"
] |
@page { @top-left {} } | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/kdJ9F7n35563o0T6W1TEXw/input.css | [
"Apache-2.0"
] |
dnl
dnl Check for an nm(1) utility.
dnl
AC_DEFUN([FA_PROG_NM],
[
case "${NM-unset}" in
unset) AC_CHECK_PROGS(NM, nm, nm) ;;
*) AC_CHECK_PROGS(NM, $NM nm, nm) ;;
esac
AC_MSG_CHECKING(nm flags)
case "${NMFLAGS-unset}" in
unset) NMFLAGS= ;;
esac
AC_MSG_RESULT($NMFLAGS)
A... | M4 | 4 | CyberFlameGO/milvus | internal/core/src/index/thirdparty/faiss/acinclude/fa_prog_nm.m4 | [
"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++ | 4 | jzjonah/apollo | modules/perception/lidar/app/lidar_app_lidar_pipeline_test.cc | [
"Apache-2.0"
] |
package com.baeldung.encrypt;
import org.junit.Test;
import javax.crypto.KeyGenerator;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import java.io.File;
import java.io.IOException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import j... | Java | 4 | zeesh49/tutorials | core-java/src/test/java/com/baeldung/encrypt/FileEncrypterDecrypterIntegrationTest.java | [
"MIT"
] |
-- Tests for errorformat.
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local command, expect = helpers.command, helpers.expect
describe('errorformat', function()
setup(clear)
it('is working', function()
command("set efm=%EEEE%m,%WWWW%m,%+CCCC%.%#,%-GGGG%.%#")
... | Lua | 4 | uga-rosa/neovim | test/functional/legacy/106_errorformat_spec.lua | [
"Vim"
] |
#include "colors.inc"
#include "textures.inc"
camera {
location <3, 0.7, -4>
look_at <1.5, 0.7, 0>
}
// Two light sources almost at the same position
light_source {
<5, 9, -2>
color Gray60
}
light_source {
<5, 9, -2.1>
color Gray60
}
// Front wall
box {
<0, 0, 0> <10, 10, 1>
pigmen... | POV-Ray SDL | 4 | spcask/pov-ray-tracing | src/scene07.pov | [
"MIT"
] |
hits = load '$INPUT' using com.twitter.elephantbird.pig.PigLuceneIndexingIntegrationTest\$Loader('--file', '$QUERY_FILE');
store hits into '$OUTPUT' using PigStorage('\t');
| PigLatin | 3 | bcoverston/elephant-bird | pig-lucene/src/test/resources/com/twitter/elephantbird/pig/search_file.pig | [
"Apache-2.0"
] |
dnl Copyright (c) Facebook, Inc. and its affiliates.
dnl
dnl This source code is licensed under the MIT license found in the
dnl LICENSE file in the root directory of this source tree.
dnl AC_ASSERT_OCAML_PKG([pkg_name], [pkg_version])
dnl
dnl fails if $pkg_name is not installed; also fails if it is not
dnl installed ... | M4 | 4 | livinlife6751/infer | m4/ac_assert_ocaml_pkg.m4 | [
"MIT"
] |
-- data structures & static data
import concat, remove, insert from table
Set = (items) -> {k,true for k in *items}
class Stack
__tostring: => "<Stack {"..concat(self, ", ").."}>"
new: (...) =>
@push ...
nil
pop: =>
remove @
push: (value, ...) =>
insert @, value
if ...
@push ...
... | MoonScript | 4 | Shados/moonscript | moonscript/data.moon | [
"MIT",
"Unlicense"
] |
// Copyright 2021 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Protocol Buffer | 4 | goodarzysepideh/grpc | test/core/resource_quota/memory_quota_fuzzer.proto | [
"Apache-2.0"
] |
package com.baeldung.concurrent;
import static org.openjdk.jcstress.annotations.Expect.ACCEPTABLE;
import static org.openjdk.jcstress.annotations.Expect.ACCEPTABLE_INTERESTING;
import org.openjdk.jcstress.annotations.Actor;
import org.openjdk.jcstress.annotations.Arbiter;
import org.openjdk.jcstress.annotations.JCStr... | Java | 5 | DBatOWL/tutorials | core-java-modules/core-java-concurrency-2/src/test/java/com/baeldung/concurrent/MyCounterJCStressManualTest.java | [
"MIT"
] |
include upx.inc
UPX_BRANCH = "devel"
SRCREV = "f88b85e12660e9fdb453bbb2380107b741ce4179"
SRC_URI = " \
git://github.com/upx/upx.git;branch=${UPX_BRANCH} \
file://0001-Include-lzma-sdk.patch"
S = "${WORKDIR}/git"
DEFAULT_PREFERENCE = "-1"
| BitBake | 3 | dtischler/px30-test | layers/meta-balena/meta-balena-common/recipes-core/upx/upx_git.bb | [
"Apache-2.0"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Estimate all Student's t-GARCH model parameters (gamma, nu, omega, A and B)
**
** Date:
** 16/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.F. Hoogerheide & S.J. Koopman
**
*/
#include ... | Ox | 5 | tamerdilaver/Group4_Code_Data | CS_SIM_1_t-GARCH.ox | [
"MIT"
] |
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
'SELENE CK file '
BEGIN_ARRAY 1 107
'SELENE CK data type 3 '
'35315BA7^8'
'35315BBE^8'
'-1FFB8'
'1'
'3'
'1'
107
'195D8D5FCA2AD^0'
'D5E9DF14330CE^0'
'32D7A1FBA88186^0'
'-80A43B104F2F9^0'
'-6E19B8BAC710... | XC | 3 | ladoramkershner/ale | tests/pytests/data/MVA_2B2_01_02329N002E0302/SEL_M_ALL_D_V02_0_sliced_-131000.xc | [
"Unlicense"
] |
20 5 0 0
0 1 8 7 3 8 1 4 5 6 2 [0] [0] [0] [0] [0] [0] [0] [0]
1 1 5 11 15 17 18 16 [0] [15] [14] [6] [16]
2 1 3 9 10 20 [6] [-3] [10]
3 1 2 10 13 [0] [1]
4 1 1 18 [1]
5 1 5 13 10 20 16 17 [7] [0] [12] [-1] [-1]
6 1 2 20 12 [12] [-3]
7 1 5 17 18 16 10 13 [25] [-1] [25] [5] [14]
8 1 6 13 18 14 19 12 11 [10] [-1... | Eagle | 2 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/sm_j20/psp21.sch | [
"Apache-2.0"
] |
<svg width="101" height="58" viewBox="0 0 101 58" xmlns="http://www.w3.org/2000/svg"><path d="M17.582.3L.915 41.713l32.94 13.295L17.582.3zm83.333 41.414L67.975 55.01 84.25.3l16.665 41.414zm-48.998 5.403L63.443 35.59H38.386l11.527 11.526v5.905l-3.063 3.32 1.474 1.36 2.59-2.806 2.59 2.807 1.475-1.357-3.064-3.32v-5.906zm1... | SVG | 0 | profsmallpine/uppy | website/src/images/uppy.svg | [
"MIT"
] |
codegenUtils = require './codegenUtils'
_ = require 'underscore'
module.exports (terms) =
listTerm = terms.term {
constructor (items) =
self.isList = true
self.items = items
generate (scope) =
self.generateIntoBuffer @(buffer)
splatArguments = te... | PogoScript | 4 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/list.pogo | [
"MIT"
] |
import "ecere"
class Form1 : Window
{
background = 0;
opacity = 0;
font = { "Arial", 40 };
size = { 220, 60 };
#if defined(__linux__) // Alpha blended windows only work in OpenGL on Linux at the moment
displayDriver = "OpenGL";
#endif
alphaBlend = true;
moveable = true;
stayOnTop = true;
... | eC | 4 | N-eil/ecere-sdk | samples/guiAndGfx/clock/clock.ec | [
"BSD-3-Clause"
] |
+/ ((⍴ 2 3 ⍴ 1 2 3 4 5 6) + 2) ⍝ 9 | APL | 3 | mbudde/apltail | tests/test7.apl | [
"MIT"
] |
///////////////////////////////////////////////////
// Overdrive //
// //
// Simple overdrive distortion created by //
// applying a non-linear transfer function to //
// the input signal. //
// Adapt... | ChucK | 4 | mariobuoninfante/chugins | Overdrive/overdrive-help.ck | [
"MIT"
] |
use v6;
say qq/Problem 7
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see
that the 6^(th) prime is 13.
What is the 10001^(st) prime number?
/;
say (2...*).grep({is-prime($_)})[^10001][*-1];
| Perl6 | 4 | Wikunia/hakank | perl6/euler7.p6 | [
"MIT"
] |
static const uint16_t in_angles[23] = {
0x0, 0x3a48, 0x3e48, 0x40b6, 0x4248, 0x43db, 0x44b6, 0x4648,
0xba48, 0xbe48, 0xc0b6, 0xc248, 0xc3db, 0xc4b6, 0xc648, 0x4648,
0x4712, 0x47db, 0x4852, 0x48b6, 0x491b, 0x497f, 0x4a48
};
static const uint16_t in_sqrt[8] = {
0xb666, 0x0, 0x2e66, 0x3c00, 0x4000, 0x... | Max | 2 | Trifunik/zephyr | tests/lib/cmsis_dsp/fastmath/src/f16.pat | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.