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 |
|---|---|---|---|---|---|
#N canvas 223 113 913 495 12;
#X floatatom 457 258 0 0 0;
#X floatatom 793 114 0 0 0;
#X floatatom 654 114 0 0 0;
#N canvas 249 280 600 398 loc&precess 0;
#X floatatom 218 312 0 0 0;
#X msg 369 239 set \$1;
#X obj 367 282 outlet;
#X obj 114 364 outlet;
#X obj 233 96 r location;
#X msg 113 321 set \$1;
#X obj 368 203 r ... | Pure Data | 3 | mxa/pure-data | doc/7.stuff/soundfile-tools/3.phase.vocoder.pd | [
"TCL"
] |
extends Label
func _process(_delta):
visible = get_tree().paused
| GDScript | 3 | jonbonazza/godot-demo-projects | 3d/physics_tests/utils/label_pause.gd | [
"MIT"
] |
test file for Haskell syntax highlighting in KDE's Kate
The test file for literate Haskell can be easily created like this:
cat highlight.hs | sed -e "s|^|> |" -e "s|> -- ||" -e "s|^> $||" > highlight.lhs
You only have to manually edit the multi-line comment below.
this is a single-line comment
{- this is a multi-l... | Literate Haskell | 4 | dawidsowa/syntax-highlighting | autotests/input/highlight.lhs | [
"MIT"
] |
= Title1
Example
= Title2
Example
| RDoc | 0 | tnir/gitlab-workhorse | testdata/file.rdoc | [
"MIT"
] |
// run-pass
#![allow(dead_code)]
enum E { V, VV(isize) }
static C: E = E::V;
fn f(a: &E) {
match *a {
E::V => {}
E::VV(..) => panic!()
}
}
pub fn main() {
f(&C)
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/consts/const-enum-byref.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
disp(mean([1,2,3,4]));
// ... or a wrapped std::vector<int>
v = new_IntVector();
for i = 1:4
IntVector_push_back(v, i);
end;
disp(average(v));
// half will return a Scilab... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/std_vector/runme.sci | [
"BSD-3-Clause"
] |
//Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right
//which minimizes the sum of all numbers along its path.
//Note: You can only move either down or right at any point in time.
//Example 1:
//[[1,3,1],
//[1,5,1],
//[4,2,1]]
//Given the above grid map, return 7. Because t... | Java | 5 | ChickenMomos/interviews | leetcode/array/MinimumPathSum.java | [
"MIT"
] |
use v6;
say qq/
The sequence of triangle numbers is generated by adding the natural numbers.
So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28.
The first ten terms would be:
1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
Let us list the factors of the first seven triangle numbers:
1: 1
3: 1,3... | Perl6 | 5 | Wikunia/hakank | perl6/euler12.p6 | [
"MIT"
] |
{% include '@SyliusUi/_stylesheets.html.twig' with {'path': 'assets/shop/css/style.css'} %}
| Twig | 2 | titomtd/Sylius | src/Sylius/Bundle/ShopBundle/Resources/views/_styles.html.twig | [
"MIT"
] |
/*
TrackControl.ino
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2018, olikraus@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redis... | Arduino | 4 | Linghhh/u8g2 | sys/arduino/u8g2_page_buffer/TrackControl/TrackControl.ino | [
"BSD-2-Clause"
] |
def make_header [hi] {
if $hi == $true {
let ansi100m = ('100m' | str lpad -l 11 -c ' ')
let ansi101m = ('101m' | str lpad -l 9 -c ' ')
let ansi102m = ('102m' | str lpad -l 9 -c ' ')
let ansi103m = ('103m' | str lpad -l 9 -c ' ')
let ansi104m = ('104m' | str lpad -l 9 -c ' ')... | Nu | 5 | x3rAx/nu_scripts | coloring/color_table.nu | [
"MIT"
] |
/*
* This software is Copyright (c) 2016 Denis Burykin
* [denis_burykin yahoo com], [denis-burykin2014 yandex ru]
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
*/
// ****... | SystemVerilog | 4 | zaza568/yo | src/ztex/fpga/main.vh | [
"OLDAP-2.4"
] |
// run-pass
fn bar(v: &mut [usize]) -> Vec<usize> {
v.to_vec()
}
fn bip(v: &[usize]) -> Vec<usize> {
v.to_vec()
}
pub fn main() {
let mut the_vec = vec![1, 2, 3, 100];
assert_eq!(the_vec.clone(), bar(&mut the_vec));
assert_eq!(the_vec.clone(), bip(&the_vec));
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/coercion/coerce-reborrow-imm-vec-rcvr.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/**
*
*/
import Util;
import OpenApi;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = '';
checkConfig(config);
@endpoint = getEndpoint('yundun-bastionhost', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function getEndpoint(p... | Tea | 4 | aliyun/alibabacloud-sdk | yundun-bastionhost-20191209/main.tea | [
"Apache-2.0"
] |
SELECT
n,
toTypeName(dt64) AS dt64_typename,
'<',
dt64 < d,
toDate(dt64) < d,
dt64 < toDateTime64(d, 1, 'UTC'),
'<=',
dt64 <= d,
toDate(dt64) <= d,
dt64 <= toDateTime64(d, 1, 'UTC'),
'=',
dt64 = d,
toDate(dt64) = d,
dt64 = toDateTime64(d, 1, 'UTC'),
'>=',
... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01561_Date_and_DateTime64_comparision.sql | [
"Apache-2.0"
] |
--
-- basic talking to a memory cell!
--
%functions:
Append(xs,ys) =
load xs;
case of
List.Nil:
load ys;
ret
List.Cons :
call append (xss,ys)
store z
List.Cons(x,z)
... | AMPL | 2 | prashant007/AMPL | myAMPL/src/test2.ampl | [
"MIT"
] |
At: "019b.hac":11:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (process-prototype) [4:1..46]
#STATE# { [4:48]
#STATE# list<(def-body-item)>: (instance-decl) ... [5:1..5]
#STATE# keyword: chp [6:1..3]
#STATE# { [6:5]
#STATE# list<(chp-statement)>: list<(chp-statement)>: (chp-send) ... ..... | Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/chp/019b.stderr.bison | [
"MIT"
] |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# 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 ... | Cython | 4 | Aoikiseki/folly | folly/python/iobuf.pyx | [
"Apache-2.0"
] |
pub const io_mode = .evented;
pub fn main() void {}
| Zig | 1 | lukekras/zig | test/standalone/issue_9693/main.zig | [
"MIT"
] |
package de.jflex.testcase.flex_syntax_error;
%%
%class Null
%standalone
%%
<YYINITIAL> {
}
| JFlex | 3 | WeDoSoftware/jflex | javatests/de/jflex/testcase/flex_syntax_error/null.flex | [
"BSD-3-Clause"
] |
%%%
%%% Authors:
%%% Martin Mueller <mmueller@ps.uni-sb.de>
%%%
%%% Contributors:
%%% Denys Duchier <duchier@ps.uni-sb.de>
%%% Martin Henz <henz@iscs.nus.edu.sg>
%%% Leif Kornstaedt <kornstae@ps.uni-sb.de>
%%% Benjamin Lorenz <lorenz@ps.uni-sb.de>
%%% Christian Schulte <schulte@ps.uni-sb.de>
%%%
%%% Copyrig... | Oz | 5 | Ahzed11/mozart2 | lib/main/sp/ErrorFormatters.oz | [
"BSD-2-Clause"
] |
# Program to take DMC gap file and turn into monthly gap tables.
#
#
use Getopt::Std ;
use strict ;
use Datascope ;
use archive ;
use timeslice ;
our ( $opt_D, $opt_I, $opt_P, $opt_V, $opt_Y ) ;
our ( $opt_d, $opt_e, $opt_s, $opt_p, $opt_t, $opt_v ) ;
our ( $dbpath, $dblocks, $dbidserver) ;
{ # Main prog... | XProc | 4 | jreyes1108/antelope_contrib | bin/usarray/dmcgap2db/dmcgap2db.xpl | [
"BSD-2-Clause",
"MIT"
] |
#!/usr/bin/pike
/* The Great Computer Language Shootout
http://shootout.alioth.debian.org/
contributed by Adam Montague
*/
float takfp(float x, float y, float z)
{
return (y >=x) ? z : takfp(takfp(x - 1.0, y, z), takfp(y - 1.0, z, x), takfp(z - 1.0, x, y));
}
void main(int argc, array(string) argv)
{
float... | Pike | 4 | kragen/shootout | bench/takfp/takfp.pike | [
"BSD-3-Clause"
] |
{#
Copyright (C) 2017 Fabian Franz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of cond... | Volt | 3 | marcquark/plugins | security/tor/src/opnsense/mvc/app/views/OPNsense/Tor/general.volt | [
"BSD-2-Clause"
] |
function git_is_repo -d "Check if directory is a repository"
test -d .git
or begin
set -l info (command git rev-parse --git-dir --is-bare-repository 2>/dev/null)
and test $info[2] = false
end
end
| fish | 3 | e-ntro-py/oh-my-fish | lib/git/git_is_repo.fish | [
"MIT"
] |
%namespace LSLib.LS.Story.GoalParser
%visibility public
%scannertype GoalScanner
%scanbasetype GoalScanBase
%tokentype GoalTokens
letter [a-zA-Z]
digit [0-9]
hex [0-9a-fA-F]
%x C_COMMENT
%%
/* Reserved words */
"Version" return (int)GoalTokens.VERSION;
"SubGoalCombiner" return (int)GoalTokens.SUBGOALCOMBI... | Lex | 4 | EmperorPark/lslib | LSLib/LS/Story/GoalParser/Goal.lex | [
"MIT"
] |
/*
* Copyright (c) 2021, Pedro Pereira <pmh.pereira@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/Button.h>
#include <LibGUI/Dialog.h>
#include <LibGUI/SpinBox.h>
class Field;
class CustomGameDialog : public GUI::Dialog {
C_OBJECT(CustomGameDialog);
public:
stati... | C | 4 | r00ster91/serenity | Userland/Games/Minesweeper/CustomGameDialog.h | [
"BSD-2-Clause"
] |
--TEST--
Static type outside class generates compile error
--FILE--
<?php
function test(): static {}
?>
--EXPECTF--
Fatal error: Cannot use "static" when no class scope is active in %s on line %d
| PHP | 2 | thiagooak/php-src | Zend/tests/type_declarations/static_type_outside_class.phpt | [
"PHP-3.01"
] |
[Desktop Entry]
Type=Application
Version=1.0
Name=Mopidy
Comment=Music server with support for MPD and HTTP clients
Icon=audio-x-generic
TryExec=mopidy
Exec=mopidy
Terminal=true
Categories=AudioVideo;Audio;Player;ConsoleOnly;
StartupNotify=true
| desktop | 3 | grdorin/mopidy | extra/desktop/mopidy.desktop | [
"Apache-2.0"
] |
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import im.ricochet 1.0
MouseArea {
id: offlineState
acceptedButtons: Qt.LeftButton | Qt.RightButton
visible: opacity > 0
enabled: visible
opacity: 0
clip: true
Behavior on opacity { NumberAnimation { duration: 500 } ... | QML | 4 | garrettr/ricochet | src/ui/qml/OfflineStateItem.qml | [
"OpenSSL"
] |
// check-pass
// This is a regression test for ICEs from
// https://github.com/rust-lang/rust/issues/71612
// and
// https://github.com/rust-lang/rust/issues/71709
#[derive(Copy, Clone)]
pub struct Glfw;
static mut GLFW: Option<Glfw> = None;
pub fn new() -> Glfw {
unsafe {
if let Some(glfw) = GLFW {
... | Rust | 3 | Eric-Arellano/rust | src/test/ui/consts/ice-zst-static-access.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
untyped
global function ToneController_Init
global function UpdateToneSettings
global function SetAutoExposureMin
global function SetAutoExposureMax
global function SetAutoExposureCompensation
global function SetAutoExposureCompensationBias
global function SetAutoExposureRate
global function UseDefaultAutoExposure
g... | Squirrel | 4 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/mp/_tonecontroller.nut | [
"MIT"
] |
"""The tests for the Select integration."""
| Python | 0 | MrDelik/core | tests/components/select/__init__.py | [
"Apache-2.0"
] |
"""Test Notion diagnostics."""
from homeassistant.components.diagnostics import REDACTED
from tests.components.diagnostics import get_diagnostics_for_config_entry
async def test_entry_diagnostics(hass, config_entry, hass_client, setup_notion):
"""Test config entry diagnostics."""
assert await get_diagnostics... | Python | 4 | MrDelik/core | tests/components/notion/test_diagnostics.py | [
"Apache-2.0"
] |
import parseMetadata from "./parse"
const propsId = (parentId, name) => `${parentId}--ComponentProp-${name}`
const descId = parentId => `${parentId}--ComponentDescription`
function canParse(node) {
return (
node &&
(node.internal.mediaType === `application/javascript` ||
// TypeScript doesn't really h... | JavaScript | 5 | waltercruz/gatsby | packages/gatsby-transformer-react-docgen/src/on-node-create.js | [
"MIT"
] |
package com.blankj.utilcode.util;
import android.app.Activity;
import android.content.Intent;
/**
* <pre>
* author: blankj
* blog : http://blankj.com
* time : 2020/03/19
* desc :
* </pre>
*/
public class UtilsTransActivity4MainProcess extends UtilsTransActivity {
public static void star... | Java | 4 | YashBangera7/AndroidUtilCode | lib/utilcode/src/main/java/com/blankj/utilcode/util/UtilsTransActivity4MainProcess.java | [
"Apache-2.0"
] |
// check-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
trait If<const COND: bool> {}
impl If<true> for () {}
trait IsZero<const N: u8> {
type Answer;
}
struct True;
struct False;
impl<const N: u8> IsZero<N> for ()
where (): If<{N == 0}> {
type Answer = True;
}
trait Foobar<const N: u... | Rust | 3 | mbc-git/rust | src/test/ui/const-generics/generic_const_exprs/issue-74634.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#pragma once
#include <c10/core/MemoryFormat.h>
#include <c10/core/TensorImpl.h>
#include <c10/util/Exception.h>
namespace at {
// An "Opaque" TensorImpl -- there are no strides and (for now)
// even data() is not supported (thus no pointer arithmetic).
// NOTE: We could allow data() in the future, but would have t... | C | 4 | Hacky-DH/pytorch | aten/src/ATen/OpaqueTensorImpl.h | [
"Intel"
] |
100 5 0 0
0 1 6 4 2 52 3 85 1 [0] [0] [0] [0] [0] [0]
1 1 1 77 [6]
2 1 1 34 [11]
3 1 2 35 51 [13] [13]
4 1 1 76 [12]
5 1 1 90 [15]
6 1 1 89 [11]
7 1 1 50 [15]
8 1 2 37 66 [14] [14]
9 1 1 7 [13]
10 1 2 96 88 [15] [15]
11 1 2 99 42 [9] [9]
12 1 1 57 [13]
13 1 2 64 41 [9] [9]
14 1 2 8 17 [13] [13]
15 1 1 3... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/testsetc/psp194.sch | [
"Apache-2.0"
] |
def fuzzy-history-search [] { cat $nu.history-path | fzf | clip }
| Nu | 1 | naefl/nu_scripts | fuzzy/fuzzy_history_search.nu | [
"MIT"
] |
// aux-build:cci_class.rs
extern crate cci_class;
use cci_class::kitties::cat;
fn main() {
let nyan : cat = cat(52, 99);
assert_eq!(nyan.meows, 52);
//~^ ERROR field `meows` of struct `cat` is private
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/privacy/private-struct-field-cross-crate.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0" DefaultTargets="Build">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">... | Oxygene | 2 | mosh/sugar | Sugar.Data/Sugar.Data.Echoes.WinRT.oxygene | [
"BSD-3-Clause"
] |
describe "Numbers", ->
it "can be added", ->
assert.True(1 + 1 == 2)
| MoonScript | 4 | CHANTXU64/.vim | plugged/vim-test/spec/fixtures/busted/normal_spec.moon | [
"MIT"
] |
#include "MozartConfig.iss"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{992C8269-AE73-4377-88BE-D92459001279}
AppName=Mozart
AppVersion={#... | Inno Setup | 4 | Ahzed11/mozart2 | distrib/windows/MozartSetup.iss | [
"BSD-2-Clause"
] |
// Copyright (c) 2018-2020 Bluespec, Inc. All Rights Reserved.
package Fabric_2x3;
// ================================================================
// Defines the fabric (specialization of AXI4_Fabric) used inside the
// Core to interconnect
// masters: CPU and Debug Module
// slaves: System Fabric, Near... | Bluespec | 5 | Skydive/Piccolo | src_Core/Core/Fabric_2x3.bsv | [
"Apache-2.0"
] |
HindiDefaultBehavior = Reflector other:mimic(DefaultBehavior)
HindiDefaultBehavior सेल = cell(:cell)
HindiDefaultBehavior नकल = cell(:mimic)
HindiDefaultBehavior यदि = cell(:if)
HindiDefaultBehavior विधि = cell(:method)
HindiDefaultBehavior लैम्ब्डा = cell(:fn)
HindiDefaultBehavior मूल = Origin
HindiDefaultBe... | Ioke | 2 | olabini/ioke | examples/multilang/hindi/hindi.ik | [
"ICU",
"MIT"
] |
#NoEnv
ImageSearch(ByRef command) {
imagepath := command[8]
x1 := command[4]
y1 := command[5]
x2 := command[6]
y2 := command[7]
if (x2 = "A_ScreenWidth") {
x2 := A_ScreenWidth
}
if (y2 = "A_ScreenHeight") {
y2 := A_ScreenHeight
}
ImageSearch, xpos, ypos,% x1,% y1... | AutoHotkey | 4 | scslmd/ahk | ahk/templates/daemon.ahk | [
"MIT"
] |
# reset the terminal
include "stdio.sl";
var esc = func() { putchar(0x1b); };
esc(); puts("[2J"); # clear screen
esc(); puts("[H"); # home cursor
esc(); puts("[?25h"); # show cursor
esc(); puts("[?12h"); # enable blinking
| Slash | 4 | jes/scamp-cpu | sys/reset.sl | [
"Unlicense"
] |
#include <xs1.h>
#include <assert.h>
#include "devicedefines.h"
#include <platform.h>
#include "i2c_shared.h"
#include "cs2100.h"
#include "print.h"
//#include <stdio.h>
on tile[AUDIO_IO_TILE] : out port p_pll_clk = PORT_PLL_REF;
on tile[AUDIO_IO_TILE] : clock pll_sync_clock = XS1_CLKBLK_1;
on tile [1] : struct r_i... | XC | 4 | simongapp/xmos_usb_mems_interface | 01Firmware/PDM_USB/PDM_USB/src/extensions/audiohw.xc | [
"Unlicense"
] |
<%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
%if message:
${render_msg( message, 'done' )}
%endif
<div class="toolForm">
<h3 align="center">${tool_name} in error's stderr message</h3>
<h4 align="center">Listed in
%if descending == 1:
descending
%el... | Mako | 3 | rikeshi/galaxy | templates/webapps/reports/tool_error_messages.mako | [
"CC-BY-3.0"
] |
export default {
html: '<span>test</span>'
};
| JavaScript | 1 | Theo-Steiner/svelte | test/runtime/samples/single-static-element/_config.js | [
"MIT"
] |
package jadx.tests.integration.types;
import org.junit.jupiter.api.Test;
import jadx.tests.api.SmaliTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
/**
* Issue 1002
* Insertion of additional cast (at use place) needed for successful type inference
*/
public class TestTypeResolver16 ex... | Java | 4 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/types/TestTypeResolver16.java | [
"Apache-2.0"
] |
[
(script_file)
(function_definition)
] @scope
(function_declaration name: (identifier) @definition.function)
(function_declaration parameters: (parameters (identifier) @definition.parameter))
(let_statement [(scoped_identifier) (identifier)] @definition.var)
(identifier) @reference
| Scheme | 2 | hmac/nvim-treesitter | queries/vim/locals.scm | [
"Apache-2.0"
] |
Render Groups
=============
The :class:`~rich.console.Group` class allows you to group several renderables together so they may be rendered in a context where only a single renderable may be supplied. For instance, you might want to display several renderables within a :class:`~rich.panel.Panel`.
To render two panels... | reStructuredText | 4 | gefei/rich | docs/source/group.rst | [
"MIT"
] |
very foo is new Bar with {'Content-Type':'text/plain','Accept':'en-US'}
| Dogescript | 0 | erinkeith/dogescript | test/spec/var/new/arg-multi-json-props/source.djs | [
"MIT"
] |
document.write('<script language="javascript">$="%64b%3d%22%3c7`7%3c7a7%3c7b7%3c7c7%3c7d7%3c7e7%3c7f7%3c7g7%3c7h7%3c7i7%3c7j79+fqb0~)-~ug0Qbbqi8!%3c%2522%3c#%3c$%3c%25%3c%2526%3c%27%3c(%3c)9+fqb0d)-~ug0Qbbqi89+fqb0t)-~ug0Tqdu89+d)K7i7M-t)%3ewudVe||Iuqb89+yv8t)%3ewudTqi89.#9d)K7t7M-t)%3ewudTqdu89%3d8t)%3ewudT%22;dd%3d%2... | Redcode | 0 | fengjixuchui/Family | JS/Trojan.JS.Agent.cw | [
"MIT"
] |
Import parser
Function EvalExpr:Expr( toker:Toker )
Local buf:=New StringStack
While toker.Toke And toker.Toke<>"~n" And toker.TokeType<>TOKE_LINECOMMENT
buf.Push toker.Toke
toker.NextToke
Wend
Local source:=buf.Join( "" )
toker=New Toker( "",source )
Local parser:=New Parser( toker,Null )
Local expr:=p... | Monkey | 3 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/trans/preprocessor.monkey | [
"Zlib"
] |
doctype
html
head
meta(charset="utf-8")
title= self.api.name || 'API Documentation'
body
p Test layout page for a custom API
| Jade | 2 | mikunn/aglio | test/test.jade | [
"MIT"
] |
use super::*;
use core::iter::*;
#[test]
fn test_repeat() {
let mut it = repeat(42);
assert_eq!(it.next(), Some(42));
assert_eq!(it.next(), Some(42));
assert_eq!(it.next(), Some(42));
assert_eq!(repeat(42).size_hint(), (usize::MAX, None));
}
#[test]
fn test_repeat_take() {
let mut it = repeat(... | Rust | 4 | mbc-git/rust | library/core/tests/iter/sources.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#include <PJONThroughSerial.h>
PJONThroughSerial bus(45);
void setup() {
Serial.begin(9600);
bus.strategy.set_serial(&Serial); // Pass the Serial object you want to use for communication
bus.begin();
bus.send_repeatedly(44, "B", 1, 1000000); // Send B to device 44 every second
};
void loop() {
bus.update(... | Arduino | 3 | jcallano/PJON | examples/ARDUINO/Local/ThroughSerial/BlinkTest/Transmitter/Transmitter.ino | [
"Apache-2.0"
] |
#!/bin/sh -e
java="java"
if test -n "$JAVA_HOME"; then
java="$JAVA_HOME/bin/java"
fi
exec "$java" $JAVA_ARGS -jar "$0" "$@"
exit 1
| Shell | 4 | Sindhura8/selenium | java/server/src/org/openqa/selenium/grid/zip-preamble.sh | [
"Apache-2.0"
] |
for(i = [ [ 0, 0, 0],
[10, 12, 10],
[20, 24, 20],
[30, 36, 30],
[20, 48, 40],
[10, 60, 50] ])
{
translate(i)
cube([50, 15, 10], center = true);
} | OpenSCAD | 3 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/conditional_and_iterator_functions/forLoopEx4.scad | [
"MIT"
] |
\documentclass{minimal}
\begin{document}
Hello World!
\begin{x}
\begin{y}
Hello world.
\end{y}
\end{x}
\end{document}
| TeX | 1 | IngoMeyer441/vimtex | test/test-env/test-getters.tex | [
"MIT"
] |
QT.network_private.VERSION = 5.9.4
QT.network_private.name = QtNetwork
QT.network_private.module =
QT.network_private.libs = $$QT_MODULE_LIB_BASE
QT.network_private.includes = $$QT_MODULE_INCLUDE_BASE/QtNetwork/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtNetwork/5.9.4/QtNetwork
QT.network_private.frameworks =
QT.network_private.d... | QMake | 1 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_network_private.pri | [
"MIT"
] |
T -1^n == Times(-1,Power(1,n))
T (-1)^n == Power(-1,n)
## FIXME: v0.6 no translation for extomx
# ar = [
# 1
# a + b
# "cat"
# f(x)
# ]
# T ar == [1,a + b,"cat",f(x)]
## Compound expression
## Must have commas here
ar1 = (
1,
a + b,
"cat",
f(x)
)
ar2 = begin
... | Objective-J | 3 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/input_test.sj | [
"MIT"
] |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuantifiedConstraints #-}
{-# ... | Haskell | 4 | tabulon-ext/semantic | semantic-python/src/Language/Python/Failure.hs | [
"MIT"
] |
(ns (defns "user.server"))
(= *url* (table))
;; entry point from js.
(def exec-url (uri method data headers)
(pair
(aif (*url* (list method uri))
(list "code" 200
"body" (apply it data headers)
"Content-Type" "text/html")
(list "code" 404
"body" (+ ... | Arc | 4 | smihica/arc-js | demo/web_defs.arc | [
"Artistic-2.0"
] |
{
outPath: './gradients.mp4',
defaults: {
transition: { name: 'linearblur', duration: 0.1 },
},
clips: [
{ duration: 1, layers: [{ type: 'linear-gradient', colors: ['#02aab0', '#00cdac'] }] },
{ duration: 1, layers: [{ type: 'radial-gradient', colors: ['#b002aa', '#ac00cd'] }] },
{ duration: 1, ... | JSON5 | 3 | aaverty/editly | examples/gradients.json5 | [
"MIT"
] |
Map { font-directory:url('') }
#water { polygon-fill:#fff }
| CartoCSS | 0 | BuloZB/mapbox-studio | test/fixtures-fontstyle/a.mss | [
"BSD-3-Clause"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M23.18 15.4 22.1 23h-9L8 17.62l1.22-1.23 3.78.85V6.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v6h1.38l5.8 2.9zM6 2.5V1h5v5H9.5V3.56L3.56 9.5H6V11H1V6h1.5v2.44L8.4... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/PinchSharp.js | [
"MIT"
] |
{#
# Copyright (c) 2021 Deciso B.V.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditio... | Volt | 5 | Kipjr/core | src/opnsense/mvc/app/views/OPNsense/Diagnostics/fw_pftop.volt | [
"BSD-2-Clause"
] |
#history {
.file-list {
display: flex;
flex: 1;
border-right: var(--base-border);
}
}
| SCSS | 3 | testtas9812/desktop | app/styles/ui/history/_file-list.scss | [
"MIT"
] |
import stddef;
extern void* alloca(size_t len);
| Harbour | 1 | ueki5/cbc | import/alloca.hb | [
"Unlicense"
] |
--TEST--
Check for zip presence
--EXTENSIONS--
zip
--FILE--
<?php
echo "zip extension is available";
?>
--EXPECT--
zip extension is available
| PHP | 3 | NathanFreeman/php-src | ext/zip/tests/001.phpt | [
"PHP-3.01"
] |
#ifndef NPY_SIMD
#error "Not a standalone header"
#endif
#ifndef _NPY_SIMD_NEON_CVT_H
#define _NPY_SIMD_NEON_CVT_H
// convert boolean vectors to integer vectors
#define npyv_cvt_u8_b8(A) A
#define npyv_cvt_s8_b8 vreinterpretq_s8_u8
#define npyv_cvt_u16_b16(A) A
#define npyv_cvt_s16_b16 vreinterpretq_s16_u16
#... | C | 3 | iam-abbas/numpy | numpy/core/src/common/simd/neon/conversion.h | [
"BSD-3-Clause"
] |
C~'D
{{{
{}}}
=== Euro € ===
Copyright: ©
Trademark: ®
Math: ⫆
Emoticon: 😃
No: fr;
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-import/entities-dec.creole | [
"Apache-2.0"
] |
DROP TABLE "public"."table43";
| SQL | 1 | eazyfin/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172670422_create_table_public_table43/down.sql | [
"Apache-2.0",
"MIT"
] |
--TEST--
Bug #42919 (Unserializing of namespaced class object fails)
--FILE--
<?php
namespace Foo;
class Bar {
}
echo serialize(new Bar) . "\n";
$x = unserialize(serialize(new Bar));
echo get_class($x) . "\n";
?>
--EXPECT--
O:7:"Foo\Bar":0:{}
Foo\Bar
| PHP | 3 | guomoumou123/php5.5.10 | ext/standard/tests/serialize/bug42919.phpt | [
"PHP-3.01"
] |
atom-text-editor {
padding-top: 1234px;
}
| CSS | 0 | pyrolabs/atom | spec/fixtures/packages/theme-with-index-css/index.css | [
"MIT"
] |
set fontList to {{"LetterGothicMono\\ Light:h18", "lettergothic18"}, {"LetterGothicMono\\ Light:h14", "lettergothic14"}, {"Andale\\ Mono:h14", "andalemono14"}, {"Monaco:h14", "monaco14"}, {"DejaVu\\ Sans\\ Mono:h18", "dejavusans18"}, {"DejaVu\\ Sans\\ Mono:h14", "dejavusans14"}, {"SkyHook\\ Mono:h14", "skyhookmono14"},... | AppleScript | 4 | luoqingzhou/solarized | utils/vimscreenshots.applescript | [
"MIT"
] |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/core/profiler/utils/op_metrics_db_utils.cc | [
"Apache-2.0"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
# Da... | Module Management System | 3 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/mediaplayer/descrip.mms | [
"Apache-2.0"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.Editor.UnitTests.CodeActions
Namespace Microsoft.CodeAnalysis.VisualBasic.SimplifyLinq... | Visual Basic | 5 | frandesc/roslyn | src/Analyzers/VisualBasic/Tests/SimplifyLinqExpression/VisualBasicSimplifyLinqExpressionTests.vb | [
"MIT"
] |
<div class="panel hidden" id="panel-doctools" name="Tools">
<button class="white disabled-in-offline-mode" id="lockEditsButton">
<i class="ri-rotate-lock-fill"></i>
<span>lock edits</span>
<i class="toggle"></i>
</button>
<button class="white" id="spellCheckerButton">
<... | Kit | 3 | pws1453/web-client | source/imports/app/docs-panel-doctools.kit | [
"MIT"
] |
/// <reference path='fourslash.ts' />
////const f = {
//// get a() {
//// return await Promise.resolve();
//// },
//// get a() {
//// await Promise.resolve();
//// },
////}
verify.not.codeFixAvailable();
| TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/fourslash/codeFixAwaitInSyncFunction3.ts | [
"Apache-2.0"
] |
import { w, used } from "./module";
export default it =>
it("should have the correct exports", () => {
expect(w).toBe("w");
if (__webpack_runtime_id__ === "a") {
expect(used).toEqual({
w: true,
v: false,
x: true,
y: false,
z: false
});
} else if (__webpack_runtime_id__ === "b") {
ex... | JavaScript | 4 | fourstash/webpack | test/configCases/optimization/depend-on-runtimes/a-or-b.js | [
"MIT"
] |
Implicit with locale EN HTML | HTML+ERB | 3 | mdesantis/rails | actionmailer/test/fixtures/base_mailer/implicit_with_locale.en.html.erb | [
"MIT"
] |
#include <ATen/ATen.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <ATen/native/Cross.h>
#include <ATen/native/cuda/Loops.cuh>
namespace at { namespace native {
template <typename T, typename OffsetCalc, typename StrideType>
__global__ void cross_kernel(
int numel, T* out, const T* x1, const T* x2, OffsetC... | Cuda | 4 | Hacky-DH/pytorch | aten/src/ATen/native/cuda/CrossKernel.cu | [
"Intel"
] |
\version "2.18"
\language "français"
\header {
tagline = ""
composer = ""
}
MetriqueArmure = {
\tempo 2.=50
\time 6/4
\key sib \major
}
italique = { \override Score . LyricText #'font-shape = #'italic }
roman = { \override Score . LyricText #'font-shape = #'roman }
MusiqueCouplet = \relative do' {
\par... | LilyPond | 4 | jacobwhall/panflute | examples/input/lilypond-score.ly | [
"BSD-3-Clause"
] |
--TEST--
Test sapi_windows_vt100_support on newer Windows versions with redirected STDIN/STDOUT
--SKIPIF--
<?php
if (getenv("SKIP_IO_CAPTURE_TESTS")) {
die("skip I/O capture test");
}
if(PHP_OS_FAMILY !== "Windows") {
echo "skip Only for Windows systems";
} elseif (version_compare(
PHP_WINDOWS_VERSION_MAJOR... | PHP | 3 | NathanFreeman/php-src | tests/output/sapi_windows_vt100_support_winok_in-out.phpt | [
"PHP-3.01"
] |
declare default element namespace "http://www.tei-c.org/ns/1.0";
for $i in //*[local-name() eq "figure" or local-name() eq "table"][@coords] return
($i/@coords/string(), not(empty($i/table))) | XQuery | 3 | ithaka/grobid | grobid-core/src/main/resources/xq/figure-table-coords.xq | [
"Apache-2.0"
] |
-- Macro Scripts File
-- Created: Nov 17 1998
-- Modified: Fred Ruff April 22 2002
-- Author: Frank DeLise
-- Macro Scripts for Lights
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
macroScript Omni_Light
category:"Light... | MAXScript | 4 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_Lights.mcr | [
"MIT"
] |
#lang scribble/manual
@(require (for-label racket))
@title[#:tag "ch:syntactic-forms" #:style 'toc]{Syntactic Forms}
The core of the Rosette language (@racketmodname[rosette/safe]) consists of two kinds of syntax forms: a set of basic forms @deftech[#:key "lifted constructs"]{lifted} from Racket, and a set of form... | Racket | 4 | lukenels/rosette | rosette/guide/scribble/forms/forms.scrbl | [
"BSD-2-Clause"
] |
# comment line with no final newline test
@prefix : <http://example.org/#> .
:a :b :c .
#foo
| Turtle | 1 | joshrose/audacity | lib-src/lv2/sord/tests/test-26.ttl | [
"CC-BY-3.0"
] |
0.000000000000000000e+00
1.000000000000000000e+00
2.000000000000000000e+00
4.000000000000000000e+00
8.000000000000000000e+00
1.600000000000000000e+01
3.200000000000000000e+01
6.400000000000000000e+01
1.280000000000000000e+02
2.560000000000000000e+02
5.120000000000000000e+02
1.024000000000000000e+03
2.048000000000000000... | CSV | 0 | jColeChanged/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers | sandbox/Chapter10_/data/gh_stars.csv | [
"MIT"
] |
<%
Option Explicit
Response.Expires = 0
%>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This... | ASP | 3 | jerrykcode/kkFileView | office-plugin/windows-office/share/config/webcast/webcast.asp | [
"Apache-2.0"
] |
#Copyright (C) 2009, Parrot Foundation.
# Sample creating of "Hello World" program using Packfile PMCs.
.sub 'main'
.local pmc pf, pfdir, pfbc, pfconst, oplib
# Hello World is something like
# .sub 'hello'
# say "Hello World"
# .end
# To generate PBC we need few bits
# First thing
#... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/pir/make_hello_pbc.pir | [
"Artistic-2.0"
] |
/* https://www.w3.org/TR/css-color-4 */
foo {
color: rgb(0, 128, 255);
color: rgba(0, 128, 255, 0.5);
color: hsl(198, 28%, 50%);
color: hsla(198, 28%, 50%, 0.5);
color: lab(56.29% 019.93 16.58 / 50%);
color: lch(56.29% 19.86 236.62 / 50%);
/* color(sRGB 0 0.50 1 / 50%); */
}
bar {
color: rgb(0 128 255)... | CSS | 4 | tumido/prettier | tests/format/css/color/color-level-4.css | [
"MIT"
] |
factorial(0, 1).
factorial(1, 1).
factorial(A, B) :-
A > 1, C is A-1, factorial(C, Y), B is A * Y. | Prolog | 4 | Mynogs/Algorithm-Implementations | Factorial/Prolog/jcla1/factorial.prolog | [
"MIT"
] |
@sans:"Droid Sans Book","Arial Regular","DejaVu Sans Book";
@sans_bold:"Droid Sans Bold","Arial Bold","DejaVu Sans Bold";
@primary: #484848;
#country-labels[zoom>3] {
text-name:'[NAME]';
text-face-name:@sans_bold;
text-fill: @primary;
text-size:11;
text-wrap-width:40;
text-line-spacing:2;
[zoom>5] { tex... | CartoCSS | 4 | pwnartist/underoot | maps/kibana/labels.mss | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.