_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
2e255e5912891ce5dd9829c0531403ff583102a289dddb39036e7658034ec0e4
xvw/preface
monad.mli
(** Building a {!module:Preface_specs.Monad} *) (** {1 Using the minimal definition} *) * { 2 Using return and bind } Build a { ! module - type : Preface_specs . } using { ! module - type : Preface_specs . . WITH_RETURN_AND_BIND } . Standard method , using the minimal definition of an alt to der...
null
https://raw.githubusercontent.com/xvw/preface/51892a7ce2ddfef69de963265da3617968cdb7ad/lib/preface_make/monad.mli
ocaml
* Building a {!module:Preface_specs.Monad} * {1 Using the minimal definition} * {2 Deriving Operation} * {2 Deriving Syntax} * {2 Deriving Infix}
* { 2 Using return and bind } Build a { ! module - type : Preface_specs . } using { ! module - type : Preface_specs . . WITH_RETURN_AND_BIND } . Standard method , using the minimal definition of an alt to derive its full API . Build a {!module-type:Preface_specs.MONAD} using {!mod...
b75a8a2051fa8ba8d35b36076c0594cc1c282f0079094f0541881049cf3147f1
modular-macros/ocaml-macros
t330-compact-1.ml
open Lib;; Gc.compact ();; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 CONST0 10 C_CALL1 gc_compaction 12 ATOM0 13 SETGLOBAL T330 - compact-1 15 STOP * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 ...
null
https://raw.githubusercontent.com/modular-macros/ocaml-macros/05372c7248b5a7b1aa507b3c581f710380f17fcd/testsuite/tests/tool-ocaml/t330-compact-1.ml
ocaml
open Lib;; Gc.compact ();; * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 5 POP 1 7 9 CONST0 10 C_CALL1 gc_compaction 12 ATOM0 13 SETGLOBAL T330 - compact-1 15 STOP * 0 CONSTINT 42 2 PUSHACC0 3 MAKEBLOCK1 0 ...
847a3545dfe98feeaa251ff5f1c705b45e76024b83754924002ee799196e3ee5
alanz/ghc-exactprint
FDsFromGivens2.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleContexts , GADTs # module FDsFromGivens2 where class C a b | a -> b where cop :: a -> b -> () data KCC where KCC :: C Char Char => () -> KCC f :: C Char [a] => a -> a f = undefined bar (KCC _) = f
null
https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc80/FDsFromGivens2.hs
haskell
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , FlexibleContexts , GADTs # module FDsFromGivens2 where class C a b | a -> b where cop :: a -> b -> () data KCC where KCC :: C Char Char => () -> KCC f :: C Char [a] => a -> a f = undefined bar (KCC _) = f
0e308beaafcac3b9da1f335501e3282cd2ae3adbd433540aa805bb30837ba409
agentm/project-m36
NonEmptyList.hs
module ProjectM36.DataTypes.NonEmptyList where import ProjectM36.Base import qualified Data.Map as M import qualified Data.HashSet as HS import ProjectM36.AtomFunctionError import ProjectM36.DataTypes.List nonEmptyListAtomType :: AtomType -> AtomType nonEmptyListAtomType arg = ConstructedAtomType "NonEmptyList" (M.sin...
null
https://raw.githubusercontent.com/agentm/project-m36/f5b32001db4be8b4525d4e759e831d35a2c200f0/src/lib/ProjectM36/DataTypes/NonEmptyList.hs
haskell
module ProjectM36.DataTypes.NonEmptyList where import ProjectM36.Base import qualified Data.Map as M import qualified Data.HashSet as HS import ProjectM36.AtomFunctionError import ProjectM36.DataTypes.List nonEmptyListAtomType :: AtomType -> AtomType nonEmptyListAtomType arg = ConstructedAtomType "NonEmptyList" (M.sin...
05862a22010b0d43accf21c73efeacc73a45b33eed4f2eea9d447521290d5056
janestreet/universe
test_text_block.ml
open! Core open! Async open! Import open Text_block module Expect_test_config = Core.Expect_test_config let yoyoma : t list = [ text "yo"; text "yo"; text "ma" ] let test t = invariant t; print_endline (render t) ;; let example = let return_address = vcat [ text "Kel Varnsen" ; text "Vandelay I...
null
https://raw.githubusercontent.com/janestreet/universe/b6cb56fdae83f5d55f9c809f1c2a2b50ea213126/textutils_kernel/text_block/test/test_text_block.ml
ocaml
lines with trailing whitespace used to tickle a bug
open! Core open! Async open! Import open Text_block module Expect_test_config = Core.Expect_test_config let yoyoma : t list = [ text "yo"; text "yo"; text "ma" ] let test t = invariant t; print_endline (render t) ;; let example = let return_address = vcat [ text "Kel Varnsen" ; text "Vandelay I...
b8f503d7c795669a0c5f48e5a3a1aab906a40ea3887ae0f5a4279a18a0e128af
huangjs/cl
poker.lisp
(defpackage :poker (:use :common-lisp :lisp-unit) ) (in-package :poker) (define-test three-of-a-kind (assert-equal 'three-of-a-kind (get-hand-rank '((k h) (k c) (k d) (2 s) (3 d)))) (assert-equal 'three-of-a-kind (get-hand-rank '((2 s) (k h) (3 d) (k c) (k d)))) )
null
https://raw.githubusercontent.com/huangjs/cl/96158b3f82f82a6b7d53ef04b3b29c5c8de2dbf7/lib/other-code/cs325/www.cs.northwestern.edu/academics/courses/325/programs/poker.lisp
lisp
(defpackage :poker (:use :common-lisp :lisp-unit) ) (in-package :poker) (define-test three-of-a-kind (assert-equal 'three-of-a-kind (get-hand-rank '((k h) (k c) (k d) (2 s) (3 d)))) (assert-equal 'three-of-a-kind (get-hand-rank '((2 s) (k h) (3 d) (k c) (k d)))) )
24ad3a4b5478df1575aee2d6da5f9dd426f65f394c9f5b02d68b416c33608aa6
adomokos/haskell-katas
Ex07_FlowGuardsSpec.hs
module Solutions.Ex07_FlowGuardsSpec ( spec ) where import Test.Hspec main :: IO () main = hspec spec BMI boundaries are 18.5 , 25 , 30 bmiTell :: (Ord a, Fractional a) => a -> String bmiTell x | x < 18.5 = "You're underweight, you emo, you!" | x < 25 = "You're supposedly normal." | x < 30 = "You're fat!...
null
https://raw.githubusercontent.com/adomokos/haskell-katas/be06d23192e6aca4297814455247fc74814ccbf1/test/Solutions/Ex07_FlowGuardsSpec.hs
haskell
module Solutions.Ex07_FlowGuardsSpec ( spec ) where import Test.Hspec main :: IO () main = hspec spec BMI boundaries are 18.5 , 25 , 30 bmiTell :: (Ord a, Fractional a) => a -> String bmiTell x | x < 18.5 = "You're underweight, you emo, you!" | x < 25 = "You're supposedly normal." | x < 30 = "You're fat!...
93c64eb76eb1bdc6f449bda5e4e5f418738f19b0f5ea3a3201db325fe56f3bf6
sheaf/ghc-tcplugin-api
Term.hs
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE DataKinds #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE PolyKinds # {-# LANGUAGE QuantifiedConstraints #-} {-# LANGUAGE RankNTypes #-} {-# L...
null
https://raw.githubusercontent.com/sheaf/ghc-tcplugin-api/3e001cd22a9435850dfbc20989b11df303f0a130/examples/SystemF/src/SystemF/Term.hs
haskell
# LANGUAGE Haskell2010 # # LANGUAGE DataKinds # # LANGUAGE GADTs # # LANGUAGE QuantifiedConstraints # # LANGUAGE RankNTypes # # LANGUAGE StandaloneDeriving # # LANGUAGE TypeOperators # base system-f ---------------------------------------------------...
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE PolyKinds # # LANGUAGE StandaloneKindSignatures # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module SystemF.Term where import qualified Data.Kind as Hs import qualified Prelude ...
c78773636d4d9cd0eaa3a3579591e938bba83f0460472a0970ac42145acc0a71
Eduap-com/WordMat
linalg-utilities.lisp
Copyright 2005 by ;; This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License , ;; . ;; This software has NO WARRANTY, not even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ($put '$linalgutilities 2 '$version) (def...
null
https://raw.githubusercontent.com/Eduap-com/WordMat/83c9336770067f54431cc42c7147dc6ed640a339/Windows/ExternalPrograms/maxima-5.45.1/share/maxima/5.45.1/share/linearalgebra/linalg-utilities.lisp
lisp
This is free software; you can redistribute it and/or . This software has NO WARRANTY, not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Why both some and every? Because we want blockmatrixp(matrix()) --> false. transpose(matrix([])) => matrix(). And that's a bug. Map the l...
Copyright 2005 by modify it under the terms of the GNU General Public License , ($put '$linalgutilities 2 '$version) (defun inform (level pck msg &rest arg) (if (member level (member ($get '$infolevel pck) `($debug $verbose $silent))) (apply 'mtell `(,msg ,@arg)))) (defun $require_nonempty_matrix (...
66f3fdd1e007bc86e1866c0ea314e608f1dddddcfb050e7066c952758be57dfd
Odie/gd-edit
skill.clj
(ns gd-edit.skill (:require [gd-edit.utils :as u] [gd-edit.db-utils :as dbu] [clojure.string :as str] [gd-edit.printer :as printer] [gd-edit.globals :as globals])) (defn skills-remove-all [character] (update-in character [:skills] #(->> (take 5 %) ...
null
https://raw.githubusercontent.com/Odie/gd-edit/d1ac46fd6eb89c9571199641d9cc2f95e68d139b/src/gd_edit/skill.clj
clojure
Start at some root player record Grab a list of all available classes For each class record... Look up the record Return a mapping {'skillname' => 'skill recordname'} Merge all the maps into a large {skillname => skill-recordname} Skills with level 0 are ignored by the game Retrieve a mapping of all skills Try...
(ns gd-edit.skill (:require [gd-edit.utils :as u] [gd-edit.db-utils :as dbu] [clojure.string :as str] [gd-edit.printer :as printer] [gd-edit.globals :as globals])) (defn skills-remove-all [character] (update-in character [:skills] #(->> (take 5 %) ...
497df8d367b3a88e3ddaff915f14b6311c0431ccb3263775a8c7ea5c9e0d65f2
S8A/htdp-exercises
ex120.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 ex120) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt...
null
https://raw.githubusercontent.com/S8A/htdp-exercises/578e49834a9513f29ef81b7589b28081c5e0b69f/ex120.rkt
racket
about the language level of this file in a form that our tools can easily process. Discriminate the legal from the illegal sentences: Explain why the sentences are legal or illegal. Determine whether the legal ones belong to the category expr or def. (x) It's a single variable within parentheses, so it's not a le...
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex120) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp"))) (htdp-settings #(#t ...
980c136f54fe8e43ac5cd49a0abcbdd43a8015760200f156f9d238b6c5eef46b
SimulaVR/godot-haskell
CollisionShape2D.hs
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.CollisionShape2D (Godot.Core.CollisionShape2D._shape...
null
https://raw.githubusercontent.com/SimulaVR/godot-haskell/e8f2c45f1b9cc2f0586ebdc9ec6002c8c2d384ae/src/Godot/Core/CollisionShape2D.hs
haskell
| The actual shape owned by this collision shape. | The actual shape owned by this collision shape. | A disabled collision shape has no effect in the world. This property should be changed with @method Object.set_deferred@. | A disabled collision shape has no effect in the world. This property should be changed wit...
# LANGUAGE DerivingStrategies , GeneralizedNewtypeDeriving , TypeFamilies , TypeOperators , FlexibleContexts , DataKinds , MultiParamTypeClasses # TypeFamilies, TypeOperators, FlexibleContexts, DataKinds, MultiParamTypeClasses #-} module Godot.Core.CollisionShape2D (Godot.Core.CollisionShape2D._shape...
9ab9fd6a08a622a116a3a5cb9c297851ab9b67d86ca28df39b1111d1fade4920
YoEight/eventstore
Common.hs
-------------------------------------------------------------------------------- -- | -- Module : Database.EventStore.Internal.Operation.Write.Common Copyright : ( C ) 2015 -- License : (see the file LICENSE) -- Maintainer : < > -- Stability : provisional -- Portability : non-portable -- ----------------------...
null
https://raw.githubusercontent.com/YoEight/eventstore/8ca0f72acfc85b97de0a1862d38ee6e9f2ae2e4c/Database/EventStore/Internal/Operation/Write/Common.hs
haskell
------------------------------------------------------------------------------ | Module : Database.EventStore.Internal.Operation.Write.Common License : (see the file LICENSE) Stability : provisional Portability : non-portable ------------------------------------------------------------------------------ --------...
Copyright : ( C ) 2015 Maintainer : < > module Database.EventStore.Internal.Operation.Write.Common where import Data.Int import Database.EventStore.Internal.Control (freshUUID) import Database.EventStore.Internal.Prelude import Database.EventStore.Internal.Types data WriteResult = WriteResult { wr...
cf19ee8ab6f45cc069990b30a512fa478bf678c41a3743f516ffb1d9d550fb40
mbj/stratosphere
PropertyGroupProperty.hs
module Stratosphere.KinesisAnalyticsV2.Application.PropertyGroupProperty ( PropertyGroupProperty(..), mkPropertyGroupProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.V...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/kinesisanalyticsv2/gen/Stratosphere/KinesisAnalyticsV2/Application/PropertyGroupProperty.hs
haskell
module Stratosphere.KinesisAnalyticsV2.Application.PropertyGroupProperty ( PropertyGroupProperty(..), mkPropertyGroupProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.V...
b3a734e19299669b2af523940191fdbee352b7260c45703898df3d012225bf30
cb125/Dynamics
04-heim-presup-pointwise.hs
Heim 1983 , presup only , pointwise presup projection implemented as lazy logical operators which are pure wrt presup failure import Control.Monad.Reader import Control.Monad.Trans.Maybe type M a = MaybeT (Reader Int) a mand, mor, mif :: M Bool -> M Bool -> M Bool mand ml mr = ml >>= (\l -> if l then mr else ...
null
https://raw.githubusercontent.com/cb125/Dynamics/9256ea900599bb2d7391c171ac87be80854cb188/Materials/04-heim-presup-pointwise.hs
haskell
backwards function application predicate modification presupposes singleton extension run s1 ~~> [Just False,Just True,Just True,Just True,Just True] run s2 ~~> [Just True,Just True,Just False,Just False,Just False] the allowable number is odd run s3 ~~> [Nothing,Just True,Nothing,Nothing,Nothing] run s4 ~~> [J...
Heim 1983 , presup only , pointwise presup projection implemented as lazy logical operators which are pure wrt presup failure import Control.Monad.Reader import Control.Monad.Trans.Maybe type M a = MaybeT (Reader Int) a mand, mor, mif :: M Bool -> M Bool -> M Bool mand ml mr = ml >>= (\l -> if l then mr else ...
6fc231f73f03a58b0d45a7a09f35b2cb905ef19a9ec52f6ddb307c26ab3d4dcb
Cognician/datomic-doc
search.cljs
(ns cognician.datomic-doc.client.components.search (:require [cljs.core.async :refer [chan put!]] [clojure.string :as string] [cognician.datomic-doc.client.common :as common] [cognician.datomic-doc.client.util :as util] [datascript.core :as d] [rum.core :as ...
null
https://raw.githubusercontent.com/Cognician/datomic-doc/93b52e5778a1e1083c4f7b333518bfc8c344a725/src/cognician/datomic_doc/client/components/search.cljs
clojure
Data preparation UI Components
(ns cognician.datomic-doc.client.components.search (:require [cljs.core.async :refer [chan put!]] [clojure.string :as string] [cognician.datomic-doc.client.common :as common] [cognician.datomic-doc.client.util :as util] [datascript.core :as d] [rum.core :as ...
5462231b2a77202ca1cd4c831577d45ae1913c59651c7304726d30cf528e0905
kind2-mc/kind2
yicesNative.ml
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
null
https://raw.githubusercontent.com/kind2-mc/kind2/b918553cc0215c3ade519c33db41cd88068704a8/src/smt/yicesNative.ml
ocaml
********************************************************************* Types ********************************************************************* Map of sexprs to store models Configuration Command line arguments for the ...
This file is part of the Kind 2 model checker . Copyright ( c ) 2015 by the Board of Trustees of the University of Iowa 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 a...
981a54a0d76351e2358b1368c4490aef9781ceadbf5ee318bc8e2bfc96cc9935
clojure-interop/java-jdk
PrivateClassLoader.clj
(ns javax.management.loading.PrivateClassLoader "Marker interface indicating that a ClassLoader should not be added to the ClassLoaderRepository. When a ClassLoader is registered as an MBean in the MBean server, it is added to the MBean server's ClassLoaderRepository unless it implements this interface." (...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.management/src/javax/management/loading/PrivateClassLoader.clj
clojure
(ns javax.management.loading.PrivateClassLoader "Marker interface indicating that a ClassLoader should not be added to the ClassLoaderRepository. When a ClassLoader is registered as an MBean in the MBean server, it is added to the MBean server's ClassLoaderRepository unless it implements this interface." (...
6e2946e295c43d25b361c865b36e8236311155824369b3eeab7b6e73e43d07bc
rtoy/ansi-cl-tests
package-used-by-list.lsp
;-*- Mode: Lisp -*- Author : Created : Sun Feb 22 06:56:28 2004 ;;;; Contains: Tests of PACKAGE-USED-BY-LIST (in-package :cl-test) ;;; Most tests of this function are in files for other package-related operators Specialized sequence tests (defmacro def-package-used-by-list-test (test-name name-form...
null
https://raw.githubusercontent.com/rtoy/ansi-cl-tests/9708f3977220c46def29f43bb237e97d62033c1d/package-used-by-list.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of PACKAGE-USED-BY-LIST Most tests of this function are in files for other package-related operators Error tests
Author : Created : Sun Feb 22 06:56:28 2004 (in-package :cl-test) Specialized sequence tests (defmacro def-package-used-by-list-test (test-name name-form) `(deftest ,test-name (let ((name ,name-form)) (safely-delete-package name) (let ((p (make-package name :use nil))) (p...
e0e131763e6c492b4140fe8428e9137d47bba702acb7aeb001d7cf201c8afc24
agocorona/TCache
Paths_TCache.hs
# LANGUAGE CPP # # LANGUAGE NoRebindableSyntax # # OPTIONS_GHC -fno - warn - missing - import - lists # module Paths_TCache ( version, getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getDataFileName, getSysconfDir ) where import qualified Control.Exception as Exception import Data.Version ...
null
https://raw.githubusercontent.com/agocorona/TCache/72158de657f72c3b480cea1878b5cebfbfd65d13/dist/build/autogen/Paths_TCache.hs
haskell
# LANGUAGE CPP # # LANGUAGE NoRebindableSyntax # # OPTIONS_GHC -fno - warn - missing - import - lists # module Paths_TCache ( version, getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir, getDataFileName, getSysconfDir ) where import qualified Control.Exception as Exception import Data.Version ...
72932340febc2dd20b8488c17782f723fbe3668649a2d262897d838edcf8a12e
anmonteiro/ocaml-h2
lwt_post.ml
open H2 let response_handler notify_response_received response response_body = match Response.(response.status) with | `OK -> let rec read_response () = Body.Reader.schedule_read response_body ~on_eof:(fun () -> Lwt.wakeup_later notify_response_received ()) ~on_read:(fun response_...
null
https://raw.githubusercontent.com/anmonteiro/ocaml-h2/2f58d12d2d081429500eeeabe07ea3a55dedec0a/examples/lwt/lwt_post.ml
ocaml
open H2 let response_handler notify_response_received response response_body = match Response.(response.status) with | `OK -> let rec read_response () = Body.Reader.schedule_read response_body ~on_eof:(fun () -> Lwt.wakeup_later notify_response_received ()) ~on_read:(fun response_...
1ecdb33780acf0d358a840c8f101d2b28adf43903c08da8698f258bdee493e9e
input-output-hk/plutus-apps
Assert.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -Wno-redundant-constrain...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/4b516499f6305643cf90001f89e8f044672a5201/plutus-contract/src/Plutus/Trace/Effects/Assert.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # OPTIONS_GHC -Wno-redundant-constraints # An effect for assertion that the specified condition holds.
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE TypeApplications # module Plutus.Trace.Effects.Assert( Assert(..) , assert , handleAssert ) where import Control.Monad (unless) import Control.Monad.Free...
9256b95d3ba0ab74669a6ad5a8477cd94dcd2a8361b5b076a38dbf9ceb81dfca
csw/lc2k-scheme
util.rkt
#lang racket (provide tagged-list? immed-const? env-symbols *trace-compilation* *trace-flags* tracing?) ;; env-symbols: string -> list-of-symbols ;; Parse a list of symbols from an environment variable . (define (env-symbols var) (let ([value (getenv var)]) (if value (map string->symbol (str...
null
https://raw.githubusercontent.com/csw/lc2k-scheme/54c3372f67c8b9cd9d155d843871dd99c3ea288a/util.rkt
racket
env-symbols: string -> list-of-symbols *trace-compilation*: true when compilation of the current function should be traced. an immediate literal: integer, char, boolean, or empty
#lang racket (provide tagged-list? immed-const? env-symbols *trace-compilation* *trace-flags* tracing?) Parse a list of symbols from an environment variable . (define (env-symbols var) (let ([value (getenv var)]) (if value (map string->symbol (string-split value)) empty))) (define...
e1201d372ed3cddbe1517627e1d2b2b580943c3f02c5b3ea7c9f3c986af59517
webyrd/n-grams-for-synthesis
unspecified.scm
Copyright ( C ) ( 2017 ) . All Rights Reserved . ;; Permission is hereby granted, free of charge, to any person ;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to deal in the Software without ;; restriction, including without limitation the rights to use, copy, ...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-157/lib/inferior/unspecified.scm
scheme
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies furnished to do so, subject to the following conditions: ...
Copyright ( C ) ( 2017 ) . All Rights Reserved . files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
c099eb879ba26afac7a316e5a88925e3947fbbb642c530eadddd0b0fdbc2e784
aantron/luv
rwlock.ml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t = C.Types.Rwlock.t Ctypes.ptr let init () = let rwlock = Ctypes.addr (Ctypes.make C.Types.Rwlock.t) in C.Functions.Rwlock.init rwlock |> Error.to_result rwlock let dest...
null
https://raw.githubusercontent.com/aantron/luv/4b49d3edad2179c76d685500edf1b44f61ec4be8/src/rwlock.ml
ocaml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t = C.Types.Rwlock.t Ctypes.ptr let init () = let rwlock = Ctypes.addr (Ctypes.make C.Types.Rwlock.t) in C.Functions.Rwlock.init rwlock |> Error.to_result rwlock let dest...
d7ab3c83414b1adbe563ac8780d85dfe437b38bb14606dcf184fd3ff9cbdf198
fstamour/breeze
refactor.lisp
(cl:in-package #:common-lisp-user) (defpackage #:breeze.test.refactor (:use :cl #:breeze.refactor) ;; Importing non-exported symbols of the "package under test" (:import-from #:breeze.refactor #:augment-context-by-parsing-the-buffer) (:import-from #:breeze.command #:cancel-comma...
null
https://raw.githubusercontent.com/fstamour/breeze/e76ce087980fdb30a4124c77177d06748ad5c73e/tests/refactor.lisp
lisp
Importing non-exported symbols of the "package under test" Types of node Type predicates Make sure it's ok to run a new command. We start by calling the function (the command), this will start a new thread that will either return "done" and exit, or return another request and wait for more inputs. We call conti...
(cl:in-package #:common-lisp-user) (defpackage #:breeze.test.refactor (:use :cl #:breeze.refactor) (:import-from #:breeze.refactor #:augment-context-by-parsing-the-buffer) (:import-from #:breeze.command #:cancel-command #:continue-command #:context-...
1e70374884f1278863ff8cd19aa2af936a78a1aa4404bb4efff1e6eee0815bfe
vmchale/kempe
AST.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} # LANGUAGE DeriveGeneric # {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE OverloadedStrings #-} -- | Frontend AST module Kempe.AST ( ConsAnn (..) , Atom (..) , BuiltinFn (..)...
null
https://raw.githubusercontent.com/vmchale/kempe/23d59cb9343902aae33140e2b68ac0e4ab0a60a0/src/Kempe/AST.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveFoldable # # LANGUAGE DeriveFunctor # # LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # | Frontend AST * I resent this... | Annotation carried on constructors to keep size information through the IR generation phase. a constructed pattern ShortByt...
# LANGUAGE DeriveGeneric # module Kempe.AST ( ConsAnn (..) , Atom (..) , BuiltinFn (..) , KempeDecl (..) , Pattern (..) , Declarations , Module (..) , ABI (..) , BuiltinTy (..) ...
e269c89def4f4a5aa65ca573251c48d3bfe7854cd1843fd6405367cbbbbe505b
mentat-collective/emmy
frames.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.sr.frames (:refer-clojure :exclude [+ - * /]) (:require [emmy.calculus.frame :as cf] [emmy.calculus.manifold :as m] [emmy.generic :as g :refer [+ - * /]] [emmy.sr.boost :as b] [emmy.structure :as s])) ;; ## Special-relat...
null
https://raw.githubusercontent.com/mentat-collective/emmy/90a1de10e78187c70d546c3cfd63c8d32b783bed/src/emmy/sr/frames.cljc
clojure
## Special-relativity frames boost magnitude and a unit-vector boost direction, relative to the ancestor frame, and the position of the origin of the frame being defined in the ancestor frame. The events are absolute, in that it is always possible to compare them to relative to some arbitrary absolute frame, "t...
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.sr.frames (:refer-clojure :exclude [+ - * /]) (:require [emmy.calculus.frame :as cf] [emmy.calculus.manifold :as m] [emmy.generic :as g :refer [+ - * /]] [emmy.sr.boost :as b] [emmy.structure :as s])) A frame is define...
ddc89c4ed68100dcd8855ca0b2c988e99609a801edb64faee89dd72ccd85f0a8
HealthSamurai/unit-map
defs.cljc
(ns unit-map.systems.date-time.defs) (defn leap-year? [{:keys [year]}] (and (zero? (rem year 4)) (or (pos? (rem year 100)) (zero? (rem year 400))))) (defn days-in-month [{:as date, :keys [month year]}] (cond (some nil? [month year]) ##Inf (contains? #{4 6 9 11} month) ...
null
https://raw.githubusercontent.com/HealthSamurai/unit-map/eb90c2c427c2fb0f48cb54e58d1565f3255ec16d/src/unit_map/systems/date_time/defs.cljc
clojure
(ns unit-map.systems.date-time.defs) (defn leap-year? [{:keys [year]}] (and (zero? (rem year 4)) (or (pos? (rem year 100)) (zero? (rem year 400))))) (defn days-in-month [{:as date, :keys [month year]}] (cond (some nil? [month year]) ##Inf (contains? #{4 6 9 11} month) ...
c306851bf6d3138f2fc20236068c8b9bd473daf117dfb3f17af982a313269c59
CryptoKami/cryptokami-core
DisplayError.hs
module Lang.DisplayError ( ppArgumentError , ppEvalError , ppTypeError , ppTypeName , ppParseError , ppProcError , renderAuxxDoc ) where import Universum hiding (empty, (<$>)) import qualified Data.List.NonEmpty as NE import qualified Text.PrettyPrint.ANSI.Leijen import ...
null
https://raw.githubusercontent.com/CryptoKami/cryptokami-core/12ca60a9ad167b6327397b3b2f928c19436ae114/auxx/src/Lang/DisplayError.hs
haskell
returned line number bigger than the actual amount of lines in the input text. it's fine
module Lang.DisplayError ( ppArgumentError , ppEvalError , ppTypeError , ppTypeName , ppParseError , ppProcError , renderAuxxDoc ) where import Universum hiding (empty, (<$>)) import qualified Data.List.NonEmpty as NE import qualified Text.PrettyPrint.ANSI.Leijen import ...
7a5778d643c6f0d8a3e3cb52ec1037610b6dc7f7054a619e44bbe62ae4c2d76f
rtrusso/scp
interp.scm
(define (sasm-interp-symconst-machine-params) (sasm-symconst-alist-append '((cells-per-word 1) (shift-cells-per-word 0) (mask-cells-per-word 0) (bits-per-word 32) (shift-bits-per-word 5...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/sasm/tx/interp.scm
scheme
(define (sasm-interp-symconst-machine-params) (sasm-symconst-alist-append '((cells-per-word 1) (shift-cells-per-word 0) (mask-cells-per-word 0) (bits-per-word 32) (shift-bits-per-word 5...
cad33281775b973c3f3873bedd236e7ef188ea066e69609200427bec60efa0e3
troy-west/thimble
thimble.clj
(ns troy-west.thimble (:require [troy-west.thimble.kafka] [troy-west.thimble.zookeeper] [troy-west.thimble.cassandra] [troy-west.arche.integrant] [troy-west.arche.hugcql] [integrant.core :as ig])) (defn start ([] (start {:thimble/zookeeper.server {} ...
null
https://raw.githubusercontent.com/troy-west/thimble/e962bba6dac85eecd9a5e0abfca6faf2bdd11a5e/src/troy_west/thimble.clj
clojure
(ns troy-west.thimble (:require [troy-west.thimble.kafka] [troy-west.thimble.zookeeper] [troy-west.thimble.cassandra] [troy-west.arche.integrant] [troy-west.arche.hugcql] [integrant.core :as ig])) (defn start ([] (start {:thimble/zookeeper.server {} ...
995b6247a0a222180517e3e22b95058fcc981281e704ae2d51549a7a40064b7e
Opetushallitus/ataru
client.clj
(ns ataru.cas.client (:require [ataru.config.url-helper :refer [resolve-url]] [ataru.config.core :refer [config]] [ataru.util.http-util :as http-util] [cheshire.core :as json]) (:import [fi.vm.sade.utils.cas CasClient CasParams] [org.http4s.client.blaze package$])) (d...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/3e60a49dc2980903c5702fa91e74bb059a4366bd/src/clj/ataru/cas/client.clj
clojure
(ns ataru.cas.client (:require [ataru.config.url-helper :refer [resolve-url]] [ataru.config.core :refer [config]] [ataru.util.http-util :as http-util] [cheshire.core :as json]) (:import [fi.vm.sade.utils.cas CasClient CasParams] [org.http4s.client.blaze package$])) (d...
2d3bc7f7beb39c7909b78158384e3c740af09ac5edb67cca0af3a0bdc31e2e69
tcsprojects/pgsolver
stratimprsat.ml
open Paritygame ;; open Basics ;; open Univsolve ;; open Tcstiming;; open Satwrapper;; open Transformations;; type vars = | Strategy of (int * int) | Winning of int | WorstPathSet of (int * int) | CompPathSet of (int * int * int) | LowerNode of (int * int) let msg_tagged v = message_autotagged v (fun _ -> "STRATIMP...
null
https://raw.githubusercontent.com/tcsprojects/pgsolver/b0c31a8b367c405baed961385ad645d52f648325/src/solvers/stratimprsat.ml
ocaml
Strategy Path Sets Winning Set Ordering Final Ordering
open Paritygame ;; open Basics ;; open Univsolve ;; open Tcstiming;; open Satwrapper;; open Transformations;; type vars = | Strategy of (int * int) | Winning of int | WorstPathSet of (int * int) | CompPathSet of (int * int * int) | LowerNode of (int * int) let msg_tagged v = message_autotagged v (fun _ -> "STRATIMP...
b2d7574556c18ad34aeb42eb8f63736bdb5b2aa0d433b47606ab4fa68c66a611
heyoka/faxe
faxe_sup.erl
%%%------------------------------------------------------------------- %% @doc faxe top level supervisor. %% @end %%%------------------------------------------------------------------- -module(faxe_sup). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks -export([init/1]). -define(SERV...
null
https://raw.githubusercontent.com/heyoka/faxe/ababc83603e28746cfa60344d7cca78832e3a0eb/apps/faxe/src/faxe_sup.erl
erlang
------------------------------------------------------------------- @doc faxe top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ==================================...
-module(faxe_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> Procs = [ { faxe_peer_manag...
18b81890d723d4ce6c08b0cfcf679d14d2648b086d7ea1e355861ba739e68571
2600hz-archive/whistle
vararg.erl
Copyright 2010 - 2011 < > , < > and < > %%% This file is part of PropEr . %%% %%% PropEr 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 o...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/lib/proper-1.0/src/vararg.erl
erlang
PropEr is free software: you can redistribute it and/or modify (at your option) any later version. PropEr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License fo...
Copyright 2010 - 2011 < > , < > and < > This file is part of PropEr . it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Pub...
11fabd50cbdf6e27d41293f771304219607e073399311f41d46cdf184a387ca9
elastic/eui-cljs
icon_app_packetbeat.cljs
(ns eui.icon-app-packetbeat (:require ["@elastic/eui/lib/components/icon/assets/app_packetbeat.js" :as eui])) (def appPacketbeat eui/icon)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/icon_app_packetbeat.cljs
clojure
(ns eui.icon-app-packetbeat (:require ["@elastic/eui/lib/components/icon/assets/app_packetbeat.js" :as eui])) (def appPacketbeat eui/icon)
fd6737fc2bd688413cc021ea85cb71a2733d689653e751e9e3aaa71984ba05ae
ocsigen/eliom
eliom_runtime.shared.ml
Ocsigen * * Copyright ( C ) CNRS Univ * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at ...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_runtime.shared.ml
ocaml
*/* Client side-only Client side-only Client side-only Client side-only (event -> bool) client_value "caml_closure" "caml_process_node" "data-eliom-node-id" "caml_closure_id" !!! This prefix has to be different from any other prefix attrib client_value attrib client_value the data sent on channels
Ocsigen * * Copyright ( C ) CNRS Univ * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , with linking exception ; * either version 2.1 of the License , or ( at ...
6769a1dfd2e1560f2d05597ba77d597c0f64c89e01f7ba4d35af1d1090347941
lambdacms/lambdacms
ActionLog.hs
{-# LANGUAGE KindSignatures #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module LambdaCms.Core.Handler.ActionLog ( getActionLogAdminIndexR , getActionLogAdminUserR...
null
https://raw.githubusercontent.com/lambdacms/lambdacms/3b9cd54f8f168d6c984d29d944895d7d742e30b9/lambdacms-core/LambdaCms/Core/Handler/ActionLog.hs
haskell
# LANGUAGE KindSignatures # # LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE RankNTypes # | REST/JSON endpoint for fetching the recent logs. | REST/JSON endpoint for fetching the recent logs of a particular user.
# LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # module LambdaCms.Core.Handler.ActionLog ( getActionLogAdminIndexR , getActionLogAdminUserR ) where import Data.Int (Int64) import Data.List (intersect) import Data.Lists ...
d757ec392463d32a5835e66df2c40caaf2ef63dba72750d1e969caeb6583e4b8
kawasima/supreme-uploading
project.clj
(defproject supreme-uploading "0.1.0-SNAPSHOT" :description "Supreme uploading in 2015" :url "-uploading" :min-lein-version "2.0.0" :source-paths ["src/clj"] :java-source-paths ["src/java"] :javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"] :dependencies [[org.clojure/clojure "1.7.0"] ...
null
https://raw.githubusercontent.com/kawasima/supreme-uploading/35837b737719f7cca9f5a7ff67f21f486100331b/project.clj
clojure
jpa cljs
(defproject supreme-uploading "0.1.0-SNAPSHOT" :description "Supreme uploading in 2015" :url "-uploading" :min-lein-version "2.0.0" :source-paths ["src/clj"] :java-source-paths ["src/java"] :javac-options ["-target" "1.8" "-source" "1.8" "-Xlint:-options"] :dependencies [[org.clojure/clojure "1.7.0"] ...
01b47619daa974d7822af4e287580faed54a8557dd9eceacfbf80851e812f616
threatgrid/ctia
indicator.clj
(ns ctia.entity.indicator (:require [ctia.domain.entities :refer [default-realize-fn]] [ctia.entity.feedback.graphql-schemas :as feedback] [ctia.entity.relationship.graphql-schemas :as relationship] [ctia.http.routes.common :as routes.common] [ctia.http.routes.crud :refer [services->entity-crud-routes]...
null
https://raw.githubusercontent.com/threatgrid/ctia/30d0986fd66e6ad337915faedb8057452c5b7a81/src/ctia/entity/indicator.clj
clojure
(ns ctia.entity.indicator (:require [ctia.domain.entities :refer [default-realize-fn]] [ctia.entity.feedback.graphql-schemas :as feedback] [ctia.entity.relationship.graphql-schemas :as relationship] [ctia.http.routes.common :as routes.common] [ctia.http.routes.crud :refer [services->entity-crud-routes]...
df9964578f40e6f7f5dffee51222254f2cb4bb8c17273844d015029ce676ec4e
Vagabond/erlang-rrdtool
rrdtool.erl
Copyright 2009 < > . 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 code must retain the above copyright notice, %%% this list of conditions ...
null
https://raw.githubusercontent.com/Vagabond/erlang-rrdtool/97bc2460f1cb52ece5b600d91a55262aa2c9485c/src/rrdtool.erl
erlang
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 code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form...
Copyright 2009 < > . All rights reserved . THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ` ` AS IS '' AND ANY EXPRESS OR EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREME...
58e97119d4370a701d3e22ab09ec867c2ed61f16fb7f0aa71ddea0563086d97d
lsrcz/grisette
TabularFun.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeOperators # -- | Module : . IR.SymPrim . Data . Prim . PartialEval . Copyright : ( c ) 2021 - 2023 -- License : BSD-3-Clause (see the LICENSE file) -- -- Maintainer : -- Stabili...
null
https://raw.githubusercontent.com/lsrcz/grisette/51d492f60fb37b74a626b591ec4c7ed128fa6217/src/Grisette/IR/SymPrim/Data/Prim/PartialEval/TabularFun.hs
haskell
# LANGUAGE RankNTypes # | License : BSD-3-Clause (see the LICENSE file) Maintainer : Stability : Experimental
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # Module : . IR.SymPrim . Data . Prim . PartialEval . Copyright : ( c ) 2021 - 2023 Portability : GHC only module Grisette.IR.SymPrim.Data.Prim.PartialEval.TabularFun ( pevalTabularFunApplyTerm, )...
7f57166cde69942b13c6f6f0fe9316808cacd51b5af02c706abf7c6c2474a7a7
Clozure/ccl-tests
update-instance-for-different-class.lsp
;-*- Mode: Lisp -*- Author : Created : Mon May 5 19:32:56 2003 ;;;; Contains: Tests for UPDATE-INSTANCE-FOR-DIFFERENT-CLASS (in-package :cl-test) (defclass uifdc-class-01a () ((a :initarg :a) (b :initarg :b))) (defclass uifdc-class-01b () (a b)) (declaim (special *uifdc-01-obj*)) (defmethod update-...
null
https://raw.githubusercontent.com/Clozure/ccl-tests/0478abddb34dbc16487a1975560d8d073a988060/ansi-tests/update-instance-for-different-class.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests for UPDATE-INSTANCE-FOR-DIFFERENT-CLASS after method
Author : Created : Mon May 5 19:32:56 2003 (in-package :cl-test) (defclass uifdc-class-01a () ((a :initarg :a) (b :initarg :b))) (defclass uifdc-class-01b () (a b)) (declaim (special *uifdc-01-obj*)) (defmethod update-instance-for-different-class ((from-obj uifdc-class-01a) (to-obj uifdc-class-01b...
b6ac63eb57cdff21452bb17569bd12958775208108a12c7ff1165547f6dc6048
zenspider/schemers
exercise.4.26.scm
#!/usr/bin/env csi -s (require rackunit) Exercise 4.26 and disagree over ;; the importance of lazy evaluation for implementing things such as ` unless ' . points out that it 's possible to implement ` unless ' in applicative order as a special form . counters that , if ;; one did that, `unless' wo...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_4/exercise.4.26.scm
scheme
the importance of lazy evaluation for implementing things such as one did that, `unless' would be merely syntax, not a procedure that could be used in conjunction with higher-order procedures. Fill in the details on both sides of the argument. Show how to implement `unless' as a derived expression (like `cond' or...
#!/usr/bin/env csi -s (require rackunit) Exercise 4.26 and disagree over ` unless ' . points out that it 's possible to implement ` unless ' in applicative order as a special form . counters that , if
d0cae7a6c3b55f6e0fd5fe5c2022dde728dc52448feca704d5989712ccf18055
deadpendency/deadpendency
VerifyPlanBackend.hs
module RP.Effect.VerifyPlan.Backend.VerifyPlanBackend (validatePlan) where import Common.Effect.CacheExternal.CacheExternal import Common.Effect.GitHub.CountPrivateInstalls.CountPrivateInstalls import Common.Effect.GitHub.DetermineAccountPlan.DetermineAccountPlan import Common.Model.Config.AppEnv import Common.Model.P...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/run-preparer/src/RP/Effect/VerifyPlan/Backend/VerifyPlanBackend.hs
haskell
abort if not prod abort if private abort if we cached a success
module RP.Effect.VerifyPlan.Backend.VerifyPlanBackend (validatePlan) where import Common.Effect.CacheExternal.CacheExternal import Common.Effect.GitHub.CountPrivateInstalls.CountPrivateInstalls import Common.Effect.GitHub.DetermineAccountPlan.DetermineAccountPlan import Common.Model.Config.AppEnv import Common.Model.P...
3e7a86b2632b843f7478b92d2c27a5442b1c8013f21a512d39b1bb80da3d1b68
poroh/ersip_proxy
erproxy_registrar_sup.erl
%% Copyright ( c ) 2018 Dmitry Poroh %% All rights reserved. Distributed under the terms of the MIT License . See the LICENSE file . %% Registrar processes supervisor %% -module(erproxy_registrar_sup). -behaviour(supervisor). -export([start_link/0, start_process/2, init/1 ]). %%=====...
null
https://raw.githubusercontent.com/poroh/ersip_proxy/8a67e676e255c07a63b88b970ef82ed4762debcb/apps/erproxy/src/erproxy_registrar_sup.erl
erlang
All rights reserved. ==================================================================== API functions ==================================================================== ==================================================================== Supervisor callbacks ===================================================...
Copyright ( c ) 2018 Dmitry Poroh Distributed under the terms of the MIT License . See the LICENSE file . Registrar processes supervisor -module(erproxy_registrar_sup). -behaviour(supervisor). -export([start_link/0, start_process/2, init/1 ]). start_link() -> supervisor:start_lin...
648783f2d648fe42a70490c168d9e7a5c845857ead7049b7fccc9c15789a1371
artyom-poptsov/guile-ics
stream-context.scm
stream-context.scm -- Context for the iCalendar stream FSM . Copyright ( C ) 2022 < > ;; ;; 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 yo...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-ics/a590683208bc6dcda80c7b9bc1e615ad69c7b138/modules/ics/fsm/stream-context.scm
scheme
This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public ...
stream-context.scm -- Context for the iCalendar stream FSM . Copyright ( C ) 2022 < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License (define-...
42c8c0c709b43a4d3c0be0b6236a844f10b2a447c482bcddc1280f5d9a5a86e0
kepler16/gx.cljc
nested_components_test.cljc
(ns k16.gx.beta.nested-components-test (:require [k16.gx.beta.core :as gx] [k16.gx.beta.impl :as impl] #?(:clj [clojure.test :as t :refer [deftest is]]) #?@(:cljs [[cljs.test :as t :refer-macros [deftest is]]]))) (def ^:export nested-level-2 {:l2/start {:gx/processor identity} ...
null
https://raw.githubusercontent.com/kepler16/gx.cljc/ff44a98e7e1d826b4fe50ced3115dbe283b1a031/test/k16/gx/beta/nested_components_test.cljc
clojure
(ns k16.gx.beta.nested-components-test (:require [k16.gx.beta.core :as gx] [k16.gx.beta.impl :as impl] #?(:clj [clojure.test :as t :refer [deftest is]]) #?@(:cljs [[cljs.test :as t :refer-macros [deftest is]]]))) (def ^:export nested-level-2 {:l2/start {:gx/processor identity} ...
1132833687fbed131535889170148165a99b8bba05e0b1cda79b8e6f2a3c1215
Kappa-Dev/KappaTools
evaluator.ml
(******************************************************************************) (* _ __ * The Kappa Language *) | |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF (* | ' / ********************************************************************...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/grammar/evaluator.ml
ocaml
**************************************************************************** _ __ * The Kappa Language | ' / ******************************************************************** | . \ * This file is distributed under the terms of the |_|\_\ * GN...
| |/ / * Copyright 2010 - 2020 CNRS - Harvard Medical School - INRIA - IRIF let do_interactive_directives ~debugMode ~outputs ~sharing ~syntax_version contact_map env counter graph state e = let warning ~pos msg = outputs (Data.Warning (Some pos,msg)) in let cc_preenv = Pattern.PreEnv.of_env (Model.dom...
b6254f65869739650945af893402ec2cb18ab7f04c9f1a17eef8b8c9257e74f1
jonasrichard/ejson
ejson_ext2.erl
-module(ejson_ext2). -json_include(ejson_ext3). %% Will see the group record because of json_include -json({user, {record, group, [{type, group}]}}).
null
https://raw.githubusercontent.com/jonasrichard/ejson/5838272523e7acb9012c7c5334bad98c69b481af/test/ejson_ext2.erl
erlang
Will see the group record because of json_include
-module(ejson_ext2). -json_include(ejson_ext3). -json({user, {record, group, [{type, group}]}}).
2b7a152bb8b98cb1f9852447303093a9914ad5fc8104190fe7d762927070fcbc
triffon/fp-2019-20
a-tests.rkt
#lang racket (require rackunit) (require "describe.rkt") (display "=== a - 1 ===\n") (describe product-digits (check-equal? (product-digits 2) 2) (check-equal? (product-digits 123) 6) (check-equal? (product-digits 321) 6) (check-equal? (product-digits 3210) 0) (check-equal? (product-digits 76398743) 762048)...
null
https://raw.githubusercontent.com/triffon/fp-2019-20/7efb13ff4de3ea13baa2c5c59eb57341fac15641/exercises/computer-science-2/exam-01/a-tests.rkt
racket
tricky corner case
#lang racket (require rackunit) (require "describe.rkt") (display "=== a - 1 ===\n") (describe product-digits (check-equal? (product-digits 2) 2) (check-equal? (product-digits 123) 6) (check-equal? (product-digits 321) 6) (check-equal? (product-digits 3210) 0) (check-equal? (product-digits 76398743) 762048)...
4507927b981115d933c7700ade12a46e230de005589b129c9189880026a4728a
mfp/obigstore
obs_weak_ref.ml
* Copyright ( C ) 2011 - 2012 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
null
https://raw.githubusercontent.com/mfp/obigstore/1b078eeb21e11c8de986717150c7108a94778095/src/core/obs_weak_ref.ml
ocaml
* Copyright ( C ) 2011 - 2012 < > * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version 2.1 of the License , or ( at your option ) any later version , ...
bf81eeaa23ed7068dd0a9d8e0a8ed68b967471e0ae3a40919d89881d86947453
ragkousism/Guix-on-Hurd
w3m.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 < > Copyright © 2016 < > Copyright © 2016 > Copyright © 2016 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License ...
null
https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/w3m.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 < > Copyright © 2016 < > Copyright © 2016 > Copyright © 2016 < > 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 (gnu packages w3m) #...
90f3feb9a4734e5122049779ed17fdd71213d9655c4b50a0def5c6aa6b6235ad
Gandalf-/coreutils
Fold.hs
module Coreutils.Fold where import Coreutils.Util import Data.Char import System.Console.GetOpt data Fold = Fold instance Util Fold where run _ _ = undefined folder :: Options -> String -> String folder os xs = go 0 (optWidth os) ixs where ixs = zip pos xs ...
null
https://raw.githubusercontent.com/Gandalf-/coreutils/17b2d66f97a0ba714f0fd731ff7d8f796fc9d968/Coreutils/Fold.hs
haskell
| Options
module Coreutils.Fold where import Coreutils.Util import Data.Char import System.Console.GetOpt data Fold = Fold instance Util Fold where run _ _ = undefined folder :: Options -> String -> String folder os xs = go 0 (optWidth os) ixs where ixs = zip pos xs ...
dcc67c53d190c905901afd32ab89b46a896649cf5e0bf96080467e1b6c7a29c5
mariachris/Concuerror
ets_ref_keys.erl
Dpor should be able to detect dependencies based on %% dynamic data (e.g. the key for the table). -module(ets_ref_keys). -export([ets_ref_keys/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, 0, full}, {?MODULE, inf, dpor}]. ets_ref_keys() -> Parent = self(), Ref = make_ref(), ta...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/regress/src/ets_ref_keys.erl
erlang
dynamic data (e.g. the key for the table).
Dpor should be able to detect dependencies based on -module(ets_ref_keys). -export([ets_ref_keys/0]). -export([scenarios/0]). scenarios() -> [{?MODULE, 0, full}, {?MODULE, inf, dpor}]. ets_ref_keys() -> Parent = self(), Ref = make_ref(), table = ets:new(table,[named_table, public]), ...
3ae4aa5ca30c3bc3c34333a61534922a035852649b599c7aa352388333f91446
mirage/ocaml-uri
uri.ml
* Copyright ( c ) 2012 - 2014 Anil Madhavapeddy < > * Copyright ( c ) 2012 - 2014 < > * * 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 c...
null
https://raw.githubusercontent.com/mirage/ocaml-uri/78c45b4f26c46254a1eb88515551e96a6c3a3631/lib/uri.ml
ocaml
subcomponent of authority in some schemes subcomponent of authority in some schemes (component * safe chars * unsafe chars) * Safe characters that are always allowed in a URI * Unfortunately, this varies depending on which bit of the URI * is being parsed, so there are multiple variants (and this * set is p...
* Copyright ( c ) 2012 - 2014 Anil Madhavapeddy < > * Copyright ( c ) 2012 - 2014 < > * * 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 c...
9f06b105da6df97d342cfd7d369175dc7fb3fb0ef5774951217d8af4ac860d38
jappeace/bulmex
Load.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} -- | Load time manipulation module Reflex.Bulmex.Load ( pageLoader , prerenderLoad -- * Load tricks , withReadyEvt , postpone , getReady ) where import Control.Monad ( void ) import Control.Monad.IO....
null
https://raw.githubusercontent.com/jappeace/bulmex/cd4571e918a4ff70568da075b79edb60d265d330/bulmex/src/Reflex/Bulmex/Load.hs
haskell
# LANGUAGE OverloadedStrings # | Load time manipulation * Load tricks | Bulma loading screen with help of extension: / | Don't display something untill event occurs, combine with getready to delay loading of non-critical components | This doesn't work always, When finished use: -frp/reflex-dom/pull/273 ...
# LANGUAGE FlexibleContexts # module Reflex.Bulmex.Load ( pageLoader , prerenderLoad , withReadyEvt , postpone , getReady ) where import Control.Monad ( void ) import Control.Monad.IO.Class ( MonadIO ) import qualified Data.Text as Text i...
58a1d5ff335b8de519745142c5b96e39bf5038eeeee5308cbde1876d0ca18cfe
facebook/infer
jProgramDesc.mli
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its 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) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
null
https://raw.githubusercontent.com/facebook/infer/ba66d4782d6938530966e006036e58f649068369/infer/src/java/jProgramDesc.mli
ocaml
* load a java program * add the class name of method signature to the list of callees
* Copyright ( c ) 2009 - 2013 , Monoidics ltd . * Copyright ( c ) Facebook , Inc. and its 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) 2009-2013, Monoidics ltd. * Copyright (c) Facebook, In...
5c073c6b0d46aa44051e795210b314d1a17c5967aaad96f6b2256bd3e5392241
graninas/Andromeda
Hardware.hs
module Andromeda.Types.Hardware ( module X ) where import Andromeda.Types.Hardware.Types as X import Andromeda.Types.Hardware.Component as X import Andromeda.Types.Hardware.Parameter as X import Andromeda.Types.Hardware.Handle as X import Andromeda.Types.Hardware.Device as X
null
https://raw.githubusercontent.com/graninas/Andromeda/6b56052bca64fc6f55a28f8001dd775a744b95bf/src/Andromeda/Types/Hardware.hs
haskell
module Andromeda.Types.Hardware ( module X ) where import Andromeda.Types.Hardware.Types as X import Andromeda.Types.Hardware.Component as X import Andromeda.Types.Hardware.Parameter as X import Andromeda.Types.Hardware.Handle as X import Andromeda.Types.Hardware.Device as X
537cd638862c3821711bd4d3a8e866954b3324d5af71b85793e7d1e824121d2c
hopv/MoCHi
pattern.ml
open Util open Combinator (** Patterns *) @todo reimplement this module using AbsTerm type t = | V of Idnt.t (** variable *) | U (** unit *) * tuple : length ts > = 2 | K of Idnt.t * t (** constructor *) | C of constant (** constant *) | W (** wild pattern *) and constant = Const_int of int | Const_bool ...
null
https://raw.githubusercontent.com/hopv/MoCHi/b0ac0d626d64b1e3c779d8e98cb232121cc3196a/fpat/pattern.ml
ocaml
* Patterns * variable * unit * constructor * constant * wild pattern we assume here that the argument [p] is linear
open Util open Combinator @todo reimplement this module using AbsTerm type t = * tuple : length ts > = 2 and constant = Const_int of int | Const_bool of bool let of_list = function | [] -> U | [p] -> p | ps -> T(ps) let list_of = function | U -> [] | T(ps) -> ps | p -> [p] let mk_var x = V(x) @to...
9a81f4906264e4ddf5165848978ce10bd23b867fc911d64722d04167f0019a0b
BinaryAnalysisPlatform/bap-plugins
simple_args.mli
open Bap.Std (** arg tid and def *) type arg = tid * Def.t * A selection of args we can pattern match against in checks . 1 indexed type args = {arg1 : arg option; arg2 : arg option; arg3 : arg option; arg4 : arg option} * Given a blk , return an arg option corresponding to th...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/minos/simple_args.mli
ocaml
* arg tid and def * Return all the args found in this blk
open Bap.Std type arg = tid * Def.t * A selection of args we can pattern match against in checks . 1 indexed type args = {arg1 : arg option; arg2 : arg option; arg3 : arg option; arg4 : arg option} * Given a blk , return an arg option corresponding to the string , where ...
7c8e55e43e6d58a3e8ce25e183bb9dd8cee6e0233a810989d030170aa127be4c
atomvm/atomvm_packbeam
x.erl
-module(x). -export([start/0]). start() -> a:start().
null
https://raw.githubusercontent.com/atomvm/atomvm_packbeam/0eeaf5b34cd3451d3b711e2ee5696b35a8980b3f/test/x.erl
erlang
-module(x). -export([start/0]). start() -> a:start().
127091c1eb99953806d82cc70b0c267b0360049ab200163107246e2be6ee0815
zadean/xqerl
fn_doc_available_SUITE.erl
-module('fn_doc_available_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-doc-available-1'/1]). -export(['fn-doc-available-2'/1]). -export(['fn-doc-...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_doc_available_SUITE.erl
erlang
-module('fn_doc_available_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-doc-available-1'/1]). -export(['fn-doc-available-2'/1]). -export(['fn-doc-...
8b1cb68151075f7f423290a8ee6c91761611fbe2f3936f3333f570cc4facdafc
glebec/haskell-programming-allen-moronuki
Main.hs
module Main where import Control.Monad (forever, when) import Data.Traversable (traverse) import System.Environment (getArgs) import System.Exit (exitFailure, exitSuccess) import System.IO (getLine, isEOF) import Morse (stringToMorse, morseToChar) main :: IO () main = do mode <- getArgs let argError = do ...
null
https://raw.githubusercontent.com/glebec/haskell-programming-allen-moronuki/99bd232f523e426d18a5e096f1cf771228c55f52/14-testing/projects/morse/app/Main.hs
haskell
module Main where import Control.Monad (forever, when) import Data.Traversable (traverse) import System.Environment (getArgs) import System.Exit (exitFailure, exitSuccess) import System.IO (getLine, isEOF) import Morse (stringToMorse, morseToChar) main :: IO () main = do mode <- getArgs let argError = do ...
6a28d7c2a4aed74d2b15175e0c1c94ed5806ac2f55343b69e22e11ef86ca0d45
mirage/ocaml-git
blob.ml
* Copyright ( c ) 2013 - 2017 < > * and < > * * 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 PROVID...
null
https://raw.githubusercontent.com/mirage/ocaml-git/37c9ef41944b5b19117c34eee83ca672bb63f482/src/git/blob.ml
ocaml
* Copyright ( c ) 2013 - 2017 < > * and < > * * 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 PROVID...
677d744715ab002e3bd4a2ef436cab3719547b064c75d211487a5b24820032e2
BillHallahan/G2
M45.hs
{-@ LIQUID "--no-termination" @-} module M45 (main) where data List a = Cons a (List a) | Nil @ main : : List Bool - > List Bool - > List ( List ) - > Int - > { b : | b } @ main :: List Bool -> List Bool -> List (List Bool) -> Int -> Bool main xs ys zs flag = case while1 xs cond1 (loop1 flag) (0, 0, 0, 0) of ...
null
https://raw.githubusercontent.com/BillHallahan/G2/f2584eb2ec211aed73b3ccd88c6e232c3cf4386d/tests/LiquidInf/Paper/Eval/CompareVerified/M45.hs
haskell
@ LIQUID "--no-termination" @ @ cond1 :: List Bool -> (Int, Int, Int, Int) -> Bool @
module M45 (main) where data List a = Cons a (List a) | Nil @ main : : List Bool - > List Bool - > List ( List ) - > Int - > { b : | b } @ main :: List Bool -> List Bool -> List (List Bool) -> Int -> Bool main xs ys zs flag = case while1 xs cond1 (loop1 flag) (0, 0, 0, 0) of (x, y, i, j) -> ...
b22bd11c0babf69a6548f54c83a36ff428aff9f830e1d8ea1ebf52fdcaa54e75
scrintal/heroicons-reagent
square_2_stack.cljs
(ns com.scrintal.heroicons.mini.square-2-stack) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M2 4.25A2.25 2.25 0 014.25 2h6.5A2.25 2.25 0 0113 4.25V5.5H9.25A3.75 3.75 0 005.5 9.25V13H4.25A2.25 2.25 0 012 10....
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/mini/square_2_stack.cljs
clojure
(ns com.scrintal.heroicons.mini.square-2-stack) (defn render [] [:svg {:xmlns "" :viewBox "0 0 20 20" :fill "currentColor" :aria-hidden "true"} [:path {:d "M2 4.25A2.25 2.25 0 014.25 2h6.5A2.25 2.25 0 0113 4.25V5.5H9.25A3.75 3.75 0 005.5 9.25V13H4.25A2.25 2.25 0 012 10....
82a4fe532b8d1023a5fc293dc4c0c0e397314893f0082487a2f07fde7c00a95f
tatut/tuck
testutils.cljs
(ns tuck.testutils (:require [dommy.core :as dommy] [cljs-react-test.utils :as tu])) (def c (atom nil)) (defn sel1 [selector] (dommy/sel1 @c selector)) (defn sel [selector] (dommy/sel @c selector)) (defn after [millis callback] (.setTimeout js/window callback millis)) (def container-fixture {...
null
https://raw.githubusercontent.com/tatut/tuck/f053d3ac50bc623cbd44397cea2387a28c0cf82e/test/tuck/testutils.cljs
clojure
(ns tuck.testutils (:require [dommy.core :as dommy] [cljs-react-test.utils :as tu])) (def c (atom nil)) (defn sel1 [selector] (dommy/sel1 @c selector)) (defn sel [selector] (dommy/sel @c selector)) (defn after [millis callback] (.setTimeout js/window callback millis)) (def container-fixture {...
84e7e2f547cb7506297257853cf2f4027a498fb04938782fb92c864683a4b287
haskoin/haskoin-core
Script.hs
# LANGUAGE LambdaCase # | Module : Haskoin . Test . Script Copyright : No rights reserved License : MIT Maintainer : Stability : experimental Portability : POSIX Module : Haskoin.Test.Script Copyright : No rights reserved License : MIT Maintainer : Stability : experim...
null
https://raw.githubusercontent.com/haskoin/haskoin-core/d155f8803ce73f1211b4f7456e63d27ea9a48b96/src/Haskoin/Util/Arbitrary/Script.hs
haskell
| Arbitrary 'Script' with random script ops. Pushing Data Flow control Arithmetic Crypto Expansion Other | Arbitrary 'PushDataType'. | Arbitrary 'SigHash' (including invalid/unknown sighash codes). | Arbitrary transaction signature that could also be empty. | Arbitrary m of n parameters. | Arbitrary 'PayWit...
# LANGUAGE LambdaCase # | Module : Haskoin . Test . Script Copyright : No rights reserved License : MIT Maintainer : Stability : experimental Portability : POSIX Module : Haskoin.Test.Script Copyright : No rights reserved License : MIT Maintainer : Stability : experim...
b927ec2a843adf2aa503e5339ea4e90eb1e685c5d26b4a98762a92bc56ed4739
huangz1990/SICP-answers
p83-flatmap.scm
;;; p83-flatmap.scm (load "p78-accumulate.scm") (define (flatmap proc seq) (accumulate append '() (map proc seq)))
null
https://raw.githubusercontent.com/huangz1990/SICP-answers/15e3475003ef10eb738cf93c1932277bc56bacbe/chp2/code/p83-flatmap.scm
scheme
p83-flatmap.scm
(load "p78-accumulate.scm") (define (flatmap proc seq) (accumulate append '() (map proc seq)))
c99f7ee604d477001f129bf398aef32d4fd4dacea799cc8110ea941cafc307c6
andrewmcveigh/cljs-time
unparse.cljs
(ns cljs-time.internal.unparse (:require [cljs-time.internal.core :as i] [cljs-time.internal.parse :refer [read-pattern]] [goog.date]) (:import [goog.date Date DateTime UtcDateTime Interval])) (defn unparse-period [s d num min max] (let [n (i/zero-pad num min) c (count n) n (subs n (-...
null
https://raw.githubusercontent.com/andrewmcveigh/cljs-time/7f86226ef2bc5e1c8e00ab9c36096e76f84a73e1/src/cljs_time/internal/unparse.cljs
clojure
(ns cljs-time.internal.unparse (:require [cljs-time.internal.core :as i] [cljs-time.internal.parse :refer [read-pattern]] [goog.date]) (:import [goog.date Date DateTime UtcDateTime Interval])) (defn unparse-period [s d num min max] (let [n (i/zero-pad num min) c (count n) n (subs n (-...
95be151539f13ea9781c9ac55449532003fa4adaa31d011f4bfede55bd12dbcb
cassiel/thi-ng-geom-starter
rings.cljs
(ns thi-ng-geom-starter.rings (:require [reagent.core :as reagent] [thi.ng.math.core :as m :refer [PI HALF_PI TWO_PI]] [thi.ng.geom.gl.core :as gl] [thi.ng.geom.gl.webgl.constants :as glc] [thi.ng.geom.gl.webgl.animator :as anim] [thi.ng.geom.gl.buffers :as buf] [thi.ng.geom.gl.shaders :as sh] ...
null
https://raw.githubusercontent.com/cassiel/thi-ng-geom-starter/f32a8a195f1b95da5e4e44228174b8db8a26fb87/src/cljs/thi_ng_geom_starter/rings.cljs
clojure
(ns thi-ng-geom-starter.rings (:require [reagent.core :as reagent] [thi.ng.math.core :as m :refer [PI HALF_PI TWO_PI]] [thi.ng.geom.gl.core :as gl] [thi.ng.geom.gl.webgl.constants :as glc] [thi.ng.geom.gl.webgl.animator :as anim] [thi.ng.geom.gl.buffers :as buf] [thi.ng.geom.gl.shaders :as sh] ...
e0490cc72548196bcddb163720b51622f425fa04373bb6ee3324357b89bf9629
kubernetes-client/haskell
ClientCertSpec.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Kubernetes.Client.Auth.ClientCertSpec where import Test.Hspec import Data.FileEmbed import Data.Maybe (isJust, isNothing) import Data.Text.Encoding (decodeUtf8) import Kubernetes.Client.Auth.ClientCert impo...
null
https://raw.githubusercontent.com/kubernetes-client/haskell/e848bc0c5c8d4fe4d2c9e8555331c219814c8ec9/kubernetes-client/test/Kubernetes/Client/Auth/ClientCertSpec.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Kubernetes.Client.Auth.ClientCertSpec where import Test.Hspec import Data.FileEmbed import Data.Maybe (isJust, isNothing) import Data.Text.Encoding (decodeUtf8) import Kubernetes.Client.Auth.ClientCert import Kubernetes.Client.KubeConfig imp...
7fb671a685e17c24e3d74140dcb704c427c38d5182211f0aea3ae8a831ca52cc
racket/htdp
create-htdp-executable.rkt
#lang racket/base (require compiler/embed wxme/wxme) (provide create-htdp-lang-executable cannot-compile?) (define oprintf (let ([o (current-output-port)]) (λ args (apply fprintf o args)))) (define (create-htdp-lang-executable program-filename exe-name reader-module) (create-embedding-...
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-lib/lang/private/create-htdp-executable.rkt
racket
Extract snip-related modules: Extract reader-related modules: cannot-compile? : path -> boolean returns #t if the file cannot be compiled, #f otherwise
#lang racket/base (require compiler/embed wxme/wxme) (provide create-htdp-lang-executable cannot-compile?) (define oprintf (let ([o (current-output-port)]) (λ args (apply fprintf o args)))) (define (create-htdp-lang-executable program-filename exe-name reader-module) (create-embedding-...
51960423202f3a612137b6fadbef7e4fff78c77bae6009ee2239e31cdcfe3c9c
drlivingston/kabob
taxon.clj
;; ;;in_taxon ;; obo/RO_0002162 ;; canonical is in the records not the mapping file ;; run this one anyway and look for mismatch?? ;; `{:name "uniprot-in-taxon" : head ( ( ? obo / RO_0002162 ? /taxon ) ;; (?/r1 rdf/type owl/Restriction) ;; (?/r1 owl/onProperty obo/RO_0002162) ;; (?/r...
null
https://raw.githubusercontent.com/drlivingston/kabob/7038076849744c959da9c8507e8a8ab7215410aa/kabob-build/src/main/resources/edu/ucdenver/ccp/kabob/build/rules/temp/taxon/taxon.clj
clojure
;;in_taxon obo/RO_0002162 canonical is in the records not the mapping file run this one anyway and look for mismatch?? `{:name "uniprot-in-taxon" (?/r1 rdf/type owl/Restriction) (?/r1 owl/onProperty obo/RO_0002162) (?/r1 owl/someValuesFrom ?/taxon) :body (~@(kabob/rtv _/record...
: head ( ( ? obo / RO_0002162 ? /taxon ) ( ? rdfs / subClassOf ? /r1 ) ) `{:name "uniprot-in-taxon" :head ( (?/r1 rdf/type owl/Restriction) (?/r1 owl/onProperty obo/RO_0002162) (?/r1 owl/someValuesFrom ?/taxon) (?/protein rdfs/subClassOf ?/r1)) ...
d784838fad0b30c11284b686e06f64c838346ac6a3132f1baeacb0f85516f052
clj-puredata/clj-puredata
common.clj
(ns clj-puredata.common "Helper predicates for identifying common constructs.") (defn hiccup? [form] (and (vector? form) (or (keyword? (first form)) (string? (first form))))) (defn literal? "Returns `true` for numbers, strings and `nil`." [arg] (if (or (number? arg) (string? ar...
null
https://raw.githubusercontent.com/clj-puredata/clj-puredata/bb4879891b4960fee0fc511d4289a967ff0be393/src/clj_puredata/common.clj
clojure
(nil? (:id node))
(ns clj-puredata.common "Helper predicates for identifying common constructs.") (defn hiccup? [form] (and (vector? form) (or (keyword? (first form)) (string? (first form))))) (defn literal? "Returns `true` for numbers, strings and `nil`." [arg] (if (or (number? arg) (string? ar...
c8b9ab2d3493460fee9a72f28d6c8c6a9b1f1f40030b734c548e10481b16357c
NorfairKing/mergeful
TestUtils.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module TestUtils ( module TestUtils, module TestUtils.ServerDB, module TestUtils.ClientD...
null
https://raw.githubusercontent.com/NorfairKing/mergeful/8f1686891e306edcb26daf5ec1782f94f6ae326c/mergeful-persistent/test/TestUtils.hs
haskell
# LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -fno - warn - orphans # module TestUtils ( module TestUtils, module TestUtils.ServerDB, module TestUtils.ClientDB, ) where import Control.Monad import Control.Monad.IO...
37e366b035caa1a867d9c5d2d25cdef5db36746d7cbd8f8cb3258fe94132fc91
tonsky/advent-of-code
day17.clj
(ns advent-of-code.year2022.day17 (:require [advent-of-code.v2 :as v2 :refer [v2]] [advent-of-code.grid :as grid] [clojure.java.io :as io] [clojure.math :as math] [clojure.string :as str] [clojure.set :as set] [remote-require.core :as rr] [advent-of-code.year2022.gui :as gui] [io.g...
null
https://raw.githubusercontent.com/tonsky/advent-of-code/d84dab2fd2943504ad4062575d26f713b4afcee1/src/advent_of_code/year2022/day17.clj
clojure
(println fp) (println % (fp-fn %)) ; 35 figures , +53 height 1514285714288
(ns advent-of-code.year2022.day17 (:require [advent-of-code.v2 :as v2 :refer [v2]] [advent-of-code.grid :as grid] [clojure.java.io :as io] [clojure.math :as math] [clojure.string :as str] [clojure.set :as set] [remote-require.core :as rr] [advent-of-code.year2022.gui :as gui] [io.g...
74c2009fb345b1fefad1fd72bdf17c19cdbd36bca8e51ffbc3bc405d52421abd
spl/ivy
type.mli
* * Copyright ( c ) 2001 - 2006 , * < > * < > * < > * 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...
null
https://raw.githubusercontent.com/spl/ivy/b1b516484fba637eb24e83d27555d273495e622b/src/deputy/infer/type.mli
ocaml
* C Structural Type Equality * Use this function to replace a void-ptr with its representative. The * resulting chain is always orig_type -> type. Goes small -> big
* * Copyright ( c ) 2001 - 2006 , * < > * < > * < > * 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...
1ea49e106def2c5dfdb120020662afe680054fcc162106d3c5ab0c87d0c807c5
larcenists/larceny
ack.scm
ACK -- One of the and benchmarks . (import (scheme base) (scheme read) (scheme write) (scheme time)) (define (ack m n) (cond ((= m 0) (+ n 1)) ((= n 0) (ack (- m 1) 1)) (else (ack (- m 1) (ack m (- n 1)))))) (define (main) (let* ((count (read)) (input1 (read)...
null
https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/test/Benchmarking/R7RS/src/ack.scm
scheme
ACK -- One of the and benchmarks . (import (scheme base) (scheme read) (scheme write) (scheme time)) (define (ack m n) (cond ((= m 0) (+ n 1)) ((= n 0) (ack (- m 1) 1)) (else (ack (- m 1) (ack m (- n 1)))))) (define (main) (let* ((count (read)) (input1 (read)...
b8a4b959f1c40fa134bb6a778f91a8b8ef56d05df8bd1db66066d1c18afec485
slyrus/clem
n-d-matrix.lisp
(in-package :clem) (defclass n-d-matrix (matrix) ((m :accessor matrix-vals) (dimensions :accessor matrix-dimensions :initarg :dimensions :initform '(1) :type (or list null)) (initial-element :accessor initial-element :initarg :initial-element :initform 0d0) (adjustable :accessor adjustable :initarg :adjust...
null
https://raw.githubusercontent.com/slyrus/clem/5eb055bb3f45840b24fd44825b975aa36bd6d97c/src/n-d-matrix.lisp
lisp
test code
(in-package :clem) (defclass n-d-matrix (matrix) ((m :accessor matrix-vals) (dimensions :accessor matrix-dimensions :initarg :dimensions :initform '(1) :type (or list null)) (initial-element :accessor initial-element :initarg :initial-element :initform 0d0) (adjustable :accessor adjustable :initarg :adjust...
ab6b1ba7035dd36fd10fd20fea11e670b78d1afb473a1af09be8f0dd753caa18
erlang/otp
user_sup.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applic...
null
https://raw.githubusercontent.com/erlang/otp/2b397d7e5580480dc32fa9751db95f4b89ff029e/lib/kernel/src/user_sup.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific l...
Copyright Ericsson AB 1996 - 2023 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(user_sup). -behaviour(supervisor_bridge). -export([start/0]). -export([init/1, terminate/2, relay/1]). -...
1b2cb4bcfb6fb1f29d5beb6baac4437e0995e8f4560daa91ff0497b629b565d2
rowangithub/DOrder
trex2.ml
let foo x = x - 1 let rec loop x = if x > 0 then let x = if (Random.bool ()) then foo x else foo x in loop x else assert (x <= 0) let main () = let x = if (Random.bool ()) then Random.int 10 else (0 - Random.int 10) in loop x let _ = main ()
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/ice/trex2.ml
ocaml
let foo x = x - 1 let rec loop x = if x > 0 then let x = if (Random.bool ()) then foo x else foo x in loop x else assert (x <= 0) let main () = let x = if (Random.bool ()) then Random.int 10 else (0 - Random.int 10) in loop x let _ = main ()
4b6a3519136b860b16a092c66fa1c0e46b920f74162016ade87d1257fc11df30
csabahruska/jhc-components
SSimplify.hs
Generated by DrIFT ( Automatic class derivations for ) # LINE 1 " src / Grin / SSimplify.hs " # module Grin.SSimplify(simplify,explicitRecurse) where import Control.Monad.Identity import Control.Monad.Reader import Control.Monad.State import Control.Monad.Writer import Data.Maybe import qualified Data.IntMap as IM ...
null
https://raw.githubusercontent.com/csabahruska/jhc-components/a7dace481d017f5a83fbfc062bdd2d099133adf1/jhc-grin/src/Grin/SSimplify.hs
haskell
This goes through and puts grin into a normal form, in addition, it carries out some straightforward simplifications. normalized form has the following properties :>>= only appears in trailing position all variables and function names are unique in their scope. renaming substitution ! derive: Monoid ! ! derive...
Generated by DrIFT ( Automatic class derivations for ) # LINE 1 " src / Grin / SSimplify.hs " # module Grin.SSimplify(simplify,explicitRecurse) where import Control.Monad.Identity import Control.Monad.Reader import Control.Monad.State import Control.Monad.Writer import Data.Maybe import qualified Data.IntMap as IM ...
600d42fdea0de9154415833402501ff316f76c2fb7d59eb441dd5f420536f31b
Ericson2314/lighthouse
signals002.hs
import System.Posix import Control.Concurrent -- !!! test blockSignals, raiseSignal, unblockSignals, getPendingSignals main = do blockSignals ( userDefinedSignal1 `addSignal` emptySignalSet ) raiseSignal userDefinedSignal1 set <- getPendingSignals print (userDefinedSignal1 `inSignalSet` set) m <- newEmptyMV...
null
https://raw.githubusercontent.com/Ericson2314/lighthouse/210078b846ebd6c43b89b5f0f735362a01a9af02/ghc-6.8.2/libraries/unix/tests/signals002.hs
haskell
!!! test blockSignals, raiseSignal, unblockSignals, getPendingSignals
import System.Posix import Control.Concurrent main = do blockSignals ( userDefinedSignal1 `addSignal` emptySignalSet ) raiseSignal userDefinedSignal1 set <- getPendingSignals print (userDefinedSignal1 `inSignalSet` set) m <- newEmptyMVar installHandler userDefinedSignal1 (Catch (putStrLn "hello" >> put...
6e5e999e793b8d3fcbb1777d8fbd317f9300e2836c69fdda4101668a97453512
programaker-project/Programaker-Core
automate_template_engine_mnesia_backend.erl
%%%------------------------------------------------------------------- %% @doc automate_channel_engine_mnesia_backend public API %% @end %%%------------------------------------------------------------------- -module(automate_template_engine_mnesia_backend). -export([ start_link/0 ]). %% API -export([ list_te...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/ef10fc6d2a228b2096b121170c421f5c29f9f270/backend/apps/automate_template_engine/src/automate_template_engine_mnesia_backend.erl
erlang
------------------------------------------------------------------- @doc automate_channel_engine_mnesia_backend public API @end ------------------------------------------------------------------- API ==================================================================== API ===========================================...
-module(automate_template_engine_mnesia_backend). -export([ start_link/0 ]). -export([ list_templates/1 , create_template/3 , delete_template/2 , update_template/4 , get_template/2 ]). -include("records.hrl"). -include("databases.hrl"). start_link() -> Nodes = au...
210c3405f62ee185da9605d76d8fd6b51ed4efd368d47952a70885a0d7037837
RefactoringTools/HaRe
WithLocalDeclIn1_TokOut.hs
module WithLocalDeclIn1 where --The application of a function is replaced by the right-hand side of the definition, --with actual parameters replacing formals. In this example , unfold the first ' sq ' in ' sumSquares ' --This example aims to test unfolding a function application with multiple matches. sumSquares...
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/old/testing/unfoldDef/WithLocalDeclIn1_TokOut.hs
haskell
The application of a function is replaced by the right-hand side of the definition, with actual parameters replacing formals. This example aims to test unfolding a function application with multiple matches.
module WithLocalDeclIn1 where In this example , unfold the first ' sq ' in ' sumSquares ' sumSquares x y =(case x of 0 -> 0 x -> x ^ pow where pow = 2) + sq y sq 0=0 sq x=x^pow where pow=2
7f62d67e674992005751055d0aa71af40cf89c3a67ec5f7b62363860cbfd486b
rizo/streams-bench
Main.ml
let ( = ) : int -> int -> bool = ( = ) let opaque = Sys.opaque_identity module Config = struct let length = ref 10 let limit = ref 5 end (* Used as a validation bseline. Implemented as Pull_thunk_list. *) let bench_all_stdlib_seq = let ( -- ) i j = Seq.unfold (fun x -> if x = j then None else Some (x, x + 1...
null
https://raw.githubusercontent.com/rizo/streams-bench/f9941144a2d88767dde1a75df6be57af20cc6eb7/src/Main.ml
ocaml
Used as a validation bseline. Implemented as Pull_thunk_list. ("Push_fold_lazy", opaque bench_all_push_fold_lazy, ()); ("Push_fold_thunk", opaque bench_all_push_fold_thunk, ()); assert (expected = bench_all_push_fold_k ()); assert (expected = bench_all_push_fold_lazy ()); assert (expected = bench_all_push_fo...
let ( = ) : int -> int -> bool = ( = ) let opaque = Sys.opaque_identity module Config = struct let length = ref 10 let limit = ref 5 end let bench_all_stdlib_seq = let ( -- ) i j = Seq.unfold (fun x -> if x = j then None else Some (x, x + 1)) i in fun () -> let open Seq in 0 -- !Config.length ...
97f63b8177cb23a19092478b3e75321dd4caa1bad69466f468548121921ddb4f
inhabitedtype/ocaml-aws
resetImageAttribute.mli
open Types type input = ResetImageAttributeRequest.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/b6d5554c5d201202b5de8d0b0253871f7b66dab6/libraries/ec2/lib/resetImageAttribute.mli
ocaml
open Types type input = ResetImageAttributeRequest.t type output = unit type error = Errors_internal.t include Aws.Call with type input := input and type output := output and type error := error
d4b752788d6434b720f8d779e3b9d74fc93f245ffa5c2f84c725d239752acd15
haskell-tools/haskell-tools
Builtin.hs
# LANGUAGE MonoLocalBinds # module Language.Haskell.Tools.Refactor.Builtin ( builtinRefactorings, builtinQueries ) where import Language.Haskell.Tools.Refactor (RefactoringChoice, QueryChoice) import Language.Haskell.Tools.Refactor.Builtin.ExtractBinding (extractBindingRefactoring) import Language.Haskell.Tools.Refac...
null
https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/Language/Haskell/Tools/Refactor/Builtin.hs
haskell
# LANGUAGE MonoLocalBinds # module Language.Haskell.Tools.Refactor.Builtin ( builtinRefactorings, builtinQueries ) where import Language.Haskell.Tools.Refactor (RefactoringChoice, QueryChoice) import Language.Haskell.Tools.Refactor.Builtin.ExtractBinding (extractBindingRefactoring) import Language.Haskell.Tools.Refac...
414f3ba8c0e229c450ed8ae7b6be71338e7a5a6a518a6cf5485ee64e47084fbb
fakedata-haskell/fakedata
JackHandey.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.JackHandey where import Config import Control.Monad.Catch import Data.Text (Text) import Data.Vector (Vector) import Data.Monoid ((<>)) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Has...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/JackHandey.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.JackHandey where import Config import Control.Monad.Catch import Data.Text (Text) import Data.Vector (Vector) import Data.Monoid ((<>)) import Data.Yaml import Faker import Faker.Internal import Faker.Provider.TH import Language.Haskell.TH parseJackHandey :: FromJS...
0cc96de55b3eb74e391c48ea3989c303dc30abd0df60544f4753205712d93e09
kupl/FixML
sub27.ml
let rec max lst = let rec fold f l a = match l with | [] -> a | hd::tl -> f hd (fold f tl a) in fold (fun x y ->if(x > y) then x else y) lst 0;;
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/maxmin/maxmin/submissions/sub27.ml
ocaml
let rec max lst = let rec fold f l a = match l with | [] -> a | hd::tl -> f hd (fold f tl a) in fold (fun x y ->if(x > y) then x else y) lst 0;;
2a9ff97787e835ce8d5f1058e9f86e0080a7e7f60564dfd82e63ce6edeefe9e3
Opetushallitus/ataru
organization_service.clj
(ns ataru.organization-service.organization-service (:require [clojure.string :as s] [com.stuartsierra.component :as component] [ataru.cache.cache-service :as cache] [ataru.config.core :refer [config]] [ataru.organization-service.organization-client :as org-client])) (...
null
https://raw.githubusercontent.com/Opetushallitus/ataru/8736be332c3dcff5c197088f1a93e60f3ddc5e7c/src/clj/ataru/organization_service/organization_service.clj
clojure
The real implementation for Organization service Only fetch hierarchy for actual orgs, not groups: Include groups as-is in the result: Test double for UI tests Ui automated test mode
(ns ataru.organization-service.organization-service (:require [clojure.string :as s] [com.stuartsierra.component :as component] [ataru.cache.cache-service :as cache] [ataru.config.core :refer [config]] [ataru.organization-service.organization-client :as org-client])) (...
a60f7c7a5e06f1489c66fd76674dfaed835d48a7e273ab439b5dd402881354c2
dradtke/Lisp-Text-Editor
surface.lisp
(in-package :cl-cairo2) ;;;; Notes ;;;; - functions that write to/read from streams are not implemented ;;;; class cairo - object ;;;; (defgeneric width (object) (:documentation "return the width of an object")) (defgeneric height (object) (:documentation "return the height of an object")) (defgeneric ...
null
https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/cl-cairo2-20120208-git/src/surface.lisp
lisp
- functions that write to/read from streams are not implemented they are needed by the general-purpose macros below and implemented by the surface, context and pattern classes. deregister finalizer class surface register finalizer See CREATE-CONTEXT for why (lowlevel-destroy object) cannot be used here...
(in-package :cl-cairo2) Notes class cairo - object (defgeneric width (object) (:documentation "return the width of an object")) (defgeneric height (object) (:documentation "return the height of an object")) (defgeneric pixel-based-p (object) (:documentation "return t iff the object uses a pixel-based ...
b77d3471269b39673ba283da319dfeab52bb5ccc4a94bed718d65c7fa2d37cb8
draperlaboratory/VIBES
types.ml
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/ba4fe14a355617e8d07df59578f032aa9f1f27b2/tools/vibes-init/lib/types.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . open Core open Bap.Std open Bap_core_theory module T = Theory module CT = Vibes_utils.C...
8b63da4410cf58c72c17ba52b607578e36ac3e124f9df4727f34cdb790e6d171
mransan/bs-protobuf-demo
messages_bs.ml
[@@@ocaml.warning "-27-30-39"] type temperature_mutable = { mutable u : Messages_types.temperature_unit; mutable v : float; } let default_temperature_mutable () : temperature_mutable = { u = Messages_types.default_temperature_unit (); v = 0.; } type request_mutable = { mutable desired : Messages_types.temp...
null
https://raw.githubusercontent.com/mransan/bs-protobuf-demo/638b5f01b5b13e066484e3e9e9e8d4dc19d6713d/src/messages_bs.ml
ocaml
Unknown fields are ignored Unknown fields are ignored temperature field temperature field
[@@@ocaml.warning "-27-30-39"] type temperature_mutable = { mutable u : Messages_types.temperature_unit; mutable v : float; } let default_temperature_mutable () : temperature_mutable = { u = Messages_types.default_temperature_unit (); v = 0.; } type request_mutable = { mutable desired : Messages_types.temp...
1628260eaf2d2cb04e305399d0952da0b63d8afa51e741dac92837b2f88e7aa6
MLstate/opalang
qmlAstCons.ml
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
null
https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/compiler/libqmlcompil/qmlAstCons.ml
ocaml
cf mli refactoring in progress depends aliases shorthands To evoid to overwrite Ident module * TYPES | TypeSumSugar l -> assert false not really clear what to do here * UNTYPED EXPR copy an expression, i.e. refresh all annots * can make a letrecin or a letin * tail optimization : produce everythi...
Copyright © 2011 , 2012 MLstate This file is part of . is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License , version 3 , as published by the Free Software Foundation . is distributed in the hope that it will be us...
60706082dc72c240e36145565da37005aae2e9caa9d9daca4101ca05e456d0a4
quoll/asami
memory.cljc
(ns ^{:doc "A storage implementation over in-memory indexing." :author "Paula Gearon"} asami.memory (:require [asami.storage :as storage :refer [ConnectionType DatabaseType UpdateData]] [asami.internal :refer [now instant? to-timestamp]] [asami.index :as mem] [asa...
null
https://raw.githubusercontent.com/quoll/asami/1194563a030dc1adb596bcb788e4ee798bb39e82/src/asami/memory.cljc
clojure
graph is the wrapped graph timestamp is the time the database was created name is the name of the database state is an atom containing: :db is the latest DB no-op for memory databases triples to insert triples to remove TODO Reference the up-coming entity index
(ns ^{:doc "A storage implementation over in-memory indexing." :author "Paula Gearon"} asami.memory (:require [asami.storage :as storage :refer [ConnectionType DatabaseType UpdateData]] [asami.internal :refer [now instant? to-timestamp]] [asami.index :as mem] [asa...
8e3f01b6c32be132c7f4fdabc23cdefd2eca4c17bb0c46afcbc5b8e62aa83f89
CorticalComputer/Book_NeuroevolutionThroughErlang
flatland.erl
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM %% Copyright ( C ) 2009 by , DXNN Research Group , %All rights reserved. % This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for th...
null
https://raw.githubusercontent.com/CorticalComputer/Book_NeuroevolutionThroughErlang/81b96e3d7985624a6183cb313a7f9bff0a7e14c5/Ch_18/flatland.erl
erlang
All rights reserved. API gen_server callbacks -record(state, {}). ==================================================================== API -------------------------------------------------------------------- Description: Starts the server -------------------------------------------------------------------- =======...
This source code and work is provided and developed by DXNN Research Group WWW.DXNNResearch . COM Copyright ( C ) 2009 by , DXNN Research Group , This code is licensed under the version 3 of the GNU General Public License . Please see the LICENSE file that accompanies this project for the terms of use . -module(f...