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 |
|---|---|---|---|---|---|
;;; ui/zen/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defalias '+zen/toggle #'writeroom-mode)
(defvar +zen--last-wconf nil)
;;;###autoload
(defun +zen/toggle-fullscreen ()
"Toggle `writeroom-mode' fullscreen and delete all other windows.
Invoke again to revert to the window configuration before it was ... | Emacs Lisp | 4 | leezu/doom-emacs | modules/ui/zen/autoload.el | [
"MIT"
] |
#!/usr/bin/perl
print "Status: 302 Moved Temporarily\r\n";
print "Location: redirect-cycle-1.pl\r\n";
print "Content-type: text/html\r\n";
print "\r\n";
print "<html>";
print "<body>";
print "<div>Page 2</div>";
print "</body>";
print "</html>";
| Perl | 4 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/navigation/resources/redirect-cycle-2.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
--TEST--
accessing object dimension
--FILE--
<?php
$object = new stdClass;
var_dump($object[1]);
?>
--EXPECTF--
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/offset_object.phpt | [
"PHP-3.01"
] |
/// <reference path='fourslash.ts' />
// @module: esnext
// @Filename: foo.ts
/////// <reference no-default-lib="true"/>
/////// <reference path='./bar.d.ts' />
////import.me/*reference*/ta;
//@Filename: bar.d.ts
////interface /*definition*/ImportMeta {
////}
verify.goToType("reference", "definition");
| TypeScript | 3 | monciego/TypeScript | tests/cases/fourslash/goToTypeDefinitionImportMeta.ts | [
"Apache-2.0"
] |
(assert (str.< "abc" "aac"))
(check-sat)
| SMT | 1 | mauguignard/cbmc | regression/smt2_strings/lex_order_const_unsat/lex_order_const_unsat.smt2 | [
"BSD-4-Clause"
] |
--TEST--
DateTime::setTimestamp()
--FILE--
<?php
date_default_timezone_set('Europe/Oslo');
$d = new DateTime( '@1217184864' );
echo $d->format( "Y-m-d H:i e\n" );
$d = new DateTime();
$d->setTimestamp( 1217184864 );
echo $d->format( "Y-m-d H:i e\n" );
?>
--EXPECT--
2008-07-27 18:54 +00:00
2008-07-27 20:54 Europe/Oslo
| PHP | 4 | guomoumou123/php5.5.10 | ext/date/tests/date-set-timestamp.phpt | [
"PHP-3.01"
] |
---
title: "Creating an SDistribution"
output: rmarkdown::html_vignette
date: "`r Sys.Date()`"
vignette: >
%\VignetteIndexEntry{Creating an SDistribution}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r include = FALSE}
library(distr6)
set.seed(42)
knitr::opts_chunk$set(collapse = TRUE, co... | RMarkdown | 5 | MichaelChirico/distr6 | vignettes/webs/create_sdistribution.rmd | [
"MIT"
] |
Rebol [
title: "Required value for needs url test"
]
export test-needs-url-value: 42
| Rebol | 1 | 0branch/r3 | src/tests/units/files/test-needs-url-value.reb | [
"Apache-2.0"
] |
--TEST--
Bug #76466 Loop variable confusion
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--EXTENSIONS--
opcache
--FILE--
<?php
function foo() {
for ($i = 0; $i < 2; $i++) {
$field_array[] = [$i, 0];
}
var_dump($field_array);
}
foo();
?>
--EXPECT--
array(2) {
[0]=>
... | PHP | 4 | NathanFreeman/php-src | ext/opcache/tests/bug76466.phpt | [
"PHP-3.01"
] |
# Intel framework support for SSL certificate subjects
# CrowdStrike 2014
# josh.liburdi@crowdstrike.com
@load base/protocols/ssl
@load base/frameworks/intel
@load policy/frameworks/intel/seen/where-locations
event ssl_established(c: connection)
{
if ( c$ssl?$subject )
Intel::seen([$indicator=c$ssl$subject,
... | Bro | 4 | kingtuna/cs-bro | bro-scripts/intel-extensions/seen/ssl-certificates.bro | [
"BSD-2-Clause"
] |
--TEST--
Bug #70253 (segfault at _efree () in zend_alloc.c:1389)
--FILE--
<?php
unserialize('a:2:{i:0;O:9:"000000000":10000000');
?>
--EXPECTF--
Notice: unserialize(): Error at offset 33 of 33 bytes in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/bug70253.phpt | [
"PHP-3.01"
] |
{- Copyright (c) 2011 Luis Cabellos,
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | C2hs Haskell | 5 | jpwidera/opencl | src/Control/Parallel/OpenCL/CommandQueue.chs | [
"BSD-3-Clause"
] |
h2. Plugin
TBD
endprologue. | Textile | 0 | luciany/Aloha-Editor | doc/guides/source/plugin_zemanta.textile | [
"CC-BY-3.0"
] |
FOR WRITE "SPAM",!
| M | 1 | LaudateCorpus1/RosettaCodeData | Task/Loops-Infinite/MUMPS/loops-infinite.mumps | [
"Info-ZIP"
] |
[
{
"baidu": 95,
"author": "王奕",
"title": "金餘元遺山來拜祖庭有紀行十首遂倚歌之先後殊時感慨一也 和元遺山九首",
"so360": 56,
"bing": 16500,
"bing_en": 100,
"google": 314
},
{
"baidu": 20800,
"author": "王奕",
"title": "金餘元遺山來拜祖庭有紀行十首遂倚歌之先後殊時感慨一也 和元遺山十首",
... | JSON | 1 | js882829/chinese-poetry | rank/poet/poet.song.rank.224000.json | [
"MIT"
] |
package com.baeldung.spring.cloud.aws.ec2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
@Lazy
@Component
public class EC2Metadata {
@Value("${ami-id:N/A}")
private String amiId;
@Value("${h... | Java | 4 | zeesh49/tutorials | spring-cloud/spring-cloud-aws/src/main/java/com/baeldung/spring/cloud/aws/ec2/EC2Metadata.java | [
"MIT"
] |
signature dpd_rfb_server {
ip-proto == tcp
payload /^RFB/
tcp-state responder
requires-reverse-signature dpd_rfb_client
enable "rfb"
}
signature dpd_rfb_client {
ip-proto == tcp
payload /^RFB/
tcp-state originator
}
| Standard ML | 4 | yaplej/bro | scripts/base/protocols/rfb/dpd.sig | [
"Apache-2.0"
] |
@import "~/foo"
@import "~/bar.sass"
.index
background: #ffffff
color: #000000 | Sass | 3 | johanberonius/parcel | packages/core/integration-tests/test/integration/sass-advanced-import/index.sass | [
"MIT"
] |
% ----------------------------------------------------------------------
% This code accompanies the article
%
% J. Schimpf: Logical Loops, ICLP 2002
%
% Author: Joachim Schimpf, IC-Parc, Imperial College, London
% Copyright (C) Imperial College London and Parc Technologies 1997-2002
%
% This source code is provided "a... | Logtalk | 4 | PaulBrownMagic/logtalk3 | library/do_loops.lgt | [
"Apache-2.0"
] |
'$Revision:$'
'
Copyright 1992-2014 AUTHORS.
See the legal/LICENSE file for license information and legal/AUTHORS for authors.
'
["preFileIn" self] value
'-- Module body'
bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'modules' -> () From: ( | {
'ModuleInfo: Module: vncViewer InitialContents: Foll... | Self | 5 | ajnavarro/language-dataset | data/github.com/doublec/self-vncviewer/358ba1134a1ee0246d251649d940ceaa91f88028/applications/vncViewer.self | [
"MIT"
] |
s 0 0 10 10
c 0 10 10 0 20 10
| Arc | 0 | ffteja/cgal | GraphicsView/demo/Circular_kernel_2/arcs.arc | [
"CC0-1.0"
] |
use Datascope;
use Datascope::db2sql;
use Datascope::dbmon;
$dbname = "/opt/antelope/data/db/demo/demo";
$flags = 0;
@db = dbopen( $dbname, "r" );
@db = dblookup( @db, "", "origin", "", "" );
$db[3] = 0;
@sqlcommands = db2sqlinsert( @db, \&dbmon_compute_row_sync, $flags );
$sync = dbmon_compute_row_sync( @db );... | XProc | 3 | jreyes1108/antelope_contrib | nobuild/lib/perl/db2sql/certify/try_sqldelete.xpl | [
"BSD-2-Clause",
"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.
*
* @flow
*/
export const moduleAStartError = new Error();
export const innerErrorA = new Error();
export const moduleAStopError = ... | JavaScript | 3 | GBKstc/react-analysis | packages/react-devtools-timeline/src/content-views/utils/__tests__/__modules__/module-two.js | [
"MIT"
] |
//
// YMThemeSettingWindowViewController.h
// WeChatGirlFriend
//
// Created by MustangYM on 2021/7/2.
// Copyright © 2021 YY Inc. All rights reserved.
//
#import <Cocoa/Cocoa.h>
NS_ASSUME_NONNULL_BEGIN
@interface YMThemeSettingWindowViewController : NSWindowController
@end
NS_ASSUME_NONNULL_END
| C | 1 | TJRoger/WeChatExtension-ForMac | WeChatExtension/WeChatExtension/Sources/WindowControllers/Banksy/YMThemeSettingWindowViewController.h | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.1.4)-1")
(general
(thickness 1.6)
(drawings 19)
(tracks 85)
(zones 0)
(modules 14)
(nets 11)
)
(page User 150.012 150.012)
(title_block
(title "Unified Daughterboard")
(date 2020-03-22)
(rev C3)
(company "Designed by the ke... | KiCad | 5 | jstein91/Unified-Daughterboard | KiCad/C3/Unified-Daughterboard.kicad_pcb | [
"MIT"
] |
# cython: infer_types=True
import numpy
from libcpp.vector cimport vector
from ._state cimport ArcC
from ...tokens.doc cimport Doc
cdef class StateClass:
def __init__(self, Doc doc=None, int offset=0):
self._borrowed = 0
if doc is not None:
self.c = new StateC(doc.c, doc.length)
... | Cython | 4 | snosrap/spaCy | spacy/pipeline/_parser_internals/stateclass.pyx | [
"MIT"
] |
(ns wisp.test.sequence
(:require [wisp.test.util :refer [is thrown?]]
[wisp.src.sequence :refer [cons conj into disj list list? empty seq vec vector
range empty? count first second third rest last butlast
take take-while drop dr... | wisp | 5 | rcarmo/wisp | test/sequence.wisp | [
"BSD-3-Clause"
] |
extends GridContainer
# Node, shortcut
onready var tools := [
[$RectSelect, "rectangle_select"],
[$EllipseSelect, "ellipse_select"],
[$PolygonSelect, "polygon_select"],
[$ColorSelect, "color_select"],
[$MagicWand, "magic_wand"],
[$Lasso, "lasso"],
[$Move, "move"],
[$Zoom, "zoom"],
[$Pan, "pan"],
[$ColorPick... | GDScript | 4 | triptych/Pixelorama | src/UI/ToolButtons.gd | [
"MIT"
] |
{-# LANGUAGE FlexibleInstances, KindSignatures, MultiParamTypeClasses, TypeOperators #-}
module Control.Effect.Sum.Project
( Project (..)
) where
import Control.Effect.Sum
class Member sub sup => Project (sub :: (* -> *) -> (* -> *)) sup where
prj :: sup m a -> Maybe (sub m a)
instance Project sub sub where
prj... | Haskell | 4 | Temurson/semantic | src/Control/Effect/Sum/Project.hs | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M9.25,4.75v8.38... | XML | 3 | Imudassir77/material-design-icons | android/navigation/arrow_downward/materialiconsround/black/res/drawable/round_arrow_downward_20.xml | [
"Apache-2.0"
] |
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local meths = helpers.meths
local eq, nvim_eval, nvim_command, exc_exec =
helpers.eq, helpers.eval, helpers.command, helpers.exc_exec
local ok = helpers.ok
local NIL = helpers.NIL
describe('autoload/msgpack.vim', function()
... | Lua | 5 | uga-rosa/neovim | test/functional/plugin/msgpack_spec.lua | [
"Vim"
] |
REBOL []
#do [include-ctx/push [%../../../r3-gui/release/]]
#include-check %r3-gui.r3
#do [include-ctx/pop]
dpi: gui-metric 'screen-dpi
gui-metric/set 'unit-size dpi / 96
scr: round/floor (gui-metric 'work-size) - gui-metric 'title-size
img: decode 'jpeg #include-binary %clouds.jpg
;print ""
view... | Rebol | 4 | Pointillistic/rebol-lang | release/android/demo-script.r3 | [
"Apache-2.0"
] |
import Util;
import RPC;
import EndpointUtil;
extends RPC;
init(config: RPC.Config){
super(config);
@endpointRule = 'central';
checkConfig(config);
@endpoint = getEndpoint('pts', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
model DescribeConfigRequest = {
routeRequestBody?: m... | Tea | 4 | alibabacloud-sdk-swift/alibabacloud-sdk | pts-20190810/main.tea | [
"Apache-2.0"
] |
--TEST--
SPL: ArrayObject
--FILE--
<?php
echo "-- Two empty iterators attached with infos that are different but same array key --\n";
$mit = new MultipleIterator(MultipleIterator::MIT_KEYS_ASSOC);
$mit ->attachIterator(new EmptyIterator(), "2");
$mit ->attachIterator(new EmptyIterator(), 2);
var_dump($mit->countItera... | PHP | 4 | thiagooak/php-src | ext/spl/tests/bug70053.phpt | [
"PHP-3.01"
] |
;; Test for ordering flavor components.
;; The ordering should be:
;;
;; pastry -> pastry cinnamon spice apple fruit food
;; pie -> pie pastry cinnamon spice apple fruit food
(include-file "include/flavors.lfe")
(defflavor pie () (pastry apple cinnamon))
(endflavor pie)
(defflavor pastry () (cinnamon apple))
(endfla... | LFE | 4 | rvirding/flavors | test/more-components.lfe | [
"Apache-2.0"
] |
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<script language="JavaScript">
function _onLoad()
{
if (location.href == "about:blank")
document.getElementById("fail").innerHTML = "... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/misc/resources/location-test-xsl-style-sheet.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
--TEST--
The ASSIGN_OBJ_OP cache slot is on the OP_DATA opcode
--FILE--
<?php
function test($a) {
$b = "x";
$a->$b = 1;
$a->$b &= 1;
var_dump($a->$b);
}
test(new stdClass);
?>
--EXPECT--
int(1)
| PHP | 3 | NathanFreeman/php-src | Zend/tests/assign_obj_op_cache_slot.phpt | [
"PHP-3.01"
] |
$!
$! Startup file for OpenSSL 1.x.
$!
$! 2011-03-05 SMS.
$!
$! This procedure must reside in the OpenSSL installation directory.
$! It will fail if it is copied to a different location.
$!
$! P1 qualifier(s) for DEFINE. For example, "/SYSTEM" to get the
$! logical names defined in the system logical name table.
... | DIGITAL Command Language | 4 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/openssl-1.0.2o/VMS/openssl_startup.com | [
"Apache-2.0"
] |
test state:
test.succeed_without_changes:
- name: test
| SaltStack | 1 | byteskeptical/salt | tests/integration/files/file/base/test.sls | [
"Apache-2.0"
] |
rule testrule
command = echo $in
input2_var = input2
| Ninja | 0 | uraimo/swift-llbuild | tests/Ninja/Loader/Inputs/include-b.ninja | [
"Apache-2.0"
] |
fun test() {
<!CONFLICTING_OVERLOADS!>fun test1()<!> {}
<!CONFLICTING_OVERLOADS!>fun test1()<!> {}
fun Any.test2() {}
fun test2(x: Any) = x
<!CONFLICTING_OVERLOADS!>fun Any.test3()<!> {}
<!CONFLICTING_OVERLOADS!>fun Any.test3()<!> {}
<!CONFLICTING_OVERLOADS!>fun test4(): Int<!> = 0
<!... | Kotlin | 2 | qussarah/declare | compiler/testData/diagnostics/tests/overload/LocalFunctions.kt | [
"Apache-2.0"
] |
INSERT INTO person(id,first_name,last_name) VALUES (1,'John','Doe');
INSERT INTO address(id,person_id,state,city,street,zip_code) VALUES (1,1,'CA', 'Los Angeles', 'Standford Ave', '90001'); | SQL | 3 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-query/src/test/resources/projection-insert-data.sql | [
"MIT"
] |
use super::SnapshotMap;
#[test]
fn basic() {
let mut map = SnapshotMap::default();
map.insert(22, "twenty-two");
let snapshot = map.snapshot();
map.insert(22, "thirty-three");
assert_eq!(map[&22], "thirty-three");
map.insert(44, "forty-four");
assert_eq!(map[&44], "forty-four");
assert_... | Rust | 4 | Eric-Arellano/rust | compiler/rustc_data_structures/src/snapshot_map/tests.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Test crc32() function : usage variations - heredoc strings
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4)
die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
/*
* Testing crc32() : with different heredoc strings passed to the str argument
*/
echo "*** Testing crc32() : with different heredoc strin... | PHP | 5 | NathanFreeman/php-src | ext/standard/tests/strings/crc32_variation4.phpt | [
"PHP-3.01"
] |
#! /bin/sh -e
# DP: Proposed patch for PR target/34571 (alpha)
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/pr34571.dpatch | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("circle", {
cx: "9",
cy: "13",
r: "1.25"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M17.5 10c.75 0 1.47-.09 2.17-.24.21.71.33 1.46.33 2.24 0 1.22-.28 2.37-.77 3.4l1.4... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/FaceRetouchingOffRounded.js | [
"MIT"
] |
.syntax--source.syntax--ruby {
.syntax--constant.syntax--other.syntax--symbol > .syntax--punctuation {
color: inherit;
}
}
| Less | 0 | davidbertsch/atom | packages/one-light-syntax/styles/syntax/ruby.less | [
"MIT"
] |
@import '~@/colors.styl'
body
color $red
| Stylus | 2 | dev-itsheng/wepy | packages/compiler-stylus/test/fixtures/stylus/alias.styl | [
"BSD-3-Clause"
] |
BEGIN {
FS = "\t";
len = 0;
# Print header
print "Usage: cd [OPTIONS] [dir]"
print ""
print "OPTIONS:"
}
# Skip commented line starting with # or //
/^(#|\/\/)/ { next }
{
len++;
condition = ltsv("condition")
if (condition != "") {
command = sprintf("%s &>/dev/null", cond... | Awk | 4 | d3dave/enhancd | functions/enhancd/lib/help.awk | [
"MIT"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef CLUSTERING_ADMINISTRATION_DATUM_ADAPTER_HPP_
#define CLUSTERING_ADMINISTRATION_DATUM_ADAPTER_HPP_
#include <set>
#include <string>
#include <vector>
#include "clustering/administration/admin_op_exc.hpp"
#include "containers/name_string.hpp"
#include "rdb_... | C++ | 4 | zadcha/rethinkdb | src/clustering/administration/datum_adapter.hpp | [
"Apache-2.0"
] |
(ns lt.objs.docs
"Provide command to see LT documentation"
(:require [lt.objs.command :as cmd]))
(cmd/command {:command :show-docs
:desc "Docs: Open Light Table's documentation"
:exec (fn []
(cmd/exec! :add-browser-tab "http://docs.lighttable.com/"))})
| Clojure | 4 | sam-aldis/LightTable | src/lt/objs/docs.cljs | [
"MIT"
] |
#! /usr/local/bin/octave
global dx = 1;
function y = basis (x)
y = 0;
global dx;
x = x / dx;
if (abs(x) < 2)
if (x < 0)
y = 0.25 * (2 + x)^3;
else
y = 0.25 * (2 - x)^3;
endif
if (abs(x) < 1)
if (x < 0)
y = y - (1 + x)^3;
else
y = y - (1 - x)^3;
endif
endif
endif
endfunction
func... | Octave | 5 | TrentWeiss/bspline | Design/basis.oct | [
"BSD-3-Clause"
] |
{% skip_file if flag?(:without_interpreter) %}
require "./spec_helper"
describe Crystal::Repl::Interpreter do
context "procs" do
it "interprets no args proc literal" do
interpret(<<-CODE).should eq(42)
proc = ->{ 40 }
proc.call + 2
CODE
end
it "interprets proc literal with ar... | Crystal | 5 | jessedoyle/crystal | spec/compiler/interpreter/procs_spec.cr | [
"Apache-2.0"
] |
/* eslint-env jest */
import cheerio from 'cheerio'
import { findPort, killApp, launchApp, renderViaHTTP } from 'next-test-utils'
import webdriver from 'next-webdriver'
import fetch from 'node-fetch'
import { join } from 'path'
const context = {}
describe('Configuration', () => {
beforeAll(async () => {
contex... | JavaScript | 4 | blomqma/next.js | test/integration/config/test/index.test.js | [
"MIT"
] |
module.exports = {
pathPrefix: `/prefix`,
}
| JavaScript | 2 | cwlsn/gatsby | examples/using-path-prefix/gatsby-config.js | [
"MIT"
] |
/* Copyright 2018 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... | C | 4 | abhaikollara/tensorflow | tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h | [
"Apache-2.0"
] |
camera {
location <0, 0, -200>
look_at <0, 0, 0>
}
light_source {
<200, 0, -100>
color rgb <1, 1, 1> * 2
}
sphere {
<0, 0, 0>, 58.232
pigment{
image_map {
jpeg "map/moonmap.jpg"
map_type 1
}
}
rotate <0, -90, 0>
}
| POV-Ray SDL | 3 | spcask/pov-ray-tracing | src/scene17.pov | [
"MIT"
] |
/*
* Copyright 2010-2018 JetBrains s.r.o.
*
* 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 agre... | C++ | 4 | benasher44/kotlin-native | runtime/src/main/cpp/Boxing.cpp | [
"ECL-2.0",
"Apache-2.0"
] |
"""Support for Octoprint buttons."""
from pyoctoprintapi import OctoprintClient, OctoprintPrinterInfo
from homeassistant.components.button import ButtonEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import HomeAssistantError
from h... | Python | 5 | MrDelik/core | homeassistant/components/octoprint/button.py | [
"Apache-2.0"
] |
/*
Copyright © 2011, 2012 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ... | Opa | 4 | Machiaweliczny/oppailang | lib/stdlib/core/rpc/core/limits.opa | [
"MIT"
] |
/* Copyright 2018 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... | C++ | 4 | yage99/tensorflow | tensorflow/lite/kernels/unpack_test.cc | [
"Apache-2.0"
] |
#pragma once
// NOLINT(namespace-envoy)
// This file is part of the QUICHE platform implementation, and is not to be
// consumed or referenced directly by other Envoy code. It serves purely as a
// porting layer for QUICHE.
#include "absl/strings/string_view.h"
namespace quic {
// NOLINTNEXTLINE(readability-identi... | C | 2 | dcillera/envoy | source/common/quic/platform/quic_testvalue_impl.h | [
"Apache-2.0"
] |
--TEST--
ldap_exop_whoami() - EXOP whoami operation
--CREDITS--
Côme Chilliet <mcmic@php.net>
--EXTENSIONS--
ldap
--SKIPIF--
<?php require_once('skipifbindfailure.inc'); ?>
--FILE--
<?php
require "connect.inc";
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
insert_dummy_data($link, $ba... | PHP | 3 | NathanFreeman/php-src | ext/ldap/tests/ldap_exop_whoami.phpt | [
"PHP-3.01"
] |
import generateUtilityClasses from '../generateUtilityClasses';
import generateUtilityClass from '../generateUtilityClass';
export interface ModalUnstyledClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if the `Modal` has exited. */
hidden: string;
}
ex... | TypeScript | 4 | good-gym/material-ui | packages/material-ui-unstyled/src/ModalUnstyled/modalUnstyledClasses.ts | [
"MIT"
] |
#+OPTIONS: H:3 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
#+STARTUP: align fold nodlcheck hidestars oddeven lognotestate
#+SEQ_TODO: TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
#+TAGS: Write(w) Update(u) Fix(f) Check(c)
#+TITLE: org... | Org | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Org/org.org | [
"MIT"
] |
/*
Copyright 2020 Scott Bezek and the splitflap contributors
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 app... | OpenSCAD | 4 | chrisdearman/splitflap | 3d/tools/scoring_jig.scad | [
"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.
*---------------------------------------------------------------... | JavaScript | 3 | Dlitosh/vscode | src/vs/workbench/buildfile.desktop.js | [
"MIT"
] |
%
% each variable is represented by a node in a binary tree.
% each node contains:
% key,
% current_value
% Markov Blanket
%
:- module(clpbn_gibbs,
[gibbs/3,
check_if_gibbs_done/1,
init_gibbs_solver/4,
run_gibbs_solver/3
]).
:- use_module(library(rbtrees),
[rb_new/1,
rb_insert/4,
rb_lookup/3
]... | Prolog | 4 | ryandesign/yap | packages/CLPBN/clpbn/gibbs.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
!include "${NSISDIR}\Contrib\Modern UI 2\MUI2.nsh" | NSIS | 0 | etaletai13/nwjs-builder-phoenix | assets/nsis/Include/MUI2.nsh | [
"MIT"
] |
--TEST--
Bug #62991 (Segfault with generator and closure)
--FILE--
<?php
function test( array $array )
{
$closure = function() use ( $array ) {
print_r( $array );
yield "hi";
};
return $closure();
}
function test2( array $array )
{
$closure = function() use ( $array ) {
print_r... | PHP | 4 | guomoumou123/php5.5.10 | Zend/tests/bug62991.phpt | [
"PHP-3.01"
] |
/*
* 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 ... | G-code | 3 | openrefactory/cassandra | src/antlr/Cql.g | [
"Apache-2.0"
] |
FROM node:current
RUN npm install -g @microsoft/rush
RUN git clone --depth 1 https://github.com/Azure/azure-sdk-for-js.git /azure-sdk
WORKDIR /azure-sdk
RUN rush update
WORKDIR /azure-sdk/sdk/core/core-http
# Sync up all TS versions used internally so they're all linked from a known location
RUN rush add -p "typ... | Dockerfile | 3 | monciego/TypeScript | tests/cases/docker/azure-sdk/Dockerfile | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/HTML/HTMLElement.h>
namespace Web::HTML {
class HTMLTableCellElement final : public HTMLElement {
public:
using WrapperType = Bindings::HTMLTableCellElementWrapper;
H... | C | 3 | r00ster91/serenity | Userland/Libraries/LibWeb/HTML/HTMLTableCellElement.h | [
"BSD-2-Clause"
] |
export { default } from './Hidden';
export * from './Hidden';
| TypeScript | 2 | omidtajik/material-ui | packages/material-ui/src/Hidden/index.d.ts | [
"MIT"
] |
import path from "path"
export function fixedPagePath(pagePath: string): string {
return pagePath === `/` ? `index` : pagePath
}
export function generatePageDataPath(
publicDir: string,
pagePath: string
): string {
return path.join(
publicDir,
`page-data`,
fixedPagePath(pagePath),
`page-data.j... | TypeScript | 4 | waltercruz/gatsby | packages/gatsby-core-utils/src/page-data.ts | [
"MIT"
] |
frequency,raw
20.00,-3.11
20.20,-3.11
20.40,-3.12
20.61,-3.12
20.81,-3.13
21.02,-3.13
21.23,-3.14
21.44,-3.15
21.66,-3.16
21.87,-3.17
22.09,-3.17
22.31,-3.17
22.54,-3.16
22.76,-3.16
22.99,-3.15
23.22,-3.11
23.45,-3.07
23.69,-3.03
23.92,-2.99
24.16,-2.94
24.40,-2.90
24.65,-2.84
24.89,-2.80
25.14,-2.75
25.39,-2.71
25.65,... | CSV | 0 | vinzmc/AutoEq | measurements/innerfidelity/data/onear/Audeze LCD-X/Audeze LCD-X.csv | [
"MIT"
] |
#!/usr/bin/osascript
# Dependency: This script requires Pixelmator Pro to be installed: https://www.pixelmator.com/pro/
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Open Image From Clipboard
# @raycast.mode silent
# @raycast.packageName Pixelmator Pro
# Optional parameters:
# @raycast.icon ./im... | AppleScript | 4 | daviddzhou/script-commands | commands/navigation/open-clipboard-in-pixelmator-pro.applescript | [
"MIT"
] |
%h3 404 Not Found
%hr
%p Page Not Found.
| Scaml | 1 | mohno007/skinny-framework | skinny-blank-app/src/main/webapp/WEB-INF/views/error/404.html.scaml | [
"MIT"
] |
--SET spark.sql.legacy.timeParserPolicy=LEGACY
--IMPORT date.sql
--IMPORT timestamp.sql
| SQL | 1 | akhalymon-cv/spark | sql/core/src/test/resources/sql-tests/inputs/datetime-legacy.sql | [
"Apache-2.0"
] |
$!
$ olddir = f$environment("default")
$ on error then goto End
$!
$ gosub Init
$!
$ call WriteProductDescriptionFile
$ call WriteProductTextFile
$!
$! backup tree
$!
$ backup [-...]*.*;0/excl=([]*.exe,*.obj,*.opt,*.hlp,*.hlb,*.bck,*.com,*.pcsi*) -
libssh2-'versionname''datename'_src.bck/save
$ purge libssh2-'versi... | Clean | 3 | ilineicry/amr | deps/libssh/vms/libssh2_make_kit.dcl | [
"MIT"
] |
# Automatically generated by generate_stack_urls.py
stack_ghc_src() {
if [ "$1" = "7.8.4" ]; then
echo "https://github.com/commercialhaskell/ghc/releases/download/ghc-7.8.4-release/ghc-7.8.4-x86_64-fedora24-linux-patch1.tar.xz -> ghc-tinfo6-7.8.4.tar.xz"
elif [ "$1" = "7.10... | Gentoo Eclass | 2 | rdnetto/rdnetto-overlay | eclass/stack_urls.eclass | [
"Apache-2.0"
] |
(ns rabbitmq.tutorials.receive-logs-direct
(:require [langohr.core :as lc]
[langohr.channel :as lch]
[langohr.exchange :as le]
[langohr.queue :as lq]
[langohr.basic :as lb]
[langohr.consumers :as lcons]))
(def ^{:const true} x "direct_logs")
(defn handle-d... | Clojure | 5 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | clojure/src/rabbitmq/tutorials/receive_logs_direct.clj | [
"Apache-2.0"
] |
# Ekam Build System
# Author: Kenton Varda (kenton@sandstorm.io)
# Copyright (c) 2010-2015 Kenton Varda, Google Inc., and contributors.
#
# 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
#
# htt... | Cap'n Proto | 5 | abliss/ekam | qtcreator/dashboard.capnp | [
"Apache-2.0"
] |
struct Size:
Width as int
Height as int
s = Size()
assert 0 == s.Width
assert 0 == s.Height
| Boo | 3 | popcatalin81/boo | tests/testcases/regression/BOO-195-1.boo | [
"BSD-3-Clause"
] |
// Copyright(c) 2022 https://github.com/WangXuan95
package TbSPIFlashController;
import StmtFSM::*;
import SPIFlashController::*;
module mkTb ();
let spiflash_ctrl <- mkSPIFlashController;
function Action read_and_show;
return action
let read_byte <- spiflash_ctrl.read_by... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/SPIFlash/TbSPIFlashController.bsv | [
"MIT"
] |
" Vim syntax file
" Language: Conary Recipe
" Maintainer: rPath Inc <http://www.rpath.com>
" Updated: 2007-12-08
if exists("b:current_syntax")
finish
endif
runtime! syntax/python.vim
syn keyword conarySFunction mainDir addAction addSource addArchive addPatch
syn keyword conarySFunction addRedirect addSvnSnapshot a... | VimL | 2 | uga-rosa/neovim | runtime/syntax/conaryrecipe.vim | [
"Vim"
] |
import time
import os
from selenium import webdriver
driver = webdriver.Chrome(os.environ['CHROMEDRIVER'])
try:
print driver.current_url
id = driver.find_element_by_id('nwjsver')
print id.text
finally:
driver.quit()
| Python | 4 | namaljayathunga/nw.js | test/remoting/start-page/test.py | [
"MIT"
] |
.webp-img {
background-image: url('data-url:parcel.webp')
}
| CSS | 2 | zowesiouff/parcel | packages/core/integration-tests/test/integration/data-url/binary.css | [
"MIT"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "./ContextMock.sol";
import "../metatx/ERC2771Context.sol";
// By inheriting from ERC2771Context, Context's internal functions are overridden automatically
contract ERC2771ContextMock is ContextMock, ERC2771Context {
/// @custom:oz-upgrades-unsafe-al... | Solidity | 4 | FractionalDev/openzeppelin-contracts | contracts/mocks/ERC2771ContextMock.sol | [
"MIT"
] |
@prefix e.g: <http://www.w3.org/2013/TurtleTests/> .
e.g:s e.g:p e.g:o .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-ns-dots.ttl | [
"CC-BY-3.0"
] |
<div class="alert alert-error error_answer"></div>
<p class="first_question"><strong>How can service availability be restored?</strong></p>
<p>
To restore service availability, this server either needs to rejoin
the cluster or be permanently removed.
</p>
<p><strong>What does re... | Handlebars | 2 | zadcha/rethinkdb | admin/static/handlebars/declare_server_dead-modal.hbs | [
"Apache-2.0"
] |
;; Test that the --bigint option prevents i64s from being split up
;; Run without --bigint to get a baseline
;; RUN: wasm-emscripten-finalize %s -S | filecheck %s --check-prefix MVP
;; Then run with --bigint to see the difference
;; RUN: wasm-emscripten-finalize %s -S --bigint | filecheck %s --check-prefix BIGINT
;;... | WebAssembly | 4 | phated/binaryen | test/lit/wasm-emscripten-finalize/bigint.wat | [
"Apache-2.0"
] |
// assembly-output: ptx-linker
// compile-flags: --crate-type cdylib -C target-cpu=sm_50
// only-nvptx64
// ignore-nvptx64
#![no_std]
// aux-build: breakpoint-panic-handler.rs
extern crate breakpoint_panic_handler;
// Verify target arch override via `target-cpu`.
// CHECK: .target sm_50
// CHECK: .address_size 64
| Rust | 3 | Eric-Arellano/rust | src/test/assembly/nvptx-arch-target-cpu.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
REBOL [
Title: "Red/System dynamic linbary compiler test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %dylib-test.r
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
change-dir %../
~~~s... | R | 4 | 0xflotus/red | system/tests/source/compiler/dylib-test.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2013 HPCC Systems®.
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... | ECL | 4 | miguelvazq/HPCC-Platform | ecl/regress/issue9610b.ecl | [
"Apache-2.0"
] |
; CREDITS @pfoerster (adapted from https://github.com/latex-lsp/tree-sitter-bibtex)
[
(string_type)
(preamble_type)
(entry_type)
] @keyword
[
(junk)
(comment)
] @comment
[
"="
"#"
] @operator
(command) @function.builtin
(number) @number
(field
name: (identifier) @field)
(token
(identifier) @par... | Scheme | 4 | hmac/nvim-treesitter | queries/bibtex/highlights.scm | [
"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.
*)
type msg =
| Ready
| Updates of SSet.t
val entry_point : (string * Path.t list, unit, msg) Daemon.entry
| OCaml | 3 | Hans-Halverson/flow | src/hack_forked/dfind/dfindServer.mli | [
"MIT"
] |
static const q31_t in_com1[300] = {
0x105553F0, 0xD9F3A4C5, 0x07BF0B25, 0x29C5F709,
0xDC857ADA, 0xCD8EA20C, 0x17619FE0, 0xD9EE30D0,
0xEBDF964F, 0xF6C715E8, 0x38377595, 0x51826D27,
0xDD054DB9, 0xEF771631, 0xFBA0A84E, 0xFFC25F1E,
0x69600EEF, 0x14E7187C, 0x32E73439, 0xB8BB8D01,
0xDA277F3D, 0x347197... | Max | 2 | psychogenic/zephyr | tests/lib/cmsis_dsp/statistics/src/q31.pat | [
"Apache-2.0"
] |
redo-ifchange ab c
echo "doing abc" >&2
echo abc >$3
touch doing_abc
| Stata | 2 | BlameJohnny/redo | t/s60-stamp/abc.do | [
"Apache-2.0"
] |
B
less_equalJ< |