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 |
|---|---|---|---|---|---|
package com.alibaba.json.bvt.date;
import java.util.Calendar;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
public class CalendarTest extends TestCase {
public void test_null() throws Exception {
St... | Java | 3 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/date/CalendarTest.java | [
"Apache-2.0"
] |
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}{{ 'site_credential.page_title'|trans }}{% endblock %}
{% block content %}
<div class="row">
<div class="col s12">
<div class="card-panel">
<div class="row">
<div class="input-field col s... | Twig | 4 | blessleroy/wallabag | src/Wallabag/CoreBundle/Resources/views/themes/material/SiteCredential/new.html.twig | [
"MIT"
] |
\data\
ngram 1= 14
ngram 2= 33
ngram 3= 44
\1-grams:
-0.7383 </s> 0.0000
-1.7160 <s> -0.5763
-0.8709 <unk> 0.0000
-1.0628 Ahmet -0.3168
-1.2389 Hamza -0.2888
-1.3181 armut -0.4929
-1.2389 dondurma -0.5898
-1.0628 elma -0.6179
-1.2389 kedi -0.2888
-1.5399 kırmızı -0.1919
-1.4150 sarı -0.1919
-0.9756 yedi -1.1919
-1.2... | DNS Zone | 2 | flower-gardener/zemberek-nlp | lm/src/test/resources/tiny-converted.arpa | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] |
--TEST--
Array type declaration
--FILE--
<?php
function foo(array $a) {
echo count($a)."\n";
}
foo(array(1,2,3));
foo(123);
?>
--EXPECTF--
3
Fatal error: Uncaught TypeError: foo(): Argument #1 ($a) must be of type array, int given, called in %s:%d
Stack trace:
#0 %s(%d): foo(123)
#1 {main}
thrown in %s on line ... | PHP | 4 | thiagooak/php-src | Zend/tests/type_declarations/array_001.phpt | [
"PHP-3.01"
] |
staload "libats/ML/SATS/string.sats"
staload _ = "libats/ML/DATS/string.dats"
staload UN = "prelude/SATS/unsafe.sats"
staload "SATS/error.sats"
staload "$PATSHOMELOCS/edit-distance-0.5.0/SATS/edit-distance.sats"
#include "DATS/version.dats"
// Type for the parsed command-line arguments.
vtypedef command_line = @{ ver... | ATS | 5 | lambdaxymox/polyglot | DATS/cli.dats | [
"BSD-3-Clause"
] |
[Desktop Entry]
Name=DevilutionX Hellfire
Comment=Diablo 1: Hellfire for RetroFW
Exec=devilutionx
Terminal=false
Type=Application
StartupNotify=true
Icon=hellfire_32
Categories=games;
X-OD-Manual=readme.retrofw.txt
X-OD-NeedsDownscaling=true
X-OD-NeedsJoystick=true
| desktop | 1 | mewpull/devilutionX | Packaging/OpenDingux/retrofw-hellfire.desktop | [
"Unlicense"
] |
/datum/daemon/game
name = "game"
delay = 5
/datum/daemon/game/DoWork()
if(_glob.game_state) _glob.game_state.Tick()
CHECK_SUSPEND
/datum/daemon/game/Status()
return "[_glob.game_state.ident] started [_glob.game_state.time_initialized]" | DM | 3 | BloodyMan/Antimonium | code/master_controller/daemons/game.dm | [
"CC-BY-4.0"
] |
NB. Exercise 1.29, p.60
NB. http://www.jsoftware.com/svn/addons/trunk/math/misc/integrat.ijs
simpson =: 2 : 0
'a b n' =. 3{. y,128
h =. (b-a) % n
val =. x a + h * i. >: n
h * +/ val * 3%~ 1,((n-1)$4 2),1
)
NB. Exercise 1.33, p.61
NB. http://www.rogerstokes.free-online.co.uk/14.htm
ACC =: 1 : 0
com =: u @. 0
map =: u... | J | 4 | CompSciCabal/SMRTYPRTY | sicp/v1/chapter-1.3/ndpar-1.3.ijs | [
"Unlicense"
] |
= Form support
Showoff extends Markdown to render a limited subset of form elements. This is
mostly useful for polls, quizzes, surveys, etc. These extensions are only
rendered on slide that have been marked as forms.
Form responses are saved to a JSON file on disk, <tt>stats/forms.json</tt>, and
cached in memory for ... | RDoc | 4 | mehrdad-shokri/showoff | documentation/FORMS.rdoc | [
"MIT"
] |
%h3 500 Internal Server Error
%hr
%p
Please try later.
| Scaml | 0 | mohno007/skinny-framework | example/src/main/webapp/WEB-INF/views/error/500.html.scaml | [
"MIT"
] |
<link rel="stylesheet" href="stylesheet1.css">
<link rel="stylesheet" href="stylesheet2.css">
<script>
window.addEventListener('DOMContentLoaded', () => {
// Force stylesheets to load.
console.log(window.getComputedStyle(document.body).color);
}, false);
</script>
| HTML | 4 | NareshMurthy/playwright | test/assets/csscoverage/multiple.html | [
"Apache-2.0"
] |
// Copyright 2020 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.
#include "src/heap/cppgc/free-list.h"
#include <memory>
#include <numeric>
#include <vector>
#include "src/base/bits.h"
#include "src/heap/cppgc/globa... | C++ | 4 | LancerWang001/v8 | test/unittests/heap/cppgc/free-list-unittest.cc | [
"BSD-3-Clause"
] |
# encoding: UTF-8
# frozen_string_literal: true
module TZInfo
# Base class for rules definining the transition between standard and daylight
# savings time.
#
# @abstract
# @private
class TransitionRule #:nodoc:
# Returns the number of seconds after midnight local time on the day
# identified by th... | Ruby | 5 | puzzle/nochmal | spec/dummy/vendor/bundle/ruby/2.7.0/gems/tzinfo-2.0.4/lib/tzinfo/transition_rule.rb | [
"MIT"
] |
/* eslint-disable */
import React from "react"
import { navigate } from 'gatsby';
// Don't use navigate with an onClick btw :-)
// Generally just use the `<Link>` component.
export default props => (
<div onClick={() => navigate(`/`)}>Click to go to home</div >
) | JavaScript | 3 | cwlsn/gatsby | packages/gatsby-codemods/src/transforms/__testfixtures__/navigate-calls/basic-esm.output.js | [
"MIT"
] |
; AutoIt script template with Selenium
; https://www.autoitscript.com
;
Func Main()
; Launch the browser and open an URL
Dim $driver = ObjCreate("Selenium.FirefoxDriver")
$driver.Get("https://en.wikipedia.org/wiki/Main_Page")
$driver.Wait(2000)
$driver.Quit
EndFunc
Main() | AutoIt | 4 | igoreksiz/SeleniumBasic | Templates/Selenium.au3 | [
"BSD-3-Clause"
] |
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package b
import "./a"
var Here = a.New()
var Dir = Here.Dir
type T = struct {
a.Here
a.I
}
var X T
// Test exporting the type of method values for anony... | Go | 2 | SSSDNSY/go | test/fixedbugs/issue43479.dir/b.go | [
"BSD-3-Clause"
] |
## Zlib ##
ifneq ($(USE_BINARYBUILDER_ZLIB), 1)
ZLIB_GIT_URL := https://github.com/madler/zlib.git
ZLIB_TAR_URL = https://api.github.com/repos/madler/zlib/tarball/$1
$(eval $(call git-external,zlib,ZLIB,,,$(SRCCACHE)))
$(BUILDDIR)/$(ZLIB_SRC_DIR)/build-configured: $(SRCCACHE)/$(ZLIB_SRC_DIR)/source-extracted
mkdir -p... | Makefile | 3 | JuliaLabs/julia | deps/zlib.mk | [
"MIT"
] |
(define cartesian-product
[ ] _ -> [ ]
[X | Y] Z -> (append (all-pairs-using-X X Z) (cartesian-product Y Z)))
(define all-pairs-using-X
_ [ ] -> [ ]
X [Y | Z] -> [[X Y] | (all-pairs-using-X X Z)])
| Shen | 4 | WilliamStone/Shen.java | shen/test/cartprod.shen | [
"Unlicense"
] |
(import
[docutils.core [publish-parts]]
[json [loads]]
[logging [getLogger]]
[lxml.etree [Element tostring fromstring]]
[markdown [Markdown]]
[models [get-latest]]
[nbformat [reads]]
[nbconvert [HT... | Hy | 4 | CyberFlameGO/sushy | sushy/render.hy | [
"MIT"
] |
Add keepalive_timeout parameter to web.run_app.
| Cucumber | 3 | adamko147/aiohttp | CHANGES/5094.feature | [
"Apache-2.0"
] |
codegenUtils = require './codegenUtils'
_ = require 'underscore'
asyncControl = require '../asyncControl'
module.exports (terms) =
functionCallTerm = terms.term {
constructor (
fun
args
async: false
passThisToApply: false
options: false
) =
self.isFunctio... | PogoScript | 4 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/functionCall.pogo | [
"MIT"
] |
' This Source Code Form is subject to the terms of the Mozilla Public
' License, v. 2.0. If a copy of the MPL was not distributed with this file,
' You can obtain one at http://mozilla.org/MPL/2.0/.
'******************************************************
'Get our device version
'***************************************... | Brightscript | 3 | RAMilewski/airmozilla | roku/airmozilla/source/deviceInfo.brs | [
"BSD-3-Clause"
] |
it("should define global object with property", function() {
expect(process.env["assign_properties_env"]).toEqual("1");
expect(Object.keys(process.env).length).toBeGreaterThan(1);
});
module.exports = {
assign_properties_env: "1"
}
| JavaScript | 3 | fourstash/webpack | test/configCases/library/assign-properties/index.js | [
"MIT"
] |
@STATIC;1.0;p;10;Animator.jt;8378;@STATIC;1.0;I;15;AppKit/CPView.jt;8339;
objj_executeFile("AppKit/CPView.j",NO);
CPAnimationEase=4;
var _1=[];
_1[CPAnimationEaseInOut]=objj_msgSend(CAMediaTimingFunction,"functionWithName:",kCAMediaTimingFunctionEaseInEaseOut);
_1[CPAnimationEaseIn]=objj_msgSend(CAMediaTimingFunction,"... | Objective-J | 4 | Me1000/CappInventory | Build/Deployment/Iguana/CommonJS.environment/Inventory.sj | [
"MIT"
] |
try {
await import("./delayed_error.ts");
} catch (error) {
console.log(`Caught: ${error.stack}`);
}
| TypeScript | 4 | avante-garde/deno | cli/tests/085_dynamic_import_async_error.ts | [
"MIT"
] |
(* ****** ****** *)
//
// CATS-parsemit
//
(* ****** ****** *)
//
// HX-2015-05-20
//
(* ****** ****** *)
//
#define
ATS_MAINATSFLAG 1
//
#define
ATS_DYNLOADNAME
"catsparse_mylib_dynload"
//
(* ****** ****** *)
//
#include "./DATS/catsparse_mylib.dats"
//
(* ****** ****** *)
(* end of [catsparse_mylib.dats] *)
| ATS | 2 | bbarker/ATS-Postiats-contrib | projects/MEDIUM/CATS-parsemit/catsparse_mylib.dats | [
"MIT"
] |
BEGIN {
OFMT = "%.8g"
x = 1
x += .1
x = (x "a")
print x
}
| Awk | 2 | Crestwave/goawk | testdata/gawk/concat5.awk | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {concatStringsWithSpace} from '@angular/core/src/util/stringify';
describe('stringify', () => {
describe('co... | TypeScript | 3 | raghavendramohan/angular | packages/core/test/util/stringify_spec.ts | [
"MIT"
] |
#
# Copyright 2020 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | CMake | 4 | EricRemmerswaal/tensorflow | tensorflow/lite/tools/cmake/modules/farmhash.cmake | [
"Apache-2.0"
] |
-- automatically generated by the FlatBuffers compiler, do not modify
-- namespace: Example
local flatbuffers = require('flatbuffers')
local StructOfStructs = {} -- the module
local StructOfStructs_mt = {} -- the class metatable
function StructOfStructs.New()
local o = {}
setmetatable(o, {__index = StructOf... | Lua | 3 | chi-w-ng/flatbuffers | tests/MyGame/Example/StructOfStructs.lua | [
"Apache-2.0"
] |
package {
public class Test {}
}
if(2 !== "2")
{
trace("2 !== \"2\"");
}
if(2 !== 2)
{
trace("ERROR: 2 !== 2");
}
if(2 !== 5)
{
trace("2 !== 5");
}
if(true !== true)
{
trace("ERROR: true !== true");
}
if(false !== false)
{
trace("ERROR: false !== false");
}
if(true !== false)
{
trace("true !== fals... | ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/if_strictne/Test.as | [
"Apache-2.0",
"Unlicense"
] |
;;; term/eshell/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil)
;;;###autoload (autoload '+eshell:run "term/eshell/autoload/evil" nil t)
(evil-define-command +eshell:run (command bang)
"TODO"
(interactive "<fsh><!>")
(let ((buffer (+eshell-last-buffer))
(command (+evil-repl... | Emacs Lisp | 4 | leezu/doom-emacs | modules/term/eshell/autoload/evil.el | [
"MIT"
] |
module Setoids where
open import Eq
open import Prelude
record Setoid : Set1 where
field
carrier : Set
_≈_ : carrier -> carrier -> Set
equiv : Equiv _≈_
record Datoid : Set1 where
field
setoid : Setoid
_≟_ : forall x y -> Dec (Setoid._≈_ setoid x y)
Setoid-≡ : Set -> Setoid
Setoid-≡... | Agda | 4 | cruhland/agda | examples/AIM6/RegExp/talk/Setoids.agda | [
"MIT"
] |
<%= render partial: 'partial' %> | HTML+ERB | 1 | swaathi/rails | actionpack/test/fixtures/functional_caching/html_fragment_cached_with_partial.html.erb | [
"MIT"
] |
#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
// create a JSON pointer
json::json_pointer ptr("/foo");
std::cout << ptr << '\n';
// append a JSON Pointer
ptr /= json::json_pointer("/bar/baz");
std::cout << ptr << '\n';
// append a string
p... | C++ | 5 | anirbas12/json | doc/examples/json_pointer__operator_add.cpp | [
"MIT"
] |
# A trivial sequencer
# Create a table of values,
# These do not get pushed to the stack
"seq" "60 62 64 67" gen_vals
# create a metronome at 3Hz, and
# duplicate its signal
3 metro
# stack: metro
# duplicate the last (only) item on stack
dup
# stack: metro metro
# A simple trigger based envelope generator
# This pops ... | SourcePawn | 4 | brandenbyers/Sporth | examples/seq.sp | [
"MIT"
] |
create table a (a int, b varchar(16), KEY key_b (`b`)) partition by hash(a) partitions 5;
| SQL | 3 | suryatmodulus/tidb | br/tests/lightning_partitioned-table/data/partitioned.a-schema.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
var results = number[]; | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/compiler/badArrayIndex.ts | [
"Apache-2.0"
] |
apiVersion: v1
kind: Namespace
metadata:
name: lens-metrics
annotations:
extensionVersion: "{{ version }}"
| Harbour | 3 | pjsoni/lens | extensions/metrics-cluster-feature/resources/01-namespace.yml.hb | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R05d02*/
/*Part A*/
ods trace on;
proc univariate data=sp4r.ameshousing;
var saleprice;
... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R05d02.sas | [
"CC-BY-4.0"
] |
type User @key(fields: "id") {
id: ID!
name: String!
}
extend type Query {
getUser(id: ID!): User
}
| GraphQL | 4 | diesal11/nest | sample/32-graphql-federation-schema-first/users-application/src/users/users.graphql | [
"MIT"
] |
#Baseline Logger/Alert script for Bro.
#Requires baseline.data file to exist in same directory as the script.This is the file you need to update in order to make the script work.
#You need the notice module loaded in order to actually get the logs.
#Running from cli using bro baseline.bro -r <pcap file> will test your... | Bro | 4 | hashtagcyber/bropy | etc/baselinereport.bro | [
"MIT"
] |
<!-- Static Modal "Processing request", prevent user input while busy -->
<div class="modal modal-static fade" id="processing-dialog" role="dialog" aria-hidden="true">
<div class="modal-backdrop fade in"></div>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
... | Volt | 3 | Kipjr/core | src/opnsense/mvc/app/views/layout_partials/base_dialog_processing.volt | [
"BSD-2-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.
//
USING System
USING System.Collections.Generic
USING System.Linq
USING System.Text
USING XUnit
#pragma warnings (219, disable) // unused variable... | xBase | 4 | orangesocks/XSharpPublic | Runtime/XSharp.VFP.Tests/StringTests.prg | [
"Apache-2.0"
] |
(*
Test for haproxy lens
Author: Bryon Roche <bryon@gogrid.com>
About: License
This file is licensed under the LGPL
We test a config parse, then a section removal, then a section add.
*)
module Test_haproxy =
let conf = "# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
#log 1... | Augeas | 4 | ajnavarro/language-dataset | data/github.com/camptocamp/puppet-haproxy_c2c/588a386c69a74b634e1fb42b7df26224c91bd16b/files/test_haproxy.aug | [
"MIT"
] |
# renpy tutorial
python early:
# This maps from example name to the text of a fragment.
examples = { }
# The size of the example - large or small.
example_size = "large"
# The location of the example - top or bottom.
example_location = "bottom"
# The screen in the last example.
exam... | Ren'Py | 5 | SentinelWarren/LearnToCodeRPG | game/scripts/code_snippet_example_screen.rpy | [
"BSD-3-Clause"
] |
1 /dev/rrp3:
0
2 17379 mel
3 16693 bwk me
5 16116 ken him someone else
2 15713 srb
2 11895 lem
2 10409 scj
2 10252 rhm
2 9853 shen
2 9748 a68
2 9492 sif
2 9190 pjw
2 8912 nls
2 8895 dmr
2 8491 cda
2 8372 bs
2 8252 llc
2 7450 mb
2 7360 ava
2 7273 jrv
2 7080 bin
2 7063 greg
2 6567 dict
2 6462 lck
2 6291... | Logos | 1 | Crestwave/goawk | testdata/output/t.6.x | [
"MIT"
] |
//===--- Bincompat.cpp - Binary compatibility checks. -----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 5 | hooman/swift | stdlib/public/runtime/Bincompat.cpp | [
"Apache-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.1.10-88a1d61d58~90~ubuntu20.04.1)
(general
(thickness 1.6)
(drawings 29)
(tracks 84)
(zones 0)
(modules 3)
(nets 29)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste use... | KiCad | 4 | ccwanggl/smartknob | electronics/BM28B0.6-24DSBreakout/BM28B0.6-24DSBreakout.kicad_pcb | [
"Apache-2.0"
] |
/*
* 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 ... | Java | 5 | OlegPt/spark | examples/src/main/java/org/apache/spark/examples/ml/JavaBucketedRandomProjectionLSHExample.java | [
"Apache-2.0"
] |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js - Test Plugins</title>
<link rel="stylesheet" href="../dist/reveal.css">
<link rel="stylesheet" href="../node_modules/qunit/qunit/qunit.css">
<script src="../node_modules/qunit/qunit/qunit.js"></script>
</head>
<body style=... | HTML | 5 | arthurw1/reveal.js | test/test-plugins.html | [
"MIT"
] |
{% assign nextprev__item = site.data.sitenav_index[include.path] %}
{% if include.top %}
{% assign nextprev__top = include.top %}
{% else %}
{% assign nextprev__top = "/" %}
{% endif %}
{% capture nextprev__top_length %}{{ nextprev__top | size }}{% endcapture %}
{% assign nextprev__prev = nextprev__item.prev %}
{% ... | Liquid | 3 | enterstudio/spfjs | web/includes/nextprev.liquid | [
"MIT"
] |
#!/usr/bin/perl
# Simple script to generate a 302 HTTP redirect to a page that triggers a
# navigation back (only if POST is used).
use CGI;
$query = new CGI;
$method = $query->request_method();
if ($method eq "POST") {
print "Status: 302 Moved Temporarily\r\n";
print "Location: top-go-back.html\r\n";
pr... | Perl | 4 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/navigation/resources/redirect-to-go-back.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
class(x : 0) { this }
a : empty'i32
b : a?? as string
c : empty'class
d : c??.x as string
console.writeLine(b)
console.writeLine(d) | Objective-J | 3 | justinmann/sj | tests/option7.sj | [
"Apache-2.0"
] |
Copyright (C) 2013-2014, by Bill Burdick, Roy Riggs, Tiny Concepts, TEAM CTHULHU: http://www.teamcthulhu.com/
[Licensed with ZLIB License](../LICENSE)
Leisure integration for environment
root = require '15-base'
{
lazy,
resolve,
} = root
{
define,
} = require '16-ast'
{
... | Literate CoffeeScript | 3 | zot/Leisure | METEOR-OLD/client/31-leisure-support.litcoffee | [
"Zlib"
] |
"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 | 4 | dany-freeman/material-ui | packages/mui-icons-material/lib/TempleHinduTwoTone.js | [
"MIT"
] |
#ifndef JEMALLOC_INTERNAL_ARENA_INLINES_A_H
#define JEMALLOC_INTERNAL_ARENA_INLINES_A_H
static inline unsigned
arena_ind_get(const arena_t *arena) {
return base_ind_get(arena->base);
}
static inline void
arena_internal_add(arena_t *arena, size_t size) {
atomic_fetch_add_zu(&arena->stats.internal, size, ATOMIC_RELAX... | C | 4 | zh1029/redis | deps/jemalloc/include/jemalloc/internal/arena_inlines_a.h | [
"BSD-3-Clause"
] |
#tag Class
Protected Class AVCaptureDeviceInput
Inherits AVFoundation.AVCaptureInput
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("AVCaptureDeviceInput")
return ref
End Function
#tag EndMethod
#tag Method, Flags = &h0
Sub Constructor(device ... | Xojo | 3 | kingj5/iOSKit | Modules/AVFoundation/AVCaptureDeviceInput.xojo_code | [
"MIT"
] |
CREATE TABLE `q_alarm_message_log` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`host_id` int(11) unsigned DEFAULT NULL,
`phone` char(11) NOT NULL,
`email` varchar(256) DEFAULT NULL,
`title` varchar(180) DEFAULT NULL,
`content` varchar(2000) NOT NULL,
`content_md5` char(32) DEFAULT NULL,
`type` tinyint(1) unsigned ... | SQL | 3 | WizardXiao/tidb | br/tests/lightning_tool_241/data/qyjc.q_alarm_message_log-schema.sql | [
"Apache-2.0"
] |
=head1 NAME
SDL::Color - Parrot class representing colors in Parrot SDL
=head1 SYNOPSIS
load_bytecode 'SDL/Color.pir'
# create a new SDL::Color object
.local pmc color
color = new ['SDL'; 'Color']
# set the color values; this one's blue
color.'init'( 'r' => 0, 'g' => 0, 'b' => 255 )
... | Parrot Internal Representation | 5 | winnit-myself/Wifie | runtime/parrot/library/SDL/Color.pir | [
"Artistic-2.0"
] |
var x;
(1, x)=0; | TypeScript | 0 | nilamjadhav/TypeScript | tests/cases/compiler/assignmentToParenthesizedExpression1.ts | [
"Apache-2.0"
] |
---
layout: post
title: Basics
next: basics2.textile
---
This lesson covers:
* "About this class":#overview
* "expressions":#expressions
* "values":#val
* "functions":#functions
* "classes":#class
* "basic inheritance":#extends
* "traits":#trait
* "types":#types
h2(#overview). About this class
The first few weeks wi... | Textile | 5 | AstronomiaDev/scala_school | web/basics.textile | [
"Apache-2.0"
] |
<?php
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
// Copyright 2015 gRPC 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/license... | PHP | 4 | arghyadip01/grpc | src/php/tests/generated_code/Math/MathClient.php | [
"Apache-2.0"
] |
<cfsetting enablecfoutputonly=true>
<cfheader name="Server" value="cfml-lucee">
<cfheader name="Content-Type" value="application/json">
<cfoutput>#serializeJSON( { 'message' : 'Hello, World!' } )#</cfoutput> | ColdFusion | 4 | tommilligan/FrameworkBenchmarks | frameworks/CFML/CFML/src/json.cfm | [
"BSD-3-Clause"
] |
.@{layout-prefix-cls}-sider-light {
background: @layout-sider-background-light;
.@{layout-prefix-cls}-sider-trigger {
color: @layout-trigger-color-light;
background: @layout-trigger-background-light;
}
.@{layout-prefix-cls}-sider-zero-width-trigger {
color: @layout-trigger-color-light;
backgroun... | Less | 2 | noctis0430-open-source/ant-design-blazor | components/layout/style/light.less | [
"MIT"
] |
/*
* 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.
*/
#import "ABI42_0_0RCTSurface.h"
#import "ABI42_0_0RCTSurfaceView+Internal.h"
#import <mutex>
#import <stdatomic.h>
#import "ABI4... | Objective-C++ | 4 | zakharchenkoAndrii/expo | ios/versioned-react-native/ABI42_0_0/ReactNative/React/Base/Surface/ABI42_0_0RCTSurface.mm | [
"Apache-2.0",
"MIT"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Compute some useful statistics
**
** Date:
** 12/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.N. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <oxfloat.h>
/*
** Function: Print first... | Ox | 5 | tamerdilaver/Group4_Code_Data | 4DescriptiveStatistics.ox | [
"MIT"
] |
/*
* Copyright (C) 2013 Steve Rowe <sarowe@gmail.com>
* Copyright (C) 2021 Google, LLC.
*
* License: https://opensource.org/licenses/BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* 1. Redistrib... | JFlex | 4 | WeDoSoftware/jflex | testsuite/testcases/src/test/cases/unicode-age/UnicodeAge_2_0_age_2_0.flex | [
"BSD-3-Clause"
] |
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: Tk Canvas Widget
%%For: msp
%%Title: Window .x1552780.c
%%CreationDate: Tue Jul 16 19:58:23 2019
%%BoundingBox: 103 271 509 522
%%Pages: 1
%%DocumentData: Clean7Bit
%%Orientation: Portrait
%%DocumentNeededResources: font DejaVuSansMono-Bold
%%EndComments
%%BeginProlog
% This is a sta... | PostScript | 2 | mxa/pure-data | md/slop-compander-patch.ps | [
"TCL"
] |
hello
: dialog
{
label = "Test Dialog No 1";
: text
{
label = "This is a Test Message";
alignment = centered;
}
: button
{
key = "accept";
label = "Close";
is_default = true;
fixed_width = true;
alignment = centered;
}
}
| Clean | 3 | caadxyz/ikuku.lsp | src/dcl/hello.dcl | [
"MIT"
] |
# Input file is the role binding we're creating multiple copies of.
. as $rolebinding
# $METERING_OPERATOR_TARGET_NAMESPACES is a comma separated list of namespaces
# to create this rolebinding in. Falls back to $METERING_NAMESPACE.
| $ENV.METERING_OPERATOR_TARGET_NAMESPACES // $ENV.METERING_NAMESPACE
# Turn the env va... | JSONiq | 4 | petr-muller/metering-operator | hack/jq/custom-metering-rolebinding.jq | [
"Apache-2.0"
] |
*** Settings ***
Library Remote 127.0.0.1:${PORT}
*** Variables ***
${PORT} 8270
*** Test Cases ***
Empty
Empty
Single
Single 1
Multi
Multi 1
Multi 1 2
Multi 1 2 3 4
Nön-ÄSCII
Nön-ÄSCII
| RobotFramework | 3 | phil-davis/robotframework | atest/testdata/standard_libraries/remote/documentation.robot | [
"ECL-2.0",
"Apache-2.0"
] |
#!/bin/bash
echo "RUNNING ON $(uname -a) WITH $(nproc) CPUS AND $(free -m)"
set -eux -o pipefail
source /env
# Because most Circle executors only have 20 CPUs, using more causes OOMs w/ Ninja and nvcc parallelization
MEMORY_LIMIT_MAX_JOBS=18
NUM_CPUS=$(( $(nproc) - 2 ))
# Defaults here for **binary** linux builds so... | Shell | 4 | Hacky-DH/pytorch | .circleci/scripts/binary_linux_build.sh | [
"Intel"
] |
=============
NumPy Roadmap
=============
This is a live snapshot of tasks and features we will be investing resources
in. It may be used to encourage and inspire developers and to search for
funding.
Interoperability
----------------
We aim to make it easier to interoperate with NumPy. There are many NumPy-like
pa... | reStructuredText | 3 | iam-abbas/numpy | doc/neps/roadmap.rst | [
"BSD-3-Clause"
] |
.pullup
height: 100%
.pullup-wrapper
height: 100%
padding: 0 10px
border: 1px solid #ccc
overflow: hidden
.pullup-list
padding: 0
.pullup-list-item
padding: 10px 0
list-style: none
border-bottom: 1px solid #ccc
.pullup-tips
padding: 20px
text-align: center
color: #9... | Stylus | 2 | cym2050/better-scroll | packages/react-examples/src/pages/pullup/index.styl | [
"MIT"
] |
TUT=..
!include ../Makefile.icl
!include Makefile.common
| Clean | 0 | wohaaitinciu/zpublic | 3rdparty/tut/selftest/Makefile.icl | [
"Unlicense"
] |
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Thymeleaf Fragments: markup</title>
</head>
<body>
<header th:insert="fragments/general.html :: header"> </header>
<div th:replace="fragments/general.html :: aside"></div>
<div th:replace="fragments/general.htm... | HTML | 4 | zeesh49/tutorials | spring-thymeleaf/src/main/webapp/WEB-INF/views/markup.html | [
"MIT"
] |
module openconfig-platform {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/platform";
prefix "oc-platform";
import openconfig-platform-types { prefix oc-platform-types; }
import openconfig-interfaces { prefix oc-if; }
import openconfig-extensions { prefix oc-ext; }
// meta
... | YANG | 5 | meodaiduoi/onos | models/openconfig/src/main/yang/platform/openconfig-platform@2016-12-22.yang | [
"Apache-2.0"
] |
[Exposed=Window]
interface Screen {
readonly attribute long availWidth;
readonly attribute long availHeight;
readonly attribute long width;
readonly attribute long height;
readonly attribute unsigned long colorDepth;
readonly attribute unsigned long pixelDepth;
};
| WebIDL | 4 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/window/Screen.webidl | [
"MIT"
] |
''Robotics with the Boe-Bot - HelloOnceEverySecond.spin
''Display a message once every second.
CON
_clkmode = xtal1 + pll8x
_xinfreq = 10_000_000
CR = 13
VAR
long Pause
OBJ
Debug: "FullDuplexSerialPlus"
PUB HelloOnceEverySecond
Debug.start(31, 30, 0, 9600)
Pa... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/Spin Stamp Code for the Boe-Bot/HelloOnceEverySecond.spin | [
"MIT"
] |
// @@ANTLR Tool Options@@: -trace
tree grammar t051treeRewriteASTjWalker;
options {
language=JavaScript;
output=AST;
ASTLabelType=CommonTree;
tokenVocab=t051treeRewriteASTj;
}
a : ^(x=ID y=INT)
;
| G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t051treeRewriteASTjWalker.g | [
"Apache-2.0"
] |
{} (:package |test-cond)
:configs $ {} (:init-fn |test-cond.main/main!) (:reload-fn |test-cond.main/reload!)
:modules $ [] |./util.cirru
:files $ {}
|test-cond.main $ {}
:ns $ quote
ns test-cond.main $ :require
[] util.core :refer $ [] inside-eval:
:defs $ {}
|test-co... | Cirru | 5 | calcit-lang/calcit.rs | calcit/test-cond.cirru | [
"MIT"
] |
"""
0.75
STRING
"""
x as object
x = 3
value as double = x / 4.0
print value.ToString(System.Globalization.CultureInfo.InvariantCulture)
x = "string"
print x.ToUpper()
| Boo | 3 | popcatalin81/boo | tests/testcases/ducky/ducky-4.boo | [
"BSD-3-Clause"
] |
Rot13(in) New low,rot,up
Set up="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Set low="abcdefghijklmnopqrstuvwxyz"
Set rot=$Extract(up,14,26)_$Extract(up,1,13)
Set rot=rot_$Extract(low,14,26)_$Extract(low,1,13)
Quit $Translate(in,up_low,rot)
Write $$Rot13("Hello World!") ; Uryyb Jbeyq!
Write $$Rot13("ABCDEFGHIJKLMNOPQRSTUVWXYZ") ... | M | 4 | LaudateCorpus1/RosettaCodeData | Task/Rot-13/MUMPS/rot-13.mumps | [
"Info-ZIP"
] |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: compiler/ir/serialization.common/src/KotlinIr.proto
package org.jetbrains.kotlin.backend.common.serialization.proto;
/**
* Protobuf type {@code org.jetbrains.kotlin.backend.common.serialization.proto.IrClass}
*/
public final class IrClass extend... | Java | 4 | margarita-nedzelska-sonarsource/kotlin | compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/IrClass.java | [
"ECL-2.0",
"Apache-2.0"
] |
BcountsJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_unique_sorted_with_axis_3d/test_data_set_0/output_3.pb | [
"Apache-2.0"
] |
+>>>>>>>++[+<[>]>[<++>-]<]<[[>+>+<<-]>>-]>+++++[>+++++++<-]>[[<<+>>-]<<-]
++++++[>++++++++++<-]>+<<<<<<<<<<++++++<<<<<<<+++++[<<+++>+>-]<++
<[<<<<<<<+++++>>+++++>+>+++>>+++++>>+++++<-]<<<+<<--->--[[<<+>>-]<<-]>---<<<<-
<++++[<<<<++>->+++++++>+>-]<<[<<+>+>>+>>+>>++>>+<<<<<<<-]<[>+<-]<<-
>[[<<+>>-]<<-]<<<<++++++++++++[<<... | Brainfuck | 2 | RubenNL/brainheck | examples/dvorak.bf | [
"Apache-2.0"
] |
// Persistence of Vision Ray Tracer Scene Description File
// for FreeCAD (http://www.freecadweb.org)
#version 3.6;
#include "colors.inc"
#include "metals.inc"
#include "rad_def.inc"
global_settings {
radiosity {
Rad_Settings(Radiosity_Normal,off,off)
}
}
... | POV-Ray SDL | 4 | edwardvmills/NURBSlib_EVM | development_FC_models/pre-parametric models/povray_test.pov | [
"CC-BY-2.0"
] |
#!/usr/bin/env bash
set -eou pipefail
echo "Holding runner for 2 hours until all ssh sessions have logged out"
for _ in $(seq 1440); do
# Break if no ssh session exists anymore
if [ "$(who)" = "" ]; then
break
fi
echo "."
sleep 5
done
| Shell | 4 | Hacky-DH/pytorch | .github/scripts/wait_for_ssh_to_drain.sh | [
"Intel"
] |
"""
01234
123
-10-9-8-7-6
13
54321
753
-2-4-6
"""
import System.Console
for i in range(5):
Write(i)
WriteLine()
for i in range(1, 4):
Write(i)
WriteLine()
for i in range(-10, -5):
Write(i)
WriteLine()
for i in range(1, 5, 2):
Write(i)
WriteLine()
for i in range(5, 0):
Write(i)
... | Boo | 2 | popcatalin81/boo | tests/testcases/compilation/range.boo | [
"BSD-3-Clause"
] |
// Taken from Jeremy "Spuzzum" Gibson's s_html library.
// http://www.byond.com/developer/Spuzzum/s_html
/proc/hex2num(hex)
//Converts a hexadecimal string (eg. "9F") into a numeral (eg. 159).
if(!istext(hex))
CRASH("hex2num not given a hexadecimal string argument (user error)")
return
var/num = 0
var/power =... | DM | 5 | PJB3005/GoonLight-Heist | helpers/type2type.dm | [
"MIT"
] |
@doc
#### Package `highlight.mmk`
[`highlight.js`] is a popular JavaScript library for syntax highlighting a large set of languages (179 at last count)
with a selection of styles (colour schemes). This package defines type `highlight` which can be used to define
notations for highlighting language content. `highl... | Module Management System | 4 | ridgeworks/GNU_CLP_BNR | docs/CLP_BNR_Guide/pkgs/highlight.mmk | [
"MIT"
] |
/*
============================================================================
Name : ayfly_s60.pan
Author : Andrew Deryabin
Copyright : Andrew Deryabin (c) 2008
Description : This file contains panic codes.
============================================================================
*/
#ifndef _... | Pan | 4 | Osmose/moseamp | musicplayer/plugins/ayflyplugin/ayfly/src/s60/inc/ayfly_s60.pan | [
"MIT"
] |
#pragma once
#include <memory>
#include "envoy/extensions/filters/network/wasm/v3/wasm.pb.validate.h"
#include "envoy/stats/sink.h"
#include "source/extensions/common/wasm/wasm.h"
namespace Envoy {
namespace Extensions {
namespace StatSinks {
namespace Wasm {
using Envoy::Extensions::Common::Wasm::PluginHandleShar... | C | 4 | dcillera/envoy | source/extensions/stat_sinks/wasm/wasm_stat_sink_impl.h | [
"Apache-2.0"
] |
<div class="panel white hidden" id="export-doc">
<button class="white" onclick="printDocument();">
<i class="ri-printer-fill"></i>
<span>print / pdf</span>
</button>
<button class="white" onclick="showModal('modal-export-ecd');">
<i class="ri-file-lock-fill"></i>
<s... | Kit | 3 | pws1453/web-client | source/imports/app/docs-panel-export.kit | [
"MIT"
] |
CREATE OR REPLACE VIEW hdb_catalog.hdb_column AS
WITH primary_key_references AS (
SELECT fkey.table_schema AS src_table_schema
, fkey.table_name AS src_table_name
, fkey.columns->>0 AS src_column_name
, json_agg(json_bu... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/25_to_24.sql | [
"Apache-2.0",
"MIT"
] |
"""Tests for the script component."""
| Python | 0 | domwillcode/home-assistant | tests/components/script/__init__.py | [
"Apache-2.0"
] |
extends /templates/core/modal-base
block modal-header-content
h4.modal-title Export #{view.thangType.get('name')} SpriteSheet
block modal-body-content
.form-horizontal
.form-group
label.col-sm-3.control-label Team Color
.col-sm-9
select#color-config-select.form-control
option(val... | Jade | 4 | cihatislamdede/codecombat | app/templates/editor/thang/export-thang-type-modal.jade | [
"CC-BY-4.0",
"MIT"
] |
{:games
[{:id "1234"
:name "Zertz"
:summary "Two player abstract with forced moves and shrinking board"
:min_players 2
:max_players 2
:designers #{"200"}}
{:id "1235"
:name "Dominion"
:summary "Created the deck-building genre; zillions of expansions"
:designers #{"204"}
:min_players 2}
{... | edn | 4 | hagenek/lacinia | docs/_examples/tutorial/cgg-data-2.edn | [
"Apache-2.0"
] |
{:queries
{:extension {:type String
:resolve :queries/extension}
:warning {:type String
:resolve :queries/warning}}}
| edn | 4 | hagenek/lacinia | dev-resources/extensions-schema.edn | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.