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 |
|---|---|---|---|---|---|
"------------------------------------------------------------------------------
" Description: Vim Ada/Dec Ada compiler file
" Language: Ada (Dec Ada)
" $Id: decada.vim 887 2008-07-08 14:29:01Z krischik $
" Copyright: Copyright (C) 2006 Martin Krischik
" Maintainer: Martin Krischik <krischik@users.so... | VimL | 5 | uga-rosa/neovim | runtime/autoload/decada.vim | [
"Vim"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = '';
checkConfig(config);
@endpoint = getEndpoint('cnip', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function getEndpo... | Tea | 4 | aliyun/alibabacloud-sdk | cnip-20201201/main.tea | [
"Apache-2.0"
] |
---
title: "Chapter 2"
output:
html_document:
css: style.css
highlight: tango
---
```{r, include=FALSE}
library(knitr)
hook_output <- knit_hooks$get("output")
knit_hooks$set(output = function(x, options) {
lines <- options$output.lines
if (is.null(lines)) {
return(hook_output(x, options)) # ... | RMarkdown | 5 | chuvanan/rdatatable-cookbook | cookbook/chapter2-selecting-data.rmd | [
"CC-BY-4.0"
] |
<%@ WebHandler Language="C#" CodeBehind="Echo.ashx.cs" Class="WebServer.Echo" %>
| ASP | 0 | pyracanda/runtime | src/libraries/Common/tests/System/Net/Prerequisites/Servers/CoreFxNetCloudService/WebServer/Echo.ashx | [
"MIT"
] |
function addition(a,b){ return a+b; }
| HTML+ERB | 3 | mdesantis/rails | actionpack/test/fixtures/star_star_mime/index.js.erb | [
"MIT"
] |
package platform::Cygwin;
use strict;
use warnings;
use Carp;
use vars qw(@ISA);
require platform::mingw;
@ISA = qw(platform::mingw);
# Assume someone set @INC right before loading this module
use configdata;
sub sharedname {
my $class = shift;
my $lib = platform::mingw->sharedname(@_);
$lib =~ s|^lib|... | Perl | 3 | pmesnier/openssl | Configurations/platform/Cygwin.pm | [
"Apache-2.0"
] |
# Makefile for core library for VMS
# contributed by Jouk Jansen joukj@hrem.nano.tudelft.nl
# Last revision : 30 November 2007
.first
define gl [---.include.gl]
define math [-.math]
define vbo [-.vbo]
define shader [-.shader]
define swrast [-.swrast]
define array_cache [-.array_cache]
define main [-.main]
def... | Module Management System | 3 | manggoguy/parsec-modified | pkgs/libs/mesa/src/src/mesa/tnl/descrip.mms | [
"BSD-3-Clause"
] |
package foo
open class A {
fun f(x: Any?) {}
} | Groff | 2 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/methodNullabilityChanged/A.kt.new.2 | [
"Apache-2.0"
] |
#!/bin/sh
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \... | Shell | 4 | Greg-Muchka/curl | packages/OS400/make-include.sh | [
"curl"
] |
#define REFLECTIVEDLLINJECTION_VIA_LOADREMOTELIBRARYR
#define REFLECTIVEDLLINJECTION_CUSTOM_DLLMAIN
#include "ReflectiveLoader.c"
#include <stdio.h>
#include <stdint.h>
#include <windows.h>
#include "CBitsCom.h"
#include "..\BitsArbitraryFileMove\BitsArbitraryFileMove.h"
PVOID m_pOldValue = nullptr;
#define ... | C++ | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2020-0787/CVE-2020-0787/dllmain.cpp | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
#!/bin/bash
readonly THIS_DIR=$(cd $(dirname $0); pwd)
readonly DOCKERBUILD_DIR="$THIS_DIR/../dockerbuild"
readonly SCRIPTS_JS_DIR="$DOCKERBUILD_DIR/scripts-js"
| Shell | 4 | coreyscherbing/angular | aio/aio-builds-setup/scripts/_env.sh | [
"MIT"
] |
{#ASda}
========
Conclusion
----------
<div class="hidden">
\begin{code}
main = putStrLn "Easter Egg: to force Makefile"
\end{code}
</div>
Conclusion
==========
Liquid Types
------------
<br>
**Types** lift **Program Logic + Analysis** to Modern Programs
<br>
<div class="fragment">
------------------- ... | Literate Haskell | 2 | curiousleo/liquidhaskell | docs/slides/BOS14/lhs/12_Conclusion.lhs | [
"MIT",
"BSD-3-Clause"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:f71231e27643b17f8d63bda4acfb915ecac7e39138d1dd7a645abd26aa228eb3
size 576
| Nit | 0 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Rapeseed/info/arc0006.nit | [
"BSD-3-Clause-LBNL"
] |
import _ from 'underscore'
import moment from 'moment-timezone'
import React from 'react'
import {DateUtils} from 'nylas-exports'
import {RetinaImg} from 'nylas-component-kit'
import b64Imgs from './email-images.json'
import {PLUGIN_URL} from '../scheduler-constants'
const TZ = moment.tz(DateUtils.timeZone).format("z"... | JSX | 5 | cnheider/nylas-mail | packages/client-app/internal_packages/composer-scheduler/lib/composer/proposed-time-list.jsx | [
"MIT"
] |
trait DynEq {}
impl<'a> PartialEq for &'a (dyn DynEq + 'static) {
fn eq(&self, _other: &Self) -> bool {
true
}
}
impl Eq for &dyn DynEq {} //~ ERROR E0308
fn main() {
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/error-codes/E0308-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"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 | 4 | claymccoy/asgard | grails-app/views/queue/show.gsp | [
"Apache-2.0"
] |
{
parser: "json5",
} | JSON5 | 0 | lenkan/node-config | test/16-config/default.json5 | [
"MIT"
] |
--TEST--
Binary integer strings (64bit)
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
?>
--FILE--
<?php
/* Using binary prefix notation lowercase */
/* Maximum value representable as integer */
$binary = 0b111111111111111111111111111111111111111111111111111111111111111;
var_d... | PHP | 5 | NathanFreeman/php-src | tests/lang/integer_literals/binary_64bit.phpt | [
"PHP-3.01"
] |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix : <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://drobilla.net/software/lilv>
a :Project ;
:bug-database <http://dev.drobilla.net/query?status=new&... | Turtle | 3 | joshrose/audacity | lib-src/lv2/lilv/lilv.ttl | [
"CC-BY-3.0"
] |
static const uint16_t in_com1[350] = {
0x34f0, 0x3d2e, 0x3a9b, 0xbdc0, 0x345d, 0x395d, 0x3e3f, 0x3604,
0x3545, 0xbc10, 0x3cdc, 0xbb8e, 0x3016, 0x38f8, 0x3cc5, 0x37ce,
0xb4f5, 0xbd88, 0x3286, 0x3b2f, 0xbf6a, 0xb836, 0xba20, 0x3c62,
0x379e, 0x3ce9, 0xbebf, 0xbb5e, 0xb9b1, 0x38d4, 0xb1db, 0xbc70,
0xb28... | Max | 1 | psychogenic/zephyr | tests/lib/cmsis_dsp/distance/src/f16.pat | [
"Apache-2.0"
] |
' Class for walking an astar graph
' It's up to you to make the graph yourself.
Import "astar_node.bmx"
Import "priority_queue.bmx"
Import "Callback.bmx"
' Customised callback class
Type AStarCallback Extends Callback
Field node:AStarNode;
Field queue:PriorityQueue
End Type
Type AStarGraphWalker
' public
' Const... | BlitzMax | 5 | jabdoa2/blitzmax | samples/aaronkoolen/AStar/astar_graph_walker.bmx | [
"Zlib"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
/// <include file="VoFunctionDocs.xml" path="Runtimefunctions/errstring/*" />
FUNCTION ErrString(dwNewReturnCode AS DWORD) AS STRING
LOCAL cResou... | xBase | 5 | orangesocks/XSharpPublic | Runtime/XSharp.Core/Functions/Error.prg | [
"Apache-2.0"
] |
module.exports = function sanitizeName(s) {
return s.replace(/[^_a-zA-Z0-9]/g, ``).replace(/\b\w/g, l => l.toUpperCase())
}
| JavaScript | 4 | JQuinnie/gatsby | packages/gatsby-source-mongodb/src/sanitize-name.js | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "TestData cmdlets" -Tags "CI" {
Context "Get-TypeData" {
It "System.DateTime" {
(Get-TypeData System.DateTime).TypeName | Should -Be System.DateTime
# Supports pipelining?
("System.DateTime"... | PowerShell | 5 | rdtechie/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/typedata.tests.ps1 | [
"MIT"
] |
const neg = @import("negXi2.zig");
const testing = @import("std").testing;
fn test__negti2(a: i128, expected: i128) !void {
var result = neg.__negti2(a);
try testing.expectEqual(expected, result);
}
test "negdi2" {
// TODO ensuring that math.minInt(i128); returns error
try test__negti2(-3, 3);
tr... | Zig | 4 | lukekras/zig | lib/std/special/compiler_rt/negti2_test.zig | [
"MIT"
] |
import "regent"
local c = regentlib.c
struct BlurConfig
{
filename_image : int8[256],
filename_blur : int8[256],
parallelism : int,
}
local cstring = terralib.includec("string.h")
terra print_usage_and_abort()
c.printf("Usage: regent.py blur.rg [OPTIONS]\n")
c.printf("OPTIONS\n")
c.printf(" -h ... | Rouge | 3 | StanfordLegion/bootcamp2017 | Blur/blur_config.rg | [
"Apache-2.0"
] |
<form>
Email: <input type="text" [(ngModel)]="user.email" name="email"/><br />
Name: <input type="text" [(ngModel)]="user.name" name="name"/><br />
<input type="submit" (click)="addUser()" value="Add User"/>
</form>
<br />
<table>
<tr *ngFor="let user of res" >
<td>{{user.email}}
</td>
<td>{{user.name}}</td>
</tr>
</t... | HTML | 3 | zeesh49/tutorials | guest/webservices/rest-client/rest-client/src/app/users.component.html | [
"MIT"
] |
# Written by Bob Rotsted
# Copyright Reservoir Labs, 2014.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This ... | Bro | 5 | reservoirlabs/bro-scripts | sumstats/unique-hosts.bro | [
"Apache-2.0"
] |
#
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | CMake | 4 | EricRemmerswaal/tensorflow | tensorflow/lite/tools/cmake/modules/fp16_headers.cmake | [
"Apache-2.0"
] |
require "spec"
require "yaml"
private def it_parses(string, expected, file = __FILE__, line = __LINE__)
it "parses #{string.inspect}", file, line do
YAML::Schema::FailSafe.parse(string).should eq(expected)
end
end
private def it_raises_on_parse(string, message, file = __FILE__, line = __LINE__)
it "raises o... | Crystal | 4 | mgomes/crystal | spec/std/yaml/schema/fail_safe_spec.cr | [
"Apache-2.0"
] |
(defvar *paip-pdf-uri* "https://github.com/norvig/paip-lisp/raw/master/")
(defun open-pdf (&optional (part 1))
(let* ((name (format nil "PAIP-part~A.pdf" part))
(path (namestring
(merge-pathnames
name
(asdf:system-source-directory (asdf:find-system :paip))))... | Common Lisp | 3 | sethaldini/paip-lisp | lisp/open-pdf.lisp | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M16,7l3,0l-4,-4... | XML | 2 | bubenheimer/androidx | compose/material/material/icons/generator/raw-icons/twotone/mobiledata_off.xml | [
"Apache-2.0"
] |
<h3><code>native input</code></h3>
Selected: {{selected1}}
<ul matSelection [dataSource]="data" [matSelectionMultiple]="true" (matSelectionChange)="selected1 = getCurrentSelected($event)">
<input type="checkbox" matSelectAll #allToggler="matSelectAll"
[checked]="allToggler.checked | async"
[indeterminate]... | HTML | 3 | tungyingwaltz/components | src/components-examples/material-experimental/selection/mat-selection-list/mat-selection-list-example.html | [
"MIT"
] |
h2. Abbr Plugin
The Abbr Plugin will wrap selected contents within an +<abbr>+ tag. You can then specify a title text to describe the abbreviation.
endprologue.
h3. Functional Description
To create an abbreviation highlight some text and click the abbreviation icon from the format tab. Now you can enter the descrip... | Textile | 4 | luciany/Aloha-Editor | doc/guides/source/plugin_abbr.textile | [
"CC-BY-3.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.
#define MAX_SAVE_SLOTS 200
#define MINUTES_TO_RECONNECT 10
#define INVALID_SAVE_INFO_SLOT -1
enum saveData {
nameAdler,
... | PAWN | 5 | EPIC-striker/playground | pawn/Elements/Player/Connections/SaveInfo.pwn | [
"MIT"
] |
// Flash the BeagleBone USR2 LED 5 times at 3.33Hz.
.origin 0
.entrypoint start
// On-board LEDs
#define GPIO1 0x4804C000
#define CLEARDATAOUT_OFFSET 0x190
#define SETDATAOUT_OFFSET 0x194
#define USR0_GPIO1_21 1 << 21
#define USR1_GPIO1_22 1 << 22
#define USR2_GPIO1_23 1 << 23
#define USR3_GPIO1_24 ... | Parrot Assembly | 4 | tchamelot/prusst | examples/pasm/barebone_blink_pru1.pasm | [
"Apache-2.0",
"MIT"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-MISALIGN_JMP-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 l... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-MISALIGN_JMP-01.elf.objdump | [
"Apache-2.0"
] |
// Copyright 2014 the V8 project 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 "src/compiler/operator-properties.h"
#include "src/compiler/js-operator.h"
#include "src/compiler/linkage.h"
#include "src/compiler/opcodes.h"... | C++ | 5 | EXHades/v8 | src/compiler/operator-properties.cc | [
"BSD-3-Clause"
] |
#!/usr/bin/pike
// -*- mode: pike -*-
// $Id: moments.pike,v 1.1 2004-05-19 18:10:48 bfulgham Exp $
// http://www.bagley.org/~doug/shootout/
// from: Fredrik Noring
class Moments
{
int N;
float median;
float mean;
float average_deviation;
float standard_deviation;
float variance;
float skew... | Pike | 4 | kragen/shootout | bench/moments/moments.pike | [
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="UTF-8"?>
<SCL xmlns:sxy="http://www.iec.ch/61850/2003/SCLcoordinates" xmlns="http://www.iec.ch/61850/2003/SCL" xmlns:txy="http://www.iec.ch/61850/2003/Terminal" xmlns:scl="http://www.iec.ch/61850/2003/SCL" xsi:schemaLocation="http://www.iec.ch/61850/2003/SCL SCL.xsd" xmlns:xsi="http://www.... | SuperCollider | 3 | JakobVogelsang/openscdtest.github.io | test/testfiles/validators/doandsdotestfile.scd | [
"Apache-2.0"
] |
package universe_test
import "testing"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,double,string,string
#group,false,false,false,false,true,true
#default,_result,,,,,
,result,table,_time,_value,_field,_measurement
,,0,2018-05-22T19:53:26Z,34.98234271799806,active,me... | FLUX | 4 | metrico/flux | stdlib/universe/elapsed_median_test.flux | [
"MIT"
] |
<?Lassoscript
// Last modified 3/8/10 by ECL, Landmann InterActive
// FUNCTIONALITY
// This page displays a template preview
// Debugging
// Var('svDebug' = 'Y');
'<!-- preview_template -->\n';
// Get the Content ID of the special page "Template Preview"
Var:'SQLGetPreviewID' = '/* 15 RenderPage - $SQLGetPreviewID ... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/admin/preview_template.lasso | [
"MIT"
] |
# CTPtest
用ctp官方接口写的一个简单demo,具备行情、交易、k线数据以及策略功能,可以连接simnow模拟交易~<br>
编译环境是windows+vs2015,如果要用在linux上,需要用linux版的ctp api
# 博客地址
http://blog.csdn.net/u012234115/article/details/70195889
# 截图
 {
win = w;
win.on('close', function() {
if (!close_tested) {
document.getElementById('result2').innerHTML = 'success';
... | HTML | 3 | namaljayathunga/nw.js | test/remoting/wopen-obj-navigate/index.html | [
"MIT"
] |
.ListItem {
list-style-type: none;
}
.Input {
cursor: pointer;
}
.Label {
cursor: pointer;
padding: 0.25rem;
color: #555;
}
.Label:hover {
color: #000;
}
.IconButton {
padding: 0.25rem;
border: none;
background: none;
cursor: pointer;
}
| CSS | 3 | vegYY/react | packages/react-devtools-shell/src/app/ToDoList/ListItem.css | [
"MIT"
] |
" ";
" ";
" ";
";";
"(" $1 ")";
"(" $1 ", " $2 ")";
"(" $1 ", " $2 ", " $3 ")";
$1 ", " $2 ;
$1 ", " $2 ", " $3 ;
$1 ", " $2 ", " $3 ", " $4 ;
$1 ", " $2 ", " $3 ", " $4 ", " $5 ;
"[" $1 ", " $2 "]";
"[" $1 ", " $2 ", " $3 "]";
"[" $1 ", " $2 ", " $3 ", " $4 "]";
"[" $1 ", " $2 ", " $3 ", " $4 ", " $5 "]";
$0 "(" ... | G-code | 1 | pdv-ru/ClickHouse | src/Parsers/fuzzers/codegen_fuzzer/clickhouse-template.g | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 9/28/08 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= Debug }
{Description= Creates a debug container }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 6/23/08 }
{Usage= Debug;
'SomeVar = ' $SomeVar '... | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/Debug.lasso | [
"MIT"
] |
DanishDefaultBehavior = Reflector other:mimic(DefaultBehavior)
DanishDefaultBehavior efterlign = cell(:mimic)
DanishDefaultBehavior hvis = cell(:if)
DanishDefaultBehavior metode = cell(:method)
DanishDefaultBehavior funktion = cell(:fn)
DanishDefaultBehavior Oprindelse = Origin
DanishDefaultBehavior gør = cell(:do)
Da... | Ioke | 3 | olabini/ioke | examples/multilang/danish/danish.ik | [
"ICU",
"MIT"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | ashutom/tensorflow-upstream | tensorflow/compiler/mlir/tensorflow/utils/bridge_logger_test.cc | [
"Apache-2.0"
] |
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | Arduino | 4 | kayatmin/blynk-library | examples/Widgets/Table/Table_Advanced/Table_Advanced.ino | [
"MIT"
] |
<?= $this->partial('layout/layout.phtml', ['contentPartial' => 'partials/class/content.phtml']) ?>
| HTML+PHP | 2 | nawawi/zephir | templates/Api/themes/api-base/class.phtml | [
"MIT"
] |
#lang scribble/manual
@(require scribble/bnf "utils.rkt")
@title{Scribble: The Racket Documentation Tool}
@author["Matthew Flatt" "Eli Barzilay"]
Scribble is a collection of tools for creating prose
documents---papers, books, library documentation, etc.---in HTML or
PDF (via Latex) form. More generally, Scribble hel... | Racket | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Racket/scribble.scrbl | [
"MIT"
] |
diff -aruN pcl-pcl-1.10.1.orig/cmake/pcl_find_sse.cmake pcl-pcl-1.10.1/cmake/pcl_find_sse.cmake
--- pcl-pcl-1.10.1.orig/cmake/pcl_find_sse.cmake 2020-07-07 20:35:54.475887756 -0700
+++ pcl-pcl-1.10.1/cmake/pcl_find_sse.cmake 2020-07-07 20:40:22.728476949 -0700
@@ -4,20 +4,6 @@
set(SSE_FLAGS)
set(SSE_DEFINITIO... | Diff | 3 | jzjonah/apollo | docker/build/installers/pcl-sse-fix-1.10.1.patch | [
"Apache-2.0"
] |
# Copyright (C) 2006-2009, Parrot Foundation.
=head1 DESCRIPTION
src/builtins/all.pir -- abc builtin functions
=cut
.namespace []
.sub '&prefix:<++>'
.param pmc n
inc n
.return (n)
.end
.sub '&prefix:<-->'
.param pmc n
dec n
.return (n)
.end
.sub '&postfix:<++>'
.param pmc n
$P0 ... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/languages/abc/src/builtins/all.pir | [
"Artistic-2.0"
] |
import React from 'react';
import { mount } from 'enzyme';
import { SmileOutlined } from '@ant-design/icons';
import IconContext from '@ant-design/icons/lib/components/Context';
import ConfigProvider from '..';
describe('ConfigProvider.Icon', () => {
beforeEach(() => {
// eslint-disable-next-line jest/no-standal... | JavaScript | 4 | jawmeschege/ant-design | components/config-provider/__tests__/icon.test.js | [
"MIT"
] |
module NoSuchBuiltinName where
postulate X : Set
{-# BUILTIN FOOBAR X #-}
| Agda | 2 | shlevy/agda | test/Fail/NoSuchBuiltinName.agda | [
"BSD-3-Clause"
] |
#include <OverlayTest/Overlayed.h>
| C | 0 | gandhi56/swift | test/IDE/Inputs/mock-sdk/OverlayTest.framework/Headers/OverlayTest.h | [
"Apache-2.0"
] |
#pragma TextEncoding="UTF-8"
#pragma rtGlobals=3
#pragma IgorVersion=8.03
//******************************************************************************
// Start SIDAM
//******************************************************************************
Function sidam()
Execute/P/Q "SetIgorOption poundDefine=SID... | IGOR Pro | 4 | yuksk/SIDAM | src/SIDAM.ipf | [
"MIT"
] |
- dashboard: referrer_dashboard
title: Referrer Dashboard
layout: grid
rows:
- elements: [total_sessions, distinct_users, avg_sessions_user, avg_session_dur]
height: 220
- elements: [daily_session_user_counts]
height: 400
- elements: [device_type_breakdown, conversion_funnel]
height:... | LookML | 3 | llooker/heap_block_bigquery | referrer_dashboard.dashboard.lookml | [
"MIT"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "Spamhaus"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config()
... | Ada | 4 | Elon143/Amass | resources/scripts/api/spamhaus.ads | [
"Apache-2.0"
] |
.class public final Ltypes/TestGenerics2;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field private field:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Integer;",
"Ljava/lang/String;",
... | Smali | 4 | DSYliangweihao/jadx | jadx-core/src/test/smali/types/TestGenerics2.smali | [
"Apache-2.0"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | ECL | 4 | miguelvazq/HPCC-Platform | ecl/regress/xmlout.ecl | [
"Apache-2.0"
] |
variable "k8s_admin_groups" {
description = "List of AD Group IDs to configure as Kubernetes admins"
type = list(string)
}
resource "kubernetes_cluster_role" "debug" {
metadata {
name = "debug"
}
rule {
api_groups = [""]
resources = ["pods/portforward", "pods/exec"]
verbs = ["cr... | HCL | 4 | PragmaTwice/diem | terraform/validator/azure/aad/aks-aad.tf | [
"Apache-2.0"
] |
export AMPLXE_EXPERIMENTAL=1
/opt/intel/vtune_amplifier_xe/bin64/amplxe-cl -collect hotspots /opt/taobao/install/jdk-1.7.0_10/bin/java -classpath target/classes/:target/test-classes/ com.alibaba.json.test.benchmark.BenchmarkMain
| Shell | 2 | Czarek93/fastjson | x.sh | [
"Apache-2.0"
] |
import "std/test"
import "std/collections" as col
test.run("Maps", fn(assert) {
const hash = {
"key1": "value1",
"key2": "value2",
"key3": "value3",
"key4": "value4",
}
const keys = hashKeys(hash);
const expectedKeys = ["key1", "key2", "key3", "key4"]
assert.isEq(l... | Inform 7 | 4 | lfkeitel/nitrogen | tests/basic/maps.ni | [
"BSD-3-Clause"
] |
const foo = fade('#aaa');
| JavaScript | 0 | good-gym/material-ui | packages/material-ui-codemod/src/v5.0.0/fade-rename-alpha.test/unmodified.js | [
"MIT"
] |
; error: must be string literal
(echo 123)
; ok
(echo "whatnot")
; with escaping
(echo "what""not")
| SMT | 3 | mauguignard/cbmc | regression/smt2_solver/echo/echo1.smt2 | [
"BSD-4-Clause"
] |
module tour/addressBook1e ----- Page 11
sig Name, Addr { }
sig Book {
addr: Name -> lone Addr
}
pred add [b, b1: Book, n: Name, a: Addr] {
b1.addr = b.addr + n->a
}
// This command generates an instance similar to Fig 2.4
run add for 3 but 2 Book
| Alloy | 4 | haslab/Electrum | electrum/src/main/resources/models/book/chapter2/addressBook1e.als | [
"MIT"
] |
// !JVM_DEFAULT_MODE: all
// TARGET_BACKEND: JVM
// JVM_TARGET: 1.8
import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): String = p.name
}
interface Foo {
fun test(): String {
val O by Delegate()
return O
}
}
interface Foo2: Foo {
overri... | Kotlin | 3 | vitekkor/bbfgradle | tmp/arrays/localDelegatedProperties2.kt | [
"Apache-2.0"
] |
/home/spinalvm/hdl/riscv-compliance/work//I-LB-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 00001f97 auipc t6,0x1
80000004: 000f8f93 mv t6,t6
80000008: 00001117 auipc sp,0x1
8000000c: 03810113 addi sp,sp,56 # 800010... | ObjDump | 3 | cbrune/VexRiscv | src/test/resources/asm/I-LB-01.elf.objdump | [
"MIT"
] |
val x = "Hello world"
| UrWeb | 0 | apple314159/urweb | tests/dep1.ur | [
"BSD-3-Clause"
] |
#version 3.6;
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
global_settings {
max_trace_level 64
}
camera {
location <1,2.5,-5>
right 0.2*x*image_width/image_height
up 0.2*y
look_at <0,0,0>
}
background{rgb 1}
light_source{<-0.8,3,-2> color rgb <0.77,0.75,0.75>}
light_source{<2.5,1.2,-1.2... | POV-Ray SDL | 3 | wgq-iapcm/Parvoro- | 3rdparty/voro++-0.4.6/examples/degenerate/degenerate2.pov | [
"BSD-3-Clause"
] |
// Calculate (16*16*16*16)^128 AKA 2^2048
++[>++++++++<-]>[>++++++++<-]>[<<
+>>[-<<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
[->++++++++++++++++<]>[-<++++++++++++++++>]<
>>]]<+<
// If that's not zero we have a bignum; probably
[
// Calculate 2^112 this is too large for any floating point type
// t... | Brainfuck | 2 | RubenNL/brainheck | examples/cell-size-1.bf | [
"Apache-2.0"
] |
package com.baeldung.akka;
import akka.actor.UntypedActor;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class GreetingActo... | Java | 4 | DBatOWL/tutorials | spring-akka/src/main/java/com/baeldung/akka/GreetingActor.java | [
"MIT"
] |
@forward "./index" as mdc-touch-target-* hide mdc-touch-target-wrapper, mdc-touch-target-touch-target, mdc-touch-target-margin;
| SCSS | 0 | panoschal/material-components-web | packages/mdc-touch-target/_variables.import.scss | [
"MIT"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Support\Helper\Str;
class Interpolate
{
/**
* Interpolates c... | Zephir | 4 | stijn1989/cphalcon | phalcon/Support/Helper/Str/Interpolate.zep | [
"BSD-3-Clause"
] |
% this generates the macro that will cause the program to be iconified
% thanks to Mark Callow for the code
% invoked from C as (void)flipiconic(window_id);
cdef flipiconic(int gid)
/flipiconic gid gfsend
| Component Pascal | 2 | lkesteloot/alice | alice4/software/flight/iconize.cps | [
"Apache-2.0"
] |
using Test
using Pluto
using Pluto: update_run!, ServerSession, ClientSession, Cell, Notebook
@testset "CellDepencencyVisualization" begin
🍭 = ServerSession()
🍭.options.evaluation.workspace_use_distributed = false
fakeclient = ClientSession(:fake, nothing)
🍭.connected_clients[fakeclient.id] = fake... | Julia | 5 | Mechachleopteryx/Pluto.jl | test/DependencyCache.jl | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_32=0xffff
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_33=0xffffffff
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_34=0xdeadbeef
;TEST_INIT_EXEC nfp-reg ... | UnrealScript | 4 | pcasconnetronome/nic-firmware | test/datapath/actions_classify_mac_vf_match_promiscuos_ipv4_udp_x88_test.uc | [
"BSD-2-Clause"
] |
@GrabResolver(name='clojars.org', root='https://clojars.org/repo')
@Grab('redis.embedded:embedded-redis:0.2')
@Component
class EmbeddedRedis {
} | Groovy | 2 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot-cli/src/it/resources/jar-command/bad.groovy | [
"Apache-2.0"
] |
#include <console>
main() {
new a[1] = {1};
new i = 1;
// When compiled with at least debug level 1 (default) the line below should produce:
// Run time error 4: "Array index out of bounds"
printf("%d", a[i]);
}
| PAWN | 3 | pawn-lang/pawn | source/compiler/tests/runtime_test_example.pwn | [
"Zlib"
] |
USING: alien alien.c-types assocs compiler.cfg.registers
cpu.architecture cpu.x86.64 cpu.x86.assembler cpu.x86.assembler.operands make
sequences tools.test ;
IN: cpu.x86.64.tests
: assembly-test-1 ( -- x ) int { } cdecl [ RAX 3 MOV ] alien-assembly ;
[ 3 ] [ assembly-test-1 ] unit-test
: assembly-test-2 ( a b -- x )... | Factor | 3 | alex-ilin/factor | basis/cpu/x86/64/64-tests.factor | [
"BSD-2-Clause"
] |
# Copyright (C) 2008-2009, Parrot Foundation.
use v6;
=begin pod
=head1 NAME
xlibtest.p6 - A test of Xlib.pir usage from rakudo
=head1 DESCRIPTION
This program is a test of Xlib.pir usage from rakudo.
=head1 SYNOPSYS
To run this file, execute the following command from the
current directory:
../../perl6 xlibt... | Perl6 | 4 | winnit-myself/Wifie | examples/nci/xlibtest.p6 | [
"Artistic-2.0"
] |
19
SOAR_ID 0
ENUMERATION 1 1 state
ENUMERATION 2 1 nil
ENUMERATION 3 1 water-jug
SOAR_ID 4
ENUMERATION 5 1 initialize-water-jug
SOAR_ID 6
ENUMERATION 7 1 empty
SOAR_ID 8
ENUMERATION 9 1 pour
SOAR_ID 10
INTEGER_RANGE 11 -2147483648 2147483647
INTEGER_RANGE 12 -2147483648 2147483647
SOAR_ID 13
ENUMERATION 14 1 fill
INTEG... | DM | 3 | UniKnow/jsoar | jsoar-soarunit/src/test/resources/example-unittest/water-jug/water-jug.dm | [
"BSD-3-Clause"
] |
size: 1024px 60px;
dpi: 96;
margin: 1em;
axis {
scale: categorical(A B C D E F);
}
| CLIPS | 2 | asmuth-archive/travistest | test/examples/charts_reference_scale_categorical.clp | [
"Apache-2.0"
] |
<!doctype html>
<!--
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at... | HTML | 3 | SHEFFcode/SHEFFolio-1.0 | components/iron-selector/test/excluded-local-names.html | [
"Apache-2.0"
] |
Dict{String,Any}() | Julia | 0 | vanillajonathan/julia | stdlib/TOML/test/testfiles/valid/empty.jl | [
"Zlib"
] |
#!/usr/bin/env sage
'''
Adapted from initial work performed by guillaume kaim.
Example usage:
echo "ELDUPJHMPTCVINSPFDTA" | ./revert-prng.sage
'''
import string
import sys
from scipy.stats import describe, tstd, cumfreq
N = 2**36
F = IntegerModRing(N)
A = F(17059465)
B = F(1)
a = [A]
b = [B]
for i in xrange(1, ... | Sage | 4 | maikthulhu/erl-matter | revert-prng.sage | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
# based on https://medium.com/@felipedutratine/intelligent-benchmark-with-wrk-163986c1587f
cd /tmp/
sudo apt-get install build-essential libssl-dev git -y
git clone https://github.com/wg/wrk.git wrk
cd wrk
sudo make
# move the executable to somewhere in your PATH, ex:
s... | Shell | 4 | SuperHuangXu/nest | .circleci/install-wrk.sh | [
"MIT"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:3625fd136e4267c8bb6ed45cf5662848a163b7a5444111df47beb4db448e340d
size 576
| Nit | 0 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Soybean/info/arc0001.nit | [
"BSD-3-Clause-LBNL"
] |
# Parameters
param N := read "network.csv" as "1n" use 1 comment "#";
set Ns := {0..N-1};
set N0 := {1..N-1};
param L := read "network.csv" as "2n" use 1 comment "#";
set Ls := {1..L};
param piTp := read "network.csv" as "3n" use 1 comment "#";
param piTd := read "network.csv" as "4n" use 1 comment "#";
param S... | Zimpl | 4 | sebMathieu/dsima | simulator/models/DSO-linearOpf-operation.zpl | [
"BSD-3-Clause"
] |
sub Main()
arraygrid = createObject("roSGNode", "ArrayGrid")
print "arraygrid node type:" type(arraygrid)
print "arraygrid node subtype:" arraygrid.subtype()
print "arraygrid node focusRow:" arraygrid.focusRow
print "arraygrid node jumpToItem:" arraygrid.jumpToItem
parent = createObject("roSGNo... | Brightscript | 3 | lkipke/brs | test/e2e/resources/components/ArrayGrid.brs | [
"MIT"
] |
:global(.foo + a) {
color: red;
}
| CSS | 3 | fabiosantoscode/swc | css/parser/tests/fixture/styled-jsx/selector/1/input.css | [
"Apache-2.0",
"MIT"
] |
# columns: epoch, trn-softloss, tst-softloss, trn-zeroone, tst-zeroone
$DATA << EOD
1 0.21368 0.216716 0.0686333 0.071
2 0.148743 0.158744 0.0484167 0.0505
3 0.0990149 0.115321 0.0311 0.0355
4 0.0784275 0.103065 0.0250833 0.031
5 0.0667848 0.0983643 0.02145 0.0294
6 0.0615907 0.0991883 0.02005 0.0297
7 0.0514755 0.094... | Gnuplot | 2 | AndrewSerra/Knet.jl | docs/src/images/mnist_mlp.gp | [
"MIT"
] |
/******************************************************************************
* Copyright 2017 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/planning/common/trajectory1d/standing_still_trajectory1d.cc | [
"Apache-2.0"
] |
server {
listen 80 default_server;
listen [::]:80 default_server;
root /path to repo /public/;
index index.php index.html index.htm index.nginx-debian.html;
server_name server_domain_or_IP;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets... | ApacheConf | 4 | jamesacampbell/fugitive | config/example.vhost | [
"MIT"
] |
(in-package #:house)
;;;;;;;;;; Parameter type parsing.
;;;;; Basics
(defgeneric type-expression (parameter type)
(:documentation
"A type-expression will tell the server how to convert a parameter from a string to a particular, necessary type."))
(defgeneric type-assertion (parameter type)
(:documentation
"A... | Common Lisp | 5 | adlerliu/500lines | event-web-framework/code/define-handler.lisp | [
"CC-BY-3.0"
] |
//
// Copyright (c) 2019, chunquedong
// Licensed under the Academic Free License version 3.0
//
// History:
// 2019-01-19 Jed Young Creation
//
class ExprFlat : CompilerStep
{
private Stmt[] stmts := [,]
new make(Compiler compiler)
: super(compiler)
{
}
override Void run()
{
log.debug("Expr... | Fantom | 3 | fanx-dev/fanx | compiler/compiler/fan/steps/ExprFlat.fan | [
"AFL-3.0"
] |
note
description: "API tests for FAKE_API"
date: "$Date$"
revision: "$Revision$"
class FAKE_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_create_xml_item
-- creates an XmlItem
--
-- this route creates an XmlItem
local
... | Eiffel | 4 | JigarJoshi/openapi-generator | samples/client/petstore/eiffel/test/apis/fake_api_test.e | [
"Apache-2.0"
] |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... | Ada | 5 | CandyROM/external_libncurses | Ada95/src/terminal_interface-curses-forms-field_types-enumeration.ads | [
"X11"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.