_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
302a128a7c3f7512677af15db5f7a038b7876337d0b850d32892d4d2a3b1a0f5
mdedwards/slippery-chicken
sc-test-suite-aux.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; File: sc-test-suite-aux.lsp ;;; Class Hierarchy : None ;;; Version : 1.0 ;;; ;;; Project: slippery chicken (algorithmic composition) ;;; ;;; Purpose: Definition of macros/functions for testi...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/tests/sc-test-suite-aux.lsp
lisp
File: sc-test-suite-aux.lsp Project: slippery chicken (algorithmic composition) Purpose: Definition of macros/functions for testing slippery chicken Creation date: 15th December 2011 $$ Last modified: 19:15:39 Wed Feb 24 2021 CET **** ...
Class Hierarchy : None Version : 1.0 Author : : SVN ID : $ I d : rthm-seq-bar.lsp 509 2011 - 12 - 14 20:35:27Z $ Licence : Copyright ( c ) 2010 Public License as published by the Free Software You should have received a copy of the...
d804a2dc9aca4c73b663a42541153402e2231f195755d00e234e40d9d2ec862f
fieldstrength/aeson-deriving
Text.hs
module Data.Aeson.Deriving.Text ( TextWithPattern ) where import Data.Aeson.Deriving.Text.Unsafe (TextWithPattern)
null
https://raw.githubusercontent.com/fieldstrength/aeson-deriving/861dc8ebc05792a0924e8fe6aae2ae41a59fc751/src/Data/Aeson/Deriving/Text.hs
haskell
module Data.Aeson.Deriving.Text ( TextWithPattern ) where import Data.Aeson.Deriving.Text.Unsafe (TextWithPattern)
8e19149d814600ed3a0a7c26f56f97e47666a228c6fc7fa9b336f4c6e911764d
obsidiansystems/obelisk
Symlink.hs
module Obelisk.Asset.Symlink ( copyAndSymlink ) where import Control.Monad import Data.Map (Map) import qualified Data.Map as Map import System.Directory import System.FilePath.Posix import System.PosixCompat.Files | Copy the given hashed files from one location to hashed paths in another -- location, and symli...
null
https://raw.githubusercontent.com/obsidiansystems/obelisk/d779d5ab007d8ee5c3cd3400473453e1d106f5f1/lib/asset/manifest/src/Obelisk/Asset/Symlink.hs
haskell
location, and symlink the unhashed paths to the hashed ones
module Obelisk.Asset.Symlink ( copyAndSymlink ) where import Control.Monad import Data.Map (Map) import qualified Data.Map as Map import System.Directory import System.FilePath.Posix import System.PosixCompat.Files | Copy the given hashed files from one location to hashed paths in another copyAndSymlink :: Ma...
4cefb402c6dbba84298ac7d8598204b34c1d94b21fada5bea4e98f2994c05af4
DSiSc/why3
coercion.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University (* ...
null
https://raw.githubusercontent.com/DSiSc/why3/8ba9c2287224b53075adc51544bc377bc8ea5c75/src/core/coercion.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2018 -- Inria - CNRS - Paris - Sud University General Public License version 2.1 , with the special exception open Ty open Term type t val empty: t val add: t -> lsymbol -> t * adds a new coercion from function [ ...
8f80139e18573d9667f3d29950fb809d50e83a5c41d86934a6a5ea4e132f7bc2
exoscale/clojure-kubernetes-client
v1_volume_attachment.clj
(ns clojure-kubernetes-client.specs.v1-volume-attachment (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-volume-attachment-spec :refer :all] [clojure-kube...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_volume_attachment.clj
clojure
(ns clojure-kubernetes-client.specs.v1-volume-attachment (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-volume-attachment-spec :refer :all] [clojure-kube...
227b7fa795d889fa197dc2c1787f65c1b4a8676e986ee3fbff1214336120ff21
mukul-rathi/bolt
desugar_generics.ml
open Count_generics_instantiations open Name_mangle_generics open Replace_generic_with_instantiated_class_defns open Typing First , count the number of concrete type parameters a generic class has been instantiated with instantiated with *) NEXT , instantiate classes with concrete types (* Name mangle ty...
null
https://raw.githubusercontent.com/mukul-rathi/bolt/1faf19d698852fdb6af2ee005a5f036ee1c76503/src/frontend/desugaring/desugar_generics.ml
ocaml
Name mangle types so pointing to correct concrete class instantiation
open Count_generics_instantiations open Name_mangle_generics open Replace_generic_with_instantiated_class_defns open Typing First , count the number of concrete type parameters a generic class has been instantiated with instantiated with *) NEXT , instantiate classes with concrete types let desugar_gene...
b900740c1759c436e02aba3ba681bb07248a0c6951b6a10aab03a078e64a08aa
skanev/playground
29.scm
SICP exercise 3.29 ; ; Another way to construct an or-gate is as a compound digital device, built ; from and-gates and inverters. Define a procedure or-gate that accomplishes ; this. What is the delay of the or-gate in terms of and-gate-delay and ; inverter-delay? If we apply law , we get that a || b = ! ( ! a ...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/03/29.scm
scheme
Another way to construct an or-gate is as a compound digital device, built from and-gates and inverters. Define a procedure or-gate that accomplishes this. What is the delay of the or-gate in terms of and-gate-delay and inverter-delay? the diagram looks: _ a ---|>o---| \ b ---|>o---|_/ The signal...
SICP exercise 3.29 If we apply law , we get that a || b = ! ( ! a & & ! b ) . Here 's how | |---|>o--- r inverter , so it is ( + ( 2 inverter - delay ) and - gate - delay ) . (require r5rs/init) (define (half-adder a b s c) (let ((d (make-wire)) (e (make-wire))) (or-gate a b d) (and-g...
63d5be590c90b78374d9866fd02bedc569d0ef2825476fcbcc144a69a7088bd6
tweag/asterius
nodeio.hs
# LANGUAGE ScopedTypeVariables # import Asterius.Types import Data.Binary import qualified Data.ByteString.Char8 as CBS import Data.IORef import Foreign.C.Types import GHC.IO.Device import GHC.IO.Handle.FD import GHCi.Message import System.IO main :: IO () main = do read_handle <- fdToHandle' (fromIntegra...
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/nodeio/nodeio.hs
haskell
# LANGUAGE ScopedTypeVariables # import Asterius.Types import Data.Binary import qualified Data.ByteString.Char8 as CBS import Data.IORef import Foreign.C.Types import GHC.IO.Device import GHC.IO.Handle.FD import GHCi.Message import System.IO main :: IO () main = do read_handle <- fdToHandle' (fromIntegra...
5680b53be3976894e5ec21d06aff49471880c0689d84de70814741ce9d955f77
Kakadu/fp2022
demoWhile.ml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Python_lib.Interpreter open Eval (Result) let prog = "x = 0\nwhile x < 10:\n\tx = x + 1\nx" let test = match parse_and_interpet prog with | Ok x -> print_endline x | Error x -> print_endline x ;;
null
https://raw.githubusercontent.com/Kakadu/fp2022/27ec5cd84ad68b54bb1c7191bab59320684386ab/Python/demos/demoWhile.ml
ocaml
* Copyright 2021 - 2022 , * SPDX - License - Identifier : LGPL-3.0 - or - later open Python_lib.Interpreter open Eval (Result) let prog = "x = 0\nwhile x < 10:\n\tx = x + 1\nx" let test = match parse_and_interpet prog with | Ok x -> print_endline x | Error x -> print_endline x ;;
8a163fc4dd18dad40b390e86aa06a20f888665a5356e091b4e5050bb421e018c
kupl/LearnML
patch.ml
type exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) let rec eval (form : formula) : bool = let rec value (x : exp) : int ...
null
https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub69/patch.ml
ocaml
type exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp) type formula = | True | False | Not of formula | AndAlso of (formula * formula) | OrElse of (formula * formula) | Imply of (formula * formula) | Equal of (exp * exp) let rec eval (form : formula) : bool = let rec value (x : exp) : int ...
3945d5735eafed819f806372708722c04872b2ab60388da57f0f61a99c9ac710
srid/neuron
Simple.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # | A simple API for module Text.Megaparsec.Simple ( Parser, parse, ) where import Relude import qualified Text.Megaparsec as M type Parser a = M.Parsec Void Text a parse :: Parser a -> String -> Text -> Either Text a parse p fn s = first (t...
null
https://raw.githubusercontent.com/srid/neuron/1f127b8343dbe05e057688988b289066df1cdedb/src/Text/Megaparsec/Simple.hs
haskell
# LANGUAGE ScopedTypeVariables # # LANGUAGE NoImplicitPrelude # | A simple API for module Text.Megaparsec.Simple ( Parser, parse, ) where import Relude import qualified Text.Megaparsec as M type Parser a = M.Parsec Void Text a parse :: Parser a -> String -> Text -> Either Text a parse p fn s = first (t...
195a78870f26d17d246cb5392c065f9a3275a41f4ce651a33dafec52d5c2b1b6
facebook/infer
Buck2Java.ml
* 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/c87310bc24e97b9bc989cab1e2b07830c33e2425/infer/src/integration/Buck2Java.ml
ocaml
make buck tell us where in buck-out are the capture directories for merging
* 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) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
6382916b934a2665b8a10bd34f4197919c8f6098fa227e8c4803de6388292016
bobbae/gosling-emacs
comment.ml
; comment.ml - Commenting functions ; Written by Spencer W. Thomas ; Tue Nov 3 1981 ; ; begin-global-comment ; Enter a recursive edit to insert a global comment. ; ; edit-global-comment ; Enter a recursive edit to re-edit a global comment. ; ; fill-global-comment-paragraph ; Fill a paragraph in a global comme...
null
https://raw.githubusercontent.com/bobbae/gosling-emacs/8fdda532abbffb0c952251a0b5a4857e0f27495a/lib/maclib/utah/comment.ml
ocaml
; comment.ml - Commenting functions ; Written by Spencer W. Thomas ; Tue Nov 3 1981 ; ; begin-global-comment ; Enter a recursive edit to insert a global comment. ; ; edit-global-comment ; Enter a recursive edit to re-edit a global comment. ; ; fill-global-comment-paragraph ; Fill a paragraph in a global comme...
58e8feef47b75be34bed3ed50f7b1a3dcb404e98451bcdc65d60693473e62c3e
tallaproject/onion
prop_ntor.erl
%%% Copyright ( c ) 2016 The Talla Authors . All rights reserved . %%% Use of this source code is governed by a BSD-style %%% license that can be found in the LICENSE file. %%% %%% ----------------------------------------------------------- @author < > %%% @doc Property Tests for onion_ntor. %%% @end %%% -------...
null
https://raw.githubusercontent.com/tallaproject/onion/d0c3f86c726c302744d3cfffa2de21f85c190cf0/test/prop_ntor.erl
erlang
Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. ----------------------------------------------------------- @doc Property Tests for onion_ntor. @end ----------------------------------------------------------- Properties. The client makes the initial request: ...
Copyright ( c ) 2016 The Talla Authors . All rights reserved . @author < > -module(prop_ntor). -export([prop_shared_secret/0]). -include_lib("onion/include/onion_test.hrl"). -spec prop_shared_secret() -> term(). prop_shared_secret() -> ?FORALL({NTorKeyPair, IDPublicKey, Length}, {onion_x25519:keypair(), b...
27139396505ab00bccea43c9f86a9c624d46151dfe5f3273ffff7b3c600be0c4
mhwombat/creatur
Namer.hs
------------------------------------------------------------------------ -- | Module : ALife . . Namer Copyright : ( c ) 2012 - 2022 -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- -- Assigns a unique ID upon request. IDs generated by an @...
null
https://raw.githubusercontent.com/mhwombat/creatur/c715f4de16d29b646b27f3185d1d073df0fc9cb6/src/ALife/Creatur/Namer.hs
haskell
---------------------------------------------------------------------- | License : BSD-style Maintainer : Stability : experimental Portability : portable Assigns a unique ID upon request. IDs generated by an @Namer@ are guaranteed to be unique within a given universe, across all simulation runs. -...
Module : ALife . . Namer Copyright : ( c ) 2012 - 2022 module ALife.Creatur.Namer ( Namer(..), SimpleNamer, mkSimpleNamer ) where import ALife.Creatur.Counter (PersistentCounter, current, increment, mkPersistentCounter) import ...
fccee3a78f53694884decac9ee20510db2e31a658a403864d694efd01f1e957c
AbstractMachinesLab/caramel
Loc_tree.mli
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/AbstractMachinesLab/caramel/7d4e505d6032e22a630d2e3bd7085b77d0efbb0c/vendor/ocamlformat-0.17.0/lib/Loc_tree.mli
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in open Migrate_ast include Non_overlapping_interval_tree.S with type itv = Location.t val of_ast : 'a Traverse.fragment -> 'a -> Source.t -> t * Location.t list
e8bbb5c704a27c312b3917ce22682c49224627c5bc53e1c5d3bfca7a4087bf6a
openbadgefactory/salava
common.cljc
(ns salava.core.common) (defn deep-merge "Recursively merges maps. If vals are not maps, the last value wins." [& vals] (if (every? map? vals) (apply merge-with deep-merge vals) (apply concat vals)))
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/src/cljc/salava/core/common.cljc
clojure
(ns salava.core.common) (defn deep-merge "Recursively merges maps. If vals are not maps, the last value wins." [& vals] (if (every? map? vals) (apply merge-with deep-merge vals) (apply concat vals)))
8abf3bcd0ffd16abe353d59c126c54d4562dc553f66846a4c736684302e97472
solita/mnt-teet
backup_ion.clj
(ns teet.backup.backup-ion "Backup Ion for exporting an .edn file backup to S3 bucket. When backing up the datomic we go through all the transactions that have happened to the db and write them to a file. Some of the transactions will be Datomic internal, which we can't transact again, these should be in th...
null
https://raw.githubusercontent.com/solita/mnt-teet/2d7ed063b558fb87d650a6f53a3e24db88641425/app/backend/src/clj/teet/backup/backup_ion.clj
clojure
caused issues in the backup ERROR: {:cognitect.anomalies/category :cognitect.anomalies/incorrect, Turn :db/* values into idents aliased to entity-seen. that have an assertion for the same attribute Group by assertions and retractions Output add or retract clauses for any many cardinality values Read rest of th...
(ns teet.backup.backup-ion "Backup Ion for exporting an .edn file backup to S3 bucket. When backing up the datomic we go through all the transactions that have happened to the db and write them to a file. Some of the transactions will be Datomic internal, which we can't transact again, these should be in th...
af47a39250a6ec156ed077e9c87be98eab8f59e7ed3d287c4e3ca26d7db19ed0
Frama-C/Frama-C-snapshot
mdr_params.ml
(**************************************************************************) (* *) This file is part of Frama - C. (* *) Copyright ...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/markdown-report/mdr_params.ml
ocaml
************************************************************************ alternatives) ...
This file is part of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Software Foundation , v...
2228b8dd7b4d1beff27fa05766738f74427b8bbe0b3e571dc2200de6006484ec
imitator-model-checker/imitator
Extrapolation.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : clocks extrapolation * * File contributors : , *...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/Extrapolation.ml
ocaml
********************************************************** Internal modules ********************************************************** ********************************************************** ********************************************************** Type NumConst or infinity and its operators ********************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université de Lorraine , CNRS , , LORIA , Nancy , France * * Module description : clocks extrapolation * * File contributors : , *...
98c8ae4e6ebb61a7a56ff8e2f9df327b2865ffc2a9aaf93755855de9f62b2dc0
elbrujohalcon/witchcraft
edge.erl
-module(edge). -export([write_file/2]). -spec write_file(Filename, Bytes) -> ok | {error, Reason} when Filename :: string(), Bytes :: string(), Reason :: file:posix() | badarg | terminated | system_limit. write_file(Name, Bin) -> file:write_file(Name, Bin).
null
https://raw.githubusercontent.com/elbrujohalcon/witchcraft/050e91f028a50874347fea9dc552a0e0a056018f/src/edge.erl
erlang
-module(edge). -export([write_file/2]). -spec write_file(Filename, Bytes) -> ok | {error, Reason} when Filename :: string(), Bytes :: string(), Reason :: file:posix() | badarg | terminated | system_limit. write_file(Name, Bin) -> file:write_file(Name, Bin).
0074e429752444549811cdf9adb41644e7cccd1fb004d8949f0c0f13de294251
haskell/cabal
cabal.test.hs
import Test.Cabal.Prelude -- `virtual-modules` need ≥2.2. main = cabalTest $ fails $ cabal "check" []
null
https://raw.githubusercontent.com/haskell/cabal/1cfe7c4c7257aa7ae450209d34b4a359e6703a10/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/VirtualModules/cabal.test.hs
haskell
`virtual-modules` need ≥2.2.
import Test.Cabal.Prelude main = cabalTest $ fails $ cabal "check" []
15b815daaa1d34bda05fc357afc586bf53d07c042c761f3ad748dbbea9c2dd59
vsedach/Vacietis
package.lisp
(in-package #:vacietis) (named-readtables:in-readtable vacietis:vacietis) (defpackage #:vacietis.libc.errno.h (:use #:cl #:named-readtables #:vacietis) (:import-from #:vacietis #:define) (:export #:errno #:EPERM #:ENOENT #:ESRCH #:EINTR #:EIO #:ENXIO #:E2BIG #:ENOEXEC #:EBADF #:E...
null
https://raw.githubusercontent.com/vsedach/Vacietis/808914a75ea52539a124cc9df729a5296fb37ad4/libc/package.lisp
lisp
(in-package #:vacietis) (named-readtables:in-readtable vacietis:vacietis) (defpackage #:vacietis.libc.errno.h (:use #:cl #:named-readtables #:vacietis) (:import-from #:vacietis #:define) (:export #:errno #:EPERM #:ENOENT #:ESRCH #:EINTR #:EIO #:ENXIO #:E2BIG #:ENOEXEC #:EBADF #:E...
e9f6640abcced138350e6071a62504f0b1b6f40e98e8d455ba3f3a855afd1ae2
hbr/fmlib
test_calculator2.ml
open Fmlib_std type assoc = | Left | Right type info = int * assoc module Map: sig val find: char -> info end = struct include Map.Make (Char) let add_left (c: char) (i: int) (m: 'info t): 'info t = add c (i, Left) m let add_right (c: char) (i: int) (m: 'info t): 'info t = ...
null
https://raw.githubusercontent.com/hbr/fmlib/1682e7e9bb375178c9c42c89c7f82b8705fc9cb5/src/parse/test_calculator2.ml
ocaml
cannot happen cannot happen Unit Tests * ==========
open Fmlib_std type assoc = | Left | Right type info = int * assoc module Map: sig val find: char -> info end = struct include Map.Make (Char) let add_left (c: char) (i: int) (m: 'info t): 'info t = add c (i, Left) m let add_right (c: char) (i: int) (m: 'info t): 'info t = ...
ce7260aeb0535ab888b7b238ee2ba351e717fa7c4a4ef2b7c434f230d4dd6735
expipiplus1/vulkan
Enums.hs
{-# language CPP #-} -- No documentation found for Chapter "Enums" module Vulkan.Core11.Enums ( module Vulkan.Core11.Enums.ChromaLocation , module Vulkan.Core11.Enums.CommandPoolTrimFlags , module Vulkan.Core11.Enums.DescriptorUpdateTemplateCreateFlags ...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/b1e33d1031779b4740c279c68879d05aee371659/src/Vulkan/Core11/Enums.hs
haskell
# language CPP # No documentation found for Chapter "Enums"
module Vulkan.Core11.Enums ( module Vulkan.Core11.Enums.ChromaLocation , module Vulkan.Core11.Enums.CommandPoolTrimFlags , module Vulkan.Core11.Enums.DescriptorUpdateTemplateCreateFlags , module Vulkan.Core11.Enums.DescriptorUpdateTemp...
39cb09d93a73d9be3829b050ca0f97ab22b934aab208f7983933bd03f47aa047
wireless-net/erlang-nommu
wxGridCellBoolRenderer.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2009 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Publi...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/wx/src/gen/wxGridCellBoolRenderer.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitatio...
Copyright Ericsson AB 2009 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " < br />{@link wxGridCellRenderer } -mod...
d5054bb860f60870420295468ae2273b9fd7bd426c9218f5ccc06e7c074d8689
input-output-hk/cardano-ledger
PoolDistr.hs
# LANGUAGE DataKinds # {-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE UndecidableInstances # {-# OPTI...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger/49a84725c4c2ecabc80f6dac215881bc23920962/libs/cardano-ledger-core/src/Cardano/Ledger/PoolDistr.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE OverloadedStrings # # OPTIONS_GHC -Wno-redundant-constraints # | The stake distribution, aggregated by stake pool (as opposed to stake credential), The leader election is the precisely the part of the ledger that is <-output-hk/cardano-ledger/releases/latest/download/shelley-le...
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingVia # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # # LANGUAGE UndecidableInstances # plays a primary role in Cardano 's proof of stake network . Together w...
e0d9a45b765872191ee1478f448f61552c5b8de69dfe8365e1c51045db38aad9
2600hz-archive/whistle
ecallmgr_test.erl
-module(ecallmgr_test). -export([test_reg/1, gc_all/0, gc_all/1]). -include("ecallmgr.hrl"). -define(CHUNK_SENDS, 10). test_reg(SendCnt) -> Prop = [ {<<"Method">>,<<"REGISTER">>},{<<"Auth-Realm">>,<<"james.thinky64.2600hz.com">>},{<<"Auth-User">>,<<"james_2">>},{<<"Orig-IP">>,<<"192.168.5.64">>},{<<"From">>,<<"...
null
https://raw.githubusercontent.com/2600hz-archive/whistle/1a256604f0d037fac409ad5a55b6b17e545dcbf9/ecallmgr/src/ecallmgr_test.erl
erlang
-module(ecallmgr_test). -export([test_reg/1, gc_all/0, gc_all/1]). -include("ecallmgr.hrl"). -define(CHUNK_SENDS, 10). test_reg(SendCnt) -> Prop = [ {<<"Method">>,<<"REGISTER">>},{<<"Auth-Realm">>,<<"james.thinky64.2600hz.com">>},{<<"Auth-User">>,<<"james_2">>},{<<"Orig-IP">>,<<"192.168.5.64">>},{<<"From">>,<<"...
4890bdf71f9d4020cf2db6b51df3875315441057afafb1e40337dc475512b593
camllight/camllight
asynt.mli
#open "prop";; value analyse_proposition: string -> proposition;;
null
https://raw.githubusercontent.com/camllight/camllight/0cc537de0846393322058dbb26449427bfc76786/windows/examples/demonstr/asynt.mli
ocaml
#open "prop";; value analyse_proposition: string -> proposition;;
6a43918f055c99ecd1984e6fe86f3220c93cf1ff269c69699e6c75ba2408dd9f
cse-bristol/110-thermos-ui
supply_technologies.cljs
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.params.supply-technologies "Editor for supply problem technology definitions" (:require [reagent.core :as reagent] ...
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/e13b96329f3c95e5a10bae431e8ae9bccdb475f4/src/thermos_frontend/params/supply_technologies.cljs
clojure
make sure there is a power efficiency set if you turn on chp
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.params.supply-technologies "Editor for supply problem technology definitions" (:require [reagent.core :as reagent] ...
311b793f2092947c120f235e80e4fc3aa7df9b4f67d32cfaa6c5e2272d7a9843
capnproto/capnp-ocaml
otherPointer.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * capnp - ocaml * * Copyright ( c ) 2013 - 2014 , * All rights reserved . * * Redistribution and use in source and binary forms , with or without ...
null
https://raw.githubusercontent.com/capnproto/capnp-ocaml/dda3d811aa7734110d7af051465011f1f823ffb9/src/runtime/otherPointer.ml
ocaml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * capnp - ocaml * * Copyright ( c ) 2013 - 2014 , * All rights reserved . * * Redistribution and use in source and binary forms , with or without ...
94037449b26763ef7fc5c3db8f2b5da2ba84efbc29aad94352e9270f78b9bf7c
oakes/play-clj-examples
entities.clj
(ns minicraft-online.entities (:require [minicraft-online.utils :as u] [play-clj.core :refer :all] [play-clj.g2d :refer :all])) (defn ^:private create ([start-layer img] (assoc img :x 0 :y 0 :width 2 :height 2 :x-velocity 0 ...
null
https://raw.githubusercontent.com/oakes/play-clj-examples/449a505a068faeeb35d4ee4622c6a05e3fff6763/minicraft-online/desktop/src-common/minicraft_online/entities.clj
clojure
victim is up? victim is down? victim is left? victim is right? position the hit slightly below the victim so it appears on top we're keeping track of health locally
(ns minicraft-online.entities (:require [minicraft-online.utils :as u] [play-clj.core :refer :all] [play-clj.g2d :refer :all])) (defn ^:private create ([start-layer img] (assoc img :x 0 :y 0 :width 2 :height 2 :x-velocity 0 ...
adc8a2db52bf26f1bd0a224c3a3bc01ed3ef509069ab723e35d6b28d105f9c97
mthbernardes/shaggy-rogers
entropy.clj
(ns shaggy-rogers.logic.detectors.entropy) ;; (defn- log2 [n] (/ (Math/log n) (Math/log 2))) (defn calculate "Calculate Shannon entropy for xs. Higher value is greater entropy. Values returned between 0.0 & 8.0" [xs] (let [freqs (vals (frequencies xs)) cnt (reduce + freqs) calc #(let [p (doub...
null
https://raw.githubusercontent.com/mthbernardes/shaggy-rogers/aa100bf81ec142503f69882aa811ef15fae4f027/src/shaggy_rogers/logic/detectors/entropy.clj
clojure
(ns shaggy-rogers.logic.detectors.entropy) (defn- log2 [n] (/ (Math/log n) (Math/log 2))) (defn calculate "Calculate Shannon entropy for xs. Higher value is greater entropy. Values returned between 0.0 & 8.0" [xs] (let [freqs (vals (frequencies xs)) cnt (reduce + freqs) calc #(let [p (double (...
0f4cdb4d436178b73c723fa526370dc2d1b8b636a73c29f038f41ecff2718087
chpill/cljs-weight
using_client_routing.cljs
(ns cljs-weight.using-client-routing (:require [bidi.bidi :as bidi] [pushy.core :as pushy])) (def app-state (atom {})) (def routes ["/" {"" :index "other-route" :other-route}]) (defn init [] (pushy/start! (pushy/pushy (fn [page] (swap! app-state assoc ...
null
https://raw.githubusercontent.com/chpill/cljs-weight/b470d159226345759cc67f1d4d0c2fc889b79ae0/src/cljs/cljs_weight/using_client_routing.cljs
clojure
(ns cljs-weight.using-client-routing (:require [bidi.bidi :as bidi] [pushy.core :as pushy])) (def app-state (atom {})) (def routes ["/" {"" :index "other-route" :other-route}]) (defn init [] (pushy/start! (pushy/pushy (fn [page] (swap! app-state assoc ...
c13ee93a66377ccd6ed970c4d11bac9e65ca1f4d391c42332119a94d5e4cb9c4
aturon/Caper
ms-q.rkt
#lang racket/base (require caper/data/ms-q caper/tests/test-tools rackunit) (define q (make-queue)) (check-equal? (deq! q #f) #f "deq! on empty queue not failure-result") (enq! q 1) (check-equal? (deq! q) 1 "deq! on singleton queue not singleton") (check-equal? (deq! q #f) #f "deq! on empty queue not failure-re...
null
https://raw.githubusercontent.com/aturon/Caper/be05f13f3189c7717cd14a223b0cb3b188fe5bb1/tests/data/ms-q.rkt
racket
#lang racket/base (require caper/data/ms-q caper/tests/test-tools rackunit) (define q (make-queue)) (check-equal? (deq! q #f) #f "deq! on empty queue not failure-result") (enq! q 1) (check-equal? (deq! q) 1 "deq! on singleton queue not singleton") (check-equal? (deq! q #f) #f "deq! on empty queue not failure-re...
bb0a391701ce573814fe132b984e4b55656c7468c5d5fa2a65509b4665c7bfd5
wdebeaum/DeepSemLex
structure.lisp
;;;; ;;;; W::structure ;;;; (define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::structure (SENSES ((LF-PARENT ONT::grouping) (meta-data :origin task-learning :entry-date 20050930 :change-date nil :wn ("structure%1:09:00") :comments nil) (example "if the object file uses only data structure...
null
https://raw.githubusercontent.com/wdebeaum/DeepSemLex/ce0e7523dd2b1ebd42b9e88ffbcfdb0fd339aaee/trips/src/LexiconManager/Data/new/structure.lisp
lisp
W::structure
(define-words :pos W::n :templ COUNT-PRED-TEMPL :words ( (W::structure (SENSES ((LF-PARENT ONT::grouping) (meta-data :origin task-learning :entry-date 20050930 :change-date nil :wn ("structure%1:09:00") :comments nil) (example "if the object file uses only data structure layouts and accessors, its ...
11961e4a11b8ec786feda15009dd8e822c942e27e9bea00167ac439f5aff749a
webyrd/n-grams-for-synthesis
ilists-impl.scm
;;; SRFI-116 ilist-processing library -*- Scheme -*- ;;; Sample implementation ;;; Copyright ( c ) 1998 , 1999 by . Modifications Copyright ( c ) 2014 by . ;;; You may do as you please with ;;; this code as long as you do not remove either copyright notice ;;; or hold us liable for its use. Please send bug ...
null
https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-116/ilists/ilists-impl.scm
scheme
SRFI-116 ilist-processing library -*- Scheme -*- Sample implementation You may do as you please with this code as long as you do not remove either copyright notice or hold us liable for its use. Please send bug reports to <>. carefully considering the functions provided by the libraries found in rich toolk...
Copyright ( c ) 1998 , 1999 by . Modifications Copyright ( c ) 2014 by . This is a library of ilist- and ipair - processing functions . I wrote it after R4RS / R5RS Scheme , MIT Scheme , Gambit , RScheme , MzScheme , slib , Common Lisp , Bigloo , guile , T , APL and the SML standard basis . It is a prett...
90f3312577c3fb8abcc7e1c986920a9f3bc58b794586bf8c497d41177142f584
penpot/penpot
time.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; ;; Copyright (c) KALEIDOS INC (ns app.util.time (:require [app.common.exceptions :as ex] [clojure.spec.alpha :as s] [cuerdas.core...
null
https://raw.githubusercontent.com/penpot/penpot/87ebb2e24cb6fbcc1c3d22d31cae58d2e3a2edee/backend/src/app/util/time.clj
clojure
Copyright (c) KALEIDOS INC Instant & Duration --- DURATION --- INSTANT optional field separated by white space. The fields respectively are described as follows: Field Name Allowed Values Allowed Special Characters Seconds 0-59 , - * / Minutes ...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.util.time (:require [app.common.exceptions :as ex] [clojure.spec.alpha :as s] [cuerdas.core :as str] [fipp.ednize :as fez...
61297690f1278253bff4371657e2feadcba328418636f118dc07bcd7497fa575
jfeser/castor
schema.mli
open Core open Ast type t = Name.t list [@@deriving compare, equal, sexp] val pp : t Fmt.t val to_type_open : ('a -> t) -> ('a pred -> Prim_type.t) -> 'a pred -> Prim_type.t val schema_query_open : ('r -> t) -> ('r pred, 'r) query -> t val schema_open : ('a annot -> t) -> 'a annot -> t val schema : _ annot -> t v...
null
https://raw.githubusercontent.com/jfeser/castor/e9f394e9c0984300f71dc77b5a457ae4e4faa226/lib/schema.mli
ocaml
open Core open Ast type t = Name.t list [@@deriving compare, equal, sexp] val pp : t Fmt.t val to_type_open : ('a -> t) -> ('a pred -> Prim_type.t) -> 'a pred -> Prim_type.t val schema_query_open : ('r -> t) -> ('r pred, 'r) query -> t val schema_open : ('a annot -> t) -> 'a annot -> t val schema : _ annot -> t v...
e7913143c95fc525a433614385569c982028992a30c02f0795a628f21f1a73bf
eggzilla/RNAlien
Types.hs
-- | This module contains data structures for RNAlien module Biobase.RNAlien.Types where import Biobase.Fasta.Strict import Biobase.Taxonomy.Import import Biobase.StockholmAlignment.Types import Biobase . Types . BioSequence import qualified Data.ByteString.Char8 as B -- | Static construction options data StaticOpti...
null
https://raw.githubusercontent.com/eggzilla/RNAlien/026b8885482561eb89b738a954829f37050cee4b/Biobase/RNAlien/Types.hs
haskell
| This module contains data structures for RNAlien | Static construction options | Keeps track of model construction unique seed sequencs additional similar sequences - collected by full similarity to previously found entries Taxonomy ID of the highest node in taxonomic subtree used in search L.unpack ( fastaHeader...
module Biobase.RNAlien.Types where import Biobase.Fasta.Strict import Biobase.Taxonomy.Import import Biobase.StockholmAlignment.Types import Biobase . Types . BioSequence import qualified Data.ByteString.Char8 as B data StaticOptions = StaticOptions { tempDirPath :: String, sessionID :: String, nSCICutoff ...
1ea9457f9cf0013b916edcc87abcbac202e460d2f1f4dcaa580c3d940bc46774
Camilotk/ocaml4noobs
helloworld.ml
let hello () = Printf.printf "Hello, %s!" "World"
null
https://raw.githubusercontent.com/Camilotk/ocaml4noobs/e0bcabb64b7d7749205bbce8a3d0ef75e16e66b3/1_introducao/helloworld/helloworld.ml
ocaml
let hello () = Printf.printf "Hello, %s!" "World"
3182e4c79c5bdd81c4b28e0379524ce45ecd7cfa1d478df04fe8060e70bc6cad
aryx/xix
alarms.ml
open Common open Types less : possible memory leak if a process sets an alarm far away * and gets killed in the mean time ; its Proc_.t will not be gc'ed . * todo : store pid instead in list ? and take care to check for Not_found * when use Proc.proc_of_pid . * and gets killed in the mean time; its Pr...
null
https://raw.githubusercontent.com/aryx/xix/60ce1bd9a3f923e0e8bb2192f8938a9aa49c739c/kernel/time/alarms.ml
ocaml
for alarm_kproc and hz_checkalarms to sleep/wakeup todo: remove sorted list todo: insert sorted list
open Common open Types less : possible memory leak if a process sets an alarm far away * and gets killed in the mean time ; its Proc_.t will not be gc'ed . * todo : store pid instead in list ? and take care to check for Not_found * when use Proc.proc_of_pid . * and gets killed in the mean time; its Pr...
dcf4b7a9c08d94eaa39a82173f386044f64a41ec3d7eacd044afed5d57f11ca4
eareese/htdp-exercises
100-ufo-control.rkt
#lang htdp/bsl (require 2htdp/image) (require 2htdp/universe) Exercise 100 . Design the function si - control , which plays the role of the key event handler . As such , it consumes a game state and a KeyEvent and produces a new game state . It reacts to three different keys : ;; pressing the left arrow ensures tha...
null
https://raw.githubusercontent.com/eareese/htdp-exercises/a85ff3111d459dda0e94d9b463d01a09accbf9bf/part01-fixed-size-data/100-ufo-control.rkt
racket
pressing the left arrow ensures that the tank moves left; pressing the right arrow ensures that the tank moves right; and pressing the space bar fires the missile if it hasn’t been launched yet. Once you have this function, you can define the si-main function, which uses big-bang to spawn the game-playing window. E...
#lang htdp/bsl (require 2htdp/image) (require 2htdp/universe) Exercise 100 . Design the function si - control , which plays the role of the key event handler . As such , it consumes a game state and a KeyEvent and produces a new game state . It reacts to three different keys : (define CANVAS (scene+curve (...
81933ea0a2105e9b140be58395245ff9a4fa24df4734a18f68b7e39e30b310c4
Ramarren/cl-transactional
trivial.lisp
(in-package :cl-transactional-tests) ;;; Test trivial functionality, no actual threads. (in-suite cl-transactional-tests) (defsuite* trivial-transactions) (deftest test-trivial-transaction (subtest) (let ((tvar1 (make-tvar (fset:seq 'a 'b 'c 'd 'e 'f))) (tvar2 (make-tvar (fset:seq)))) (funcall subtest...
null
https://raw.githubusercontent.com/Ramarren/cl-transactional/7276c3edbb1572cc58a271db935e14a4854c0735/tests/trivial.lisp
lisp
Test trivial functionality, no actual threads. Test basic interleaving, retrying, orelsing
(in-package :cl-transactional-tests) (in-suite cl-transactional-tests) (defsuite* trivial-transactions) (deftest test-trivial-transaction (subtest) (let ((tvar1 (make-tvar (fset:seq 'a 'b 'c 'd 'e 'f))) (tvar2 (make-tvar (fset:seq)))) (funcall subtest tvar1 tvar2) (is (equal (gmap:gmap :list #'ide...
3698f60a28f874376bb79b0d5339f93d7f32edb8d43ca9af75821bac58137fbe
j14159/eSpacewar
torps.erl
-module(torps). -behavior(gen_server). -export([init/1, handle_info/2, handle_cast/2, handle_call/3, code_change/3, terminate/2]). %%%---------------------------------------------------------------------- %%% %%% Each live torpedo is tracked by an instance of this module/process. %%% %%%-------------------------------...
null
https://raw.githubusercontent.com/j14159/eSpacewar/1feda7ef6e87f0ac4c3f4154e5b24394bbdaa852/src/torps.erl
erlang
---------------------------------------------------------------------- Each live torpedo is tracked by an instance of this module/process. ----------------------------------------------------------------------
-module(torps). -behavior(gen_server). -export([init/1, handle_info/2, handle_cast/2, handle_call/3, code_change/3, terminate/2]). init({Player, TicksRemaining}) -> {ok, {Player, TicksRemaining}}. handle_info(tick, {Player, 0}) -> {stop, normal, {Player, 0}}; handle_info(tick, {Player, TicksRemaining}) -> {nore...
d1ad575cd71321241dbeae85676899ae8a0cf1b0690140dffc405d902787a759
metametadata/byplay
project.clj
(defproject byplay "0.4.0" :description "Clojure background job queue on top of PostgreSQL 9.5." :url "" :license {:name "MIT" :url ""} :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"] [funcool/clojure.jdbc "0.9.0"] [org.postgresql/postgresql "9.4.1209"] ...
null
https://raw.githubusercontent.com/metametadata/byplay/bfad346181d519430aaa69008818ced254b80de0/project.clj
clojure
(defproject byplay "0.4.0" :description "Clojure background job queue on top of PostgreSQL 9.5." :url "" :license {:name "MIT" :url ""} :dependencies [[org.clojure/clojure "1.8.0" :scope "provided"] [funcool/clojure.jdbc "0.9.0"] [org.postgresql/postgresql "9.4.1209"] ...
ef51e1513304d5311c4ddb146e0aa34e03c365b92bbcb0c903ded5e4e42eb9df
startalkIM/ejabberd
cyrsasl_oauth.erl
%%%---------------------------------------------------------------------- %%% File : cyrsasl_oauth.erl Author : < > %%% Purpose : X-OAUTH2 SASL mechanism Created : 17 Sep 2015 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne %%% %%% This program is free software; you can redistribute...
null
https://raw.githubusercontent.com/startalkIM/ejabberd/718d86cd2f5681099fad14dab5f2541ddc612c8b/src/cyrsasl_oauth.erl
erlang
---------------------------------------------------------------------- File : cyrsasl_oauth.erl Purpose : X-OAUTH2 SASL mechanism This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but...
Author : < > Created : 17 Sep 2015 by < > ejabberd , Copyright ( C ) 2002 - 2016 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
9c3dffdc7fb8f44dcccb0d935b75758122910608218ce5a7f5743ec1fb621e7d
aryx/fork-efuns
lisp_mode.ml
(***********************************************************************) (* *) (* Efuns *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/aryx/fork-efuns/8f2f8f66879d45e26ecdca0033f9c92aec2b783d/prog_modes/lisp_mode.ml
ocaml
********************************************************************* Efuns ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . open Efuns open Options open Lisp_lexer module I = Common_indenter let color_region buf start_poin...
157199771efcf07dcb00475e95cb20f996e327b1ad5d056d2c7424b8e7404f0d
metabase/metabase
permissions.clj
(ns metabase.api.permissions "/api/permissions endpoints." (:require [clojure.spec.alpha :as s] [compojure.core :refer [DELETE GET POST PUT]] [honey.sql.helpers :as sql.helpers] [malli.core :as mc] [malli.error :as me] [malli.transform :as mtx] [metabase.api.common :as api] [metabase.api.com...
null
https://raw.githubusercontent.com/metabase/metabase/f840a96bac739b74a9beb5f942233dcc1071bae0/src/metabase/api/permissions.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ +----------------------------------------------------------------------------------------------------------------+ --------------------------------------------------- Endpoints -------------------------...
(ns metabase.api.permissions "/api/permissions endpoints." (:require [clojure.spec.alpha :as s] [compojure.core :refer [DELETE GET POST PUT]] [honey.sql.helpers :as sql.helpers] [malli.core :as mc] [malli.error :as me] [malli.transform :as mtx] [metabase.api.common :as api] [metabase.api.com...
1113cb1e1dd91e13991796596ee2f99bf432ef54491032ab81ded8b289899086
ucsd-progsys/nate
glob_ast.ml
(***********************************************************************) (* ocamlbuild *) (* *) , , projet Gallium , INRIA Rocquencourt (* ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/ocamlbuild/glob_ast.ml
ocaml
********************************************************************* ocamlbuild ...
, , projet Gallium , INRIA Rocquencourt Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : glob_ast.ml , v 1.1 2007/02/07 08:59:13 erta...
234a4ea02f6b0714436c013059a711783da738efca45b3b5655c5978186ed4a5
clj-commons/ring-buffer
data_readers.clj
{amalloy/ring-buffer amalloy.ring-buffer/read-method}
null
https://raw.githubusercontent.com/clj-commons/ring-buffer/32e283864361e6088fa283c98da0b2f9e55f8af7/src/data_readers.clj
clojure
{amalloy/ring-buffer amalloy.ring-buffer/read-method}
1831b708a286bbc06e404016a4ed8562ffd3e53f4d5d473c2e0d23bb92fc6298
lafka/linedancer
linedancer_socket.erl
-module(linedancer_socket). -behaviour(gen_server). %% API -export([start_link/2]). %% gen_server callbacks -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {network = any :: binary(), %% The client network id ip = ...
null
https://raw.githubusercontent.com/lafka/linedancer/a05eb949b0fec72df7e4663f50871020d35056c0/src/linedancer_socket.erl
erlang
API gen_server callbacks The client network id The client ip addr The current socket The internal acceptor ref
-module(linedancer_socket). -behaviour(gen_server). -export([start_link/2]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). The FSM acceptor module }). -spec start_link(Port :: integer(), Module :: atom()) -> {ok, pid()} | ignore | {error, term...
1246f1f77384842d28362c1801ae62c1d054a6b742055c8ed3aa90bca9b80d02
liarokapisv/danac
Renamer.hs
# LANGUAGE TypeOperators # {-# LANGUAGE GADTs #-} # LANGUAGE ViewPatterns # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeApplications # # LANGUAGE StandaloneDeriving # # LANGUAGE PatternSynonyms # # LANGUAGE ViewPatterns # {-# LANGUAGE Over...
null
https://raw.githubusercontent.com/liarokapisv/danac/662408790ea1bd18ef2462dce45b947e3b8efa74/src/Danac/Renamer.hs
haskell
# LANGUAGE GADTs # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators # # LANGUAGE ViewPatterns # # LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE TypeFamilies # # LANGUAGE TypeApplications # # LANGUAGE StandaloneDeriving # # LANGUAGE PatternSynonyms # # LANGUAGE ViewPatterns # # LANGUAGE TupleSections # module Danac.Renamer where import Dana...
596a499cab257e38346527e90a6e0b841438df133a01f1c80cae022c73f62066
s9gf4ult/type-fun
Main.hs
module Main where import Data.Proxy import TypeFun.Data.List import TypeFun.Data.Peano -- | This function has wider constraint __Int is inside l__ elemConstr :: (Elem Int l) => proxy l -> Int elemConstr p = 1 -- | This function has narrower constraint than 'elemConstr' _ _ Int and are contained in l _ _ sublistCo...
null
https://raw.githubusercontent.com/s9gf4ult/type-fun/a90d4b7ce421b50705df84752fe4185cd63932e2/example/Main.hs
haskell
| This function has wider constraint __Int is inside l__ | This function has narrower constraint than 'elemConstr' | This function has narrower constraint than 'sublistConstr' (Order of elements matters) | This function has narrower constraint and uses inside more wide function < ElementIsNotUniqInList Int ' [ I...
module Main where import Data.Proxy import TypeFun.Data.List import TypeFun.Data.Peano elemConstr :: (Elem Int l) => proxy l -> Int elemConstr p = 1 _ _ Int and are contained in l _ _ sublistConstr :: (SubList '[Int, Bool] l) => proxy l -> Int sublistConstr p = elemConstr p + 1 prefixConstr :: (IsPrefixOf '[Int,...
86960b063365b1410d92625713c5bb967ac32c1d1244e856d4ce66d1a572e50d
Incubaid/arakoon
limits.ml
Copyright ( 2010 - 2014 ) INCUBAID BVBA Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software distribut...
null
https://raw.githubusercontent.com/Incubaid/arakoon/43a8d0b26e4876ef91d9657149f105c7e57e0cb0/src/tools/limits.ml
ocaml
natural order, ie: CPU = 0 etc.
Copyright ( 2010 - 2014 ) INCUBAID BVBA Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software distribut...
f8b88d637843020835e8e0f5fe33d0806a3b2a94281e5e87b1dd9d6bb9ff6d7d
zalora/aws-ec2
DescribeAvailabilityZones.hs
# LANGUAGE TemplateHaskell , MultiParamTypeClasses , TypeFamilies # , MultiParamTypeClasses , TypeFamilies #-} module Aws.Ec2.Commands.DescribeAvailabilityZones where import Aws.Ec2.TH data DescribeAvailabilityZones = DescribeAvailabilityZones [...
null
https://raw.githubusercontent.com/zalora/aws-ec2/60b7ad4464edf3c69da8c2f023db4ba2fa7ffc48/src/Aws/Ec2/Commands/DescribeAvailabilityZones.hs
haskell
# LANGUAGE TemplateHaskell , MultiParamTypeClasses , TypeFamilies # , MultiParamTypeClasses , TypeFamilies #-} module Aws.Ec2.Commands.DescribeAvailabilityZones where import Aws.Ec2.TH data DescribeAvailabilityZones = DescribeAvailabilityZones [...
b19dd164ea006dce17c7987046faaf9b24bac5d9d73a6516449cb5a4958db1d2
nrepl/weasel
project.clj
(defproject weasel-example "NOT_RELEASED" :description "example project for the weasel ClojureScript REPL env" :url "" :license {:name "Unlicense" :url "" :distribution :repo} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.10.520"] ...
null
https://raw.githubusercontent.com/nrepl/weasel/338109d3504fa96b8a15b6892fb8c4aceeb90857/weasel-example/project.clj
clojure
(defproject weasel-example "NOT_RELEASED" :description "example project for the weasel ClojureScript REPL env" :url "" :license {:name "Unlicense" :url "" :distribution :repo} :dependencies [[org.clojure/clojure "1.10.0"] [org.clojure/clojurescript "1.10.520"] ...
d943c836169be5ffbb08ff24baad6f2467c97949ab67072a91544a334ec0723c
varjagg/cl-video
static.lisp
(in-package #:cl-video) (defclass static-stream-record (video-stream-record) ()) (defmethod initialize-instance :after ((rec static-stream-record) &key &allow-other-keys) (initialize-ring rec 1 (* 640 480 3) '(unsigned-byte 8))) (defmethod stream-playback-start ((rec static-stream-record)) (bt:release-lock (va...
null
https://raw.githubusercontent.com/varjagg/cl-video/eb5fbea3592b74cdb0458b7bcdeb70f0423a8183/static.lisp
lisp
small enough for responsiveness sake
(in-package #:cl-video) (defclass static-stream-record (video-stream-record) ()) (defmethod initialize-instance :after ((rec static-stream-record) &key &allow-other-keys) (initialize-ring rec 1 (* 640 480 3) '(unsigned-byte 8))) (defmethod stream-playback-start ((rec static-stream-record)) (bt:release-lock (va...
bdffaef5c4b3893db8ea240241496c0fe7048f161bdf9b0b95f20dac001120cd
bos/rwh
RunProcessSimple.hs
{-- snippet all --} {-# OPTIONS_GHC -fglasgow-exts #-} -- RunProcessSimple.hs module RunProcessSimple where import System.Process import Control.Concurrent import Control.Concurrent.MVar import System.IO import System.Exit import Text.Regex import System.Posix.Process import System.Posix.IO import System.Posix.Types ...
null
https://raw.githubusercontent.com/bos/rwh/7fd1e467d54aef832f5476ebf5f4f6a898a895d1/examples/ch21/RunProcessSimple.hs
haskell
- snippet all - # OPTIONS_GHC -fglasgow-exts # RunProcessSimple.hs | The result of running any command ^ IO action that yields the output ^ IO action that yields exit result | The type for handling global lists of FDs to always close in the clients | Class representing anything that is a runnable command | Gi...
module RunProcessSimple where import System.Process import Control.Concurrent import Control.Concurrent.MVar import System.IO import System.Exit import Text.Regex import System.Posix.Process import System.Posix.IO import System.Posix.Types | The type for running external commands . The first part of the tuple ...
bc6527b358f76f1550e253bb9f466e2eec5ecb24a6fa51f459325cf3df749315
cse-bristol/110-thermos-ui
pipes.cljs
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.params.pipes (:require [thermos-specs.document :as document] [thermos-specs.path :as path] [t...
null
https://raw.githubusercontent.com/cse-bristol/110-thermos-ui/4b105e6ad757e2af50307be28ba5dc4c6388179a/src/thermos_frontend/params/pipes.cljs
clojure
this bit is a horrible thing to provide a stable rownumber for each row in the face of changing diameters. it ought to work, maybe maybe. mech cost
This file is part of THERMOS , copyright © Centre for Sustainable Energy , 2017 - 2021 Licensed under the Reciprocal Public License v1.5 . See LICENSE for licensing details . (ns thermos-frontend.params.pipes (:require [thermos-specs.document :as document] [thermos-specs.path :as path] [t...
e178d52fa69b87b4c227c9f3ba3b9bd8478a0b08125319dca2b0eb5097456eff
3b/3bmd
extensions.lisp
(in-package #:3bmd-grammar) to extend gammar , we have a few specific extension points : ;;; new block types ;;; top level blocks, like paragraphs, tables, quotes, code blocks, etc ;;; new inline types ;;; stuff valid within a block, like special characters, links, etc ;;; new special characters ;;; some rules...
null
https://raw.githubusercontent.com/3b/3bmd/6fc5759448f6f6df6f6df556e020a289a2643288/extensions.lisp
lisp
new block types top level blocks, like paragraphs, tables, quotes, code blocks, etc new inline types stuff valid within a block, like special characters, links, etc new special characters some rules need to recognize special characters of other rules, so add them here new escaped characters extra cha...
(in-package #:3bmd-grammar) to extend gammar , we have a few specific extension points : (defun add-expression-to-list (new list &key before after (test 'eql)) (if (find new list :test test) list (let* ((len (length list)) (min (loop for i in after when (eql i :end) ...
170923b776cf0b432169eb11249081aed5456ee413376137d058c3c53979706d
cram2/cram
package.lisp
;;; Copyright ( c ) 2017 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this list...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_knowrob/cram_knowrob_assembly/src/package.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redi...
Copyright ( c ) 2017 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
420011e965712030bdb90844e92b86f81d7e8ff6354966bf48fde6f2c8c1d83e
DrTom/clj-pg-types
json.clj
(ns pg-types.sql-parameter.json (:require [pg-types.sql-parameter :refer :all] [clojure.data.json :as json] ) (:import [org.postgresql.util PGobject] )) (defn k2str [k] (if (keyword? k) (subs (str k) 1) (str k) )) (defn create-pg-object [type-name-kw value] (doto (PGobject.) (.setType ...
null
https://raw.githubusercontent.com/DrTom/clj-pg-types/32bc0432fb616c609e964e3764b54b3826952afa/src/pg_types/sql_parameter/json.clj
clojure
(ns pg-types.sql-parameter.json (:require [pg-types.sql-parameter :refer :all] [clojure.data.json :as json] ) (:import [org.postgresql.util PGobject] )) (defn k2str [k] (if (keyword? k) (subs (str k) 1) (str k) )) (defn create-pg-object [type-name-kw value] (doto (PGobject.) (.setType ...
ecd41bfd7a7df3c00e883d4527ec10fe3c4a616ef3b3e6d2d90db89b1e423d05
gator1/jepsen
nemesis_test.clj
(ns jepsen.nemesis-test (:use clojure.test clojure.pprint jepsen.nemesis) (:require [jepsen.client :as client] [jepsen.control :as c] [jepsen.control.net :as net] [jepsen.util :refer [meh]] [jepsen.tests :refer [noop-test]])) (defn edges "A map of n...
null
https://raw.githubusercontent.com/gator1/jepsen/1932cbd72cbc1f6c2a27abe0fe347ea989f0cfbb/jepsen/test/jepsen/nemesis_test.clj
clojure
(let [n (partition-halves)] (try (client/setup! n noop-test nil) (is (= (edges noop-test) {:n1 #{:n1 :n2 :n3 :n4 :n5} :n2 #{:n1 :n2 :n3 :n4 :n5} :n3 #{:n1 :n2 :n3 :n4 :n5} :n4 #{:n1 :n2 :n3 :n4 :n5} :n5 #{:n1 :n2 :n3 :n4 :n5}})) (client/invoke! n ...
(ns jepsen.nemesis-test (:use clojure.test clojure.pprint jepsen.nemesis) (:require [jepsen.client :as client] [jepsen.control :as c] [jepsen.control.net :as net] [jepsen.util :refer [meh]] [jepsen.tests :refer [noop-test]])) (defn edges "A map of n...
645bbc1c25d5f9ff3fc817f8b0f9a144b29764ce7557cb6b3c209bb91d68c914
dmjio/lens-th-rewrite
Main.hs
# LANGUAGE ViewPatterns # module Main where import Debug.Trace import GHC.Plugin.LensThRewrite import System.Environment import System.Exit import Language.Haskell.GHC.ExactPrint.Parsers import Language.Haskell.GHC.ExactPrint import GHC hiding (parseModule) import CoreSyn import G...
null
https://raw.githubusercontent.com/dmjio/lens-th-rewrite/42fb2ec56d97d009e7cdfe4fec4ba55bd6c9de5f/pp/Main.hs
haskell
# LANGUAGE ViewPatterns # module Main where import Debug.Trace import GHC.Plugin.LensThRewrite import System.Environment import System.Exit import Language.Haskell.GHC.ExactPrint.Parsers import Language.Haskell.GHC.ExactPrint import GHC hiding (parseModule) import CoreSyn import G...
c277fc1b964bd4f8db2546f76606741fcc7db5cb8f524741282e19d7e0e51fb5
ocsigen/eliom
eliom_content_sigs.shared.mli
Ocsigen * * Copyright ( C ) 2015 * * 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 your ...
null
https://raw.githubusercontent.com/ocsigen/eliom/c3e0eea5bef02e0af3942b6d27585add95d01d6c/src/lib/eliom_content_sigs.shared.mli
ocaml
Ocsigen * * Copyright ( C ) 2015 * * 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 your ...
270806e2674a3e4f8b60a3feec6dc5a0e0155c0f9be912ab92fc983ef982f0c7
timbertson/opam2nix
repo.mli
type spec = { github_owner: string; github_name: string; spec_commit: string option; } type t = { repo_key: string; spec: spec; (* TODO: OpamFilename.Dir.t? *) repo_path: string; repo_commit: string; returned as Lwt.t because it 's needed lazily much later than commit and version repo_digest: Digest_cache.n...
null
https://raw.githubusercontent.com/timbertson/opam2nix/36b7627a8409f28aae295f9a0f8a9a8d143a0f14/src/repo.mli
ocaml
TODO: OpamFilename.Dir.t? * a direct package is passed on the commandline, and is not from any repository * low level pkg returned by lookup, which is all Extract module needs * Loaded package, either from an opam repo or direct package supplied on the commandline
type spec = { github_owner: string; github_name: string; spec_commit: string option; } type t = { repo_key: string; spec: spec; repo_path: string; repo_commit: string; returned as Lwt.t because it 's needed lazily much later than commit and version repo_digest: Digest_cache.nix_digest Lwt.t; } type package ...
d5563b8054c07b0a8da60015204d89649fd1f1c85a62cfe1bfb8615b7f7f1667
irastypain/sicp-on-language-racket
test_exercise_2_36.rkt
#lang racket (require rackunit "../../src/chapter02/exercise_2_36.rkt") (check-equal? (accumulate-n + 0 (list (list) (list))) (list) (printf "test#1 2.36 passed\n")) (check-equal? (accumulate-n + 0 (list (list 1 2 3) (list 4 5 6) (list 7 8 9) (list 10 11 12))) (list...
null
https://raw.githubusercontent.com/irastypain/sicp-on-language-racket/0052f91d3c2432a00e7e15310f416cb77eeb4c9c/test/chapter02/test_exercise_2_36.rkt
racket
#lang racket (require rackunit "../../src/chapter02/exercise_2_36.rkt") (check-equal? (accumulate-n + 0 (list (list) (list))) (list) (printf "test#1 2.36 passed\n")) (check-equal? (accumulate-n + 0 (list (list 1 2 3) (list 4 5 6) (list 7 8 9) (list 10 11 12))) (list...
1cd53338ec7565d34a0f735e498a7bc5e48541191bf03232b257a98faf4e6b8e
msp-strath/Mary
Pretty.hs
{-# LANGUAGE MultiWayIf #-} {-# LANGUAGE DefaultSignatures #-} # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Shonkier.Pretty where import Data.Char import Data.Foldable import Data.Function import qualified Data.Map as Map import Data.List (isPrefixOf, intersperse, groupBy, ...
null
https://raw.githubusercontent.com/msp-strath/Mary/d805849e6da4133093564077d2344815155d7e5e/src/Shonkier/Pretty.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE DefaultSignatures # by default, ignore precedence if we're forced to vary the empty keyword, we need to kick off with an alpha deal with variables on rhs introduced by brace sections ---------------------------------------------------------------------------- can tell...
# LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # module Shonkier.Pretty where import Data.Char import Data.Foldable import Data.Function import qualified Data.Map as Map import Data.List (isPrefixOf, intersperse, groupBy, stripPrefix) import Data.Ratio needed for ghc versions < = 8.2.2 import Da...
9fb6d3940f7b3535b2f5ed6b0926afe349a8328d47e62805f807d07f0c68edbf
sbcl/sbcl
parms.lisp
;;;; This file contains some parameterizations of various VM ;;;; attributes for the PPC. This file is separate from other stuff so ;;;; that it can be compiled and loaded earlier. This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU ...
null
https://raw.githubusercontent.com/sbcl/sbcl/a082e5a3ecdb4aced5e748fe8ffe35714999923c/src/compiler/ppc/parms.lisp
lisp
This file contains some parameterizations of various VM attributes for the PPC. This file is separate from other stuff so that it can be compiled and loaded earlier. more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS fi...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-VM") (defconstant sb-assem:assem-scheduler-p nil) (defconstant sb-assem:+inst-alignment-bytes+ 4) 2003 - 0...
cf8c73facc42dffc4e68d6d476c2578241d7ea83600ba22de94541839baf870f
emanjavacas/cosycat
leave_project_modal.cljs
(ns cosycat.project.components.leave-project-modal (:require [re-frame.core :as re-frame] [reagent.core :as reagent] [react-bootstrap.components :as bs] [cosycat.components :refer [compute-feedback]] [cosycat.utils :refer [human-time]] [taoensso.timbre :as t...
null
https://raw.githubusercontent.com/emanjavacas/cosycat/a7186363d3c0bdc7b714af126feb565f98793a6e/src/cljs/cosycat/project/components/leave_project_modal.cljs
clojure
(ns cosycat.project.components.leave-project-modal (:require [re-frame.core :as re-frame] [reagent.core :as reagent] [react-bootstrap.components :as bs] [cosycat.components :refer [compute-feedback]] [cosycat.utils :refer [human-time]] [taoensso.timbre :as t...
48ecaf2746d35e4a1435968fc0ee3243179095b4d864075abeef17c172156d78
OCamlPro/ez_api
arg.ml
(**************************************************************************) (* *) (* Copyright 2018-2023 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/5253f7dd8936e923290aa969ee43ebd3dc6fce2d/src/common/arg.ml
ocaml
************************************************************************ Copyright 2018-2023 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special module Ty = struct type 'a witness = .. exception Not_equal type (_, _) eq = Eq : ('a, 'a) eq module type Ty = sig type t val witness : t witness val eq: 'a witness -> ('a, t) eq end type 'a id = (module Ty with type t ...
cc2abcef66825f796bc0ac34e6899c8969da8dc3875cb2bf3cf470509765c9f6
pbv/codex
Config.hs
{-# LANGUAGE OverloadedStrings #-} module Codex.Config where import qualified Data.HashMap.Strict as HM import Snap.Util.FileServe(MimeMap, defaultMimeTypes) -- | custom mime type mapping mimeTypes :: MimeMap mimeTypes = HM.union defaultMimeTypes $ HM.fromList [(".mdown", "text/markdown"), ...
null
https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/Config.hs
haskell
# LANGUAGE OverloadedStrings # | custom mime type mapping
module Codex.Config where import qualified Data.HashMap.Strict as HM import Snap.Util.FileServe(MimeMap, defaultMimeTypes) mimeTypes :: MimeMap mimeTypes = HM.union defaultMimeTypes $ HM.fromList [(".mdown", "text/markdown"), (".md", "text/markdown"), (".tst", "text/...
fd14675face38e68af5881573f7c8257e60e74e930b74f7fe9c0083738d9ceea
uber/queryparser
Test.hs
Copyright ( c ) 2017 Uber Technologies , Inc. -- -- 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, modify, mer...
null
https://raw.githubusercontent.com/uber/queryparser/6015e8f273f4498326fec0315ac5580d7036f8a4/test/Database/Sql/Presto/Parser/Test.hs
haskell
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice ...
Copyright ( c ) 2017 Uber Technologies , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY K...
c40fb39dfc2f30818932055a0d02fb1cfa66f5a755c0afe1e363866d9024e8eb
fission-codes/fission
Types.hs
module Fission.Internal.Mock.Effect.Types ( RunIO (..) , RunThrow (..) , RunCatch (..) , GetTime (..) , LogMsg (..) , RunLocalIPFS (..) , RunRemoteIPFS (..) ) where import Control.Monad.Logger as Logger import qualified Network.IPFS.Types as IPFS import ...
null
https://raw.githubusercontent.com/fission-codes/fission/629f20c2d34201ae3211e398066b1a72dceb127e/fission-core/library/Fission/Internal/Mock/Effect/Types.hs
haskell
module Fission.Internal.Mock.Effect.Types ( RunIO (..) , RunThrow (..) , RunCatch (..) , GetTime (..) , LogMsg (..) , RunLocalIPFS (..) , RunRemoteIPFS (..) ) where import Control.Monad.Logger as Logger import qualified Network.IPFS.Types as IPFS import ...
0a22f45efa5849e8b488e698227d0c3e92d1e598e6decf66d204af120709fa58
sudo-rushil/lambda
Reduce.hs
| Module : Lambda . Reduce Description : Reduction operations for λ terms : Exprs License : MIT Maintainer : Module : Lambda.Reduce Description : Reduction operations for λ terms: Exprs License : MIT Maintainer : Rushil Mallarapu -} module Lambda.Reduce ( reduce , freevars ...
null
https://raw.githubusercontent.com/sudo-rushil/lambda/70474f5053540a693be2f317062074417a687ff7/src/Lambda/Reduce.hs
haskell
Reduction of lambda expressions Helper functions necessary for operations
| Module : Lambda . Reduce Description : Reduction operations for λ terms : Exprs License : MIT Maintainer : Module : Lambda.Reduce Description : Reduction operations for λ terms: Exprs License : MIT Maintainer : Rushil Mallarapu -} module Lambda.Reduce ( reduce , freevars ...
d39287e2965d4c9dd4087cb1c0c9bc6941f2b62f23807f4139cf8abab40e1ae0
benzap/eden
symbol.cljc
(ns eden.utils.symbol (:refer-clojure :exclude [contains?]) (:require [clojure.string :as str])) (defn starts-with? [sym s] (let [sym (str sym) s (str s)] (str/starts-with? sym s))) (defn ends-with? [sym s] (let [sym (str sym) s (str s)] (str/ends-with? sym s))) (defn contai...
null
https://raw.githubusercontent.com/benzap/eden/dbfa63dc18dbc5ef18a9b2b16dbb7af0e633f6d0/src/eden/utils/symbol.cljc
clojure
(ns eden.utils.symbol (:refer-clojure :exclude [contains?]) (:require [clojure.string :as str])) (defn starts-with? [sym s] (let [sym (str sym) s (str s)] (str/starts-with? sym s))) (defn ends-with? [sym s] (let [sym (str sym) s (str s)] (str/ends-with? sym s))) (defn contai...
3486f1d5a1abf0066210ec79c0f33b380555e0f1de15c9b5c0c5883b0fdcbde9
nosco/hx
react_test.cljs
(ns hx.react-test (:require [cljs.test :as t :include-macros true] [hx.react :as hx] [goog.dom :as dom] [goog.object :as gobj] [clojure.string :as str] ["react-testing-library" :as rtl])) (t/use-fixtures :each {:after rtl/cleanup}) ;; Utils ;; (def re...
null
https://raw.githubusercontent.com/nosco/hx/ce7752b2a551b9d1ca534a550e4a4644386c6241/test/hx/react_test.cljs
clojure
Tests so here we test to see if the container matches \">hi</div>") \">hi</div>") background: green;\">hi</div>") background: green;\">hi</div>")
(ns hx.react-test (:require [cljs.test :as t :include-macros true] [hx.react :as hx] [goog.dom :as dom] [goog.object :as gobj] [clojure.string :as str] ["react-testing-library" :as rtl])) (t/use-fixtures :each {:after rtl/cleanup}) Utils (def render r...
2d03d30b03ad280e7b777e87790d99010262d4c3cb696a17e96dcdbbddd4ae16
puppetlabs/jruby-utils
jruby_pool_test.clj
(ns puppetlabs.services.jruby-pool-manager.jruby-pool-test (:require [clojure.set :as set] [clojure.test :refer :all] [puppetlabs.kitchensink.core :as ks] [puppetlabs.services.jruby-pool-manager.jruby-testutils :as jruby-testutils] [puppetlabs.services.jruby-pool-manage...
null
https://raw.githubusercontent.com/puppetlabs/jruby-utils/7b53c3c6a0c61635362402313bcec809abf5a856/test/unit/puppetlabs/services/jruby_pool_manager/jruby_pool_test.clj
clojure
Tests start a pool initialization, which will block on the `initialize-pool-instance` function's deref of the promise start a borrow, which should block until an instance becomes available deliver the promise, allowing the pool initialization to complete now the borrow can complete borrow both instances from th...
(ns puppetlabs.services.jruby-pool-manager.jruby-pool-test (:require [clojure.set :as set] [clojure.test :refer :all] [puppetlabs.kitchensink.core :as ks] [puppetlabs.services.jruby-pool-manager.jruby-testutils :as jruby-testutils] [puppetlabs.services.jruby-pool-manage...
19a1ad6e8960f2e6cbdfffdf6b781f83b7fce521c1208ff733887cc6bc3f73a9
master/ejabberd
extauth.erl
%%%---------------------------------------------------------------------- %%% File : extauth.erl Author : < > %%% Purpose : External authentication using a simple port-driver Created : 30 Jul 2004 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne %%% %%% This program is free software;...
null
https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/extauth.erl
erlang
---------------------------------------------------------------------- File : extauth.erl Purpose : External authentication using a simple port-driver This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it...
Author : < > Created : 30 Jul 2004 by < > ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Founda...
dd304bd059e1972ca76fb10b9a6f889574b9c311870465f517cf91e1f52e7f02
Vaguery/klapaucius
one_with_everything.clj
(ns push.interpreter.templates.one-with-everything (:require [push.interpreter.templates.minimum :as m] [push.interpreter.definitions :as defs] [push.interpreter.core :as i] ) (:use [push.type.module.behavior] [push.type.item.boolean] [push.type.item.c...
null
https://raw.githubusercontent.com/Vaguery/klapaucius/17b55eb76feaa520a85d4df93597cccffe6bdba4/src/push/interpreter/templates/one_with_everything.clj
clojure
(ns push.interpreter.templates.one-with-everything (:require [push.interpreter.templates.minimum :as m] [push.interpreter.definitions :as defs] [push.interpreter.core :as i] ) (:use [push.type.module.behavior] [push.type.item.boolean] [push.type.item.c...
d8953033d28b762a7e7f085ea33802314b9e855463f46cc23467414e9649db3a
racket/htdp
info.rkt
#lang info (define release-note-files (list (list "Teachpacks" "HISTORY.txt"))) (define test-responsibles '((all matthias))) (define test-omit-paths (list "balls.ss"))
null
https://raw.githubusercontent.com/racket/htdp/aa78794fa1788358d6abd11dad54b3c9f4f5a80b/htdp-lib/teachpack/info.rkt
racket
#lang info (define release-note-files (list (list "Teachpacks" "HISTORY.txt"))) (define test-responsibles '((all matthias))) (define test-omit-paths (list "balls.ss"))
eb328747d17e1c4febd13a6ad1c53f02a82eb2a301e312913a7c1a05bc9e5bc0
dapphub/dapptools
Hexdump.hs
Copyright ( c ) 2011 , Galois Inc. All rights reserved . -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of ...
null
https://raw.githubusercontent.com/dapphub/dapptools/beaaeb6a6ad1cde22989bd088b10bdd06718b73f/src/hevm/src/EVM/Hexdump.hs
haskell
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in bina...
Copyright ( c ) 2011 , Galois Inc. All rights reserved . * Neither the name of nor the names of other " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED T...
90a4553157bd2374dc10223ccb4c3b5ab7609256b20e8329dd00ddd9f74b7532
Bogdanp/Noise
serde.rkt
#lang racket/base (require (for-syntax racket/base racket/provide-transform racket/syntax syntax/parse) racket/contract racket/generic racket/port "sequencer.rkt") ;; : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
null
https://raw.githubusercontent.com/Bogdanp/Noise/67d60bc15e5b366edf5f77c3ee588faec8a273bd/Racket/noise-serde-lib/private/serde.rkt
racket
: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; record ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; enum ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; varint ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; field ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;...
#lang racket/base (require (for-syntax racket/base racket/provide-transform racket/syntax syntax/parse) racket/contract racket/generic racket/port "sequencer.rkt") (provide :) (define-syntax (: stx) (raise-syntax-er...
75a8fcd61410276e821c33d64456ee1c8ce313a54b215eeb8f27cf69471920de
smimram/catt
catt.ml
(** Main for CATT. *) let parse_file f = let sin = let fi = open_in f in let flen = in_channel_length fi in let buf = Bytes.create flen in really_input fi buf 0 flen; close_in fi; buf in Prover.parse (Bytes.to_string sin) let usage = "catt [options] [file]" let interactive = ref false l...
null
https://raw.githubusercontent.com/smimram/catt/a44015bd71ef759db6736943a732bae643147b75/src/catt.ml
ocaml
* Main for CATT. let envps = Lang.Env.add_ps (fst envs) ps in
let parse_file f = let sin = let fi = open_in f in let flen = in_channel_length fi in let buf = Bytes.create flen in really_input fi buf 0 flen; close_in fi; buf in Prover.parse (Bytes.to_string sin) let usage = "catt [options] [file]" let interactive = ref false let () = Printexc.rec...
335c4eb6f6ab5b0a82da68c8249ab932b0c4e2fe1fbd5f9a1a35c63fa1da3c31
lambdabot/lambdabot
Message.hs
-- -- Provides interface to messages, message pipes -- module Lambdabot.Message ( Message(..) ) where import Lambdabot.Nick TODO : probably remove " Show a " later ( used only to implement @echo ) class Show a => Message a where -- | extracts the tag of the server involved in a given message server ...
null
https://raw.githubusercontent.com/lambdabot/lambdabot/de01f362c7a8fc6f85c37e604168dcccb1283a0e/lambdabot-core/src/Lambdabot/Message.hs
haskell
Provides interface to messages, message pipes | extracts the tag of the server involved in a given message | extracts the nickname involved in a given message. | 'fullName' extracts the full user name involved in a given message. | 'channels' extracts the channels a Message operate on. TODO: there must be a bet...
module Lambdabot.Message ( Message(..) ) where import Lambdabot.Nick TODO : probably remove " Show a " later ( used only to implement @echo ) class Show a => Message a where server :: a -> String nick :: a -> Nick fullName :: a -> String channels :: a -> [Nick] lamb...
347d03383bff728ebedfe2e64d2fbdd7e5be26fda0e9909b724ede60eba62bae
ghc/packages-dph
Closure.hs
# LANGUAGE CPP # #include "fusion-phases.h" -- | Closures. -- Used when closure converting the source program during vectorisation. module Data.Array.Parallel.Lifted.Closure ( -- * Closures. (:->)(..) , ($:) -- * Array Closures. , PData(..), PDatas(..) , ($:^), lif...
null
https://raw.githubusercontent.com/ghc/packages-dph/64eca669f13f4d216af9024474a3fc73ce101793/dph-lifted-boxed/Data/Array/Parallel/Lifted/Closure.hs
haskell
| Closures. Used when closure converting the source program during vectorisation. * Closures. * Array Closures. * Closure Construction. Closures ------------------------------------------------------------------- | Define the fixity of the closure type constructor. | The type of closures. This bundles up: ...
# LANGUAGE CPP # #include "fusion-phases.h" module Data.Array.Parallel.Lifted.Closure (:->)(..) , ($:) , PData(..), PDatas(..) , ($:^), liftedApply , closure1, closure2, closure3, closure4 , closure1', closure2', closure3', closure4') where import Data.Array.Para...
6697b5c00e24bd97d598bc9db7aaa7a7f5d8311fc7a92a91177f5f1857f675fa
arttuka/reagent-material-ui
energy_savings_leaf.cljs
(ns reagent-mui.icons.energy-savings-leaf "Imports @mui/icons-material/EnergySavingsLeaf as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def energy-savings-leaf...
null
https://raw.githubusercontent.com/arttuka/reagent-material-ui/c7cd0d7c661ab9df5b0aed0213a6653a9a3f28ea/src/icons/reagent_mui/icons/energy_savings_leaf.cljs
clojure
(ns reagent-mui.icons.energy-savings-leaf "Imports @mui/icons-material/EnergySavingsLeaf as a Reagent component." (:require-macros [reagent-mui.util :refer [create-svg-icon e]]) (:require [react :as react] ["@mui/material/SvgIcon" :as SvgIcon] [reagent-mui.util])) (def energy-savings-leaf...
9bb4f8666727f605759b3eb41353b130e4c3c12e33afc7da49d827a62f182741
openmusic-project/OMChroma
time-processing_INPROGRESS.lisp
;---------------------------------------------------------------; ;****** USER-DEFINED FUNCTIONS FOR MODIFYING MODELS' ***********; ;****** TEMPORAL DATA ******************************************; ;---------------------------------------------------------------; (in-package :om) ; AVAILABLE TIME FUNCTIONS (alphabet...
null
https://raw.githubusercontent.com/openmusic-project/OMChroma/1accf54b21d7c6516c5a0494a7401165a027edc2/sources/chroma/models/Tests/time-processing_INPROGRESS.lisp
lisp
---------------------------------------------------------------; ****** USER-DEFINED FUNCTIONS FOR MODIFYING MODELS' ***********; ****** TEMPORAL DATA ******************************************; ---------------------------------------------------------------; AVAILABLE TIME FUNCTIONS (alphabetical list) durs->onsets ...
(in-package :om) durs->timestruct onsets->ioi segs->durs (defmethod remove-segments ((lsegs list) (ltimes list) epsilon &optional lvps) :indoc '("List of time segments" "List of time values" "Minimum time resolution" "Optional list") :initvals '('((0 1) (1 1.4) (2 2.1)) '(1.2 2) 0.001...
17509b4607348385761a9f047979a9b0082f2dc0bd3f56e31c38b72b6a8d53d4
rtoy/cmucl
openbsd-features.lisp
;; e.g. for OpenBSD on x86 you probably want: ;;(pushnew :x86 *features*) ;;(pushnew :openbsd *features*) ;;(pushnew :bsd *features*) Select conservative GC : ;;(pushnew @@gcname@@ *features*) ;; This X86 port supports multiprocessing ;;(pushnew :mp *features*) ;; CPU selection: ;; i486 gives you faster locking ;;(...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/tools/setenv-scripts/openbsd-features.lisp
lisp
e.g. for OpenBSD on x86 you probably want: (pushnew :x86 *features*) (pushnew :openbsd *features*) (pushnew :bsd *features*) (pushnew @@gcname@@ *features*) This X86 port supports multiprocessing (pushnew :mp *features*) CPU selection: i486 gives you faster locking (pushnew :i486 *features*)
Select conservative GC : Pentium gives you CPU cyclecounts in time ( : pentium * features * )
a1586bfc36eaa5197d0314a5c81ae8c6b8bd349f8b12ddc6adfc528efd2c13c8
ryukzak/nitta
Tests.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PartialTypeSignatures # # LANGUAGE QuasiQuotes # {-# OPTIONS -fno-warn-partial-type-signatures #-} | Module : NITTA.Model . ProcessorUnits . Multiplier . Tests Description : Copyright : ( c ) , 2020 License : : Stab...
null
https://raw.githubusercontent.com/ryukzak/nitta/6d5cab0465ff5bcccfe419b8d8553266c530f7b7/test/NITTA/Model/ProcessorUnits/Multiplier/Tests.hs
haskell
# LANGUAGE OverloadedStrings # # OPTIONS -fno-warn-partial-type-signatures #
# LANGUAGE DataKinds # # LANGUAGE PartialTypeSignatures # # LANGUAGE QuasiQuotes # | Module : NITTA.Model . ProcessorUnits . Multiplier . Tests Description : Copyright : ( c ) , 2020 License : : Stability : experimental Module : NITTA.Model.ProcessorUnits.Multiplier.Tests D...
343d06216ba5481d64029a796cea962c7d7196c364bc134dbe661b4e7f5e114f
provinciesincijfers/gebiedsniveaus
0 maak_gemeente.sps
* Encoding: windows-1252. GET DATA /TYPE=XLS /FILE= 'C:\github\gebiedsniveaus\kerntabellen\kerntabel.xls' /SHEET=name 'toewijzingstabel_alles' /CELLRANGE=FULL /READNAMES=ON /DATATYPEMIN PERCENTAGE=95.0. EXECUTE. DATASET NAME kerntabel WINDOW=FRONT. DATASET DECLARE gemeente. AGGREGATE /OUTFILE='gemeen...
null
https://raw.githubusercontent.com/provinciesincijfers/gebiedsniveaus/84bd86174f5e155aae431010acbb7949e0be9e80/scripts/0%20maak_gemeente.sps
scheme
* Encoding: windows-1252. GET DATA /TYPE=XLS /FILE= 'C:\github\gebiedsniveaus\kerntabellen\kerntabel.xls' /SHEET=name 'toewijzingstabel_alles' /CELLRANGE=FULL /READNAMES=ON /DATATYPEMIN PERCENTAGE=95.0. EXECUTE. DATASET NAME kerntabel WINDOW=FRONT. DATASET DECLARE gemeente. AGGREGATE /OUTFILE='gemeen...
f223f00f7aa646f74a27381c7975425baf7d5117b09089ef3240f890d18e86af
scalaris-team/scalaris
inc_on_cseq.erl
2014 - 2017 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software ...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/rbr/inc_on_cseq.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2014 - 2017 Zuse Institute Berlin , Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > value based on . -module(inc_on_cseq). -author(''). -vsn('$Id:$ '). -include("scalaris.hrl"). -include(...
86d4646b86dbe68892f000d96fd81df60ab76f48ab6edcc47cd40417b8658cc7
jakemcc/sicp-study
2_24.clj
Exercise 2.24 Clojure= > ( list 1 ( list 2 ( list 3 4 ) ) ) ( 1 ( 2 ( 3 4 ) ) ) ; ; ; Tree below. Not going to show boxes ( 1 ( 2 ( 3 4 ) ) ) ; / \ 1 ( 2 ( 3 4 ) ) ; / \ 2 ( 3 4 ) ; / \ ...
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section2.2/2_24.clj
clojure
Tree below. Not going to show boxes / \ / \ / \
Exercise 2.24 Clojure= > ( list 1 ( list 2 ( list 3 4 ) ) ) ( 1 ( 2 ( 3 4 ) ) ) ( 1 ( 2 ( 3 4 ) ) ) 1 ( 2 ( 3 4 ) ) 2 ( 3 4 ) 3 4
b523bdc5ab0fbd9771df793420ed274c2f93cfd80e62160009a107a964230eae
scheme/edwin48
variable.scm
-*- Mode : Scheme ; scheme48 - package : edwin48 : variable -*- ;;; variables ;;; (define-record-type* variable (%make-variable) (name %description %value buffer-local? initial-value %default-value assignment-daemons value-validity-test value-normalization)) (define (variable-descript...
null
https://raw.githubusercontent.com/scheme/edwin48/fbe3c7ca14f1418eafddebd35f78ad12e42ea851/edwin48/variable.scm
scheme
scheme48 - package : edwin48 : variable -*-
variables (define-record-type* variable (%make-variable) (name %description %value buffer-local? initial-value %default-value assignment-daemons value-validity-test value-normalization)) (define (variable-description variable) (let ((desc (variable-%description variable))) (if (de...
2b89192dc2b5f8f061f434cc586615f14d5c339f935877a099718d3f409bc358
weldr/bdcs
Customize.hs
# LANGUAGE FlexibleContexts # module BDCS.Export.Customize(CSOverlay, Customization(..), addToOverlay, filesToObjectsC, runCustomizations) where import qualified Control.Exception.Lifted as CEL import ...
null
https://raw.githubusercontent.com/weldr/bdcs/cf360c3240644b4847336b9d58b2067f3aa1ec50/src/BDCS/Export/Customize.hs
haskell
Not everything looks good as an operator, hlint If the file has content, create a hash of it and add the content to the overlay. The digest type doesn't need to match the content store, it just needs to be something we can use as a hash key. Add the metadata to the FSTree
# LANGUAGE FlexibleContexts # module BDCS.Export.Customize(CSOverlay, Customization(..), addToOverlay, filesToObjectsC, runCustomizations) where import qualified Control.Exception.Lifted as CEL import ...
b4062d941c297b714eb3e402db430706526c7902b25878fbdcdcc05325c6786d
jahfer/othello
example_test.clj
(ns plaintext.example-test (:require [clojure.test :refer :all])) (deftest example-passing-test (is (= 1 1)))
null
https://raw.githubusercontent.com/jahfer/othello/443fc3aae65a6d7ebd8f5943279f029a091edf4c/examples/plaintext/test/clj/plaintext/example_test.clj
clojure
(ns plaintext.example-test (:require [clojure.test :refer :all])) (deftest example-passing-test (is (= 1 1)))
d9d15bdaab889653629dd3c3f098cec5798c027870a0efa83770d712eeda69be
brandonchinn178/advent-of-code
Day8.hs
{- stack script --resolver lts-14.12 -} {-# OPTIONS_GHC -Wall -Werror #-} import Control.Monad (msum) import Data.Char (digitToInt) import Data.List (minimumBy, transpose) import Data.List.Extra (chunksOf) import Data.Maybe (fromJust) import Data.Ord (comparing) main :: IO () main = do input <- map digitToInt ...
null
https://raw.githubusercontent.com/brandonchinn178/advent-of-code/a4b0616f8764620e28759276c333fe37d6685d57/2019/Day8.hs
haskell
stack script --resolver lts-14.12 # OPTIONS_GHC -Wall -Werror # Layer utilities Image
import Control.Monad (msum) import Data.Char (digitToInt) import Data.List (minimumBy, transpose) import Data.List.Extra (chunksOf) import Data.Maybe (fromJust) import Data.Ord (comparing) main :: IO () main = do input <- map digitToInt . head . lines <$> readFile "Day8.txt" print $ part1 input print $ part2 ...
34476021381ab574c813b494f1fc5efb0d5d21bb3b28792359a1cb019fcfe552
mark-watson/haskell_tutorial_cookbook_examples
NlpWebClient.hs
{-# LANGUAGE OverloadedStrings #-} -- reference: module NlpWebClient ( nlpClient ) where import Control.Lens import Data.ByteString.Lazy.Char8 (unpack) import Data.Maybe (fromJust) import Network.URI.Encode (encode) import Network.Wreq base_url = ":8008?text=" nlpClient :: [Char] -> IO [Char] nlpClient query =...
null
https://raw.githubusercontent.com/mark-watson/haskell_tutorial_cookbook_examples/0f46465b67d245fa3853b4e320d79b7d7234e061/knowledge_graph_creator_pure/src/webclients/NlpWebClient.hs
haskell
# LANGUAGE OverloadedStrings # reference:
module NlpWebClient ( nlpClient ) where import Control.Lens import Data.ByteString.Lazy.Char8 (unpack) import Data.Maybe (fromJust) import Network.URI.Encode (encode) import Network.Wreq base_url = ":8008?text=" nlpClient :: [Char] -> IO [Char] nlpClient query = do putStrLn $ "\n\n*** Processing " ++ query ...
608b1baea066c271a3a524e824f5d7769a50064c7921859afc942fbcdaf45dfb
tip-org/tools
Lint.hs
# LANGUAGE CPP , RecordWildCards , OverloadedStrings , FlexibleContexts , ViewPatterns # -- | Check that a theory is well-typed. -- -- Invariants: -- -- * No shadowing---checked by scope monad. -- -- * Each local is bound before it's used. -- -- * All expressions are well-typed. -- -- * The result of each construct...
null
https://raw.githubusercontent.com/tip-org/tools/6b9ce833146b6e259abc7629357518e667420ba8/tip-lib/src/Tip/Lint.hs
haskell
| Check that a theory is well-typed. Invariants: * No shadowing---checked by scope monad. * Each local is bound before it's used. * All expressions are well-typed. * The result of each constructor should be a value of that datatype. * Expressions and formulas not mixed. import Debug.Trace | Crashes...
# LANGUAGE CPP , RecordWildCards , OverloadedStrings , FlexibleContexts , ViewPatterns # * Default case comes first . No duplicate cases . module Tip.Lint (lint, lintM, lintTheory, lintEither) where #include "errors.h" import Tip.Core import Tip.Scope import Tip.Pretty import Tip.Rename import Control.Monad import ...