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 |
|---|---|---|---|---|---|
/*
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/widgets/notification/notification.opa | [
"MIT"
] |
(set-logic QF_AUFBV)
(declare-fun zf () (_ BitVec 1))
(declare-fun cf () (_ BitVec 1))
(assert (= (bvor zf cf) (_ bv1 1)))
(check-sat)
(get-model)
| SMT | 3 | o2e/Triton | src/samples/smt/jbe.smt2 | [
"Apache-2.0"
] |
var $myStruct < struct{
@number i32,
@p <* i8> }>
func $main ()i32{
#Character
var %sChar i8
var %usChar i8
#signed and unsigned short integer
var %shortInt i16
var %shortInt2 i16
var %sShortInt i16
var %sShortInt2 i16
var %usShortInt i16
var %usShortInt2 i16
... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0063-mapleall-irbuild-edge-PrimTypes/Main.mpl | [
"MulanPSL-1.0"
] |
package com.blankj.mock.subutil;
import android.content.Context;
import com.blankj.subutil.export.api.SubUtilApi;
import com.blankj.utilcode.util.ApiUtils;
import com.blankj.utilcode.util.ToastUtils;
/**
* <pre>
* author: Blankj
* blog : http://blankj.com
* time : 2019/07/10
* desc :
* </pre... | Java | 4 | YashBangera7/AndroidUtilCode | feature/mock/src/main/java/com/blankj/mock/subutil/SubUtilApiMock.java | [
"Apache-2.0"
] |
{:enums
{:episode
{:description "The episodes of the original Star Wars trilogy."
:values [{:enum-value :NEWHOPE :description "The first one you saw."}
{:enum-value :EMPIRE :description "The good one."}
{:enum-value :JEDI :description "The one with the killer teddy bears."}]}}}
| edn | 3 | hagenek/lacinia | docs/_examples/enum-definition-description.edn | [
"Apache-2.0"
] |
dfstab_file=Plats för NFS-exporterade filer,0
share_all_command=Kommando för att påbörja fildelning,0
unshare_all_command=Kommando för att avsluta fildelning,0
| SystemVerilog | 0 | GalaxyGFX/webmin | dfsadmin/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
// script-squarewave.click
// A Script element is used to control a RatedSource element's rate
// according to a square wave: 1/2 second at 1000 packets per second
// alternates with 1/2 second off. Watch the result by running
// click -p9999 script-squarewave.click && clicky -p9999
// See also the other script-*... | Click | 4 | MacWR/Click-changed-for-ParaGraph | conf/script-squarewave.click | [
"Apache-2.0"
] |
module Utils.DateTimePicker.Types exposing
( DateTimePicker
, InputHourOrMinute(..)
, Msg(..)
, StartOrEnd(..)
, initDateTimePicker
, initFromStartAndEndTime
)
import Time exposing (Posix)
import Utils.DateTimePicker.Utils exposing (floorMinute)
type alias DateTimePicker =
{ month : M... | Elm | 5 | creganFL/alertmanager | ui/app/src/Utils/DateTimePicker/Types.elm | [
"ECL-2.0",
"Apache-2.0"
] |
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.{{dominio_site}};
set $base /var/www/{{dominio_site}}/;
root $base/public_html;
# SSL
ssl_certificate /etc/letsencrypt/live/www.{{dominio_site}}/ful... | ApacheConf | 4 | alejunio/magento-ansible | ansible/nginx/templates/mag.vhost | [
"MIT"
] |
const { locales, sourceLocale } = require('./lingui.config.js')
module.exports = {
i18n: {
locales,
defaultLocale: sourceLocale,
},
webpack: (config) => {
config.module.rules.push({
test: /\.po/,
use: ['@lingui/loader'],
})
return config
},
}
| JavaScript | 4 | blomqma/next.js | examples/with-lingui/next.config.js | [
"MIT"
] |
set RootPath to (path to me)
set JuliaPath to POSIX path of ((RootPath as text) & "Contents:Resources:julia:bin:julia")
set JuliaFile to POSIX file JuliaPath
tell application id "com.apple.finder" to open JuliaFile
| AppleScript | 3 | JuliaLabs/julia | contrib/mac/app/startup.applescript | [
"MIT"
] |
## GET /
+ Response 200 (application/json)
+ Attributes
+ (array)
+ foo
+ bar
| API Blueprint | 2 | realcredit1/drafter | test/fixtures/render/issue-547.apib | [
"BSL-1.0",
"MIT"
] |
#if defined(SOKOL_GLCORE33) || defined(SOKOL_GLES2) || defined(SOKOL_GLES3)
void v_sapp_gl_read_rgba_pixels(int x, int y, int width, int height, unsigned char* pixels) {
glReadPixels(x, y, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
}
#else
void v_sapp_gl_read_rgba_pixels(int x, int y, int width, int height... | C | 4 | zakuro9715/v | thirdparty/sokol/sokol_v.post.h | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
# Da... | Module Management System | 3 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/artprov/descrip.mms | [
"Apache-2.0"
] |
untyped
global function VR_Init
global function VR_GroundTroopsDeathCallback
struct {
string vr_settings = ""
} file
function VR_Init( string settings = "", bool enableDropships = false )
{
if ( reloadingScripts )
return
if ( !enableDropships )
FlagSet( "DisableDropships" )
file.vr_settings = settings
//... | Squirrel | 5 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/mp/_vr.nut | [
"MIT"
] |
module: b
url: https://code.google.com/codejam/contest/1460488/dashboard#s=p1
define function line() => (line :: <string>) read-line(*standard-input*) end;
define function number() => (number :: <integer>) string-to-integer(line()) end;
define function do-case(i) => ()
let fields = map(string-to-integer, split(line... | Dylan | 4 | Ashindustry007/competitive-programming | codejam/2012-qualification/b.dylan | [
"WTFPL"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected ([<<'EOF']);
(wait-killed) begin
(child-bad) begin
child-bad: exit(-1)
(wait-killed) wait(exec()) = -1
(wait-killed) end
wait-killed: exit(0)
EOF
pass;
| ChucK | 3 | Jeffxzj/PintOS-Project1 | tests/userprog/wait-killed.ck | [
"MIT"
] |
import Data.Vect
import Data.Vect.Elem
oneInVector : Elem 1 [1,2,3]
oneInVector = Here
maryInVector : Elem "Mary" ["Peter", "Paul", "Mary"]
maryInVector = There (There Here)
fourNotInVector : Elem 4 [1,2,3] -> Void
fourNotInVector (There (There (There Here))) impossible
fourNotInVector (There (There (There (There _)... | Idris | 4 | Qqwy/Idris2-Erlang | idris2/tests/typedd-book/chapter09/Elem.idr | [
"BSD-3-Clause"
] |
{
"Version" : 0.2,
"ModuleName" : "EDASQLite",
"ModuleVersion" : "0.44",
"Options" : {
"Warnings" : "All",
"Optimization" : "None",
"PreprocessorDefinitions" : [
"SQLITE_ENABLE_RTREE=1",
"SQLITE_DEFAULT_LOCKING_MODE=1",
"SQLITE_OMIT_AUTHORIZATION"
],
... | Ecere Projects | 3 | redj/ecere-sdk | eda/drivers/sqlite/EDASQLite.epj | [
"BSD-3-Clause"
] |
module.exports (terms) = terms.term {
constructor () =
self.is continue = true
generate statement (scope) =
self.code 'continue;'
rewrite result term into (return term) = self
}
| PogoScript | 0 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/continueStatement.pogo | [
"MIT"
] |
(
SynthDef("help-OffsetOut",
{ arg out=0, freq=440, dur=0.05;
var env;
env = EnvGen.kr(Env.perc(0.01, dur, 0.2), doneAction: Done.freeSelf);
OffsetOut.ar(out, SinOsc.ar(freq, 0, env))
}).send(s);
SynthDef("help-Out",
{ arg out=0, freq=440, dur=0.05;
var env;
env = EnvGen... | SuperCollider | 4 | drichardson/examples | SuperCollider/Delays.scd | [
"Unlicense"
] |
set terminal epslatex standalone color
#set output "histexp_1.tex"
#set output "histexp_2.tex"
set output "histexp_3.tex"
set size square
#set title "True count of 10,000"
#set title "True count of 500,000"
set title "True count of 1,000,000"
set xlabel ''
#set xrange [-255:9745]
#set xtics ("6000" -255, "10,000" 3... | Gnuplot | 4 | alzawad26/algorithm-archive | contents/approximate_counting/res/hist_2_plot.gp | [
"MIT"
] |
"""
[System.Runtime.CompilerServices.CompilerGlobalScopeAttribute]
public final transient class Slice_property_intModule(object):
private static def Main(argv as (string)) as void:
l = ['foo']
l.set_Item(0, 'bar')
Boo.Lang.Builtins.print(l.get_Item(0))
private def constructor():
super()
"""
l = ["foo"]
l[0]... | Boo | 2 | popcatalin81/boo | tests/testcases/semantics/slice_property_int.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 | 4 | akhalymon-cv/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/orc/OrcEncryptionSuite.scala | [
"Apache-2.0"
] |
GET /test HTTP/1.1\r\n
Accept:\r\n
*/*\r\n
\r\n
| HTTP | 1 | ashishmjn/gunicorn | tests/requests/invalid/013.http | [
"MIT"
] |
//
// This file is part of the Simutrans project under the Artistic License.
// (see LICENSE.txt)
//
//
// Test set_/can_set_slope
//
function test_slope_to_dir()
{
local slope_to_dir = {}
slope_to_dir[slope.north] <- dir.south
slope_to_dir[slope.east ] <- dir.west
slope_to_dir[slope.south] <- dir.north
slope_t... | Squirrel | 4 | Andarix/simutrans_nightly | tests/tests/test_slope.nut | [
"Artistic-1.0"
] |
create table explicit_tidb_rowid (pk varchar(6) primary key); | SQL | 3 | imtbkcat/tidb-lightning | tests/tidb_rowid/data/rowid.explicit_tidb_rowid-schema.sql | [
"Apache-2.0"
] |
import React from 'react'
import Image, { ImageProps } from 'next/image'
export default () => {
const props: ImageProps = {
src: '/noop.jpg',
width: 100,
height: 100,
}
const filledProps: ImageProps = {
src: '/noop.jpg',
layout: 'fill',
}
return (
<>
<Image {...props} />
... | TypeScript | 3 | blomqma/next.js | test/integration/typescript/components/image.tsx | [
"MIT"
] |
#include "common.hlsl"
struct VS_OUTPUT {
float4 pos : POSITION;
float2 texCoord : TEXCOORD0;
#ifdef UPSCALE
float4 diffuse : COLOR0;
#endif
};
#ifdef VERTEX
VS_OUTPUT main(VS_INPUT In) {
VS_OUTPUT Out;
Out.pos = mul(uViewProj, float4(In.aCoord.xy, 0.0, 1.0));
Out.texCoord = In.aTexCoord.xy * INV_SHO... | HLSL | 5 | guitarpukpui/OpenLara | src/shaders/filter.hlsl | [
"BSD-2-Clause"
] |
#!/bin/tcsh
echo "Hello World"
| Tcsh | 1 | conorpreid/hello-world | t/TCSH.tcsh | [
"MIT"
] |
// @@ANTLR Tool Options@@: -trace
tree grammar t051treeRewriteASTacWalker;
options {
language=JavaScript;
output=AST;
ASTLabelType=CommonTree;
tokenVocab=t051treeRewriteASTac;
}
s : ^(ID c=.) -> $c
;
| G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t051treeRewriteASTacWalker.g | [
"Apache-2.0"
] |
"""The mqtt_json component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/mqtt_json/__init__.py | [
"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\Mvc\Model\Binder;
/**
* Phalcon\Mvc\Model\Binder\BindableInterface
... | Zephir | 4 | tidytrax/cphalcon | phalcon/Mvc/Model/Binder/BindableInterface.zep | [
"BSD-3-Clause"
] |
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Exec=touch xdg-test-desktop-icon-install.tmp
Name=Desktop_Icon
StartupNotify=false
| desktop | 1 | freedesktop-unofficial-mirror/xdg__xdg-utils | tests/xdg-desktop-icon/data/desktop_icon_install.desktop | [
"MIT"
] |
# this script uses foreground ansi index colors to print
# a table of 16 rows by 16 colums where each item is a
# different color
def show_index_colors [] {
let prefix = "38;5;"
echo 1..256 | each { |idx|
let cr = ($"($idx) % 16" | math eval)
let color = ($"(ansi -e $prefix)($idx)m")
let... | Nu | 4 | x3rAx/nu_scripts | coloring/nu_index_fg2.nu | [
"MIT"
] |
/*
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/couchdb/tools/tools.opa | [
"MIT"
] |
enum Foo {
enum Bar { Baz }, //~ ERROR `enum` definition cannot be nested inside `enum`
struct Quux { field: u8 }, //~ ERROR `struct` definition cannot be nested inside `enum`
union Wibble { field: u8 }, //~ ERROR `union` definition cannot be nested inside `enum`
Bat,
}
fn main() { }
| Rust | 2 | Eric-Arellano/rust | src/test/ui/enum/nested-enum.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
%h3 503 Service Unavailable
%hr
%p
Sorry.
| Scaml | 0 | tototoshi/skinny-framework | example/src/main/webapp/WEB-INF/views/error/503.html.scaml | [
"MIT"
] |
globals [ noise-level
current-turtle
vocabulary
alphabet
]
turtles-own [
prize-count
temp-word
current-word
currently-playing
]
to setup
clear-all
ifelse Garrulous?
[resize-world -100 100 -50 50]
[resize-world -100 100 -100 100]
set current-turtle []
set alphabet ["a" "b" "C" "c" "d" "e" "f... | NetLogo | 5 | hubahuuduwu/abm-workshop | 2020_Training_series_materials/Telephone_Model/Telephone.nlogo | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook was prepared by [Donne Martin](https://github.com/donnemartin). Source and license info is on [GitHub](https://github.com/donnemartin/interactive-coding-challenges)."
]
},
{
"cell_type": "markdown",
"metadata... | Jupyter Notebook | 5 | rubenparedes0796/interactive-coding-challenges | recursion_dynamic/knapsack_unbounded/knapsack_unbounded_solution.ipynb | [
"Apache-2.0"
] |
// Code generated by avx512test. DO NOT EDIT.
#include "../../../../../../runtime/textflag.h"
TEXT asmtest_avx512cd(SB), NOSPLIT, $0
VPBROADCASTMB2Q K1, X25 // 6262fe082ac9
VPBROADCASTMB2Q K5, X25 // 6262fe082acd
VPBROADCASTMB2Q K1, X11 ... | GAS | 1 | Havoc-OS/androidprebuilts_go_linux-x86 | src/cmd/asm/internal/asm/testdata/avx512enc/avx512cd.s | [
"BSD-3-Clause"
] |
---
layout: post
title: LiquidHaskell is a GHC Plugin
date: 2020-08-20
comments: true
author: Ranjit Jhala
published: true
tags: basic
demo: refinements101.hs
---
<div class="hidden">
\begin{code}
module Plugin where
incr :: Int -> Int
incr x = x + 1
\end{code}
</div>
I enjoy working with LH. However, I'd be the ve... | Literate Haskell | 4 | curiousleo/liquidhaskell | docs/blog/2020-08-20-lh-as-a-ghc-plugin.lhs | [
"MIT",
"BSD-3-Clause"
] |
digraph graphname {
graph [fontname = "helvetica", fontsize=11];
node [shape="box", fontname = "helvetica", fontsize=11];
subgraph cluster_ax_tree {
label = "Accessibility Tree";
a [label="Document"];
a -> b;
b [label="Heading"];
b -> c;
c [label="StaticText 'Sign In'"]... | Graphviz (DOT) | 4 | zealoussnow/chromium | docs/accessibility/browser/figures/single_process.gv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
ALTER TABLE hdb_catalog.hdb_version
ALTER COLUMN hasura_uuid
SET DEFAULT gen_random_uuid();
ALTER TABLE hdb_catalog.event_log
ALTER COLUMN id
SET DEFAULT gen_random_uuid();
ALTER TABLE hdb_catalog.event_invocation_logs
ALTER COLUMN id
SET DEFAULT gen_random_uuid();
ALTER TABLE hdb_catalog.hdb_action_log
ALTER COLUMN... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/42_to_41.sql | [
"Apache-2.0",
"MIT"
] |
import "./shared";
export default "a";
// content content content content content content content content
// content content content content content content content content
| JavaScript | 0 | 1shenxi/webpack | test/statsCases/named-chunk-groups/a.js | [
"MIT"
] |
CLASS zcl_abapgit_html_form_utils DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
!io_form TYPE REF TO zcl_abapgit_html_form .
CLASS-METHODS create
IMPORTING
!io_form TYPE REF TO zcl_abapgit_html_form
RETURNING
... | ABAP | 5 | Manny27nyc/abapGit | src/ui/zcl_abapgit_html_form_utils.clas.abap | [
"MIT"
] |
*** Settings ***
Library Library.py
*** Test Cases ***
Normal and kwargs
[Documentation] FAIL Keyword 'Library.Normal And Kwargs' expected 1 non-named argument, got 0.
Normal and kwargs arg
Normal and kwargs arg a=1 b=2
Normal and kwargs a=1
Varargs and kwargs
Varargs and kwar... | RobotFramework | 3 | phil-davis/robotframework | atest/testdata/cli/dryrun/kwargs.robot | [
"ECL-2.0",
"Apache-2.0"
] |
<%--
Copyright 2012 Netflix, 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 agree... | Groovy Server Pages | 3 | michaelneale/asgard | grails-app/views/loadBalancer/edit.gsp | [
"Apache-2.0"
] |
// 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 ... | Haxe | 4 | Jimexist/thrift | lib/haxe/src/org/apache/thrift/TConfiguration.hx | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Tree} from '@angular-devkit/schematics';
import {existsSync, readFileSync} from 'fs';
import {dirname, relati... | TypeScript | 5 | John-Cassidy/angular | packages/core/schematics/utils/ng_component_template.ts | [
"MIT"
] |
// run-rustfix
#![allow(unused, clippy::suspicious_map, clippy::iter_count)]
use std::collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap, HashSet, LinkedList};
#[warn(clippy::needless_collect)]
#[allow(unused_variables, clippy::iter_cloned_collect, clippy::iter_next_slice)]
fn main() {
let sample = [1; 5];
... | Rust | 4 | narpfel/rust-clippy | tests/ui/needless_collect.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import G... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/Gfx/MovieClip.cw | [
"Apache-2.0"
] |
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.platform {
Container,
Verticle
}
import io.vertx.ceylon.core.http {
HttpServerRequest,
HttpClientResponse
}
import org.vertx.java.core.buffer {
Buffer
}
shared class ProxyServer() extends Verticle() {
shared actual void start(Vertx vertx, Con... | Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/proxyserver/ProxyServer.ceylon | [
"Apache-2.0"
] |
# typed: false
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew log" do
it_behaves_like "parseable arguments"
it "shows the Git log for a given Formula", :integration_test do
setup_test_formula "testball"
core_tap = CoreTap.new
core_tap.path.cd do
system "g... | Ruby | 4 | ylht/brew | Library/Homebrew/test/cmd/log_spec.rb | [
"BSD-2-Clause"
] |
.version 49 0
.source JsrWithoutRet.java
.class super public JsrWithoutRet
.super java/lang/Object
.method public <init> : ()V
.limit stack 1
.limit locals 1
aload_0
invokespecial java/lang/Object <init> ()V
return
.end method
.method static public main : ([Ljava/lang/String;)V
.limit stack 2... | Jasmin | 3 | PranavPurwar/procyon | Procyon.CompilerTools/src/test/resources/JsrWithoutRet.j | [
"Apache-2.0"
] |
#ifdef ECERE_STATIC
public import static "ecere"
#else
public import "ecere"
#endif
default:
private:
public class LayoutPage : Stacker
{
direction = vertical;
gap = 4;
opacity = 0.0f;
//clickThrough = true;
tabCycle = true;
}
public class LayoutLine : Stacker
{
direction = horizontal;
gap = 8;... | eC | 3 | N-eil/ecere-sdk | extras/gui/layout.ec | [
"BSD-3-Clause"
] |
; Copyright (C) 2007 The Android Open Source Project
;
; 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 ... | Jasmin | 4 | Unknoob/buck | third-party/java/dx/tests/071-dex-java-stack-ops/blort.j | [
"Apache-2.0"
] |
#ifndef CAFFE2_OPERATORS_UNSAFE_COALESCE_OP_H_
#define CAFFE2_OPERATORS_UNSAFE_COALESCE_OP_H_
#include "caffe2/core/context.h"
#include "caffe2/core/export_caffe2_op_to_c10.h"
#include "caffe2/core/operator.h"
namespace caffe2 {
template <class Context>
class UnsafeCoalesceOp final : public Operator<Context> {
pub... | C | 4 | Hacky-DH/pytorch | caffe2/operators/unsafe_coalesce.h | [
"Intel"
] |
Rebol [title: "Test script"]
print ["[bug-load-null.r3] dir:" what-dir]
data: transcode sys/read-decode %tmp.data none
either find data/2 #"^@" [
prin "NULL found! Test FAILED!"
][ prin "Test OK"]
| Rebol | 3 | 0branch/r3 | src/tests/units/files/bug-load-null.r3 | [
"Apache-2.0"
] |
constant A : Type
constant a : A
constant A_has_add : has_add A
#check a + a -- ERROR
attribute [instance] A_has_add
#check a + a
| Lean | 4 | JLimperg/lean | tests/lean/instance_cache_bug1.lean | [
"Apache-2.0"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/ShieldMoon.js | [
"MIT"
] |
<template name="messagePopupConfig">
<div class="message-popup-results">
{{> messagePopup popupUserConfig}}
{{> messagePopup popupChannelConfig}}
{{> messagePopup popupSlashCommandsConfig}}
{{> messagePopup popupEmojiConfig}}
{{> messagePopup popupReactionEmojiConfig}}
{{#each customMessagePopups}}
{{>... | HTML | 4 | subramanir2143/Rocket.Chat | app/ui-message/client/popup/messagePopupConfig.html | [
"MIT"
] |
\sphinxAtStartPar
Equation without a label.
\begin{equation*}
\begin{split}E = mc^2\end{split}
\end{equation*}
\sphinxAtStartPar
Equation with label.
\begin{equation}\label{equation:equations:test}
\begin{split}E = hv\end{split}
\end{equation}
\sphinxAtStartPar
Second equation without label.
\begin{equation*}
\begin{s... | TeX | 2 | samdoran/sphinx | tests/roots/test-latex-equations/expects/latex-equations.tex | [
"BSD-2-Clause"
] |
0.0 -1.0
8.0e-3 -1.0
1.6e-2 -1.0
2.4e-2 -1.0
3.2e-2 -1.0
4.0000003e-2 -1.0
4.8000004e-2 -1.0
5.6000005e-2 -1.0
6.4e-2 -1.0
7.2000004e-2 -1.0
8.0000006e-2 -1.0
8.800001e-2 -1.0
9.600001e-2 -1.0
0.10400001 -1.0
0.11200001 -1.0
0.12000001 -1.0
0.128 -1.0
0.136 -1.0
0.14400001 -1.0
0.15200001 -1.0
0.160... | Gnuplot | 0 | ocharles/ghc | testsuite/tests/programs/barton-mangler-bug/piece.plt | [
"BSD-3-Clause"
] |
// MIR for `<impl at $DIR/retag.rs:11:1: 19:2>::foo_shr` after SimplifyCfg-elaborate-drops
fn <impl at $DIR/retag.rs:11:1: 19:2>::foo_shr(_1: &Test, _2: &i32) -> &i32 {
debug self => _1; // in scope 0 at $DIR/retag.rs:16:20: 16:25
debug x => _2; // in scope 0 at $DIR/re... | Mirah | 3 | Eric-Arellano/rust | src/test/mir-opt/retag.{impl#0}-foo_shr.SimplifyCfg-elaborate-drops.after.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 13_pop_with_version.dpatch by Luciano Bello <luciano@linux.org.ar>
##
## DP: distinguish between pop versions
@DPATCH@
diff -urNad trunk~/decode.c trunk/decode.c
--- trunk~/decode.c 2007-08-11 18:43:41.000000000 -0300
+++ trunk/decode.c 2007-08-11 19:01:08.000000000 -0300
@@ ... | Darcs Patch | 3 | acheong08/dsniff | debian/patches/13_pop_with_version.dpatch | [
"BSD-3-Clause"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_swRadioSubMenu
Author: NKey, Garth de Wet (L-H)
Returns a sub menu for a particular radio.
Arguments:
None
Return Value:
Flexi-menu <ARRAY>
Example:
call TFAR_fnc_swRadioSubMenu;
Public: No
*/
[
["secondary", localize LSTRING(selec... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/flexiUI/fnc_swRadioSubMenu.sqf | [
"RSA-MD"
] |
#!/bin/sh
# jps.sh version 1.0.2
# there might be multiple java processes, e.g. log-agent
JPS_CMDS=($(ps aux | grep java | grep -v 'grep java' | awk '{print $11}' | sed -n 's/java$/jps/p'))
# find the first executable jps command
JPS_CMD=""
for jps in ${JPS_CMDS[@]}; do
if [ -x $jps ]; then
JPS_CMD=$jps
... | Shell | 4 | weihubeats/arthas | bin/jps.sh | [
"Apache-2.0"
] |
---
etherWisDeviceTable: 1.3.6.1.2.1.10.134.1.1.1
etherWisDeviceRxTestPatternErrors: 1.3.6.1.2.1.10.134.1.1.1.1.3
etherWisSectionCurrentJ0Received: 1.3.6.1.2.1.10.134.1.2.1.1.2
etherWisPathCurrentStatus: 1.3.6.1.2.1.10.134.2.1.1.1.1
etherWisFarEndPathCurrentEntry: 1.3.6.1.2.1.10.134.2.2.1.1
etherWisDeviceEntry: 1.3.6.... | YAML | 2 | OsmanDere/metasploit-framework | data/snmp/mibs/ETHER-WIS.yaml | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
dnl @synopsis AC_C99_FUNC_LRINT
dnl
dnl Check whether C99's lrint function is available.
dnl @version 1.1
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
dnl Permission to use, copy, modify, distribute, and sell this file for any
dnl purpose is hereby granted without fee, provided that the above copyr... | M4 | 4 | joshrose/audacity | lib-src/libsbsms/m4/ac_c99_func_lrint.m4 | [
"CC-BY-3.0"
] |
---
title: Radio
desc: The QRadio Vue component is a basic element for user input. It can be used to supply a way for the user to pick an option from multiple choices.
keys: QRadio
related:
- /vue-components/option-group
- /vue-components/button-toggle
- /vue-components/checkbox
- /vue-components/toggle
---
Th... | Markdown | 4 | RaphaelWoude/quasar | docs/src/pages/vue-components/radio.md | [
"MIT"
] |
# Check the handling of a missing depfile.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: %{llbuild} ninja build --strict --jobs 1 --chdir %t.build --no-db &> %t1.out || true
# RUN: %{FileCheck} --check-prefix CHECK-STRICT --input-file %t1.out %s
#
# CHECK-STRICT: [1/{{.*}}] t... | Ninja | 4 | trombonehero/swift-llbuild | tests/Ninja/Build/missing-depfile.ninja | [
"Apache-2.0"
] |
$TTL 3D
@ IN SOA test. root.test. (
199609203 ; Serial
28800 ; Refresh
7200 ; Retry
604800 ; Expire
86400) ; Minimum TTL
... | DNS Zone | 3 | Corvus-R/android_external_honggfuzz | examples/bind/test.zone | [
"Apache-2.0"
] |
/*
Copyright © 2011, 2012 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, ... | Opa | 4 | Machiaweliczny/oppailang | lib/stdlib/core/rpc/maxint/max_int.opa | [
"MIT"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
/// <include file="VoFunctionDocs.xml" path="Runtimefunctions/ampm/*" />
FUNCTION AmPm(c24HrTime AS STRING) AS STRING
LOCAL nSeconds AS DWORD... | xBase | 5 | orangesocks/XSharpPublic | Runtime/XSharp.Core/Functions/DT.prg | [
"Apache-2.0"
] |
// Copyright (c) 2016-2020 Bluespec, Inc. All Rights Reserved.
package Cache;
// ================================================================
// Organization: in-order, blocking, "write-back" policy:
// On a miss,
// - A victim way is identified in the addressed cache set
// - If the cache line is MO... | Bluespec | 5 | faddat/Flute | src_Core/Near_Mem_VM_WB_L1/Cache.bsv | [
"Apache-2.0"
] |
"""Tests for the dte_energy_bridge component."""
| Python | 0 | domwillcode/home-assistant | tests/components/dte_energy_bridge/__init__.py | [
"Apache-2.0"
] |
vcl 4.1;
acl invalidators {
"127.0.0.1";
}
sub vcl_recv {
if (req.method == "PURGE") {
if (!client.ip ~ invalidators) {
return (synth(405, "Not allowed"));
}
return (purge);
}
}
backend default {
.host = "nginx";
.port = "80";
}
| VCL | 4 | B-Galati/http-broadcast | examples/docker/varnish/files/etc/varnish/default.vcl | [
"MIT"
] |
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "67c2d127-c955-4313-b7d2-c584f037f85b",
"metadata": {},
"outputs": [],
"source": [
"import syft as sy\n",
"sy.logger.remove()\n",
"import numpy as np\n",
"data = sy.Tensor(np.array([1,2,3],dtype=np.int32))"
]
},
... | Jupyter Notebook | 4 | jackbandy/PySyft | notebooks/smpc/Private Mul Tensor Abstraction.ipynb | [
"Apache-2.0"
] |
=pod
=head1 NAME
ossl_cmp_ctx_set1_caPubs,
ossl_cmp_ctx_set0_validatedSrvCert,
ossl_cmp_ctx_set_status,
ossl_cmp_ctx_set0_statusString,
ossl_cmp_ctx_set_failInfoCode,
ossl_cmp_ctx_set0_newCert,
ossl_cmp_ctx_set1_extraCertsIn,
ossl_cmp_ctx_set1_recipNonce
- internal functions for managing the CMP client context datast... | Pod | 4 | pmesnier/openssl | doc/internal/man3/ossl_cmp_ctx_set1_caPubs.pod | [
"Apache-2.0"
] |
SELECT * WHERE { <a><b>1.0e0 }
| SPARQL | 0 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg/data-r2/syntax-sparql2/syntax-general-09.rq | [
"Apache-2.0"
] |
header {
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, t... | G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/tool/src/main/antlr2/org/antlr/grammar/v2/define.g | [
"Apache-2.0"
] |
apiVersion: release-notes/v2
kind: bug-fix
area: telemetry
issue:
- 31270
releaseNotes:
- |
**Fixed** an issue where envoy does not start up properly when
duplicated extra stats tags are configured.
| YAML | 2 | rveerama1/istio | releasenotes/notes/duplicated-extra-stats-tag.yaml | [
"Apache-2.0"
] |
import kmKH from '../../date-picker/locale/km_KH';
export default kmKH;
| TypeScript | 1 | fanerge/ant-design | components/calendar/locale/km_KH.tsx | [
"MIT"
] |
#tag Class
Protected Class AVSpeechSynthesizer
Inherits NSObject
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("AVSpeechSynthesizer")
return ref
End Function
#tag EndMethod
#tag Method, Flags = &h1000
Sub Constructor()
// Calling the over... | Xojo | 5 | kingj5/iOSKit | Modules/AVFoundation/AVSpeechSynthesizer.xojo_code | [
"MIT"
] |
diagram "bidirectional" {
generic.component a;
generic.component b;
generic.component c;
group g1 {
generic.component g11;
generic.component g12;
}
group g2 {
generic.component g21;
generic.component g22;
}
a -> b <-> c;
b => g1;
c <=> g2;
}
| Redcode | 3 | ralphtq/cloudgram | tests/fixtures/bidirectional.cw | [
"Apache-2.0"
] |
Import rockout
Const TEMP_AVG:Int = 10
Class DeltaTimer
' Usage...
' 1) Create DeltaTimer object, eg.
' "Local dt:DeltaTimer = New DeltaTimer (60)"
' where 60 is your game's intended frame rate,
' regardless of device frame rate.
' 2) Call dt.UpdateDelta at start of OnUpdate...
' 3) Multiply all... | Monkey | 5 | blitz-research/monkey | bananas/hitoro/rockout/imports/delta.monkey | [
"Zlib"
] |
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<jsp:useBean id="ctx" type="com.dian... | Java Server Pages | 2 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/dependency/dependency.jsp | [
"Apache-2.0"
] |
"""
But you do see this...
1 2 3
<debug>
2+2: 4
"""
import System
import System.IO
import System.Diagnostics
debug "You don't see this..."
Debug.Listeners.Add(TextWriterTraceListener(Console.Out))
debug "But you do see this..."
debug 1, 2, 3
debug
debug "2+2:", 4
| Boo | 3 | popcatalin81/boo | tests/testcases/macros/debug-1.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 not ... | Pascal | 4 | Jimexist/thrift | lib/delphi/test/Performance/DataFactory.pas | [
"Apache-2.0"
] |
fun main () : transaction page = return <xml><body>
<a link={main ()} rel="whoKnows">Here</a>
</body></xml>
| UrWeb | 1 | apple314159/urweb | tests/arel.ur | [
"BSD-3-Clause"
] |
diff ← {1↓⍵−¯1⌽⍵}
signal ← {¯50⌈50⌊50×(diff 0,⍵)÷0.01+⍵}
+/ signal ⍳ 100
| APL | 3 | mbudde/apltail | tests/signal.apl | [
"MIT"
] |
.class public Larrays/TestCls;
.super Ljava/lang/Object;
.method public test()[J
.registers 4
const/16 v3, 0x2
move/from16 v0, v3
new-array v0, v0, [J
move-object/from16 v1, v0
fill-array-data v1, :array_0
.local v1, "arr":[J
return v1
:array_0
.array-data 8
0x0
... | Smali | 4 | DSYliangweihao/jadx | jadx-core/src/test/smali/arrays/TestArrayFillWithMove/TestCls.smali | [
"Apache-2.0"
] |
@aws
runtime nodejs12.x
timeout 12
# concurrency 1
# memory 1152
| Arc | 2 | copperinc/sandbox | test/mock/normal/src/http/get-nodejs12_x/config.arc | [
"Apache-2.0"
] |
BsplitJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_split_zero_size_splits/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
: main
"a" 1 "b" 2 "c" 3 3
array_make_dict
;
| MUF | 1 | revarbat/mufsim | tests/array_make_dict.muf | [
"BSD-2-Clause"
] |
package com.taobao.arthas.core.command.view;
import com.taobao.arthas.core.command.model.CatModel;
import com.taobao.arthas.core.shell.command.CommandProcess;
/**
* Result view for CatCommand
* @author gongdewei 2020/5/11
*/
public class CatView extends ResultView<CatModel> {
@Override
public void draw(Co... | Java | 4 | weihubeats/arthas | core/src/main/java/com/taobao/arthas/core/command/view/CatView.java | [
"Apache-2.0"
] |
#%RAML 1.0 Library
types:
Foo:
type: object
properties:
content:
type: string
| RAML | 3 | fquesnel/marathon | type-generator/src/test/resources/test.raml | [
"Apache-2.0"
] |
package com.baeldung.kubernetes.admission.service;
import static org.junit.jupiter.api.Assertions.*;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.util.Base64;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.b... | Java | 4 | DBatOWL/tutorials | kubernetes/k8s-admission-controller/src/test/java/com/baeldung/kubernetes/admission/service/AdmissionServiceUnitTest.java | [
"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.
/// Json response template for the contents of the auth_opt.json file created by
/// goldctl.
String authTemplate({
bool gsutil = false,
}) {
return ''... | Dart | 4 | Mayb3Nots/flutter | packages/flutter_goldens/test/json_templates.dart | [
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.