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 |
|---|---|---|---|---|---|
QT.3dlogic_private.VERSION = 5.9.4
QT.3dlogic_private.name = Qt3DLogic
QT.3dlogic_private.module =
QT.3dlogic_private.libs = $$QT_MODULE_LIB_BASE
QT.3dlogic_private.includes = $$QT_MODULE_INCLUDE_BASE/Qt3DLogic/5.9.4 $$QT_MODULE_INCLUDE_BASE/Qt3DLogic/5.9.4/Qt3DLogic
QT.3dlogic_private.frameworks =
QT.3dlogic_private.d... | QMake | 1 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_3dlogic_private.pri | [
"MIT"
] |
package opal: import *;
package random: import randint, uniform;
new <Vector> RESOLUTION = Vector(1280, 720);
new int DROP_QTY = 200,
MIN_DROP_LEN = 5,
MAX_DROP_LEN = 30,
MIN_DROP_SIZE = 1,
MAX_DROP_SIZE = 3,
MIN_OFFSCREEN = 100,
MAX_OFFSC... | Opal | 4 | thatsOven/opal-lang | examples/rain.opal | [
"MIT"
] |
package io.swagger.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@Canonical
class User {
Long id = null
String username = null
String firstName = null
String lastName = null
String email = null
String passw... | Groovy | 3 | wwadge/swagger-codegen | samples/client/petstore/groovy/src/main/groovy/io/swagger/model/User.groovy | [
"Apache-2.0"
] |
<svg height="16pt" preserveAspectRatio="xMidYMid meet" viewBox="0 0 16 16" width="16pt" xmlns="http://www.w3.org/2000/svg"><path d="m18 46618c45-75 122-207 122-211 0-2 25-45 55-95s55-96 55-102c0-5 5-10 10-10 6 0 10-4 10-9s73-135 161-288c89-153 173-298 187-323s32-57 41-72c88-149 187-324 189-335 2-7 8-13 13-13s9-4 9-10c0... | SVG | 1 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/vuetify-vuex-todo-graphql/public/img/icons/safari-pinned-tab.svg | [
"Apache-2.0",
"MIT"
] |
#ifndef Py_TRACEMALLOC_H
#define Py_TRACEMALLOC_H
#ifndef Py_LIMITED_API
/* Track an allocated memory block in the tracemalloc module.
Return 0 on success, return -1 on error (failed to allocate memory to store
the trace).
Return -2 if tracemalloc is disabled.
If memory block is already tracked, update t... | C | 5 | shawwn/cpython | Include/tracemalloc.h | [
"0BSD"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
// Call our gcd() function
x = 42;
y = 105;
g = gcd(x, y);
printf("The gcd of %d and %d is %d\n", x, y, g);
// Call our fact() function
x = 5;
g = fact(x);
printf("The fact of %d is %d\n", x, g)... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/contract/runme.sci | [
"BSD-3-Clause"
] |
require meta-python-image-base.bb
SUMMARY = "meta-python ptest test image"
IMAGE_INSTALL += "packagegroup-meta-python3-ptest"
| BitBake | 3 | nunojsa/meta-openembedded | meta-python/recipes-core/images/meta-python-ptest-image.bb | [
"MIT"
] |
# Checks if an ESTree AST is valid, but prunes errors about where nodes are
# positioned in the tree.
require! \esvalid
module.exports = ->
return null if it is null
it
|> esvalid.errors
|> -> it.filter ->
# Disregard errors to do with where things are allowed to appear. Eslisp
# compiles stuff incre... | LiveScript | 4 | 0xflotus/eslisp | src/esvalid-partial.ls | [
"ISC"
] |
$! BUILD_XSLT.COM
$!
$! Build the XSLT library
$!
$! Arguments:
$!
$! p1 - "DEBUG" is you want to build with debug
$!
$! This package requires libxml to have already been installed. You need
$! to ensure that the logical name LIBXML is defined and points to the
$! directory containing libxml's .h files
$!
$! This pro... | DIGITAL Command Language | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/DIGITAL Command Language/libxslt_build.com | [
"MIT"
] |
#include "script_component.hpp"
#include "XEH_PREP.sqf"
if (!hasInterface) exitWith {}; //Don't need on Headless and dedicated Servers
GVAR(radioTowerList) = [] call CBA_fnc_hashCreate;
["TFAR_ConfigRefresh",{
#ifdef DEBUG_MODE_FULL
systemChat "TFAR_ConfigRefresh";
#endif
([(GVAR(radioTowerList)... | SQF | 3 | MrDj200/task-force-arma-3-radio | addons/antennas/XEH_preInit.sqf | [
"RSA-MD"
] |
" Vim compiler file
" Compiler: Compaq Visual Fortran
" Maintainer: Joh.-G. Simon (johann-guenter.simon@linde-le.com)
" Last Change: 11/05/2002
if exists("current_compiler")
finish
endif
let current_compiler = "fortran_cv"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* Compiler... | VimL | 4 | uga-rosa/neovim | runtime/compiler/fortran_cv.vim | [
"Vim"
] |
particle 0.1
i: i + 0.1
box i
end
| Cycript | 0 | Psykopear/cyril | bin/data/code/3.cy | [
"MIT"
] |
import { DebugElement } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { SearchResult } from 'app/search/interfaces';
import { SearchResultsComponent } from './search-results.component';
describe('SearchResultsComponent', ... | TypeScript | 5 | John-Cassidy/angular | aio/src/app/shared/search-results/search-results.component.spec.ts | [
"MIT"
] |
; RUN: opt -mtriple=amdgcn-unknown-amdhsa -mcpu=hawaii -loop-unroll -S < %s | FileCheck %s
; CHECK-LABEL: @test_unroll_convergent_barrier(
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK: call void @llvm.amdgcn.s.barrier()
; CH... | LLVM | 4 | medismailben/llvm-project | llvm/test/Transforms/LoopUnroll/AMDGPU/unroll-barrier.ll | [
"Apache-2.0"
] |
--TEST--
Test chr() function : basic functionality
--FILE--
<?php
echo "*** Testing chr() : basic functionality ***\n";
echo chr(72). chr(101) . chr(108) . chr(108). chr(111); // Hello
echo chr(10); // "\n"
echo "World";
echo "\n";
?>
--EXPECT--
*** Testing chr() : basic functionality ***
Hello
World
| PHP | 3 | NathanFreeman/php-src | ext/standard/tests/strings/chr_basic.phpt | [
"PHP-3.01"
] |
# Check the handling of output files.
#
# We run the build in a sandbox in the temp directory to ensure we don't
# interact with the source dirs.
# Check that we always run commands that don't produce output files.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: %{llbuild} ni... | Ninja | 4 | uraimo/swift-llbuild | tests/Ninja/Build/outputs.ninja | [
"Apache-2.0"
] |
// Copyright (c) 2020 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/v8_value_serializer.h"
#include <utility>
#include <vector>
#include "gin/converter.h"
#include "shell/common/api/electron_api_native_image.h"
#inc... | C++ | 4 | TarunavBA/electron | shell/common/v8_value_serializer.cc | [
"MIT"
] |
/* Copyright libuv contributors. All rights reserved.
*
* 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, ... | C | 4 | libcat/libuv | src/unix/qnx.c | [
"CC-BY-4.0",
"MIT"
] |
sleep 4
t app button shutter PR
sleep X
t app button shutter PR
sleep 2
t app led red_front on
sleep 10
t app led red_front off
sleep 1
deletedir d:\DCIM
reboot yes
| AGS Script | 0 | waltersgrey/autoexechack | deletemedia/deletevideo/HERO3PlusSilver/autoexec.ash | [
"MIT"
] |
query Viewer {
viewer {
...Partial
status
}
}
fragment Partial on User {
id
name
}
| GraphQL | 3 | nazarepiedady/next.js | examples/with-typescript-graphql/lib/documents/viewer.graphql | [
"MIT"
] |
#import <ATen/native/metal/MetalCommandBuffer.h>
#import <ATen/native/metal/MetalTensorImpl.h>
#import <ATen/native/metal/MetalTensorImplStorage.h>
#import <ATen/native/metal/MetalTensorUtils.h>
#import <ATen/native/metal/MetalContext.h>
#import <ATen/native/metal/mpscnn/MPSCNNUtils.h>
#import <ATen/native/metal/mpscn... | Objective-C++ | 4 | Hacky-DH/pytorch | aten/src/ATen/native/metal/ops/MetalConcat.mm | [
"Intel"
] |
package com.baeldung.find
class Person {
private String firstname
private String lastname
private Integer age
Person(String firstname, String lastname, Integer age) {
this.firstname = firstname
this.lastname = lastname
this.age = age
}
String getFirstname() {
r... | Groovy | 4 | DBatOWL/tutorials | core-groovy-collections/src/test/groovy/com/baeldung/find/Person.groovy | [
"MIT"
] |
insert into car_maker(id,name) values (1,'Special Motors');
insert into car_maker(id,name) values (2,'BWM');
insert into car_maker(id,name) values (3,'Dolores');
insert into car_model(id,maker_fk,name,sku,year) values(1,1,'Muze','SM001',2018);
insert into car_model(id,maker_fk,name,sku,year) values(2,1,'Empada','SM002... | SQL | 2 | DBatOWL/tutorials | apache-olingo/src/main/resources/data.sql | [
"MIT"
] |
<HTML>
<HEAD>
<TITLE> AUT </TITLE>
<META HTTP-EQUIV="Content-Language" CONTENT="en">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<FRAMESET ROWS="40,*,81" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0">
<FRAME SRC="test_fast_reloader.html" NAME="topFrame" SCROLLING="NO" NORESIZE >
<FRAME SRC="... | HTML | 2 | weilandia/selenium | common/src/web/rc/tests/html/FastLoadingFrameWithSlowLoadingFrame.html | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
use std::iter::{Fuse, Zip};
fn fuse_covariant<'a, I>(iter: Fuse<&'static I>) -> Fuse<&'a I> { iter }
fn zip_covariant<'a, A, B>(iter: Zip<&'static A, &'static B>) -> Zip<&'a A, &'a B> { iter }
fn main() { }
| Rust | 3 | Eric-Arellano/rust | src/test/ui/variance-iterators-in-libcore.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// 16级迭代流水线,实现 UInt#(32) 的开方运算
package Sqrt_v1;
import DReg::*;
module mkTb();
// ----- sqrt 实现 --------------------------------------------------------------------------------------------------------------------------
// 进行单次迭代的函数(组合逻辑电路),该函数会被部署 16 次,分别在流水线的 16 个级
function Tuple2#(UInt#(32)... | Bluespec | 5 | Xiefengshang/BSV_Tutorial_cn | src/15.Sqrt/Sqrt_v1.bsv | [
"MIT"
] |
;; Simple test of defining multiple flavors in one file.
;; We use module macro interface instead of including the macro
;; definition file.
(flavors:defflavor f1 (a b c)
(f2)
settable-instance-variables)
(flavors:defmethod (bert) (x)
(f1-local x))
(defun f1-local (x)
(tuple 'f1 x))
(flavo... | LFE | 4 | rvirding/flavors | test/f-multi.lfe | [
"Apache-2.0"
] |
import React, {Component, PropTypes} from 'react'
import {Actions, Utils, FileDownloadStore} from 'nylas-exports'
import {AttachmentItem, ImageAttachmentItem} from 'nylas-component-kit'
class MessageAttachments extends Component {
static displayName = 'MessageAttachments'
static containerRequired = false
stat... | JSX | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/attachments/lib/message-attachments.jsx | [
"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 | akhalymon-cv/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/statsEstimation/UnionEstimationSuite.scala | [
"Apache-2.0"
] |
'reach 0.1';
const testIntervalEq = () => {
assert(intervalEq( intervalOO(+1, +1), intervalOO(+1, +1) ));
assert(intervalEq( intervalCC(+1, +1), intervalCC(+1, +1) ));
}
const testIntervalLt = () => {
assert(intervalLt( intervalOO(+1, +2), intervalOO(+3, +5) ));
assert(intervalLt( intervalCC(+1, +2), interval... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/y/intervals.rsh | [
"Apache-2.0"
] |
//SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
contract Version5Pragma {
uint x;
constructor() public {
x = 5;
}
}
| Solidity | 3 | santanaluiz/truffle | packages/compile-solidity/test/sources/v0.5.x/Version5Pragma.sol | [
"MIT"
] |
a { color: #ABBBCC } | CSS | 2 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css | [
"Apache-2.0",
"MIT"
] |
/*
Copyright (c) 2014 by 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 law or agreed to in writing, so... | Scala | 4 | puneetjain-iclp/xgboost | jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/rabit/util/RabitTrackerHelpers.scala | [
"Apache-2.0"
] |
demo.string.value=demo
| INI | 0 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-samples/spring-boot-sample-war/src/main/webapp/WEB-INF/custom.properties | [
"Apache-2.0"
] |
object_relationships:
- name: option
using:
manual_configuration:
column_mapping:
option_id: id
remote_table:
name: option
schema: public
- name: poll
using:
manual_configuration:
column_mapping:
poll_id: id
remote_table:
name: poll
sch... | YAML | 3 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/realtime-poll/hasura/metadata/databases/default/tables/public_poll_results.yaml | [
"Apache-2.0",
"MIT"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "LanguageProfileNotifier.h"
using namespace winrt::TerminalApp::implementation;
LanguageProfileNotifier::LanguageProfileNotifier(std::function<void()>&& callback) :
_callback{ std::move(callback) },
... | C++ | 4 | rasc0l/terminal | src/cascadia/TerminalApp/LanguageProfileNotifier.cpp | [
"MIT"
] |
#ifdef ECERE_STATIC
public import static "ecere"
#else
public import "ecere"
#endif
enum KeywordType { regular, preprocessor };
class SyntaxColorScheme
{
public:
Color commentColor;
Color charLiteralColor;
Color stringLiteralColor;
Color preprocessorColor;
Color numberColor;
Color typeColor;
Colo... | eC | 4 | mingodad/ecere-sdk | ide/src/designer/SyntaxColorScheme.ec | [
"BSD-3-Clause"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="http:... | HTML | 2 | cnheider/nylas-mail | packages/client-sync/spec/fixtures/MessageUtils/parseSnippet/mit_events.html | [
"MIT"
] |
## QuickSelect -- Linear-time k-th order statistic
## (i.e. select the k-th smallest element in an unsorted array)
## https://en.wikipedia.org/wiki/Quickselect
def partition(array, start, end, pivot):
"""Partitions by a pivot value, which might not necessarily be in the array.
This variant is useful when you w... | Python | 5 | liuhoward/tech-interview-handbook | experimental/utilities/python/quick_select.py | [
"MIT"
] |
#version 100
precision mediump float;
// Input vertex attributes (from vertex shader)
varying vec2 fragTexCoord;
varying vec4 fragColor;
uniform vec2 screenDims; // Dimensions of the screen
uniform vec2 c; // c.x = real, c.y = imaginary component. Equation done is z^2 + c
uniform vec2 offset; ... | F# | 5 | chrisws/raylib | examples/shaders/resources/shaders/glsl100/julia_set.fs | [
"Zlib"
] |
foo = 0
' count to five
while foo < 5
print foo
foo = foo + 1
end while
' count down to zero
while foo > 0
print foo
foo = foo - 1
' but stop at three
if foo = 3 then exit while
end while
' nested while loops to compute 4 * 2
total = 0
i = 0
while i < 5
j = 0
while j < 3
tota... | Brightscript | 3 | lkipke/brs | test/e2e/resources/while-loops.brs | [
"MIT"
] |
../compile-config/util.jq | JSONiq | 2 | onthway/deepdive | compiler/compile-code/util.jq | [
"Apache-2.0"
] |
:- set_prolog_flag(double_quotes, codes).
:- object(json).
:- info([
version is 0:0:0,
author is 'Paulo Moura',
date is 2019-02-20,
comment is 'JSON encoding and decoding predicates.'
]).
:- public(encode/2).
:- mode(encode(+nonvar, -list(character_code)), one_or_error).
:- info(encode/2, [
comment ... | Logtalk | 5 | PaulBrownMagic/logtalk3 | library/json.lgt | [
"Apache-2.0"
] |
/*************************************************************************
> File Name: linklist_stack.c
> Author: jinshaohui
> Mail: jinshaohui789@163.com
> Time: 18-10-12
> Desc:
************************************************************************/
#include<stdio.h>
#include<stdlib.h>
#include<st... | C | 4 | shipan3452/algo | c-cpp/08_stack/linkList/linklist_stack.c | [
"Apache-2.0"
] |
int quux=10;
| Unified Parallel C | 0 | maurizioabba/rose | projects/UpcTranslation/tests/extern.upc | [
"BSD-3-Clause"
] |
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2... | Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/lg-ms345.txt | [
"MIT"
] |
/*
Account := {email : "email@gmail.com"
, smtpserver : "smtp.gmail.com"
, smtpserverport : 465
, sendusername : "email@gmail.com"
, sendpassword : "password"
, smtpauthenticate : 1
, smtpusessl : 1
, smtpconnectiontimeout : 60
, sendusing : 2}
*/
CDO(Account, To, Subject := "", Ms... | AutoHotkey | 4 | standardgalactic/PuloversMacroCreator | LIB/CDO.ahk | [
"Unlicense"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Function GetFileMock () {
$objs = @( [pscustomobject]@{ Size=4533816; Mode="-a---l"; LastWriteTime="9/1/2015 11:15 PM"; Name="explorer.exe" },
[pscustomobject]@{ Size=994816; Mode="-a---l"; LastWriteTime="9/1/2015 11:13 PM"; Name="H... | PowerShell | 4 | rdtechie/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Mocks.ps1 | [
"MIT"
] |
[\6es|attr] {} | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/input.css | [
"Apache-2.0",
"MIT"
] |
:- use_module( library(python) ).
:- := import(pandas)).
pred2panda(Pred, Obj) :-
| Prolog | 0 | ryandesign/yap | packages/python/pandas.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | HTML | 2 | KatyaKos/fastText | website/static/docs/en/html/qmatrix_8h_source.html | [
"MIT"
] |
<?php
$this->layout('main', [
'title' => __('Log Viewer'),
'manual' => true
]);
?>
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header bg-primary-dark">
<h2 class="card-title"><?=__('Available Logs') ?></h2>
</div>
... | HTML+PHP | 3 | lamasbr/AzuraCast | templates/stations/logs/index.phtml | [
"Apache-2.0"
] |
<header class="page_heading">
<h1><%= @title |> raw %></h1>
</header>
| HTML+EEX | 0 | PsOverflow/changelog.com | lib/changelog_web/templates/shared/_page_heading.html.eex | [
"MIT"
] |
function binadd(a, b) {
res = a + b;
return res;
}
function main() {
println("2 + 4 Executed inside SL: " + binadd(2,4));
}
| Slash | 1 | lucapele/pele-c | zippy/benchmarks/src/micro/add.sl | [
"BSD-3-Clause"
] |
package com.baeldung.jaxws.server.bottomup;
import java.util.List;
import javax.inject.Inject;
import javax.jws.WebMethod;
import javax.jws.WebService;
import com.baeldung.jaxws.server.bottomup.exception.EmployeeAlreadyExists;
import com.baeldung.jaxws.server.bottomup.exception.EmployeeNotFound;
import com.baeldung.... | Java | 4 | zeesh49/tutorials | jee-7/src/main/java/com/baeldung/jaxws/server/bottomup/EmployeeServiceImpl.java | [
"MIT"
] |
Var GoCDServiceName
Var ServiceWasRunningBeforeUpgradeOrUninstall
!macro StopServiceIfRunning maybePrefix
; function "shared" between uninstaller and installer code.
; See https://nsis.sourceforge.io/Sharing_functions_between_Installer_and_Uninstaller
Function "${maybePrefix}StopServiceIfRunning"
${LogText} ... | NSIS | 5 | JeroenOortwijn/gocd | installers/windows/service-helpers.nsi | [
"Apache-2.0"
] |
/*
Copyright © 2011 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, modify... | Opa | 4 | Machiaweliczny/oppailang | lib/stdlib/widgets/chart/bar.opa | [
"MIT"
] |
Format: Coff Little-endian 32-bit
Kind: Relocatable
Architecture: I386
Flags: Coff { characteristics: 0 }
Relative Address Base: 0
Entry Address: 0
Segment { name: ".drectve", address: 0, size: 0 }
Segment { name: ".debug$S", address: 0, size: 0 }
Segment { name: ".text$mn", address: 0, size: 0 }
Segment { name: ".text... | ObjDump | 1 | sunfishcode/object | crates/examples/testfiles/pe/base.obj.objdump | [
"Apache-2.0",
"MIT"
] |
a(X) :- X.
b(X) :- X, writeln(X).
c(X) :- X, X.
| Prolog | 3 | ryandesign/yap | regression/metaconj.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
extern record containingAnonUnnamedUnion {
var x: real(32);
var y: real(64);
var z: int(64);
}
var myUnion: containingAnonUnnamedUnion;
myUnion.x = 1.5: real(32);
writeln("myUnion.x = ", myUnion.x);
myUnion.y = -2.6: real(64);
writeln("myUnion.y = ", myUnion.y);
var myA: [1..5] containingAnonUnnamedUnio... | Chapel | 4 | jhh67/chapel | test/extern/unions/externAnonUnnamedUnionLLVM.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
-- 2010-11-21
-- testing correct implementation of eta for records with higher-order fields
module Issue366 where
data Bool : Set where
true false : Bool
record R (A : Set) : Set where
constructor r
field
unR : A
open R
foo : Bool
foo = unR (r (unR (r (λ (_ : Bool) → false))
true))
-- befor... | Agda | 5 | shlevy/agda | test/Succeed/Issue366.agda | [
"BSD-3-Clause"
] |
--TEST--
Passing empty filename to exif_read_data() and exif_thumnail()
--EXTENSIONS--
exif
--FILE--
<?php
try {
exif_read_data("");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
try {
exif_thumbnail("");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
try {
exif_read_data("fo... | PHP | 3 | NathanFreeman/php-src | ext/exif/tests/filename_empty.phpt | [
"PHP-3.01"
] |
% my $c = shift;
% $c->stash(handler => 'epl');
Hello Mojo from the template <%= $c->url_for %>! <%= $c->stash('msg') %>
| XProc | 3 | reneeb/mojo | t/mojolicious/templates/foo/index.html.xpl | [
"Artistic-2.0"
] |
CLASS zcl_abapgit_syntax_factory DEFINITION
PUBLIC
ABSTRACT
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS create
IMPORTING
!iv_filename TYPE string
!iv_hidden_chars TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_syntax_hig... | ABAP | 4 | gepparta/abapGit | src/syntax/zcl_abapgit_syntax_factory.clas.abap | [
"MIT"
] |
\documentclass{minimal}
\begin{document}
\begin{tabular}{cc}
\begin{tabular}{c}
Cell 1
\end{tabular} &
\begin{tabular}{c}
Cell 2
\end{tabular}
\end{tabular}
\begin{equation}
\begin{aligned}
1 &
& 2 \\
3 &
& 4 \\
\end{aligned}
\end{equation}
\begin{environ*}
A &= 10
\\&= \c... | TeX | 2 | tiagoboldt/vimtex | test/tests/test-indentation/test_ampersands_reference.tex | [
"MIT"
] |
#pragma once
#pragma comment (lib, "Secur32.Lib")
/**
This module is a plain C class emulation. The POC written by decoder was in cpp and used some classes
in particular for the local negotiator.
See https://stackoverflow.com/questions/40992945/convert-a-cpp-class-cpp-file-into-a-c-structure-c-file
for h... | C | 4 | OsmanDere/metasploit-framework | external/source/exploits/drunkpotato/Common_Src_Files/LocalNegotiator.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
RMF -skipTrash $inData;
RMF -skipTrash $outData;
copyFromLocal $inDataLocal $inData;
| PigLatin | 2 | chekore/azkaban | az-hadoop-jobtype-plugin/src/examples/java-wc/src/upload.pig | [
"Apache-2.0"
] |
module Decorators
function times = |n| -> |f| -> |a, b| {
let r = f(a, b)
return r * n
}
@times(123)
function add = |v, n| -> v + n
| Golo | 3 | golo-lang/golo-jmh-benchmarks | src/main/resources/snippets/golo/decorators.golo | [
"Apache-2.0"
] |
//===--- weak.mm - Weak-pointer tests -------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | Objective-C++ | 5 | lwhsu/swift | unittests/runtime/weak.mm | [
"Apache-2.0"
] |
module TestPsci.CommandTest where
import Prelude ()
import Prelude.Compat
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Trans.RWS.Strict (get)
import Language.PureScript (moduleNameFromString)
import Language.PureScript.Interactive
import System.FilePath ((</>))
import System.Directory (getCurrentDirect... | Haskell | 5 | dunhamsteve/purescript | tests/TestPsci/CommandTest.hs | [
"BSD-3-Clause"
] |
#ifndef TH_GENERIC_FILE
#error "You must define TH_GENERIC_FILE before including THGenerateCharType.h"
#endif
#define scalar_t int8_t
#define accreal int64_t
#define Real Char
#define TH_REAL_IS_CHAR
#line 1 TH_GENERIC_FILE
#include TH_GENERIC_FILE
#undef scalar_t
#undef accreal
#undef Real
#undef TH_REAL_IS_CHAR
#if... | C | 2 | Hacky-DH/pytorch | aten/src/TH/THGenerateCharType.h | [
"Intel"
] |
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Reduce.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/native/ReduceOps.h>
#include <ATen/Dispatch.h>
namespace at { namespace native {
void and_kernel_cuda(TensorIte... | Cuda | 4 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/ReduceLogicKernel.cu | [
"Intel"
] |
abstract class A1 : CharSequence {}
abstract class A2 : CharSequence {
override fun get(index: Int) = 'z';
}
// 2 public final bridge charAt | Kotlin | 3 | qussarah/declare | compiler/testData/codegen/bytecodeText/builtinFunctions/charSequence.kt | [
"Apache-2.0"
] |
# Fails in 0.5.0-dev+3385, probably because the parser has changed
T ==(2,2) # is an expression with Head '=='
T [1,2,3][2] == 2
## Head of Mxpr is Julia function
ClearAll(f,g,x,c)
# We use an anonymous function to avoid the redefinition warning if this test
# is run more than once.
g = J( (x) -> mpow(x,2) ... | Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/mxpr_test.sj | [
"MIT"
] |
#pragma rtGlobals=3
Function FooBar()
return 0
End
Function FooBarSubType() : ButtonControl
return 0
End
Function/D FooBarVar()
return 0
End
static Function FooBarStatic()
return 0
End
threadsafe static Function FooBarStaticThreadsafe()
return 0
End
threadsafe Function FooBarThread()
return 0
End
Function ... | IGOR Pro | 4 | gunterkoenigsmann/linguist | samples/IGOR Pro/functions.ipf | [
"MIT"
] |
[{
"@id": "http://example.org/test#example1",
"http://example.org/vocab#date": [{
"@value": "2011-01-25T00:00:00Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
}],
"http://example.org/vocab#embed": [{
"@id": "http://example.org/test#example2",
"http://example.org/vocab#parent": [{
... | JSONLD | 2 | fsteeg/json-ld-api | tests/expand/0007-out.jsonld | [
"W3C"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_amd64_fix.dpatch by Steve Kemp <skx@debian.org>
##
## DP: Compile under AMD64, Closes #254002.
@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./configure /tmp/dpep-work.GyEpgc/dsniff-2.4b1/configure
--- ./configure 2005-06-23 03:30:37.000000000 +0000
+++ /tmp/dpep-work.... | Darcs Patch | 3 | acheong08/dsniff | debian/patches/05_amd64_fix.dpatch | [
"BSD-3-Clause"
] |
.class public stack_var4
.super java/lang/Object
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.end method
.method public f()I
.limit stack 5
.limit locals 4
;; 0->var1
;; 1->var2
;; 2->var3
iconst_0
istore_1
iconst_1
istore_2
iconst_2
i... | Jasmin | 4 | mauguignard/cbmc | jbmc/regression/jbmc/stack_var4/stack_var4.j | [
"BSD-4-Clause"
] |
set map732five(s,ns73) "Mapping fra 73 til 5 brancher" /
cBol . (68203,68204)
cPub . (72002,84101,84202,85202,86000,87880,90920)
CCON . (41430)
cVar . (19000,
35001,35002,35003,36000,
01000,02000,0... | GAMS | 3 | gemal/MAKRO | Model/Sets/five.mapping.gms | [
"MIT"
] |
package com.alibaba.json.bvt.parser;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
public class TestUTF8 extends TestCase {
public void test_utf() throws Exception {
JSONObject obj = (JSONObject) JSON.parse("{'name':'刘... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/parser/TestUTF8.java | [
"Apache-2.0"
] |
frequency,raw
20.00,-17.18
20.20,-17.12
20.40,-17.05
20.61,-16.99
20.81,-16.93
21.02,-16.86
21.23,-16.76
21.44,-16.66
21.66,-16.57
21.87,-16.47
22.09,-16.37
22.31,-16.26
22.54,-16.16
22.76,-16.06
22.99,-15.95
23.22,-15.80
23.45,-15.64
23.69,-15.48
23.92,-15.32
24.16,-15.24
24.40,-15.19
24.65,-15.15
24.89,-15.10
25.14,-... | CSV | 0 | vinzmc/AutoEq | measurements/headphonecom/data/onear/Sennheiser HD 218/Sennheiser HD 218.csv | [
"MIT"
] |
// BSD Code included in AGPL code is compatible with AGPL.
//This code is based on original code from Xundra Snowpaw which was licensed on a new BSD License: http://www.opensource.org/licenses/bsd-license.php
//A FreeBSD license of this type must remain with the original code and allows modifications and relicensing p... | LSL | 5 | seriesumei/test-Ruth2 | Contrib/Fred Beckhusen/XTEA encryption test program/XTEA/Object/XTEA test program.lsl | [
"MIT"
] |
{
"Version" : 0.2,
"ModuleName" : "cameraDemo",
"Options" : {
"Warnings" : "All",
"Debug" : true,
"Profile" : false,
"Optimization" : "None",
"PreprocessorDefinitions" : [
"IMPORT_STATIC=\"\""
],
"IncludeDirs" : [
"..\\eModel"
],
"TargetTy... | Ecere Projects | 3 | N-eil/ecere-sdk | samples/3D/terrainCameraDemo/cameraDemo.epj | [
"BSD-3-Clause"
] |
--TEST--
Bug #80901 (Info leak in ftp extension)
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bug80901 = true;
require 'server.inc';
$ftp = ftp_connect("127.0.0.1", $port);
if (!$ftp) die("Couldn't connect to the server");
var_dump(ftp_login($ftp, 'user', 'pass'));
ftp_systype($ftp);
?>
--EXPECTF--
bool(true)
Warning: ft... | PHP | 3 | NathanFreeman/php-src | ext/ftp/tests/bug80901.phpt | [
"PHP-3.01"
] |
/*
Copyright 2021 The Kubernetes 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 in writing, ... | Go | 4 | 767829413/kubernetes | cmd/kubeadm/app/apis/bootstraptoken/v1/types.go | [
"Apache-2.0"
] |
--TEST--
Bug #30875 (xml_parse_into_struct() does not resolve entities)
--EXTENSIONS--
xml
--FILE--
<?php
$xml = <<<XML
<!DOCTYPE dtd [
<!ENTITY ref "ent">
]>
<elt att="&ref;">a&ref;</elt>
XML;
$parser = xml_parser_create();
xml_parse_into_struct($parser, $xml, $vals);
xml_parser_free($parser);
var_dump($vals);
?... | PHP | 3 | NathanFreeman/php-src | ext/xml/tests/bug30875.phpt | [
"PHP-3.01"
] |
---
title: Test Title
date: "2016-01-01T06:00-06:00"
---
# Test 1
| Liquid | 0 | binyamin/eleventy | test/stubs/reuse-permalink/test1.liquid | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='text'/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="test-run">
<xsl:text>NUnit Version </xsl:text>
<xsl:value-of sele... | XSLT | 4 | weilandia/selenium | third_party/dotnet/nunit.console-3.10.0/bin/netcoreapp2.0/TextSummary.xslt | [
"Apache-2.0"
] |
"Gente" by Grendelkhan (in spanish)
[ejemplo de librería Patrollers; con sujeto moviendose de forma random]
Include Basic Screen Effects Sp by Emily Short.
Include Basic Help Menu SP by Emily Short.
Include Patrollers Sp by Michael Callaghan.
The centrocomercial is a region. The Centro, the Centro2, the Centro3 and... | Inform 7 | 4 | brtl-fhc/I7-Spanish | EJEMPLOS/XaviTutorial/Cap06.21.ni | [
"Artistic-2.0"
] |
(ns swagger-petstore.api.store-test
(:require [clojure.test :refer :all]
[swagger-petstore.core :refer [with-api-context]]
[swagger-petstore.api.store :refer :all])
(:import (java.util Date)))
(defn credentials-fixture [f]
(with-api-context {:auths {"api_key" "special-key"}}
(f)))
(u... | Clojure | 4 | wwadge/swagger-codegen | samples/client/petstore/clojure/test/swagger_petstore/api/store_test.clj | [
"Apache-2.0"
] |
$TTL 300
@ IN A 10.3.3.3
www IN A 10.4.4.4
| DNS Zone | 3 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/028-dextend/bar.foo.com.zone | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M21,2L3,2c-1.1,... | XML | 3 | semoro/androidx | compose/material/material/icons/generator/raw-icons/rounded/desktop_windows.xml | [
"Apache-2.0"
] |
make id := (\ X x -> x) : (X : Set) -> X -> X ;
make A := ? : Set ;
elm id _ A ;
make f := ? : ?a ;
elm f Set ;
jump f.a ;
give Set -> Set ;
root ;
elab elab ;
make x := ? : id _ Set ;
make B := _ : Set ;
make C := _ : Prop ;
make p := _ : :- (B == C) ;
make q := _ : :- (B == (: _) Set) ;
show state ; | PigLatin | 1 | mietek/epigram | test/Elab.pig | [
"MIT"
] |
# @ECLASS: export-funcs-before-inherit.eclass
# @MAINTAINER:
# Random Person <maintainer@random.email>
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
# @BLURB: Stub eclass for testing EclassExportFuncsBeforeInherit.
EXPORT_FUNCTIONS src_prepare
inherit another-src_prepare
# @FUNCTION: export-funcs-before-inherit_src_prepare
# ... | Gentoo Eclass | 3 | floppym/pkgcheck | testdata/repos/eclass/eclass/export-funcs-before-inherit.eclass | [
"BSD-3-Clause"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/ForestOutlined.js | [
"MIT"
] |
--TEST--
Bug #78151 Segfault caused by indirect expressions in PHP 7.4a1
--FILE--
<?php
class Arr
{
private $foo = '';
public function __construct(array $array = [])
{
$property = 'foo';
$this->{$property} = &$array[$property];
\var_dump($this->foo);
}
}
$arr = new Arr(['foo... | PHP | 3 | thiagooak/php-src | Zend/tests/bug78151.phpt | [
"PHP-3.01"
] |
4 metro 0.5 maytrig
400 0.99 streson
| SourcePawn | 0 | aleatoricforest/Sporth | examples/streson.sp | [
"MIT"
] |
%require "3.5"
%{
#define YYDEBUG 1
%}
%code requires {
#include "parser-util.h"
#include "debug/pront.h"
#include <malloc.h>
#include <string.h>
extern int yylex (parser_ctx_t *ctx);
extern void yyerror(parser_ctx_t *ctx, char *msg);
}
%param { parser_ctx_t *ctx };
%union {
pos_t pos;
ival_t ival;
s... | Bison | 5 | robotman2412/compilertest | src/parser.bison | [
"MIT"
] |
import "regent"
local timing_mod = {}
--Timing functionality for dl_meso
--TODO: NYI
task timing_mod.timchk( config : region(ispace(int1d), config_type) ) where writes(config.tzero, config.time), reads(config.tzero, config.time)
do
--TODO NYI
end
return timing_mod
| Rouge | 3 | stfc/RegentParticleDSL | src/io_modules/dl_meso/dl_meso_timing.rg | [
"MIT"
] |
unique template features/personality/config_override/config;
"/metadata/features" = append(TEMPLATE);
include if_exists("personality/"+ PERSONALITY + "/config_override");
| Pan | 2 | ned21/aquilon | tests/templates/vmhost/features/personality/config_override/config.pan | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.