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 |
|---|---|---|---|---|---|
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2012 -->
<!-- ... | XPages | 4 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-redirect.xsp-config | [
"Apache-2.0"
] |
- if @teams.empty?
p No match found.
- else
.table-responsive
table.table.table-striped.table-hover
thead
tr
th
th Team
th Number of members
th Number of namespaces
tbody#teams
- @teams.each do |team|
tr
td.table-icon= tea... | Slim | 4 | phulei/dockerlabs | play-with-docker/Portus/app/views/search/_teams.html.slim | [
"MIT"
] |
RwPlatformNestedProjectLoadComponentV2 {
#name : 'common/platforms/gemstone/Definitions',
#condition : [
'gemstone'
],
#packageNames : [
'Rowan-Cypress-Definitions',
'Rowan-Cypress-Kernel',
'Rowan-GemStone-Definitions'
],
#conditionalPackageMapSpecs : {
'gemstone' : {
'allusers' : {
#packageNameT... | STON | 3 | GemTalk/Rowan | rowan/components/common/platforms/gemstone/Definitions.ston | [
"MIT"
] |
# humanstxt.org/
# The humans responsible & technology colophon
# TEAM
<name> -- <role> -- <twitter>
# THANKS
<name> | HTML+PHP | 2 | nakshatrasinghh/appwrite | app/views/general/humans.phtml | [
"BSD-3-Clause"
] |
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local eval = helpers.eval
local command = helpers.command
local source = helpers.source
describe('lispwords', function()
before_each(clear)
it('should be set global-local',function()
source([[
... | Lua | 4 | uga-rosa/neovim | test/functional/legacy/lispwords_spec.lua | [
"Vim"
] |
(ns foo
(:require
[clojure.string :as str]
;; We're never using this namespace. Also, the namespaces aren't sorted.
[clojure.set :as set]))
;; Here we made a typo, so the symbol is unresolved:
(but-last [1 2 3])
;; Clj-kondo knows about arities of clojure namespaces, but you can also teach
;; it about you... | Clojure | 3 | esabol/super-linter | .automation/test/clojure/clojure_bad_1.clj | [
"MIT"
] |
%{
#include<stdio.h>
int yyerror(char *s);
int yylex();
int regs[26];
int base;
%}
%start digit
%union { int a; }
%token DIGIT LETTER
%left '|'
%left '&'
%left '+' '-'
%left '*' '/' '%'
%left UMINUS /*supplies precedence for unary minus */
%% /* beginning of rules section */
digit: DIGIT;
... | Yacc | 3 | jcassagnol-public/scons | test/Decider/MD5-winonly-fixture/test_parse.y | [
"MIT"
] |
// issue #36286
struct S<T: Clone> { a: T }
struct NoClone;
type A = S<NoClone>;
fn main() {
let s = A { a: NoClone };
//~^ ERROR the trait bound `NoClone: Clone` is not satisfied
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/structs/struct-path-alias-bounds.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
//This is the solution to http://codeforces.com/contest/897/problem/A
//A. Scarborough Fair
#raw "template.cpy"
int main()
int n, m
string s
cin >> n >> m >> s
while m--
int l, r
char c, cn
cin >> l >> r >> c >> cn
l--; r--;
for i = l; i <= r; i++
if s[i] == c
s[i] = cn
cout << s | COBOL | 4 | saviour07/CPY | Examples/Contest problems/897A. Scarborough Fair/a.cpy | [
"MIT"
] |
# ======================================================================================================================
# MPC and shocks
# ======================================================================================================================
$IMPORT partiel_hh_model.gms
$SETLOCAL shock_year 2026;
OPTI... | GAMS | 3 | gemal/MAKRO | Analysis/Shocks_MPC/pShocks_MPC.gms | [
"MIT"
] |
.class public Ldo/if/A;
.super Ljava/lang/Object;
| Smali | 0 | DSYliangweihao/jadx | jadx-core/src/test/smali/names/TestReservedPackageNames/a.smali | [
"Apache-2.0"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Storage\Adapter;
use Phalcon\Storage\Serializer\SerializerInterface;
... | Zephir | 5 | stijn1989/cphalcon | phalcon/Storage/Adapter/AdapterInterface.zep | [
"BSD-3-Clause"
] |
# 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 | xxdreck/google-research | xirl/scripts/launch_rl_multi_gpu.sh | [
"Apache-2.0"
] |
<div class="middle aligned column">
<div class="ui right floated buttons">
{% if definition.actionGroups.main is defined %}
{% for action in definition.getEnabledActions('main') %}
{{ sylius_grid_render_action(resources, action, null) }}
{% endfor %}
{% endif ... | Twig | 3 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/Crud/Index/_actions.html.twig | [
"MIT"
] |
#!/usr/local/bin/nitrogen
import 'std/string'
import 'std/collections'
import 'std/os'
const printMap = fn(map) {
const list = collections.reduce(map, fn(acc, val, key) {
acc + string.format('<li>{}: {}</li>', key, val)
}, '<ul>')
return list + '</ul>'
}
println(string.format('Content-Type: text... | Inform 7 | 4 | lfkeitel/nitrogen | examples/webserver-cgi/app/index.ni | [
"BSD-3-Clause"
] |
.p-10 {
padding: 10 20 10 20;
}
.m-b-10 {
margin-bottom: 10;
}
.page {
background-color: #F2F2F2;
}
ListView {
background-color: yellow;
}
TextView {
background-color: #FFF;
}
.bordered {
border-width: 5;
border-color: green;
}
.fixed-height {
height: 55;
}
.border-radius {
bo... | CSS | 2 | tralves/NativeScript | apps/ui/src/list-view/row-height.css | [
"Apache-2.0"
] |
# Have this module language version differ from calling package one.
use v6.c;
unit module ClientLang;
use nqp;
sub client-ctx( --> Mu ) is raw is export {
nqp::p6clientctx()
}
sub client-core-ctx( --> Mu ) is raw is export {
nqp::p6clientcorectx()
}
sub client-core-rev( --> Str ) is export {
nqp::p6clie... | Perl6 | 4 | raydiak/rakudo | t/packages/02-rakudo/lib/ClientLang.pm6 | [
"Artistic-2.0"
] |
name: machine-code-hoare-logic-unint
version: 1.0
description: Machine code Hoare logic state (before re-interpretation)
author: HOL OpenTheory Packager <opentheory-packager@hol-theorem-prover.org>
license: MIT
main {
import: state
import: temporal-state
}
state {
article: "state.ot.art"
}
temporal-state {
impo... | Isabelle | 3 | dwRchyngqxs/HOL | examples/l3-machine-code/common/machine-code-hoare-logic-state-unint.thy | [
"BSD-3-Clause"
] |
use Getopt::Std ;
use Datascope ;
sub die_n_weep {
die ( "Usage: $0 [-nv] [-p pffile] stage_dir\n" );
} #die
if ( ! getopts('nvp:') || @ARGV != 1 ) {
&die_n_weep();
}
# main
$stagedir = shift;
$opt_v = 1 if ($opt_n);
&die_n_weep() if ( ! -d "$stagedir" );
$pf=($opt_p) ? $opt_p : "reverse_fir";
$listre... | XProc | 4 | jreyes1108/antelope_contrib | bin/db/reverse_fir/reverse_fir.xpl | [
"BSD-2-Clause",
"MIT"
] |
{{#isQueryParam}}{{{dataType}}} {{paramName}}{{/isQueryParam}} | HTML+Django | 1 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/java-undertow-server/queryParams.mustache | [
"Apache-2.0"
] |
#!/usr/bin/env python
# This file is Python 2 compliant.
import sys
if sys.version_info[0] == 3:
#from .extractor import Extractor, VideoExtractor
#from .util import log
from .__main__ import *
#from .common import *
#from .version import *
#from .cli_wrapper import *
#from .extractor im... | Python | 3 | adger-me/you-get | src/you_get/__init__.py | [
"MIT"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
void main() {
test('Dart defines can be provided', () {
expect(const String.fromEnvironment('flutte... | Dart | 4 | Mayb3Nots/flutter | dev/automated_tests/flutter_test/dart_defines_test.dart | [
"BSD-3-Clause"
] |
// skip
// # generated by cmplxdivide.c
package main
import "math"
var (
nan = math.NaN()
inf = math.Inf(1)
zero = 0.0
)
var tests = []struct {
f, g complex128
out complex128
}{
{complex(zero, zero), complex(zero, zero), complex(nan, nan)},
{complex(zero, zero), complex(zero, -zero), complex(nan,... | Go | 4 | Havoc-OS/androidprebuilts_go_linux-x86 | test/cmplxdivide1.go | [
"BSD-3-Clause"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
using namespace System.Management.Automation.Language
Describe "StaticParameterBinder tests" -Tags "CI" {
BeforeAll {
$testCases = @(
@{
Source = 'Get-Alias abc'
Description = 'string consta... | PowerShell | 5 | dahlia/PowerShell | test/powershell/engine/ParameterBinding/StaticParameterBinder.Tests.ps1 | [
"MIT"
] |
<svg id="focus-icon" class="focus-row-icon" width="100%" height="100%" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-miterlimit:10;">
<path d="M30.028,1L30.02... | SVG | 2 | jlevon/hugo | docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/svg/focus.svg | [
"Apache-2.0"
] |
QT.widgets_private.VERSION = 5.9.4
QT.widgets_private.name = QtWidgets
QT.widgets_private.module =
QT.widgets_private.libs = $$QT_MODULE_LIB_BASE
QT.widgets_private.includes = $$QT_MODULE_INCLUDE_BASE/QtWidgets/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtWidgets/5.9.4/QtWidgets
QT.widgets_private.frameworks =
QT.widgets_private.d... | QMake | 1 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_widgets_private.pri | [
"MIT"
] |
module Concourse.Cli exposing (Cli(..), clis, downloadUrl, id, label)
import Api.Endpoints as Endpoints
import Url.Builder
clis : List Cli
clis =
[ OSX, Windows, Linux ]
type Cli
= OSX
| Windows
| Linux
downloadUrl : Cli -> String
downloadUrl cli =
let
platformName =
case ... | Elm | 5 | Caprowni/concourse | web/elm/src/Concourse/Cli.elm | [
"Apache-2.0"
] |
(module
(import "./env.js" "a" (global i32))
(import "./env.js" "b" (global i32))
(global $c i32 (i32.const 3))
(global $d i32 (i32.const 4))
(export "c" (global $c))
(export "d" (global $d))
)
| WebAssembly | 3 | 1shenxi/webpack | test/cases/wasm/imported-global-preserve-ordering/module.wat | [
"MIT"
] |
module Math
use Core
// #.=----=----=----=
pub fn PI () { 3.1415926535897932 }
pub fn PI2 () { 6.2831853071795864 }
pub fn PI1_2 () { 1.5707963267948966 }
pub fn E () { 2.7182818284590452 }
pub fn LOG2 () { 0.6931471805599453 }
pub fn LOG10 () { 2.3025850929940456 }
pub fn SQRT2 () {... | Opal | 3 | iitalics/Opal | opal_libs/Math/constants.opal | [
"MIT"
] |
option solver gurobi;
option gurobi_options "timelim=259200"; # 3days
option gurobi_options "outlev=1";
| AMPL | 2 | thuenen/State-Elimination-for-Mixed-Integer-Optimal-Control-of-PDEs-by-Semigroup-Theory | HeatCtrl/gurobi.ampl | [
"MIT"
] |
such foo
shh 1
wow
woof bar be foo
| Dogescript | 0 | erinkeith/dogescript | test/spec/exports/named/property/source.djs | [
"MIT"
] |
# EDGELIB project file (edit at your own risk)
# Copyright (c) 2004-2017 Elements Interactive B.V.
# -----------------------------------------
# General project properties
projectname = "edgesaver"
caption = "Edge Saver"
vendor = "Elements Interactive B.V."
vendorshort = "EI"
domain = "nl.e... | Ecere Projects | 2 | elementsinteractive/edgelib | samples/EdgeSaver/workspace_eide/edgesaver.epj | [
"BSD-3-Clause"
] |
.root
display: inline-block
font: bold var(--font-size-xs)/#{1} var(--font-secondary)
background: var(--color-theme)
color: var(--color-back)
padding: 2px 6px 4px
border-radius: 1em
text-transform: uppercase
vertical-align: middle
.spaced
margin-left: 0.75em
margin-right: 0.5em
... | Sass | 4 | snosrap/spaCy | website/src/styles/tag.module.sass | [
"MIT"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><g><rect fill="none" height="20" width="20"/></g><g><g><path d="M7.03,16.33C7.93,16.76,8.94,17,10,17c2.41,0,4.54-1.22,5.8-3.08l-2.3-1.33L7.03,16.33z"/><path d="M9.5,9.71V3.03C8.61,3.09,7.77,3.32,7,3.68v7... | SVG | 2 | elisoncrum/piipan | query-tool/src/Piipan.QueryTool/wwwroot/images/usa-icons-unused/sports_volleyball.svg | [
"CC0-1.0"
] |
#tag Module
Protected Module ServiceManagerWFS
#tag Method, Flags = &h1
Protected Sub AddService(ByRef serv as ServiceWFS)
#if TargetWin32
Soft Declare Function CreateServiceA Lib "AdvApi32" ( manager as Integer, name as CString, _
displayName as CString, access as Integer, serviceType as Inte... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/Console and Service Support/Modules/ServiceManagerWFS.rbbas | [
"MIT"
] |
#ifdef ECERE_STATIC
public import static "ecere"
#else
public import "ecere"
#endif
enum E3DBlockType : uint16
{
version = 0x0001,
lzma = 0x0010,
meshes = 0x1000,
mesh = 0x1010,
meshID = 0x1020,
meshBBox = 0x1021,
... | eC | 4 | N-eil/ecere-sdk | ecere/src/gfx/3D/models/e3d/e3dDefs.ec | [
"BSD-3-Clause"
] |
package scala.tools.eclipse.contribution.weaving.jdt.ui.javaeditor;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer;
import org.eclipse.jdt.ui.J... | AspectJ | 4 | dragos/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/ui/javaeditor/OutlineAspect.aj | [
"BSD-3-Clause"
] |
<template>
<v-uni-movable-area
class="image-view-area"
@touchstart.native="onTouchStart"
@touchmove.native="checkDirection"
@touchend.native="onTouchEnd"
>
<v-uni-movable-view
class="image-view-view"
:direction="direction"
inertia
scale
scale-min="1"
scale-max... | Vue | 5 | 13937836398/uni-app | src/platforms/h5/components/system-routes/preview-image/image-view.vue | [
"Apache-2.0"
] |
---
title: Forgot password
layout: single
menu: base.authentication.auth-lock
---
{% include cards/auth-lock.html show-header="1" %}
| HTML | 2 | muhginanjar/tabler | src/pages/auth-lock.html | [
"MIT"
] |
# This test is included from within tunittests
import unittest
test "loop variables are captured by ref":
var funcs: seq[proc (): int {.closure.}] = @[]
for i in 0..10:
let ii = i
funcs.add do -> int: return ii * ii
check funcs[0]() == 100
check funcs[3]() == 100
test "loop variables in closureScope... | Nimrod | 4 | alehander92/Nim | tests/closure/uclosures.nim | [
"MIT"
] |
/******************************************************************************
* Copyright 2020 The Apollo 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
... | C++ | 4 | jzjonah/apollo | modules/monitor/software/camera_monitor.cc | [
"Apache-2.0"
] |
// Package strings provides functions to manipulate UTF-8 encoded strings.
package strings
// title converts a string to title case.
//
// ## Parameters
//
// - `v` is the string value to convert.
//
// ## Convert all values of a column to title case
//
// ```
// import "strings"
//
// data
// |> map(fn: (r) =... | FLUX | 5 | NReilingh/flux | stdlib/strings/strings.flux | [
"MIT"
] |
# Copyright 2016 Quantopian, Inc.
#
# 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 in writ... | Cython | 5 | leonarduschen/zipline | zipline/data/_resample.pyx | [
"Apache-2.0"
] |
⍝ Copyright 2016, Martin Elsman
⍝ MIT License
⍝
⍝ Matrix inverse
⍝ [id n] returns an n×n identity matrix
id ← {(⍳⍵)∘.=⍳⍵}
else ← {(⍺⍺⍣⍺)(⍵⍵⍣(~⍺))⍵}
⍝ [n swap1 m] swaps row n in m with the first row
swap1 ← {
n ← ⍺
(n = 1) { ⍵ } else {
row ← 1↑(n-1)↓⍵
fst ← 1↑⍵
pre ← 1↓(n-1)↑⍵
suf ← n↓⍵
row ⍪... | APL | 5 | melsman/apltail | tests/inv.apl | [
"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 not... | PigLatin | 4 | ieugen/calcite | piglet/src/test/resources/testPig.pig | [
"Apache-2.0"
] |
pragma solidity ^0.5.0;
contract RevertWithReason {
string public id = 'RevertWithReason';
constructor() public {
require(false, 'reasonstring');
}
}
| Solidity | 3 | wbt/truffle | packages/truffle/test/sources/migrations/error/contracts/RevertWithReason.sol | [
"MIT"
] |
module examples/toys/railway
/*
* A simple model of a railway system. Trains sit on segments of tracks
* and segments overlap one another. It shows a that simple gate policy
* does not ensure train safety.
*
* author: Daniel Jackson
*/
sig Seg {next, overlaps: set Seg}
fact {all s: Seg | s in s.overlaps}
fact {... | Alloy | 5 | haslab/Electrum | electrum/src/main/resources/models/examples/toys/railway.als | [
"MIT"
] |
Red/System [
Title: "Description"
Author: "Qingtian Xie"
File: %case-folding.reds
Type: 'library
Tabs: 4
Rights: "Copyright (C) 2014-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.... | Red | 5 | GalenIvanov/red | runtime/case-folding.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
# Build configurations for TensorRT.
def if_tensorrt(if_true, if_false=[]):
"""Tests whether TensorRT was enabled during the configure process."""
return %{if_tensorrt}
| Smarty | 1 | abhaikollara/tensorflow | third_party/tensorrt/build_defs.bzl.tpl | [
"Apache-2.0"
] |
answer = .12345
neganswer = -.12345
| TOML | 0 | vanillajonathan/julia | stdlib/TOML/test/testfiles/invalid/float-no-leading-zero.toml | [
"Zlib"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Buffers;
using System.Text;
using Microsoft.AspNetCore.Internal;
using Xunit;
namespace Microsoft.AspNetCore.SignalR.Common.Tests.Internal.Formatters
{
... | C# | 4 | tomaswesterlund/aspnetcore | src/SignalR/common/SignalR.Common/test/Internal/Formatters/TextMessageParserTests.cs | [
"MIT"
] |
#!/bin/bash
set -e
source $(dirname $0)/common.sh
repository=$(pwd)/distribution-repository
pushd git-repo > /dev/null
if [[ -d /opt/openjdk-toolchain ]]; then
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 -PdeploymentRepository=${repository} build publishAllPublic... | Shell | 3 | techAi007/spring-boot | ci/scripts/build-project.sh | [
"Apache-2.0"
] |
(ns hu.lib.macros
(:require
[hu.lib.function :refer [curry compose]]
[hu.lib.type :refer [string? array? number? undef? object?]]))
(defmacro str?
[x expr]
`(if (string? ~x) ~expr ~x))
(defmacro arr?
[x expr]
`(if (array? ~x) ~expr ~x))
(defmacro obj?
[x expr]
`(if (object? ~x) ~expr ~x))
(def... | wisp | 5 | h2non/hu | src/macros.wisp | [
"MIT"
] |
#include <ATen/ATen.h>
#include <ATen/div_rtn.h>
#include <ATen/AccumulateType.h>
#include <ATen/cuda/CUDABlas.h>
#include <ATen/native/ConvUtils.h>
#include <ATen/native/Resize.h>
#include <ATen/native/cuda/im2col.cuh>
namespace at { namespace native {
namespace {
void slow_conv2d_shape_check(
const Tensor& inp... | Cuda | 4 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/ConvolutionMM2d.cu | [
"Intel"
] |
<script>
window.geolocationPromise = new Promise(resolve => {
navigator.geolocation.getCurrentPosition(position => {
resolve({latitude: position.coords.latitude, longitude: position.coords.longitude});
});
});
</script>
| HTML | 3 | NareshMurthy/playwright | test/assets/geolocation.html | [
"Apache-2.0"
] |
i 00001 17 24 02000 00 042 0017
i 00002 00 012 2003 00 040 0016
i 00003 01 24 00011 02 24 00022
i 00004 03 24 00033 00 042 0001
i 00005 00 043 0002 00 043 0003
i 00006 00 043 0000 16 045 0017
i 00007 17 25 77776 17 35 00016
i 00010 00 010 2000 00 012 2004
i 00011 00 27 00016 00 010 2001
i 00012 00 012 2005 00 27 00016
... | Octave | 1 | besm6/mesm6 | test/its/its.oct | [
"MIT"
] |
[[messaging.jms]]
== JMS
The `javax.jms.ConnectionFactory` interface provides a standard method of creating a `javax.jms.Connection` for interacting with a JMS broker.
Although Spring needs a `ConnectionFactory` to work with JMS, you generally need not use it directly yourself and can instead rely on higher level messa... | AsciiDoc | 4 | Cuiqingqiang/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/messaging/jms.adoc | [
"Apache-2.0"
] |
{
"@context": {
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
"@id": "http://schema.org/textValue",
"@type": "rdf:Property",
"http://purl.org/dc/terms/source": {
... | JSONLD | 5 | whiteslack/schemaorg | data/releases/7.01/ext-pending.jsonld | [
"Apache-2.0"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "LookupServer.h"
#include <LibCore/EventLoop.h>
#include <LibCore/LocalServer.h>
#include <LibCore/System.h>
#include <LibMain/Main.h>
ErrorOr<int> serenity_main(Main::Arguments)
{
TRY(Core... | C++ | 4 | r00ster91/serenity | Userland/Services/LookupServer/main.cpp | [
"BSD-2-Clause"
] |
# -*- tcl -*-
#
# $Id: toc.wiki,v 1.6 2005/09/28 04:51:19 andreas_kupries Exp $
#
# Engine to convert a doctoc document into Wiki markup.
#
# Copyright (c) 2003 Andreas Kupries <andreas_kupries@sourceforge.net>
# Freely redistributable.
#
######################################################################
dt_source... | MediaWiki | 4 | jdruin/F5Eagle | lib/doctools/mpformats/toc.wiki | [
"TCL"
] |
"""
class Test:
a as int
b as int
def method1():
a = 1
def method2():
pass
"""
class Test:
a as int
b as int
def method1():
a = 1
// b = 1
end
def method2():
end
end
| Boo | 2 | popcatalin81/boo | tests/testcases/parser/wsa/comments-2.boo | [
"BSD-3-Clause"
] |
/*
* 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 | 5 | kesavanvt/spark | streaming/src/test/scala/org/apache/spark/streaming/LocalStreamingContext.scala | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
%%%
%%% Authors:
%%% Konstantin Popov
%%%
%%% Copyright:
%%% Konstantin Popov, 1997
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation
%%% of Oz 3
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http://www.mozart-oz.org/LICE... | Oz | 5 | Ahzed11/mozart2 | lib/tools/browser/browser/repManager.oz | [
"BSD-2-Clause"
] |
(load "harness.shen")
(load "kerneltests.shen") | Shen | 0 | tizoc/chibi-shen | shen-test-programs/runme.shen | [
"BSD-3-Clause"
] |
import threading/Thread
import structs/ArrayList
threads := ArrayList<Thread> new()
mutex := RecursiveMutex new()
counter := 0
for (i in 0..42) {
threads add(Thread new(||
for (i in 0..10) mutex lock()
counter += 1
for (i in 0..10) mutex unlock()
))
}
for (t in threads) t start()
for... | ooc | 3 | shamanas/rock | test/sdk/threading/recmutex.ooc | [
"MIT"
] |
USING System.Collections.Generic
/// <summary>Enum that matches the various FoxPro Sql properties, used in SqlGetProp() and SqlSetProp()</summary>
/// <seealso cref="O:XSharp.VFP.Functions.SqlGetProp" />
/// <seealso cref="O:XSharp.VFP.Functions.SqlSetProp" />
ENUM XSharp.RDD.SQLProperty
/// <summary>Specifies wh... | xBase | 5 | orangesocks/XSharpPublic | Runtime/XSharp.Core/RDD/SqlProperties.prg | [
"Apache-2.0"
] |
#tag Class
Class ImprovediOSTable
Inherits iOSTable
#tag Event
Sub Open()
declare function object_getClass lib "/usr/lib/libobjc.A.dylib" (cls As Ptr) As Ptr
declare function NSSelectorFromString lib "Foundation" (aSelectorName as CFStringRef) as Ptr
declare function class_addMethod lib "/usr/lib/libobjc... | Xojo | 4 | kingj5/iOSKit | Modules/Extensions/ImprovediOSTable.xojo_code | [
"MIT"
] |
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | Arduino | 5 | kayatmin/blynk-library | examples/More/ServerAsDataStorage/ServerAsDataStorage_MultiValue/ServerAsDataStorage_MultiValue.ino | [
"MIT"
] |
typedef Issue5345<T> = Issue5345b<T>;
typedef Issue5345b<T> = Issue5345<T>;
class Main2 {
public static function main() {}
} | Haxe | 1 | Alan-love/haxe | tests/misc/compiler_loops/projects/Issue5345/Main2.hx | [
"MIT"
] |
<div>
<p>For example, consider a web page like this:</p>
<pre class="brush: html line-numbers language-html"><code class=" language-html"><span class="token doctype"><!DOCTYPE html></span>
<span class="token tag"><span class="token tag"><span class="token punctuation"><</span>html</span><span class="token p... | HTML | 3 | asahiocean/joplin | packages/app-cli/tests/enex_to_md/code1.html | [
"MIT"
] |
// (c) Copyright 1995-2018 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 3 | TonyBrewer/OpenHT | tests/userio_vadd_prbs_test/scripts/aurora_64b66b_25p4G/aurora_64b66b_25p4G.veo | [
"BSD-3-Clause"
] |
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 MongoDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use... | C | 4 | NathanFreeman/php-src | ext/date/lib/parse_posix.c | [
"PHP-3.01"
] |
# Provide DPD signatures for tunneling protocols that otherwise
# wouldn't be detected at all.
| Standard ML | 1 | yaplej/bro | scripts/base/protocols/tunnels/dpd.sig | [
"Apache-2.0"
] |
export { default } from './ToggleButton';
export { default as toggleButtonClasses } from './toggleButtonClasses';
export * from './toggleButtonClasses';
| JavaScript | 2 | good-gym/material-ui | packages/material-ui/src/ToggleButton/index.js | [
"MIT"
] |
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
USE ieee.std_logic_arith.all;
USE ieee.std_logic_unsigned.all;
entity hdmi_acr_ctrl is
port
(
-- AXI4-Lite bus (cpu control)
axi_aclk : in std_logic;
axi_aresetn : in std_logic;
-- - Write address
axi_awvalid : in std_logic;
axi_awready : out std_logic;
... | VHDL | 4 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/hdmi_acr_ctrl/hdmi_acr_ctrl.vhd | [
"Apache-2.0"
] |
table.insert(_G.test_loadorder, "FANCY after")
| Lua | 1 | uga-rosa/neovim | test/functional/fixtures/pack/foo/start/fancyplugin/after/filen.lua | [
"Vim"
] |
struct S<T = u8>(T);
trait Tr<T = u8> {}
impl Self for S {} //~ ERROR expected trait, found self type `Self`
impl Self::N for S {} //~ ERROR cannot find trait `N` in `Self`
fn main() {}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/resolve/resolve-self-in-impl-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#N canvas 564 81 875 580 12;
#X declare -stdpath ./;
#N canvas 0 0 450 300 (subpatch) 0;
#X array sample 155944 float 0;
#X coords 0 1 155943 -1 250 200 1 0 0;
#X restore 572 262 graph;
#X floatatom 63 437 0 0 0 0 - - - 0;
#X text 148 139 "set" message permits you to switch between arrays
;
#X text 174 291 creation arg... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/tabplay~-help.pd | [
"TCL"
] |
if (global != window) {
throw new Error("global is not equal to window");
}
console.log(process);
console.log(Buffer);
console.log(setImmediate);
console.log(clearImmediate);
| TypeScript | 2 | petamoriken/deno | cli/tests/testdata/compat/globals.ts | [
"MIT"
] |
# Copyright Project Harbor 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 to in writing... | RobotFramework | 4 | kschu91/harbor | tests/resources/Harbor-Pages/Project-Artifact.robot | [
"Apache-2.0"
] |
Hello! (template strings)
| HTML | 3 | jpmallarino/django | tests/template_loader/template_strings/template_loader/hello.html | [
"BSD-3-Clause",
"0BSD"
] |
LANGSPEC:logtalk.spc
KEYWORDS:logtalk.key
| Logtalk | 3 | jfmc/logtalk3 | coding/crimson/extension.logtalk | [
"Apache-2.0"
] |
class ColumnText < Column
attr_reader :header, :data_proc
def init(config)
@header = config[:header]
@text = config[:text]
return self
end
def data_proc
Proc.new do |row, value|
@text
end\
end
end | Opal | 3 | bcavileer/digest-rails | app/assets/javascripts/digest-rails/opal_lib/column_text.js.opal | [
"MIT"
] |
// run-pass
pub fn main() {
let command = "a";
match command {
"foo" => println!("foo"),
_ => println!("{}", command),
}
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-22008.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<script long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
alert(1)</script>
<style long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
.a{color: #f00}</style>
<script>
alert(1)</script>
<style>
.a{color: #f00}</style>
| HTML | 1 | szynkowskij/prettier | tests/format/html/bracket-same-line/embed.html | [
"MIT"
] |
<a n:href='Presenter:foo'>Test</a> | Latte | 0 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/n-href-single.latte | [
"Apache-2.0"
] |
static float4 gl_Position;
static float4 vA;
static float4 vB;
static float4 vC;
struct SPIRV_Cross_Input
{
float4 vA : TEXCOORD0;
float4 vB : TEXCOORD1;
float4 vC : TEXCOORD2;
};
struct SPIRV_Cross_Output
{
float4 gl_Position : SV_Position;
};
void vert_main()
{
precise float4 _15 = vA * vB;
... | GLSL | 3 | N500/filament | third_party/spirv-cross/reference/opt/shaders-hlsl/vert/no-contraction.vert | [
"Apache-2.0"
] |
// Source: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
.d-sr-only,
.d-sr-only-focusable:not(:focus)
border: 0 !important
clip: rect(0, 0, 0, 0) !important
height: 1px !important
margin: -1px !important // Fix for https://github.com/twbs/bootstrap/issues/25686
overflow: hidde... | Sass | 3 | ahmadiqbal1/vuetify | packages/vuetify/src/styles/utilities/_screenreaders.sass | [
"MIT"
] |
' 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 System.Globalization
Imports System.Runtime.InteropServices
Namespace Microsoft.CodeAnalysis.VisualBasic.Symb... | Visual Basic | 4 | frandesc/roslyn | src/Compilers/VisualBasic/Portable/Symbols/SynthesizedSymbols/GeneratedNameKind.vb | [
"MIT"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "UKWebArchive"
type = "archive"
function start()
set_rate_limit(3)
end
function vertical(ctx, domain)
scrape(ctx, {['url']=build_url(domain)})
end
funct... | Ada | 4 | Elon143/Amass | resources/scripts/archive/ukwebarchive.ads | [
"Apache-2.0"
] |
<html>
<style type="text/css">
body{background-color:#444;color:#e1e1e1;}
body,td,th{ font: 9pt Lucida,Verdana;margin:0;vertical-align:top;color:#e1e1e1; }
table.info{ color:#fff;background-color:#222; }
span,h1,a{ color: #df5 !important; }
span{ font-weight: bolder; }
h1{ border-left:5px solid $color;padding: 2px 5px;... | ColdFusion | 3 | laotun-s/webshell | other/ololo.cfm | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | Dlitosh/vscode | src/vs/workbench/contrib/notebook/browser/view/renderers/cellWidgets.ts | [
"MIT"
] |
#include "pch.h"
/**
Takes data, allocate a buffer in heap of size 4/3 + 2 to handle the result,
base64 encode it and returns a pointer to result buffer.
@param const unsigned char* data The data to be encoded.
@param unsigned short input_length Length of unencoded data (length of previous ar... | C | 5 | OsmanDere/metasploit-framework | external/source/exploits/drunkpotato/Common_Src_Files/base64.c | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
from libc.stdint cimport uint16_t, uint32_t, uint64_t, uintptr_t, int32_t
from libc.stdint cimport uint8_t
ctypedef float weight_t
ctypedef uint64_t hash_t
ctypedef uint64_t class_t
ctypedef uint64_t attr_t
ctypedef uint64_t flags_t
ctypedef uint16_t len_t
ctypedef uint16_t tag_t
| Cython | 3 | snosrap/spaCy | spacy/typedefs.pxd | [
"MIT"
] |
<%@ Page Title="ASP.NET SignalR: Hub Connection API Demo" Language="C#" MasterPageFile="~/SignalR.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.AspNet.SignalR.Samples.Hubs.HubConnectionAPI.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
... | ASP | 3 | jbruening/SignalR | samples/Microsoft.AspNet.SignalR.Samples/Hubs/HubConnectionAPI/Default.aspx | [
"Apache-2.0"
] |
// check-pass
#![feature(box_patterns)]
#![warn(unused)] // UI tests pass `-A unused` (#43896)
struct SoulHistory {
corridors_of_light: usize,
hours_are_suns: bool,
endless_and_singing: bool
}
struct LovelyAmbition {
lips: usize,
fire: usize
}
#[derive(Clone, Copy)]
enum Large {
Suit { case... | Rust | 4 | ohno418/rust | src/test/ui/lint/unused/issue-47390-unused-variable-in-struct-pattern.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'pa... | Dart | 5 | Mayb3Nots/flutter | packages/flutter_driver/lib/src/extension/extension.dart | [
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2012 -->
<!-- ... | XPages | 4 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.domino/src/com/ibm/xsp/extlib/config/raw-extlib-domino-rest.xsp-config | [
"Apache-2.0"
] |
FROM ruby:2.6
RUN apt-get update \
&& apt-get install -y sudo golang --no-install-recommends
RUN apt-get purge --auto-remove -y curl \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -r app && useradd -r -g app -G sudo app \
&& mkdir -p /home/app && chown -R app:app /home/app
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >>... | Dockerfile | 3 | luthermonson/hub | Dockerfile | [
"MIT"
] |
Module: scepter-ir-back-end-internal
Author: Keith Dennison
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
define method creat... | Dylan | 3 | kryptine/opendylan | sources/corba/scepter/back-end/ir/typedef.dylan | [
"BSD-2-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.