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 |
|---|---|---|---|---|---|
Released QAQ*1.7*7 SEQ #7
Extracted from mail message
**KIDS**:QAQ*1.7*7^
**INSTALL NAME**
QAQ*1.7*7
"BLD",2383,0)
QAQ*1.7*7^QUALITY ASSURANCE INTEGRATION^0^3000921^y
"BLD",2383,4,0)
^9.64PA^740^1
"BLD",2383,4,740,0)
740
"BLD",2383,4,740,2,0)
^9.641^740^1
"BLD",2383,4,740,2,740,0)
QUALITY ASSURANCE SITE PARAMETERS (F... | Genshi | 0 | josephsnyder/VistA-1 | Packages/Quality Assurance Integration/Patches/QAQ_1.7_7/QAQ-1p7_SEQ-7_PAT-7.kid | [
"Apache-2.0"
] |
package MoreRegs;
import DReg::*;
// mkValidReg
// 只有在 _write 后的下一个周期, _read 方法的隐式条件才有效,读出上一周期写入的值。
module mkValidReg ( Reg#(td) )
provisos( Bits#(td, sz) );
Reg#(Maybe#(td)) self_reg <- mkDReg(tagged Invalid);
method Action _write(td wdata);
self_reg <= tagged Valid wdata;
endmetho... | Bluespec | 5 | Xiefengshang/BSV_Tutorial_cn | src/JpegEncoder/MoreRegs.bsv | [
"MIT"
] |
#!/bin/bash
# Copyright 2020 The 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... | Shell | 4 | warlock135/grpc | src/csharp/build_unitypackage.sh | [
"Apache-2.0"
] |
import numpy as np
import pytest
from pandas import (
Series,
Timestamp,
)
import pandas._testing as tm
class TestCopy:
@pytest.mark.parametrize("deep", [None, False, True])
def test_copy(self, deep):
ser = Series(np.arange(10), dtype="float64")
# default deep is True
if dee... | Python | 4 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/pandas/tests/series/methods/test_copy.py | [
"MIT"
] |
function omf.xdg.config_home -d "Return the config directory based on XDG specs"
set -q XDG_CONFIG_HOME;
and echo "$XDG_CONFIG_HOME";
or echo "$HOME/.config"
end
| fish | 3 | codetriage-readme-bot/oh-my-fish | pkg/omf/functions/core/omf.xdg.config_home.fish | [
"MIT"
] |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=@page.plain_name%></title>
<!-- metadata -->
<meta name="generator" content="Instiki" />
<meta name="version" content="<%= "#{Instiki::VERSION::STRING}" %>" />
<meta name="author" content="<%=@page.author%>" />
<meta name="company" content=""... | RHTML | 3 | taskforce/instiki | app/views/wiki/s5.rhtml | [
"Ruby"
] |
; Kovri Installer for Windows, 64 bit variant
; Copyright (c) 2017, The Kovri I2P Router Project
; See LICENSE
#define Bitness 64
#include "Common.iss"
| Inno Setup | 1 | byterubpay/kovri | pkg/installers/windows/Kovri64.iss | [
"BSD-3-Clause"
] |
#!/bin/csh
echo ${1} ${2} ${3}
setenv MYWORKDIR `pwd`
### Definitions
#setenv SRC /afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMScript/CMSSW_5_3_21/src/RecoHcal/HcalPromptAnalysis/test
#setenv SCRIPTDIR ${SRC}/SHIFTER_VALIDATION/
setenv SRC ${3}
setenv SCRIPTDIR ${3}
##setenv SCRAM_ARCH slc6_amd64_gcc4... | Tcsh | 3 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/scripts/cmt/batchjobs.csh | [
"Apache-2.0"
] |
#tag Class
Protected Class UIActivity
Inherits NSObject
#tag Constant, Name = UIActivityTypeAddToReadingList, Type = Text, Dynamic = False, Default = \"com.apple.UIKit.activity.AddToReadingList", Scope = Public
#tag EndConstant
#tag Constant, Name = UIActivityTypeAirDrop, Type = Text, Dynamic = False, Default = \"c... | Xojo | 4 | jkleroy/Xojo-iOS-HTML2PDF | Extras/iOSKit/UIKit/UIActivity.xojo_code | [
"Unlicense"
] |
#BRL_GAMETARGET_IMPLEMENTED=True
#GLFW_VERSION=2
Import brl.gametarget
Import "native/wavloader.cpp"
Import "native/oggloader.cpp"
Import "native/glfwgame.cpp"
Import "native/monkeytarget.cpp"
Extern
Class GlfwVideoMode="BBGlfwVideoMode"
Field Width:Int
Field Height:Int
Field RedBits:Int
Field GreenBits:Int
... | Monkey | 4 | blitz-research/monkey | targets/__deprecated__/glfw/modules/monkeytarget.monkey | [
"Zlib"
] |
MODULE = Agar::MPane PACKAGE = Agar::MPane PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::MPane
new(package, parent, layout, ...)
const char * package
Agar::Widget parent
char * layout
PREINIT:
Uint flags = 0, wflags = 0;
enum ag_mpane_layout layout_enum = AG_MPANE4;
CODE:
if ((items == 4 && SvTYPE(... | XS | 3 | auzkok/libagar | p5-Agar/Agar/MPane.xs | [
"BSD-2-Clause"
] |
/*
* Various usage of shared
* Liao
* 6/10/2008
*/
shared[*] int p4[100*THREADS]; /* shared to shared */
shared[] int* shared p44; /* shared to shared */
int main()
{
shared int *p2;
shared[] int *p22;
/* shared[*] int *p222; */ /*Illegal, layout qualifier [*] shall not appear for a pointer type*/
/* int *share... | Unified Parallel C | 3 | maurizioabba/rose | tests/CompileTests/UPC_tests/shared_2.upc | [
"BSD-3-Clause"
] |
module namespace a = 'a';
import module namespace b = 'b' at 'b.xqm';
declare variable $a:foo := 23;
declare function a:bar() { $b:bar * 2 };
| XQuery | 4 | JensErat/basex | basex-core/src/test/resources/recmod/a.xqm | [
"BSD-3-Clause"
] |
--TEST--
Test ArrayObject::uasort() function : wrong arg count
--FILE--
<?php
/* Sort the entries by values user defined function.
* Source code: ext/spl/spl_array.c
* Alias to functions:
*/
$ao = new ArrayObject();
try {
$ao->uasort();
} catch (ArgumentCountError $e) {
echo $e->getMessage() . "\n";
}
try... | PHP | 4 | NathanFreeman/php-src | ext/spl/tests/arrayObject_uasort_error1.phpt | [
"PHP-3.01"
] |
--TEST--
ReflectionAttribute::__toString
--FILE--
<?php
#[Foo, Bar(a: "foo", b: 1234), Baz("foo", 1234), X(NO_ERROR), Y(new stdClass)]
function foo() {}
$refl = new ReflectionFunction('foo');
echo $refl->getAttributes()[0];
echo $refl->getAttributes()[1];
echo $refl->getAttributes()[2];
echo $refl->getAttributes()[3]... | PHP | 4 | NathanFreeman/php-src | ext/reflection/tests/ReflectionAttribute_toString.phpt | [
"PHP-3.01"
] |
if (req.http.Rate-Limit) {
set bereq.method = req.http.X-Orig-Method;
}
| VCL | 3 | smaeda-ks/fastly-magento2 | etc/vcl_snippets_rate_limiting/miss.vcl | [
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: " en " }}">
{%- include head.liquid -%}
<body>
{{ content }}
<script>
const ID = function () {
// Math.random should be unique because of its seeding algorithm.
// Convert it to base 36 (numbers + letters), and grab the first 9 charact... | Liquid | 4 | TommyTeaVee/training | docs/_layouts/base-guides.liquid | [
"MIT"
] |
// Copyright© Dokit for Flutter.
//
// color_pick.dart
// Flutter
//
// Created by linusflow on 2021/5/12
// Modified by linusflow on 2021/5/12 下午2:28
//
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:dokit/dokit.dart';
import 'package:dokit/kit/visual/visual.dart';
import 'package:dokit/ui/dokit_b... | Dart | 5 | didichuxing/DoraemonKit | Flutter/lib/kit/visual/color_pick.dart | [
"Apache-2.0"
] |
global _start
%include "header.inc"
mov dword [esp], 0x03479aef
mov dword [esp+4], 0x03479aef
mov dword [esp+8], 0x03479aef
mov dword [esp+12], 0x03479aef
mov dword [esp+16], 0x03479aef
mov dword [esp+20], 0x03479aef
mov dword [esp+24], 0x03479aef
mov dword [esp+28], 0x03479aef
mo... | Assembly | 3 | brenden7158/v86 | tests/nasm/btc-reg32.asm | [
"BSD-2-Clause"
] |
global _start
section .data
align 16
dq0:
dq 0x0102030405060708
dq 0xffffaaaabbbbcccc
dq1:
dq 0x8d0000ceadad00ff
dq 0x0123456789abcdef
mydword:
dd 0xcafebac0
align 16
shift1:
dq 0x07
dq 0
shift2:
dq -0x22
dq 0
%include "header.inc"
movq mm0, [dq0]
movq mm1, [dq0]
movq mm2, [dq0]
movq mm3, [dq1]
m... | Assembly | 3 | brenden7158/v86 | tests/nasm/psllq.asm | [
"BSD-2-Clause"
] |
# Implements managing trust relationships between types.
role Perl6::Metamodel::Trusting {
# Who do we trust?
has @!trustees;
# Adds a type that we trust.
method add_trustee($obj, $trustee) {
@!trustees[+@!trustees] := $trustee;
}
# Introspect the types that we trust.
method trusts... | Perl6 | 5 | raydiak/rakudo | src/Perl6/Metamodel/Trusting.nqp | [
"Artistic-2.0"
] |
defmodule ExUnit.CaptureIO do
@moduledoc ~S"""
Functionality to capture IO for testing.
## Examples
defmodule AssertionTest do
use ExUnit.Case
import ExUnit.CaptureIO
test "example" do
assert capture_io(fn -> IO.puts("a") end) == "a\n"
end
test "another... | Elixir | 5 | doughsay/elixir | lib/ex_unit/lib/ex_unit/capture_io.ex | [
"Apache-2.0"
] |
module YumVersionlock =
autoload xfm
let epoch = label "epoch" . store /[0-9]+/ . del ":" ":"
let name = key /[A-Za-z0-9_+.-]+/
let version = label "version" . store /[A-Za-z0-9_+.]+-[A-Za-z0-9_+.]+/
let dash = del "-" "-"
let wildcard = del /(\.\*)?/ ".*"
let entry = [ [ epoch ]? . name . dash . [ ver... | Augeas | 4 | swisscom/puppet-package_verifiable | lib/augeas/lenses/yumversionlock.aug | [
"MIT"
] |
"""Constants for scaffolding."""
from pathlib import Path
COMPONENT_DIR = Path("homeassistant/components")
TESTS_DIR = Path("tests/components")
| Python | 1 | domwillcode/home-assistant | script/scaffold/const.py | [
"Apache-2.0"
] |
theme.palette.type = isDark ? 'dark' : 'light';
({
color: palette.type === 'dark' ? '#fff' : palette.text.primary,
'&:hover': () => ({
color: palette.type === 'dark' ? palette.primary.light : palette.primary.main,
}),
boxShadow: `0 0 0 0.2rem ${Color(normalColor).fade(palette.type === 'dark' ? 0.48 : 0.75)}... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-codemod/src/v5.0.0/theme-palette-mode.test/actual.js | [
"MIT"
] |
<mt:Ignore>
# =======================
#
# パーツ-アイキャッチ画像
# アイキャッチ画像の情報を変数で返す
#
# モディファイアの基本値:
# print = 0
# square = 0
# width = 480
# height = 360
# alt = asset description
#
# 返す変数:
# ec_eye_alt
# ec_eye_thumb_url
# ec_eye_org_width
# ec_eye_org_height
# ec_eye_org_url
#
# 使い方1:
# <mt:If tag="... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/parts_entry_eyecatch.mtml | [
"MIT"
] |
sleep 2
t app appmode photo_burst
sleep 1
t app burst_settings 30-2
sleep 1
t app button shutter PR
sleep 9
poweroff yes
reboot yes | AGS Script | 2 | waltersgrey/autoexechack | BurstHacks/BurstAndTurnOff/30:2/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
drop table if exists alter_ttl;
create table alter_ttl(i Int) engine = MergeTree order by i ttl toDate('2020-05-05');
alter table alter_ttl add column s String;
alter table alter_ttl modify column s String ttl toDate('2020-01-01');
show create table alter_ttl;
drop table alter_ttl;
create table alter_ttl(d Date, s St... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01070_alter_with_ttl.sql | [
"Apache-2.0"
] |
@prefix .eg : <http://www.w3.org/2013/TurtleTests/> .
.eg:s .eg:p .eg:o .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-ns-dot-start.ttl | [
"CC-BY-3.0"
] |
<'
extend TB_NAME_T : [ ETRC ];
extend fifo {
keep soft testbench == ETRC;
};
extend ETRC fifo {
keep direction == POP;
keep soft type == CLASSIC;
keep PORT_DATAOUT == appendf("esa_data[%d]" , id);
keep PORT_POP_EMPTY == appendf("fifo_empty[%d]", id);
keep PORT_POP_ALMOST_EMPT... | Eiffel | 3 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/hl/highlight.e | [
"MIT"
] |
--
-- Sample schema for testing vault database secrets
--
create schema fakebank;
use fakebank;
create table account(
id decimal(16,0),
name varchar(30),
branch_id decimal(16,0),
customer_id decimal(16,0),
primary key (id));
--
-- MySQL user that will be used by Vault to create other users on demand
--
c... | SQL | 4 | DBatOWL/tutorials | spring-cloud/spring-cloud-vault/database-setup.sql | [
"MIT"
] |
import * as React from 'react';
import Box from '@mui/material/Box';
import Typography from '@mui/material/Typography';
import Link from 'docs/src/modules/components/Link';
import ROUTES from 'docs/src/route';
import FEATURE_TOGGLE from 'docs/src/featureToggle';
export default function AppHeaderBanner() {
return FEA... | TypeScript | 3 | qwaszx7003/material-ui | docs/src/components/banner/AppHeaderBanner.tsx | [
"MIT"
] |
/**
*
* \file
* \brief [Insertion Sort Algorithm
* (Insertion Sort)](https://en.wikipedia.org/wiki/Insertion_sort)
*
* \details
* Insertion sort is a simple sorting algorithm that builds the final
* sorted array one at a time. It is much less efficient compared to
* other sorting algorithms like heap sort, mer... | C++ | 5 | icbdubey/C-Plus-Plus | sorting/insertion_sort.cpp | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8">
<title>iframe nw test</title>
</head>
<body>
<h1 id='result'>iframe nw test</h1>
<h1 id='result2'>iframe nw test</h1>
<iframe id="iframe" src="iframe.html"></iframe>
<iframe id="iframe2" src="iframe.html" nwdisable></iframe>
... | HTML | 3 | namaljayathunga/nw.js | test/remoting/iframe-nw/index.html | [
"MIT"
] |
/*
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Forward.h>
#include <LibWeb/Layout/ReplacedBox.h>
namespace Web::Layout {
class LabelableNode : public ReplacedBox {
public:
virtual void handle_associated_label_mousedown(Badge<La... | C | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/Layout/LabelableNode.h | [
"BSD-2-Clause"
] |
function isPromiseLike(thing) {
return !!thing && typeof thing.then === 'function';
}
function InMemoryCache(initialValue, reportError) {
if (typeof reportError !== 'function') {
throw new Error(
'No reportError function specified for this in-memory-cache'
);
}
const cacheKey = Symbol('cacheKey')... | JavaScript | 4 | fcastillo-serempre/freeCodeCamp | api-server/src/server/utils/in-memory-cache.js | [
"BSD-3-Clause"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
CompareCodeMat := (sums, opts) ->
let(me := Try(CMatrix(CodeSums(Copy(sums), opts), opts)),
them := MatSPL(sums),
When(me[1] = false, false,
InfinityNormMat(me[2]-them) < 1e-5));
_RecursiveFindBug := fu... | GAP | 5 | sr7cb/spiral-software | namespaces/spiral/compiler/bug.gi | [
"BSD-2-Clause-FreeBSD"
] |
//Under-sampling based resonant Lowpass filter by Kassen
//Internal workings are explained in the source, for those who need that.
//let's have a look at how to use it in practice here.
chout <= "hi there! \n";
chout <= "Let's do some filtering! \n";
chout <= "Let's start with a simple example: \n";
chout <= "... \n"... | ChucK | 5 | mariobuoninfante/chugins | KasFilter/README-KasFilter.ck | [
"MIT"
] |
resource "google_container_cluster" "diem" {
provider = google-beta
name = "diem-${terraform.workspace}"
location = local.zone
network = google_compute_network.diem.id
remove_default_node_pool = true
initial_node_count = 1
logging_service = "none"
monitoring_service = "none"
... | HCL | 4 | PragmaTwice/diem | terraform/validator/gcp/cluster.tf | [
"Apache-2.0"
] |
package org.jetbrains.kotlin.aspects.navigation;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.internal.core.SourceMapper;
import org.jetbrains.kotlin.core.resolve.KotlinSourceIndex;
@SuppressWarnings("restriction")
public aspect KotlinFindSourceAspect {
pointcut findSource(SourceMapper mapper, IType ... | AspectJ | 4 | jan-zajic/kotlin-eclipse | kotlin-eclipse-aspects/src/org/jetbrains/kotlin/aspects/navigation/KotlinFindSourceAspect.aj | [
"Apache-2.0"
] |
/*
Author-Aastha Singh
FizzBuzz in Lolcode
*/
HAI 1.2
IM IN YR loop UPPIN YR var TIL BOTH SAEM var AN 101
DIFFRINT 0 AN var
O RLY?
YA RLY
I HAS A by3 ITZ BOTH SAEM 0 AN MOD OF var AN 3
I HAS A by5 ITZ BOTH SAEM 0 AN MOD OF var AN 5
BOTH OF by3 AN by5
O RLY?
YA RLY... | LOLCODE | 4 | GauravPoosarla/FizzBuzz-Hacktoberfest-2021 | Lolcode/fizzbuzz.lol | [
"Unlicense"
] |
<html>
<head>
<meta http-equiv="refresh" content="0; url=../versions/1/" />
</head>
<title>Blueprint v1 redirect</title>
</html>
| HTML | 1 | phungtuanhoang1996/blueprint | site/docs/v1/index.html | [
"Apache-2.0"
] |
package gw.lang.spec_old.enhancements
uses gw.testharness.DoNotVerifyResource
@DoNotVerifyResource
enhancement BadEnhancement : BadEnhancement
{
}
| Gosu | 1 | dmcreyno/gosu-lang | gosu-test/src/test/gosu/gw/lang/spec_old/enhancements/BadEnhancement.gsx | [
"Apache-2.0"
] |
// Copyright (c) 2020 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/language_util.h"
#import <Cocoa/Cocoa.h>
#include <string>
#include <vector>
#include "base/strings/sys_string_conversions.h"
namespace electron {
std::vecto... | Objective-C++ | 3 | lingxiao-Zhu/electron | shell/common/language_util_mac.mm | [
"MIT"
] |
/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "Alloc.h"
#include <array>
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "Types.h"
namespace {
class A : public KonanAllocatorAware {
public:... | C++ | 5 | Mu-L/kotlin | kotlin-native/runtime/src/main/cpp/AllocTest.cpp | [
"ECL-2.0",
"Apache-2.0"
] |
--TEST--
Bug #79468 SIGSEGV when closing stream handle with a stream filter appended
--SKIPIF--
<?php
$filters = stream_get_filters();
if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available." );
?>
--FILE--
<?php
$fp = fopen('php://temp', 'rb');
$rot13_filter = stream_filter_append($fp, "strin... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/filters/bug79468.phpt | [
"PHP-3.01"
] |
9
4 0 1 4 5
4 1 2 5 6
4 2 3 6 7
4 4 5 8 9
4 5 6 9 10
4 6 7 10 11
4 8 9 12 13
4 9 10 13 14
4 10 11 14 15
| Rouge | 0 | aegelfand/GBP | GeneralizedBeliefPropagation/grid4x4.rg | [
"MIT"
] |
Definition build_vector {A: Set} (n: nat) := build_vector_aux n O (@nil A).
| Coq | 3 | LaudateCorpus1/RosettaCodeData | Task/Variadic-function/Coq/variadic-function-8.coq | [
"Info-ZIP"
] |
p, alice, data1, read, allow
p, data1_deny_group, data1, read, deny
p, data1_deny_group, data1, write, deny
p, alice, data1, write, allow
g, alice, data1_deny_group
p, data2_allow_group, data2, read, allow
p, bob, data2, read, deny
p, bob, data2, write, deny
g, bob, data2_allow_group | CSV | 2 | goodrain/pycasbin | examples/priority_policy.csv | [
"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\Db;
/**
* Interface for Phalcon\Db\Result objects
*/
interface Resu... | Zephir | 5 | tidytrax/cphalcon | phalcon/Db/ResultInterface.zep | [
"BSD-3-Clause"
] |
(prn "Hello World")
| Clojure | 1 | PushpneetSingh/Hello-world | Clojure/Hello-World.clj | [
"MIT"
] |
/**
* 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.
*
* Implementation of this file has been influenced by AtlasPHP
*
* @link https://gith... | Zephir | 5 | tidytrax/cphalcon | phalcon/DataMapper/Pdo/Profiler/ProfilerInterface.zep | [
"BSD-3-Clause"
] |
set output "moduleSizePlotCombined.ps"
set terminal postscript
set style fill solid border -1
set boxwidth 0.5
set xrange [0:50]
set yrange [0:20000]
set ylabel "Size (KB)"
set title "Size distribution of 50 largest ITK Modules"
unset xtics
plot \
"./moduleSizeSortedNoThirdPartyBeta1Indexed.txt" using 1:2 with boxes fs... | Gnuplot | 3 | melodylail/aosabook | v2/tex/images/itk/moduleSizePlotCombined.gnuplot | [
"CC-BY-3.0"
] |
/// <reference path="fourslash.ts" />
// @Filename: /project/tsconfig.json
////{
//// "compilerOptions": {
//// "jsx": "react",
//// "jsxFactory": "h"
//// }
////}
// @Filename: /project/app.tsx
////const state = useMemo(() => 'Hello', []);
// @Filename: /project/component.tsx
////import { useEffect } f... | TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/importFixesWithPackageJsonInSideAnotherPackage.ts | [
"Apache-2.0"
] |
```{r echo=FALSE}
modules::import('./a')
```
| RMarkdown | 1 | pooranis/rmodules | tests/testthat/support/knitr/doc.rmd | [
"Apache-2.0"
] |
/*
* Copyright 2002-2021 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | spreoW/spring-framework | spring-test/src/test/java/org/springframework/test/web/reactive/server/StatusAssertionTests.java | [
"Apache-2.0"
] |
package com.alibaba.fastjson.validate;
import com.alibaba.fastjson.JSONValidator;
import junit.framework.TestCase;
import org.apache.commons.io.FileUtils;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.Reader;
public class JS... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/fastjson/validate/JSONValidateTest_file.java | [
"Apache-2.0"
] |
con
y = 10000
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_gety
mov result1, imm_10000_
_gety_ret
ret
_userdef_spin_start
_userdef_spin_start_ret
ret
imm_10000_
long 10000
result1
long 0
COG_BSS_START
fit 496
org COG_BSS_START
fit 496
| Parrot Assembly | 2 | archivest/spin2cpp | Test/Expect/stest180.pasm | [
"MIT"
] |
{
// This file contains snippets that might be useful to you for Chrome
// development.
"Chrome Header": {
"prefix": "hdr",
"body": [
"// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.",
"// Use of this source code is governed by a BSD-style license that can be",
"/... | JSON5 | 3 | zealoussnow/chromium | tools/vscode/cpp.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<#setting url_escaping_charset='ISO-8859-1'>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div class="main">
<#include "header.ftl" >
<div class="content">
${page_content}
</div>
<#include "footer.ftl" >
</div>
</body>
</html>
| FreeMarker | 3 | zeesh49/tutorials | java-lite/src/main/webapp/WEB-INF/views/layouts/default_layout.ftl | [
"MIT"
] |
import "std/test"
test.run("Non-existant import", fn(assert) {
assert.shouldThrow(fn() {
import './includes/_not_exist.ni'
})
})
test.run("Absolute import", fn(assert) {
import '../../testdata/math.ni'
assert.isTrue(isFunc(math.add))
assert.isEq(math.add(2, 4), 6)
})
| Inform 7 | 4 | lfkeitel/nitrogen | tests/imports/import_absolute.ni | [
"BSD-3-Clause"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# DEPRECATED
# Recent versions have begun deprecating this eclass.
# Do not use it in new series.
# @ECLASS: mysql_fx.eclass
# @MAINTAINER:
# - MySQL Team <mysql-bugs@gentoo.org>
# - Luca Longinotti <chtekk@... | Gentoo Eclass | 4 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/mysql_fx.eclass | [
"MIT"
] |
set -ex
# sh /etc/init.d/xvfb start | Shell | 1 | stevepiercy/selenium | scripts/travis/before_script.sh | [
"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
*/
declare global {
const ngJitMode: boolean;
}
// Make this an ES module to be able to augment the global scope
expo... | TypeScript | 1 | raghavendramohan/angular | packages/core/src/util/ng_jit_mode.ts | [
"MIT"
] |
> module Main where
>
> import A
> import Other
>
> main = do
> print foo
> print bar
| Literate Haskell | 1 | cabalism/cabal | cabal-testsuite/PackageTests/ShowBuildInfo/Complex/app/Main.lhs | [
"BSD-3-Clause"
] |
/**
* 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\Html\Link;
use Psr\Link\LinkInterface;
use Psr\Link\LinkProviderInter... | Zephir | 4 | tidytrax/cphalcon | phalcon/Html/Link/LinkProvider.zep | [
"BSD-3-Clause"
] |
insert into Game (id, name) values (1, 'Game 1');
insert into Game (id, name) values (2, 'Game 2');
insert into Player (game_id, name, id) values (null, 'Player 1', 1);
insert into Player (game_id, name, id) values (null, 'Player 2', 2);
insert into Player (game_id, name, id) values (null, 'Player 3', 3); | SQL | 2 | DBatOWL/tutorials | persistence-modules/hibernate-jpa/src/main/resources/META-INF/data.sql | [
"MIT"
] |
"""
Prior to the resolution of issue 623, this would cause the gc to crash while
tracing SpeechOut from SpeechIn
"""
actor Main
new create(env: Env) =>
let talk = SpeechOut
let config = Config.create(talk)
SpeechIn.create(talk, config)
actor SpeechOut
new create() => None
actor SpeechIn
let talk: S... | Pony | 4 | presidentbeef/ponyc | minimal-cases/issue-623-2/623-2.pony | [
"BSD-2-Clause"
] |
$TTL 300
_dmarc IN TXT "v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:xx...@yyyy.com; ruf=mailto:xx...@yyyy.com; fo=1"
| DNS Zone | 2 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/016-backslash/foo.com.zone | [
"MIT"
] |
"A point with two coordinates."
shared class Point(x, y) {
// A comment.
shared Float x;
shared Float y;
}
| Ceylon | 3 | Kopilov/ceylon-ide-intellij | testdata/parsing/Class.ceylon | [
"Apache-2.0"
] |
role Encoding::Decoder {
method add-bytes(Blob:D $bytes --> Nil) { ... }
method consume-available-chars(--> Str:D) { ... }
method consume-all-chars(--> Str:D) { ... }
method consume-exactly-chars(int $chars, Bool:D :$eof = False --> Str) { ... }
method set-line-separators(@seps --> Nil) { ... }
... | Perl6 | 3 | raydiak/rakudo | src/core.c/Encoding/Decoder.pm6 | [
"Artistic-2.0"
] |
use driver_arrays;
var x1: index(Dom1D);
var x2: index(Dom2D);
var x3: index(Dom3D);
var x4: index(Dom4D);
var x5: index(A1D.domain);
var x6: index(A2D.domain);
var x7: index(A3D.domain);
var x8: index(A4D.domain);
writeln(x1, " ", x1.type:string);
writeln(x2, " ", x2.type:string);
writeln(x3, " ", x3.type:string);
w... | Chapel | 3 | jhh67/chapel | test/distributions/robust/arithmetic/trivial/test_index_type.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Herman Melville - Moby-Dick</h1>
<div>
<p>
Availing himself of the mild, summer-cool weather that now reigned in these latitudes, and in preparation for the peculiarly active pursuits shortly to be anticipated, Perth, the begrimed, bl... | HTML | 2 | sonamsks/httpbin | httpbin/templates/moby.html | [
"ISC"
] |
"""Support for Fast.com internet speed testing sensor."""
from __future__ import annotations
from typing import Any
from homeassistant.components.sensor import SensorEntity
from homeassistant.const import DATA_RATE_MEGABITS_PER_SECOND
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.d... | Python | 4 | MrDelik/core | homeassistant/components/fastdotcom/sensor.py | [
"Apache-2.0"
] |
# Authors: Robert Layton <robertlayton@gmail.com>
# Corey Lynch <coreylynch9@gmail.com>
# License: BSD 3 clause
from libc.math cimport exp, lgamma
from scipy.special import gammaln
import numpy as np
cimport numpy as np
cimport cython
np.import_array()
ctypedef np.float64_t DOUBLE
def expected_mutual_info... | Cython | 5 | MaiRajborirug/scikit-learn | sklearn/metrics/cluster/_expected_mutual_info_fast.pyx | [
"BSD-3-Clause"
] |
/mob
see_invisible = 100
/world/view = 10
/mob/verb/spawn_lamp()
new/obj/lamp(loc)
/mob/verb/spawn_door()
new/obj/door(loc)
/mob/verb/change_turf_type(var/new_type as text)
var/turf/T = loc
T.change_turf(new_type)
| DM | 4 | PJB3005/GoonLight-Heist | ExampleProject/mob.dm | [
"MIT"
] |
#import <ATen/native/metal/mpscnn/MPSImage+Tensor.h>
@implementation MPSImage (Tensor)
- (std::vector<int64_t>)sizes {
int64_t N = self.numberOfImages;
int64_t C = self.featureChannels;
int64_t H = self.height;
int64_t W = self.width;
return {N, C, H, W};
}
- (BOOL)isTemporaryImage {
return [self isKindO... | Objective-C++ | 4 | Hacky-DH/pytorch | aten/src/ATen/native/metal/mpscnn/MPSImage+Tensor.mm | [
"Intel"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Estimate all Gaussian log-linear RealGARCH(1,1) model parameters (alpha, gamma, omega, xi, phi, tau_1, tau_2, sigma2_u and beta)
**
** Date:
** 17/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.F. Ho... | Ox | 5 | tamerdilaver/Group4_Code_Data | CS_SIM_3_log_linear_RealGARCH.ox | [
"MIT"
] |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#include "unittest/gtest.hpp"
#include "http/http.hpp"
namespace unittest {
TEST(HTTPEscaping, HTTPEscaping) {
EXPECT_EQ("abc", percent_escaped_string("abc"));
EXPECT_EQ("Hello%2C%20world%21", percent_escaped_string("Hello, world!"));
std::string o... | C++ | 4 | zadcha/rethinkdb | src/unittest/http_escaping.cc | [
"Apache-2.0"
] |
/*
* 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 "ABI42_0_0ImageManager.h"
#import <ABI42_0_0React/ABI42_0_0RCTImageLoaderWithAttributionProtocol.h>
#import <ABI42_0_0Rea... | Objective-C++ | 4 | zakharchenkoAndrii/expo | ios/versioned-react-native/ABI42_0_0/ReactNative/ReactCommon/fabric/imagemanager/platform/ios/ABI42_0_0ImageManager.mm | [
"Apache-2.0",
"MIT"
] |
f(x) = m*x+n
fit f(x) 'stats.csv' using 2:1 via m,n
set term png size 1920,1080
set output "stats_linear_plot.png"
set title "Time versus RLimit"
set xlabel "Time in seconds"
set xtics 2.5
set ylabel "RLimit"
set ytics 10000000
set grid
set timestamp
plot 'stats.csv' using 2:1 with points, f(x)
quit
| Gnuplot | 4 | SwampertX/FStar | .scripts/statistics_linear_plot.gnu | [
"Apache-2.0"
] |
CREATE TABLE `tb_zjdvakwwwv` (
`col_bytftanpdh` mediumint(56) unsigned DEFAULT '1',
`col_zwyhucxxkr` year(4) NOT NULL,
`col_desbhtchpe` text(3076914288) CHARACTER SET latin1,
`col_figelwsuqt` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET latin1 DEFAULT 'enum_or_set_0',
UNIQUE `col_desbhtc... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_20.sql | [
"Apache-2.0"
] |
module Baz (baz) where
#include <zlib.h>
baz :: Int
baz = {# sizeof gz_header_s #}
| C2hs Haskell | 1 | ghuntley/rules_haskell | tests/c2hs/repo/Baz.chs | [
"Apache-2.0"
] |
plz foo with much n
rly n smaller 0
amaze 0
wow
amaze n
wow& | Dogescript | 0 | erinkeith/dogescript | test/spec/amaze/in-lambda/source.djs | [
"MIT"
] |
module top (input logic clock, ctrl);
logic read = 0, write = 0, ready = 0;
always @(posedge clock) begin
read <= !ctrl;
write <= ctrl;
ready <= write;
end
endmodule
module top_properties (input logic clock, read, write, ready);
a_rw: assert property ( @(posedge clock) !(read && write) );
`ifdef FAIL
a_wr:... | SystemVerilog | 4 | kallisti5/yosys | tests/sva/basic02.sv | [
"ISC"
] |
namespace Ryujinx.HLE.HOS.Services.Audio
{
enum ResultCode
{
ModuleId = 153,
ErrorCodeShift = 9,
Success = 0,
DeviceNotFound = (1 << ErrorCodeShift) | ModuleId,
UnsupportedRevision = (2 << ErrorCodeShift) | ModuleId,
UnsupportedSampleRate = (3 << ... | C# | 3 | BSoDGamingYT/Ryujinx | Ryujinx.HLE/HOS/Services/Audio/ResultCode.cs | [
"MIT"
] |
#layer::outline {
line-color: whitesmoke;
line-width: 10;
}
#layer::inline {
line-color: mintcream;
line-width: 5;
} | CartoCSS | 3 | nimix/carto | test/rendering-mss/basic_attachment_separate_double.mss | [
"Apache-2.0"
] |
namespace go common
struct A {
1: optional string a
}
| Thrift | 2 | Jimexist/thrift | lib/go/test/common/a.thrift | [
"Apache-2.0"
] |
a(k T, x1, x2, x3, x4, x5) ->
b = raw () -> T
if k <= 0 ? x4() + x5() : (b = () -> k -= 1; a k, b, x1, x2, x3, x4)()
say a 10, ()-> 1, ()-> -1, ()-> -1, ()-> 1, ()-> 0
| Ox | 3 | ozra/onyx-lang | samples/man-or-boy.ox | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/workbench/services/localizations/electron-sandbox/localizationsService.ts | [
"MIT"
] |
parser grammar CiscoNxos_ntp;
import CiscoNxos_common;
options {
tokenVocab = CiscoNxosLexer;
}
ntp_poll_interval
:
// 4-16
uint8
;
s_ntp
:
NTP
(
ntp_access_group
| ntp_authenticate
| ntp_authentication_key
| ntp_commit
| ntp_distribute
| ntp_peer
| ntp_server
| ntp_source_in... | ANTLR | 3 | zabrewer/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/cisco_nxos/CiscoNxos_ntp.g4 | [
"Apache-2.0"
] |
{
"type": "File",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":26}},
"program": {
"type": "Program",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":26}},
"sourceType": "script",
"interpreter": null,
"body": [
{
... | JSON | 1 | fatash89/babel | packages/babel-parser/test/fixtures/es2015/for-of/right-regex/output.json | [
"MIT"
] |
@media (max-width: 1) {}
a {
// element.style */
}
| CSS | 1 | fuelingtheweb/prettier | tests/css_comments/trailing_star_slash.css | [
"MIT"
] |
# RUN: llc -O0 -run-pass=avr-expand-pseudo %s -o - | FileCheck %s
# TODO: Write this test.
# This instruction isn't expanded by the pseudo expansion passs, but
# rather AVRRegisterInfo::eliminateFrameIndex.
--- |
target triple = "avr--"
define void @test() {
entry:
ret void
}
...
---
name: tes... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/AVR/pseudo/FRMIDX.mir | [
"Apache-2.0"
] |
module namespace ns1="ns1";
declare function ns1:test2() as xs:string {
"pkg2mod1"
}; | XQuery | 2 | JensErat/basex | basex-core/src/test/resources/repo/pkg2/pkg2/pkg2mod1.xql | [
"BSD-3-Clause"
] |
-- Copyright 2018 Stanford University
--
-- 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... | Rouge | 4 | elliottslaughter/regent-tutorial | DependentPartitioning/x3.rg | [
"Apache-2.0"
] |
:::
6 /dev/rrp3: :::
:::
6 :::
:::
6 17379 mel :::
:::
6 16693 bwk me :::
:::
6 16116 ken him someone else :::
:::
6 15713 srb :::
:::
6 11895 lem :::
:::
6 10409 scj :::
:::
6 10252 rhm :::
:::
6 9853 shen :::
:::
6 9748 a68 :::
:::
6 9492 sif :::
:::
6 9190 pjw :::
:::
6 8912 nls... | Logos | 0 | Crestwave/goawk | testdata/output/t.b.x | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
<title>xml文本预览</title>
<#include "*/commonHeader.ftl">
<link rel="stylesheet" href="css/xmlTreeViewer.css"/>
<script src="js/xmlTreeViewer.js... | FreeMarker | 4 | jerrykcode/kkFileView | server/src/main/resources/web/xml.ftl | [
"Apache-2.0"
] |
module.exports = {
experimental: {
images: {
remotePatterns: [{ hostname: 'image-optimization-test.vercel.app' }],
},
},
}
| JavaScript | 3 | nazarepiedady/next.js | test/integration/image-component/unicode/next.config.js | [
"MIT"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/build/MessageWriter.ceylon | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.