_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
be698f8df0af33310ee7b6c2a9f911002e11fe8f1ba02b639a693bafd5a1eba1
returntocorp/semgrep
Exit_code.mli
(* Exit codes of the semgrep executable (not just 'semgrep scan'). Some of those exit codes are also (ab)used to represent some error code for errors reported in the semgrep CLI JSON output. *) (* This ensures that exit codes are declared and documented here. *) type t = private int (* 'to_int x' is the sam...
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/src/osemgrep/core/Exit_code.mli
ocaml
Exit codes of the semgrep executable (not just 'semgrep scan'). Some of those exit codes are also (ab)used to represent some error code for errors reported in the semgrep CLI JSON output. This ensures that exit codes are declared and documented here. 'to_int x' is the same as '(x :> int)'. to remove at...
type t = private int val to_int : t -> int val of_int : int -> t Standard exit codes . All calls to exit must use one of these . Standard exit codes. All calls to exit must use one of these. *) val ok : t val findings : t val fatal : t val invalid_code : t val invalid_pattern : t val unparseable_ya...
df9c5e8738720402c0444a21aecc4be9e05e342ffcb6aba1b8672873247f2910
0install/0install
windows_api.disabled.ml
Copyright ( C ) 2019 , See the README file for details , or visit . See the README file for details, or visit . *) let v ~wow64:_ = failwith "Not a Windows build!"
null
https://raw.githubusercontent.com/0install/0install/22eebdbe51a9f46cda29eed3e9e02e37e36b2d18/src/support/windows_api.disabled.ml
ocaml
Copyright ( C ) 2019 , See the README file for details , or visit . See the README file for details, or visit . *) let v ~wow64:_ = failwith "Not a Windows build!"
59b365786ebd9fed4f0a208d9400112d50ef56d4e9beb05edafa6b7e48226d7f
TrustInSoft/tis-kernel
ast.mli
(**************************************************************************) (* *) This file is part of . (* *) is a fork of Frama - C. Al...
null
https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/plugins/wp/qed/top/ast.mli
ocaml
************************************************************************ ...
This file is part of . is a fork of Frama - C. All the differences are : Copyright ( C ) 2016 - 2017 is released under GPLv2 This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2015 ...
6a0c99d866cff5717b5a53a9e1233c2c2126802500f0041b3d89d87b775f08dc
edbutler/nonograms-rule-synthesis
compile.rkt
#lang rosette/safe (provide program-map-expressions-postorder features-used-by-program program-limited-to-features? strip-unused-patterns same-pattern?) (require (only-in racket error set=? mutable-seteq mutable-set set-add! set-member? set->list struct-copy exit set-subtract set-empty? for) rosette/lib...
null
https://raw.githubusercontent.com/edbutler/nonograms-rule-synthesis/16f8dacb17bd77c9d927ab9fa0b8c1678dc68088/src/nonograms/compile.rkt
racket
(so subexpressions appear both in the list and as part of other elements of the list). Will recurse on the subexpresions, replacing the sub-expressions with any new value. Then will invoke f on the resulting new expression. If f returns a non-false value, the expression will be replaced with that return value. Oth...
#lang rosette/safe (provide program-map-expressions-postorder features-used-by-program program-limited-to-features? strip-unused-patterns same-pattern?) (require (only-in racket error set=? mutable-seteq mutable-set set-add! set-member? set->list struct-copy exit set-subtract set-empty? for) rosette/lib...
ae7248cf58e99d615a9bcb0ce58d9fb18ddda68abb776216ade35b4df73236b8
OCamlPro/scilint
interpWebLib.ml
open InterpLib let help_lines = [ "SciWeb is a simple online interpreter for the Scilab language developed by OCamlPro. "; "It was developed as part of the Richelieu FUI R&D project, as an online demonstrator for OCaml parsers and interpreters for Scilab."; ""; "SciWeb operations are executed in your browser onl...
null
https://raw.githubusercontent.com/OCamlPro/scilint/9d9ddd8e1630ddeae7f4f875bce62b2f65ec17d8/src/interp/interpWebLib.ml
ocaml
--------------------- prompt ------------------------------------ --------------------- help --------------------------------------
open InterpLib let help_lines = [ "SciWeb is a simple online interpreter for the Scilab language developed by OCamlPro. "; "It was developed as part of the Richelieu FUI R&D project, as an online demonstrator for OCaml parsers and interpreters for Scilab."; ""; "SciWeb operations are executed in your browser onl...
23a7df1f95d9821dd5b72fe818e15dac0cc06dc42f6abc2caad580f842a9f938
paurkedal/ocaml-prime
test_map.ml
Copyright ( C ) 2014 - -2022 Petter A. Urkedal < > * * This library 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 , either version 3 of the License , or ( at your * option ) any la...
null
https://raw.githubusercontent.com/paurkedal/ocaml-prime/42efa85317069d726e8e3989e51c24ba03c56b47/tests/test_map.ml
ocaml
Copyright ( C ) 2014 - -2022 Petter A. Urkedal < > * * This library 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 , either version 3 of the License , or ( at your * option ) any la...
4057a878f523c3a7f125ad707d622ff21c354f7adf852deef94e9d97efd60ef2
chrisdone/bdo
Main.hs
# LANGUAGE ViewPatterns # {-# LANGUAGE OverloadedStrings #-} -- | Main bdo server. module Main where import Bdo import Control.Concurrent import Control.Exception import Control.Monad import Data.Aeson import Data.List import Data.Maybe import Dat...
null
https://raw.githubusercontent.com/chrisdone/bdo/c96cb6aa9e97fa3491185c50dee0f77a13241010/src/Main.hs
haskell
# LANGUAGE OverloadedStrings # | Main bdo server. | Main entry point.
# LANGUAGE ViewPatterns # module Main where import Bdo import Control.Concurrent import Control.Exception import Control.Monad import Data.Aeson import Data.List import Data.Maybe import Data.Monoid import Data.Text.Lazy (Text) import qu...
51d5dcde5c68ed035161c7196f67beac9391168d18e60670f7e4f43e5db41b9b
racket/scribble
reader.rkt
#lang s-exp syntax/module-reader scribble/text/lang #:read scribble:read-inside #:read-syntax scribble:read-syntax-inside #:whole-body-readers? #t #:info (scribble-base-reader-info) (require (prefix-in scribble: scribble/reader) (only-in scribble/base/reader scribble-base-reader-info))
null
https://raw.githubusercontent.com/racket/scribble/beb2d9834169665121d34b5f3195ddf252c3c998/scribble-text-lib/scribble/text/lang/reader.rkt
racket
#lang s-exp syntax/module-reader scribble/text/lang #:read scribble:read-inside #:read-syntax scribble:read-syntax-inside #:whole-body-readers? #t #:info (scribble-base-reader-info) (require (prefix-in scribble: scribble/reader) (only-in scribble/base/reader scribble-base-reader-info))
e4f11299c07eea473d03a986a7272974d9e6e182ef99dd64ba94fa45a9d333f9
bobeff/playground
026.rkt
Exercise 26 . What do you expect as the value of this program : ; ; (define (string-insert s i) ; (string-append (substring s 0 i) ; "_" ; (substring s i))) ; ( string - insert " helloworld " 6 ) ; Confirm your expectation with and its stepper . #lang rack...
null
https://raw.githubusercontent.com/bobeff/playground/7072dbd7e0acd690749abe1498dd5f247cc21637/htdp-second-edition/exercises/026.rkt
racket
(define (string-insert s i) (string-append (substring s 0 i) "_" (substring s i))) -> "hellow_orld"
Exercise 26 . What do you expect as the value of this program : ( string - insert " helloworld " 6 ) Confirm your expectation with and its stepper . #lang racket (require rackunit) (define (string-insert s i) (string-append (substring s 0 i) "_" (substring s i))) (chec...
4037ebc81dc57552d60bdc6f9b9b0b8c75a1707299c562ea137ce915071cd45c
ocaml/ocaml
polyvars.ml
(* TEST * expect *) type ab = [ `A | `B ];; let f (x : [`A]) = match x with #ab -> 1;; [%%expect{| type ab = [ `A | `B ] Line 2, characters 32-35: 2 | let f (x : [`A]) = match x with #ab -> 1;; ^^^ Error: This pattern matches values of type [? `A | `B ] but a pattern was e...
null
https://raw.githubusercontent.com/ocaml/ocaml/d71ea3d089ae3c338b8b6e2fb7beb08908076c7a/testsuite/tests/typing-misc/polyvars.ml
ocaml
TEST * expect warn warn fail fail imported from in poly.ml PR#6787 f : 'a -> [< `Foo ] -> 'a PR#6124 PR#5927 * Check that the non-regularity error message is robust to permutation
type ab = [ `A | `B ];; let f (x : [`A]) = match x with #ab -> 1;; [%%expect{| type ab = [ `A | `B ] Line 2, characters 32-35: 2 | let f (x : [`A]) = match x with #ab -> 1;; ^^^ Error: This pattern matches values of type [? `A | `B ] but a pattern was expected which matches v...
27d0eb6f9452322b8ca22e701beeda9b2d68b09ec4a5ca9d19600f49b0cf83a7
pnf/girder
grid.clj
(ns acyclic.girder.testutils.grid (:require [acyclic.utils.cli :as cli] [clojure.core.async :as async :refer [<! >! <!! >!! timeout chan alt!! go close!]] [acyclic.girder.grid :as grid] [taoensso.timbre :as timbre] acyclic.girder.grid.redis) (:import (java.util UUID))...
null
https://raw.githubusercontent.com/pnf/girder/25517e39227a28f10b0940908c57b95ac19dc3ce/src/acyclic/girder/testutils/grid.clj
clojure
--cleanup --distributor POOLID1[,POOLID2,...] ; --helper MSECS --pool POOLID --jobs N
(ns acyclic.girder.testutils.grid (:require [acyclic.utils.cli :as cli] [clojure.core.async :as async :refer [<! >! <!! >!! timeout chan alt!! go close!]] [acyclic.girder.grid :as grid] [taoensso.timbre :as timbre] acyclic.girder.grid.redis) (:import (java.util UUID))...
13250eb36fa2d60d9c19b7cd6aa47cdf564522e0094481fa67d0e3fd870edadd
lspitzner/brittany
Test326.hs
spanKey p q = case minViewWithKey q of Just ((k, _), q') | p k -> let (kas, q'') = spanKey p q' in ((k, a) : kas, q'') _ -> ([], q)
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test326.hs
haskell
spanKey p q = case minViewWithKey q of Just ((k, _), q') | p k -> let (kas, q'') = spanKey p q' in ((k, a) : kas, q'') _ -> ([], q)
000adc30f6c3e4d9fcd591ef3b9aca5856506844b2f4c1f1f1bd525d0cfc08fb
defunkydrummer/abcl-jazz
inspector.lisp
(defun get-class (class-or-name) "Obtain the class designed by the name, if it's a string, otherwise return the java object" (etypecase class-or-name (string (jclass class-or-name)) (java-object class-or-name))) ;TODO: how to specialize? (defun get-constructors (class-name) "Obtain list of constructors...
null
https://raw.githubusercontent.com/defunkydrummer/abcl-jazz/b5a2b72892d344bfc539769eca449a63243148bc/inspector.lisp
lisp
TODO: how to specialize? pretty print classes and other java objects list to swing List can only show String values... show inspector for list or plist or etc. add data... (width nil) for each row
(defun get-class (class-or-name) "Obtain the class designed by the name, if it's a string, otherwise return the java object" (etypecase class-or-name (string (jclass class-or-name)) (defun get-constructors (class-name) "Obtain list of constructors defined by the class itself." (loop with x = (get-class cl...
a9c15e4aa41d4324563b96393851646560c4dfe51400ec76a5846657ea0a9341
brendanhay/gogol
List.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # {-# LANGUAGE St...
null
https://raw.githubusercontent.com/brendanhay/gogol/fffd4d98a1996d0ffd4cf64545c5e8af9c976cda/lib/services/gogol-websecurityscanner/gen/Gogol/WebSecurityScanner/Projects/ScanConfigs/ScanRuns/Findings/List.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated List Findings under a given ScanRun. /See:/ <-command-center/docs/concepts-web-security-scanner-overview/ Web Security Scanner API Reference> for @websecurityscanner.projects.scanConfigs.scanRuns.findings.list@. * Resource ** ...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE DuplicateRecordFields # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE RecordWildCards # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators...
3e5e0769f8205ec2f2121928489c522db66e15aace9ce22e7191730fb801c7b0
jakemcc/sicp-study
ex4_23.clj
Exercise 4.23 's version does more work at runtime , whereas the version ; in the text book does much of the work when it analyzes the code.
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section4.1/src/ex4_23.clj
clojure
in the text book does much of the work when it analyzes the code.
Exercise 4.23 's version does more work at runtime , whereas the version
f539ad4b6c3f2e4f1f90bb34eac00421775c5acd3dbdb2929c9e62bbc36cb44c
haskell-gi/gi-gtk-examples
ComboDemo.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.List (elemIndex) import Data.GI.Base.ManagedPtr ( unsafeCastTo ) import qualified Data.Text as T import qualified GI.Gtk as Gtk (main, init) import GI.Gtk (widgetShowAll, containerAdd, binGetChild, comboBoxSetActive, comboBoxNewWithEntry, ...
null
https://raw.githubusercontent.com/haskell-gi/gi-gtk-examples/4c4f06dc91fbb9b9f50cdad295c8afe782e0bdec/menu/ComboDemo.hs
haskell
# LANGUAGE OverloadedStrings # Get the entry widget that the ComboBoxEntry uses. Whenever the user has completed editing the text, append the new text to the store unless it's already in there.
module Main where import Data.List (elemIndex) import Data.GI.Base.ManagedPtr ( unsafeCastTo ) import qualified Data.Text as T import qualified GI.Gtk as Gtk (main, init) import GI.Gtk (widgetShowAll, containerAdd, binGetChild, comboBoxSetActive, comboBoxNewWithEntry, mainQuit, onWidgetDestroy, windowNe...
e450f72af044f51baeb10c058126aab1684e196451c3189a9e81629c26b388f2
ayazhafiz/plts
eval.ml
module T = Typecheck open Cast_ir open Cast_ir.Expr open Cast_ir.Builtin open Util type error = CastError of elaborated_expr | TypeError of elaborated_expr let type_error e = Error (TypeError e) let cast_error e = Error (CastError e) let rec unbox = function | Elab (Cast (Ty (TUnknown, _), e), _) -> unbox e | e...
null
https://raw.githubusercontent.com/ayazhafiz/plts/2971814f57c25d3d665126e70b717dc18e6d3dd4/gtlc/eval.ml
ocaml
EIf (new) EConst ECstG ECstF ECstU ECstR ERef EAssign
module T = Typecheck open Cast_ir open Cast_ir.Expr open Cast_ir.Builtin open Util type error = CastError of elaborated_expr | TypeError of elaborated_expr let type_error e = Error (TypeError e) let cast_error e = Error (CastError e) let rec unbox = function | Elab (Cast (Ty (TUnknown, _), e), _) -> unbox e | e...
ce80aca0ca303415816cc4166a6e347794f34d706bc825d7b4d5039e0207d86b
ku-fpg/hermit
Rev.hs
# LANGUAGE CPP # module Main where import HList rev :: [a] -> [a] rev [] = [] rev (y:ys) = rev ys ++ [y] main :: IO () main = print $ rev [1..10] -- Should be in the "List" module {-# RULES "++ []" forall xs . xs ++ [] = xs #-} {-# RULES "++ strict" (++) undefined = undefined #-} The " Algebra "...
null
https://raw.githubusercontent.com/ku-fpg/hermit/3e7be430fae74a9e3860b8b574f36efbf9648dec/examples/concatVanishes/Rev.hs
haskell
Should be in the "List" module # RULES "++ []" forall xs . xs ++ [] = xs # # RULES "++ strict" (++) undefined = undefined # # RULES "repH ++" forall xs ys . repH (xs ++ ys) = repH xs . repH ys # # RULES "repH []" repH [] = id # # RULES "repH (:)" forall x xs . ...
# LANGUAGE CPP # module Main where import HList rev :: [a] -> [a] rev [] = [] rev (y:ys) = rev ys ++ [y] main :: IO () main = print $ rev [1..10] The " Algebra " for repH
e32e9ad3ac3e57b68dc55803a47818982b6779dce91c6bd8d740d2fc89b69451
artyom-poptsov/guile-smc
char-context.scm
;;; char-context.scm -- Guile-SMC finite state machine character context. Copyright ( C ) 2021 < > ;; ;; 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 the License , o...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-smc/fa299b43e65a9a30679865201d5ce02d0da7b5b5/modules/smc/context/char-context.scm
scheme
char-context.scm -- Guile-SMC finite state machine character context. This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABI...
Copyright ( C ) 2021 < > 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 Public License (define-module (smc context char-context) #:use-module (ice-9 textual...
ba44aa04aee794305c6cbb871da05eb591c154cb5d98460381825cfd9c054c5d
thattommyhall/offline-4clojure
p26.clj
;; Fibonacci Sequence - Easy Write a function which returns the first X fibonacci numbers . tags - Fibonacci : seqs ;; restricted - (ns offline-4clojure.p26 (:use clojure.test)) (def __ ;; your solution here ) (defn -main [] (are [soln] soln (= (__ 3) '(1 1 2)) (= (__ 6) '(1 1 2 3 5 8)) (= (__ 8) '(1 1 2 3 5...
null
https://raw.githubusercontent.com/thattommyhall/offline-4clojure/73e32fc6687816aea3c514767cef3916176589ab/src/offline_4clojure/p26.clj
clojure
Fibonacci Sequence - Easy restricted - your solution here
Write a function which returns the first X fibonacci numbers . tags - Fibonacci : seqs (ns offline-4clojure.p26 (:use clojure.test)) (def __ ) (defn -main [] (are [soln] soln (= (__ 3) '(1 1 2)) (= (__ 6) '(1 1 2 3 5 8)) (= (__ 8) '(1 1 2 3 5 8 13 21)) ))
5f75551c1d7df0dc599a850f73889ebc950d5de3acdb519d92d661803a4aadbe
ygmpkk/house
Exception.hs
----------------------------------------------------------------------------- -- | -- Module : Control.Exception Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- Stability : experimental -- Portability : non-por...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/base/Control/Exception.hs
haskell
--------------------------------------------------------------------------- | Module : Control.Exception License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable This module provides support for raising and catching both built...
Copyright : ( c ) The University of Glasgow 2001 module Control.Exception ( instance , Ord , Show , instance , Ord , Show , instance , Ord , Show , instance , Ord , Show , instance , Ord , Show , : : IOError - > IO a #ifdef __GLASGOW_HASKELL__ #endif $ preds : : Exception ...
44bbf14da37c2a7416ef9d7d100494ca1be5fec64f1ea20f98d2a213c5c0e464
arttuka/reagent-material-ui
toolbar.cljs
(ns reagent-mui.material.toolbar "Imports @mui/material/Toolbar as a Reagent component. Original documentation is at -ui/api/toolbar/ ." (:require [reagent.core :as r] ["@mui/material/Toolbar" :as MuiToolbar])) (def toolbar (r/adapt-react-class (.-default MuiToolbar)))
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/14103a696c41c0eb67fc07fc67cd8799efd88cb9/src/core/reagent_mui/material/toolbar.cljs
clojure
(ns reagent-mui.material.toolbar "Imports @mui/material/Toolbar as a Reagent component. Original documentation is at -ui/api/toolbar/ ." (:require [reagent.core :as r] ["@mui/material/Toolbar" :as MuiToolbar])) (def toolbar (r/adapt-react-class (.-default MuiToolbar)))
75e82aa07c583e57bc04eee3ea9243b1764dc0791eb7eddb5cfde383c0a18974
ralph-schleicher/rs-colors
rs-colors.lisp
;;; rs-colors.lisp --- a color data type for Common Lisp. Copyright ( C ) 2014 ;; 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 ;; n...
null
https://raw.githubusercontent.com/ralph-schleicher/rs-colors/0604867895fab0ea9b8a6bb0ac4a08d452c53c59/rs-colors.lisp
lisp
rs-colors.lisp --- a color data type for Common 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 fol...
Copyright ( C ) 2014 " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT (in-package :common...
dd57e157786937f6ad2202d54f6148d3b50a3f37ca2d24b0d621bbc0371f0abb
kdltr/chicken-core
batch-driver.scm
;;;; batch-driver.scm - Driver procedure for the compiler ; Copyright ( c ) 2008 - 2021 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following ; conditions are met: ; ; ...
null
https://raw.githubusercontent.com/kdltr/chicken-core/b2e6c5243dd469064bec947cb3b49dafaa1514e5/batch-driver.scm
scheme
batch-driver.scm - Driver procedure for the compiler 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 condition...
Copyright ( c ) 2008 - 2021 , The CHICKEN Team Copyright ( c ) 2000 - 2007 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " AND ANY EXPRESS CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIM...
f301836f503b117dc1a1b4ffdfe2d079b0a40a1ae37dfdadd75f7c8b26da074f
ku-fpg/sized-types
Unsigned.hs
# LANGUAGE ScopedTypeVariables , TypeFamilies , CPP , FlexibleContexts , DataKinds # #if __GLASGOW_HASKELL__ >= 707 {-# LANGUAGE StandaloneDeriving, DeriveDataTypeable #-} #endif -- | Unsigned, fixed sized numbers. -- Copyright : ( c ) 2009 - 2013 University of Kansas -- License: BSD3 -- Maintainer : < > -- Sta...
null
https://raw.githubusercontent.com/ku-fpg/sized-types/77e8931d1758085ae76d67e9054549e8e75bd595/Data/Sized/Unsigned.hs
haskell
# LANGUAGE StandaloneDeriving, DeriveDataTypeable # | Unsigned, fixed sized numbers. License: BSD3 Stability: unstable TODO: check for size TODO: fix where m = toVector v We do not address efficiency in this implementation. | common; numerically boolean.
# LANGUAGE ScopedTypeVariables , TypeFamilies , CPP , FlexibleContexts , DataKinds # #if __GLASGOW_HASKELL__ >= 707 #endif Copyright : ( c ) 2009 - 2013 University of Kansas Maintainer : < > Portability : ghc module Data.Sized.Unsigned ( Unsigned , toVector , fromVector , showBits , U1, U2,...
fb48ee922e3164ff6bc600e6748d64993da4644def456257e8c46c7330e9c6a4
deech/cabal-auto-expose
Benchmark.hs
{-# LANGUAGE BangPatterns #-} module Main where import Test.QuickCheck import Criterion import Criterion.Main import Distribution.Simple.AutoExpose hiding (defaultMain) main :: IO () main = do let setupEnv = generate (vectorOf 1000 (arbitrary :: Gen String)) defaultMain [ env setupEnv $ \ ss -> b...
null
https://raw.githubusercontent.com/deech/cabal-auto-expose/0e642c66c143d45012b611b94796bbbe175cdf0f/cabal-auto-expose/Benchmark.hs
haskell
# LANGUAGE BangPatterns #
module Main where import Test.QuickCheck import Criterion import Criterion.Main import Distribution.Simple.AutoExpose hiding (defaultMain) main :: IO () main = do let setupEnv = generate (vectorOf 1000 (arbitrary :: Gen String)) defaultMain [ env setupEnv $ \ ss -> bgroup "main" ...
0fdaaba73c6b6d11108b5d83071469b1537575625b2aa0d9812c1e15e27d02c6
mfikes/advent-of-code
day_19.cljc
(ns advent-2017.day-19 (:require [advent.util :refer [count']] #?(:cljs [planck.core :refer [slurp]]) [#?(:clj clojure.java.io :cljs planck.io) :as io] [clojure.string :as str])) (def input (-> "advent_2017/day_19/input" io/resource slurp)) (def matrix (mapv vec (str/split-lines input))) (defn move [st...
null
https://raw.githubusercontent.com/mfikes/advent-of-code/72a015ac8fd9b1097efea69a0bb8acc26462665e/src/advent_2017/day_19.cljc
clojure
(ns advent-2017.day-19 (:require [advent.util :refer [count']] #?(:cljs [planck.core :refer [slurp]]) [#?(:clj clojure.java.io :cljs planck.io) :as io] [clojure.string :as str])) (def input (-> "advent_2017/day_19/input" io/resource slurp)) (def matrix (mapv vec (str/split-lines input))) (defn move [st...
979bd8ebf0e0f662bf6160f0da50717e9b3dbb210355b69efe8b4c389cccce2f
janestreet/bonsai
header_tree.mli
open! Core open! Bonsai_web type t = private | Leaf of leaf | Group of group | Organizational_group of t list | Spacer of t and leaf = private { leaf_label : Vdom.Node.t ; initial_width : Css_gen.Length.t ; visible : bool } and group = private { children : t list ; group_label : Vdom.Node.t } [...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/web_ui/partial_render_table/src/header_tree.mli
ocaml
* For each leaf, [column_names] returns a list like [group_label; group_label; ...; leaf_label], where the group labels are that leaf's ancestors, ordered left to right from most to least distant. Used for rendering column groups in tests.
open! Core open! Bonsai_web type t = private | Leaf of leaf | Group of group | Organizational_group of t list | Spacer of t and leaf = private { leaf_label : Vdom.Node.t ; initial_width : Css_gen.Length.t ; visible : bool } and group = private { children : t list ; group_label : Vdom.Node.t } [...
3f6a64b42788d04895c8dbe8083e972081f0146b161b8c56c81e4306386f485b
baffalop/aoc22-haskell
Day11.hs
# LANGUAGE TemplateHaskell , DeriveFunctor # module Day11 (parse, solve1, solve2) where import Prelude hiding (round) import Data.Text (Text) import qualified Data.Attoparsec.Text as P import Data.Attoparsec.Text (Parser) import Data.Map (Map, (!)) import qualified Data.Map as M import Data.Sequence (Seq, (|>)) impor...
null
https://raw.githubusercontent.com/baffalop/aoc22-haskell/45360a2109b91a63f70d00b51aebc911360be7e1/src/Day11.hs
haskell
# LANGUAGE TemplateHaskell , DeriveFunctor # module Day11 (parse, solve1, solve2) where import Prelude hiding (round) import Data.Text (Text) import qualified Data.Attoparsec.Text as P import Data.Attoparsec.Text (Parser) import Data.Map (Map, (!)) import qualified Data.Map as M import Data.Sequence (Seq, (|>)) impor...
7aa15bbee88994c9969174d9899af056ebeceef617387382e45eb39a3348d4a5
triffon/fp-2022-23
07.palindrome.rkt
#lang racket (require rackunit) (require rackunit/text-ui) # # # зад 7 Дали числото е палиндром ? (define (palindrome? n) 'tuk) (run-tests (test-suite "palindrome? tests" (check-false (palindrome? 1234)) (check-false (palindrome? 1231)) (check-true (palindrome? 9102019)) (check-true (palindr...
null
https://raw.githubusercontent.com/triffon/fp-2022-23/caf334dba494954cc7bd62b9f4fc5a1ff8315f2b/exercises/cs2/02.scheme.rec-iter/07.palindrome.rkt
racket
#lang racket (require rackunit) (require rackunit/text-ui) # # # зад 7 Дали числото е палиндром ? (define (palindrome? n) 'tuk) (run-tests (test-suite "palindrome? tests" (check-false (palindrome? 1234)) (check-false (palindrome? 1231)) (check-true (palindrome? 9102019)) (check-true (palindr...
19d6401892996c371677aeaccb9b3b9a4b29ea8280d117003972d7fa812c1081
unison-code/unison
HsGen.hs
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
null
https://raw.githubusercontent.com/unison-code/unison/9f8caf78230f956a57b50a327f8d1dca5839bf64/src/unison-specsgen/src/SpecsGen/HsGen.hs
haskell
calls and branches do not have definition operands
| Copyright : Copyright ( c ) 2016 , RISE SICS AB License : BSD3 ( see the LICENSE file ) Maintainer : Copyright : Copyright (c) 2016, RISE SICS AB License : BSD3 (see the LICENSE file) Maintainer : -} Main authors : < > This file is part of Unison , see -code.github.io ...
cd34f6c824c41b91d9c72745432e96faed0b03a4a883c8a86bd49d2faf265af6
TyOverby/mono
linux_ext.ml
open! Core module Unix = Core_unix module Thread = Core_thread module Time_ns = Time_ns_unix module File_descr = Unix.File_descr module Syscall_result = Unix.Syscall_result module Sysinfo0 = struct type t = { uptime : Time.Span.t; load1 : int; load5 : int; load15 : int; total_ram : int; ...
null
https://raw.githubusercontent.com/TyOverby/mono/146b39835a8c2714d37a55d46cd7c7e43755c3b0/vendor/janestreet-core_unix/linux_ext/src/linux_ext.ml
ocaml
If you update this type, you also must update linux_tcpopt_bool, in the C stubs. (And do make sure you get the order correct) val rdhup : Int63.t C code depends on the layout of the type This expands a kernel command-line cpu-list string, which is a comma-separated list with elements: {| N ...
open! Core module Unix = Core_unix module Thread = Core_thread module Time_ns = Time_ns_unix module File_descr = Unix.File_descr module Syscall_result = Unix.Syscall_result module Sysinfo0 = struct type t = { uptime : Time.Span.t; load1 : int; load5 : int; load15 : int; total_ram : int; ...
9a53725cd981551e730d55e9b2f714587669834a5a9a2a0132f4ddd09b404aee
MarcFontaine/stm32hs
RealTimeClock.hs
---------------------------------------------------------------------------- -- | -- Module : App.RealTimeClock -- License : BSD3 -- -- Stability : experimental Portability : GHC - only -- -- Read the real time clock. -- This only works if the controller has a battery installed and the RTC has been...
null
https://raw.githubusercontent.com/MarcFontaine/stm32hs/d7afeb8f9d83e01c76003f4b199b45044bd4e383/STM32-Zombie/src/App/RealTimeClock.hs
haskell
-------------------------------------------------------------------------- | Module : App.RealTimeClock License : BSD3 Stability : experimental Read the real time clock. This only works if the controller has a battery installed
Portability : GHC - only and the RTC has been initialized . module App.RealTimeClock where import STM32.API import qualified STM32.RTC as RTC printRTC :: IO () printRTC = runMI $ do initMI resetHalt RTC.getCounter >>=print'
73344ba0413f87cefe5b07fd1e73541097b3c01671acbe513b65ac498ca784c9
ocaml-community/calendar
date_sig.mli
(**************************************************************************) (* *) (* This file is part of Calendar. *) (* *) Copyright...
null
https://raw.githubusercontent.com/ocaml-community/calendar/f119658010cc9045e1866eddadc4a776adbcc146/src/date_sig.mli
ocaml
************************************************************************ This file is part of Calendar. ...
Copyright ( C ) 2003 - 2011 Lesser General Public License version 2.1 as published by the Free Software Foundation , with a special linking exception ( usual See the GNU Lesser General Public Licence version 2.1 for more * Date interface . A date may be seen as a triple ( year , mo...
2639035435a5a51453bc610414401739513d544eee249ea24e8f2ccfe3ff1963
gersak/vura
db.cljc
;; This file is autogenerated using vura.timezones.compile/-main (ns vura.timezones.db (:require [clojure.string])) (declare db locales) (defn get-rule [rule] (get-in db [:rules rule])) (defn get-timezone [zone-name] (if-let [zone' (get-in db [:zones zone-name])] (if (string? zone') (get-timezone zone'...
null
https://raw.githubusercontent.com/gersak/vura/e7c3fc8b738b73eaa00255f39d889afab611a069/timezones/src/vura/timezones/db.cljc
clojure
This file is autogenerated using vura.timezones.compile/-main
(ns vura.timezones.db (:require [clojure.string])) (declare db locales) (defn get-rule [rule] (get-in db [:rules rule])) (defn get-timezone [zone-name] (if-let [zone' (get-in db [:zones zone-name])] (if (string? zone') (get-timezone zone') zone') (throw (ex-info "No such zone." {:...
9c7877d58b5d374e66e5efdc4ac5d73da2e9b574363e1bafc4f75a411c03d202
tek/polysemy-log
DataLogTest.hs
module Polysemy.Log.Test.DataLogTest where import Polysemy.Test (UnitTest, assertEq, runTestAuto) import Polysemy.Log.Atomic (interpretDataLogAtomic) import qualified Polysemy.Log.Effect.DataLog as DataLog import Polysemy.Log.Effect.DataLog (DataLog) data CustomLog = User Text | Fatal Int deriving stock (Eq,...
null
https://raw.githubusercontent.com/tek/polysemy-log/385efb9043de0fef84943982723cbf32ed6caee4/packages/polysemy-log/test/Polysemy/Log/Test/DataLogTest.hs
haskell
module Polysemy.Log.Test.DataLogTest where import Polysemy.Test (UnitTest, assertEq, runTestAuto) import Polysemy.Log.Atomic (interpretDataLogAtomic) import qualified Polysemy.Log.Effect.DataLog as DataLog import Polysemy.Log.Effect.DataLog (DataLog) data CustomLog = User Text | Fatal Int deriving stock (Eq,...
4dead9482716a78e39ba4e96d10b87faf722a233c75c8a514e6fcbad9d7bb878
Bogdanp/racket-redis
hash.rkt
#lang racket/base (require rackunit redis "common.rkt") (provide hash-tests) (define hash-tests (test-suite "hash" (test-commands "HMSET" (check-exn exn:fail:contract? (lambda _ (redis-hash-set! test-client "a" "a" "1" "b"))) (redis-hash-set! test-client "a"...
null
https://raw.githubusercontent.com/Bogdanp/racket-redis/0f6c1a723f25f40dd9c6f682dee30fa8a9288f86/redis-test/redis/hash.rkt
racket
#lang racket/base (require rackunit redis "common.rkt") (provide hash-tests) (define hash-tests (test-suite "hash" (test-commands "HMSET" (check-exn exn:fail:contract? (lambda _ (redis-hash-set! test-client "a" "a" "1" "b"))) (redis-hash-set! test-client "a"...
e9ceadc340017c0fcec9e8d5fa298347f668f310a3fcc4025cdc43c53e92e888
freizl/dive-into-haskell
Main.hs
module Main where import Data.Char main :: IO () main = putStrLn "Hello, Haskell!" isSubseqOf :: (Eq a) => [a] -> [a] -> Bool isSubseqOf [] [] = True isSubseqOf [] _ = True isSubseqOf _ [] = False isSubseqOf target@(x:xs) source@(y:ys) | x == y = isSubseqOf xs ys | otherwise = isSubseqOf target ys capitalizeW...
null
https://raw.githubusercontent.com/freizl/dive-into-haskell/b18a6bfe212db6c3a5d707b4a640170b8bcf9330/readings/haskell-book/11/Main.hs
haskell
module Main where import Data.Char main :: IO () main = putStrLn "Hello, Haskell!" isSubseqOf :: (Eq a) => [a] -> [a] -> Bool isSubseqOf [] [] = True isSubseqOf [] _ = True isSubseqOf _ [] = False isSubseqOf target@(x:xs) source@(y:ys) | x == y = isSubseqOf xs ys | otherwise = isSubseqOf target ys capitalizeW...
9d008af2e6f840296e832bdd18aaaa9913f600e02b264a6a473e67985b027eef
xenserver/gpumon
mock.ml
exception Library_not_loaded of string exception Symbol_not_loaded of string type interface = unit type device = unit type enable_state = Disabled | Enabled type memory_info = {total: int64; free: int64; used: int64} type pci_info = { bus_id: string ; domain: int32 ; bus: int32 ; device: int32 ; pci_d...
null
https://raw.githubusercontent.com/xenserver/gpumon/dae894f3cd810f07f2b103635e0e6465bd739468/mocks/mock.ml
ocaml
exception Library_not_loaded of string exception Symbol_not_loaded of string type interface = unit type device = unit type enable_state = Disabled | Enabled type memory_info = {total: int64; free: int64; used: int64} type pci_info = { bus_id: string ; domain: int32 ; bus: int32 ; device: int32 ; pci_d...
6ed727c05f0a8b8ac12321e04204fef45e14bb8dbb720d52e6219ce54e163dac
leo-project/leo_gateway
leo_large_object_put_handler.erl
%%====================================================================== %% Leo Gateway Large Object PUT Handler %% Copyright ( c ) 2012 - 2015 Rakuten , Inc. %% 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 Licens...
null
https://raw.githubusercontent.com/leo-project/leo_gateway/7bac8912b762688f0ef237b31fee17e30e3888a3/src/leo_large_object_put_handler.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 permis...
Leo Gateway Large Object PUT Handler Copyright ( c ) 2012 - 2015 Rakuten , Inc. 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 A...
e60d89d950bf2fc8f68b60cdfc14c44f2e84b2e4cad200344a336bb40642cbea
nick8325/quickspec
Terms.hs
Theory exploration which accepts one term at a time . {-# OPTIONS_HADDOCK hide #-} # LANGUAGE RecordWildCards , FlexibleContexts , PatternGuards # module QuickSpec.Internal.Explore.Terms where import qualified Data.Map.Strict as Map import Data.Map(Map) import QuickSpec.Internal.Term import QuickSpec.Internal.Prop i...
null
https://raw.githubusercontent.com/nick8325/quickspec/cb61f719d3d667674431867037ff44dec22ca4f9/src/QuickSpec/Internal/Explore/Terms.hs
haskell
# OPTIONS_HADDOCK hide # Empty decision tree. Terms already explored. These are stored in the *values* of the map. The keys are those terms but normalised. We do it like this so that explore can guarantee to always return the same representative for each equivalence class (see below). Decision tree mapping test c...
Theory exploration which accepts one term at a time . # LANGUAGE RecordWildCards , FlexibleContexts , PatternGuards # module QuickSpec.Internal.Explore.Terms where import qualified Data.Map.Strict as Map import Data.Map(Map) import QuickSpec.Internal.Term import QuickSpec.Internal.Prop import QuickSpec.Internal.Type...
8ce88630cebdc179c5616a7f2352c144a2924011f98e092132da771fcfded4a8
msakai/toysolver
BCD2.hs
{-# LANGUAGE BangPatterns #-} # OPTIONS_GHC -Wall -fno - warn - unused - do - bind # {-# OPTIONS_HADDOCK show-extensions #-} ----------------------------------------------------------------------------- -- | Module : ToySolver . SAT.PBO.BCD2 Copyright : ( c ) 2014 -- License : BSD-style -- -- Ma...
null
https://raw.githubusercontent.com/msakai/toysolver/6233d130d3dcea32fa34c26feebd151f546dea85/src/ToySolver/SAT/PBO/BCD2.hs
haskell
# LANGUAGE BangPatterns # # OPTIONS_HADDOCK show-extensions # --------------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : provisional Portability : non-portable Reference: Core-Guided binary search algorithms for maximum satisfiabili...
# OPTIONS_GHC -Wall -fno - warn - unused - do - bind # Module : ToySolver . SAT.PBO.BCD2 Copyright : ( c ) 2014 * , , , Twenty - Fifth AAAI Conference on Artificial Intelligence , 2011 . * A. Morgado , , and , in Theory and Applications of Satisfiability Testing ( SAT 2012 )...
6a4d25c4e67f528a582d3e01376130e04bb3bf6a3d0abd8e3321c5c6c3381301
mfp/ocaml-stomp
test_receive.ml
Copyright ( c ) 2009 > open Arg open Printf open ExtString open ExtList module S = Mq_stomp_client.Make_generic(Mq_concurrency.Posix_thread) let () = Random.self_init () let port = ref 61613 let address = ref "127.0.0.1" let num_msgs = ref max_int let login = ref None let passcode = ref None let dests = ref []...
null
https://raw.githubusercontent.com/mfp/ocaml-stomp/5dd4319af7212a0a82b1db8e373642d9d7891580/test_receive.ml
ocaml
Copyright ( c ) 2009 > open Arg open Printf open ExtString open ExtList module S = Mq_stomp_client.Make_generic(Mq_concurrency.Posix_thread) let () = Random.self_init () let port = ref 61613 let address = ref "127.0.0.1" let num_msgs = ref max_int let login = ref None let passcode = ref None let dests = ref []...
21428e9ac21cb6cf065049ff7472c16228d5cd36dca337df9857207e6f9d13c0
aaronc/fx-clj
i18n.clj
(ns fx-clj.i18n (:require [fx-clj.core :as fx])) (defn make-hello [] (fx/with-resource-bundle "TestResources" (fx/text "%hello"))) (defn make-view [] (fx/v-box (fx/text "Default:") (make-hello) (fx/text "In Spanish:") (fx/with-locale "es" (make-hello)))) (fx/sandbox #'make-v...
null
https://raw.githubusercontent.com/aaronc/fx-clj/29639356d8d1253438ecf61e123caacefa9269ec/test/fx_clj/i18n.clj
clojure
(ns fx-clj.i18n (:require [fx-clj.core :as fx])) (defn make-hello [] (fx/with-resource-bundle "TestResources" (fx/text "%hello"))) (defn make-view [] (fx/v-box (fx/text "Default:") (make-hello) (fx/text "In Spanish:") (fx/with-locale "es" (make-hello)))) (fx/sandbox #'make-v...
a7d5c99be39d955b6e5e7d04f52ef0b38227bb48665696ded31f7c4e17155c6f
ymilky/franzy-admin
topics.clj
(ns franzy.admin.topics (:require [franzy.admin.codec :as codec] [franzy.common.configuration.codec :as config-codec]) (:import (kafka.utils ZkUtils) (kafka.admin AdminUtils) (scala.collection Set))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/ymilky/franzy-admin/94588c5ce1b50f4a61b2fb4a4ec4d47568b83287/src/franzy/admin/topics.clj
clojure
Reading Topics because people don't list....maybe remove Writing to Topics Zookeeper
(ns franzy.admin.topics (:require [franzy.admin.codec :as codec] [franzy.common.configuration.codec :as config-codec]) (:import (kafka.utils ZkUtils) (kafka.admin AdminUtils) (scala.collection Set))) (defn topic-exists? [^ZkUtils zk-utils ^String topic] "Checks to see if a part...
c2e4ffc6d7d888160f0eee6e250a428cae1e74685106ee9f5703c832a3a4234f
jackfirth/rebellion
sorted-set.rkt
#lang racket/base (require racket/contract/base) (provide (all-from-out rebellion/collection/private/mutable-sorted-set) (all-from-out rebellion/collection/private/regular-immutable-sorted-set) (all-from-out rebellion/collection/private/sorted-set-builder) (all-from-out rebellion/collection/private/sorted-set-i...
null
https://raw.githubusercontent.com/jackfirth/rebellion/ca733d034e90234c1aba599251aa238fed2fffa9/collection/sorted-set.rkt
racket
@---------------------------------------------------------------------------------------------------- We only avoid copying if the input is a regular-immutable-sorted-set? instead of any immutable-sorted-set? because the latter includes subset views. A subset view could be a tiny portion of a much larger backing set...
#lang racket/base (require racket/contract/base) (provide (all-from-out rebellion/collection/private/mutable-sorted-set) (all-from-out rebellion/collection/private/regular-immutable-sorted-set) (all-from-out rebellion/collection/private/sorted-set-builder) (all-from-out rebellion/collection/private/sorted-set-i...
20e47bbd65f772d82df2b765738a1512c0c5907c94c06e2f75658dc6722429e4
snoyberg/haskellers
api-test.hs
{-# LANGUAGE OverloadedStrings #-} import Network.HTTP.Enumerator import qualified Data.ByteString.Lazy as L mkReq p = Request { method = "GET" , secure = False , host = "localhost" , port = 3000 , path = p , queryString = [] , requestHeaders = [("Accept", "application/json")] , request...
null
https://raw.githubusercontent.com/snoyberg/haskellers/ff152a73902f0e0e55615c83cfc5e888d052f1e3/src/api-test.hs
haskell
# LANGUAGE OverloadedStrings #
import Network.HTTP.Enumerator import qualified Data.ByteString.Lazy as L mkReq p = Request { method = "GET" , secure = False , host = "localhost" , port = 3000 , path = p , queryString = [] , requestHeaders = [("Accept", "application/json")] , requestBody = L.empty } main = do ...
a16bf93139d08afd23945856da18692b2776848c4335101a36378813d4b8634d
melisgl/mgl-mat
package.lisp
(mgl-pax:define-package :mgl-cube (:documentation "See MGL-CUBE:@CUBE-MANUAL.") (:use #:common-lisp #:mgl-pax)) (mgl-pax:define-package :mgl-mat (:documentation "See MGL-MAT:@MAT-MANUAL.") (:use #:common-lisp #:mgl-pax #:mgl-cube #:cl-cuda) (:import-from #:static-vectors #:static-vector #:static-vector-point...
null
https://raw.githubusercontent.com/melisgl/mgl-mat/550369aaac5aeafe563b6dc8e3cc6bf4b74a1cc5/src/package.lisp
lisp
(mgl-pax:define-package :mgl-cube (:documentation "See MGL-CUBE:@CUBE-MANUAL.") (:use #:common-lisp #:mgl-pax)) (mgl-pax:define-package :mgl-mat (:documentation "See MGL-MAT:@MAT-MANUAL.") (:use #:common-lisp #:mgl-pax #:mgl-cube #:cl-cuda) (:import-from #:static-vectors #:static-vector #:static-vector-point...
38b8b66f6fbd8530af270c2d92e345a7fafb4497b683bb9ff5e311946d0b3313
makemeunsee/ichimiginikarasu
XmlHelper.hs
module XmlHelper (XmlNode, deepAssertions, children, deepGetChildren, unsafeText, attrFilter, noAttrFilter, debugHead) where import Text.XML.Expat.Tree import Text.XML.Expat.Proc import Data.Text (Text) type XmlNode = NodeG [] Text Text children :: Text -> XmlNode -> [XmlNode] children name = childFilter ((== name) ...
null
https://raw.githubusercontent.com/makemeunsee/ichimiginikarasu/b7959d77301533f6ff07b554d60c0816f616eaf9/src/XmlHelper.hs
haskell
find all nested nodes matching the 'address' (tag hierarchy) assert node has at least a child matching each (address, text) requirement of the list
module XmlHelper (XmlNode, deepAssertions, children, deepGetChildren, unsafeText, attrFilter, noAttrFilter, debugHead) where import Text.XML.Expat.Tree import Text.XML.Expat.Proc import Data.Text (Text) type XmlNode = NodeG [] Text Text children :: Text -> XmlNode -> [XmlNode] children name = childFilter ((== name) ...
dfe04a2341dd79b0e322fb034192fff57c87637da429da13404612e6f63230da
hellonico/origami-fun
kalman.clj
(ns opencv4.video.kalman (:require [opencv4.core :refer :all]) (:require [opencv4.utils :as u]) (:import [org.opencv.core Mat Core CvType] [org.opencv.videoio Videoio VideoCapture] [org.opencv.video Video KalmanFilter])) -a-kalman-filter-works-in-pictures/ ; -kalman-filter-in-opencv-java ; init ka...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/video/kalman.clj
clojure
-kalman-filter-in-opencv-java init kalman -Target-Tracking-with-OpenCV/blob/e1ceb8b716984d105de7d375a70ba7a937f27a82/src/sonkd/Kalman.java EASIER TO UNDERSTAND -filter-implementation-tracking.html
(ns opencv4.video.kalman (:require [opencv4.core :refer :all]) (:require [opencv4.utils :as u]) (:import [org.opencv.core Mat Core CvType] [org.opencv.videoio Videoio VideoCapture] [org.opencv.video Video KalmanFilter])) -a-kalman-filter-works-in-pictures/ (def kalman (KalmanFilter. 4 2 0 CV_32F))...
ecf9ee12fc5e8f27c1523ec189996751c8e7dec7aa90e7a04bbc71e0ccc93690
GillianPlatform/Gillian
ppx_sat.ml
open Ppxlib let ext ext = Extension.declare_with_path_arg (Ppx_sat_expander.Extension_name.to_string ext) Extension.Context.expression Ast_pattern.(single_expr_payload __) (fun ~loc:_ ~path:_ ~arg:_ expr -> Ppx_sat_expander.expand ~ext expr) let () = Driver.register_transformation "sat" ~extensions:...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/12f0d50bb3c407bfbce34cc5c08f5d60c71466be/ppx_sat/src/ppx_sat.ml
ocaml
open Ppxlib let ext ext = Extension.declare_with_path_arg (Ppx_sat_expander.Extension_name.to_string ext) Extension.Context.expression Ast_pattern.(single_expr_payload __) (fun ~loc:_ ~path:_ ~arg:_ expr -> Ppx_sat_expander.expand ~ext expr) let () = Driver.register_transformation "sat" ~extensions:...
57f79d5e0f6f111914ffe2fb7e13ef96067ecd0715c3a6b17ec43e66da52b8e9
RyanGlScott/text-show
FlagsSpec.hs
# LANGUAGE CPP # | Module : Spec . GHC.RTS.Flags Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ tests for ' ConType ' . Module: Spec.GHC.RTS.Flags Copyright: (C) 2014-2017 Ryan Sc...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/tests/Spec/GHC/RTS/FlagsSpec.hs
haskell
# LANGUAGE CPP # | Module : Spec . GHC.RTS.Flags Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC @hspec@ tests for ' ConType ' . Module: Spec.GHC.RTS.Flags Copyright: (C) 2014-2017 Ryan Sc...
75743180455e0792fe053639b16917077894dd0554cf52e2bc9e397dbbf538a7
circuithub/haskell-gerber
GraphicsState.hs
# language DeriveGeneric # module Gerber.Evaluate.GraphicsState where import Data.Monoid ( Dual, First, Last ) import Data.Monoid.Deletable ( Deletable ) import Data.Sequence (Seq) import GHC.Generics ( Generic ) import Generics.Deriving.Monoid ( memptydefault, mappenddefault ) import Data.Text (Text) import qualif...
null
https://raw.githubusercontent.com/circuithub/haskell-gerber/aa986c2bc67c23f1495de98ee71377752fdb9a16/gerber/lib/Gerber/Evaluate/GraphicsState.hs
haskell
# language DeriveGeneric # module Gerber.Evaluate.GraphicsState where import Data.Monoid ( Dual, First, Last ) import Data.Monoid.Deletable ( Deletable ) import Data.Sequence (Seq) import GHC.Generics ( Generic ) import Generics.Deriving.Monoid ( memptydefault, mappenddefault ) import Data.Text (Text) import qualif...
5c320375f310debc7025652f5222b80a7bae03a3bf8ac38dcf0018751ae1edd4
den1k/vimsical
redis_test.clj
(ns vimsical.backend.adapters.redis-test (:require [clojure.test :refer [deftest is use-fixtures]] [vimsical.backend.adapters.redis.fixture :refer [*redis* redis]] [taoensso.carmine :as car])) (use-fixtures :each redis) (deftest connection-test (is *redis*)) (deftest read-write-test (car/wcar redis (c...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/test/backend/vimsical/backend/adapters/redis_test.clj
clojure
(ns vimsical.backend.adapters.redis-test (:require [clojure.test :refer [deftest is use-fixtures]] [vimsical.backend.adapters.redis.fixture :refer [*redis* redis]] [taoensso.carmine :as car])) (use-fixtures :each redis) (deftest connection-test (is *redis*)) (deftest read-write-test (car/wcar redis (c...
a9271b27957be4a29f28cd1223d673887f29f789ec85f50f9ca9a59a6d38c66c
GillianPlatform/Gillian
parser_state.mli
val procs_with_no_paths : SS.t ref val preds_with_no_paths : SS.t ref val lemmas_with_no_paths : SS.t ref val internal_file : bool ref val reset : unit -> unit
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/1c8d65120c04ef87cda689a9d41268e25b5ffa7e/GillianCore/GIL_Parser/parser_state.mli
ocaml
val procs_with_no_paths : SS.t ref val preds_with_no_paths : SS.t ref val lemmas_with_no_paths : SS.t ref val internal_file : bool ref val reset : unit -> unit
62c46ada16d49696b67b4e02d789573c59a106f2ea1824d87a79e8d5602bb968
mejgun/haskell-tdlib
SearchHashtags.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SearchHashtags where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Searches for recently used hashtags by their prefix @prefix Hashtag prefix to search for @limit The maximum number of hashtags to be ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/SearchHashtags.hs
haskell
# LANGUAGE OverloadedStrings # | | | |
module TD.Query.SearchHashtags where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Searches for recently used hashtags by their prefix @prefix Hashtag prefix to search for @limit The maximum number of hashtags to be returned data SearchHashtags = SearchHashtags...
36fd8c080e15c8d7b052fa945dd09ff6b17a0cfc8baf9d0dc24378d9ad7a8bb3
tolysz/prepare-ghcjs
IPI642.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.GHC.IPI642 Copyright : ( c ) The University of Glasgow 2004 -- License : BSD3 -- -- Maintainer : -- Portability : portable -- module Distribution.Simple.GHC.IPI642 ( InstalledPac...
null
https://raw.githubusercontent.com/tolysz/prepare-ghcjs/8499e14e27854a366e98f89fab0af355056cf055/spec-lts/cabal/Cabal/Distribution/Simple/GHC/IPI642.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.GHC.IPI642 License : BSD3 Maintainer : Portability : portable It's here purely for the 'Read' instance so that we can read the package package db directly, but we do need the info and unti...
Copyright : ( c ) The University of Glasgow 2004 module Distribution.Simple.GHC.IPI642 ( InstalledPackageInfo(..), toCurrent, ) where import qualified Distribution.InstalledPackageInfo as Current import qualified Distribution.Package as Current hiding (installedUnitId) import Distribution.Simple.GHC....
f9ba2a3ff680fa9eb35130337010e4fbc654fd924eda952e7b9a911928d89960
lambdaisland/souk
webfinger.clj
(ns repl-sessions.webfinger (:require [cheshire.core :as json] [clojure.string :as str] [hato.client :as hato] [lambdaisland.uri :as uri])) ;; all of these work "acct:" "/@plexus" "/@plexus" "" "" ;; rel seems to be ignored (defn fetch-webfinger [domain resource] (-> (uri/uri "-known/webfinger") ...
null
https://raw.githubusercontent.com/lambdaisland/souk/bf25b247d989358af9a1a00f294d4de2a9c2d59c/repl_sessions/webfinger.clj
clojure
all of these work rel seems to be ignored
(ns repl-sessions.webfinger (:require [cheshire.core :as json] [clojure.string :as str] [hato.client :as hato] [lambdaisland.uri :as uri])) "acct:" "/@plexus" "/@plexus" "" "" (defn fetch-webfinger [domain resource] (-> (uri/uri "-known/webfinger") (assoc :host domain) (uri/assoc-query :r...
4f1992c21d2b190ac98eac93d247560a80d3b78f99b2f74a29ffc939bfbc71dd
bhauman/advent-of-clojure
day10.clj
(ns advent-2017.day10 (:require [clojure.string :as string] [clojure.core.reducers :as r])) (def data [102,255,99,252,200,24,219,57,103,2,226,254,1,0,69,216]) ;; optimized for speed (defn inplace-reverse [x pos length] (let [idx (mapv #(mod % (count x)) (range pos (+ pos length))) ...
null
https://raw.githubusercontent.com/bhauman/advent-of-clojure/856763baf45bf7bf452ffd304dc1b89f9bc879a6/src/advent-2017/day10.clj
clojure
optimized for speed
(ns advent-2017.day10 (:require [clojure.string :as string] [clojure.core.reducers :as r])) (def data [102,255,99,252,200,24,219,57,103,2,226,254,1,0,69,216]) (defn inplace-reverse [x pos length] (let [idx (mapv #(mod % (count x)) (range pos (+ pos length))) vs (r/reduce #(cons (ge...
3ecf0d0b298b71b7a10f2f459cf67eb5d5d40c41c24bf4786085ce8a33795cde
2049foundation/clickhouse-haskell
Client.hs
Copyright ( c ) 2020 - present , EMQX , Inc. -- All rights reserved. -- This source code is distributed under the terms of a MIT license , -- found in the LICENSE file. # LANGUAGE ApplicativeDo # # LANGUAGE BlockArguments # # LANGUAGE CPP # {-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE FlexibleInstances # {-# LANG...
null
https://raw.githubusercontent.com/2049foundation/clickhouse-haskell/d4777ae43bcd9cbf005b7dad312f8497ac59a156/src/Database/ClickHouseDriver/HTTP/Client.hs
haskell
All rights reserved. found in the LICENSE file. # LANGUAGE DeriveDataTypeable # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # | This module provides implementation of user's API * Setting * Query * Connection Implementation in Haxl | fetch function Connection configuration fetched data | actual function u...
Copyright ( c ) 2020 - present , EMQX , Inc. This source code is distributed under the terms of a MIT license , # LANGUAGE ApplicativeDo # # LANGUAGE BlockArguments # # LANGUAGE CPP # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeFamilies # module ...
21a1a5bd9d308d97a1cad1370fd30bae92a1d8c9fd5f49084e976351e16e2f43
raml-org/api-modeling-framework
jsonld.cljc
(ns api-modeling-framework.generators.syntax.jsonld #?(:cljs (:require [api-modeling-framework.platform :as platform] [api-modeling-framework.model.vocabulary :as v])) #?(:clj (:require [api-modeling-framework.platform :as platform] [api-modeling-framework.model.vocabulary ...
null
https://raw.githubusercontent.com/raml-org/api-modeling-framework/34bb3b6c3e3f91b775e27f8e389e04eb2c36beb7/src/api_modeling_framework/generators/syntax/jsonld.cljc
clojure
(ns api-modeling-framework.generators.syntax.jsonld #?(:cljs (:require [api-modeling-framework.platform :as platform] [api-modeling-framework.model.vocabulary :as v])) #?(:clj (:require [api-modeling-framework.platform :as platform] [api-modeling-framework.model.vocabulary ...
376f09d3aab9ca749afd0c49ab661dbfcd6f9fd7d7176daa40d7d9b1eb31ccad
ghcjs/ghcjs
mc08.hs
-- Tests grouping WITH a by clause # OPTIONS_GHC -XMonadComprehensions -XTransformListComp # module Main where import GHC.Exts(the, groupWith) main = putStrLn (show output) where output = [ (the dept, sum salary, name) | (dept, salary, name) <- [("A", 1, "Bob"), ("B", 2, "Fred"), ("A", 5, "Jim")...
null
https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/deSugar/mc08.hs
haskell
Tests grouping WITH a by clause
# OPTIONS_GHC -XMonadComprehensions -XTransformListComp # module Main where import GHC.Exts(the, groupWith) main = putStrLn (show output) where output = [ (the dept, sum salary, name) | (dept, salary, name) <- [("A", 1, "Bob"), ("B", 2, "Fred"), ("A", 5, "Jim"), ("A", 9, "Jim")] , t...
385ad8417a95b3dff3d115f23eeefc83c792fffea7627d72e4ceae6d825bf222
grin-compiler/ghc-wpc-sample-programs
Parser.hs
| Module : . : for the REPL commands . License : : The Idris Community . Module : Idris.REPL.Parser Description : Parser for the REPL commands. License : BSD3 Maintainer : The Idris Community. -} # LANGUAGE FlexibleContexts # module Idris.REPL.Parser ( parseCmd , help , allH...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/idris-1.3.3/src/Idris/REPL/Parser.hs
haskell
NOTE: dragons | Generate the colour type names using the default Show instance.
| Module : . : for the REPL commands . License : : The Idris Community . Module : Idris.REPL.Parser Description : Parser for the REPL commands. License : BSD3 Maintainer : The Idris Community. -} # LANGUAGE FlexibleContexts # module Idris.REPL.Parser ( parseCmd , help , allH...
2f25265f7da4fa582478eb4ffec9a5eeeb7d0a513b1a8d6fa4cf1f4a7d2480a6
avsm/eeww
ctype.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/4d65720b5dd51376842ffe5c8c220d5329c1dc10/boot/ocaml/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 exception Unify of Errortrace.unification_error ...
ead5ddff814019552356c52d5d03c1149c2563eefc3e60aebd5d5b9e3e37ef3a
acl2/acl2
remove-trivial-vars.lisp
Standard System Library ; Copyright ( C ) 2023 Kestrel Institute ( ) ; License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . ; Author : ( ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package "ACL2") (include-book "std/util/defines" :di...
null
https://raw.githubusercontent.com/acl2/acl2/c2d69bad0ed3132cc19a00cb632de8b73558b1f9/books/kestrel/std/system/remove-trivial-vars.lisp
lisp
for termination
Standard System Library Copyright ( C ) 2023 Kestrel Institute ( ) License : A 3 - clause BSD license . See the LICENSE file distributed with ACL2 . Author : ( ) (in-package "ACL2") (include-book "std/util/defines" :dir :system) (include-book "xdoc/constructors" :dir :system) (define remove-equal-forma...
2dbb667111a9199595f09709c17ba96e039470065d354879ad15cd12a0d3cf6a
shiguredo/eryngii
position.ml
type t = { line : int; col : int; offset : int; } let zero = { line = 0; col = 0; offset = 0 } let of_lexing_pos (pos : Lexing.position) = { line = pos.pos_lnum; col = pos.pos_bol; offset = pos.pos_cnum; } let add pos ~length = { pos with col = pos.col + length; offset = pos.offset +...
null
https://raw.githubusercontent.com/shiguredo/eryngii/6c70d9b28a45ed786c4847ee51bb03bfef35ac8d/position.ml
ocaml
type t = { line : int; col : int; offset : int; } let zero = { line = 0; col = 0; offset = 0 } let of_lexing_pos (pos : Lexing.position) = { line = pos.pos_lnum; col = pos.pos_bol; offset = pos.pos_cnum; } let add pos ~length = { pos with col = pos.col + length; offset = pos.offset +...
05c009bbc964a7356e0c51ea16b53496fc81d1cbb564b16ae8bad6bbe6b442ed
naveensundarg/Common-Lisp-Actors
bouncer.lisp
(defactor Bouncer (name) (other) (send other self) (pr (concatenate 'string name " : " " bouncing")) (sleep 3) next) (setq b1 (Bouncer :name "Bouncer 1")) (setq b2 (Bouncer :name "Bouncer 2")) (send b1 b2)
null
https://raw.githubusercontent.com/naveensundarg/Common-Lisp-Actors/fd08ce1f62d77dc695c590e2e31d3cb46cab55b4/examples/bouncer.lisp
lisp
(defactor Bouncer (name) (other) (send other self) (pr (concatenate 'string name " : " " bouncing")) (sleep 3) next) (setq b1 (Bouncer :name "Bouncer 1")) (setq b2 (Bouncer :name "Bouncer 2")) (send b1 b2)
58267ec9450aba480580ccd0c6830c7d2636bb09e13436146e707ed6264faa48
pflanze/chj-schemelib
oo-lib-u8vector.scm
Copyright 2014 - 2018 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 oo-...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/oo-lib-u8vector.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version.
Copyright 2014 - 2018 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 oo-vector-lib) (include "cj-standarddeclares.scm") (def-oo-vector-lib-for u8vector)
8219db11f54773318fec62576b1b48fe07e49ca0baac0d8cea3ddf4bd9a26299
2600hz/kazoo
kzd_multi_factor_provider.erl
%%%----------------------------------------------------------------------------- ( C ) 2010 - 2020 , 2600Hz %%% @doc 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 obtain one at /. %%% %%% @end %%%--------...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_documents/src/kzd_multi_factor_provider.erl
erlang
----------------------------------------------------------------------------- @doc @end -----------------------------------------------------------------------------
( C ) 2010 - 2020 , 2600Hz 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 obtain one at /. -module(kzd_multi_factor_provider). -export([new/0]). -export([enabled/1, enabled/2, set_enabled/2]). -export([na...
17eeb40bd0aa7d583a4afbc1319b880080d31fa256896ec9db8c089b8dd6f706
wireapp/wire-server
PrekeyBundle_user.hs
# LANGUAGE OverloadedLists # -- This file is part of the Wire Server implementation. -- Copyright ( C ) 2022 Wire Swiss GmbH < > -- -- This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , e...
null
https://raw.githubusercontent.com/wireapp/wire-server/c428355b7683b7b7722ea544eba314fc843ad8fa/libs/wire-api/test/golden/Test/Wire/API/Golden/Generated/PrekeyBundle_user.hs
haskell
This file is part of the Wire Server implementation. This program is free software: you can redistribute it and/or modify it under 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 PARTI...
# LANGUAGE OverloadedLists # Copyright ( C ) 2022 Wire Swiss GmbH < > the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any You should have received a copy of the GNU Affero General Public License along mo...
fdc10e4d859a19a8ca3ccc80fd38439fb40ce88d2b088a0960763c512dfffe6f
sheyll/mediabus
ReorderSpec.hs
module Data.MediaBus.Conduit.ReorderSpec ( spec, ) where import Conduit import Control.Monad import Data.Conduit.List import Data.MediaBus import Data.Proxy import Data.Word import Debug.Trace import Test.Hspec import Test.QuickCheck spec :: Spec spec = describe "reorderFramesBySeqNumC" $ do let runC inputs...
null
https://raw.githubusercontent.com/sheyll/mediabus/7a2fd3f4a4b9ab281a3f54b5c9bf43c98eb38fb9/specs/Data/MediaBus/Conduit/ReorderSpec.hs
haskell
module Data.MediaBus.Conduit.ReorderSpec ( spec, ) where import Conduit import Control.Monad import Data.Conduit.List import Data.MediaBus import Data.Proxy import Data.Word import Debug.Trace import Test.Hspec import Test.QuickCheck spec :: Spec spec = describe "reorderFramesBySeqNumC" $ do let runC inputs...
cee03a1a99441418d2bee25ef1a14a6ab2c7bc7a258002b5d830806098d734d3
phronmophobic/jna-native-image
build.clj
(ns build (:require [clojure.tools.build.api :as b] [clojure.string :as str])) (def lib 'com.phronemophobic.native-image/jna) (def version "0.1.0") (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) version)) (def uber-f...
null
https://raw.githubusercontent.com/phronmophobic/jna-native-image/77a714494716933928d4fa581f9ed93ab3d32587/build.clj
clojure
(ns build (:require [clojure.tools.build.api :as b] [clojure.string :as str])) (def lib 'com.phronemophobic.native-image/jna) (def version "0.1.0") (def class-dir "target/classes") (def basis (b/create-basis {:project "deps.edn"})) (def jar-file (format "target/%s-%s.jar" (name lib) version)) (def uber-f...
f12c14f00c1b3edb622d50f1c7ed9896c38814f7a773bc138defc2b132c51826
gsakkas/rite
20060319-13:25:22-d82ce217b923933f541e5e4c291912ff.seminal.ml
type heap = (string * int) list type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt | Saveheap of heap | Restoreheap ...
null
https://raw.githubusercontent.com/gsakkas/rite/958a0ad2460e15734447bc07bd181f5d35956d3b/features/data/seminal/20060319-13%3A25%3A22-d82ce217b923933f541e5e4c291912ff.seminal.ml
ocaml
******************* Test Program in IMP *************************
type heap = (string * int) list type exp = Int of int | Var of string | Plus of exp * exp | Times of exp * exp type stmt = Skip | Assign of string * exp | Seq of stmt * stmt | If of exp * stmt * stmt | While of exp * stmt | Saveheap of heap | Restoreheap ...
a97dd583c9b0ed80fe77bc42c3d16475861aaa4e7184790a12b6f606a7141f3c
haskell/cabal
Package.hs
# LANGUAGE DeriveFunctor # module Distribution.Solver.Modular.Package ( I(..) , Loc(..) , PackageId , PackageIdentifier(..) , PackageName, mkPackageName, unPackageName , PkgconfigName, mkPkgconfigName, unPkgconfigName , PI(..) , PN , QPV , instI , makeIndependent , primaryPP , setupPP , show...
null
https://raw.githubusercontent.com/haskell/cabal/6896c6aa0e4804913aaba0bbbe00649e18f17bb8/cabal-install-solver/src/Distribution/Solver/Modular/Package.hs
haskell
| A package name. | Unpacking a package name. | Package version. A package name plus a version number. | Qualified package version. | Package id. Currently just a black-box string. | Location. Info about whether a package is installed or not, and where exactly it is located. For installed packages, uniquely iden...
# LANGUAGE DeriveFunctor # module Distribution.Solver.Modular.Package ( I(..) , Loc(..) , PackageId , PackageIdentifier(..) , PackageName, mkPackageName, unPackageName , PkgconfigName, mkPkgconfigName, unPkgconfigName , PI(..) , PN , QPV , instI , makeIndependent , primaryPP , setupPP , show...
eca6ab950a2b2377e1acae38e470d12e0a88b42cb7eb476d2a4e66b8e1d8600d
namenu/advent-of-code
day03.clj
;; --- Day 3: Spiral Memory --- (ns aoc.year2017.day03 (:require [aoc.util :refer [find-first manhattan-dist]])) scales = 1 1 2 2 3 3 4 4 (def scales (let [nat (drop 1 (range))] (interleave nat nat))) ;; dirs = R U L D R U L D ... (def dirs (cycle [[1 0] [0 -1] [-1 0] [0 1]])) (defn spiral [] (let [mo...
null
https://raw.githubusercontent.com/namenu/advent-of-code/83f8cf05931f814dab76696bf46fec1bb1276fac/2017/clojure/src/aoc/year2017/day03.clj
clojure
--- Day 3: Spiral Memory --- dirs = R U L D R U L D ...
(ns aoc.year2017.day03 (:require [aoc.util :refer [find-first manhattan-dist]])) scales = 1 1 2 2 3 3 4 4 (def scales (let [nat (drop 1 (range))] (interleave nat nat))) (def dirs (cycle [[1 0] [0 -1] [-1 0] [0 1]])) (defn spiral [] (let [moves (mapcat repeat scales dirs)] (reductions #(mapv + %1 %...
5bc6efa0454837520535585fdac4b60fe335347aa60c049889ed10cf0004d2b5
nuprl/gradual-typing-performance
data-lattice.rkt
#lang racket/base ;; Provides functions for drawing lattices that show the perf data ;; for each configuration (require racket/contract racket/format racket/list data/bit-vector (except-in math/number-theory permutations) pict unstable/gui/pict) (provide (contrac...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/benchmarks/data-lattice.rkt
racket
Provides functions for drawing lattices that show the perf data for each configuration constructs a pict for a point in the lattice, using the initial configuration to normalize (for coloring) adds lines between elements in levels
#lang racket/base (require racket/contract racket/format racket/list data/bit-vector (except-in math/number-theory permutations) pict unstable/gui/pict) (provide (contract-out [make-performance-lattice (-> (and/c (vectorof (cons/c number? num...
6f3b5873c184fa242e63e9b68de8899a4294c665e1fde09fbf5ddd90cab46a1b
runexec/chp
login.clj
(ns chp.login (:require [korma.db :as kdb] [korma.core :as kc]) (:use [chp.db :only [*db*]] [chp.password :only [password]])) (kdb/defdb korma-db *db*) (defn login? [user secret & {:keys [username-column password-column] ...
null
https://raw.githubusercontent.com/runexec/chp/9059399c46fb4106a73631c741f1e557af541a8b/src/chp/login.clj
clojure
(ns chp.login (:require [korma.db :as kdb] [korma.core :as kc]) (:use [chp.db :only [*db*]] [chp.password :only [password]])) (kdb/defdb korma-db *db*) (defn login? [user secret & {:keys [username-column password-column] ...
7000f6a6939a0a20efe86f5d7acd46e19161c2c9847b074054c3ca8faf08701e
ucsd-progsys/liquidhaskell
UnboundVarInLocSig.hs
{-@ LIQUID "--expect-error-containing=Illegal type specification for `bar`" @-} module UnboundVarInLocSig where {-@ foo :: x:_ -> y:_ -> {v:Int | v = x + y} @-} foo :: Int -> Int -> Int foo arg0 = bar where {-@ bar :: x:_ -> {v:Int | v = x + barg0} @-} bar arg1 = arg0 + arg1
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/errors/UnboundVarInLocSig.hs
haskell
@ LIQUID "--expect-error-containing=Illegal type specification for `bar`" @ @ foo :: x:_ -> y:_ -> {v:Int | v = x + y} @ @ bar :: x:_ -> {v:Int | v = x + barg0} @
module UnboundVarInLocSig where foo :: Int -> Int -> Int foo arg0 = bar where bar arg1 = arg0 + arg1
7dee47d7cd236c19a037ff398bb1b454a9d736b68df3025e12e1d633143a1e5a
shentufoundation/deepsea
parser.mli
(* The type of tokens. *) type token = | XOR | WITH | UNEQUAL | UINT of (string) | TYPE | TRUSTED | TRANSFERETH | TO | THEN | STRING of (string) | STAR | SLASH | SIGNATURE | SHR | SHL | SEMICOLON | RPAREN | REFINED | RBRACKET | RBRACE | PLUS | OBJECT | MOD | MINUS | ...
null
https://raw.githubusercontent.com/shentufoundation/deepsea/60386608f23e5e316196ac73db417007783240d8/src/Edsger/parser.mli
ocaml
The type of tokens. This exception is raised by the monolithic API functions. The monolithic API.
type token = | XOR | WITH | UNEQUAL | UINT of (string) | TYPE | TRUSTED | TRANSFERETH | TO | THEN | STRING of (string) | STAR | SLASH | SIGNATURE | SHR | SHL | SEMICOLON | RPAREN | REFINED | RBRACKET | RBRACE | PLUS | OBJECT | MOD | MINUS | MATCH | MAPPING | LPAR...
f3690efcc1b9dd01275e00372f4ffac2662e6cfb800fb6db53e3e6644c2b7e68
axelarge/advent-of-code
day10.clj
(ns advent-of-code.y2017.day10 (:require [advent-of-code.support :refer :all] [clojure.string :as str])) (def input "227,169,3,166,246,201,0,47,1,255,2,254,96,3,97,144") (defn parse1 [steps] (find-ints steps)) (defn parse2 [steps] (-> (map int steps) (concat [17 31 73 47 23]) vec)) (de...
null
https://raw.githubusercontent.com/axelarge/advent-of-code/4c62a53ef71605780a22cf8219029453d8e1b977/src/advent_of_code/y2017/day10.clj
clojure
(ns advent-of-code.y2017.day10 (:require [advent-of-code.support :refer :all] [clojure.string :as str])) (def input "227,169,3,166,246,201,0,47,1,255,2,254,96,3,97,144") (defn parse1 [steps] (find-ints steps)) (defn parse2 [steps] (-> (map int steps) (concat [17 31 73 47 23]) vec)) (de...
df3f9fa2bad3b8dcb81d4a2879c22a88d84518212e62ceb35d727bcc14acb4d5
stonebuddha/eopl
core.ml
open Syntax type refer = int and store = expval list and environment = refer list and expval = | NumVal of int | BoolVal of bool | ProcVal of proc and proc = expression * environment ref let string_of_expval eval = match eval with | NumVal num -> string_of_int num | BoolVal bool -> string_of_bool bool...
null
https://raw.githubusercontent.com/stonebuddha/eopl/88ea636110421706f900e753c30240ff1ea26f67/CALL-BY-NEED/core.ml
ocaml
open Syntax type refer = int and store = expval list and environment = refer list and expval = | NumVal of int | BoolVal of bool | ProcVal of proc and proc = expression * environment ref let string_of_expval eval = match eval with | NumVal num -> string_of_int num | BoolVal bool -> string_of_bool bool...
c8a69962acdc5ab7ac8750bde8bb8de4842e4ef9c34e18aade32a06af012cc25
haskell-repa/repa
Append.hs
module Data.Array.Repa.Chain.Append (appendSegs) where import Data.Array.Repa.Chain.Base import GHC.Exts -- | Segmented append. appendSegs :: forall a . (Int# -> Int#) -- ^ Get segment lengths for 'xs' array. -> (Int# -> Int#) -- ^ Get segment indices for 'xs' array. ^ Get dat...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/icebox/abandoned/repa-stream/Data/Array/Repa/Chain/Append.hs
haskell
| Segmented append. ^ Get segment lengths for 'xs' array. ^ Get segment indices for 'xs' array. ^ Get segment lengths for 'ys' array. ^ Get segment indices for 'ys' array. ^ Get data from the 'ys' array. ^ How many result elements to produce in total. ^ Starting segment id. ^ Starting element index within the ...
module Data.Array.Repa.Chain.Append (appendSegs) where import Data.Array.Repa.Chain.Base import GHC.Exts appendSegs :: forall a ^ Get data from the ' xs ' array . -> Chain a appendSegs segLenX segIdxX elemX segLenY segIdxY elemY n seg_off el_off = Chain n state n...
fe29f24ba6b184bc5b95b27ec6b73320963864fdb7f2ad447197e9598d559fac
herbelin/coq-hh
entries.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/herbelin/coq-hh/296d03d5049fea661e8bdbaf305ed4bf6d2001d2/kernel/entries.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i i This module defines the entry t...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Names open Univ open Ter...
9b5ec00beff9aea813931f00691d53748f2dfb3a6ac1dbc485d55135e0498343
diku-dk/futhark
IR.hs
| A convenient re - export of basic AST modules . module Futhark.IR ( module Futhark.IR.Prop, module Futhark.IR.Traversals, module Futhark.IR.Pretty, module Futhark.IR.Syntax, ) where import Futhark.IR.Pretty import Futhark.IR.Prop import Futhark.IR.Syntax import Futhark.IR.Traversals
null
https://raw.githubusercontent.com/diku-dk/futhark/7c8494f809dbb1e41775471e88270068d8632407/src/Futhark/IR.hs
haskell
| A convenient re - export of basic AST modules . module Futhark.IR ( module Futhark.IR.Prop, module Futhark.IR.Traversals, module Futhark.IR.Pretty, module Futhark.IR.Syntax, ) where import Futhark.IR.Pretty import Futhark.IR.Prop import Futhark.IR.Syntax import Futhark.IR.Traversals
bcb67758c25026990c568758cf7f10a24c17f9f8c0682ea6c95f5b5ee41cd953
kumarshantanu/espejito
core.cljc
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 LICENSE at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; the ...
null
https://raw.githubusercontent.com/kumarshantanu/espejito/40513bd7cfac8112dfe182ab616e03c93f668f7a/src/espejito/core.cljc
clojure
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 LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this ...
Copyright ( c ) . All rights reserved . (ns espejito.core #?(:cljs (:require-macros espejito.core)) (:require #?(:cljs [goog.string :as gstring]) #?(:cljs [goog.string.format]) #?(:cljs [cljs.pprint :include-macros true :as pp] :clj [clojure.pprint :as pp]) [espejito.internal :as i])) ...
1287ec7c8e2a1c31049faa7960f46d1c0ede2c931668257fbeebf832e26f6a84
overtone/overtone
tuning.clj
(ns ^{:doc "Functions that define tuning systems from various musical traditions and theories." :author "Jeff Rose"} overtone.music.tuning (:use [overtone.music pitch])) ;; TODO: Not only should we pre-compute the frequency values for standard tunings, ;; but it would be cool to let people explore different...
null
https://raw.githubusercontent.com/overtone/overtone/02f8cdd2817bf810ff390b6f91d3e84d61afcc85/src/overtone/music/tuning.clj
clojure
TODO: Not only should we pre-compute the frequency values for standard tunings, but it would be cool to let people explore different tunings while creating new synth instruments. So, if they have a base frequency chosen we should be able to generate tunings, scales, and arpeggios to let them hear their Equal Temp...
(ns ^{:doc "Functions that define tuning systems from various musical traditions and theories." :author "Jeff Rose"} overtone.music.tuning (:use [overtone.music pitch])) instrument in " western mode " , " arabic mode " , " indian mode " , " chinese mode " , etc . Diatonic Just -- > Indian music on...
639ab4b44abe833eaf5f7ca6f66ce89ac9ee097ba7410558531ee50446a90db1
rollacaster/sketches
reverse_roots.cljs
(ns sketches.rac-sketches.reverse-roots (:require [quil.core :as q :include-macros true] [quil.middleware :as md] [sketches.vector :as v] [sketches.mover :as m])) (defn create-particle [] {:acceleration [0 0] :velocity [0 0] :location [(/ (q/width) 2) (q/height)] :lifes...
null
https://raw.githubusercontent.com/rollacaster/sketches/ba79fccf2a37139de9193ed2ea7a6cc04b63fad0/src/sketches/rac_sketches/reverse_roots.cljs
clojure
(ns sketches.rac-sketches.reverse-roots (:require [quil.core :as q :include-macros true] [quil.middleware :as md] [sketches.vector :as v] [sketches.mover :as m])) (defn create-particle [] {:acceleration [0 0] :velocity [0 0] :location [(/ (q/width) 2) (q/height)] :lifes...
f37db8eb95a33da2c0450ac088fc7d3da53851326b20ec217653959a13894472
TrustInSoft/tis-interpreter
binary_cache.mli
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/libraries/utils/binary_cache.mli
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
1ae19dec2a3205d1a4288227bed89818f4e8d8abfc7aa69a0c6c0e2fec494faa
nvim-treesitter/nvim-treesitter
indents.scm
; inherits: css [ (mixin_statement) (while_statement) (each_statement) ] @indent
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/ddc0f1b606472b6a1ab85ee9becfd4877507627d/queries/scss/indents.scm
scheme
inherits: css
[ (mixin_statement) (while_statement) (each_statement) ] @indent
219d32bb8bbdd47a468f925ed96a91d6be400d8e0d9c9282d4cac9ef31d0d633
wertercatt/mrifk
Mrifk_grammar.hs
Mrifk , a decompiler for Glulx story files . Copyright 2004 . 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 late...
null
https://raw.githubusercontent.com/wertercatt/mrifk/48687e5b6881cf41d4828cca2ec5dec1c5f4cad3/Mrifk_grammar.hs
haskell
words after verb action reverse --------- ------------- Dictionary 0x60, already checked sfFullDictWord
Mrifk , a decompiler for Glulx story files . Copyright 2004 . 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 late...
46ab7d0dfe2d2f5105d6ae8c85adb5e0040aaa7be3b6bb617ac5db1a562d23d0
DOBRO/uef-lib
uef_num_tests.erl
Copyright ( c ) 2019 - 2022 , < > . 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 applicable law or agreed to in w...
null
https://raw.githubusercontent.com/DOBRO/uef-lib/765d28837584bcfced1aae5d5f831972ec0254bb/test/uef_num_tests.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 governing permi...
Copyright ( c ) 2019 - 2022 , < > . 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(uef_num_tests). -include_lib("eunit/include/eunit.hrl"). round_number_test_() -> [ ?_assertEqu...
6d0848725bc8d1ca3b0ffaa570fb5fef9e074eb89b66e37428ac8e3250e3b408
shirok/Gauche
219.scm
;; ;; SRFI-219 - Define higher-order lambda ;; The feature is natively supported in Gauche . This is for the portable code . NB : SRFI-219 exports null#define , for the portable code using SRFI-219 ;; most likely expects it. (define-module srfi.219 (define-syntax vanilla-define (with-module null define)) (ex...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/lib/srfi/219.scm
scheme
SRFI-219 - Define higher-order lambda most likely expects it.
The feature is natively supported in Gauche . This is for the portable code . NB : SRFI-219 exports null#define , for the portable code using SRFI-219 (define-module srfi.219 (define-syntax vanilla-define (with-module null define)) (export (rename vanilla-define define)))
c252b88e6581b08436f9127043901aadfecf903f6b8e40443b149c34fb0f25f5
dsheets/gloc
glol_js.ml
open Js open Json open Dom_html open Glo_lib external reg : string -> ('a -> 'b) -> unit = "register_ocaml_fn" let addr_of_js j = match (Optdef.to_option (array_get j 0), Optdef.to_option (array_get j 1)) with | (Some s, Some i) -> (to_string s, int_of_float (float...
null
https://raw.githubusercontent.com/dsheets/gloc/d5917c072ec314ae93a61344da2407f520fac1b5/src/glol_js.ml
ocaml
open Js open Json open Dom_html open Glo_lib external reg : string -> ('a -> 'b) -> unit = "register_ocaml_fn" let addr_of_js j = match (Optdef.to_option (array_get j 0), Optdef.to_option (array_get j 1)) with | (Some s, Some i) -> (to_string s, int_of_float (float...
6acc6363f4f6bb47c7b4f5808dee4719ed54fff708785e21ace13d0937ebabf0
funcool/suricatta
dsl_test.clj
(ns suricatta.dsl-test (:require [clojure.test :refer :all] [suricatta.core :as sc] [suricatta.dsl.alpha :as dsl])) (deftest select-statement-1 (let [qq (-> (dsl/select) (dsl/from "posts" "p") (dsl/join "authors" "a" "p.author_id = a.id") (dsl/fi...
null
https://raw.githubusercontent.com/funcool/suricatta/58e5d2080815aee19ee0893f8ed1b04043525c81/test/suricatta/dsl_test.clj
clojure
(ns suricatta.dsl-test (:require [clojure.test :refer :all] [suricatta.core :as sc] [suricatta.dsl.alpha :as dsl])) (deftest select-statement-1 (let [qq (-> (dsl/select) (dsl/from "posts" "p") (dsl/join "authors" "a" "p.author_id = a.id") (dsl/fi...
d09ad4dfafea6f194c97e82d21198fa745c88635df55d41198995153dfaabade
scrive/consumers
Utils.hs
module Database.PostgreSQL.Consumers.Utils ( finalize , ThrownFrom(..) , stopExecution , forkP , gforkP ) where import Control.Concurrent.Lifted import Control.Monad.Base import Control.Monad.Catch import Control.Monad.Trans.Control import Data.Typeable import Prelude import qualified Control.Concurrent....
null
https://raw.githubusercontent.com/scrive/consumers/77d4ec2ad45eb8a46a8399b8630597fb4b03db97/src/Database/PostgreSQL/Consumers/Utils.hs
haskell
| Run an action 'm' that returns a finalizer and perform the returned finalizer after the action 'action' completes. -------------------------------------- | Exception thrown to a thread to stop its execution. threads spawned by 'forkP' and 'gforkP' are propagated back to the parent thread. | Exception thrown fro...
module Database.PostgreSQL.Consumers.Utils ( finalize , ThrownFrom(..) , stopExecution , forkP , gforkP ) where import Control.Concurrent.Lifted import Control.Monad.Base import Control.Monad.Catch import Control.Monad.Trans.Control import Data.Typeable import Prelude import qualified Control.Concurrent....
70f61dd60acd6a3e81aa30eec80bf4e8eddd9d89423e50e90f9014b2ff850e52
TrustInSoft/tis-interpreter
mergecil.mli
Modified by TrustInSoft (****************************************************************************) (* *) Copyright ( C ) 2001 - 2003 < > (* Scott M...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_internals/typing/mergecil.mli
ocaml
************************************************************************** Scott McPeak <> All rights reserved. ...
Modified by TrustInSoft Copyright ( C ) 2001 - 2003 < > < > < > 1 . Redistributions of source code must retain the above copyright ...
181aac4edaa748a427f7e19202ef03c34ebe9f2faf82fa56e94dd576db6a4f00
AshleyYakeley/Truth
Unifier.hs
module Test.Unifier ( testUnifier ) where import Data.Shim import Debug.Trace.Null import Language.Expression.Common import Language.Expression.Dolan.Test import Pinafore import Pinafore.Language.API import Pinafore.Test import Shapes import Test.RunScript type PinaforeBisubstitution = Bisubstitution QGroundT...
null
https://raw.githubusercontent.com/AshleyYakeley/Truth/4440fb14943e8a6ff02e760261918b1c9c535e3f/Pinafore/pinafore-language/test/Test/Unifier.hs
haskell
module Test.Unifier ( testUnifier ) where import Data.Shim import Debug.Trace.Null import Language.Expression.Common import Language.Expression.Dolan.Test import Pinafore import Pinafore.Language.API import Pinafore.Test import Shapes import Test.RunScript type PinaforeBisubstitution = Bisubstitution QGroundT...
2ffd5d7e99ec7b01ad0b2ef694d0042fb4cdf1ab544e6f0710dbe4848b192388
ghc/packages-Cabal
Q.hs
module Q where import P
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-testsuite/PackageTests/NewBuild/T4405/q/Q.hs
haskell
module Q where import P
230fadc7742c942306aee6cfcbbfdcd9c7d967e86ee1e45c1f2e1edcfd18557d
WormBase/wormbase_rest
current_genes.clj
(ns rest-api.classes.gene-class.widgets.current-genes (:require [clojure.string :as str] [rest-api.classes.generic-fields :as generic] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn current-genes [g] {:data (some->> (:gene/_gene-class g) (map (fn [o] ...
null
https://raw.githubusercontent.com/WormBase/wormbase_rest/e51026f35b87d96260b62ddb5458a81ee911bf3a/src/rest_api/classes/gene_class/widgets/current_genes.clj
clojure
(ns rest-api.classes.gene-class.widgets.current-genes (:require [clojure.string :as str] [rest-api.classes.generic-fields :as generic] [rest-api.formatters.object :as obj :refer [pack-obj]])) (defn current-genes [g] {:data (some->> (:gene/_gene-class g) (map (fn [o] ...
e86f8db50677b2dd181dc6525ce0deecac6aea846e519e46ffde464f95bf553e
openlilylib/lilypond-export
api.scm
; -*- master: export-example.ly; ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ;% % ;% This file is part of openLilyLib, % ;% =========== ...
null
https://raw.githubusercontent.com/openlilylib/lilypond-export/c1b5ec0e5140d9cb8c3e7f43ade7b3cde1620dd4/api.scm
scheme
-*- master: export-example.ly; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % This file is part of openLilyLib, % % =========== ...
% the community library project for GNU LilyPond % % ( ) % % export foreign file formats with % it under the terms of the GNU General Public License as published by % % the Free Software Foundation , either version 3 of the License , ...