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 |
|---|---|---|---|---|---|
== Words ==
Include 2
img 1
item 3
pre 1
== Links ==
== Images ==
photo.jpg 1
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-collect/template-1.creole | [
"Apache-2.0"
] |
// Coding Rainbow
// Daniel Shiffman
// http://patreon.com/codingtrain
// Code for: https://youtu.be/JcopTKXt8L8
class Tree {
ArrayList<Branch> branches = new ArrayList<Branch>();
ArrayList<Leaf> leaves = new ArrayList<Leaf>();
Tree() {
for (int i = 0; i < 2000; i++) {
leaves.add(new Leaf());
} ... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_018_SpaceColonizer3D/Processing/CC_018_SpaceColonizer3D/Tree.pde | [
"MIT"
] |
#include "debug.eh"
#include "bgen.eh"
#include "econe.eh"
import "bgen"
import "cppHardcoded"
// tocheck: does it make any sense to support eC types specified as untemplated struct template classes?
// class FMFont : struct use to have a link member defined as public LinkElement link;
// it was mad... | eC | 3 | mingodad/ecere-sdk | bgen/src/cpp/genCPP.ec | [
"BSD-3-Clause"
] |
-- Load table 'sample_07'
sample_07 = LOAD 'sample_07' USING org.apache.hcatalog.pig.HCatLoader();
-- Compute the average salary of the table
salaries = GROUP sample_07 ALL;
out = FOREACH salaries GENERATE AVG(sample_07.salary);
DUMP out;
| PigLatin | 4 | sirishacodes/samplebranchtest | hcatalog/avg_salary.pig | [
"Apache-2.0"
] |
--TEST--
JIT: FETCH_OBJ 006
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
class Test {
readonly array $prop;
}
$test = new Test;
try {
throw new Exception;
} catch (Exception) {}
$appendProp2 = (function() {
$this->prop[] = 1;
})-... | PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/jit/fetch_obj_006.phpt | [
"PHP-3.01"
] |
// name: phaser.ck
// desc: demo of Faust chugin in action!
// instantiate and connect faust => ck
adc => Faust phaser => dac;
// evaluate Faust code
phaser.eval(`
process = dm.phaser2_demo ;
`);
// print the parameters of the Faust object
phaser.dump();
// time loop
while( true )
{
// advance time
100::ms =>... | ChucK | 4 | ccdarabundit/chugins | Faust/examples/phaser.ck | [
"MIT"
] |
$!
$ write sys$output "*** TEST DELETE FILE ***"
$!
$ create /dir test
$ copy *.dcl test /log
$ delete [.test]*.dcl /log
$ delete test /log
$!
$ write sys$output "*** TEST DELETE SYMBOL ***"
$!
$ s1 := test1
$ s2 :== test2
$ s3 = -1
$ s4 = 1
$ ... | Clean | 3 | MichelValentin/PC-DCL | examples/delete.dcl | [
"BSD-3-Clause"
] |
<mt:Ignore>
# =======================
#
# 記事ループ-メディア
#
# 使い方:
# <mt:Include module="記事ループ-メディア" tag="p" thumbnail="0" date="0" excerpt="0" />
#
# モディファイアの基本値:
# tag = h3
# thumbnail = 1
# date = 1
# excerpt = 1
#
# =======================
</mt:Ignore>
<mt:Unless name="tag">
<mt:SetVar name="tag" value... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/loop_media.mtml | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem i32.ctm:0x80 0x00000000 0x00000000 0x00163ec4 0x23450000
;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0x0b000200 0x86dd6030 0x00000008 0x11fffe80
;TEST_INIT_EXEC nfp-mem i32.ctm:0... | UnrealScript | 2 | pcasconnetronome/nic-firmware | test/datapath/pkt_ipv6_udp_x88.uc | [
"BSD-2-Clause"
] |
Grim = require 'grim'
path = require 'path'
_ = require 'underscore-plus'
etch = require 'etch'
describe "DeprecationCopView", ->
[deprecationCopView, workspaceElement] = []
beforeEach ->
spyOn(_, 'debounce').andCallFake (func) ->
-> func.apply(this, arguments)
workspaceElement = atom.views.getView... | CoffeeScript | 4 | davidbertsch/atom | packages/deprecation-cop/spec/deprecation-cop-view-spec.coffee | [
"MIT"
] |
#!/usr/bin/env dexec
print "hello world\n";
| Perl6 | 0 | docker-exec/perl6 | test/shebang.p6 | [
"MIT"
] |
DROP TABLE IF EXISTS ColumnsClauseTest;
CREATE TABLE ColumnsClauseTest (product_price Int64, product_weight Int16, amount Int64) Engine=TinyLog;
INSERT INTO ColumnsClauseTest VALUES (100, 10, 324), (120, 8, 23);
SELECT COLUMNS('product.*') from ColumnsClauseTest ORDER BY product_price;
DROP TABLE ColumnsClauseTest;
... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00969_columns_clause.sql | [
"Apache-2.0"
] |
use @pony_exitcode[None](code: I32)
trait T
class C1 is T
class C2 is T
actor Main
new create(env: Env) =>
foo[C2](C2)
fun foo[A: T](x: A) =>
iftype A <: C1 then
None
elseif A <: C2 then
@pony_exitcode(1)
end
| Pony | 3 | rtpax/ponyc | test/libponyc-run/iftype-else-if-true/main.pony | [
"BSD-2-Clause"
] |
<cfcomponent displayname="Controller" output="false">
<!---
Generate an (almost) unique name for the application in case there are multiple instances of the app
on the same server (i.e. different domains or subdomains).
--->
<cfset suffix = hash(getCurrentTemplatePath())>
<cfset suffix = reReplace(suffix, "[^... | ColdFusion CFC | 5 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/CFML/Application.cfc | [
"MIT"
] |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 5 | abhaikollara/tensorflow | tensorflow/core/grappler/graph_analyzer/hash_tools.h | [
"Apache-2.0"
] |
(assert (= (str.replaceall "abcdefabcdef" "bc" "xy") "axydefaxydef"))
(check-sat)
| SMT | 3 | mauguignard/cbmc | regression/smt2_strings/replace_all_const_sat/replace_all_const_sat.smt2 | [
"BSD-4-Clause"
] |
"""
Similarity Search : https://en.wikipedia.org/wiki/Similarity_search
Similarity search is a search algorithm for finding the nearest vector from
vectors, used in natural language processing.
In this algorithm, it calculates distance with euclidean distance and
returns a list containing two data for each vector:
... | Python | 5 | NavpreetDevpuri/Python | machine_learning/similarity_search.py | [
"MIT"
] |
namespace eval expectnmcu::xfer {
}
package require expectnmcu::core
# Open remote file `which` on `dev` in `mode` as Lua object `dfh`
proc ::expectnmcu::xfer::open { dev dfh which mode } {
::expectnmcu::core::send_exp_prompt ${dev} "${dfh} = nil"
::expectnmcu::core::send_exp_prompt ${dev} "${dfh} = file.open(\"$... | Tcl | 4 | galenzhao/nodemcu-firmware | tests/expectnmcu/xfer.tcl | [
"MIT"
] |
Gramatika
0 $accept: top $end
1 top: expr
2 expr: expr1
3 | '+' expr
4 | '-' expr
5 expr1: expr2
6 | expr1 '+' expr2
7 | expr1 '-' expr2
8 expr2: expr3
9 | expr2 '*' expr3
10 | expr2 '/' expr3
11 expr3: NUM
12 | '(' expr ')'
Termi... | Bison | 3 | YKG/y | testdata/ok/expr.y.bison | [
"BSD-3-Clause"
] |
#IF_NOT_DEFINED __PRIME_CONNMAN
#DEFINE __PRIME_CONNMAN
(***********************************************************)
(* FILE CREATED ON: 01/23/2016 AT: 21:43:16 *)
(***********************************************************)
(* FILE_LAST_MODIFIED_ON: 09/17/2016 AT: 22:36:05 *)
(**********... | NetLinx | 5 | marselle001/amx-snmp-library | prime-connman.axi | [
"MIT"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../../access/Ownable.sol";
import "../../crosschain/amb/CrossChainEnabledAMB.sol";
import "../../crosschain/arbitrum/CrossChainEnabledArbitrumL1.sol";
import "../../crosschain/arbitrum/CrossChainEnabledArbitrumL2.sol";
import "../../crosschain/optimism/C... | Solidity | 4 | ScopeLift/openzeppelin-contracts | contracts/mocks/crosschain/receivers.sol | [
"MIT"
] |
…
i0.ɵɵproperty("event", ctx.$event);
| JavaScript | 0 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_in_property_binding_template.js | [
"MIT"
] |
class ColumnSelect < Column
attr_reader :header
attr_writer :table
class ColumnSelectEvent
def initialize(event)
@event = event
end
def selected_row_number
event_current_element
class_names_string = @event_current_element.class_name
... | Opal | 4 | bcavileer/digest-rails | app/assets/javascripts/digest-rails/opal_lib/column_select.js.opal | [
"MIT"
] |
{{ .Site.Params.minNodeVersion }}
| HTML | 1 | ansky/gitea | docs/layouts/shortcodes/min-node-version.html | [
"MIT"
] |
=head1 NAME
SDL::Font - Parrot class representing fonts in Parrot SDL
=head1 SYNOPSIS
# load this library
load_bytecode 'SDL/Font.pir'
# create a new SDL::Font object
.local pmc font
font = new ['SDL'; 'Font']
font.'init'( 'font_file' => 'myfont.ttf', 'point_size' => 48 )
# draw tex... | Parrot Internal Representation | 5 | winnit-myself/Wifie | runtime/parrot/library/SDL/Font.pir | [
"Artistic-2.0"
] |
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o2> ] .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/blankNodePropertyList_as_object.ttl | [
"CC-BY-3.0"
] |
%% -*- prolog -*-
%%=============================================================================
%% Copyright (C) 2011 by Denys Duchier
%%
%% This program is free software: you can redistribute it and/or modify it
%% under the terms of the GNU Lesser General Public License as published by the
%% Free Software Foundati... | Prolog | 4 | ryandesign/yap | packages/gecode/3.6.0/gecode_yap_auto_generated.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
var content = "<%= for {type, message} <- get_flash(@conn), do: javascript_escape(render(LayoutView, "_flash.html", type: type, message: message)) %>";
u("header.header").append(content);
| HTML+EEX | 3 | PsOverflow/changelog.com | lib/changelog_web/templates/news_item_comment/create_failure.js.eex | [
"MIT"
] |
body,html{height:100%}body{font-family:'Open Sans',sans-serif;font-size:1.5em;padding-top:80px}
| CSS | 1 | 0x7c48/mitmproxy | test/mitmproxy/data/1.css | [
"MIT"
] |
source language/std.nu
| Nu | 1 | WindSoilder/nu_scripts | lib/scripts.nu | [
"MIT"
] |
a:after { content: '\1010101' } | CSS | 2 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/cFk0V1dktTRk2wWOux0Y9A/input.css | [
"Apache-2.0",
"MIT"
] |
Note 0
Copyright (C) 2018 Jonathan Hough. All rights reserved.
)
cocurrent 'jLearnText'
splitText=: <.@:-:@:[ (({ ,"0 _"_ 0 ([ I.@:~: i.@:#@:]) { ]) ])"_ 1 [ ]\ ]
NB. Get all pairs as word vectors of length #x
NB. y: sentences to split into pairs of words
NB. x: list of unique words in the dictionary.
getPairs=... | J | 4 | jonghough/jlearn | text/textencoding.ijs | [
"MIT"
] |
% Abstract given nonterminals from potential clones - C# block version
% Jim Cordy, May 2010
% Using C# grammar
include "csharp.grm"
% Redefinition for potential clones
redefine block
{ [IN] [NL]
[opt statement_list] [EX]
} [NL]
end redefine
define potential_clone
[block]
end define
% Generic abstract... | TXL | 3 | coder-chenzhi/SQA | SourcererCC/parser/java/txl/cs-abstract-blocks.txl | [
"Apache-2.0"
] |
# generated from colcon_core/shell/template/command_prefix.sh.em
@[for pkg_name, pkg_install_base in dependencies.items()]@
@{
import os
pkg_script = os.path.join(pkg_install_base, 'share', pkg_name, 'package.sh')
}@
. "@(pkg_script)"
@[end for]@
| EmberScript | 3 | brawner/colcon-core | colcon_core/shell/template/command_prefix.sh.em | [
"Apache-2.0"
] |
redo-ifchange vars
echo '"""Auto-generated file with git version information."""'
echo "# pylint: disable=bad-whitespace"
cat vars
| Stata | 2 | BlameJohnny/redo | redo/version/_version.py.do | [
"Apache-2.0"
] |
BITS 32
section .text
global main
main:
push byte 0x61
pop eax
cdq
push edx
inc edx
push edx
inc edx
push edx
push dword 0x0100007f
int 0x80
xchg eax, ebp
push word 0xffff
push dx
mov esi, esp
push byte 0x10
push esi
push ebp
push byte 0x62
pop eax
cdq
push edx
int 0x80
mov [esi - 4], byte 0... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/bsd/ia32/single_reverse_libinject.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
@namespace \6es 'path'; | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/IX2tz8hkGmrHq2cazP46_A/input.css | [
"Apache-2.0"
] |
## Description
This module attempts to gain root privileges by exploiting
a vulnerability in ktsuss versions 1.4 and prior.
The `ktsuss` executable is setuid `root` and does not drop
privileges prior to executing user specified commands,
resulting in command execution with `root` privileges.
## Vulnerable... | Markdown | 1 | OsmanDere/metasploit-framework | documentation/modules/exploit/linux/local/ktsuss_suid_priv_esc.md | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
if(NOT VTK_FOUND)
find_package(VTK QUIET NAMES vtk VTK)
if(VTK_FOUND)
if(NOT (VTK_VERSION VERSION_LESS "9.0.0") AND (VTK_VERSION VERSION_LESS "10.0.0")) # VTK 9.x
find_package(VTK 9 QUIET NAMES vtk COMPONENTS
FiltersExtraction
FiltersSources
FiltersTexture
... | CMake | 4 | xipingyan/opencv | cmake/OpenCVDetectVTK.cmake | [
"Apache-2.0"
] |
Print("Hello World"); | Tea | 0 | venusing1998/hello-world | r/richtea.tea | [
"MIT"
] |
.class LML;
.super Ljava/lang/Object;
.source "ML.java"
# direct methods
.method constructor <init>()V
.registers 1
.prologue
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method a()Ljava/lang/Object;
.registers 4
.prologue
.l... | Smali | 3 | Mrack/dex2jar | dex-translator/src/test/resources/smalis/ML.smali | [
"Apache-2.0"
] |
// MIT License
// Copyright (c) 2019-2021 bloc97
// All rights reserved.
// 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
// t... | GLSL | 5 | dvdvideo1234/Anime4K | glsl/Restore/Anime4K_Restore_CNN_VL.glsl | [
"MIT"
] |
/*
* Copyright 2005-2010 LAMP/EPFL
*/
// $Id$
package scala.tools.eclipse.contribution.weaving.jdt.ui;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.corext.util.JdtFlags;
import org.eclipse.jdt.internal.corext.... | AspectJ | 3 | dragos/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/ui/ScalaOverrideLabelAspect.aj | [
"BSD-3-Clause"
] |