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 |
|---|---|---|---|---|---|
<h2>Login</h2>
<p>{{message}}</p>
<p>
<button (click)="login()" *ngIf="!authService.isLoggedIn">Login</button>
<button (click)="logout()" *ngIf="authService.isLoggedIn">Logout</button>
</p>
| HTML | 3 | yuchenghu/angular-cn | aio/content/examples/router/src/app/auth/login/login.component.html | [
"MIT"
] |
#
mes 2,EM_WSIZE,EM_PSIZE
exp $profil
pro $profil,0
lal 0
loi 4*EM_PSIZE
loc 44
mon
ret 0
end
| Eiffel | 1 | wyan/ack | plat/em/libsys/prof.e | [
"BSD-3-Clause"
] |
-- Copyright 2018 Stanford University
--
-- 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... | Rouge | 4 | elliottslaughter/regent-tutorial | Overview/1.rg | [
"Apache-2.0"
] |
class: draw;
dpi: 96;
size: 100px 100px;
rectangle {
size: 50px 50px;
stroke: solid(color(#000) width(3pt));
stroke: dash(color(#fff) width(1pt));
}
| CLIPS | 2 | asmuth-archive/travistest | test/draw/style_stroke_multi.clp | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts'/>
////interface I {
//// property1: number;
//// property2: string;
////}
////
////function f({ property1, /**/ }: I): void {
////}
verify.completions({ marker: "", includes: "property2", excludes: "property1" });
| TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/fourslash/completionListInObjectBindingPattern12.ts | [
"Apache-2.0"
] |
import torch
import tensorrt as trt
from torch.fx.experimental.fx2trt.fx2trt import tensorrt_converter
from .helper_functions import get_dyn_range, get_inputs_from_args_and_kwargs
quantize_per_tensor_inputs = ["input", "scale", "zero_point", "dtype"]
@tensorrt_converter("dequantize")
@tensorrt_converter(torch.dequ... | Python | 5 | Hacky-DH/pytorch | torch/fx/experimental/fx2trt/converters/quantization.py | [
"Intel"
] |
"""The binary sensor tests for the powerwall platform."""
from unittest.mock import patch
from homeassistant.components.powerwall.const import DOMAIN
from homeassistant.const import CONF_IP_ADDRESS, STATE_ON
from .mocks import _mock_powerwall_with_fixtures
from tests.common import MockConfigEntry
async def test_s... | Python | 4 | MrDelik/core | tests/components/powerwall/test_binary_sensor.py | [
"Apache-2.0"
] |
// compile
// Copyright 2021 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 p
func f() {
_ = func() func() {
return func() {
l:
goto l
}
}()
}
| Go | 1 | SSSDNSY/go | test/fixedbugs/issue45947.go | [
"BSD-3-Clause"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/Wash.js | [
"MIT"
] |
@Sort(
"Exchange Sorts",
"Bubble Sort",
"Bubble Sort"
);
new function bubbleSort(array) {
for i in range(len(array)) {
new bool sorted = True;
for j in range(len(array) - i - 1) {
if array[j] > array[j + 1] {
array[j].swap(array[j + 1]);
sorted... | Opal | 3 | thatsOven/sorting-visualizer | sorts/BubbleSort.opal | [
"MIT"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Head Mask
m_Mask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000... | Mask | 3 | fillefilip8/gold-player | Assets/Hertzole/Gold Player/Examples/Animator/Animations/Player/Head Mask.mask | [
"MIT"
] |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | C++ | 4 | jzjonah/apollo | modules/perception/lidar/lib/detector/cnn_segmentation/feature_generator.cc | [
"Apache-2.0"
] |
component{
public string function ANOTHERMETHOD(){
var FO = "Bar";
local.TEST = "Foo";
LOCAL.test = "FooBar";
return LOCAL.FO;
}
} | ColdFusion CFC | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/Naming/Inconsistent_544.cfc | [
"BSD-3-Clause"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getLrRadioCode
Author: NKey, Garth de Wet (L-H)
Returns the encryption code for the passed radio.
Arguments:
0: Radio object <OBJECT>
1: Radio String <STRING>
Return Value:
Encryption code <STRING>
Example:
(call TFAR_fnc_activeLrRadio... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_getLrRadioCode.sqf | [
"RSA-MD"
] |
:- object(_List_/_Pred_).
% File : LAZY.PL
% Author : R.A.O'Keefe
% Updated: 30 October 1983
% Mods for NIP: Ken Johnson 18-6-87
% Purpose: Lazy lists in Prolog.
% Needs : APPLY
% Note: this code is "pure" only in the sense that it has no side-
% effects. It does rely on the 'var' metalogical pr... | Logtalk | 5 | PaulBrownMagic/logtalk3 | examples/lazy_lists/lazy_lists.lgt | [
"Apache-2.0"
] |
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
export interface InputAdornmentClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `variant="filled"`. */
filled: string;
/** Styles applied to the root element if `variant="outl... | TypeScript | 4 | dany-freeman/material-ui | packages/mui-material/src/InputAdornment/inputAdornmentClasses.ts | [
"MIT"
] |
ToolTip, {{ text }},{{ x }},{{ y }},{{ id }}
| AutoHotkey | 1 | scslmd/ahk | ahk/templates/daemon/tooltip.ahk | [
"MIT"
] |
# Copyright (C) Nginx, Inc.
# Distributed under the terms of the Apache License 2.0
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Fast and reliable NGINX configuration parser created by the NGINX Amplify team. "
HOMEPAGE="https://github.com/nginxinc/crossplane/"
SRC_URI="mirror://pypi/$... | Gentoo Ebuild | 4 | dp92987/nginx-amplify-agent | packages/nginx-amplify-agent/gentoo/nginx-amplify-overlay/dev-python/crossplane/crossplane-0.1.1.ebuild | [
"BSD-2-Clause"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M23 4H1v17h22V4zM7 12v2H5v-2h2zm-2-2V8h2v2H5zm6 2v2H9v-2h2zm-2-2V8h2v2H9zm7 6v1H8v-1h8zm-1-4v2h-2v-2h2zm-2-2V8h2v2h-2zm4 4v-2h2v2h-2zm2-4h-2V8h2v2z"
}), 'Ke... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/KeyboardAltSharp.js | [
"MIT"
] |
INSERT INTO `pt_role` (`ROLE_ID`) VALUES ("1");
| SQL | 2 | imtbkcat/tidb-lightning | tests/tool_1420/data/EE1420.pt_role.sql | [
"Apache-2.0"
] |
$!
$! DES-LIB.COM
$! Written By: Robert Byer
$! Vice-President
$! A-Com Computing, Inc.
$! byer@mail.all-net.net
$!
$! Changes by Richard Levitte <richard@levitte.org>
$!
$! This command files compiles and creates the
$! "[.xxx.EXE.CRYPTO.DES]LIBDES.OLB" library. The "x... | DIGITAL Command Language | 4 | vlinhd11/vlinhd11-android-scripting | python-build/openssl/crypto/des/des-lib.com | [
"Apache-2.0"
] |
function MyComponent_ng_template_0_Template(rf, ctx) {
if (rf & 1) {
$i0$.ɵɵtext(0, "some-content");
}
}
…
consts: [["foo", ""]],
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
$i0$.ɵɵtemplate(0, MyComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, $i0$.ɵɵtemplateRefExtract... | JavaScript | 3 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/ng_template_local_ref_template.js | [
"MIT"
] |
module ietf-l3vpn-svc {
namespace "urn:ietf:params:xml:ns:yang:ietf-l3vpn-svc";
prefix l3vpn-svc;
import ietf-inet-types {
prefix inet;
}
import ietf-yang-types {
prefix yang;
}
organization
"IETF L3SM Working Group";
contact
"WG List:... | YANG | 5 | Shinkirou/onos | tools/test/configs/yang/ietf-l3vpn-svc@2016-07-30.yang | [
"Apache-2.0"
] |
--TEST--
Test fread() function : usage variations - read beyond file size, write only mode
--FILE--
<?php
// include the file.inc for common functions for test
include ("file.inc");
/* Function : function check_read(resource $file_handle, int $read_size, int $expect_size)
Description : Read data from file of size $... | PHP | 5 | NathanFreeman/php-src | ext/standard/tests/file/fread_variation4.phpt | [
"PHP-3.01"
] |
.foo {
border: 1px dashed currentColor;
border: 1px dashed currentcolor;
}
| CSS | 2 | fuelingtheweb/prettier | tests/css_color/current-color.css | [
"MIT"
] |
<template>
<div
class="project-dashboard page"
:class="{
customizing: customizeMode,
'widget-details-shown': injected.isWidgetDetailsShown
}"
>
<ContentView
:title="$t('org.vue.views.project-dashboard.title')"
>
<template slot="actions">
<VueButton
v-if=... | Vue | 4 | brizer/vue-cli | packages/@vue/cli-ui/src/components/dashboard/ProjectDashboard.vue | [
"MIT"
] |
cradle:
cabal:
component: "lib:hls-install"
| COBOL | 0 | michaelpj/haskell-language-server | install/hie.yaml.cbl | [
"Apache-2.0"
] |
// Copyright 2016 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/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Protocol Buffer | 4 | samotarnik/grpc | src/python/grpcio_tests/tests/protoc_plugin/protos/payload/test_payload.proto | [
"Apache-2.0"
] |
(ns luminus.routes.home
(:require
[clojure.java.io :as io]
[luminus.middleware :as middleware]
[ring.util.response]
[ring.util.http-response :as response]))
(defn index-page [request]
{:body ""})
(defn user-page [{:keys [path-params query-params body-params]}]
{:body (:id path-params) })
(defn user... | Clojure | 4 | mattiapenati/web-frameworks | clojure/luminus/src/clj/luminus/routes/home.clj | [
"MIT"
] |
.native-inline {
visibility: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
opacity: 0;
transition: all .25s ease-in-out;
}
.native-show {
visibility: visible;
opacity: 1;
}
.native-inline {
di... | CSS | 4 | gavi-shandler/mongoose | docs/css/inlinecpc.css | [
"MIT"
] |
#define COBJMACROS
#define WIN32_LEAN_AND_MEAN
#define UNICODE
#define Method _Method
#define Array _Array
#define byte _byte
#define int64 _int64
#include <shlobj.h>
#undef Method
#undef Array
#undef byte
#undef int64
#ifdef ECERE_STATIC
import static "ecere"
#else
import "ecere"
#endif
bool CreateLink(char * lpszP... | eC | 3 | N-eil/ecere-sdk | extras/windowsShortcut.ec | [
"BSD-3-Clause"
] |
---
layout: post
title: "KMeans Clustering I"
date: 2013-02-16 16:12
author: Ranjit Jhala
published: true
comments: true
external-url:
categories: basic measures
demo: KMeansHelper.hs
---
[Last time][safeList] we introduced a new specification mechanism called a
*measure* and demonstrated how to use it to encode the *... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2013-02-16-kmeans-clustering-I.lhs | [
"MIT",
"BSD-3-Clause"
] |
CREATE TABLE `tb_sxbbqclsgf` (
`col_avzjcdfkfv` year(4) NOT NULL DEFAULT '2019',
`col_kgfprqgdwt` mediumtext CHARACTER SET latin1,
CONSTRAINT PRIMARY KEY (`col_avzjcdfkfv`),
UNIQUE `col_kgfprqgdwt` (`col_kgfprqgdwt`(6))
) DEFAULT CHARSET=latin1;
CREATE TABLE `tb_uakpdqzysm` (
`col_zknooyoueg` time NOT NULL DE... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_22.sql | [
"Apache-2.0"
] |
(lp1
(ccopy_reg
_reconstructor
p2
(cpygments.token
_TokenType
p3
c__builtin__
tuple
p4
(S'Other'
p5
ttRp6
(dp7
S'subtypes'
p8
c__builtin__
set
p9
((ltRp10
sS'parent'
p11
g2
(g3
g4
(ttRp12
(dp13
S'Comment'
p14
g2
(g3
g4
(g14
ttRp15
(dp16
g11
g12
sS'Preproc'
p17
g2
(g3
g4
(g14
g17
ttRp18
(dp19
g8
g9
((ltRp20
sg11
g15
sbs... | Python traceback | 0 | mjtamlyn/django-braces | docs/build/Pygments/tests/examplefiles/output/database.pytb | [
"BSD-3-Clause"
] |
##! This script alerts on any large uploads to the Internet
##! and emails alerts on sufficiently large uploads if enabled.
##!
##! Based on https://github.com/sooshie/bro-scripts/blob/master/2.4-scripts/largeUpload.bro
##! by Brian Kellogg
##!
##! And http://resources.sei.cmu.edu/asset_files/Presentation/2014_017_001... | Bro | 5 | evernote/bro-scripts | exfiltration/scripts/flow.bro | [
"BSD-3-Clause"
] |
{
"Version" : 0.2,
"ModuleName" : "cffiEcere",
"Options" : {
"Warnings" : "All",
"IncludeDirs" : [
"../c"
],
"TargetType" : "SharedLibrary",
"TargetFileName" : "_pyecere",
"Libraries" : [
"ecere",
"python34"
]
},
"Configurations" : [
... | Ecere Projects | 2 | jerstlouis/ecere-sdk | bindings/python/pyEcere.epj | [
"BSD-3-Clause"
] |
(*
Module: Aptsources
Parsing /etc/apt/sources.list
*)
module Aptsources =
autoload xfm
(************************************************************************
* Group: Utility variables/functions
************************************************************************)
(* View: sep_ws *)
let sep_ws = Se... | Augeas | 5 | zwass/launcher | pkg/augeas/assets/lenses/aptsources.aug | [
"MIT"
] |
it("should not load node bindings when node option is false", function() {
expect((typeof global)).toBe("undefined");
});
| JavaScript | 3 | 1shenxi/webpack | test/configCases/parsing/node-source-plugin-off/index.js | [
"MIT"
] |
// <copyright file="ChromeOptions.cs" company="WebDriver Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to... | C# | 5 | TamsilAmani/selenium | dotnet/src/webdriver/Chrome/ChromeOptions.cs | [
"Apache-2.0"
] |
--TEST--
Testing ReflectionClass::isEnum()
--FILE--
<?php
class Foo {}
enum Bar {
case Baz;
}
$fooReflection = new ReflectionClass(Foo::class);
$barReflection = new ReflectionClass(Bar::class);
var_dump($fooReflection->isEnum());
var_dump($barReflection->isEnum());
?>
--EXPECT--
bool(false)
bool(true)
| PHP | 4 | NathanFreeman/php-src | ext/reflection/tests/ReflectionClass_isEnum.phpt | [
"PHP-3.01"
] |
ACTUAL,PREDICT,COUNTRY,REGION,DIVISION,PRODTYPE,PRODUCT,QUARTER,YEAR,MONTH
925,850,CANADA,EAST,EDUCATION,FURNITURE,SOFA,1,1993,1993-01-01
999,297,CANADA,EAST,EDUCATION,FURNITURE,SOFA,1,1993,1993-02-01
608,846,CANADA,EAST,EDUCATION,FURNITURE,SOFA,1,1993,1993-03-01
642,533,CANADA,EAST,EDUCATION,FURNITURE,SOFA,2,1993,1993... | CSV | 1 | henriqueribeiro/pandas | pandas/tests/io/sas/data/productsales.csv | [
"BSD-3-Clause"
] |
namespace dubbo_java com.alibaba.dubbo.rpc.gen.dubbo
namespace dubbo_cpp com.alibaba.dubbo.rpc.gen.dubbo
namespace java com.alibaba.dubbo.rpc.gen.thrift
namespace cpp com.alibaba.dubbo.rpc.gen.thrift
service Demo {
bool echoBool( 1:required bool arg );
byte echoByte( 1:required byte arg );
i16 echoI16 ... | Thrift | 3 | xgj1988/dubbo | dubbo-rpc/dubbo-rpc-thrift/src/test/thrift/Demo.thrift | [
"Apache-2.0"
] |
;_____________________________________________________________________________
;
; Text Functions
;_____________________________________________________________________________
;
; 2006 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
Name "Text Functions"
OutFile "TextFunc.exe"
Caption... | NSIS | 3 | vbillet/Torque3D | Engine/bin/tools/nsis/app/Examples/TextFunc.nsi | [
"MIT"
] |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const HotModuleReplacementPlugin = require("../HotModuleReplacementPlugin");
const InnerGraph = require("../optimize/InnerGraph");
const ConstDependency = require("./ConstDependency");
const HarmonyAccept... | JavaScript | 5 | KruthikaShyamSundar/wildlife_park | node_modules/webpack/lib/dependencies/HarmonyImportDependencyParserPlugin.js | [
"MIT"
] |
using Uno;
using Uno.Collections;
using Uno.UX;
using Fuse;
namespace Fuse.Triggers
{
public enum StateTransition
{
Parallel,
Exclusive,
}
/**
@include Docs/StateGroup.md
*/
public partial class StateGroup : Behavior
{
IList<State> _states = new List<State>();
[UXContent]
public IList<State> States... | Uno | 5 | helilabs/fuselibs | Source/Fuse.Triggers/StateGroup.uno | [
"MIT"
] |
interface SimpleLex = {
oper
DictionaryItem09 : Str ;
DictionaryItem12 : Str ;
} | Grammatical Framework | 2 | Site-Command/accelerated-text | core/test/resources/syntax/SimpleLex.gf | [
"Apache-2.0"
] |
{% if grains['os'] == 'Windows' %}
{% set result = 'c:\Windows\system.ini' | is_text_file() %}
{% else %}
{% set result = '/etc/passwd' | is_text_file() %}
{% endif %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 4 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/files_is_text.sls | [
"Apache-2.0"
] |
- dashboard: funnel_explorer
title: Funnel Explorer
layout: grid
rows:
- elements: [custom_funnel]
height: 400
- elements: [trending_event_1_conversion]
height: 400
- elements: [trending_event_2_conversion]
height: 400
- elements: [trending_event_3_conversion]
height: 400
... | LookML | 4 | llooker/heap_block_bigquery | funnel_explorer.dashboard.lookml | [
"MIT"
] |
grammar JSONFilter;
awsjsonfilter: dotnotation;
dotnotation: LCURLY filter_expr RCURLY;
filter_expr:
LPAREN filter_expr RPAREN # filter_expr_parenthesized
| lhs = filter_expr AND rhs = filter_expr # filter_expr_and
| lhs = filter_expr OR rhs = filter_expr # filter_expr_or
| exp # filter_expr_exp;
exp:... | ANTLR | 4 | cxMiguelSilva/kics | pkg/parser/jsonfilter/JSONFilter.g4 | [
"Apache-2.0"
] |
QT.serialport_private.VERSION = 5.9.4
QT.serialport_private.name = QtSerialPort
QT.serialport_private.module =
QT.serialport_private.libs = $$QT_MODULE_LIB_BASE
QT.serialport_private.includes = $$QT_MODULE_INCLUDE_BASE/QtSerialPort/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtSerialPort/5.9.4/QtSerialPort
QT.serialport_private.fra... | QMake | 1 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_serialport_private.pri | [
"MIT"
] |
ID DTXS1_METRA Reviewed; 7913 AA.
AC E9FCP4;
DT 08-JUN-2016, integrated into UniProtKB/Swiss-Prot.
DT 04-MAR-2015, sequence version 2.
DT 07-SEP-2016, entry version 35.
DE RecName: Full=Nonribosomal peptide synthetase dtxS1 {ECO:0000305};
DE EC=6.3.2.- {ECO:0000269|PubMed:22232... | TXL | 1 | kp14/biocuration | tests/SwissProt/many_sp_entries.txl | [
"Unlicense"
] |
GalaxyID,x,y,e1,e2
Galaxy1,1595.85,2103.81,-0.140499,0.477996
Galaxy2,133.21,406.30,-0.327878,0.033687
Galaxy3,3365.73,3841.39,-0.328135,-0.140151
Galaxy4,3702.52,1183.94,-0.166828,-0.294333
Galaxy5,844.94,2507.34,0.540953,0.007418
Galaxy6,3926.99,3558.90,0.228632,-0.057602
Galaxy7,1599.45,2916.95,-0.151658,0.463106
Ga... | CSV | 2 | jColeChanged/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers | Chapter5_LossFunctions/data/Train_Skies/Train_Skies/Training_Sky130.csv | [
"MIT"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for ErrorWidget
import 'package:flutter/material.dart';
void main() {
// Set the ErrorWidget's builder before the app is started... | Dart | 5 | devansh12b2/flutter | examples/api/lib/widgets/framework/error_widget.0.dart | [
"BSD-3-Clause"
] |
%!PS-Adobe-2.0
%%Creator: dvipsk 5.526b Copyright 1986, 1993 Radical Eye Software
%%Title: tree-tagger.dvi
%%Pages: 9
%%PageOrder: Ascend
%%BoundingBox: 0 0 596 842
%%EndComments
%DVIPSCommandLine: dvips tree-tagger
%DVIPSParameters: dpi=600, compressed, comments removed
%DVIPSSource: TeX output 1995.11.16:1641
%%Begi... | PostScript | 3 | jessiepyx/AutoPhrase | tools/treetagger/doc/nemlap94.ps | [
"Apache-2.0"
] |
#!/usr/bin/env bash
set -euo pipefail
main() {
echo 'Installing VS Code dependencies...'
cd modules/code-oss-dev
yarn install --frozen-lockfile
}
main "$@"
| Shell | 3 | mia-cx/code-server-npm | vendor/postinstall.sh | [
"MIT"
] |
@echo off
rem run clang-format on c++ files
powershell -noprofile "import-module %OPENCON_TOOLS%\openconsole.psm1; Invoke-CodeFormat"
| Batchfile | 3 | RifasM/terminal | tools/runformat.cmd | [
"MIT"
] |
""" Write a method/function DISPLAYWORDS() in python to read lines
from a text file STORY.TXT,
using read function
and display those words, which are less than 4 characters. """
F=open("story.txt","r")
value=F.read()
lines=value.split()
count=0
for i in lines:
if len(i)<4:
print(i)
... | Python | 3 | sulphatet/Python | 1 File handle/File handle text/question 2.py | [
"MIT"
] |
x = load('weights.txt');
lx = log(x);
lxmin = min(lx);
lxmax = max(lx);
N = 100;
hist(lx,N);
grid on;
print('hist.png');
| Octave | 3 | skroon/dsmic-oakfoam | scripts/general/weights.oct | [
"BSD-2-Clause"
] |
// run-pass
// Check that constant expressions can be used for declaring the
// type of a fixed length vector.
// pretty-expanded FIXME #23616
pub fn main() {
const FOO: usize = 2;
let _v: [isize; FOO*3];
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/consts/const-expr-in-fixed-length-vec.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<%--
Copyright 2013 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 | Threadless/asgard | grails-app/views/hostedZone/prepareResourceRecordSet.gsp | [
"Apache-2.0"
] |
var path = require("path");
var webpack = require("../../");
module.exports = {
// mode: "development || "production",
plugins: [
new webpack.DllReferencePlugin({
context: path.join(__dirname, "..", "dll"),
manifest: require("../dll/dist/alpha-manifest.json") // eslint-disable-line
}),
new webpack.DllRefe... | JavaScript | 3 | 1shenxi/webpack | examples/dll-user/webpack.config.js | [
"MIT"
] |
package planner_test
import "testing"
import "planner"
inData =
"
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,string,string,string,string,double
#group,false,false,false,false,false,true,true,true,true,false
#default,_result,,,,,,,,,
,result,table,_time,_start,_stop,_measurement,_fie... | FLUX | 4 | metrico/flux | stdlib/planner/group_min_max_table_test.flux | [
"MIT"
] |
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local command = helpers.command
local eq = helpers.eq
local funcs = helpers.funcs
local feed = helpers.feed
local exec_capture = helpers.exec_capture
local write_file = helpers.write_file
describe('jumplist', function()
local... | Lua | 4 | uga-rosa/neovim | test/functional/editor/jump_spec.lua | [
"Vim"
] |
<link rel="stylesheet" href="/cat/css/introjs.css">
<script src="/cat/js/intro.js"></script>
<style>
.metric,
.subCondition {
margin-bottom: 5px;
}
.condition,
.config
{
margin-bottom: 10px;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
box-s... | FreeMarker | 4 | woozhijun/cat | cat-home/src/main/resources/freemaker/server_rule_configs.ftl | [
"Apache-2.0"
] |
syntax = "proto3";
package tensorflow.serving;
import "google/protobuf/wrappers.proto";
// Config for the batch op rewriter. This should be serialized
// and set a param in RewriterConfig with key kBatchOpRewriteParamKey.
message BatchOpRewriteConfig {
bool enable_adaptive_shared_batching_thread_pool = 4;
// Th... | Protocol Buffer | 5 | EricRemmerswaal/tensorflow | tensorflow/core/grappler/optimizers/inference/batch_op_rewriter.proto | [
"Apache-2.0"
] |
# Check build engine tracing on a trivial example.
# We run the build in a sandbox in the temp directory to ensure we don't
# interact with the source dirs.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build --no-db --trace %t.tra... | Ninja | 5 | allevato/swift-llbuild | tests/Ninja/Build/tracing.ninja | [
"Apache-2.0"
] |
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import sys\n... | Jupyter Notebook | 3 | vinzmc/AutoEq | research/result_csv_read.ipynb | [
"MIT"
] |
static const q15_t in_q15[256] = {
0x4E35, 0x2893, 0x5C35, 0x6209, 0x070C, 0x72E1, 0x717A, 0x4BAB,
0x3D7E, 0x0168, 0x5190, 0x5F3F, 0x33E5, 0x7D25, 0x7CF2, 0x15CE,
0x2827, 0x6DD0, 0x6A4C, 0x4D51, 0x62B9, 0x3F0E, 0x5DE4, 0x5F21,
0x4EF5, 0x6F23, 0x528A, 0x3932, 0x5C83, 0x68C5, 0x5654, 0x0424,
0x5D37, 0... | Max | 3 | Trifunik/zephyr | tests/lib/cmsis_dsp/support/src/q15.pat | [
"Apache-2.0"
] |
%%{
machine common;
action tok {
tok = p
}
action priority {
event.SetPriority(data[tok:p])
}
action message {
event.SetMessage(data[tok:p])
}
action month {
event.SetMonth(data[tok:p])
}
action year{
event.SetYear(data[tok:p])
}
action month_numeric {
event.SetMonth... | Ragel in Ruby Host | 4 | tetianakravchenko/beats | filebeat/input/syslog/parser/common.rl | [
"ECL-2.0",
"Apache-2.0"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Avatar Mask
m_Mask: 010000000100000000000000000000000000000001000000010000000100000001000000010000000100000... | Mask | 3 | microsoft/MoveBox-for-Microsoft-Rocketbox | MoveBox_CaptureStudio/Assets/Microsoft Rocketbox MoveBox/Resources/Avatar Mask.mask | [
"MIT"
] |
# Check for support for nanosleep. It's defined in <time.h>, but on
# some systems, such as solaris, you need to link in a library to use it.
# We set acx_nanosleep_ok if nanosleep is supported; in that case,
# NANOSLEEP_LIBS is set to whatever libraries are needed to support
# nanosleep.
AC_DEFUN([ACX_NANOSLEEP],
[A... | M4 | 5 | cssl-unist/tweezer | Docker/gperftools/m4/acx_nanosleep.m4 | [
"MIT"
] |
sleep 1
t app led_count 0
sleep 1
t app led red_top_bottom on
| AGS Script | 1 | waltersgrey/autoexechack | TurnOnAndLED/Top-bottom-led/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
@navbar-height: 32px;
@navbar-default-link-color: #303030;
@navbar-default-color: #303030;
@navbar-default-bg: #ffffff;
@navbar-default-border: #e0e0e0;
@font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe... | Less | 3 | KarlParkinson/mitmproxy | web/src/css/vendor-bootstrap-variables.less | [
"MIT"
] |
@import Foundation;
@interface NSBoom<T> : NSObject
@end
| C | 0 | lwhsu/swift | test/SILGen/Inputs/objc_required_designated_init.h | [
"Apache-2.0"
] |
<%
'#
'# devilzShell <[aspx]>
'# ^^^^^^^^^^^^
'# author: b374k
'# greets: devilzc0der(s) and all of you who love peace and freedom
'#
'#
'# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'# Jayalah Indonesiaku
%>
<script runat="server">
'################# VARIA... | ASP | 1 | laotun-s/webshell | Backdoor Dev Shells/devshell.aspx | [
"MIT"
] |
import time
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from nw_util import *
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=" + os.path.dirname(os.path.abspath(__f... | Python | 3 | frank-dspeed/nw.js | test/sanity/issue4199-cookie/test.py | [
"MIT"
] |
"""Support for Soma Smartshades."""
import logging
from api.soma_api import SomaApi
from requests import RequestException
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_HOST, CONF_PORT, Platform
from homeassis... | Python | 5 | MrDelik/core | homeassistant/components/soma/__init__.py | [
"Apache-2.0"
] |
#world {
point-transform: scale(2, 2);
image-filters: agg-stack-blu(2, 1);
}
| CartoCSS | 1 | nimix/carto | test/errorhandling/function_args.mss | [
"Apache-2.0"
] |
#include "autolink-elf-c-pragma-transitive.h"
#pragma comment(lib, "module")
| C | 0 | gandhi56/swift | test/IRGen/Inputs/autolink-elf-c-pragma.h | [
"Apache-2.0"
] |
# Copywrite (C) 2015 Jan Vaillant <jan.vaillant@zalf.de>
# Licensed under the MIT licence
#optimize PMR across all cows: minimize total sum of (relative) requirement violations
# set limits solutions 2
# set numerics feastol 0.001
set Feeds := { "GS", "MS", "SY", "WH" };
set Nutrients := { "NEL", "uCP"};
set FeedAttr... | Zimpl | 4 | jvail/diet | pmr_nlp_one_group.zpl | [
"MIT"
] |
--TEST--
JIT ASSIGN: Undef var notice promoted to exception
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
set_error_handler(function($_, $m) {
throw new Exception($m);
});
try {
$a = $b;
NOT_REACHED;
} catch ... | PHP | 4 | NathanFreeman/php-src | ext/opcache/tests/jit/assign_043.phpt | [
"PHP-3.01"
] |
--TEST--
Bug #77494 (Disabling class causes segfault on member access)
--EXTENSIONS--
curl
--INI--
disable_classes=CURLFile,ErrorException
--FILE--
<?php
$a = new CURLFile();
var_dump($a->name);
$b = new ErrorException();
var_dump($b->message);
?>
--EXPECTF--
Warning: CURLFile() has been disabled for security reasons i... | PHP | 3 | NathanFreeman/php-src | Zend/tests/bug77494.phpt | [
"PHP-3.01"
] |
#%RAML 1.0 Trait
description: |
Projection allows to limit number of fields in the response to the ones defined in the query parameter.
queryParameters:
projection?:
type: string
description: |
A projected values to return to the client.
Data from this field will be used to produce projected dat... | RAML | 4 | Acidburn0zzz/ChromeRestClient | Server API/traits/projected.raml | [
"Apache-2.0"
] |
import Distribution.Simple
main = defaultMain
| Haskell | 2 | avieth/bytehash | Setup.hs | [
"BSD-3-Clause"
] |
stroke 4
for i:0 to 15 step 1
scale map(wave(1000), 0,1,1.05,1.4)
rotate wave(10000)*90, 0,1,0
box
end
| Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_retro/3.cy | [
"MIT"
] |
<!--- Access Denied--->
| ColdFusion | 0 | fintecheando/RoomBooking | views/sessions/denied.cfm | [
"Apache-1.1"
] |
@import <Foundation/Foundation.j>
@import "CSGProgram.j"
@import "CSGBackend.j"
@import "CSGScriptViewer.j"
@import "CSGAppUIViewer.j"
@import "CSGEventListener.j"
@implementation CSGProject : CPObject <CPCoding>
{
CSGProgram program @accessors();
CPString name @accessors();
CPString appID @accessors();
... | Jasmin | 3 | gabrielcercel/calvin-base | calvinextras/CalvinGUI/CSGProject.j | [
"Apache-2.0"
] |
// Copyright 2017 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.
#include "textflag.h"
// Minimax polynomial coefficients and other constants
DATA ·cbrtrodataL9<> + 0(SB)/8, $-.00016272731015974436E+00
DATA ·cbrtrodataL9<> +... | GAS | 4 | SSSDNSY/go | src/math/cbrt_s390x.s | [
"BSD-3-Clause"
] |
/*
*
* Copyright 2016 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Objective-C++ | 4 | arghyadip01/grpc | src/objective-c/tests/CronetTests/CronetUnitTests.mm | [
"Apache-2.0"
] |
? my $ctx = $main::context;
? $_mt->wrapper_file("wrapper.mt", "Configure", "Using Mruby")->(sub {
<p>
<a href="https://github.com/mruby/mruby">mruby</a> is a lightweight implementation of the Ruby programming language.
With H2O, users can implement their own request handling logic using mruby, either to generate resp... | Mathematica | 4 | pldubouilh/h2o | srcdoc/configure/mruby.mt | [
"MIT"
] |
-- Copyright 2018 Stanford University
--
-- 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... | Rouge | 4 | elliottslaughter/regent-tutorial | Regions/5.rg | [
"Apache-2.0"
] |
- dashboard: campaign_performance
title: Campaign Performance
layout: newspaper
elements:
- name: Pulse Metrics
type: text
title_text: Pulse Metrics
subtitle_text: Current Snapshot of Performance this Quarter
row: 0
col: 0
width: 24
height: 2
- name: Progress
type: text
tit... | LookML | 4 | umesh0894/google_adwords | campaign_performance.dashboard.lookml | [
"MIT"
] |
.class public Lother/C;
.super Ltest/A;
.method public a()V
.locals 1
return-void
.end method
| Smali | 1 | Dev-kishan1999/jadx | jadx-core/src/test/smali/others/TestOverridePackagePrivateMethod/C.smali | [
"Apache-2.0"
] |
/*
Copyright © 2011-2013 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, m... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/core/rpc/core/ping_register.opa | [
"MIT"
] |
%
% This is an example on how to calculate and output the Jacobian matrix
% in COPASI
%
COPASI
MODEL_STRING = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n <!-- Created by COPASI version 4.5.31 (Debug) on 2010-05-11 13:40 with libSBML version 4.1.0-b3. -->\n <sbml xmlns=\"http://www.sbml.org/sbml/level2/version... | Octave | 5 | SzVarga/COPASI | copasi/bindings/octave/examples/example8.oct | [
"Artistic-2.0"
] |
# https://github.com/graphql/graphql-spec/blob/master/spec/Section%203%20--%20Type%20System.md#interfaces
interface Actor {
id: ID
name: String
}
interface Resource implements Node
{
id: ID!
url: String
}
interface Resource implements
Node {
id: ID!
url: String
}
interface Image implements Resource
& No... | GraphQL | 3 | mikoscz/prettier | tests/graphql/interface/interface.graphql | [
"MIT"
] |
;; Copyright (c) 2009-2015 Robert Virding
;;
;; 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 a... | LFE | 4 | rvirding/spell1 | src/lspell1.lfe | [
"Apache-2.0"
] |
"""
a = Foo.Bar
a |= Foo.Baz
a |= (Foo.Spam | Foo.Eggs)
b = Zeng.Bar
b &= Zeng.Baz
"""
a = Foo.Bar
a |= Foo.Baz
a |= (Foo.Spam | Foo.Eggs)
b = Zeng.Bar
b &= Zeng.Baz
| Boo | 1 | popcatalin81/boo | tests/testcases/parser/wsa/inplace-1.boo | [
"BSD-3-Clause"
] |
RANGEXP(X) ;Integer range expansion
NEW Y,I,J,X1,H SET Y=""
FOR I=1:1:$LENGTH(X,",") DO
.S X1=$PIECE(X,",",I) FOR Q:$EXTRACT(X1)'=" " S X1=$EXTRACT(X1,2,$LENGTH(X1)) ;clean up leading spaces
.SET H=$FIND(X1,"-")-1
.IF H=1 SET H=$FIND(X1,"-",(H+1))-1 ;If the first value is negative ignore that "-"
.IF H<0 SET Y=... | M | 3 | LaudateCorpus1/RosettaCodeData | Task/Range-expansion/MUMPS/range-expansion.mumps | [
"Info-ZIP"
] |
2018-12-13 18:41:58 -- irc: connecting to server #help/6667...
2018-12-13 18:41:58 =!= irc: address "#help" not found
2018-12-13 18:41:58 =!= irc: error: Name or service not known
2018-12-13 18:41:58 -- irc: reconnecting to server in 10 seconds
2018-12-13 18:42:08 -- irc: reconnecting to server...
2018-12-13 18:42:08 -... | IRC log | 1 | Brettm12345/dotfiles | weechat/logs/irc.server.irc.morethan.tv.weechatlog | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.