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 |
|---|---|---|---|---|---|
#
# This recipe is used to resize SD card partition.
#
SUMMARY = "Resize sd card partition application"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = " \
file://resize-part \
"
S = "${WORKDIR}"
INSANE_SKIP_${PN} += "installed-vs-shipped"
FILES... | BitBake | 4 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/sw/petalinux/project-spec/meta-user/recipes-apps/resize-part/resize-part.bb | [
"Apache-2.0"
] |
# - Config file for the @(project_name) package
# It defines the following variables
# @(project_name)_INCLUDE_DIRS - include directories for FooBar
# @(project_name)_LIBRARIES - libraries to link against
# @(project_name)_EXECUTABLE - the bar executable
set(@(project_name)_INCLUDE_DIRS "@@CONF_INCLUDE_DIRS@@"... | EmberScript | 4 | sunbo57123/ros2cli_common_extension | ros2pkg/ros2pkg/resource/cmake/Config.cmake.in.em | [
"Apache-2.0"
] |
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7m-none-eabi"
%runtime.typecodeID = type { %runtime.typecodeID*, i32, %runtime.interfaceMethodInfo* }
%runtime.interfaceMethodInfo = type { i8*, i32 }
@"reflect/types.type:basic:uint8" = private constant %runtime.typecodeID zer... | LLVM | 3 | ofauchon/tinygo | transform/testdata/interface.out.ll | [
"Apache-2.0"
] |
<template>
<v-parallax src="https://cdn.vuetifyjs.com/images/parallax/material.jpg"></v-parallax>
</template>
| Vue | 3 | Nemikolh/vuetify | packages/vuetifyjs.com/src/releases/0.17/examples/parallax/default.vue | [
"MIT"
] |
#include "e.h"
exp $STANDBAC
pro $STANDBAC,0
ret 0
end 0
| Eiffel | 0 | wyan/ack | lang/a68s/liba68s/standback.e | [
"BSD-3-Clause"
] |
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wik... | VCL | 4 | elboulehmi/docker-swarm- | varnish/default.vcl | [
"MIT"
] |
LITHO,CANAL,R
005969,A,B,B,E,B,D,B,B,C,C,A,D,D,B,B,E,E,D,B,E,C,B,B,D,E,C,A,B,D,A,A,B,A,B,E,B,C,C,A,E,B,E,C,B,C,A,E,E,A,D,B,C,B,A,B,E,A,B,A,B,C,C,D,B,D,C,D,C,C,C,C,E,B,E,D,B,C,C,E,D,B,A,B,B,D,B,E,A,D,B,D,C,B,B,E,A,D,A,C,E,C
| IDL | 0 | plandauro/admision | storage/calificacion/claves_a.dlm | [
"MIT"
] |
$$ MODE TUSCRIPT,{}
string="alphaBETA"
lowercase =EXCHANGE(string," {&a} {-0-} ")
uppercase1=EXCHANGE(string," {&a} {-0+} ")
uppercase2=CAPS (string)
PRINT lowercase
PRINT uppercase1
PRINT uppercase2
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/String-case/TUSCRIPT/string-case.tu | [
"Info-ZIP"
] |
*> Test Program
identification division.
program-id. ok-test.
procedure division.
display "OK"
goback.
end program ok-test.
| COBOL | 2 | ShaneLee/piston | packages/cobol/3.1.2/test.cob | [
"MIT"
] |
# Copyright 2019 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 | 4 | EricRemmerswaal/tensorflow | tensorflow/compiler/tests/complex_div_test.py | [
"Apache-2.0"
] |
10 5 0 0
0 1 4 1 2 4 3 [0] [0] [0] [0]
1 1 2 6 10 [3] [9]
2 1 3 8 5 10 [15] [5] [4]
3 1 1 8 [13]
4 1 1 6 [13]
5 1 2 7 2 [0] [-6]
6 1 1 9 [7]
7 1 1 11 [9]
8 1 1 11 [10]
9 1 3 11 6 4 [10] [-19] [-24]
10 1 2 11 1 [1] [-10]
11 1 0
0 1 0 0 0 0 0 0
1 1 3 2 0 3 0 4
2 1 7 4 4 0 0 0
3 1 10 2 3 2 5 3
4 1 5 2 1 0... | Eagle | 0 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/sm_j10/psp13.sch | [
"Apache-2.0"
] |
.. meta::
:description: Guides for integrating Hasura with monitoring frameworks
:keywords: hasura, docs, integration, monitoring, monitoring framework
.. _guides_monitoring_frameworks:
Guides: Integrating with monitoring frameworks
==============================================
.. contents:: Table of contents... | reStructuredText | 2 | gh-oss-contributor/graphql-engine-1 | docs/graphql/core/guides/monitoring/index.rst | [
"Apache-2.0",
"MIT"
] |
class val ProcessError
let error_type: ProcessErrorType
let message: (String | None)
new val create(error_type': ProcessErrorType,
message': (String | None) = None)
=>
error_type = error_type'
message = message'
fun string(): String iso^ =>
match message
| let m: String =>
recover
... | Pony | 4 | rtpax/ponyc | packages/process/process_error.pony | [
"BSD-2-Clause"
] |
DROP KEYSPACE IF EXISTS gateway;
| SQL | 1 | zeesh49/tutorials | jhipster/jhipster-microservice/gateway-app/src/main/resources/config/cql/drop-keyspace.cql | [
"MIT"
] |
#include <oxstd.h>
#include <oxdraw.h>
#include <oxprob.h>
#import <modelbase>
#import <simula>
#include <oxfloat.h>
main(){
decl vX, vY, mZ;
//decl iCorrect, dSigma2_eta, dMu, dPhi ;
//dMu = 0.0506437; //we fix dMu because log((81/(77+81))/(1-(81/(77+81)))) = 0.0506437
//decl dPhi_LB, dPhi_Steps, d... | Ox | 3 | tamerdilaver/Simulation | test_3d_plot.ox | [
"MIT"
] |
using System;
namespace HelloWorld
{
class Program
{
static void Main()
{
Console.WriteLine("Hello World");
}
}
}
| Brainfuck | 3 | Gabrielarodrigues10/ga | b/Beef.bf | [
"MIT"
] |
--TEST--
Allow self and parent in use function statement
--FILE--
<?php
namespace {
use function self as foo;
use function parent as bar;
}
?>
--EXPECT--
| PHP | 3 | thiagooak/php-src | Zend/tests/use_function/self_parent.phpt | [
"PHP-3.01"
] |
describe("foreach should iterate through range", ||
j := 0
total := 0
for (i in 0..10) {
total += 1
expect(j, i)
j += 1
}
expect(10, total)
)
| ooc | 3 | shamanas/rock | test/compiler/control/foreach-range.ooc | [
"MIT"
] |
// compile-flags: --edition 2018
#![feature(try_blocks)]
fn foo() -> Option<()> { Some(()) }
fn main() {
let _: Option<f32> = try {
foo()?;
42
//~^ ERROR type mismatch
};
let _: Option<i32> = try {
foo()?;
};
//~^ ERROR type mismatch
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/try-block/try-block-type-error.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 3 | sbj42/vscode | extensions/git/src/pushError.ts | [
"MIT"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright 2004 Tom Schrijvers
% Copyright 2021 Paulo Moura <pmoura@logtalk.org>
% SPDX-License-Identifier: BSD-2-Clause
%
% Redistribution and use in source and binary forms, with o... | Logtalk | 3 | PaulBrownMagic/logtalk3 | ports/toychr/examples/dom.lgt | [
"Apache-2.0"
] |
// compile-flags: --llvm-args
| Rust | 0 | mbc-git/rust | src/test/ui/invalid-compile-flags/codegen-option-without-group.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#define DEFINE_CONSOLEV2_PROPERTIES
#define INC_OLE2
#define NOMINMAX
#define WIN32_NO_STATUS
#include <windows.h>
#undef WIN32_NO_STATUS
// From ntdef.h, but that can't be included or it'll fight over PROBE_ALIGNMENT and other s... | C | 3 | hessedoneen/terminal | src/propslib/precomp.h | [
"MIT"
] |
// check-pass
#[derive(
core::clone::Clone,
core::marker::Copy,
core::fmt::Debug,
core::default::Default,
core::cmp::Eq,
core::hash::Hash,
core::cmp::Ord,
core::cmp::PartialEq,
core::cmp::PartialOrd,
)]
struct Core;
#[derive(
std::clone::Clone,
std::marker::Copy,
std::f... | Rust | 3 | Eric-Arellano/rust | src/test/ui/macros/builtin-std-paths.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
;; Include EUnit macros
(include-lib "eunit/include/eunit.hrl")
;;;===================================================================
;;; OTP 18 hacks
;;;===================================================================
(defmacro otp>=18? ()
`(try
(>= (list_to_integer (erlang:system_info 'otp_release)) 18)
... | LFE | 5 | ioolkos/ltest | include/ltest-macros.lfe | [
"BSD-3-Clause"
] |
#tag Class
Protected Class UIAlertController
Inherits UIViewController
#tag Method, Flags = &h0
Sub AddAction(action as UIAlertAction)
declare sub addAction_ lib UIKitLib selector "addAction:" (obj_id as ptr, action as ptr)
addAction_(self, action)
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Share... | Xojo | 4 | kingj5/iOSKit | Modules/UIKit/UIAlertController.xojo_code | [
"MIT"
] |
-@val body: String
-@val s: skinny.Skinny
!!! 5
%html(lang="en")
%head
%meta(charset="utf-8")
!= s.csrfMetaTags
%script(type="text/javascript" src="//codeorigin.jquery.com/jquery-2.0.3.min.js")
%link(rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css")
%body
=... | Scaml | 3 | lloydmeta/skinny-framework | example/src/main/webapp/WEB-INF/layouts/bar.scaml | [
"MIT"
] |
# {partition-string} = require \prelude-extension
# {HighlightedText, SimpleSelect} = require \ReactSelectize
create-react-class = require \create-react-class
Form = create-react-class do
# render :: a -> ReactElement
render: ->
React.create-element SimpleSelect,
# we use ... | LiveScript | 5 | rodcope1/react-selectize-rodcope1 | public/examples/simple/SearchHighlighting.ls | [
"Apache-2.0"
] |
sleep 1
t api app mode_sub_mode photo single
sleep 1
t api photo protune on
t api photo protune_ev HIGHEXP
sleep 1
t api system button shutter press
sleep 1
t api system button shutter release
sleep 3
t api photo protune_ev 0
sleep 1
t api system button shutter press
sleep 1
t api system button shutter release
sleep 3
... | AGS Script | 3 | waltersgrey/autoexechack | HERO4/HDR/autoexec.ash | [
"MIT"
] |
%%%
%%% Author:
%%% Leif Kornstaedt <kornstae@ps.uni-sb.de>
%%%
%%% Copyright:
%%% Leif Kornstaedt, 1998-2001
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation of Oz 3:
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http:/... | Oz | 4 | Ahzed11/mozart2 | lib/main/ozbatch/Compile.oz | [
"BSD-2-Clause"
] |
// input: []
// output: 0
package {
public class ClassConstruction {
public static function main():int{
var f:Foo = new Foo();
return 0;
}
}
}
class Foo {
}
| ActionScript | 1 | hackarada/youtube-dl | test/swftests/ClassConstruction.as | [
"Unlicense"
] |
#pragma once
#include <algorithm>
#include <string>
#include <vector>
#include "envoy/common/platform.h"
#include "google/protobuf/any.pb.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/descriptor.pb.h"
#include "google/protobuf/descriptor_database.h"
#include "google/protobuf/dynamic_message.h"... | C | 4 | dcillera/envoy | source/common/protobuf/protobuf.h | [
"Apache-2.0"
] |
2016-03-03 18:25:03 > fsociety (whoami@localhost) has joined #unreal4
2016-03-03 18:25:03 - Channel #unreal4: 2 nicks (2 ops, 0 halfops, 0 voices, 0 normals)
| IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.#unreal4.weechatlog | [
"MIT"
] |
make a : Set ;
out ;
make f : a -> a ;
lambda x ;
give x
| PigLatin | 1 | mietek/epigram | test/Script.pig | [
"MIT"
] |
unit TaskDialog;
{
Inno Setup
Copyright (C) 1997-2020 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
TaskDialogMsgBox function integrating with CmnFunc's MsgBox functions
}
interface
uses
Windows, CmnFunc;
function TaskDialogMsgBox(const... | Pascal | 5 | Patriccollu/issrc | Projects/TaskDialog.pas | [
"FSFAP"
] |
--TEST--
Bug #76348 (WSDL_CACHE_MEMORY causes Segmentation fault)
--EXTENSIONS--
soap
--SKIPIF--
<?php
if (getenv("SKIP_ONLINE_TESTS")) die("skip online test");
?>
--FILE--
<?php
$client = new SoapClient(__DIR__ . DIRECTORY_SEPARATOR . 'bug76348.wsdl', [
'cache_wsdl' => WSDL_CACHE_MEMORY,
]);
?>
===DONE===
--EXPECT... | PHP | 3 | NathanFreeman/php-src | ext/soap/tests/bugs/bug76348.phpt | [
"PHP-3.01"
] |
{-
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec versio... | Elm | 4 | derBiggi/swagger-codegen | samples/client/petstore/elm/src/Data/Category.elm | [
"Apache-2.0"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
' vbc /t:module /out:Source1Module.netmodule /vbruntime- Source1.vb
' vbc /t:library /out:c1.dll /vbruntime- Source1.v... | Visual Basic | 4 | ffMathy/roslyn | src/Compilers/Test/Resources/Core/SymbolsTests/MultiTargeting/Source1.vb | [
"MIT"
] |
int ShowDistance(int d, String units)
{
// printf("The distance is %d %s.\n", d, units);
PrintLn("The distance is ", d, " ", units, ".");
return d;
}
class VariablesApp : Application
{
void Main()
{
PrintLn("The function returned: ", ShowDistance(54, "feet"));
system("pause");
}
}
| eC | 4 | N-eil/ecere-sdk | installer/coursework/Chapter 2 - Variables and Data Types/Lab2.4/lab2.ec | [
"BSD-3-Clause"
] |
package com.baeldung.thymeleaf.enums;
public class Widget {
private String name;
private Color color;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Color getColor() {
return color;
}
public void set... | Java | 4 | DBatOWL/tutorials | spring-web-modules/spring-thymeleaf-2/src/main/java/com/baeldung/thymeleaf/enums/Widget.java | [
"MIT"
] |
HEADERS += \
$${INCLUDE_DIR}/boost/numeric/ublas/tensor/tensor.hpp \
$${INCLUDE_DIR}/boost/numeric/ublas/tensor/extents.hpp \
$${INCLUDE_DIR}/boost/numeric/ublas/tensor/strides.hpp \
$${INCLUDE_DIR}/boost/numeric/ublas/tensor/expression.hpp \
$${INCLUDE_DIR}/boost/numeric/ublas/tensor/ostream.hpp \
$${INCLUDE_DIR... | QMake | 3 | cpp-pm/boost | libs/numeric/ublas/IDEs/qtcreator/include/tensor/tensor.pri | [
"BSL-1.0"
] |
; inherits: html_tags
(raw_text_expr) @none
[
(special_block_keyword)
(then)
(as)
] @keyword
[
"{"
"}"
] @punctuation.bracket
[
"#"
":"
"/"
"@"
] @tag.delimiter
| Scheme | 2 | hmac/nvim-treesitter | queries/svelte/highlights.scm | [
"Apache-2.0"
] |
example (p q r s : Prop) : p → q → r → s → (p ∧ q) ∧ (r ∧ s ∧ p) ∧ (p ∧ r ∧ q) :=
by intros; repeat { constructor }; assumption
| Lean | 3 | ericrbg/lean | tests/lean/run/repeat_tac.lean | [
"Apache-2.0"
] |
using Beefy.widgets;
using Beefy.theme.dark;
using Beefy.gfx;
using System.Collections;
using System;
using System.Diagnostics;
using Beefy.events;
using System.Threading;
using Beefy;
namespace BeefPerf
{
class ProfilePanel : Widget
{
public class ProfileListViewItem : DarkVirtualListViewItem
{
public overri... | Brainfuck | 4 | gammy55/linguist | samples/Beef/ProfilePanel.bf | [
"MIT"
] |
package unit.issues;
import unit.Test;
class Issue3084 extends Test
{
#if java
function test()
{
for (i in 0...40)
{
var m = new sys.thread.Mutex();
sys.thread.Thread.create(function():Void {
m.acquire();
Sys.sleep(0.01);
m.release();
});
sys.thread.Thread.create(function():Void {
m.a... | Haxe | 3 | Alan-love/haxe | tests/unit/src/unit/issues/Issue3084.hx | [
"MIT"
] |
#!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. 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.ap... | Python | 4 | cnarte/transformers | examples/onnx/pytorch/translation/run_onnx_exporter.py | [
"Apache-2.0"
] |
<meta http-equiv="refresh" content="0; url=/home" />
| HTML | 1 | jlevon/hugo | examples/multilingual/layouts/index.html | [
"Apache-2.0"
] |
#buffer size in KB vs time in min
min2mil = 60*1000
suggested_values = [(2^0, 0), (2^17, 1), (2^20, 25), (2^23, 29), (2^27,29.99)]
suggested_values = [(a,b*min2mil) for (a,b) in suggested_values]
exponential_values = [(t,s) for (t,s) in suggested_values]
#RR(e^(1/t))
g = 20 #(max dead)
var('a,b,d,e,f')
#model(x) = a*e^... | Sage | 3 | IHA114/stegotorus | doc/dos_messures.sage | [
"BSD-3-Clause-Clear"
] |
const fs = require("fs")
const path = require("path")
const faker = require(`faker`)
console.log("Start of gen")
const N = parseInt(process.env.N, 10) || 100
const FILE = path.resolve("gendata.csv")
// We may want to tweak this a little but for this purpose we have a CSV with one column; the full page contents
// We... | JavaScript | 4 | pipaliyajaydip/gatsby | benchmarks/gabe-csv-markdown/gen.js | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Collections.Immutable
Imports Microsoft.CodeAnalysis.CodeActions
Imports Microsoft.CodeAnalysis.CodeFix... | Visual Basic | 5 | ffMathy/roslyn | src/EditorFeatures/VisualBasicTest/Diagnostics/AliasAmbiguousType/AliasAmbiguousTypeTests.vb | [
"MIT"
] |
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=i386-linux-gnu -mattr=+sse2 -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X32
# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL... | Mirah | 4 | arunkumarbhattar/llvm | test/CodeGen/X86/GlobalISel/legalize-constant.mir | [
"Apache-2.0"
] |
File with("urls.txt") contents split("\n") foreach(u, URL with("http://localhost:8080" .. u) fetch println)
| Io | 3 | BooBSD/vertexdb | tests/pnode.io | [
"BSD-3-Clause"
] |
import "EcereAudio"
class MainWindow : Window
{
text = "Playing a sound";
background = black;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
size = { 576, 432 };
Mixer mixer { };
Sound sound10 { "sound.wav" };
bool OnCreate()
{
mixer.systemHandl... | eC | 3 | N-eil/ecere-sdk | samples/audio/PlaySound/PlaySound.ec | [
"BSD-3-Clause"
] |
( Generated from test_example_whospecies_in.muv by the MUV compiler. )
( https://github.com/revarbat/muv )
: _showspecies[ -- ret ]
var _obj
loc @ contents_array foreach
_obj ! pop
_obj @ player? if
_obj @ "species" getpropstr _obj @ "sex" getpropstr _obj @
"%-30D %-10... | MUF | 4 | revarbat/muv | tests/test_example_whospecies_cmp.muf | [
"BSD-2-Clause"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
@0x851c6a9c2bfa761e;
struct MultipleInheritance {
color @0 :Text;
}
| Cap'n Proto | 2 | mrpotes/go-raml | codegen/python/fixtures/python_capnp/MultipleInheritance.capnp | [
"BSD-2-Clause"
] |
-#
-# Copyright (C) 2009-2011 the original author or authors.
-# See the notice.md file distributed with this work for additional
-# information regarding copyright ownership.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You... | Scaml | 4 | arashi01/scalate-samples | scalate-sample/src/main/webapp/scaml/sampleTag.scaml | [
"Apache-2.0"
] |
# -*- coding:binary -*-
module Rex
module Proto
module Nuuo
class Response
module ParseCode
Completed = 1
Partial = 2
Error = 3
end
module ParseState
ProcessingHeader = 1
ProcessingBody = 2
Completed = 3
end
attr_accessor :headers
attr_accessor :body
attr_acce... | Ruby | 4 | OsmanDere/metasploit-framework | lib/rex/proto/nuuo/response.rb | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
//By adding a tag to a bot, you can group multiple bots in the sim
// together to better allow you to control many bots.
//The tag commands allow you to add, remove, and retrieve a list of bot IDs.
string botTag = "Bot Test Tag";
default
{
state_entry()
{
//This creates a bot in the sim with the given name, ou... | LSL | 4 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Tagging.lsl | [
"BSD-3-Clause"
] |
# varnish config for wikistream so that images and repeated requests
# for image json are cached
backend default {
.host = "127.0.0.1";
.port = "3000";
}
# for websocket support we need this
sub vcl_pipe {
if (req.http.upgrade) {
set bereq.http.upgrade = req.http.upgrade;
}
}
sub vcl_recv {
... | VCL | 4 | Krinkle/wikistream | conf/default.vcl | [
"CC0-1.0"
] |
import { useState, useEffect } from 'react'
import userbase from 'userbase-js'
function Todo({ name, done, toggleComplete, deleteTodo }) {
return (
<li className="my-4">
<div className="flex items-center">
<span className={done ? 'text-gray-500' : ''}>{name}</span>
<button
type="b... | JavaScript | 4 | blomqma/next.js | examples/with-userbase/components/todo-form/index.js | [
"MIT"
] |
/*
* SRT - Secure, Reliable, Transport
* Copyright (c) 2019 Haivision Systems Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#ifndef INC__SRT_FE... | C | 5 | attenuation/srs | trunk/3rdparty/srt-1-fit/srtcore/fec.h | [
"MIT"
] |
.foo {
color: rgba(51 170 51 / 0.4);
color: rgba(51 170 51 / 40%);
color: hsl(270 60% 50% / .15);
color: hsla(240 100% 50% / .05);
color: hsla(240 100% 50% / 5%);
}
| CSS | 3 | fuelingtheweb/prettier | tests/css_color/whitespace-syntax.css | [
"MIT"
] |
:root {
--primary-color: #0594CB;
--primary-color-dark: #0A1922;
--primary-color-light: #f9f9f9;
--accent-color: #EBB951;
--accent-color-light: #FF4088;
--accent-color-dark: #33ba91;
--text-color-primary: #373737;
--text-on-primary-color: #fff;
--text-color-secondary: #ccc;
... | CSS | 4 | jlevon/hugo | docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_variables.css | [
"Apache-2.0"
] |
{
"repository": {
"escape-character": {
"patterns": [
{
"name": "constant.character.escape.ddlog",
"match": "\\\\[0nrvtbfa&\"\\\\]"
}
]
},
"string-quoted-interpolated-ddlog": {
... | JSON5 | 4 | smadaminov/differential-datalog | tools/vscode/ddlog-language/src/good/string.json5 | [
"MIT"
] |
#define RGB_TO_Y(r, g, b) ((((mul24(b, 13) + mul24(g, 65) + mul24(r, 33)) + 64) >> 7) + 16)
#define RGB_TO_U(r, g, b) ((mul24(b, 56) - mul24(g, 37) - mul24(r, 19) + 0x8080) >> 8)
#define RGB_TO_V(r, g, b) ((mul24(r, 56) - mul24(g, 47) - mul24(b, 9) + 0x8080) >> 8)
#define AVERAGE(x, y, z, w) ((convert_ushort(x) + conve... | OpenCL | 4 | Neptos/openpilot | selfdrive/camerad/transforms/rgb_to_yuv.cl | [
"MIT"
] |
const struct class SPoint {
const Int x
const Int y
//new make(|This| f) { f(this) }
new make(Int x, Int y) {
this.x = x
this.y = y
}
}
class StructTest {
Void main() {
//p := SPoint{x=1; y=2}
p := SPoint(1, 2)
echo("$p.x")
}
}
| Fantom | 4 | fanx-dev/fanx | library/baseTest/fan/StructTest.fan | [
"AFL-3.0"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-10-06 11:44+0000\n"
"Last-Translator: Muḥend Belqasem <belkacem77@gmail.com>\n"
"Lan... | Gettext Catalog | 2 | jpmallarino/django | django/contrib/sites/locale/kab/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
fileFormatVersion: 2
guid: 9d871df7bbc973d468622dd10b6f7ea9
timeCreated: 1518577405
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | mengtest/my_test_xlua_z | Assets/XLua/Doc/XLua教程.md.meta | [
"BSD-3-Clause"
] |
!macro customInit
; Workaround for installer handing when the app directory is removed manually
${ifNot} ${FileExists} "$INSTDIR"
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\{${UNINSTALL_APP_KEY}}"
${EndIf}
; Workaround for the old-format uninstall registry key (some people repor... | NSIS | 4 | pjsoni/lens | build/installer.nsh | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text">${ title }</title>
% if link:
<link href="${ link }/changelog" rel="alternate"/>
<link href="${ link }/changelog.atom" rel="self" type="application/atom+xml"/>
<icon>${ link }/favicon.ico</icon>
% endif
<u... | Mako | 3 | zuzhi/rssant | rssant_common/resources/changelog.atom.mako | [
"BSD-3-Clause"
] |
pub mod test_go;
pub mod test_py;
pub mod test_rust;
use assert_cmd::prelude::*;
use dir_diff;
use std::process::Command;
use tempdir;
use tempdir::TempDir;
#[test]
fn test_rust_help() {
/// todo: compile rust executive file
let path = "cargo";
let mut cmd = Command::new("run");
/// todo: add director... | Rust | 3 | luyouli/996.ICU | archived/licenses[WIP]/tools/test-gen-license/src/lib.rs | [
"ICU",
"MIT"
] |
{eq} = require './_helpers'
suite 'files with/without matches' ->
test 'single file - files-with-matches' ->
eq '--files-with-matches return test/data/a.js', 'test/data/a.js', it
test 'single file - files-with-matches - no results' ->
eq '--files-with-matches "return.arg::func" test/data/a.js', [], it
... | LiveScript | 3 | GerHobbelt/grasp | test/files-with-without-matches.ls | [
"MIT"
] |
section
variable (A : Type)
definition f : A → A :=
λ x, x
end
#check f
| Lean | 4 | JLimperg/lean | tests/lean/run/def4.lean | [
"Apache-2.0"
] |
source("M:\\josef_new\\eclipse_ws\\statsmodels\\statsmodels_py34_pr\\tools\\R2nparray\\R\\R2nparray.R")
library('mgcv')
library('gamair')
d = data(mpg)
#gam_a = gam(city.mpg ~ fuel + drive + s(weight,bs="cc",k=7) + s(hp,bs="cc",k=6), data = mpg,
# sp = c(6.46225497484073, 0.81532465890585))
#gam_a = gam(... | R | 3 | madhushree14/statsmodels | statsmodels/gam/tests/results/results_mpg_bs_poisson.r | [
"BSD-3-Clause"
] |
/*
* 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 ... | Arduino | 4 | XiaoSong9905/tvm | apps/microtvm/arduino/template_project/src/host_driven/project.ino | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Capture the directory this script resides in
SCRIPT_DIRECTORY="$(dirname $(readlink -f "$0"))"
# Set context to flutter/dev
CONTEXT="${... | Shell | 5 | Mayb3Nots/flutter | dev/ci/docker_linux/docker_build.sh | [
"BSD-3-Clause"
] |
MODULE = Agar::Pixmap PACKAGE = Agar::Pixmap PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::Pixmap
new(package, parent, surface)
const char * package
Agar::Widget parent
Agar::Surface surface
PREINIT:
Uint wflags = 0;
CODE:
if ((items == 4 && SvTYPE(SvRV(ST(3))) != SVt_PVHV) || items > 4) {
Perl_cr... | XS | 4 | auzkok/libagar | p5-Agar/Agar/Pixmap.xs | [
"BSD-2-Clause"
] |
require "./repl"
# This class keeps track of all the constants the interpreter will
# need access to, and allows you to declare and access their position
# in memory, and whether they have an initializer or not.
#
# Trivial constants such as `A = 1` (int literals, bools, etc.) are not stored
# in memory. Instead, thei... | Crystal | 5 | jessedoyle/crystal | src/compiler/crystal/interpreter/constants.cr | [
"Apache-2.0"
] |
package influxdb_test
import "testing/expect"
option now = () => (2030-01-01T00:00:00Z)
testcase push_down_min_bare extends "flux/planner/group_min_test" {
expect.planner(rules: [
"PushDownGroupAggregateRule": 1,
])
group_min_test.group_min_bare()
}
testcase push_down_min_bare_host extends "flux... | FLUX | 3 | ldwformat/influxdb | query/stdlib/influxdata/influxdb/min_max_influxdb_test.flux | [
"MIT"
] |
(***********************************************************
[PROJECT NAME]
TESTS
[DESCRIPTION]
************************************************************)
(***********************************************************)
(***********************************************************)
(* System T... | NetLinx | 4 | RBSystems/amx-test-suite | template/Netlinx Test Suite.axs | [
"Apache-2.0"
] |
<p>null</p>
<p>undefined</p>
| HTML | 0 | Theo-Steiner/svelte | test/hydration/samples/dynamic-text-nil/_before.html | [
"MIT"
] |
{% extends "layouts/base.volt" %}
{% block head_icons %}
{%- endblock -%}
{%- block body_start -%}
<body class="hold-transition lockscreen">
{%- endblock -%}
{%- block wrapper_start -%}
<div class="lockscreen-wrapper">
{%- endblock -%}
{% block content %}
{{ content() }}
{% endblock %}
{%- block wrappe... | Volt | 4 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/layouts/error.volt | [
"BSD-3-Clause"
] |
;Local
S X=$ZF(-1,"rename input.txt output.txt")
S X=$ZF(-1,"rename docs.dir mydocs.dir")
;Root of current device
S X=$ZF(-1,"rename [000000]input.txt [000000]output.txt")
S X=$ZF(-1,"rename [000000]docs.dir [000000]mydocs.dir")
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/Rename-a-file/MUMPS/rename-a-file.mumps | [
"Info-ZIP"
] |
.row-fluid .no-gutter {
margin-left: 0px;
}
footer {
text-align: center;
margin: 30px 0;
}
#editor {
width: 50%;
height: 400px;
float: left;
clear: left;
position: relative;
font-family: "source-code-pro";
font-size: 14px;
border: 1px solid #ddd;
border-radius: 4px;
border-bottom-right-radiu... | CSS | 2 | allansson/jsPDF | examples/css/editor.css | [
"MIT"
] |
/*
* 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 may ... | Scala | 5 | kesavanvt/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/PathFilterStrategySuite.scala | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
.q-expansion-item
&__border
opacity: 0
&__toggle-icon
position: relative
transition: transform .3s
&--rotated
transform: rotate(180deg)
&__toggle-focus
width: 1em !important
height: 1em !important
position: relative !important
& + .q-expansion-item__toggle-icon
ma... | Sass | 3 | ygyg70/quasar | ui/src/components/expansion-item/QExpansionItem.sass | [
"MIT"
] |
Import mojo.app
Import mojo.graphics
Import mojo.input
' TO DO -- Limit mouse x/y to visible (zoomed) area, rather than just virtual
' display area? Only when ratioborders kicks in?
' -----------------------------------------------------------------------------
' Usage...
' -----------------------------------------... | Monkey | 4 | blitz-research/monkey | bananas/hitoro/rockout/imports/virtual.monkey | [
"Zlib"
] |
DROP TABLE qrtz_locks;
DROP TABLE qrtz_scheduler_state;
DROP TABLE qrtz_fired_triggers;
DROP TABLE qrtz_paused_trigger_grps;
DROP TABLE qrtz_calendars;
DROP TABLE qrtz_blob_triggers;
DROP TABLE qrtz_cron_triggers;
DROP TABLE qrtz_simple_triggers;
DROP TABLE qrtz_simprop_triggers;
DROP TABLE qrtz_triggers;
DROP TABLE q... | SQL | 3 | Evan43789596/spring-boot-demo | spring-boot-demo-task-quartz/init/dbTables/tables_solid.sql | [
"MIT"
] |
import * as React from 'react';
import { ThemeProvider } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Button from '@mui/material/Button';
import Grid from '@mui/material/Grid';
import KeyboardArrowRightRounded from '@mui/icons-material/KeyboardArrowRightRounded';
import Section from 'docs/sr... | TypeScript | 4 | Gethomely/material-ui | docs/src/components/productCore/CoreHeroEnd.tsx | [
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(declare-fun |main::lk10@5| ()... | SMT | 1 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.test_locks_11_true-unreach-call_false-termination.c.smt2 | [
"MIT"
] |
<pre>* item 1
''item''
== dd ==
</pre><ul><li>item 2</li></ul>
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-html/pre.creole | [
"Apache-2.0"
] |
//
// This file is distributed under the MIT License. See LICENSE for details.
//
extern (C): void __VERIFIER_assert(int);
| D | 0 | 3dik/Dat3M | include/smack.di | [
"MIT"
] |
;;
;
; Name: stager_sock_reverse
; Qualities: Can Have Nulls
; Version: $Revision: 1633 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this package.
;
; Description:
;
; Implement... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/bsdi/ia32/stager_sock_reverse.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
INTERFACE zif_abapgit_http_agent
PUBLIC .
CONSTANTS:
BEGIN OF c_methods,
get TYPE string VALUE 'GET',
post TYPE string VALUE 'POST',
put TYPE string VALUE 'PUT',
delete TYPE string VALUE 'DELETE',
patch TYPE string VALUE 'PATCH',
END OF c_methods.
METHODS global_he... | ABAP | 4 | amit3kumar/ABAP_ALL | src/http/zif_abapgit_http_agent.intf.abap | [
"MIT"
] |
#ifndef Py_LIMITED_API
#ifndef Py_INTERNAL_IMPORT_H
#define Py_INTERNAL_IMPORT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_FORK
extern PyStatus _PyImport_ReInitLock(void);
#endif
extern PyObject* _PyImport_BootstrapImp(PyThreadState *tstate);
struct _module_alias {
const char *name; /* AS... | C | 3 | oleksandr-pavlyk/cpython | Include/internal/pycore_import.h | [
"0BSD"
] |
-- name: create-table-secrets
CREATE TABLE IF NOT EXISTS secrets (
secret_id SERIAL PRIMARY KEY
,secret_repo_id INTEGER
,secret_name VARCHAR(500)
,secret_data BYTEA
,secret_pull_request BOOLEAN
,secret_pull_request_push BOOLEAN
,UNIQUE(secret_repo_id, secret_nam... | SQL | 4 | sthagen/drone-drone | store/shared/migrate/postgres/files/009_create_table_secrets.sql | [
"Apache-2.0"
] |
-- Namespaces are currently allowed to be empty, as modules are, but also
-- require their contents to be indented to denote where they end.
-- Whereas a module's end is the end of the file.
-- Since there's no indentation on the latter definitions, this file should have
-- Test in scope under Main.X.Test, Test in sco... | Idris | 3 | Qqwy/Idris2-Erlang | idris2/tests/idris2/namespace001/Scope.idr | [
"BSD-3-Clause"
] |
BAJ
| PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_matmulinteger/test_data_set_0/input_0.pb | [
"Apache-2.0"
] |
import addImports from 'jscodeshift-add-imports';
export default function transformer(fileInfo, api, options) {
const j = api.jscodeshift;
const importModule = options.importModule || '@material-ui/core';
const targetModule = options.targetModule || '@material-ui/core';
let requirePath = importModule;
if (... | JavaScript | 4 | dany-freeman/material-ui | packages/mui-codemod/src/v4.0.0/top-level-imports.js | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R02s02*/
data sp4r.shelter3;
infile datalines dlm='#';
input Name $ Age Weight Color $ ... | SAS | 3 | snowdj/sas-prog-for-r-users | code/SP4R02s02.sas | [
"CC-BY-4.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.