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 |
|---|---|---|---|---|---|
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | sbj42/vscode | src/vs/platform/profiling/common/profiling.ts | [
"MIT"
] |
#N canvas 400 23 524 751 12;
#X floatatom 101 577 4 0 0 0 - - -;
#X floatatom 335 330 3 0 999 0 - #0-osc2 -;
#X obj 335 354 osc~;
#X text 46 17 ENVELOPE FOLLOWER;
#X text 39 54 An envelope follower measures the mean square power of
an signal as it changes over time. (You can convert mean square power
to RMS amplitude o... | Pure Data | 5 | mcclure/pure-data | doc/3.audio.examples/H06.envelope.follower.pd | [
"TCL"
] |
//
// shared heap protection (Workzone)
//
#include <stdio.h>
#include <assert.h>
#include "rtedsync.h"
#include "workzone.h"
workzone_policy_t* workzone = 0;
upc_lock_t* sharedptrlock = 0;
void rted_UpcAllInitWorkzone(void)
{
assert(!workzone);
workzone = wzp_all_alloc();
sharedptrlock = upc_all_lock... | Unified Parallel C | 4 | maurizioabba/rose | projects/RTED/CppRuntimeSystem/rtedsync.upc | [
"BSD-3-Clause"
] |
import "regent"
require("initialise_grid_points")
local c = regentlib.c
local abs = c.fabs
--It is possible to do these checksum tasks without field specific inputs, however this disabled RDIR which could lose performance
--Checksum task for u_after
task checksum_task_u_after( input_field : region(ispace(int2d), u... | Rouge | 3 | stfc/PSycloneBench | benchmarks/nemo/nemolite2d/manual_versions/regent/checksum.rg | [
"BSD-3-Clause"
] |
Strict
#ANDROID_SCREEN_ORIENTATION="landscape"
Import mojo
Function Main:Int()
New PicPuzzle
Return 0
End
' Simple picture puzzle game
' Gerry Quinn 18 August 2012
Class PicPuzzle Extends App
Field rightBar:Image ' right-side of game screen has four virtual buttons
Field pictures:Image[] '... | Monkey | 4 | blitz-research/monkey | bananas/gerryq/picpuzzle/picpuzzle.monkey | [
"Zlib"
] |
package com.baeldung.jackson.bidirection;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
public class UserWithSerializer {
public int id;
public String name;
@JsonSeriali... | Java | 4 | zeesh49/tutorials | jackson/src/test/java/com/baeldung/jackson/bidirection/UserWithSerializer.java | [
"MIT"
] |
package com.baeldung.trywithresource;
public class MyResource implements AutoCloseable {
@Override
public void close() throws Exception {
System.out.println("Closed MyResource");
}
} | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-exceptions-2/src/main/java/com/baeldung/trywithresource/MyResource.java | [
"MIT"
] |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | QML | 4 | uav-operation-system/qgroundcontrol | src/QmlControls/ModeSwitchDisplay.qml | [
"Apache-2.0"
] |
tags {"external:skip"} {
# Copy RDB with ziplist encoded hash to server path
set server_path [tmpdir "server.convert-ziplist-hash-on-load"]
exec cp -f tests/assets/zset-ziplist.rdb $server_path
start_server [list overrides [list "dir" $server_path "dbfilename" "zset-ziplist.rdb"]] {
test "RDB load ziplist zset: c... | Tcl | 4 | hpdic/redis | tests/integration/convert-ziplist-zset-on-load.tcl | [
"BSD-3-Clause"
] |
set terminal epslatex standalone color
set output "deltas.tex"
#set size square
set title '$\Delta$ vs $v$'
set xlabel '$v$'
set ylabel '$\Delta$ (logscale)'
set logscale y
plot for [i=1:10] "deltas.dat" w l lw 3 title ""
| Gnuplot | 3 | alzawad26/algorithm-archive | contents/approximate_counting/res/plot_deltas.gp | [
"MIT"
] |
vcl 4.0;
backend default {
.host = "credit-sales-funnel";
.port = "9000";
}
backend scoring {
.host = "scoring";
.port = "9001";
}
sub vcl_recv {
if (req.url ~ "^/scoring") {
set req.backend_hint = scoring;
} else if (req.url ~ "^/application") {
set req.backend_hint = def... | VCL | 3 | sathinarayanan/ddd-with-spring | infrastructure_varnish/default.vcl | [
"Apache-2.0"
] |
- protected_tag = local_assigns.fetch(:protected_tag)
- create_access_level = local_assigns.fetch(:create_access_level)
- dropdown_label = create_access_level&.humanize || 'Select'
= hidden_field_tag "allowed_to_create_#{protected_tag.id}", create_access_level&.access_level
= dropdown_tag(dropdown_label,
... | Haml | 4 | hugorebelo/gitlabhq | app/views/projects/protected_tags/_protected_tag_create_access_levels.haml | [
"MIT"
] |
<div #demoYouTubePlayer class="demo-youtube-player">
<h1>Basic Example</h1>
<section>
<div class="demo-video-selection">
<label>Pick the video:</label>
<mat-radio-group aria-label="Select a video" [(ngModel)]="selectedVideo">
<mat-radio-button *ngFor="let video of videos" [value]="video">
... | HTML | 4 | tungyingwaltz/components | src/dev-app/youtube-player/youtube-player-demo.html | [
"MIT"
] |
#!/usr/bin/env ruby
require 'fileutils'
require 'rubygems/package'
require 'tmpdir'
gemspec = File.read('{gemspec}')
gem_file = File.expand_path('{gem_filename}', '{bazel_out_dir}')
def copy_srcs(from:, to:)
Dir.chdir(from) do
Dir.glob('**/*').each do |src|
dst = File.join(to, src)
if File.director... | Smarty | 4 | TamsilAmani/selenium | rb/private/gem_builder.tpl | [
"Apache-2.0"
] |
" Vim syntax file
" Language: Protobuf Text Format
" Maintainer: Lakshay Garg <lakshayg@outlook.in>
" Last Change: 2020 Nov 17
" Homepage: https://github.com/lakshayg/vim-pbtxt
if exists("b:current_syntax")
finish
endif
let s:cpo_save = &cpo
set cpo&vim
syn case ignore
s... | VimL | 4 | uga-rosa/neovim | runtime/syntax/pbtxt.vim | [
"Vim"
] |
(node) @fold
| Scheme | 1 | hmac/nvim-treesitter | queries/devicetree/folds.scm | [
"Apache-2.0"
] |
.popover.buy-gems-prompt(role="tooltip")
.arrow
h2(data-i18n="earn_gems.prompt_title") Not Enough Gems
p(data-i18n="earn_gems.prompt_body") Keep playing to earn more!
| Jade | 2 | cihatislamdede/codecombat | app/templates/play/modal/earn-gems-prompt.jade | [
"CC-BY-4.0",
"MIT"
] |
<%= if Mix.env == :prod do %>
<script async defer data-domain="changelog.com" src="https://stats.changelog.com/js/index.js"></script>
<% end %>
| HTML+EEX | 3 | gustavoarmoa/changelog.com | lib/changelog_web/templates/layout/_head_scripts.html.eex | [
"MIT"
] |
--1 Relative clauses and pronouns
abstract Relative = Cat ** {
fun
-- The simplest way to form a relative clause is from a clause by
-- a pronoun similar to "such that".
RelCl : Cl -> RCl ; -- such that John loves her
-- The more proper ways are from a verb phrase
-- (formed in [``Verb`` Verb.... | Grammatical Framework | 5 | daherb/gf-rgl | src/abstract/Relative.gf | [
"BSD-3-Clause"
] |
@use '../core/style/list-common';
@use '../core/style/layout-common';
// height of tile header or footer if it has one line
$one-line-height: 48px;
// height of tile header or footer if it has two lines
$two-line-height: 68px;
// side padding for text in tile headers and footers
$text-padding: 16px;
.mat-grid-list {... | SCSS | 4 | tungyingwaltz/components | src/material/grid-list/grid-list.scss | [
"MIT"
] |
#! /bin/sh -e
# DP: The gpc patch from the gpc tarball.
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
#pdir="-d $3/gcc"
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
gpc_gcc_patch=$pdir/p/diffs/gcc-4.1.diff
gpc_gcc_patch=... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/gpc-gcc-4.x.dpatch | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getAdditionalSwChannel
Author: NKey
Gets the additional channel for the passed radio
Arguments:
0: Radio classname <STRING>
Return Value:
Channel <NUMBER>
Example:
_channel = (call TFAR_fnc_ActiveSwRadio) call TFAR_fnc_getAdditionalSwChann... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_getAdditionalSwChannel.sqf | [
"RSA-MD"
] |
<%= error_messages_for :user %>
<% form_for :user do |f| -%>
<p><label for="login">Login</label><br/>
<%= f.text_field :login %></p>
<p><label for="email">Email</label><br/>
<%= f.text_field :email %></p>
<p><label for="name">Name</label><br/>
<%= f.text_field :name %></p>
<p><label for="pi">Primary Investigator</la... | RHTML | 3 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/account/signup.rhtml | [
"MIT"
] |
#define VPRT_EMULATION
#include "envMapVS.hlsl"
| HLSL | 0 | rohankumardubey/WickedEngine | WickedEngine/shaders/envMapVS_emulation.hlsl | [
"MIT"
] |
#%RAML 1.0 Library
types:
ShellCommand:
type: object
properties:
shell:
type: string
description: |
command line executed by the default shell, not parsed by marathon
minLength: 1
/^argv$/: nil
ArgvCommand:
type: object
properties:
argv:
ty... | RAML | 4 | fquesnel/marathon | docs/docs/rest-api/public/api/v2/types/mesosCommand.raml | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
p = new_intp();
intp_assign(p, 3);
checkequal(intp_value(p), 3, "intp_value(p)");
delete_intp(p);
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/li_cpointer_runme.sci | [
"BSD-3-Clause"
] |
// Comparison of k groups with common variance and
// hierarchical prior for the mean
data {
int<lower=0> N; // number of observations
int<lower=0> K; // number of groups
int<lower=1,upper=K> x[N]; // discrete group indicators
vector[N] y; // real valued observations
}
parame... | Stan | 5 | tonyctan/BDA_R_demos | demos_rstan/grp_prior_mean.stan | [
"BSD-3-Clause"
] |
{% assign person = site.data.people[1] %}
<div class="page-header page-header-border">
<div class="row align-items-center">
<div class="col">
<h2 class="page-title">Improve cards with no border</h2>
<div class="text-muted mt-1">
<a href="#" class="text-reset">#693</a>
opened by <a href="#" class="text-... | HTML | 3 | muhginanjar/tabler | src/pages/_includes/layout/page-header-3.html | [
"MIT"
] |
from threading import Thread
from Background import Background
from PIL.Image import open as openImage
from PIL.ImageTk import PhotoImage
class Bird(Thread):
"""
Classe para criar um pássaro
"""
__tag = "Bird"
__isAlive = None
__going_up = False
__going_down = 0
__times_skipped = 0
... | Python | 5 | wisarut-si/Python | Flappy Bird - created with tkinter/Bird.py | [
"MIT"
] |
data {
int<lower=0> Nc; // number of entities in the control group
int<lower=0> Nt; // number of entities in the treatment group
int<lower=0> y[Nc]; // KPI in the control group
int<lower=0> x[Nt]; // KPI in the treatment group
}
parameters {
real<lower=0> lambda;
real<lower=-lambda> delta;
}
transforme... | Stan | 4 | theGreenJedi/expan | expan/models/poisson_kpi.stan | [
"MIT"
] |
particles <- []
for (local i = 0; i < 1000; ++i)
particles.push(i)
local function try_catch_loop(fails_count)
{
fails_count = fails_count + 1000
local fails = 0
local cnt = 0
for (local j = 0; j < 100; ++j)
{
for (local i = 0; i < fails_count; ++i)
{
try
{
cnt = cnt + particl... | Squirrel | 3 | profelis/daScript | examples/profile/tests/squirrel/profile_try_catch.nut | [
"BSD-3-Clause"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 colorGreen;
half4 colorRed;
half2x2 testMatrix2x2;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
half4 half4_from_half2x2(half2x2 x) {
return half4(x[0].xy, x[1].xy);
}
fragmen... | Metal | 4 | fourgrad/skia | tests/sksl/shared/MatrixToVectorCast.metal | [
"BSD-3-Clause"
] |
functions {
real model_9_log_dens(
int[] deaths_slice,
int start,
int end,
//pars
vector logit_p_obs,
vector var_infl,
// data
int N,
int[] casesM
)
{
int n;
real lpmf;
int N_slice;
vector[N] p_obs;
... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200820a13_cmdstanv.stan | [
"MIT"
] |
<html>
<head></head>
<body>
<h1>This is the body of the index view</h1>
</body>
</html> | Java Server Pages | 3 | DBatOWL/tutorials | spring-web-modules/spring-mvc-basics/src/main/webapp/WEB-INF/view/index.jsp | [
"MIT"
] |
notrly foo
shh 1
wow
| Dogescript | 0 | joeratt/dogescript | test/spec/notrly/notrly/source.djs | [
"MIT"
] |
#version 310 es
layout (local_size_x = 4, local_size_y = 4) in;
layout (binding = 0) readonly buffer InBufUV0 {
uint data[];
} in_buf_uv0;
layout (binding = 1) readonly buffer CoordX0 {
vec4 data[];
} coordx0;
layout (binding = 2) readonly buffer CoordY0 {
vec4 data[];
} coordy0;
layout (binding = 3) r... | Slash | 4 | zongwave/libxcam | shaders/glsl/shader_fastmap_blend_uv_nv12.comp.sl | [
"Apache-2.0"
] |
# a family tree example
# from http://www.cs.toronto.edu/~hojjat/384f06/simple-prolog-examples.html
# for some reason, in this family tree, reproduction is asexual.
<- male(james1)
<- male(charles1)
<- male(charles2)
<- male(james2)
<- male(george1)
<- female(catherine)
<- female(elizabeth)
<- female(sophia)
# paren... | Prolog | 4 | skynetshrugged/paip-python | paip/examples/prolog/family.prolog | [
"BSD-2-Clause"
] |
{% if site.data.backers[include.tier].size > 0 or site.data.github[include.tier].size > 0 %}
<div class="bd-backers-heading">
<h2>{{ include.title }}</h2>
</div>
<div class="bd-backers-group">
<ul class="bd-backers-list bd-is-patreon">
{% for pt in site.data.backers[include.tier] reversed %}
... | HTML | 4 | kalpitzeta/bulma | docs/_includes/elements/backers-group.html | [
"MIT"
] |
--TEST--
PDO::ATTR_PREFETCH
--EXTENSIONS--
pdo_mysql
--SKIPIF--
<?php
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
MySQLPDOTest::skip();
$db = MySQLPDOTest::factory();
?>
--FILE--
<?php
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
$db = MySQLPDOTest::factory();
... | PHP | 3 | NathanFreeman/php-src | ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt | [
"PHP-3.01"
] |
source "../tests/includes/init-tests.tcl"
source "../tests/includes/job-utils.tcl"
test "ADDJOB will initially queue the job in the target node" {
set id [D 0 addjob myqueue myjob 5000 replicate 3]
set job [D 0 show $id]
assert {$id ne {}}
assert {[count_job_copies $job active] >= 2}
}
test "If the jo... | Tcl | 5 | justincase/disque | tests/cluster/tests/03-jobs-queueing.tcl | [
"BSD-3-Clause"
] |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_TRAP_HANDLER_HANDLER_INSIDE_WIN_H_
#define V8_TRAP_HANDLER_HANDLER_INSIDE_WIN_H_
#include <windows.h>
#include "src/trap-handler/trap-handl... | C | 4 | EXHades/v8 | src/trap-handler/handler-inside-win.h | [
"BSD-3-Clause"
] |
= Create an account record programmatically
In some scenarios you might want to create an account records programmatically,
for example in your tests.
If you're storing passwords in a separate table, you can create an account
records as follows:
account_id = DB[:accounts].insert(
email: "name@example.com",... | RDoc | 4 | dmitryzuev/rodauth | doc/guides/create_account_programmatically.rdoc | [
"MIT"
] |
[Setup]
AppPublisher=Adobe Inc.
AppPublisherURL=https://www.adobe.com/
AppName=PhoneGap Desktop
AppId=com.adobe.phonegap.desktop
AppVersion=0.4.5
DefaultDirName={pf}\Adobe\PhoneGap\PhoneGap Desktop
DefaultGroupName=Adobe\PhoneGap
UninstallDisplayIcon={app}\PhoneGap.exe
Compression=lzma2
SolidCompression=yes
... | Inno Setup | 4 | Pandinosaurus/phonegap-app-desktop | res/installers/win/pg-desktop.iss | [
"ECL-2.0",
"Apache-2.0"
] |
---
layout: post
title: "Termination Checking"
date: 2013-11-18 16:12
comments: true
external-url:
categories: termination
author: Niki Vazou
published: false
demo: TerminationBasic.hs
---
As explained in the [last](LINK) [two](LINK) posts, we need a termination
checker to ensure that LiquidHaskell is not tricked by ... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/todo/basic_termination.lhs | [
"MIT",
"BSD-3-Clause"
] |
fileFormatVersion: 2
guid: ea663d109be12284baf599786bb2a172
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | samisuleman10/open-project-1 | UOP1_Project/Assets/ScriptableObjects/StateMachine/GameState/Conditions/IsInTransitionGameState.asset.meta | [
"Apache-2.0"
] |
insert into tg values (36, '93716046', 504039302756762058);
insert into tg values (7, 'c9f0af74', -3672692629732902854);
insert into tg values (15, 'b7533880', 7648806076137039357);
insert into tg values (34, '523fd865', 5175506849615232834);
insert into tg values (38, 'acc391be', 8237118846802854169);
insert into tg v... | SQL | 1 | cuishuang/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.tg.1.sql | [
"Apache-2.0"
] |
println("hello world")
function quadratic2(a::Float64, b::Float64, c::Float64)
# unlike other languages 2a is equivalent to 2*a
# a^2 is used instead of a**2 or pow(a,2)
sqr_term = sqrt(b^2-4a*c)
r1 = quadratic(a, sqr_term, b)
r2 = quadratic(a, -sqr_term, b)
# multiple values can be returned fr... | Julia | 4 | Earthman100/spyder | spyder/plugins/completion/providers/fallback/tests/data/example.jl | [
"MIT"
] |
module audiostreamerscrobbler.utils.NetworkUtils
import java.io.IOException
import java.net.{MulticastSocket, NetworkInterface, Socket}
# Network Interfaces
function getBroadcastAddresses = {
try {
let result = list[]
foreach networkInterface in getNetworkInterfaces() {
let broadcastAddresses = getBroadcastA... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/utils/NetworkUtils.golo | [
"MIT"
] |
#!/bin/sh
# This script runs `musl-cross-make` to prepare C toolchain (Binutils, GCC, musl itself)
# and builds static libunwind that we distribute for static target.
#
# Versions of the toolchain components are configurable in `musl-cross-make/Makefile` and
# musl unlike GLIBC is forward compatible so upgrading it sho... | Shell | 4 | david-perez/rust | src/ci/docker/scripts/musl-toolchain.sh | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
CJK_WORD
雪碧/n/xue bi/null
可口可乐/n/ke kou ke le/null
冰红茶/n/bing hong cha/null
奶茶/n/nai cha/null
花生奶/n/hua sheng nai/null
芬达/n/fen da/null
珍珠奶茶/n/zhen zhu nai cha/null
达利源/n/da li yuan/null
肯德鸡/n/ken de ji/null
炸薯条/n/zha shu tiao/null
麻辣烫/n/ma la tang/null
麻辣干锅/n/ma la gan guo/null
| Lex | 2 | Wing-Luo/jcseg | vendors/lexicon/lex-food.lex | [
"Apache-2.0"
] |
TDScriptLeafNode {
#name : 'deploy',
#contents : '[ :topez :objIn :tokens :windowId |
| project version versions constructor packageNames methodSections gofer spec |
Transcript
cr;
show: \'Deploying Metacello: \' , DateAndTime now asString.
false
ifTrue: [
\"get fresh copy of ConfigurationOfMetacello from... | STON | 4 | tom95/metacello | tode/deploy.ston | [
"MIT"
] |
"""Config flow for Litter-Robot integration."""
import logging
from pylitterbot.exceptions import LitterRobotException, LitterRobotLoginException
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from .const import DOMAIN
from .hub import L... | Python | 5 | MrDelik/core | homeassistant/components/litterrobot/config_flow.py | [
"Apache-2.0"
] |
: HELLO ( -- )
." Hello Forth (forth)!" ;
HELLO
| Forth | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Forth/hello-forth.forth | [
"MIT"
] |
= render 'notify/successful_pipeline', title: "Pipeline ##{@pipeline.id} has passed!"
| Haml | 3 | glimmerhq/glimmerhq | app/views/notify/pipeline_success_email.html.haml | [
"MIT"
] |
# The example numbers in these specs are ported from the C++
# "double-conversions" library. The following is their license:
# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following ... | Crystal | 5 | jessedoyle/crystal | spec/std/float_printer_spec.cr | [
"Apache-2.0"
] |
#include <mach-o/loader.h>
#include <stdio.h>
#include <sys/mman.h>
#include <dlfcn.h>
#define printf(...)
#define setvbuf(...)
extern void *(*dlopen_ptr)(const char *path, int mode);
extern void *(*dlsym_ptr)(void *handle, const char *symbol);
__asm__(".include \"" CURRENT_DIR "/entry.s\"");
inline void exit(int n... | C++ | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2020-9850/payload/loader/loader.cpp | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
/// <reference path="fourslash.ts" />
//// function foo (): number {
//// return 1
//// }
verify.getInlayHints([], undefined, {
includeInlayFunctionLikeReturnTypeHints: true,
});
| TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/inlayHintsShouldWork39.ts | [
"Apache-2.0"
] |
-module(lists_key_bug).
%% OTP-15570
-export([is_1/1, is_2/1, i/1, t1/0, t2/0, im/0]).
%% int_set([3])
is_1(V) ->
K = ikey(V),
case lists:keyfind(K, 1, [{<<"foo">>, bar}]) of
false ->
a;
{_, _} ->
b
end.
ikey(1) ->
3;
ikey(2) ->
<<"foo">>.
%% int_set([3, ... | Erlang | 4 | jjhoo/otp | lib/dialyzer/test/small_SUITE_data/src/lists_key_bug.erl | [
"Apache-2.0"
] |
// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::{Group, Spacing, Punct, TokenTree, TokenStream};
// This macro exists as part of a reproduction of #61963 but without using quote/syn/proc_macro2.
#[proc_macro_attribute]
pub fn dom_struct(_: TokenStream, input... | Rust | 5 | Eric-Arellano/rust | src/test/ui/suggestions/auxiliary/issue-61963.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env bash
# Copyright 2020 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 applica... | Shell | 4 | 767829413/kubernetes | hack/update-internal-modules.sh | [
"Apache-2.0"
] |
#tag Class
Protected Class UIStepper
Inherits iOSUserControl
#tag Event
Function CreateView() As UInteger
#If Target32Bit
declare function initWithFrame lib UIKitLib selector "initWithFrame:" (obj_id as ptr, frame as NSRect32) as ptr
#Elseif Target64Bit
declare function initWithFrame lib UIKitLib... | Xojo | 4 | kingj5/iOSKit | Modules/Extensions/UIStepper.xojo_code | [
"MIT"
] |
exec("swigtest.start", -1);
checkequal(call1(ADD_BY_VALUE_get(), 10, 11), 21, "ADD_BY_VALUE");
checkequal(call2(ADD_BY_POINTER_get(), 12, 13), 25, "ADD_BY_POINTER");
checkequal(call3(ADD_BY_REFERENCE_get(), 14, 15), 29, "ADD_BY_REFERENCE");
checkequal(call1(ADD_BY_VALUE_C_get(), 2, 3), 5, "ADD_BY_VALUE_C");
exec("swi... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/funcptr_cpp_runme.sci | [
"BSD-3-Clause"
] |
# Copyright (C) 2006-2009, Parrot Foundation.
.sub 'get_hellos'
$P0 = new ['ResizableStringArray']
push $P0, "hello"
push $P0, utf8:"hello"
push $P0, utf16:"hello"
push $P0, ucs2:"hello"
.return ($P0)
.end
.sub 'get_empties'
$P0 = new ['ResizableStringArray']
push $P0, ""
push $P0,... | Parrot Internal Representation | 3 | winnit-myself/Wifie | t/op/testlib/test_strings.pir | [
"Artistic-2.0"
] |
#!/usr/bin/awk -f
{
if (NF > max_len)
max_len = NF
counts[NF] += 1
total += 1
}
END {
for (i = 1; i <= max_len; i++)
printf "%d %.18f\n", i, counts[i]/total
}
| Awk | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | Projects/hackernews-comments/data/length-distr.awk | [
"Apache-2.0"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="BattleTop" ID="7def0ece-ff34-4ec8-b294-67f0a51a07d5" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Node_1" CanEdit="False" FrameEvent="" ctype="SingleNodeObjectData">
... | Csound | 4 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/BattleTop.csd | [
"MIT"
] |
package org.jetbrains.kotlin.aspects.refactoring;
import org.aspectj.lang.annotation.SuppressAjWarnings;
import org.eclipse.jdt.internal.corext.refactoring.rename.RenameNonVirtualMethodProcessor;
import org.eclipse.jdt.internal.corext.refactoring.util.TextChangeManager;
import org.jetbrains.kotlin.core.resolve.lang.ja... | AspectJ | 4 | jan-zajic/kotlin-eclipse | kotlin-eclipse-aspects/src/org/jetbrains/kotlin/aspects/refactoring/KotlinRemoveDeclarationUpdateAspect.aj | [
"Apache-2.0"
] |
sleep 1
t gpio 43 sw out1
t gpio 43 sw out0
sleep 10
t gpio 43 sw out1
t gpio 43 sw out0
d:\autoexec.ash
reboot yes
| AGS Script | 2 | waltersgrey/autoexechack | HERO2Autoexec/LoopVideo/autoexec.ash | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# F Wolff <friedel@translate.org.za>, 2019
# Pi Delport <pjdelport@gmail.com>, 2013
# Pi Delport <pjdelport@gmail.com>, 2013
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-... | Gettext Catalog | 3 | jpmallarino/django | django/contrib/admin/locale/af/LC_MESSAGES/djangojs.po | [
"BSD-3-Clause",
"0BSD"
] |
// This does not contain all of the ui-variables available.
@app-background-color: #00f; // Changed
@input-background-color: #f00; // Changed
| Less | 2 | pyrolabs/atom | spec/fixtures/packages/theme-with-incomplete-ui-variables/styles/ui-variables.less | [
"MIT"
] |
PREFIX : <http://www.example.org>
SELECT *
{
{ BIND (1 AS ?Y) }
UNION
{ :s :p ?Y }
}
| SPARQL | 3 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/syntax-query/syntax-BINDscope4.rq | [
"BSD-3-Clause"
] |
## Callees in placeables.
function-callee-placeable = {FUNCTION()}
term-callee-placeable = {-term()}
# ERROR Messages cannot be parameterized.
message-callee-placeable = {message()}
# ERROR Equivalent to a MessageReference callee.
mixed-case-callee-placeable = {Function()}
# ERROR Message attributes cannot be paramet... | FreeMarker | 4 | gammy55/linguist | samples/Fluent/callee_expressions.ftl | [
"MIT"
] |
-include ../tools.mk
all: $(call NATIVE_STATICLIB,a) $(call NATIVE_STATICLIB,b)
$(RUSTC) a.rs
$(RUSTC) b.rs
$(call RUN,b)
| Makefile | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/issue-28595/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
! Check that parameters are correct intercepted.
! Constants with comma separations are commonly
! used, for instance Pi = 3._dp
subroutine foo(x)
implicit none
integer, parameter :: sp = selected_real_kind(6)
integer, parameter :: dp = selected_real_kind(15)
integer, parameter :: ii = selected_int_kind(9)
in... | FORTRAN | 4 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/numpy/f2py/tests/src/parameter/constant_both.f90 | [
"MIT"
] |
== PyZmq ==
PyZMQ is the official Python binding for the ZeroMQ Messaging Library
and can be found at https://pypi.python.org/pypi/pyzmq
The project's Home Page is at http://github.com/zeromq/pyzmq
It can be used to run in Python a subscriber or publisher from outside of Mt4,
to receive or send information to either... | Creole | 3 | lionelyoung/OTMql4Zmq | wiki/PyZmq.creole | [
"MIT"
] |
Run, "C:\StarCraft\BWAPI\Chaoslauncher\Chaoslauncher - MultiInstance.exe"
Sleep, 500
Loop 65 {
Send {Click 60,364}
Sleep, 200
WinActivate, Chaoslauncher
} | AutoHotkey | 3 | syhw/TorchCraft | BWEnv/ahk/launch64SC.ahk | [
"BSD-3-Clause"
] |
' 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 System.Text
Imports Microsoft.CodeAnalysis.Text
Imports Roslyn.Test.Utili... | Visual Basic | 4 | ffMathy/roslyn | src/Compilers/VisualBasic/Test/Syntax/Syntax/SyntaxTreeTests.vb | [
"MIT"
] |
/* @generated */
digraph cfg {
"__infer_inner_destructor_~A#A#(6691652126532499765).afef2f12d7064cc4c0235f2b8111b00d_1" [label="1: Start A::__infer_inner_destructor_~A\nFormals: this:A*\nLocals: \n " color=yellow style=filled]
"__infer_inner_destructor_~A#A#(6691652126532499765).afef2f12d7064cc4c0235f2b8111b00d... | Graphviz (DOT) | 3 | livinlife6751/infer | infer/tests/codetoanalyze/cpp/frontend/destructors/simple_decl.cpp.dot | [
"MIT"
] |
( Generated from test_literal_float_in.muv by the MUV compiler. )
( https://github.com/revarbat/muv )
: _main[ _arg -- ret ]
{
0. 1. 2.0 0.3e1 4e0 50e-1 600.e-2 70.0e-1 0 0. - 0 1. -
0 2.0 - 0 0.3e1 - 0 4e0 - 0 50e-1 - 0 600.e-2 - 0 70.0e-1 -
}list
;
: __start
"me" match me ! me @ location... | MUF | 2 | revarbat/muv | tests/test_literal_float_cmp.muf | [
"BSD-2-Clause"
] |
function git_is_worktree -d "Check if directory is inside the worktree of a repository"
git_is_repo
and test (command git rev-parse --is-inside-git-dir) = false
end
| fish | 4 | e-ntro-py/oh-my-fish | lib/git/git_is_worktree.fish | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.1.5)-3")
(general
(thickness 1.6)
(drawings 226)
(tracks 1065)
(zones 0)
(modules 91)
(nets 112)
)
(page A4)
(layers
(0 F.Cu signal)
(1 In1.Cu signal)
(2 In2.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes... | KiCad | 4 | KalifiaBillal/HadesFCS | Hardware/HadesMicro/HadesMicro.kicad_pcb | [
"BSD-3-Clause"
] |
.SUFFIXES: .csr .pem .conf
.PRECIOUS: %/ca-key.pem %/ca-cert.pem %/cert-chain.pem
.PRECIOUS: %/workload-cert.pem %/key.pem %/workload-cert-chain.pem
.SECONDARY: root-cert.csr root-ca.conf %/cluster-ca.csr %/intermediate.conf
.DEFAULT_GOAL := help
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
include $(SELF_DIR)com... | Makefile | 5 | Louhwz/istio | tools/certs/Makefile.k8s.mk | [
"Apache-2.0"
] |
/**
* Annotation support for DAOs. Contains a bean post-processor for translating
* persistence exceptions based on a repository stereotype annotation.
*/
@NonNullApi
@NonNullFields
package org.springframework.dao.annotation;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;... | Java | 3 | nicchagil/spring-framework | spring-tx/src/main/java/org/springframework/dao/annotation/package-info.java | [
"Apache-2.0"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = '';
checkConfig(config);
@endpoint = getEndpoint('nbftestpop', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function ge... | Tea | 4 | aliyun/alibabacloud-sdk | nbftestpop-20210823_161417275/main.tea | [
"Apache-2.0"
] |
import React from "react";
import PropTypes from "prop-types";
import { clientConfig, currentUser } from "@/services/auth";
import Tooltip from "@/components/Tooltip";
import Alert from "antd/lib/alert";
import HelpTrigger from "@/components/HelpTrigger";
import { useUniqueId } from "@/lib/hooks/useUniqueId";
export d... | JSX | 4 | zero1number/redash | client/app/components/EmailSettingsWarning.jsx | [
"BSD-2-Clause"
] |
package org.kohsuke.stapler.beanutils.TagTest.RootActionImpl
import org.kohsuke.stapler.beanutils.BeanUtilsTagLibrary
def lib = jelly(BeanUtilsTagLibrary.class)
def st = namespace("jelly:stapler")
st.include(page: "jellyWithMyTagLibClassName")
| Groovy | 1 | rnelson01/jenkins | test/src/test/resources/org/kohsuke/stapler/beanutils/TagTest/RootActionImpl/groovyCallingJellyBuilderJellyThenInclude.groovy | [
"MIT"
] |
import "std/string"
use string.format
const exports = {}
const isTrue = fn(x) {
if isFunc(x): x = x()
if !isBool(x): throw "assertion must be a boolean to isTrue"
if x: return
throw format("Assertion Failed: Expected `{}` to be true.", x)
}
exports.isTrue = isTrue
const isFalse = fn(x) {
if isFu... | Inform 7 | 5 | lfkeitel/nitrogen | nitrogen/std/assert.ni | [
"BSD-3-Clause"
] |
def ℝ := set ℕ
constant ℝ.sub' : ℝ → ℝ → ℝ
/-
The following definition is accepted because the type is (ℝ → ℝ → ℝ) which is defeq to (ℝ → ℝ → ℕ → Prop).
The code generator can handle it because it is returning a type. Morally, it is the function that takes
three arguments and returns an unit.
-/
def ℝ.sub (a b : ℝ) := ... | Lean | 4 | ericrbg/lean | tests/lean/vm_noncomputable_real.lean | [
"Apache-2.0"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using Go = import "/go.capnp";
@0xf2b33c5cce93ae8a;
$Go.package("main");
$Go.import("main");
struct Animal {
colours @0 :List(Text);
name @1 :Text;
}
| Cap'n Proto | 4 | mrpotes/go-raml | codegen/capnp/fixtures/struct/golang/Animal.capnp | [
"BSD-2-Clause"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>foo</title>
<style type="text/css">
body, html, #mount {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sa... | HTML | 4 | bjornstar/react-virtualized | playground/hover.html | [
"MIT"
] |
- dashboard: click_fraud_analysis
title: Click Fraud Analysis
layout: newspaper
preferred_viewer: dashboards-next
elements:
- title: Account
name: Account
explore: ad_basic_stats
type: looker_waterfall
fields: [budget.account_descriptive_name, fact.total_clicks]
filters:
fact.date_pe... | LookML | 3 | dbrinegar-4mile/block-google-ads-transfer | lookml_dashboards/click_fraud_analysis.dashboard.lookml | [
"MIT"
] |
#+TITLE: tools/direnv
#+DATE: July 10, 2019
#+SINCE: v2.1.0
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#macos][MacOS]]
- [[#arch-linux... | Org | 4 | leezu/doom-emacs | modules/tools/direnv/README.org | [
"MIT"
] |
$(OBJDIR)/stats.cmi:
| D | 0 | heechul/crest-z3 | cil/obj/.depend/stats.di | [
"BSD-3-Clause"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
/// <include file="System.xml" path="doc/DbError/*" />
CLASS DbError INHERIT Error
/// <include file="System.xml" path="doc/DbError.ctor/*... | xBase | 4 | orangesocks/XSharpPublic | Runtime/VOSdkTyped/Source/VOSdk/System_Classes_SDK/DBError.prg | [
"Apache-2.0"
] |
from cpython.ref cimport PyObject
from folly cimport cFollyTry, cFollyFuture, cFollyExecutor, cFollySemiFuture
cdef extern from "folly/python/futures.h" namespace "folly::python":
void bridgeFuture[T](
cFollyFuture[T]&& fut,
void(*)(cFollyTry[T]&&, PyObject*),
PyObject* pyFuture
)
#... | Cython | 2 | facebookxx/folly | folly/python/futures.pxd | [
"Apache-2.0"
] |
import Img from "gatsby-image/withIEPolyfill"
const AssetBlock = ({ asset, maxWidth = 1280 }) => (
<Fragment>
<div
css={{
margin: `auto`,
marginLeft: `calc(50% - 45w)`,
marginRight: `calc(50% - 45vw)`,
[mediaQueries.phablet]: {
marginLeft: `calc(... | JavaScript | 4 | pipaliyajaydip/gatsby | packages/gatsby-codemods/src/transforms/__testfixtures__/gatsby-plugin-image/not-data.input.js | [
"MIT"
] |
:- object(sudo).
:- uses(user,[delete_file/1,tell/1,tmp_file_stream/3]).
:- uses('00-util',[expand_path/2]).
:- uses(marelle,[join/2,join_if_list/2,sh/1,sh_output/2,which/2]).
:- public[sudo_or_empty/1].
:- include('sudo.pl').
:- end_object.
| Logtalk | 3 | PaulBrownMagic/logtalk3 | tools/wrapper/marelle-master/sudo.lgt | [
"Apache-2.0"
] |
(in-package :house)
(defun debug! (&optional (stream *standard-output*))
(flet ((dbg (label &rest msg) (format stream ">>>> ~a~%~{~s~%----------~%~}~%" label msg)))
(defmethod process-ready :before ((socket stream-usocket) conns buffers)
(dbg "Preparing to buffer..." socket
"CONNECTIONS: " (alexand... | Common Lisp | 5 | adlerliu/500lines | event-web-framework/code/util.lisp | [
"CC-BY-3.0"
] |
vowels ← { +/,⍵ ∘.= 'AEIOUaeiou' }
vowels'APL is Cool' | APL | 3 | melsman/apltail | tests/vowels.apl | [
"MIT"
] |
// example016.stl is derived from Mblock.stl
// (c) 2009 Will Langford licensed under
// the Creative Commons - GNU GPL license.
// http://www.thingiverse.com/thing:753
//
// Jonas Pfeil converted the file to binary
// STL and duplicated its content.
module blk1() {
cube([ 65, 28, 28 ], center = true);
}
module blk... | OpenSCAD | 4 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/examples/example016.scad | [
"MIT"
] |
<h1>{{ whiskey }}</h1>
| HTML | 0 | LChristakis/chalice-hunter | lib/python3.4/site-packages/flask/testsuite/templates/simple_template.html | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.