content stringlengths 10 1.02M | lang stringclasses 87
values | size int64 10 1.02M | ext stringclasses 189
values | max_stars_count int64 1 82k ⌀ | avg_line_length float64 1.89 277k | max_line_length int64 1 417k | alphanum_fraction float64 0.1 1 |
|---|---|---|---|---|---|---|---|
# started voornamen-update-28877-2d1ac8ebd0605d749de79ebdf03b52091a8fc8b05a6ae0f0816150b0e9c13189 at 2018-12-27T15:06:47+00:00
PREFIX person: <http://www.w3.org/ns/person#>
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/personen/e55a2281-f707-4b10-832f-2faa1b55084f> <http://data.vl... | SPARQL | 20,380 | sparql | 4 | 42.458333 | 183 | 0.605201 |
%{
%{
Ace Matlab demo
%}
%}
classdef hello
methods
function greet(this)
disp('Hello!') % say hi
end
end
end
% transpose
a = [ 'x''y', "x\n\
y", 1' ]' + 2' | Matlab | 203 | matlab | 17,323 | 11.941176 | 33 | 0.44335 |
-- fmGUI_ManageDb_GoToTab_Fields({})
-- Erik Shagdar, NYHTC
-- Go to the "Fields" tab of manage database
(*
HISTORY:
1.4 - 2016-06-30 ( eshagdar ): use fmGUI_ManageDb_GoToTab(prefs) handler. Renamed from 'fmGUI_ManageDb_FieldsTab' to 'fmGUI_ManageDb_GoToTab_Fields'
1.3 - 2016-03-18 ( eshagdar ): use reference to ta... | AppleScript | 915 | applescript | 1 | 21.785714 | 149 | 0.696175 |
/-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import logic.basic tactic.solve_by_elim tactic.hint
namespace tactic
open expr
open tactic.interactive ( casesm constructor_matching )
/--
find all assumptions of the ... | Lean | 8,517 | lean | null | 36.242553 | 95 | 0.527181 |
'Option Base 1
Private Function gauss_eliminate(a As Variant, b As Variant) As Variant
Dim n As Integer: n = UBound(b)
Dim tmp As Variant, m As Integer, mx As Variant
For col = 1 To n
m = col
mx = a(m, m)
For i = col + 1 To n
tmp = Abs(a(i, col))
If tmp > mx T... | Visual Basic | 1,772 | vba | 1 | 30.551724 | 250 | 0.424379 |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 app... | Kotlin | 1,769 | kt | null | 31.035088 | 97 | 0.734313 |
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fn" uri="http://ja... | Java Server Pages | 387,434 | jsp | null | 53.218956 | 438 | 0.502713 |
/** @file mpoly-ginac.cpp
*
* This file implements several functions that work multivariate polynomials.
*/
/*
* GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany
* (C) 2016 Ralf Stephan
*
* This program is free software; you can redistribute it and/or modify
* it un... | C++ | 8,686 | cpp | 1,742 | 30.055363 | 84 | 0.615819 |
USE FlyWithButchOhareDB_Copy;
INSERT INTO wordFlightSponsors (sponsor_id, sponsor_name) VALUES
(1, 'Argo Tea'),
(2, 'Auntie Annes'),
(3, 'Brookstone'),
(4, 'BSmooth'),
(5, 'Burrito Beach'),
(6, 'Chicago Sports'),
(7, 'CNN'),
(8, 'Coach'),
(9, 'Dunkin Donuts'),
(10, 'Duty Free Store'),
(11, 'Field'),
(12, 'Hudson'),
(1... | SQL | 494 | sql | 1 | 22.454545 | 64 | 0.631579 |
// (c) Copyright 1995-2021 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 3,576 | veo | null | 47.052632 | 74 | 0.743009 |
/*
* Copyright 2019-2020, Offchain Labs, 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 ... | Solidity | 10,187 | sol | null | 24.025943 | 88 | 0.525572 |
package org.grails.datastore.bson.codecs.encoders
import groovy.transform.CompileStatic
import org.bson.BsonWriter
import org.grails.datastore.mapping.model.PersistentProperty
import org.grails.datastore.bson.codecs.temporal.InstantBsonConverter
import java.time.Instant
import static org.grails.datastore.bson.codecs... | Groovy | 664 | groovy | null | 27.666667 | 81 | 0.795181 |
Shader "Debug/Texcoord 0"
{
Properties
{
_DebugUvGrid("", 2D) = "" {}
}
SubShader
{
Tags
{
"Queue" = "Geometry"
"Lightmode" = "Always"
}
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
uniform sampler2D _DebugUvGrid;
struct v... | GLSL | 830 | shader | null | 14.821429 | 58 | 0.619277 |
module Test_ssh_config =
let host = Ssh_config.host
let anything_but_host = Ssh_config.anything_but_host
let toplevel_stanza = Ssh_config.toplevel_stanza
let host_stanza = Ssh_config.host_stanza
let lns = Ssh_config.lns
test [host] get "Host *\n" =
{ "Host" = "*" }
test [host] get "... | Augeas | 7,409 | aug | 1 | 38.790576 | 109 | 0.585234 |
1 7 9 33 30 11 7 50 49 12 27 34 24 19 1 23 35 29 6 6 20 8 45 19 16 44 1 25 12 4 43 40 42 27 41 46 28 8 15 44 17 22 3 4 42 3 49 15 23 43 50 24 23 32 48 25 45 5 28 19 22 13 35 42 24 32 8 7 8 4 47 12 24 47 4 25 45 41 43 32
33 35 27 25 2 20 16 3 29 18 10 29 41 14 35 49 2 23 16 40 16 12 45 8 28 12 10 31 4 41 35 33 19 14 7 1... | Matlab | 15,926 | matlab | null | 173.108696 | 231 | 0.512181 |
(require 'xmls)
(require 'arrow-macros)
(require 'cl-ppcre)
(import 'arrow-macros::->)
(import 'arrow-macros::->>)
(defparameter *word-pat*
(format nil "^[~A-~A]+$"
(code-char #x0E80)
(code-char #x0EFF)))
(defparameter *tr-line-match-pat* "\\*\\{\\{([a-z][a-z])\\}\\}: (.+)")
(defparameter *cat... | Common Lisp | 3,106 | lisp | null | 32.354167 | 79 | 0.534771 |
initialAccounts = [['bill', 'bill.png'], ['gilan', 'gilan.png'], ['roy'], ['rotem'], ['shlomi']]
init = ->
maze = new Meteor.Collection 'maze'
# for now, always toast the database on start
maze.remove {}
map = JSON.parse Assets.getText 'map2.json'
map._id = 'world'
maze.inse... | Literate CoffeeScript | 912 | litcoffee | null | 30.4 | 100 | 0.517544 |
module.exports = {
restrictToAdmin: function(req, res, next) {
req.currentUser.checkAdmin(function(isAdmin) {
if (isAdmin)
next();
else
res.render('forbidden', {status: 403,
message: 'Forbidden',
title: 'Access Forbidde... | JavaScript | 786 | js | 1 | 30.230769 | 59 | 0.446565 |
grammar BQParser;
start : (island | water)*? ;
island
: bqcomposite
| LMETAQUOTE (AT (composite|bqcomposite) AT | water)* RMETAQUOTE
// | METAQUOTE
;
water
: .
;
bqterm
: codomain=ID? BQUOTE? fsym=ID LPAREN (bqterm (COMMA bqterm)*)? RPAREN
| codomain=ID? BQUOTE? fsym=ID LSQUAREBR (pairSlotBqterm (CO... | ANTLR | 2,314 | g4 | 36 | 20.121739 | 95 | 0.528522 |
Import-Module $PSScriptRoot\..\Helper.psm1 -Verbose:$false
# Localized messages
data LocalizedData
{
# culture="en-US"
ConvertFrom-StringData @'
CheckingZoneMessage = Checking DNS server zone with name '{0}' is '{1}'...
AddingZoneMessage = Adding DNS server zone '{0}' ...
RemovingZoneMessag... | PowerShell | 5,647 | psm1 | 64 | 30.197861 | 139 | 0.590225 |
/* Author: BAIRAC MIHAI
Caustics code uses a small portion of the below work
code: http://madebyevan.com/webgl-water/renderer.js
paper: https://medium.com/@evanwallace/rendering-realtime-caustics-in-webgl-2a99a29a0b2c
License: MIT License
*/
#ifdef UNDERWATER_CAUSTICS
struct CausticsData
{
vec3 Co... | GLSL | 1,052 | glsl | 1 | 25.047619 | 138 | 0.730038 |
section \<open>\<open>Extra_Lattice\<close> -- Additional results about lattices\<close>
theory Extra_Lattice
imports Main
begin
subsection\<open>\<open>Lattice_Missing\<close> -- Miscellaneous missing facts about lattices\<close>
text \<open>Two bundles to activate and deactivate lattice specific notation (e.g.,... | Isabelle | 10,142 | thy | 2 | 37.286765 | 177 | 0.691185 |
const std = @import("std");
const expect = std.testing.expect;
fn ShardedTable(comptime Key: type, comptime mask_bit_count: comptime_int, comptime V: type) type {
expect(Key == @IntType(false, Key.bit_count));
expect(Key.bit_count >= mask_bit_count);
const ShardKey = @IntType(false, mask_bit_count);
co... | Zig | 3,083 | zig | 2 | 31.141414 | 120 | 0.560169 |
<p align="right"><i>Laboratory</i> <br> Source Code and Documentation <br> API Version: <i>0.4.0</i> <br> <code>API/Attachment.litcoffee</code></p>
# ATTACHMENT REQUESTS #
- - -
## Description ##
The __Attachment__ module of the Laboratory API is comprised of those requests which are related to Mastodon media ... | Literate CoffeeScript | 3,370 | litcoffee | 2 | 31.495327 | 147 | 0.620475 |
require 'nn'
require 'cudnn'
require 'cunn'
local nninit = require 'nninit'
local DenseLayer, parent = torch.class('nn.DenseLayer', 'nn.Container')
function DenseLayer:__init(nInputs, nChannels, growthRate, stride)
parent.__init(self)
self.train = true
self.nInputs = nInputs
self.nChannels = nChann... | Lua | 2,973 | lua | 36 | 31.62766 | 121 | 0.659267 |
;; -*- Mode: Lisp; rcs-header: "$Header: /hope/lwhope1-cam/hope.0/compound/61/LISPopengl/RCS/compile.lisp,v 1.8.13.1 2017/01/19 11:51:03 martin Exp $" -*-
;; Copyright (c) 1987--2017 LispWorks Ltd. All rights reserved.
(in-package "CL-USER")
(load (current-pathname "defsys"))
(compile-system "OPENGL" :load t)
| Common Lisp | 316 | lisp | 16 | 28.727273 | 154 | 0.683544 |
/*
* 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 ... | ANTLR | 1,582 | g4 | 2 | 25.111111 | 96 | 0.685209 |
---
layout: post
title: "Clase 14"
main-class: 'clase'
permalink: /ProbabilidadeInferencia/PeIE:title.html
tags:
introduction: |
Distribuciones muestrales para diferencia de medias. </br>
Estimación puntual. </br>
Estimación por intervalos. </br>
- Intervalos de confianza para una media.
header-includes:
- ... | RMarkdown | 7,016 | rmd | null | 53.969231 | 547 | 0.69427 |
-- Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.
-- --------------------------------------------------------------------------------
-- Tool Version: Vivado v.2019.1 (lin64) Build 2552052 Fri May 24 14:47:09 MDT 2019
-- Date : Wed May 26 04:33:38 2021
-- Host : pdb running 64-bit Ubuntu 18.04.5 LT... | VHDL | 5,278 | vhdl | null | 57.369565 | 1,081 | 0.727927 |
namespace cpp example
struct EchoRequest {
1: optional string data;
2: optional i32 need_by_proxy;
}
struct ProxyRequest {
2: optional i32 need_by_proxy;
}
struct EchoResponse {
1: required string data;
}
service EchoService {
EchoResponse Echo(1:EchoRequest request);
}
| Thrift | 297 | thrift | 5,379 | 14.142857 | 45 | 0.717172 |
SUBROUTINE CTBT05( UPLO, TRANS, DIAG, N, KD, NRHS, AB, LDAB, B,
$ LDB, X, LDX, XACT, LDXACT, FERR, BERR, RESLTS )
*
* -- LAPACK test routine (version 3.1) --
* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
* November 2006
*
* .. Scalar Arguments ..
CHARAC... | FORTRAN | 8,555 | f | 31 | 33.948413 | 72 | 0.469316 |
lexer grammar ResolveLexer;
ABS
: 'abs'
;
ABSTRACT_VAR
: 'Abstract_Var'
;
AFFECTS
: 'affects'
;
ALTERS
: 'alt'
| 'alters'
;
AND
: 'and'
;
ARRAY
: 'Array'
;
AXIOM
: 'Axiom'
;
BASECASE
: 'Base_Case'
;
BIG_CONCAT
: 'Big_Conc... | ANTLR | 6,631 | g4 | null | 8.88874 | 45 | 0.425426 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace Rawr
{
public partial class FormItemSelection : Form
{
private Character _character;
public Characte... | C# | 18,006 | cs | 1 | 37.356846 | 165 | 0.604299 |
module tests/safe410
open program
open model
/**
PPC safe410
"SyncdWW Rfe SyncsRW Rfe SyncdRR Fre"
Cycle=SyncdWW Rfe SyncsRW Rfe SyncdRR Fre
Relax=
Safe=Fre SyncdRR BCSyncsRW BCSyncdWW
{
0:r2=x;
1:r2=x; 1:r4=y;
2:r2=y; 2:r4=x;
}
P0 | P1 | P2 ;
lwz r1,0(r2) | lwz r1,0(r2) | li r1,1 ... | Alloy | 1,194 | als | 19 | 19.57377 | 45 | 0.552764 |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.1' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLengt... | Mathematica | 943,010 | nb | 8 | 57.725881 | 144 | 0.904476 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _express = require("express");
var _motor = _interopRequireDefault(require("./motor.routes"));
var _maintenance = _interopRequireDefault(require("./maintenance.routes"));
function _interopRequireDefault(obj... | JavaScript | 560 | js | 2 | 28 | 95 | 0.730357 |
module D14P2Spec (
tests
) where
import Test.Tasty
import Test.Tasty.HUnit
import D14P2
tests :: TestTree
tests = testGroup "Tests" [unitTests]
unitTests :: TestTree
unitTests = testGroup "Unit tests"
[
testCase "D14P2.recipecount: gives correct answer to the original problem" $ do
9 @=?... | Haskell | 504 | hs | null | 24 | 87 | 0.595238 |
; Copyright (c) 2005 Sebastian Egner and Jens Axel S{\o}gaard.
;
; 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... | Scheme | 45,672 | scm | 575 | 33.28863 | 90 | 0.519093 |
module Data.IOArray
import Data.IOArray.Prims
import Data.List
%default total
export
record IOArray elem where
constructor MkIOArray
maxSize : Int
content : ArrayData (Maybe elem)
export
max : IOArray elem -> Int
max = maxSize
export
newArray : HasIO io => Int -> io (IOArray elem)
newArray size
= pure (M... | Idris | 2,481 | idr | null | 29.891566 | 71 | 0.598146 |
%%% -*- Mode: Prolog; -*-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% $Date: 2011-11-28 14:41:26 +0100 (Mon, 28 Nov 2011) $
% $Revision: 6764 $
%
% This file is part of ProbLog
% http://dtai.cs.kuleuven.be/problog
%
% ProbLog was developed at Katholieke Universiteit Leuven
% ... | Prolog | 11,644 | yap | 2 | 39.876712 | 75 | 0.73394 |
module Math.Algebra.Quantum.Qubit
import public Data.Fin
import public Data.Vect
import public Data.Matrix
import public Data.Matrix.Algebraic
--import public Data.Matrix.Numeric
import public Data.Complex
import public Control.Algebra
import public Control.Algebra.VectorSpace
%access public export
%default total
C... | Idris | 2,781 | idr | null | 17.06135 | 96 | 0.656239 |
import 'package:corona_nepal/blocs/affected_bloc.dart';
import 'package:corona_nepal/blocs/countries_bloc.dart';
import 'package:corona_nepal/blocs/faq_bloc.dart';
import 'package:corona_nepal/blocs/hospital_bloc.dart';
import 'package:corona_nepal/blocs/myth_bloc.dart';
import 'package:corona_nepal/blocs/nepal_bloc.da... | Dart | 857 | dart | 1 | 42.85 | 60 | 0.808635 |
<%@taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm" %>
<mm:cloud method="http" rank="administrator" jspvar="cloud">
<html>
<head>
<link href="<mm:url page="<%= editwizard_location %>"/>/style/color/list.css" type="text/css" rel="stylesheet"/>
<link href="<mm:url page="<%= editwizard_location %>"/... | Java Server Pages | 1,501 | jsp | null | 39.5 | 126 | 0.616256 |
/*!
* Start Bootstrap - Agency v4.1.1 (https://startbootstrap.com/template-overviews/agency)
* Copyright 2013-2018 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE)
*/
body {
overflow-x: hidden;
font-family: "Roboto Slab", "Helvetica Neue", Helv... | CSS | 15,091 | css | null | 18.584975 | 122 | 0.660857 |
const std = @import("std");
pub fn __truncsfhf2(a: f32) callconv(.C) u16 {
return @bitCast(u16, @call(.{ .modifier = .always_inline }, truncXfYf2, .{ f16, f32, a }));
}
pub fn __truncdfhf2(a: f64) callconv(.C) u16 {
return @bitCast(u16, @call(.{ .modifier = .always_inline }, truncXfYf2, .{ f16, f64, a }));
}
... | Zig | 5,785 | zig | 1 | 41.028369 | 133 | 0.636646 |
define_design_lib WORK -path ./design
analyze -format sverilog SQRTLOG.sv
elaborate SQRTLOG
create_clock -period 500 {clock}
compile
write_sdc "SQRTLOG.sdc"
report_timing > "time.rpt"
report_area > "area.rpt"
report_power > "power.rpt"
quit
| Tcl | 241 | tcl | 3 | 21.909091 | 37 | 0.792531 |
namespace FSharp.Stats.Interactive
open FSharp.Stats
module Formatters =
let matrixToHtmlTable (m: IMatrixFormattable) =
let nRows = m.GetNumRows()
let nCols = m.GetNumCols()
let formattedStrings =
m.InteractiveFormat(
InteractiveConfig.Matrix.MaxRows,
... | F# | 1,774 | fs | null | 26.088235 | 70 | 0.47407 |
library(parallel)
library(devtools)
devtools::load_all()
RNGkind("L'Ecuyer-CMRG")
data(grid)
s_seed <- 999983
s_k <- 1000
s_n <- 300
s_m <- 4
v_seed <- c(s_seed, s_seed + s_k)
plain_3004_3 <- mclapply(v_seed, seed_loop <- function(seed) {
stephanie_type2(seed, s_k / 2, s_n, s_m, "trigonometric", r_grid_trig[3], L... | R | 441 | r | null | 24.5 | 128 | 0.689342 |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'finstan_project.settings')
try:
from django.core.management import execute_from_command_line
exc... | Python | 671 | py | 1 | 29.173913 | 79 | 0.682563 |
# Copyright 2019 Google LLC
#
# 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, s... | Elixir | 4,800 | ex | null | 41.37931 | 151 | 0.691042 |
;;; helm-grep.el --- Helm Incremental Grep. -*- lexical-binding: t -*-
;; Copyright (C) 2012 ~ 2019 Thierry Volpiatto <thierry.volpiatto@gmail.com>
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Found... | Emacs Lisp | 71,539 | el | null | 43.043923 | 105 | 0.563455 |
/* ------------------------------------------------------------------
Copyright (c) 2011-2020 Marc Toussaint
email: toussaint@tu-berlin.de
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
-------------------------------------------------------------- */
... | C++ | 3,875 | cpp | null | 30.511811 | 133 | 0.509161 |
;;; lang/csharp/config.el -*- lexical-binding: t; -*-
(after! csharp-mode
(add-hook 'csharp-mode-hook #'rainbow-delimiters-mode)
(when (featurep! +lsp)
(add-hook 'csharp-mode-local-vars-hook #'lsp!))
(set-electric! 'csharp-mode :chars '(?\n ?\}))
(set-rotate-patterns! 'csharp-mode
:symbols '(("public... | Emacs Lisp | 2,602 | el | null | 36.647887 | 78 | 0.62721 |
/*
* Copyright 2021 HM Revenue & Customs
*
* 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... | Scala | 1,374 | scala | 1 | 28.625 | 90 | 0.702329 |
module Animation.A4Realism.Droplet exposing (..)
import Svg as S exposing (Svg)
import Svg.Attributes as SA
import Animation
import Animation
import Time
import Ease
-- All types and utilities are unchanged
import Animation.A2Tidy.Types exposing (AnimationModel)
import Animation.A2Tidy.AppAnimation exposing (..)
--... | Elm | 1,297 | elm | 29 | 20.587302 | 55 | 0.693909 |
"""
Python Challenge Level 15.
The page title is 'whom?' and the image is a calendar of January 1??6 with Monday
Jan 26th circled. There are two comments in the page source, 'he ain't the
youngest, he is the second' and 'todo: buy flowers for tomorrow'.
"""
import calendar
import datetime
GREGORIAN_CALENDAR_START = 1... | Python | 1,104 | py | null | 27.6 | 81 | 0.70471 |
-- ==============================================================
-- Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC v2020.1 (64-bit)
-- Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.
-- ==============================================================
--
library ieee;
use ieee.std_logic_1164.all;
u... | VHDL | 2,968 | vhd | 1 | 26.265487 | 83 | 0.564353 |
#lang scribble/manual
@(require scribble/core (for-label lang/htdp-beginner) "helper.rkt")
@(require "../utils.rkt")
@lab-title[9]{Fold!}
@section[#:style 'unnumbered #:tag "lab9:intro"]{Intro}
Work in ad-hoc pairs. The two of you will work as a team to solve
problems. At any time, one of you will be the @bold{Head... | Racket | 2,338 | scrbl | null | 39.627119 | 217 | 0.74722 |
module RatAngle where
import Data.Ratio
import Data.Finite
import Linear.V2
data RatAngle int = RatAngle (Finite 4) (Ratio int)
deriving (Eq, Ord, Show)
atan2r :: Integral int => V2 int -> RatAngle int
atan2r (V2 x y)
| x > 0, y >= 0
= RatAngle 0 (y % x)
| x <= 0, y > 0
= RatAngle 1 (-x % y)
| x < 0, y ... | Haskell | 445 | hs | null | 20.227273 | 51 | 0.58427 |
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.12
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#========================... | Makefile | 5,857 | null | null | 28.023923 | 248 | 0.696602 |
%%% -*- Mode: Prolog; -*-
/**
* @file block_diagram.yap
* @author Theofrastos Mantadelis, Sugestions from Paulo Moura
* @date Tue Nov 17 14:12:02 2015
*
* @brief Graph the program structure.
*
* @{
*/
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Flags was developed a... | Prolog | 19,500 | yap | null | 40.794979 | 264 | 0.729692 |
DROP TABLE IF EXISTS `customers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customers` (
`id` int(20) NOT NULL AUTO_INCREMENT,
`first_name` varchar(45) CHARACTER SET latin1 NOT NULL,
`surname` varchar(45) CHARACTER SET latin1 NOT NULL... | SQL | 1,750 | sql | null | 37.234043 | 75 | 0.724571 |
module Api.Http.Token exposing (revokeGistToken)
import Api.Http.Request as HttpRequest
import Api.RequestError as RequestError exposing (RequestError)
import Env
import Http
import Json.Encode as E
import Models.IdToken as IdToken exposing (IdToken)
import Platform exposing (Task)
import Task
accessTokenRequestEnco... | Elm | 1,105 | elm | 97 | 26.95122 | 67 | 0.676018 |
At: "013.hac":4:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (null)
#STATE# keyword: template [3:1..8]
#STATE# < [3:10]
#STATE# paramtype: pint [3:11..14]
#STATE# keyword: defproc [4:1..7]
in state #STATE#, possible rules are:
template_formal_decl: base_param_type . template_formal_id... | Bison | 372 | bison | null | 24.8 | 74 | 0.704301 |
// Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#ifndef MTRIHEDRON_H
#define MTRIHEDRON_H
#include "MElement.h"
/*
* MTrihedron
* A MTrihedron is a plane element composed... | C | 5,420 | h | 4 | 29.139785 | 84 | 0.503506 |
start_server {tags {"keys"}} {
test {KEYS with pattern} {
foreach key {key_x key_y key_z foo_a foo_b foo_c} {
r set $key hello
}
assert_equal {foo_a foo_b foo_c} [r keys foo*]
assert_equal {foo_a foo_b foo_c} [r keys f*]
assert_equal {foo_a foo_b foo_c} [r keys f*o*]
}
test {KEYS to g... | Tcl | 1,765 | tcl | 6 | 32.090909 | 93 | 0.645326 |
<?xml version="1.0" encoding="UTF-8"?>
<language namespace="org.mpsqa.mutant.demolang" uuid="3313ed27-e24e-4f1d-81b0-b1b57775ffac" languageVersion="0" moduleVersion="0">
<models>
<modelRoot contentPath="${module}" type="default">
<sourceRoot location="models" />
</modelRoot>
</models>
<facets>
<... | Maple | 8,081 | mpl | 3 | 76.235849 | 130 | 0.727633 |
/*
* Copyright (c) 2018 NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of co... | Cuda | 15,252 | cu | null | 32.87069 | 127 | 0.677419 |
flavor 1
srclang 3
id 65535
numfuncs 4
import "Arith.mplt"
import "/home/bravewtz/Desktop/openarkcompiler/libjava-core/libjava-core.mplt"
entryfunc &LArith_3B_7Cmain_7C_28ALjava_2Flang_2FString_3B_29V
fileinfo {
@INFO_filename "Arith.jar"}
srcfileinfo {
1 "Arith.java"}
type $__class_meta__ <struct {
@shadow <* vo... | Maple | 19,396 | mpl | null | 63.179153 | 1,445 | 0.73278 |
(*
Module: AptConf
Parses /etc/apt/apt.conf and /etc/apt/apt.conf.d/*
Author: Raphael Pinson <raphink@gmail.com>
About: Reference
This lens tries to keep as close as possible to `man 5 apt.conf`
where possible.
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
... | Augeas | 3,989 | aug | 415 | 26.243421 | 75 | 0.552269 |
/*This file was automatically generated by AUnit v1.0's coverage-based test generation feature.
Test Suite Details:
Tests generated over: GRAPHS_templateAllCorrect.als
Number Valuations: 8
Number Tests: 38
Scope used: 5*/
/*
Each node as a set of outgoing edges, representing a directed graph without multiple edged.
... | Alloy | 3,770 | als | null | 8.548753 | 115 | 0.619894 |
theory Datatype_Bindings
imports Common_Data_Codata_Bindings
begin
(* The type T of pre-terms: In ('a, 'a, 'a T, 'a T) F:
-- the first component 'a represents the free variables
-- the second component 'a represents the binding variables
-- the third (recursive) component of 'a T is free, i.e., not bound by the se... | Isabelle | 37,638 | thy | null | 44.860548 | 186 | 0.676789 |
nqubits = 15;
name = "15v6 1 2 2 3 1";
nstates = 4;
amplitude[x_,y_] := (Exp[-14 I y] (1 (I Sin[x])^4 Cos[x]^11 + 1 (I Sin[x])^11 Cos[x]^4) + Exp[-12 I y] (1 (I Sin[x])^3 Cos[x]^12 + 1 (I Sin[x])^12 Cos[x]^3 + 5 (I Sin[x])^10 Cos[x]^5 + 5 (I Sin[x])^5 Cos[x]^10 + 2 (I Sin[x])^4 Cos[x]^11 + 2 (I Sin[x])^11 Cos[x]^4 + 4... | Mathematica | 9,549 | nb | null | 636.6 | 4,554 | 0.499843 |
package com.wavesplatform.it.sync.transactions
import com.wavesplatform.account.AddressOrAlias
import com.wavesplatform.api.http.ApiError.InvalidIds
import com.wavesplatform.common.state.ByteStr
import com.wavesplatform.common.utils.EitherExt2
import com.wavesplatform.it.NTPTime
import com.wavesplatform.it.api.SyncHtt... | Scala | 4,398 | scala | null | 37.589744 | 143 | 0.72874 |
## SETUP
puts "Info: HDL Designer Synthesis run started"
## Set current project and folder
if {[string length [info commands new_project]]} {
open_project "C:/HDS/CAD/CAD_lib/ps/lab8_writeback_tb_rtl/lab8_writeback_tb_rtl.psp"
new_impl
} else {
set_working_dir "C:/HDS/CAD/CAD_lib/ps/lab8_writeback_tb_rtl"
}
... | Tcl | 1,132 | tcl | 2 | 25.155556 | 87 | 0.767668 |
mars.tensor.asarray
===================
.. currentmodule:: mars.tensor
.. autofunction:: asarray | reStructuredText | 98 | rst | 1 | 16.333333 | 30 | 0.602041 |
*! version 1.2.2 16sep2019
program bcal, rclass
version 14
gettoken subcmd rest : 0 , parse(" ,")
local l = strlen(`"`subcmd'"')
if (`l' == 0) {
error 198
/*NOTREACHED*/
}
if ("`subcmd'"==bsubstr("check", 1, max(1, `l'))) {
bcal_check `rest'
}
else if ("`subcmd'"==bsubstr("describe", 1, max(1,`l')))... | Stata | 30,903 | ado | null | 24.742194 | 99 | 0.592499 |
kernelopts(assertlevel=2): # be strict on all assertions while testing
kernelopts(opaquemodules=false): # allow testing of internal routines
if not (NewSLO :: `module`) then
WARNING("loading NewSLO failed");
`quit`(3);
end if;
with(Hakaru):
with(NewSLO):
###########################################################... | Maple | 8,931 | mpl | 327 | 55.81875 | 159 | 0.570933 |
-- From @joehendrix
-- The imul doesn't type check as Lean won't try to coerce from a reg (bv 64) to a expr (bv ?u)
inductive MCType
| bv : Nat → MCType
open MCType
inductive Reg : MCType → Type
| rax : Reg (bv 64)
inductive Expr : MCType → Type
| r : ∀{tp:MCType}, Reg tp → Expr tp
| sextC {s:Nat} (x : Expr (bv s))... | Lean | 643 | lean | 1,538 | 26.791667 | 95 | 0.606532 |
/*
Copyright (C) 2011-2016 Hoefler & Co.
This software is the property of Hoefler & Co. (H&Co).
Your right to access and use this software is subject to the
applicable License Agreement, or Terms of Service, that exists
between you and H&Co. If no such agreement exists, you may not
access or use this software fo... | CSS | 25,150 | css | null | 1,323.684211 | 24,343 | 0.957853 |
beforeEach ->
jasmine.addMatchers
toBeVisible: ->
compare: (actual) ->
$el = actual
result =
pass: $(actual).is(':visible')
if result.pass
result.message = "Expected element not to be visible."
else
result.message = "Expected element to be visi... | CoffeeScript | 349 | coffee | null | 21.8125 | 64 | 0.555874 |
# A simple generic adder
system :adder do |w|
[(w-1)..0].input :x,:y
[w..0].output :s
s <= x.as(bit[w+1]) + y
end
| Ruby | 127 | rb | 5 | 15.875 | 27 | 0.511811 |
using QCMaterial
using Documenter
makedocs(;
modules=[QCMaterial],
authors="Rihito Sakurai <sakurairihito@gmail.com> and contributors",
repo="https://github.com/sakurairihito/QCMaterialNew/blob/{commit}{path}#L{line}",
sitename="QCMaterialNew",
format=Documenter.HTML(;
prettyurls=get(ENV, "... | Julia | 806 | jl | 4 | 26.866667 | 86 | 0.612903 |
library(httr)
url <- "http://mockbin.com/har"
payload <- "{\n \"foo\": \"bar\"\n}"
encode <- "json"
response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)
content(response, "text") | R | 228 | r | 10 | 20.727273 | 96 | 0.631579 |
syntax = "proto3";
package io.apicurio.registry.utils.protobuf.schema.syntax3;
import "additionalTypes/decimal.proto";
message Address {
map<int32, string> contactPersons = 4;
string street = 1 [json_name = "Address_Street"];
int32 zip = 2 [deprecated = true];
enum Type {
OFFICE = 0;
APARTMENT = 1... | Protocol Buffer | 965 | proto | null | 16.637931 | 59 | 0.650777 |
@techreport{akihiko_sayo_synthesis_2018,
author = {Akihiko Sayo and Ryosuke Kimura and Fabian Lorenzo Dayrit and Yuta Nakashima and Hiroshi Kawasaki and Ambrosio Blanco and Katsushi Ikeuchi},
month = {August},
number = {画像の認識・理解シンポジウム(MIRU)},
pages = {4},
title = {Synthesis of human shape in loose cloth using eige... | TeX | 354 | bib | null | 35.4 | 151 | 0.757062 |
module repeat_test
use ascii_string_and_integer_generator_m, only: &
ASCII_STRING_AND_INTEGER_GENERATOR
use iso_varying_string, only: char, repeat
use string_and_integer_input_m, only: string_and_integer_input_t
use veggies, only: &
input_t, result_t, test_item_t, assert_equals, ... | FORTRAN | 1,306 | f90 | null | 33.487179 | 77 | 0.595712 |
############################################################
## This file is generated automatically by Vivado HLS.
## Please DO NOT edit it.
## Copyright (C) 1986-2017 Xilinx, Inc. All Rights Reserved.
############################################################
open_project adders_prj
set_top adders
add_files ... | Tcl | 582 | tcl | 3 | 32.333333 | 61 | 0.616838 |
syntax = "proto3";
package envoy.api.v2;
option java_outer_classname = "CdsProto";
option java_multiple_files = true;
option java_package = "io.envoyproxy.envoy.api.v2";
option java_generic_services = true;
import "envoy/api/v2/auth/cert.proto";
import "envoy/api/v2/cluster/circuit_breaker.proto";
import "envoy/api/... | Protocol Buffer | 37,930 | proto | null | 47.176617 | 112 | 0.736831 |
---
title : "Inference: Bidirectional type inference"
layout : page
prev : /Bisimulation/
permalink : /Inference/
next : /Untyped/
---
\begin{code}
module plfa.Inference where
\end{code}
So far in our development, type derivations for the corresponding
term have been provided by fiat.
In Chapter [Lam... | Literate Agda | 37,455 | lagda | null | 33.029101 | 95 | 0.607449 |
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -26.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -54.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -7.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -76.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -7.00
-1.00... | Matlab | 46,341 | matlab | null | 42.089918 | 63 | 0.585939 |
(* Copyright (C) 2015,2017,2019 Matthew Fluet
* Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
* Jagannathan, and Stephen Weeks.
* Copyright (C) 1997-2000 NEC Research Institute.
*
* MLton is released under a HPND-style license.
* See the file MLton-LICENSE for details.
*)
functor CoreML (S: COR... | Standard ML | 23,455 | fun | 709 | 36.140216 | 120 | 0.414752 |
url\_filter package
===================
.. automodule:: url_filter
:members:
:undoc-members:
:show-inheritance:
Subpackages
-----------
.. toctree::
url_filter.backends
url_filter.filtersets
url_filter.integrations
Submodules
----------
.. toctree::
url_filter.constants
url_filter.e... | reStructuredText | 419 | rst | null | 13.966667 | 27 | 0.651551 |
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@include file="/WEB-INF/webpage/common/taglibs.jspf"%>
<!DOCTYPE html>
<html>
<head>
<title>测试树列表</title>
<meta name="decorator" content="list"/>
</head>
<body title="测试树">
<grid:grid id="testTreeGridId" async="true" treeGrid="true" expandColumn="n... | Java Server Pages | 835 | jsp | 12 | 36.304348 | 128 | 0.686228 |
\begin{code}
module Declarative.Examples.StdLib.ChurchNat where
\end{code}
\begin{code}
open import Utils
open import Type
open import Declarative
open import Builtin
open import Builtin.Constant.Term Ctx⋆ Kind * _⊢⋆_ con
open import Data.Unit
\end{code}
\begin{code}
-- all (r :: *). r -> (r -> r) -> r
N : ∀{Φ} → Φ ... | Literate Agda | 1,223 | lagda | 135 | 23.519231 | 77 | 0.505315 |
package rpc
import (
"github.com/mcmaur/mc-ms-authentication/server/models"
)
// GetUserByIDRpc : select user by id and return detailed infos
func (server *Server) GetUserByIDRpc(userid uint32, user *models.User) error {
newuser := models.User{}
user, err := newuser.FindUserByID(server.DB, userid)
if err != nil {... | Go | 917 | go | 1 | 25.472222 | 84 | 0.728462 |
---
title: "R Notebook"
author: ferhat
date: 6.03.2021
output: html_document
---
```{r, echo = TRUE, message = FALSE}
set.seed(100)
library(SDS100)
library(distr)
```
```{r}
my_sample <- c(21, 29, 25, 19, 24, 22, 25, 26, 25, 29)
(x_bar <- mean(my_sample)) # original sample mean
(s <- sd(my_sample)) # standard devia... | RMarkdown | 4,321 | rmd | 2 | 27.176101 | 111 | 0.574867 |
struct Globals {
1: required bool abortOnAssertionFailure,
2: required bool abortOnElementLocateError,
3: required i16 waitForConditionPollInterval,
4: required i16 waitForConditionTimeout,
5: required bool throwOnMultipleElementsReturned,
6: required bool suppressWarningsOnMultipleElementsReturned,
7: re... | Thrift | 2,565 | thrift | 2 | 31.280488 | 62 | 0.783626 |
transformed data {
real x;
vector[3] v;
x <- v[1][2];
}
parameters {
real y;
}
model {
y ~ normal(0,1);
}
| Stan | 116 | stan | 1 | 9.666667 | 18 | 0.525862 |
const HashGenerator = require("../../src/generators/hash-generator");
const HashValidator = require("../../src/validators/hash-validator");
const expect = require("chai").expect;
describe("HashGenerator", function () {
describe(".generate", function () {
context("When valid parameters are given", function () {
... | JavaScript | 1,206 | js | null | 34.457143 | 69 | 0.626036 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.