_id
stringlengths
64
64
repository
stringlengths
6
84
name
stringlengths
4
110
content
stringlengths
0
248k
license
null
download_url
stringlengths
89
454
language
stringclasses
7 values
comments
stringlengths
0
74.6k
code
stringlengths
0
248k
7d1e1515e441d4943f1035a61dd46a00d923362452d7529b6aba0307e559c7d6
racket/typed-racket
poly-ref.rkt
#lang typed/racket/base/shallow ;; Test that type variables do not have a run-time check ;; (no need for a check, because a context cannot make assumptions about the value) (: f (All (A) (-> (Vectorof A) A))) (define (f x) (vector-ref x 0)) (f (vector 1 2 3)) (f '#(four five six))
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/shallow/poly-ref.rkt
racket
Test that type variables do not have a run-time check (no need for a check, because a context cannot make assumptions about the value)
#lang typed/racket/base/shallow (: f (All (A) (-> (Vectorof A) A))) (define (f x) (vector-ref x 0)) (f (vector 1 2 3)) (f '#(four five six))
96de4a42961170a00c3de29fb663f814e8a61ba0ef05b9bd551b89cba96abd92
goblint/analyzer
control.ml
* An analyzer that takes the CFG from [ MyCFG ] , a solver from [ Selector ] , constraints from [ Constraints ] ( using the specification from [ MCP ] ) open Prelude open GoblintCil open MyCFG open Analyses open GobConfig open Constraints module type S2S = functor (X : Spec) -> Spec spec is lazy , so HConsed table...
null
https://raw.githubusercontent.com/goblint/analyzer/a00e2aa98cd32825d61c5776364e3cc6117eebd5/src/framework/control.ml
ocaml
apply functor F on module X if opt is true option checked in functor hashcons before witness to reduce duplicates, because witness re-uses contexts in domain and requires tag for PathSensitive3 Widening tokens must be outside of hashcons, because widening token domain ignores token sets for identity, so hashcons...
* An analyzer that takes the CFG from [ MyCFG ] , a solver from [ Selector ] , constraints from [ Constraints ] ( using the specification from [ MCP ] ) open Prelude open GoblintCil open MyCFG open Analyses open GobConfig open Constraints module type S2S = functor (X : Spec) -> Spec spec is lazy , so HConsed table...
1b4707202bc4676b76d44268f15ba2172fc1884a336b0b3664cd6e5d3aac8e03
haskell-beam/beam
chinookdml.hs
# LANGUAGE MultiParamTypeClasses # -- ! BUILD_OPTIONS: -fglasgow-exts -XTypeFamilies -XOverloadedStrings -XPartialTypeSignatures -XTypeApplications -XStandaloneDeriving -XFlexibleInstances -XMultiParamTypeClasses -XDeriveGeneric -XFlexibleContexts -fno-warn-partial-type-signatures -i$$BEAM_SOURCE$$/beam-sqlite/example...
null
https://raw.githubusercontent.com/haskell-beam/beam/596981a1ea6765b9f311d48a2ec4d8460ebc4b7e/docs/beam-templates/chinookdml.hs
haskell
! BUILD_OPTIONS: -fglasgow-exts -XTypeFamilies -XOverloadedStrings -XPartialTypeSignatures -XTypeApplications -XStandaloneDeriving -XFlexibleInstances -XMultiParamTypeClasses -XDeriveGeneric -XFlexibleContexts -fno-warn-partial-type-signatures -i$$BEAM_SOURCE$$/beam-sqlite/examples/ ! BUILD_DIR: beam-sqlite/examples/
# LANGUAGE MultiParamTypeClasses # module Main where import Database.Beam import Database.Beam.Backend.Types import qualified Database.Beam.Query.Adhoc as Adhoc import qualified Database.Beam.Backend.SQL.BeamExtensions as BeamExtensions BEAM_MODULE_IMPORT import Control.Monad import Control.Exception import Data.IO...
62142cf7b99f87ef1b607693cc4b0058efe66ec75effa76b6dfe87d5f746e7a2
heraldry/heraldicon
core.cljs
(ns heraldicon.entity.core (:require [heraldicon.context :as c] [heraldicon.entity.attribution :as attribution] [heraldicon.entity.metadata :as metadata] [heraldicon.interface :as interface] [heraldicon.options :as options])) (derive :heraldicon/entity :heraldry.options/root) (derive :heraldicon.entit...
null
https://raw.githubusercontent.com/heraldry/heraldicon/1ffb09a751fd724080165607d0c274d2ebf6be2f/src/heraldicon/entity/core.cljs
clojure
(ns heraldicon.entity.core (:require [heraldicon.context :as c] [heraldicon.entity.attribution :as attribution] [heraldicon.entity.metadata :as metadata] [heraldicon.interface :as interface] [heraldicon.options :as options])) (derive :heraldicon/entity :heraldry.options/root) (derive :heraldicon.entit...
57ef4006ba14bcf04e9e4d2db19b02ac7f3bde7698b5a46e6092fa244dc0543e
jasonstolaruk/CurryMUD
Padding.hs
module Mud.TopLvlDefs.Padding ( bracketedEntNamePadding , chanNamePadding , cmdNamePadding , colorNamePadding , godNamePadding , helpTopicPadding ...
null
https://raw.githubusercontent.com/jasonstolaruk/CurryMUD/f9775fb3ede08610f33f27bb1fb5fc0565e98266/lib/Mud/TopLvlDefs/Padding.hs
haskell
module Mud.TopLvlDefs.Padding ( bracketedEntNamePadding , chanNamePadding , cmdNamePadding , colorNamePadding , godNamePadding , helpTopicPadding ...
4e67858ba5f00606564b94f23b05a78d931763fb1b2fbd6e7ea751861665af97
logicmoo/logicmoo_nlu
bckinfer.lsp
;;; % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % Example code from the book " Natural Language Processing in LISP " % % published by % % Copyright ( c ) 1989 , . % ;;; % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %...
null
https://raw.githubusercontent.com/logicmoo/logicmoo_nlu/c066897f55b3ff45aa9155ebcf799fda9741bf74/ext/nlp_book/lisp/bckinfer.lsp
lisp
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % N.B. NOT uses negation by failure check same predicate check same no of args check that conclusion of rule matches goal
% Example code from the book " Natural Language Processing in LISP " % % published by % % Copyright ( c ) 1989 , . % bckinfer.lsp [ Chapter 9 ] backwards inference engine (uses 'subst) (uses 'tunify) (defvar infrules) (defparameter YES (list empty_subst))...
c8d598915e3e062a3d4643bba6fb3f290efd0b45456442ef4e97dd3eeee9be40
jserot/hocl
misc.ml
(**********************************************************************) (* *) This file is part of the HOCL package (* *) Copyright ( c ) 2019 - prese...
null
https://raw.githubusercontent.com/jserot/hocl/7ab1dba918e64c3cdbc446e5f2c0cba37181bccf/src/misc.ml
ocaml
******************************************************************** All rights reserved. ...
This file is part of the HOCL package Copyright ( c ) 2019 - present , ( ) . exception Error let source_files = ref ([] : string list) let fatal_error msg = failwith msg let string_of_list f sep l = let rec h = function [] -> "" | [x] -> f x | x::xs -> f x...
132f689e3ab562c546025d0718693da004a5edc33b87ec12d5b3c95098290e61
elaforge/karya
Harmonic.hs
Copyright 2015 -- This program is distributed under the terms of the GNU General Public -- License 3.0, see COPYING or -3.0.txt -- | Harmonic series. module Derive.Scale.Harmonic where import qualified Data.Attoparsec.Text as A import qualified Data.List as List import qualified Data.Map as Map import qualified Da...
null
https://raw.githubusercontent.com/elaforge/karya/8d30186009ac22d1e66a5ba3e1a93159abb64cd1/Derive/Scale/Harmonic.hs
haskell
This program is distributed under the terms of the GNU General Public License 3.0, see COPYING or -3.0.txt | Harmonic series. kind of alternate input mode that could affect input_to_note. This scale doesn't actually have a layout, but for the purposes of Pitch.Pitch math, it acts like alternating white and black ...
Copyright 2015 module Derive.Scale.Harmonic where import qualified Data.Attoparsec.Text as A import qualified Data.List as List import qualified Data.Map as Map import qualified Data.Text as Text import qualified Util.ParseText as ParseText import qualified Util.Seq as Seq import qualified Derive.Controls as Cont...
b34258ed1126b34c60f1956104374c13c133035d7f46c608598509dcc4c4ad03
aryx/xix
arg.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/lib_system/arg.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . $ I d : arg.mli , v 1.12 1997/11/05 19:44:08 doligez Exp $ Syntax of command lines : A keyword is a...
0234cff9d96b4b6ce90b9bc61476aae405bd3cd3236183dfed3c3319c36881f2
clash-lang/clash-compiler
TagToEnum.hs
# LANGUAGE MagicHash # module TagToEnum where import GHC.Exts import Prelude topEntity :: Bool -> (Int,Bool,Int,Bool) topEntity b = (I# (dataToTag# b),tagToEnum# (dataToTag# b),I# (dataToTag# True), tagToEnum# 1#)
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Basic/TagToEnum.hs
haskell
# LANGUAGE MagicHash # module TagToEnum where import GHC.Exts import Prelude topEntity :: Bool -> (Int,Bool,Int,Bool) topEntity b = (I# (dataToTag# b),tagToEnum# (dataToTag# b),I# (dataToTag# True), tagToEnum# 1#)
604144457040f9d546dd71ff21594a5c06d61aaabc6abb4b06fb920b54c354f3
jaydchan/tawny-karyotype
resolutions_test.clj
The contents of this file are subject to the LGPL License , Version 3.0 . Copyright ( C ) 2013 , Newcastle University ;; 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 Foundation , either version 3 of ...
null
https://raw.githubusercontent.com/jaydchan/tawny-karyotype/3a875e5ef7de9372aee70d9e6cc8c22fc5187544/test/ncl/karyotype/resolutions_test.clj
clojure
This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Li...
The contents of this file are subject to the LGPL License , Version 3.0 . Copyright ( C ) 2013 , Newcastle University it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General ...
c23d4cc34eb5a57f38f343a3780be7b760476bd4f330a08969effc680803f505
ocaml-ppx/ppx
exn_with_backtrace.mli
(** An exception together with the backtrace that raised it. *) type t = { exn : exn; backtrace : Printexc.raw_backtrace; } val try_with : (unit -> 'a) -> ('a, t) Result.t (** This function should be the very first thing called in the exception handler if you want it to work correctly. Otherwise it might ca...
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/stdppx/exn_with_backtrace.mli
ocaml
* An exception together with the backtrace that raised it. * This function should be the very first thing called in the exception handler if you want it to work correctly. Otherwise it might capture an incorrect backtrace.
type t = { exn : exn; backtrace : Printexc.raw_backtrace; } val try_with : (unit -> 'a) -> ('a, t) Result.t val capture : exn -> t val reraise : t -> 'a val pp_uncaught : Format.formatter -> t -> unit val map : t -> f:(exn -> exn) -> t val map_and_reraise : t -> f:(exn -> exn) -> 'a val to_sexp : t -> Sex...
ce42d72f1274c3d67f45c671bf6d0df4ed370cccb89a859436f2081499f2a82e
ocsigen/lwt
lwt_switch.mli
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) (** Lwt switches *) * Switch has two goals : - being able to free multiple resources at the same time , - offer a better alternative than always returning an i d to free...
null
https://raw.githubusercontent.com/ocsigen/lwt/9943ba77a5508feaea5e1fb60b011db4179f9c61/src/core/lwt_switch.mli
ocaml
* Lwt switches * Type of switches. * [create ()] creates a new switch. * Exception raised when trying to add a hook to a switch that is already off. * [check switch] does nothing if [switch] is [None] or contains an switch that is currently on, and raises {!Off} otherwise. * [add_hook switch f] registe...
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) * Switch has two goals : - being able to free multiple resources at the same time , - offer a better alternative than always returning an i d to free some resour...
8ca174c1adc8ef71dee2a3175a806d61d5a6933cb70f68c789cd73bc55bf74ea
haskell-game/tiny-games-hs
snake.hs
#!/usr/bin/env runhaskell import GHC.Clock;import System.IO;q p a b=if p then a else b;i=[(0,0)];w=[0..25] p s f=putStrLn.("\27[2J\27[1;1H"<>).unlines$["WASD Snake"]<>t<>map(\x->"|"<>map( \y->case filter(==(x,y))s of{[]->(q((x,y)==f)'#'' ');[_]->'*';_->'X'})w<>"|")u <>t;main=hSetBuffering stdin NoBuffering>>(i,)<$>h ...
null
https://raw.githubusercontent.com/haskell-game/tiny-games-hs/d32501e0f8eca3057ac561b34d1ec4eb167d6e87/base/snake/snake.hs
haskell
^10 ------------------------------------------------------------------ 80> -- Limitations: up as 'X'. In fact real snakes can do this all the time! movements making the game much easier
#!/usr/bin/env runhaskell import GHC.Clock;import System.IO;q p a b=if p then a else b;i=[(0,0)];w=[0..25] p s f=putStrLn.("\27[2J\27[1;1H"<>).unlines$["WASD Snake"]<>t<>map(\x->"|"<>map( \y->case filter(==(x,y))s of{[]->(q((x,y)==f)'#'' ');[_]->'*';_->'X'})w<>"|")u <>t;main=hSetBuffering stdin NoBuffering>>(i,)<$>h ...
98ff8159eede6dab88f3ab4b7cf8ce62ce526696de6d295313a0320092c08097
skanev/playground
25.scm
EOPL exercise 1.25 ; ( exists ? number ? ' ( a b c 3 e ) ) returns # t if any element of lst satisfies ; pred, and returns #f otherwise. ; > ( exists ? number ? ' ( a b c 3 e ) ) ; #t ; > (exists? number? '(a b c d e)) ; #f (define (exists? pred lst) (cond ((null? lst) #f) ((pred (car lst)) #t) ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/eopl/01/25.scm
scheme
pred, and returns #f otherwise. #t > (exists? number? '(a b c d e)) #f
EOPL exercise 1.25 ( exists ? number ? ' ( a b c 3 e ) ) returns # t if any element of lst satisfies > ( exists ? number ? ' ( a b c 3 e ) ) (define (exists? pred lst) (cond ((null? lst) #f) ((pred (car lst)) #t) (#t (exists? pred (cdr lst)))))
7d59e5abcbbf8fcc327b6002453d2f301b02333a031faad77628f3f8e0f00766
jaspervdj/fugacious
Logger.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # module Fugacious.Logger ( Verbosity (..) , Config (..) , Handle , withHandle , debug , info , warning , error , debug' , info' , warning' , error' ) where import Control.Applicative (Alt...
null
https://raw.githubusercontent.com/jaspervdj/fugacious/4e9c2d48174c852616fbfbf28bd9cc90812a1c95/lib/Fugacious/Logger.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards # module Fugacious.Logger ( Verbosity (..) , Config (..) , Handle , withHandle , debug , info , warning , error , debug' , info' , warning' , error' ) where import Control.Applicative (Alternative (..)) import Con...
efcb765e91f660656f8b104d764795251e796bf6465e3c4eefeb4abe7dd62385
dxtr/clsql
command-object.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; ;;;; Name: postgresql-socket-sql.sql ;;;; Purpose: High-level PostgreSQL interface using socket Authors : ( at Acceleration.net ) base...
null
https://raw.githubusercontent.com/dxtr/clsql/8061aae1ecb878954115c7aacd90685a65bf4107/sql/command-object.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- ************************************************************************* FILE IDENTIFICATION Name: postgresql-socket-sql.sql Purpose: High-level PostgreSQL interface using socket (), also known as the LLGPL. ***********************************************...
Authors : ( at Acceleration.net ) based on original code by based on original code by Created : Sep 2009 $ Id$ This file , part of CLSQL , is Copyright ( c ) 2002 - 2007 by and Copyright ( c ) 1999 - 2001 by CLSQL users are granted the rights to distribute and use this software...
dfa55994723db2b50e8e2b01591d043fae86f1ab33e638390fce4db0edef8db6
lehins/primal
Unboxed.hs
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE MagicHash # {-# LANGUAGE RankNTypes #-} # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # #if __GLASGOW_HASKELL__ >= 800 {-# OPTIONS_GHC -Wno-redundant-constraints #-} #endif -- | Module ...
null
https://raw.githubusercontent.com/lehins/primal/c620bfd4f2a6475f1c12183fbe8138cf29ab1dad/primal/src/Primal/Array/Unboxed.hs
haskell
# LANGUAGE RankNTypes # # OPTIONS_GHC -Wno-redundant-constraints # | License : BSD3 Stability : experimental Portability : non-portable ** Immutable ** Mutable * Conversion * Re-export ----------------- ============= -- --------------------------- # INLINE fromString # # INLINE (<>) # @since 0.3.0 ...
# LANGUAGE CPP # # LANGUAGE FlexibleContexts # # LANGUAGE MagicHash # # LANGUAGE RoleAnnotations # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE UnboxedTuples # #if __GLASGOW_HASKELL__ >= 800 #endif Module : Primal . Array . Copyright : ( c ) 2020 - 2022 Maintainer : < > m...
bfa96b47eb52c45b4fb20d2d4568ce48315e7d39147908e33dfb62ed29c9793b
staticweb-io/staticweb-open-wp
template_page.cljs
(ns io.staticweb.template-page (:require [cljs-http.client :as http] [reagent.core :as r] [reagent.dom :as rd] ["crypto-js/core" :as crypto-js] ["crypto-js/md5" :as md5] ["@material-ui/core" :as mui] ["react-password-strength-bar" :default Passwo...
null
https://raw.githubusercontent.com/staticweb-io/staticweb-open-wp/bda4d4a9d792dd5680f7ec35c85117d25c2e0476/template-page/src/io/staticweb/template_page.cljs
clojure
PHPass Portable Hash -asked-questions/how-do-i-use-react-s-refs-
(ns io.staticweb.template-page (:require [cljs-http.client :as http] [reagent.core :as r] [reagent.dom :as rd] ["crypto-js/core" :as crypto-js] ["crypto-js/md5" :as md5] ["@material-ui/core" :as mui] ["react-password-strength-bar" :default Passwo...
64c67fc31076639c409e38553c47a560d3a88f3fdd88c1a6246acb4c45b8a8dc
CodyReichert/qi
cffi-allegro.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; cffi-allegro.lisp --- CFFI - SYS implementation for Allegro CL . ;;; Copyright ( C ) 2005 - 2009 , loliveira(@)common - lisp.net > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documenta...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/cffi-master/src/cffi-allegro.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to...
cffi-allegro.lisp --- CFFI - SYS implementation for Allegro CL . Copyright ( C ) 2005 - 2009 , loliveira(@)common - lisp.net > files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the ...
995e07937c494932738445e56ab44079153bb96cb56e12476f7e80e82742f66d
janestreet/base
word_size.mli
(** For determining the word size that the program is using. *) open! Import type t = | W32 | W64 [@@deriving_inline sexp_of] val sexp_of_t : t -> Sexplib0.Sexp.t [@@@end] val num_bits : t -> int (** Returns the word size of this program, not necessarily of the OS. *) val word_size : t
null
https://raw.githubusercontent.com/janestreet/base/c95422a6b5d5dba29c51df3e37b8f50eaff6ad68/src/word_size.mli
ocaml
* For determining the word size that the program is using. * Returns the word size of this program, not necessarily of the OS.
open! Import type t = | W32 | W64 [@@deriving_inline sexp_of] val sexp_of_t : t -> Sexplib0.Sexp.t [@@@end] val num_bits : t -> int val word_size : t
3e0d40e23d50df5a806b7294ca2f63ed79456974e0b8c3cdd9da0d882bd99a75
ocramz/petsc-hs
TolSpace.hs
----------------------------------------------------------------------------- -- | Module : Numerical . PETSc . Internal . Class . Copyright : ( c ) 2015 -- License : LGPL3 Maintainer : zocca . . gmail . com -- Stability : experimental -- -- | Space for points that can be compared (fr...
null
https://raw.githubusercontent.com/ocramz/petsc-hs/d74a468da0dbc867d2ea25f280c7892cc54add48/src/Numerical/PETSc/Internal/Class/TolSpace.hs
haskell
--------------------------------------------------------------------------- | License : LGPL3 Stability : experimental | Space for points that can be compared (from `diffgeom`) Instances should satisfy the following laws: > p ~~ p = True (Reflexivity) > p ~~ q = q ~~ p (Symmetry) common instance is so...
Module : Numerical . PETSc . Internal . Class . Copyright : ( c ) 2015 Maintainer : zocca . . gmail . com This means that ' TolSpace ' represents a " tolerance relation " . As such , a the sense that we relax the Transitivity constraint . module Numerical.PETSc.Internal.Class.TolSpace w...
c75e026b8be1563a3c247b238223a56e66d1732f7ece96a24c803b8df90b366a
rmloveland/scheme48-0.53
vector.scm
Copyright ( c ) 1993 - 1999 by . See file COPYING . ;---------------------------------------------------------------------------- ; STORING NODE TREES IN VECTORS ;---------------------------------------------------------------------------- The use of OTHER and GLOBAL depends on whether NODE->VECTOR or VECTOR...
null
https://raw.githubusercontent.com/rmloveland/scheme48-0.53/1ae4531fac7150bd2af42d124da9b50dd1b89ec1/ps-compiler/node/vector.scm
scheme
---------------------------------------------------------------------------- STORING NODE TREES IN VECTORS ---------------------------------------------------------------------------- the index of the next empty slot or the next thing to read vector of local variables (VECTOR->NODE only) Convert a node into a vec...
Copyright ( c ) 1993 - 1999 by . See file COPYING . The use of OTHER and GLOBAL depends on whether NODE->VECTOR or VECTOR->NODE (define-record-type vec an expanding vector ( NODE->VECTOR ) or just a vector ( VECTOR->NODE ) ) ()) (define make-vec vec-maker) Add value as the next thing in the VEC . ...
01c0d5fb5d9221c19a4ffc535de7c2b31e88533a5f8d291d96dcb334208f833d
ocaml/ocaml
profiling.mli
(**************************************************************************) (* *) (* OCaml *) (* *) an...
null
https://raw.githubusercontent.com/ocaml/ocaml/04ddddd0e1d2bf2acb5091f434b93387243d4624/tools/profiling.mli
ocaml
************************************************************************ OCaml ...
and , INRIA Rocquencourt Ported to OCaml by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the val counters: (string * (string * int array)) list ref val incr: int array -> int -> uni...
f52e3a86f7728e1863ad5bfba91c3d3bf18134b55ba41686a7270f11e81ef518
ermine-language/ermine
State.hs
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE TemplateHaskell # -------------------------------------------------------------------- -- | Copyright : ( c ) McGraw Hill Financial 2014 License : BSD2 Maintainer : < > -- Stability : experimental...
null
https://raw.githubusercontent.com/ermine-language/ermine/bd58949ab56311be9e0d2506a900f3d77652566b/src/Ermine/Parser/State.hs
haskell
# LANGUAGE DeriveDataTypeable # ------------------------------------------------------------------ | Stability : experimental Portability: non-portable ------------------------------------------------------------------ * Stateful parsing | A parser at the beginning.
# LANGUAGE DeriveGeneric # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # Copyright : ( c ) McGraw Hill Financial 2014 License : BSD2 Maintainer : < > State for monadic parsing module Ermine.Parser.State ParseState(ParseState) , HasParseState(..) , initialParserState ) where ...
66b5764a19570233a8d7f340c2b10fddbd434355ac4818114d9b2f360f13256d
metabase/metabase
join_test.cljc
(ns metabase.lib.join-test (:require [clojure.test :refer [deftest is testing]] [metabase.lib.core :as lib] [metabase.lib.metadata :as lib.metadata] [metabase.lib.test-metadata :as meta]) #?(:cljs (:require [metabase.test-runner.assert-exprs.approximately-equal]))) (deftest ^:parallel join-test (is (...
null
https://raw.githubusercontent.com/metabase/metabase/02e9aa420ef910138b9b5e05f74c96e31286bcf2/test/metabase/lib/join_test.cljc
clojure
(ns metabase.lib.join-test (:require [clojure.test :refer [deftest is testing]] [metabase.lib.core :as lib] [metabase.lib.metadata :as lib.metadata] [metabase.lib.test-metadata :as meta]) #?(:cljs (:require [metabase.test-runner.assert-exprs.approximately-equal]))) (deftest ^:parallel join-test (is (...
ca80c81f3b9c292047cccbdb8a90367699ac4cbb02bf25925fa9e54d3536945f
mzp/coq-for-ipad
opterrors.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/driver/opterrors.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : opterrors.mli 2910 2000 - 03 ...
37c57497afd12bcaaf7d1d91533393df0333c3820bfafb316b8d5109f8590755
simplex-chat/simplexmq
KeepAlive.hs
# LANGUAGE CApiFFI # # LANGUAGE CPP # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # module Simplex.Messaging.Transport.KeepAlive where import Data.Aeson (FromJSON (..), ToJSON (..)) import qualified Data.Aeson as J import Foreign.C (CInt (..)) import GHC.Generics (Generic) imp...
null
https://raw.githubusercontent.com/simplex-chat/simplexmq/180b4b9dcb391eb0a4467fd5a66c7167f63869dc/src/Simplex/Messaging/Transport/KeepAlive.hs
haskell
# LANGUAGE DeriveAnyClass # The values are copied from windows::Win32::Networking::WinSock -docs-rs/doc/windows/Win32/Networking/WinSock/index.html
# LANGUAGE CApiFFI # # LANGUAGE CPP # # LANGUAGE DeriveGeneric # # LANGUAGE NamedFieldPuns # module Simplex.Messaging.Transport.KeepAlive where import Data.Aeson (FromJSON (..), ToJSON (..)) import qualified Data.Aeson as J import Foreign.C (CInt (..)) import GHC.Generics (Generic) import Network.Socket data KeepAli...
f6dd2778cf38e1e23171777a3cea7765463562ddae894afdcbdcc0aee1131643
esl/MongooseIM
mongoose_stanza_api.erl
-module(mongoose_stanza_api). %% API -export([send_chat_message/4, send_headline_message/5, send_stanza/2, lookup_recent_messages/5]). %% Event API -export([open_session/2, close_session/1]). -include("jlib.hrl"). -include("mongoose_rsm.hrl"). -include("mongoose_logger.hrl"). -type stream() :: #{jid := jid:jid(), ...
null
https://raw.githubusercontent.com/esl/MongooseIM/5fa12c54b1f140bb12396aa5e8abfb8c2436eb9a/src/mongoose_stanza_api.erl
erlang
API Event API API microseconds Event API Steps Helpers
-module(mongoose_stanza_api). -export([send_chat_message/4, send_headline_message/5, send_stanza/2, lookup_recent_messages/5]). -export([open_session/2, close_session/1]). -include("jlib.hrl"). -include("mongoose_rsm.hrl"). -include("mongoose_logger.hrl"). -type stream() :: #{jid := jid:jid(), s...
9d68fefc9449cdc3bdd81f99ce73e7c32d0cb0ffec4f0f43ba468f5755530332
pariyatti/kosa
collections.clj
(ns kuti.support.collections (:require [clojure.set])) (defn find-all-nested [m k] (->> (tree-seq map? vals m) (filter map?) (keep k))) (defn find-first [f coll] (first (filter f coll))) (defn only [coll] (if (= 1 (count coll)) (first coll) (throw (Exception. (format "Collection '%s' ...
null
https://raw.githubusercontent.com/pariyatti/kosa/c3008acf167180f6dd5546fc0034ab6d4a8bd6be/src/kuti/support/collections.clj
clojure
get the frequencies, destructure this is the filter condition just need the id, not the frequency
(ns kuti.support.collections (:require [clojure.set])) (defn find-all-nested [m k] (->> (tree-seq map? vals m) (filter map?) (keep k))) (defn find-first [f coll] (first (filter f coll))) (defn only [coll] (if (= 1 (count coll)) (first coll) (throw (Exception. (format "Collection '%s' ...
cc5a9565f28ae9f9c34727a89f41cb25e42bb923c9ec174afefdc50dc89c1f8e
mikera/clisk
colours.clj
(ns ^{:author "mikera" :doc "Library of colours, colour gradients and colour-handling functions."} clisk.colours (:use [clisk node functions patterns]) (:import java.awt.Color) (:import mikera.util.Maths) (:import java.lang.Math)) (set! *warn-on-reflection* true) (set! *unchecked-math* true) (def...
null
https://raw.githubusercontent.com/mikera/clisk/44dd35fabbae68ad44f0e8ac2dec4c580203f7b9/src/main/clojure/clisk/colours.clj
clojure
================================================= Colour gradient generation
(ns ^{:author "mikera" :doc "Library of colours, colour gradients and colour-handling functions."} clisk.colours (:use [clisk node functions patterns]) (:import java.awt.Color) (:import mikera.util.Maths) (:import java.lang.Math)) (set! *warn-on-reflection* true) (set! *unchecked-math* true) (def...
b76794b18f619c259c8fe35bc9da10c5f4941f248c45c0b11c8dd5814d7e88ed
haskell-unordered-containers/unordered-containers
Array.hs
# LANGUAGE BangPatterns # {-# LANGUAGE CPP #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskellQuotes #-} # LANGUAGE UnboxedTuples # # OPTIONS_GHC -fno - full - laziness -funbox - strict...
null
https://raw.githubusercontent.com/haskell-unordered-containers/unordered-containers/42c61340066e721a46d59e12d21bcdaa399a9879/Data/HashMap/Internal/Array.hs
haskell
# LANGUAGE CPP # # LANGUAGE MagicHash # # LANGUAGE Rank2Types # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskellQuotes # | = WARNING This module is considered __internal__. The contents of this module may change __in any way whatsoever__ and __without any war...
# LANGUAGE BangPatterns # # LANGUAGE UnboxedTuples # # OPTIONS_GHC -fno - full - laziness -funbox - strict - fields # # OPTIONS_HADDOCK not - home # The Package Versioning Policy _ _ does not apply _ _ . Zero based arrays . module Data.HashMap.Internal.Array ( Array(..) , MArray(..) ...
621d71515c745491aa22284ebd0d37d8fbb0d18d5c3dd415364f19609c266185
zkincaid/duet
fixpoint.ml
module Make (G : sig type t module V : sig type t val compare : t -> t -> int val hash : t -> int val equal : t -> t -> bool end module E : sig type t val src : t -> V.t ...
null
https://raw.githubusercontent.com/zkincaid/duet/eb3dbfe6c51d5e1a11cb39ab8f70584aaaa309f9/srk/src/fixpoint.ml
ocaml
module Make (G : sig type t module V : sig type t val compare : t -> t -> int val hash : t -> int val equal : t -> t -> bool end module E : sig type t val src : t -> V.t ...
17800b235995e2cddcc349d8c033c20a2c257f409bed7c596669bf77eb49b769
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE NoRebindableSyntax # {-# LANGUAGE OverloadedString...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Duration/ES/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # # LANGUAGE NoRebindableSyntax # module Duckling.Duration.ES.Rules ( rules ) where import Prelude import Data.Semigroup ((<>)) import Duckling.Dimensions.Types import Duckling.Duration.Helpers import Duckling.Duration.Types (DurationData(...
212b578dbb1e03a7b6651f29dbeb6ffc4caf85bb9d30d77cdf9ddc22a0ac651a
input-output-hk/cardano-wallet
SchemaMetadata.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE StrictData #-} -- | Copyright : © 2018 - 2022 IOHK -- License: Apach...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet/f366f02fa04734a990309a6cb0816df460e8e29e/lib/wallet/api/http/Cardano/Wallet/Api/Types/SchemaMetadata.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE StrictData # | License: Apache-2.0 | A tag to select the json codec | A wrapper to drive the json codec of metadata | How to codec the metadata into json | The metadata | Parses a Boolean "simple-metadata" API flag. | Produces a Boolean "simple-metadata" API flag.
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # Copyright : © 2018 - 2022 IOHK A wrapper around TxMetadata to allow different JSON codecs . ( ADP-1596 ) see ...
c0a6612ec1f85c6b9e421bd5a9b99de2af16d2e241370f99ab0d5a8c393a5115
spechub/Hets
Print_AS.hs
| Module : ./CoCASL / Print_AS.hs Description : pretty print abstract syntax of CoCASL Copyright : ( c ) , Uni Bremen 2004 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable printing AS_CoCASL and CoCASLSi...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CoCASL/Print_AS.hs
haskell
| Module : ./CoCASL / Print_AS.hs Description : pretty print abstract syntax of CoCASL Copyright : ( c ) , Uni Bremen 2004 - 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable printing AS_CoCASL and CoCASLSi...
d4ec5455a6a79213dfdfebd33633ba3398ef6f29382dc1a36cf94415b340380e
msp-strath/TypOS
Bwd.hs
{-| Description: snoc lists -} module Bwd where import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe (fromMaybe) import Control.Monad.State data Bwd x = B0 | Bwd x :< x deriving (Show, Eq, Ord, Functor, Foldable, Traversable) infixl 4 :< instance Semigroup (Bwd x) where xz <> B0 = xz ...
null
https://raw.githubusercontent.com/msp-strath/TypOS/fbbf0ba6451fd21e274859c666629ba029e6466c/Src/Bwd.hs
haskell
| Description: snoc lists | lookup with a more convenient name | append a list onto a snoc list, giving a snoc list, reversing the list as it goes | put a snoc list onto the head of a list, giving a list | mapzss f b l is equivalent to (fmap f b) <>> l but hand-coded to do it in a single pass and does not trave...
module Bwd where import Data.Map (Map) import qualified Data.Map as Map import Data.Maybe (fromMaybe) import Control.Monad.State data Bwd x = B0 | Bwd x :< x deriving (Show, Eq, Ord, Functor, Foldable, Traversable) infixl 4 :< instance Semigroup (Bwd x) where xz <> B0 = xz xz <> (yz :< y) = xz <> yz :< ...
865788e16fb560a8cf65a3aeb783c32f1d1ca5365281e491b3ecfb9ace5625b5
Helium4Haskell/helium
PhaseTypingStrategies.hs
{-| Module : PhaseTypingStrategies License : GPL Maintainer : Stability : experimental Portability : portable -} module Helium.Main.PhaseTypingStrategies(phaseTypingStrategies) where import Helium.Main.CompileUtils import Lvm.Core.Expr (CoreDecl) import Helium.StaticAnalysis.Directi...
null
https://raw.githubusercontent.com/Helium4Haskell/helium/5928bff479e6f151b4ceb6c69bbc15d71e29eb47/src/Helium/Main/PhaseTypingStrategies.hs
haskell
| Module : PhaseTypingStrategies License : GPL Maintainer : Stability : experimental Portability : portable
module Helium.Main.PhaseTypingStrategies(phaseTypingStrategies) where import Helium.Main.CompileUtils import Lvm.Core.Expr (CoreDecl) import Helium.StaticAnalysis.Directives.TS_Compile (readTypingStrategiesFromFile) import qualified Data.Map as M import Helium.Syntax.UHA_Syntax (Name) import Top.Types (TpScheme) pha...
75ab33c48606d646585dc1f446bd7c303abc1ecaba91549d5bb72a55ffae568b
rodrigosetti/stamps
anemone.rkt
#lang s-exp stamps/lang (define-shape start ((stem 8) [h 300])) (define-shape (stem branches) ((loop ([i branches]) ((branch (random-real -6 6)) [x .1] [r (* i (/ branches 360))] [s .7])))) (define-shape (branch turn) [1 =>...
null
https://raw.githubusercontent.com/rodrigosetti/stamps/958938dd71fdaa64041ea13f1b491bda628bda9c/examples/anemone.rkt
racket
#lang s-exp stamps/lang (define-shape start ((stem 8) [h 300])) (define-shape (stem branches) ((loop ([i branches]) ((branch (random-real -6 6)) [x .1] [r (* i (/ branches 360))] [s .7])))) (define-shape (branch turn) [1 =>...
58ae1f91c909e0a274acde507cfe121e44662246d3f6ec6e28827730c1892f12
melange-re/melange
list_stack.ml
List.find (fun x -> x > 3 ) [] |. ignore
null
https://raw.githubusercontent.com/melange-re/melange/246e6df78fe3b6cc124cb48e5a37fdffd99379ed/jscomp/test/list_stack.ml
ocaml
List.find (fun x -> x > 3 ) [] |. ignore
120a0ce369ec42327524ad40a22ff08682c0f6dc4b2a4a4d84c7fdfc250cb6ee
quephird/fun-with-quil
protea.clj
(ns fun-with-quil.protea (:require [quil.core :as q :include-macros true] [quil.middleware :as m])) ; Naming of flower parts taken from this article: ; ; TODO: Probably need some sort of threadlocal to define ; this global setting; look at source for ; sphereDetail(). ( - detail [...
null
https://raw.githubusercontent.com/quephird/fun-with-quil/3b3a6885771f5a1a4cffeb8379f05a28048a1616/src/fun_with_quil/sketches/protea.clj
clojure
Naming of flower parts taken from this article: TODO: Probably need some sort of threadlocal to define this global setting; look at source for sphereDetail(). TODO: Technically, I ought to draw the base as well, although it's not needed in this particular sketch. (q/ellipse 0 0 r r) ...
(ns fun-with-quil.protea (:require [quil.core :as q :include-macros true] [quil.middleware :as m])) ( - detail [ n ] ) (defn cone [r h] (let [n 20] (q/push-matrix) (let [t (/ q/TWO-PI n)] (dotimes [i n] (q/begin-shape :triangles) (q/vertex r 0 0) (q/vertex...
9adf72f2dce21a4c651ed0f37a452648a86372e90999797f64f970b455d4cdd4
peterholko/pax_server
log4erl.erl
-module(log4erl). -author("Ahmed Al-Issaei"). -license("MPL-1.1"). -behaviour(gen_server). -behaviour(application). -include("../include/log4erl.hrl"). %% API -export([start_link/1]). -export([change_log_level/1, change_log_level/2]). -export([change_level/2, change_level/3]). -export([add_logger/1,...
null
https://raw.githubusercontent.com/peterholko/pax_server/62b2ec1fae195ff915d19af06e56a7c4567fd4b8/lib/log4erl/src/log4erl.erl
erlang
API gen_server callbacks Application callbacks Appender = {Appender, Name} Appender = {Appender, Name} For default logger ====================================== gen_server callback functions ====================================== No logger specified? use default logger ================================...
-module(log4erl). -author("Ahmed Al-Issaei"). -license("MPL-1.1"). -behaviour(gen_server). -behaviour(application). -include("../include/log4erl.hrl"). -export([start_link/1]). -export([change_log_level/1, change_log_level/2]). -export([change_level/2, change_level/3]). -export([add_logger/1, conf/1]...
a8dd625bf226ee95234d01818348acfe9e41ca28422f7e6e0901f543f7755d73
proger/erldocker
erldocker_app.erl
-module(erldocker_app). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %% =================================================================== %% Application callbacks %% =================================================================== start(_StartType, _StartArgs) -> ok = hackne...
null
https://raw.githubusercontent.com/proger/erldocker/dbff82656bafb96dbfbb21a70302e30aa37cbbb8/src/erldocker_app.erl
erlang
Application callbacks =================================================================== Application callbacks ===================================================================
-module(erldocker_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> ok = hackney_pool:start_pool(erldocker_pool, [{timeout, 150000}, {pool_size, 1}]), erldocker_sup:start_link(). stop(_State) -> hackney_pool:stop_pool(erldocker_pool), ok.
f741053e0d4d73a60e635d492375404937afe494046782d5b102099bc0b45aec
clojure-interop/aws-api
project.clj
(defproject clojure-interop/com.amazonaws.services.securitytoken "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.securitytoken" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.securitytoken/project.clj
clojure
(defproject clojure-interop/com.amazonaws.services.securitytoken "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.securitytoken" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source...
a75358ba4a11198e7809c45c077db55d4e49a133d8627f74c5b49bc2dd4420c4
kieranbrowne/clojure-tensorflow
project.clj
(defproject rnn "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [clojure-tensorflow "0.2.1"]])
null
https://raw.githubusercontent.com/kieranbrowne/clojure-tensorflow/a1771cda9e108c8575da7addbe4fe55283c5149b/examples/rnn/project.clj
clojure
(defproject rnn "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"] [clojure-tensorflow "0.2.1"]])
afba43f24d987901579ab2821dc992b1364357aff7687ab3072f46456e4aa481
tfausak/patrol
Level.hs
module Patrol.Type.Level where import qualified Data.Aeson as Aeson -- | <-payloads/types/#level> data Level = Debug | Info | Warning | Error | Fatal deriving (Eq, Show) instance Aeson.ToJSON Level where toJSON level = Aeson.toJSON $ case level of Debug -> "debug" Info -> "info" Warning -> ...
null
https://raw.githubusercontent.com/tfausak/patrol/1cae55b3840b328cda7de85ea424333fcab434cb/source/library/Patrol/Type/Level.hs
haskell
| <-payloads/types/#level>
module Patrol.Type.Level where import qualified Data.Aeson as Aeson data Level = Debug | Info | Warning | Error | Fatal deriving (Eq, Show) instance Aeson.ToJSON Level where toJSON level = Aeson.toJSON $ case level of Debug -> "debug" Info -> "info" Warning -> "warning" Error -> "error"...
44c4b9c146d4e13c0d19ed6fbcfdc3bbb8b2280a8fce07b78cf04c3a2b56cc2a
bruz/hotframeworks
github.clj
(ns hotframeworks.test.statistic-types.github (:require [hotframeworks.statistic-types.github :as github] [environ.core :refer [env]] [tentacles.repos :as repos]) (:use midje.sweet)) (fact "statistic provided with valid github owner/repo" (def framework {:github_owner "Raynes" :github_rep...
null
https://raw.githubusercontent.com/bruz/hotframeworks/629aa8f3cd7556479ea5cd7720d8b06ee4926ae4/test/hotframeworks/test/statistic_types/github.clj
clojure
(ns hotframeworks.test.statistic-types.github (:require [hotframeworks.statistic-types.github :as github] [environ.core :refer [env]] [tentacles.repos :as repos]) (:use midje.sweet)) (fact "statistic provided with valid github owner/repo" (def framework {:github_owner "Raynes" :github_rep...
a9d61f7280f7c78bf12fc0cd9de6495dacb39e86ceceb9848e4f8ee341ff626c
jozefg/c-dsl
StringLike.hs
# LANGUAGE FlexibleInstances # | The home of all the orphaned ' ' instances -- used throughout the DSL. module Language.C.DSL.StringLike where import Data.String import Language.C instance IsString Ident where fromString = internalIdent instance IsString CExpr where fromString s = CVar (fromString s) undefNode i...
null
https://raw.githubusercontent.com/jozefg/c-dsl/57251493a77f9d72e70afe6c9a3b2e9b5359082d/src/Language/C/DSL/StringLike.hs
haskell
used throughout the DSL.
# LANGUAGE FlexibleInstances # | The home of all the orphaned ' ' instances module Language.C.DSL.StringLike where import Data.String import Language.C instance IsString Ident where fromString = internalIdent instance IsString CExpr where fromString s = CVar (fromString s) undefNode instance IsString CDeclr wher...
d960dc2f8a9b80a4913fc3041d611dfc90127bf1a6eddeba92143c4ddd9e0940
aerosol/signerl
tcap_invocation_sup.erl
$ I d : tcap_invocation_sup.erl , v 1.2 2005/08/04 09:33:17 vances Exp $ %%%--------------------------------------------------------------------- 2004 - 2005 Motivity Telecom @author < > [ ] %%% @end %%% Copyright ( c ) 2004 - 2005 , Motivity Telecom %%% %%% All rights reserved. %%% %%% Redistribution an...
null
https://raw.githubusercontent.com/aerosol/signerl/b85bdc8e2a740afd80c64006e777269496aaa5dc/TCAP/src/tcap_invocation_sup.erl
erlang
--------------------------------------------------------------------- @end 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 ...
$ I d : tcap_invocation_sup.erl , v 1.2 2005/08/04 09:33:17 vances Exp $ 2004 - 2005 Motivity Telecom @author < > [ ] Copyright ( c ) 2004 - 2005 , Motivity Telecom - Neither the name of Motivity Telecom nor the names of its " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWN...
4e435fb45ccc0a4819bb460adc05bb27a55011d563fa07800966ececf9a143b3
haskell/primitive
Primitive.hs
# LANGUAGE CPP , MagicHash , UnboxedTuples , TypeFamilies # # LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - deprecations # -- | Module : Control . . Primitive Copyright : ( c ) Roman L...
null
https://raw.githubusercontent.com/haskell/primitive/056bf4bea9c04a6d2f1c2e99218dd0a678df482d/Control/Monad/Primitive.hs
haskell
| License : BSD-style Portability : non-portable Primitive state-transformer monads. | Class of monads which can perform primitive state-transformer actions. | State token type. | Execute a primitive operation. | Class of primitive monads for state-transformer actions. expressed as a state transformer, ...
# LANGUAGE CPP , MagicHash , UnboxedTuples , TypeFamilies # # LANGUAGE FlexibleContexts , FlexibleInstances , UndecidableInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE MultiParamTypeClasses # # OPTIONS_GHC -fno - warn - deprecations # Module : Control . . Primitive Copyright : ( c ) Roman Leshch...
e87309ad0092be4c4a60544a367a061929799ad6c4b80891f8f44490eda64fc2
cj1128/sicp-review
2.38.scm
(define (fold-right op initial sequence) (if (null? sequence) initial (op (car sequence) (fold-right op initial (cdr sequence))))) (define (fold-left op initial seq) (define (iter result rest) (if (null? rest) result (iter (op result (car rest)) ...
null
https://raw.githubusercontent.com/cj1128/sicp-review/efaa2f863b7f03c51641c22d701bac97e398a050/chapter-2/2.2/2.38.scm
scheme
For fold-left and fold-right to produce the same result op must satisfy *commutativity* and *associativity*. (fold-left op init '(e1)) = (op init e1) (fold-right op init '(e1)) = (op e1 init) If (op init e1) equals to (op e1 init) then op must have commutativity. (fold-left op init '(e1 e2)) = (op (op init e1) e...
(define (fold-right op initial sequence) (if (null? sequence) initial (op (car sequence) (fold-right op initial (cdr sequence))))) (define (fold-left op initial seq) (define (iter result rest) (if (null? rest) result (iter (op result (car rest)) ...
1fcb11cc1d074304efe4daff39bee6f77d4e9786316473ec1f2a4082bf7ca878
mejgun/haskell-tdlib
SetBackground.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SetBackground where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.BackgroundType as BackgroundType import qualified TD.Data.InputBackground as InputBackground import qualified Utils as U -- | -- Changes the bac...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/SetBackground.hs
haskell
# LANGUAGE OverloadedStrings # | | Changes the background selected by the user; adds background to the list of installed backgrounds | Pass true if the background is changed for a dark theme | Background type; pass null to use the default type of the remote background or to remove the current background | The inp...
module TD.Query.SetBackground where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.BackgroundType as BackgroundType import qualified TD.Data.InputBackground as InputBackground import qualified Utils as U data SetBackground = SetBackground for_dark_theme :: Maybe ...
3df888289825a3faa19b5f36f667a02b9c9922d49c4d81b059ff0a1b9222c55c
brownplt/cs173-python
python-syntax.rkt
#lang plai-typed (define-type PyExpr [PySeq (es : (listof PyExpr))] [PyNum (n : number)] [PyId (x : symbol)] [PyApp (fun : PyExpr) (args : (listof PyExpr))])
null
https://raw.githubusercontent.com/brownplt/cs173-python/d8ae026172f269282e54366f16ec42e037117cb4/python-syntax.rkt
racket
#lang plai-typed (define-type PyExpr [PySeq (es : (listof PyExpr))] [PyNum (n : number)] [PyId (x : symbol)] [PyApp (fun : PyExpr) (args : (listof PyExpr))])
dbeff5bef288a0e9feac5424f41308df27f0976fe3b2fd02b65b890efbf59f0e
tolysz/prepare-ghcjs
Message.hs
# LANGUAGE GADTs , DeriveGeneric , StandaloneDeriving , GeneralizedNewtypeDeriving , ExistentialQuantification , RecordWildCards # GeneralizedNewtypeDeriving, ExistentialQuantification, RecordWildCards #-} # OPTIONS_GHC -fno - warn - name - shadowing -fno - warn - orphans # module GHCi.Message ( Message(.....
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts8/ghci/GHCi/Message.hs
haskell
----------------------------------------------------------------------------- | A @Message a@ is a message that returns a value of type @a@ | Exit the iserv process ----------------------------------------- These all invoke the corresponding functions in the RTS Linker API. error? error? error? Interpreter ----...
# LANGUAGE GADTs , DeriveGeneric , StandaloneDeriving , GeneralizedNewtypeDeriving , ExistentialQuantification , RecordWildCards # GeneralizedNewtypeDeriving, ExistentialQuantification, RecordWildCards #-} # OPTIONS_GHC -fno - warn - name - shadowing -fno - warn - orphans # module GHCi.Message ( Message(.....
4ce570c17e501e8194cba3867118c27c1c04980fdb860f5087f66c74048645b5
chef/chef-server
chef_db_compression.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > @author < > Copyright Chef Software , Inc. All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file exce...
null
https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_erchef/apps/chef_objects/src/chef_db_compression.erl
erlang
ex: ts=4 sw=4 et Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. node data. ...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > @author < > Copyright Chef Software , Inc. All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under...
3e91d9b32240df3aa342de43526cd0ef55b62ea6c55e1538dc55e864d0cf1cea
softwarelanguageslab/maf
R5RS_various_scm2c-5.scm
; Changes: * removed : 3 * added : 5 * swaps : 6 * negated predicates : 5 * swapped branches : 7 * calls to i d fun : 9 (letrec ((void (lambda () (if #f (<change> #t #f) (<change> #f #t)))) (tagged-list? (lambda (tag l) (if (pair? l) (eq? tag (car l)) #f)))...
null
https://raw.githubusercontent.com/softwarelanguageslab/maf/11acedf56b9bf0c8e55ddb6aea754b6766d8bb40/test/changes/scheme/generated/R5RS_various_scm2c-5.scm
scheme
Changes:
* removed : 3 * added : 5 * swaps : 6 * negated predicates : 5 * swapped branches : 7 * calls to i d fun : 9 (letrec ((void (lambda () (if #f (<change> #t #f) (<change> #f #t)))) (tagged-list? (lambda (tag l) (if (pair? l) (eq? tag (car l)) #f))) (...
e73ef97f602e419ee7a868794576183927d2f0ffd2ca7debf70abd19157737f6
lymar/hastache
listsGeneric.hs
#!/usr/local/bin/runhaskell {-# LANGUAGE DeriveDataTypeable #-} import Text.Hastache import Text.Hastache.Context import qualified Data.Text.Lazy.IO as TL import Data.Data import Data.Generics main = hastacheStr defaultConfig (encodeStr template) context >>= TL.putStrLn -- begin example data Hero = Hero { na...
null
https://raw.githubusercontent.com/lymar/hastache/cd299ff1ac4c35259fbd333ea7fa9b3c280b9ff9/examples/listsGeneric.hs
haskell
# LANGUAGE DeriveDataTypeable # begin example
#!/usr/local/bin/runhaskell import Text.Hastache import Text.Hastache.Context import qualified Data.Text.Lazy.IO as TL import Data.Data import Data.Generics main = hastacheStr defaultConfig (encodeStr template) context >>= TL.putStrLn data Hero = Hero { name :: String } deriving (Data, Typeable) data Heroes ...
40f6c1bb6c0cb6f5572d89a710457e4385445037c3285b84c3bc0d441f31210a
uzh/guardian
guardian_backend.ml
module Pools = Database_pools module MariaDb = Mariadb_backend module Sqlite = Sqlite3_backend
null
https://raw.githubusercontent.com/uzh/guardian/c4924b4c53ee1231faea67f02cfdcc59b7623649/backend/guardian_backend.ml
ocaml
module Pools = Database_pools module MariaDb = Mariadb_backend module Sqlite = Sqlite3_backend
a802c7a1b74933d5a0a106bee7130bca835380a212ce91768688db039ecd7dc4
mtravers/wuwei
t-ajax.lisp
(in-package :wu) (5am:def-suite :ajax :in :wuwei) (5am:in-suite :ajax) (defparameter *test-port* 8003) aserve started acting in ccl , so this stops working if it is called > 1 time ... or something like that . (net.aserve:start :port *test-port*) (defun test-url (s) (format nil ":~A/tests/~A" *test-port* s)) (...
null
https://raw.githubusercontent.com/mtravers/wuwei/c0968cca10554fa12567d48be6f932bf4418dbe1/t/t-ajax.lisp
lisp
Test that the generation machinery is sane Tests ajax-continuation mechanism via GET-URL
(in-package :wu) (5am:def-suite :ajax :in :wuwei) (5am:in-suite :ajax) (defparameter *test-port* 8003) aserve started acting in ccl , so this stops working if it is called > 1 time ... or something like that . (net.aserve:start :port *test-port*) (defun test-url (s) (format nil ":~A/tests/~A" *test-port* s)) (...
432e33e0a44d2dbaba082ea6f871c84c4d03754647d4d4b63300cf0ecd7c2cc0
overtone/overtone
wavetable_test.clj
(ns overtone.studio.wavetable-test (:use [overtone.studio wavetable] clojure.test)) (deftest wavetable-signal-conversion-test (is (= (map double (range 1000.0)) (wavetable->signal (signal->wavetable (range 1000.0))))))
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/test/overtone/studio/wavetable_test.clj
clojure
(ns overtone.studio.wavetable-test (:use [overtone.studio wavetable] clojure.test)) (deftest wavetable-signal-conversion-test (is (= (map double (range 1000.0)) (wavetable->signal (signal->wavetable (range 1000.0))))))
713108595020ed930efcc43819f2e8ab842224a7d4812063fe047fdd33a19ac7
xapi-project/xen-api-libs
listext.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/stdext/listext.ml
ocaml
* Turn a list into a set Tail-recursive map. Like the Lisp cons Thanks to sharing we only use linear space. (Roughly double the space needed for the spine of the original list)
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * 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 Foundation ; version 2.1 only . with the special * exception on linking describe...
167251e23a7a1af5024c0d15583f6f2cbacad179e92a85e53e2569b65f3fff36
jacekschae/learn-reitit-course-files
db.clj
(ns cheffy.recipe.db (:require [next.jdbc.sql :as sql] [next.jdbc :as jdbc] [clojure.string :as str])) (defn find-all-recipes [db uid] (with-open [conn (jdbc/get-connection db)] (let [public (sql/find-by-keys conn :recipe {:public true})] (if uid (let [drafts (sql/find-b...
null
https://raw.githubusercontent.com/jacekschae/learn-reitit-course-files/c13a8eb622a371ad719d3d9023f1b4eff9392e4c/increments/39-ingredient-tests/src/cheffy/recipe/db.clj
clojure
(ns cheffy.recipe.db (:require [next.jdbc.sql :as sql] [next.jdbc :as jdbc] [clojure.string :as str])) (defn find-all-recipes [db uid] (with-open [conn (jdbc/get-connection db)] (let [public (sql/find-by-keys conn :recipe {:public true})] (if uid (let [drafts (sql/find-b...
8ed3fca66230aa1dae531f79ce5e9cabc1bb6b91a19b3468aa11ba846c829ccc
ctford/Idris-Elba-Dev
DataOpts.hs
# LANGUAGE PatternGuards # module Idris.DataOpts where -- Forcing, detagging and collapsing import Idris.AbsSyntax import Idris.AbsSyntaxTree import Idris.Core.TT import Control.Applicative import qualified Data.IntMap as M import Data.List import Data.Maybe import Debug.Trace type ForceMap = M.IntMap Forceability...
null
https://raw.githubusercontent.com/ctford/Idris-Elba-Dev/e915e1d6b7a5921ba43d2572a9ad9b980619b8ee/src/Idris/DataOpts.hs
haskell
Forcing, detagging and collapsing Calculate the forceable arguments to a constructor and update the set of optimisations. Label all occurrences of the variable bound in Pi in the rest of the term with the number i so that we can recognize them anytime later. if `ty' is collapsible, the argument is unconditionally...
# LANGUAGE PatternGuards # module Idris.DataOpts where import Idris.AbsSyntax import Idris.AbsSyntaxTree import Idris.Core.TT import Control.Applicative import qualified Data.IntMap as M import Data.List import Data.Maybe import Debug.Trace type ForceMap = M.IntMap Forceability forceArgs :: Name -> Name -> [Int] ...
1e2163b190dd8ed0463659e04654c322a742641d4edcfe13394c93305f921639
hercules-ci/hercules-ci-agent
CLIToken.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} module Hercules.API.Accounts.CLIToken where import Hercules.API.Accounts.Account (Account) import Hercules.API.Prelude data CLIToken = CLIToken { id :: Id "CLIToken", description :: Text, creationTime :: UTCTime, userId :: Id Account } deriving...
null
https://raw.githubusercontent.com/hercules-ci/hercules-ci-agent/43d12815b3d53fb062fa23a2053618c1bccf304c/hercules-ci-api/src/Hercules/API/Accounts/CLIToken.hs
haskell
# LANGUAGE DeriveAnyClass #
# LANGUAGE DataKinds # module Hercules.API.Accounts.CLIToken where import Hercules.API.Accounts.Account (Account) import Hercules.API.Prelude data CLIToken = CLIToken { id :: Id "CLIToken", description :: Text, creationTime :: UTCTime, userId :: Id Account } deriving (Generic, Show, Eq, NFData, ToJ...
83ffaf263459993065ca10ac4d6dc93dd7ded23daccfb8752b852ffe928fd6c1
simplegeo/erlang
snmpm_net_if.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2004 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pu...
null
https://raw.githubusercontent.com/simplegeo/erlang/15eda8de27ba73d176c7eeb3a70a64167f50e2c4/lib/snmp/src/manager/snmpm_net_if.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limit...
Copyright Ericsson AB 2004 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmpm_net_if). -behaviour(gen_ser...
312c34b58b4a5d8808b3fd0182c2901a8b20d27d761c4a5bd2e7ec90b9ee3d3e
rwmjones/guestfs-tools
customize_run.mli
virt - customize * Copyright ( C ) 2014 Red Hat Inc. * * 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 Foundation ; either version 2 of the License , or * ( at your option ) any later v...
null
https://raw.githubusercontent.com/rwmjones/guestfs-tools/3a498512f58bc431db490e96cdb712b19389bda4/customize/customize_run.mli
ocaml
After command line arguments have been parsed, call this function * to perform the operations on a guest handle. * * Note that inspection must have been done on the handle, and * filesystems must be mounted up.
virt - customize * Copyright ( C ) 2014 Red Hat Inc. * * 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 Foundation ; either version 2 of the License , or * ( at your option ) any later v...
956b0600e87a238cde594a0e29effb091019171e445a6f508f90feda4b491d8a
jeapostrophe/racket-langserver
info.rkt
#lang info (define collection "racket-langserver") (define deps '("base" "compatibility-lib" "data-lib" "drracket-tool-lib" "gui-lib" "syntax-color-lib" "scribble-lib" ;; for blueboxes (scribble/blueboxes) "racket-i...
null
https://raw.githubusercontent.com/jeapostrophe/racket-langserver/a1141f0871a55c036949d0bb0179fddbf86a97cd/info.rkt
racket
for blueboxes (scribble/blueboxes) for cross references (setup/xref) for parsing documentation text
#lang info (define collection "racket-langserver") (define deps '("base" "compatibility-lib" "data-lib" "drracket-tool-lib" "gui-lib" "syntax-color-lib" )) (define build-deps '("chk")) (define pkg-desc "Language Server Protocol im...
333e82fabd6bfed0cd6a6fcfb623f117b42ccac64072be7f8b73040174d2c22f
grin-compiler/ghc-wpc-sample-programs
StyleMap.hs
# LANGUAGE FlexibleContexts # | Module : Text . Pandoc . Writers . Docx . Copyright : © 2014 - 2020 < > , 2014 - 2020 < > , 2015 - 2019 < > License : GNU GPL , version 2 or above Maintainer : < > Stability : alpha Por...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/pandoc-11df2a3c0f2b1b8e351ad8caaa7cdf583e1b3b2e/src/Text/Pandoc/Writers/Docx/StyleMap.hs
haskell
# LANGUAGE FlexibleContexts # | Module : Text . Pandoc . Writers . Docx . Copyright : © 2014 - 2020 < > , 2014 - 2020 < > , 2015 - 2019 < > License : GNU GPL , version 2 or above Maintainer : < > Stability : alpha Por...
bc33aade32525cb67ca5d8d9b00906b6046d3a8bb9e9e5ac158bb2972afab2e5
bnoordhuis/chicken-core
compiler-tests.scm
;;;; compiler-tests.scm (import foreign) ;; test dropping of previous toplevel assignments (define (foo) (define (bar) 1) (bar 2)) ; will trigger error later (define bar 1) (define (baz) 2) (define (foo) 'ok) (assert (eq? 'ok (foo))) ;; test hiding of unexported toplevel variables (module foo (bar) (import s...
null
https://raw.githubusercontent.com/bnoordhuis/chicken-core/56d30e3be095b6abe1bddcfe10505fa726a43bb5/tests/compiler-tests.scm
scheme
compiler-tests.scm test dropping of previous toplevel assignments will trigger error later test hiding of unexported toplevel variables - canonicalization of assignment to location didn't walk expansion recursively - generated init-assignment refers to alias, but alias isn't seen later) - type specifiers in f...
(import foreign) (define bar 1) (define (baz) 2) (define (foo) 'ok) (assert (eq? 'ok (foo))) (module foo (bar) (import scheme chicken) (declare (hide bar)) (define (bar x) (+ x 1))) (assert (not (##sys#symbol-has-toplevel-binding? 'foo#bar))) rev . 12104 ( reported by ) (define test-location (l...
f5e537b53e6009c72b2cba126226688091284e38b86145ac3e0ab8dfe8b4b9c9
sadiqj/ocaml-esp32
foo.ml
let value = "Hello, world!"
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/self-contained-toplevel/foo.ml
ocaml
let value = "Hello, world!"
95bb60560a84544ced80090efd980e9b893196f37f7f7ec2f39bbac304754235
adamwalker/clash-utils
Chain.hs
-- | Utility functions for wiring up streams with backpressure module Clash.Stream.Chain ( chainStream, VecStream, chainStreamVec ) where import Clash.Prelude -- | Convenience function for chaining streams together, correctly connecting up their ready signals chainStream :: (Signal dom b -> Signa...
null
https://raw.githubusercontent.com/adamwalker/clash-utils/375c61131e21e9a239b80bdb929ae77f156d056f/src/Clash/Stream/Chain.hs
haskell
| Utility functions for wiring up streams with backpressure | Convenience function for chaining streams together, correctly connecting up their ready signals ^ Regular stream function accepting and returning backpressure ^ Stream function earlier in the pipeline ^ Output stream function ^ Downstream ready ^ Inco...
module Clash.Stream.Chain ( chainStream, VecStream, chainStreamVec ) where import Clash.Prelude chainStream chainStream downstream upstream readyOut = streamOut where dat = upstream ready (streamOut, ready) = downstream dat readyOut type VecStream a b dom m -> ( ) ...
a74e858874de21fc6a178252781224a9e4425ae5370a90c104946dbd44236712
racket/expeditor
param.rkt
#lang racket/base (require racket/fixnum) ;; See "../main.rkt" ;;; parameters (provide ee-common-identifiers ee-default-repeat ee-auto-indent ee-auto-paren-balance ee-flash-parens ee-paren-flash-delay ee-noisy ee-standard-indent ee-history-limit...
null
https://raw.githubusercontent.com/racket/expeditor/34973c081bdf6ffec0c69c0126d8849a00e012a3/expeditor-lib/private/param.rkt
racket
See "../main.rkt" parameters general theory: exclude short ids and ids that will come up early in an alphabetical search with short prefix. include common ids that come up annoyingly late in such a search. default repeat value for ^U paren balance delay factor in milliseconds enable/disable bell standard inde...
#lang racket/base (require racket/fixnum) (provide ee-common-identifiers ee-default-repeat ee-auto-indent ee-auto-paren-balance ee-flash-parens ee-paren-flash-delay ee-noisy ee-standard-indent ee-history-limit current-expeditor-lexer ...
b02e9c6fa1ff409022020b0d3b5ffe43180b679a94262ac1e3cffcbe930007a5
g000001/tagger
common-lisp.lisp
-*- Mode : Lisp ; Package : COMMON - LISP ; Base : 10 . ; Syntax : Common - Lisp -*- ;;; Defines the COMMON - LISP package , our version of CommonLisp as it will exist one ;;; day in the far distant future. ;;; Copyright ( c ) 1989 , 1990 by Xerox Corporation . All rights reserved . ;;; (in-package "COMMON-LIS...
null
https://raw.githubusercontent.com/g000001/tagger/a4e0650c55aba44250871b96e2220e1b4953c6ab/orig/src/common-lisp/common-lisp.lisp
lisp
Package : COMMON - LISP ; Base : 10 . ; Syntax : Common - Lisp -*- day in the far distant future. PRINT-UNREADABLE-OBJECT DECLAIM The following top-level forms are shadowed to give us a way to tell the compiler how to tell us what it being compiled. This has nothing to do with the COMMON-LISP package, but it...
Defines the COMMON - LISP package , our version of CommonLisp as it will exist one Copyright ( c ) 1989 , 1990 by Xerox Corporation . All rights reserved . (in-package "COMMON-LISP") #+lucid (defmacro print-unreadable-object (&rest rest) `(system:printing-random-object ,@rest)) #+cmu-v15 (defmacro print-un...
52af323d3ecb389a29eb00c9212b2e4678a4a2ae143c30f94b4609fc88771424
reborg/clojure-essential-reference
5.clj
(spit source-file < 1 > (defn select [n] (assert false \"Never triggers\"))") < 2 > (compile 'assertion)) ;; assertion (assertion/select -5) ; <3> ;; nil
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/DynamicVariablesintheStandardLibrary/*assert*/5.clj
clojure
assertion <3> nil
(spit source-file < 1 > (defn select [n] (assert false \"Never triggers\"))") < 2 > (compile 'assertion))
7bc89f459f5cc1ed0aa1bb855bc2359172e4b04272fd1ed9ac887eec5254edb6
dsheets/ocaml-unix-sys-stat
unix_sys_stat_bindings.ml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/dsheets/ocaml-unix-sys-stat/6e1b61bc9bc19933d4b28e4dccd146089808da95/lib_gen/unix_sys_stat_bindings.ml
ocaml
* Copyright ( c ) 2015 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
8f68cdcadc752e02ea2b79bf657919d565f62cc6e1f71255eba405768c2ba407
Spivoxity/obc-3
bootyacc.mli
Definitions generated by 's special yacc type token = | EOF | SYMBOL of (Grammar.symbol) | TAG of (string) | NUMBER of (string) | SEMACT of (Lexing.position * string) | QUOTE | TOKEN | LEFT | RIGHT | NONASSOC | START | TYPE | PREC | PPERCENT | COLON | SEMI | VBAR | DOT | AT |...
null
https://raw.githubusercontent.com/Spivoxity/obc-3/9e5094df8382ac5dd25ff08768277be6bd71a4ae/yacc/bootyacc.mli
ocaml
Definitions generated by 's special yacc type token = | EOF | SYMBOL of (Grammar.symbol) | TAG of (string) | NUMBER of (string) | SEMACT of (Lexing.position * string) | QUOTE | TOKEN | LEFT | RIGHT | NONASSOC | START | TYPE | PREC | PPERCENT | COLON | SEMI | VBAR | DOT | AT |...
cc13af60902642be4ff0c61fc16152dabf1bd48b9323b1babe516a214d4df825
mbj/stratosphere
FeatureDefinitionProperty.hs
module Stratosphere.SageMaker.FeatureGroup.FeatureDefinitionProperty ( FeatureDefinitionProperty(..), mkFeatureDefinitionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphe...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/sagemaker/gen/Stratosphere/SageMaker/FeatureGroup/FeatureDefinitionProperty.hs
haskell
module Stratosphere.SageMaker.FeatureGroup.FeatureDefinitionProperty ( FeatureDefinitionProperty(..), mkFeatureDefinitionProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphe...
49a9b0d24f27ae5f734ef70a43de78bbb1c7863ba36a0cdeaf793bd7e230a697
na0214/snail
snail.ml
open Snailml let _ = let input_files = ref [] in let arguments_spec = [] in Arg.parse_argv Sys.argv arguments_spec (fun str -> input_files := str :: !input_files) "" ; try Processing.processing !input_files with Infer.TypeError (err, pos) -> Processing.print_error pos err
null
https://raw.githubusercontent.com/na0214/snail/ca31eace7285e54bf53986df80dfa16050b32752/snail/snail.ml
ocaml
open Snailml let _ = let input_files = ref [] in let arguments_spec = [] in Arg.parse_argv Sys.argv arguments_spec (fun str -> input_files := str :: !input_files) "" ; try Processing.processing !input_files with Infer.TypeError (err, pos) -> Processing.print_error pos err
af3c7d58d1f3abbb02d7c5a47ea0be58be865c5681ff1504b512cb56aa254735
filipesilva/datafire
samples.cljs
(ns datafire.samples) Adapted from (def schema {:movie/director {:db/valueType :db.type/ref :db/cardinality :db.cardinality/many :db/isComponent true} :movie/cast {:db/valueType :db.type/ref :db/cardinality :db.cardin...
null
https://raw.githubusercontent.com/filipesilva/datafire/84bc3fd0fca563ff0aeaba6cfcdd95dc314ebc75/src/test/datafire/samples.cljs
clojure
(ns datafire.samples) Adapted from (def schema {:movie/director {:db/valueType :db.type/ref :db/cardinality :db.cardinality/many :db/isComponent true} :movie/cast {:db/valueType :db.type/ref :db/cardinality :db.cardin...
242a5fa06bc41f61dc21a9960d31429d7bd3a03c56e9eb02f35d89075c43e48e
2600hz/kazoo
knm_bandwidth2.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz @doc Handle client requests for phone_number documents using new bandwidth api @author @author @author @author This Source Code Form is subject to the terms of the Mozilla Public License ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_numbers/src/carriers/knm_bandwidth2.erl
erlang
----------------------------------------------------------------------------- @end ----------------------------------------------------------------------------- Maintenance commands API ------------------------------------------------------------------------------ @doc @end ---------------------------------------...
( C ) 2010 - 2020 , 2600Hz @doc Handle client requests for phone_number documents using new bandwidth api @author @author @author @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can ob...
66f8ad221922a5d936bdc66a405f6778bd2cd180d27f027eea0768e2c5a2cb83
joearms/erlmediaserver
uuid.erl
Copyright ( c ) 2008 , % 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 conditions an...
null
https://raw.githubusercontent.com/joearms/erlmediaserver/35ef0d8300c50a273ee0122ccce65973af4c3a73/src/uuid.erl
erlang
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 conditions and the following disclaimer. ...
Copyright ( c ) 2008 , " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR LIABILITY ,...
06a74c632d4e0ec146c089c81c23653b1b43431f747144007c6c803c6c5dea7f
anurudhp/CPHaskell
a.hs
import Control.Arrow ((>>>)) main = interact $ words >>> drop 1 >>> map (read >>> solve >>> map show >>> unwords) >>> unlines solve n = n : [1 .. n - 1]
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/01ae8dde6aab4f6ddfebd122ded0b42779dd16f1/contests/codeforces/1454/a.hs
haskell
import Control.Arrow ((>>>)) main = interact $ words >>> drop 1 >>> map (read >>> solve >>> map show >>> unwords) >>> unlines solve n = n : [1 .. n - 1]
c01194ad66aab8ce5a802f8b8cd29fbaa52c3c4dab010f48e5b92a76cb2b72f6
clojure-quant/infra-guix
config-ocean.scm
;; This "home-environment" file can be passed to 'guix home reconfigure' ;; to reproduce the content of your profile. This is "symbolic": it only ;; specifies package names. To reproduce the exact same profile, you also ;; need to capture the channels being used, as returned by "guix describe". ;; See the "Replicatin...
null
https://raw.githubusercontent.com/clojure-quant/infra-guix/f004f45d54dd8c6e996764738021fe1a8fbd9567/home/config-ocean.scm
scheme
This "home-environment" file can be passed to 'guix home reconfigure' to reproduce the content of your profile. This is "symbolic": it only specifies package names. To reproduce the exact same profile, you also need to capture the channels being used, as returned by "guix describe". See the "Replicating Guix" se...
(use-modules (guix) (gnu) (gnu home) (gnu packages) (gnu packages shells) (gnu services) (guix gexp) (mcron scripts mcron) (mcron base) (mcron config) (mcron utils) (mcron vixie-specification) (mcron core) (gnu home services) (gnu home services shells) (gnu home services mcron) (awb99 guixuti...
9eee9bdd3a4f82c61443f97e54a4fb59cbaf43b7207911fb80123c4a70e81ab2
racket/racket7
dynamic-require.rkt
#lang racket/base (require "../common/phase.rkt" "../syntax/module-binding.rkt" "../syntax/api.rkt" "../namespace/namespace.rkt" "../namespace/module.rkt" "../namespace/provided.rkt" "../common/module-path.rkt" "../namespace/api.rkt" "main.rkt") (...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/expander/eval/dynamic-require.rkt
racket
Run phase 0; don't visit or make available Run phase 0, also make available Just visit Extract a particular value via phase 0.... The provided binding may correspond to an immediate provide, or it may by re-provided from a different module Before continuing, make sure that we're allowed to access the binding Fo...
#lang racket/base (require "../common/phase.rkt" "../syntax/module-binding.rkt" "../syntax/api.rkt" "../namespace/namespace.rkt" "../namespace/module.rkt" "../namespace/provided.rkt" "../common/module-path.rkt" "../namespace/api.rkt" "main.rkt") (...
916ad218e035424dd3d407e8681a50e5ee0ae0e15242ae30060e9ba61849a292
ocamllabs/ocaml-modular-implicits
tbl.ml
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/utils/tbl.ml
ocaml
********************************************************************* OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . type ('a, 'b) t = Empty | Node of...
1315d0811420c5f2e2dd1c5401662cbb2e3a7bd0bebb8e6c23088cbc369053d0
Mikolaj/horde-ad
OldMnistFcnnShaped.hs
# LANGUAGE DataKinds , ImpredicativeTypes , TypeFamilies # # OPTIONS_GHC -Wno - missing - export - lists # # OPTIONS_GHC -fplugin GHC.TypeLits . KnownNat . Solver # {-# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise #-} -- | Shaped tensor-based implementation of fully connected neutral network for classification of MNIS...
null
https://raw.githubusercontent.com/Mikolaj/horde-ad/aaadb4fb4de3125eff5470bcee82fde56f22f217/test/common/OldMnistFcnnShaped.hs
haskell
# OPTIONS_GHC -fplugin GHC.TypeLits.Normalise # | Shaped tensor-based implementation of fully connected neutral network Written in the old style without adaptors and with @fcnnMnistLenS@ The width of the layers is determined by the dimensions of the matrices and vectors given as dual number parameters (inputs). on...
# LANGUAGE DataKinds , ImpredicativeTypes , TypeFamilies # # OPTIONS_GHC -Wno - missing - export - lists # # OPTIONS_GHC -fplugin GHC.TypeLits . KnownNat . Solver # for classification of MNIST digits . Sports 2 hidden layers . and the @atS@ function instead . module OldMnistFcnnShaped where import Prelude import ...
41e6744b80ef490371e757bf6d4c402cf22503d56ff8bc71705ab68a1adcfcad
dreyk/zraft_lib
zraft_dict_backend.erl
%% ------------------------------------------------------------------- @author < > Copyright ( c ) 2015 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% ...
null
https://raw.githubusercontent.com/dreyk/zraft_lib/ead65c45df576be3758639e3fe3a46edefdeae1d/src/zraft_dict_backend.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permission...
@author < > Copyright ( c ) 2015 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(zraft...
75bb2681cee899512b84683275062dda9bf1e0603026b0926046dc2ecd1ac271
GregoryTravis/holfenstein
Map.hs
module Map where import qualified Data.Vector as V import Data.Vector ((!)) import Linear -- Grid is made of unit cubes Cubes are identified by their least corner coords -- Walls are identified by their least coord along their axis -- Remember these are drawn upside down type Grid = V.Vector (V.Vector Char) data W...
null
https://raw.githubusercontent.com/GregoryTravis/holfenstein/fcb8743351700c701757dc13fb6defcde53be306/Map.hs
haskell
Grid is made of unit cubes Walls are identified by their least coord along their axis Remember these are drawn upside down isHorWall w x y | TR.trace (show ("isHorWall", x, y)) False = undefined isSolid x y | TR.trace (show ("iS", x, y, (length grid), gridSize, (outsideGrid x y))) False = undefined x postition of h...
module Map where import qualified Data.Vector as V import Data.Vector ((!)) import Linear Cubes are identified by their least corner coords type Grid = V.Vector (V.Vector Char) data World = World Grid (Int, Int) deriving Show outsideGrid :: World -> Int -> Int -> Bool outsideGrid (World _ (w, h)) x y = x < 0 || y...
9650c4e28c39bbc0d162fd025acb1eaac70e4b5b9478be9cfefb02480af37c84
inaka/worker_pool
wpool_queue_manager.erl
This file is licensed to you 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 % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is dis...
null
https://raw.githubusercontent.com/inaka/worker_pool/60a2ee56ce9b156bf9b07b8ce2ca828d4208acb3/src/wpool_queue_manager.erl
erlang
Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. @hidden api gen_server callback...
This file is licensed to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(wpool_queue_manager). -behaviour(gen_server). -export([start_link/2, st...
4f2f0d8894c73a63ce799a6b5cab3407f1608bcac54bca1a8088abc0d2a05d5f
xsc/minion
cli.clj
(ns minion.cli (:refer-clojure :exclude [float])) # # Protocol (defprotocol ^:private Opt (^:private to-opt-strings [this])) (defn- ->short-opt [v] (if v (let [s (name v)] (if (.startsWith s "-") s (str "-" s))))) (defn- ->long-opt [v] (if v (let [s (name v)] (if (....
null
https://raw.githubusercontent.com/xsc/minion/ece143f5b6d60207c68fc41a26a590b180e5edb4/src/minion/cli.clj
clojure
## Helpers
(ns minion.cli (:refer-clojure :exclude [float])) # # Protocol (defprotocol ^:private Opt (^:private to-opt-strings [this])) (defn- ->short-opt [v] (if v (let [s (name v)] (if (.startsWith s "-") s (str "-" s))))) (defn- ->long-opt [v] (if v (let [s (name v)] (if (....
afcb30949e212305c3bdd893c596e3ebe08306eac5656c885d47d2b36697a247
gchrupala/morfette
NFDataIntances.hs
module GramLab.Morfette.NFDataIntances where import Control.Parallel.Strategies import GramLab.Morfette.Features.Common import GramLab.Data.Diff.EditListRev instance (NFData a, NFData b) => NFData (OR a b) where rnf (LHS a) = rnf a rnf (RHS b) = rnf b rnf (Both a b) = rnf a `seq` rnf b `seq` () instance (...
null
https://raw.githubusercontent.com/gchrupala/morfette/be40676c975d660bbb893953d354168506069862/src/GramLab/Morfette/NFDataIntances.hs
haskell
module GramLab.Morfette.NFDataIntances where import Control.Parallel.Strategies import GramLab.Morfette.Features.Common import GramLab.Data.Diff.EditListRev instance (NFData a, NFData b) => NFData (OR a b) where rnf (LHS a) = rnf a rnf (RHS b) = rnf b rnf (Both a b) = rnf a `seq` rnf b `seq` () instance (...
ec0d19028b80782fe4fb5983864447f8f6bb6c5c4149584ed7330d56198e36e7
EMSL-NMR-EPR/Haskell-MFAPipe-Executable
Rall.hs
# LANGUAGE DeriveFunctor , , DeriveTraversable # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # ----------------------------------------------------------------------------- -- | -- Module : Control.Comonad.Trans.Rall Copyright : 2016 - 17 Pacific Nort...
null
https://raw.githubusercontent.com/EMSL-NMR-EPR/Haskell-MFAPipe-Executable/8a7fd13202d3b6b7380af52d86e851e995a9b53e/Rall/src/Control/Comonad/Trans/Rall.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Comonad.Trans.Rall License : ECL-2.0 (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable derivative. isomorphic to the coreader comonad, where t...
# LANGUAGE DeriveFunctor , , DeriveTraversable # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # Copyright : 2016 - 17 Pacific Northwest National Laboratory The automatic differentiation ( AD ) holds a value along with its This module specifies the AD co...
cd08d4500e9b0e699b176a4d3b23e40ed63e29512cd98a4aed4c05952a58958f
samply/blaze
search_param_value_resource_test.clj
(ns blaze.db.impl.index.search-param-value-resource-test (:require [blaze.byte-buffer :as bb] [blaze.byte-string :as bs] [blaze.db.impl.codec :as codec] [blaze.db.impl.index.search-param-value-resource :as sp-vr] [blaze.db.impl.index.search-param-value-resource-spec] [blaze.fhir.hash :as hash]...
null
https://raw.githubusercontent.com/samply/blaze/6441a0a2f988b8784ed555c1d20f634ef2df7e4a/modules/db/test/blaze/db/impl/index/search_param_value_resource_test.clj
clojure
(ns blaze.db.impl.index.search-param-value-resource-test (:require [blaze.byte-buffer :as bb] [blaze.byte-string :as bs] [blaze.db.impl.codec :as codec] [blaze.db.impl.index.search-param-value-resource :as sp-vr] [blaze.db.impl.index.search-param-value-resource-spec] [blaze.fhir.hash :as hash]...
c0ebbdf11205727250045ec3ff7d8134ca7db839e1aed3edbfc1c49df95424e0
icicle-lang/p-ambiata
Applicative.hs
module P.Applicative ( ApplicativeMonoid (..) , valueOrEmpty , emptyOrValue , orEmpty , eitherA , (<<>>) ) where import Control.Applicative import Data.Semigroup import Prelude valueOrEmpty :: Alternative f => Bool -> a -> f a valueOrEmpty b a = if b then pure a else empt...
null
https://raw.githubusercontent.com/icicle-lang/p-ambiata/3098e411c9d521321e866b2f9637113223ef41d1/src/P/Applicative.hs
haskell
| Applicative mappend | wrapper for monoids in an applicative context
module P.Applicative ( ApplicativeMonoid (..) , valueOrEmpty , emptyOrValue , orEmpty , eitherA , (<<>>) ) where import Control.Applicative import Data.Semigroup import Prelude valueOrEmpty :: Alternative f => Bool -> a -> f a valueOrEmpty b a = if b then pure a else empt...
4d0e5472175dadb7c4c83ae4cfe722334674f10a55797ea2398a5d8130f62f27
lehins/pvar
PVar.hs
# LANGUAGE MagicHash # {-# LANGUAGE RankNTypes #-} # LANGUAGE UnboxedTuples # -- | Module : Data . Prim . PVar Copyright : ( c ) 2020 -- License : BSD3 Maintainer : < > -- Stability : experimental -- Portability : non-portable -- module Data.Prim.PVar | ` PVar ` has significantly better pe...
null
https://raw.githubusercontent.com/lehins/pvar/adc0387c6cd4e35e4f30a65ba29b524d6990e01c/pvar/src/Data/Prim/PVar.hs
haskell
# LANGUAGE RankNTypes # | License : BSD3 Stability : experimental Portability : non-portable because value is mutated directly in memory instead of following an extra pointer. Besides better performance there is another consequence of direct mutation, namely the value is always evaluated to normal form wh...
# LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # Module : Data . Prim . PVar Copyright : ( c ) 2020 Maintainer : < > module Data.Prim.PVar | ` PVar ` has significantly better performance characteristics over ` Data . IORef . IORef ` , ` Data . STRef . STRef ` and ` Data . Primitive . MutVar ....
eb845657ecfc9870438e64f6a9862824a5c7e7030195b88be7be6c7fc3a63fd4
nvkv/slackingbird
webhook_tests.clj
(ns slackingbird.webhook-tests (:require [clojure.test :refer :all] [ring.mock.request :as mock] [clojure.java.io :as io] [cheshire.core :refer :all] [slackingbird.slack.webhook-payload :refer :all])) (deftest test-parsing (testing "json->payload should be able to cr...
null
https://raw.githubusercontent.com/nvkv/slackingbird/195eccf1eb22be6379dfa06fef7e18845607ca1e/test/slackingbird/webhook_tests.clj
clojure
(ns slackingbird.webhook-tests (:require [clojure.test :refer :all] [ring.mock.request :as mock] [clojure.java.io :as io] [cheshire.core :refer :all] [slackingbird.slack.webhook-payload :refer :all])) (deftest test-parsing (testing "json->payload should be able to cr...
3a9deb7ac4cf6285ef3b92ce5499b6e9b2fcb26ec4c39d9fc489245850540cd9
TrustInSoft/tis-interpreter
translate_lightweight.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_internals/typing/translate_lightweight.ml
ocaml
************************************************************************ alternatives) Automatique) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en ...
8e80ccd35cec2ef0ec4a62a97fd1186b99c107bdc98fb8ad0e0af202a332379e
erlang/otp
inet_epmd_socket.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 2023 . 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 %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/78406bd5897261c0ffca54a23f6d777c72e95d69/lib/kernel/src/inet_epmd_socket.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 1997 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(inet_epmd_socket). -feature(maybe_expr, enable). DistMod API -export([net_address/0, listen_open/2, liste...
708a4cf5e66eb4e0c8317174d0b9557aacb73111a983561ca7a4df5c1d9f8669
conscell/hugs-android
EdisonPrelude.hs
Copyright ( c ) 1998 . -- See COPYRIGHT file for terms and conditions. module EdisonPrelude {-# DEPRECATED "This module is unmaintained, and will disappear soon" #-} where data Maybe2 a b = Just2 a b | Nothing2 deriving (Eq,Show) data Maybe3 a b c = Just3 a b c | Nothing3 deriving (Eq,Show) utilities...
null
https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/oldlib/EdisonPrelude.hs
haskell
See COPYRIGHT file for terms and conditions. # DEPRECATED "This module is unmaintained, and will disappear soon" # forall x,y :: a. (x == y) implies (hash x == hash y) no new methods, just a stronger invariant forall x,y :: a. (x == y) iff (hash x == hash y) forall x :: a. unhash (hash x) == x Note that hash ...
Copyright ( c ) 1998 . module EdisonPrelude where data Maybe2 a b = Just2 a b | Nothing2 deriving (Eq,Show) data Maybe3 a b c = Just3 a b c | Nothing3 deriving (Eq,Show) utilities on Maybe2 and Maybe3 types ? ? ? class Eq a => Hash a where hash :: a -> Int class Hash a => UniqueHash a class Uniqu...
25a35e8c6224514c59d9f0fc112156958a7c9152bfe15840f6dd9e6c515724e3
mhuebert/re-view
project.clj
(defproject re-view "0.4.15" :description "ClojureScript React Library" :url "-view/tree/master/re_view" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha17"] [org.clojure/clojurescript "1.9.946"] [org.cloju...
null
https://raw.githubusercontent.com/mhuebert/re-view/ba38cd09b78b3c6db6a2983f3e2cf1bd6294564f/re_view/project.clj
clojure
(defproject re-view "0.4.15" :description "ClojureScript React Library" :url "-view/tree/master/re_view" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.9.0-alpha17"] [org.clojure/clojurescript "1.9.946"] [org.cloju...