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 |
|---|---|---|---|---|---|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --><path d="M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 1... | SVG | 2 | ThiagoMendes92/ImersaoReact-Alura | aluracord/node_modules/@fortawesome/fontawesome-free/svgs/solid/hand-point-right.svg | [
"MIT"
] |
PREFIX : <http://people.example/>
SELECT ?y (MIN(?name) as ?minName)
WHERE {
:alice :knows ?y .
?y :name ?name .
} GROUP BY ?y
| SPARQL | 4 | gromgull/rdflib | test/DAWG/rdflib/subqueryagg1.rq | [
"BSD-3-Clause"
] |
REBOL [
title: "REBOL 3 codec for ICO files"
name: 'codec-ico
author: rights: "Oldes"
version: 0.0.1
history: [6-Mar-2021 "Oldes" {Initial version}]
]
system/options/log/ico: 2
register-codec [
name: 'ico
type: 'image
title: "Windows icon or cursor file"
suffixes: [%.ico %.cur]
decode: function [
{Extra... | Rebol | 5 | semarie/rebol3-oldes | src/mezz/codec-ico.reb | [
"Apache-2.0"
] |
<ng-form class="form-horizontal environment-variables-panel" name="$ctrl.envVarsForm">
<div class="form-group">
<div class="col-sm-12 form-section-title" style="margin-top: 10px; margin-left: 15px; width: 98%;">
Environment variables
</div>
<div class="col-sm-12 environment-variables-panel--explanat... | HTML | 3 | GizMan/portainer | app/portainer/components/environment-variables-panel/environment-variables-panel.html | [
"Zlib"
] |
option parser = require '../../lib/optionParser'
should = require 'chai'.should()
describe 'option parser'
describe 'long options'
it 'parses a boolean option written fully, like --option'
args = ['--option']
cli = option parser.create parser ()
cli.option '--option thi... | PogoScript | 4 | featurist/pogoscript | test/shell/optionParserSpec.pogo | [
"BSD-2-Clause"
] |
# @base without URI.
@base .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-base-01.ttl | [
"CC-BY-3.0"
] |
#error This is used exclusively for generating the documentation (not a real header)
//! \namespace torch::jit::fuser
//! \brief Main PyTorch JIT Fuser namespace
//! \namespace torch::jit::fuser::cuda
//! \brief CUDA specific components
//! \namespace torch::jit::fuser::cuda::executor_utils
//! \brief Fuser executo... | C | 4 | Hacky-DH/pytorch | torch/csrc/jit/codegen/cuda/docs/documentation.h | [
"Intel"
] |
#!/usr/bin/env bats
SCRIPT_NAME="build-lib.sh"
SCRIPT="$BATS_TEST_DIRNAME/../../ci/build/$SCRIPT_NAME"
source "$SCRIPT"
@test "get_nfpm_arch should return armhfp for rpm on armv7l" {
run get_nfpm_arch rpm armv7l
[ "$output" = "armhfp" ]
}
@test "get_nfpm_arch should return armhf for deb on armv7l" {
run get_n... | Shell | 4 | mia-cx/code-server-npm | test/scripts/build-lib.bats | [
"MIT"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLBaseElement : HTMLElement {
[CEReactions] attribute USVString href;
[CEReactions, Reflect] attribute DOMString target;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLBaseElement.webidl | [
"MIT"
] |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'enum_converters.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_SerializedEnums _$SerializedEnumsFromJson(Map json) => _S... | Dart | 2 | coral-labs/plugins | packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_wrappers/enum_converters.g.dart | [
"BSD-3-Clause"
] |
#!/bin/bash
set -e
yarn run build && NODE_PATH="build/" node build/cli-integration-tests.js | Shell | 2 | asahiocean/joplin | packages/app-cli/cli-integration.sh | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8"?>
<!-- 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. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Platform Condition="... | XML | 3 | frandesc/roslyn | src/Tools/Source/CompilerGeneratorTools/Source/VisualBasicSyntaxGenerator/VisualBasicSyntaxGenerator.vbproj | [
"MIT"
] |
CREATE TABLE `Cart` (
`cart_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`cart_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
CREATE TABLE `Items` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cart_id` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `cart_id` (`cart_id`),
... | SQL | 4 | zeesh49/tutorials | spring-hibernate4/src/main/resources/one_to_many.sql | [
"MIT"
] |
<%= "☒" -%>
| HTML+ERB | 0 | mdesantis/rails | actiontext/app/views/action_text/attachables/_missing_attachable.html.erb | [
"MIT"
] |
/*
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 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.openssl.org/source/license.html
* or in the file LICENSE... | C | 3 | pmesnier/openssl | fuzz/fuzz_rand.c | [
"Apache-2.0"
] |
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share/atspre_staload_libats_ML.hats"
(* ****** ****** *)
#include
"$PATSHOMELOCS\
/atscntrb-hx-libjson-c/mylibies.hats"
#include
"$PATSHOMELOCS\
/atscntrb-hx-libjson-c/mylibies_link.hats"
#staload $JSON_ML
(* ****** ****** *)
#staload
UN = "prelud... | ATS | 4 | ats-lang/ATS-CodeBook | RECIPE/Hangman3/Hangman3_channel.dats | [
"MIT"
] |
exports.wrapRootElement = require(`./inject-provider`)
| JavaScript | 1 | cwlsn/gatsby | examples/using-multiple-providers/plugins/gatsby-plugin-redux/gatsby-ssr.js | [
"MIT"
] |
// Copyright 2020, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:cloud_firestore/cloud_firestore.dart';
import 'api.dart';
class FirebaseDashboardApi im... | Dart | 5 | 10088/samples | experimental/web_dashboard/lib/src/api/firebase.dart | [
"Apache-2.0"
] |
@retrofit2.internal.EverythingIsNonNull
package retrofit2.converter.protobuf;
| Java | 0 | ergent/retrofit-master | retrofit-converters/protobuf/src/main/java/retrofit2/converter/protobuf/package-info.java | [
"Apache-2.0"
] |
(ns fw.test.series
(:require
[chai :refer [expect]]
[fw.lib.series :refer [series each-series]]))
(defn ^:private delay
[lambda]
(set-timeout lambda (* (.random Math) 100)))
(suite :series
(fn []
(test :basic
(fn [done]
(series
[ (fn [next] (delay (fn [] (next))))
... | wisp | 5 | h2non/fw | test/series.wisp | [
"MIT"
] |
// run-pass
// pretty-expanded FIXME #23616
trait MyTrait {
fn foo(&self);
}
impl<A, B, C> MyTrait for fn(A, B) -> C {
fn foo(&self) {}
}
fn bar<T: MyTrait>(t: &T) {
t.foo()
}
fn thing(a: isize, b: isize) -> isize {
a + b
}
fn main() {
let thing: fn(isize, isize) -> isize = thing; // coerce to ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-15444.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import { e, f, fNamed, fStar, fStarPartial, fStarPartial2 } from "./reexport";
it("should be possible to reexport json data", function() {
expect(e.aa).toBe(1);
expect(e.bb).toBe(2);
expect(f).toEqual({
named: "named",
default: "default",
__esModule: true
});
expect(fNamed).toBe("named");
const _fStar = fS... | JavaScript | 3 | 1shenxi/webpack | test/cases/json/reexport/index.js | [
"MIT"
] |
/* These are the locale-related newlib functions present in ESP32 ROM.
ESP32 ROM contains newlib version 2.2.0, and these functions should not be
used when compiling with newlib version 3, since locale implementation is
different there.
Unlike other ROM functions which are exported using PROVIDE, which dec... | Linker Script | 3 | DCNick3/esp-idf | components/esp_rom/esp32/ld/esp32.rom.newlib-locale.ld | [
"Apache-2.0"
] |
(define test-equal
[X | Xs] [Y | Ys] -> (test-equal Xs Ys) where (or (test-equal X Y) (mk-= X Y))
[] [] -> true
X Y -> (mk-= X Y)
_ _ -> false)
(test-check "1.10"
(run* Q
mk-fail)
[])
(test-check "1.11"
(run* Q
(=== true Q))
[true])
(test-check "1.12"
(run* Q
mk-fail
(=== true Q))
... | Shen | 5 | mthom/shen-minikanren | tests.shen | [
"BSD-3-Clause"
] |
import * as Header from 'foo-module' is mask;
define Foo {
Header;
} | Mask | 0 | atmajs/MaskJS | test/tmpl/npm/foo.mask | [
"MIT"
] |
#! /bin/sh -e
# DP: - Set the libjava sublibdir to /usr/lib/gcj-4.3
# DP: - Set the default libgcj database dir to /var/lib/gcj-4.3
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
ca... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/libjava-subdir.dpatch | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M17 20H4V7c0-.55-.45-1-1-1s-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1zm3-18H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/SwitchAccountRounded.js | [
"MIT"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
local json = require("json")
name = "Arquivo"
type = "archive"
function start()
set_rate_limit(5)
end
function vertical(ctx, domain)
... | Ada | 4 | Elon143/Amass | resources/scripts/archive/arquivo.ads | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="para">
<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="emph">
<i><xsl:apply-templates/></i>
</xsl:template>
</xsl:stylesheet>
| XSLT | 4 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/xslt-import-depth-format.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
Building intelligent machines to transform data into knowledge
The three different types of machine learning
Making predictions about the future with supervised learning
Classification for predicting class labels
Regression for predicting continuous outcomes
Solving interactive problems with reinforcement l... | TeX | 2 | FuckingName/python-machine-learning-book | code/_convenience_scripts/blank_tocs/ch01.toc | [
"MIT"
] |
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2007-2019. 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
%%
... | Erlang | 5 | jjhoo/otp | lib/ssl/src/tls_bloom_filter.erl | [
"Apache-2.0"
] |
<?php
$events = array_keys($this->getParam('events', []));
?>
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large">
<a data-ls-attrs="href=/console/home?project={{router.params.project}}" class="back text-size-small link-return-animation--start"><i class="icon-left-open"></i> Ho... | HTML+PHP | 4 | nakshatrasinghh/appwrite | app/views/console/webhooks/index.phtml | [
"BSD-3-Clause"
] |
xquery version "1.0-ml";
module namespace sm-es = "http://marklogic.com/smart-mastering/entity-services";
import module namespace es-impl = "http://marklogic.com/smart-mastering/entity-services-impl" at "impl/sm-es-impl.xqy";
declare function sm-es:get-entity-descriptors()
as array-node()
{
es-impl:get-entity-de... | XQuery | 4 | Elgaeb/marklogic-data-hub | marklogic-data-hub/src/main/resources/ml-modules/root/com.marklogic.smart-mastering/sm-entity-services.xqy | [
"Apache-2.0"
] |
#!/usr/bin/env parrot
.sub 'main' :main
say "Hello!"
.end
| Parrot Internal Representation | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Parrot Internal Representation/hello.pir | [
"MIT"
] |
<script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"></script>
<script type="text/javascript">
var vConsole = new VConsole();
</script>
| HTML | 2 | didichuxing/DoraemonKit | Android/dokit/src/main/assets/h5help/dokit_js_vconsole_hook.html | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<LERModel ObjectType="4003" CSAOName="LERModel" CSAOCaption="Model" InternalVersion="23" ProductVersion="7.1.0.216" Version="1.30"><Id>{093A5983-A500-4087-9EC0-F31A0AA307EF}</Id><Name>Tickets</Name><Ordinal>0</Ordinal><GlobalOrder>0</GlobalOrder><ModelDefID>{CA753C22-0089-4892-8EE... | TXL | 2 | julklos/BD2-Tickets | Tickets.txl | [
"MIT"
] |
/*************************************************************
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces... | Arduino | 5 | kayatmin/blynk-library | examples/Widgets/LED/LED_StatusOfButton/LED_StatusOfButton.ino | [
"MIT"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Estimate all log linear Gaussian Realized GAS model parameters
**
** Date:
** 10/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.F. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <oxdraw.... | Ox | 5 | tamerdilaver/Group4_Code_Data | CS_EMP_5_linear_Gaussian_RealGAS.ox | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 4 | OlegPt/spark | sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileStatusCache.scala | [
"Apache-2.0"
] |
# encoding: utf-8
# frozen_string_literal: true
require 'rubocop'
module RuboCop
module Cop
module Sorbet
# This cop ensures one ancestor per requires_ancestor line
# rather than chaining them as a comma-separated list.
#
# @example
#
# # bad
# module SomeModule
... | Ruby | 5 | ylht/brew | Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-sorbet-0.6.2/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb | [
"BSD-2-Clause"
] |
( Generated from test_dict_subscript_assign_in.muv by the MUV compiler. )
( https://github.com/revarbat/muv )
: _main[ _arg -- ret ]
var _a
{ }list _a !
"FOO" dup _a @ "foo" ->[] _a ! pop
_a @ "foo" []
;
: __start
"me" match me ! me @ location loc ! trig trigger !
_main
;
| MUF | 2 | revarbat/muv | tests/test_dict_subscript_assign_cmp.muf | [
"BSD-2-Clause"
] |
img {
width: 32px;
height: 32px;
}
.icon {
display: inline-block;
width: 32px;
height: 32px;
}
.icon-clock {
background: url(../nested/fragment-bg.svg#icon-clock-view) no-repeat;
}
.icon-heart {
background: url(../nested/fragment-bg.svg#icon-heart-view) no-repeat;
}
.icon-arrow-right {
background: u... | CSS | 2 | laineus/vite | packages/playground/assets/css/icons.css | [
"MIT"
] |
size: 1024px 80px;
dpi: 96;
margin: 2em;
axis {
label-format: fixed 1;
limit: 1 16;
}
| CLIPS | 2 | asmuth-archive/travistest | test/examples/charts_reference_format_fixed.clp | [
"Apache-2.0"
] |
(eval-when-compile
(import bin.printenv)
(import sys)
(print sys.path))
| Hy | 2 | lafrenierejm/hy | tests/resources/relative_import_compile_time.hy | [
"MIT"
] |
target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128"
target triple = "i686--linux"
%runtime.typecodeID = type { %runtime.typecodeID*, i32, %runtime.interfaceMethodInfo* }
%runtime.interfaceMethodInfo = type { i8*, i32 }
@"reflect/types.type:named:error" = linkonce_odr co... | LLVM | 4 | ofauchon/tinygo | transform/testdata/reflect-implements.ll | [
"Apache-2.0"
] |
(ns fw.lib.parallel
(:require [fw.lib.util :refer [fn? once filter-empty]]))
(defn ^:private iterator
[lambda len]
(let [results []
error nil]
(fn [err result]
(.push results result)
(cond err (set! error err))
(cond (? (l? results) len)
(cond (fn? lambda)
(lambda ... | wisp | 4 | h2non/fw | src/parallel.wisp | [
"MIT"
] |
#!./perl
# $Header: op.oct,v 1.0 87/12/18 13:13:57 root Exp $
print "1..3\n";
if (oct('01234') == 01234) {print "ok 1\n";} else {print "not ok 1\n";}
if (oct('0x1234') == 0x1234) {print "ok 2\n";} else {print "not ok 2\n";}
if (hex('01234') == 0x1234) {print "ok 3\n";} else {print "not ok 3\n";}
| Octave | 3 | allisonrandal/gunie | t/op.oct | [
"Artistic-2.0"
] |
# Configure paths for libopus
# Gregory Maxwell <greg@xiph.org> 08-30-2012
# Shamelessly stolen from Jack Moffitt (libogg) who
# Shamelessly stole from Owen Taylor and Manish Singh
dnl XIPH_PATH_OPUS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
dnl Test for libopus, and define OPUS_CFLAGS and OPUS_LIBS
dnl
AC_DEFUN([XIP... | M4 | 4 | SenthilKumarGS/TizenRT | external/libopus/opus.m4 | [
"Apache-2.0"
] |
package com.alibaba.fastjson.util;
import java.security.PrivilegedAction;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONAware;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
i... | Java | 3 | Czarek93/fastjson | src/main/java/com/alibaba/fastjson/util/ASMClassLoader.java | [
"Apache-2.0"
] |
FORMAT: 1A
# Greeting API
## GET /greeting
+ Response 200 (text/plain; charset=utf-8)
Howdy!
| API Blueprint | 3 | tomoyamachi/dredd | packages/dredd/test/fixtures/multifile/greeting.apib | [
"MIT"
] |
"""Test the Integration - Riemann sum integral integration."""
import pytest
from homeassistant.components.integration.const import DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from tests.common import MockConfigEntry
@pytest.mark.parametrize("platform"... | Python | 5 | MrDelik/core | tests/components/integration/test_init.py | [
"Apache-2.0"
] |
50 5
0 1 13 9 17 4 3 5 8 6 2 34 7 29 15 1 [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0]
1 1 2 43 36 [0] [0]
2 1 1 9 [-2]
3 1 2 38 31 [1] [13]
4 1 3 19 33 10 [1] [0] [7]
5 1 1 42 [16]
6 1 4 28 12 37 11 [15] [10] [4] [12]
7 1 2 27 17 [10] [-1]
8 1 1 13 [11]
9 1 2 25 15 [10] [-4]
10 1 3 21 49 24 [-103] [1... | Eagle | 0 | klorel/or-tools | examples/data/rcpsp/single_mode_consumer_producer/ubo50_cum_2/psp50_8.sch | [
"Apache-2.0"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.Classification
Imports Microsoft.CodeAnalysis.Test.Utilities.QuickInfo
Imports Microsof... | Visual Basic | 4 | frandesc/roslyn | src/EditorFeatures/Test2/IntelliSense/IntellisenseQuickInfoBuilderTests_Code.vb | [
"MIT"
] |
#
# number of conflicts must be ZERO.
#
class A
rule
targ: operation voidhead
| variable
voidhead : void B
void:
operation: A
variable : A
end
| Yacc | 1 | puzzle/nochmal | spec/dummy/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/nullbug2.y | [
"MIT"
] |
# Currently broken unless Godot makes this kind of thing possible:
# https://github.com/godotengine/godot/issues/21461
# https://github.com/godotengine/godot-proposals/issues/279
# Basis25D structure for performing 2.5D transform math.
# Note: All code assumes that Y is UP in 3D, and DOWN in 2D.
# Meaning, a top-down ... | GDScript | 5 | jonbonazza/godot-demo-projects | misc/2.5d/addons/node25d/.broken-gdscripts/Basis25D.gd | [
"MIT"
] |
/*
* Copyright (c) 2009-2011, Salvatore Sanfilippo <antirez at gmail dot com>
* Copyright (c) 2010-2011, Pieter Noordhuis <pcnoordhuis at gmail dot com>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | C | 4 | zh1029/redis | deps/hiredis/async_private.h | [
"BSD-3-Clause"
] |
package com.baeldung.ignore;
public abstract class BaseUnitTest {
public void helperMethod() {
}
}
| Java | 2 | DBatOWL/tutorials | testing-modules/junit-4/src/test/java/com/baeldung/ignore/BaseUnitTest.java | [
"MIT"
] |
C FILE: ARRAY.F
SUBROUTINE FOO(A,N,M)
C
C INCREMENT THE FIRST ROW AND DECREMENT THE FIRST COLUMN OF A
C
INTEGER N,M,I,J
REAL*8 A(N,M)
Cf2py intent(in,out,copy) a
Cf2py integer intent(hide),depend(a) :: n=shape(a,0), m=shape(a,1)
DO J=1,M
A(1,J) = A(1,J) + 1D0
ENDDO
DO I=... | FORTRAN | 4 | iam-abbas/numpy | doc/source/f2py/code/array.f | [
"BSD-3-Clause"
] |
sleep 1
t app appmode photo
sleep X
t app button shutter PR
d:\autoexec.ash
REBOOT yes
| AGS Script | 1 | waltersgrey/autoexechack | MegaLapse/CustomInterval/Hero3PlusSilver/autoexec.ash | [
"MIT"
] |
(* This simple example of a list class is adapted from an example in the
Cool distribution. *)
class List {
isNil() : Bool { true };
head() : Int { { abort(); 0; } };
tail() : List { { abort(); self; } };
cons(i : Int) : List {
(new Cons).init(i, self)
};
};
class Cons inherits List {
car... | OpenCL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Cool/list.cl | [
"MIT"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="DifficultySelection" ID="3e99ab2e-8f1d-48b0-a27a-9ec4bc4529c7" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Node_0" CanEdit="False" FrameEvent="" ctype="SingleNodeObjectDa... | Csound | 3 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/DifficultySelection.csd | [
"MIT"
] |
%{--
- Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com)
-
- 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
-
- Unles... | Groovy Server Pages | 3 | kbens/rundeck | rundeckapp/grails-app/views/framework/_pluginConfigPropertyScopeInfo.gsp | [
"Apache-2.0"
] |
offered_load.description="offered load; Net.subnet[0]; testfiles/vectors.vec; "
offered_load.X=[
0.1;
0.2;
0.3;
0.4;
0.5;
0.6;
0.7;
0.8;
0.9;
1;
1.1;
1.2;
1.3;
1.4;
1.5;
1.6;
1.7;
1.8;
1.9;
2;
]
offered_load.Y=[
30;
40;
10;
20;
50;
60;
70;
80;
90;
100;
110;
120;
130;
140;
150;
160;
170;
180;
190;
200;
]
throughput___... | Matlab | 3 | eniac/parallel-inet-omnet | test/scave/expected/vectors.matlab | [
"Xnet",
"X11"
] |
#![feature(generic_associated_types)]
#![feature(min_type_alias_impl_trait)]
impl SomeTrait for SomeType {
type SomeGAT<'a>
where
Self: 'a,
= impl SomeOtherTrait;
}
| Rust | 2 | ohno418/rust | src/tools/rustfmt/tests/target/issue_4911.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{-|
Module : Monomer.Graphics.FFI
Copyright : (c) 2018 Francisco Vallarino,
(c) 2016 Moritz Kiefer
License : BSD-3-Clause (see the LICENSE file)
Maintainer : fjvallarino@gmail.com
Stability : experimental
Portability : non-portable
Provides functions for getting text dimensions and metrics.... | C2hs Haskell | 5 | hasufell/monomer | src/Monomer/Graphics/FFI.chs | [
"BSD-3-Clause"
] |
#![feature(ptr_internals)]
use std::ptr::Unique;
fn main() {
let mut i: u32 = 10;
let unique = Unique::new(&mut i).unwrap();
let x: &'static *mut u32 = &(unique.as_ptr());
//~^ ERROR temporary value dropped while borrowed
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/consts/const-ptr-unique.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
MTREE(5) manual page
== NAME ==
'''mtree'''
- format of mtree dir hierarchy files
== DESCRIPTION ==
The
'''mtree'''
format is a textual format that describes a collection of filesystem objects.
Such files are typically used to create or verify directory hierarchies.
=== General Format===
An
'''mtree'''
file... | MediaWiki | 4 | probonopd/imagewriter | dependencies/libarchive-3.4.2/doc/wiki/ManPageMtree5.wiki | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020-2021, Itamar S. <itamar8910@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "AttributeValue.h"
#include "CompilationUnit.h"
#include "DwarfTypes.h"
#include <AK/ByteBuffer.h>
#include <AK/NonnullOwnPtrVector.h>
#include <AK/NonnullRefPtr.h>
#include <AK/RedBla... | C | 4 | xspager/serenity | Userland/Libraries/LibDebug/Dwarf/DwarfInfo.h | [
"BSD-2-Clause"
] |
---
title: "Chapter 8"
output:
html_document:
css: style.css
highlight: tango
---
```{r, include=FALSE}
knitr::opts_chunk$set(cache = FALSE, echo = TRUE, fig.align = "center", comment = "#>", message = FALSE)
```
```{r}
require(data.table)
require(ggplot2)
theme_set(
theme_bw(base_size = 14, base_famil... | RMarkdown | 5 | chuvanan/rdatatable-cookbook | cookbook/chapter8-parsing-unix-timestamps.rmd | [
"CC-BY-4.0"
] |
#!/bin/sh
set -e
autoreconf -if --warnings=all
| Shell | 2 | xuyangcn/opalcoin | src/secp256k1/autogen.sh | [
"MIT"
] |
//Attempt to find the text emotes on Twitch
//These are similar to brollI "I AM" and its friends.
//curl -H 'Accept: application/vnd.twitchtv.v5+json' -H 'Client-ID: uo6dggojyb8d6soh92zknwmi5ej1q2' -X GET 'https://api.twitch.tv/kraken/chat/emoticons' >emote_list.json
//If a human-readable version is desired:
//python3 ... | Pike | 5 | stephenangelico/shed | textemotes.pike | [
"MIT"
] |
Import mojo
Import tween
Class myApp Extends App
Field tween:Tween
Field equations:String[] = ["Linear","Back","Bounce","Circ","Cubic","Elastic","Expo","Quad","Quart","Quint","Sine"]
Field easeTypes:String[] = ["EaseIn","EaseOut","EaseInOut"]
Field currentEquation:Int
Field currentEaseType:Int
... | Monkey | 4 | blitz-research/monkey | bananas/skn3/tweening/tweendemo.monkey | [
"Zlib"
] |
#include <array>
#include <QLabel>
#include <QPixmap>
#include <QProgressBar>
#include <QSocketNotifier>
#include <QVariantAnimation>
#include <QWidget>
constexpr int spinner_fps = 30;
constexpr QSize spinner_size = QSize(360, 360);
class TrackWidget : public QWidget {
Q_OBJECT
public:
TrackWidget(QWidget *pare... | C | 4 | shoes22/openpilot | selfdrive/ui/qt/spinner.h | [
"MIT"
] |
module.exports = "wrong2-yes";
| JavaScript | 0 | 1shenxi/webpack | test/configCases/rule-set/resolve-options/wrong2.yes.js | [
"MIT"
] |
module chapter5/sets1 ----- page 156
sig Set {
elements: set Element
}
sig Element {}
assert Closed {
all s0, s1: Set |
some s2: Set |
s2.elements = s0.elements + s1.elements
}
// This check should produce a counterexample
check Closed
| Alloy | 4 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/chapter5/sets1.als | [
"Apache-2.0"
] |
"""Constants for the Yamaha component."""
DOMAIN = "yamaha"
CURSOR_TYPE_DOWN = "down"
CURSOR_TYPE_LEFT = "left"
CURSOR_TYPE_RETURN = "return"
CURSOR_TYPE_RIGHT = "right"
CURSOR_TYPE_SELECT = "select"
CURSOR_TYPE_UP = "up"
SERVICE_ENABLE_OUTPUT = "enable_output"
SERVICE_MENU_CURSOR = "menu_cursor"
SERVICE_SELECT_SCENE =... | Python | 3 | MrDelik/core | homeassistant/components/yamaha/const.py | [
"Apache-2.0"
] |
/*
* Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGL/GL/glplatform.h>
#define GL_GLEXT_VERSION 20211115
typedef void(APIENTRYP PFNGLLOCKARRAYSEXTPROC)(GLint first, GLsizei count);
typedef void(APIENTRYP PFNGLUNLOCKARRAYSEXTPROC)(voi... | C | 3 | densogiaichned/serenity | Userland/Libraries/LibGL/GL/glext.h | [
"BSD-2-Clause"
] |
# gnuplot script to visualize GCMETER results.
# usage: "gnuplot gcTimer.gnu >outputfile.png"
set terminal png
# set Title
set title "Title goes here!"
set datafile missing "-"
set noxtics
#set ytics nomirror
set ylabel "msec"
set key below
set style data linespoints
#set data file
plot 'gcTimer.dat' using 2 title co... | Gnuplot | 3 | EdwardPrentice/wrongo | src/third_party/mozjs-45/extract/js/src/devtools/gnuplot/gcTimer.gnu | [
"Apache-2.0"
] |
module top (
input clk, rst,
output reg [3:0] cnt
);
initial cnt = 0;
always @(posedge clk) begin
if (rst)
cnt <= 0;
else
cnt <= cnt + 4'd 1;
end
always @(posedge clk) begin
assume (cnt != 10);
assert (cnt != 15);
end
endmodule
| SystemVerilog | 3 | kallisti5/yosys | frontends/verific/example.sv | [
"ISC"
] |
/*
Copyright © 2011, 2012 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/widgets/deprecated/bootstrap/bootstrap.opa | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Threading
Imports Microsoft.CodeAnalysis.CodeActions
Namespace Microsoft.CodeAnalysis.VisualBasic.Code... | Visual Basic | 4 | ffMathy/roslyn | src/Features/VisualBasic/Portable/CodeFixes/CorrectNextControlVariable/CorrectNextControlVariableCodeFixProvider.CodeAction.vb | [
"MIT"
] |
\data\
ngram 1= 13
ngram 2= 33
ngram 3= 44
\1-grams:
-1.716003 <s> -0.576253
-1.062791 Ahmet -0.316824
-1.062791 elma -0.617854
-0.975641 yedi -1.191886
-0.738280 </s> 0.000000
-1.318063 armut -0.492916
-1.539912 kırmızı -0.191886
-1.414973 sarı -0.191886
-1.238882 yemedi -0.890856
-1.238882 Hamza -0.288796
-1.41497... | DNS Zone | 2 | flower-gardener/zemberek-nlp | lm/src/test/resources/tiny-no-unk.arpa | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] |
# frozen_string_literal: true
class MigrationVersionCheck < ActiveRecord::Migration::Current
def self.up
raise "incorrect migration version" unless version == 20131219224947
end
def self.down
end
end
| Ruby | 3 | mdesantis/rails | activerecord/test/migrations/version_check/20131219224947_migration_version_check.rb | [
"MIT"
] |
ruleset io.picolabs.aca.connections {
meta {
name "Aries Cloud Agent connections protocol"
description <<
Aries RFC 0160: Connection Protocol
did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/connections/1.0/
https://didcomm.org/connections/1.0/
>>
use module io.picolabs.aca alias aca
use ... | KRL | 5 | Picolab/aries-cloudagent-pico | NEXT/io.picolabs.aca.connections.krl | [
"MIT"
] |
codegen utils = require './codegenUtils'
module.exports (terms) = terms.term {
constructor (value) =
self.is string = true
self.string = value
generate (scope) =
self.code (codegen utils.format java script string (self.string))
}
| PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/string.pogo | [
"MIT"
] |
.. meta::
:description: Hasura Postgres database support
:keywords: hasura, docs, databases, postgres
.. _database_postgres:
Postgres
========
.. contents:: Table of contents
:backlinks: none
:depth: 1
:local:
Introduction
------------
Hasura allows connecting to a Postgres database and build an GraphQL ... | reStructuredText | 3 | gh-oss-contributor/graphql-engine-1 | docs/graphql/core/databases/postgres/index.rst | [
"Apache-2.0",
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Baeldung: Static Content in Spring WebFlux</title>
</head>
<body>
Example Spring Web Flux and web resources configuration
</body>
</html> | HTML | 3 | DBatOWL/tutorials | spring-5-reactive/src/main/assets/index.html | [
"MIT"
] |
// Regression test for #86600, where an instance of the
// `illegal_floating_point_literal_pattern` lint was issued twice.
// check-pass
fn main() {
let x = 42.0;
match x {
5.0 => {}
//~^ WARNING: floating-point types cannot be used in patterns
//~| WARNING: this was previously accept... | Rust | 4 | mbc-git/rust | src/test/ui/lint/issue-86600-lint-twice.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"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 | dlech/qgroundcontrol | src/QmlControls/InstrumentValueLabel.qml | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Types.h>
#include <LibGUI/Dialog.h>
class GameSizeDialog : public GUI::Dialog {
C_OBJECT(GameSizeDialog)
public:
size_t board_size() const { return m_board_size; }
u32 target_til... | C | 4 | r00ster91/serenity | Userland/Games/2048/GameSizeDialog.h | [
"BSD-2-Clause"
] |
/**
* This package defines Spring's core TaskExecutor abstraction,
* and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
*/
@NonNullApi
@NonNullFields
package org.springframework.core.task;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
| Java | 3 | nicchagil/spring-framework | spring-core/src/main/java/org/springframework/core/task/package-info.java | [
"Apache-2.0"
] |
package universe_test
import "testing"
import "math"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,double,string,string
#group,false,false,false,false,true,true
#default,_result,,,,,
,result,table,_time,_value,_field,_measurement
,,0,2018-05-22T19:53:30Z,1.2,active,me... | FLUX | 4 | metrico/flux | stdlib/universe/math_m_max_test.flux | [
"MIT"
] |
#pragma once
#include "foxi/onnxifi_loader.h"
namespace caffe2 {
namespace onnx {
onnxifi_library* initOnnxifiLibrary();
} // namespace onnx
} // namespace caffe2
| C | 1 | Hacky-DH/pytorch | caffe2/onnx/onnxifi_init.h | [
"Intel"
] |
package com.baeldung;
import com.mongodb.BasicDBObject;
import com.mongodb.DB;
import com.mongodb.DBCollection;
import com.mongodb.DBCursor;
import com.mongodb.MongoClient;
public class MongoExample {
public static void main(String[] args) {
MongoClient mongoClient = new MongoClient("localhost", 27017);
... | Java | 4 | zeesh49/tutorials | persistence-modules/java-mongodb/src/main/java/com/baeldung/MongoExample.java | [
"MIT"
] |
! Copyright (C) 2012 John Benediktsson
! See http://factorcode.org/license.txt for BSD license
USING: help.markup help.syntax layouts math sequences ;
IN: math.cardinality
HELP: trailing-zeros
{ $values { "m" number } { "n" number } }
{ $description "Counts the number of trailing 0 bits in " { $snippet "m" } ", return... | Factor | 4 | alex-ilin/factor | extra/math/cardinality/cardinality-docs.factor | [
"BSD-2-Clause"
] |
.class public Lcom/lenovo/safecenter/MainTab/SplashActivity;
.super Landroid/app/Activity;
.source "SplashActivity.java"
# interfaces
.implements Ljava/util/Observer;
# instance fields
.field private a:Landroid/content/SharedPreferences;
.field private b:Lcom/lenovo/safecenter/utils/LeSafeObservable;
.field privat... | Smali | 2 | jarekankowski/pegasus_spyware | sample4/decompiled_raw/smali/com/lenovo/safecenter/MainTab/SplashActivity.smali | [
"MIT"
] |
##! This module provides a mapping between VLAN IDs and the physical location where available
# Reservoir Labs Inc. 2017 All Rights Reserved.
# Periodically verifies if all configured taps are generating data
@load ./vlan-location
@load ./tap-verify
| Bro | 3 | reservoirlabs/bro-scripts | vlan-info/__load__.bro | [
"Apache-2.0"
] |
/**
Copyright 2015 Acacia Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | X10 | 4 | mdherath/Acacia | src/org/acacia/partitioner/local/AcaciaRDFPartitioner.x10 | [
"Apache-2.0"
] |
This is a literate coffee source with lots of comments
console.log 'Hello'
The rest is ignored | Literate CoffeeScript | 0 | AutoscanForJava/net.code-story-http | src/test/resources/app/js/literate.litcoffee | [
"Apache-2.0"
] |
=head1 DESCRIPTION
move_parrot_logo.pir - move a Parrot logo with the SDL Parrot bindings
=head1 SYNOPSIS
To run this file, run the following command from the Parrot directory:
$ parrot examples/sdl/move_parrot_logo.pir
$
=cut
.sub _main :main
load_bytecode "SDL/App.pir"
load_bytecode "SDL/Color.pir"
load_b... | Parrot Internal Representation | 5 | winnit-myself/Wifie | examples/sdl/move_parrot_logo.pir | [
"Artistic-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.