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 |
|---|---|---|---|---|---|
server.port=8081
#logging.level.root=DEBUG | INI | 1 | zeesh49/tutorials | spring-ejb/spring-ejb-client/src/main/resources/application.properties | [
"MIT"
] |
# Unless otherwise noted, replace all settings w/in curly braces with values
# suited to your own environment.
<VirtualHost *:80>
ServerName helloworld.example.sonno.dev
ServerAdmin {youraddress@you.com}
DocumentRoot {your/path/to}/examples/helloworld/www
<Directory {your/path/to}/examples/helloworld/... | ApacheConf | 5 | davehauenstein/sonno | examples/helloworld/tpl/sample.vhost | [
"BSD-Source-Code"
] |
// Copyright (c) 2020 Bluespec, Inc. All Rights Reserved
package AXI4_Addr_Translator;
// ================================================================
// This package defines an AXI4-slave-to-AXI4-slave 'address-translator' function.
// That just adds/subtracts a fixed constant from addresses.
// ===============... | Bluespec | 5 | darius-bluespec/Flute | src_Testbench/Fabrics/AXI4/AXI4_Addr_Translator.bsv | [
"Apache-2.0"
] |
{-# LANGUAGE UndecidableInstances #-}
module Hasura.GraphQL.Parser.Column
( UnpreparedValue (..),
ValueWithOrigin (..),
openValueOrigin,
peelWithOrigin,
mkParameter,
)
where
import Hasura.GraphQL.Parser.Class
import Hasura.GraphQL.Parser.Internal.TypeChecking
import Hasura.GraphQL.Parser.Internal.... | Haskell | 4 | devrsi0n/graphql-engine | server/src-lib/Hasura/GraphQL/Parser/Column.hs | [
"Apache-2.0",
"MIT"
] |
#include "fir12_par.h"
#include <stdio.h>
#include "fir12.h"
void fir12_1(const int coefficients[], int offset, int N, streaming chanend cin, streaming chanend cout, int data[]) {
int dat;
int w = 0;
long long result, res;
for(int i = 0; i < N+12; i++) {
data[i] = 0; // no un... | XC | 4 | smola/language-dataset | data/github.com/xcore/sc_dsp_filters/2b55737d94e1c4c9001d075b7e7becd4f4b900b6/module_fir/src/fir12_par.xc | [
"MIT"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/apis/github/github.opa | [
"MIT"
] |
module Main where
import ADTProto
import Parse (parseProgram)
import Compile (protoProgram, checkProgram)
import System.Environment (getArgs)
import System.Exit (exitFailure)
import System.IO (hPrint, stderr)
import Text.Parsec (runP)
main :: IO ()
main = do [filename] <- getArgs
input <- readFile filenam... | Haskell | 4 | zadcha/rethinkdb | scripts/adtproto/Main.hs | [
"Apache-2.0"
] |
extends ConfirmationDialog
onready var frame_num = $VBoxContainer/GridContainer/FrameNum
onready var frame_dur = $VBoxContainer/GridContainer/FrameTime
func set_frame_label(frame : int) -> void:
frame_num.set_text(str(frame + 1))
func set_frame_dur(duration : float) -> void:
frame_dur.set_value(duration)
func _on... | GDScript | 4 | triptych/Pixelorama | src/UI/Timeline/FrameProperties.gd | [
"MIT"
] |
#include "caffe2/operators/quantized/int8_slice_op.h"
namespace caffe2 {
REGISTER_CPU_OPERATOR(Int8Slice, int8::Int8SliceOp);
OPERATOR_SCHEMA(Int8Slice)
.NumInputs(1, 3)
.NumOutputs(1)
.SetDoc(R"DOC(
Produces a slice of the input Int8 tensor. Currently, only slicing in a single
dimension is supported.
Sl... | C++ | 4 | Hacky-DH/pytorch | caffe2/operators/quantized/int8_slice_op.cc | [
"Intel"
] |
<style type="text/css">
body { color: #FFF; }
</style> | Latte | 1 | Antholoj/netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/testIssue231352.latte | [
"Apache-2.0"
] |
== Roadmap
This document lists short-term, medium-term, and long-term goals for the project.
[NOTE]
====
These are goals, not necessarily commitments. The sections are not intended to represent exclusive focus during these terms. For example, when you start at a college or university you may have a long-term goal to ... | AsciiDoc | 2 | MalcolmScoffable/openapi-generator | docs/roadmap.adoc | [
"Apache-2.0"
] |
class SizedNumTest {
Int32 size := 1
Int8 flag := 2
Void main() {
Int16 x := flag
echo("$size $flag $x")
}
} | Fantom | 2 | fanx-dev/fanx | library/baseTest/fan/SizedNumTest.fan | [
"AFL-3.0"
] |
upstream nginx_backends {
zone nginx_backends 64K;
state /tmp/nginx_backends.state;
sticky cookie test;
}
upstream unit_backends {
zone unit_backends 64K;
state /tmp/unit_backends.state;
}
match server_ok {
status 200;
body ~ "Status: OK";
}
server {
listen 80;
status_zone nginx_w... | SourcePawn | 4 | rowi1de/NGINX-Demos | autoscaling-demo/nginx_config/demo.conf.sp | [
"Apache-2.0"
] |
package {
import GzOpenGL.OpenGL;
import GzOpenGL.OpGpuInfo;
import GZ.Gfx.Face;
import GZ.Gpu.GpuObj.GpuBatch;
import GZ.Gpu.ShaderBase.Evbo;
import GZ.Gpu.ShaderModel.GzModel.GzShModel;
import GZ.Sys.Interface.Context;
import GZ.Gpu.GpuObj.GpuFace;
public class OpGpuBatch overplace GpuBatch {
pu... | Redcode | 3 | VLiance/GZE | src/SubLib_GPU/OpenGL/Lib_GzOpenGL/GpuObj/OpGpuBatch.cw | [
"Apache-2.0"
] |
{-
Epigram: a dependently typed programming language
This file is a demonstration of Cochon, the Epigram interactive interface that
looks a bit like a programming language if you squint. Once you have built
the system, start it by running "./Pig", then copy lines one at a time from
this file to the prompt.
... | PigLatin | 5 | mietek/epigram | test/Demo.pig | [
"MIT"
] |
thing onePressButton import "onePressButton.thingml"
thing lightSensor import "lightSensor.thingml"
thing smartLight import "smartLight.thingml"
thing temperatureSensor import "temperatureSensor.thingml"
thing airConditioner import "airConditioner.thingml"
thing heater import "heater.thingml"
thing remoteDisplay import... | Cycript | 5 | atlanmod/wsan | examples/smarthome/newmain.cy | [
"Apache-2.0"
] |
' 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.Declarations.ModifierKeywordRecommenderT... | Visual Basic | 4 | frandesc/roslyn | src/EditorFeatures/VisualBasicTest/Recommendations/Declarations/ModifierKeywordRecommenderTests.InsideStructureDeclaration.vb | [
"MIT"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright 2017 Ebrahim Azarisooreh <ebrahim.azarisooreh@gmail.com> and
% Paulo Moura <pmoura@logtalk.org>
% SPDX-License-Identifier: Apache-2.0
%
% Licensed under the Apache License... | Logtalk | 4 | PaulBrownMagic/logtalk3 | tools/code_metrics/nor_metric_tests.lgt | [
"Apache-2.0"
] |
.class public Lothers/TestN21;
.super Ljava/lang/Object;
.method private static test([BI)I
.locals 5
const/4 v1, 0x0
const/16 v0, 0xe
aget-byte v0, p0, v0
shl-int/lit8 v0, v0, 0x10
move v2, v1
:goto_0
if-nez v2, :cond_1
const/4 v2, 0x3
and-int/lit16 v3, p1, 0xff
:tr... | Smali | 2 | mazhidong/jadx | jadx-core/src/test/smali/others/TestN21.smali | [
"Apache-2.0"
] |
#
# dbevents_calc_mapparams
#
# Script to calculate parameters for dbevents edp map projections
# Taimi Mulder
# 2004 Nov
#
# Enter: latc lonc lat_ll lon_ll lat_ur lon_ur
use Getopt::Std ;
use Datascope;
# To be used with dbevents.pf to find the parameters
# xdelmin, xdelmax, ydelmin, ydelmax when the user
# has spe... | XProc | 4 | jreyes1108/antelope_contrib | bin/utility/dbevents_calc_mapparams/dbevents_calc_mapparams.xpl | [
"BSD-2-Clause",
"MIT"
] |
//
// This file is part of the Simutrans project under the Artistic License.
// (see LICENSE.txt)
//
//
// Tests for scenario rules/conditions
//
function test_scenario_rules_allow_forbid_tool()
{
local raise = command_x(tool_raise_land)
local lower = command_x(tool_lower_land)
local pl = player_x(0)
{
rules.... | Squirrel | 5 | Andarix/simutrans_nightly | tests/tests/test_scenario.nut | [
"Artistic-1.0"
] |
module audiostreamerscrobbler.factories.GroupFactory
import audiostreamerscrobbler.factories.Config
import audiostreamerscrobbler.groups.{FixedPlayersGroupStrategy, Group}
import audiostreamerscrobbler.maintypes.Player
import audiostreamerscrobbler.maintypes.Player.types.PlayerTypes
import java.util.TreeMap
let CONF... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/factories/GroupFactory.golo | [
"MIT"
] |
// Io is the bottle neck for this test - this is more of a performance sanity check
for(v, 1, 10000,
URL with("http://localhost:8080?action=write&value=" .. v) fetch
if(v % 1000 == 0, writeln(v))
)
URL with("http://localhost:8080?action=collectGarbage") fetch
| Io | 2 | BooBSD/vertexdb | tests/stress.io | [
"BSD-3-Clause"
] |
"""Config flow for DLNA DMS."""
from __future__ import annotations
import logging
from pprint import pformat
from typing import Any, cast
from urllib.parse import urlparse
from async_upnp_client.profiles.dlna import DmsDevice
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.compon... | Python | 5 | mtarjoianu/core | homeassistant/components/dlna_dms/config_flow.py | [
"Apache-2.0"
] |
rm -rf destruct x
rm -f deltest2 *~ .*~
| Stata | 1 | BlameJohnny/redo | t/202-del/clean.do | [
"Apache-2.0"
] |
// TEST TOOL U8U16Test
// Performance tests for UTF-8 <--> UTF-16 conversions, related to PR #4093
// NOTE The functions u8u16 and u16u8 contain own algorithms. Tests have shown that they perform
// worse than the platform API functions.
// Thus, these functions are *unrelated* to the til::u8u16 and til::u16u8 impl... | C++ | 5 | memcpy-rand-rand-rand/terminal | src/tools/U8U16Test/U8U16Test.hpp | [
"MIT"
] |
.http a:after,
.https a:after {
margin-left: 5px;
border: 1px solid;
border-radius: 2px;
padding: 0px 5px;
font-size: 11px;
color: #adb9bd;
}
.http a:after {
content: "http";
}
.https a:after {
content: "https";
}
| CSS | 3 | narayanim84/brackets | src/extensions/default/RemoteFileAdapter/styles.css | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getSwChannel
Author: NKey
Gets the channel for the passed radio
Arguments:
Radio classname <STRING>
Return Value:
Channel <NUMBER>
Example:
_channel = (call TFAR_fnc_ActiveSwRadio) call TFAR_fnc_getSwChannel;
Public: Yes
*/
params[["_ra... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_getSwChannel.sqf | [
"RSA-MD"
] |
use Datascope;
use Getopt::Std;
sub addacro {
local( $findacro, $force, @dbacro ) = @_;
my( $expansion );
if( $force ) {
$msg = "Force addition of $findacro: ";
} else {
$msg = "$findacro not found. Add: ";
}
$expansion = ask( $msg );
$expansion =~ /^\s*$/ && exit 0;
$expansion =~ /^\s*[nN]\s*$/ && exi... | XProc | 4 | jreyes1108/antelope_contrib | nobuild/bin/utility/acro/acro.xpl | [
"BSD-2-Clause",
"MIT"
] |
{layout '@layout.latte'}
{block title}{$annotation|firstUpper}{/block}
{block content}
<h1>{include title}</h1>
{if $hasElements}
{if $classes}
<table class="summary table table-responsive table-bordered table-striped" id="classes">
<tr><th colspan="2">Classes Summary</th>... | Latte | 4 | pujak17/tets | packages/ThemeDefault/src/annotation-group.latte | [
"MIT"
] |
export default function Docs(props) {
return <div>Hello again 👋</div>
}
| JavaScript | 3 | blomqma/next.js | test/integration/export-default-map/pages/v1.12/docs.js | [
"MIT"
] |
# start fbterm automatically in /dev/tty*
if (( ${+commands[fbterm]} )); then
if [[ "$TTY" = /dev/tty* ]] ; then
fbterm && exit
fi
fi
| Shell | 3 | chensanle/ohmyzsh | plugins/fbterm/fbterm.plugin.zsh | [
"MIT"
] |
object NewDiskForm: TNewDiskForm
Left = 226
Top = 162
BorderIcons = [biSystemMenu]
BorderStyle = bsDialog
Caption = '*'
ClientHeight = 169
ClientWidth = 377
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Fon... | Pascal | 3 | mqt635/issrc | Projects/NewDisk.dfm | [
"FSFAP"
] |
component{
function foo(mailBody){
var mailService=new mail(
to="...",
from="...",
subject="...",
type="HTML",
body=mailBody
);
}
} | ColdFusion CFC | 3 | tonym128/CFLint | src/test/resources/com/cflint/tests/VarScoper/fpositive/mail.cfc | [
"BSD-3-Clause"
] |
/*
* Copyright 2012-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 | techAi007/spring-boot | spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/ApiVersionTests.java | [
"Apache-2.0"
] |
<?php use PHPCI\Helper\Lang; ?>
<?php if (empty($error)): ?>
<div class="box-header">
<?php Lang::out('reset_enter_password'); ?>
</div>
<div class="box-body">
<form class="form" action="<?php print PHPCI_URL; ?>session/reset-password/<?php print $id; ?>/<?php print $ke... | HTML+PHP | 3 | studio201/PHPCI | PHPCI/View/Session/resetPassword.phtml | [
"BSD-2-Clause"
] |
var x >= 1 integer;
s.t. c: x <= 0;
option presolve 0;
| AMPL | 0 | ampl/plugins | test/data/infeasible.ampl | [
"BSD-3-Clause"
] |
import {Component, NgModule} from '@angular/core';
@Component({
selector: 'my-app',
template: `
<div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i{{nine}}j"></div>
<div attr.title="a{{one}}b{{two}}c{{three}}d{{four}}e{{five}}f{{six}}g{{seven}}h{{eight}}i"></div>
... | TypeScript | 3 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/interpolated_attributes.ts | [
"MIT"
] |
--TEST--
Trying to access undeclared static property
--FILE--
<?php
class bar {
public function __set($a, $b) {
print "hello\n";
}
}
class foo extends bar {
public function __construct() {
static::$f = 1;
}
public function __set($a, $b) {
print "foo\n";
}
}
new foo;
... | PHP | 3 | NathanFreeman/php-src | Zend/tests/objects_029.phpt | [
"PHP-3.01"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
@0xa7923fa19ab459cd;
struct User {
name @0 :Text;
username @1 :Text;
}
| Cap'n Proto | 4 | mrpotes/go-raml | docs/tutorial/tarantool/server/handlers/schemas/User.capnp | [
"BSD-2-Clause"
] |
Feature: manipulate databases:
create, drop, connect, disconnect
Scenario: create and drop temporary database
When we create database
then we see database created
when we drop database
then we confirm the destructive warning
then we see database dropped
when we connect to dbserve... | Cucumber | 4 | yolabingo/pgcli | tests/features/crud_database.feature | [
"BSD-3-Clause"
] |
signature windows_reverse_shell {
ip-proto == tcp
tcp-state established,originator
event "ATTACK-RESPONSES Microsoft cmd.exe banner (reverse-shell originator)"
payload /.*Microsoft Windows.*\x28C\x29 Copyright 1985-.*Microsoft Corp/
}
signature windows_shell {
ip-proto == tcp
tcp-state established,responde... | Standard ML | 3 | yaplej/bro | scripts/policy/frameworks/signatures/detect-windows-shells.sig | [
"Apache-2.0"
] |
/**
*
*/
import Util;
import OpenApi;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
checkConfig(config);
@endpoint = getEndpoint('eds-user', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function getEndpoint(pro... | Tea | 5 | aliyun/alibabacloud-sdk | eds-user-20210622/main.tea | [
"Apache-2.0"
] |
\require "b@>=0.2" | LilyPond | 0 | HolgerPeters/lyp | spec/package_setups/big/a@0.2.1/package.ly | [
"MIT"
] |
<div
style="
display: flex;
margin-top: 48px;
padding-top: 20px;
border-top: 1px solid #eaecef;
"
>
<img
style="height: 72px; width: 72px; border-radius: 50%"
src="{{ include.profile_photo }}"
/>
<div
style="
display: flex;
flex-direction: column;
justify-content:... | Liquid | 3 | TommyTeaVee/training | docs/_includes/profile.liquid | [
"MIT"
] |
%/* This file is copied from RFC1813
% * Copyright 1995 Sun Micrososystems (I assume)
% */
const MNTPATHLEN = 1024; /* Maximum bytes in a path name */
const MNTNAMLEN = 255; /* Maximum bytes in a name */
const FHSIZE3 = 64; /* Maximum bytes in a V3 file handle */
typedef opaque fhandle3<FHSIZE3>;
typedef string... | Logos | 3 | Davidfind/rt-thread | components/dfs/filesystems/nfs/mount.x | [
"Apache-2.0"
] |
# Tuning the performance of Integer#times:
require: "profiler"
class Integer {
dynamic_method('times_impl:) |g| {
while = g new_label()
end = g new_label()
exc = g new_label()
exc_iter = g new_label()
g total_args=(1)
g required_args=(1)
# Locals:
# 0: block argument
# 1: ... | Fancy | 4 | bakkdoor/fancy | tools/benchmarks/profile-int-times.fy | [
"BSD-3-Clause"
] |
module Main where
import Debug.Trace
main = trace "Hello World"
| PureScript | 2 | Gabrielarodrigues10/ga | p/PureScript.purs | [
"MIT"
] |
import { autoUpdater } from 'electron/main';
import { expect } from 'chai';
import { ifit, ifdescribe } from './spec-helpers';
import { emittedOnce } from './events-helpers';
ifdescribe(!process.mas)('autoUpdater module', function () {
describe('checkForUpdates', function () {
ifit(process.platform === 'win32')(... | TypeScript | 5 | lingxiao-Zhu/electron | spec-main/api-auto-updater-spec.ts | [
"MIT"
] |
{:duct.core/include ["hello/server-jetty"]} ;default | edn | 1 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Clojure/duct/resources/hello/server.edn | [
"BSD-3-Clause"
] |
[{:type :error,
:file "/win32nativeext/src/main.cpp",
:line 10,
:message
"In file included from upload/win32nativeext/src/main.cpp:10:\nIn file included from /opt/MacOSX10.13.sdk//usr/include/c++/4.2.1/algorithm:68:\ninvalid operands to binary expression ('std::vector<int, std::allocator<int> >' and 'int')\n ... | edn | 1 | cmarincia/defold | editor/test/resources/native_extension_error_parsing/templateBarf_parsed.edn | [
"ECL-2.0",
"Apache-2.0"
] |
#include "opencv2/ts.hpp"
#include <opencv2/core/utils/logger.hpp>
#include "opencv2/core/utility.hpp"
#if !defined(__EMSCRIPTEN__)
#include "opencv2/core/private.hpp"
#endif
#ifdef GTEST_LINKED_AS_SHARED_LIBRARY
#error ts module should not have GTEST_LINKED_AS_SHARED_LIBRARY defined
#endif
| C++ | 2 | xipingyan/opencv | modules/ts/src/precomp.hpp | [
"Apache-2.0"
] |
import data.matrix.notation
import data.vector2
/-!
Helpers that don't currently fit elsewhere...
-/
lemma split_eq {m n : Type*} (x : m × n) (p p' : m × n) :
p = x ∨ p' = x ∨ (x ≠ p ∧ x ≠ p') := by tauto
-- For `playfield`s, the piece type and/or piece index type.
variables (X : Type*)
variables [has_repr X]
n... | Lean | 5 | ka7/bat | tests/syntax-tests/source/Lean/test.lean | [
"Apache-2.0",
"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>topicThreadForum</component-type>
<composite-name>topicThr... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/nsf/Teamroom/CustomControls/topicThreadForum.xsp-config | [
"Apache-2.0"
] |
server {
listen 80;
server_name www.example.com example.com;
root /var/www/www.example.com/web;
if ($http_host != "www.example.com") {
rewrite ^ http://www.example.com$request_uri permanent;
}
index index.php index.html;
location = /favicon.ico {
... | ApacheConf | 4 | tsrivishnu/certbot | certbot-compatibility-test/nginx/nginx-roundtrip-testdata/contao/sites-available/example.com.vhost | [
"Apache-2.0"
] |
%span.position-relative.gl-pr-6.gl-display-inline-flex
= yield
| Haml | 1 | Testiduk/gitlabhq | app/views/shared/namespaces/cascading_settings/_setting_label_container.html.haml | [
"MIT"
] |
package unit.issues;
class Issue9899 extends unit.Test {
function test() {
t(switch (macro !a is T) {
case {expr: EIs({expr: EUnop(_)}, _)}: true;
case _: false;
});
}
} | Haxe | 3 | wiltonlazary/haxe | tests/unit/src/unit/issues/Issue9899.hx | [
"MIT"
] |
// run-pass
// Tests that we can call a function bounded over a supertrait from
// a default method
fn require_y<T: Y>(x: T) -> isize { x.y() }
trait Y {
fn y(self) -> isize;
}
trait Z: Y + Sized {
fn x(self) -> isize {
require_y(self)
}
}
impl Y for isize {
fn y(self) -> isize { self }
}... | Rust | 4 | Eric-Arellano/rust | src/test/ui/traits/default-method-supertrait-vtable.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#market_list_wrapper.has-right-dropdown
- if @market_groups.size > 1
.dropdown-wrapper
ul.dropdown-menu
li: a.active data-name='all' href="javascript:;" = t('.all_html')
- @market_groups.each do |name|
li: a data-name=name href="javascript:;" = t(".#{name}_html")
#market_list
... | Slim | 4 | gsmlg/peatio | app/views/private/markets/_market_list.html.slim | [
"MIT"
] |
# coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import remove_start
class Ir90TvIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?90tv\.ir/video/(?P<id>[0-9]+)/.*'
_TESTS = [{
'url': 'http://90tv.ir/video/95719/%D8%B4%D8%A7%DB%8C%D8%B9%D8%A7%D... | Python | 4 | hackarada/youtube-dl | youtube_dl/extractor/ir90tv.py | [
"Unlicense"
] |
CREATE TABLE `tb_baxubvrijb` (
`col_kcwxoovscx` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8 DEFAULT 'enum_or_set_0',
`col_fpfpelfmso` float(57,8) NULL,
`col_dbtkzzfxoi` varbinary(22) NOT NULL,
CONSTRAINT symb_hrwhbxnbts PRIMARY KEY (`col_dbtkzzfxoi`(10)),
UNIQUE `col_dbtkzzfxoi` (`... | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_16.sql | [
"Apache-2.0"
] |
server {
listen 80;
listen [::]:80;
root <path/to/o2system/public/folder>;
autoindex on;
index index.html index.php;
server_name <domain>;
server_alias *.<domain>;
access_log /var/log/nginx/<domain>-access.log;
error_log /var/log/nginx/<domain>-error.log;
# enforce www (exclude certain subdomains)... | ApacheConf | 5 | vulnwalker/apiUjiWawasan | public/nginx.vhost | [
"MIT"
] |
---
title: "v1.23.0 - 2021-09-03"
linkTitle: "v1.23.0 - 2021-09-03"
weight: -99
---
<html>
<head>
<title>kubernetes/minikube - Leaderboard</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap" rel... | HTML | 4 | skyplaying/minikube | site/content/en/docs/contrib/leaderboard/v1.23.0.html | [
"Apache-2.0"
] |
Literate CoffeeScript
====================
This is a spec using written in Literate CoffeeScript
describe 'Coffee.litcoffee', ->
it 'should pass', ->
expect(1+2).toEqual(3)
| Literate CoffeeScript | 4 | sidartastan/SoftwareVerificationValidationTesting_JasmineTest | node_modules/jasmine-node/spec/litcoffee/Litcoffee.spec.litcoffee | [
"MIT"
] |
#! /bin/jconsole
require 'graphics/png'
read_dsv =: (1 :'<;._2@,&u;._2')(@:(CR-.~[:1!:1@:<'data/',,&'.txt'))
dat =. ".@> 1{"1]2}._8}. TAB read_dsv 'ZKE0 R'
interval =. 16*60%~20-~_30 (<./,>./)\ dat
img =. |: (|.i.16) (1=I.)~"1]_0.5 0+"1<.0.2 _0.2+"1 interval
'favicon.png' writepng~ 256#.0 10 200,"0 1~255<.256 <.@:* im... | J | 3 | Banbeucmas/CrinGraph | favicon.ijs | [
"0BSD"
] |
*** Settings ***
Library OperatingSystem
Library ParameterLibrary after1with after2with WITH NAME Params
Library ParameterLibrary after1 after2
Library ParameterLibrary xxx yyy with name Won't work
*** Test Cases ***
Import Library Normally After Im... | RobotFramework | 4 | rdagum/robotframework | atest/testdata/test_libraries/with_name_3.robot | [
"ECL-2.0",
"Apache-2.0"
] |
DeployingCloud:Deploying to a cloud service
ProductionHeroku:Deploying to Heroku
Deploying-CloudFoundry:Deploying to Cloud Foundry
Deploying-CleverCloud:Deploying to Clever Cloud
Deploying-Boxfuse:Deploying to Boxfuse and AWS | TeX | 2 | eed3si9n/playframework | documentation/manual/working/commonGuide/production/cloud/index.toc | [
"Apache-2.0"
] |
#ifndef NUMPY_CORE_SRC_MULTIARRAY_NPY_BUFFER_H_
#define NUMPY_CORE_SRC_MULTIARRAY_NPY_BUFFER_H_
extern NPY_NO_EXPORT PyBufferProcs array_as_buffer;
NPY_NO_EXPORT int
_buffer_info_free(void *buffer_info, PyObject *obj);
NPY_NO_EXPORT PyArray_Descr*
_descriptor_from_pep3118_format(char const *s);
NPY_NO_EXPORT int
vo... | C | 3 | iam-abbas/numpy | numpy/core/src/multiarray/npy_buffer.h | [
"BSD-3-Clause"
] |
upstream @backends {
server 127.0.0.1:8000 max_fails=250 fail_timeout=60s;
server 127.0.0.1:8001 max_fails=250 fail_timeout=60s;
server 127.0.0.1:8002 max_fails=250 fail_timeout=60s;
server 127.0.0.1:8003 max_fails=250 fail_timeout=60s;
server 127.0.0.1:8004 max_fails=250 fail_timeout=60s;
serve... | ApacheConf | 3 | alejandrobernardis/python-server-stack | installer/config/nginx/data/etc/nginx/sites-available/backend.vhost | [
"MIT"
] |
moment = require 'moment'
React = require "react"
ReactDOM = require "react-dom"
ReactTestUtils = require 'react-addons-test-utils'
MessageTimestamp = require('../lib/message-timestamp').default
msgTime = ->
moment([2010, 1, 14, 15, 25, 50, 125]) # Feb 14, 2010 at 3:25 PM
describe "MessageTimestamp", ->
beforeEac... | CoffeeScript | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/message-list/spec/message-timestamp-spec.cjsx | [
"MIT"
] |
fun main () : nothing
var i : int;
var x : int[10];
{
if("Sfdsdfsdf" # "qwerrwer") then{
puti(9);
}
}
| Grace | 1 | yorgosk/grace-compiler | examples/semantics/cond_tests.grace | [
"MIT"
] |
{**
* @param string $basePath web base path
* @param string $robots tell robots how to index the content of a page (optional)
* @param array $flashes flash messages
*}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<meta name="robots" co... | Latte | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Latte/layout.latte | [
"MIT"
] |
@env
testing
PREFERENCES_DOT_ARC_USERLAND_ENV_VAR "Why hello there from preferences.arc!"
preferences_dot_arc_lowcase_env_var "Why hello there from preferences.arc!"
| Arc | 1 | hicksy/sandbox | test/mock/env/preferences/preferences.arc | [
"Apache-2.0"
] |
script = require './scriptAssertions'
require 'chai'.should()
shouldOutput = script.shouldOutput
describe 'lists'
it 'can construct an empty list'
'print []' shouldOutput '[]'
it 'can construct a list'
'print [1, 2, 3]' shouldOutput '[ 1, 2, 3 ]'
describe 'splats'
it 'can splat a... | PogoScript | 5 | featurist/pogoscript | test/listSpec.pogo | [
"BSD-2-Clause"
] |
/*
MySQL (Positive Technologies) grammar
The MIT License (MIT).
Copyright (c) 2015-2017, Ivan Kochurkin (kvanttt@gmail.com), Positive Technologies.
Copyright (c) 2017, Ivan Khudyashev (IHudyashov@ptsecurity.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associate... | ANTLR | 5 | shiyuhang0/TiBigData | tidb/src/main/java/io/tidb/bigdata/tidb/parser/MySqlParser.g4 | [
"Apache-2.0"
] |
<div class="mb-3">
<label class="form-label">Icon input</label>
{% include ui/form/input-icon.html class="mb-3" %}
{% include ui/form/input-icon.html class="mb-3" icon="user" prepend=true placeholder="Username" %}
</div>
<div class="mb-3">
<label class="form-label">Loader input</label>
{% include ui/form/input-ic... | HTML | 3 | muhginanjar/tabler | src/pages/_includes/parts/form/input-icon.html | [
"MIT"
] |
if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1
function! ShaDaIndent(lnum)
if a:lnum == 1 || getline(a:lnum) =~# '\mwith timestamp.*:$'
return 0
else
return shiftwidth()
endif
endfunction
setlocal expandtab tabstop=2 softtabstop=2 shiftwidth=2
setlocal indentexpr=ShaDaIndent(v:lnum) ... | VimL | 4 | uga-rosa/neovim | runtime/ftplugin/shada.vim | [
"Vim"
] |
$! MAKE_COMMAND.COM
$! Record MM[SK]/Make parameters in configuration report
$!
$! Author: Peter Prymmer <pvhp@lns62.lns.cornell.edu>
$! Version: 1.0 18-Jan-1996
$!
$! DCL usage (choose one):
$! @MAKE_COMMAND !or
$! @MAKE_COMMAND/OUTPUT=MYCONFIG.OUT
$!-----------------------------------... | DIGITAL Command Language | 3 | vlinhd11/vlinhd11-android-scripting | perl/src/vms/make_command.com | [
"Apache-2.0"
] |
;; Scopes
(document) @scope
(directive) @scope
;; Definitions
(title) @definition
(substitution_definition
name: (substitution) @definition)
(footnote
name: (label) @definition)
(citation
name: (label) @definition)
(target
name: (name) @definition)
; Inline targets
(inline_target) @definition
; The ro... | Scheme | 2 | yzia2000/nvim-treesitter | queries/rst/locals.scm | [
"Apache-2.0"
] |
MEAN(X)
;X is assumed to be a list of numbers separated by "^"
QUIT:'$DATA(X) "No data"
QUIT:X="" "Empty Set"
NEW S,I
SET S=0,I=1
FOR QUIT:I>$L(X,"^") SET S=S+$P(X,"^",I),I=I+1
QUIT (S/$L(X,"^"))
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/Averages-Arithmetic-mean/MUMPS/averages-arithmetic-mean.mumps | [
"Info-ZIP"
] |
--TEST--
Bug #69279 (Compressed ZIP Phar extractTo() creates garbage files)
--EXTENSIONS--
phar
zlib
--INI--
phar.readonly=0
--FILE--
<?php
$w = new Phar(__DIR__ . "/bug69279.phar.zip");
$w["bug69279.txt"] = "Sample content.";
$w->compressFiles(Phar::GZ);
unset($w);
$r = new Phar(__DIR__ . "/bug69279.phar.zip");
var_d... | PHP | 3 | NathanFreeman/php-src | ext/phar/tests/bug69279.phpt | [
"PHP-3.01"
] |
" Vim syntax file
" Language: Murphi model checking language
" Maintainer: Matthew Fernandez <matthew.fernandez@gmail.com>
" Last Change: 2019 Aug 27
" Version: 2
" Remark: Originally authored by Diego Ongaro <ongaro@cs.stanford.edu>
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
" ... | VimL | 5 | uga-rosa/neovim | runtime/syntax/murphi.vim | [
"Vim"
] |
%% This tests that no warnings appear when there is no specific
%% information about the types and the variables are not bound.
-module(whereis_vars1).
-export([start/3]).
start(AnAtom, OtherAtom, Fun) ->
case whereis(AnAtom) of
undefined ->
Pid = spawn(Fun),
case Pid =:= self() of
true -> o... | Erlang | 4 | jjhoo/otp | lib/dialyzer/test/race_SUITE_data/src/whereis_vars1.erl | [
"Apache-2.0"
] |
<section class="content-header">
<div class="container-fluid">
{%- if page_title is defined and page_title is not empty -%}
<h1>
{{- page_title }}
{%- if page_subtitle is defined and page_subtitle is not empty -%}
<small>{{ page_subtitle -}}</small>
... | Volt | 3 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/partials/content_header.volt | [
"BSD-3-Clause"
] |
BnotJ< |