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 |
|---|---|---|---|---|---|
# frozen_string_literal: true
require "action_view/renderer/partial_renderer/collection_caching"
module ActionView
# = Action View Partials
#
# There's also a convenience method for rendering sub templates within the current controller that depends on a
# single object (we call this kind of sub templates for ... | Ruby | 5 | jstncarvalho/rails | actionview/lib/action_view/renderer/partial_renderer.rb | [
"MIT"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "BGPView"
type = "api"
function start()
set_rate_limit(1)
end
function asn(ctx, addr, asn)
local prefix
if (asn == 0) ... | Ada | 4 | Elon143/Amass | resources/scripts/api/bgpview.ads | [
"Apache-2.0"
] |
Ground val = 42
| Ioke | 0 | olabini/ioke | test/load1.ik | [
"ICU",
"MIT"
] |
#include "io_ray_streaming_runtime_transfer_DataReader.h"
#include <cstdlib>
#include "data_reader.h"
#include "runtime_context.h"
#include "streaming_jni_common.h"
using namespace ray;
using namespace ray::streaming;
JNIEXPORT jlong JNICALL
Java_io_ray_streaming_runtime_transfer_DataReader_createDataReaderNative(
... | C++ | 4 | firebolt55439/ray | streaming/src/lib/java/io_ray_streaming_runtime_transfer_DataReader.cc | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// load test related files into bundle in correct order
import '../zone-spec/long-stack-trace';
import '../zone-spec/... | TypeScript | 2 | raghavendramohan/angular | packages/zone.js/lib/testing/zone-testing.ts | [
"MIT"
] |
/*
* Copyright 2005-2010 LAMP/EPFL
*/
// $Id$
package scala.tools.eclipse.contribution.weaving.jdt.core;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelExcep... | AspectJ | 4 | dragos/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/core/NameLookupAspect.aj | [
"BSD-3-Clause"
] |
.//====================================================================
.//
.// File: $RCSfile: class2table.arc,v $
.// Version: $Revision: 1.1.2.1 $
.// Modified: $Date: 2004/09/24 22:00:53 $
.//
.// (c) Copyright 2003-2014 Mentor Graphics Corporation All rights reserved.
.//
.//==============================... | Arc | 4 | FMAY-Software/bridgepoint | src/org.xtuml.bp.io.core/arc/class2table.arc | [
"Apache-2.0"
] |
0 reg32_t "dword"
1 num32_t "int"
2 code_t "proc*"
2 code_t "(unsigned int -> int)*"
3 ptr(struct(0:num32_t,4:ptr(TOP),8:ptr(TOP))) "_SCOPETABLE_ENTRY*"
4 uint32_t "UINT"
5 ptr(TOP) "LPVOID"
6 union(code_t,ptr(num32_t)) "Union_16"
7 ptr(num8_t) "char*"
8 reg16_t "word"
9 num16_t "short"
10 num8_t "char"
5 ptr(TOP) "voi... | BlitzBasic | 3 | matt-noonan/retypd-data | data/glut32.dll.decls | [
"MIT"
] |
// Copyright (c) 2021 Bluespec, Inc. All Rights Reserved
// ================================================================
// Definition of PC Trace Packets.
// The CPU sends out such a packet on each cycle.
// The SoC may sub-sample or compress the packet stream (to save
// bandwidth), record it in a file (in simu... | Bluespec | 4 | darius-bluespec/Flute | src_Core/ISA/PC_Trace.bsv | [
"Apache-2.0"
] |
label ccd0016b:
太一 "「美希にお礼をしなきゃな」"
call gl(0,"bgcc0008")
call gl(1,"TCYM0000|TCYM0000")
call gp(1,t=center)#x=180
call vsp(2,0)
call vsp(0,1)
call vsp(1,1)
with Dissolve(500.0/1000.0)
voice "vfCCD0001mki043"
美希 "「えー、いーですよ、そんな……」"
"でも期待にもじもじしちゃう美希ちんであった。"
"性欲が羞恥心を塗りつぶす。"
... | Ren'Py | 2 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccd/ccd0016b.rpy | [
"Apache-2.0"
] |
1 metro 60 mtof 0.1 100 pluck
| SourcePawn | 0 | brandenbyers/Sporth | examples/pluck_simple.sp | [
"MIT"
] |
#tag Window
Begin Window UpdateWindow
BackColor = "#Colors.White"
Backdrop = ""
CloseButton = True
Composite = False
Frame = 4
FullScreen = False
HasBackColor = False
Height = 170
ImplicitInstance= True
LiveResi... | REALbasic | 5 | carlbennett/BNRBot | src/Windows/UpdateWindow.rbfrm | [
"MIT"
] |
<% cache do %>
Old fragment caching in a partial
<% end %>
| HTML+ERB | 1 | mdesantis/rails | actionpack/test/fixtures/functional_caching/_partial.erb | [
"MIT"
] |
{
"@context": {
"@vocab": "http://vocab.org/",
"@protected": true,
"bar": "http://ignored.org/bar",
"foo": {
"@context": {
"bar": "http://example.org/other"
}
}
},
"@id": "ex:outer",
"foo": {
"@id": "ex:inner",
"bar": "baz"
}
} | JSONLD | 3 | donbowman/rdflib | test/jsonld/1.1/toRdf/pr40-in.jsonld | [
"BSD-3-Clause"
] |
void selectionSort(int * arr, int n)
for i = 0; i < n; i++
for j = i+1; j < n; j++
if arr[i] > arr[j]
aux = arr[i]
arr[i] = arr[j]
arr[j] = aux | COBOL | 3 | saviour07/CPY | Examples/Selection Sort/sort.cpy | [
"MIT"
] |
# The Tensor classes are added to this module by python_tensor.cpp
| Python | 0 | Hacky-DH/pytorch | torch/cuda/sparse.py | [
"Intel"
] |
// Copyright 2020 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_TEST_INSPECTOR_TASKS_H_
#define V8_TEST_INSPECTOR_TASKS_H_
#include <vector>
#include "include/v8-context.h"
#include "include/v8-function.... | C | 4 | EXHades/v8 | test/inspector/tasks.h | [
"BSD-3-Clause"
] |
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<html>
<head>
<title> Test XSLT </title>
<script>
window.onload = () => {
let message;
try {
document.domain = docume... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/permissions-policy/resources/permissions-policy-iframe.xslt | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
abstract A(String) {}
| Haxe | 0 | jonasmalacofilho/haxe | tests/misc/projects/Issue2996/A.hx | [
"MIT"
] |
-- This test file was converted from pivot.sql.
-- Note some test cases have been commented as the current integrated UDFs cannot handle complex types
create temporary view courseSales as select * from values
("dotNET", 2012, 10000),
("Java", 2012, 20000),
("dotNET", 2012, 5000),
("dotNET", 2013, 48000),
("... | SQL | 5 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/udf/udf-pivot.sql | [
"Apache-2.0"
] |
(module
(func $start (unreachable))
(start $start)
)
| WebAssembly | 1 | slave5vw/wasmer | lib/c-api/tests/wasm-c-api/example/start.wat | [
"MIT"
] |
Outline of
Programming Languages Theory in Agda (PLTA)
[can I think of a wadlerian name?]
Naturals
definition of naturals and why it makes sense
Nat; zero; suc
Recursion
recursive definitions and why they make sense
_+_; _*_; _∸_
Exercises
_^_; _⊔_; _⊓_
Induction
proof by induction and its relat... | Literate Agda | 5 | manikdv/plfa.github.io | extra/extra/outline.lagda | [
"CC-BY-4.0"
] |
Strict
Import "docstyle.bmx"
Type TFredborgStyle Extends TDocStyle
Method EmitHeader()
'emit HTML header
Emit "<html><head><title>"+doc.id+"</title>"
Emit "<link rel=stylesheet Type=text/css href=~q"+relRootDir+"/styles/fredborg.css~q>"
Emit "</head><body>"
'emit title bar
Emit "<table width=100% ... | BlitzMax | 4 | jabdoa2/blitzmax | src/makedocs/fredborgstyle.bmx | [
"Zlib"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.http {
ServerWebSocket,
HttpServerRequest
}
import org.vertx.java.core.buffer {
Buffer
}
shared class WebsocketsExample() extends Verticle() {
shared actual void start(Vertx vertx, ... | Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/websockets/WebsocketsExample.ceylon | [
"Apache-2.0"
] |
<!---
Here you can add routes to your application and edit the default one.
The default route is the one that will be called on your application's "home" page.
--->
<cfscript>
// Customer Routes
addRoute(name="updateaccount", pattern="/my/account/u", controller="users", action="updateaccount");
addRoute(name="m... | ColdFusion | 4 | fintecheando/RoomBooking | config/routes.cfm | [
"Apache-1.1"
] |
complete -c my-app -l choice -r -f -a "{bash ,fish ,zsh }"
complete -c my-app -l unknown -r
complete -c my-app -l other -r -f
complete -c my-app -s p -l path -r -F
complete -c my-app -s f -l file -r -F
complete -c my-app -s d -l dir -r -f -a "(__fish_complete_directories)"
complete -c my-app -s e -l exe -r -F
complete ... | fish | 3 | omjadas/clap | clap_complete/tests/snapshots/value_hint.fish | [
"Apache-2.0",
"MIT"
] |
// check-pass
// aux-build:test-macros.rs
#[macro_use]
extern crate test_macros;
const C: identity!(u8) = 10;
fn main() {
let c: u8 = C;
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/proc-macro/macros-in-type.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module Main where
import M1
import Effect.Console (log)
testX = X
testZ = Z
testFoo = foo
main = log "Done"
| PureScript | 0 | andys8/purescript | tests/purs/passing/ExportExplicit.purs | [
"BSD-3-Clause"
] |
ruleset G2S.agent {
meta {
shares __testing, ephemeralDids, dids,credentialDefinition,connections,dump,
credentialDefinitions,credentialOffer,createLinkSecret,linkSecretId,getNym,nymRequests,credentialRequest,createCredential,proofRequest
provides ephemeralDids, dids,credentialDefinition,credentialD... | KRL | 4 | Picolab/G2S | krl/g2s.agent.krl | [
"MIT"
] |
#include "upc.h"
int main()
{
upc_fence;
// upc_fence 10;
return 0;
}
| Unified Parallel C | 1 | maurizioabba/rose | tests/CompileTests/UPC_tests/fence.upc | [
"BSD-3-Clause"
] |
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2012-2013 Alexis Laferrière <alexis.laf@xymus.net>
#
# 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.... | Nit | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Nit/draw_operation.nit | [
"MIT"
] |
package com.alibaba.json.bvt.ref;
import java.util.ArrayList;
import java.util.List;
import com.alibaba.fastjson.JSON;
import junit.framework.TestCase;
public class RefTest15 extends TestCase {
public void test_0 () throws Exception {
List<Object> a = new ArrayList<Object>();
List<Object> b = n... | Java | 3 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/ref/RefTest15.java | [
"Apache-2.0"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 8.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 157, 7]
NotebookDataLength... | Mathematica | 4 | kvmanohar22/gtsam | doc/Mathematica/CalibratedStereoCamera.nb | [
"BSD-3-Clause"
] |
"""Component to embed Cisco Mobility Express."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/cisco_mobility_express/__init__.py | [
"Apache-2.0"
] |
#
# program needs:
#
use Getopt::Std ;
use strict ;
use Datascope ;
use archive ;
# use timeslice ;
# use timeutil ;
use utilfunct ;
our ( $pgm, $host );
our ( $opt_v, $opt_V, $opt_n, $opt_p );
our ( %pf );
{ # Main program
my ( $cmd, $db, $dbmaster, $dirout,... | XProc | 3 | jreyes1108/antelope_contrib | bin/usarray/dup_dbmaster/dup_dbmaster.xpl | [
"BSD-2-Clause",
"MIT"
] |
module UserStateTests exposing (all)
import Dict exposing (Dict)
import Expect
import Test exposing (Test, describe, test)
import UserState exposing (UserState(..), isAnonymous, isMember)
isMemberHelper : String -> Dict String (List String) -> Bool -> Bool
isMemberHelper teamName roles isAdmin =
isMember
... | Elm | 5 | Caprowni/concourse | web/elm/tests/UserStateTests.elm | [
"Apache-2.0"
] |
// run
// Copyright 2009 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 main
import "fmt"
var indent uint = 10
func main() {
const dots = ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . " +
". .... | Go | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | test/fixedbugs/bug237.go | [
"BSD-3-Clause"
] |
use @pony_exitcode[None](code: I32)
trait T
class C is T
actor Main
new create(env: Env) =>
foo[C](C)
fun foo[A: T](x: A) =>
iftype A <: C then
@pony_exitcode(1)
end
| Pony | 4 | rtpax/ponyc | test/libponyc-run/iftype-true/main.pony | [
"BSD-2-Clause"
] |
/**
*
*/
import Util;
import OSS;
import RPC;
import OpenPlatform;
import OSSUtil;
import FileForm;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
checkConfig(config);
@endpoint = getEndpoint('ocr', @regio... | Tea | 5 | aliyun/alibabacloud-sdk | ocr-20191230/main.tea | [
"Apache-2.0"
] |
.q-form
position: relative
| Sass | 1 | ygyg70/quasar | ui/src/components/form/QForm.sass | [
"MIT"
] |
#define CF_ENUM(_type, _name) enum _name : _type _name; enum _name : _type
typedef CF_ENUM(int, ComparisonResult) {
Ascending,
Same,
Descending
};
| C | 4 | lwhsu/swift | test/SIL/Serialization/Inputs/clang_conformances_helper.h | [
"Apache-2.0"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Gesture Typing \n",
"===\n",
"\n",
"Typing quickly and accurately on a smartphone screen is hard! One invention to make it easier is **gesture typing**, in which your finger can trace a **path** consisting of letter-to-lett... | Jupyter Notebook | 5 | notSahil/pytudes | ipynb/Gesture Typing.ipynb | [
"MIT"
] |
package com.baeldung.httpclient.base;
import com.baeldung.httpclient.ResponseUtil;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.clien... | Java | 4 | DBatOWL/tutorials | httpclient/src/test/java/com/baeldung/httpclient/base/HttpClientSandboxLiveTest.java | [
"MIT"
] |
File "<stdin>", line 1
mismatch(]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '('
| Python traceback | 0 | JordonPhillips/pygments | tests/examplefiles/pytb/syntax_error.pytb | [
"BSD-2-Clause"
] |
-- Macro Scripts File
-- Created: Jan 10 1999
-- Author: Frank DeLise
-- Macro Scripts for Systems
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
macroScript Bones
category:"Inverse Kinematics"
internalcateg... | MAXScript | 3 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_Systems.mcr | [
"MIT"
] |
2016-05-01 09:28:31 Plugins loaded: alias, aspell, charset, exec, fifo, guile, irc, javascript, logger, lua, perl, python, relay, ruby, script, tcl, trigger, xfer
2016-05-01 09:28:34 fifo: pipe closed
2016-05-01 09:30:18 Plugins loaded: alias, aspell, charset, exec, fifo, guile, irc, javascript, logger, lua, perl, p... | IRC log | 1 | AmusableLemur/Dotfiles | weechat/.weechat/logs/core.weechat.weechatlog | [
"MIT"
] |
if (( ! $+commands[helm] )); then
return
fi
# If the completion file does not exist, generate it and then source it
# Otherwise, source it and regenerate in the background
if [[ ! -f "$ZSH_CACHE_DIR/completions/_helm" ]]; then
helm completion zsh | tee "$ZSH_CACHE_DIR/completions/_helm" >/dev/null
source "$ZSH_C... | Shell | 4 | ohmyzsh/oh-my-zsh | plugins/helm/helm.plugin.zsh | [
"MIT"
] |
--TEST--
Bug #77338: get_browser with empty string
--INI--
browscap={PWD}/browscap.ini
--FILE--
<?php
var_dump(get_browser(""));
?>
--EXPECT--
object(stdClass)#1 (34) {
["browser_name_regex"]=>
string(6) "~^.*$~"
["browser_name_pattern"]=>
string(1) "*"
["browser"]=>
string(15) "Default Browser"
["versi... | PHP | 3 | thiagooak/php-src | ext/standard/tests/misc/bug77338.phpt | [
"PHP-3.01"
] |
USING: help.markup help.syntax ;
IN: openssl
HELP: maybe-init-ssl
{ $description "Word that initializes openssl if it isn't already initialized." }
{ $see-also ssl-initialized? } ;
HELP: ssl-initialized?
{ $var-description "Boolean that is " { $link t } " after ssl has been initialized." } ;
HELP: ssl-new-api?
{ $va... | Factor | 4 | alex-ilin/factor | basis/openssl/openssl-docs.factor | [
"BSD-2-Clause"
] |
' Module trans.stmt
'
' Placed into the public domain 24/02/2011.
' No warranty implied; use at your own risk.
Import trans
Class Stmt
Field errInfo$
Method New()
errInfo=_errInfo
End
Method OnCopy:Stmt( scope:ScopeDecl ) Abstract
Method OnSemant() Abstract
Method Copy:Stmt( scope:ScopeDecl )
Local ... | Monkey | 5 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/trans/stmt.monkey | [
"Zlib"
] |
module.exports = {
typescript: {
tsconfigPath: 'web.tsconfig.json',
},
}
| JavaScript | 3 | blomqma/next.js | test/integration/typescript-custom-tsconfig/next.config.js | [
"MIT"
] |
/*
* Copyright 2013 The Sculptor Project Team, including 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
*
* http://www.apache.org/licenses/LI... | Xtend | 4 | sculptor/sculptor | sculptor-eclipse/org.sculptor.dsl.ui/src/org/sculptor/dsl/ui/labeling/SculptordslLabelProvider.xtend | [
"Apache-2.0"
] |
module audiostreamerscrobbler.players.musiccast.MusicCastMonitor
import audiostreamerscrobbler.maintypes.AppMetadata
import audiostreamerscrobbler.maintypes.SongType.types.Song
import audiostreamerscrobbler.threads.PlayerMonitorThreadTypes.types.MonitorThreadTypes
import audiostreamerscrobbler.utils.{NetworkUtils, Url... | Golo | 5 | vvdleun/audiostreamerscrobbler | src/main/golo/include/players/musiccast/MusicCastMonitor.golo | [
"MIT"
] |
(ns todomvc.components.todos-count
(:require [todomvc.session :as session]
[todomvc.helpers :as helpers]))
(defn items-left [todos]
(let [active-count (count (helpers/todos-active todos))]
(str (if (= 1 active-count) " item " " items ")
"left")))
(defn component []
[:span.todo-count
... | Clojure | 4 | dtelaroli/todomvc | examples/reagent/src/cljs/todomvc/components/todos_count.cljs | [
"MIT"
] |
// Flocking
// Daniel Shiffman
// https://thecodingtrain.com/CodingChallenges/124-flocking-boids.html
// https://youtu.be/mhjuuHl6qHM
// https://editor.p5js.org/codingtrain/sketches/ry4XZ8OkN
class Boid {
PVector position;
PVector velocity;
PVector acceleration;
int maxForce;
int maxSpeed;
Boid() {
thi... | Processing | 5 | aerinkayne/website | CodingChallenges/CC_124_Flocking_Boids/Processing/CC124_Flocking_Boids/boid.pde | [
"MIT"
] |
<optgroup label="Bright">
<option value="ace/theme/chrome">Chrome</option>
<option value="ace/theme/clouds">Clouds</option>
<option value="ace/theme/crimson_editor">Crimson Editor</option>
<option value="ace/theme/dawn">Dawn</option>
<option value="ace/theme/dreamweaver">Dreamweaver</option>
... | Harbour | 2 | blacktail/real-edit | public_src/scripts/common/templates/partials/themes.hb | [
"MIT"
] |
example (n : nat) (m : nat) : n > m → m < n :=
begin
with_cases { revert m, induction n },
case nat.zero : m' { show 0 > m' → m' < 0, admit },
case nat.succ : n' ih m' { show nat.succ n' > m' → m' < nat.succ n', admit }
end
example (n : nat) (m : nat) : n > m → m < n :=
begin
with_cases { revert m, induction n... | Lean | 4 | ericrbg/lean | tests/lean/run/with_cases1.lean | [
"Apache-2.0"
] |
-include ../tools.mk
# This test ensures that rustc compile_input can be called twice in one task
# without causing a panic.
# The program needs the path to rustc to get sysroot.
all:
$(RUSTC) foo.rs
$(call RUN,foo $(TMPDIR) $(RUSTC))
| Makefile | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/issue-19371/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
subscription TeamInvitationAdded($teamID: ID!) {
teamInvitationAdded(teamID: $teamID) {
id
}
} | GraphQL | 3 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamInvitationAdded.graphql | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2012 -->
<!-- ... | XPages | 4 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-outline.xsp-config | [
"Apache-2.0"
] |
using Uno;
using Uno.Collections;
using Fuse;
using Fuse.Scripting;
using Uno.Compiler.ExportTargetInterop;
public class Localization : NativeModule
{
public Localization()
{
AddMember( new NativeFunction("getCurrentLocale", (NativeCallback)GetCurrentLocale) );
}
object GetCurrentLocale(Context c, object[] arg... | Uno | 5 | Natnael123/fuse-samples | Samples/Localization/Localization.uno | [
"MIT"
] |
////////////////////////////////////////////////////////////////////
// PitchTrack is a monophonic autocorrelation pitch tracker with //
// a fast response and extremely high accuracy, even at low //
// frequencies. It is adapted from [helmholtz~] for Pd by Katja, //
// documented at http://www.katjaas.nl/helmh... | ChucK | 5 | ccdarabundit/chugins | PitchTrack/pitchtrack-help.ck | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated with COPASI 4.29 (Build 228) (http://www.copasi.org) at 2021-01-04T02:47:39Z -->
<?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?>
<COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="29" versionDevel="2... | Component Pascal | 5 | MedAnisse/COPASI | speed-test-suite/3enzyme_steepest.cps | [
"Artistic-2.0"
] |
--TEST--
Hash: sha512/224 algorithm
--FILE--
<?php
echo hash('sha512/224', '') . "\n";
echo hash('sha512/224', 'abc') . "\n";
echo hash('sha512/224', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu') . "\n";
?>
--EXPECT--
6ed0dd02806fa89e25de060c19d3ac86... | PHP | 3 | NathanFreeman/php-src | ext/hash/tests/sha512-224.phpt | [
"PHP-3.01"
] |
import os
def is_aws_cloud() -> bool:
return os.environ.get("TEST_TARGET", "") == "AWS_CLOUD"
| Python | 4 | suryatmodulus/localstack | tests/integration/util.py | [
"Apache-2.0"
] |
// Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef ARCH_IO_DISK_POOL_HPP_
#define ARCH_IO_DISK_POOL_HPP_
#include <sys/uio.h>
#include <functional>
#include <string>
#include "arch/runtime/event_queue.hpp"
#include "arch/io/blocker_pool.hpp"
#include "arch/types.hpp"
#include "concurrency/queue/passive_p... | C++ | 3 | zadcha/rethinkdb | src/arch/io/disk/pool.hpp | [
"Apache-2.0"
] |
typedef int BaseII;
| C | 1 | lwhsu/swift | test/PrintAsObjC/Inputs/custom-modules/Base.ImplicitSub.ImSub.h | [
"Apache-2.0"
] |
<CsoundSynthesizer>
<CsInstruments>
sr = 44100
kr = 44100
ksmps = 1
nchnls = 2
; pvanal -n 512 -w 8 allglass1-L.wav allglass1-L.pvc
; pvanal -n 512 -w 8 allglass1-R.wav allglass1-R.pvc
instr 1
ktime line 0, p3, 17.5018
arL pvoc ktime, 1, "allglass1-L.pvc"
arR pvoc ktime, 1, "allglass1-R.pvc"
out arL, ... | Csound | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Csound Document/allglass.csd | [
"MIT"
] |
Rem
Mod is a mathematical operator that performs the Modulo function.
End Rem
For i=6 to -6 Step -1
Print i+" Mod 3="+(i Mod 3)
Next
| BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/mod.bmx | [
"Zlib"
] |
__________
| MgToLs | __________
|__________| / NePtYx \
___|_______|___ \__________/
| | | \___/
| ¤ ¤ | ¤ ¤ |
| | |
| ¤ ¤ | ¤ ¤ |
| | |
| ¤ ¤ |... | Csound | 0 | NePtYx2018/MgToLs | .csd | [
"MIT"
] |
%{
// Copyright (c) 2001-2009 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/timer.hpp>
#if defined(_WIN32)
#include <io.h>
#endif
#define ID_WORD 1000
#define ID_E... | JFlex | 5 | Bpowers4/turicreate | src/external/boost/boost_1_68_0/libs/spirit/example/lex/word_count_functor.flex | [
"BSD-3-Clause"
] |
\documentclass[11pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath,amsthm,amsfonts,amssymb,epsfig}
\usepackage[left=1.1in,top=1in,right=1.1in]{geometry}
\usepackage{url}
\usepackage{array}
\usepackage{datetime}
\usepackage{lipsum}
\usepackage{url}
\usepackage{spverbatim}
\usepackage{paralist}
\usepackage{hyp... | TeX | 5 | ahmedengu/h2o-3 | h2o-docs/src/booklets/v1_2014/source/GLM_Vignette.tex | [
"Apache-2.0"
] |
(include-file "include/flavors.lfe")
(defflavor foo (x)
(foo-mixin foo-base)
gettable-instance-variables
settable-instance-variables
inittable-instance-variables)
(defmethod (hack before) ()
(lfe_io:format "foo, hack before ~p\n" (list self)))
(defmethod (hack after) ()
(lfe_io:format "foo, hack... | LFE | 3 | rvirding/flavors | test/foo.lfe | [
"Apache-2.0"
] |
definition _foo : nat := 0 -- error
structure _bla := (a b : nat)
inductive _empty : Type.
namespace _no
| Lean | 2 | ericrbg/lean | tests/lean/internal_names.lean | [
"Apache-2.0"
] |
syntax = "proto3";
package proto_example.common.shipments;
message ShipmentType {
string from = 1;
string to = 2;
string carrier = 3;
} | Protocol Buffer | 4 | SuperHuangXu/nest | integration/microservices/src/grpc-advanced/proto/common/shipment_types.proto | [
"MIT"
] |
/*
* Copyright 2013 The Sculptor Project Team, including 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
*
* http://www.apache.org/licenses/L... | Xtend | 5 | sculptor/sculptor | sculptor-generator/sculptor-generator-templates/src/main/java/org/sculptor/generator/template/common/EhCacheTmpl.xtend | [
"Apache-2.0"
] |
#/******************************************************************************
#* Copyright (c) 2015 - 2020 Xilinx, Inc. All rights reserved.
#* SPDX-License-Identifier: MIT
#******************************************************************************/
PARAMETER VERSION = 2.2.0
BEGIN OS
PARAMETER OS_NAME = (s... | CartoCSS | 3 | erique/embeddedsw | lib/sw_apps/openamp_rpc_demo/data/openamp_rpc_demo.mss | [
"BSD-2-Clause",
"MIT"
] |
<mt:include module="<__trans phrase="Config">">
<!DOCTYPE html>
<html lang="<mt:bloglanguage>" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="<mt:publishcharset>">
<title><mt:blogname encode_html="1"></title>
<meta name="description" content="<mt:if tag="page_meta_description"><mt:page_meta_descr... | MTML | 3 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/index_page.mtml | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Copyright (C) 2016 - 2019 Pinard Liu(liujianping-ok@163.com)\n",
"\n",
"https://www.cnblogs.com/pinard\n",
"\n",
"Permission given to modify the code as long as you keep this declaration at the top\n",
"\n",
"用g... | Jupyter Notebook | 4 | xihushui599/machinelearning | natural-language-processing/word2vec.ipynb | [
"MIT"
] |
// Persistence of Vision Ray Tracer Scene Description File
// for FreeCAD (http://www.freecadweb.org)
#version 3.6;
#include "colors.inc"
#include "metals.inc"
// ----------------------------------------
global_settings {
assumed_gamma 1.0
ambient_light color rgb <1.0,1.0,1.0>
max_trace_level 20
}
//... | POV-Ray SDL | 5 | edwardvmills/NURBSlib_EVM | development_FC_models/pre-parametric models/fillets_and_blends/curve_group_base_body_00.pov | [
"CC-BY-2.0"
] |
###########################################################################
# NumPy
###########################################################################
NUMPY_VERSION=1.14.1
NUMPY_CONFIG=BLAS=None LAPACK=None ATLAS=None
# Download original numpy source code archive.
downloads/numpy-$(NUMPY_VERSION).tgz:
mkdir... | NumPy | 4 | SamSchott/Python-Apple-support | patch/numpy/Makefile.numpy | [
"MIT"
] |
#tag Module
Protected Module PerformanceCounterWFS
#tag Method, Flags = &h1
Protected Function Frequency() As Double
#if TargetWin32
Declare Function QueryPerformanceFrequency Lib "Kernel32" ( freq as Ptr ) as Boolean
dim freq as new MemoryBlock( 8 )
if not QueryPerformanceFrequen... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/Miscellaneous/Modules/PerformanceCounterWFS.rbbas | [
"MIT"
] |
cd /D "%~dp0"
nuget restore ../installer/PowerToysSetup.sln || exit /b 1
| Batchfile | 2 | tameemzabalawi/PowerToys | .pipelines/restore-installer.cmd | [
"MIT"
] |
Rebol [
Title: "Rebol3 RC4 test script"
Author: "Oldes, Peter W A Wood"
File: %rc4-test.r3
Tabs: 4
Needs: [%../quick-test-module.r3]
]
~~~start-file~~~ "RC4"
===start-group=== "Stream Cipher RC4"
--test-- "Basic RC4 usage"
seed: #{CAFE} ;- used as a password which Boban and Alice knows
k-Alice: rc4/k... | Rebol | 5 | 0branch/r3 | src/tests/units/rc4-test.r3 | [
"Apache-2.0"
] |
actor Factorial {
// Calculate the product of all positive integers less than or equal to `n`.
public query func fac(n : Nat) : async Nat {
// We implement the recustion in a helper function that does not return
// asynchronously.
func go(m : Nat) : Nat {
if (m == 0) {
return 1;
} ... | Modelica | 5 | DaveSimplifire/examples | motoko/factorial/src/Main.mo | [
"Apache-2.0"
] |
#include <PJONThroughLora.h>
/* To use this example, please download the LoRa third party Library
from https://github.com/sandeepmistry/arduino-LoRa/ */
PJONThroughLora bus(44);
void setup() {
// Synchronous acknowledgement is not supported
bus.set_acknowledge(false);
// Obligatory to initialize Radio with... | Arduino | 4 | jcallano/PJON | examples/ARDUINO/Local/ThroughLoRa/NetworkAnalysis/Receiver/Receiver.ino | [
"Apache-2.0"
] |
demo_sg sysgen_dut (
.input_x0(input_x0),
.clk(clk),
.output_x0(output_x0)
);
| Verilog | 2 | maxboss10086/max_xilinx | max/System_Generator/demo/VIVADO/demo_v/sysgen/demo_sg.veo | [
"MulanPSL-1.0"
] |
.j-vxe-table-box {
@height: 24px;
@lineHeight: 1.5;
@spacing: 4px;
@fontSize: 14px;
@borderRadius: 2px;
&.size--tiny {
.vxe-table--header .vxe-cell--checkbox {
position: relative;
top: 2px;
right: 1px;
}
.vxe-table--body .vxe-cell--checkbox {
line-height: 2;
}
... | Less | 3 | sammydai/jeecg-boot | ant-design-vue-jeecg/src/components/jeecg/JVxeTable/less/size/tiny.less | [
"Apache-2.0"
] |
# Check the handling of failed commands.
# Check that we don't build a command downstream of a failing one.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build --no-db &> %t1.out || true
# RUN: %{FileCheck} < %t1.out %s
#
# CHECK: ... | Ninja | 5 | uraimo/swift-llbuild | tests/Ninja/Build/failing-commands.ninja | [
"Apache-2.0"
] |
/*
* This utility allows you to cross-connect two serial channels
* using any Arduino-compatible hardware.
*
* This is usefull for:
* Checking wiring
* Converting baud rate
* Sending AT commands
* etc.
*
* Popular AT command sets:
* ESP8266: http://www.espressif.com/sites/default/files/4a-esp8266_a... | Arduino | 5 | kayatmin/blynk-library | tests/SerialXconnect/SerialXconnect.ino | [
"MIT"
] |
#testId {
background-color:#06F
}
.testClass {
color:#900
}
| CSS | 3 | ravitejavalluri/brackets | test/spec/LiveDevelopment-test-files/notlive.css | [
"MIT"
] |
ENTRY(module_start)
SECTIONS
{
/* PRX format requires text to begin at 0 */
.text 0 : { *(.text .text.*) }
/* Sort stubs for convenient ordering */
.sceStub.text : { *(.sceStub.text) *(SORT(.sceStub.text.*)) }
/* Keep these sections around, even though they may appear unused to the linker */
.lib.ent.top ... | Linker Script | 4 | Eric-Arellano/rust | compiler/rustc_target/src/spec/mipsel_sony_psp_linker_script.ld | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
2016-01-21 06:41:57 Plugins loaded: alias, aspell, charset, exec, fifo, irc, logger, perl, python, relay, ruby, script, tcl, trigger, xfer
2016-01-21 06:41:59 fifo: pipe closed
2016-01-21 06:42:21 Plugins loaded: alias, aspell, charset, exec, fifo, irc, logger, perl, python, relay, ruby, script, tcl, trigger, xfer
2... | IRC log | 1 | 0x4b1dN/2016-dots | misc/weechat/logs/core.weechat.weechatlog | [
"MIT"
] |
complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information'
complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version information'
complete -c my-app -n "__fish_use_subcommand" -s c -s C -l config -l conf -d 'some config file'
complete -c my-app -n "__fish_use_subcommand... | fish | 3 | omjadas/clap | clap_complete/tests/snapshots/special_commands.fish | [
"Apache-2.0",
"MIT"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 1 | matt-noonan/retypd-data | data/fold.decls | [
"MIT"
] |
table entry : { Id : int, Title : string, Created : time, Author : string,
Body : string }
PRIMARY KEY Id
fun list () =
rows <- queryX (SELECT * FROM entry)
(fn row =>
<xml>
<div>
<h1>{[row.Entry.Title]}</h1><br />
<h2>By {[row.Entry.Author]} at {[row.Entry.Created]}</h2>
... | UrWeb | 4 | apple314159/urweb | tests/urblog.ur | [
"BSD-3-Clause"
] |
# Copyright (C) 2001-2008, Parrot Foundation.
=head1 NAME
examples/benchmarks/arriter.pir - Iterator Benchmark
=head1 SYNOPSIS
% time ./parrot examples/benchmarks/arriter.pir
=head1 DESCRIPTION
Hand crafted PIR code version of F<examples/benchmarks/arriter.pl> as
it might come out of a compiler.
=head1 SEE A... | Parrot Internal Representation | 3 | winnit-myself/Wifie | examples/benchmarks/arriter.pir | [
"Artistic-2.0"
] |
// Copyright 2020 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.
#include "src/regexp/regexp-error.h"
namespace v8 {
namespace internal {
const char* const kRegExpErrorStrings[] = {
#define TEMPLATE(NAME, STRING) ST... | C++ | 4 | LancerWang001/v8 | src/regexp/regexp-error.cc | [
"BSD-3-Clause"
] |
100 3 3 0
0 1 3 3 2 1 [0 0 0 0] [0 0 0 0] [0 0 0 0]
1 4 4 74 75 56 11 [1 2 2 0 19 3 11 17 9 5 0 13 18 1 16 11] [2 2 1 2 18 3 7 18 2 13 8 5 10 8 11 10] [2 0 2 1 8 14 16 4 12 0 11 13 18 6 6 10] [0 2 2 2 7 14 14 17 6 6 11 11 7 12 12 15]
2 4 3 85 98 84 [4 4 0 0 8 11 11 12 2 12 12 8 1 2 2 2] [2 1 1 3 1 8 0 1 10 0 4 2 0 1... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/testset_mm100/psp171.sch | [
"Apache-2.0"
] |
Leisure's UI system uses a piece of data's "type" and the "context" (a string) to
choose a handlebars template.
'use strict'
define ['handlebars', './editor', './coffee-script', 'immutable'], (Handlebars, Editor, CoffeeScript, Immutable)->
{
compile
create
registerHelper
} =... | Literate CoffeeScript | 4 | zot/Leisure | src/ui.litcoffee | [
"Zlib"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.