_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
2ada8b57a391c4ecca047a7937123d7debdaf99da33fb8b224efa4ed20aaa693
hsyl20/haskus-system
Disassembler.hs
# LANGUAGE LambdaCase # -- | X86 disassembler module Haskus.Arch.X86_64.Disassembler ( Disass (..) , linearDisass , findBlocks ) where import Haskus.Format.Binary.Get as G import Haskus.Format.Binary.Buffer import Haskus.Arch.X86_64.ISA.Insn import Haskus.Arch.X86_64.ISA.Mode import Haskus.Arch.X86_64....
null
https://raw.githubusercontent.com/hsyl20/haskus-system/2f389c6ecae5b0180b464ddef51e36f6e567d690/haskus-system/src/lib/Haskus/Arch/X86_64/Disassembler.hs
haskell
| X86 disassembler | Disassemble a whole buffer linearly | Find basic blocks by looking at branching/calls Warning: we don't look at branch targets!
# LANGUAGE LambdaCase # module Haskus.Arch.X86_64.Disassembler ( Disass (..) , linearDisass , findBlocks ) where import Haskus.Format.Binary.Get as G import Haskus.Format.Binary.Buffer import Haskus.Arch.X86_64.ISA.Insn import Haskus.Arch.X86_64.ISA.Mode import Haskus.Arch.X86_64.ISA.Decoder import Has...
0ed117e3ea966b00486cb62a40f1376b2e1a885cfa6da78eb61c995e1ec47190
schlepfilter/frp
document.cljs
(ns frp.test.document (:require [clojure.test.check] [clojure.test.check.clojure-test :as clojure-test :include-macros true] [frp.core :as frp] [frp.document :as document] [frp.test.helpers :as helpers :include-macros true])) (clojure-test/def...
null
https://raw.githubusercontent.com/schlepfilter/frp/4a889f0aefd3aa17371fe1f0cdfabdad01fece8f/test/frp/test/document.cljs
clojure
(ns frp.test.document (:require [clojure.test.check] [clojure.test.check.clojure-test :as clojure-test :include-macros true] [frp.core :as frp] [frp.document :as document] [frp.test.helpers :as helpers :include-macros true])) (clojure-test/def...
0288029c0e5faef5cbf4afcb114cc8c000bc0b87339217cc955112367a56eae3
4clojure/4clojure
ring_utils.clj
(ns foreclojure.ring-utils (:require [foreclojure.config :as config])) (def ^{:dynamic true} *url* nil) ; url of current request (def ^{:dynamic true} *host* nil) ; Host header sent by client (def ^{:dynamic true} *http-scheme* nil) ; keyword, :http or :https (defn get-host [request] (get-in reques...
null
https://raw.githubusercontent.com/4clojure/4clojure/25dec057d9d6871ce52aee9e2c3de7efdab14373/src/foreclojure/ring_utils.clj
clojure
url of current request Host header sent by client keyword, :http or :https
(ns foreclojure.ring-utils (:require [foreclojure.config :as config])) (defn get-host [request] (get-in request [:headers "host"])) (defn wrap-request-bindings [handler] (fn [req] (binding [*url* (:uri req) *host* (or (get-host req) config/canonical-host) *http-scheme* (:scheme ...
e8a642d43b7733cbf4af8ccc3c9176904cbf70ed14483a35e9b977d5612cbb9e
codinuum/cca
test.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
null
https://raw.githubusercontent.com/codinuum/cca/88ea07f3fe3671b78518769d804fdebabcd28e90/src/otreediff/src/test.ml
ocaml
test.ml
Copyright 2012 - 2020 Codinuum Software Lab < > 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 wri...
bc50cc29cf04a2d7064e53520c8de979f42dcba38aa581750e2849a80506bde0
kafka4beam/wolff
wolff_producers.erl
Copyright ( c ) 2018 EMQ Technologies Co. , Ltd. 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 agr...
null
https://raw.githubusercontent.com/kafka4beam/wolff/cd20a37e658f4ae3d1468ca20e7d302822ee85dd/src/wolff_producers.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 perm...
Copyright ( c ) 2018 EMQ Technologies Co. , Ltd. 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(wolff_producers). -export([start_link/3]). -export([start_linked_producers/3, stop_linked/1])....
b2b2cdba687053a1e512a5267bbfcbba288e5d941932d1f9f15d699c2682f462
rudymatela/express
Basic.hs
-- | -- Module : Data.Express.Basic Copyright : ( c ) 2019 - 2021 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > -- Defines the ' ' type and _ basic _ utilities involving it , including : -- * re - export of " Data . Express . Core " * re - export of " Data . Expre...
null
https://raw.githubusercontent.com/rudymatela/express/24193a8ea5e238404808a8ef196b0973d0383c21/src/Data/Express/Basic.hs
haskell
| Module : Data.Express.Basic * Module re-exports
Copyright : ( c ) 2019 - 2021 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > Defines the ' ' type and _ basic _ utilities involving it , including : * re - export of " Data . Express . Core " * re - export of " Data . Express . Map " * re - export of " Data . Express ...
53e964a11b0d9799d955240c9ae3166808cdafa963b8995ee3ae199a15a0ab36
christian-marie/oauth2-server
Server.hs
-- Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others -- -- The code in this file, and the program it is a part of, is -- made available to you by its authors as open source software: -- you can redistribute it and/or modify it under the terms of the 3 - clause BSD licence . -- # LANGUAGE RecordWildCards ...
null
https://raw.githubusercontent.com/christian-marie/oauth2-server/ebb75be9d05dd52d478a6e069d32461d4e54544e/lib/Network/OAuth2/Server.hs
haskell
The code in this file, and the program it is a part of, is made available to you by its authors as open source software: you can redistribute it and/or modify it under the terms of | Description: Start an OAuth2 server. This module includes the top level interface to run OAuth2 servers. For now, we hard-cod...
Copyright © 2013 - 2015 Anchor Systems , Pty Ltd and Others the 3 - clause BSD licence . # LANGUAGE RecordWildCards # module Network.OAuth2.Server ( startServer, module Network.OAuth2.Server.App, module Network.OAuth2.Server.Configuration, module Network.OAuth2.Server.Statistics, ) where import ...
57867d97b9824f6a3fdefddf116ee15a4fe9a534a6c21dc1913ff000f763da9d
smallhadroncollider/taskell
Detail.hs
# LANGUAGE OverloadedLists # module Taskell.Events.Actions.Modal.Detail ( event , events ) where import ClassyPrelude import Graphics.Vty.Input.Events import Taskell.Events.Actions.Types as A (ActionType(..)) import Taskell.Events.State (clearDate, normalMode, quit, store, undo, write) import Taskell.Eve...
null
https://raw.githubusercontent.com/smallhadroncollider/taskell/5e5d7d3454daef4373607e6f02f599fc39045b11/src/Taskell/Events/Actions/Modal/Detail.hs
haskell
general
# LANGUAGE OverloadedLists # module Taskell.Events.Actions.Modal.Detail ( event , events ) where import ClassyPrelude import Graphics.Vty.Input.Events import Taskell.Events.Actions.Types as A (ActionType(..)) import Taskell.Events.State (clearDate, normalMode, quit, store, undo, write) import Taskell.Eve...
4b90398622e66727dc4406b3b352af839726d9cf677d53dccb2bc1bba659fc6a
uim/uim
light-record.scm
;;; light-record.scm: Lightweight record types ;;; Copyright ( c ) 2007 - 2013 uim Project ;;; ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; 1 . Redistributions of source co...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/light-record.scm
scheme
light-record.scm: Lightweight record types All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of conditions an...
Copyright ( c ) 2007 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
57a78e5f3f52ca30b11a141ffd082294bbf8f3493347d085e6c2c16998786188
microsoft/SLAyer
NSSortedList.mli
Copyright ( c ) Microsoft Corporation . All rights reserved . (** Operations on sorted ['a list]. *) module SortedList : sig val is_sorted : ('a->'a->int)-> 'a list -> bool val check_sorted : ('a->'a->int)-> 'a list -> 'a list * Construct a SortedList from an unsorted list . val sort : ('a->'a->int)-> 'a l...
null
https://raw.githubusercontent.com/microsoft/SLAyer/6f46f6999c18f415bc368b43b5ba3eb54f0b1c04/src/Library/NSSortedList.mli
ocaml
* Operations on sorted ['a list]. * Adds an element into a sorted list, if it is not already a member.
Copyright ( c ) Microsoft Corporation . All rights reserved . module SortedList : sig val is_sorted : ('a->'a->int)-> 'a list -> bool val check_sorted : ('a->'a->int)-> 'a list -> 'a list * Construct a SortedList from an unsorted list . val sort : ('a->'a->int)-> 'a list -> 'a list val add : ('a->'a->in...
031ab86034f9b9337bd8fe950789bfcc0bcb7da3d539c205747a44965ce28c80
marmelab/ocaml-invader
spaceship.ml
type spaceship = { mutable x: float; mutable y: float; } let collisionBounds invader = ( invader.x -. 30., invader.y -. 5., invader.x +. 30., invader.y +. 5. ) let renderAt ~x ~y = GlMat.load_identity (); GlMat.translate3(x, y, 0.); GlDraw.color(0.51, 1., 0.); GlDraw.begins `qu...
null
https://raw.githubusercontent.com/marmelab/ocaml-invader/037280642cdd1b7800df4b9199aa0cdb802efe1c/src/spaceship.ml
ocaml
type spaceship = { mutable x: float; mutable y: float; } let collisionBounds invader = ( invader.x -. 30., invader.y -. 5., invader.x +. 30., invader.y +. 5. ) let renderAt ~x ~y = GlMat.load_identity (); GlMat.translate3(x, y, 0.); GlDraw.color(0.51, 1., 0.); GlDraw.begins `qu...
0da71d26384e29f3b18d9049082ee87db35d7c1a2a6317868a5a953294ba9406
ahrefs/atd
ob_mapping.ml
open Atd.Import open Atd.Ast open Mapping type ob_mapping = (Ocaml.Repr.t, Biniou.biniou_repr) Mapping.mapping (* Translation of the types into the ocaml/biniou mapping. *) let rec mapping_of_expr (x : type_expr) : ob_mapping = match x with Sum (loc, l, an) -> let ocaml_t = Ocaml.Repr.Sum (Ocaml.get_...
null
https://raw.githubusercontent.com/ahrefs/atd/9a3cb984a695563c04b41cdd7a1ce9454eb40e1c/atdgen/src/ob_mapping.ml
ocaml
Translation of the types into the ocaml/biniou mapping.
open Atd.Import open Atd.Ast open Mapping type ob_mapping = (Ocaml.Repr.t, Biniou.biniou_repr) Mapping.mapping let rec mapping_of_expr (x : type_expr) : ob_mapping = match x with Sum (loc, l, an) -> let ocaml_t = Ocaml.Repr.Sum (Ocaml.get_ocaml_sum Biniou an) in let biniou_t = Biniou.Sum in ...
1a8dc65338a5580801aa8764d27bbfb1c50c65ae2ef10d8c58ab61df4f8cfc19
mirage/ocaml-matrix
device_lists.ml
open Json_encoding type t = {changed: string list option; left: string list option} [@@deriving accessor] let encoding = let to_tuple t = t.changed, t.left in let of_tuple v = let changed, left = v in {changed; left} in let with_tuple = obj2 (opt "changed" (list string)) (opt "left" (list string)) i...
null
https://raw.githubusercontent.com/mirage/ocaml-matrix/2a58d3d41c43404741f2dfdaf1d2d0f3757b2b69/lib/matrix-ctos/device_lists.ml
ocaml
open Json_encoding type t = {changed: string list option; left: string list option} [@@deriving accessor] let encoding = let to_tuple t = t.changed, t.left in let of_tuple v = let changed, left = v in {changed; left} in let with_tuple = obj2 (opt "changed" (list string)) (opt "left" (list string)) i...
490d3a89a67d6514fb944da8eee262989a23eb9a8c8cc0053666cd4f83651dd9
input-output-hk/plutus-apps
Orphans.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DerivingVia #-} # OPTIONS_GHC -fno - warn - orphans # module Ledger.Crypto.Orphans where import Ledger.Builtins.Orphans () import Codec.Serialise (Serialise) import Control.Newtype.Generics (Newtype) import Data.Aeson (FromJSON, FromJSONKey, ToJSON, ToJSONKey) import Da...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/0d35e44c615b57c8cce48d4e2d38f33e03e6f7cf/plutus-ledger/src/Ledger/Crypto/Orphans.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DerivingVia #
# OPTIONS_GHC -fno - warn - orphans # module Ledger.Crypto.Orphans where import Ledger.Builtins.Orphans () import Codec.Serialise (Serialise) import Control.Newtype.Generics (Newtype) import Data.Aeson (FromJSON, FromJSONKey, ToJSON, ToJSONKey) import Data.Hashable (Hashable) import Plutus.V1.Ledger.Crypto deriving...
39e9c866f658edd2a4171971caff31e51dd4a99c44b5906683463af0b897c927
krdlab/haskell-oidc-client
Issuers.hs
{-# LANGUAGE OverloadedStrings #-} | Module : Web . OIDC.Client . Discovery . Issuers Maintainer : Stability : experimental Module: Web.OIDC.Client.Discovery.Issuers Maintainer: Stability: experimental -} module Web.OIDC.Client.Discovery.Issuers ( google -- TODO: other se...
null
https://raw.githubusercontent.com/krdlab/haskell-oidc-client/b92736ba7d458b4d8571d378ad750b3e1ddaa7c4/src/Web/OIDC/Client/Discovery/Issuers.hs
haskell
# LANGUAGE OverloadedStrings # TODO: other services
| Module : Web . OIDC.Client . Discovery . Issuers Maintainer : Stability : experimental Module: Web.OIDC.Client.Discovery.Issuers Maintainer: Stability: experimental -} module Web.OIDC.Client.Discovery.Issuers ( google ) where import Web.OIDC.Client.Types (Iss...
b298a1156193bb82e23980fa5eda531a44593e9d4ad0b056e235837e28b31161
sgbj/MaximaSharp
dasum.lisp
;;; Compiled by f2cl version: ( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy ...
null
https://raw.githubusercontent.com/sgbj/MaximaSharp/75067d7e045b9ed50883b5eb09803b4c8f391059/Test/bin/Debug/Maxima-5.30.0/share/maxima/5.30.0/share/lapack/blas/dasum.lisp
lisp
Compiled by f2cl version: Using Lisp CMU Common Lisp 20d (20D Unicode) Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) (:coerce-assigns :as-needed) (:array-type ':array) (:array-slicing t) (:declare-common nil) (:float-format double-float))
( " f2cl1.l , v 2edcbd958861 2012/05/30 03:34:52 toy $ " " f2cl2.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl3.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl4.l , v 96616d88fb7e 2008/02/22 22:19:34 rtoy $ " " f2cl5.l , v 3fe93de3be82 2012/05/06 02:17:14 toy $ " " f2cl6.l , v 1d5cbacbb...
2db8d3384555f5c8c2b670e5d814f04d49fcb00f33b1069873026b8cae5d9b12
ekmett/parsnip
Mark.hs
# language MagicHash # # language TypeApplications # {-# language ScopedTypeVariables #-} # language PatternSynonyms # # language BlockArguments # # language BangPatterns # # language UnboxedTuples # module Text.Parsnip.Internal.Mark ( Mark(Mark,Mk) , minusMark , mark, release , snip, snipping ) where import Data.Byte...
null
https://raw.githubusercontent.com/ekmett/parsnip/f2d2273b81177b6e5732b2f963f856efeae7a9ed/src/Text/Parsnip/Internal/Mark.hs
haskell
# language ScopedTypeVariables # ------------------------------------------------------------------------------------- * Marks ------------------------------------------------------------------------------------- unexposed, so known valid addresses # complete Mk # if only... # inline enumFromThenTo # # inline range ...
# language MagicHash # # language TypeApplications # # language PatternSynonyms # # language BlockArguments # # language BangPatterns # # language UnboxedTuples # module Text.Parsnip.Internal.Mark ( Mark(Mark,Mk) , minusMark , mark, release , snip, snipping ) where import Data.ByteString as B import Data.Word import G...
f3705ef7e2cb0085265d081d85b70b46a97342b2d408bcdaba35fbd3fbc473cb
bzuilhof/AdventOfCode
day7.hs
module Day7 where import Data.List import Data.Char import Data.Maybe type Task = Char type Constraint = (Task, Task) type Worker = (Task, Int) inputData :: [Constraint] inputData = [('C','P'),('V','Q'),('T','X'),('B','U'),('Z','O'),('P','I'),('D','G'),('A','Y'),('R','O'),('J','E'),('N','S'),('X','H'),('F','L'),('S'...
null
https://raw.githubusercontent.com/bzuilhof/AdventOfCode/e6ff762c1c766e028fb90ef62b8f4dc4adf9ecc1/2018/day7.hs
haskell
module Day7 where import Data.List import Data.Char import Data.Maybe type Task = Char type Constraint = (Task, Task) type Worker = (Task, Int) inputData :: [Constraint] inputData = [('C','P'),('V','Q'),('T','X'),('B','U'),('Z','O'),('P','I'),('D','G'),('A','Y'),('R','O'),('J','E'),('N','S'),('X','H'),('F','L'),('S'...
63832398453fe1c33ab659924186c29d228c5e3af01ca224f693c8358159c3b9
jserot/lascar
conv.mli
(**********************************************************************) (* *) LASCAr (* *) Copyright ( c ) 2017 - prese...
null
https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/src/lib/conv.mli
ocaml
******************************************************************** This source code is licensed under the lic...
LASCAr Copyright ( c ) 2017 - present , . All rights reserved . * { 2 Functors for converting various kinds of Labeled Transition Systems } * Functor for converting a { ! Ltsa } into a { ! } ( by removing state attributes ) module ToLts (M: Ltsa...
dd7ed1819530d456a60b641abb823bcd7711108b63db245568ee13823837fced
david-christiansen/pie-hs
Elab.hs
# OPTIONS_GHC -fwarn - incomplete - patterns # -- | Type checking and elaboration module Pie.Elab ( -- * The type checker synth, check, isType, same, sameType, -- * The type checking monad Elab(..), * Ctx, CtxEntry(..), SynthResult(..), -- * Helpers names, toEnv ) where import Data.Char (isLetter, ...
null
https://raw.githubusercontent.com/david-christiansen/pie-hs/57a72035c23b6bf0b12492decb77690fea9dfa11/src/Pie/Elab.hs
haskell
| Type checking and elaboration * The type checker * The type checking monad * Helpers | Entries in a typing context (Γ). ^ An ordinary local variable binding, with optional source location ^ A claim, which is not yet in scope but reserves a name to be defined with a particular type ^ A top-level definition, ...
# OPTIONS_GHC -fwarn - incomplete - patterns # module Pie.Elab ( synth, check, isType, same, sameType, Elab(..), * Ctx, CtxEntry(..), SynthResult(..), names, toEnv ) where import Data.Char (isLetter, isMark) import Data.Monoid ((<>)) import Data.List.NonEmpty (NonEmpty(..)) import qualified Data.Text as ...
3fc7fc550f902965b47008605d8ee689d6403c0cd505fa1532638165201d444e
2600hz/kazoo
kz_hooks_listener.erl
%%%----------------------------------------------------------------------------- ( C ) 2013 - 2020 , 2600Hz %%% @doc Listens for a list of events and gproc-sends them out to folks who %%% want them %%% @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_events/src/kz_hooks_listener.erl
erlang
----------------------------------------------------------------------------- @doc Listens for a list of events and gproc-sends them out to folks who want them @end ----------------------------------------------------------------------------- ========================================================================...
( C ) 2013 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_hooks_listener). -behaviour(gen_listener). -export([start_link/0]). -export([init/1 ...
404a11debc103889215b6f5131ad54c26e51bc0aac791d0c60fa93dcde95781b
GlideAngle/flare-timing
HLint.hs
module Main (main) where import Language.Haskell.HLint (hlint) import System.Exit (exitFailure, exitSuccess) arguments :: [String] arguments = [ "app-cmd" , "test-suite-hlint" ] main :: IO () main = do hints <- hlint arguments if null hints then exitSuccess else exitFailure
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/build/test-suite-hlint/HLint.hs
haskell
module Main (main) where import Language.Haskell.HLint (hlint) import System.Exit (exitFailure, exitSuccess) arguments :: [String] arguments = [ "app-cmd" , "test-suite-hlint" ] main :: IO () main = do hints <- hlint arguments if null hints then exitSuccess else exitFailure
5822f078ebca12fbd684307953397374a55c32d18ab66a657312fc3475fa5c2c
dym/movitz
ext2fs.lisp
Ext2 fs package -- Copyright ( C ) 2004 (require :muerte/integers) (require :tmp/harddisk) (require :tmp/partitions) (require :tmp/fs) (provide :tmp/ext2fs) (defpackage fs.ext2 (:use muerte.cl muerte muerte.lib) (:import-from muerte.x86-pc.harddisk hd-read-sectors)) (in-package fs.ext2) (defvar *known-mag...
null
https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/losp/tmp/ext2fs.lisp
lisp
Possible values of an inode's "type" attribute Classes and structures The ext2-fs class is simply a container for the closures created by mount; it is intended to only be passed as an argument to the generic functions in the fs package An ext2 superblock -- contains important information relative to the entire files...
Ext2 fs package -- Copyright ( C ) 2004 (require :muerte/integers) (require :tmp/harddisk) (require :tmp/partitions) (require :tmp/fs) (provide :tmp/ext2fs) (defpackage fs.ext2 (:use muerte.cl muerte muerte.lib) (:import-from muerte.x86-pc.harddisk hd-read-sectors)) (in-package fs.ext2) (defvar *known-mag...
03a8e0613c47df004d8f50883e71ef1ea9e915f1f2948a969d207f2129c281b8
mirage/irmin
sync.mli
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/src/irmin/sync.mli
ocaml
* Store Synchronisation.
* Copyright ( c ) 2013 - 2022 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND...
c12d9a8e00499592dc7e4207959bef734f9e4fc642d440cdf85e6778c6f5e4a4
shenxs/about-scheme
space-game.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 space-game) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (l...
null
https://raw.githubusercontent.com/shenxs/about-scheme/d458776a62cb0bbcbfbb2a044ed18b849f26fd0f/HTDP/space-game.rkt
racket
about the language level of this file in a form that our tools can easily process. /////////////////////////////////////// (make-tank x v) x轴的位置,v-》速度 (make-tank number number) //////////////////////////////////////////////// 辅助函数定义 missile->image Posn->将missile加到背景 false-》直接返回background SIGS->Image posn->T/F 产生一个在n左右...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname space-game) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t constructor repeating-dec...
6d2952c73830ada5cba697c30827cae6d31b5d99d859e057a4d5affaa5f562f7
wpfjtmwls/TensorFlOcaml
test_demo.ml
Example test if one were to want to demo Tensorflowcaml Example test if one were to want to demo Tensorflowcaml *) open OUnit2 open Owl open Tfgraph open Tfgraphst open Mnistnet open Random open Printf (* Pull data *) let xtrain, _, ytrain = Dataset.load_mnist_train_data () let xtrain, ytrain = (Dense.Matrix.Ge...
null
https://raw.githubusercontent.com/wpfjtmwls/TensorFlOcaml/aa08d5da1f622e40dc0002e3879aab70b928e132/test_demo.ml
ocaml
Pull data Extra dimensions for bias Split data in batches of size batchsize Load graph and graph state files Get Preds and Truths Generate a random batch Plot
Example test if one were to want to demo Tensorflowcaml Example test if one were to want to demo Tensorflowcaml *) open OUnit2 open Owl open Tfgraph open Tfgraphst open Mnistnet open Random open Printf let xtrain, _, ytrain = Dataset.load_mnist_train_data () let xtrain, ytrain = (Dense.Matrix.Generic.cast_s2d x...
151a02dacb4a4acc0669fa53129a957b3bf7dad5f608a428f301236f25ffef22
jdreaver/eventful
DB.hs
# LANGUAGE ExistentialQuantification # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Cafe.DB ( openTab , getTabUuid , migrateTabEntity , TabEntity (..) , TabEntityId , ...
null
https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/examples/cafe/src/Cafe/DB.hs
haskell
# LANGUAGE GADTs # | Opens a tab by inserting an entry into the tabs table and returning the UUID.
# LANGUAGE ExistentialQuantification # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # module Cafe.DB ( openTab , getTabUuid , migrateTabEntity , TabEntity (..) , TabEntityId , Key (..) ) where imp...
e9593573a1835df8abc28e583ec13f1ae3184e6c71ba548ce7c8744a07a2bf0c
abevoelker/haskellbook-solutions
sing2.hs
module Sing where fstString :: [Char] -> [Char] fstString x = x ++ " in the rain" sndString :: [Char] -> [Char] sndString x = x ++ " over the rainbow" sing = if (x < y) then fstString x else sndString y where x = "Singin" y = "Somewhere"
null
https://raw.githubusercontent.com/abevoelker/haskellbook-solutions/9e2804940b3b45bdc1b04cfa5d536097629c9498/ch5/sing2.hs
haskell
module Sing where fstString :: [Char] -> [Char] fstString x = x ++ " in the rain" sndString :: [Char] -> [Char] sndString x = x ++ " over the rainbow" sing = if (x < y) then fstString x else sndString y where x = "Singin" y = "Somewhere"
28f61a75061d1ae62db2c89180603b72c35c81ae331f7a9c81ead58049dfd22c
clojerl/clojerl
clojerl.reader.TaggedLiteral.erl
@private -module('clojerl.reader.TaggedLiteral'). -include("clojerl.hrl"). -behavior('clojerl.IEquiv'). -behavior('clojerl.ILookup'). -behavior('clojerl.IStringable'). -export([?CONSTRUCTOR/2]). -export([equiv/2]). -export([ get/2 , get/3 ]). -export([str/1]). -export_type([type/0]). -type type() ...
null
https://raw.githubusercontent.com/clojerl/clojerl/506000465581d6349659898dd5025fa259d5cf28/src/erl/lang/clojerl.reader.TaggedLiteral.erl
erlang
clojerl.IEquiv clojerl.IStringable
@private -module('clojerl.reader.TaggedLiteral'). -include("clojerl.hrl"). -behavior('clojerl.IEquiv'). -behavior('clojerl.ILookup'). -behavior('clojerl.IStringable'). -export([?CONSTRUCTOR/2]). -export([equiv/2]). -export([ get/2 , get/3 ]). -export([str/1]). -export_type([type/0]). -type type() ...
cfa9904853876ddb5c006b459342ea815e259a853e14e47b81e7daf31cbc8e02
ml4tp/tcoq
vm_printers.ml
open Format open Term open Names open Cbytecodes open Cemitcodes open Vm let ppripos (ri,pos) = (match ri with | Reloc_annot a -> let sp,i = a.ci.ci_ind in print_string ("annot : MutInd("^(string_of_mind sp)^","^(string_of_int i)^")\n") | Reloc_const _ -> print_string "structured constant\n" ...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/dev/vm_printers.ml
ocaml
open Format open Term open Names open Cbytecodes open Cemitcodes open Vm let ppripos (ri,pos) = (match ri with | Reloc_annot a -> let sp,i = a.ci.ci_ind in print_string ("annot : MutInd("^(string_of_mind sp)^","^(string_of_int i)^")\n") | Reloc_const _ -> print_string "structured constant\n" ...
bdd10b288aa24adf31de7e1dfe62f30fb94dca045aba024d1dbc748c252a7809
juspay/atlas
Kafka.hs
| Copyright 2022 Juspay Technologies Pvt Ltd 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 dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/atlas-transport/src/Tools/Streaming/Kafka.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd 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 dis...
2ae1c2c1eb00b7924f7624b8db2243bd55ac179a00c33083ca0117b3ef600ff4
kcsongor/generic-lens
Sum.hs
{-# LANGUAGE PackageImports #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Generics.Sum Copyright : ( C ) 2020 -- License : BSD3 Maintainer : < > -- Stability : experimental -- Portability : non-portable -- Magic sum operations ...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/8e1fc7dcf444332c474fca17110d4bc554db08c8/generic-lens/src/Data/Generics/Sum.hs
haskell
# LANGUAGE PackageImports # --------------------------------------------------------------------------- | Module : Data.Generics.Sum License : BSD3 Stability : experimental Portability : non-portable be derived (see examples). ---------------------------------------------------------------------...
Copyright : ( C ) 2020 Maintainer : < > Magic sum operations using Generics These classes need not be instantiated manually , as GHC can automatically prove valid instances via Generics . Only the ` Generic ` class needs to module Data.Generics.Sum module Data.Generics.Sum.Any , module Da...
787bf278cc4fed613c3eb9b2da3ec1423cac8afdf07df1bbda9d5d4b94cca12e
the-dr-lazy/cascade
ProjectTable.hs
| Module : Cascade . Api . Database . ProjectTable Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTI...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-api/src/Cascade/Api/Database/ProjectTable.hs
haskell
| Module : Cascade . Api . Database . ProjectTable Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTI...
a18dbe08969d19f5b5a8a09d155578d8367fb6bbe81b5360617e097e1a736cc3
heraldry/heraldicon
status.cljs
(ns heraldicon.frontend.status (:require [heraldicon.frontend.language :refer [tr]])) (defn loading [] [:div [tr :string.miscellaneous/loading]]) (defn not-found [] [:div [tr :string.miscellaneous/not-found]]) (defn error-display [_error] [:div [tr :string.miscellaneous/error]]) (defn default [subscripti...
null
https://raw.githubusercontent.com/heraldry/heraldicon/4a4d7c860fbe5bed8b0a16acef428b186e27199b/src/heraldicon/frontend/status.cljs
clojure
(ns heraldicon.frontend.status (:require [heraldicon.frontend.language :refer [tr]])) (defn loading [] [:div [tr :string.miscellaneous/loading]]) (defn not-found [] [:div [tr :string.miscellaneous/not-found]]) (defn error-display [_error] [:div [tr :string.miscellaneous/error]]) (defn default [subscripti...
a4859cd18499cf8b39472401fd188476eb6ad4f7eb61dd6d05033c08c80683c7
jaredly/unison.rs
stdlib.scm
(import (chicken bitwise)) (import (chicken condition)) (import json) (require-extension utf8) (define true #t) (define false #f) (define (term-link v) (list 'term-link v)) (define (type-link v) (list 'type-link v)) (define (untuple term) (if (and (list? term) (= (length term) 3) (equal? ...
null
https://raw.githubusercontent.com/jaredly/unison.rs/78e660aae7f77b96e373efdd65f7d5d8da4822c3/chicken/stdlib.scm
scheme
Uncomment this line to debug terms that are failing to process (print "Evaluating " name) (print "Test failure") (print "✅ passed " name) (abort "Test failed") (print "✅ passed " name) yolo base.Map Some/None (exact->inexact v) ) --- lists --- using vectors using linked lists (define (List.++ a) (lambda ...
(import (chicken bitwise)) (import (chicken condition)) (import json) (require-extension utf8) (define true #t) (define false #f) (define (term-link v) (list 'term-link v)) (define (type-link v) (list 'type-link v)) (define (untuple term) (if (and (list? term) (= (length term) 3) (equal? ...
e3af8834705e455c7aaf5cd0b103a97a0acf8fbd25b7a5c919875512904b2c4d
RyanGlScott/text-show
Bool.hs
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # | Module : TextShow . Data . Bool Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' TextShow ' instance for ' ' . /Since : 2/ ...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/src/TextShow/Data/Bool.hs
haskell
# LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # | Module : TextShow . Data . Bool Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC ' TextShow ' instance for ' ' . /Since : 2/ ...
ed6b18f7d96ca213bf47d5335a479ff46f334f1c7d714811f769ca6d2649ffba
clojure-interop/google-cloud-clients
core.clj
(ns com.google.cloud.redis.v1beta1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.redis.v1beta1.CloudRedisClient$ListInstancesFixedSizeCollection]) (require '[com.google.cloud.redis.v1beta1.CloudRedisClient$ListInstancesPage]) (require '[com.google.cloud.redis.v1beta1...
null
https://raw.githubusercontent.com/clojure-interop/google-cloud-clients/80852d0496057c22f9cdc86d6f9ffc0fa3cd7904/com.google.cloud.redis/src/com/google/cloud/redis/v1beta1/core.clj
clojure
(ns com.google.cloud.redis.v1beta1.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[com.google.cloud.redis.v1beta1.CloudRedisClient$ListInstancesFixedSizeCollection]) (require '[com.google.cloud.redis.v1beta1.CloudRedisClient$ListInstancesPage]) (require '[com.google.cloud.redis.v1beta1...
5782a0c6002a58a9cd65bc38e976fc6de4ad2ee37c37046fa33bd61022d91931
ocurrent/ocurrent
engine.ml
open Capnp_rpc_lwt type t = Api.Service.Engine.t Capability.t module Engine = Api.Client.Engine let active_jobs t = let open Engine.ActiveJobs in let request = Capability.Request.create_no_args () in Capability.call_for_value t method_id request |> Lwt_result.map Results.ids_get_list let job t id = let open...
null
https://raw.githubusercontent.com/ocurrent/ocurrent/344af83279e9ba17f5f32d0a0351c228a6f42863/lib_rpc/engine.ml
ocaml
open Capnp_rpc_lwt type t = Api.Service.Engine.t Capability.t module Engine = Api.Client.Engine let active_jobs t = let open Engine.ActiveJobs in let request = Capability.Request.create_no_args () in Capability.call_for_value t method_id request |> Lwt_result.map Results.ids_get_list let job t id = let open...
8234fd0cf4a5c3c9d1d38ba0642fe443121cb40cc14f686a66e5f10daf5b2623
pink-gorilla/ui-gorilla
pprint.cljs
(ns ui.pprint (:require [cljs.pprint :as pp] [sci.core :as sci])) (defn pprint [& args] (binding [*print-fn* @sci/print-fn] (apply pp/pprint args))) (defn print-table [& args] (binding [*print-fn* @sci/print-fn] (apply pp/print-table args))) (def pns (sci/create-ns 'cljs.pprint nil)) (def pprint...
null
https://raw.githubusercontent.com/pink-gorilla/ui-gorilla/3cc408b398d30a8e54c15f863fbabece9f036209/src/ui/pprint.cljs
clojure
{:namespaces {'cljs.pprint pprint-namespace}} (:require [cljs.pprint :as pprint])) = > returns " 1.23 " = > prints " 1.23 " , returns nil
(ns ui.pprint (:require [cljs.pprint :as pp] [sci.core :as sci])) (defn pprint [& args] (binding [*print-fn* @sci/print-fn] (apply pp/pprint args))) (defn print-table [& args] (binding [*print-fn* @sci/print-fn] (apply pp/print-table args))) (def pns (sci/create-ns 'cljs.pprint nil)) (def pprint...
f302d8620784a7e979b267f1ffcbb8d6217d5377c5b3bed7095ad0102c1e5258
karlhof26/gimp-scheme
FU_edges_frames.scm
; FU_edges_frames.scm version 2.8 [ gimphelp.org ] last modified / tested by 02/14/2014 on GIMP-2.8.10 ; ; modified 01/06/2008 modified We d Oct 1 , 2008 by ; modified again 11/20/2008 for gimp-2.6 02/14/2014 convwert to RGB if needed ; 05/29/2020 converted to work on Gimp 2.10.18 ;======================...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/bcaaae384fa57fd919607d5599989e6dfcc7f7c7/FU_edges_frames.scm
scheme
FU_edges_frames.scm modified 01/06/2008 modified again 11/20/2008 for gimp-2.6 05/29/2020 converted to work on Gimp 2.10.18 ============================================================== Installation: This script should be placed in the user or system-wide script folder. Windows Vista/7/8) or or C:\Docu...
version 2.8 [ gimphelp.org ] last modified / tested by 02/14/2014 on GIMP-2.8.10 modified We d Oct 1 , 2008 by 02/14/2014 convwert to RGB if needed C:\Program Files\GIMP 2\share\gimp\2.0\scripts C:\Users\YOUR - NAME\.gimp-2.8\scripts Windows XP C:\Program Files\GIMP 2\share\gimp\2.0\scripts /hom...
ec0613c82e1c7ac756ca43c81fc4208e4380e1b8cfb06cde6a9da74d210c4b64
shonfeder/nomad
defaults.ml
(** Default content *) (** Default ocamlformat file *) let ocamlformat ?(dir = Fpath.v ".") () : File.t = let path = Fpath.(dir / ".ocamlformat") in let content = {|exp-grouping = preserve break-fun-sig = fit-or-vertical break-fun-decl = fit-or-vertical wrap-fun-args = false dock-collection-brackets = false al...
null
https://raw.githubusercontent.com/shonfeder/nomad/aff078bfebdaaa67c0e7f1610491f64bc55b4881/lib/defaults.ml
ocaml
* Default content * Default ocamlformat file
let ocamlformat ?(dir = Fpath.v ".") () : File.t = let path = Fpath.(dir / ".ocamlformat") in let content = {|exp-grouping = preserve break-fun-sig = fit-or-vertical break-fun-decl = fit-or-vertical wrap-fun-args = false dock-collection-brackets = false align-cases = true break-cases = all break-separators = b...
4c9d3f49ec793703b3fab66fe62a6be280fc55c0f6ac62b0b9781c3538b7fcdf
KingoftheHomeless/in-other-words
Internal.hs
# LANGUAGE DerivingVia # # OPTIONS_HADDOCK not - home # module Control.Effect.Internal where import Data.Coerce import Data.Kind (Constraint) import Data.Functor.Identity import Data.Monoid import Control.Monad.Trans import Control.Monad.Trans.Identity import Control.Effect.Internal.Membership import Control.Effect.I...
null
https://raw.githubusercontent.com/KingoftheHomeless/in-other-words/b3574738bf8786a641c281c16202926ba674f7e2/src/Control/Effect/Internal.hs
haskell
| The class of effect carriers, and the underlying mechanism with which effects are implemented. Each carrier is able to implement a number of /derived/ effects, effects, as these determine the effects that users have access to. The standard interpretation tools are typically powerful enough to let you avoid ma...
# LANGUAGE DerivingVia # # OPTIONS_HADDOCK not - home # module Control.Effect.Internal where import Data.Coerce import Data.Kind (Constraint) import Data.Functor.Identity import Data.Monoid import Control.Monad.Trans import Control.Monad.Trans.Identity import Control.Effect.Internal.Membership import Control.Effect.I...
e5b92aed56a9f5ce363adf2d59f46bdb6a0053dc15b384f3eea9828b280a05f3
pirapira/coq2rust
nativecode.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2013 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/kernel/nativecode.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * Local names * * Global names * pr...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2013 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Errors open Names open Te...
7c24feabd7ea3f4d3f3ba91d6046d0baeb20ba0dca83789e81d73c3407ba8de7
yetibot/core
util.clj
(ns yetibot.core.db.util (:require [clojure.set :refer [union]] [clojure.spec.alpha :as s] [clojure.string :refer [blank? join split]] [cuerdas.core :refer [kebab snake]] [clojure.java.jdbc :as sql] [taoensso.timbre :refer [info color-str]] [yetibot.core.config :refer [get-config]])) (s/d...
null
https://raw.githubusercontent.com/yetibot/core/e35cc772622e91aec3ad7f411a99fff09acbd3f9/src/yetibot/core/db/util.clj
clojure
default this check is too aggressive, omit both - merge them left only right only provide either where/map or where/clause and where/args or both (they will be combined) optional transform attr keys to snake case
(ns yetibot.core.db.util (:require [clojure.set :refer [union]] [clojure.spec.alpha :as s] [clojure.string :refer [blank? join split]] [cuerdas.core :refer [kebab snake]] [clojure.java.jdbc :as sql] [taoensso.timbre :refer [info color-str]] [yetibot.core.config :refer [get-config]])) (s/d...
bb5cf9978cc335abc35dbc748f8c646a500952af6aea65b22e36403b2848a3a0
IvanRublev/year_progress_bot
year_progress_bot_app_tests.erl
-module(year_progress_bot_app_tests). -include_lib("eunit/include/eunit.hrl"). start_test_() -> {foreach, fun() -> meck:new(db), meck:expect(db, create_schema, fun() -> ok end), meck:new(year_progress_bot_sup), meck:expect(year_progress_bot_sup, start_link, fun() -> ok end)...
null
https://raw.githubusercontent.com/IvanRublev/year_progress_bot/c3e85a5598d768933d5fb676c74d92fa8033cf60/apps/year_progress_bot/test/year_progress_bot_app_tests.erl
erlang
-module(year_progress_bot_app_tests). -include_lib("eunit/include/eunit.hrl"). start_test_() -> {foreach, fun() -> meck:new(db), meck:expect(db, create_schema, fun() -> ok end), meck:new(year_progress_bot_sup), meck:expect(year_progress_bot_sup, start_link, fun() -> ok end)...
436557d5621bdf3d2363aa8a0ca73b2a2200dc0c4b7a5b44248d1ceacef672be
serokell/blockchain-util
Constraints.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # module Snowdrop.Dba.AVLp.Constraints where import qualified Data.Tree.AVL as AVL import Snowdrop.Hetero (HKey, HVal) class AVL.Has...
null
https://raw.githubusercontent.com/serokell/blockchain-util/a6428c6841e7002605a115002f58eff78ff9f128/snowdrop-dba-avlp/src/Snowdrop/Dba/AVLp/Constraints.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DataKinds # # LANGUAGE RankNTypes #
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE ScopedTypeVariables # module Snowdrop.Dba.AVLp.Constraints where import qualified Data.Tree.AVL as AVL import Snowdrop.Hetero (HKey, HVal) class AVL.Hash h (HKey x) (HVal x) => AvlHashC h x instance AVL.Hash h (HKey x) (HVal x) => AvlHashC h x
802d285462ac79c574e68bc4e7252b56b18d4cfa310cb2f6d639e91b0e4dd8e4
andorp/bead
Page.hs
{-# LANGUAGE OverloadedStrings #-} module Bead.View.Content.UserSubmissions.Page ( userSubmissions ) where import Data.Function (on) import Data.List (sortBy) import Data.String (fromString) import Data.Time (UTCTime) import qualified Bead.Controller.Pages as Pages import...
null
https://raw.githubusercontent.com/andorp/bead/280dc9c3d5cfe1b9aac0f2f802c705ae65f02ac2/src/Bead/View/Content/UserSubmissions/Page.hs
haskell
# LANGUAGE OverloadedStrings #
module Bead.View.Content.UserSubmissions.Page ( userSubmissions ) where import Data.Function (on) import Data.List (sortBy) import Data.String (fromString) import Data.Time (UTCTime) import qualified Bead.Controller.Pages as Pages import qualified Bead.Controller.UserStor...
76bf096e2b57bbfa2be05a5bab8b047fede8ca2d0e688b5dcbe36e38aae51328
huangz1990/real-world-haskell-cn
foldl.hs
-- file: ch04/foldl.hs foldl :: (a -> b -> a) -> a -> [b] -> a foldl step zero (x:xs) = foldl step (step zero x) xs foldl _ zero [] = zero
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch04/foldl.hs
haskell
file: ch04/foldl.hs
foldl :: (a -> b -> a) -> a -> [b] -> a foldl step zero (x:xs) = foldl step (step zero x) xs foldl _ zero [] = zero
1954dcf0bed88d2af1b57f53fa098a930712f45dab81c1e1a12de130edf567bd
broom-lang/broom
Platform.ml
type t = Node
null
https://raw.githubusercontent.com/broom-lang/broom/e817d0588ae7ac881f61654503910852238d6297/compiler/lib/Platform.ml
ocaml
type t = Node
2ca04d6c97c39aa0f969f69d7dbd72a00dc5c17d470b31dbf29072a7b79c9317
jarvinet/scheme
b1.scm
(define (b1 n) (if (b) 1 2)) (define (b2 n) (if (integer-less-than n n) 1 2)) (define (b3 n) (if (b) 1 (b))) (define (b4 n) (if (< n 2) 1 2))
null
https://raw.githubusercontent.com/jarvinet/scheme/47633d7fc4d82d739a62ceec75c111f6549b1650/bin/test/b1.scm
scheme
(define (b1 n) (if (b) 1 2)) (define (b2 n) (if (integer-less-than n n) 1 2)) (define (b3 n) (if (b) 1 (b))) (define (b4 n) (if (< n 2) 1 2))
0f910375d9189df683eaff5e872eb641b531a5be3ddd20aa36c2582a4fe9cad7
ltoth/unison
copy.ml
Unison file synchronizer : src / copy.ml Copyright 1999 - 2010 , 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 , or ( at your option...
null
https://raw.githubusercontent.com/ltoth/unison/e763510165e3d93c5140a4c5f2ea0dcbf5825a0c/copy.ml
ocaml
** ** Check whether the source file has been modified during synchronization ** Paranoid check: recompute the transferred file's digest to match it with the archive's && not (Os.isPseudoFingerprint fp) ** ** ** ** The file transfer functions here depend on an external module 'transfer' that implements a ge...
Unison file synchronizer : src / copy.ml Copyright 1999 - 2010 , 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 , or ( at your option...
f092fcae7de760a29c9c56d5b1da4fa3e2e4916c88d9c1b28bf04000f9d1c54d
janestreet/async_smtp
reject_or_error.ml
open! Core open! Async type t = { reject : Smtp_reply.t option [@sexp.option] ; error : Error.t ; here : Source_code_position.t option [@sexp.option] } [@@deriving sexp_of] let error t = match t.here with | None -> t.error | Some here -> Error.of_thunk (fun () -> sprintf !"%{Error#hum}\nat %{S...
null
https://raw.githubusercontent.com/janestreet/async_smtp/c2c1f8b7b27f571a99d2f21e8a31ce150fbd6ced/src/reject_or_error.ml
ocaml
open! Core open! Async type t = { reject : Smtp_reply.t option [@sexp.option] ; error : Error.t ; here : Source_code_position.t option [@sexp.option] } [@@deriving sexp_of] let error t = match t.here with | None -> t.error | Some here -> Error.of_thunk (fun () -> sprintf !"%{Error#hum}\nat %{S...
646cd988edceb1d522d247217e32af3293e08f9e0e2e6232271973cfa0ae565e
Drup/furl
furl.ml
open Furl_utils * { 2 Meta - variables } To better read this file , here is the method of variable naming : For type variables : - f is a function type - r is a return type of the associated f - c are for types related to converter , used with r or f - x is the intermediate type fo...
null
https://raw.githubusercontent.com/Drup/furl/ed4b2909b4b5a586541f8112323fa1fe2778eaa1/src/furl.ml
ocaml
type ('f, 'r) atom = | PathConst : string -> ('r, 'r) atom | Path : 'a Tyre.t -> ('r, 'r -> 'a) atom * A convertible url is a path and a query (and potentially a slash). The type is the concatenation of both types. * {2 Combinators} * An url with an empty list of converters. It can be evaluated/...
open Furl_utils * { 2 Meta - variables } To better read this file , here is the method of variable naming : For type variables : - f is a function type - r is a return type of the associated f - c are for types related to converter , used with r or f - x is the intermediate type fo...
b7fab6a5ea1073dca180c3cd8c154467b22e109b654ac9b5ce29823266d5088c
ivankelly/gambit
dc#.scm
;============================================================================== File : " dc#.scm " , Time - stamp : < 2007 - 04 - 04 14:25:51 feeley > Copyright ( c ) 2005 - 2007 by , All Rights Reserved . ;============================================================================== (##namespace ("dc#" ; s...
null
https://raw.githubusercontent.com/ivankelly/gambit/7377246988d0982ceeb10f4249e96badf3ff9a8f/examples/distr-comp/dc%23.scm
scheme
============================================================================== ============================================================================== special forms procedures ------------------------------------------------------------------------------ Implementation of the basic Termite special forms: ...
File : " dc#.scm " , Time - stamp : < 2007 - 04 - 04 14:25:51 feeley > Copyright ( c ) 2005 - 2007 by , All Rights Reserved . (##namespace ("dc#" spawn recv self pid? make-tag ! ? !? make-tcp-node goto on spawn-thread current-node current-node-id current-node-name become-tcp-node default-tcp-node-port-nu...
b688ea20cecdb1c3d106dcc00be2bdddd5c4abfd824cf414f727cfd38359eddf
ghcjs/ghcjs-base
Internal.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # # LANGUAGE UnboxedTuples # # LANGUAGE GHCForeignImportPrim # {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE UnliftedFFITypes #-} module JavaScript.Object.Internal ( Object(..) , create , allProps , listPr...
null
https://raw.githubusercontent.com/ghcjs/ghcjs-base/18f31dec5d9eae1ef35ff8bbf163394942efd227/JavaScript/Object/Internal.hs
haskell
# LANGUAGE DeriveDataTypeable # # LANGUAGE EmptyDataDecls # # LANGUAGE UnliftedFFITypes # | create an empty object # INLINE getProp # # INLINE unsafeSetProp # ----------------------------------------------------------------------------- [JSString]
# LANGUAGE ForeignFunctionInterface # # LANGUAGE JavaScriptFFI # # LANGUAGE UnboxedTuples # # LANGUAGE GHCForeignImportPrim # module JavaScript.Object.Internal ( Object(..) , create , allProps , listProps , getProp , unsafeGetProp , setProp , unsafeSetProp , isInstanceOf ) where...
9a098b6011e5a9550bb337a3bc1bb17cba24d5f69acdd880f13840b91ca4439e
MinaProtocol/mina
mina_base.ml
(** Make {!Mina_base} submodules available through the normal path *) module Signed_command_payload = Mina_base_signed_command_payload module Signed_command = Mina_base_signed_command module Payment_payload = Mina_base_payment_payload module Stake_delegation = Mina_base_stake_delegation module New_token_payload = Mina...
null
https://raw.githubusercontent.com/MinaProtocol/mina/7a380064e215dc6aa152b76a7c3254949e383b1f/src/lib/mina_wire_types/mina_base/mina_base.ml
ocaml
* Make {!Mina_base} submodules available through the normal path
module Signed_command_payload = Mina_base_signed_command_payload module Signed_command = Mina_base_signed_command module Payment_payload = Mina_base_payment_payload module Stake_delegation = Mina_base_stake_delegation module New_token_payload = Mina_base_new_token_payload module New_account_payload = Mina_base_new_acc...
8790d9886a5fc8bd69ec3163a6108037a464d917fbc4774bc6c317c2aa418446
TheAlgorithms/Haskell
Problem1.hs
module ProjectEuler.Problem1.Problem1 where solList = filter (\n -> (rem n 5 == 0) || (rem n 3 == 0)) [1..999] main = do print $ sum solList
null
https://raw.githubusercontent.com/TheAlgorithms/Haskell/9dcabef99fb8995a760ff25a9e0d659114c0b9d3/src/ProjectEuler/Problem1/Problem1.hs
haskell
module ProjectEuler.Problem1.Problem1 where solList = filter (\n -> (rem n 5 == 0) || (rem n 3 == 0)) [1..999] main = do print $ sum solList
31736b4f206547f8ff64248a6b573a5aaabada5a76342a1f3afd7aa5d9512f42
kadena-io/pact
Alloc.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Monadic contexts , m...
null
https://raw.githubusercontent.com/kadena-io/pact/bc69144ff39f6405a248f31855eca7d3a9232c2b/src-tool/Pact/Analyze/Alloc.hs
haskell
# LANGUAGE DefaultSignatures # # LANGUAGE DeriveFunctor # # LANGUAGE GADTs # allocation of quantified symbolic variables. | A restricted symbolic context in which only quantified variable allocation is permitted. ^ universally quantified ^ existentially quantified ^ quan...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Monadic contexts , more restricted than ' Symbolic ' , that only allow module Pact.Analyze.Alloc ( MonadAlloc (singForAll, singExists, singFree) , f...
84f32b04784984ce5501533c7067b31fcdb111fda7da4fd9510c6e4b0d2f107a
mmottl/aifad
split_impl.ml
AIFAD - Automated Induction of Functions over Author : email : WWW : Copyright ( C ) 2002 Austrian Research Institute for Artificial Intelligence Copyright ( C ) 2003- This library is free software ; you can redistribute it and/or modify it under the terms of t...
null
https://raw.githubusercontent.com/mmottl/aifad/b06786f5cd60992548405078a903ee3d962ea969/src/split_impl.ml
ocaml
Split (co-)domain variables on some domain variable (left, X (x, y), right) -> (left, x, y, right) Compute sum-model from optional shave-info Compute variable model from pos-infos Shave codomain variables with redundant constructors Derive a model from domain and codomain variables
AIFAD - Automated Induction of Functions over Author : email : WWW : Copyright ( C ) 2002 Austrian Research Institute for Artificial Intelligence Copyright ( C ) 2003- This library is free software ; you can redistribute it and/or modify it under the terms of t...
7bf901a3a576895ce791c5e7686a971d809fa68a9b08344d7490d5f0c6f9ea9d
hraberg/shen.clj
install.clj
(ns shen.install (:use [clojure.java.io :only (file reader writer)] [clojure.pprint :only (pprint)]) (:require [clojure.string :as s] [shen.primitives]) (:import [java.io StringReader PushbackReader FileNotFoundException] [java.util.regex Pattern]) (:gen-class)) (def shen-namespa...
null
https://raw.githubusercontent.com/hraberg/shen.clj/41bf09e61dd3a9df03cf929f0e8415087b730396/src/shen/install.clj
clojure
(ns shen.install (:use [clojure.java.io :only (file reader writer)] [clojure.pprint :only (pprint)]) (:require [clojure.string :as s] [shen.primitives]) (:import [java.io StringReader PushbackReader FileNotFoundException] [java.util.regex Pattern]) (:gen-class)) (def shen-namespa...
754b60dac7f74752ac1cc9b8a5d0b426d846c3ab1a154204fbd2422900b7ebe7
oden-lang/oden
Instantiate.hs
module Oden.Output.Instantiate where import Text.PrettyPrint.Leijen import Oden.Compiler.Instantiate import Oden.Output import Oden.Pretty () instance OdenOutput InstantiateError where outputType _ = Error name TypeMismatch{} = "Instantiate.TypeMismatc...
null
https://raw.githubusercontent.com/oden-lang/oden/10c99b59c8b77c4db51ade9a4d8f9573db7f4d14/src/Oden/Output/Instantiate.hs
haskell
module Oden.Output.Instantiate where import Text.PrettyPrint.Leijen import Oden.Compiler.Instantiate import Oden.Output import Oden.Pretty () instance OdenOutput InstantiateError where outputType _ = Error name TypeMismatch{} = "Instantiate.TypeMismatc...
90fd16eaedcdde389910b555a93c0c5c3aa1cc6e67b2771074059f3354d612b1
geostarling/guix-packages
clojure.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2019 < > Copyright © 2020 < > Copyright © 2020 < > ;;; ;;; This file is not 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...
null
https://raw.githubusercontent.com/geostarling/guix-packages/c54114d9d228a6cd789cfecf4570db0dd0ab3f54/nongnu/packages/clojure.scm
scheme
GNU Guix --- Functional package management for GNU This file is not 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 implie...
Copyright © 2019 < > Copyright © 2020 < > Copyright © 2020 < > 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 (nongnu packages clojure) #:use-module (gnu p...
5c67f959cc3f6c95e14330d1bb8463fe1cb9d4e9b97f38cce86a2aa5af1c7153
emotiq/emotiq
custom-xml.lisp
-*- Mode : LISP ; Syntax : ANSI - Common - Lisp ; Base : 10 -*- ;; See the file LICENCE for licence information. (in-package :sdle-store-xml) (defstore-xml (obj structure-object stream) (with-tag ("STRUCTURE-OBJECT" stream) (princ-and-store "CLASS" (type-of obj) stream) (xml-dump-type-object obj stream))...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/sdle-store/sbcl/custom-xml.lisp
lisp
Syntax : ANSI - Common - Lisp ; Base : 10 -*- See the file LICENCE for licence information.
(in-package :sdle-store-xml) (defstore-xml (obj structure-object stream) (with-tag ("STRUCTURE-OBJECT" stream) (princ-and-store "CLASS" (type-of obj) stream) (xml-dump-type-object obj stream))) (defrestore-xml (structure-object place) (restore-xml-type-object place)) (defstore-xml (obj single-float s...
9c31af217cebc2679006e024b844fecbea8cc18bd9670408fff9bea400e585cf
Clojure2D/clojure2d-examples
ray.clj
(ns rt4.the-next-week.ch05c.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction ^double time] RayProto (at [_ t] (v/ad...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch05c/ray.clj
clojure
(ns rt4.the-next-week.ch05c.ray (:require [fastmath.vector :as v] [fastmath.core :as m])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defprotocol RayProto (at [ray t])) (defrecord Ray [origin direction ^double time] RayProto (at [_ t] (v/ad...
d1c14ad3908301cc1ca857b790d4f9f3957788a1580baaa21ae157e5f8f2d4ee
composewell/streamly
Char.hs
# OPTIONS_GHC -Wno - deprecations -Wno - orphans # -- Module : Streamly . Unicode . Copyright : ( c ) 2021 Composewell Technologies -- License : BSD-3-Clause -- Maintainer : -- Stability : experimental Portability : GHC --------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/composewell/streamly/8629a0e806f5eea87d23650c540aa04176f25c43/benchmark/Streamly/Benchmark/Unicode/Char.hs
haskell
License : BSD-3-Clause Maintainer : Stability : experimental ------------------------------------------------------------------------------ Imports ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -...
# OPTIONS_GHC -Wno - deprecations -Wno - orphans # Module : Streamly . Unicode . Copyright : ( c ) 2021 Composewell Technologies Portability : GHC import Control.DeepSeq (NFData(..)) import Streamly.Internal.Data.Array (Array) import System.FilePath (dropExtensions, takeFileName) import System.FilePa...
84d8318b7e77eec0720998ab94f02fdd520fd6639b5ce7c33c48ce97459c14fc
uim/uim
wnn-key-custom.scm
;;; wnn-custom.scm: Customization variables for wnn.scm ;;; Copyright ( c ) 2003 - 2013 uim Project ;;; ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: 1 . Redistributions of sour...
null
https://raw.githubusercontent.com/uim/uim/d1ac9d9315ff8c57c713b502544fef9b3a83b3e5/scm/wnn-key-custom.scm
scheme
wnn-custom.scm: Customization variables for wnn.scm All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaimer. notice, this list of condi...
Copyright ( c ) 2003 - 2013 uim Project 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of authors nor the names of its contributors THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTOR...
2c2dccfc97be9e63cfba46c216f0c6bc24b633d60f7ca519b6932c4be97e71ec
bozsahin/ccglab
g.ccg.lisp
(DEFPARAMETER *CCG-GRAMMAR* '(((KEY 1) (PHON I) (MORPH N) (SYN ((BCAT NP) (FEATS ((AGR 1S))))) (SEM "I") (PARAM 1.0)) ((KEY 2) (PHON THINK) (MORPH EN) (SYN ((((BCAT S) (FEATS NIL)) (DIR BS) (MODAL ALL) ((BCAT NP) (FEATS ((AGR 1S))))) (DIR FS) (MODAL HARMONIC) ((BCAT S) (FEATS NIL)))...
null
https://raw.githubusercontent.com/bozsahin/ccglab/15def13c76e562a053ff92d61353549818d2a7e3/examples/type-raising-with-workflow/g.ccg.lisp
lisp
(DEFPARAMETER *CCG-GRAMMAR* '(((KEY 1) (PHON I) (MORPH N) (SYN ((BCAT NP) (FEATS ((AGR 1S))))) (SEM "I") (PARAM 1.0)) ((KEY 2) (PHON THINK) (MORPH EN) (SYN ((((BCAT S) (FEATS NIL)) (DIR BS) (MODAL ALL) ((BCAT NP) (FEATS ((AGR 1S))))) (DIR FS) (MODAL HARMONIC) ((BCAT S) (FEATS NIL)))...
d7c3ff3bb7ae181daecc1ef851cbfed08c91e4f18c19423b24982f7d6f478ae6
armedbear/abcl
digest.lisp
Cryptographic message digest calculation with ABCL with different implementations . ;;;; < > ;;;; (in-package :cl-user) ;;; API (defgeneric digest (url algorithim &optional (digest 'sha-256)) (:documentation "Digest byte based resource at URL with ALGORITHIM.")) (defun digest-path (path) (ascii-digest (dig...
null
https://raw.githubusercontent.com/armedbear/abcl/36a4b5994227d768882ff6458b3df9f79caac664/tools/digest.lisp
lisp
API Implementation Deprecated Test (benchmark "/usr/local/bin/*") ;; unix (benchmark "c:/*") ;; win32
Cryptographic message digest calculation with ABCL with different implementations . < > (in-package :cl-user) (defgeneric digest (url algorithim &optional (digest 'sha-256)) (:documentation "Digest byte based resource at URL with ALGORITHIM.")) (defun digest-path (path) (ascii-digest (digest path 'nio 'sha...
7adf3df1737d52f35ae42c7b16419993da768e9b1cb33fdfbe4afedb89f6780e
inria-parkas/sundialsml
ark_reaction_diffusion_mri.ml
------------------------------------------------------------------ * Programmer(s ): @ LLNL * ------------------------------------------------------------------ * OCaml port : , , Aug 2020 . * ------------------------------------------------------------------ * Based an example program by Rujeko ...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a72ebfc84b55470ed97fbb0b45d700deebfc1664/examples/arkode/C_serial/ark_reaction_diffusion_mri.ml
ocaml
------------------------------ * Functions called by the solver * ------------------------------ number of intervals diffusion coefficient mesh spacing ff routine to compute the fast portion of the ODE RHS. iterate over domain, computing reaction term fs routine to compute the slow portion of t...
------------------------------------------------------------------ * Programmer(s ): @ LLNL * ------------------------------------------------------------------ * OCaml port : , , Aug 2020 . * ------------------------------------------------------------------ * Based an example program by Rujeko ...
c5e58bb64c6aa8df49d02e775e1b5ad324e985c2bbe23fbf2cfed90e5f3312c3
scymtym/trivial-with-current-source-form
unsupported.lisp
;;;; unsupported.lisp --- Compatibility for unsupported implementations. ;;;; Copyright ( C ) 2020 Jan Moringen ;;;; Author : < > (cl:in-package #:trivial-with-current-source-form) (defun expand (forms body) (declare (ignore forms)) `(progn ,@body))
null
https://raw.githubusercontent.com/scymtym/trivial-with-current-source-form/198fdc9193c6c8bc43fad2ad7562603d11194c6d/code/unsupported.lisp
lisp
unsupported.lisp --- Compatibility for unsupported implementations.
Copyright ( C ) 2020 Jan Moringen Author : < > (cl:in-package #:trivial-with-current-source-form) (defun expand (forms body) (declare (ignore forms)) `(progn ,@body))
b04ab4f7aa0b492705dfbe2820ea72f106350a6536346127ad0da375ddd76880
gilith/hol-light
inferpsign_thms.ml
let EVEN_DIV_LEM = prove_by_refinement( `!set p q c d a n. (!x. a pow n * p x = c x * q x + d x) ==> a <> &0 ==> EVEN n ==> ((interpsign set q Zero) ==> (interpsign set d Neg) ==> (interpsign set p Neg)) /\ ((interpsign set q Zero) ==> (inte...
null
https://raw.githubusercontent.com/gilith/hol-light/f3f131963f2298b4d65ee5fead6e986a4a14237a/Rqe/inferpsign_thms.ml
ocaml
{{{ Proof }}} {{{ Proof save }}} {{{ Proof save }}} {{{ Proof save save save save }}} {{{ Proof }}} {{{ Proof }}} {{{ Proof }}} {{{ Proof }}}
let EVEN_DIV_LEM = prove_by_refinement( `!set p q c d a n. (!x. a pow n * p x = c x * q x + d x) ==> a <> &0 ==> EVEN n ==> ((interpsign set q Zero) ==> (interpsign set d Neg) ==> (interpsign set p Neg)) /\ ((interpsign set q Zero) ==> (inte...
f67250205e27c391dc1f787e1142efb2bc30d59531d2848f2e9249c8b2ea0918
elastic/eui-cljs
warn_once.cljs
(ns eui.services.warn-once (:require ["@elastic/eui/lib/services/console/warn_once.js" :as eui])) (def warnOnce eui/warnOnce)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/services/warn_once.cljs
clojure
(ns eui.services.warn-once (:require ["@elastic/eui/lib/services/console/warn_once.js" :as eui])) (def warnOnce eui/warnOnce)
0adbce6c9106253462bcd4d630648c6c8a0c0d91ffbca48120bfe64893bea11e
ijvcms/chuanqi_dev
player_monster_merge_cache.erl
%%%------------------------------------------------------------------- @author apple ( C ) 2015 , < COMPANY > %%% @doc %%% %%% @end Created : 30 . 2015 19:19 %%%------------------------------------------------------------------- -module(player_monster_merge_cache). -include("common.hrl"). -include("cache.hrl")...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/active_merge/player_monster_merge_cache.erl
erlang
------------------------------------------------------------------- @doc @end ------------------------------------------------------------------- API
@author apple ( C ) 2015 , < COMPANY > Created : 30 . 2015 19:19 -module(player_monster_merge_cache). -include("common.hrl"). -include("cache.hrl"). -export([ select_row/2, select_all/0, insert/1, delete/2, update/2 ]). select_row(PlayerId, MonsterId) -> db_cache_lib:select_row(?DB_PLAYER_MONSTER_MERG...
85a4f091dc7ad7d353d9c46bcf4937ac7adc9040a472835bc1b8b29c694a1349
cljfx/cljfx
project.clj
(defproject splash "0.1.0-SNAPSHOT" :description "Example splash screen for cljfx" :java-source-paths ["java-src"] :dependencies [[cljfx/cljfx "1.7.13"]] :repl-options {:init-ns splash} :profiles {:uberjar {:aot :all :jvm-opts ["-Dcljfx.skip-javafx-initialization=true"]}} ;; entrypoin...
null
https://raw.githubusercontent.com/cljfx/cljfx/d41e4ec2456cf227ec44c60f1ab76ccef7be194e/example-projects/splash/project.clj
clojure
entrypoint for splash screen
(defproject splash "0.1.0-SNAPSHOT" :description "Example splash screen for cljfx" :java-source-paths ["java-src"] :dependencies [[cljfx/cljfx "1.7.13"]] :repl-options {:init-ns splash} :profiles {:uberjar {:aot :all :jvm-opts ["-Dcljfx.skip-javafx-initialization=true"]}} :main splash...
b96ef617b42e7de5922f7748638ebac0d1331fbf2928fd26606289fba9b28e7f
ygmpkk/house
Preprocess.hs
-------------------------------------------------------------------------------- -- Program : Preprocess Copyright : ( c ) 2003 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability : portable -- The .spec files from...
null
https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/ghc-6.2/libraries/OpenGL/specs/preprocess/Preprocess.hs
haskell
------------------------------------------------------------------------------ License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable have therefore a rather ugly line-oriented syntax. To make things more amenable to "real" parsing...
Program : Preprocess Copyright : ( c ) 2003 The .spec files from the SI are normally processed by / AWK scripts and 1 ) Remove comments : Remove everything starting at the first ' # ' . 4 ) Mangle property declarations : Append ' ; ' to a line where the first ' : ' is only preceded b...
825ff411d6d55161a6183cfb87e92fb7545776f9e3a7d89a50c6103bf5913171
dalong0514/ITstudy
endplot.lsp
(prompt " \nLoad Only....Do NOT Run...") (vl-load-com) ;******************************************************* (vlr-command-reactor "Backup After Plot" '((:vlr-commandEnded . endPlot))) ;******************************************************* (defun endPlot (calling-reactor endcommandInfo / th...
null
https://raw.githubusercontent.com/dalong0514/ITstudy/dbfe59151a416b7ebfd4a3881c1fa234bda5ad22/001%E7%A2%8E%E7%89%87%E7%9F%A5%E8%AF%86/2022%E7%A2%8E%E7%89%87%E7%9F%A5%E8%AF%86/%E9%99%84%E4%BB%B6/20220308AutoLisp-Reactors/endplot.lsp
lisp
******************************************************* ******************************************************* if *********************************************************
(prompt " \nLoad Only....Do NOT Run...") (vl-load-com) (vlr-command-reactor "Backup After Plot" '((:vlr-commandEnded . endPlot))) (defun endPlot (calling-reactor endcommandInfo / thecommandend drgName newname) (setq thecommandend (nth 0 endcommandInfo)) (if (= thecommandend "PLOT") (pr...
bed01313f67aa1ec091921cef877ebb597fed0e7a57df47c074e06db45bd7d2c
phantomics/april
demo.lisp
-*- Mode : Lisp ; Syntax : ANSI - Common - Lisp ; Coding : utf-8 ; Package : AprilDemo . Cnn -*- ;;;; demo.lisp (in-package #:april-demo.cnn) (defparameter *package-symbol* (intern (package-name *package*) "KEYWORD")) ;; binary format for .idx files (defbinary idx-file (:byte-order :big-endian) (empty 0 :type 16...
null
https://raw.githubusercontent.com/phantomics/april/9e5fac321e8ef666226467724e65e0f89c51f5c5/demos/cnn/demo.lisp
lisp
Syntax : ANSI - Common - Lisp ; Coding : utf-8 ; Package : AprilDemo . Cnn -*- demo.lisp binary format for .idx files these functions fetch the input data
(in-package #:april-demo.cnn) (defparameter *package-symbol* (intern (package-name *package*) "KEYWORD")) (defbinary idx-file (:byte-order :big-endian) (empty 0 :type 16) (type 0 :type 8) (rank 0 :type 8) (dimensions #() :type (simple-array (unsigned-byte 32) (rank))) (data #() :type (eval (case type (#x08...
5beea08d91b43166bd5cd432b1d93f24123e0f4d6be151ae6c26bc0996bcedab
phylogeography/spread
math_utils.cljc
(ns shared.math-utils) (def sqrt #?(:clj #(Math/sqrt %) :cljs #(js/Math.sqrt %))) (def log #?(:clj #(Math/log %) :cljs #(js/Math.log %))) (def pow #?(:clj #(Math/pow %1 %2) :cljs #(js/Math.pow %1 %2))) (def parse-int #?(:clj #(Integer/parseInt %1 %2) ...
null
https://raw.githubusercontent.com/phylogeography/spread/56f3500e6d83e0ebd50041dc336ffa0697d7baf8/src/cljc/shared/math_utils.cljc
clojure
a line perp to `line` that pass thru its center calculates focus x, a point that belongs to `center-perp` line and is at distance `k` from `cx`,`cy` `sol-fn` can be `+` or `-` to get the fx below and avobe the line Solve[mx+d-mc-y=0 && (x-c)^2+(y-d)^2=k^2, {x,y}] calculates focus-x, which is the point x that belo...
(ns shared.math-utils) (def sqrt #?(:clj #(Math/sqrt %) :cljs #(js/Math.sqrt %))) (def log #?(:clj #(Math/log %) :cljs #(js/Math.log %))) (def pow #?(:clj #(Math/pow %1 %2) :cljs #(js/Math.pow %1 %2))) (def parse-int #?(:clj #(Integer/parseInt %1 %2) ...
9abc6b563576efd5dce7fa199e79a8e7fbf158e15b629bcab7ae9e52ab740c5d
yansh/MoanaML
reteImpl.ml
* Copyright ( c ) 2015 * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS...
null
https://raw.githubusercontent.com/yansh/MoanaML/c9843c10a0624e1c06e185e3dd1e7d877270d0d7/Rete/reteImpl.ml
ocaml
for convinience - direct access to tuples without going through variables. this is a mapping of Variables and their respective values in each tuple type am = { pattern: tuple; tuples: tuple list; vars: (string * ((element * tuple) list)) list } ...
* Copyright ( c ) 2015 * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AUTHOR DISCLAIMS...
9b03c16aec76ea989255f8f11a65d2f410ee6fee65d612d7fcc974ff6f46ffe5
kana/sicp
ex-3.61.scm
Exercise 3.61 . Let S be a power series ( exercise 3.59 ) whose constant term is 1 . Suppose we want to find the power series 1 / S , that is , the series X such that S · X = 1 . Write S = 1 + S_R where S_R is the part of S after ;;; the constant term. Then we can solve for X as follows: ;;; S・X = 1 (...
null
https://raw.githubusercontent.com/kana/sicp/912bda4276995492ffc2ec971618316701e196f6/ex-3.61.scm
scheme
the constant term. Then we can solve for X as follows: X = 1 - S_R・X
Exercise 3.61 . Let S be a power series ( exercise 3.59 ) whose constant term is 1 . Suppose we want to find the power series 1 / S , that is , the series X such that S · X = 1 . Write S = 1 + S_R where S_R is the part of S after S・X = 1 ( 1+S_R)・X = 1 X + S_R・X = 1 In other words , X is the power...
c52a73ea5e29e06223b2654d2af7f0e1ad43638aabad4f9329c9cc9588d2138d
unclechu/xlib-keys-hack
Main.hs
Author : License : -keys-hack/master/LICENSE # LANGUAGE NoMonomorphismRestriction , FlexibleContexts , DataKinds # {-# LANGUAGE ScopedTypeVariables, TupleSections #-} module Main (main) where import "base" Data.Proxy (Proxy (Proxy)) import "base" Data.Word (Word8) import "base" Data.Maybe (fromJust) import "b...
null
https://raw.githubusercontent.com/unclechu/xlib-keys-hack/33b49a9b1fc4bc87bdb95e2bb632a312ec2ebad0/app/XlibKeysHack/Main.hs
haskell
# LANGUAGE ScopedTypeVariables, TupleSections # local imports Bool indicates if it's alive or dead We don't need this since we use own X Display instance for every thread liftIO initThreads for main thread Making it fail at start app time if media keys described incorrectly Threads in order they have been forked...
Author : License : -keys-hack/master/LICENSE # LANGUAGE NoMonomorphismRestriction , FlexibleContexts , DataKinds # module Main (main) where import "base" Data.Proxy (Proxy (Proxy)) import "base" Data.Word (Word8) import "base" Data.Maybe (fromJust) import "base" Data.List (intercalate) import "base" Data.Type...
b8c44b9290106da4230d66a64d092789c7787d0306dc1b7452bc8f261fbacafc
emaphis/HtDP2e-solutions
ex008.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-beginner-reader.ss" "lang")((modname ex008) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f ...
null
https://raw.githubusercontent.com/emaphis/HtDP2e-solutions/ecb60b9a7bbf9b8999c0122b6ea152a3301f0a68/1-Fixed-Size-Data/01-Arithmetic/ex008.rkt
racket
about the language level of this file in a form that our tools can easily process. Add the following line to the definitions area: (define cat <image>) Create a conditional expression that computes whether the image is tall or wide. An image should be labeled "tall" if its height is larger than or equal to its wid...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex008) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f))) (require 2htdp/image) Ex . 8 (define cat (bitmap "images/cat.p...
413da96351ae1d7f9921ec7c39d0922ca4ebb787b9b62ba05da554e516f95ec1
goodmind/Infornography
infornography-macos.rkt
#!/usr/bin/env racket #lang racket/base (require racket/port racket/system racket/string racket/list) (define-syntax $ (syntax-rules () ((_ v) (getenv (symbol->string (quote v)))))) (define (-> cmd) (port->string (car (process cmd)))) (define (hostname) (string-trim (-> "hostname"))) (define (filena...
null
https://raw.githubusercontent.com/goodmind/Infornography/718c3510f93c9d6aae0a1097cf2823e0cad347ef/infornography-macos.rkt
racket
#!/usr/bin/env racket #lang racket/base (require racket/port racket/system racket/string racket/list) (define-syntax $ (syntax-rules () ((_ v) (getenv (symbol->string (quote v)))))) (define (-> cmd) (port->string (car (process cmd)))) (define (hostname) (string-trim (-> "hostname"))) (define (filena...
73eb37bb9eeefbb164034aee5747e933dad88d5a5019e058b892a255d9471112
Viasat/halite
jadeite.clj
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.jadeite (:require [clojure.core.match :as match :refer [match]] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string :as string] [com.viasat.halite.base :as base] ...
null
https://raw.githubusercontent.com/Viasat/halite/1145fdf49b5148acb389dd5100059b0d2ef959e1/src/com/viasat/jadeite.clj
clojure
default implementation for clojure objects that do not support metadata Default to descending through intermediate grammar nodes default:
Copyright ( c ) 2022 Viasat , Inc. Licensed under the MIT license (ns com.viasat.jadeite (:require [clojure.core.match :as match :refer [match]] [clojure.edn :as edn] [clojure.java.io :as io] [clojure.string :as string] [com.viasat.halite.base :as base] ...
22b6ba1fa30c368defa6dec6a65d6822d5b8d2bc77890642be7f7725e7584752
zwizwa/staapl
info.rkt
#lang setup/infotab * * * generated from / release * * * (define name "Staapl") (define blurb '("A collection of abstractions for metaprogramming microcontrollers.")) (define repositories '("4.x")) (define primary-file '("pic18.rkt" "staaplc.rkt" "live.rkt")) (define homepage "") (define categories '(devtools met...
null
https://raw.githubusercontent.com/zwizwa/staapl/e30e6ae6ac45de7141b97ad3cebf9b5a51bcda52/info.rkt
racket
#lang setup/infotab * * * generated from / release * * * (define name "Staapl") (define blurb '("A collection of abstractions for metaprogramming microcontrollers.")) (define repositories '("4.x")) (define primary-file '("pic18.rkt" "staaplc.rkt" "live.rkt")) (define homepage "") (define categories '(devtools met...
8f514a7ca8de3b662ccb485d507bca4900a4966258f4b8f53c002dda347250d1
janestreet/bonsai
tailwind_colors.mli
* The color palettes included in the Tailwind CSS library , taken from [ -colors ] on 2022 - 11 - 21 . The larger the number on a color , the darker it is . This library takes the approach of * not * ascribing semantic value to certain colors ; instead , it selects several " palettes " of color...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/web_ui/tailwind_colors/tailwind_colors.mli
ocaml
* The slate palette * The gray palette * The zinc palette * The neutral palette * The stone palette * The red palette * The orange palette * The amber palette * The yellow palette * The lime palette * The green palette * The emerald palette * The teal palette * The cyan palette * The sky palette * The bl...
* The color palettes included in the Tailwind CSS library , taken from [ -colors ] on 2022 - 11 - 21 . The larger the number on a color , the darker it is . This library takes the approach of * not * ascribing semantic value to certain colors ; instead , it selects several " palettes " of color...
bf62393b116c3c262b025e666be0b83fa72b02364768b463f0ea3c8c1018267b
footprintanalytics/footprint-web
exceptions.clj
(ns metabase.server.middleware.exceptions "Ring middleware for handling Exceptions thrown in API request handler functions." (:require [clojure.java.jdbc :as jdbc] [clojure.string :as str] [clojure.tools.logging :as log] [metabase.server.middleware.security :as mw.security] ...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/server/middleware/exceptions.clj
clojure
If status code was specified but other data wasn't, it's something like a if the response includes `:errors`, (e.g., it's something like a generic parameter validation exception), just return the `other-info` from the ex-data. and ex-data the write place for them
(ns metabase.server.middleware.exceptions "Ring middleware for handling Exceptions thrown in API request handler functions." (:require [clojure.java.jdbc :as jdbc] [clojure.string :as str] [clojure.tools.logging :as log] [metabase.server.middleware.security :as mw.security] ...
2bffdf257b08272a2d527a9a90ccb435cc060ccc55cbe87696c4d656e1ad9165
liqd/aula
Config.hs
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} # OPTIONS_GHC -Werror -Wall -fno - warn - orphans # module Config ( Config(Config) , ListenerConfig(..) , SmtpConfig(SmtpConfig) ...
null
https://raw.githubusercontent.com/liqd/aula/f96dbf85cd80d0b445e7d198c9b2866bed9c4e3d/src/Config.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskell # (if you are running ghci and Paths_aula is not available, try `-idist/build/autogen`.) | FIXME: move this instance upstream and remove -fno-warn-orphans for this module. | FIXME: move this ...
# LANGUAGE DeriveGeneric # # OPTIONS_GHC -Werror -Wall -fno - warn - orphans # module Config ( Config(Config) , ListenerConfig(..) , SmtpConfig(SmtpConfig) , CleanUpConfig(..) , CleanUpRule(..) , GetConfig(..), MonadReaderConfig , WarnMissing(DontWarnMissing, WarnMissing, CrashMissi...
27670a02d70be92ca1cdf2a00adf5685afc8c4b19f3989573932894d55c99d27
jyh/metaprl
nuprl_general.mli
extends Ma_strong__subtype__stuff define unfold_imax__list : "imax-list"[]{'"L"} <--> "list_accum"[]{"x", "y"."imax"[]{'"x";'"y"};"hd"[]{'"L"};"tl"[]{'"L"}} define unfold_l_interval : "l_interval"[]{'"l";'"j";'"i"} <--> "mklist"[]{"sub"[]{'"i";'"j"};"lambda"[]{"x"."select"[]{"add"[]{'"j";'"x"};'"l"}}} ...
null
https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/mesa/nuprl_general.mli
ocaml
extends Ma_strong__subtype__stuff define unfold_imax__list : "imax-list"[]{'"L"} <--> "list_accum"[]{"x", "y"."imax"[]{'"x";'"y"};"hd"[]{'"L"};"tl"[]{'"L"}} define unfold_l_interval : "l_interval"[]{'"l";'"j";'"i"} <--> "mklist"[]{"sub"[]{'"i";'"j"};"lambda"[]{"x"."select"[]{"add"[]{'"j";'"x"};'"l"}}} ...
6173bba01e7d288a86fe4563c94b06cf31ccf1a84dc1f160cba548060f7236df
ocaml-multicore/tezos
client_baking_denunciation.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_delegate/client_baking_denunciation.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > 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 , WHETH...
c9200b9ad6b51c7b2ace93d6c25e8bb286c86af1bc173d5405e8689aea20b028
troy-west/apache-kafka-number-stations-clj
serde_test.clj
(ns numbers.serde-test (:require [clojure.test :refer :all] [numbers.serdes :as serdes]) (:import (org.apache.kafka.common.serialization Serializer Deserializer))) (deftest serialize (is (= "{\"time\":1557125670789,\"type\":\"GER\",\"name\":\"85\",\"long\":-92,\"lat\":-30,\"content\":[\"eins\",\"nul...
null
https://raw.githubusercontent.com/troy-west/apache-kafka-number-stations-clj/d38b8ef57c38c056b41e1d24a2b8671479113300/test/numbers/serde_test.clj
clojure
(ns numbers.serde-test (:require [clojure.test :refer :all] [numbers.serdes :as serdes]) (:import (org.apache.kafka.common.serialization Serializer Deserializer))) (deftest serialize (is (= "{\"time\":1557125670789,\"type\":\"GER\",\"name\":\"85\",\"long\":-92,\"lat\":-30,\"content\":[\"eins\",\"nul...
3817e26a6039e83e7d3b2cd0b58103c932ebd3404fd9ef41b3069a269553d0a4
jgm/pandoc-citeproc
Embedded.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Text.CSL.Data.Embedded (localeFiles, defaultCSL, manpage, license) where import Prelude import qualified Data.ByteString.Char8 as S import Data.FileEmbed localeFiles :: [(FilePath, S.ByteString)] localeFiles = $(embedDir "locales") defaultC...
null
https://raw.githubusercontent.com/jgm/pandoc-citeproc/473378e588c40a6c3cb3b24330431b89cf4f81b4/src/Text/CSL/Data/Embedded.hs
haskell
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # module Text.CSL.Data.Embedded (localeFiles, defaultCSL, manpage, license) where import Prelude import qualified Data.ByteString.Char8 as S import Data.FileEmbed localeFiles :: [(FilePath, S.ByteString)] localeFiles = $(embedDir "locales") defaultC...
ca24b74116eb0c77274837149c86e0e695086ed790bcd4ccea66922bee40c7a8
junjihashimoto/hugs-js
DefaultSetup.hs
module Main where import Distribution.Simple main :: IO () main = defaultMain
null
https://raw.githubusercontent.com/junjihashimoto/hugs-js/5a38dbe8310b5d56746ec83c24f7a9f520fbdcd3/hugs98-Sep2006/packages/Cabal/DefaultSetup.hs
haskell
module Main where import Distribution.Simple main :: IO () main = defaultMain
a987d14f98a75d7b0eb779cfdfd5e941aa5e49d7094c8f54b8ab19cba8d59fdf
larcenists/larceny
rlist.sps
(import (scheme base) (scheme write) (tests scheme rlist) (tests scheme test)) (display "Running tests for (scheme rlist)\n") (run-rlist-tests) (report-test-results)
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/R7RS/Lib/tests/scheme/run/rlist.sps
scheme
(import (scheme base) (scheme write) (tests scheme rlist) (tests scheme test)) (display "Running tests for (scheme rlist)\n") (run-rlist-tests) (report-test-results)
136e9bad29b14f6c5aa5cb408925f23176005aa26dbb54bb7dfe776fb824ce81
biocaml/biocaml
biocaml_app_main.ml
open Core.Std open Flow open Biocaml_app_common let cmd_info = let say fmt = ksprintf (fun s -> wrap_deferred_lwt (fun () -> Lwt_io.print s)) fmt in Command_line.( basic ~summary:"Get information about files" Spec.(empty +> anon (sequence ("FILES" %: string)) ++ uses_lwt ()) (fun files -> ...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/src/tmp/biocaml_app_main.ml
ocaml
open Core.Std open Flow open Biocaml_app_common let cmd_info = let say fmt = ksprintf (fun s -> wrap_deferred_lwt (fun () -> Lwt_io.print s)) fmt in Command_line.( basic ~summary:"Get information about files" Spec.(empty +> anon (sequence ("FILES" %: string)) ++ uses_lwt ()) (fun files -> ...
84c3bb025732dc7f1f9322e374d2b420e6bd53333b9de4fbd09c46b172b455fb
Vetd-Inc/vetd-app
repl_init.clj
(ns repl-init (:require [com.vetd.app.core :as core] [figwheel-sidecar.repl-api :as fw])) #_(.setLevel ( org.slf4j.LoggerFactory/getLogger org.slf4j.Logger/ROOT_LOGGER_NAME) ch.qos.logback.classic.Level/INFO) (future (core/-main))
null
https://raw.githubusercontent.com/Vetd-Inc/vetd-app/9b33b1443b9d84d39305a63fc58119f8e014cf11/dev/clj/repl_init.clj
clojure
(ns repl-init (:require [com.vetd.app.core :as core] [figwheel-sidecar.repl-api :as fw])) #_(.setLevel ( org.slf4j.LoggerFactory/getLogger org.slf4j.Logger/ROOT_LOGGER_NAME) ch.qos.logback.classic.Level/INFO) (future (core/-main))
709ffa51d2ec79fac5d52745ec8e02d0fbf9f16ba4af501e1ac55ecf68e595a2
DHSProgram/DHS-Indicators-SPSS
CH_SIZE.sps
* Encoding: windows-1252. ***************************************************************************************************** Program: CH_SIZE.sps Purpose: Code child size variables Data inputs: KR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS by Ivana Bjelic Date last...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap10_CH/CH_SIZE.sps
scheme
* Encoding: windows-1252. ***************************************************************************************************** Program: CH_SIZE.sps Purpose: Code child size variables Data inputs: KR dataset Data outputs: coded variables Author: Shireen Assaf and translated to SPSS by Ivana Bjelic Date last...
d6081d6a2fed7b00a8a44abf00864e9b599c399388039c3f551309b2857cb776
racket/deinprogramm
tool.rkt
#lang racket/base (require racket/file racket/class racket/unit racket/contract drracket/tool mred framework string-constants) (provide tool@) (preferences:set-default 'signatures:enable-checking? #t boolean?) (define tool@ (unit (import drracket:tool^) (export drracket:tool-exports^) (define (...
null
https://raw.githubusercontent.com/racket/deinprogramm/e9fb68455641ae7d409ddb48f5e584c9d014ef4f/deinprogramm-signature/deinprogramm/signature/tool.rkt
racket
#lang racket/base (require racket/file racket/class racket/unit racket/contract drracket/tool mred framework string-constants) (provide tool@) (preferences:set-default 'signatures:enable-checking? #t boolean?) (define tool@ (unit (import drracket:tool^) (export drracket:tool-exports^) (define (...
d13c5ad697c8b7ec761a1448616dd39bb28a978a9df40067aaf7b56cc4b6cf58
facebook/pyre-check
abstractSimpleDomain.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/10c375bea52db5d10b71cb5206fac7da9549eb0c/source/domains/abstractSimpleDomain.mli
ocaml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
273e586749e09dbbfcbc74add1f086690e559167ec588665f34038b2521252a0
bobzhang/fan
ast_plc.ml
(* e.g. parent/2 *) type pred = (string * int) module Pred =struct type t = pred let compare : t -> t -> int = compare end module PredMap = Map.Make(Pred) (* terms are integers, (anonymous) variables and compound (possibly atoms) *) type term = | Integer of int * Locf.t | Var of string * Locf.t | Anon ...
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/thirdparty/plc/ast_plc.ml
ocaml
e.g. parent/2 terms are integers, (anonymous) variables and compound (possibly atoms) e.g. for same/2: +X, ?Y same and diff, cut, true and fail, etc. will also match here
type pred = (string * int) module Pred =struct type t = pred let compare : t -> t -> int = compare end module PredMap = Map.Make(Pred) type term = | Integer of int * Locf.t | Var of string * Locf.t | Anon of Locf.t | Comp of string * term list * Locf.t e.g. for sibling/2 : ( X , Y ) : - parent(Z ...