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 |
|---|---|---|---|---|---|
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-cp1250
%%Version: 1.0 0
%%EndComments
/VIM-cp1250[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notde... | PostScript | 0 | uga-rosa/neovim | runtime/print/cp1250.ps | [
"Vim"
] |
stocks
load aapl
fa
fmp
h
help
?
q
fmp
..
..
fa
fmp
quit
fmp
home
stocks
load aal
fa
fmp
exit
| Gosu | 0 | minhhoang1023/GamestonkTerminal | scripts/test_stocks_fa_fmp_base.gst | [
"MIT"
] |
# Based on:
# Configure paths for LIBXML2
# Toshio Kuratomi 2001-04-21
# Adapted from:
# Configure paths for GLIB
# Owen Taylor 97-11-3
#
# Modified to work with libxslt by Thomas Schraitle 2002/10/25
# Fixed by Edward Rudd 2004/05/12
dnl AM_PATH_XSLT([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
d... | M4 | 4 | anivaros/libxslt | libxslt.m4 | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>index.html</title>
</head>
<body>
<script>
function reqListener () {
document.getElementById('result').innerHTML = this.responseText;
}
function test() {
var oReq = ne... | Smarty | 3 | namaljayathunga/nw.js | test/remoting/node-main/index_html.tpl | [
"MIT"
] |
.VRule {
height: 20px;
width: 1px;
border-left: 1px solid var(--color-border);
padding-left: 0.25rem;
margin-left: 0.25rem;
}
/**
* https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications
*/
.Input {
position: absolute !important;
height: 1px;
width: 1px;
overflow: h... | CSS | 3 | vegYY/react | packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.css | [
"MIT"
] |
import React from 'react';
import ReactDOM from 'react-dom';
import 'todomvc-common/base.css';
import 'todomvc-app-css/index.css';
import { inspect } from '@xstate/inspect';
inspect({
iframe: false
});
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
| JSX | 3 | Shermayster/xstate | examples/todo-mvc-react/src/main.jsx | [
"MIT"
] |
--TEST--
Bug #69084: Unclear error message when not implementing a renamed abstract trait function
--FILE--
<?php
trait Foo {
abstract public function doStuff();
public function main() {
$this->doStuff();
}
}
class Bar {
use Foo {
Foo::doStuff as doOtherStuff;
}
public functi... | PHP | 3 | thiagooak/php-src | Zend/tests/bug69084.phpt | [
"PHP-3.01"
] |
#!/bin/tcsh
set nl=4
set M=8
set N=8
echo nl=$nl
echo M=$M
echo N=$N
#compile fdtd-2d
chpl --fast fdtd-2d.chpl -o fdtd-2d
echo 'Cyclic (C)'
./fdtd-2d -nl $nl --dist=C --M=$M --N=$N --messages
./fdtd-2d -nl $nl --dist=C --M=$M --N=$N --timeit
echo 'Cyclic with modulo unrolling (CM)'
./fdtd-2d -nl $nl --dist=CM --M=$... | Tcsh | 4 | jhh67/chapel | test/users/aroonsharma/Stencil/dofdtd2dbench.tcsh | [
"ECL-2.0",
"Apache-2.0"
] |
INTERFACE zif_abapgit_gui_hotkeys
PUBLIC .
TYPES:
BEGIN OF ty_hotkey_with_descr,
ui_component TYPE string,
action TYPE string,
hotkey TYPE string,
description TYPE string,
END OF ty_hotkey_with_descr .
TYPES:
ty_hotkeys_with_descr TYPE STANDARD TABLE OF ty_hotkey_... | ABAP | 4 | Manny27nyc/abapGit | src/ui/core/zif_abapgit_gui_hotkeys.intf.abap | [
"MIT"
] |
int main() {
var test1 = new Test ();
var test2 = new Subdir.Test ();
var test3 = new Subdir2.Test ();
var test4 = new Subdir.Subdir2.Test ();
stdout.printf("Vala is working.\n");
return 0;
}
| Vala | 1 | kira78/meson | test cases/vala/22 same target in directories/prog.vala | [
"Apache-2.0"
] |
// NOLINT(namespace-envoy)
constexpr char TEST_NON_SPIFFE_SAN_CERT_256_HASH[] =
"f47a053ad90243ec948df601d156911b0aaf75c9474c989fddd4f6bca44cf692";
constexpr char TEST_NON_SPIFFE_SAN_CERT_1_HASH[] = "846c80075e0bf5261709e34d9e429a55fb6fd2c3";
constexpr char TEST_NON_SPIFFE_SAN_CERT_SPKI[] = "Xv64COw0ddwG6Ht4kW+hqYc... | C | 1 | dcillera/envoy | test/extensions/transport_sockets/tls/test_data/non_spiffe_san_cert_info.h | [
"Apache-2.0"
] |
# frozen_string_literal: true
class UuidItem < ActiveRecord::Base
end
class UuidValidatingItem < UuidItem
validates_uniqueness_of :uuid
end
| Ruby | 4 | mdesantis/rails | activerecord/test/models/uuid_item.rb | [
"MIT"
] |
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/ceil_div.h>
#include <ATen/NativeFunctions.h>
#include <ATen/CUDAFunctions.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/LaunchUtils.h>
#include <ATen/cud... | Cuda | 4 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/MultinomialKernel.cu | [
"Intel"
] |
// Package query provides functions meant to simplify common InfluxDB queries.
//
// The primary function in this package is `query.inBucket()`, which uses all
// other functions in this package.
//
// introduced: 0.60.0
//
package query
// fromRange returns all data from a specified bucket within given time bounds.
... | FLUX | 5 | geropl/flux | stdlib/experimental/query/from.flux | [
"MIT"
] |
variable "server_instance_type" {
# default = "c4.8xlarge"
}
variable "k3s_version" {
default = "v0.9.1"
type = string
description = "Version of K3S to install"
}
variable "k3s_server_args" {
default = ""
}
variable "prom_worker_node_count" {
default = 0
type = number
descriptio... | HCL | 4 | TReZ42/k3s | tests/perf/server/variables.tf | [
"Apache-2.0"
] |
require "compress/deflate"
require "digest/adler32"
# The Compress::Zlib module contains readers and writers of zlib format compressed
# data, as specified in [RFC 1950](https://www.ietf.org/rfc/rfc1950.txt).
module Compress::Zlib
NO_COMPRESSION = Compress::Deflate::NO_COMPRESSION
BEST_SPEED = Compre... | Crystal | 4 | mgomes/crystal | src/compress/zlib/zlib.cr | [
"Apache-2.0"
] |
; Los estados serán agentes
breed [estados estado]
estados-own
[
contenido ; Almecena el contenido del estado (el valor)
explorado? ; Indica si ha sido explorado o no
camino ; Almacena el camino para llegar a él
]
; Las transiciones se representarán como links
directed-link-breed [transiciones transicion]
t... | NetLogo | 5 | fsancho/IA | 02. Uninformed Search/QLearning - Hanoi.nlogo | [
"MIT"
] |
.new-comment,
.inlined-form
a.fa.fa-copy
float: right
position: relative
top: 20px
right: 6px
| Stylus | 3 | Knitter/wekan | client/components/main/editor.styl | [
"MIT"
] |
//##1. declare simple
def decare() {
a int: = 9 //Ref[int]
a2 int: //Ref[int]
b := 9 //Ref[int]
//b2 : //Ref[Object]
c int::=9 //Ref[Ref[int]]
c2 int::=9 //Ref[Ref[int]]
d ::=9 //Ref[Ref[int]]
//d2 :: //Ref[Ref[Object]]
}
~~~~~
//##1.b declare simple - check
def decare() {
a... | Augeas | 2 | michaeldesu/Concurnas | tests/com/concurnas/compiler/scopeAndType/ref.conc.aug | [
"MIT"
] |
20 5
0 1 3 1 2 3 [0] [0] [0]
1 1 4 14 7 5 4 [0] [6] [3] [5]
2 1 3 20 16 7 [6] [3] [-1]
3 1 4 20 16 4 8 [1] [8] [4] [11]
4 1 5 12 13 18 17 9 [4] [15] [4] [17] [-2]
5 1 2 18 15 [15] [-19]
6 1 2 8 19 [0] [-2]
7 1 6 2 20 1 10 9 11 [-7] [5] [-8] [8] [-2] [15]
8 1 4 13 10 9 12 [12] [-60] [7] [11]
9 1 4 19 3 17 5 [3... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_consumer_producer/ubo20_cum_2/psp20_75.sch | [
"Apache-2.0"
] |
#!/bin/bash
git clone https://github.com/bazad/threadexec.git
cd threadexec
git checkout 7c255d0a0d63464b82315d93a27dddc1d51b42d6
patch -p1 --forward < ../threadexec.diff
make
| Shell | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2020-9850/payload/sbx/build-threadexec.sh | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
(Please bear with me: I can't use any periods or commas or
hyphens in this introduction)
This is an implementation of CSS decryption in the Brainfuck
programming language
It consumes exactly 2053 bytes of input and produces exactly
2048 bytes of output: the input is the five byte title key
followed by a 2048 byte sec... | Brainfuck | 4 | RubenNL/brainheck | examples/css.bf | [
"Apache-2.0"
] |
#pragma once
#include "envoy/network/io_handle.h"
#include "envoy/network/socket.h"
#include "envoy/stream_info/filter_state.h"
namespace Envoy {
namespace Network {
/**
* Redirect records to be used in connections.
*/
class UpstreamSocketOptionsFilterState : public StreamInfo::FilterState::Object {
public:
Upst... | C | 5 | dcillera/envoy | source/common/network/upstream_socket_options_filter_state.h | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="xslt-import-depth-general.xsl"/>
<xsl:output method="html"/>
<xsl:template match="/page">
<html>
<head><title><xsl:value-of select="title"/></title></head>
<body><xsl:apply-te... | XSLT | 4 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/xslt-import-depth-page.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
0 train
1 test
2 test
3 train
4 train
5 train
6 test
7 train
8 eval
9 train
10 train
11 test
12 train
13 eval
14 train
15 test
16 train
17 test
18 train
19 test
20 train
21 eval
22 test
23 eval
24 train
25 train
26 train
27 train
28 test
29 train
30 eval
31 train
32 train
33 eval
34 eval
35 test
36 train
37 test
38 tra... | Mask | 0 | Sanzo00/NeutronStarLite | data/cora.mask | [
"Apache-2.0"
] |
zdrive debug level = 0
#Decomposition Method = hypergraph
Zoltan Parameters = lb_approach=partition
Zoltan Parameters = graph_package=phg
File Name = matlab
Parallel Disk Info = number=0
| Matlab | 1 | jschueller/seacas | packages/zoltan/src/matlab/zdrive.matlab | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"NetCDF",
"BSL-1.0",
"X11",
"BSD-3-Clause"
] |
query GetTeam($teamID: ID!) {
team(teamID: $teamID) {
id
name
teamMembers {
membershipID
user {
uid
email
}
role
}
}
}
| GraphQL | 4 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/queries/GetTeam.graphql | [
"MIT"
] |
_phing () {
if [ -f build.xml ]; then
compadd $(phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|grep -v "Warning:"|awk '{print $1}')
fi
}
compdef _phing phing
| Shell | 3 | chensanle/ohmyzsh | plugins/phing/phing.plugin.zsh | [
"MIT"
] |
// REQUIRES: concurrency
func simple(completion: @escaping (String?, Error?) -> Void) { }
func mismatches() {
// RUN: not %refactor -convert-call-to-async-alternative -dump-text -source-filename %s -pos=%(line+1):3
simple()
// RUN: not %refactor -convert-call-to-async-alternative -dump-text -source-filename %s... | Swift | 3 | gandhi56/swift | test/refactoring/ConvertAsync/errors.swift | [
"Apache-2.0"
] |
<style>
.demo-textfield__textfield-numeric .mdl-textfield {
width: 100px;
}
</style>
{% include "textfield-numeric.html" %}
| HTML | 2 | greatwqs/staffjoy | frontend/third_party/node/material_design_lite/textfield/snippets/textfield-numeric-demo.html | [
"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 ... | Arduino | 4 | XiaoSong9905/tvm | tests/micro/arduino/testdata/project.ino | [
"Apache-2.0"
] |
/**
* Copyright (c) 2021 OpenLens Authors
*
* 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, modify, merge, p... | SCSS | 4 | pjsoni/lens | src/renderer/components/vars.scss | [
"MIT"
] |
#include "colors.inc"
#include "stones.inc"
#include "skies.inc"
background { color rgb 1 }
camera {
location <-3, 3, -8>
look_at < -.3, .5, 0 >
angle 25
}
light_source { <500,500,-1000> White }
difference {
box { <-2.0, -.5, 0.1>, <2.0, .8, 1>
texture { T_Stone10 }
}
text { ttf "timrom.ttf" "Features" 0.... | POV-Ray SDL | 4 | frederic-tingaud-sonarsource/xania | html/gfx/features.pov | [
"BSD-2-Clause"
] |
import processing.video.*;
// Movie cam;
Capture cam;
// PImage bot;
int scl = 8;
int w, h;
PImage[] history;
int historyIndex = 0;
int offset = 0;
void setup() {
size(640, 480);
String[] cameras = Capture.list();
cam = new Capture(this, 640, 480,cameras[1]);
cam.start();
w = width/scl;
h = height/scl;
... | Processing | 3 | vinnyI-afk/website | CodingChallenges/CC_164_Slitscan/Processing/Time_Grid/Time_Grid.pde | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M9.83,8l1.17,0l... | XML | 3 | semoro/androidx | compose/material/material/icons/generator/raw-icons/twotone/file_upload.xml | [
"Apache-2.0"
] |
namespace OpenAPI
open OpenAPI.Model.User
open UserApiHandlerParams
open UserApiServiceInterface
open System.Collections.Generic
open System
open Giraffe
module UserApiServiceImplementation =
//#region Service implementation
type UserApiServiceImpl() =
interface IUserApiService with
... | F# | 4 | JigarJoshi/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/impl/UserApiService.fs | [
"Apache-2.0"
] |
Strict
Import mojo
Class Tween
Private
Field active:Bool
Field target:Float
Field ease:EaseFunction
Field t:Float
Field lastTime:Int
Field time:Int
Public
Method New(duration:Float, ease:EaseFunction = Null)
target = duration
Self.ease = ease
t = 0
End Method
Method Update:Void()
If ( N... | Monkey | 4 | blitz-research/monkey | bananas/devolonter/matchup/src/tweening.monkey | [
"Zlib"
] |
CREATE TABLE `tb_ctxyxxbpqn` (
`col_mpmyypobxf` longblob,
`col_vdicnalzyn` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`col_vdicnalzyn`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tb_uasvccezbb` (
`col_mpmyypobxf` longblob,
`col_vdicnalzyn` timestamp NOT NUL... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/table/mysql_3.sql | [
"Apache-2.0"
] |
- page_title _("Applications")
= render 'shared/doorkeeper/applications/index',
oauth_applications_enabled: user_oauth_applications?,
oauth_authorized_applications_enabled: true,
form_url: doorkeeper_submit_path(@application),
application_url: ->(application) { oauth_application_path(ap... | Haml | 3 | glimmerhq/glimmerhq | app/views/doorkeeper/applications/index.html.haml | [
"MIT"
] |
"""Tests for the folder_watcher component."""
| Python | 0 | domwillcode/home-assistant | tests/components/folder_watcher/__init__.py | [
"Apache-2.0"
] |
"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 | good-gym/material-ui | packages/material-ui-icons/lib/ToysRounded.js | [
"MIT"
] |
# aliases
alias hga='hg add'
alias hgc='hg commit'
alias hgca='hg commit --amend'
alias hgci='hg commit --interactive'
alias hgb='hg branch'
alias hgba='hg branches'
alias hgbk='hg bookmarks'
alias hgco='hg checkout'
alias hgd='hg diff'
alias hged='hg diffmerge'
alias hgp='hg push'
alias hgs='hg status'
alias hgsl='hg ... | Shell | 3 | residwi/ohmyzsh | plugins/mercurial/mercurial.plugin.zsh | [
"MIT"
] |
-- name: create-table-logs
CREATE TABLE IF NOT EXISTS logs (
log_id SERIAL PRIMARY KEY
,log_data BYTEA
);
| SQL | 3 | sthagen/drone-drone | store/shared/migrate/postgres/files/007_create_table_logs.sql | [
"Apache-2.0"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_dummy
_dummy_ret
ret
COG_BSS_START
fit 496
org COG_BSS_START
fit 496
| Parrot Assembly | 1 | archivest/spin2cpp | Test/Expect/stest001.pasm | [
"MIT"
] |
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule SwaggerPetstore.Model.EnumTest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"enum_string",
:"enum_string_requir... | Elixir | 4 | Nirostar/swagger-codegen | samples/client/petstore/elixir/lib/swagger_petstore/model/enum_test.ex | [
"Apache-2.0"
] |
configuration AccelReadStreamP
{
provides {
interface ReadStream<uint16_t> as ReadStreamX[uint8_t client];
interface ReadStream<uint16_t> as ReadStreamY[uint8_t client];
}
uses {
interface ReadStream<uint16_t> as ActualX[uint8_t client];
interface ReadStream<uint16_t> as ActualY[uint8_t client];
... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/sensorboards/mts300/AccelReadStreamP.nc | [
"BSD-3-Clause"
] |
INSERT INTO BAR(id, name) VALUES (1, 'bar');
INSERT INTO BAR(id, name) VALUES (2, 'ばー');
| SQL | 3 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot-autoconfigure/src/test/resources/org/springframework/boot/autoconfigure/jdbc/encoding-data.sql | [
"Apache-2.0"
] |
Module: environment-protocols
Synopsis: Protocol-level abstract descriptions of restarts and their
invocation.
Author: Paul Howard (Not the owner of this library!)
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See Licen... | Dylan | 5 | kryptine/opendylan | sources/environment/protocols/restart-objects.dylan | [
"BSD-2-Clause"
] |
#region DEFINES
STATIC DEFINE VIEWERDLG_BTNOK := 101
STATIC DEFINE VIEWERDLG_INFO := 100
STATIC DEFINE VIEWERDLG_SIZER := 102
#endregion
CLASS MailIDsDialog INHERIT ViewerDlg
METHOD PostInit(oParent,uExtra)
SUPER:PostInit()
SELF:Size := Dimension{250,300}
SELF:Caption := "Mail IDs"
SELF:TextValue := uE... | xBase | 4 | JohanNel/XSharpPublic | Samples/VOExporterExamples/Before/Email/WINDOW Viewer.prg | [
"Apache-2.0"
] |
struct LLVM::ParameterCollection
include Indexable(LLVM::Value)
def initialize(@function : Function)
end
def size
@function.function_type.params_size
end
def to_a
param_size = size()
Array(LLVM::Value).build(param_size) do |buffer|
LibLLVM.get_params(@function, buffer.as(LibLLVM::ValueR... | Crystal | 4 | jessedoyle/crystal | src/llvm/parameter_collection.cr | [
"Apache-2.0"
] |
(module
(type $none_=>_none (func))
(memory $0 1)
(data (i32.const 1036) ",")
(data (i32.const 1048) "\01\00\00\00\1a\00\00\00r\00e\00t\00a\00i\00n\00-\00i\003\002\00.\00t\00s")
(export "memory" (memory $0))
(start $~start)
(func $~start
(local $0 i32)
i32.const -128
local.set $0
loop $for-loop|0
loca... | WebAssembly | 3 | romdotdog/assemblyscript | tests/compiler/retain-i32.optimized.wat | [
"Apache-2.0"
] |
extends ImageEffect
onready var type_option_button : OptionButton = $VBoxContainer/HBoxContainer2/TypeOptionButton
onready var angle_hslider : HSlider = $VBoxContainer/AngleOptions/AngleHSlider
onready var angle_spinbox : SpinBox = $VBoxContainer/AngleOptions/AngleSpinBox
onready var wait_apply_timer = $WaitApply
onr... | GDScript | 4 | alicerunsonfedora/Pixelorama | src/UI/Dialogs/ImageEffects/RotateImage.gd | [
"MIT"
] |
// test-ping-userlevel.click
// This configuration tests the FromDevice and ToDevice elements by sending
// pings to host 8.8.8.8 (Google Public DNS) via 'eth0'. Change the
// 'define' statement to use another device or address, or run e.g. "click
// test-ping.click DEV=eth1" to change a parameter at the command line... | Click | 5 | MacWR/Click-changed-for-ParaGraph | conf/test-ping-userlevel.click | [
"Apache-2.0"
] |
#!/bin/bash
Uhost="localhost"
Udata="cms_db"$RANDOM
Uname="cms_u"$RANDOM
Upawd="cms_p"$RANDOM
Uinitpj="no"
Uinitdb="no"
Uinitht="no"
while getopts "h:n:u:p:edi" opt
do
case $opt in
h)
Uhost=$OPTARG;;
n)
Udata=$OPTARG;;
u)
Uname=$OPTARG;;
p)
Upawd=$OPTARG;;
e)
Uinitpj="yes";;
d)
... | Myghty | 4 | simrb/cms2 | .myt | [
"MIT"
] |
# just an example of transpilation w/ sourcemap -
# `test.coffee` is not directly transpiled/executed by any test code
# regenerate JS + sourcemap with `coffee -c -m test.coffee`
setTimeout ->
window
foo = "#{window.top.foo}"
, 1000
| CoffeeScript | 4 | mm73628486283/cypress | packages/rewriter/test/fixtures/test.coffee | [
"MIT"
] |
// This previously triggered an ICE.
pub(in crate::r#mod) fn main() {}
//~^ ERROR failed to resolve: maybe a missing crate `r#mod`
| Rust | 1 | Eric-Arellano/rust | src/test/rustdoc-ui/issue-61732.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/* Old-style comment. */
// New-style comment.
typedef float foo_t;
#ifndef ZERO
#define ZERO (0.0)
#endif
#define FOO(x) ((x) + \
ZERO)
__kernel
void foo(__global const foo_t * x, __local foo_t y, const uint n)
{
barrier(CLK_LOCAL_MEM_FENCE);
if (n > 42) {
*x += y;
}
}
| OpenCL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/OpenCL/sample.cl | [
"MIT"
] |
@0x9bbc59b4f632f2e3;
struct Bar {}
| Cap'n Proto | 1 | bbqsrc/capnproto-rust | capnpc/test/schema-with-src-prefix/test-in-src-prefix-dir.capnp | [
"MIT"
] |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | OpenCL | 5 | thisisgopalmandal/opencv | modules/imgproc/src/opencl/pyr_down.cl | [
"BSD-3-Clause"
] |
<!--
Copyright 2010 WebDriver committers
Copyright 2010 Google 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 la... | HTML | 4 | weilandia/selenium | javascript/ie-driver/test/locator_test.html | [
"Apache-2.0"
] |
<foo> | Latte | 0 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/ws-not-error.latte | [
"Apache-2.0"
] |
user@host:~/path$ ls -a
. .. a b c
user@host:~/path$ diff -u a b
--- a 2008-07-26 17:10:07.000000000 -0700
+++ b 2008-07-26 17:10:10.000000000 -0700
@@ -1,3 +1,3 @@
a
-b
+x
c
user@host:~/path$ echo \
> a
a
user@host:~/path$ su
root@host:~#
sh-3.1$ # on hardy
sh$ # on etch
(virtualenv-name)user@host:~$ ls -a
| ShellSession | 3 | drnic/gitlabhq | vendor/cache/pygments.rb-2cada028da50/vendor/pygments-main/tests/examplefiles/example.sh-session | [
"MIT"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
// Copyright (C) 2014, Itseez, Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
... | OpenCL | 4 | artun3e/opencv | modules/imgproc/src/opencl/hough_lines.cl | [
"BSD-3-Clause"
] |
/****************************************************************************
*
* (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 | vincentdavoust/qgroundcontrol | src/ui/toolbar/MainToolBarIndicators.qml | [
"Apache-2.0"
] |
module B (module B, module A) where
import A
y = 1
| PureScript | 1 | andys8/purescript | tests/purs/failing/ImportHidingModule/B.purs | [
"BSD-3-Clause"
] |
integer isSitting = FALSE;
key botID;
default
{
state_entry()
{
//This creates a bot in the sim with the given name, outfit at the given start position.
botID = botCreateBot("Test", "Bot", "", llGetPos(), BOT_CREATE_DEFAULT);
}
touch_start(integer n)
{
if(!isSitting)
... | LSL | 4 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Sitting on Objects.lsl | [
"BSD-3-Clause"
] |
#!/bin/sh /usr/share/dpatch/dpatch-run
## 07-cdrkit-code.dpatch by Daniel Baumann <daniel@debian.org>
##
## DP: Update any cdrtools related information in the code to cdrkit.
@DPATCH@
diff -Naurp dvd+rw-tools-7.1.orig/growisofs.c dvd+rw-tools-7.1/growisofs.c
--- dvd+rw-tools-7.1.orig/growisofs.c 2008-04-01 09:08:58.0... | Darcs Patch | 3 | mtdcr/opendreambox | meta-opendreambox/recipes-multimedia/dvd+rw-tools/files/08-cdrkit-code.dpatch | [
"MIT"
] |
{
"Version" : 0.2,
"ModuleName" : "Test3D",
"Options" : {
"Warnings" : "All",
"MemoryGuard" : false,
"Profile" : false,
"StrictNameSpaces" : false,
"TargetType" : "Executable",
"TargetFileName" : "Test3D",
"Libraries" : [
"ecere"
],
"Console" : fal... | Ecere Projects | 2 | N-eil/ecere-sdk | samples/3D/Test3D/Test3D.epj | [
"BSD-3-Clause"
] |
#!/usr/bin/env wisp
(def express (require "express"))
(def expressws (require "express-ws"))
(def fs (require "fs"))
(let [app (express)
ews (expressws app)
port (or (aget process.env "PORT") 8000)
host (or (aget process.env "BIND_ADDRESS") "127.0.0.1")]
(app.get "/"
(fn [req res]
... | wisp | 4 | namsral/piku | examples/nodejs-wisp/index.wisp | [
"MIT"
] |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "clustering/immediate_consistency/remote_replicator_metadata.hpp"
RDB_IMPL_SERIALIZABLE_2_FOR_CLUSTER(
remote_replicator_client_intro_t,
streaming_begin_timestamp, ready_mailbox);
RDB_IMPL_SERIALIZABLE_6_FOR_CLUSTER(
remote_replicator_client_b... | C++ | 2 | zadcha/rethinkdb | src/clustering/immediate_consistency/remote_replicator_metadata.cc | [
"Apache-2.0"
] |
# Based on the "Example Storage Allocator" from chapter 8 of K&R Second Edition
var malloc;
var free;
var realloc;
include "stdio.sl";
include "stdlib.sl";
include "sys.sl";
# return a pointer to "sz" words of unused memory
var sbrk = func(sz) {
var oldtop = TOP;
var newtop = TOP + sz;
if (newtop ge osba... | Slash | 5 | jes/scamp-cpu | sys/lib/malloc.sl | [
"Unlicense"
] |
--IMPORT parse-schema-string.sql
| SQL | 0 | kesavanvt/spark | sql/core/src/test/resources/sql-tests/inputs/ansi/parse-schema-string.sql | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
Rebol [
Title: "Test HTTPD Scheme"
Date: 02-Jul-2020
Author: "Oldes"
File: %test-httpd.r3
Version: 0.6.0
Note: {
To test POST method from Rebol console, try this:
```
write http://localhost:8081 {msg=hello}
write http://localhost:8081 [post [user-agent: "bla"] "hello"]
```
}
]
secure [%../modules/ all... | Rebol | 5 | 0branch/r3 | src/tests/test-httpd.r3 | [
"Apache-2.0"
] |
unit bzlib;
{
Inno Setup
Copyright (C) 1997-2010 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
Declarations for some bzlib2 functions & structures
$jrsoftware: issrc/Projects/bzlib.pas,v 1.14 2010/09/07 03:09:36 jr Exp $
}
interface
uses... | Pascal | 5 | Patriccollu/issrc | Projects/bzlib.pas | [
"FSFAP"
] |
open util/ordering[State]
open util/integer
/*Define Players*/
abstract sig Prisoner {}
sig OtherPrisoner extends Prisoner{}
one sig CounterPrisoner extends Prisoner {}
one sig NULL{}
fact { Prisoner = OtherPrisoner
+ CounterPrisoner }
fact { #Prisoner > 1 }
/*Define Boolean*/
abstract sig Bool{}
one sig True ex... | Alloy | 5 | c-luu/alloy-specs | puzzles/prisoner-room-visit/prisoner.als | [
"Apache-2.0"
] |
package com.baeldung.hibernate.criteriaquery;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "students")
public class Student {
@... | Java | 4 | DBatOWL/tutorials | persistence-modules/hibernate-queries/src/main/java/com/baeldung/hibernate/criteriaquery/Student.java | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | CSS | 3 | sbj42/vscode | src/vs/workbench/contrib/timeline/browser/media/timelinePane.css | [
"MIT"
] |
// Copyright 2013 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.
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <process.h>
#include "_cgo_export.h"
__stdcall
static unsigned int
addThread(void *p)
{
int i, max;
... | C | 4 | Havoc-OS/androidprebuilts_go_linux-x86 | misc/cgo/test/cthread_windows.c | [
"BSD-3-Clause"
] |
(:~
: The user interface module, containing most of the code that deals
: with user requests and responses served to the user.
:)
module namespace ui="de/bottlecaps/railroad/xq/user-interface.xq";
import module namespace c="de/bottlecaps/railroad/xq/color.xq";
import module namespace style="de/bottlecaps/railroad/x... | XQuery | 5 | bannmann/rr | src/main/resources/de/bottlecaps/railroad/xq/user-interface.xq | [
"Apache-2.0"
] |
/*
* "streamable kanji code filter and converter"
* Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
*
* LICENSE NOTICES
*
* This file is part of "streamable kanji code filter and converter",
* which is distributed under the terms of GNU Lesser General Public
* License (version 2) as published by th... | C | 4 | thiagooak/php-src | ext/mbstring/libmbfl/filters/cp932_table.h | [
"PHP-3.01"
] |
# Copyright (c) 2019 The Fyde OS Authors. All rights reserved.
# Distributed under the terms of the BSD
EAPI="5"
inherit appid
DESCRIPTION="empty project"
HOMEPAGE="https://fydeos.io"
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_install() {
doappid "{AAE6576... | Gentoo Ebuild | 3 | rovinyu/chromium_os_for_raspberry_pi | overlay-rpi4-fydeos/chromeos-base/device-appid/device-appid-0.0.2.ebuild | [
"BSD-2-Clause"
] |
#include "clustering/administration/main/path.hpp"
#include "errors.hpp"
#include <boost/tokenizer.hpp>
static const char *const unix_path_separator = "/";
path_t parse_as_path(const std::string &path) {
path_t res;
res.is_absolute = (path[0] == unix_path_separator[0]);
typedef boost::tokenizer<boost::c... | C++ | 4 | zadcha/rethinkdb | src/clustering/administration/main/path.cc | [
"Apache-2.0"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
@0xadb1cec69aebda21;
struct Animal {
colours @0 :List(Text);
name @1 :Text;
}
| Cap'n Proto | 4 | mrpotes/go-raml | codegen/capnp/fixtures/struct/vanilla/Animal.capnp | [
"BSD-2-Clause"
] |
import { generateUtilityClasses, generateUtilityClass } from '@mui/base';
export interface FilledInputClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if color secondary. */
colorSecondary: string;
/** Styles applied to the root element unless `disable... | TypeScript | 5 | qwaszx7003/material-ui | packages/mui-material/src/FilledInput/filledInputClasses.ts | [
"MIT"
] |
#!/bin/bash
# Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Shell | 4 | tsheaff/keras | keras/kokoro/github/ubuntu/gpu/build.sh | [
"Apache-2.0"
] |
require go-cross.inc
require go-${PV}.inc
| BitBake | 0 | cmonr/meta-pelion-edge | recipes-devtools/go/go-cross_1.14.bb | [
"Apache-2.0"
] |
stocks
options
load aapl
exp 0
payoff
list
pick long
add 20
add 15
add 10 -p
sop
plot
exit | Gosu | 1 | minhhoang1023/GamestonkTerminal | scripts/test_stocks_options_payoff.gst | [
"MIT"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLPreElement : HTMLElement {
// also has obsolete members
};
partial interface HTMLPreElement {
[CEReactions, Reflect] attribute long width;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLPreElement.webidl | [
"MIT"
] |
public org.apache.skywalking.oap.server.core.storage.StorageData storage2Entity(java.util.Map dbMap) {
${metricsClassPackage}${metricsName}Metrics metrics = new ${metricsClassPackage}${metricsName}Metrics();
<#list fieldsFromSource as field>
<#if field.typeName == "long" || field.typeName == "int" || field.typeName... | FreeMarker | 3 | iIdiomatic/skywalking | oap-server/oal-rt/src/main/resources/code-templates/metrics-builder/storage2Entity.ftl | [
"Apache-2.0",
"BSD-3-Clause"
] |
browserify = require 'browserify'
b = browserify(extensions: ['.pogo'])
b.transform 'pogoify'
glob = require 'glob'
specs = glob './test/*Spec.*' ^!.concat (glob './test/parser/*Spec.*' ^!)
for each @(spec) in (specs)
b.add (spec)
b.bundle().pipe(process.stdout)
| PogoScript | 2 | featurist/pogoscript | tools/bundlePogoTests.pogo | [
"BSD-2-Clause"
] |
// compile
// Copyright 2015 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.
// Issue 10654: Failure to use generated temps
// for function calls etc. in boolean codegen.
package main
var s string
func main() {
if (s == "... | Go | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | test/fixedbugs/issue10654.go | [
"BSD-3-Clause"
] |
{
"name": "nw",
"main": "index.html",
"nodejs": true,
"node-remote": [
"http://localhost:{port}/"
],
"window": {
"width": 1280,
"height": 720,
"resizable": true,
"fullscreen": false
}
}
| Smarty | 3 | frank-dspeed/nw.js | test/sanity/issue7182-cors/package.json.tpl | [
"MIT"
] |
/******************************************************************************
Copyright (c) 2015 by SAS Institute Inc., Cary, NC 27513 USA
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:... | SAS | 5 | mikiec84/enlighten-apply | SAS_Neural_PatternRecognition/digit_classifier_advanced.sas | [
"Apache-2.0"
] |
'reach 0.1';
'use strict';
const f = (x, y, ...args) => {
return (x + y + args.length); };
assert(f(1,2) == 3);
assert(f(1,2,3) == 4);
assert(f(1,2,3,4) == 5);
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/y/rest-empty.rsh | [
"Apache-2.0"
] |
--TEST--
Bug #65236 (heap corruption in xml parser)
--EXTENSIONS--
xml
--FILE--
<?php
xml_parse_into_struct(xml_parser_create_ns(), str_repeat("<blah>", 1000), $a);
echo "Done\n";
?>
--EXPECTF--
Warning: xml_parse_into_struct(): Maximum depth exceeded - Results truncated in %s on line %d
Done
| PHP | 1 | NathanFreeman/php-src | ext/xml/tests/bug65236.phpt | [
"PHP-3.01"
] |
extends /templates/base
block content
div
ol.breadcrumb
li
a(href="/editor", data-i18n="editor.main_title") CodeCombat Editors
li
a(href="/editor/course", data-i18n="editor.course_title") Course Editor
li.active
| #{view.course.get('name')}
- var authorized = !me.get(... | Jade | 3 | cihatislamdede/codecombat | app/templates/editor/course/edit.jade | [
"CC-BY-4.0",
"MIT"
] |
new class BitonicSort {
new classmethod greaterPowerOfTwoLessThan(n) {
for k = 1; k < n; k <<= 1 {}
return k >> 1;
}
new classmethod compare(array, a, b, dir) {
if dir {
if array[a] > array[b] {
array[a].swap(array[b]);
}
} else {
... | Opal | 4 | thatsOven/sorting-visualizer | sorts/BitonicSort.opal | [
"MIT"
] |
fileFormatVersion: 2
guid: 566745c65b224919bb9886aba499be67
timeCreated: 1606459889 | Unity3D Asset | 0 | samisuleman10/open-project-1 | UOP1_Project/Assets/Scripts/EditorTools/Editor/ReplaceObject_ContextualHierarchy/ReplacePrefabSearchPopup.cs.meta | [
"Apache-2.0"
] |
{
json5A: 5,
// some comment
d: {
json5e: 1,
},
}
| JSON5 | 1 | MDemetrio/style-dictionary | __tests__/__json_files/shallow/3.json5 | [
"Apache-2.0"
] |
// check-pass
fn check(list: &[u8]) {
match list {
&[] => {},
&[_u1, _u2, ref _next @ ..] => {},
&[_u1] => {},
}
}
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-37598.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.