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 |
|---|---|---|---|---|---|
foo {
/* prettier-ignore */
thing: foo;
-ms-thing: foo;
}
| CSS | 1 | mikoscz/prettier | tests/css/comments/prettier-ignore.css | [
"MIT"
] |
exec >&2
redo-ifchange whichmake
run() {
rm -f *.out
./whichmake y
rm -f *.out
./whichmake -j10 y
rm -f *.out
redo y
rm -f *.out
# Capture output to y.log because we know this intentionally generates
# a scary-looking redo warning (overriding the jobserver).
if ! redo -j10 y ... | Stata | 4 | BlameJohnny/redo | t/203-make/all.do | [
"Apache-2.0"
] |
CREATE ALIAS UPDATE_EMPLOYEE_DESIGNATION AS $$
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.SQLException;
@CODE
void updateEmployeeDesignation(final Connection conn, final String employeeNumber, final String title) throws SQLException {
CallableStatement updateStatement = conn.... | SQL | 4 | DBatOWL/tutorials | persistence-modules/hibernate5/src/main/resources/init_database.sql | [
"MIT"
] |
MSTRINGIFY(
cbuffer OutputToVertexArrayCB : register( b0 )
{
int startNode;
int numNodes;
int positionOffset;
int positionStride;
int normalOffset;
int normalStride;
int padding1;
int padding2;
};
StructuredBuffer<float4> g_vertexPositions : register( t0 );
StructuredBuffer<float4> g_vert... | HLSL | 4 | BonJovi1/Bullet-the-Blue-Sky | external/bullet-2.81-rev2613/src/BulletMultiThreaded/GpuSoftBodySolvers/DX11/HLSL/OutputToVertexArray.hlsl | [
"WTFPL"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R02e02*/
Pluto#3#25#Black#No
Lizzie#10#43#Tan#Yes
Pesci#10#38#Brindle#No
| SAS | 0 | snowdj/sas-prog-for-r-users | code/SP4R02e02.sas | [
"CC-BY-4.0"
] |
# This script implements a toolkit for counting active S-boxes using Mixed-Integer
# Linear Programming for mCrypton from the paper by N. Mouha, Q. Wang, D. Gu, and B. Preneel,
# "Differential and Linear Cryptanalysis using Mixed-Integer Linear Programming,"
# in Information Security and Cryptology - Inscrypt 2011,... | Sage | 5 | Deadlyelder/Crypto-Tools | S-Box MILP tool/mCrypton.sage | [
"Unlicense"
] |
.class-style {
font-size: 55;
color: red;
}
#id-style {
background-color: blue;
}
Label {
border-color: black;
border-radius: 25;
margin: 10px;
}
| CSS | 2 | tralves/NativeScript | apps/ui/src/css/styled-formatted-text-page.css | [
"Apache-2.0"
] |
' usb ADB bridge by spiritplumber@gmail.com
' credit to the guy at code.google.com/p/microbridge for original implementation
' license: NAVCOM license
' buy my robot kits! www.f3.to first in android robotics!
' the desync problem is with multiple connections: single conn works great
CON
_clkmode = xt... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/ADB bridge full (for Android interfacing)/spin/spin/adb-shell-module-autoenum.spin | [
"MIT"
] |
metadata
created = "2014-01-26T23:03:09Z"
sign-algorithm = CURVE-ed25519
public-sign-key = #")YI31D3#Y@2yWUmzLu&v8or#)[JavRb!7<pzcDWE"
signed-on = 2014-01-26T23:03:09Z
signature = #"Ev)&KJDVlIDl/Vf5dijJa&RmMdq6PY!/ieT&m9HCQeBk)+miJHgjB@!>UwaBDN#s^cd7*+g]Ahl@lxu("
CURL
island = #".q0Z6tq7Bq0da#B[... | Zimpl | 0 | mgiorgio/coast | examples/curl+.zpl | [
"Apache-2.0"
] |
import Widget from require "lapis.html"
class MoonTest extends Widget
content: =>
div class: "greeting", ->
text "hello world"
| MoonScript | 3 | tommy-mor/lapis | spec/templates/moon_test.moon | [
"MIT",
"Unlicense"
] |
<employee id="{person/@user}">
<name>{/person/firstName} {/person/lastName}</name>
<location>{/person/city}</location>
</employee> | XQuery | 3 | erard22/camel | components/camel-saxon/src/test/resources/org/apache/camel/component/xquery/myTransform.xquery | [
"Apache-2.0"
] |
if(NOT USE_VULKAN)
return()
endif()
if(ANDROID)
if(NOT ANDROID_NDK)
message(FATAL_ERROR "USE_VULKAN requires ANDROID_NDK set.")
endif()
# Vulkan from ANDROID_NDK
set(VULKAN_INCLUDE_DIR "${ANDROID_NDK}/sources/third_party/vulkan/src/include")
message(STATUS "VULKAN_INCLUDE_DIR:${VULKAN_INCLUDE_DIR}")
... | CMake | 4 | Hacky-DH/pytorch | cmake/VulkanDependencies.cmake | [
"Intel"
] |
sub Main()
' Tests createNodeByType is properly calling init methods on each child and respective component extensions
node = createObject("roSGNode", "ExtendedComponent")
' Above will call all init methods in the following order:
' - Each children in the BaseComponent (because ExtendedComponent extends... | Brightscript | 4 | lkipke/brs | test/e2e/resources/components/componentExtension.brs | [
"MIT"
] |
@import '../../styles/mixin.scss';
.g-doc {
@include row-width-limit;
margin: 0 auto .24rem;
}
.news-box .news-timeline .ant-timeline-item .ant-timeline-item-content{
min-width: 300px !important;
width: 75% !important;
} | SCSS | 2 | jiyeking/yapi | client/containers/Group/Group.scss | [
"Apache-2.0"
] |
pragma solidity >=0.4.0;
| Solidity | 1 | gammy55/linguist | test/fixtures/Generic/sol/Solidity/modern.sol | [
"MIT"
] |
@import "ui-variables";
.salesforce-object-form-wrap {
overflow-y: auto;
}
.salesforce-object-form {
flex: 1;
position: relative;
.spinner {
z-index: 1001;
}
.form-name {
padding: 0 22px;
h1 {
margin: 22px 0;
}
}
.form-footer {
position: fixed;
width: 100%;
bottom: 0;
... | Less | 2 | cnheider/nylas-mail | packages/client-app/internal_packages/nylas-private-salesforce/stylesheets/salesforce-object-form.less | [
"MIT"
] |
open import Agda.Builtin.Nat
data Tree : Set where
` : Nat → Tree
_`+_ : Tree → Tree → Tree
⟦_⟧ : Tree → Nat
⟦ ` n ⟧ = n
⟦ t `+ u ⟧ = ⟦ t ⟧ + ⟦ u ⟧
data Target : Tree → Set where
0+_ : ∀ e → Target (` 0 `+ e)
_+0 : ∀ e → Target (e `+ ` 0)
[_] : ∀ e → Target e
target : ∀ e → Target e
target (` 0 `+ e... | Agda | 4 | cruhland/agda | test/Succeed/implicit-with.agda | [
"MIT"
] |
.*==============================================================*\
.* *
.* Edit.ipf - Information Tag Language file for the Edit menu *
.* help panels. *
.* Copyright (C) 1996 xTech Ltd. All rights reserv... | IGOR Pro | 3 | zanud/xds-2.60 | misc/Samples/OS2/Template/HLP/edit.ipf | [
"Apache-2.0"
] |
// Hello World
println "Hello world!"
/*
Variables:
You can assign values to variables for later use
*/
def x = 1
println x
x = new java.util.Date()
println x
x = -3.1499392
println x
x = false
println x
x = "Groovy!"
println x
/*
Collections and maps
*/
//Creating an empty list
def technologies = []
/... | Groovy | 5 | sbj42/vscode | extensions/vscode-colorize-tests/test/colorize-fixtures/test.groovy | [
"MIT"
] |
# invoke local::lib
# default -- invoke local::lib for all users
setenv PERL_HOMEDIR 1
# load our configs, aka opportunities to set PERL_HOMEDIR=0
if (-f /etc/sysconfig/perl-homedir) then
eval `sed -ne 's|^[[:blank:]]*\([^#=]\{1,\}\)=\([^=]*\)|setenv \1 \2;|p' /etc/sysconfig/perl-homedir`
endif
if (-f "$HOME/.perl-h... | Tcsh | 3 | slowy07/CBL-Mariner | SPECS/perl-local-lib/perl-homedir.csh | [
"MIT"
] |
namespace OpenAPI
open OpenAPI.Model.ApiResponse
open OpenAPI.Model.Pet
open PetApiHandlerParams
open PetApiServiceInterface
open System.Collections.Generic
open System
open Giraffe
module PetApiServiceImplementation =
//#region Service implementation
type PetApiServiceImpl() =
interface IPetApiSer... | F# | 4 | JigarJoshi/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/impl/PetApiService.fs | [
"Apache-2.0"
] |
# Based on https://github.com/justinwoo/easy-purescript-nix/blob/master/psc-package-simple.nix
{ stdenv, lib, fetchurl, gmp, zlib, libiconv, darwin, installShellFiles }:
let
dynamic-linker = stdenv.cc.bintools.dynamicLinker;
in
stdenv.mkDerivation rec {
pname = "psc-package-simple";
version = "0.6.2";
src =... | Nix | 5 | collinwright/nixpkgs | pkgs/development/compilers/purescript/psc-package/default.nix | [
"MIT"
] |
default
{
state_entry()
{
llTargetOmega( < 0, 1, 1 >, .2 * PI, 1.0 );
}
}
| LSL | 3 | MandarinkaTasty/OpenSim | bin/assets/ScriptsAssetSet/KanEd-Test06.lsl | [
"BSD-3-Clause"
] |
$(OBJDIR)/simplify.cmi: $(OBJDIR)/cil.cmi
| D | 2 | heechul/crest-z3 | cil/obj/.depend/simplify.di | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
CONST_refs="refs"
TRIGGER_REASON_A=${TRIGGER_REASON:0:${#CONST_refs}}
if [ $TRIGGER_REASON_A != $CONST_refs ]; then
echo "not a tag: $TRIGGER_REASON_A"
exit
fi
CONST_refsB="refs/tags/"
TRIGGER_REASON_B=${TRIGGER_REASON:0:${#CONST_refsB}}
if [ $TRIGGER_REASON_B != $CONST_refsB ]; then
ech... | Shell | 3 | sjf10050/v2ray-core | release/tagrelease.sh | [
"MIT"
] |
quine ** Written by Jason Reed
>>+>>+++++>>++>>+++>>+>>++++++>>++>>++>>++>>+++++>>+>>++++>>
+>>+++>>+>>+>>++>>++>>+>>+>>+>>+++>>+>>++++++>>+++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++>>+>>++>>++
+++++>>+++++++++++++++++++>>++++>>+>>++>>+>>+++++>>+>>++++>>
+>>+++>>+>>+++++++>>+>>++>>+>>++++++>>+>>+++>... | Brainfuck | 3 | RubenNL/brainheck | examples/quine/quine-jr.bf | [
"Apache-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
//Videos
//Part 1:
//https://www.youtube.com/watch?v=OJxEcs0w_kE
//Part 2:
//https://www.youtube.com/watch?v=QQx_NmCIuCY
//This code is only part 1 video of the challenge.
Quadtree qtree;
public void setup (){
size(400 ,400);
background(0)... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_098.1_QuadTree/Processing/CC_098.1_QuadTree/CC_098.1_QuadTree.pde | [
"MIT"
] |
# need genmsg for _prepend_path()
find_package(genmsg REQUIRED)
include(CMakeParseArguments)
@[if DEVELSPACE]@
# program in develspace
set(GENACTION_BIN "@(CMAKE_CURRENT_SOURCE_DIR)/scripts/genaction.py")
@[else]@
# program in installspace
set(GENACTION_BIN "${actionlib_msgs_DIR}/../../../@(CATKIN_PACKAGE_BIN_DESTINA... | EmberScript | 5 | numberen/apollo-platform | ros/common_msgs/actionlib_msgs/cmake/actionlib_msgs-extras.cmake.em | [
"Apache-2.0"
] |
// Exploit.cpp : Defines the entry point for the console application.
//
#include <Windows.h>
#include "Exploit.h"
#include "Exploiter.h"
static VOID ExecutePayload(LPVOID lpPayload)
{
VOID(*lpCode)() = (VOID(*)())lpPayload;
lpCode();
return;
}
VOID Exploit(LPVOID lpPayload)
{
PrivEsc();
ExecutePayload(lpPayload... | C++ | 1 | OsmanDere/metasploit-framework | external/source/exploits/cve-2018-8897/dll/rdi/src/Exploit.cpp | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
rebol [
type: module
name: test-1203
title: "test-1203"
]
s: system/script
f: does[s] | Rebol | 1 | 0branch/r3 | src/tests/units/files/test-1203.reb | [
"Apache-2.0"
] |
#500
blocking~
1 d 0 184 -1
A
13 1
R
103 5 # 5x a yellow lightning stone
S
$
| Augeas | 0 | EmpireMUD/EmpireMUD-2.0-Beta | lib/world/aug/5.aug | [
"DOC",
"Unlicense"
] |
.@{fa-css-prefix}.@{fa-css-prefix}-glass:before { content: @fa-var-glass-martini; }
.@{fa-css-prefix}.@{fa-css-prefix}-meetup {
font-family: 'Font Awesome 5 Brands';
font-weight: 400;
}
.@{fa-css-prefix}.@{fa-css-prefix}-star-o {
font-family: 'Font Awesome 5 Free';
font-weight: 400;
}
.@{fa-css-prefix}.@{fa-c... | Less | 4 | IWishYouPingMe/Portonew | fa/less/_shims.less | [
"MIT"
] |
--TEST--
Test array_product() function : variation
--FILE--
<?php
echo "*** Testing array_product() : variations ***\n";
echo "\n-- Testing array_product() function with a very large array --\n";
$array = array();
for ($i = 0; $i < 999; $i++) {
$array[] = 999;
}
var_dump( array_product($array) );
?>
--EXPECT--
**... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/array/array_product_variation4.phpt | [
"PHP-3.01"
] |
package Test
package Inc
model X
end X;
model Y
end Y;
end Inc;
model A
model Y
end Y;
end A;
model B
extends A;
import Inc.*;
X x;
end B;
end OtherName;
| Modelica | 2 | zhangxinngang/pmd | pmd-dist/src/test/resources/sample-source/modelica/SampleCode.mo | [
"Apache-2.0"
] |
(*
Module: Oneserver
To parse /etc/one/*-server.conf
(onegate-server.conf still is not supported)
Author: Anton Todorov <a.todorov@storpool.com>
*)
module Test_oneserver =
let conf_a =":key1: value1
:key2: 127.0.0.1
# comment spaced
:key3: /path/to/something/42
#
:key_4: http://dir.bg/url
#:key5: 12345
:key6:
:ke... | Augeas | 2 | OpenNebula/addon-storpool | misc/augeas/tests/test_oneserver.aug | [
"Apache-2.0"
] |
.bold.table-section.section-15.gl-mr-3
= s_('CiVariables|Scope')
| Haml | 0 | glimmerhq/glimmerhq | app/views/ci/variables/_environment_scope_header.html.haml | [
"MIT"
] |
const i32 dct = ref;
| Thrift | 0 | JonnoFTW/thriftpy2 | tests/parser-cases/e_value_ref_0.thrift | [
"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 may ... | Scala | 4 | akhalymon-cv/spark | core/src/test/scala/org/apache/spark/shuffle/ShuffleChecksumTestHelper.scala | [
"Apache-2.0"
] |
Description: Sample RECmd batch file
Author: Eric Zimmerman
Version: 1
Id: ab13eb5f-31db-5cdc-83df-88ec83dc7a
Keys:
-
Description: UserAssist
HiveType: NTUSER
Category: Execution
KeyPath: Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist
Recursive: true
Co... | Rebol | 2 | pawanr2790/CMD | BatchExamples/BatchExampleUserAssist.reb | [
"MIT"
] |
# Copyright 2019 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | Python | 4 | akshit-protonn/models | research/delf/delf/python/datasets/google_landmarks_dataset/compute_recognition_metrics.py | [
"Apache-2.0"
] |
# Installed by OZ, needed for Xpra
allowed_users=anybody
| Oz | 0 | CodeLingoBot/oz | sources/etc/X11/Xwrapper.config.oz | [
"BSD-3-Clause"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Declare(VContainer);
###############################################################################
#F VContainer(<spl>, <isa>)
#F
#F self.child(1) -- spl
#F self.isa -- isa
#F
Class(VContainer, VRC, rec(
#----------------... | GAP | 5 | sr7cb/spiral-software | namespaces/spiral/paradigms/vector/sigmaspl/vcontainer.gi | [
"BSD-2-Clause-FreeBSD"
] |
<?xml version='1.0' encoding='utf-8'?>
<?python
from KidKit.Examples.KidExamplePage import KidExamplePage
hook = KidExamplePage.writeContent
import time
?>
<div style="text-align:center"
xmlns:py="http://purl.org/kid/ns#">
<h2>Time Example 1</h2>
<p><i>This page is embedded as a KidExamplePage.</i></p>
<p>The curre... | Genshi | 3 | PeaceWorksTechnologySolutions/w4py | KidKit/Examples/Time1.kid | [
"MIT"
] |
.app-level-export {
background-color: aqua
}
| Stylus | 1 | joseconstela/meteor | tools/tests/apps/app-using-stylus/client/app-export.import.styl | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
FROM ubuntu:20.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
g++ \
make \
ninja-build \
file \
curl \
ca-certificates \
python3 \
git \
cmake \
sudo \
gdb \
xz-utils \
bzip2
COPY scripts/emscripten.sh /scripts/
RUN bash /scripts/emscript... | Dockerfile | 4 | mbc-git/rust | src/ci/docker/host-x86_64/wasm32/Dockerfile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env io
exampleBreak := method(
b := Sequence clone
for(i, 0, 10, if(i == 5, break); b appendSeq(i asString))
b
)
exampleContinue := method(
b := Sequence clone
for(i, 0, 10, if(i == 5, continue); b appendSeq(i asString))
b
)
exampleReturn := method(
b := Sequence clone
for(i, 0, 10, if(i == 5, ret... | Io | 4 | akluth/io | samples/misc/ControlFlow.io | [
"BSD-3-Clause"
] |
{% syntax error
| Twig | 2 | lavrenchukvladyslav/S4Rest | vendor/symfony/twig-bridge/Tests/Fixtures/extractor/syntax_error.twig | [
"MIT"
] |
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px; /* Margin bottom by footer height */
}
.footer {
bottom: 60px;
width: 100%;
height: 60px; /* Set the fixed height of the footer here */
color: rgb(226, 226, 226) !important;
font-size: 0.8em;
}
.footer a {
co... | CSS | 3 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/serverless-push/index.css | [
"Apache-2.0",
"MIT"
] |
import {Injectable} from '@angular/core';
@Injectable()
class MyAlternateService {
}
@Injectable({providedIn: 'root', useClass: MyAlternateService})
export class MyService {
}
| TypeScript | 3 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/useclass_without_deps.ts | [
"MIT"
] |
= datagrid_table @grid, @assets
| Slim | 0 | childselfy/crypto-exchange | app/views/admin/proofs/index.html.slim | [
"MIT"
] |
#!/bin/tcsh
echo "Running ECAL Laser Correction Service Test"
source /etc/hepix/oracle_env.csh
setenv TNS_ADMIN /afs/cern.ch/project/oracle/admin
cmsRun test_ecallaserdb_2.cfg
| Tcsh | 3 | ckamtsikis/cmssw | CalibCalorimetry/EcalLaserCorrection/test/runLaserCorrection.csh | [
"Apache-2.0"
] |
var React = require('react');
var PropTypes = require('prop-types');
var CommandView = require('../react_views/CommandView.jsx');
var Main = require('../app');
var _subscribeEvents = [
'add',
'reset',
'change',
'all'
];
class CommandHistoryView extends React.Component {
componentDidMount() {
for (var ... | JSX | 4 | humanumbrella/learnGitBranching | src/js/react_views/CommandHistoryView.jsx | [
"MIT"
] |
(* 14 lines 8 code 4 comments 2 blanks *)
fun main () = return <xml>
<head>
<title>Hello world!</title>
</head>
(* multi
line
comment *)
<body> (* uncounted comment *)
<h1>Hello world!</h1>
</body>
</xml>
| UrWeb | 3 | alexmaco/tokei | tests/data/urweb.ur | [
"Apache-2.0",
"MIT"
] |
#!/bin/sh
export MALLOC_CONF="narenas:1,bin_shards:1-160:16|129-512:4|256-256:8"
| Shell | 3 | Mu-L/jemalloc | test/unit/binshard.sh | [
"BSD-2-Clause"
] |
package com.baeldung.jmapper.relational;
public class UserDto2 {
private long id;
private String email;
// constructors
public UserDto2() {
super();
}
public UserDto2(long id, String email) {
super();
this.id = id;
this.email = email;
}
/... | Java | 5 | scharanreddy/tutorials | libraries-data/src/main/java/com/baeldung/jmapper/relational/UserDto2.java | [
"MIT"
] |
AudioBufferSource abs { url assets/ogg/chop.ogg, loop true} [ delay, output ]
Delay delay { delayTime 0.2 } [ feedback, output ]
Gain feedback { gain 0.8 } [ delay ]
End | Augeas | 3 | newlandsvalley/purescript-audiograph | audiograph-editor/dist/augsamples/feedback.aug | [
"MIT"
] |
(lp1
(ccopy_reg
_reconstructor
p2
(cpygments.token
_TokenType
p3
c__builtin__
tuple
p4
(S'Generic'
p5
S'Traceback'
p6
ttRp7
(dp8
S'subtypes'
p9
c__builtin__
set
p10
((ltRp11
sS'parent'
p12
g2
(g3
g4
(g5
ttRp13
(dp14
S'Prompt'
p15
g2
(g3
g4
(g5
g15
ttRp16
(dp17
g9
g10
((ltRp18
sg12
g13
sbsg12
g2
(g3
g4
(ttRp19
(dp20
S'C... | Python traceback | 0 | mjtamlyn/django-braces | docs/build/Pygments/tests/examplefiles/output/pytb_test2.pytb | [
"BSD-3-Clause"
] |
(ns (defns tests.arc.core :import arc.unit))
(desc "fundamental"
(test "is"
(is
(is 1 1) t
(is 1 2) nil
(is 1 1 1) t
(is 1 1 1 2) nil
(is 1) t))
(te... | Arc | 5 | smihica/arc-js | test/unit/arc/core.arc | [
"Artistic-2.0"
] |
/// <reference path="fourslash.ts" />
//// function foo (a: number, b: number) {}
//// foo(1, 2);
verify.getInlayHints([], undefined, {
includeInlayParameterNameHints: "none"
});
| TypeScript | 2 | monciego/TypeScript | tests/cases/fourslash/inlayHintsShouldWork14.ts | [
"Apache-2.0"
] |
--TEST--
Bug #73973 debug_zval_dump() assertion error for resource consts with --enable-debug
--FILE--
<?php
define('myerr', fopen('php://stderr', 'w'));
debug_zval_dump(myerr);
?>
--EXPECTF--
resource(5) of type (stream) refcount(%d)
| PHP | 3 | thiagooak/php-src | ext/standard/tests/general_functions/bug73973.phpt | [
"PHP-3.01"
] |
%{
/*
* Test program: Advanced Calculator
* by Zhao Cheng 5/20/2012
*/
%}
%union {
double val; /* For returning numbers. */
symrec *tptr; /* For returning symbol-table pointers. */
}
%token <val> NUMBER
%token <tptr> VAR FNCT
%right '='
%left '+' '-'
%left '*' '/'
%right '^'
%left NEG
%type <val> e... | Yacc | 5 | Cardsareus/linguist | samples/Yacc/calc.yy | [
"MIT"
] |
--TEST--
Testing throw exception doesn't crash with wrong params, variant 2
--FILE--
<?php
throw new Exception(new stdClass);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Exception::__construct(): Argument #1 ($message) must be of type string, stdClass given in %s:%d
Stack trace:
#0 %sexception_019.php(%d): Except... | PHP | 2 | NathanFreeman/php-src | Zend/tests/exception_019.phpt | [
"PHP-3.01"
] |
(ns hacker-scripts.coffee
(:require [environ.core :refer [env]])
(:import
(java.net Socket)
(java.io BufferedReader PrintWriter InputStreamReader)))
(def my-username "my-username")
(def my-password "my-password")
(def coffee-machine-ip "10.10.42.42")
(def password-prompt "Password: ")
(def connection-port... | Clojure | 4 | johndemlon/hacker-scripts | clojure/coffee.clj | [
"WTFPL"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CChildFrame
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "Resourcer.h"
LastPage=0
ClassCount=20
Class1=CSelectResource
Class2=CResourcerDoc
Class3=CSelectClass
Class4=ResourcerList
Resource... | Clarion | 2 | CarysT/medusa | Tools/ResourcerDoc/ResourcerDoc.clw | [
"MIT"
] |
ul {
list-style-type: none;
padding: 0;
}
li {
display: block;
width: 120px;
line-height: 50px;
padding: 0 10px;
box-sizing: border-box;
background-color: #eee;
border-radius: 4px;
margin: 10px;
cursor: pointer;
overflow: hidden;
white-space: nowrap;
}
.active {
background-color: #cfd8dc;
... | CSS | 3 | coreyscherbing/angular | aio/content/examples/animations/src/app/hero-list.component.css | [
"MIT"
] |
<?php $this->layout('main', ['title' => __('Streamer/DJ Accounts')]) ?>
<p><?=__('Streamer accounts are currently disabled for this station. To enable streamer accounts, click the button below.') ?></p>
<a class="btn btn-lg btn-success" role="button" href="<?=$router->fromHere(null, [], ['enable' => true]) ?>"><?=__(... | HTML+PHP | 4 | ikafridi/PlayCast | templates/stations/streamers/disabled.phtml | [
"Apache-2.0"
] |
--TEST--
JIT CAST: 002
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function test(?int $i) {
$a = (array) $i;
$a[-1] = 1;
var_dump($a);
}
test(null);
?>
--EXPECT--
array(1) {
[-1]=>
int(1)
}
| PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/jit/cast_002.phpt | [
"PHP-3.01"
] |
%=============%
% GAME ASSETS
%=============%
% Load Image Assets
var titlescreen : int := Pic.FileNew ("Resources/Images/Menus/Titlescreen/titlescreen.bmp")
var mainmenu : int := Pic.FileNew ("Resources/Images/Menus/MainMenu/mainmenu.bmp")
var controlsmenu : int := Pic.FileNew ("Resources/Images/Menus/ControlsMe... | Turing | 4 | alipianu/PSF | Resources/GameAssets.tu | [
"CC-BY-4.0",
"CC-BY-3.0",
"Fair"
] |
-@ import val invoice: org.eligosource.eventsourced.example.domain.Invoice
%h2 Invoice Details
%table
%tr
%td Id:
%td = invoice.id
%tr
%td Version:
%td = invoice.version
%tr
%td Sum:
%td = invoice.sum
%tr
%td Discount:
%td = invoice.discount
%h3 Items
%table
%tr
%th Des... | Scaml | 4 | pkeshab/eventsourced-example | src/main/webapp/WEB-INF/org/eligosource/eventsourced/example/web/Invoice.scaml | [
"Apache-2.0"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.http {
HttpServerRequest
}
shared class SimpleFormServer() extends Verticle() {
shared actual void start(Vertx vertx, Container container) {
vertx.createHttpServer().requestHan... | Ceylon | 3 | vietj/vertx-examples | src/raw/ceylon/simpleform/SimpleFormServer.ceylon | [
"Apache-2.0"
] |
# --- PvApi ---
if(NOT HAVE_PVAPI)
if(X86_64)
set(arch x64)
else()
set(arch x86)
endif()
find_path(PVAPI_INCLUDE "PvApi.h"
PATHS "${PVAPI_ROOT}" ENV PVAPI_ROOT
PATH_SUFFIXES "inc-pc")
find_library(PVAPI_LIBRARY "PvAPI"
PATHS "${PVAPI_ROOT}" ENV PVAPI_ROOT
PATH_SUFFIXES "bin-pc/${arch}/... | CMake | 3 | xipingyan/opencv | modules/videoio/cmake/detect_pvapi.cmake | [
"Apache-2.0"
] |
using System;
using Avalonia.OpenGL.Egl;
using Avalonia.OpenGL.Surfaces;
namespace Avalonia.Android.OpenGL
{
internal sealed class GlRenderTarget : EglPlatformSurfaceRenderTargetBase, IGlPlatformSurfaceRenderTargetWithCorruptionInfo
{
private readonly EglGlPlatformSurfaceBase.IEglWindowGlPlatformSurf... | C# | 4 | jangernert/Avalonia | src/Android/Avalonia.Android/OpenGL/GlRenderTarget.cs | [
"MIT"
] |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is a "No Compile Test" suite.
// https://dev.chromium.org/developers/testing/no-compile-tests
#include "base/containers/contains.h"
#include <se... | nesC | 4 | zealoussnow/chromium | base/containers/contains_unittest.nc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
--TEST--
JIT ASSIGN: Assign reference IS_VAR
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
;opcache.jit_debug=257
--EXTENSIONS--
opcache
--FILE--
<?php
$a = $ref =& $val;
var_dump($a);
?>
--EXPECT--
NULL
| PHP | 2 | NathanFreeman/php-src | ext/opcache/tests/jit/assign_039.phpt | [
"PHP-3.01"
] |
import "ecere"
import "Style"
import "Image"
class LayoutWindow : Window {
class_no_expansion;
public:
property LayoutWindow parent {
get {
return parent;
}
set {
Window::parent = value;
parent = value;
parent.AddChild(this);
}
}
Style style {size... | eC | 4 | N-eil/ecere-sdk | autoLayout/ryanStyles/Layout.ec | [
"BSD-3-Clause"
] |
//===--- ErrorObjectNative.cpp - Recoverable error object -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 4 | gandhi56/swift | stdlib/public/runtime/ErrorObjectNative.cpp | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 6/9/09 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_CMSatend }
{Description= at-end handler for itPage }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 12/23/07 }
{Usage= }
{ExpectedResults= Modifies ... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_CMSatend.lasso | [
"MIT"
] |
#+TITLE: org-ruby
#+AUTHOR: Brian Dewey
#+EMAIL: bdewey@gmail.com
#+DATE: 2009-12-21
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE: en
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:nil pri:nil tags:not-in-toc
#+EXPORT_EXCLUDE_TAGS: excl... | Org | 4 | borisgu/markup | test/markups/README.org | [
"MIT"
] |
scriptname CampPerkNodeControllerBehavior extends CampPerkNodeController
import CampUtil
message property required_skill_description auto
{ Fill with the skill overview description message. }
GlobalVariable property required_perk_points_available auto
{ Fill with the "points available" skill global variable. Should c... | Papyrus | 5 | chesko256/Campfire | Scripts/Source/CampPerkNodeControllerBehavior.psc | [
"MIT"
] |
count/dev/rrp3: /dev/rrp3:
count
count17379mel 17379 mel
count16693bwk 16693 bwk me
count16116ken 16116 ken him someone else
count15713srb 15713 srb
count11895lem 11895 lem
count10409scj 10409 scj
count10252rhm 10252 rhm
count9853shen 9853 shen
count9748a68 9748 a68
count9492sif 9492 sif
count9190pjw 9190 pjw
coun... | Logos | 1 | Crestwave/goawk | testdata/output/t.1.x | [
"MIT"
] |
use "collections"
class Circle
var _radius: F32
new create(radius': F32) =>
_radius = radius'
fun ref get_radius(): F32 =>
_radius
fun ref get_area(): F32 =>
F32.pi() * _radius.pow(2)
fun ref get_circumference(): F32 =>
2 * _radius * F32.pi()
actor Main
new create(env: Env) =>
for... | Pony | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pony/circle.pony | [
"MIT"
] |
.style {
width: calc(2px/1px);
}
| CSS | 0 | kitsonk/swc | css/parser/tests/errors/rome/invalid/.calc-division/input.css | [
"Apache-2.0",
"MIT"
] |
# Copyright 2021 The Google Research 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 agree... | Shell | 3 | deepneuralmachine/google-research | dialogue_ope/airdialogue_ope/data/convai2/download_convai2_opedata_hard.sh | [
"Apache-2.0"
] |
\documentclass{article}
\usepackage{agda}
\begin{document}
\begin{code}
module ThreeNewLines where
\end{code}
\end{document}
| Literate Agda | 1 | cruhland/agda | test/LaTeXAndHTML/succeed/ThreeNewLines.lagda | [
"MIT"
] |
(ns open-api-petstore.api.store
(:require [open-api-petstore.core :refer [call-api check-required-params with-collection-format *api-context*]]
[clojure.spec.alpha :as s]
[spec-tools.core :as st]
[orchestra.core :refer [defn-spec]]
[open-api-petstore.specs.tag :refer :a... | Clojure | 5 | MalcolmScoffable/openapi-generator | samples/client/petstore/clojure/src/open_api_petstore/api/store.clj | [
"Apache-2.0"
] |
{define test}
Test block
{/define} | Latte | 0 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/parser/issue245728_16.latte | [
"Apache-2.0"
] |
[
(comment)
(block)
(heredoc_template)
(object)
] @fold
| Scheme | 1 | hmac/nvim-treesitter | queries/hcl/folds.scm | [
"Apache-2.0"
] |
//Copy a blueprint string to the clipboard and then use this to see it expanded
//Lower the tech requirements - slower belts, plain inserters
constant lower_tech = ([
"express-transport-belt": "transport-belt",
"express-splitter": "splitter",
"express-underground-belt": "underground-belt",
"express-loader": "loade... | Pike | 5 | stephenangelico/shed | factorio_decode.pike | [
"MIT"
] |
@tailwind base;
@tailwind components;
@tailwind utilities;
.btn-1-xl {
@apply sm:space-x-0;
@apply xl:space-x-0;
@apply sm:space-x-1;
@apply xl:space-x-1;
@apply sm:space-y-0;
@apply xl:space-y-0;
@apply sm:space-y-1;
@apply xl:space-y-1;
}
.btn-2-xl {
@apply sm:space-x-0;
@apply xl:space-x-0;
... | CSS | 3 | Octo1996/tailwindcss-deep-dive-zh | perf/fixture.css | [
"MIT"
] |
#include <ATen/SparseTensorUtils.h>
#include <ATen/ATen.h>
#include <ATen/SparseTensorImpl.h>
#include <ATen/Parallel.h>
#include <c10/util/irange.h>
namespace at { namespace sparse {
// NOTE [ Flatten Sparse Indices ]
// This helper function flattens a sparse indices tensor (a Tensor) into a 1D
// indices tensor. E... | C++ | 4 | xiaohanhuang/pytorch | aten/src/ATen/SparseTensorUtils.cpp | [
"Intel"
] |
#ifndef NVIM_EX_EVAL_H
#define NVIM_EX_EVAL_H
#include "nvim/ex_cmds_defs.h" // for exarg_T
#include "nvim/pos.h" // for linenr_T
/* There is no CSF_IF, the lack of CSF_WHILE, CSF_FOR and CSF_TRY means ":if"
* was used. */
#define CSF_TRUE 0x0001 // condition was TRUE
#define CSF_ACTIVE 0x0002 ... | C | 4 | Anupam-Ashish-Minz/neovim | src/nvim/ex_eval.h | [
"Vim"
] |
// Copyright (c) 2018 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/cocoa/root_view_mac.h"
#include "shell/browser/native_window.h"
namespace electron {
RootViewMac::RootViewMac(NativeWindow* window) : window_(window) {
... | Objective-C++ | 3 | TarunavBA/electron | shell/browser/ui/cocoa/root_view_mac.mm | [
"MIT"
] |
example : String
example = ?example
| Idris | 0 | Qqwy/Idris2-Erlang | idris2/tests/idris2/error010/Loop.idr | [
"BSD-3-Clause"
] |
use<../splitflap.scad>;
use<../pcb.scad>;
use<../28byj-48.scad>;
include<../m4_dimensions.scad>;
$fn = 30;
eps = 0.01;
export = true;
module dim(enabled=true) {
if (enabled) {
%color([0,0,0, .2]) {
children();
}
} else {
children();
}
}
// holes for 28byj-48 mo... | OpenSCAD | 5 | tomihbk/splitflap | 3d/tools/motor_test_jig.scad | [
"Apache-2.0"
] |
// RUN: cat %s | sed -f %S/Inputs/nbsp.sed > %t.tmp
// RUN: cp -f %t.tmp %t
// RUN: %swift-syntax-test -input-source-filename %t -dump-full-tokens 2>&1 | %FileCheck %t
let a =Z3Z // nbsp(Z)
let bZ= 3Z
let cZ=Z3
// CHECK: 4:8: warning: non-breaking space (U+00A0) used instead of regular space
// CHECK: 4:11: warning: n... | Swift | 4 | lwhsu/swift | test/Syntax/tokens_nonbreaking_space.swift | [
"Apache-2.0"
] |
-- Copyright 2018 Stanford University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... | Rouge | 5 | elliottslaughter/regent-tutorial | Pi/x1.rg | [
"Apache-2.0"
] |
module audiostreamerscrobbler.players.heos.HeosMasterMonitor
import audiostreamerscrobbler.utils.ThreadUtils
import java.util.concurrent.atomic.{AtomicBoolean, AtomicReference}
import java.util.concurrent.ConcurrentHashMap
let DEBUG = false
let IDLE_PLAYER_INTERVAL = 60
# HEOS commands
let CMD_GET_PLAYER_STATE = "p... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/players/heos/HeosMasterMonitor.golo | [
"MIT"
] |
<div class="modal" id="installplugin" tabindex="-1" role="dialog" aria-labelledby="installplugin" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="tr... | Groovy Server Pages | 3 | kbens/rundeck | rundeckapp/grails-app/views/menu/_pluginInstallForm.gsp | [
"Apache-2.0"
] |
# Some Useful CloudFoundry Aliases & Functions
alias cfl="cf login"
alias cft="cf target"
alias cfa="cf apps"
alias cfs="cf services"
alias cfm="cf marketplace"
alias cfp="cf push"
alias cfcs="cf create-service"
alias cfbs="cf bind-service"
alias cfus="cf unbind-service"
alias cfds="cf delete-service"
alias cfup="cf cu... | Shell | 3 | chensanle/ohmyzsh | plugins/cloudfoundry/cloudfoundry.plugin.zsh | [
"MIT"
] |
<style>
[ng-cloak] { display: none; }
</style>
<div ng-app="largetableBenchmark" ng-cloak>
<div ng-controller="DataController">
<div class="container-fluid">
<p>
Large table rendered with AngularJS
</p>
<div><label><input type="radio" ng-model="benchmarkType" value="none">none: </label></... | HTML | 3 | ivomju/angular.js | benchmarks/largetable-bp/main.html | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.