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 |
|---|---|---|---|---|---|
[The smallest known Brainfuck self-interpeter]
>>>+[[-]>>[-]++>+>+++++++[<++++>>++<-]++>>+>+>+++++[>++>++++++<<-]+>>>,<++[[>[
->>]<[>>]<<-]<[<]<+>>[>]>[<+>-[[<+>-]>]<[[[-]<]++<-[<+++++++++>[<->-]>>]>>]]<<
]<]<[[<]>[[>]>>[>>]+[<<]<[<]<+>>-]>[>]+[->>]<<<<[[<<]<[<]+<<[+>+<<-[>-->+<<-[>
+<[>>+<<-]]]>[<+>-]<]++>>-->[>]>>[>>... | Brainfuck | 3 | decibelcooper/gojit | bf/test/dbfi.bf | [
"MIT"
] |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | QML | 4 | ChristopherOlson/HeliPilot-QGC | src/QmlControls/IndicatorButton.qml | [
"Apache-2.0"
] |
dnl @synopsis AX_DMD
dnl
dnl Test for the presence of a DMD-compatible D2 compiler, and (optionally)
dnl specified modules on the import path.
dnl
dnl If "DMD" is defined in the environment, that will be the only
dnl dmd command tested. Otherwise, a hard-coded list will be used.
dnl
dnl After AX_DMD runs, the shell var... | M4 | 4 | Jimexist/thrift | aclocal/ax_dmd.m4 | [
"Apache-2.0"
] |
[[io]]
= IO
include::attributes.adoc[]
Most applications will need to deal with input and output concerns at some point.
Spring Boot provides utilities and integrations with a range of technologies to help when you need IO capabilities.
This section covers standard IO features such as caching and validation as well as... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/io.adoc | [
"Apache-2.0"
] |
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="w" uri="ht... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/webRule/speed.jsp | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 7.5C22 5.57 17.52 4 12 4S2 5.57 2 7.5c0 1.81 3.95 3.31 9 3.48V15H9.35c-.82 0-1.55.5-1.86 1.26l-.99 2.47c-.23.61.21 1.27.87 1.27.38 0 .72-.23.86-.58L9.2 ... | JavaScript | 4 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/TableBarRounded.js | [
"MIT"
] |
# `abi_ptx`
The tracking issue for this feature is: [#38788]
[#38788]: https://github.com/rust-lang/rust/issues/38788
------------------------
When emitting PTX code, all vanilla Rust functions (`fn`) get translated to
"device" functions. These functions are *not* callable from the host via the
CUDA API so a crate ... | Markdown | 5 | Eric-Arellano/rust | src/doc/unstable-book/src/language-features/abi-ptx.md | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?php
/*
*
* Copyright 2015 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... | PHP | 5 | samotarnik/grpc | src/php/lib/Grpc/UnaryCall.php | [
"Apache-2.0"
] |
/**
*
*/
package com.baeldung.boot.ddd.event;
import org.springframework.data.repository.CrudRepository;
/**
* @author goobar
*
*/
public interface Aggregate3Repository extends CrudRepository<Aggregate3, Long> {
}
| Java | 3 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-annotations/src/main/java/com/baeldung/boot/ddd/event/Aggregate3Repository.java | [
"MIT"
] |
/// <reference path='fourslash.ts' />
////var v30 = [1, 2], v31, v32, v33 = [0], v34 = {'a': true}, v35;/**/
format.document();
goTo.marker("");
verify.currentLineContentIs("var v30 = [1, 2], v31, v32, v33 = [0], v34 = { 'a': true }, v35;"); | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/fourslash/formatArrayOrObjectLiteralsInVariableList.ts | [
"Apache-2.0"
] |
<!---================= Room Booking System / https://github.com/neokoenig =======================--->
<!--- Gets injected into modal or displayed at bookings/view/[key]--->
<cfparam name="event">
<cfoutput>
#includePartial("details")#
</cfoutput> | ColdFusion | 2 | fintecheando/RoomBooking | views/eventdata/getevent.cfm | [
"Apache-1.1"
] |
terraform {
required_providers {
metal = {
source = "equinix/metal"
}
}
}
variable "public_key_path" {}
variable "private_key_path" {}
variable "metal_token" {}
variable "metal_project_id" {}
variable "metal_plan" {}
variable "metal_location" {
default="sjc1"
}
variable "nodes" {
default =... | HCL | 4 | brb/cilium-1 | test/packet/main.tf | [
"Apache-2.0"
] |
win32:HEADERS += arch/qatomic_windows.h \
arch/qatomic_generic.h
win32-g++*:HEADERS += arch/qatomic_i386.h \
arch/qatomic_x86_64.h
mac:HEADERS += arch/qatomic_macosx.h \
arch/qatomic_generic.h
symbian:HEADERS += arch/qatomic_symbian.h \
... | QMake | 2 | hesslink111/node-qt | deps/qt-4.8.0/win32/ia32/src/corelib/arch/arch.pri | [
"BSD-3-Clause-Clear"
] |
$el2-style = solid
@import "../imports/dotdot.styl"
| Stylus | 1 | joseconstela/meteor | tools/tests/apps/caching-stylus/subdir/foo.import.styl | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
// rustfmt-write_mode: modified
// Test "modified" output
fn
blah
()
{ }
#[cfg
( a , b
)]
fn
main() {}
| Rust | 0 | mbc-git/rust | src/tools/rustfmt/tests/writemode/source/modified.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
spring.datasource.password=password
spring.datasource.url=jdbc:mysql://localhost:3306/db_integration
spring.datasource.username=user
bael.property=integrationValue | INI | 1 | DBatOWL/tutorials | spring-boot-modules/spring-boot-properties-3/src/main/resources/application-multidocument-integration.properties | [
"MIT"
] |
class VariablesApp : Application
{
void Main()
{
int a, b;
float phi = 1.618f;
char comma = ',';
String h = "hello", w = "world";
PrintLn("The value of a was ", a);
a = 1234;
PrintLn("After the assignment, a is now ", a);
PrintLn("The value of b was ", b);
b =... | eC | 3 | N-eil/ecere-sdk | installer/coursework/Chapter 2 - Variables and Data Types/Lab2.5/variables.ec | [
"BSD-3-Clause"
] |
{"status": ["active", "ok"], "updated_date": ["2014-01-24T00:00:00"], "contacts": {"admin": {"handle": "qi9c3zbvhr"}, "tech": {"handle": "qi9c3zbvhr"}, "registrant": {"handle": "qi9c3zbvhr"}, "billing": {"handle": "qi9c3zbvhr"}}, "nameservers": ["ns01.hostcontrol.com", "ns02.hostcontrol.com"], "expiration_date": ["2021... | Nu | 2 | joepie91/python-whois | test/target_default/alliancefrançaise.nu | [
"WTFPL"
] |
// run-pass
// Tests the ability for the Self type in default methods to use
// capabilities granted by builtin kinds as supertraits.
use std::sync::mpsc::{Sender, channel};
trait Foo : Send + Sized + 'static {
fn foo(self, tx: Sender<Self>) {
tx.send(self).unwrap();
}
}
impl <T: Send + 'static> Foo... | Rust | 4 | Eric-Arellano/rust | src/test/ui/self/builtin-superkinds-self-type.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<webview src="http://localhost:{port}/1.html" partition="persist:trusted"></webview>
</body>
</html>
| Smarty | 1 | frank-dspeed/nw.js | test/sanity/issue6784-webview/index.html.tpl | [
"MIT"
] |
Begin Project "MyProjects", "My DBPS Projects go here", VC_PROJECT=, AUXPROJPATH=
DATASOURCE=
DATABASE=
End Project
| Ecere Projects | 0 | anilws1/DBPS | MyProjects/MyProjects.epj | [
"Apache-2.0"
] |
Mozilla/5.0 (Linux; Android 8.0.0; SM-J737A Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 8.0.0; SM-J737A Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 8.0.0; SM-J737A B... | Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/samsung-sm-j737a.txt | [
"MIT"
] |
export class Helper
{
public static mapValues(obj: Record<string, any>, fn: (v: any) => any): Record<string, any>
{
let result: any = {};
for (const key of Object.keys(obj))
{
result[key] = fn(obj[key]);
}
return result;
}
}
| Harbour | 4 | ulisesh/arcade | src/Microsoft.DotNet.SwaggerGenerator/Microsoft.DotNet.SwaggerGenerator.CodeGenerator/Languages/angular/Helper.hb | [
"MIT"
] |
@program lib-away.muf
1 1000 d
i
( lib-away.muf by Natasha@HLM
A library for showing when and why players are away.
away-cmd { strY strZ -- }
Performs an #away command, such as if the user entered '#away strY=strZ'.
back-cmd { strY strZ -- }
Performs a #back command, such as if the user entered '#back st... | MUF | 5 | natmeox/hlm-suite | lib-away.muf | [
"MIT"
] |
DROP TABLE IF EXISTS [Post]
DROP TABLE IF EXISTS [User]
CREATE TABLE [dbo].[User] ([id] nvarchar(1000) NOT NULL ,
[email] nvarchar(1000) NOT NULL ,
[name] nvarchar(1000) ,
CONSTRAINT PK_User_id PRIMARY KEY ([id]),
CONSTRAINT User_email_unique UNIQUE ([email]))
CREATE TABLE [dbo].[Post] ([id] nvarchar(1000) NOT N... | SQL | 3 | safareli/prisma | packages/client/src/__tests__/integration/happy/blog-env-mssql/setup.sql | [
"Apache-2.0"
] |
#include <PJONSoftwareBitBang.h>
/* ARBITRARY DATA TYPE TRANSMISSION EXAMPLE
This sketch contains the transmitter side. */
PJONSoftwareBitBang bus(45);
int packet;
int voltage;
/* A custom struct is defined just to clarify that any kind of custom
data type can be easily transmitted using the PJON send functio... | Arduino | 4 | jcallano/PJON | examples/ARDUINO/Local/SoftwareBitBang/SendArbitraryDataType/Transmitter/Transmitter.ino | [
"Apache-2.0"
] |
#![crate_type="lib"]
// rust-lang/rust#61631: The use of `Self` in the defaults of generic
// types in a *trait* definition are allowed.
//
// It *must* be accepted; we have used this pattern extensively since
// Rust 1.0 (see e.g. `trait Add<Rhs=Self>`).
trait Tnobound<P = Self> {}
impl Tnobound for () { }
// This ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/generics/issue-61631-default-type-param-can-reference-self-in-trait.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env io
// Iterate 1-100 using a
for (a, 1, 100,
// Print the number
if ((a % 3) != 0 and (a % 5) != 0,
a print
)
// Number is divisible by 3
if ((a % 3) == 0,
"Fizz" print
)
// Number is divisible by 5
if ((a % 5) == 0,
"Buzz" print
)
... | Io | 4 | akluth/io | samples/misc/FizzBuzz.io | [
"BSD-3-Clause"
] |
module Views.InstanceGroupBadge exposing (view)
import Html exposing (Html)
import Html.Attributes exposing (style)
import Message.Message exposing (Message)
import Views.Styles as Styles
view : String -> Int -> Html Message
view backgroundColor n =
let
( text, fontSize ) =
if n <= 99 then
... | Elm | 4 | Caprowni/concourse | web/elm/src/Views/InstanceGroupBadge.elm | [
"Apache-2.0"
] |
# Detects a Hurricane Panda tactic of using Hurricane Electric to resolve commonly accessed websites
# Alerts when a domain in the Alexa top 500 is resolved via Hurricane Electric and/or when a host connects to an IP in the DNS response
# CrowdStrike 2015
# josh.liburdi@crowdstrike.com
@load base/protocols/dns
@load b... | Bro | 5 | kingtuna/cs-bro | bro-scripts/adversaries/hurricane-panda/rogue-dns/dynamic/detect-rogue-dns.bro | [
"BSD-2-Clause"
] |
{:interfaces
{:ItemsContainer
{:fields
{:items {:type (non-null (list (non-null :Item)))}}}}
:objects
{:Order
{:implements [:ItemsContainer]
:fields
{:id {:type (non-null String)}
:items {:type (non-null (list (non-null :Item)))}}}
:Item
{:fields
{:quantity {:type (non-null Int)}
:descr... | edn | 4 | hagenek/lacinia | dev-resources/select-type-schema.edn | [
"Apache-2.0"
] |
# API name
# Group Users
## User [/users]
### List all users [GET /users/all]
+ Response 200
[]
| API Blueprint | 3 | darkcl/drafter | test/fixtures/api/advanced-action.apib | [
"MIT"
] |
#tag Class
Protected Class MouseKeysWFS
#tag Method, Flags = &h0
Sub Constructor()
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub Constructor(mb as MemoryBlock)
Flags = mb.Long( 4 )
MaxSpeed = mb.Long( 8 )
TimeToMaxSpeed = mb.Long( 12 )
ControlSpeed = mb.Long( 16 )
End Sub
#tag En... | REALbasic | 3 | bskrtich/WFS | Windows Functionality Suite/UI Extras/System Information/Classes/MouseKeysWFS.rbbas | [
"MIT"
] |
defmodule Phoenix.NamingTest do
use ExUnit.Case, async: true
alias Phoenix.Naming
doctest Naming
test "underscore/1 converts Strings to underscore" do
assert Naming.underscore("FooBar") == "foo_bar"
assert Naming.underscore("Foobar") == "foobar"
assert Naming.underscore("APIWorld") == "api_world"
... | Elixir | 4 | faheempatel/phoenix | test/phoenix/naming_test.exs | [
"MIT"
] |
#! /bin/sh -e
# DP: Atomic builtins using kernel helpers for ARM Linux/EABI.
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-back... | Darcs Patch | 4 | andreimironenko/arago-oe-dev | recipes/gcc/gcc-4.3.4/debian/armel-atomic-builtins.dpatch | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
ClassCount=1
ResourceCount=2
NewFileInclude1=#include "stdafx.h"
Class1=CPortView
LastClass=CPortView
LastTemplate=CFormView
Resource1=IDD_FORMVIEW
Resource2=IDD_NODEVIEW
[CLS:CPortView]
Type=0
HeaderFile=PortView.h
ImplementationFile=Po... | Clarion | 2 | CarysT/medusa | Tools/NodeScenePort/NodeScenePort.clw | [
"MIT"
] |
/*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* This is a custom linker script used to build nacl_helper_bootstrap.
* It has a very special layout. This script will only work with inp... | Logos | 4 | cohortfsllc/cohort-cocl2-sandbox | src/trusted/service_runtime/linux/nacl_bootstrap.x | [
"BSD-3-Clause"
] |
# Tests that Spack detects a target if it is in the middle of a list
rule cc
command = true
build foo check bar: cc
| Ninja | 1 | kkauder/spack | lib/spack/spack/test/data/ninja/affirmative/three_targets/build.ninja | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
patches-own [Perfil-Cultural]
to setup
ca
set-current-plot "Distribución por Colores"
set-plot-y-range 0 (max-pxcor + 1) * (max-pycor + 1)
;; inicializamos todos los patches
ask patches
[
;;Crea una lista que almacena los rasgos de cada característica
;; que son simplemente valores numéricos al... | NetLogo | 5 | fsancho/IA | 10. Social Simulation/Difusion Cultural.nlogo | [
"MIT"
] |
#![feature(rustc_attrs)]
#[rustc_outlives]
struct Foo<'a, 'b, T> { //~ ERROR rustc_outlives
x: &'a &'b T
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/rfc-2093-infer-outlives/nested-regions.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package a
const (
sinPi4 = 0.70710678118654752440084436210484903928483593768847
A = complex(sinPi4, -sinPi4)
)
| Go | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | test/fixedbugs/issue7648.dir/a.go | [
"BSD-3-Clause"
] |
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc
* Module: anticheat/pickup_spam.pwn
* Purpose: checks if a player enters a bunch of pickups really fast
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Variables ** */
static stock
LastPickupTimestamp [ MAX_PLAYERS ],
PreviousPickupID ... | PAWN | 4 | omcho420/gta-open | gamemodes/core/anti-cheat/pickup_spam.pwn | [
"Apache-2.0"
] |
implementation module Util.Cache
import StdFile
from StdFunc import seqList, :: St
import StdFunctions
import StdList
import StdOrdList
import StdString
import StdTuple
import Control.Applicative
import Control.Monad
import Crypto.Hash.MD5
import Data.Error
from Data.Func import $, on, instance Functor ((->) r)
impor... | Clean | 4 | clean-cloogle/Cloogle | backend/Util/Cache.icl | [
"MIT"
] |
<?php
/* @var $method Zephir\ClassMethod */
?>
<li class="class-method clearfix">
<div class="hidden-anchor" id="method-details-<?= $method->getName() ?>"></div>
<div class="method-details">
<h3 class="method-name"><?= $method->getName() ?></h3>
<div class="method-details-details">
... | HTML+PHP | 4 | nawawi/zephir | templates/Api/themes/zephir/partials/namespace/method-details.phtml | [
"MIT"
] |
# EDGELIB project file (edit at your own risk)
# Copyright (c) 2004-2017 Elements Interactive B.V.
# -----------------------------------------
# General project properties
projectname = "pluginrasteroid"
caption = "buildgl"
vendor = "Elements Interactive B.V."
vendorshort = "EI"
target type = "l... | Ecere Projects | 1 | elementsinteractive/edgelib | edgelib/extlib/opengl_plugin/sym-pre9/build_gles_rst.epj | [
"BSD-3-Clause"
] |
^XA^FO0,0^GFA,120000,120000,100,!:GCK0G1gYFG3IFGCmN0G7GCK0G7hJFmN0G7GCJ0G1hKFGCmM0G7GCI0G7hLFGEmM0G7GCI0G7hMFmM0G7GCI0G6hMFG8hY0G2I0GFG8H0GFGEJ0G4hN0GEN0G1HFGEQ0G7GCI0G7hMFGChX0G7GFG8H0GFG8H0IFH0G7GFGEhL0G3GEJ0G7GFGCG0G1HFGEH0G1GFGEL0G7GCI0G7hMFGEhW0G1HFG8H0GFG8H0IFGEG1IFhL0GFGEI0G1IFG8G1HFGEH0IFG8K0G7GCI0G7hNFhW0G3HFG... | Zimpl | 1 | nelsontkq/zplify | Zplify.Tests/Data/should-rotate.zpl | [
"MIT"
] |
server {
server_name localhost;
root LOCAL_DIR/web;
index app_dev.php;
location / {
try_files $uri /app_dev.php$is_args$args;
}
location ~ ^/(app_dev|config)\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_p... | ApacheConf | 2 | masterzion/symfonytemplate | travis/nginx/travis.vhost | [
"MIT"
] |
statement 4.6314874943054649 0.0 0.0 0.0 1.2641916643189905 0.0 0.0 0.0 0.0 0.0 1.5404450409471488 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
return 0.0 1.1451323043030026 0.0 0.6931471805599... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/22/same_sentence_ppmi.dm | [
"CC-BY-3.0"
] |
< M A T L A B >
Copyright 1984-2007 The MathWorks, Inc.
Version 7.4.0.287 (R2007a)
January 29, 2007
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.c... | Matlab | 3 | zangandi/HDMapsDataPrediction | preprocessing/jsonlab/examples/jsonlab_selftest.matlab | [
"MIT"
] |
#RequireAdmin
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_Change2CUI=y
#AutoIt3Wrapper_Res_Comment=Inject data into the $EA attribute
#AutoIt3Wrapper_Res_Description=Inject data into the $EA attribute
#AutoIt3Wrapper_Res_Fileversion=1.0.0.1
#AutoIt3Wrapper... | AutoIt | 4 | jschicht/EaTools | EaInject.au3 | [
"CC-BY-3.0"
] |
defmodule Dialyzer.IsStruct do
def map_literal_atom_literal() do
is_struct(%Macro.Env{}, Macro.Env)
end
def arg_atom_literal(arg) do
is_struct(arg, Macro.Env)
end
end
| Elixir | 3 | doughsay/elixir | lib/elixir/test/elixir/fixtures/dialyzer/is_struct.ex | [
"Apache-2.0"
] |
init python:
class PongDisplayable(renpy.Displayable):
def __init__(self):
renpy.Displayable.__init__(self)
# The sizes of some of the images.
self.PADDLE_WIDTH = 12
self.PADDLE_HEIGHT = 95
self.PADDLE_X = 240
self.BALL_WIDTH = 15
... | Ren'Py | 5 | SentinelWarren/LearnToCodeRPG | game/scripts/pong_minigame.rpy | [
"BSD-3-Clause"
] |
<div>
{syntax double}
{{$foo}}
{$notFoo}
{{/syntax}}
</div> | Latte | 1 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/syntax-double.latte | [
"Apache-2.0"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <arm_neon.h>
#include <qnnpack/q8gavgpool.h>
void pytorch_q8gavgpool_... | C | 3 | Hacky-DH/pytorch | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gavgpool/up8xm-neon.c | [
"Intel"
] |
# Copyright (C) 2008-2011, Parrot Foundation.
=head1 NAME
uuid.pir - minimalist uuid library
=head1 DESCRIPTION
See e2fsprogs/libuuid (ISO-C), UUID (Perl/XS)
L<http://e2fsprogs.sourceforge.net/>
For discussion about the source of entropy, see TT #64.
=head2 Methods
=over 4
=cut
.namespace ['uuid']
.loadlib '... | Parrot Internal Representation | 5 | winnit-myself/Wifie | runtime/parrot/library/uuid.pir | [
"Artistic-2.0"
] |
Label {
background-color: #00ff00ff;
}
| CSS | 0 | wenzdey/NativeScript | apps/automated/src/ui/page/test-module-css-page.css | [
"MIT"
] |
a := "Hello" as CString
a println()
b := ("He" + "llo") as CString
b println()
"a = b ? %d" printfln(a equals?(b))
| ooc | 4 | shamanas/rock | test/sdk/lang/cstr.ooc | [
"MIT"
] |
.. meta::
:description: Create an event trigger with Hasura
:keywords: hasura, docs, event trigger, create
.. _create_trigger:
Creating an event trigger
=========================
.. contents:: Table of contents
:backlinks: none
:depth: 2
:local:
Introduction
------------
Event triggers can be created u... | reStructuredText | 5 | gh-oss-contributor/graphql-engine-1 | docs/graphql/core/event-triggers/create-trigger.rst | [
"Apache-2.0",
"MIT"
] |
#Signature file v4.1
#Version 0.5
CLSS public abstract interface java.io.Serializable
CLSS public java.lang.Exception
cons protected init(java.lang.String,java.lang.Throwable,boolean,boolean)
cons public init()
cons public init(java.lang.String)
cons public init(java.lang.String,java.lang.Throwable)
cons public init(... | Standard ML | 3 | timfel/netbeans | ide/nativeimage.api/nbproject/org-netbeans-modules-nativeimage-api.sig | [
"Apache-2.0"
] |
(defmodule jvm-node
(export all))
(defun behaviour_info
(('callbacks)
'undefined)
((_)
'undefined))
(defun start (opts)
'ok)
| LFE | 2 | clojusc/clojang | src/lfe/jvm-node.lfe | [
"Apache-2.0"
] |
fun draggableList title items =
itemSources <- List.mapM source items;
draggingItem <- source None;
return <xml>
<h2>Great {[title]}</h2>
<ul>
{List.mapX (fn itemSource => <xml>
<li onmousedown={fn _ => set draggingItem (Some itemSource)}
onmouseup={fn _ => set dr... | UrWeb | 4 | apple314159/urweb | demo/more/dragList.ur | [
"BSD-3-Clause"
] |
import io/File, structs/[ArrayList, HashMap], os/[Process, Env]
import os/ShellUtils
import PkgInfo
/**
* A frontend to pkgconfig, to retrieve information for packages,
* like gtk+-2.0, gtkgl-2.0, or imlib2
*/
PkgConfigFrontend: class {
cache := static HashMap<String, PkgInfo> new()
/**
*
* @par... | ooc | 5 | fredrikbryntesson/launchtest | source/rock/frontend/pkgconfig/PkgConfigFrontend.ooc | [
"MIT"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: unpacker.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs
# @DESCRIPTION:
# Some extraneous file formats are not part of... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/unpacker.eclass | [
"MIT"
] |
GET /stuff/here?foo=bar HTTP/1.0\r\n
If-Match: bazinga!\r\n
If-Match: large-sound\r\n
\r\n
| HTTP | 2 | ashishmjn/gunicorn | tests/requests/valid/017.http | [
"MIT"
] |
<template>
<app-btn
:to="{
name: 'Documentation',
params: {
category: 'introduction',
page: 'enterprise'
}
}"
path="enterprise"
@click="onClick"
/>
</template>
<script>
// Utilities
import { get } from 'vuex-pathify'
export default {
name: 'EnterpriseLin... | Vue | 4 | vanillamasonry/vuetify | packages/docs/src/components/doc/links/EnterpriseLink.vue | [
"MIT"
] |
mean ← { ⍝ Arithmetic mean
sum←+/⍵
num←⍴⍵
sum÷⊃num
}
mean 1 2 3 4 | APL | 4 | melsman/apltail | tests/mean.apl | [
"MIT"
] |
module A {
class B {
var x: int;
}
}
module User {
import A.B.{x as y}; // should fail, renaming shouldn't hide the error message
proc main() {
writeln(y);
}
}
| Chapel | 3 | jhh67/chapel | test/visibility/import/rename/last-before-list-not-mod.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
^XA
^FT75,210^BQN,2,5
^FH\^FDLA,#TAG_CODE^FS
^FB253,1,0,c
^FT243,35^A0I,41,39^FH\^FD#TAG_CODE^FS
^XZ
| Zimpl | 3 | WPR-Engineering/part-box | config/default-remove.zpl | [
"Apache-2.0"
] |
source ./test-functions.sh
install_service
echo 'PID_FOLDER=/does/not/exist' > /test-service/spring-boot-app.conf
start_service
await_app
curl -s http://127.0.0.1:8080/
| Shell | 2 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/resources/scripts/launch-with-missing-pid-folder.sh | [
"Apache-2.0"
] |
; AutoHotkey script for formatting HTML with DirtyMarkup
; They actually have an API, but I decided to go this route instead of... looking for a CLI... which does exist
; Usage:
; * Open https://www.10bestdesign.com/dirtymarkup/
; * Check "Allow proprietary attributes"
; * Switch to your editor where you have some HTM... | AutoHotkey | 4 | LunatiikXD/html_os | programs/jspaint/help/prettify-html.ahk | [
"MIT"
] |
# =============================================================
# This script is written to generate structured multi-block
# grid for a nozzle profile with respect to grid guideline.
#==============================================================
# written by Pay Dehpanah
# last update: Sep 2021
#=====================... | Glyph | 3 | pdpdhp/nozzlemesher | guideline/GridParamUpdate.glf | [
"BSD-3-Clause"
] |
import "6" as foo { test: "foo" };
def h: . * foo::i;
| JSONiq | 0 | Abhibob/gojq | cli/testdata/5.jq | [
"MIT"
] |
#!/bin/bash
_fastlane_complete() {
COMPREPLY=()
local word="${COMP_WORDS[COMP_CWORD]}"
local completions=""
local file
# look for Fastfile either in this directory or fastlane/ then grab the lane names
if [[ -e "Fastfile" ]]; then
file="Fastfile"
elif [[ -e "fastlane/Fastfile" ]]; then
file="fas... | Shell | 4 | flufff42/fastlane | fastlane/lib/assets/completions/completion.bash | [
"MIT"
] |
/*
* 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 ... | JFlex | 5 | Antholoj/netbeans | php/php.latte/tools/LatteTopColoringLexer.flex | [
"Apache-2.0"
] |
size: 1024px 60px;
dpi: 96;
margin: 1em;
axis {
label-placement: linear-align(1);
limit: -0.5 16.5;
}
| CLIPS | 0 | asmuth-archive/travistest | test/examples/charts_reference_scale_layout_linear_align.clp | [
"Apache-2.0"
] |
#summary Welcome to the BumpTop open source project!
= Introduction =
Welcome to the BumpTop open source project!
-Download links for Mac, Windows, etc.
Todo: explain history of windows, mac codebases. Windows was built of Anand's masters thesis research code, NOT following proper coding practices, rushing to d... | MediaWiki | 1 | dyzmapl/BumpTop | wiki/PageName.wiki | [
"Apache-2.0"
] |
.external
color: red | Sass | 1 | zowesiouff/parcel | packages/core/integration-tests/test/integration/sass-node-modules-import/node_modules/library/style.sass | [
"MIT"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/SynagogueRounded.js | [
"MIT"
] |
#!/usr/bin/osascript
# Assumption: Evernote running (launching and waiting not great UX)
#
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Create Evernote
# @raycast.mode silent
#
# Optional parameters:
# @raycast.icon ./images/evernote.png
# @raycast.packageName Evernote
#
# Documentation:
# @rayca... | AppleScript | 4 | daviddzhou/script-commands | commands/apps/evernote/create-note.applescript | [
"MIT"
] |
%{
#include <stdio.h>
#include <stdlib.h>
#include <typeinfo>
#include "scanner.h"
#include "ast.h"
#define YYERROR_VERBOSE 1
#define YYDEBUG 1
class node_name_decl;
node_program *ast;
node_var_list *var_list;
node_func_list *func_list;
extern char* yytext;... | Bison | 4 | cloudson/cloudblocks | compiler/parser.bison | [
"MIT"
] |
package planner_test
import "testing"
import "planner"
input =
"
#datatype,string,long,dateTime:RFC3339,string,string,string,double
#group,false,false,false,true,true,true,false
#default,_result,,,,,,
,result,table,_time,_measurement,host,_field,_value
,,0,2018-05-22T19:53:26Z,system,host.local,load1,1.83
,,0,20... | FLUX | 5 | metrico/flux | stdlib/planner/group_min_test.flux | [
"MIT"
] |
module Svc {
@ A component for managing memory buffers
passive component BufferManager {
# ----------------------------------------------------------------------
# General ports
# ----------------------------------------------------------------------
@ Mutex locked Buffer send in input port
g... | FORTRAN | 4 | AlperenCetin0/fprime | Svc/BufferManager/BufferManager.fpp | [
"Apache-2.0"
] |
*** Settings ***
Documentation Android Basic Interactions
Resource ../resources/resource.robot
Test Teardown Close Application
*** Test Cases ***
Should send keys to search box and then check the value
Open Android Test App .app.SearchInvoke
input text txt_query_prefill Hello world!
click element btn_star... | RobotFramework | 4 | ismoulsk/appium | sample-code/robotframework/tests/android_basic_interactions.test.robot | [
"Apache-2.0"
] |
# type: ignore[]
import torch
import torch.fx
import torch.nn as nn
import torch.fx.experimental.fx_acc.acc_tracer as acc_tracer
from torch.fx.experimental.fx2trt.tools.trt_splitter import TRTSplitter
from torch.fx.experimental.fx2trt.fx2trt import TRTInterpreter, InputTensorSpec, TRTModule
# The purpose of this exa... | Python | 5 | PaliC/pytorch | torch/fx/experimental/fx2trt/example/fx2trt_example.py | [
"Intel"
] |
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; completion/company/test/test-company.el
(describe "completion/company"
(before-all
(load! "../autoload"))
(describe ":company-backend"
:var (a +company-backend-alist backends)
(before-each
(setq-default company-backends '(t))
(setq +co... | Emacs Lisp | 4 | leezu/doom-emacs | modules/completion/company/test/test-company.el | [
"MIT"
] |
//This is the solution to http://codeforces.com/contest/897/problem/C
//C. Nephren gives a riddle
#raw "template.cpy"
#define N 100007
ll size[N];
string f0 = "What are you doing at the end of the world? Are you busy? Will you save us?";
string f1 = "What are you doing while sending \""
string f2 = "\"? Are you busy... | COBOL | 3 | saviour07/CPY | Examples/Contest problems/897C. Nephren gives a riddle/c.cpy | [
"MIT"
] |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "textflag.h"
#ifndef GOARCH_amd64
TEXT ·sigpanic0(SB),NOSPLIT,$0-0
JMP ·sigpanic<ABIInternal>(SB)
#endif
| GAS | 3 | SSSDNSY/go | src/runtime/asm.s | [
"BSD-3-Clause"
] |
/**
* 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.
*
* Implementation of this file has been influenced by AtlasPHP
*
* @link https://gith... | Zephir | 5 | tidytrax/cphalcon | phalcon/DataMapper/Query/AbstractQuery.zep | [
"BSD-3-Clause"
] |
#(ly:message "hello from dev_dir1")
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/dev_dir_installed_ext/package.ly | [
"MIT"
] |
These are patches for MOVEINIT.C, supplied
with the MSVC compiler in the compiler's SOURCE\MOVE
subdirectory. (Copy that and the MOVEAPI.H
file into your NetHack src directory and apply this patch)
*** ../linc/src/moveinit.c Tue Nov 23 08:01:00 1993
--- src/moveinit.c Sun Mar 13 10:13:10 1994
*********... | Max | 4 | aoeixsz4/nh-setseed | outdated/sys/msdos/moveinit.pat | [
"Intel",
"X11"
] |
export default function renameProps({ root, componentName, props }) {
return root.findJSXElements(componentName).forEach((path) => {
path.node.openingElement.attributes.forEach((node) => {
if (node.type === 'JSXAttribute' && Object.keys(props).includes(node.name.name)) {
node.name.name = props[node.... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-codemod/src/util/renameProps.js | [
"MIT"
] |
grammar t053heteroTP16;
options {
language=JavaScript;
output=AST;
tokenVocab=t053heteroT16;
}
tokens { ROOT; }
@header {
function V16(ttype, x) {
V16.superclass.constructor.call(this, new org.antlr.runtime.CommonToken(ttype));
this.foobar = x;
};
org.antlr.lang.extend(V16, org.antlr.runtime.tree.Co... | G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t053heteroTP16.g | [
"Apache-2.0"
] |
create table book (
id numeric,
title varchar(128),
author varchar(256),
constraint pk_book primary key (id)
); | SQL | 4 | DBatOWL/tutorials | persistence-modules/flyway/src/main/resources/db/undo/V1_0__create_book_table.sql | [
"MIT"
] |
/*
* Copyright 2012-2020 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | techAi007/spring-boot | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/origin/JarUri.java | [
"Apache-2.0"
] |
;; -*- no-byte-compile: t; -*-
;;; os/tty/packages.el
(if (featurep! +osc)
(package! clipetty
:recipe (:host github :repo "spudlyo/clipetty")
:pin "01b39044b9b65fa4ea7d3166f8b1ffab6f740362")
;; Despite its name, this works for macOS as well.
(package! xclip :pin "ef2ad92f3157d40b6d12c7e8485d633eaae... | Emacs Lisp | 4 | leezu/doom-emacs | modules/os/tty/packages.el | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<title>^Foo</title>
</head>
<img src="{$basePath}" />
</html> | Latte | 1 | arusinha/incubator-netbeans | php/php.latte/test/unit/data/testfiles/actions/toggleComment/testHtml.latte | [
"Apache-2.0"
] |
CREATE SCHEMA CUSTOMSCHEMA;
| SQL | 1 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-actuator/src/test/resources/db/create-custom-schema.sql | [
"Apache-2.0"
] |
2016-03-16 08:05:11 fsociety we have not spoken for eons
2016-03-16 08:05:13 fsociety ;)
2016-03-16 10:16:52 < JimKarnage (76561198012243833@steam) has quit (bitlbee.localhost steam.localhost)
2016-03-16 10:29:18 > JimKarnage (76561198012243833@steam) is back on server
2016-03-16 11:43:39 - irc: disconnected from... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.jimkarnage.weechatlog | [
"MIT"
] |
#!/usr/bin/env bash
export ARG="$1"
curl -s "https://github.com/meteor/meteor/commit/$(git log --format=%H -1 --author "$1")" | perl -nle 'm!<span class="author-name"><a href="/([^"]+)"! and do { my $name = $1; $ENV{ARG} =~ /(<.+>)/; print "GITHUB: $name $1"; exit 0 }'
| Shell | 2 | joseconstela/meteor | scripts/admin/find-author-github.sh | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppPublisher=Damian Trebilco
AppPublisherURL=http://code.google.com/p/glintercept/
AppSupportURL=http://code.google.com/p/glintercept/
AppUpdatesURL=http://code.google.com/p/glintercept... | Inno Setup | 4 | vinjn/glintercept | 3rdParty/Install/Common.iss | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.