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 |
|---|---|---|---|---|---|
=pod
=head1 NAME
RSA_size, RSA_bits, RSA_security_bits - get RSA modulus size or security bits
=head1 SYNOPSIS
#include <openssl/rsa.h>
int RSA_bits(const RSA *rsa);
The following functions have been deprecated since OpenSSL 3.0, and can be
hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable versi... | Pod | 4 | lbbxsxlz/openssl | doc/man3/RSA_size.pod | [
"Apache-2.0"
] |
{
metadata: {
namespace: "media_capabilities_names",
},
data: [
"codecs",
],
}
| JSON5 | 3 | zealoussnow/chromium | third_party/blink/renderer/modules/media_capabilities/media_capabilities_names.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<div class="tab-pane Mac" title="macOS" os="Mac">
{{ .Inner }}
</div>
| HTML | 1 | mwht/minikube | site/layouts/shortcodes/mactab.html | [
"Apache-2.0"
] |
#!/bin/sh
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | Shell | 3 | arghyadip01/grpc | src/ruby/pb/generate_proto_ruby.sh | [
"Apache-2.0"
] |
/*****************************************************************************
*
* QUERY:
* EXPLAIN [ANALYZE] [VERBOSE] query
* EXPLAIN ( options ) query
*
*****************************************************************************/
ExplainStmt:
EXPLAIN ExplainableStmt
{
PGExplainStmt *n = mak... | Yacc | 3 | AldoMyrtaj/duckdb | third_party/libpg_query/grammar/statements/explain.y | [
"MIT"
] |
//@filename: file.tsx
//@jsx: preserve
//@noImplicitAny: true
declare module JSX {
interface Element { }
interface ElementAttributesProperty { props: {} }
interface IntrinsicElements {
div: any;
h2: any;
h1: any;
}
}
class Button {
props: {}
render() {
return (<div>My Button</di... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/conformance/jsx/checkJsxChildrenProperty11.tsx | [
"Apache-2.0"
] |
// Copyright (c) 2013-2020 Bluespec, Inc. All Rights Reserved
// Author: Rishiyur S. Nikhil
package TV_Info;
// ================================================================
// Bluespec library imports
import Vector :: *;
// ================================================================
// Trace_Data is encode... | Bluespec | 4 | darius-bluespec/Flute | src_Core/ISA/TV_Info.bsv | [
"Apache-2.0"
] |
% Consistent renaming - C blocks
% Jim Cordy, May 2010
% Using Gnu C grammmar
include "c.grm"
redefine compound_statement
{ [IN] [NL]
[compound_statement_body] [EX]
} [NL]
end redefine
define potential_clone
[compound_statement]
end define
% Generic consistent renaming
include "generic-rename-co... | TXL | 4 | coder-chenzhi/SQA | SourcererCC/parser/java/txl/c-rename-consistent-blocks.txl | [
"Apache-2.0"
] |
import QtQuick 2.3
Item {
property bool colapsed: true
property bool showColapse: false
property bool planView: false
}
| QML | 3 | uavosky/uavosky-qgroundcontrol | src/Airmap/dummy/AirspaceControl.qml | [
"Apache-2.0"
] |
use v6;
#
# Reduced digit sums for a number or a list of numbers.
# E.g. 777 -> 7+7+7 -> 21 -> 2+1 -> 3
#
say "777: ", reduced-digit-sum(777);
my %alpha = (my @z = ("a".."z","å","ä","ö"," ")) Z=> (1..@z.elems);
my @a = %alpha{"håkan kjellerstrand".split("")};
say @a.perl;
say reduced-digit-sum(%alpha{"håkan kjelle... | Perl6 | 4 | Wikunia/hakank | perl6/reduced_digit_sum.p6 | [
"MIT"
] |
_stat() {
if test "${CI_OS_NAME}" = osx ; then
stat -f %Sm "${@}"
else
stat -c %y "${@}"
fi
}
top_make() {
printf '%78s\n' | tr ' ' '='
# Travis has 1.5 virtual cores according to:
# http://docs.travis-ci.com/user/speeding-up-the-build/#Paralellizing-your-build-on-one-VM
ninja "$@"
}
build_make(... | Shell | 5 | uga-rosa/neovim | ci/common/build.sh | [
"Vim"
] |
#!/usr/bin/env bash
export PYTHONPATH="../":"${PYTHONPATH}"
export WANDB_PROJECT=dmar
# export MAX_LEN=128
python distillation.py \
--learning_rate=3e-4 \
--do_train \
--fp16 \
--val_check_interval 0.25 \
--teacher Helsinki-NLP/opus-mt-en-ro \
--max_source_length $MAX_LEN --max_target_length $MAX_LEN --val_... | Shell | 3 | liminghao1630/transformers | examples/research_projects/seq2seq-distillation/distil_marian_enro_teacher.sh | [
"Apache-2.0"
] |
package com.baeldung.boot.mvc.controllers;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Import;
i... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-mvc-jersey/spring-boot-mvc/src/test/java/com/baeldung/boot/mvc/controllers/HelloControllerUnitTest.java | [
"MIT"
] |
h1. Images
!.../_assets/landscape.jpg(Landscape)!
<hr />
h1. View Presenter Notes
This slide has presenter notes. Press `p` to view them.
h1. Presenter Notes
Hello from presenter notes
<hr />
h1. Other features
View other features in the help sidebar by pressing `h`
| Textile | 1 | mjimenezganan/landslide | examples/multiple-files/3.textile | [
"Apache-2.0"
] |
postulate
A : Set
I : (@erased _ : A) → Set
R : A → Set
f : ∀ (@erased x : A) (r : R x) → I x
-- can now be used here ^
| Agda | 2 | shlevy/agda | test/Succeed/Issue2128.agda | [
"BSD-3-Clause"
] |
FROM maven:3.6.3-jdk-11 AS build
WORKDIR /workdir/server
COPY pom.xml /workdir/server/pom.xml
RUN mvn dependency:go-offline
COPY src /workdir/server/src
RUN mvn --batch-mode clean compile assembly:single
FROM openjdk:11-jre-slim
ARG DEPENDENCY=/workdir/server/target
EXPOSE 8080
COPY --from=build ${DEPENDENCY}/app.ja... | Dockerfile | 4 | malywonsz/awesome-compose | sparkjava/sparkjava/Dockerfile | [
"CC0-1.0"
] |
module.exports = function(source) {
return source + '\nmodule.exports.push("2");';
};
| JavaScript | 2 | 1shenxi/webpack | test/configCases/loaders/issue-9053/node_modules/loader2.js | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<title>Display binary data</title>
</head>
<body>
<script type='text/javascript'>
var xhr = new XMLHttpRequest()
var url = 'http://localhost:3500/binary'
xhr.onload = function() {
var arrayBuffer = xhr.response
var uint8 = new Uint8Array(arra... | HTML | 3 | mm73628486283/cypress | packages/driver/cypress/fixtures/display-binary.html | [
"MIT"
] |
--- lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike.orig 2008-03-22 20:51:20.000000000 +0100
+++ lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike 2008-03-22 20:51:32.000000000 +0100
@@ -368,7 +368,11 @@
buf = buf[l..];
return 1;
}
-
+ else if (request_type == "PUT" )
+ {
+ b... | Pike | 3 | davidlrichmond/macports-ports | lang/pike/files/patch-Request.pike | [
"BSD-3-Clause"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3
#pragma ModuleName=zmq_handler_stop
// This file is part of the `ZeroMQ-XOP` project and licensed under BSD-3-Clause.
Function NeverComplains()
zeromq_handler_stop()
zeromq_handler_stop()
PASS()
End
| IGOR Pro | 0 | AllenInstitute/ZeroMQ-XOP | tests/zmq_stop_handler.ipf | [
"BSD-3-Clause"
] |
#!/bin/bash
#
# Copyright Istio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Shell | 4 | rveerama1/istio | samples/certs/generate-workload.sh | [
"Apache-2.0"
] |
; JSON serializer for Nu cells
(class NuCell
(- (id) proxyForJson is (self array)))
(load "cocoa")
(global NSNotFound -1)
(global ViNormalMode 1)
(global ViInsertMode 2)
(global ViVisualMode 4)
(global ViMapSetsDot 1)
(global ViMapNeedMotion 2)
(global ViMapIsMotion 4)
(global ViMapLineMode 8)
(global ViMapNeedArg... | Nu | 3 | girvo/vico | app/vico.nu | [
"Unlicense"
] |
" Vim syntax file
" Language: Property Specification Language (PSL)
" Maintainer: Daniel Kho <daniel.kho@logik.haus>
" Last Changed: 2021 Apr 17 by Daniel Kho
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" Read in VHDL syntax files
runtime! syntax/vhdl.vim
unlet b:current_... | VimL | 4 | uga-rosa/neovim | runtime/syntax/psl.vim | [
"Vim"
] |
func x(_ param: inout Int) -> Int {
param = 4
}
let z = { (param: inout String) in }
// RUN: %sourcekitd-test -req=collect-var-type %s -- %s | %FileCheck %s
// CHECK: (1:10, 1:15): Int (explicit type: 1)
// CHECK: (5:5, 5:6): (inout String) -> () (explicit type: 0)
// CHECK: (5:12, 5:17): String (explicit type: 1)
| Swift | 3 | gandhi56/swift | test/SourceKit/VariableType/inout.swift | [
"Apache-2.0"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 inputVal;
half4 colorGreen;
half4 colorRed;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffe... | Metal | 3 | fourgrad/skia | tests/sksl/intrinsics/Normalize.metal | [
"BSD-3-Clause"
] |
/* Copyright (c) <2003-2016> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... | LSL | 4 | execomrt/newton-dynamics | newton-3.14/sdk/dCompilerKit/dNewtonScriptCompiler/demos/insertPhy.lsl | [
"Zlib"
] |
--TEST--
Test gmdate() function : basic functionality
--FILE--
<?php
echo "*** Testing gmdate() : basic functionality ***\n";
// Initialise all required variables
date_default_timezone_set('UTC');
$format = DATE_ISO8601;
$timestamp = mktime(8, 8, 8, 8, 8, 2008);
// Calling gmdate() with all possible arguments
var_dum... | PHP | 4 | NathanFreeman/php-src | ext/date/tests/gmdate_basic.phpt | [
"PHP-3.01"
] |
// eslint-disable-next-line
import data from '../../lib/data'
export default () => <p>hello</p>
| JavaScript | 1 | blomqma/next.js | test/integration/page-config/pages/blog/index.js | [
"MIT"
] |
#pragma once
#include "envoy/network/udp_packet_writer_handler.h"
#include "quiche/quic/core/quic_packet_writer.h"
namespace Envoy {
namespace Quic {
class EnvoyQuicPacketWriter : public quic::QuicPacketWriter {
public:
EnvoyQuicPacketWriter(Network::UdpPacketWriterPtr envoy_udp_packet_writer);
quic::WriteResu... | C | 4 | giantcroc/envoy | source/common/quic/envoy_quic_packet_writer.h | [
"Apache-2.0"
] |
# fstar.exe
# auto-generated from output of `fstar.exe --help`
# using FStar/.scripts/fstar_fish_completions.py
complete -c fstar.exe -l abort_on --description "non-negative integer Abort on the n-th error or warning raised. Useful in combination with --trace_error. Count starts at 1, use 0 to disable. (default 0)"
co... | fish | 3 | SwampertX/FStar | .completion/fish/fstar.exe.fish | [
"Apache-2.0"
] |
<template>
<div class="content">
<h1 class="title">
Another Page
</h1>
<p>
<NuxtLink to="/" class="button is-medium is-info hvr-wobble-vertical">
Another button
</NuxtLink>
</p>
<p>
<NuxtLink to="/">
Back home
</NuxtLink>
</p>
</div>
</template>
| Vue | 4 | ardyno/nuxt.js | examples/global-css/pages/about.vue | [
"MIT"
] |
from torch import nn
from torch.nn.utils.rnn import PackedSequence
class LstmFlatteningResult(nn.LSTM):
def forward(self, input, *fargs, **fkwargs):
output, (hidden, cell) = nn.LSTM.forward(self, input, *fargs, **fkwargs)
return output, hidden, cell
class LstmFlatteningResultWithSeqLength(nn.Modu... | Python | 4 | Hacky-DH/pytorch | test/onnx/model_defs/lstm_flattening_result.py | [
"Intel"
] |
var x: int(64) = 1;
var u: int(32) = 2;
u += x;
writeln(u);
| Chapel | 2 | jhh67/chapel | test/trivial/deitz/coerce-assign/plusassign_error.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
' ********** Copyright 2021 Roku, Inc. All Rights Reserved. **********
function RAFX_getSSAIPluginBase(params as object) as Object
daisdk = {}
daisdk.init = function(params=invalid as object) as Void
m.createImpl()
m.createEventCallbacks()
m.updateLocale()
m.logLevel = 0
if invalid <> params
if invalid <> params["logL... | Brightscript | 3 | khangh/samples | advertising/rsgamg/lib/rafxssai.brs | [
"MIT"
] |
const w = new Worker(
new URL("./workers/worker_event_handlers.js", import.meta.url).href,
{ type: "module" },
);
w.postMessage({});
| JavaScript | 3 | petamoriken/deno | cli/tests/testdata/worker_event_handler_test.js | [
"MIT"
] |
-- name: create-table-logs
CREATE TABLE IF NOT EXISTS logs (
log_id INTEGER PRIMARY KEY
,log_data MEDIUMBLOB
);
| SQL | 3 | sthagen/drone-drone | store/shared/migrate/mysql/files/007_create_table_logs.sql | [
"Apache-2.0"
] |
;;;; The gen_server responsible for managing the OS processes that support the
;;;; "Bevin" backend for undertone.
(defmodule undertone.bevin
(behaviour gen_server)
;; gen_server implementation
(export
(start_link 0)
(stop 0))
;; callback implementation
(export
(init 1)
(handle_call 3)
(ha... | LFE | 5 | ut-proj/undertone | apps/undertone/src/undertone/bevin.lfe | [
"Apache-2.0"
] |
#! parrot-nqp
# Copyright (C) 2011, Parrot Foundation.
pir::load_bytecode("YAML/Tiny.pbc");
pir::load_bytecode("YAML/Dumper.pbc");
pir::load_bytecode("LWP/UserAgent.pbc");
pir::load_bytecode("nqp-setting.pbc");
pir::load_bytecode("dumper.pbc");
=begin NAME
resolve_deprecated.nqp - Resolve deprecated features
=end NAM... | Perl6 | 5 | winnit-myself/Wifie | tools/dev/resolve_deprecated.nqp | [
"Artistic-2.0"
] |
SUMMARY = "ANSII Color formatting for output in terminal"
HOMEPAGE = "https://pypi.python.org/pypi/termcolor"
SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=809e8749b63567978acfbd81d9f6a27d"
inherit pypi setuptools3
SRC_URI[md5sum] = "043e89644f8909d462fbbfa511c768df"
SRC_URI[sha2... | BitBake | 1 | guillon/meta-openembedded | meta-python/recipes-devtools/python/python3-termcolor_1.1.0.bb | [
"MIT"
] |
#pragma once
// Use this to force a specific version of a given config proto, preventing API
// boosting from modifying it. E.g. API_NO_BOOST(envoy::api::v2::Cluster).
#define API_NO_BOOST(x) x
namespace Envoy {}
| C | 4 | dcillera/envoy | source/common/config/api_version.h | [
"Apache-2.0"
] |
{ pkgs ? import <nixpkgs> {}, withX11 ? false }:
(pkgs.buildFHSUserEnv {
name = "vcpkg";
targetPkgs = pkgs: (with pkgs; [
autoconf
automake
cmake
gcc
gettext
glibc.dev
gperf
libtool
libxkbcommon.dev
m4
ninja
pkgconfig
zip
zstd.dev
... | Nix | 3 | eerimoq/vcpkg | shell.nix | [
"MIT"
] |
.btn {&:hover {
color: red;
}&:active {
color:blue;} &:nth-child(5n+1) {
color:blue;
}
&:nth-child(-n+3) { color: green;}
> li > a { color: red} >li>li {
color: blue;
}
> p + p {
color: green;
}
}
| CSS | 3 | fuelingtheweb/prettier | tests/stylefmt/nested-2/nested-2.css | [
"MIT"
] |
using Gtk;
using Gdk;
class PixbufWithCache {
public PixbufWithCache? next;
public Pixbuf original;
public int scaledSize;
public Pixbuf? scaled;
public PixbufWithCache(PixbufWithCache? next, Pixbuf original) {
this.next = next;
this.original = original;
this.scale... | Vala | 4 | swils/verifast | src/linemarks/linemarks.vala | [
"MIT"
] |
# Written By: Robert Alan Byer / byer@mail.ourservers.net
# Modified By: Mark Pizzolato / mark@infocomm.com
# Norman Lastovica / norman.lastovica@oracle.com
# Oleg Safiullin / form@pdp-11.nsk.ru
#
# This build script will accept the following build options.
#
# ALL Just Build "Everything".
# ... | Module Management System | 3 | sergev/vak-opensource | bk/simh-dvk/descrip.mms | [
"Apache-2.0"
] |
-module(petstore_statem).
-behaviour(proper_statem).
-include("petstore.hrl").
-include_lib("proper/include/proper_common.hrl").
-include_lib("stdlib/include/assert.hrl").
-compile(export_all).
-compile(nowarn_export_all).
-include("petstore_statem.hrl").
%%=========================================================... | Erlang | 5 | MalcolmScoffable/openapi-generator | samples/client/petstore/erlang-proper/src/petstore_statem.erl | [
"Apache-2.0"
] |
/*
* Copyright 2005-2010 LAMP/EPFL
*/
// $Id$
package scala.tools.eclipse.contribution.weaving.jdt.core;
import java.util.HashMap;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.IJavaModelMarker;
import org.eclipse.jdt.core.WorkingCopyOwner;
import org.eclipse.... | AspectJ | 3 | dragos/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/core/CompilationUnitProblemFinderAspect.aj | [
"BSD-3-Clause"
] |
[self]
localhost
[all:vars]
ansible_connection=local
ansible_python_interpreter=/usr/bin/python3
#ansible_shell_executable="bash -l"
| Self | 3 | glossom-dev/base-os | hosts.self | [
"MIT"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
// Sample contracts showing upgradeability with multiple inheritance.
// Child contract inherits from Father and Mother contracts, and Father extends from Gramps.
//
// Human
// / \
// | ... | Solidity | 5 | gen4sp/STD-Contract | contracts/openzeppelin/mocks/MultipleInheritanceInitializableMocks.sol | [
"MIT"
] |
#N canvas 716 85 557 437 12;
#X floatatom 52 137 4 0 0 0 - - - 0;
#X obj 52 267 complex-mod~;
#X obj 52 199 cos~;
#X obj 92 219 cos~;
#X obj 92 195 -~ 0.25;
#X text 76 65 The complex modulator takes two signals in which it considers
to be the real and imaginary part of a complex-valued signal. It then
does a complex mu... | Pure Data | 4 | myQwil/pure-data | extra/complex-mod~-help.pd | [
"TCL"
] |
.className {
background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20649%2087.5%22%20xmlns%3Av%3D%22https%3A%2F%2Fvecta.io%2Fnano%22%3E%3Cpath%20d%3D%22M0%200h649v87.5H0z%22%20fill%3D%22%230b3647%22%2F%3E%3Cpath%20d%3D%22M0%204.03h649v76.22H0z%22%20fill%3... | CSS | 3 | nazarepiedady/next.js | test/integration/css-fixtures/data-url/pages/index.module.css | [
"MIT"
] |
Tesla K80,3.7,3.7
Tesla K40,3.5,3.5
Tesla K20,3.5,3.5
Tesla C2075,2.0
Tesla C2050/C2070,2.0
Tesla T4,7.5
Tesla V100,7.0
Tesla P100,6.0
Tesla P40,6.1
Tesla P4,6.1
Tesla M60,5.2
Tesla M40,5.2
Tesla K10,3.0
Quadro RTX 8000,7.5
Quadro RTX 6000,7.5
Quadro RTX 5000,7.5
Quadro RTX 4000,7.5
Quadro GV100,7.0
Quadro GP100,6.0
Qu... | CSV | 2 | abhaikollara/tensorflow | tensorflow/tools/tensorflow_builder/config_detector/data/golden/compute_capability_golden.csv | [
"Apache-2.0"
] |
(*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | Pascal | 4 | Jimexist/thrift | lib/delphi/src/Thrift.Protocol.pas | [
"Apache-2.0"
] |
keytest.elf: file format elf32-littlenios2
keytest.elf
architecture: nios2, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00120198
Program Header:
LOAD off 0x00001020 vaddr 0x00148020 paddr 0x00120000 align 2**12
filesz 0x00000198 memsz 0x00000198 flags r-x
LOAD off 0x00002198... | ObjDump | 3 | agural/FPGA-Oscilloscope | osc/Copy of software/keytest/keytest.objdump | [
"MIT"
] |
#pragma compile(AutoItExecuteAllowed, True)
#include <Constants.au3>
#include <Process.au3>
_RunDos("java -version || (echo. >JreNotFound)")
If FileExists("JreNotFound") Then
FileDelete("JreNotFound")
MsgBox($MB_SYSTEMMODAL, "civilizer-win32.exe ERROR", "Can't find JRE (Java Runtime Environment)!" & @... | AutoIt | 3 | suewonjp/civilizer | tools/run/civilizer-win32.au3 | [
"Apache-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// Attraction / Repulsion
// Video: https://youtu.be/OAcXnzRNiCY
// Processing transcription: Chuck England
import java.util.*;
List<PVector> attractors = new ArrayList<PVector>();
List<Particle> particles = new ArrayList<Particle>();
void setup() {
size(400, 400);
// f... | Processing | 3 | aerinkayne/website | CodingChallenges/CC_056_attraction_repulsion/Processing/CC_056_attraction_repulsion/CC_056_attraction_repulsion.pde | [
"MIT"
] |
= Change redirect destination
You can change the redirect destination for any Rodauth action by overriding
the corresponding <tt>*_redirect</tt> method:
plugin :rodauth do
enable :login, :logout, :create_account, :reset_password
# Redirect to "/dashboard" after login
login_redirect "/dashboard"
# ... | RDoc | 4 | dmitryzuev/rodauth | doc/guides/redirects.rdoc | [
"MIT"
] |
HEADERS += \
$$PWD/iconhelper.h
SOURCES += \
$$PWD/iconhelper.cpp
| QMake | 2 | jiadxin/QtScrcpy | QtScrcpy/fontawesome/fontawesome.pri | [
"Apache-2.0"
] |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK prune #-}
--------------------------------------... | C2hs Haskell | 5 | jmatsushita/cuda | src/Foreign/CUDA/Driver/Unified.chs | [
"BSD-3-Clause"
] |
{{ $author := .context.Params.author }}
{{ if $author }}
<aside class="mw5 br3 mv3 nested-links">
{{ $urlPre := "https://api.github.com" }}
{{ $user_json := getJSON $urlPre "/users/" $author }}
{{ if $user_json.name }}
<h3 class="f4 dib">
{{ $user_json.name | htmlEscape }}
</... | HTML | 4 | jlevon/hugo | docs/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/components/author-github-data.html | [
"Apache-2.0"
] |
FromInput() ->
L2Forward(method echoback) ->
ToOutput();
| Click | 0 | ANLAB-KAIST/NBA | configs/l2fwd-echo.click | [
"MIT"
] |
Welcome to the OTMql4Zmq project!
OTMql4Zmq provide Metatrader 4 bindings for ZeroMQ, the high-speed messaging protocol
for asynchronous communications between financial and trading applications.
=== Documentation ===
* [[Installation]]
* [[PyZmq]]
* [[CompiledDllOTMql4Zmq]]
* [[CompiledDllHistory]]
* [[TestExpert]... | Creole | 2 | lionelyoung/OTMql4Zmq | wiki/Home.creole | [
"MIT"
] |
{
"@context": {
"@vocab": "http://example/",
"typemap": {"@container": "@type", "@nest": "nestedtypemap"},
"nestedtypemap": "@nest"
}
} | JSONLD | 3 | fsteeg/json-ld-api | tests/compact/n008-context.jsonld | [
"W3C"
] |
" Vim filetype plugin file
" Language: BASIC
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2015 Jan 10
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal comments=:REM,:'
setlocal commentstring='\ %s
setlocal formatoptions-=t formatoptions+=... | VimL | 4 | uga-rosa/neovim | runtime/ftplugin/basic.vim | [
"Vim"
] |
syntax = "proto3";
package test;
service TestService {
}
| Protocol Buffer | 2 | SuperHuangXu/nest | packages/microservices/test/client/test.proto | [
"MIT"
] |
"""Diagnostics support for 1-Wire."""
from __future__ import annotations
from dataclasses import asdict
from typing import Any
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_HOST
from homeassistant.core impor... | Python | 5 | liangleslie/core | homeassistant/components/onewire/diagnostics.py | [
"Apache-2.0"
] |
source "../tests/includes/init-tests.tcl"
source "../tests/includes/job-utils.tcl"
test "LEAVING state can be queried and set" {
assert {[D 0 cluster leaving] eq {no}}
}
test "LEAVING state can be set" {
D 0 cluster leaving yes
assert {[D 0 cluster leaving] eq {yes}}
}
test "LEAVING state progagates to o... | Tcl | 5 | justincase/disque | tests/cluster/tests/10-leaving.tcl | [
"BSD-3-Clause"
] |
/*
* Copyright 2012-2019 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 | 4 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/ExitCommand.java | [
"Apache-2.0"
] |
= CanCan Specs
== Running the specs
To run the specs first run the +bundle+ command to install the necessary gems and the +rake+ command to run the specs.
bundle
rake
The specs currently require Ruby 1.8.7. Ruby 1.9.2 support will be coming soon.
== Model Adapters
CanCan offers separate specs for different m... | RDoc | 3 | rocLv/cancan | spec/README.rdoc | [
"MIT"
] |
sample chromosome_name start stop reference variant type tier gene_name transcript_name transcript_species transcript_source transcript_version strand transcript_status trv_type c_position amino_acid_change ucsc_cons domain all_domains deletion_substructures transcript_error default_gene_name gene_name_source ensembl_g... | GAMS | 2 | zskidmor/GenVisR | inst/extdata/FL.gms | [
"CC0-1.0"
] |
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "visualize_speech_feature.ipynb",
"provenance": [],
"collapsed_sections": [],
"last_runtime": {
"build_target": "",
"kind": "local"
}
},
"kernelspec": {
"name": "python3",
"... | Jupyter Notebook | 5 | deepneuralmachine/google-research | kws_streaming/colab/visualize_speech_feature.ipynb | [
"Apache-2.0"
] |
@0x9ef128e12a8010b2;
struct Nested1
{
d @0 : UInt64;
e @1 : Nested2;
}
struct Nested2
{
f @0 : UInt64;
}
struct Nested
{
b @0 : UInt64;
c @1 : Nested1;
}
struct Message
{
a @0 : Nested;
}
| Cap'n Proto | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/format_schemas/02030_capnp_nested_tuples.capnp | [
"Apache-2.0"
] |
f ← {
a1 ← ⍵[1]
a2 ← ⍵[2]
a3 ← ⍵[3]
r1 ← (1 1) + a1
r2 ← a2,'hej'
(r1 r2 3)
}
res ← (f⍣3) ((2 3) 'asbc' 8)
⍝ res ← f (2 '')
⎕ ← res[1]
⎕ ← res[2]
⎕ ← res[3]
0 | APL | 3 | melsman/apltail | tests/powtup.apl | [
"MIT"
] |
---
prev: specs.textile
next: java.textile
title: Concurrency in Scala
layout: post
---
* "Runnable/Callable":#runnable
* "Threads":#Thread
* "Executors/ExecutorService":#executor
* "Futures":#Future
* "Thread Safety Problem":#danger
* "Example: Search Engine":#example
* "Solutions":#solutions
h2(#runnable). Runnable... | Textile | 5 | AstronomiaDev/scala_school | web/concurrency.textile | [
"Apache-2.0"
] |
// Regression test for issue #24986
// Make sure that the span of a closure marked `move` begins at the `move` keyword.
fn main() {
let x: () = move || (); //~ ERROR mismatched types
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/span/move-closure.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
CREATE TABLE users (
username VARCHAR(256) PRIMARY KEY,
password VARCHAR(256),
enabled BOOLEAN
);
CREATE TABLE authorities (
username VARCHAR(256) REFERENCES users (username),
authority VARCHAR(256)
);
| SQL | 4 | zeesh49/tutorials | guest/spring-security/src/main/resources/schema.sql | [
"MIT"
] |
**********************************************************************
* SERIALIZER
**********************************************************************
CLASS ltcl_test_checksum_serializer DEFINITION FINAL
FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PUBLIC SECTION.
METHODS serialize FOR TESTING.
... | ABAP | 5 | gepparta/abapGit | src/repo/zcl_abapgit_repo_checksums.clas.testclasses.abap | [
"MIT"
] |
module openconfig-mpls-types {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/mpls-types";
prefix "oc-mpls-types";
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig working group";
contact
"OpenConfig working group
netopenconfig@googlegr... | YANG | 5 | meodaiduoi/onos | models/openconfig/src/main/yang/mpls/openconfig-mpls-types@2017-05-15.yang | [
"Apache-2.0"
] |
int getPosHash(int4 gridPos, __global float4* pParams)
{
int4 gridDim = *((__global int4*)(pParams + 1));
gridPos.x &= gridDim.x - 1;
gridPos.y &= gridDim.y - 1;
gridPos.z &= gridDim.z - 1;
int hash = gridPos.z * gridDim.y * gridDim.x + gridPos.y * gridDim.x + gridPos.x;
return hash;
}
int4 getGridPos(float4 ... | OpenCL | 5 | N0hbdy/godot | thirdparty/bullet/Bullet3OpenCL/BroadphaseCollision/kernels/gridBroadphase.cl | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
# Da... | Module Management System | 3 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/demos/bombs/descrip.mms | [
"Apache-2.0"
] |
// Copyright 2020 The gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... | Protocol Buffer | 4 | arghyadip01/grpc | tools/distrib/python/grpcio_tools/grpc_tools/test/simple.proto | [
"Apache-2.0"
] |
# Copyright (C) 2004-2009, Parrot Foundation.
# $Id$
.namespace [ "Foo" ]
newclass P1, "Foo"
addattribute P1, ".i"
addattribute P1, ".j"
set I10, 0
set I11, 500000
new P3, "Foo"
loop:
getattribute P2, P3, ".i"
new P10, 'Integer' # x = Foo.i
assign P10, P2
getattribute P2, P3, ... | Parrot Assembly | 2 | allisonrandal/pcc_testing | examples/benchmarks/oo3.pasm | [
"Artistic-2.0"
] |
# Copyright 2015 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 applica... | Python | 5 | EricRemmerswaal/tensorflow | tensorflow/python/kernel_tests/io_ops/parse_single_example_op_test.py | [
"Apache-2.0"
] |
set testmodule [file normalize tests/modules/keyspecs.so]
start_server {tags {"modules"}} {
r module load $testmodule
test "Module key specs: No spec, only legacy triple" {
set reply [lindex [r command info kspec.none] 0]
# Verify (first, last, step) and not movablekeys
assert_equal [l... | Tcl | 5 | abyzsin/redis | tests/unit/moduleapi/keyspecs.tcl | [
"BSD-3-Clause"
] |
<button type="submit" class="ui huge primary fluid icon labeled button" {{ sylius_test_html_attribute('confirmation-button') }}>
<i class="check icon"></i> {{ 'sylius.ui.place_order'|trans }}
</button>
| Twig | 2 | titomtd/Sylius | src/Sylius/Bundle/ShopBundle/Resources/views/Checkout/Complete/_navigation.html.twig | [
"MIT"
] |
#include "__emit.inc"
stock test__push_u_adr(&local_refvar, local_refarray[])
{
const local_const = 1;
new local_var = 0;
static local_static_var = 0;
new local_array[2];
// ok
__emit push.u.adr global_var;
__emit push.u.adr global_const_var;
__emit push.u.adr local_refvar;
__emit push.u.adr local_var;
__e... | PAWN | 3 | pawn-lang/pawn | source/compiler/tests/__emit_p7.pwn | [
"Zlib"
] |
void doSomethingInHead(int arg);
@interface BaseInHead
- (void)doIt:(int)arg;
@end
/// Awesome name.
@interface SameName
@end
@protocol SameName
@end
@interface BaseInHead(SomeCategory)
-(void)doItInCategory;
@end
void function_as_swift_private(void) __attribute__((swift_private));
| C | 3 | lwhsu/swift | test/IDE/Inputs/header.h | [
"Apache-2.0"
] |
# ======================================================================================================================
# Set definitions
# ======================================================================================================================
# ---------------------------------------------------------... | GAMS | 4 | gemal/MAKRO | Model/Sets/age&time.sets.gms | [
"MIT"
] |
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/php/doctor.el
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
| Emacs Lisp | 2 | leezu/doom-emacs | modules/lang/php/doctor.el | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R06d01*/
/*Part A*/
proc sgscatter data=sp4r.ameshousing;
plot saleprice * (gr_liv_area ag... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R06d01.sas | [
"CC-BY-4.0"
] |
<!DOCTYPE html>
<html lang="ja" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="UTF-8">
<title><mt:ContentField content_field="タイトル"><mt:ContentFieldValue encode_html="1"></mt:ContentField> - イベント・セミナー | <mt:SiteName encode_html="1"></title>
<meta name="description" content="<mt:ContentField conte... | MTML | 3 | movabletype/mt-theme-jungfrau | themes/jungfrau/templates/template_727.mtml | [
"MIT"
] |
exec("swigtest.start", -1);
f = new_Foo();
if Foo_hola_get(f) <> Hello_get() then swigtesterror("Foo_hola_get() <> ""Hello"""); end
Foo_hola_set(f, Hi_get());
if Foo_hola_get(f) <> Hi_get() then swigtesterror("Foo_hola_get() <> ""Hi"""); end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/cpp_enum_runme.sci | [
"BSD-3-Clause"
] |
<div id="home-section" class="nav-section">
<h3>Documentation</h3>
<ul>
<% installed.each do |name, href, exists, type, _| %>
<% next if type == :extra %>
<li class="folder">
<% if exists then %>
<a href="<%= href %>"><%= h name %></a>
<% else %>
<%= h name %>
<% end %>
<% end %... | RHTML | 4 | Bhuvanesh1208/ruby2.6.1 | lib/ruby/2.6.0/rdoc/generator/template/darkfish/_sidebar_installed.rhtml | [
"Ruby"
] |
' currentdir.bmx
cd$=currentdir()
print "CurrentDir()="+cd$
| BlitzMax | 4 | jabdoa2/blitzmax | mod/brl.mod/filesystem.mod/doc/currentdir.bmx | [
"Zlib"
] |
struct User {
1: string name,
2: i32 age,
3: string email
}
const User user = {'avatar': '/avatar.jpg'}
| Thrift | 1 | JonnoFTW/thriftpy2 | tests/parser-cases/e_structs_1.thrift | [
"MIT"
] |
@app
goat-vhi
@static
@http
get /todos
post /todos
post /todos/delete
get /scrape
@tables
data
scopeID *String
dataID **String
ttl TTL
| Arc | 2 | kishoredr/Todos | .arc | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Using an existing canvas to draw on</title>
<style>
canvas {
border: 1px solid black;
}
button {
clear: both;
display: block;
}
#content {
background:... | HTML | 3 | abhijit-paul/html2canvas | examples/existing_canvas.html | [
"MIT"
] |
#include <cstdlib>
#include <iostream>
#include <sstream>
using namespace std;
void build_code(int max_args)
{
stringstream ss;
ss << "#define NLOHMANN_JSON_EXPAND( x ) x" << endl;
ss << "#define NLOHMANN_JSON_GET_MACRO(";
for (int i = 0 ; i < max_args ; i++)
ss << "_" << i + 1 << ", ";
ss... | C++ | 3 | imwhocodes/json | third_party/macro_builder/main.cpp | [
"MIT"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 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/cse2.ecl | [
"Apache-2.0"
] |
// Copyright 2021 The Google Research Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | C++ | 5 | DionysisChristopoulos/google-research | scann/scann/distance_measures/one_to_one/l2_distance_sse4.cc | [
"Apache-2.0"
] |
package IncreaseRegCfg_v2;
(* synthesize *)
module mkIncreaseRegCfg ( Tuple2#(Reg#(int), Reg#(int)) );
Reg#(int) reg_data <- mkReg(0);
Reg#(int) reg_step <- mkReg(1);
(* preempts = "fst._write, increase" *)
rule increase;
reg_data <= reg_data + reg_step;
endrule
return tuple2(reg_data, reg... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/14.IncreaseReg/IncreaseRegCfg_v2.bsv | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.