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 |
|---|---|---|---|---|---|
C:\Program Files (x86)\BumpTop\Web\BumpTabs | DIGITAL Command Language | 2 | dyzmapl/BumpTop | trunk/win/Source/Web/BumpTabs/bumptabs@bumptop.com | [
"Apache-2.0"
] |
Document Type: IPF
item: Global
Version=6.0
Flags=00000100
Languages=0 0 65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
LanguagesList=English
Default Language=2
Japanese Font Name=MS Gothic
Japanese Font Size=10
Start Gradient=0 0 255
End Gra... | IGOR Pro | 4 | npocmaka/Windows-Server-2003 | inetcore/setup/ieak5/other/ie55urd.ipf | [
"Unlicense"
] |
a|b
a|c
b|c
a|b|c
/a|b
b|/a
a//c|b//c
d|e|f|g|h|a
| Max | 0 | yapingxin/libxml2 | v2.9.7/libxml2-2.9.7/test/pattern/conj.pat | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <single_ctx_test.uc>
#include <config.h>
#include <gro_cfg.uc>
#include <global.uc>
#include <pv.uc>
#include <stdmac.uc>
.reg ctm_base
.reg delete_bytes
.reg pkt_offset
.reg pms_offset
... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/pv_wr_nbi_meta_pms_opcode_offsets_test.uc | [
"BSD-2-Clause"
] |
--TEST--
Instanceof on literals returns false
--FILE--
<?php
var_dump("abc" instanceof stdclass);
?>
--EXPECT--
bool(false)
| PHP | 4 | thiagooak/php-src | Zend/tests/instanceof_const.phpt | [
"PHP-3.01"
] |
#summary Detailed description of DX7 envelope generation
= Interactive model =
Explore the interactive !JavaScript [http://wiki.music-synthesizer-for-android.googlecode.com/git/img/env.html implementation] of a nearly bit-accurate model of the DX7 envelope.
Also see [http://wiki.music-synthesizer-for-android.googlec... | MediaWiki | 4 | google-admin/music-synthesizer-for-android | wiki/Dx7Envelope.wiki | [
"Apache-2.0"
] |
package gw.specContrib.enhancements
enhancement Errant_Gosu_31_Enh : String
{
final static function hello() {} //## issuekeys: MSG_ILLEGAL_USE_OF_MODIFIER
final static property get Age () : Integer { return null} //## issuekeys: MSG_ILLEGAL_USE_OF_MODIFIER
}
| Gosu | 1 | dmcreyno/gosu-lang | gosu-test/src/test/gosu/gw/specContrib/enhancements/Errant_Gosu_31_Enh.gsx | [
"Apache-2.0"
] |
/* Copyright 2021 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 applicable ... | C | 5 | EricRemmerswaal/tensorflow | tensorflow/lite/kernels/internal/reference/gather.h | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 3 | jgstern/vscode | src/vs/workbench/contrib/webview/electron-sandbox/webviewService.ts | [
"MIT"
] |
Work in progress. This is the setup for a dual-boot windows/NixOS.
== Installation ==
Current requirements:
* USB stick
* Latest unstable minimal installation iso, I used [[https://nixos.org/releases/nixos/unstable/nixos-15.05pre61665.4c01e6d/nixos-minimal-15.05pre61665.4c01e6d-x86_64-linux.iso the 15.06-pre one]]
*... | MediaWiki | 3 | pmeiyu/nixos-hardware | microsoft/surface-pro/3/README.wiki | [
"CC0-1.0"
] |
---
layout: default
route: blog
breadcrumb:
- home
- blog
---
{% include global/navbar.html id="Blog" %}
{% assign title = page.title | markdownify %}
{% assign introduction = page.introduction | markdownify %}
{% assign m = page.date | date: "%B" %}
{% assign d = page.date | date: "%-d" %}
{% assign y = page.date | ... | HTML | 3 | kalpitzeta/bulma | docs/_layouts/post.html | [
"MIT"
] |
--TEST--
Bug #54060 (Memory leak in openssl_encrypt)
--EXTENSIONS--
openssl
--FILE--
<?php
$data = "jfdslkjvflsdkjvlkfjvlkjfvlkdm,4w 043920r 9234r 32904r 09243
r7-89437 r892374 r894372 r894 7289r7 f frwerfh i iurf iuryw uyrfouiwy ruy
972439 8478942 yrhfjkdhls";
$pass = "r23498rui324hjbnkj";
openssl_encrypt($data, 'd... | PHP | 2 | NathanFreeman/php-src | ext/openssl/tests/bug54060.phpt | [
"PHP-3.01"
] |
#!/usr/bin/pike
// -*- mode: pike -*-
// $Id: hash2.pike,v 1.1 2004-05-19 18:10:02 bfulgham Exp $
// http://www.bagley.org/~doug/shootout/
void main(int argc, array(string) argv) {
int n = (int)argv[-1];
if (n < 1) n = 1;
mapping(string:int) hash1 = ([]);
mapping(string:int) hash2 = ([]);
fo... | Pike | 3 | kragen/shootout | bench/hash2/hash2.pike | [
"BSD-3-Clause"
] |
# This class contains methods for generating callables to be used
# in metaoperators. There are two reasons for having this in a
# separate class:
#
# 1. It needs to know about all possible builtin operators. If it
# would be part of Rakudo::Internals, it would be too early in
# building the settings. Augmenti... | Perl6 | 5 | raydiak/rakudo | src/core.c/Rakudo/Metaops.pm6 | [
"Artistic-2.0"
] |
' ********** Copyright 2016-2019 Roku Corp. All Rights Reserved. **********
Function onKeyEvent(key as String, press as Boolean) as Boolean 'Maps back button to leave video
if press
print "Ext - key= ", key
if key = "back" 'If the back button is pressed
if m.Video <> invalid and m.Video.visi... | Brightscript | 4 | khangh/samples | certification/trickplay-samples-master/RAFSSAI-with-jpeg/components/ExtVideo.brs | [
"MIT"
] |
<div class="d-flex">
{% include ui/breadcrumb.html class="breadcrumb-alternate" %}
</div> | HTML | 2 | muhginanjar/tabler | src/pages/_includes/layout/header-actions/breadcrumb.html | [
"MIT"
] |
(debug)
(load "../lib/all.gf")
(let _
(let super Env/this
Counter (fun ((n 0))
(fun inc ((d 1)) (super/inc n d))
Env/this))
(dump (bench 10 (for 10000
(let c (Counter))
(c/inc)
(c/inc -1))))
) | Grammatical Framework | 3 | daota2/fffff | v1/bench/counter.gf | [
"MIT"
] |
<li>
<article>
<figure class="entry-image">
<a href="<$mt:EntryPermalink$>" class="image"><img src="<mt:If tag="blog_entry_ogp_image"><mt:blog_entry_ogp_imageAsset><$mt:AssetThumbnailURL width="480"$></mt:blog_entry_ogp_imageAsset><mt:Else><mt:EntryAssets type="image" sort_order="ascend" limit="1"><$mt:Asse... | MTML | 3 | kanpapa/mt-theme-rimo | themes/rimo/templates/entry_listing.mtml | [
"MIT"
] |
DEFAULT_MACHINE="default"
docker-up() {
if [ -z "$1" ]
then
docker-machine start "${DEFAULT_MACHINE}"
eval $(docker-machine env "${DEFAULT_MACHINE}")
else
docker-machine start $1
eval $(docker-machine env $1)
fi
echo $DOCKER_HOST
}
docker-stop() {
if [ -z "$1" ]
... | Shell | 4 | chensanle/ohmyzsh | plugins/docker-machine/docker-machine.plugin.zsh | [
"MIT"
] |
diff --git a/libsrtp.gyp b/libsrtp.gyp
index 27e6476..6c92165 100644
--- libsrtp.gyp
+++ libsrtp.gyp
@@ -5,7 +5,7 @@
{
'variables': {
'use_system_libsrtp%': 0,
- 'use_openssl': 1,
+ 'use_openssl': 0,
},
'target_defaults': {
'defines': [
| Diff | 2 | namaljayathunga/nw.js | patch/patches/openssl.patch | [
"MIT"
] |
module audiostreamerscrobbler.utils.UrlUtils
function createFormattedUrl = |url, path| {
let formattedUrl = StringBuilder()
formattedUrl: append(createFormattedUrl(url))
if (path: startsWith("/")) {
formattedUrl: append(path: substring(1))
} else {
formattedUrl: append(path)
}
if (not path: endsWith("/"))... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/utils/UrlUtils.golo | [
"MIT"
] |
i=:l+:r a=i---i b=i---i:i=b+(a-b)
a=i---i b=i---i:i=b+(a+(:i-a)-b)a=i---i b=i---i:i=b+(a+(:i-a)-b)goto2
:done=1goto1
^^^^ current best
/--------//--------//--------//--------//--------//--------//--------/
i=:l+:r:i=i---i c=i---i:i=c+(:i-c)goto20
c=i---i:i=c+(:i-c)c=i---i:i=c+(:i-c)c=i---i:i=c+(:i... | LOLCODE | 1 | Dude112113/Yolol | YololEmulator/Scripts/union.lol | [
"MIT"
] |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
prepend Msf::Exploit::Remote::AutoCheck
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit... | Ruby | 4 | moddingg33k/metasploit-framework | modules/exploits/linux/http/saltstack_salt_wheel_async_rce.rb | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
\ Test INCLUDE errors.
: T.LOAD.PAIRS
10 0 DO i . THEN
;
| Forth | 1 | 610t/retrobsd | src/cmd/pforth/fth/t_load_pairs.fth | [
"BSD-3-Clause"
] |
/// <reference path='fourslash.ts' />
// @allowjs: true
// @checkJs: true
// @Filename: /a.js
////class Foo {
//// constructor(name) {
//// this.[|#name|] = name;
//// }
////}
verify.codeFixAvailable([
{ description: "Declare a private field named '#name'." },
{ description: "Ignor... | TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/codeFixInitializePrivatePropertyJS.ts | [
"Apache-2.0"
] |
%pre.build-log
%code.bash.js-build-output
.build-loader-animation.js-build-refresh
.dot
.dot
.dot
| Haml | 0 | nowkoai/test | app/views/shared/builds/_build_output.html.haml | [
"MIT"
] |
// run-pass
// aux-build:xcrate.rs
extern crate xcrate;
fn main() {
xcrate::return_internal_fn()();
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/impl-trait/xcrate_simple.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module.exports = function (p: string) {}
| JSX | 1 | oonsamyi/flow | tests/extensions/bar.jsx | [
"MIT"
] |
a { value: f\6e() } | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/biImEvafuG5pEuEW8LgCCw/input.css | [
"Apache-2.0",
"MIT"
] |
%h3 500 Internal Server Error
%hr
%p Sorry.
| Scaml | 0 | tototoshi/skinny-framework | yeoman-generator-skinny/app/templates/src/main/webapp/WEB-INF/views/error/500.html.scaml | [
"MIT"
] |
<div class="ten-timeline">
<div class="ten-timeline-item">
<p class="ten-timeline-item-date">November 5, 2009</p>
<div class="ten-timeline-item-content">
<h3>First post! Everything started with the post “Welcome to The Changelog”</h3>
<p><a href="/posts/welcome-to-the-changelog">Read Article<... | HTML+EEX | 3 | gustavoarmoa/changelog.com | lib/changelog_web/templates/page/_ten/ten_timeline.html.eex | [
"MIT"
] |
# this is the process of uploading the updated models to s3. As I can't upload them directly to the correct orgs, this script shows how this is done
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in comp... | Shell | 3 | liminghao1630/transformers | scripts/fsmt/s3-move.sh | [
"Apache-2.0"
] |
// Generated from <https://html.spec.whatwg.org/entities.json> by entities.rb
#include "char_ref.h"
%%{
machine named_char_ref;
named_char_ref := |*
'AElig' . ';'? => {output[0]=0xc6; fbreak;};
'AMP' . ';'? => {output[0]=0x26; fbreak;};
'Aacute' . ';'? => {output[0]=0xc1; fbreak;};
'Abreve;' => {output[0]=0x102... | Ragel in Ruby Host | 4 | jrekoske/jrekoske.github.io | vendor/bundle/ruby/3.1.0/gems/nokogiri-1.12.4/gumbo-parser/src/char_ref.rl | [
"MIT"
] |
# Intel framework support for RADIUS usernames
# CrowdStrike 2014
# josh.liburdi@crowdstrike.com
@load base/protocols/radius
@load base/frameworks/intel
@load policy/frameworks/intel/seen/where-locations
event RADIUS::log_radius(rec: RADIUS::Info)
{
if ( rec?$username && rec?$result )
if ( rec$result == "success" ... | Bro | 4 | kingtuna/cs-bro | bro-scripts/intel-extensions/seen/radius-username.bro | [
"BSD-2-Clause"
] |
*** Settings ***
Library DynamicWithKwargs.py
*** Variables ***
${a} a
${b} b
*** Test Cases ***
Simple usage
${ret} = One Arg arg=value
Should Be Equal ${ret} arg:value
${ret} = Two Args first=1 second=2
Should Be Equal ${ret} first:1,... | RobotFramework | 5 | phil-davis/robotframework | atest/testdata/keywords/named_args/dynamic_with_kwargs.robot | [
"ECL-2.0",
"Apache-2.0"
] |
sub util1()
?"statement 1"
?"statement 2"
end sub
sub util_y()
end sub | Brightscript | 1 | lkipke/brs | test/parser/resources/scripts/utilityExtended.brs | [
"MIT"
] |
= RESTful Notes API Guide
Baeldung;
:doctype: book
:icons: font
:source-highlighter: highlightjs
:toc: left
:toclevels: 4
:sectlinks:
[[overview]]
= Overview
[[overview-http-verbs]]
== HTTP verbs
RESTful notes tries to adhere as closely as possible to standard HTTP and REST conventions in its
use of HTTP verbs.
|==... | AsciiDoc | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-springdoc/src/main/resources/asciidocs/fooapi.adoc | [
"MIT"
] |
// ==============================================================
// File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
// Version: 2016.4
// Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved.
//
// ==============================================================
//----------- Begin... | Verilog | 3 | slaclab/proto-dune | firmware/common/VivadoHLS/DuneDataCompression/vivado_hls/ip/DuneDataCompressionCore.veo | [
"BSD-3-Clause-LBNL"
] |
from thefuck.utils import get_all_executables
from thefuck.specific.sudo import sudo_support
@sudo_support
def match(command):
first_part = command.script_parts[0]
if "-" not in first_part or first_part in get_all_executables():
return False
cmd, _ = first_part.split("-", 1)
return cmd in get_... | Python | 3 | Ishaanahuja7/thefuck | thefuck/rules/wrong_hyphen_before_subcommand.py | [
"MIT"
] |
const std = @import("std");
extern threadlocal var a: i32;
test {
try std.testing.expect(a == 0);
}
| Zig | 3 | lukekras/zig | test/standalone/link_import_tls_dylib/main.zig | [
"MIT"
] |
package com.alibaba.fastjson.serializer.issue3177;
import com.alibaba.fastjson.JSON;
import org.junit.Assert;
import org.junit.Test;
/**
*
* @author shenzhou-6
* @since 2020年05月26日
*
* https://github.com/alibaba/fastjson/issues/3177
*/
public class TestIssues3177 {
@Test
public void testIssues3177(){
... | Java | 4 | yiyanghua/fastjson | src/test/java/com/alibaba/fastjson/serializer/issue3177/TestIssues3177.java | [
"Apache-2.0"
] |
#!/usr/bin/osascript
# How to use this script?
# It's a template which needs further setup. Duplicate the file,
# remove `.template.` from the filename,
# Replace all instances of <display> with the name of your monitor.
# Monitor name can be seen by open System Preferences → Display,
# and look at the win... | AppleScript | 3 | daviddzhou/script-commands | commands/system/toggle-flip-screen.template.applescript | [
"MIT"
] |
The AMEE category /transport/van contains data associated with the greenhouse gas emissions of van transport. Van-associated data is currently available in the following subcategory:
==Generic van==
The AMEE category [[Generic_van_transport|/transport/van/generic]] contains data associated with the greenhous... | Creole | 1 | OpenAMEE/datasets | transport/van/documentation.creole | [
"MIT"
] |
#![feature(unsized_locals, unsized_fn_params)]
//~^ WARN the feature `unsized_locals` is incomplete
fn main() {
struct A<X: ?Sized>(X);
A as fn(str) -> A<str>;
//~^ERROR the size for values of type `str` cannot be known at compilation time
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/unsized-locals/issue-50940-with-feature.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
% Mutate by renaming of an identifier or type in any program in any C-like language
#pragma -char -comment -width 32767
% C tokens, so we don't break them up
include "java.grm"
% Our grammar simply processes lines of text
define program
[repeat line]
[repeat lineitem] % Some files don't have a final newline
... | TXL | 4 | pseudoPixels/SourceFlow | txl_features/txl_features/java/consistentNormalizeLiterals.txl | [
"MIT"
] |
unit
module pervasive IniFile
export Open, GetStringDefault, GetString, GetBooleanDefault, GetBoolean,
GetIntDefault, GetInt, GetRealDefault, GetReal,
GetStringArray, GetBooleanArray, GetIntArray, GetRealArray,
Delete, SetString, SetBoolean, SetInt, SetReal,
SetStringArray, SetBooleanArray, SetIntArray, S... | Turing | 5 | ttracx/OpenTuring | turing/test/support/predefs/IniFile.tu | [
"MIT"
] |
<cfloop list="#arguments.parseData#" delimiters="&" index="local.kvPair">
<cfset local.keyStr = listFirst(local.kvPair, "=")>
<cfset local.valStr = listLast(local.kvPair, "=", true)>
// Do stuff
</cfloop> | ColdFusion | 3 | tonym128/CFLint | src/test/resources/com/cflint/tests/VariableNameChecker/local_537.cfm | [
"BSD-3-Clause"
] |
/**
* NBSwapBuffer.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source co... | X10 | 5 | milthorpe/rudra | x10/src/rudra/util/NBSwapBuffer.x10 | [
"BSD-3-Clause"
] |
<%= render("_item_title.xml", assigns) %>
<description><![CDATA[
<%= SharedHelpers.md_to_html(@item.story) %>
<%= video_embed(@item) %>
<%= image_link(@item) %>
<%= discussion_link(@item) %>]]></description>
| HTML+EEX | 3 | gustavoarmoa/changelog.com | lib/changelog_web/templates/feed/_item.xml.eex | [
"MIT"
] |
--for testing uncomment the "on run" block
--on run
-- set argsCmd to "ps aux | grep [s]sh"
-- set argsTheme to "Homebrew"
-- set argsTitle to "Custom title"
-- scriptRun(argsCmd, argsTheme, argsTitle)
--end run
on scriptRun(argsCmd, argsTheme, argsTitle)
set withCmd to (argsCmd)
set withTheme to (argsTheme)
set th... | AppleScript | 4 | productinfo/shuttle | apple-scripts/iTermStable/iTerm2-stable-new-window.applescript | [
"MIT"
] |
00000000111111111111111100000000
00000000111111111111111100000000
00000011111111111111111111000000
00000011111111111111111111000000
00001111111111111111111111110000
00001111111111111111111111110000
00111111111111111111111111111100
00111111111111111111111111111100
11111111111111111111111111111111
11111111111111111111111... | Mask | 0 | YersonSolano/CocosSharp | tests/tests/ball-hd.mask | [
"MIT"
] |
#!/bin/bash
set -e
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
git clone homebrew-tap-repo updated-homebrew-tap-repo > /dev/null
if [[ $LATEST_GA = true ]]; then
pushd updated-homebrew-tap-repo > /dev/null
curl https://repo.spring.io/libs-release-... | Shell | 3 | techAi007/spring-boot | ci/scripts/update-homebrew-tap.sh | [
"Apache-2.0"
] |
--TEST--
CLI php -i
--SKIPIF--
<?php
include "skipif.inc";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die ("skip not for Windows");
}
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
echo `"$php" -n -i`;
echo "\nDone\n";
?>
--EXPECTF--
phpinfo()
PHP Version => %s
%a
PHP License
This program is free software; y... | PHP | 4 | NathanFreeman/php-src | sapi/cli/tests/019.phpt | [
"PHP-3.01"
] |
untyped
global function CodeCallback_RegisterClass_CBaseCombatCharacter
function CodeCallback_RegisterClass_CBaseCombatCharacter()
{
CBaseCombatCharacter.ClassName <- "CBaseCombatCharacter"
RegisterSignal( "ContextAction_SetBusy" ) // signalled from ContextAction_SetBusy() in code
/*
CBaseCombatCharacter.__Set... | Squirrel | 3 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/class/cbasecombatcharacter.nut | [
"MIT"
] |
#lang scribble/doc
@(require "common.rkt" (for-label help/search))
@(tools-title "help-desk")
@(tools-include "help-desk")
| Racket | 2 | rrthomas/drracket | drracket/scribblings/tools/help-desk.scrbl | [
"Apache-2.0",
"MIT"
] |
^XA
^LH20,20
^FO20,00^BQ,2,10
^FDLM,A <%= id %>^FS
^FO280,10^AD,N,15,10^FD<%= String.slice(id, 0, 6) %>^FS
^FO280,50^AD,N,15,10^FD<%= String.slice(id, 6, 6) %>^FS
^FO280,90^AD,N,15,10^FD<%= String.slice(id, 12, 6) %>^FS
^FO280,130^AD,N,15,10^FD<%= String.slice(id, 18, 6) %>^FS
^FO280,170^AD,N,10,10^FDCRTLABS.ORG^FS
^XZ... | Zimpl | 3 | rosetta-home/kitting_system | priv/label.zpl | [
"Apache-2.0"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Performs a map, but returns the original SMap.t if there is no change **)
let ident_map f map =
let changed = ref false in
... | OCaml | 4 | Hans-Halverson/flow | src/common/utils/sMapUtils.ml | [
"MIT"
] |
.class final Landroid/support/v4/app/FragmentActivity$NonConfigurationInstances;
.super Ljava/lang/Object;
.source "FragmentActivity.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/support/v4/app/FragmentActivity;
.end annotation
.annotation system Ldalvik/annotation/In... | Smali | 2 | jarekankowski/pegasus_spyware | sample1/decompiled_raw/smali/android/support/v4/app/FragmentActivity$NonConfigurationInstances.smali | [
"MIT"
] |
$$ MODE TUSCRIPT
LOOP bottle=1,100
SET bottlenr=100-bottle
IF (bottlenr==0) THEN
PRINT "no bottle of beer on the wall"
EXIT
ELSEIF (bottlenr==1) THEN
PRINT bottlenr, " bottle of beer on the wall"
PRINT bottlenr, " bottle of beer"
ELSE
PRINT bottlenr, " bottles of beer on the wall"
PRINT bottlenr, " bottles of beer"
END... | Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/99-Bottles-of-Beer/TUSCRIPT/99-bottles-of-beer.tu | [
"Info-ZIP"
] |
<%--
Created by IntelliJ IDEA.
User: Olga
Date: 7/20/2016
Time: 1:47 PM
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<title>Send ... | Java Server Pages | 3 | zeesh49/tutorials | spring-mvc-simple/src/main/webapp/WEB-INF/views/mail/send.jsp | [
"MIT"
] |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFSIZE 4096
typedef struct _Scanner {
/* Scanner state. */
int cs;
int act;
int have;
int curline;
char *ts;
char *te;
char *p;
char *pe;
char *eof;
FILE *file;
int done;
/* Token data */
char *data;
int len... | Ragel in Ruby Host | 5 | garethchen/hhvm-third-party | ragel/src/examples/pullscan.rl | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script type="application/javascript" defer="defer" src="js/index.js"></script>
<title>Ockam Node Web</title>
</head>
<body>
<div id="main"></div>
</body>
</html>
| HTML+EEX | 2 | twittner/ockam | implementations/elixir/ockam/ockam_node_web/lib/node_web/templates/index.html.eex | [
"Apache-2.0"
] |
/* Route packets between a local bus and a network bus in both directions,
using a switch that supports NAT (network address translation).
A device on the local bus can send to a device on a network bus by
specifying the bus id. If the switch has configured a public bus id
(a NAT bus id) for this local bus... | Arduino | 4 | solhuebner/PJON | examples/routing/ARDUINO/Network/LocalBusViaNATSwitch/LocalDevice/LocalDevice.ino | [
"Apache-2.0"
] |
-- The user_version should match the "000X" from the file name
-- Ex: 0001_create_notebooks_table should have a user_verison of 1
PRAGMA user_version=1;
-- Create the testing table
CREATE TABLE test_table_1 (
id TEXT NOT NULL PRIMARY KEY,
created_at TIMESTAMP,
updated_at TIMESTAMP
);
| SQL | 3 | ldwformat/influxdb | sqlite/test_migrations/0001_create_test_table_1.sql | [
"MIT"
] |
CREATE TABLE `tb_nxbyklxowd` (
`col_kcwxoovscx` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8,
`col_dbtkzzfxoi` varbinary(22) NOT NULL,
`col_zkfycwevvo` time DEFAULT NULL,
`col_ememhbgtcx` bit(1) DEFAULT b'0',
`col_zrrfkkosvo` char(203) DEFAULT NULL,
`col_fpafdojbdn` decimal(9,9) D... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_16.sql | [
"Apache-2.0"
] |
[Desktop Entry]
Type=Application
Name=QGroundControl
GenericName=Ground Control Station
Comment=UAS ground control station
Icon=org.mavlink.qgroundcontrol
Exec=QGroundControl
Terminal=false
Categories=Utility;
| desktop | 2 | dlech/qgroundcontrol | deploy/org.mavlink.qgroundcontrol.desktop | [
"Apache-2.0"
] |
package com.alibaba.json.bvt.bug;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
public class Bug_101_for_rongganlin extends TestCase {
public void test_for_bug() throws Exception {
Structure structure = new Structure();
Lis... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/bug/Bug_101_for_rongganlin.java | [
"Apache-2.0"
] |
= Original Prototype Rake
This is the original 100 line prototype rake program.
---
#!/usr/bin/env ruby
require 'ftools'
class Task
TASKS = Hash.new
attr_reader :prerequisites
def initialize(task_name)
@name = task_name
@prerequisites = []
@actions = []
end
def enhance(deps=nil, ... | RDoc | 4 | defc0n1/shoppe_promo | vendor/cache/gems/rake-11.1.2/doc/proto_rake.rdoc | [
"MIT"
] |
= gl_tabs_nav({ class: 'mb-3'}) do
= gl_tab_link_to _('Events'), project_product_analytics_path(@project)
= gl_tab_link_to _('Graphs'), graphs_project_product_analytics_path(@project)
= gl_tab_link_to _('Test'), test_project_product_analytics_path(@project)
= gl_tab_link_to _('Setup'), setup_project_product_ana... | Haml | 4 | nowkoai/test | app/views/projects/product_analytics/_links.html.haml | [
"MIT"
] |
#!/bin/sh
#
# Requires kumar_asshole script in your bin
#
exec kumar_asshole
| Shell | 0 | johndemlon/hacker-scripts | kumar-asshole.sh | [
"WTFPL"
] |
<body>
<nav id="metadata">
<%= render '_sidebar_navigation.rhtml' %>
<%= render '_sidebar_search.rhtml' %>
<div id="project-metadata">
<%= render '_sidebar_pages.rhtml' %>
<%= render '_sidebar_classes.rhtml' %>
</div>
</nav>
<div id="documentation" class="description">
<h1>Not Found</h1>
<p>The ... | RHTML | 2 | prathamesh-sonpatki/jruby | lib/ruby/2.0/rdoc/generator/template/darkfish/servlet_not_found.rhtml | [
"Ruby",
"Apache-2.0"
] |
function CSX = create_sky130_geometry ( CSX , x_min, x_max, y_min, y_max, unit )
CSX = AddMaterial( CSX, 'PI1' );
CSX = SetMaterialProperty( CSX, 'PI1', 'Epsilon', 2.94 );
CSX = AddMaterial( CSX, 'TOPNIT' );
CSX = SetMaterialProperty( CSX, 'TOPNIT', 'Epsilon', 7.5 );
CSX = AddMaterial( CSX, 'NILD6' );
CSX = SetMater... | Matlab | 4 | diadatp/sky130_rf_tools | openems/create_sky130_geometry.matlab | [
"Apache-2.0"
] |
{
"main": "dist/keystone-ui-icons-icons-TruckIcon.cjs.js",
"module": "dist/keystone-ui-icons-icons-TruckIcon.esm.js"
}
| JSON | 0 | pazams/keystone | design-system/packages/icons/icons/TruckIcon/package.json | [
"MIT"
] |
Red/System [
Title: "Red execution stack functions"
Author: "Nenad Rakocevic"
File: %stack.reds
Tabs: 4
Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt... | Red | 4 | GalenIvanov/red | runtime/stack.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
import { AnimationClip } from '../animation/AnimationClip.js';
import { FileLoader } from './FileLoader.js';
import { Loader } from './Loader.js';
class AnimationLoader extends Loader {
constructor( manager ) {
super( manager );
}
load( url, onLoad, onProgress, onError ) {
const scope = this;
const load... | JavaScript | 4 | prominentdetail/three.js | src/loaders/AnimationLoader.js | [
"MIT"
] |
try {
dir ("milvus-helm-charts") {
// sh 'helm init --client-only --skip-refresh --stable-repo-url https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts'
// sh 'helm repo update'
checkout([$class: 'GitSCM', branches: [[name: "${HELM_BRANCH}"]], userRemoteConfigs: [[url: "${HELM_URL}", name:... | Groovy | 3 | chriswarnock/milvus | tests/milvus_benchmark/ci/jenkinsfile/deploy_test.groovy | [
"Apache-2.0"
] |
<!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" lang="en">
<%method wrap>
<%args scope="request">
title
</%args>
<div id="header">
<h1><% title %></h1>
</div>
<% m.content() %>
</%method>
<div id="fo... | Myghty | 3 | omunroe-com/sbvedwllorg | examples/bench/myghty/base.myt | [
"BSD-3-Clause"
] |
//
// Copyright (c) 2006, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 2 Dec 05 Brian Frank Creation
// 17 Sep 06 Brian Frank Ported from Java to Fan
//
**
** CheckErrors walks the tree of statements and expressions looking
** for errors the compiler can... | Fantom | 5 | fanx-dev/fanx | compiler/compiler/fan/steps/CheckErrors.fan | [
"AFL-3.0"
] |
variable "function_name" {
type = string
}
resource "aws_lambda_function" "tf_lambda" {
filename = "../lambdas/dotnetcore2/dotnetcore2.zip"
function_name = var.function_name
role = aws_iam_role.iam_for_lambda.arn
handler = "DotNetCore2::DotNetCore2.Lambda.Function::SimpleFunctionHandler"
... | HCL | 3 | mariuspot/localstack | tests/integration/terraform/lambda.tf | [
"Apache-2.0"
] |
#Signature file v4.1
#Version 1.69.0
CLSS public abstract interface java.io.Serializable
CLSS public abstract interface java.lang.Comparable<%0 extends java.lang.Object>
meth public abstract int compareTo({java.lang.Comparable%0})
CLSS public abstract java.lang.Enum<%0 extends java.lang.Enum<{java.lang.Enum%0}>>
con... | Standard ML | 3 | timfel/netbeans | ide/jumpto/nbproject/org-netbeans-modules-jumpto.sig | [
"Apache-2.0"
] |
// This is a comment.
export function comment(): string {
return "comment";
}
| TypeScript | 2 | petamoriken/deno | cli/tests/testdata/subdir/comment.ts | [
"MIT"
] |
// $Id: DhvTrickleTimer.nc,v 1.2 2010-06-29 22:07:49 scipio Exp $
/*
* Copyright (c) 2006 Stanford University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of sourc... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/lib/net/dhv/interfaces/DhvTrickleTimer.nc | [
"BSD-3-Clause"
] |
# Marker to tell the VCL compiler that this VCL has been adapted to the
# new 4.0 format.
vcl 4.0;
import std;
import directors;
## header vcl ###
## acl rules ##
backend mesh_default_proxy {
.host = "127.0.0.1";
.port = "30001";
}
sub use_director_director_with_mesh_service_support {
set req.http.x-orig... | VCL | 4 | allegro/vaas | vaas-app/src/vaas/vcl/tests/expected-vcl-4.0-with-mesh_service.vcl | [
"Apache-2.0"
] |
<%--
Copyright 2012 Netflix, Inc.
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 agree... | Groovy Server Pages | 3 | michaelneale/asgard | grails-app/views/scheduledAction/show.gsp | [
"Apache-2.0"
] |
submodule openconfig-aft-mpls {
belongs-to "openconfig-aft" {
prefix "oc-aft";
}
import openconfig-extensions { prefix "oc-ext"; }
import openconfig-mpls-types { prefix "oc-mpls-types"; }
// Include common cross-AFT groupings from the common submodule.
include openconfig-aft-common;
oc-ext:openconf... | YANG | 5 | meodaiduoi/onos | models/openconfig/src/main/yang/aft/openconfig-aft-mpls@2017-05-10.yang | [
"Apache-2.0"
] |
# 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 version: ... | R | 4 | derBiggi/swagger-codegen | samples/client/petstore/r_test/R/PetApi.r | [
"Apache-2.0"
] |
require "json"
module Crystal::System::VisualStudio
struct Installation
include JSON::Serializable
@[JSON::Field(key: "installationPath")]
getter directory : String
@[JSON::Field(key: "installationVersion")]
getter version : String
# unused fields not mapped
end
@@found_msvc = false
... | Crystal | 5 | jessedoyle/crystal | src/crystal/system/win32/visual_studio.cr | [
"Apache-2.0"
] |
xquery version "1.0-ml";
module namespace plugin = "http://marklogic.com/data-hub/plugins";
declare namespace es = "http://marklogic.com/entity-services";
declare option xdmp:mapping "false";
(:~
: Create Content Plugin
:
: @param $id - the identifier returned by the collector
: @param $opt... | XQuery | 4 | MLjyang/marklogic-data-hub | marklogic-data-hub/src/main/resources/scaffolding/harmonize/xqy/content.xqy | [
"Apache-2.0"
] |
--TEST--
Test filetype() function: Basic functionality
--FILE--
<?php
echo "*** Testing filetype() with files and dirs ***\n";
print( filetype(__FILE__) )."\n";
print( filetype(".") )."\n";
echo "*** Done ***\n";
?>
--EXPECT--
*** Testing filetype() with files and dirs ***
file
dir
*** Done ***
| PHP | 4 | NathanFreeman/php-src | ext/standard/tests/file/filetype_basic.phpt | [
"PHP-3.01"
] |
a::b {} | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/sAlB53zm7iv9WuhRVKadHQ/input.css | [
"Apache-2.0",
"MIT"
] |
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011 Xilinx, Inc.
// All Rights Reserved
///////////////////////////////////////////////////////////////////////////////
// ____ ____
// / /\/ /
// /___/ \ / Vendor : Xilinx
// \ \ \/ Version : 1... | Verilog | 4 | martonbognar/sancus-core | fpga/xilinx_avnet_lx9microbard/ise/rtl/verilog/coregen/chipscope_icon.veo | [
"BSD-3-Clause"
] |
WinClick,{{ x }},{{ y }},{{ hwnd }},{{ button }},{{ n }}{% if options %},{{ options }}{% endif %}
| AutoHotkey | 0 | scslmd/ahk | ahk/templates/daemon/win_click.ahk | [
"MIT"
] |
a { color: #ABBBCCDD } | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/3EgMpLwjJNG0ht4U_r6cnw/input.css | [
"Apache-2.0"
] |
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
' '
BEGIN_ARRAY 1 10
'VG2 JUP SEDR QMW IMAGE NAV POINTING: NA '
'3B0CB8DC^8'
'3B0CBFC2^8'
'-7D64'
'2'
'2'
'1'
10
'58839FB314C034^0'
'1696292F466A35^0'
'B237FA488C87B^0'
'-9F7721867D92B^0'
'0^0'
'0^0'
'0^0... | XC | 3 | ladoramkershner/ale | tests/pytests/data/c2065022/vg2_jup_qmw_na_fc-32100_t2_1_sliced_-32100.xc | [
"Unlicense"
] |
import { render, screen } from '@testing-library/react';
import React from 'react';
import { Themes } from '../settings/theme';
import Profile from './profile';
jest.mock('../../analytics');
const userProps = {
user: {
acceptedPrivacyTerms: true,
currentChallengeId: 'string',
email: 'string',
email... | TypeScript | 4 | tikenov/freeCodeCamp | client/src/components/profile/profile.test.tsx | [
"BSD-3-Clause"
] |
package com.baeldung.mongodb.file.services;
import java.io.IOException;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.... | Java | 4 | DBatOWL/tutorials | persistence-modules/spring-boot-persistence-mongodb/src/main/java/com/baeldung/mongodb/file/services/VideoService.java | [
"MIT"
] |
//The index into the positions array of the position
// that we are currently at
integer position = 0;
//The ID of the bot we created
key botID;
//The list of positions that we will be teleporting to
list positions = [
llGetPos() + <5,0,0>,
llGetPos() + <0,5,0>,
llGetPos() + <-5,0,0>,
llGetPos() + <0,-... | LSL | 5 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Teleport To.lsl | [
"BSD-3-Clause"
] |
export { default } from './offline-warning';
| TypeScript | 0 | fcastillo-serempre/freeCodeCamp | client/src/components/OfflineWarning/index.tsx | [
"BSD-3-Clause"
] |
## @package split
# Module caffe2.python.layers.split
from caffe2.python import schema
from caffe2.python.layers.layers import (
ModelLayer,
)
class Split(ModelLayer):
def __init__(self, model, input_record, num_splits=1, axis=1,
name='split', split=None, **kwargs):
super(Split,... | Python | 4 | Hacky-DH/pytorch | caffe2/python/layers/split.py | [
"Intel"
] |
/turf
var/dynamic_lighting = TRUE
luminosity = 1
var/tmp/lighting_corners_initialised = FALSE
var/tmp/list/datum/light_source/affecting_lights // List of light sources affecting this turf.
var/tmp/atom/movable/lighting_overlay/lighting_overlay // Our lighting overlay.
var/tmp/list/datum/lighting... | DM | 4 | PJB3005/GoonLight-Heist | Lighting/lighting_turf.dm | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.