_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
b17b9d44ed71036d88f1fe851370bb061885f6a6c259e71b1d2441f88202ff10
cxxxr/apispec
operation.lisp
(defpackage #:apispec/tests/classes/operation (:use #:cl #:rove #:apispec/classes/operation) (:import-from #:apispec/classes/schema #:schema #:object) (:import-from #:apispec/classes/parameter #:parameter) (:import-from #:apispec/classes/response ...
null
https://raw.githubusercontent.com/cxxxr/apispec/4bdd238f6b5effed305d284e0e6b7cef214e94a2/tests/classes/operation.lisp
lisp
(defpackage #:apispec/tests/classes/operation (:use #:cl #:rove #:apispec/classes/operation) (:import-from #:apispec/classes/schema #:schema #:object) (:import-from #:apispec/classes/parameter #:parameter) (:import-from #:apispec/classes/response ...
81692fd1da2bc02576e00e06ba62dcbc4c9cb7894eca81fa11cbcebe4d7d2b22
jlongster/gambit-iphone-example
srfi-2.scm
; Checking of a LAND* special form ; ; LAND* is a generalized AND: it evaluates a sequence of forms one after another till the first one that yields # f ; the non-#f result of a form can be bound ; to a fresh variable and used in the subsequent forms. ; ; When an ordinary AND is formed of _proper_ boolean expressi...
null
https://raw.githubusercontent.com/jlongster/gambit-iphone-example/e55d915180cb6c57312cbb683d81823ea455e14f/lib/util/srfi-2.scm
scheme
Checking of a LAND* special form LAND* is a generalized AND: it evaluates a sequence of forms one after another the non-#f result of a form can be bound to a fresh variable and used in the subsequent forms. When an ordinary AND is formed of _proper_ boolean expressions: (AND E1 E2 ...) this knowledge to its...
expression E2 , if it gets to be evaluated , knows that E1 has returned non-#f . Moreover , E2 knows exactly what the result of E1 was - # t - so E2 can use value E1 has returned . Chances are it took a lot of work to evaluate E1 , value to E2 . Alas , the AND form merely checks that the result is not an # f , ...
b4af4094c648f937a81c4b3ffbaf9961077d041eee782e7eb23d164c301fe076
dschrempf/elynx
SLynx.hs
-- | Module : SLynx . SLynx Description : SLynx module Copyright : 2021 License : GPL-3.0 - or - later -- -- Maintainer : -- Stability : unstable -- Portability : portable -- Creation date : Thu Apr 23 16:38:55 2020 . module SLynx.SLynx ( slynx, rSLynx, ) where import E...
null
https://raw.githubusercontent.com/dschrempf/elynx/f73f4474c61c22c6a9e54c56bdc34b37eff09687/slynx/src/SLynx/SLynx.hs
haskell
| Maintainer : Stability : unstable Portability : portable | Run SLynx with given arguments. | Run SLynx, parse arguments from command line.
Module : SLynx . SLynx Description : SLynx module Copyright : 2021 License : GPL-3.0 - or - later Creation date : Thu Apr 23 16:38:55 2020 . module SLynx.SLynx ( slynx, rSLynx, ) where import ELynx.Tools.ELynx import ELynx.Tools.Options import SLynx.Concatenate.Concatenate imp...
de24d5f8c43e48dd1576beaeb047c6432accc25cbb5445ee09960d7110aeece2
scalaris-team/scalaris
gset.erl
2008 - 2018 Zuse Institute Berlin 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 applicable law or agreed to in writing, software d...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/crdt/types/gset.erl
erlang
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 language gov...
2008 - 2018 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc Implementation of a G - Set ( Grow - only Set ) state - based CRDT . -module(gset). -author(''). -vsn('Id$')...
c9af9f47fa517a7acda0815a27b2132d8c361368b0195291b721019534b79606
naoiwata/sicp
ex4.02.scm
;; ;; @author naoiwata SICP Chapter4 Exercise 4.02 . ;; ; ------------------------------------------------------------------------ ; solution ; ------------------------------------------------------------------------ ; a ; Louis code (define (eval exp env) (cond ((self-evalutating? exp) exp) ((variable...
null
https://raw.githubusercontent.com/naoiwata/sicp/7314136c5892de402015acfe4b9148a3558b1211/chapter4/ex4.02.scm
scheme
@author naoiwata ------------------------------------------------------------------------ solution ------------------------------------------------------------------------ a Louis code b
SICP Chapter4 Exercise 4.02 . (define (eval exp env) (cond ((self-evalutating? exp) exp) ((variable? exp) (lookup-variable-value exp env)) ((quoted? exp) (text-of-quotation exp)) ((application? exp) (apply (eval (operator exp) env) (list-of-values (operands exp) env))) ((as...
7268b0127f0633ff343843a7228bcfaa6489648a7fbac005eead6a76fcc0eb53
3b/learnopengl
shader-uniform.lisp
;;;; shader code (defpackage shaders-uniform/shaders (:use #:3bgl-glsl/cl) ;; shadow POSITION so we don't conflict with the default definition of CL : POSITION as ( input position : vec4 : location 0 ) (:shadow position)) (in-package shaders-uniform/shaders) (input position :vec3 :location 0) ;; if we want to...
null
https://raw.githubusercontent.com/3b/learnopengl/30f910895ef336ac5ff0b4cc676af506413bb953/factored/shader-uniform.lisp
lisp
shader code shadow POSITION so we don't conflict with the default definition if we want to use the same name for different things in different stages, we need to specify which we mean. If a stage isn't specified, the same definition will be included in any stage that uses the variable. uniforms allow more keywor...
(defpackage shaders-uniform/shaders (:use #:3bgl-glsl/cl) of CL : POSITION as ( input position : vec4 : location 0 ) (:shadow position)) (in-package shaders-uniform/shaders) (input position :vec3 :location 0) (input color :vec3 :location 1 :stage :vertex) (output our-color :vec3 :stage :vertex) (output color :...
f8d49f80cba10875788e38c3a06625383c6ff53f47738e335ebc2c0a1bda10bf
eholk/harlan
driver.scm
(library (harlan driver) (export get-cflags g++-compile-stdin read-source output-filename) (import (rnrs) (only (elegant-weapons helpers) join) (elegant-weapons match) (util system) (util compat) (harlan compile-opts)) (define (get-cflags) (case (get-os) ('darwin '("-framework...
null
https://raw.githubusercontent.com/eholk/harlan/3afd95b1c3ad02a354481774585e866857a687b8/harlan/driver.scm
scheme
Converts foo/bar.kfc to bar end library
(library (harlan driver) (export get-cflags g++-compile-stdin read-source output-filename) (import (rnrs) (only (elegant-weapons helpers) join) (elegant-weapons match) (util system) (util compat) (harlan compile-opts)) (define (get-cflags) (case (get-os) ('darwin '("-framework...
94260d9ac9750e36a71d1440b4e4d0f7046deb5fa1d1f28e61349f5d0ec8bb81
ocaml-multicore/parafuzz
ctype.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-multicore/parafuzz/6a92906f1ba03287ffcb433063bded831a644fd5/typing/ctype.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the Operations on core types open Asttypes open Types module Unification_trace: sig type position = Fi...
1aee47ae7432170f4cec2ead49b1c8d993f932f35926e98024fafa3189af790c
camllight/camllight
fnat.ml
nat : fonctions auxiliaires et d impression pour le type . Derive de nats.ml de Caml V3.1 , . Adapte a Caml Light par Xavier Leroy & . Portage 64 bits : . Derive de nats.ml de Caml V3.1, Valerie Menissier. Adapte a Caml Light par Xavier Leroy & Pierre Weis. Portage 64 bits: Pierre Weis....
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/sources/contrib/libnum/fnat.ml
ocaml
Nat temporaries Sizes of words and strings. ceiling len / 2 Repeat until next_cand := rad next_cand <- next_cand / cand next_cand (poids fort) <- next_cand (poids fort) + cand, i.e. next_cand <- cand + rad / cand next_cand <- next_cand / 2 cand <- next_cand Power_base_max is used chec...
nat : fonctions auxiliaires et d impression pour le type . Derive de nats.ml de Caml V3.1 , . Adapte a Caml Light par Xavier Leroy & . Portage 64 bits : . Derive de nats.ml de Caml V3.1, Valerie Menissier. Adapte a Caml Light par Xavier Leroy & Pierre Weis. Portage 64 bits: Pierre Weis....
0a1ee3b4569acaa2b2d2134e93823671382ecaf3ab1680658c2cb6454b934873
mfoemmel/erlang-otp
tv_ip.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1997 - 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 Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/tv/src/tv_ip.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 limita...
Copyright Ericsson AB 1997 - 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(tv_ip). -export([ip/1]). -inc...
61af877f9252a2de569f0070f6a6441a0050940f157464decc9aa7dfd5c18de8
static-analysis-engineering/codehawk
jCHAnalysis.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchpoly/jCHAnalysis.ml
ocaml
chutil jchpre needed for cost analysis
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Java Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) ...
805d6b7cdc047e341f26beb641a66e02a16815bae367ead6bddb08dc39c0e92d
BinaryAnalysisPlatform/bap
bap_strings_unscrambler.mli
open Core_kernel[@@warning "-D"] (** symbol encoding *) module type Alphabet = sig (** total number of symbols in the alphabet *) val length : int (** [index x] maps [x] to the [n]'th symbol of an alphabet, if [x] is a representation of that symbols, returns a number that is outside of [[0,len-1]] ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/lib/bap_strings/bap_strings_unscrambler.mli
ocaml
* symbol encoding * total number of symbols in the alphabet * [index x] maps [x] to the [n]'th symbol of an alphabet, if [x] is a representation of that symbols, returns a number that is outside of [[0,len-1]] interval if it is not. * Letters * Caseless Letters * Letters and Numbers * Caseless Letter...
open Core_kernel[@@warning "-D"] module type Alphabet = sig val length : int val index : char -> int end * ASCII Characters Also provides , different subsets of the Ascii character set , e.g. , [ Ascii . Digits ] , [ AScii ] Also provides, different subsets of the Ascii character set, e....
f712e8121e617b2b1b5a3783ad6b79c5a73f7ff0438d9b10536a149e2909cc12
reborg/clojure-essential-reference
7.clj
< 1 > ( defn unchecked - inc - int ; < 2 > " Returns a number one greater than x , an int . ;; Note - uses a primitive operator subject to overflow." ;; {:inline (fn [x] `(. clojure.lang.Numbers (unchecked_int_inc ~x))) : added " 1.0 " } ;; [x] (. clojure.lang.Numbers (unchecked_int_inc x)))
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/TheToolbox/clojure.repl/7.clj
clojure
< 2 > Note - uses a primitive operator subject to overflow." {:inline (fn [x] `(. clojure.lang.Numbers (unchecked_int_inc ~x))) [x] (. clojure.lang.Numbers (unchecked_int_inc x)))
< 1 > " Returns a number one greater than x , an int . : added " 1.0 " }
c17c947a036107f13c51f91ab9bbe37520cf3e3e71275724be959cca173a3093
garrigue/lablgl
test11.ml
#!/usr/bin/env lablglut open Printf Copyright ( c ) 1994 . (* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. *) ported to lablglut by Issac Trotts on August 6 , 2002 let ma...
null
https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/LablGlut/examples/glut3.7/test/test11.ml
ocaml
This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain.
#!/usr/bin/env lablglut open Printf Copyright ( c ) 1994 . ported to lablglut by Issac Trotts on August 6 , 2002 let main () = ignore(Glut.init Sys.argv); printf "Keyboard : %s\n" (if Glut.deviceGet(Glut.HAS_KEYBOARD) <> 0 then "YES" else "no") ; printf "Mouse : %s\n" (if Glut.deviceGet(...
e25acb8d3b04b8a2e94ffd616906f3b945b3bde2278dac87eefffbb41e3661d9
tezos/tezos-mirror
test_lambda_normalization.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2023 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/tezos/tezos-mirror/2e34c19183461d5445334143d2b8a264e5f4cef1/src/proto_alpha/lib_protocol/test/integration/michelson/test_lambda_normalization.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2023 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
1ad79058fd8dc5e4a3220817196da552f88f22691d3ba360e3f2041594c1f8d6
xaptum/oneup_metrics
oneup_metrics_test.erl
%%%------------------------------------------------------------------- @author iguberman ( C ) 2017 , Xaptum , Inc. %%% @doc %%% %%% @end Created : 20 . Dec 2017 2:34 PM %%%------------------------------------------------------------------- -module(oneup_metrics_test). -author("iguberman"). -include_lib("eunit/...
null
https://raw.githubusercontent.com/xaptum/oneup_metrics/cfbf248a8f630596f7c3e40c3da1f32d9c1c0531/test/oneup_metrics_test.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- 0 = Counter, 0 = FifteenMinRate, 0 = FiveMinRate, 0 = HourRate, This is super fast when sequential, so perfect for the tcp receiver loop trying to access the counter ref...
@author iguberman ( C ) 2017 , Xaptum , Inc. Created : 20 . Dec 2017 2:34 PM -module(oneup_metrics_test). -author("iguberman"). -include_lib("eunit/include/eunit.hrl"). -define(INTERVAL, 5). -define(SECONDS_PER_MINUTE, 60.0). -define(INTERVAL_MILLIS, 5000). -define(ONE_MINUTE_MILLIS, 60 * 1000). -define(FIVE_...
a3deb19e482751f3377c79d48022622400aabcf3fc8e73e617c97354877f7a44
deadpendency/deadpendency
Main.hs
module Main ( main, ) where import FD.TheMain (theMain) main :: IO () main = theMain
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/front-door/app/Main.hs
haskell
module Main ( main, ) where import FD.TheMain (theMain) main :: IO () main = theMain
c433bf409d3e09687e5e20235137481751abfaee3a7c4598a2775ce2ca48cb6e
Mayvenn/storefront
pagination.cljs
(ns storefront.components.stylist.pagination (:require [storefront.platform.component-utils :as utils] [storefront.components.ui :as ui])) (defn more-pages? [page pages] (> (or pages 0) (or page 0))) (defn fetch-more [event fetching? page pages] [:.col-5.mx-auto.my3 (if fetching? [:.h2 ui/sp...
null
https://raw.githubusercontent.com/Mayvenn/storefront/f75506230d5ea3dd150c2251e38a2e76e25d9df7/src-cljs/storefront/components/stylist/pagination.cljs
clojure
(ns storefront.components.stylist.pagination (:require [storefront.platform.component-utils :as utils] [storefront.components.ui :as ui])) (defn more-pages? [page pages] (> (or pages 0) (or page 0))) (defn fetch-more [event fetching? page pages] [:.col-5.mx-auto.my3 (if fetching? [:.h2 ui/sp...
511c96cb173b68e45ba645e18947962616bac336e9fc9d664d6ff98ea73d536d
coccinelle/coccinelle
moreLabels.mli
module Hashtbl : sig type ('a, 'b) t = ('a, 'b) Hashtbl.t val create : ?random:bool -> int -> ('a, 'b) t val clear : ('a, 'b) t -> unit val reset : ('a, 'b) t -> unit val copy : ('a, 'b) t -> ('a, 'b) t val add : ('a, 'b) t -> key:'a -> data:'b -> unit val find : ('a, 'b) t -> 'a -> 'b val find_opt : ('...
null
https://raw.githubusercontent.com/coccinelle/coccinelle/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/bundles/stdcompat/stdcompat-current/interfaces/4.11/moreLabels.mli
ocaml
module Hashtbl : sig type ('a, 'b) t = ('a, 'b) Hashtbl.t val create : ?random:bool -> int -> ('a, 'b) t val clear : ('a, 'b) t -> unit val reset : ('a, 'b) t -> unit val copy : ('a, 'b) t -> ('a, 'b) t val add : ('a, 'b) t -> key:'a -> data:'b -> unit val find : ('a, 'b) t -> 'a -> 'b val find_opt : ('...
4ac681ed6e9cb19d07ce294c88238e5723925fa56d740744e409740fef1108a6
GaloisInc/renovate
Common.hs
Module : Renovate . BinaryFormat . ELF.Common Description : Common operations for dealing with ELF files Copyright : ( c ) Galois , Inc 2020 License : < > Stability : provisional Module : Renovate.BinaryFormat.ELF.Common Description : Common ...
null
https://raw.githubusercontent.com/GaloisInc/renovate/89b82366f84be894c3437852e39c9b4e28666a37/renovate/src/Renovate/BinaryFormat/ELF/Common.hs
haskell
| Extract all the segments' virtual addresses (keys) and their sizes (values). If we don't know the size of a segment yet because it is going to be computed later, return that segment as an error. | Like allocatedVAddrs, but throw an error instead of returning it purely | The alignment of the new text segment We...
Module : Renovate . BinaryFormat . ELF.Common Description : Common operations for dealing with ELF files Copyright : ( c ) Galois , Inc 2020 License : < > Stability : provisional Module : Renovate.BinaryFormat.ELF.Common Description : Common ...
6ac79e33c350765b2ab9dc03de7c09ea9a12ce69ffbffdcdff37a9f94713badc
postgres-haskell/postgres-wire
Misc.hs
module Misc where import qualified Data.ByteString as B import Data.Foldable import Test.Tasty import Test.Tasty.HUnit import Database.PostgreSQL.Protocol.Types import Database.PostgreSQL.Protocol.Parsers testMisc :: TestTree testMisc = testGroup "Misc" [ testCase "Parser server version" testParseServerVersion ...
null
https://raw.githubusercontent.com/postgres-haskell/postgres-wire/fda5e3b70c3cc0bab8365b4b872991d50da0348c/tests/Misc.hs
haskell
module Misc where import qualified Data.ByteString as B import Data.Foldable import Test.Tasty import Test.Tasty.HUnit import Database.PostgreSQL.Protocol.Types import Database.PostgreSQL.Protocol.Parsers testMisc :: TestTree testMisc = testGroup "Misc" [ testCase "Parser server version" testParseServerVersion ...
afdd560575d618bfea152932769cccce8b9bbe49eb653d28dc4517ba319079ee
mauny/the-functional-approach-to-programming
pictures.ml
#directory "../MLGRAPH.DIR";; #open "MLgraph";; #open "option";; #open "graph";; #open "prelude";; #open "binary_trees";; #open "binary_trees_parser";; #open "binary_trees_drawing";; #open "poly_tree";; let draw_tree drn (h,d,cl,pt) = let LS = {linewidth= h*.0.01;linecap=Buttcap; linejoin=Miterjoin;das...
null
https://raw.githubusercontent.com/mauny/the-functional-approach-to-programming/1ec8bed5d33d3a67bbd67d09afb3f5c3c8978838/cl-75/Struct/pictures.ml
ocaml
#directory "../MLGRAPH.DIR";; #open "MLgraph";; #open "option";; #open "graph";; #open "prelude";; #open "binary_trees";; #open "binary_trees_parser";; #open "binary_trees_drawing";; #open "poly_tree";; let draw_tree drn (h,d,cl,pt) = let LS = {linewidth= h*.0.01;linecap=Buttcap; linejoin=Miterjoin;das...
9e4ada12a93b93d77ba7abdab9f525bdcf8a062ff5abbb83a16fca3981afe5e3
vyzo/gerbil
gxi-interactive.scm
-*- -*- ( C ) vyzo at hackzen.org interactive interpreter init (_gx#gxi-init-interactive! (command-line))
null
https://raw.githubusercontent.com/vyzo/gerbil/17fbcb95a8302c0de3f88380be1a3eb6fe891b95/src/gerbil/boot/gxi-interactive.scm
scheme
-*- -*- ( C ) vyzo at hackzen.org interactive interpreter init (_gx#gxi-init-interactive! (command-line))
3b51ce64564e34112c1d0475666a366e89f6ca9815cd64b67594cf1925a615d9
callum-oakley/advent-of-code
21.clj
(ns aoc.2022.21 (:require [clojure.string :as str] [clojure.test :refer [deftest is]])) (defn parse [s] (into {} (map (fn [line] (let [[m & job] (map read-string (re-seq #"[^:\s]+" line))] [m (if (= 1 (count job)) (first job) (vec job))])) (str/split-lin...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/cfe623aa81cf54b542bcd3062c1edeb61473ebed/src/aoc/2022/21.clj
clojure
Since monkeys is a tree, f is a linear function of h, so we can find the
(ns aoc.2022.21 (:require [clojure.string :as str] [clojure.test :refer [deftest is]])) (defn parse [s] (into {} (map (fn [line] (let [[m & job] (map read-string (re-seq #"[^:\s]+" line))] [m (if (= 1 (count job)) (first job) (vec job))])) (str/split-lin...
a4d72d076c4945c53ae51256459245add4895c1d6e154af7ee91da318ced0669
sebsheep/elm2node
Extract.hs
# OPTIONS_GHC -Wall # # LANGUAGE BangPatterns , OverloadedStrings , Rank2Types # module Elm.Compiler.Type.Extract ( fromAnnotation , fromType , Types(..) , mergeMany , merge , fromInterface , fromDependencyInterface , fromMsg ) where import Data.Map ((!)) import qualified Data.Map as Map import qu...
null
https://raw.githubusercontent.com/sebsheep/elm2node/602a64f48e39edcdfa6d99793cc2827b677d650d/compiler/src/Elm/Compiler/Type/Extract.hs
haskell
EXTRACTION . PERF profile Opt.Global representation current representation needs less allocation but maybe the lookup is much worse EXTRACT MODEL, MSG, AND ANY TRANSITIVE DEPENDENCIES # NOINLINE noDeps # EXTRACTOR
# OPTIONS_GHC -Wall # # LANGUAGE BangPatterns , OverloadedStrings , Rank2Types # module Elm.Compiler.Type.Extract ( fromAnnotation , fromType , Types(..) , mergeMany , merge , fromInterface , fromDependencyInterface , fromMsg ) where import Data.Map ((!)) import qualified Data.Map as Map import qu...
3cc1eb09f38f4a71608e2a61bb89961ad0f182760304deceeeb859728050c385
janestreet/core_profiler
fstats.ml
* This module is basically copied straight from [ . ] , however : - [ decay ] removed ( to avoid Option.value branch in [ update_in_place ] ) - [ update_in_place ] optimised so that it does n't allocate ( see below ) This copy can be killed when the original is available publicly . - [dec...
null
https://raw.githubusercontent.com/janestreet/core_profiler/3d1c0e61df848f5f25f78d64beea92b619b6d5d9/src/fstats.ml
ocaml
Note: we keep samples as a float instead of an int so that all floats in the record are kept unboxed. sum of sample^0 sum of sample^2 sum of running_variance largest sample smallest sample [Rstats.safe_mean] allocates, even after it's been inlined. It seems that in general, expressions of form ...
* This module is basically copied straight from [ . ] , however : - [ decay ] removed ( to avoid Option.value branch in [ update_in_place ] ) - [ update_in_place ] optimised so that it does n't allocate ( see below ) This copy can be killed when the original is available publicly . - [dec...
ec1622b9e64b43a40b1e0c40781f628b59c4b8b4f4ae044649d626d4ff4d2fd4
kblake/erlang-chat-demo
PAGE.erl
-module (PAGE). -include_lib ("nitrogen/include/wf.inc"). -compile(export_all). main() -> #template { file="./wwwroot/template.html"}. title() -> "PAGE". body() -> #label{text="PAGE body."}. event(_) -> ok.
null
https://raw.githubusercontent.com/kblake/erlang-chat-demo/6fd2fce12f2e059e25a24c9a84169b088710edaf/apps/nitrogen/priv/skel/PAGE.erl
erlang
-module (PAGE). -include_lib ("nitrogen/include/wf.inc"). -compile(export_all). main() -> #template { file="./wwwroot/template.html"}. title() -> "PAGE". body() -> #label{text="PAGE body."}. event(_) -> ok.
fcd90fbc338670e1f0dbbe20016a4260b4b954ae6403e30c1e64554f59594f41
lingnand/VIMonad
ThreeColumns.hs
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.ThreeColumns Copyright : ( c ) < > -- License : BSD3-style (see LICENSE) -- -- Maintainer : ? -- Stability : unstable -- Portabil...
null
https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Layout/ThreeColumns.hs
haskell
--------------------------------------------------------------------------- | Module : XMonad.Layout.ThreeColumns License : BSD3-style (see LICENSE) Maintainer : ? Stability : unstable Portability : unportable slave windows. ---------------------------------------------------------------------...
# LANGUAGE FlexibleInstances , MultiParamTypeClasses # Copyright : ( c ) < > A layout similar to tall but with three columns . With 2560x1600 pixels this layout can be used for a huge main window and up to six reasonable sized module XMonad.Layout.ThreeColumns ( ThreeCol(....
f745bf051c36f866be0c2d868815fe2d1cecc6db705b8d13aced5073256feaba
GaloisInc/pate
BlockPairDetail.hs
{-# LANGUAGE RankNTypes #-} module Pate.Interactive.Render.BlockPairDetail ( renderBlockPairDetail ) where import Control.Lens ( (^.) ) import qualified Control.Lens as L import qualified Data.Foldable as F import Data.Maybe ( fromMaybe ) import qualified Data.String.UTF8 as UTF8 import ...
null
https://raw.githubusercontent.com/GaloisInc/pate/af72348c2c70b0ce5c28d10afa154ee33a9c3e08/src/Pate/Interactive/Render/BlockPairDetail.hs
haskell
# LANGUAGE RankNTypes # | Note that we always look up the original address because we key the function name off of that... we could do better | Find the declaration matching the given function name
module Pate.Interactive.Render.BlockPairDetail ( renderBlockPairDetail ) where import Control.Lens ( (^.) ) import qualified Control.Lens as L import qualified Data.Foldable as F import Data.Maybe ( fromMaybe ) import qualified Data.String.UTF8 as UTF8 import Graphics.UI.Threepenny ( ...
5bf5f8c02577f688ad81563af455767e68ecf344dd0e2975597de12d7921d9c8
logseq/logseq
select.cljs
(ns frontend.components.select "Generic component for fuzzy searching items to select an item. See select-config to add a new use or select-type for this component. To use the new select-type, set :ui/open-select to the select-type. See :graph/open command for an example." (:require [frontend.modules.shortcut...
null
https://raw.githubusercontent.com/logseq/logseq/d53ac94bfc019926f85690224deb5f3517b8bb3c/src/main/frontend/components/select.cljs
clojure
TODO: Use helper when a common one is refactored from components.repo TODO: Use helper when a common one is refactored from components.repo
(ns frontend.components.select "Generic component for fuzzy searching items to select an item. See select-config to add a new use or select-type for this component. To use the new select-type, set :ui/open-select to the select-type. See :graph/open command for an example." (:require [frontend.modules.shortcut...
24ff2d0e8c04faa05448911cd0614c979d010bcf5d20718a97e15ffacdc664aa
S8A/htdp-exercises
ex428.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex428) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex428.rkt
racket
about the language level of this file in a form that our tools can easily process. [List-of Number] -> [List-of Number] produces a sorted version of alon [List-of Number] Number -> [List-of Number] produces a list of those numbers from the given list that are larger than n [List-of Number] Number -> [List-of Num...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex428) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (define (quick-sort< alon) (cond [(empty? alon) '...
fecde74bb19802bb2e2d5c272e51a641ec8e1433d393695866c75bfd9d90814b
lexml/lexml-linker
Parser.hs
# LANGUAGE FlexibleContexts # module LexML.Linker.Parser ( LinkerParseError (..), parseReferencias2 ) where import Data.Char import Control.Monad import Control.Monad.Trans import Control.Monad.Except import Control.Monad.Identity import Control.Monad.State import Control.Monad.Writer import LexML.Linker.Decorator ...
null
https://raw.githubusercontent.com/lexml/lexml-linker/b102332b9e4dce4e2dab533c94bbabd76f43bcc9/src/main/haskell/LexML/Linker/Parser.hs
haskell
# LANGUAGE FlexibleContexts # module LexML.Linker.Parser ( LinkerParseError (..), parseReferencias2 ) where import Data.Char import Control.Monad import Control.Monad.Trans import Control.Monad.Except import Control.Monad.Identity import Control.Monad.State import Control.Monad.Writer import LexML.Linker.Decorator ...
e75e625d56b386afbb7e99bbeba61e0ceda405667a4291fd953de98852987cb4
scarvalhojr/haskellbook
section17.8.hs
import Data.Monoid ((<>)) data List a = Nil | Cons a (List a) deriving (Eq, Show) instance Functor List where fmap _ Nil = Nil fmap f (Cons x t) = Cons (f x) (fmap f t) instance Monoid (List a) where mempty = Nil mappend Nil ys = ys mappend (Cons x xs) ys = Cons x (xs <> ys) instance A...
null
https://raw.githubusercontent.com/scarvalhojr/haskellbook/6016a5a78da3fc4a29f5ea68b239563895c448d5/chapter17/section17.8.hs
haskell
- - - -
import Data.Monoid ((<>)) data List a = Nil | Cons a (List a) deriving (Eq, Show) instance Functor List where fmap _ Nil = Nil fmap f (Cons x t) = Cons (f x) (fmap f t) instance Monoid (List a) where mempty = Nil mappend Nil ys = ys mappend (Cons x xs) ys = Cons x (xs <> ys) instance A...
19ba8b77ef2c854c88aaa33d523efc84093b5f0bf48dfa8d32327a715a13eb73
slyrus/abcl
typep.lisp
;;; typep.lisp ;;; Copyright ( C ) 2003 - 2005 $ Id$ ;;; ;;; 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 version . ;;...
null
https://raw.githubusercontent.com/slyrus/abcl/881f733fdbf4b722865318a7d2abe2ff8fdad96e/src/org/armedbear/lisp/typep.lisp
lisp
typep.lisp This program is free software; you can redistribute it and/or either version 2 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 License for ...
Copyright ( C ) 2003 - 2005 $ Id$ modify it under the terms of the GNU General Public License of the License , or ( at your option ) any later version . You should have received a copy of the GNU General Public License Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA . (...
3c6dbe9e15550b26128ebd59ada6df7550672a5eb28c29e9b40a61cfed6246fb
armstnp/advent-of-code-2019
day5_sketch.clj
(ns advent-of-code-2019.day5-sketch (:require [advent-of-code-2019.day5 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) ;; Pause and unpause the simulation by clicking or pressing any key (def cells (count soln/input)) (def memory-cell-width 15) (def memory-cell-he...
null
https://raw.githubusercontent.com/armstnp/advent-of-code-2019/68e21174394d8b0e14433f9f249e995c10ac6d67/src/advent_of_code_2019/day5_sketch.clj
clojure
Pause and unpause the simulation by clicking or pressing any key
(ns advent-of-code-2019.day5-sketch (:require [advent-of-code-2019.day5 :as soln] [quil.core :as q :include-macros true] [quil.middleware :as m])) (def cells (count soln/input)) (def memory-cell-width 15) (def memory-cell-height (q/ceil (/ cells memory-cell-width))) (def cell-width 80) (def ...
2c1e088e27b68ce7c4f39d0ae4c9e46214ca835ac63628baaee458c2288ddc84
bobzhang/fan
a_exn.ml
TYPE_CONV_PATH "B_exn" exception V of int with sexp . Exn_magic.register1 ( fun v1 - > V v1 ) " a_exn.ml . V " sexp_of_int let () = Sexplib.Exn_magic.register1 (fun v1 -> V v1) "B_exn.V" sexp_of_int (* let () = Sexplib.Exn_magic.register1 (fun v1 -> V v1) "A_exn.V" sexp_of_int *) (* let () = *) . Exn_magic.r...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/migration/a_exn.ml
ocaml
let () = Sexplib.Exn_magic.register1 (fun v1 -> V v1) "A_exn.V" sexp_of_int let () =
TYPE_CONV_PATH "B_exn" exception V of int with sexp . Exn_magic.register1 ( fun v1 - > V v1 ) " a_exn.ml . V " sexp_of_int let () = Sexplib.Exn_magic.register1 (fun v1 -> V v1) "B_exn.V" sexp_of_int . Exn_magic.register1 ( fun v1 - > V v1 ) " a_exn.ml . V " sexp_of_int
469606287e0b021020a29d812e10b375f142856f24824a3dd08eae01f1f19c6d
na4zagin3/satyrographos
setup.mli
(** Default location of target of install subcommand *) val default_target_dir : string (** Read current runtime-dependent information. This command SHOULD NOT affect the environment. *) val read_environment : unit -> Satyrographos.Environment.t
null
https://raw.githubusercontent.com/na4zagin3/satyrographos/c6a430bb641166c8a23240f4a827f53405f746e1/bin/setup.mli
ocaml
* Default location of target of install subcommand * Read current runtime-dependent information. This command SHOULD NOT affect the environment.
val default_target_dir : string val read_environment : unit -> Satyrographos.Environment.t
9be90551239b8bcb1f895b01c4c03df2af7e93107e56d9e5e3d41990875b02d4
c4-project/c4f
my_quickcheck.ml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
null
https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/utils/src/my_quickcheck.ml
ocaml
This file is part of c4f . Copyright ( c ) 2018 - 2022 C4 Project c4 t itself is licensed under the MIT License . See the LICENSE file in the project root for more information . Parts of c4 t are based on code from the Herdtools7 project ( ) : see the LICENSE.herd file in the project...
8408408b53cc1cddeb3601af0e8da2018d9edd7f746ee98a65816cf641dace80
jarvinet/scheme
myeval.scm
Structure and Interpretation of Computer Programs , 2nd edition ; My evaluator ; See myeval.txt for accompanying notes. ;----------------------------------- ; Misc (define (tagged-list? exp tag) (if (pair? exp) (eq? (car exp) tag) false)) (define (list-of-values operands env) (if (null? operands...
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/bin/test/myeval.scm
scheme
My evaluator See myeval.txt for accompanying notes. ----------------------------------- Misc I think it is better not to rename this apply and use name "myapply" for the apply defined in this evaluator so multiple loadings of this file does not lose the original apply (define apply-in-underlying-scheme apply) --...
Structure and Interpretation of Computer Programs , 2nd edition (define (tagged-list? exp tag) (if (pair? exp) (eq? (car exp) tag) false)) (define (list-of-values operands env) (if (null? operands) '() (cons (eval (car operands) env) (list-of-values (cdr operands) env)))) (defi...
e830586686d5ffd8d34982229aa5e1f15720f137bc5a4fe8e31b59dae93f76cc
simonmar/parconc-examples
Substitution.hs
-- -- Adapted from the program "infer", believed to have been originally authored by , and used in the nofib benchmark suite since at least the late 90s . -- module Substitution (Sub, applySub, lookupSub, emptySub, extendSub, makeSub, thenSub, domSub, unifySub) wher...
null
https://raw.githubusercontent.com/simonmar/parconc-examples/840a3f508f9bb6e03961e1b90311a1edd945adba/parinfer/Substitution.hs
haskell
Adapted from the program "infer", believed to have been originally
authored by , and used in the nofib benchmark suite since at least the late 90s . module Substitution (Sub, applySub, lookupSub, emptySub, extendSub, makeSub, thenSub, domSub, unifySub) where import Type import FiniteMap import MaybeM data Sub = MkSub (FM TVarI...
c9ec85385941237621f176b9565cad380daa8632cb4fe9ab9d7e559a9e85f6a8
kevinchevalier/kemulator
Main.hs
module Main where import System.Environment import NES import Cartridge import DataTypes import CPU6502 import Data.Word import Control.Monad.State import Util import Control.Monad.IO.Class import OpCodes import Timing import System.IO import Disassembler startup :: Operation () startup = do interrupt Reset runLoo...
null
https://raw.githubusercontent.com/kevinchevalier/kemulator/f8bbaad5105f89006fbed8fe58a193fb5bfced8d/Main.hs
haskell
Get the next command. Run the command.
module Main where import System.Environment import NES import Cartridge import DataTypes import CPU6502 import Data.Word import Control.Monad.State import Util import Control.Monad.IO.Class import OpCodes import Timing import System.IO import Disassembler startup :: Operation () startup = do interrupt Reset runLoo...
86ef9ac97bb88ae63d9a2e70a5fc6e1cbc9b8cba8260651a9e000a5e978fd558
no-defun-allowed/concurrent-hash-tables
phony-redis-serial-hash-table.lisp
(defpackage :phony-redis (:use :cl) (:export #:make-server #:connect-to-server #:find-value #:close-connection)) (in-package :phony-redis) (defun make-server () (list (bt:make-lock) (make-hash-table :test #'equal))) (defun connect-to-server (server) server) (defun find-value (connection name...
null
https://raw.githubusercontent.com/no-defun-allowed/concurrent-hash-tables/1b9f0b5da54fece4f42296e1bdacfcec0c370a5a/Examples/phony-redis-serial-hash-table.lisp
lisp
(defpackage :phony-redis (:use :cl) (:export #:make-server #:connect-to-server #:find-value #:close-connection)) (in-package :phony-redis) (defun make-server () (list (bt:make-lock) (make-hash-table :test #'equal))) (defun connect-to-server (server) server) (defun find-value (connection name...
2bffad1a547ccad0355af07d0b9e47cc40a5cae230018d07c902a4c924a943da
mhwombat/grid
Grid.hs
----------------------------------------------------------------------------- -- | -- Module : Math.Geometry.Grid Copyright : ( c ) 2012 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- -- A regular arrangement of tiles. Grids have a vari...
null
https://raw.githubusercontent.com/mhwombat/grid/b8c4a928733494f4a410127d6ae007857de921f9/src/Math/Geometry/Grid.hs
haskell
--------------------------------------------------------------------------- | Module : Math.Geometry.Grid License : BSD-style Maintainer : Stability : experimental Portability : portable A regular arrangement of tiles. Grids have a variety of uses, including games and self-organising maps. T...
Copyright : ( c ) 2012 - 2022 In this package , tiles are called " , \"square\ " , etc . , For example , a square tile has four neighbours , and a hexagonal tile has six . There are only three regular polygons that can tile a plane : Octagons will tile a /hyperbolic/ plane . consider using one of...
02342851350bdb0a1da13b0fd34fc436a63fd210af069864423dd85bf54ab7cc
pflanze/chj-schemelib
simple-match-1.scm
Copyright 2010 , 2011 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require cj-...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/simple-match-1.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. improper-length is included by cj-source-util.scm is (define (warn* message . args) (continuation-capture (lambda (cont) ))) or, 'simpler': only supports flat list matching for now although inc...
Copyright 2010 , 2011 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require cj-source define-macro-star cj-phasing (fixnum dec) included by define-macro-star.scm ) (export (macro warn*...
8c22ddab319235ea95d20577e09a1432fc410a14e6195080d6c55201c2137203
wesen/ruinwesen
soundfile.lisp
(in-package :ruinwesen)
null
https://raw.githubusercontent.com/wesen/ruinwesen/9f3ccea85425cf46b57e76144b3114ca342bad0f/ruinwesen/src/soundfile.lisp
lisp
(in-package :ruinwesen)
ffbdd509c1f55f7796b395d92dd6c9a43dd49102eadf6ff2b80783fbe1a032c4
russmatney/ralphie
fzf.clj
(ns ralphie.fzf (:require [defthing.defcom :refer [defcom] :as defcom] [babashka.process :refer [process]] [clojure.string :as string])) (defn fzf [xs] (let [labels (->> xs (map :fzf/label)) proc (process ["fzf"] {:in (string/join "\n" labels) ...
null
https://raw.githubusercontent.com/russmatney/ralphie/3b7af4a9ec2dc2b9e59036d67a66f365691f171d/src/ralphie/fzf.clj
clojure
(ns ralphie.fzf (:require [defthing.defcom :refer [defcom] :as defcom] [babashka.process :refer [process]] [clojure.string :as string])) (defn fzf [xs] (let [labels (->> xs (map :fzf/label)) proc (process ["fzf"] {:in (string/join "\n" labels) ...
e549a7dafec69c8ee2672568df0e6026c51a80afe88df1a0f779e219461d1943
Fytex/ExciteBike-LI1
Tarefa3_2019li1g068.hs
| Module : Tarefa3_2019li1g068 Description : Módulo Haskell contendo as , relativas à Tarefa 3 do Projeto da Unidade Curricular de LI1 Copyright : Fytex ; Arkimedez Um módulo contendo definições com sucesso a Tarefa 3 : A Tarefa 3 consiste no ato de desconstruir um mapa . que no...
null
https://raw.githubusercontent.com/Fytex/ExciteBike-LI1/ac544dc4a818181ff4bdf23f9164e14e8d26ab0c/Tarefa3_2019li1g068.hs
haskell
* Testes | Testes unitários da Tarefa 3. * Funções auxiliares da Tarefa 3.
| Module : Tarefa3_2019li1g068 Description : Módulo Haskell contendo as , relativas à Tarefa 3 do Projeto da Unidade Curricular de LI1 Copyright : Fytex ; Arkimedez Um módulo contendo definições com sucesso a Tarefa 3 : A Tarefa 3 consiste no ato de desconstruir um mapa . que no...
0b8c1bde4256c27cfda00c22e8b0a393853c797980758c23cca430b369c5e741
dyzsr/ocaml-selectml
t253-offsetclosure2.ml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let rec f _ = g and g _ = 10 in if f 3 4 <> 10 then raise Not...
null
https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/testsuite/tests/tool-ocaml/t253-offsetclosure2.ml
ocaml
TEST include tool - ocaml - lib flags = " -w -a " ocaml_script_as_argument = " true " * setup - ocaml - build - env * * include tool-ocaml-lib flags = "-w -a" ocaml_script_as_argument = "true" * setup-ocaml-build-env ** ocaml *) open Lib;; let rec f _ = g and g _ = 10 in if f 3 4 <> 10 then raise Not...
36d2e510347c97b4dcbb74c3033f51a2bd721e511a7166eccc6a5b010414ed36
racket/gui
tab-panel.rkt
#lang racket/base (require racket/class ffi/unsafe "../../syntax.rkt" "window.rkt" "client-window.rkt" "utils.rkt" "panel.rkt" "types.rkt" "widget.rkt" "message.rkt" "../../lock.rkt" "../common/event.rkt") (provide (p...
null
https://raw.githubusercontent.com/racket/gui/d1fef7a43a482c0fdd5672be9a6e713f16d8be5c/gui-lib/mred/private/wx/gtk/tab-panel.rkt
racket
Used for test close label: Used for icon close label: For some reason, tabs in a hidden eventbox don't work right. Add a layer. Once without tabs to set client-width delta: re-parenting can change the underlying window, so make sure no freeze in places: re-parenting can change the underlying window dc: abuse o...
#lang racket/base (require racket/class ffi/unsafe "../../syntax.rkt" "window.rkt" "client-window.rkt" "utils.rkt" "panel.rkt" "types.rkt" "widget.rkt" "message.rkt" "../../lock.rkt" "../common/event.rkt") (provide (p...
4999986a78498a937b63f184c49af5d607922ff00e75485e38b41e1a252c34ba
janestreet/base
sign_or_nan.ml
open! Import module T = struct type t = | Neg | Zero | Pos | Nan [@@deriving_inline sexp, sexp_grammar, compare, hash, enumerate] let t_of_sexp = (let error_source__003_ = "sign_or_nan.ml.T.t" in function | Sexplib0.Sexp.Atom ("neg" | "Neg") -> Neg | Sexplib0.Sexp.Atom ("zero"...
null
https://raw.githubusercontent.com/janestreet/base/1462b7d5458e96569275a1c673df968ecbf3342f/src/sign_or_nan.ml
ocaml
Open [Replace_polymorphic_compare] after including functor applications so they do not shadow its definitions. This is here so that efficient versions of the comparison functions are available within this module. Include [Replace_polymorphic_compare] at the end, after any functor applications that could sha...
open! Import module T = struct type t = | Neg | Zero | Pos | Nan [@@deriving_inline sexp, sexp_grammar, compare, hash, enumerate] let t_of_sexp = (let error_source__003_ = "sign_or_nan.ml.T.t" in function | Sexplib0.Sexp.Atom ("neg" | "Neg") -> Neg | Sexplib0.Sexp.Atom ("zero"...
28302876f7f8cb48560e89e913fb9413f7d7da2f7be78aa70ca25e34f710a026
michalkonecny/aern2
aern2-real-cdar-simpleOp.hs
| Module : Main ( file aern2 - real - benchOp ) Description : execute a simple CR expression Copyright : ( c ) : : Stability : experimental Portability : portable Module : Main (file aern2-real-benchOp) Description : execute a simpl...
null
https://raw.githubusercontent.com/michalkonecny/aern2/7ab41113ca8f73dca70d887d190ddab3b43ef084/aern2-net/bench/aern2-real-cdar-simpleOp.hs
haskell
"exp" -> "log" -> "cos" -> unsafePerformIO $ pickValues values count "add" -> unsafePerformIO $ pickValues2 values values count "mul" -> unsafePerformIO $ pickValues2 values values count "div" -> "logistic" -> logistic :: Rational -> Integer -> CauchyReal -> CauchyReal logistic c n x | n == 0...
| Module : Main ( file aern2 - real - benchOp ) Description : execute a simple CR expression Copyright : ( c ) : : Stability : experimental Portability : portable Module : Main (file aern2-real-benchOp) Description : execute a simpl...
6fe65e13b18b75ae39dd743ac7b8fe2f248447b2ddb3df0ef90d328853e44428
ultralisp/ultralisp
package-variance-fix.lisp
(defpackage #:ultralisp/package-variance-fix (:use #:cl) (:import-from #:log4cl)) (in-package #:ultralisp/package-variance-fix) ;; For some reasons, some libraries start to raise ASDF compile errors ;; because of package variance. This is the only hack I could imagine to suppress warnings from SBCL during compi...
null
https://raw.githubusercontent.com/ultralisp/ultralisp/37bd5d92b2cf751cd03ced69bac785bf4bcb6c15/src/package-variance-fix.lisp
lisp
For some reasons, some libraries start to raise ASDF compile errors because of package variance. This is the only hack I could imagine
(defpackage #:ultralisp/package-variance-fix (:use #:cl) (:import-from #:log4cl)) (in-package #:ultralisp/package-variance-fix) to suppress warnings from SBCL during compilation . #+sbcl (defmethod asdf/component:around-compile-hook :around ((component t)) (let ((previous-hook (call-next-method))) (lambd...
d1484f620537388b03161d0d47dc027b191d8998f5f3eaab27cc2bbf1e88ef68
PacktPublishing/Data-Analysis-with-IBM-SPSS-Statistics
Create GSS2016 small28 40317.sps
* Encoding: UTF-8. * create GSS2016small with 28 fields. * Modified 4/3/17 to use INCOM06 rather than INCOME - better set of values. SAVE OUTFILE='C:\GSS Data\GSS2016sm28 40317.sav' /keep = happy marital hapmar age VOTE12 PRES12 educ speduc natpark natroad NATENRGY cappun natmass natchld natsci partyid degr...
null
https://raw.githubusercontent.com/PacktPublishing/Data-Analysis-with-IBM-SPSS-Statistics/1edd4c1dce8dc0a3ebce093bbac37c94ebbb63e9/Chapter03/Create%20GSS2016%20small28%2040317.sps
scheme
* Encoding: UTF-8. * create GSS2016small with 28 fields. * Modified 4/3/17 to use INCOM06 rather than INCOME - better set of values. SAVE OUTFILE='C:\GSS Data\GSS2016sm28 40317.sav' /keep = happy marital hapmar age VOTE12 PRES12 educ speduc natpark natroad NATENRGY cappun natmass natchld natsci partyid degr...
aecf90a2b12e2cbc419e10028e441d85dc011b346ffd9c0fb824a44426d0ae38
Martoon-00/toy-compiler
Parsable.hs
# OPTIONS_GHC -fno - warn - orphans # module Toy.Base.Parsable ( OutputValues (..) ) where import Control.Applicative (many, (<|>)) import Text.Megaparsec (char, eof, label, space, spaceChar) import Text.Megaparsec.Lexer (integer, signed) import Universum im...
null
https://raw.githubusercontent.com/Martoon-00/toy-compiler/a325d56c367bbb673608d283197fcd51cf5960fa/src/Toy/Base/Parsable.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Toy.Base.Parsable ( OutputValues (..) ) where import Control.Applicative (many, (<|>)) import Text.Megaparsec (char, eof, label, space, spaceChar) import Text.Megaparsec.Lexer (integer, signed) import Universum im...
7b6a8d3cfa333cc22ff5e83fcd2c21226db2459602dd9e31aedd79cf9a133c34
haskell/haskell-language-server
DestructInt.expected.hs
import Data.Int data Test = Test Int32 test :: Test -> Int32 test (Test in') = _w0
null
https://raw.githubusercontent.com/haskell/haskell-language-server/f3ad27ba1634871b2240b8cd7de9f31b91a2e502/plugins/hls-tactics-plugin/new/test/golden/DestructInt.expected.hs
haskell
import Data.Int data Test = Test Int32 test :: Test -> Int32 test (Test in') = _w0
dd7138685ae76888da165894bff48ae56f805f4ffb272efdd5395379fc778a71
graninas/Hydra
Class.hs
{-# LANGUAGE GADTs #-} # LANGUAGE TemplateHaskell # module Hydra.Core.Random.Class where import Hydra.Prelude class Monad m => Random m where getRandomInt :: (Int, Int) -> m Int
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/lib/hydra-base/src/Hydra/Core/Random/Class.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE TemplateHaskell # module Hydra.Core.Random.Class where import Hydra.Prelude class Monad m => Random m where getRandomInt :: (Int, Int) -> m Int
55293155c17c1ee6ba4e18c8e1a90d1f38afcb8e53bf3d8beeb23d570361c1d6
kitnil/dotfiles
guixsd.scm
(use-modules (gnu home) (gnu home services) ( gnu home services files ) (gnu home services mcron) (gnu home services shells) (gnu home services ssh) (gnu packages admin) (gnu packages bash) (gnu packages guile) (gn...
null
https://raw.githubusercontent.com/kitnil/dotfiles/fd5bd0e01e429c887e9f3952e0f5320cc47fb017/dotfiles/guixsd/home/guixsd.scm
scheme
(dwl-guile home-service) (dwl-guile configuration) Prepare environment for VNC sessions ("receiver" . "team-X-pager") ("comment_required" . #t) ("author" . "") home-shellcheck-service -in-nix-installed-packages-on-a-non-nixos-system/5871/9 (run-shell-command (join (list *fontconfig-file* "/home/oleg/.nix-pro...
(use-modules (gnu home) (gnu home services) ( gnu home services files ) (gnu home services mcron) (gnu home services shells) (gnu home services ssh) (gnu packages admin) (gnu packages bash) (gnu packages guile) (gn...
8c9de98bd5bd116bc1a078a5c0fe4752f451b0df45bd84ce01b8423c3d82e4b8
jyh/metaprl
itt_union.ml
doc <:doc< @spelling{handedness} @module[Itt_union] The union type $T_1 + T_2$ defines a union space containing the elements of both $T_1$ and $T_2$. The union is @emph{disjoint}: the elements are @emph{tagged} with the @hrefterm[inl] and @hrefterm[inr] tags as belonging to the ``left'' type $T_1$ o...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/itt/core/itt_union.ml
ocaml
*********************************************************************** * TERMS * *********************************************************************** *********************************************************************** * REWRITES ...
doc <:doc< @spelling{handedness} @module[Itt_union] The union type $T_1 + T_2$ defines a union space containing the elements of both $T_1$ and $T_2$. The union is @emph{disjoint}: the elements are @emph{tagged} with the @hrefterm[inl] and @hrefterm[inr] tags as belonging to the ``left'' type $T_1$ o...
557e3345dd3dca549ee305e614964aa7d55d7abfa9d71ea861e69edcdc6d8654
s-expressionists/ctype
fpzero.lisp
(in-package #:ctype) ;;;; Floating point negative zeroes lead to an unfortunate special case in the CL type system . To review , if distinct negative zeroes exist , (= -0.0 0.0 ) is true , but ( eql -0.0 0.0 ) is false . This means that ( or ( eql 0.0 ) ( float ( 0.0 ) ) ) ;;;; cannot be reduced into a range typ...
null
https://raw.githubusercontent.com/s-expressionists/ctype/2b13bc5a17fad0117b4a5860bade678ed6bf7c3c/fpzero.lisp
lisp
Floating point negative zeroes lead to an unfortunate special case in the cannot be reduced into a range type (or disjunction of them, whatever), An fpzero ctype represents an (eql floating-point-zero) type specifier. Since the problem is mostly in relating to ranges, the important methods
(in-package #:ctype) CL type system . To review , if distinct negative zeroes exist , (= -0.0 0.0 ) is true , but ( eql -0.0 0.0 ) is false . This means that ( or ( eql 0.0 ) ( float ( 0.0 ) ) ) because ( typep -0.0 ' ( or ( eql 0.0 ) ( float ( 0.0 ) ) ) ) is false whereas ( typep -0.0 ' ( float 0.0 ) ) is t...
d41f40a5c3c6ace1265d28111624314fd0140392ecec683513d5b9336d60d4fe
haskell-servant/servant-elm
GenerateSpec.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} module Main where import Control.Monad (zipWithM_) import qualified Data.Algorithm.Diff as Diff import qualified Data.Algorithm.DiffOutput as Diff import ...
null
https://raw.githubusercontent.com/haskell-servant/servant-elm/95c49abe536d8e468efb5a8a0cd750cf817295f4/test/GenerateSpec.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE TypeOperators #
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # module Main where import Control.Monad (zipWithM_) import qualified Data.Algorithm.Diff as Diff import qualified Data.Algorithm.DiffOutput as Diff import Data.Monoid ((<>)) import Data.Text ...
118a9fb844f1ef133034662669f8b1346c943057c542ced411ccd0b94f36a625
ds-wizard/engine-backend
Detail_PUT.hs
module Wizard.Specs.API.Questionnaire.Detail_PUT ( detail_put, ) where import Data.Aeson (encode) import qualified Data.ByteString.Char8 as BS import qualified Data.Map.Strict as M import qualified Data.UUID as U import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hidin...
null
https://raw.githubusercontent.com/ds-wizard/engine-backend/bcd95eef9e96d5d9d7c737671aa29119692e694c/engine-wizard/test/Wizard/Specs/API/Questionnaire/Detail_PUT.hs
haskell
------------------------------------------------------------------------ PUT /questionnaires/{qtnUuid} ------------------------------------------------------------------------ ---------------------------------------------------- ---------------------------------------------------- --------------------------------...
module Wizard.Specs.API.Questionnaire.Detail_PUT ( detail_put, ) where import Data.Aeson (encode) import qualified Data.ByteString.Char8 as BS import qualified Data.Map.Strict as M import qualified Data.UUID as U import Network.HTTP.Types import Network.Wai (Application) import Test.Hspec import Test.Hspec.Wai hidin...
4efb619ab5edb13cc78393ed282a7344df426210065530d403686ef68fae7dd3
brick-lang/kekka
id.ml
open Core (* Types *) (** Identifiers are unique compiler generated identities *) type t = int [@@deriving show, sexp] let equal = Int.equal let compare = Int.compare (** A list of identifiers *) type ids = t list (** show quotes around the id *) let rec pp fmt id = Format.pp_print_string fmt @@ "\"" ^ (Int.to_s...
null
https://raw.githubusercontent.com/brick-lang/kekka/7ede659ffb49959b140e6ab0a72d38ff6c63311b/common/id.ml
ocaml
Types * Identifiers are unique compiler generated identities * A list of identifiers * show quotes around the id * create a fresh identifier * Generate an 'Id' with a certain base name (which is ignored) :) dummy identifier
open Core type t = int [@@deriving show, sexp] let equal = Int.equal let compare = Int.compare type ids = t list let rec pp fmt id = Format.pp_print_string fmt @@ "\"" ^ (Int.to_string id) ^ "\"" let create (i:int) : t = i let create_from_id (id:t) : t = id + 1 let generate base_name (id:t) = create id let n...
440fc2cf7bc41aa6d5679a9c3d966a81cabc7f1bd7f18b5505cbee2c27884a84
cuplv/dai
loc_map.ml
open Dai.Import open Tree_sitter_java open Syntax open Cfg type loc_ctx = { entry : Loc.t; exit : Loc.t; ret : Loc.t; exc : Loc.t } let pp_loc_ctx fs { entry; exit; ret; exc } = Format.fprintf fs "{%a -> %a; ret=%a; exc=%a}" Loc.pp entry Loc.pp exit Loc.pp ret Loc.pp exc type t = loc_ctx Int.Map.t Method_id.Map.t ...
null
https://raw.githubusercontent.com/cuplv/dai/45d50ba49940c56b5a7337e759fc3070b0377132/src/frontend/loc_map.ml
ocaml
open Dai.Import open Tree_sitter_java open Syntax open Cfg type loc_ctx = { entry : Loc.t; exit : Loc.t; ret : Loc.t; exc : Loc.t } let pp_loc_ctx fs { entry; exit; ret; exc } = Format.fprintf fs "{%a -> %a; ret=%a; exc=%a}" Loc.pp entry Loc.pp exit Loc.pp ret Loc.pp exc type t = loc_ctx Int.Map.t Method_id.Map.t ...
87cf85b50c10cdaf9878f82c46f8d9c4f6960c1c05149bef928568107ce1ae71
8thlight/hyperion
types_spec.clj
(ns hyperion.sqlite.types-spec (:require [speclj.core :refer :all] [hyperion.api :refer [unpack pack]] [hyperion.sqlite])) (describe "sqlite types" (context "boolean" (it "unpacks true" (should= true (unpack Boolean 1))) (it "unpacks false" (should= false (unpack Boolea...
null
https://raw.githubusercontent.com/8thlight/hyperion/b1b8f60a5ef013da854e98319220b97920727865/sqlite/spec/hyperion/sqlite/types_spec.clj
clojure
(ns hyperion.sqlite.types-spec (:require [speclj.core :refer :all] [hyperion.api :refer [unpack pack]] [hyperion.sqlite])) (describe "sqlite types" (context "boolean" (it "unpacks true" (should= true (unpack Boolean 1))) (it "unpacks false" (should= false (unpack Boolea...
8e258781c4ff492de0e58715710e086db6bd7e3579da429e68476f7e0dd8e4bd
patrikja/AFPcourse
ParserFromStdLib.hs
# LANGUAGE GeneralizedNewtypeDeriving # module ParserFromStdLib where import Control.Monad import qualified Control.Monad.State as CMS newtype P s a = P {unP :: CMS.StateT [s] [] a} deriving (Monad, MonadPlus, CMS.MonadState [s]) type ParseResult s a = [(a, [s])] parse :: P s a -> [s] -> ParseRes...
null
https://raw.githubusercontent.com/patrikja/AFPcourse/1a079ae80ba2dbb36f3f79f0fc96a502c0f670b6/L4/src/ParserFromStdLib.hs
haskell
^ Note that this will use fail in case of empty input --------------
# LANGUAGE GeneralizedNewtypeDeriving # module ParserFromStdLib where import Control.Monad import qualified Control.Monad.State as CMS newtype P s a = P {unP :: CMS.StateT [s] [] a} deriving (Monad, MonadPlus, CMS.MonadState [s]) type ParseResult s a = [(a, [s])] parse :: P s a -> [s] -> ParseRes...
d825464cb0ab82cfc8797f7467614825bbde47cd117a53dd82f6a12209c70571
egison/sweet-egison
perm2.hs
import Control.Egison import Criterion.Main perm2 :: Int -> [(Int, Int)] perm2 n = matchAll dfs [1 .. n] (Multiset Something) [[mc| $x : $y : _ -> (x, y) |]] perm2Native :: Int -> [(Int, Int)] perm2Native n = go [1 .. n] [] [] where go [] _ acc = acc go (x : xs) rest acc = [ (x, y) | ...
null
https://raw.githubusercontent.com/egison/sweet-egison/fd3b392f9a2993bbc59d541b61f6641c7d193d6e/benchmark/perm2.hs
haskell
import Control.Egison import Criterion.Main perm2 :: Int -> [(Int, Int)] perm2 n = matchAll dfs [1 .. n] (Multiset Something) [[mc| $x : $y : _ -> (x, y) |]] perm2Native :: Int -> [(Int, Int)] perm2Native n = go [1 .. n] [] [] where go [] _ acc = acc go (x : xs) rest acc = [ (x, y) | ...
7e7420a627f6a11159dda5e661665740b1275d7f6f1fc7c5c471ac752ede6e51
johnmn3/perc
data_readers.cljc
{% perc.core/% %1 perc.core/%1 %> perc.core/%> %% perc.core/%% %%1 perc.core/%%1 %%> perc.core/%%> %%% perc.core/%%% %%%1 perc.core/%%%1 %%%> perc.core/%%%>}
null
https://raw.githubusercontent.com/johnmn3/perc/5f60211132fc40ea9c6a4ebe1bdd4e67d58b390a/src/data_readers.cljc
clojure
{% perc.core/% %1 perc.core/%1 %> perc.core/%> %% perc.core/%% %%1 perc.core/%%1 %%> perc.core/%%> %%% perc.core/%%% %%%1 perc.core/%%%1 %%%> perc.core/%%%>}
cee92a948c422fea8073fa2a1e58d9702fbb49ca00c0f21cef507f19bf7cb3be
fyquah/hardcaml_zprize
approx_msb_multiplier.ml
open Base open Hardcaml open Signal open Reg_with_enable module Config = struct module Level = struct type t = { k : int -> int ; for_karatsuba : Karatsuba_ofman_mult.Config.Level.t } end type t = { levels : Level.t list ; ground_multiplier : Ground_multiplier.Config.t } let...
null
https://raw.githubusercontent.com/fyquah/hardcaml_zprize/553b1be10ae9b977decbca850df6ee2d0595e7ff/libs/field_ops/src/approx_msb_multiplier.ml
ocaml
open Base open Hardcaml open Signal open Reg_with_enable module Config = struct module Level = struct type t = { k : int -> int ; for_karatsuba : Karatsuba_ofman_mult.Config.Level.t } end type t = { levels : Level.t list ; ground_multiplier : Ground_multiplier.Config.t } let...
9a0bcca98d912a8f8f30d060ee358e7d74ca6c5dd97f37f8770c2069a602195d
goblint/analyzer
regionDomain.ml
open GoblintCil open GobConfig module GU = Goblintutil module V = Basetype.Variables module B = Printable.UnitConf (struct let name = "•" end) module F = Lval.Fields module VF = struct include Printable.ProdSimple (V) (F) let show (v,fd) = let v_str = V.show v in let fd_str = F.show fd in v_str ^ fd_s...
null
https://raw.githubusercontent.com/goblint/analyzer/78e8ce83e70585e89623ec84af355deb2b3b854d/src/cdomains/regionDomain.ml
ocaml
Joins the fields, assuming the vars are equal. This is the main logic for dealing with the bullet and finding it an * owner... let _ = printf "%a = %a\n" (printLval plainCilPrinter) lval (printExp plainCilPrinter) rval in TODO: should offs_x matter? TODO: use append_offs_y also in the following cases? ...
open GoblintCil open GobConfig module GU = Goblintutil module V = Basetype.Variables module B = Printable.UnitConf (struct let name = "•" end) module F = Lval.Fields module VF = struct include Printable.ProdSimple (V) (F) let show (v,fd) = let v_str = V.show v in let fd_str = F.show fd in v_str ^ fd_s...
3ae482ef6d62496e9e43b476d4092d599e55d04c23a5fc4a9c9bf1d61d687259
lmj/lparallel
central-scheduler.lisp
Copyright ( c ) 2011 - 2012 , . 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 li...
null
https://raw.githubusercontent.com/lmj/lparallel/9c11f40018155a472c540b63684049acc9b36e15/src/kernel/central-scheduler.lisp
lisp
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. * Redistributions in binary...
Copyright ( c ) 2011 - 2012 , . All rights reserved . " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY...
f03f6fc07feb7a8474ca3d3eda5ad71c86f359242dc93ec552bd46d6690962eb
dschrempf/elynx
Options.hs
# LANGUAGE DeriveGeneric # -- | -- Module : TLynx.Shuffle.Options -- Description : Options for the connect subcommand Copyright : 2021 License : GPL-3.0 - or - later -- -- Maintainer : -- Stability : unstable -- Portability : portable -- Creation date : Thu Sep 19 15:02:21 2019 . modu...
null
https://raw.githubusercontent.com/dschrempf/elynx/bf5f0b353b5e2f74d29058fc86ea6723133cab5c/tlynx/src/TLynx/Shuffle/Options.hs
haskell
| Module : TLynx.Shuffle.Options Description : Options for the connect subcommand Maintainer : Stability : unstable Portability : portable | Arguments of shuffle command.
# LANGUAGE DeriveGeneric # Copyright : 2021 License : GPL-3.0 - or - later Creation date : Thu Sep 19 15:02:21 2019 . module TLynx.Shuffle.Options ( ShuffleArguments (..), shuffleArguments, ) where import Data.Aeson import ELynx.Tools.Options import ELynx.Tools.Reproduction import GHC.Gene...
4538d1ceb8783ccf09f07a4a5d8fc5c739554703a3eeb22cad6077d53688fda0
masatoi/cl-zerodl
adagrad.lisp
(defpackage #:cl-zerodl/core/optimizer/adagrad (:use #:cl #:mgl-mat #:cl-zerodl/core/layer/base #:cl-zerodl/core/optimizer/base #:cl-zerodl/core/network) (:nicknames :zerodl.optimizer.adagrad) (:import-from #:cl-zerodl/core/utils #:define-class) (:import-from #:cl...
null
https://raw.githubusercontent.com/masatoi/cl-zerodl/5c453321b41f07610cdee248792499b5b742f550/core/optimizer/adagrad.lisp
lisp
Adagrad
(defpackage #:cl-zerodl/core/optimizer/adagrad (:use #:cl #:mgl-mat #:cl-zerodl/core/layer/base #:cl-zerodl/core/optimizer/base #:cl-zerodl/core/network) (:nicknames :zerodl.optimizer.adagrad) (:import-from #:cl-zerodl/core/utils #:define-class) (:import-from #:cl...
1749329cf0e40e971eec4a252ec938e7fc1b7e2a6e10ff534986c34b431fa426
informatimago/lisp
run-program-test.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** FILE : ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; ;;;; Tests the run-program function. ;;;; < PJB > <...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/clext/run-program/run-program-test.lisp
lisp
coding : utf-8 -*- ************************************************************************** LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION Tests the run-program function. LEGAL This program is free software: you can redistribute it and/or modify (at your option) any later ...
FILE : USER - INTERFACE : < PJB > < > MODIFICATIONS 2012 - 03 - 25 < PJB > Created . AGPL3 Copyright 2012 - 2016 it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ...
eac55e15b930fc10708d7a5447e241cc28fac4b22a8672c864e81a70da8e4906
nubank/midje-nrepl
core.clj
(ns octocat.core) (* 7 8)
null
https://raw.githubusercontent.com/nubank/midje-nrepl/b4d505f346114db88ad5b5c6b3c8f0af4e0136fc/dev-resources/octocat/src/octocat/core.clj
clojure
(ns octocat.core) (* 7 8)
1bbb8a04401f1e05aa3dca6726de5937497d0fc978fc19b4fe8bfb5bb6584ae5
robert-strandh/SICL
use-package-defun.lisp
(cl:in-package #:sicl-package) (defun use-package (designators-of-packages-to-use &optional package-designator) (when (atom designators-of-packages-to-use) (setf designators-of-packages-to-use (list designators-of-packages-to-use))) (unless (proper-list-p designators-of-packages-to-use) (erro...
null
https://raw.githubusercontent.com/robert-strandh/SICL/65d7009247b856b2c0f3d9bb41ca7febd3cd641b/Code/Package/use-package-defun.lisp
lisp
The choice was a symbol that is already present in PACKAGE, and we had a conflict involving that symbol, so it can not have been a shadowing symbol. Make it one. The choice was a symbol in one of the packages to use. The chosen symbol must be turned into a shadowing symbol in PACKAGE.
(cl:in-package #:sicl-package) (defun use-package (designators-of-packages-to-use &optional package-designator) (when (atom designators-of-packages-to-use) (setf designators-of-packages-to-use (list designators-of-packages-to-use))) (unless (proper-list-p designators-of-packages-to-use) (erro...
3cf9d1b85bd6c0d7e258362a357c704c6414cca544a3e3e9cc9dd67aa7250cce
ucsd-progsys/liquidhaskell
Slice.hs
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # {-# LANGUAGE DerivingVia #-} | This module has a function that computes the " slice " i.e. subset of the ` Ms. ` that we actually need to verify a given target module , so that LH does n't choke trying to resolve -...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/c37ca0017f20070483ad0787e7f88f0223ac169a/src/Language/Haskell/Liquid/Bare/Slice.hs
haskell
# LANGUAGE DerivingVia # names that are not actually relevant and hence, not in the GHC Environment. Specifically, this module has datatypes and code for building a Specification Dependency Graph whose vertices are 'names' that need to be resolve, and edges are 'dependencies'. import qualifi...
# LANGUAGE FlexibleInstances # # LANGUAGE FlexibleContexts # | This module has a function that computes the " slice " i.e. subset of the ` Ms. ` that we actually need to verify a given target module , so that LH does n't choke trying to resolve See LH issue 1773 for more details . mo...
5275433c82b0646129db12f2490425953a4d9ba2a80ce89ad3f1aacacc595924
ninjudd/cake
test_fixtures.clj
; NOTE: this test is from Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you ar...
null
https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/test/old/cake/tasks/test_fixtures.clj
clojure
NOTE: this test is from The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this lice...
Copyright ( c ) . All rights reserved . by March 28 , 2009 (ns cake.tasks.test-fixtures (:use clojure.test)) (declare *a* *b* *c* *d*) (def *n* 0) (defn fixture-a [f] (binding [*a* 3] (f))) (defn fixture-b [f] (binding [*b* 5] (f))) (defn fixture-c [f] (binding [*c* 7] (f))) (defn fixture-d ...
184ef9771cf5ccbc3546b3711760abb120b83b5c7828fe7a05a3a4d9d6b23111
ferd/calcalc
calcalc_day_of_week.erl
-module(calcalc_day_of_week). -compile(export_all). -import(calcalc_math, [mod/2]). sunday() -> 0. monday() -> 1. tuesday() -> 2. wednesday() -> 3. thursday() -> 4. friday() -> 5. saturday() -> 6. from_fixed(Date) -> mod(Date - calcalc:fixed(0) - sunday(), 7). first_kday(K, Date) -> nth_kday(1, K, Date). last_kd...
null
https://raw.githubusercontent.com/ferd/calcalc/d16eec3512d7b4402b1ddde82128f2483e955e98/src/calcalc_day_of_week.erl
erlang
N=0 is undefined
-module(calcalc_day_of_week). -compile(export_all). -import(calcalc_math, [mod/2]). sunday() -> 0. monday() -> 1. tuesday() -> 2. wednesday() -> 3. thursday() -> 4. friday() -> 5. saturday() -> 6. from_fixed(Date) -> mod(Date - calcalc:fixed(0) - sunday(), 7). first_kday(K, Date) -> nth_kday(1, K, Date). last_kd...
4800d2d164de94228bdc7168317be719d4498399f5a65c4d5550c9195918bdf6
xu-hao/QueryArrow
Config.hs
# LANGUAGE DeriveGeneric , TemplateHaskell # module QueryArrow.RPC.Config where import Data.Aeson import GHC.Generics data TCPServerConfig = TCPServerConfig { tcp_server_addr :: String, tcp_server_port :: Int } deriving (Show, Generic) data HTTPServerConfig = HTTPServerConfig { http_server_port :: Int } ...
null
https://raw.githubusercontent.com/xu-hao/QueryArrow/4dd5b8a22c8ed2d24818de5b8bcaa9abc456ef0d/QueryArrow-rpc-common/src/QueryArrow/RPC/Config.hs
haskell
# LANGUAGE DeriveGeneric , TemplateHaskell # module QueryArrow.RPC.Config where import Data.Aeson import GHC.Generics data TCPServerConfig = TCPServerConfig { tcp_server_addr :: String, tcp_server_port :: Int } deriving (Show, Generic) data HTTPServerConfig = HTTPServerConfig { http_server_port :: Int } ...
80c278adbcc7663d4d0c5dd2efd3106211323fc6add11d80071dccfc2a574053
asmyczek/simple-avro
schema_tests.clj
(ns simple-avro.schema-tests (:use (simple-avro schema core) (clojure test))) (deftest test-prim-types (is (= avro-null {:type "null"})) (is (= avro-boolean {:type "boolean"})) (is (= avro-int {:type "int"})) (is (= avro-long {:type "long"})) (is (= avro-float {:type "float"})) (is (=...
null
https://raw.githubusercontent.com/asmyczek/simple-avro/25825319e008316e20e9d4d867e2d88fcd389c7c/test/simple_avro/schema_tests.clj
clojure
(ns simple-avro.schema-tests (:use (simple-avro schema core) (clojure test))) (deftest test-prim-types (is (= avro-null {:type "null"})) (is (= avro-boolean {:type "boolean"})) (is (= avro-int {:type "int"})) (is (= avro-long {:type "long"})) (is (= avro-float {:type "float"})) (is (=...
161cc837c2fc058b81acfde531eeb42b17ee9482ff489e84e60d9546c7fb0d39
szynwelski/nlambda
MetaPlugin.hs
module MetaPlugin where import Avail import qualified BooleanFormula as BF import Class import CoAxiom hiding (toUnbranchedList) import Control.Applicative ((<|>)) import Control.Monad (liftM) import Data.Char (isLetter, isLower) import Data.Foldable (foldlM) import Data.List ((\\), delete, find, findIndex, intersect,...
null
https://raw.githubusercontent.com/szynwelski/nlambda/b9acb98af29fc240552b9bb2b991f83306888484/src/meta/MetaPlugin.hs
haskell
return $ showPlug:todo imported maps names classes and vars show info putMsg $ text "binds:\n" <+> (foldr (<+>) (text "") $ map showBind $ mg_binds guts' ++ getImplicitBinds guts') modInfo "module" mg_module guts' modInfo "dependencies" (dep_mods . mg_deps) guts' mo...
module MetaPlugin where import Avail import qualified BooleanFormula as BF import Class import CoAxiom hiding (toUnbranchedList) import Control.Applicative ((<|>)) import Control.Monad (liftM) import Data.Char (isLetter, isLower) import Data.Foldable (foldlM) import Data.List ((\\), delete, find, findIndex, intersect,...
392717fc7f05c48f4b0963d8ed465d7ac8f7fd0b3a355bb07fa4f8b52d641ae3
zack-bitcoin/amoveo-exchange
message_limit.erl
-module(message_limit). -behaviour(gen_server). -export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, doit/1]). -record(freq, {time, many}). init(ok) -> {ok, dict:new()}. start_link() -> gen_server:start_link({local, ?MODULE}, ?MODULE, ok, []). code_change(_OldVsn, State, _E...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo-exchange/df6b59c139b710faf79e851bdf7e861983511cbe/apps/amoveo_exchange/src/networking/message_limit.erl
erlang
seconds
-module(message_limit). -behaviour(gen_server). -export([start_link/0,code_change/3,handle_call/3,handle_cast/2,handle_info/2,init/1,terminate/2, doit/1]). -record(freq, {time, many}). init(ok) -> {ok, dict:new()}. start_link() -> gen_server:start_link({local, ?MODULE}, ?MODULE, ok, []). code_change(_OldVsn, State, _E...
d764cb53d0379c5f831c1496af67c33a03a2f2294ff23917575d4f37ed0e52cd
chaoxu/fancy-walks
B.hs
{-# OPTIONS_GHC -O2 #-} import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Dat...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/code.google.com/codejam/Google%20Code%20Jam%202010/Round%203/B.hs
haskell
# OPTIONS_GHC -O2 #
import Data.List import Data.Maybe import Data.Char import Data.Array import Data.Int import Data.Ratio import Data.Bits import Data.Function import Data.Ord import Control.Monad.State import Control.Monad import Control.Applicative import Data.ByteString.Char8 (ByteString) import qualified Data.ByteString.Char8 as BS...
bcd1c7dd3d4984270885ec1b98e2e6a9b1960ffe0e352053eabd44c99d0cce0e
ubf/ubf
test_sup.erl
%%% The MIT License %%% Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by %%% %%% Permission is hereby granted, free of charge, to any person obtaining a copy %%% of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without li...
null
https://raw.githubusercontent.com/ubf/ubf/c876f684fbd4959548ace1eb1cfc91941f93d377/test/unit/test_sup.erl
erlang
The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above...
Copyright ( C ) 2011 - 2016 by < > Copyright ( C ) 2002 by in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITH...
682a91315a9b5ee3f95ad7e85878db317fdf894e228704b9dc4cca092b28ef13
aconchillo/guile-redis
redis.scm
( redis ) --- Redis module for . Copyright ( C ) 2013 - 2020 Aleix Conchillo Flaque < > ;; ;; This file is part of guile-redis. ;; ;; guile-redis 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 ...
null
https://raw.githubusercontent.com/aconchillo/guile-redis/379a939eb49c209e2df33cbe85c764b971b8fa99/redis.scm
scheme
This file is part of guile-redis. guile-redis is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. guile-redis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTA...
( redis ) --- Redis module for . Copyright ( C ) 2013 - 2020 Aleix Conchillo Flaque < > it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Redis module for (define-module (redis) #:use-module (redis main) #:use-mod...
72171a8ac9ea9ecbe8b53472f8246380283ec251692b9cd5713ec5b00f185460
McCLIM/McCLIM
core-tests.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) copyright 2005 < > ( c ) copyright 2006 - 2008 < > ;;; ;;; ------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/7c890f1ac79f0c6f36866c47af89398e2f05b343/Libraries/Drei/Tests/core-tests.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- Test: - Overwriting - Aut...
( c ) copyright 2005 < > ( c ) copyright 2006 - 2008 < > Tests for the core functionality . (cl:in-package #:drei-tests) (def-suite core-tests :description "The test suite for DREI-CORE related tests." :in drei-tests) (in-suite core-tests) (test possibly-fill-line (with-drei-environment () (pos...
3fd287c43075ecb4f6918f5183876ad6e667aebc96b22ec1f669da7bc26fcf7e
2600hz/community-scripts
three_byte_utf8.erl
{[ {<<"matzue">>, <<230, 157, 190, 230, 177, 159>>}, {<<"asakusa">>, <<230, 181, 133, 232, 141, 137>>} ]}.
null
https://raw.githubusercontent.com/2600hz/community-scripts/b0b81342bf02300fcdbda99e4cecc1ee93823c70/CloneTools/lib/ejson-0.1.0/t/cases/three_byte_utf8.erl
erlang
{[ {<<"matzue">>, <<230, 157, 190, 230, 177, 159>>}, {<<"asakusa">>, <<230, 181, 133, 232, 141, 137>>} ]}.
6100c40801ffc33edbd52a67537cb23728103b7ac77e11dd3ae200a22eb442b8
input-output-hk/Alonzo-testnet
DeadlineRedeemer.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Cardano.PlutusExample.DeadlineRedeemer ( deadlineScript , deadlineScriptShortBs...
null
https://raw.githubusercontent.com/input-output-hk/Alonzo-testnet/1fd8da32d44ba48164931eb3e30f1a34e45955af/resources/plutus-sources/plutus-deadline/src/Cardano/PlutusDeadline/DeadlineRedeemer.hs
haskell
# INLINABLE mkPolicy #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE NoImplicitPrelude # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Cardano.PlutusExample.DeadlineRedeemer ( deadlineScript , deadlineScriptShortBs...
e4563c690735a297751b68ce7b4f1d4d9abb2cea3ca9bba8fc874dbae2ae79cb
contentjon/mocha-latte
core.cljs
(ns latte.test.core (:require-macros [latte.core :as l])) (def assert (js/require "assert")) (l/describe "Test Suites" (l/it "can contain test cases" [] (assert (= true true))) (l/it "can contain empty (pending) test cases" []) (l/it "can skip test cases" [] :skip true (assert (= tr...
null
https://raw.githubusercontent.com/contentjon/mocha-latte/27251ca349086e17e82906f48014b945c848c04d/test/latte/core.cljs
clojure
(ns latte.test.core (:require-macros [latte.core :as l])) (def assert (js/require "assert")) (l/describe "Test Suites" (l/it "can contain test cases" [] (assert (= true true))) (l/it "can contain empty (pending) test cases" []) (l/it "can skip test cases" [] :skip true (assert (= tr...
6b7862d200b48a7f63975bf4cddde7d4b6b6d61bc1f541ed16f9df839a748ddb
pfdietz/ansi-test
svref.lsp
;-*- Mode: Lisp -*- Author : Created : We d Jan 22 21:39:30 2003 Contains : Tests of (deftest svref.1 (let ((a (vector 1 2 3 4))) (loop for i below 4 collect (svref a i))) (1 2 3 4)) (deftest svref.2 (let ((a (vector 1 2 3 4))) (values (loop for i below 4 collect (set...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/arrays/svref.lsp
lisp
-*- Mode: Lisp -*- Error tests
Author : Created : We d Jan 22 21:39:30 2003 Contains : Tests of (deftest svref.1 (let ((a (vector 1 2 3 4))) (loop for i below 4 collect (svref a i))) (1 2 3 4)) (deftest svref.2 (let ((a (vector 1 2 3 4))) (values (loop for i below 4 collect (setf (svref a i) (+ i 10)))...
283d8846aaef11130673639a28364f9f9cebc38d781e2b0c4c525e470dc06345
haskellfoundation/error-message-index
DependencyOrder.hs
# LANGUAGE DataKinds , PolyKinds , ExplicitForAll # module DependencyOrder where import Data.Kind data SameKind :: k -> k -> * foo :: forall k a (b :: k). SameKind a b foo = undefined
null
https://raw.githubusercontent.com/haskellfoundation/error-message-index/6b80c2fe6d8d2941190bda587bcea6f775ded0a4/message-index/messages/GHC-97739/example/after/DependencyOrder.hs
haskell
# LANGUAGE DataKinds , PolyKinds , ExplicitForAll # module DependencyOrder where import Data.Kind data SameKind :: k -> k -> * foo :: forall k a (b :: k). SameKind a b foo = undefined
df9b3decac29e23626fd238bd3ac547f87bf741a5f561421f3d621cb4247c12b
basho/riak_core
vclock_qc.erl
-module(vclock_qc). -ifdef(EQC). -include_lib("eqc/include/eqc.hrl"). -include_lib("eqc/include/eqc_statem.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile([export_all, nowarn_export_all]). -define(ACTOR_IDS, [a,b,c,d,e]). -define(QC_OUT(P), eqc:on_output(fun(Str, Args) -> io:format(user, Str, Args) ...
null
https://raw.githubusercontent.com/basho/riak_core/762ec81ae9af9a278e853f1feca418b9dcf748a3/eqc/vclock_qc.erl
erlang
Command generator, S is the state Postcondition, checked after command has been evaluated
-module(vclock_qc). -ifdef(EQC). -include_lib("eqc/include/eqc.hrl"). -include_lib("eqc/include/eqc_statem.hrl"). -include_lib("eunit/include/eunit.hrl"). -compile([export_all, nowarn_export_all]). -define(ACTOR_IDS, [a,b,c,d,e]). -define(QC_OUT(P), eqc:on_output(fun(Str, Args) -> io:format(user, Str, Args) ...
592cfc2872356bc2588f8244a89634d2d05ed9c813d7d591322f69efb18e5d54
oliyh/re-learn
todo_input.cljs
(ns todomvc.components.todo-input (:require [reagent.core :as reagent] [todomvc.actions :as actions] [todomvc.helpers :as helpers] [reagent.dom :as dom] [re-learn.core :as re-learn])) (defn on-key-down [k title default] (let [key-pressed (.-which k)] (condp = key...
null
https://raw.githubusercontent.com/oliyh/re-learn/c8edc38df46910ca2a4401afab7eb3ceac7d2311/example/todomvc/todomvc/components/todo_input.cljs
clojure
(ns todomvc.components.todo-input (:require [reagent.core :as reagent] [todomvc.actions :as actions] [todomvc.helpers :as helpers] [reagent.dom :as dom] [re-learn.core :as re-learn])) (defn on-key-down [k title default] (let [key-pressed (.-which k)] (condp = key...
92a12e169e60e589dd26cc3c4e5a349c703826296ef3fe31f7f55e26f4c89b1f
luminus-framework/luminus-template
handler.clj
(ns <<project-ns>>.handler (:require [<<project-ns>>.middleware :as middleware]<% if not service %> [<<project-ns>>.layout :refer [error-page]] [<<project-ns>>.routes.home :refer [home-routes]]<% endif %><% if service-required %> <<service-required>><% endif %><% if oauth-required %> <<oauth-requi...
null
https://raw.githubusercontent.com/luminus-framework/luminus-template/3278aa727cef0a173ed3ca722dfd6afa6b4bbc8f/resources/leiningen/new/luminus/core/src/handler.clj
clojure
(ns <<project-ns>>.handler (:require [<<project-ns>>.middleware :as middleware]<% if not service %> [<<project-ns>>.layout :refer [error-page]] [<<project-ns>>.routes.home :refer [home-routes]]<% endif %><% if service-required %> <<service-required>><% endif %><% if oauth-required %> <<oauth-requi...
99c9d08edd9c7c432b4cd3f6a97e39d0ecce3d15c4ce382bdbd69d24ce7ac215
ragkousism/Guix-on-Hurd
elpa.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2015 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU 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 the Lice...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/tests/elpa.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2015 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-elpa) #:use-module (guix import elpa) #:use-module (guix tests) #:use-module (srfi srfi...
09e1ebd09f08a561cef8525dc2d76bccd578196c193df976f03ff817d4e07506
vikram/lisplibraries
mcl.lisp
(in-package #:bordeaux-threads) ;;; Thread Creation (defmethod make-thread (function &key name) (ccl:process-run-function name function)) (defmethod current-thread () ccl:*current-thread*) (defmethod threadp (object) (ccl:processp object)) (defmethod thread-name (thread) (ccl:process-name thread)) ;;; Res...
null
https://raw.githubusercontent.com/vikram/lisplibraries/105e3ef2d165275eb78f36f5090c9e2cdd0754dd/site/ucw-boxset/dependencies/bordeaux-threads/src/mcl.lisp
lisp
Thread Creation Resource contention: locks and recursive locks Introspection/debugging
(in-package #:bordeaux-threads) (defmethod make-thread (function &key name) (ccl:process-run-function name function)) (defmethod current-thread () ccl:*current-thread*) (defmethod threadp (object) (ccl:processp object)) (defmethod thread-name (thread) (ccl:process-name thread)) (defmethod make-lock (&opt...
e3038e6de3a4913725793f7baf00166fed32c3c3b1a54534c5d9edcea589bfe3
andorp/bead
Main.hs
module Main (main) where import qualified SnapMain main :: IO () main = SnapMain.main
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/main/Main.hs
haskell
module Main (main) where import qualified SnapMain main :: IO () main = SnapMain.main
820e9365864eaa7eba278c80fdd472c50284b165a2f8a85031e589abf7fa7f4e
Abhiroop/okasaki
BinaryHeap.hs
module BinaryHeap(empty, insert, minimum, extractMin) where import Prelude hiding (minimum) data BinHeap a = Empty | Node Bool (BinHeap a) a (BinHeap a) deriving (Show) empty :: BinHeap a empty = Empty insert :: (Ord a) => a -> BinHeap a -> BinHeap a insert x Empty = Node True Empty x ...
null
https://raw.githubusercontent.com/Abhiroop/okasaki/b4e8b6261cf9c44b7b273116be3da6efde76232d/src/BinaryHeap.hs
haskell
module BinaryHeap(empty, insert, minimum, extractMin) where import Prelude hiding (minimum) data BinHeap a = Empty | Node Bool (BinHeap a) a (BinHeap a) deriving (Show) empty :: BinHeap a empty = Empty insert :: (Ord a) => a -> BinHeap a -> BinHeap a insert x Empty = Node True Empty x ...
fffb83323a0cf4a0922171dc6ecb32b8ab3328d5dfd481ea35927ba9d62bb65d
joneshf/open-source
QuickCheck.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # module Rollbar.QuickCheck where import Data.Bifunctor (bimap) import Data.CaseInsensitive (mk) import Data.Proxy (Proxy(P...
null
https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/packages/rollbar-hs/test/Rollbar/QuickCheck.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # module Rollbar.QuickCheck where import Data.Bifunctor (bimap) import Data.CaseInsensitive (mk) import Data.Proxy (Proxy(P...
c36b04f7e4f840b92a11622fdb3d7280b665e044aefc1494fe4de461062dd91f
soren-n/bidi-higher-rank-poly
Main.ml
open Typeset open Util open Extra open Back open Front let print layout = Typeset.compile layout @@ fun doc -> Typeset.render doc 2 80 @@ fun msg -> print_endline msg let error msg = print (seq (~$"🔥 Error:" <+> grp msg) </> null) let success value poly = let ctx = Naming.make_ctx () in Check.generalize...
null
https://raw.githubusercontent.com/soren-n/bidi-higher-rank-poly/ef5625c4c4b2d5aea83c0a89cfca336e517d74e4/repl/bin/Main.ml
ocaml
open Typeset open Util open Extra open Back open Front let print layout = Typeset.compile layout @@ fun doc -> Typeset.render doc 2 80 @@ fun msg -> print_endline msg let error msg = print (seq (~$"🔥 Error:" <+> grp msg) </> null) let success value poly = let ctx = Naming.make_ctx () in Check.generalize...