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 |
|---|---|---|---|---|---|
package {
public class Test {
}
}
/* NOTE: This is not the actual source to this test.
*
* This is just a tribute. The actual source is in test-0 and this file (as
* well as the accompanying FLA) is provided purely for reference only.
*
* The AS3 compiler in modern versions of Adobe Animate does not allow
*... | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm2/vector_legacy/Test.as | [
"Apache-2.0",
"Unlicense"
] |
function fibR(n)
{
if (n < 2) return n;
return (fibR(n-2) + fibR(n-1));
}
local function fibI(n)
{
local last = 0;
local cur = 1;
n = n - 1;
while(n)
{
--n;
local tmp = cur;
cur = last + cur;
last = tmp;
}
return cur;
}
loadfile("profile.nut")()
pri... | Squirrel | 3 | profelis/daScript | examples/profile/tests/squirrel/fib.nut | [
"BSD-3-Clause"
] |
create {
source {
git {
repo: "https://r8.googlesource.com/r8"
tag_pattern: "%s-dev"
}
patch_dir: "patches"
}
build {
dep: "chromium/third_party/jdk"
# gradle cannot be executed correctly under docker env
no_docker_env: true
}
}
upload {
pkg_prefix: "chromium/third_party"... | PureBasic | 3 | zealoussnow/chromium | third_party/r8/3pp/3pp.pb | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
package com.baeldung.comparison.shiro;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.apache.shiro.authc.AuthenticationException;
import org.apach... | Java | 4 | DBatOWL/tutorials | apache-shiro/src/main/java/com/baeldung/comparison/shiro/CustomRealm.java | [
"MIT"
] |
(defun parse-argv (args)
(flet ((parse-int-value (option value)
(handler-case (parse-integer value)
(error (e)
(error "Invalid value for ~S: ~S~% ~A" option value e)))))
(loop for option = (pop args)
for value = (pop args)
while option
if (not ... | Common Lisp | 4 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Lisp/woo/helpers/parse-argv.lisp | [
"BSD-3-Clause"
] |
/* Driver for the DS2411 unique ID chip.
*
* @author: Andreas Koepke <koepke@tkn.tu-berlin.de>
* @author: Brad Campbell <bradjc@umich.edu>
*/
#include "ds2411.h"
module Ds2411P {
provides {
interface ReadId48;
}
uses {
interface OneWireReadWrite as OneWire;
interface StdControl as PowerControl;
... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/chips/ds2411/Ds2411P.nc | [
"BSD-3-Clause"
] |
/* 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 | EricRemmerswaal/tensorflow | tensorflow/core/profiler/utils/buffer_pool_test.cc | [
"Apache-2.0"
] |
# -*- coding: utf-8 -*-
from sphinx import addnodes
"""
``local_toctree``: A callable yielding the global TOC tree that contains
list of all the content below the specified page. ``local_toctree`` need
pagename specifying as like as ``{{ local_toctree(pagename) }}`` and
optional keyword arguments are available:
* max... | Python | 5 | gh-oss-contributor/graphql-engine-1 | docs/_ext/local_toctree.py | [
"Apache-2.0",
"MIT"
] |
import * as React from 'react'
export const fromJsx = <div />
| JSX | 3 | bkucera2/cypress | npm/webpack-batteries-included-preprocessor/test/fixtures/file-types/jsx-file.jsx | [
"MIT"
] |
.slide-up-enter
opacity 0
transform translate(0, 50%)
.slide-up-leave-to
opacity 0
transform translate(0, -50%)
.slide-down-enter, .slide-down-leave-to
opacity 0
transform translate(0, -20px)
@keyframes rotate
0%
transform rotate(0deg)
100%
transform rotate(360deg)
@keyframes pulse
0%
... | Stylus | 4 | ericnograles/vue-devtools | src/devtools/style/transitions.styl | [
"MIT"
] |
[platform]=1
[LCDDriver]=0
[color]=0
[SizeX]=128
[SizeY]=64
[WindowIndex]=3
[ControlIndex]=5
[Compiler]=2
[FontGraphicFunction]=False
[OnlySmallFont]=True
[Control]=False
[Cursor]=False
[RichStyle]=False
[RedrawInCallback]=True
[NoLCDBuffer]=False
[HaveDesktop]=True
[Icon]=True
[FreeRT... | Ecere Projects | 2 | hyller/GladiatorLibrary | EmbeddedGUI_0.6.2/0.6.2/designer/example_KS010X.epj | [
"Unlicense"
] |
-- Options
OptCaseSensitive=true
-- End of options
F=far.Flags
color = far.AdvControl(F.ACTL_GETCOLOR, far.Colors.COL_EDITORTEXT)
color.ForegroundColor, color.BackgroundColor = color.BackgroundColor, color.ForegroundColor
colorguid=win.Uuid "507CFA2A-3BA3-4f2b-8A80-318F5A831235"
words={}
Macro
area:"Editor"
key:"... | MoonScript | 5 | MKadaner/FarManager | extra/Addons/Macros/Editor.ColorWord.moon | [
"BSD-3-Clause"
] |
<script>{%- include 'include-script-2.js' -%}</script> | Liquid | 0 | AleksandrHovhannisyan/eleventy | test/stubs-layout-cache/_includes/layout.liquid | [
"MIT"
] |
package com.baeldung.jnosql.artemis;
import de.flapdoodle.embed.mongo.MongodExecutable;
import de.flapdoodle.embed.mongo.MongodProcess;
import de.flapdoodle.embed.mongo.MongodStarter;
import de.flapdoodle.embed.mongo.config.MongodConfigBuilder;
import de.flapdoodle.embed.mongo.config.Net;
import de.flapdoodle.embed.mo... | Java | 4 | scharanreddy/tutorials | jnosql/jnosql-artemis/src/main/java/com/baeldung/jnosql/artemis/EmbeddedMongoDBSetup.java | [
"MIT"
] |
<!--
* Copyright 2019 Google Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 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... | HTML | 3 | martin-maunoury/lighthouse | lighthouse-cli/test/fixtures/source-map/source-map-tester.html | [
"Apache-2.0"
] |
"""
l = [1, 2, 3]
assert((1 == l[0]))
assert((2 == l[1]))
assert(([1, 2] == l[:2]))
assert(([1] == l[0:1]))
assert(([1] == l[:1]))
assert((3 == l[(-1)]))
assert(([2, 3] == l[1:]))
assert(([3, 2, 1] == l[::(-1)]))
assert(([1, 2, 3] == l[:]))
assert(([1, 3] == l[::2]))
"""
l = [1, 2, 3]
assert((1 == l[0]))
assert((2 == ... | Boo | 3 | popcatalin81/boo | tests/testcases/parser/wsa/slicing-1.boo | [
"BSD-3-Clause"
] |
<?xml version="1.0"?>
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/geno.owl#"
xml:base="http://purl.obolibrary.org/obo/geno.owl"
xmlns:urigen-plugin="http://urigen-plugin/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"
xmlns:protege=... | Web Ontology Language | 5 | cthoyt/HumanDiseaseOntology | src/ontology/imports/geno_full.owl | [
"CC0-1.0"
] |
## Block (object)
+ blockNumber: 11109 (number, required),
+ newStateRoot: `0x61684c1bd4ac3f7843b6a20d4270d58dc4139d546ea4249424bc6c2ce0a48f92` (string, required),
+ blockSize: 110 (number, required),
+ commitTxHash: `0xc2541cf68c6f41a6bc55f9d6ba24816c79431942ca3762514f448540cfa475` (string, required, nullable),
+ veri... | API Blueprint | 3 | smishraIOV/ri-aggregation | infrastructure/api-docs/blueprint/types/blocks.apib | [
"Apache-2.0",
"MIT"
] |
Procedure /// 関数
Function /// 関数
| Ragel in Ruby Host | 0 | saurabhacellere/sakura | installer/sinst_src/keyword/uwsc.rl | [
"Zlib"
] |
#!/bin/sh
echo "error: something bad happened" >&2
echo /path/to/sdk
false
| Shell | 3 | lwhsu/swift | test/Driver/Inputs/xcrun-bad.sh | [
"Apache-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.1.6)-1")
(general
(thickness 1.6)
(drawings 15)
(tracks 75)
(zones 0)
(modules 26)
(nets 25)
)
(page A4)
(title_block
(title "KCORES CSPS to ATX Converter")
(date 2021-03-17)
(rev 1.0)
(company KCORES)
(comment 1 "Autho... | KiCad | 5 | Indexyz/KCORES-CSPS-to-ATX-Converter | Electrical/KCORES CSPS to ATX Converter/KCORES CSPS to ATX Converter.kicad_pcb | [
"RSA-MD"
] |
ruleset io.picolabs.schedule {
meta {
shares getLog, listScheduled
}
global {
getLog = function(){
ent:log;
}
listScheduled = function(){
schedule:list();
}
}
rule clear_log {
select when schedule clear_log
send_directi... | KRL | 4 | CambodianCoder/pico-engine | test-rulesets/schedule.krl | [
"MIT"
] |
# flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | Python | 4 | arunraja-hub/transformers | src/transformers/models/camembert/__init__.py | [
"Apache-2.0"
] |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | AspectJ | 4 | hoppinghippo/HadoopMapReduce | src/test/system/aop/org/apache/hadoop/hdfs/HDFSPolicyProviderAspect.aj | [
"Apache-2.0"
] |
libflightplan(3) "github.com/mitchellh/libflightplan" "Library Functions Manual"
# NAME
libflightplan - library used to read and write aviation flight plans
# DESCRIPTION
*libflightplan* is a library for reading and writing flight plans in
various formats. Flight plans are used in aviation to save properties of
one... | SuperCollider | 4 | 06kellyjac/libflightplan | doc/libflightplan.3.scd | [
"MIT"
] |
from typing import List
from fastapi import FastAPI
from fastapi.testclient import TestClient
from pydantic import BaseModel
app = FastAPI()
class RecursiveItem(BaseModel):
sub_items: List["RecursiveItem"] = []
name: str
RecursiveItem.update_forward_refs()
class RecursiveSubitemInSubmodel(BaseModel):
... | Python | 4 | Aryabhata-Rootspring/fastapi | tests/test_validate_response_recursive.py | [
"MIT"
] |
P
Y
####T####
# H #
# O #
####N #
# #
#########
| Mask | 0 | kai-pischke/python-constraint | examples/crosswords/python.mask | [
"BSD-2-Clause"
] |
[38;2;249;38;114mlet[0m[38;2;248;248;242m [0m[38;2;255;255;255ms[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mhello world[0m[38;2;230;219;116m"[0m
[38;2;249;38;114mlet[0m[38;2;248;248;242m [0m[38;2;166;226;46mn[0m[38;2;248;248;242m ... | OCaml | 5 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/OCaml/syntax-test.ml | [
"Apache-2.0",
"MIT"
] |
scriptname _Frost_ExposureMeterInterfaceHandler extends CommonMeterInterfaceHandler
import CampUtil
function RegisterForEvents()
if !GetSKSELoaded()
return
endif
RegisterForModEvent("Frostfall_ForceExposureMeterDisplay", "ForceMeterDisplay")
RegisterForModEvent("Frostfall_RemoveExposureMeter", "RemoveMeter")
... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_Frost_ExposureMeterInterfaceHandler.psc | [
"MIT"
] |
CREATE TABLE `tb_epubreeayc` (
`col_embnqthyuu` double NOT NULL,
`col_shqnxczemy` binary(149) DEFAULT NULL,
`col_gyjfdfpemu` longtext CHARACTER SET utf8,
PRIMARY KEY (`col_embnqthyuu`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `tb_uafierhjhg` (
`col_rvdpillohr` smallint(51) unsigned NOT NULL,
`c... | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_55.sql | [
"Apache-2.0"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CD4dTestDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "D4dTest.h"
ClassCount=3
Class1=CD4dTestApp
Class2=CD4dTestDlg
Class3=CAboutDlg
ResourceCount=5
Resource1=IDD_ABOUTBOX
Resource2=IDR... | Clarion | 3 | oudream/ccxx | test/dump/swdbgbk_src/chap27/D4D/D4dTest/D4dTest.clw | [
"MIT"
] |
#!/bin/bash
set -e -u
echo "Publishing Javadoc and JDiff..."
cd $HOME
git clone -q -b gh-pages "https://x-access-token:${GITHUB_TOKEN}@github.com/google/guava.git" gh-pages > /dev/null
cd gh-pages
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
... | Shell | 4 | ksodhi2/guava | util/update_snapshot_docs.sh | [
"Apache-2.0"
] |
/*
* ESP32S2 ROM address table
* Generated for ROM with MD5sum: 0a2c7ec5109c17884606d23b47045796
*/
PROVIDE (ets_update_cpu_frequency = 0x4000d8a4);
PROVIDE (MD5Final = 0x4000530c);
PROVIDE (MD5Init = 0x4000526c);
PROVIDE (MD5Update = 0x4000528c);
/* bootloader will use following functions from xtensa hal library */... | Linker Script | 3 | DCNick3/esp-idf | components/bootloader/subproject/main/ld/esp32s2/bootloader.rom.ld | [
"Apache-2.0"
] |
module CompletionSpec where
exampleValue :: Int
exampleValue = 42
exampleFunction :: Int -> Int
exampleFunction _ = 1
exampleInferredString = ""
infixl 5 exampleFunction as \°/
data ExampleTypeConstructor a b = ExampleTypeConstructor a b
infixl 5 type ExampleTypeConstructor as \°/
class ExampleClass where
ex... | PureScript | 3 | andys8/purescript | tests/support/pscide/src/CompletionSpec.purs | [
"BSD-3-Clause"
] |
static const uint32_t in_val_decim[1980] = {
0x3d9aeafc, 0x3f800000, 0xbf1bcebc, 0x3d288e27,
0xbf800000, 0xbe63a3ff, 0xbe6f74f1, 0x3f800000,
0x3f002294, 0xbf800000, 0x3f40d559, 0x3d7a1587,
0xbf800000, 0xbe538644, 0x3e3bd6b3, 0xbf4b0178,
0x3f800000, 0x3f3d911e, 0x3d8caa90, 0x3e705d9e,
0x3f800000,... | Max | 2 | psychogenic/zephyr | tests/lib/cmsis_dsp/filtering/src/decim_f32.pat | [
"Apache-2.0"
] |
<p class="for-paddle-users">is your card about to expire, or got a new paypal account? you can update your payment method here.</p>
<p class="for-stripe-users">is your card about to expire, or got a new bank account? you can update your payment method here.</p>
<p> </p>
<button id="update-payment-method-button" ... | Kit | 2 | pws1453/web-client | source/imports/app/account-tab-plan-payments-payment-method.kit | [
"MIT"
] |
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_generate_changelog.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_GENERATE_CHANGELOG()
#
# DESCRIPTION
#
# Builds a rule for gener... | M4 | 4 | cssl-unist/tweezer | Docker/gperftools/m4/ax_generate_changelog.m4 | [
"MIT"
] |
%require "3.5"
%{
#define YYDEBUG 1
%}
%code requires {
#include "parser-util.h"
#include "debug/pront.h"
#include <malloc.h>
#include <string.h>
extern int yylex (parser_ctx_t *ctx);
extern void yyerror(parser_ctx_t *ctx, char *msg);
}
%param { parser_ctx_t *ctx };
%union {
pos_t pos;
ival_t ival;
strv... | Bison | 5 | robotman2412/lilly-c | src/parser.bison | [
"MIT"
] |
(test (= (try _ 42) 42))
(test (= (try ((foo(x) (+ x 35)))
(call (restart 'foo) 7))
42))
(test (= (try ((foo(x) (+ x 35)))
(try _
(call (restart 'foo) 7)))
42))
(test (= (try ((foo() 'bar))
(try ((foo() 'baz))
(call (restart 'foo))))
... | Grammatical Framework | 3 | daota2/fffff | v1/test/restart.gf | [
"MIT"
] |
#![crate_type = "dylib"]
extern crate m1;
pub fn m2() { m1::m1() }
| Rust | 2 | Eric-Arellano/rust | src/test/run-make-fulldeps/dylib-chain/m2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
new function pairwiseSort(array, f, l, g = 1) {
if f == l - g {
return;
}
for b = f + g; b < l; b += 2 * g {
compSwap(array, b - g, b);
}
if ((l - f) // g) % 2 == 0 {
pairwiseSort(array, f, l, g * 2);
pairwiseSort(array, f + g, l + g, g * 2);
} else {
... | Opal | 3 | thatsOven/sorting-visualizer | sorts/PairwiseSortingNetwork.opal | [
"MIT"
] |
"* The Computer Language Benchmarks Game
http://benchmarksgame.alioth.debian.org/
contributed by Andres Valloud *"!
!SequenceableCollection methodsFor: 'computer language shootout'!
substringFrequencies5: aLength using: aDictionary
| buffer |
buffer := String new: aLength.
1 to: self size - aLength ... | Gosu | 4 | danglotb/Energy-Languages | Smalltalk/k-nucleotide/knucleotide5.gst | [
"MIT"
] |
\section{IDS types}
\begin{code}
{-# LANGUAGE MagicHash #-}
module Types where
import GHC.Exts
data F a = FN | F1 a | F2 a a | F3 a a a
| F4 a a a a
| F5 a a a a a (F a)
data FI = FIN | FI1 Int# | FI2 Int# Int# | FI3 Int# Int# Int#
| FI4 Int# Int# Int# Int#
| FI5 Int# Int# In... | Literate Haskell | 3 | ocharles/ghc | testsuite/tests/programs/cvh_unboxing/Types.lhs | [
"BSD-3-Clause"
] |
package com.serverless;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.S3Event;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public ... | Java | 3 | Arun-kc/serverless | lib/plugins/aws/invokeLocal/runtimeWrappers/java/src/test/java/com/serverless/RequestHandlerS3Event.java | [
"MIT"
] |
#![feature(associated_type_defaults)]
#![feature(generic_associated_types)]
trait Trait1 {
fn foo();
}
trait Trait2 {
type Associated: Trait1 = Self;
//~^ ERROR: the trait bound `Self: Trait1` is not satisfied
//~| the size for values of type `Self` cannot be known
}
impl Trait2 for () {}
fn call_fo... | Rust | 4 | mbc-git/rust | src/test/ui/generic-associated-types/issue-74816.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@prefix ia: <http://lv2plug.in/ns/ext/instance-access#> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<http://lv2plug.in/ns/ext/instance-access>
a lv2:Feature ;
rdfs:seeAlso <instance-access.h> ,
<lv2-instance-access.doap.ttl> ;
lv2:documentation """
<... | Turtle | 4 | joshrose/audacity | lib-src/lv2/lv2/lv2/instance-access/instance-access.ttl | [
"CC-BY-3.0"
] |
class_name Pawn
extends Node2D
enum CellType { ACTOR, OBSTACLE, OBJECT }
#warning-ignore:unused_class_variable
export(CellType) var type = CellType.ACTOR
var active = true setget set_active
func set_active(value):
active = value
set_process(value)
set_process_input(value)
| GDScript | 4 | jonbonazza/godot-demo-projects | 2d/role_playing_game/grid_movement/pawns/Pawn.gd | [
"MIT"
] |
FIVE
;List and count the months between 1/1900 and 12/2100 that have 5 full weekends
;Extra credit - list and count years with no months with five full weekends
;Using the test that the 31st of a month is on a Sunday
;Uses the VA's public domain routine %DTC (Part of the Kernel) named here DIDTC
NEW YEAR,MONTH,X,Y... | M | 4 | LaudateCorpus1/RosettaCodeData | Task/Five-weekends/MUMPS/five-weekends.mumps | [
"Info-ZIP"
] |
#/** @file
# This is a very simple shell script to test how the interpreter parses the parameters.
#
# Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which acco... | NSIS | 4 | CEOALT1/RefindPlusUDK | ShellPkg/Application/ShellCTestApp/TestArgv.nsh | [
"BSD-2-Clause"
] |
#%RAML 0.8
title: Kafka Web Console API
version: 1.0
baseUri: http://{hostname}:{port}
mediaType: application/json
/zookeepers.json/{group}:
get:
/zookeepers.json:
put:
body:
schema: !include zookeeper.json
/zookeepers.json/{name}:
delete:
/topics.json:
get:
/topics.json/{topic}/{z... | RAML | 3 | cfchou/try-kafka-web-console | public/api-console/kafka-web-console.raml | [
"Apache-2.0"
] |
/* Copyright 2015 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 | yage99/tensorflow | tensorflow/core/platform/port_test.cc | [
"Apache-2.0"
] |
package com.alibaba.json.bvt.issue_1200;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import junit.framework.TestCase;
import java.io.Serializable;
import java.util.List;
/**
* Created by wenshao on 01/07/2017.
*/
public class Issue1299 extends TestCase {
public void test... | Java | 3 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/issue_1200/Issue1299.java | [
"Apache-2.0"
] |
t ia2 -3a 1 1 0 1
t ia2 -ca enable
t ia2 -adj ae
t ia2 -ae on
| AGS Script | 0 | waltersgrey/autoexechack | CA/1/autoexec.ash | [
"MIT"
] |
<%
from rllab.misc.mako_utils import compute_rect_vertices
link_len = opts['link_len']
link_width = 0.1
%>
<box2d>
<world timestep="0.01" velitr="20" positr="20">
<body name="link1" type="dynamic" position="0,0">
<fixture
density="5.0"
group="-1"
shape=... | Mako | 3 | RussellM2020/maml_gps | rllab/envs/box2d/models/double_pendulum.xml.mako | [
"MIT"
] |
import ../Coro
version(windows) {
include windows
CoroWin32: class extends Coro {
fiber: Pointer
parent: Pointer
init: func
initializeMainCoro: func {
isMain = true
if(GetCurrentFiber() == 0x1e00 as Pointer) {
ConvertThreadToFiber(this)
}
fiber = GetCu... | ooc | 4 | fredrikbryntesson/launchtest | sdk/os/native/CoroWin32.ooc | [
"MIT"
] |
package opal: import *;
package random: import randint, uniform;
new <Vector> RESOLUTION = Vector(1280, 720);
new int FIREWORK_SIZE = 4,
PARTICLE_SIZE = 2,
MIN_PARTICLE_QTY = 80,
MAX_PARTICLE_QTY = 120,
LIFESPAN_DECREASE = 3,
ALPHA_CHANGE = 25,
ROCKET_FRE... | Opal | 5 | thatsOven/opal-lang | examples/fireworks.opal | [
"MIT"
] |
Hi! I'm Jennifer Dewalt and I taught myself to code by making 180 websites in 180 days.
You can check out the project at https://jenniferdewalt.com.
| RDoc | 1 | nadiaschutz/jennifer_dewalt | README.rdoc | [
"MIT"
] |
package com.baeldung.di.aspectj;
import org.springframework.stereotype.Service;
@Service
public class IdService {
private static int count;
int generateId() {
return ++count;
}
}
| Java | 3 | DBatOWL/tutorials | spring-di-2/src/main/java/com/baeldung/di/aspectj/IdService.java | [
"MIT"
] |
// Whitney music box in one line - by Nathaniel Virgo
play{mean({|i|99**(-1-LFSaw.kr(i+1/180,1))*SinOsc.ar(i+1*55)}!48)!2}
// Explanations by Jim B:
// {|i| i.postln; }!10; // basic iterator
// Envelope generation:
// {LFSaw.kr(2,1)}.plot(1); // produces ascending ramp from -1 to 1
// {-1 - LFSaw.kr(2,1)}... | SuperCollider | 4 | Haroenv/Whitney-Music-Box-Examples | supercollider/whitney_oneliner.scd | [
"AAL"
] |
server {
server_name homestead.app;
root /var/www/default;
index index.php;
client_max_body_size 100M;
fastcgi_read_timeout 1800;
location / {
try_files $uri $uri/ /index.php;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
access_lo... | ApacheConf | 4 | tanlinhnd/docker-fullstack-php | sites/homestead.app.vhost | [
"MIT"
] |
def each_line1(file)
File.read_lines(file).each_with_index do |line, index0|
yield line, index0 + 1
end
end
repo_base_dir = "#{__DIR__}/../../"
tmp_build_dir = File.join(repo_base_dir, ".build")
Dir.mkdir_p(tmp_build_dir)
input = ARGV[0]
bin = File.join(tmp_build_dir, "debug_test_case")
debugger_script = Fil... | Crystal | 3 | jessedoyle/crystal | spec/debug/driver.cr | [
"Apache-2.0"
] |
<%= "evaluated string" %> | Gosu | 0 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/internal/gosu/template/NoArgEval.gst | [
"Apache-2.0"
] |
Button {
background-color: transparent;
border-color: transparent;
border-width: 1;
text-transform: capitalize;
android-elevation: 0;
android-dynamic-elevation-offset: 0;
padding: 0;
margin: 0;
}
.component-label{
margin-left: 12;
min-width: 100;
}
.component-select-fix{
padding-top: 6;
... | CSS | 3 | tralves/NativeScript | apps/toolbox/src/app-platform.android.css | [
"Apache-2.0"
] |
.non-selectable
user-select: none !important
.scroll
overflow: auto
.scroll, .scroll-x, .scroll-y
-webkit-overflow-scrolling: touch
will-change: scroll-position
.scroll-x
overflow-x: auto
.scroll-y
overflow-y: auto
.no-scroll
overflow: hidden !important
.no-pointer-events,
.no-pointer-events--children,
... | Sass | 3 | ygyg70/quasar | ui/src/css/core/mouse.sass | [
"MIT"
] |
<cfcomponent>
<cffunction name="myFunction" hint="My function">
<cftry>
<!--- do something --->
<cfcatch type="any">
<cfreturn "Error: #CFCATCH.Message#">
</cfcatch>
</cftry>
<cfreturn "Success">
</cffunction>
<cfcomponent> | ColdFusion CFC | 4 | tonym128/CFLint | src/test/resources/com/cflint/tests/GlobalVarChecker/cfcatch_tag.cfc | [
"BSD-3-Clause"
] |
# This is a decimal.
<s> <p> -123.0 .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-number-06.ttl | [
"CC-BY-3.0"
] |
i 00001 00 010 2000 00 011 0000
i 00002 00 27 00013 00 010 2000
i 00003 00 011 2000 00 012 2000
i 00004 00 27 00013 00 010 2001
i 00005 00 011 2001 00 012 2001
i 00006 00 27 00013 00 010 2001
i 00007 00 011 2002 00 27 00013
i 00010 00 010 2001 00 015 2002
i 00011 00 012 2000 00 27 00013
i 00012 06 33 12345 00 22 00000
... | Octave | 1 | besm6/mesm6 | test/aax_aox_aex/aax_aox_aex.oct | [
"MIT"
] |
diff --git a/include/git2/cert.h b/include/git2/cert.h
index e8cd2d180..54293cd31 100644
--- a/include/git2/cert.h
+++ b/include/git2/cert.h
@@ -111,6 +111,14 @@ typedef struct {
* have the SHA-256 hash of the hostkey.
*/
unsigned char hash_sha256[32];
+
+ /**
+ * Hostkey itself.
+ */
+ int hostkey_type;
+ si... | Diff | 3 | jonas-schulze/julia | deps/patches/libgit2-hostkey.patch | [
"MIT"
] |
#[warn(clippy::double_neg)]
#[allow(clippy::no_effect)]
fn main() {
let x = 1;
-x;
-(-x);
--x;
}
| Rust | 1 | ohno418/rust | src/tools/clippy/tests/ui/double_neg.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
tell application "Finder"
if not (exists window 1) then
make new Finder window
set target of front window to path to home folder as string
end if
activate
end tell
| AppleScript | 3 | FedorZaytsev/MTMR | MTMR/AppleScripts/Finder.scpt | [
"MIT"
] |
#world {
line-width: 2;
line-color: #024;
}
| CartoCSS | 0 | nimix/carto | test/rendering/issue_394.mss | [
"Apache-2.0"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="BagItem" ID="fcd1fab6-83ff-4cfc-84f4-2d8df7a5f1ce" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Node" CanEdit="False" ctype="SingleNodeObjectData">
<Position X="0"... | Csound | 3 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/InventoryItem.csd | [
"MIT"
] |
// run-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
struct Foo<const B: bool>;
fn test<const N: usize>() -> Foo<{ !(N > 10) }> where Foo<{ !(N > 10) }>: Sized {
Foo
}
fn main() {
let _: Foo<false> = test::<12>();
let _: Foo<true> = test::<9>();
}
| Rust | 3 | mbc-git/rust | src/test/ui/const-generics/generic_const_exprs/unop.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-module(bif1).
%% Other set of warnings due to removed of functions from
%% erl_bif_types.
-export([ets_rename/0, string_chars/0]).
ets_rename() ->
A = ets:new(fipp, []),
true = not is_atom(A),
ets:rename(A, fopp). % No warning
string_chars() ->
L2 = bif1_adt:opaque_string(),
S = $A,
string:... | Erlang | 3 | jjhoo/otp | lib/dialyzer/test/small_SUITE_data/src/bif1/bif1.erl | [
"Apache-2.0"
] |
- dashboard: error_overivew
title: Error Overivew
layout: newspaper
elements:
- name: Top Assumed User Types
title: Top Assumed User Types
model: aws_athena_cloudtrail
explore: cloudtrail_logs
type: looker_column
fields:
- cloudtrail_logs.total_errors
- cloudtrail_logs.assumed_user_n... | LookML | 4 | voltagebots/aws_cloudtrail_block | error_overview.dashboard.lookml | [
"MIT"
] |
<%= render(SharedView, "_drift_js.html") %>
<article class="sponsor_story">
<div class="sponsor_story-content richtext">
<h1>Podcast sponsorship styles</h1>
<h3>Endorsement</h3>
<p>This is our most popular ad style and is read by a member of our ad team. We will take care of all the creative writing... | HTML+EEX | 3 | PsOverflow/changelog.com | lib/changelog_web/templates/page/sponsor_styles.html.eex | [
"MIT"
] |
const std = @import("std");
pub fn main() anyerror!void {
std.log.info("All your codebase are belong to us.", .{});
}
test "basic test" {
try std.testing.expectEqual(10, 3 + 7);
}
| Zig | 3 | lukekras/zig | lib/std/special/init-exe/src/main.zig | [
"MIT"
] |
require "spec"
describe "GC" do
it "compiles GC.stats" do
typeof(GC.stats).should eq(GC::Stats)
end
it "raises if calling enable when not disabled" do
expect_raises(Exception, "GC is not disabled") do
GC.enable
end
end
end
| Crystal | 3 | n00p3/crystal | spec/std/gc_spec.cr | [
"Apache-2.0"
] |
module.exports (terms) =
moduleTerm = terms.term {
constructor (statements, global: false, returnLastStatement: false, bodyStatements: nil) =
self.statements = statements
self.isModule = true
self.global = global
self.bodyStatements = (bodyStatements || statem... | PogoScript | 4 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/module.pogo | [
"MIT"
] |
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(32) NOT NULL COMMENT '用户名',
`password` varchar(32) NOT NULL COMMENT '加密后的密码',
`salt` varchar(32) NOT NULL COMMENT '加密使用的盐',
`email` varchar(32) NOT NULL COMMENT '邮箱',
`phone_number` v... | SQL | 4 | zcy2095/spring-boot-demo | demo-flyway/src/main/resources/db/migration/V1_0__INIT.sql | [
"MIT"
] |
(*
Count Messages in All Mailboxes
Copyright 2002-2012 Apple Inc. All rights reserved.
You may incorporate this Apple sample code into your program(s) without
restriction. This Apple sample code has been provided "AS IS" and the
responsibility for its operation is yours. You are not permitted to
redistribute this A... | AppleScript | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/AppleScript/Count Messages in All Mailboxes.applescript | [
"MIT"
] |
package com.baeldung.propertyeditor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PropertyEditorApplication {
public static void main(String[] args) {
SpringApplication.run(PropertyEditorApplica... | Java | 3 | zeesh49/tutorials | spring-rest/src/main/java/com/baeldung/propertyeditor/PropertyEditorApplication.java | [
"MIT"
] |
/* The characters 'ı' and 'ſ' have lengths 2 */;
/* but their upper case 'I' and 'S" have length 1 */;
/* Code that relies on indices extracted from ToUpper will fail on this table*/;
CREATE TABLE `ı` (
`ſ` varchar(5) NOT NULL
) ENGINE=InnoDB;
| SQL | 3 | imtbkcat/tidb-lightning | lightning/mydump/examples/mocker_test.i-schema.sql | [
"Apache-2.0"
] |
fs=${1%.fs}
# let's *not* delete this directory; it's okay if previously-downloaded
# excess packages hang around in case we need them later.
#rm -rf "$fs"
mkdir -p "$fs"
redo-ifchange debootstrap.options
debootstrap \
--download-only \
--keep-debootstrap-dir \
$(cat debootstrap.options) \
"$fs" >&2
redo-ifchange ... | Stata | 4 | BlameJohnny/redo | docs/cookbook/container/debdownload.fs.do | [
"Apache-2.0"
] |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | OpenCL | 4 | thisisgopalmandal/opencv | modules/video/src/opencl/bgfg_knn.cl | [
"BSD-3-Clause"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-ECALL-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-ECALL-01.elf.objdump | [
"Apache-2.0"
] |
a:after { content: '\invalid' } | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/Q_wA-fPw3o2m3R7gyWNxbQ/input.css | [
"Apache-2.0",
"MIT"
] |
POST /upload HTTP/1.1
Host: localhost:8080
Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ
Content-Length: 31
------TLV0SrKD4z1TRxRhAPUvZ--
| HTTP | 2 | xifeiwu/node-formidable | test/fixture/http/misc/empty-multipart2.http | [
"MIT"
] |
# Package 'sri24-atlas' is not installed, so not removed
# Package 'libatlas-cpp-0.6-0-dev' is not installed, so not removed
# Package 'libatlas.so.3gf' is not installed, so not removed
# Package 'matlab-dev' is not installed, so not removed
# Package 'matlab-spm8' is not installed, so not removed
# Package 'fsl-atlase... | NumPy | 4 | JoeSuber/OpenCV-Max-Build-Package- | vital.config/site.cfg.numpy | [
"Intel"
] |
Complete the :pep:`654` implementation: add ``except*``. | reStructuredText | 5 | lostbeta/cpython | Misc/NEWS.d/next/Core and Builtins/2021-11-22-13-05-32.bpo-45292.pfEouJ.rst | [
"0BSD"
] |
---
title: "rgdal - vector tutorial"
author: "Paulo Arevalo"
date: "January 25, 2016"
output: html_document
---
##Objectives
The objective of this tutorial is to show some basic functionality of the rgdal package to deal with vector data in R. This tutorial assumes that GDAL is properly installed in the system. For o... | RMarkdown | 5 | klreinl/EF_Course | tutorials/rgdal-vector_tutorial.rmd | [
"MIT"
] |
⍝ Standard way to calculate the Euclidean distance
⍝ (As the sqrt of the sum of the square difference)
euclidean_distance ← {
(+/(⍺ - ⍵) * 2) * ÷ 2
}
⍝ Using the Euclidean Norm to calculate the distance.
⍝ Since the distance between 2 Points is only the length of the difference.
euclidean_distance_via_norm ← {
e... | APL | 4 | Mynogs/Algorithm-Implementations | Euclidean_distance/APL/jcla1/euclidean_distance.apl | [
"MIT"
] |
size: 2048px 1024px;
dpi: 240;
limit-x: 1404278100 1404299700;
axes {
label-format-left: scientific();
title-left: "Value";
title-font-size-left: 14pt;
label-format-right: scientific();
title-right: "Value";
title-rotate-right: 90;
title-font-size-right: 14pt;
label-format-top: datetime("%H:%M");
tit... | CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_custom_axis_titles.clp | [
"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 | 4 | w0lramD/vscode | src/vscode-dts/vscode.proposed.extensionsAny.d.ts | [
"MIT"
] |
<div class="capability-element">
<h4 class="capability-title">{{ c-title }}</h4>
<div class="capability-copy">{{ c-copy }}</div>
</div> | Liquid | 1 | noahcb/lit | website/src/_includes/partials/capability-element.liquid | [
"Apache-2.0"
] |
package {
import GZ.Gfx.Shape;
import GZ.Gfx.Object;
import GZ.File.RcImg;
public class GpuObject {
public function GpuObject( ):Void;
public function fIniRender():Void;
public function fFinishRender():Void;
public function fDraw( _oSource : Object, _nX_Start : Int, _nX_End : Int, _nY_Start : Int,... | Redcode | 4 | VLiance/GZE | src/SubLib_System/Lib_GzWeb_Emsc/WebGL/Sys/GpuObj/GpuObject.cw | [
"Apache-2.0"
] |
import "m2" as x;
def f: 42 | x::g;
| JSONiq | 1 | Abhibob/gojq | cli/testdata/m1/m1.jq | [
"MIT"
] |
module openconfig-sampling-sflow {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/sampling/sflow";
prefix "oc-sflow";
// import some basic types
import openconfig-extensions { prefix oc-ext; }
import openconfig-inet-types { prefix oc-inet; }
import openconfig-interfaces { prefi... | YANG | 5 | wenovus/public | release/models/sampling/openconfig-sampling-sflow.yang | [
"Apache-2.0"
] |
Add Trove classifier and create binary wheels for 3.10. -- :user:`hugovk`.
| Cucumber | 1 | loven-doo/aiohttp | CHANGES/6079.feature | [
"Apache-2.0"
] |
pub trait Array {
type Element;
}
pub trait Visit {
fn visit() {}
}
impl Array for () {
type Element = ();
}
impl<'a> Visit for () where
(): Array<Element=&'a ()>,
{}
fn main() {
<() as Visit>::visit(); //~ ERROR: type mismatch resolving
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/associated-types/issue-44153.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.