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 |
|---|---|---|---|---|---|
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}{{ 'about.page_title'|trans }}{% endblock %}
{% block content %}
<div class="row">
<div class="col s12">
<div class="card-panel settings">
<div class="row">
<div class="div_tabs col s12"... | Twig | 3 | blessleroy/wallabag | src/Wallabag/CoreBundle/Resources/views/themes/common/Static/about.html.twig | [
"MIT"
] |
--
-- A fancy version of test1!
--
%handles:
StrTerm =
Get
Put
Close
%cohandles:
Console =
Get
Put
Close
%run ( | console => strTerm1) :
hput strTerm1 StrTerm.Get
get strTerm1; store x -- store takes the first element of the stack and puts it on the... | AMPL | 2 | prashant007/AMPL | myAMPL/src/Examples/ctest2.ampl | [
"MIT"
] |
/*******************************************************************
This file provides an example usage of upc_all_exchange collective
function as described in Section 7.3.1.5 in the UPC Spec v1.2.
********************************************************************/
#include <upc.h>
#include <upc_collective.h>
#def... | Unified Parallel C | 4 | maurizioabba/rose | tests/CompileTests/UPC_tests/test2010_01.upc | [
"BSD-3-Clause"
] |
import QtQuick 2.3
import QtQuick.Layouts 1.2
import QGroundControl.FactSystem 1.0
import QGroundControl.Controls 1.0
GridLayout {
property var factList ///< List of Facts to show
property var factLabels ///< Labels for facts, if not set, use Fact.name
rows: factList.length
... | QML | 3 | uavosky/uavosky-qgroundcontrol | src/FactSystem/FactControls/FactTextFieldGrid.qml | [
"Apache-2.0"
] |
package {
import flash.display.MovieClip
public class DownButtonShape extends EventWatcher {
public function DownButtonShape() {
trace("//Constructed DownButtonShape (", this.name, ")!");
}
}
}
| ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/simplebutton_constr_childevents/DownButtonShape.as | [
"Apache-2.0",
"Unlicense"
] |
DISPLAY `Content-type: text/html `.
DISPLAY LINEFEED.
DISPLAY `<HTML><BODY>`.
DISPLAY `<CENTER>Hello World</CENTER>`.
DISPLAY `</BODY></HTML>`.
GOBACK.
| COBOL | 3 | conorpreid/hello-world | c/CobolScript.cbl | [
"MIT"
] |
$TTL 300
@ IN A 3.4.5.6
IN A 4.5.6.7
IN A 5.6.7.8
| DNS Zone | 3 | hosting-de-labs/dnscontrol | pkg/js/parse_tests/006-transforms/foo.com.zone | [
"MIT"
] |
osc.elf: file format elf32-littlenios2
osc.elf
architecture: nios2, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x001501b8
Program Header:
LOAD off 0x00001000 vaddr 0x00150000 paddr 0x00150000 align 2**12
filesz 0x00000020 memsz 0x00000020 flags r-x
LOAD off 0x00001020 vaddr 0... | ObjDump | 3 | agural/FPGA-Oscilloscope | osc/software/osc/osc.objdump | [
"MIT"
] |
FILE: assertIs.kt
public final fun foo(arg: R|kotlin/Any|): R|kotlin/Unit| {
R|kotlin/test/assertIs|<R|kotlin/String|>(R|<local>/arg|, String())
R|<local>/arg|.R|kotlin/String.length|
}
| Text | 2 | Mu-L/kotlin | compiler/fir/analysis-tests/testData/resolveWithStdlib/smartcasts/assertIs.fir.txt | [
"ECL-2.0",
"Apache-2.0"
] |
#define NVFUSER_DEFINE_MAGIC_ZERO \
__shared__ int nvfuser_zero_s; \
if (threadIdx.x == 0) \
nvfuser_zero_s = 0; \
__syncthreads(); \
atomicMin(&nvfuser_zero_s, threadIdx.x); \
int nvfuser_zero = nvfuser_zero_s;
#define NVFU... | Cuda | 4 | sanchitintel/pytorch | torch/csrc/jit/codegen/cuda/runtime/helpers.cu | [
"Intel"
] |
package {{packageName}}
import com.codahale.metrics.*
import com.typesafe.config.ConfigFactory
import io.ktor.application.*
import io.ktor.client.HttpClient
import io.ktor.client.engine.apache.Apache
import io.ktor.config.HoconApplicationConfig
import io.ktor.features.*
import io.ktor.gson.GsonConverter
import io.ktor... | HTML+Django | 4 | derBiggi/swagger-codegen | modules/swagger-codegen/src/main/resources/kotlin-server/libraries/ktor/AppMain.kt.mustache | [
"Apache-2.0"
] |
// 18 lines 10 code 3 comments 5 blanks
sig Node {
edge: set Node
}
------------------------------------------------------------------------
pred self_loop[n: Node] {
n in n.edge
}
pred all_self_loop {
all n: Node | self_loop[n]
}
/* Comments started by /* don't nest */
run all_self_loop
| Alloy | 4 | Redfire75369/tokei | tests/data/alloy.als | [
"Apache-2.0",
"MIT"
] |
% Copyright (C) 1993 Digital Equipment Corporation
% All rights reserved.
% See the file COPYRIGHT for a full description.
% Last modified on Wed Jun 23 16:29:05 PDT 1993 by horning
extension: trait
% Separate file names into base and extension
includes stringUtil(Char, Str)
introduces
ext, base: Str -> St... | LSL | 4 | jaykrell/cm3 | m3-libs/libm3/src/os/Common/larch/extension.lsl | [
"BSD-4-Clause-UC",
"BSD-4-Clause",
"BSD-3-Clause"
] |
function _enhancd_cd_before
:
end | fish | 0 | d3dave/enhancd | functions/_enhancd_cd_before.fish | [
"MIT"
] |
CREATE TABLE `tb_cvpyawneqw` (
`col_nnggkdrfej` mediumint(9) DEFAULT '1',
`col_gxyxiafdwy` tinyblob,
`col_jrdtjutkna` int(10) unsigned DEFAULT NULL,
UNIQUE KEY `col_sowlpsmtck` (`col_nnggkdrfej`),
UNIQUE KEY `uk_ameijmmzqx` (`col_nnggkdrfej`),
UNIQUE KEY `col_gxyxiafdwy` (`col_gxyxiafdwy`(28))
) ENGINE=Inno... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_28.sql | [
"Apache-2.0"
] |
#include <functional>
#include <torch/csrc/lazy/core/config.h>
#include <torch/csrc/lazy/core/ir_metadata.h>
namespace torch {
namespace lazy {
void EmitShortFrameInfo(
std::ostream& stream,
const std::vector<SourceLocation>& frames) {
if (!frames.empty()) {
const SourceLocation& frame = frames.front();... | C++ | 4 | xiaohanhuang/pytorch | torch/csrc/lazy/core/ir_metadata.cpp | [
"Intel"
] |
#!/usr/bin/env bash
# Copyright 2015 The Kubernetes 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 applica... | Shell | 4 | columbus9963/kubernetes | test/images/volume/iscsi/create_block.sh | [
"Apache-2.0"
] |
fn main() {
let b: &[u8] = include_str!("file.txt"); //~ ERROR mismatched types
let s: &str = include_bytes!("file.txt"); //~ ERROR mismatched types
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/include-macros/mismatched-types.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Heart Curve
// Daniel Shiffman
// https://thecodingtrain.com/CodingChallenges/134.2-heart-curve-gif-loop.html
// https://youtu.be/l5I3Q1JFISE
// https://editor.p5js.org/codingtrain/sketches/C0kJ-BjYW
// I <3 you
int totalFrames = 120;
int counter = 0;
boolean record = false;
ArrayList<PVector> heart = new ArrayLis... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_134_Heart_Curve_2/Processing/CC_134_Heart_Curve_2/CC_134_Heart_Curve_2.pde | [
"MIT"
] |
{eq} = require './_helpers'
suite 'help' ->
test 'no positional' ->
eq '--help', /^Usage: grasp/, it
test 'no positional no callback' ->
eq '--help', /^Usage: grasp/, it, {-callback}
test 'more' ->
eq '--help more', /-h, --help\n==========\ndescription:/, it
test 'advanced' ->
eq '--help adv... | LiveScript | 4 | GerHobbelt/grasp | test/help.ls | [
"MIT"
] |
functions {
real binomial_logit_lpmf_marginalise(
int[] deaths_slice,
int start,
int end,
//pars
vector p_logit_avg,
// data
int[] casesL,
int[] casesU,
matrix log_choose_fct,
matrix auxCases
)
{
real lpmf = 0.0;
int N_slice = en... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200817_cmdstanv.stan | [
"MIT"
] |
dnl AC_CHECK_MATH_FUNC(func)
AC_DEFUN([AC_CHECK_MATH_FUNC], [
AC_LANG(C)
AC_CHECK_LIB([m],[$1],[
eval "ac_tr_func=HAVE_[]upcase($1)"
AC_DEFINE_UNQUOTED($ac_tr_func)
],[
])
])
| M4 | 3 | aakropotkin/jq | config/m4/check-math-func.m4 | [
"CC-BY-3.0"
] |
OSPM: An "Operating System Pacakage Manager".
Inspired by https://github.com/emacs-helm/helm-system-packages.
Supported package managers:
- [[https://guix.gnu.org][Guix]]
It provides an =os-package= class with subclsses which specialize for various
package managers.
If the package manager supports it, the class al... | Org | 4 | nathan-jungels/next | libraries/ospm/README.org | [
"BSD-3-Clause"
] |
%% This tests the presence of possible races due to an ets:lookup/ets:insert
%% combination. It takes into account any public ETS tables that might exist.
-module(ets_insert_public).
-export([main/1]).
%% Main
main(Foo) ->
make_table(Foo),
ets:insert(Foo, {counter, 0}),
[{_, N}] = ets:lookup(Foo, counter... | Erlang | 4 | jjhoo/otp | lib/dialyzer/test/race_SUITE_data/src/ets_insert_public.erl | [
"Apache-2.0"
] |
import math into meth
main: func {
a := meth abs(-3)
if (a != 3) {
"Fail! a = %d" printfln(a)
exit(1)
}
"Pass" println()
exit(0)
}
| ooc | 3 | shamanas/rock | test/compiler/namespaces/namespaced-import-function.ooc | [
"MIT"
] |
2019-09-18 23:27:25 --> kky (~kky@103.117.23.112) has joined #debian
2019-09-18 23:27:25 -- Topic for #debian is "Current Debian release is buster, 10.1 point release /msg dpkg 10.1; /msg dpkg buster; /msg dpkg stretch->buster; /msg dpkg apt suite changed | Oldstable Stretch: /msg dpkg stretch ; /msg dpkg 9.11 ; 9.11 n... | IRC log | 2 | akshaykumar23399/DOTS | weechat/logs/irc.freenode.#debian.weechatlog | [
"Unlicense"
] |
{{define "header"}}
<h1>Hello, astaxie!</h1>
{{end}} | Smarty | 3 | yingongzi/beego | testdata/views/header.tpl | [
"Apache-2.0"
] |
datatype t = A | B
val swap = fn x : t => case x of A => B | B => A
datatype u = C of t | D
val out = fn x : u => case x of C y => y | D => A
datatype nat = O | S of nat
val is_two = fn x : nat =>
case x of S (S O) => A | _ => B
val shw = fn x : t =>
case x of A => "A" | B => "B"
fun main ()... | UrWeb | 4 | apple314159/urweb | tests/case.ur | [
"BSD-3-Clause"
] |
#
# This is a comment header
#
# Multi-value A
+example.com:10.2.3.4:30
+example.com:10.2.3.5:30
Ccname.other.foo:www.other.foo
# A+PTR
=some-host-abc123.example.com:10.2.3.7:1800
# A+PTR with duplicate address, fine for A's, but warning on PTRs
=has-dup-def123.example.com:10.2.3.8
=has-dup-def456.example.com:10.2.3... | DIGITAL Command Language | 4 | slandry90/octodns | tests/zones/tinydns/example.com | [
"MIT"
] |
CREATE TABLE `empty_strings` (
`pk` INT NOT NULL,
`a` VARCHAR(20) NOT NULL
);
| SQL | 3 | suryatmodulus/tidb | br/tests/lightning_various_types/data/vt.empty_strings-schema.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using import "EnumCity.capnp".EnumCity;
@0xae962dc0f8d7e42d;
struct Animal {
cities @0 :List(EnumCity);
colours @1 :List(Text);
name @2 :Text;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/python/fixtures/python_capnp/Animal.capnp | [
"BSD-2-Clause"
] |
[package]
name = "clippy_dev"
version = "0.0.1"
edition = "2021"
[dependencies]
bytecount = "0.6"
clap = "2.33"
indoc = "1.0"
itertools = "0.10"
opener = "0.5"
regex = "1.5"
shell-escape = "0.1"
walkdir = "2.3"
cargo_metadata = "0.14"
[features]
deny-warnings = []
| TOML | 4 | david-perez/rust | src/tools/clippy/clippy_dev/Cargo.toml | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
namespace OpenAPI
open StoreApiHandlerParams
open System
open Giraffe
open Microsoft.AspNetCore.Http
module StoreApiServiceInterface =
//#region Service interface
type IStoreApiService =
abstract member DeleteOrder:HttpContext -> DeleteOrderArgs->DeleteOrderResult
abstract member GetInventor... | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/api/StoreApiServiceInterface.fs | [
"Apache-2.0"
] |
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-mac-roman
%%Version: 1.0 0
%%EndComments
/VIM-mac-roman[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/... | PostScript | 1 | uga-rosa/neovim | runtime/print/mac-roman.ps | [
"Vim"
] |
import React from 'react';
import {hydrateRoot} from 'react-dom';
import App from './components/App';
let root = hydrateRoot(document, <App assets={window.assetManifest} />);
| JavaScript | 3 | GBKstc/react-analysis | fixtures/ssr/src/index.js | [
"MIT"
] |
package com.baeldung.metrics.spectator;
import com.netflix.spectator.api.*;
import com.netflix.spectator.api.patterns.LongTaskTimer;
import com.netflix.spectator.api.patterns.PolledMeter;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInt... | Java | 4 | DBatOWL/tutorials | metrics/src/test/java/com/baeldung/metrics/spectator/SpectatorMetersUnitTest.java | [
"MIT"
] |
(lua_statement . (_) @lua)
(ruby_statement . (_) @ruby)
(python_statement . (_) @python)
;; If we support perl at some point...
;; (perl_statement . (_) @perl)
(autocmd_statement (pattern) @regex)
((set_item
option: (option_name) @_option
value: (set_value) @vim)
(#any-of? @_option
"includeexpr" "inex"
... | Scheme | 3 | hmac/nvim-treesitter | queries/vim/injections.scm | [
"Apache-2.0"
] |
#!/bin/bash
#
# Copyright 2019 Istio 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 agreed... | Shell | 4 | rveerama1/istio | tools/gen_istio_image_list.sh | [
"Apache-2.0"
] |
(require
'[com.walmartlabs.lacinia.resolve :as resolve])
(defn ^:private get-user
[connection user-id]
...)
(defn resolve-user
[context args _]
(let [{:keys [id]} args
{:keys [connection]} context
result (resolve/resolve-promise)]
(.start (Thread.
#(try
(resolve... | edn | 3 | hagenek/lacinia | docs/_examples/async-example.edn | [
"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="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@taglib uri="http://java.sun.com/j... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/webRule/jsRuleUpdate.jsp | [
"Apache-2.0"
] |
package org.springframework.boot.context.properties
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.support.BeanDefinitionRegistry
import org.springframework.beans.factory.support.RootBeanDefinition
import org.springframework.context.annotation.AnnotationConfigApplicationContext
import org.s... | Kotlin | 4 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot/src/test/kotlin/org/springframework/boot/context/properties/KotlinConfigurationPropertiesTests.kt | [
"Apache-2.0"
] |
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 314, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 186, in dispatch
req.session = Session(self.env, req)
File "/usr/lib/python2.3/site-packages/tr... | Python traceback | 0 | tizenorg/platform.upstream.python-pygments | tests/examplefiles/database.pytb | [
"BSD-2-Clause"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
enum VehicleFlags {
ValidVehicleFlag,
PersistentVehicleFlag, // DEPRECATED @ October 13th, 2016
OpenWorldVehicle,
};
/**
... | PAWN | 5 | EPIC-striker/playground | pawn/Entities/Vehicles/Vehicle.pwn | [
"MIT"
] |
// Package bigtable provides tools for working with data in
// [Google Cloud Bigtable](https://cloud.google.com/bigtable/) databases.
//
// introduced: 0.45.0
//
package bigtable
// from retrieves data from a [Google Cloud Bigtable](https://cloud.google.com/bigtable/) data source.
//
// ## Parameters
//
// - token: G... | FLUX | 4 | geropl/flux | stdlib/experimental/bigtable/bigtable.flux | [
"MIT"
] |
#+TITLE: Property Testing
* What properties should we be testing?
** Chain extension
*** Predecessor
*** Not past slot
*** Issuer is the slot leader
*** Transaction validation
**** Valid outputs
**** No double-spending
**** Unspent inputs
**** Total amount of outputs must not exceed total amount of inputs
**** Witnesse... | Org | 3 | Davdegreat/cardano-sl | docs/rules/property-testing.org | [
"MIT"
] |
.other {
color: green;
}
| CSS | 0 | johanberonius/parcel | packages/core/integration-tests/test/integration/schema-jsonld/other.css | [
"MIT"
] |
//#!usr/bin/cycript
var gx_cacheImagePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/HookImg"];
[[NSFileManager defaultManager] createDirectoryAtPath:gx_cacheImagePath withIntermediateDirectories:YES attributes:nil error:nil];
// - (nullable instancetype)initWithData:(NSData *)data scale:(CGFloat... | Cycript | 4 | smola/language-dataset | data/github.com/xdc0459/CycriptLearn/2bd0d1eda22d7e1c62b6632890cc8dca5dbe9f1c/xdc/HookImage.cy | [
"MIT"
] |
xof 0302txt 0064
Header {
1;
0;
1;
}
Frame x3ds_dolph02
{
FrameTransformMatrix
{
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000;;
}
Mesh dolph02
{
285;
-23.495010;90.550018;-8.130000;,... | Logos | 2 | Ybalrid/orbiter | Extern/mssdk_dx7/samples/Multimedia/D3DIM/media/dolphin.x | [
"MIT"
] |
Module: bank-server-4
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
/*
Issues:
---*** put <servant-tie> class into ORB runtime
*/... | Dylan | 4 | kryptine/opendylan | sources/corba/tests/dylan/server/bank-ties.dylan | [
"BSD-2-Clause"
] |
if (( ! $+commands[npx] )); then
return
fi
if ! npx_fallback_script="$(npx --shell-auto-fallback zsh 2>/dev/null)"; then
print -u2 ${(%):-"%F{yellow}This \`npx\` version ($(npx --version)) is not supported.%f"}
else
source <(<<< "$npx_fallback_script")
fi
print -u2 ${(%):-"%F{yellow}The \`npx\` plugin is deprec... | Shell | 3 | residwi/ohmyzsh | plugins/npx/npx.plugin.zsh | [
"MIT"
] |
(:
Copyright (c) 2021 MarkLogic Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | XQuery | 5 | xmlnovelist/marklogic-data-hub | marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/data-services/system/createCustomRewriters.xqy | [
"Apache-2.0"
] |
// run-pass
// aux-build:macro_with_super_1.rs
// pretty-expanded FIXME #23616
#[macro_use]
extern crate macro_with_super_1;
declare!();
fn main() {
bbb::ccc();
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/macros/macro_with_super_2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
iptcembed() unable to open file
--CREDITS--
Mark Niebergall <mbniebergall@gmail.com>
PHP TestFest 2017 - UPHPU
--FILE--
<?php
var_dump(iptcembed(-1, __DIR__ . '/iptcembed/DOES_NOT_EXIST.ERR', -1));
?>
--EXPECTF--
Warning: iptcembed(): Unable to open %s in %s on line %d
bool(false)
| PHP | 2 | thiagooak/php-src | ext/standard/tests/image/iptcembed_003.phpt | [
"PHP-3.01"
] |
<template>
<div v-if="Car">
<h3>{{ Car.make }} {{ Car.model }}</h3>
<p>{{ formatCurrency(Car.price) }}</p>
<img :src="Car.photoURL" :alt="`${Car.model} photo`">
<p>
<NuxtLink to="/">
Home page
</NuxtLink>
</p>
</div>
</template>
<script>
import car from '~/apollo/queries/car... | Vue | 4 | ardyno/nuxt.js | examples/vue-apollo/pages/car/_id.vue | [
"MIT"
] |
# Earlier versions of isl would fail to produce an AST for this input
# due to a simplification bug.
domain: "{ S_3[i, j, k] : 0 <= i <= 12 and 0 <= j < i and 0 <= k < j }"
child:
schedule: "[{ S_3[i, j, k] -> [(3993j + 1997k)] }]"
child:
schedule: "[{ S_3[i, j, k] -> [(32*floor((2j + k)/32))] }, { S_3[i, j, k]... | Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cholesky.st | [
"MIT"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1011 &101100000
AvatarBodyMask:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RightArm
m_Mask: 00000000000000000000000000000000000000000000000001000000000000000100000000000000000000000000000001000000
| Mask | 1 | AndersonMarquess/mankind | Assets/Photon Unity Networking/Demos/Shared Assets/Animations/RightArm.mask | [
"Apache-2.0"
] |
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.journaldev.jpa.data;
import com.journaldev.jpa.data.Employee;
import com.journaldev.jpa.data.Phone;
import javax.persistence.Column;
import ... | AspectJ | 3 | ghiloufibelgacem/jornaldev | PrimeFaces/Primefaces-SpringRoo-Hibernate-Sample/src/main/java/com/journaldev/jpa/data/Phone_Roo_DbManaged.aj | [
"MIT"
] |
acl purge_ip_whitelist {
"37.26.93.252"; # Skyscape mirrors
"31.210.241.100"; # Carrenza mirrors
"31.210.245.70"; # Carrenza Staging
"18.202.183.143"; # AWS NAT GW1 Staging
"18.203.90.80"; # AWS NAT GW2 Staging
"18.203.108.248"; # AWS NAT GW3 Staging
"31.210.245.86"; # Carrenza Product... | VCL | 5 | uk-gov-mirror/alphagov.govuk-aws | terraform/projects/fastly-datagovuk/datagovuk.vcl | [
"MIT"
] |
-- This is a comment
property defaultClientName : "Mary Smith"
on greetClient(nameOfClient)
display dialog ("Hello " & nameOfClient & "!")
end greetClient
script testGreet
greetClient(defaultClientName)
end script
run testGreet
greetClient("Joe Jones")
set myList to {1, "what", 3}
set beginning of myList ... | AppleScript | 3 | purveshpatel511/bat | tests/syntax-tests/source/AppleScript/test.applescript | [
"Apache-2.0",
"MIT"
] |
{-
Alertmanager API
API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)
OpenAPI spec version: 0.0.1
NOTE: This file is auto generated by the openapi-generator.
https://github.com/openapitools/openapi-generator.git
Do not edit this file manually.
-}
module Data.InlineRes... | Elm | 4 | jtlisi/alertmanager | ui/app/src/Data/InlineResponse200.elm | [
"ECL-2.0",
"Apache-2.0"
] |
module Svc {
@ A component for managing files
active component FileManager {
# ----------------------------------------------------------------------
# General Ports
# ----------------------------------------------------------------------
@ Ping input port
async input port pingIn: Svc.Ping
... | FORTRAN | 4 | AlperenCetin0/fprime | Svc/FileManager/FileManager.fpp | [
"Apache-2.0"
] |
.remaining-count-zero,
.remaining-count-one {
display: none;
}
.remaining-zero .remaining-count-zero {
display: inline;
}
.remaining-one .remaining-count-one {
display: inline;
}
.remaining-zero .remaining-count-many,
.remaining-one .remaining-count-many {
display: none;
}
#clear-completed {
opacity: 1;
}
.co... | CSS | 3 | dtelaroli/todomvc | examples/cujo/app/controls/structure.css | [
"MIT"
] |
#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create a JSON array
json v = {1, 2, 3, 4};
// insert number 7 copies of number 7 before number 3
auto new_pos = v.insert(v.begin() + 2, 7, 7);
// output new array and result of insert call
std::cout... | C++ | 4 | sdmg15/json | doc/examples/insert__count.cpp | [
"MIT"
] |
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Exec=touch xdg-test-desktop-icon-install.tmp
Name=Icon Test
Icon=red
StartupNotify=false
| desktop | 4 | freedesktop-unofficial-mirror/xdg__xdg-utils | tests/xdg-utils-usecases/data/icon_test.desktop | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8.5 10.5h-1V15H8v-1.5H5V9h1.5v3H8V9h1.5v3h1v1.5zM16 15h-1.75l-1.75-2.25V15H11V... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/FourKPlus.js | [
"MIT"
] |
PREFIX : <http://www.example.org/>
SELECT (SUM(?o) AS ?sum)
WHERE {
?s :dec ?o
}
| SPARQL | 4 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/aggregates/agg-sum-01.rq | [
"Apache-2.0"
] |
' readdir.bmx
dir=ReadDir(CurrentDir())
If Not dir RuntimeError "failed to read current directory"
Repeat
t$=NextFile( dir )
If t="" Exit
If t="." Or t=".." Continue
Print t
Forever
CloseDir dir
| BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/filesystem.mod/doc/readdir.bmx | [
"Zlib"
] |
/*************************************************************************
* *
* YAP Prolog *
* *
** Yap Prolog was developed at NCCUP - Universidade do Porto *
* *
* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 *
* *
***********************************... | Prolog | 4 | KuroLevin/yap-6.3 | pl/init.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
#!/bin/sh
sbcl --noinform --noprint <<EOF
(ql:quickload :cl-bunny.examples)
(in-package :cl-bunny.examples)
(with-connection ("amqp://")
(with-channel ()
(let ((q (queue.declare-temp)))
(queue.bind q "logs")
(format t " [*] Waiting for logs. To exit press CTRL+C~%")
(handler-case
(... | Common Lisp | 3 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | common-lisp/receive-logs.lisp | [
"Apache-2.0"
] |
static inline const char *getNameOfClassToFind() {
return "SimpleNSObjectSubclass.SimpleSubclass";
}
static inline const char *getHookName() {
return "objc_setHook_getImageName";
}
| C | 2 | lwhsu/swift | test/Interpreter/SDK/Inputs/class_getImageName-static-helper.h | [
"Apache-2.0"
] |
[package]
authors = ["Devon Govett <devongovett@gmail.com>"]
name = "parcel-js-swc-napi"
version = "0.1.0"
edition = "2018"
[lib]
crate-type = ["cdylib"]
[dependencies]
napi = { version = "1", features = ["serde-json"] }
napi-derive = "1"
parcel-js-swc-core = { path = "../core" }
[target.'cfg(target_os = "macos")'.d... | TOML | 3 | acidburn0zzz/parcel | packages/transformers/js/napi/Cargo.toml | [
"MIT"
] |
IO.puts("loading OnlyPassingTest")
defmodule OnlyPassingTest do
use ExUnit.Case
test "passes", do: assert(1 == 1)
end
| Elixir | 4 | doughsay/elixir | lib/mix/test/fixtures/test_failed/test/only_passing_test_failed.exs | [
"Apache-2.0"
] |
module ffic
class A
var my_attr = 1234
fun foo `{
printf( "in method A::foo, from C\n" );
`}
fun bar( n : Char ) : Bool `{
printf( "in method A::bar( %d ), from C\n", n );
return 1;
`}
fun baz( msg : String ) import String.length, String.to_cstring, my_attr, my_attr= `... | Nit | 4 | irr/nit-labs | ffic.nit | [
"Apache-2.0"
] |
<html>
<head>
<title>Page A</title>
</head>
<body>
<h1>Page A</h1>
</body>
</html>
| HTML | 2 | adlerliu/500lines | web-server/code/05-refactored/subdir/a.html | [
"CC-BY-3.0"
] |
// https://w3c.github.io/uievents/#idl-wheelevent
[Exposed=Window]
interface WheelEvent : MouseEvent {
constructor(DOMString type, optional WheelEventInit eventInitDict = {});
// DeltaModeCode
const unsigned long DOM_DELTA_PIXEL = 0x00;
const unsigned long DOM_DELTA_LINE = 0x01;
const unsigned long DOM_DELT... | WebIDL | 3 | Unique184/jsdom | lib/jsdom/living/events/WheelEvent.webidl | [
"MIT"
] |
// Regression test for #23729
fn main() {
let fib = {
struct Recurrence {
mem: [u64; 2],
pos: usize,
}
impl Iterator for Recurrence {
//~^ ERROR E0046
#[inline]
fn next(&mut self) -> Option<u64> {
if self.pos < 2 {... | Rust | 4 | Eric-Arellano/rust | src/test/ui/span/issue-23729.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
void {
}
sbyte {
}
byte {
}
short {
}
ushort {
}
int {
}
uint {
}
long {
}
ulong {
}
s128 { // Note: not well supported yet, currently only usable for struct padding
}
ssize {
}
usize {
}
float {
}
double {
}
bool {
}
bool32 {
}
char {
}
string struct {
dataPtr pointer
length int
}
cstring {
}
poin... | mupad | 2 | jturner/muon | lib/core.mu | [
"MIT"
] |
<cdk-virtual-scroll-viewport class="example-viewport" itemSize="60">
<dl class="example-dl">
<ng-container *cdkVirtualFor="let state of states">
<dt class="example-dt">{{state.name}}</dt>
<dd class="example-dd">{{state.capital}}</dd>
</ng-container>
</dl>
</cdk-virtual-scroll-viewport>
| HTML | 3 | tungyingwaltz/components | src/components-examples/cdk/scrolling/cdk-virtual-scroll-dl/cdk-virtual-scroll-dl-example.html | [
"MIT"
] |
--TEST--
Test use of magic constants in the global scope
--FILE--
<?php
var_dump(
__LINE__,
__FILE__,
__DIR__,
__FUNCTION__,
__METHOD__,
__CLASS__,
__TRAIT__,
__NAMESPACE__
);
?>
--EXPECTF--
int(4)
string(%d) "%s"
string(%d) "%s"
string(0) ""
string(0) ""
string(0) ""
string(0) ""
stri... | PHP | 4 | thiagooak/php-src | Zend/tests/magic_const_in_global_scope.phpt | [
"PHP-3.01"
] |
/*
* Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2016 VMS Software, Inc. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source dist... | C | 5 | xumia/debian-openssl | apps/vms_term_sock.c | [
"OpenSSL"
] |
CT~~CD,~CC^~CT~
^XA~TA000~JSN^LT0^MNW^MTD^PON^PMN^LH0,0^JMA^PR8,8~SD20^JUS^LRN^CI0^XZ
^XA
^MMT
^PW900
^LL0600
^LS0
^BY5,3,236^FT48,590^BCN,,N,N
^FD>;$NUMBER$>68^FS
^BY5,3,236^FT873,590^BCB,,N,N
^FD>;$NUMBER$>68^FS
^FT13,141^A0N,100,96^FH\^FD$NUMBER$^FS
^PQ,,,Y^XZ
| Zimpl | 2 | rstorr/ups | cmd/ups/labels/example.zpl | [
"MIT"
] |
package com.baeldung.functional;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class FirstClassFunctions {
public static List<Integer> sortWithoutLambda(List<Integer> numbers) {
Collections.sort(numbers, new Comparator<Integer>() {
@Override
... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-functional/src/main/java/com/baeldung/functional/FirstClassFunctions.java | [
"MIT"
] |
7.508707993075091069e-01 2.579550811431834401e-01
6.215329450744316864e-01 8.516273919402109760e-01
3.629999099129127549e-01 9.555766662700065917e-01
2.290642597040044581e-01 7.949837320949675323e-01
4.584046447561967996e-01 6.770328058666250648e-01
1.584592762238186126e-01 5.059918398883928026e-01
3.170379930183961914... | Logos | 0 | gabicavalcante/pymoo | tests/problems/resources/ctp5.x | [
"Apache-2.0"
] |
### 请求 /system/user/profile/get 接口 => 没有权限
GET {{userServerUrl}}/system/user/profile/get
Authorization: Bearer test245
### 请求 /system/user/profile/revise-nickname 接口 成功
PUT {{userServerUrl}}/system/user/profile/update-nickname?nickName=yunai222
Authorization: Bearer test245
### 请求 /system/user/profile/get-user-info 接... | HTTP | 3 | inprise1980/ruoyi-vue-pro | yudao-user-server/src/main/java/cn/iocoder/yudao/userserver/modules/member/controller/user/SysUserProfileController.http | [
"MIT"
] |
"Put an empty string in a slot called 'str'"
str: ''.
"Check that string is empty"
str isEmpty.
"Check that string is not empty"
str isEmpty not.
| Self | 1 | LaudateCorpus1/RosettaCodeData | Task/Empty-string/Self/empty-string.self | [
"Info-ZIP"
] |
# Note: you need to copy crypto_backdoor.py to this directory for this to work.
from crypto_backdoor import *
# The addition rule was created by adding a value 'd' as an extension to
# ingeters, with the rule that d^2 = 1. If we use d^2 = -1, we get complex
# numbers, but this is a simpler ring. The multiplication r... | Sage | 5 | tonghuaroot/google-ctf | 2017/quals/2017-crypto-backdoor/solver.sage | [
"Apache-2.0"
] |
.column-count-2 {column-count: 1}
.column-gap-1 {column-gap: 0}
.break-inside-avoid {break-inside: auto}
@media (--breakpoint-large) {
.column-count-3-l {column-count: 3}
.column-count-2-l {column-count: 2}
.column-gap-1-l {column-gap: 1}
.break-inside-avoid-l {break-inside: avoid}
}
| CSS | 3 | jlevon/hugo | docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_columns.css | [
"Apache-2.0"
] |
{
Inno Setup Preprocessor
Copyright (C) 2001-2002 Alex Yackimoff
Inno Setup
Copyright (C) 1997-2020 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
}
unit IsppSessions;
interface
uses IsppPreprocessor;
procedure PushPreproc(APreproc: TPre... | Pascal | 4 | Patriccollu/issrc | Projects/ISPP/IsppSessions.pas | [
"FSFAP"
] |
defmodule Dialyzer.StructUpdate do
defstruct [:foo]
def update(%__MODULE__{} = struct) do
%__MODULE__{struct | foo: :bar}
end
end
| Elixir | 4 | doughsay/elixir | lib/elixir/test/elixir/fixtures/dialyzer/struct_update.ex | [
"Apache-2.0"
] |
$ORIGIN com.
example 345600 IN SOA ns0.example.org. root.example.com. (
1 3600 28800 2419200 3600 )
345600 IN NS ns0.example.org.
345600 IN NS ns1.example.org.
$ORIGIN example.com.
txt1 345600 IN TXT "text record 1"
txt2 345600 IN TXT "text record 2"
txt3 ... | DNS Zone | 3 | gearnode/nsd | tpkg/long/testplan_tsig_34.tdir/testplan_tsig_34.zone | [
"BSD-3-Clause"
] |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Form Example - Add Customer</title>
<style>
.error {
c... | Java Server Pages | 3 | zeesh49/tutorials | spring-mvc-simple/src/main/webapp/WEB-INF/views/customerHome.jsp | [
"MIT"
] |
# <fortpy version="1" template="integer"></fortpy>
1 2 3 4 5 6 7 8 14 9 11 12 13 10 15
| X10 | 0 | braydenbekker/symlib | tests/combinatorics/permutation_parity.in.x10 | [
"MIT"
] |
## Lexical order
\begin{code}
Rel : Set → Set₁
Rel A = A → A → Set
Reflexive : ∀ {A : Set} → Rel A → Set
Reflexive {A} _≺_ = ∀ {x : A}
-----
→ x ≺ x
Trans : ∀ {A : Set} → Rel A → Set
Trans {A} _≺_ = ∀ {x y z : A}
→ x ≺ y
→ y ≺ z
-----
→ x ≺ z
Antirefl : ∀ {A : Set} → Rel A → Set
Antirefl {A} _... | Literate Agda | 5 | manikdv/plfa.github.io | extra/extra/Lexical.lagda | [
"CC-BY-4.0"
] |
#
# program needs:
#
use Getopt::Std ;
use strict ;
use Datascope ;
use archive;
use orb;
our ($opt_v,$opt_V,$opt_m,$opt_n);
our ($pgm,$host);
{ # Main program
my ($usage,$cmd,$problems,$subject);
my ($db,$dbcal,$stime,$subset,$string);
my ($sta,$row,$chan,$time... | XProc | 3 | jreyes1108/antelope_contrib | bin/usarray/cal_wf/cal_wf.xpl | [
"BSD-2-Clause",
"MIT"
] |
a { color: #112333 } | CSS | 1 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/-4j83DwgJa0nPQIjlb0RIA/input.css | [
"Apache-2.0",
"MIT"
] |
{% for parent in include.items %}
<li{% if page.url contains parent.url %} class="active"{% endif %}>
<a href="{{ parent.url }}">{{ parent.title }}</a>
{% if parent.children != null %}
<ul>
{% for child in parent.children %}
<li{% if page.url contains child.url %} class="active"{% endif %}>
<a href=... | HTML | 4 | ionurboz/quill | docs/_includes/sidebar.html | [
"BSD-3-Clause"
] |
#include <metal_stdlib>
using namespace metal;
typedef struct
{
float4 position [[position]];
float2 textureCoordinate [[user(textureCoordinate)]];
float2 oneStepBackTextureCoordinate [[user(oneStepBackTextureCoordinate)]];
float2 twoStepsBackTextureCoordinate [[user(twoStepsBackTextureCoordi... | Metal | 4 | zyangSir/GPUImage3 | framework/Source/Operations/MotionBlur.metal | [
"BSD-3-Clause"
] |
(( $+commands[stack] )) || return
autoload -U +X bashcompinit && bashcompinit
source <(stack --bash-completion-script stack)
| Shell | 3 | chensanle/ohmyzsh | plugins/stack/stack.plugin.zsh | [
"MIT"
] |
DROP TABLE IF EXISTS authorities;
DROP TABLE IF EXISTS users;
CREATE TABLE users (
username varchar(50) NOT NULL PRIMARY KEY,
password varchar(100) NOT NULL,
enabled boolean not null DEFAULT true
);
CREATE TABLE authorities (
username varchar(50) NOT NULL,
authority varchar(50) NOT NULL,
CONSTRAINT fore... | SQL | 4 | DBatOWL/tutorials | spring-security-modules/spring-security-web-boot-2/src/main/resources/schema-postgre.sql | [
"MIT"
] |
export default {
html: '<button>Click</button>'
};
| JavaScript | 2 | Theo-Steiner/svelte | test/runtime/samples/window-binding-multiple-handlers/_config.js | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.