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 (c) 2019 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.
package edwards25519
import (
"crypto/subtle"
)
// A dynamic lookup table for variable-base, constant-time scalar muls.
type projLookupTable struct {
po... | Go | 4 | SSSDNSY/go | src/crypto/ed25519/internal/edwards25519/tables.go | [
"BSD-3-Clause"
] |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef ARCH_SPINLOCK_HPP_
#define ARCH_SPINLOCK_HPP_
#include <pthread.h>
#include <string.h>
#include "errors.hpp"
// I don't know the "clean" way to detect the availability of the pthread
// spinlock feature. For now we just use __MACH__ to default to mutex ... | C++ | 5 | zadcha/rethinkdb | src/arch/spinlock.hpp | [
"Apache-2.0"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
contract HelloWorld {
uint256 public value;
event ValueSet(uint256);
constructor() payable {
value = 5;
}
function setValue(uint256 val) public {
value = val;
emit ValueSet(val);
}
function getConstVal() pub... | Solidity | 5 | Shiba-Chain/ganache | src/chains/ethereum/ethereum/tests/contracts/HelloWorld.sol | [
"MIT"
] |
extends Node2D
func _draw() -> void:
var size : Vector2 = Global.current_project.size
var positions : Array = get_tile_positions(size)
var tilemode_opacity := Global.tilemode_opacity
var _position := position
var _scale := scale
if Global.mirror_view:
_position.x = _position.x + Global.current_project.size.x... | GDScript | 5 | triptych/Pixelorama | src/UI/Canvas/TileMode.gd | [
"MIT"
] |
import Debug = "mo:base/Debug";
// local imports
import Random = "Random";
import State = "State";
import Grid = "Grid";
actor Life {
stable var state : State.State =
do {
let rand = Random.new();
State.new(64, func (i, j) { rand.next() % 2 == 1 });
};
system func preupgrade() {
state := ... | Modelica | 4 | DaveSimplifire/examples | motoko/life/versions/v2/life/main.mo | [
"Apache-2.0"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Paste all cleaned date files below each other and save in one CSV file
**
** Date:
** 16/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.H. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <o... | Ox | 3 | tamerdilaver/Group4_Code_Data | 2PasteCSVFilesBelowEachOther.ox | [
"MIT"
] |
%%
%unicode 2.1
%public
%class UnicodePropList_Numeric_2_1
%type int
%standalone
%include ../../resources/common-unicode-binary-property-java
%%
\p{Numeric} { setCurCharPropertyValue(); }
[^] { }
<<EOF>> { printOutput(); return 1; }
| JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-proplist/UnicodePropList_Numeric_2_1.flex | [
"BSD-3-Clause"
] |
; v8u301
; https://www.java.com/en/download/manual.jsp
[Components]
Name: "utilities\jre"; Description: "Java Runtime Environment (JRE)"; Types: full;
[Files]
Source: "{#MySrcDir}\utilities\jre\*.exe"; DestDir: "{app}\jre"; Components: utilities\jre or java; Flags: ignoreversion recursesubdirs createallsubdirs... | Inno Setup | 2 | reckdo/retoolkit | src/installer/utilities/jre.iss | [
"Apache-2.0"
] |
{% extends "layouts/base.volt" %}
{% block header %}
{% include 'partials/header.volt' %}
{% endblock %}
{% block head_custom %}
{% include 'partials/custom_css.volt' %}
{% endblock %}
{% block sidebar %}
{% include 'partials/sidebar.volt' %}
{% endblock %}
{% block content %}
{% include 'partials/c... | Volt | 4 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/layouts/webtools.volt | [
"BSD-3-Clause"
] |
#!/usr/bin/env python
counts=dict()
mails=list()
fname=input('Enter file name:')
fh=open(fname)
for line in fh:
if not line.startswith('From '):
continue
# if line.startswith('From:'):
# continue
id=line.split()
mail=id[1]
mails.append(mail)
freq_mail = max(mails, key=mails.count) #To... | Python | 3 | nicetone/Python | email id dictionary/dict1.py | [
"MIT"
] |
--TEST--
Bug #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement)
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = '<?xml version="1.0" encoding="utf-8" ?>
<test>
</test>';
$root = simplexml_load_string($xml);
$clone = clone $root;
var_dump($root);
var_dump($clone);
var_dump($clone->asXML());
echo "Don... | PHP | 4 | NathanFreeman/php-src | ext/simplexml/tests/bug39662.phpt | [
"PHP-3.01"
] |
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
<PropertyGroup>
<ProductVersion>3.5</ProductVersion>
<OutputType>StaticLibrary</OutputType>
<Configuration Condition="'$(Configurati... | Oxygene | 2 | mosh/sugar | Sugar/Sugar.Nougat.OSX.oxygene | [
"BSD-3-Clause"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" ... | LabVIEW | 2 | ismet55555/LabVIEW-DAQ-Classes | DAQ/Analog Input/AI OOP.lvproj | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/custom</namespace-uri>
<default-prefix>xc</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>UnpBootFiles</component-type>
<composite-name>UnpBootFiles... | XPages | 4 | teamstudio/xcontrols-domino | sampler-app/CustomControls/UnpBootFiles.xsp-config | [
"Apache-2.0"
] |
# 1 s/r conflict and 1 r/r conflict
class A
rule
target: a
a :
| a list
list :
| list ITEM
end
| Yacc | 3 | puzzle/nochmal | spec/dummy/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/rrconf.y | [
"MIT"
] |
online 3.0689827352935839 0.0 0.0 2.886661178499629 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2921262866077936 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.788048889831519... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/30/same_sentence_ppmi.dm | [
"CC-BY-3.0"
] |
// Copyright 2018 The Grafeas Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | ANTLR | 4 | agv426/grafeas | server-go/filtering/parser/gen/FilterExpressionLexer.g4 | [
"Apache-2.0"
] |
package org.intellij.grammar.expression;
import com.intellij.lexer.*;
import com.intellij.psi.tree.IElementType;
import static org.intellij.grammar.expression.ExpressionTypes.*;
%%
%{
public _ExpressionLexer() {
this((java.io.Reader)null);
}
%}
%public
%class _ExpressionLexer
%implements FlexLexer
%function ... | JFlex | 4 | JojOatXGME/Grammar-Kit | tests/org/intellij/grammar/expression/_ExpressionLexer.flex | [
"Apache-2.0"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Objective-C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/lite/profiling/signpost_profiler.mm | [
"Apache-2.0"
] |
{# This syntax should be equivalent to salt['test.ping']() #}
{% set is_true = salt.test.ping() %}
always-passes:
test.succeed_without_changes:
- name: is_true_{{ is_true }}
| SaltStack | 3 | byteskeptical/salt | tests/integration/files/file/base/jinja_dot_notation.sls | [
"Apache-2.0"
] |
QT += widgets
SOURCES += \
$$PWD/exportdata.cpp \
$$PWD/exporter.cpp \
$$PWD/webviewexporter.cpp
HEADERS += \
$$PWD/exportdata.h \
$$PWD/exporter.h \
$$PWD/webviewexporter.h
| QMake | 2 | lizhyumzi/vnote | src/export/export.pri | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Expressions
Public Class FromKeyword... | Visual Basic | 4 | frandesc/roslyn | src/EditorFeatures/VisualBasicTest/Recommendations/Expressions/FromKeywordRecommenderTests.vb | [
"MIT"
] |
=pod
=head1 NAME
BIO_f_readbuffer
- read only buffering BIO that supports BIO_tell() and BIO_seek()
=head1 SYNOPSIS
#include <openssl/bio.h>
const BIO_METHOD *BIO_f_readbuffer(void);
=head1 DESCRIPTION
BIO_f_readbuffer() returns the read buffering BIO method.
This BIO filter can be inserted on top of BIO's th... | Pod | 5 | pmesnier/openssl | doc/man3/BIO_f_readbuffer.pod | [
"Apache-2.0"
] |
# We need a value larger than list-max-ziplist-value to make sure
# the list has the right encoding when it is swapped in again.
array set largevalue {}
set largevalue(ziplist) "hello"
set largevalue(linkedlist) [string repeat "hello" 4]
| Tcl | 3 | tomliugen/tomliugen-redis-3.2.2-rc | tests/unit/type/list-common.tcl | [
"BSD-3-Clause"
] |
print ${(%):-'%F{yellow}The `cargo` plugin is deprecated and has been moved to the `rust` plugin.'}
print ${(%):-'Please update your .zshrc to use the `%Brust%b` plugin instead.%f'}
(( ${fpath[(Ie)$ZSH/plugins/rust]} )) || {
fpath=("$ZSH/plugins/rust" $fpath)
source "$ZSH/plugins/rust/rust.plugin.zsh"
}
| Shell | 3 | ohmyzsh/oh-my-zsh | plugins/cargo/cargo.plugin.zsh | [
"MIT"
] |
{layout '@layout.latte'}
{var $robots = false}
{block title}File {$fileName}{/block}
{block content}
<div id="source">
{var $lineRegex = '~<span class="line">(\s*)(\d+):(\s*)</span>([^\\n]*(?:\\n|$))~'}
<pre class="numbers"><code>{$source|replaceRE:$lineRegex,'<span class="l"><a href="#$2">$1$2$3</a></span>'|noesca... | Latte | 4 | gitetsu/aws-sdk-php | build/docs/theme/source.latte | [
"Apache-2.0"
] |
module Ref {
@ Component for receiving and performing a math operation
queued component MathReceiver {
# ----------------------------------------------------------------------
# General ports
# ----------------------------------------------------------------------
@ Port for receiving the math op... | FORTRAN | 4 | AlperenCetin0/fprime | docs/Tutorials/MathComponent/MathReceiver/MathReceiver.fpp | [
"Apache-2.0"
] |
This is just a dummy file to let Configure know that Devel::PPPort
is an XS module. The real XS code is autogenerated from PPPort_xs.PL
when this module is built and will go to RealPPPort.xs.
| XS | 0 | vlinhd11/vlinhd11-android-scripting | perl/src/ext/Devel-PPPort/PPPort.xs | [
"Apache-2.0"
] |
data division.
linkage section.
01 require.
01 request.
01 response.
procedure division.
local mysql.
perform require using "mysql" giving mysql.
local name.
local address.
local notes.
local id.
move name in body in request to name.
move address in body in request to address.
move notes in body in ... | COBOL | 3 | jmptrader/CobolScript | samples/website/pages/supplierUpdate.cob | [
"MIT"
] |
{{ sylius_render_notifications_widget() }}
| Twig | 1 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/Layout/_notificationWidget.html.twig | [
"MIT"
] |
"""Diagnostics support for IQVIA."""
from __future__ import annotations
from typing import Any
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from .const import DOMAIN
async def async_get_c... | Python | 4 | MrDelik/core | homeassistant/components/iqvia/diagnostics.py | [
"Apache-2.0"
] |
package com.baeldung.interfaces.polymorphysim;
public class Square implements Shape {
@Override
public String name() {
return "Square";
}
}
| Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-lang-oop-inheritance/src/main/java/com/baeldung/interfaces/polymorphysim/Square.java | [
"MIT"
] |
{{
*************************************************
* uMP3 Play Music Object *
* Version 1.0 *
* Released: 6/02/2007 *
* Revised: -/--/---- *
* Author: Scott Gray *... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/uMP3 Player Simple Interface/uMP3.spin | [
"MIT"
] |
#+TITLE: lang/idris
#+DATE: October 6, 2020
#+SINCE: v2.0.9
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Featu... | Org | 3 | leezu/doom-emacs | modules/lang/idris/README.org | [
"MIT"
] |
DROP TABLE IF EXISTS fill;
CREATE TABLE fill (date Date, val Int, str String) ENGINE = Memory;
INSERT INTO fill VALUES (toDate('2019-05-24'), 13, 'sd0')(toDate('2019-05-10'), 16, 'vp7')(toDate('2019-05-25'), 17, '0ei')(toDate('2019-05-30'), 18, '3kd')(toDate('2019-05-15'), 27, 'enb')(toDate('2019-06-04'), 5, '6az')(toD... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00995_order_by_with_fill.sql | [
"Apache-2.0"
] |
// @ts-check
/**
* @type {import('next').NextConfig}
**/
module.exports = {
i18n: {
locales: ['en', 'fr', 'de'],
defaultLocale: 'en',
},
webpack(config, { dev, ...other }) {
if (!dev) {
// https://formatjs.io/docs/guides/advanced-usage#react-intl-without-parser-40-smaller
config.resolve... | JavaScript | 4 | blomqma/next.js | examples/with-react-intl/next.config.js | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-15 09:00+0100\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
"Langua... | Gettext Catalog | 2 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/admin/locale/en/LC_MESSAGES/djangojs.po | [
"PostgreSQL",
"Unlicense"
] |
/*---------------------------------------------------------------------------------------------
* 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/editor/browser/viewParts/minimap/minimapPreBaked.ts | [
"MIT"
] |
#!/bin/bash
build () {
CC=$1
TARGET_SUFFIX=$2
CFLAGS=$3
echo "[*] Building for ${TARGET_SUFFIX}..."
for type in {shellcode,system,findsock}
do ${CC} ${CFLAGS} -Wall -Werror -fPIC -fno-stack-protector samba-root-${type}.c -shared -o samba-root-${type}-${TARGET_SUFFIX}.so
done
}
rm -f *.o *.so *.gz
#
#... | Shell | 3 | OsmanDere/metasploit-framework | data/exploits/CVE-2017-7494/build.sh | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
Rem
Or is a boolean operator that performs the OR function.
End Rem
For i=1 To 5
If i=2 Or i=4 Print "!" Else Print i
Next | BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/or.bmx | [
"Zlib"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Paste all cleaned date files below each other and save in one CSV file
**
** Date:
** 16/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.H. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <o... | Ox | 3 | tamerdilaver/Group4_Code_Data | 6PasteCSVFilesBelowEachOther.ox | [
"MIT"
] |
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=x86_64-linux-gnu -mattr=+avx512f -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=ALL
--- |
define void @test_insert_128_idx0() {
ret void
}
define void @test_insert_128_... | Mirah | 4 | medismailben/llvm-project | llvm/test/CodeGen/X86/GlobalISel/select-insert-vec512.mir | [
"Apache-2.0"
] |
component {
public void function leakMemory(leak_modifier) {
leaky_variable = leak_modifier;
leakier_variable = leaky_variable * 2;
return leaky_variable * leakier_variable;
}
public void function poorlyWrittenFunction() {
writeDump('
<img style="width:100%;float:left;" s... | ColdFusion CFC | 2 | tonym128/CFLint | src/test/resources/com/cflint/tests/VarScoper/scriptSample186.cfc | [
"BSD-3-Clause"
] |
/* Tests accepting a bool */
export proc takesBool(x: bool) {
writeln(x);
}
/* Tests returning a bool */
export proc getBool(): bool {
var ret: bool = true;
return ret;
}
/* Tests taking and returning a bool */
export proc takeAndReturn(x: bool): bool {
return x;
}
| Chapel | 4 | jhh67/chapel | test/interop/python/multilocale/boolFunctions.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_CCTEST_COMPILER_NODEOBSERVER_TESTER_H_
#define V8_CCTEST_COMPILER_NODEOBSERVER_TESTER_H_
#include "src/compiler/node-observer.h"
#include "s... | C | 3 | EXHades/v8 | test/cctest/compiler/node-observer-tester.h | [
"BSD-3-Clause"
] |
@echo off
rem openbash - launch bash running in the generated OpenConsole binary
rem Runs the OpenConsole.exe binary generated by the build in the debug directory.
rem Defaults to your `~` directory.
call opencon bash ~ | Batchfile | 3 | Ghosty141/Terminal | tools/openbash.cmd | [
"MIT"
] |
/// <reference path="fourslash.ts" />
// @strict: true
//// interface User {
//// address?: {
//// city: string;
//// "postal code": string;
//// }
//// };
//// declare const user: User;
//// user.address[|./**/|]
verify.completions({
marker: "",
exact: [
{ name:... | TypeScript | 5 | monciego/TypeScript | tests/cases/fourslash/completionAutoInsertQuestionDot.ts | [
"Apache-2.0"
] |
{
"Version" : 0.2,
"ModuleName" : "materials",
"Options" : {
"Warnings" : "All",
"TargetType" : "Executable",
"TargetFileName" : "materials",
"Libraries" : [
"ecere"
]
},
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Deb... | Ecere Projects | 1 | N-eil/ecere-sdk | samples/3D/materials/materials.epj | [
"BSD-3-Clause"
] |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell | 5 | samotarnik/grpc | tools/run_tests/helper_scripts/run_tests_in_workspace.sh | [
"Apache-2.0"
] |
global function FFA_Init
void function FFA_Init()
{
ClassicMP_ForceDisableEpilogue( true )
ScoreEvent_SetupEarnMeterValuesForMixedModes()
AddCallback_OnPlayerKilled( OnPlayerKilled )
}
void function OnPlayerKilled( entity victim, entity attacker, var damageInfo )
{
if ( victim != attacker && victim.IsPlayer() &&... | Squirrel | 4 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ffa.nut | [
"MIT"
] |
days(Y,M,D,Total) :-
years_to_days(Y, D1),
months_to_day(M, Y, D2),
Total is D1+D2+D-1.
years_to_days(Y0, DY) :-
Y1 is Y0-1900,
DY is Y1*365+((Y1+3)//4).
months_to_day(1,_,0).
months_to_day(2,_,31).
months_to_day(3,Y,DM) :-
extra_day(Y,ED),
DM is 31+28+ED.
months_to_day(4,Y,DM) :-
extra_day(Y,ED),
DM is 31+2... | Prolog | 3 | ryandesign/yap | regression/dados/daynumber.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
import Data.List.Views
-- total
isSuffix : Eq a => List a -> List a -> Bool
isSuffix input1 input2 with (snocList input1, snocList input2)
isSuffix _ _ | (Snoc x xs xsrec, Snoc y ys ysrec)
= (x == y) && (isSuffix _ _ | (xsrec, ysrec))
isSuffix _ _ | (Empty, s) = True
isSuffix _ _ | (s, Empty) = False
| Idris | 3 | ska80/idris-jvm | tests/typedd-book/chapter10/IsSuffix.idr | [
"BSD-3-Clause"
] |
/** @type {import("../../../../").Configuration} */
module.exports = {
target: "web",
output: {
chunkFilename: "[name].js",
uniqueName: 'my "app"'
},
performance: {
hints: false
},
optimization: {
chunkIds: "named",
minimize: false
}
};
| JavaScript | 3 | 1shenxi/webpack | test/configCases/web/attach-existing/webpack.config.js | [
"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.
*)
type error_status = Vcs_utils.error_status =
| Not_installed of { path: string }
| Errored of string
val merge_base : ?cwd:str... | OCaml | 4 | zhangmaijun/flow | src/common/vcs/hg.mli | [
"MIT"
] |
DROP TABLE IF EXISTS `your_log`;
CREATE TABLE `your_log` (
`click_id` int(11) NOT NULL AUTO_INCREMENT,
`click_time` datetime NOT NULL,
`shorturl` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL,
`referrer` varchar(200) COLLATE latin1_german2_ci NOT NULL,
`user_agent` varchar(255) COLLATE latin1_... | SQL | 3 | safareli/prisma | packages/migrate/src/__tests__/fixtures/introspection/mysql/setup.sql | [
"Apache-2.0"
] |
Include 1 (img):
Photo
Include 2 (pre):
* item 1
''item''
== dd ==
item 2
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-txt/template-1.creole | [
"Apache-2.0"
] |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | C++ | 4 | echo80313/grpc | test/cpp/end2end/server_crash_test_client.cc | [
"Apache-2.0"
] |
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 The Apollo Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of... | Shell | 5 | jzjonah/apollo | scripts/sensor_calibration.sh | [
"Apache-2.0"
] |
for $value in 'blue' 'green' 'red'
.sel-{$value}
a b
| Stylus | 2 | dev-itsheng/wepy | packages/compiler-stylus/test/fixtures/stylus/list-each.styl | [
"BSD-3-Clause"
] |
"""Constants for the tankerkoenig integration."""
DOMAIN = "tankerkoenig"
NAME = "tankerkoenig"
CONF_FUEL_TYPES = "fuel_types"
CONF_STATIONS = "stations"
DEFAULT_RADIUS = 2
DEFAULT_SCAN_INTERVAL = 30
FUEL_TYPES = {"e5": "Super", "e10": "Super E10", "diesel": "Diesel"}
ATTR_BRAND = "brand"
ATTR_CITY = "city"
ATTR_F... | Python | 2 | mtarjoianu/core | homeassistant/components/tankerkoenig/const.py | [
"Apache-2.0"
] |
This is another literate file.
c = 1
| Literate CoffeeScript | 0 | decaffeinate/bulk-decaffeinate | test/examples/literate-coffeescript/C.litcoffee | [
"MIT"
] |
Module: dylan-user
define library part2
use collections;
use common-dylan;
use io;
end library part2;
define module part2
use common-dylan;
use format-out;
use set;
use standard-io;
use streams;
end module part2;
| Dylan | 3 | Ashindustry007/competitive-programming | advent-of-code/2018/day20/part2-library.dylan | [
"WTFPL"
] |
/*
* Copyright (C)2005-2019 Haxe Foundation
*
* 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,... | Haxe | 4 | wiltonlazary/haxe | std/php/LogicException.hx | [
"MIT"
] |
module Views.Toggle exposing (TextDirection(..), toggleSwitch)
import Assets
import Html exposing (Html)
import Html.Attributes exposing (attribute, href, style)
import Message.Message exposing (DomID(..), Message(..))
import Routes
type TextDirection
= Left
| Right
toggleSwitch :
{ on : Bool
, hre... | Elm | 5 | Caprowni/concourse | web/elm/src/Views/Toggle.elm | [
"Apache-2.0"
] |
ruleset org.sovrin.agent {
meta {
use module org.sovrin.agent_message alias a_msg
use module org.sovrin.agent.ui alias invite
use module io.picolabs.wrangler alias wrangler
use module io.picolabs.visual_params alias vp
use module webfinger alias wf
shares __testing, html, ui, getEndpoint, conn... | KRL | 5 | Picolab/G2S | krl/org.sovrin.agent.krl | [
"MIT"
] |
var $nan_f32 <f32> = nanf
var $nan_f64 <f64> = nan
var $inf_f32 <f32> = -inff
var $inf_f64 <f64> = inf
var $g_f32 <f32> = -1.2f
var $g_f64 <f64> = 1.2
func $add_f32 () f32 {
return (
add f32(dread f32 $g_f32, constval f32 inff))}
func $add_f64 () f64 {
return (
add f64(dread f64 $g_f64, constval f64 -inf))}... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0018-mapleall-irbuild-edge-constfloat/Main.mpl | [
"MulanPSL-1.0"
] |
_ = require 'underscore'
codegen utils = require './codegenUtils'
module.exports (terms) = {
function strategy (strategy) = {
strategy = strategy
generate java script parameters (buffer, scope) =
codegen utils.write (self.strategy.function parameters (), ',') to buffer (buffer, scope) w... | PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/closureParameterStrategies.pogo | [
"MIT"
] |
// Copyright 2017 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.
#include <string.h>
#include "_cgo_export.h"
int CheckIssue6907C(_GoString_ s) {
return CheckIssue6907Go(s);
}
| C | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | misc/cgo/test/issue6907export_c.c | [
"BSD-3-Clause"
] |
import { Button, Dialog } from "../components";
const Login = () => {
return (
<>
<Button />
<Dialog />
</>
);
};
export default Login;
| JavaScript | 3 | fourstash/webpack | examples/reexport-components/pages/Login.js | [
"MIT"
] |
/****************************************************************************
POKER Game Interface
Copyright (c) 2001 Jerome Jacovella-St-Louis
All Rights Reserved.
bet.ec - Poker Bet Window
****************************************************************************/
import "poker.ec"
class Bet : Window... | eC | 4 | N-eil/ecere-sdk | samples/games/cards/poker/bet.ec | [
"BSD-3-Clause"
] |
#!/bin/bash
if [ -f $1 ];then
cat $1| awk '{printf("\""$1"\":true,\n")}'
else
echo "argument $1 if not a file!"
fi
| Shell | 3 | shankerwangmiao/grafana | vendor/github.com/go-xorm/xorm/gen_reserved.sh | [
"Apache-2.0"
] |
--- Macro Scripts File
-- Created: Nov 17 1998
-- Modified: April 22 2002 Fred Ruff
-- Author: Frank DeLise
-- Macro Scripts for Modifiers
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
-- Requires AddmodFunc.ms
macroScript Bend
... | MAXScript | 4 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_Modifiers.mcr | [
"MIT"
] |
# Taken from http://coffeescript.org/
# Objects:
math =
root: Math.sqrt
square: square
cube: (x) -> x * square x
# Splats:
race = (winner, runners...) ->
print winner, runners
| CoffeeScript | 4 | 1shenxi/webpack | examples/source-map/example.coffee | [
"MIT"
] |
include "testcase.txl"
keys
'boolean 'new
end keys
define ruby_statements
[repeat ruby_lang_stmt]
end define
define ruby_lang_stmt
[al_ragel_stmt]
| [ruby_expr_stmt]
| [ruby_if_stmt]
| [EX] 'do [IN] [NL] [ruby_statements] [EX] 'end [IN] [NL]
end define
define ruby_type_decl
[al_type_decl]
| 'boolean
end... | TXL | 4 | garethchen/hhvm-third-party | ragel/src/test/langtrans_ruby.txl | [
"MIT"
] |
/*****************************************************************************
*
* QUERY:
* VACUUM
* ANALYZE
*
*****************************************************************************/
AnalyzeStmt:
analyze_keyword opt_verbose
{
PGVacuumStmt *n = makeNode(PGVacuumStmt);
n->options = PG... | Yacc | 4 | AldoMyrtaj/duckdb | third_party/libpg_query/grammar/statements/analyze.y | [
"MIT"
] |
export default function merge(acc: object, item: object): object;
| TypeScript | 2 | starmarke/starmarke | node_modules/@mui/system/merge.d.ts | [
"MIT"
] |
<mt:Ignore>
# =======================
#
# 記事ループ-本文
#
# 使い方:
# <mt:Include module="コンフィグ-記事ループ" />
# <mt:Include module="記事ループ-本文" tag="h1" date="0" sns_top="1" sns_bottom="1" />
#
# モディファイアの基本値:
# tag = h3
# date = 1
# sns_top = 0
# sns_bottom = 0
#
# =======================
</mt:Ignore>
<mt:Unless name... | MTML | 5 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/loop_body.mtml | [
"MIT"
] |
<interface name="spi">
<method rtype="uint8_t" name="rxtx">
<arg atype="uint8_t*" name="rxdata" />
<arg atype="uint8_t" name="txdata" />
</method>
</interface>
| D | 3 | CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/libs/driverv2/include/spi.di | [
"MIT"
] |
<%= error_messages_for :user %>
<% form_for :user do |f| %>
<p>
<label for="password">New Password</label><br />
<%= f.password_field :password -%>
</p>
<p>
<label for="password_confirmation">Confirm New Password</label><br />
<%= f.password_field :password_confirmation -%>
</p>
<table><tr>
<td>... | RHTML | 4 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/account/change_password.rhtml | [
"MIT"
] |
INSERT INTO `empty_strings` VALUES (1, ""), (2, """"), (4, ''), (8, ''''), (16, "\""), (32, '\'');
| SQL | 3 | imtbkcat/tidb-lightning | tests/various_types/data/vt.empty_strings.sql | [
"Apache-2.0"
] |
/*
* Copyright (c) 2017, Lee Keitel
* This file is released under the BSD 3-Clause license.
*
* This file demonstrates recursion using the Fibonacci sequence.
*/
const fib = fn(x) {
if x == 0 or x == 1 {
return x
}
return fib(x-1) + fib(x-2)
}
const main = fn() {
for i = 0; i < 31; i += ... | Inform 7 | 4 | lfkeitel/nitrogen | examples/fibRecursive.ni | [
"BSD-3-Clause"
] |
chroot=Chroot-katalog att köra BIND under,3,Standard
named_user=Användare att starta BIND som,3,Standard
named_group=Grupp att starta BIND som,3,Standard
show_list=Visa domäner som,1,0-Ikoner,1-Lista
records_order=Visa poster ordnade,1,1-efter namn,2-efter värde,3-efter IP,0-kronologiskt
max_zones=Maximalt antal zoner ... | SystemVerilog | 2 | GalaxyGFX/webmin | bind8/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
/**
* 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.
*
* @flow
*/
// This placeholder is to support a legacy/regression test in ReactFresh-test.
// Without this mock, jest.mock('schedu... | JavaScript | 2 | GBKstc/react-analysis | packages/react-reconciler/src/__mocks__/scheduler/tracing.js | [
"MIT"
] |
fun main () = return <xml><body>
<a link={other ()}>Go to the other one!</a>
</body></xml>
and other () = return <xml><body>
<a link={main ()}>Return to <tt>main</tt>!</a>
</body></xml>
| UrWeb | 1 | apple314159/urweb | demo/rec.ur | [
"BSD-3-Clause"
] |
<h1>HelloWorld</h1> | Handlebars | 0 | tiendq/Ghost | test/utils/fixtures/test.hbs | [
"MIT"
] |
module org-openroadm-external-pluggable {
namespace "http://org/openroadm/external/pluggable";
prefix org-openroadm-external-pluggable;
import org-openroadm-equipment-states-types {
prefix org-openroadm-equipment-states-types;
}
import org-openroadm-common-types {
prefix org-openroadm-common-types;
... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-external-pluggable@2016-10-14.yang | [
"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 ... | Scala | 5 | akhalymon-cv/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/benchmark/WideSchemaBenchmark.scala | [
"Apache-2.0"
] |
;Based on the paper Efficient Evaluation of Pointer Predicates
; with Z3 SMT Solver in SLAM2, Buonimova, Moura, Ball, Levin
; initial translation
; f,v,x: fields, variables, location terms
; x' stands for the result of the translation for the
; term x by applying the translation rules recursively
; f' denotes encodi... | SMT | 5 | ouankou/rose | projects/SMTPathFeasibility/tools/pointerPredicateRules.smt2 | [
"BSD-3-Clause"
] |
@keyframes a\,c { \66rom {} } | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/BGEkoLaLFY8_QtKKVFDVhQ/input.css | [
"Apache-2.0",
"MIT"
] |
/* DQ (2/3/2011): Bug report from iastate: arg_with_THREADS_reparse/short_test.upc */
#include <upc.h>
#include <upc_collective.h>
#include <upc_io.h>
#define NELEMS 10
shared int *scatter_A;
int main ()
{
// Before turning off the EDG constant folding for UPC THREADS and MY_THREAD pseudo-constants.
// sc... | Unified Parallel C | 4 | maurizioabba/rose | tests/CompileTests/UPC_tests/test2011_01.upc | [
"BSD-3-Clause"
] |
<html>
<head>
<title>shadow_dom_test.html</title>
<script type="text/javascript" src="test_bootstrap.js">
</script>
<script type="text/javascript">
goog.require('goog.testing.jsunit');
goog.require('webdriver.chrome');
goog.require('bot.locators');
</script>
</head>
<body>
<H1>Page for Shadow DOM ... | HTML | 5 | weilandia/selenium | javascript/chrome-driver/test/shadow_dom_test.html | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2C8.69 2 6 4.69 6 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm3 7h-2v2h-2V9H9V7h2V5h2v2h2v2zm-5 7H6.5v6H10c.8 0 1.5-.7 1.5-1.5v-3c0-.8-.7-1.5-1.5-1.5zm0 4.5H8v-... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/HdrEnhancedSelectSharp.js | [
"MIT"
] |
grammar mysql_drop;
import mysql_literal_tokens, mysql_idents;
drop_database: DROP (DATABASE | SCHEMA) if_exists? name;
drop_table: DROP TEMPORARY? TABLE if_exists? table_name (',' table_name)* drop_table_options*;
drop_table_options: (RESTRICT | CASCADE);
if_exists: IF EXISTS;
| ANTLR | 3 | zhongyu211/maxwell | src/main/antlr4/imports/mysql_drop.g4 | [
"Apache-2.0"
] |
fun implicitRef() {
A.AA.x.hashCode()
} | Groff | 1 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/companionObjectToSimpleObject/companionReferenceImplicit.kt.new.2 | [
"Apache-2.0"
] |
require_relative 'iap_subscription_pricing_info'
module Spaceship
module Tunes
class IAPSubscriptionPricingTier < TunesBase
# @return (String) Number of the subscription price tier (e.g. "1" for Tier 1 )
attr_accessor :tier_stem
# @return (String) Name of the tier (e.g. "ITC.addons.pricing.tie... | Ruby | 5 | Baumchen/fastlane | spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb | [
"MIT"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList
import java.util.List
import org.openapitools.model.ReadOnlyFirst
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jak... | Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/ArrayTestSpec.groovy | [
"Apache-2.0"
] |
import ensurepip
import sys
if __name__ == "__main__":
sys.exit(ensurepip._main())
| Python | 1 | shawwn/cpython | Lib/ensurepip/__main__.py | [
"0BSD"
] |
#pragma once
// ${generated_comment}
#include <ATen/Context.h>
#include <ATen/NativeMetaFunctions.h>
#include <ATen/core/Reduction.h>
#include <c10/core/ScalarType.h>
#include <c10/core/TensorOptions.h>
#include <array>
#include <functional>
#include <string>
#include <tuple>
#include <vector>
namespace c10 {
class... | C | 2 | Hacky-DH/pytorch | aten/src/ATen/templates/NativeFunctions.h | [
"Intel"
] |
{
"name": "Vue-Nw-Webpack",
"version": "0.1.7",
"main": "./nw-main.js",
"node-remote": "*://localhost/*",
"window": {
"width": 1280,
"height": 865,
"icon": "./logo.png"
}
}
| JSON | 2 | frank-dspeed/nw.js | test/sanity/issue7197-load/package.json | [
"MIT"
] |
#include <torch/csrc/jit/passes/variadic_ops.h>
#include <torch/csrc/jit/ir/alias_analysis.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/remove_mutation.h>
namespace torch {
namespace jit {
namespace {
class VariadicUpdater {
public:
explicit VariadicUpdater(
std::shared_ptr<Graph>... | C++ | 5 | sanchitintel/pytorch | torch/csrc/jit/passes/variadic_ops.cpp | [
"Intel"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.