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 |
|---|---|---|---|---|---|
#en-punctuation
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
#0
#1
#2
#3
#4
#5
#6
#7
#8
#9
:
;
<
=
>
?
@
[
\
]
^
_
`
#a
#b
#c
#d
#e
#f
#g
#h
#i
#j
#k
#l
#m
#n
#o
#p
#q
#r
#s
#t
#u
#v
#w
#x
#y
#z
{
|
}
~
!
#fullwidth
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
:
;
<
=
>
?
@
[
\
]
^
_
`
{
|
}
~
⦅
⦆
。
「
」
、
・
#cn-punctuation
、
。
〃
〄
々
〆
〇
〈
〉
《
》
「
」... | Lex | 0 | maguec/RediSearch | src/dep/cndict/lex/lex-stopword.lex | [
"MIT",
"Ruby",
"Apache-2.0",
"BSD-3-Clause"
] |
- attributes("title") = "Scalatra: a tiny, Sinatra-like web framework for Scala"
- attributes("headline") = "Welcome to Scalatra"
Hello, Scalate! | Scaml | 1 | grimcoder/ProduceMarketRESTScalatra | src/main/webapp/WEB-INF/views/hello-scalate.scaml | [
"MIT"
] |
<%def name="tip()">
<%
from vilya.models.tips import Tips
text, url = Tips.get_tip()
%>
% if user.settings.show_tips:
<div class="alert alert-info hidden-phone">
<strong>tips:</strong> ${text|n}
% if url:
<a href="${url}">Try it</a>
% endif
</div>
% endif
</%def>
| Mako | 3 | mubashshirjamal/code | vilya/templates/widgets/tips.mako | [
"BSD-3-Clause"
] |
--TEST--
Bug #79846 (8c67c166996 broke simple regexp)
--FILE--
<?php
$item = "component_phase_1";
preg_match("/([a-z]+_[a-z]+_*[a-z]+)_?(\d+)?/", $item, $match);
var_dump($match);
?>
--EXPECT--
array(3) {
[0]=>
string(17) "component_phase_1"
[1]=>
string(15) "component_phase"
[2]=>
string(1) "1"
}
| PHP | 4 | NathanFreeman/php-src | ext/pcre/tests/bug79846.phpt | [
"PHP-3.01"
] |
dr
Dr
itd
itn
št #NUMERIC_ONLY#
Št #NUMERIC_ONLY#
d
jan
Jan
feb
Feb
mar
Mar
apr
Apr
jun
Jun
jul
Jul
avg
Avg
sept
Sept
sep
Sep
okt
Okt
nov
Nov
dec
Dec
tj
Tj
npr
Npr
sl
Sl
op
Op
gl
Gl
oz
Oz
prev
dipl
ing
prim
Prim
cf
Cf
gl
Gl
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
... | Slash | 0 | aquaktus/nematus | data/nonbreaking_prefixes/nonbreaking_prefix.sl | [
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<p class="desc">
この記事ではhtree.jsを[link:https://nodejs.org/en/ node.js]環境で実行す... | HTML | 5 | Hyeong-jin/three.js | docs/manual/ja/buildTools/Testing-with-NPM.html | [
"MIT"
] |
module audiostreamerscrobbler.maintypes.Player
let PLAYERTYPE_ID_BLUOS = "BluOS"
let PLAYERTYPE_ID_HEOS = "HEOS"
let PLAYERTYPE_ID_MUSICCAST = "MusicCast"
union PlayerTypes = {
BluOs
Heos
MusicCast
}
augment PlayerTypes {
function playerTypeId = |this| -> getPlayerTypeID(this)
}
function getAllPlayerTypes = {
... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/maintypes/Player.golo | [
"MIT"
] |
#!/usr/bin/env io
// example of implementing control structures
myif := method(condition,
index := if(condition, 1, 2)
call evalArgAt(index)
)
myif(19 > 5,
writeln("19 > 5. Correct.")
,
writeln("19 > 5. Incorrect.")
)
| Io | 4 | akluth/io | samples/misc/Control.io | [
"BSD-3-Clause"
] |
<%args>
title
items
user
</%args>
<head>
<title><% title %></title>
</head>
<&|base.myt:wrap &>
<div><& base.myt:greeting, name=user &></div>
<div><& base.myt:greeting, name="me"&></div>
<div><& base.myt:greeting, name="world" &></div>
<h2>Loop</h2>
%if items:
<ul>
% for item in items:
<li><% i... | Myghty | 4 | omunroe-com/sbvedwllorg | examples/bench/myghty/template.myt | [
"BSD-3-Clause"
] |
implementation module StdPointer
import StdOverloaded, StdClass, StdArray, StdInt, StdChar, StdString
readInt :: !Pointer !Offset -> Int
readInt pointer offset = IF_INT_64_OR_32 (readInt_64 pointer offset) (readInt_32 pointer offset)
readInt_64 :: !Pointer !Offset -> Int
readInt_64 pointer offset = code {
pop_b 1
... | Clean | 3 | timjs/iris-clean | Libraries/StdPointer.icl | [
"MIT"
] |
PUT /stuff/here?foo=bar HTTP/1.0\r\n
CONTENT-LENGTH: -1\r\n
\r\n
{"test": "-1} | HTTP | 0 | ashishmjn/gunicorn | tests/requests/invalid/014.http | [
"MIT"
] |
# This is the python script
# import sys
# for i in range(0, 16):
# for j in range(0, 16):
# code = str(i * 16 + j)
# sys.stdout.write(u"\u001b[38;5;" + code + "m " + code.ljust(4))
# print u"\u001b[0m"
# Foreground Colors
echo 0..16 | each { |col|
let row = (echo 0..16 | each { |row|
... | Nu | 4 | x3rAx/nu_scripts | coloring/python_index_table.nu | [
"MIT"
] |
// @target: es6
// @filename: asyncawait.ts
export function async<T>(...args: any[]): any { }
export function await(...args: any[]): any { }
// @filename: a.ts
import { async, await } from 'asyncawait';
export default async(() => await(Promise.resolve(1)));
// @filename: b.ts
export default async () => { ... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/exportDefaultAsyncFunction2.ts | [
"Apache-2.0"
] |
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.4
import QGroundControl.FactControls 1.0
import QGroundControl.Palette 1.0
Rectangle {
QGCPalette { id: palette; colorGroupEnabled: enabled }
width: 100
height: 100
color: "#e43f3f"
// palette.text
}
| QML | 2 | uavosky/uavosky-qgroundcontrol | src/test.qml | [
"Apache-2.0"
] |
## recursive implementation
fibonacci_rec := function( n )
if n = 1 or n = 2 then
return 1;
fi;
return fibonacci_rec( n - 1 ) + fibonacci_rec( n - 2 );
end;
## iterative implementation
fibonacci_iterative := function( n )
local prev, prev2, curr_fib;
if n = 1 or n = 2 then... | GAP | 4 | Mynogs/Algorithm-Implementations | Fibonacci_series/GAP/sebasguts/fibonacci.gi | [
"MIT"
] |
..
Copyright 2020 The HuggingFace Team. 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 ... | reStructuredText | 4 | MarcelGM/transformers | docs/source/model_doc/barthez.rst | [
"Apache-2.0"
] |
/*# sourceMappingURL=main.d41d8cd9.css.map*/ | CSS | 0 | josephaw1022/THE-PERSONAL-WEBSITE | build/static/css/main.d41d8cd9.css | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>body</title>
</head>
<body>
<div id="qunit-fixture"></div>
<script src="../../dist/jquery.min.js"></script>
<script src="iframeTest.js"></script>
<script>
var i, input, elem, tags, policy,
results = [],
inputs = [
[ "<div></div>", "<div class='test'>... | HTML | 4 | sfleandro/jquery | test/data/trusted-html.html | [
"MIT"
] |
; Script Name : eventlog_security.au3
; Author : Craig Richards
; Created : 3rd February 2012
; Last Modified :
; Version : 1.0
; Modifications :
; Description : This will show you the last failed login attempt, it then outputs all failed login attempts to a file, then clears all the Security part of the event log... | AutoIt | 5 | X-EcutiOnner/Notepad3 | test/test_files/StyleLexers/styleLexAU3/security_eventlog.au3 | [
"BSD-3-Clause"
] |
<table>
<tr>
<td></td>
<td>Previous is empty</td>
</tr>
<tr>
<td>Next is empty</td>
<td></td>
</tr>
</table> | HTML | 0 | asahiocean/joplin | packages/app-cli/tests/html_to_md/table_with_empty_cells.html | [
"MIT"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
@0x81df9e172c8504b4;
struct Cat {
kind @0 :Text;
}
| Cap'n Proto | 2 | mrpotes/go-raml | codegen/python/fixtures/python_capnp/Cat.capnp | [
"BSD-2-Clause"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
const a =
parallelReduce(null);
});
| RenderScript | 2 | chikeabuah/reach-lang | hs/t/n/Err_ParallelReduceIncomplete.rsh | [
"Apache-2.0"
] |
import { G } from "./subdir/g.ts";
import { H } from "./subdir/h.ts";
console.log(new G(true), new H(true));
| TypeScript | 1 | Preta-Crowz/deno | cli/tests/bundle/file_tests-fixture07.ts | [
"MIT"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="cat_queen" ID="a216914d-c0d7-49f6-8da3-6a19dd0dc55f" Version="0.0.0.1" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="54" Speed="0.3333333">
<Timeline ActionTag="115142900" FrameType="VisibleFrame">
<BoolFrame Fra... | Csound | 4 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/cat_queen.csd | [
"MIT"
] |
package com.baeldung.retrofit.basic;
import java.util.List;
import com.baeldung.retrofit.models.Contributor;
import com.baeldung.retrofit.models.Repository;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
public interface GitHubBasicApi {
/**
* List GitHub repositories of use... | Java | 5 | zeesh49/tutorials | libraries/src/main/java/com/baeldung/retrofit/basic/GitHubBasicApi.java | [
"MIT"
] |
62*1+v>01p001>+v>\:02p\:02gv
0 ^ <
. :p
" .1
v 0," "<0
" >1g12-+:|
, @
>^
# playfield cells can't store values over 255 as I designed it | Befunge | 0 | GingerIndustries/Fibonacci | Imperfect Languages/fib.befunge | [
"Unlicense"
] |
addpath('./functions')
a = 0:25;
f = fibonacci(a);
fig = figure;
plot(a,f, '-bs', 'Linewidth',1,'Markersize',5)
title('Fibonacci Graph')
saveas(fig,'fig1','jpg')
fig = figure;
plot(a,log(f), '-bs', 'Linewidth',1,'Markersize',5)
title('Logarithmic Fibonacci Graph')
saveas(fig,'logfig1','jpg')
% ### Exercise 1.5.3
f_... | Matlab | 4 | IsmailM/Sysmic | Module1/1/assignment.matlab | [
"MIT"
] |
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
// Simple test for a cutom mutator.
#include <assert.h>
#include <cstdint>
#include <cstdlib>
#include <cstddef>
#include <iostream>
#include "FuzzerInterface.h"
static volatile int Sink;
extern "C" int... | C++ | 3 | sdmg15/json | test/thirdparty/Fuzzer/test/CustomMutatorTest.cpp | [
"MIT"
] |
-- -------------------------------- The script use tcc fence --------------------------------
CREATE TABLE IF NOT EXISTS `tcc_fence_log`
(
`xid` VARCHAR(128) NOT NULL COMMENT 'global id',
`branch_id` BIGINT NOT NULL COMMENT 'branch id',
`action_name` VARCHAR(64) NOT NULL COMMENT '... | SQL | 4 | YechenGu/seata | script/client/tcc/db/mysql.sql | [
"Apache-2.0"
] |
This module implements `tf.experimental.numpy` APIs, which provide NumPy APIs
implemented on top of TensorFlow.
Please see [TensorFlow NumPy API
Documentation](https://www.tensorflow.org/api_docs/python/tf/experimental/numpy).
| Markdown | 1 | yage99/tensorflow | tensorflow/python/ops/numpy_ops/README.md | [
"Apache-2.0"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "_output.h"
#include "../interactivity/inc/ServiceLocator.hpp"
#pragma hdrstop
using namespace Microsoft::Console::Types;
using Microsoft::Console::Interactivity::ServiceLocator;
void WriteConvRe... | C++ | 5 | sonvt1710/terminal | src/host/convarea.cpp | [
"MIT"
] |
<!DOCTYPE html>
<head>
<meta charset=UTF-8/>
<title>Redis实例状态监控报警</title>
</head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>
<table style="width:100%; font-size:12px;" width="100%" cellpadding="0" cellspacing="0">
<colgroup>
<col style="width: 5px;">
</colgrou... | FreeMarker | 3 | JokerQueue/cachecloud | cachecloud-web/src/main/resources/templates/instanceState.ftl | [
"Apache-2.0"
] |
#include "caffe2/operators/perplexity_op.h"
namespace caffe2 {
template <>
bool PerplexityOp<float, CPUContext>::RunOnDevice() {
auto& X = Input(0);
DCHECK_EQ(X.dim(), 1);
int N = X.dim32(0);
auto* Y = Output(0, vector<int64_t>(), at::dtype<float>());
const auto* Xdata = X.data<float>();
float perplexi... | C++ | 4 | Hacky-DH/pytorch | caffe2/operators/perplexity_op.cc | [
"Intel"
] |
iframe(src="//" + fullUnsafeContentHostname + "/web-dev-iframe.html?chinaUx=" + Boolean(features.chinaUx))
| Jade | 0 | cihatislamdede/codecombat | app/templates/play/level/web-surface-view.jade | [
"CC-BY-4.0",
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Hashtable Splatting Parameter Binding Tests" -Tags "CI" {
BeforeAll {
function SimpleTest {
param(
[Alias('Key')]
$Name,
$Path
)
"Key: $Na... | PowerShell | 4 | rdtechie/PowerShell | test/powershell/engine/ParameterBinding/Splatting.Tests.ps1 | [
"MIT"
] |
' Module monkey.lang
'
' Placed into the public domain 24/02/2011.
' No warranty implied; use at your own risk.
#If LANG="cpp" Or LANG="java" Or LANG="cs" Or LANG="js" Or LANG="as"
Import "native/lang.${LANG}"
#Endif
Extern
Function Print( message$ )="$print"
Function Error( message$ )="$error"
Function DebugLog( m... | Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/monkey/lang.monkey | [
"Zlib"
] |
.kg-blockquote-alt {
font-size: 1.5em;
font-style: italic;
line-height: 1.7em;
text-align: center;
padding: 0 2.5em;
}
@media (max-width: 800px) {
.kg-blockquote-alt {
font-size: 1.4em;
padding-left: 2em;
padding-right: 2em;
}
}
@media (max-width: 600px) {
.kg-blockquote-alt {
font-siz... | CSS | 3 | ClashgamesFR/Ghost | core/frontend/src/cards/css/blockquote.css | [
"MIT"
] |
/area
parent_type = /atom
layer = 1.0
luminosity = 1 | DM | 0 | TheFakeElon/OpenDream | DMCompiler/DMStandard/Types/Atoms/Area.dm | [
"MIT"
] |
import "http://localhost:4545/type_directives_redirect.js";
| TypeScript | 0 | Preta-Crowz/deno | cli/tests/type_directives_redirect.ts | [
"MIT"
] |
(* ****** ****** *)
(*
** HX-2018-01:
** Hangman2:
** a word-guessing game
*)
(* ****** ****** *)
//
abst@ype state_t0ype
abst@ype input_t0ype
//
typedef state = state_t0ype
typedef input = input_t0ype
//
(* ****** ****** *)
datatype
status =
| STATUSsolved of ()
| STATUStimeup of ()
| STATUSasking of ()
(* ****** **... | ATS | 5 | ats-lang/ATS-CodeBook | RECIPE/Hangman2/Hangman2.dats | [
"MIT"
] |
#include <ATen/cuda/CUDABlas.h>
#include <c10/cuda/CUDAException.h>
#include <c10/test/util/complex_test_common.h>
__global__ void test_thrust_kernel() {
// thrust conversion
{
constexpr float num1 = float(1.23);
constexpr float num2 = float(4.56);
assert(c10::complex<float>(thrust::complex<float>(num1, num2... | Cuda | 4 | Hacky-DH/pytorch | aten/src/ATen/test/cuda_complex_test.cu | [
"Intel"
] |
"""Test truncated SVD transformer."""
import numpy as np
import scipy.sparse as sp
import pytest
from sklearn.decomposition import TruncatedSVD, PCA
from sklearn.utils import check_random_state
from sklearn.utils._testing import assert_array_less, assert_allclose
SVD_SOLVERS = ["arpack", "randomized"]
@pytest.fix... | Python | 5 | MaiRajborirug/scikit-learn | sklearn/decomposition/tests/test_truncated_svd.py | [
"BSD-3-Clause"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
mutable struct MD
content::Vector{Any}
meta::Dict{Symbol, Any}
MD(content::AbstractVector, meta::Dict = Dict()) =
new(content, meta)
end
MD(xs...) = MD(vcat(xs...))
function MD(cfg::Config, xs...)
md = MD(xs...)
... | Julia | 5 | jonas-schulze/julia | stdlib/Markdown/src/parse/parse.jl | [
"MIT"
] |
import "mekanosimulation"
class MekanoObjectGravity : MekanoObject
{
Vector2D gravity;
public:
property Vector2D gravity
{
set { gravity = value; }
get { value = gravity; }
}
void exertForces(MekanoSimulation sim)
{
for(o : sim.objectList)
for(p : o.points; p.type == cent... | eC | 4 | N-eil/ecere-sdk | samples/guiAndGfx/mekano/mekanoobjectgravity.ec | [
"BSD-3-Clause"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Welbeck Garli <welbeckgrlyw@gmail.com>, 2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2020-07-06 11:50+0000\n"
"Last-Translator:... | Gettext Catalog | 2 | jpmallarino/django | django/contrib/sessions/locale/tk/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | OpenCL | 5 | Nondzu/opencv_contrib | modules/superres/src/opencl/superres_btvl1.cl | [
"BSD-3-Clause"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.J.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 0001 nop
80000002: 0001 nop
80000004: 0001 nop
80000006: 0001 nop
80000008: 0001 nop
80... | ObjDump | 3 | cbrune/VexRiscv | src/test/resources/asm/C.J.elf.objdump | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
ClassCount=2
ResourceCount=1
NewFileInclude1=#include "stdafx.h"
Class1=CChildFrame
LastClass=CPortView
LastTemplate=CView
Class2=CPortView
Resource1=IDR_PORT
[CLS:CChildFrame]
Type=0
HeaderFile=ChildFrame.h
ImplementationFile=ChildFrame... | Clarion | 1 | CarysT/medusa | Tools/PortWizard/Template/root.clw | [
"MIT"
] |
#!/bin/bash
# Copyright Istio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | Shell | 4 | rveerama1/istio | prow/benchtest.sh | [
"Apache-2.0"
] |
#include "caffe2/operators/pool_op_util.h"
#include "caffe2/utils/eigen_utils.h"
namespace caffe2 {
namespace pool_op_util {
namespace {
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
// Vectorizes 4x4p0s0 average pooling for ARM NEON
void AvgPoolNeon4x4p0s0Plane(
int inputH,
int inputW,
const float*... | C++ | 5 | Hacky-DH/pytorch | caffe2/operators/pool_op_util.cc | [
"Intel"
] |
first([H|_], H).
split(A, B, C) :-
append(B, C, A), length(B, L1), length(C, L2), L1 = L2.
split(A, B, C) :-
append(B, C, A), length(B, L1), length(C, L2), L3 is L2+1, L1 = L3.
merge([], R, R).
merge(L, [], L).
merge([L1|L2], R, B) :-
first(R, R1), L1 =< R1, merge(L2, R, C), append([L1], C, B).
merge(L,... | Prolog | 5 | Mynogs/Algorithm-Implementations | Merge_Sort/Prolog/jcla1/mergesort.prolog | [
"MIT"
] |
p
Your credit card
strong will not
> be charged now.
This is a text
which spans
several lines.
footer
Copyright © #{params[:x]} not xss?
| Slim | 1 | wonda-tea-coffee/brakeman | test/apps/rails5.2/app/views/users/smart.html.slim | [
"MIT"
] |
@load setup.bro
@load http-headers.bro
| Bro | 1 | dodoandbling/data_hacking | browser_fingerprinting/bro_scripts/__load__.bro | [
"MIT"
] |
a:b:c {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/pJGP-gxqsiFs_ruNrpY3bw/input.css | [
"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.
-module(records).
-record(person, {name, phone, address}).
-record(rabbit, {name, color}).
-record(car, {plate, owner}).
-export([
test_... | Erlang | 4 | hWr33/infer | infer/tests/codetoanalyze/erlang/nonmatch/src/records.erl | [
"MIT"
] |
package com.baeldung.system.exit;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class SystemExitExample {
public void readFile() {
try {
BufferedReader br = new BufferedReader(new FileReader("file.txt"));
System.out.println(br.readLin... | Java | 3 | DBatOWL/tutorials | core-java-modules/core-java-os/src/main/java/com/baeldung/system/exit/SystemExitExample.java | [
"MIT"
] |
$! File: Build_GNV_CURL_PCSI_DESC.COM
$!
$! $Id$
$!
$! Build the *.pcsi$text file in the following sections:
$! Required software dependencies.
$! install/upgrade/postinstall steps.
$! 1. Duplicate filenames need an alias procedure. (N/A for curl)
$! 2. ODS-5 filenames need an alias procedure. (N/A for cu... | DIGITAL Command Language | 4 | faizur/curl | packages/vms/build_gnv_curl_pcsi_desc.com | [
"curl"
] |
package date_test
import "testing"
import "date"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,string,string,double
#group,false,false,false,true,true,false
#default,_result,,,,,
,result,table,_time,_measurement,_field,_value
,,0,2018-05-22T19:53:00Z,_m,FF,1
,,0,2018-... | FLUX | 4 | metrico/flux | stdlib/date/second_time_test.flux | [
"MIT"
] |
if ! (( $+commands[rustup] && $+commands[cargo] )); then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `cargo`. Otherwise, compinit will have already done that
if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then
autoload -Uz _cargo
typeset -g -A _comps
_comps... | Shell | 4 | ohmyzsh/oh-my-zsh | plugins/rust/rust.plugin.zsh | [
"MIT"
] |
// 17 lines 7 code 6 comments 4 blanks
/*
* /* Hello! */
*/
/mob
// I can rely on this file to exist on disk.
var/some_file = './/dreammaker.dm'
/mob/Login()
// Not counted. /* */
world << "// Say hello to [src]!"
src << browse({"
/*<a href="https://google.com">Link</a>*/
"}, "window=g... | DM | 3 | alexmaco/tokei | tests/data/dreammaker.dm | [
"Apache-2.0",
"MIT"
] |
rm -f *.eps *.dvi *.ps *.pdf *~ .*~
rm -rf *.tmp
| Stata | 1 | BlameJohnny/redo | docs/cookbook/latex/clean.do | [
"Apache-2.0"
] |
/*
* Normalizing -- forked from Normalize.css v8
*/
*, *:before, *:after // @stylint ignore
box-sizing: inherit
-webkit-tap-highlight-color: transparent
-moz-tap-highlight-color: transparent
html, body, #q-app
width: 100%
direction: ltr
// https://stackoverflow.com/a/23083463
body.platform-ios.within-ifra... | Sass | 4 | ygyg70/quasar | ui/src/css/normalize.sass | [
"MIT"
] |
class StandardError {
def self raise: message {
"""
Raises new @Exception@ with @message.
Example:
StandardError raise: \"Error!\"
ArgumentError raise: \"Missing argument!\"
# is the same as:
StandardError new: \"Error!\” . raise!
ArgumentError new: \"Mi... | Fancy | 4 | bakkdoor/fancy | lib/exception.fy | [
"BSD-3-Clause"
] |
package com.example.xtendroid.sample1
import android.app.ProgressDialog
import android.text.Html
import android.view.View
import com.google.common.io.ByteStreams
import java.io.ByteArrayOutputStream
import java.net.HttpURLConnection
import java.net.URL
import org.xtendroid.app.AndroidActivity
import static org.xtendr... | Xtend | 5 | kusl/Xtendroid | examples/Sample1/src/com/example/xtendroid/sample1/MainActivity.xtend | [
"MIT"
] |
@0x8b53f943fbc3527f;
using Go = import "go.capnp";
$Go.package("offheap");
$Go.import("testpkg");
struct CellCapn {
unHashedKey @0: UInt64;
byteKey @1: Data;
value @2: Data;
}
struct HashTableCapn {
cells @0: UInt64;
cellSz @1: UInt64;
arraySize @2: UInt64; ... | Cap'n Proto | 4 | backwardn/offheap | ohser/schema.capnp | [
"MIT"
] |
/**
* @file hft_trader_struct.h
* @brief 交易业务数据和结构定义
*/
#ifndef _HFT_TRADER_STRUCT_H_
#define _HFT_TRADER_STRUCT_H_
#include "hft_trader_common.h"
namespace HFT {
// 市场类型名字,与行情保持一致
#define MARKET_SH "SH" // 上海交易所
#define MARKET_SZ "SZ" // 深圳交易所
#define MARKET_CFFEX "CFFEX" // 中金所
#defi... | C | 5 | funrunskypalace/vnpy | vnpy/api/hft/include/hft/hft_trader_struct.h | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CSettings
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "ProfilerClient.h"
ClassCount=6
Class1=CProfilerClientApp
Class2=CProfilerClientDlg
Class3=CAboutDlg
ResourceCount=6
Resource1=IDD_PRO... | Clarion | 2 | CarysT/medusa | Tools/ProfilerClient/ProfilerClient.clw | [
"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.
*)
(** Intermediate representation for classes and interfaces *)
include module type of Class_sig_intf
module Make (Env : Env_sig.S)... | OCaml | 4 | zhangmaijun/flow | src/typing/class_sig.mli | [
"MIT"
] |
package {
import GZ.Sys.System;
<cpp>
#include "Lib_GzWeb_Emsc/Emscripten/EmscHeader.h"
</cpp>
/*
<cpp_static_h>
val oWindow = val::global("Null");
</cpp_static_h>
*/
public class OpSystem overplace System {
/*
public function OpSystem():Void{
System();
}
static function fSlee... | Redcode | 1 | VLiance/GZE | src/SubLib_System/Lib_GzWeb_Emsc/Emscripten/Sys/OpSystem.cw | [
"Apache-2.0"
] |
function isprime(n)
{
local i;
for (i = 2; i < n; ++i)
if (n % i == 0)
return false;
return true;
}
function primes(n)
{
local count = 0;
local i;
for (i = 2; i <= n; ++i)
if (isprime(i))
++count;
return count;
}
local N = 200000;
print("primes:... | Squirrel | 3 | walklang/walk | third_party/scripting_language_tests/prime.nut | [
"Apache-2.0"
] |
insert into td values (13, '61375a22', 4619933693154181067);
insert into td values (12, 'bce569ee', 8087760128111579208);
insert into td values (9, '61375a22', 2501249214340766673);
insert into td values (2, '61375a22', 1600326596351621369);
insert into td values (18, 'bce569ee', 3043846610385177219);
insert into td va... | SQL | 2 | cuishuang/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.td.0.sql | [
"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 | 5 | KevinAo22/vscode | src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.ts | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M3 13c0-2.45 1.76-4.47 4.08-4.91l-1.49 1.5L7 11l4-4.01L7 3 5.59 4.41l1.58 1.58v.06C3.7 6.46 1 9.42 1 13c0 3.87 3.13 7 7 7h3v-2H8c-2.76 0-5-2.24-5-5zm10 0v7h... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/MoveUpSharp.js | [
"MIT"
] |
{:duct.core/project-ns hello
:duct.core/environment :production
:duct.core/include ["hello/db" "hello/server"]
:duct.module/logging
{}
:duct.module.web/api
{}
; for benchmarking performance, disable logging
:duct.logger/timbre
{:enabled? false
:appenders {}
:level :error}
:duct.module/atar... | edn | 4 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Clojure/duct/resources/hello/config.edn | [
"BSD-3-Clause"
] |
"""
The :mod:`sklearn.manifold` module implements data embedding techniques.
"""
from ._locally_linear import locally_linear_embedding, LocallyLinearEmbedding
from ._isomap import Isomap
from ._mds import MDS, smacof
from ._spectral_embedding import SpectralEmbedding, spectral_embedding
from ._t_sne import TSNE, trust... | Python | 4 | MaiRajborirug/scikit-learn | sklearn/manifold/__init__.py | [
"BSD-3-Clause"
] |
// Copyright 2015 Cloudera Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | Thrift | 4 | kokosing/hue | apps/impala/thrift/ErrorCodes.thrift | [
"Apache-2.0"
] |
.*==============================================================*\
.* *
.* File.ipf - Information Tag Language file for the File menu *
.* help panels. *
.* Copyright (C) 1996 xTech Ltd. All rights reserv... | IGOR Pro | 3 | zanud/xds-2.60 | misc/Samples/OS2/Template/HLP/file.ipf | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# Copyright 2016 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# A simple script to compare differences between
# assembly listings for packages built with different
# compiler flags. It is useful to inspe... | Shell | 5 | Havoc-OS/androidprebuilts_go_linux-x86 | src/cmp.bash | [
"BSD-3-Clause"
] |
#define MyAppName "pGina"
#define MyAppVersion "3.2.1.0"
#define MyAppPublisher "pGina Team"
#define MyAppURL "http://www.pgina.org/"
#define MyAppExeName "pGina.Configuration.exe"
#define MyAppSetupName 'pGina'
#define SetupScriptVersion '0'
; Use some useful packaging stuff from: http://tonaday.blogspot.com/2010/12... | Inno Setup | 5 | jxliujinyue/pgina | Installer/installer.iss | [
"BSD-3-Clause"
] |
# ------------------------------------------------------------------------------
# Author
# ------
#
# * Jerry Ling<jerryling315@gmail.com>
#
# ------------------------------------------------------------------------------
# Usage
# -----
#
# man will be inserted before the command
#
# ---------------------------------... | Shell | 4 | chensanle/ohmyzsh | plugins/man/man.plugin.zsh | [
"MIT"
] |
%% -*- prolog -*-
%%=============================================================================
%% Copyright (C) 2011 by Denys Duchier
%%
%% This program is free software: you can redistribute it and/or modify it
%% under the terms of the GNU Lesser General Public License as published by the
%% Free Software Foundati... | Prolog | 4 | ryandesign/yap | packages/gecode/6.0.1/gecode_yap_auto_generated.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
// Copyright (c) 2001-2015 see AUTHORS file
//
// 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, merge, ... | Grace | 4 | smarr/moth-benchmarks | benchmarks/Moth/Permute.grace | [
"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 "LayoutAnimationKeyFrameManager.h"
#include <algorithm>
#include <utility>
#include <react/debug/flags.h>
#include <reac... | C++ | 5 | shreejitverma/react-native | ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp | [
"CC-BY-4.0",
"MIT"
] |
<div class="unit one-fifth hide-on-mobiles">
<aside>
{% for section in site.data.docs_nav -%}
<h4>{{ section.title }}</h4>
<ul>
{%- for item in section.docs -%}
{%- assign p = site.docs | where: "url", item.link | first %}
<li {%- if page.url == p.url %} class="current" {%- endif... | HTML | 4 | ljcooke/jekyll | docs/_includes/docs_contents.html | [
"MIT"
] |
#!/bin/bash
set -eux
PYTORCH_DIR="$(cd $(dirname $0)/..; pwd -P)"
PYTORCH_ANDROID_DIR=$PYTORCH_DIR/android
echo "PYTORCH_DIR:$PYTORCH_DIR"
source "$PYTORCH_ANDROID_DIR/common.sh"
check_android_sdk
check_gradle
parse_abis_list "$@"
build_android
# To set proxy for gradle add following lines to ./gradle/gradle.prope... | Shell | 3 | Hacky-DH/pytorch | android/build_test_app.sh | [
"Intel"
] |
# Edge project file (edit at your own risk)
# Copyright (c) 2004-2017 Elements Interactive B.V.
# -----------------------------------------
# General project properties
projectname = "animate3d"
caption = "Animate 3D"
target type = "bin"
appuid = "0x10205da3"
version = "1.00.0"
capabilities... | Ecere Projects | 2 | elementsinteractive/edgelib | samples/Animate3D/workspace_eide_opengl/animate3d_symbian_uiq2-1.epj | [
"BSD-3-Clause"
] |
-- Tags: no-parallel
CREATE FUNCTION 02096_test_function AS x -> x + 1;
DESCRIBE (SELECT 02096_test_function(1) AS a);
DROP FUNCTION 02096_test_function;
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/02096_sql_user_defined_function_alias.sql | [
"Apache-2.0"
] |
<!--
<aside id="zenback" class="zenback feedback">
<mt:unless name="preview_template">
<__trans phrase="Please paste Zenback script code here.">
</mt:unless>
</aside>
--> | MTML | 0 | movabletype/mt-theme-rainier | themes/rainier/templates/zenback.mtml | [
"MIT"
] |
--TEST--
Test Blowfish crypt() with invalid rounds
--FILE--
<?php
$salts = array('32' => '$2a$32$CCCCCCCCCCCCCCCCCCCCCC$',
'33' => '$2a$33$CCCCCCCCCCCCCCCCCCCCCC$',
'34' => '$2a$34$CCCCCCCCCCCCCCCCCCCCCC$',
'35' => '$2a$35$CCCCCCCCCCCCCCCCCCCCCC$',
'36' => '$... | PHP | 4 | thiagooak/php-src | ext/standard/tests/strings/crypt_blowfish_variation1.phpt | [
"PHP-3.01"
] |
$(OBJDIR)/check.cmi: $(OBJDIR)/cil.cmi
| D | 1 | heechul/crest-z3 | cil/obj/.depend/check.di | [
"BSD-3-Clause"
] |
'reach 0.1';
export const main = Reach.App(
{}, [], () => { return 0; }
);
const x = 3;
// TODO: more specific error message
export {x, x};
| RenderScript | 2 | chikeabuah/reach-lang | hs/t/n/export_rebind.rsh | [
"Apache-2.0"
] |
CREATE TABLE `tb_txslclddib` (
`col_fflqfgfdyt` varchar(26) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
`col_yvgymfxalr` year(4) DEFAULT '2019',
`col_vkgmvcluzx` bigint(20) unsigned zerofill DEFAULT NULL,
`col_mnviktcwsx` blob
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
| SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_63.sql | [
"Apache-2.0"
] |
#!/usr/bin/env python
__all__ = ['alive_download']
from ..common import *
def alive_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
html = get_html(url)
title = r1(r'<meta property="og:title" content="([^"]+)"', html)
url = r1(r'file: "(http://alive[^"]+)"', html)
... | Python | 4 | adger-me/you-get | src/you_get/extractors/alive.py | [
"MIT"
] |
--TEST--
Test curl_multi_init()
--CREDITS--
Mark van der Velden
#testfest Utrecht 2009
--EXTENSIONS--
curl
--FILE--
<?php
// start testing
echo "*** Testing curl_multi_init(void); ***\n";
//create the multiple cURL handle
$mh = curl_multi_init();
var_dump($mh);
curl_multi_close($mh);
var_dump($mh);
?>
--EXPECT--
***... | PHP | 4 | NathanFreeman/php-src | ext/curl/tests/curl_multi_init_basic.phpt | [
"PHP-3.01"
] |
cd /D "%~dp0"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -winsdk=10.0.18362.0
SET IsPipeline=1
call msbuild ../installer/PowerToysSetup.sln /target:PowerToysSetupCustomActions /p:Configuration=Release /p:Platform=x64 /p:CIBuild=true || ... | Batchfile | 2 | tameemzabalawi/PowerToys | .pipelines/build-installer-PTCustomActions.cmd | [
"MIT"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.HashMap
import java.util.Map
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for Addi... | Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/AdditionalPropertiesBooleanSpec.groovy | [
"Apache-2.0"
] |
\\ Copyright (c) 2019 Bruno Deferrari.
\\ BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause
(define equality-check-control-loop
_ 0 -> ok
C N -> (equality-check-control-loop C (- N 1)))
(define equal-values
_ _ R 0 -> R
ValA ValB _ N -> (equal-values ValA ValB (= ValA ValB) (- N 1)))
(define ... | Shen | 4 | vishalbelsare/shen-sources | benchmarks/equality-check.shen | [
"BSD-3-Clause"
] |
/**
* Two macroses to convert ANSI text to UTF-8 and conversely.
* This file is FREE FOR USE.
*
* Written by Shurmialiou Vadzim at 04/2010
* inshae@gmail.com
*/
!ifndef ___ANSITOUTF8_NSH___
!define ___ANSITOUTF8_NSH___
!include "LogicLib.nsh"
/**
* Convert ANSI text to UTF-8 text in the installer or ... | NSIS | 4 | rajeev02101987/arangodb | Installation/Windows/Plugins/Utf8Converter.nsh | [
"Apache-2.0"
] |
=== Scripts ===
See [[MQL4/Scripts/OTMql4/|https://github.com/OpenTrading/OTMql4Zmq/raw/master/MQL4/Scripts/OTMql4]]
* [[OTMql4ZmqTest]]
This file is automatically generated from the source code: do not edit.
----
Parent: [[Home]]
| Creole | 0 | lionelyoung/OTMql4Zmq | wiki/CodeScripts.creole | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_core_fnc_getTakeChildren
Author: Dorbedo
Used to provide an array of ace actions to be used as children actions in the interact menu.
Arguments:
0: the unit who loses the radio <OBJECT>
1: the radio <ARRAY/STRING>
Return Value:
children ACE actio... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/ACEInteraction/fnc_getTakeChildren.sqf | [
"RSA-MD"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.