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 |
|---|---|---|---|---|---|
/**
* @author IPP HURRAY http://www.hurray.isep.ipp.pt/art-wise
* @author Andre Cunha
*/
#include <Timer.h>
#include "simpleroutingexample.h"
#include "phy_const.h"
#include "phy_enumerations.h"
#include "mac_const.h"
#include "mac_enumerations.h"
#include "mac_func.h"
configuration SimpleRoutingExampleC {
}
im... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/lib/net/zigbee/apps/SimpleRoutingExample/SimpleRoutingExampleC.nc | [
"BSD-3-Clause"
] |
20 5 2 0
0 1 12 8 4 7 13 2 10 12 18 3 1 11 5 [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0] [0 0]
1 2 4 15 7 16 6 [-3 11 -4 10] [26 2 -1 15] [12 21 13 9] [22 26 2 14]
2 2 2 21 5 [1 9] [2 0 -1 0]
3 2 3 14 11 16 [6 -3 -8 11] [11 10 -3 -4] [7 11 25 30]
4 2 6 15 13 9 17 14 20 [9 17 7 12] [13 -2 -7 1... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/mm_j20/psp49.sch | [
"Apache-2.0"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
ClassCount=1
Class1=CcximagemfcdllApp
LastClass=CcximagemfcdllApp
NewFileInclude2=#include "cximagemfcdll.h"
ResourceCount=0
NewFileInclude1=#include "stdafx.h"
[CLS:CcximagemfcdllApp]
Type=0
HeaderFile=cximagemfcdll.h
ImplementationFile... | Clarion | 1 | KinyaIwamoto/CxImage | CxImage/CxImageDLL/CxImageMfcDll.clw | [
"Unlicense"
] |
fileFormatVersion: 2
guid: 9e6fe1a020a04421ab828be4543a655c
timeCreated: 1610665874 | Unity3D Asset | 0 | netdrones/ml-agents | Project/Assets/ML-Agents/Examples/Match3/Scripts/Match3ExampleActuator.cs.meta | [
"Apache-2.0"
] |
del(.Id)| .Properties |=
{DisplayName, ObjectType, PrincipalId, RoleDefinitionId, RoleDefinitionName} | JSONiq | 1 | StefanIvemo/AzOps | src/data/template/Microsoft.Authorization/roleAssignments.jq | [
"MIT"
] |
#!MC 1410
#Loops over time and extracts the vortex cores.
#Retrieve the number of time steps
$!EXTENDEDCOMMAND COMMANDPROCESSORID='extend time mcr'
COMMAND='QUERY.NUMTIMESTEPS NUMTIMESTEPS'
#Loops over time
$!LOOP |NUMTIMESTEPS|
#Sets the time to the current step
$!EXTENDEDCOMMAND COMMANDPROCESSORID='extend tim... | MAXScript | 3 | Mehrdadj93/handyscripts | macro/ExtractVortexCoresOverTime.mcr | [
"MIT"
] |
// MIR for `main` 0 mir_map
| User Type Annotations
| 0: Canonical { max_universe: U0, variables: [], value: Ty(*mut Test) } at $DIR/receiver-ptr-mutability.rs:14:14: 14:23
| 1: Canonical { max_universe: U0, variables: [], value: Ty(*mut Test) } at $DIR/receiver-ptr-mutability.rs:14:14: 14:23
| 2: Canonical { max_univ... | Mirah | 2 | david-perez/rust | src/test/mir-opt/receiver_ptr_mutability.main.mir_map.0.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
clear
tempname filename
local filename = "M:\josef_new\stata_work\results_glm_poisson_weights.py"
insheet using M:\josef_new\eclipse_ws\statsmodels\statsmodels_py34_pr\statsmodels\datasets\cpunish\cpunish.csv
generate LN_VC100k96 = log(vc100k96)
generate var10 = 1 in 1
replace var10 = 1 in 2
replace var10 = 1 in 3
rep... | Stata | 3 | madhushree14/statsmodels | statsmodels/genmod/tests/results/poisson_weights_v2.do | [
"BSD-3-Clause"
] |
NB. TODO - original implementation was lost somewhere.
coclass 'BasicRNNLayer'
coinsert 'NN'
create=: 3 : 0
)
destroy=: codestroy | J | 0 | jonghough/jlearn | adv/basicrnn.ijs | [
"MIT"
] |
#!/bin/bash
# If you want to rebuild, run this with REBUILD=1
# If you want to build with CUDA, run this with USE_CUDA=1
# If you want to build without CUDA, run this with USE_CUDA=0
if [ ! -f setup.py ]; then
echo "ERROR: Please run this build script from PyTorch root directory."
exit 1
fi
# shellcheck disable=... | Shell | 4 | Hacky-DH/pytorch | .jenkins/pytorch/win-build.sh | [
"Intel"
] |
package generator
import com.google.inject.Inject
import org.sculptor.generator.chain.ChainOverride
import org.sculptor.generator.ext.Helper
import org.sculptor.generator.ext.Properties
import sculptormetamodel.DomainEvent
@ChainOverride
class HelperOverride extends Helper {
@Inject extension Properties properties
... | Xtend | 4 | sculptor/sculptor | sculptor-examples/mongodb-samples/sculptor-shipping-generator/src/main/java/generator/HelperOverride.xtend | [
"Apache-2.0"
] |
/*
* Copyright (c) 2016-present, RxJava 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 applicable la... | Java | 4 | Jawnnypoo/RxJava | src/main/java/io/reactivex/rxjava3/internal/operators/single/SingleTimeout.java | [
"Apache-2.0"
] |
<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="M17.87,5.71l-0.... | XML | 2 | Imudassir77/material-design-icons | android/places/storefront/materialiconsround/black/res/drawable/round_storefront_20.xml | [
"Apache-2.0"
] |
[playlist]
NumberOfEntries=1
File1=https://http-live.sr.se/p3-aac-192
Title1=Sveriges Radio
Length1=-1
Version=3
| SQL | 2 | liangleslie/core | tests/components/cast/fixtures/164-hi-aac_invalid_version.pls | [
"Apache-2.0"
] |
- dashboard: general_operations
title: General Operations
layout: newspaper
elements:
- name: Top 10 Events
title: Top 10 Events
model: aws_athena_cloudtrail
explore: cloudtrail_logs
type: looker_bar
fields:
- cloudtrail_logs.total_events
- cloudtrail_logs.event_name
sorts:
-... | LookML | 3 | voltagebots/aws_cloudtrail_block | general_operations.dashboard.lookml | [
"MIT"
] |
USING: accessors alien alien.libraries alien.syntax kernel tools.test ;
IN: alien.libraries.tests
{ f } [ DLL" fadfasdfsada" dll-valid? ] unit-test
{ f } [ "does not exist" DLL" fadsfasfdsaf" dlsym ] unit-test
{ } [ "doesnotexist" dlopen dlclose ] unit-test
[ "fdasfsf" dll-valid? drop ] must-fail
{ t } [
"test... | Factor | 3 | alex-ilin/factor | basis/alien/libraries/libraries-tests.factor | [
"BSD-2-Clause"
] |
# Group Users
{{.users.description}}
| API Blueprint | 0 | caioDelgado/snowboard | packages/snowboard-reader/test/fixtures/api/users.apib | [
"MIT"
] |
NOP
DATA
0 A0
1 A1
2 A2
3 A3
4 A4
5 A5
6 A6
7 A7
8 A8
9 A9
A AA
B AB
C AC
D AD
E AE
F AF
10 A1
11 A2
12 A3
13 A4
14 A5
15 A6
16 A7
17 A8
18 A9
19 AA
1A AB
1B AC
1C AD
1D AE
1E AF
1F B1
20 B2
21 B3
22 B4
23 B5
24 B6
25 B7
26 B8
27 B9
28 BA
29 BB
2A BC
2B BD
2C BE
2D BF
2E ... | Parrot Assembly | 1 | Jwhite48/CS140-Final-Project | test.pasm | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getDefaultRadioClasses
Author: NKey, Dorbedo
Return array of default radio classes for player.
Arguments:
0: unit <OBJECT> (Default: TFAR_currentUnit)
Return Value:
0: default LR <STRING>
1: defaultPersonal <STRING>
2: defaultRifleman <ST... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_getDefaultRadioClasses.sqf | [
"RSA-MD"
] |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "textflag.h"
// See memmove Go doc for important implementation constraints.
// func memmove(to, from unsafe.Pointer, n uintptr)
TEXT runtime·memmove... | GAS | 4 | SSSDNSY/go | src/runtime/memmove_s390x.s | [
"BSD-3-Clause"
] |
OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm",
"elf32-littlearm")
OUTPUT_ARCH(arm)
MEMORY
{
text (rx) : ORIGIN = 0, LENGTH = 64M
data (rw!x) : ORIGIN = 0x5c000000, LENGTH = 256K
}
SECTIONS
{
.text :
{
*(.vectors)
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.rodata.*)
*(.r... | Logos | 4 | mtaghiza/tinyos-main-1 | tos/platforms/intelmote2/tos.x | [
"BSD-3-Clause"
] |
{
parameters: {
param1: {
valid_values: ["valid", "values"],
valid_keys: ["random", "keys"],
}
},
data: [
{
name: "item1",
param1: {"not_valid_key": "valid", "random": "values"},
},
],
} | JSON5 | 1 | zealoussnow/chromium | third_party/blink/renderer/build/scripts/tests/json5_generator_invalid_key.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
.foo.svelte-xyz{color:red;font-size:2em;font-family:'Comic Sans MS'} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/spread/expected.css | [
"MIT"
] |
2 0.9767611Blike | PureBasic | 2 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_castlike_FLOAT_to_STRING_expanded/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
fn main() {
let y = 0u32;
*y; //~ ERROR E0614
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/error-codes/E0614.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.file-content#js-sketch-viewer{ data: { endpoint: blob_raw_path } }
.text-center.gl-mt-4.gl-mb-3.js-loading-icon
= loading_icon(size: "md")
| Haml | 0 | glimmerhq/glimmerhq | app/views/projects/blob/viewers/_sketch.html.haml | [
"MIT"
] |
from .T_S_I_V_ import table_T_S_I_V_
class table_T_S_I_B_(table_T_S_I_V_):
pass
| Python | 2 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/fontTools/ttLib/tables/T_S_I_B_.py | [
"MIT"
] |
BmaxJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_clip_default_max/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
#include "globals.hlsli"
#include "impostorHF.hlsli"
float4 main(VSOut input) : SV_TARGET
{
clip(dither(input.pos.xy + GetTemporalAASampleRotation()) - input.dither);
float3 uv_col = float3(input.uv, input.slice);
ShaderMeshInstance instance = load_instance(input.instanceID);
float4 color = unpack_rgba(instance.... | HLSL | 3 | rohankumardubey/WickedEngine | WickedEngine/shaders/impostorPS_simple.hlsl | [
"MIT"
] |
%{--
Copyright 2018 Rundeck, Inc. (http://rundeck.com)
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 ... | Groovy Server Pages | 2 | kbens/rundeck | rundeckapp/grails-app/views/framework/_stepPluginFilterInputGroup.gsp | [
"Apache-2.0"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 11.3' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLengt... | Mathematica | 4 | Alan-love/filament | docs/math/Fresnel for Conductors.nb | [
"Apache-2.0"
] |
{-# LANGUAGE StandaloneDeriving #-}
module Network.GRPC.Unsafe.ByteBuffer where
#include <grpc/grpc.h>
#include <grpc/slice.h>
#include <grpc/impl/codegen/compression_types.h>
#include <grpc/slice_buffer.h>
#include <grpc_haskell.h>
{#import Network.GRPC.Unsafe.Slice#}
{#import Network.GRPC.Unsafe.ChannelArgs#}
imp... | C2hs Haskell | 5 | rickibm/daml | nix/third-party/gRPC-haskell/core/src/Network/GRPC/Unsafe/ByteBuffer.chs | [
"Apache-2.0"
] |
### Create Order, Add Product, Confirm and Ship Order
POST http://localhost:8080/ship-order
### Create Order, Add Product and Ship Order
POST http://localhost:8080/ship-unconfirmed-order
### Retrieve all existing Orders
GET http://localhost:8080/all-orders
### Create Order with id 666a1661-474d-4046-8b12-8b589631... | HTTP | 3 | DBatOWL/tutorials | axon/src/main/resources/order-api.http | [
"MIT"
] |
{ lib, buildPythonPackage, fetchPypi, aiohttp, pythonOlder
, sqlalchemy, ruamel-yaml, CommonMark, lxml, aiosqlite
}:
buildPythonPackage rec {
pname = "mautrix";
version = "0.12.4";
src = fetchPypi {
inherit pname version;
sha256 = "c8d226a96e57d52bb532d7e572ba5670d2e2143f720063a4bbd04a77049030d4";
};
... | Nix | 4 | zombiezen/nixpkgs | pkgs/development/python-modules/mautrix/default.nix | [
"MIT"
] |
dashboard -n 1
sysprop
watch arthas.Test test "@com.alibaba.arthas.Test@n.entrySet().iterator.{? #this.key.name()=='STOP' }" -n 2
| ActionScript | 1 | weihubeats/arthas | batch.as | [
"Apache-2.0"
] |
G75*
G70*
%OFA0B0*%
%FSLAX25Y25*%
%IPPOS*%
%LPD*%
%AMOC8*
5,1,8,0,0,1.08239X$1,22.5*
%
%ADD16C,0.02360*%
%ADD17C,0.03570*%
X0011000Y0011000D02*
G75*
%LPD*%
D16*
X0023540Y0016510D02*
X0023540Y0029490D01*
X0023540Y0016510D02*
X0016460Y0016510D01*
X0016460Y0029490D01*
X0023540Y0029490D01*
X0023540Y001... | Solidity | 2 | Cardsareus/linguist | test/fixtures/Generic/sol/Gerber Image/gerber1.sol | [
"MIT"
] |
#N struct template8 float x float y float w float h float q;
#N canvas 349 131 520 488 12;
#X floatatom 91 220 4 0 0 0 - - - 0;
#X floatatom 253 304 4 0 0 0 - - - 0;
#N canvas 926 152 388 446 data8 1;
#X scalar template8 29 182 0 16 917 \;;
#X scalar template8 290 272 0 32 66 \;;
#X scalar template8 186 29 46 71 78 \;;... | Pure Data | 4 | myQwil/pure-data | doc/4.data.structures/08.selection.pd | [
"TCL"
] |
limbo(1)
# NAME
limbo - XNU in Linux userspace
# SYNOPSIS
_limbo_ [path]
This program is not meant to be executed directly. Instead, register binfmt handlers
for Mach-O programs.
# DESCRIPTION
Limbo is an XNU emulator similar to qemu-user; it translates XNU system calls
into their Linux equivalent(s). It is capa... | SuperCollider | 3 | meme/limbo | man/limbo.1.scd | [
"BSD-2-Clause"
] |
class NameError {
"""
NameError exception class. Used within Rubinius.
"""
ruby_alias: 'name
}
| Fancy | 0 | bakkdoor/fancy | lib/rbx/name_error.fy | [
"BSD-3-Clause"
] |
self reproducer generator - use with itself as input
[,>++++++++[<-------->-]<]
>>>>+
[<+>43--------------------------------------------
[<+>45--
[<+>46-
[<+>60--------------
[<+>62--
[<+>91-----------------------------
[<+>93--
[<[-]]]]]]]]>,+]<<
@
[<]<+++++++[>+++++++++<-]>-..>
[<.<+++++[>----<-]>+>[<<+>.>-]<[>+<-]>+... | Brainfuck | 3 | RubenNL/brainheck | examples/quine/bertram/u.bf | [
"Apache-2.0"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 10.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLengt... | Mathematica | 4 | Alan-love/filament | docs/math/Depth to Cluster.nb | [
"Apache-2.0"
] |
package com.serverless;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.SQSEvent;
public class RequestHandlerSQSEvent implements RequestHandler<SQSEvent, Object> {
public static SQSEvent input;
... | Java | 3 | Arun-kc/serverless | lib/plugins/aws/invokeLocal/runtimeWrappers/java/src/test/java/com/serverless/RequestHandlerSQSEvent.java | [
"MIT"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_pcap_read_dump.dpatch by Joseph Battaglia <sephail@sephail.net> and Joshua Krage <jkrage@guisarme.us>
##
## DP: Allow the reading of saved PCAP capture files.
## DP: Closes #153462
## DP: Closes #298604
@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./dsniff.8 /tmp/dpep... | Darcs Patch | 4 | acheong08/dsniff | debian/patches/03_pcap_read_dump.dpatch | [
"BSD-3-Clause"
] |
[Exposed=(Window,Worker,Worklet), Transferable]
interface WritableStream {
constructor(optional object underlyingSink, optional QueuingStrategy strategy = {});
readonly attribute boolean locked;
Promise<undefined> abort(optional any reason);
Promise<undefined> close();
WritableStreamDefaultWriter getWriter(... | WebIDL | 4 | saschanaz/streams-1 | reference-implementation/lib/WritableStream.webidl | [
"BSD-3-Clause"
] |
mod no_generics {
struct Ty;
type A = Ty;
type B = Ty<'static>;
//~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument
//~| HELP remove these generics
type C = Ty<'static, usize>;
//~^ ERROR this struct takes 0 lifetime arguments but 1 lifetime argument
//~| ERROR t... | Rust | 5 | mbc-git/rust | src/test/ui/generics/wrong-number-of-args.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
/**
* There are two different types of weapons available in Ammunation shops all around San Andreas:
* regular weapons (single life we... | PAWN | 5 | EPIC-striker/playground | pawn/Features/Deathmatch/Ammunation/AmmunationManager.pwn | [
"MIT"
] |
/// <reference path='fourslash.ts' />
// @noImplicitAny: true
////declare class C {
//// [|get x();|]
////}
////}
////(new C).x = 1;
verify.rangeAfterCodeFix("get x(): number;", undefined, undefined, 0); | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/fourslash/codeFixInferFromUsageGetter.ts | [
"Apache-2.0"
] |
Note 0
Copyright (C) 2018 Jonathan Hough. All rights reserved.
)
NB. Factor Analysis.
Note 'References'
[1] Scikit-Learn Factor Analysis implementation
link: https://github.com/scikit-learn/scikit-learn
[2] Statistical Pattern Recognition, Andrew Webb, pp. 337 - 342
https://seat.massey.ac.nz/personal/s.r.marsland/Code... | J | 5 | jonghough/jlearn | dr/factor.ijs | [
"MIT"
] |
--TEST--
Test dirname() function : basic functionality
--CREDITS--
Dave Kelsey <d_kelsey@uk.ibm.com>
--SKIPIF--
<?php
if(substr(PHP_OS, 0, 3) == "WIN")
die("skip Not valid for Windows");
?>
--FILE--
<?php
echo "*** Testing dirname() : basic functionality ***\n";
// Initialise all required variables
$paths = array(
... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/file/dirname_basic.phpt | [
"PHP-3.01"
] |
--TEST--
Bug #80745 (JIT produces Assert failure and UNKNOWN:0 var_dumps in code involving bitshifts)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit=function
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--EXTENSIONS--
opcache
--FILE--
<?php
final class Message
{
p... | PHP | 4 | NathanFreeman/php-src | ext/opcache/tests/jit/bug80745.phpt | [
"PHP-3.01"
] |
import * as React from 'react';
import { createTheme } from '@mui/material/styles';
import styledComponents, {
ThemeProvider as StyledComponentsThemeProvider,
} from 'styled-components';
import { space, color, fontFamily, fontSize, compose } from 'styled-system';
const styledSystem = compose(color, space, fontFamily... | JavaScript | 3 | dany-freeman/material-ui | benchmark/browser/scenarios/styled-components-box-styled-system/index.js | [
"MIT"
] |
.text-center
.svg-content.qa-label-svg
= image_tag 'illustrations/priority_labels.svg'
- if can?(current_user, :admin_label, @project)
%p
= _("Star labels to start sorting by priority")
| Haml | 3 | hugorebelo/gitlabhq | app/views/shared/empty_states/_priority_labels.html.haml | [
"MIT"
] |
{
"@context": {
"type": "@type",
"id": "@id",
"HTML": { "@id": "rdf:HTML" },
"@vocab": "http://schema.org/",
"xml": "http://www.w3.org/XML/1998/namespace",
"foaf": "http://xmlns.com/foaf/0.1/",
"eli": "http://data.europa.eu/eli/ontology#",
"snomed": "ht... | JSONLD | 4 | whiteslack/schemaorg | data/releases/7.03/schemaorgcontext.jsonld | [
"Apache-2.0"
] |
package test
interface Trtrtr
| Kotlin | 1 | qussarah/declare | compiler/testData/loadJava/compiledKotlin/class/Trait.kt | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>chrome.sockets.tcp</title>
</head>
<body>
<button id="socket-connect" type="button" onclick="socketConnect('result')">Connect</button>
<script>
function out(id, msg) {
var result = document.... | Smarty | 3 | namaljayathunga/nw.js | test/remoting/issue4143-chrome-sockets-permission/index.tpl | [
"MIT"
] |
@REM Build for Visual Studio compiler. Run your copy of vcvars32.bat or vcvarsall.bat to setup command-line compiler.
@set OUT_DIR=Debug
@set OUT_EXE=example_win32_directx9
@set INCLUDES=/I..\.. /I..\..\backends /I "%DXSDK_DIR%/Include"
@set SOURCES=main.cpp ..\..\backends\imgui_impl_dx9.cpp ..\..\backends\imgui_impl_w... | Batchfile | 3 | WillianKoessler/imgui | examples/example_win32_directx9/build_win32.bat | [
"MIT"
] |
[
(object)
(array)
] @scope
| Scheme | 0 | yzia2000/nvim-treesitter | queries/json/locals.scm | [
"Apache-2.0"
] |
;
; Metasploit Framework
; http://www.metasploit.com
;
; Source for shell_reverse_tcp (single)
;
; Authors: vlad902 <vlad902@gmail.com>
; Size : 287
;
cld
push byte -0x15
dec ebp
call 0x2
pusha
mov ebp,[esp+0x24]
mov eax,[ebp+0x3c]
mov edi,[ebp+eax+0x78]
add edi,ebp
mov ecx,[edi+0x18]
mov ebx,[edi+0x20]
add ebx,ebp
... | Assembly | 1 | OsmanDere/metasploit-framework | external/source/shellcode/windows/single_shell_reverse_tcp.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
// Type for a collection of files (monoidal)
vtypedef file = @{ lines = int, blanks = int, comments = int, files = int }
// Program state, tracking *all* supported file types in an unboxed structure.
vtypedef source_contents = @{ rust = file
, haskell = file
, at... | ATS | 3 | lambdaxymox/polyglot | SATS/filetype.sats | [
"BSD-3-Clause"
] |
-- 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.
name = "GitLab"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c =... | Ada | 4 | Elon143/Amass | resources/scripts/api/gitlab.ads | [
"Apache-2.0"
] |
package gw.specContrib.expressions.cast.generics
enhancement Errant_ThisInEnhancementEnh<E> : Errant_ThisInEnhancementClasses.A<E> {
function foo() {
// IDE-2275
if (this typeis Errant_ThisInEnhancementClasses.B) {}
}
} | Gosu | 3 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specContrib/expressions/cast/generics/Errant_ThisInEnhancementEnh.gsx | [
"Apache-2.0"
] |
discard """
errormsg: "cannot set child of node kind: nnkStrLit"
line: 7
"""
import macros
macro t(x: untyped): untyped =
x[0] = newEmptyNode()
t("abc")
| Nimrod | 3 | JohnAD/Nim | tests/errmsgs/tnnodeindexkind.nim | [
"MIT"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright (c) 2010, Victor Lagerkvist
% SPDX-License-Identifier: BSD-3-Clause
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted pr... | Logtalk | 4 | PaulBrownMagic/logtalk3 | contributions/verdi_neruda/benchmark_generators.lgt | [
"Apache-2.0"
] |
#summary MTREE 5 manual page
== NAME ==
*mtree*
- format of mtree dir hierarchy files
== DESCRIPTION ==
The
*mtree*
format is a textual format that describes a collection of filesystem objects.
Such files are typically used to create or verify directory hierarchies.
=== General Format===
An
*mtree*
file consists of a s... | MediaWiki | 3 | OakCityLabs/ios_system | libarchive/libarchive/doc/wiki/ManPageMtree5.wiki | [
"BSD-3-Clause"
] |
# ignore-msvc
-include ../tools.mk
all:
$(RUSTC) depa.rs
$(RUSTC) depb.rs
$(RUSTC) depc.rs
$(RUSTC) empty.rs --cfg bar 2>&1 | $(CGREP) '"-ltesta" "-ltestb" "-ltesta"'
$(RUSTC) empty.rs 2>&1 | $(CGREP) '"-ltesta"'
$(RUSTC) empty.rs 2>&1 | $(CGREP) -v '"-ltestb"'
$(RUSTC) empty.rs 2>&1 | $(CGREP) -v '"-ltesta" "... | Makefile | 2 | mbc-git/rust | src/test/run-make-fulldeps/link-dedup/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
;; update.lsp -- script to push changes into source directories
(load "makefile.lsp") ; just to make sure we got the latest bindings
;; UPDATE-SOURCES -- makes a script to push changes into source directories
;;
(defun update-sources ()
(let (outf)
(load "transfiles.lsp") ; just to make sure we're current
... | Common Lisp | 4 | joshrose/audacity | lib-src/libnyquist/nyquist/sys/unix/cmu/update.lsp | [
"CC-BY-3.0"
] |
script = require './scriptAssertions'
shouldOutput = script.shouldOutput
describe 'methods'
describe 'preserving self'
context 'when a block is called within a method'
it 'uses the same self as the method'
'block (b) = b ()
o = {
name = "name"
my method () =
... | PogoScript | 5 | featurist/pogoscript | test/methodSpec.pogo | [
"BSD-2-Clause"
] |
/* @generated */
digraph cfg {
"dealloc#Bicycle#instance.6638bb9309381e06250999580487aff7_1" [label="1: Start Bicycle.dealloc\nFormals: self:Bicycle*\nLocals: \n " color=yellow style=filled]
"dealloc#Bicycle#instance.6638bb9309381e06250999580487aff7_1" -> "dealloc#Bicycle#instance.6638bb9309381e06250999580487af... | Graphviz (DOT) | 4 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/objc/shared/protocol_procdesc/Bicycle.m.dot | [
"MIT"
] |
package org.openapitools.api
import io.micronaut.http.client.exceptions.HttpClientResponseException
import org.openapitools.model.Order
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Ignore
import spock.lang.Specification
import jakarta.inject.Inject
import java.time.LocalDateTime... | Groovy | 5 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/api/StoreApiSpec.groovy | [
"Apache-2.0"
] |
% LaTeX documentation preamble
%
% Copyright (c) 2021 Nordic Semiconductor ASA
% SPDX-License-Identifier: Apache-2.0
\usepackage[some]{background}
\usepackage{sectsty}
\definecolor{bg-color}{HTML}{333f67}
\setcounter{tocdepth}{2}
\addto\captionsenglish{\renewcommand{\contentsname}{Table of contents}}
\allsectionsf... | TeX | 3 | Trifunik/zephyr | doc/_static/latex/preamble.tex | [
"Apache-2.0"
] |
ARG BASE_IMAGE
# ARG BASE_IMAGE=arm64v8/ubuntu:18.04
FROM ${BASE_IMAGE}
ARG GEOLOC
ARG CLEAN_DEPS
ARG INSTALL_MODE
LABEL version="1.2"
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH /opt/apollo/sysroot/bin:$PATH
COPY installers /opt/apollo/installers
COPY rcfiles /opt/apollo/rcfiles
RUN bash /opt/apollo/installers/in... | Dockerfile | 4 | jzjonah/apollo | docker/build/cyber.aarch64.dockerfile | [
"Apache-2.0"
] |
// run-pass
// aux-build:issue-11225-2.rs
// pretty-expanded FIXME #23616
extern crate issue_11225_2 as foo;
pub fn main() {
foo::foo(1);
foo::foo_ufcs(1);
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-11225-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#%RAML 1.0 Library
types:
ErrorDetail:
type: object
properties:
message?: string
errors?: string[]
Error:
type: object
properties:
message: string
details?: ErrorDetail[]
| RAML | 4 | fquesnel/marathon | docs/docs/rest-api/public/api/v2/types/error.raml | [
"Apache-2.0"
] |
class Enumerable Enumerator {
forwards_unary_ruby_methods
alias_method: 'to_a for_ruby: 'to_a
def each: block {
each(&block)
}
}
| Fancy | 1 | bakkdoor/fancy | lib/rbx/enumerator.fy | [
"BSD-3-Clause"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R07d03*/
/*Part A*/
proc iml;
start simpleRegFunc(xvals, yvals);
n = nrow(xvals);
... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R07d03.sas | [
"CC-BY-4.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 | 5 | Machiaweliczny/oppailang | lib/stdlib/apis/mongo/connection.opa | [
"MIT"
] |
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2004-2008 Jean Privat <jean@pryen.org>
#
# 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/l... | Nit | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Nit/print_arguments.nit | [
"MIT"
] |
fileFormatVersion: 2
guid: e610f0e113e9dfd40854c9b6e29abf54
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | samisuleman10/open-project-1 | UOP1_Project/Assets/Prefabs/Props/Fence3.prefab.meta | [
"Apache-2.0"
] |
{% set result = [1, 2, 3, 4] | intersect([2, 4, 6]) %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/jinja_intersect.sls | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M21 3H3v18h18V3zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87 12 5 12zm0 6 3.5-4.5 2.5 3.01L14.5 12l4.5 6H5z"
}), 'Satellite... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/SatelliteSharp.js | [
"MIT"
] |
/*
颜色选择器:弹出菜单由用户选择颜色,返回值为16进制rgb颜色值
color 可被传递给调用者
default 用户按下ESC时的默认颜色值
注意:Excel使用BGR格式色值,使用前请用ToBGR转换
2013-12-26 杜立涛
-----------------------
初步创建,后续计划:
* 提供更多标准颜色
* 在颜色方块上标准A-Z导航--希望能有高手认领此任务
*/
InputColor(ByRef color)
{
color = null
Menu, MyMenu, Add, [&T]ransparent, MenuHandler
Menu, MyMenu, Add, [&H]Bl... | AutoHotkey | 4 | Jvcon/vimdesktop | Plugins/MicrosoftExcel/InputColor.ahk | [
"MIT"
] |
include "stdio.sl";
include "bigint.sl";
var args = cmdargs()+1;
if (!*args) {
fprintf(2, "usage: isprime N\n", 0);
exit(1);
};
biginit(2);
var N = bigatoi(*args);
var m = bigclone(N);
# special case: divisible by 2?
bigmodw(m, 2);
if (bigcmpw(m, 0) == 0) {
printf("%b is divisible by 2\n", [N]);
exit(0);
};
va... | Slash | 3 | jes/scamp-cpu | sys/isprime.sl | [
"Unlicense"
] |
package org.xtendroid.utils
/**
* @deprecated Use NamingUtils instead
*/
@Deprecated
class Utils extends NamingUtils {
/**
* @deprecated use StringExtensions.toFirstUpper instead
*/
@Deprecated
def static upperCaseFirst(String s) {
s.toFirstUpper
}
} | Xtend | 4 | Buggaboo/Xtendroid | Xtendroid/src/org/xtendroid/utils/Utils.xtend | [
"MIT"
] |
require "./sys/types"
require "./sys/stat"
require "./unistd"
lib LibC
F_GETFD = 1
F_SETFD = 2
F_GETFL = 3
F_SETFL = 4
FD_CLOEXEC = 1
O_CLOEXEC = 0o2000000
O_CREAT = 0o100
O_NOFOLLOW = 0o400000
O_TRUNC = 0o1000
O_APPEND = 0o200... | Crystal | 3 | n00p3/crystal | src/lib_c/x86_64-linux-gnu/c/fcntl.cr | [
"Apache-2.0"
] |
concrete TenseFre of Tense = CatFre, TenseX [Ant,AAnter,ASimul] **
TenseRomance with
(ResRomance = ResFre) ;
| Grammatical Framework | 1 | daherb/gf-rgl | src/french/TenseFre.gf | [
"BSD-3-Clause"
] |
class: draw;
dpi: 96;
size: 100px 100px;
rectangle {
size: 50px 50px;
fill: hatch(width(0) stride(0));
}
| CLIPS | 1 | asmuth-archive/travistest | test/draw/style_fill_hatch_zero.clp | [
"Apache-2.0"
] |
; RUN: llc -march=hexagon -O3 -verify-machineinstrs < %s | FileCheck %s
; REQUIRES: asserts
; Check for sane output. This testcase used to crash.
; CHECK: jumpr r31
target triple = "hexagon"
@g0 = external hidden unnamed_addr constant [9 x i16], align 8
; Function Attrs: nounwind readnone
define i64 @fred(i32 %a0) ... | LLVM | 4 | medismailben/llvm-project | llvm/test/CodeGen/Hexagon/rdf-def-mask.ll | [
"Apache-2.0"
] |
/******************************************************************************
Copyright (c) 2015 by SAS Institute Inc., Cary, NC 27513 USA
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:... | SAS | 5 | mikiec84/enlighten-apply | SAS_Neural_PatternRecognition/digit_classifier.sas | [
"Apache-2.0"
] |
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
An example showing how to use a distributed web server's user directory support.
With this, you can have an instant "community web site",
letting your shell users publish data in secure ways.
Just put this script anywhere, and /path/to/this/... | Ren'Py | 5 | KentShikama/twisted | docs/web/examples/users.rpy | [
"MIT",
"Unlicense"
] |
.signup-btn {
padding: 4px 12px;
}
| CSS | 0 | fcastillo-serempre/freeCodeCamp | client/src/components/Header/components/login.css | [
"BSD-3-Clause"
] |
{- This example used to fail but after the point-free evaluation fix
it seems to work #-}
module Issue259c where
postulate
A : Set
a : A
b : ({x : A} → A) → A
C : A → Set
d : {x : A} → A
d {x} = a
e : A
e = b (λ {x} → d {x})
F : C e → Set₁
F _ with Set
F _ | _ = Set
| Agda | 5 | cruhland/agda | test/Succeed/Issue259c.agda | [
"MIT"
] |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* 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... | F# | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Filterscript/colormatrix.fs | [
"MIT"
] |
body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 90%;
color: #555;
}
p {
/* avoid an excessively wide status text */
white-space: pre;
text-overflow: auto;
overflow: hidden;
max-width: 400px;
margin: 0;
padding: 0 10px;
line-height: 150%;
}
img {
margin: 5px 10px ... | CSS | 4 | bkucera2/cypress | packages/extension/app/popup.css | [
"MIT"
] |
// Test that we don't get an error with `dyn Bar` in an impl Trait
// when there are multiple inputs. The `dyn Bar` should default to `+
// 'static`. This used to erroneously generate an error (cc #62517).
//
// check-pass
trait Foo { type Item: ?Sized; }
trait Bar { }
impl<T> Foo for T {
type Item = dyn Bar;
}
... | Rust | 4 | Eric-Arellano/rust | src/test/ui/impl-trait/dyn-trait-elided-two-inputs-assoc.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# Proof by PDF that X <~ standardChiSq(2) == Y <~ exponential(1/2)
PDF_chisq := (n, x) -> x^(1/2*n-1)*exp(-1/2*x)/(2^(1/2*n))/GAMMA(1/2*n);
simplify(PDF_chisq(2,x));
PDF_exponential := (l, x) -> l*exp(-l*x);
simplify(PDF_exponential(1/2,x));
evalb(PDF_chisq(2,x) = PDF_exponential(1/2,x));
| Maple | 4 | vmchale/hakaru | tests/RoundTrip2/t_stdChiSq_to_exponential.proof.mpl | [
"BSD-3-Clause"
] |
"""The ATEN PE component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/aten_pe/__init__.py | [
"Apache-2.0"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "ConvertTo--SecureString" -Tags "CI" {
Context "Checking return types of ConvertTo--SecureString" {
It "Should return System.Security.SecureString after converting plaintext variable"{
#[SuppressMessage("Microsoft.Security... | PowerShell | 4 | dahlia/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-SecureString.Tests.ps1 | [
"MIT"
] |
# ======================================================================================================================
# Government aggregation module
# - revenues and expenses are in GovRevenues and GovExpenses respectively
# ===========================================================================================... | GAMS | 4 | gemal/MAKRO | Model/government.gms | [
"MIT"
] |
"""The lifx_cloud component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/lifx_cloud/__init__.py | [
"Apache-2.0"
] |
<!doctype html>
<html>
<head>
<title>axios - all example</title>
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"/>
</head>
<body class="container">
<h1>axios.all</h1>
<div>
<h3>User</h3>
<div class="row">
<img id="u... | HTML | 3 | zjlovezj/axios | examples/all/index.html | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.