_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
14a53779c3d6c294f5b065725445d0a8b0ec0ccd60003c04f758ce1120941f48
JHU-PL-Lab/jaylang
jay_to_jayil_monad.ml
open Batteries open Jayil open Jay open Jay_ast open Translation_context module TranslationMonad : sig include Monad.Monad val run : translation_context -> 'a m -> 'a (** Run the monad to completion *) val run_verbose : translation_context -> 'a m -> 'a * translation_context (** Run the monad to completion...
null
https://raw.githubusercontent.com/JHU-PL-Lab/jaylang/4bdb74ebeb207e5cea4368bc8d4aa27f03c49cf7/src/jay-translate/jay_to_jayil_monad.ml
ocaml
* Run the monad to completion * Run the monad to completion * Create a fresh var * Add an jayil var to note that it was added during instrumentation (and that it does not have an associated pre-instrumentation clause) * Map an jayil var to a jay expression * Map a jay expression to another jay expression * ...
open Batteries open Jayil open Jay open Jay_ast open Translation_context module TranslationMonad : sig include Monad.Monad val run : translation_context -> 'a m -> 'a val run_verbose : translation_context -> 'a m -> 'a * translation_context val fresh_name : string -> string m * Create a fresh ( ie . ) name...
479bc1e5df72ad0e26f2f1fbebe160fc463d14801123e012b7b09339dc1f6aed
billstclair/trubanc-lisp
bindings.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; libtest.lisp --- Setup CFFI bindings for libtest. ;;; Copyright ( C ) 2005 - 2007 , loliveira(@)common - lisp.net > ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cffi_0.10.4/tests/bindings.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- libtest.lisp --- Setup CFFI bindings for libtest. 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, distr...
Copyright ( C ) 2005 - 2007 , loliveira(@)common - lisp.net > 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 ...
a11c24b2cc8bbe235c51735c9b45ea497c9f067f47d47c1baa35f8f04196a4c2
as-capabl/armageddon
McGtk.hs
{-# LANGUAGE Arrows #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # module Graphics.UI.McGtk ( GtkRunner(..), -- * Event h...
null
https://raw.githubusercontent.com/as-capabl/armageddon/f9724b7a545f7e66931d2a46732402a67a59a03e/machinecell-gtk/src/Graphics/UI/McGtk.hs
haskell
# LANGUAGE Arrows # # LANGUAGE RankNTypes # * Event handling * Running * Utility |Actuate an event handling process. Utility
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FunctionalDependencies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE KindSignatures # # LANGUAGE TypeFamilies # module Graphics.UI.McGtk ( GtkRunner(..), on, Replying(..), ReplyingV(..), Looking...
c14208c81ba65368eda216992e12f8a98b8e6a59e96ff4abf1b67d1e18d713d9
Eonblast/Scalaxis
histogram_SUITE.erl
2011 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 distribut...
null
https://raw.githubusercontent.com/Eonblast/Scalaxis/10287d11428e627dca8c41c818745763b9f7e8d4/test/histogram_SUITE.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...
2011 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 < > -module(histogram_SUITE). -author(''). -vsn('$Id$'). -include("unittest.hrl"). -compile(export_all). all() -> [ ...
5bc0763622e03217514d2c7d3d0edecfbf30a504d19df33aafb8e7dfe0670083
REMath/mit_16.399
symbol_Table.ml
(* symbol_Table.ml *) open List type variable = int (* global list of program variable strings. A variable *) (* is the rank of its string in symb_table. *) let symb_table = ref [] (* initialization of the symbol table to empty *) let init_symb_table () = symb_table := [] (* variable v with string i in...
null
https://raw.githubusercontent.com/REMath/mit_16.399/3f395d6a9dfa1ed232d307c3c542df3dbd5b614a/project/Standard-Interpreter/symbol_Table.ml
ocaml
symbol_Table.ml global list of program variable strings. A variable is the rank of its string in symb_table. initialization of the symbol table to empty variable v with string i in symbol table string of variable v in symbol table if absent, add variable with string i to symbol table and retur...
open List type variable = int let symb_table = ref [] let init_symb_table () = symb_table := [] exception Rank of int exception NotFound of int let variable_of_string i = let p = ref !symb_table and rv = ref 0 in try while !p <> [] do if (hd !p) = i then raise (Rank !rv) el...
f16a9d1c554d81aaf046a58661666f0377f49631b1859350a9ea4e34e438ccaf
clojure-interop/aws-api
AbstractAmazonSimpleDB.clj
(ns com.amazonaws.services.simpledb.AbstractAmazonSimpleDB "Abstract implementation of AmazonSimpleDB. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) (:import [com.am...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.simpledb/src/com/amazonaws/services/simpledb/AbstractAmazonSimpleDB.clj
clojure
(ns com.amazonaws.services.simpledb.AbstractAmazonSimpleDB "Abstract implementation of AmazonSimpleDB. Convenient method forms pass through to the corresponding overload that takes a request object, which throws an UnsupportedOperationException." (:refer-clojure :only [require comment defn ->]) (:import [com.am...
f6edf4e670f328d6a3d85158c089ee98988ed9c086803aba2a390c107058a14b
input-output-hk/plutus-apps
Client.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module Plutus.ChainIndex.Client( -- * HTTP Client handler handleChainIndexClient -- * Servant client functions , healthCheck , collectGarbage , getDatum , getValid...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/01c053da3b549f59d32a982e5b074c51b8a8c567/plutus-chain-index-core/src/Plutus/ChainIndex/Client.hs
haskell
# LANGUAGE GADTs # # LANGUAGE TypeOperators # * HTTP Client handler * Servant client functions server.
# LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Plutus.ChainIndex.Client( handleChainIndexClient , healthCheck , collectGarbage , getDatum , getValidator , getMintingPolicy , getStakeValidator , getRedeemer , getTxOut , getTx , getUnspentTxOut , getIs...
25fe84b3fa1b93694e3cf829178ac89f2da1821f3e2ee44d4e9af90f11e122bf
purescript/purescript
Interactive.hs
{-# LANGUAGE DoAndIfThenElse #-} module Language.PureScript.Interactive ( handleCommand , module Interactive -- TODO: remove these exports , make , runMake ) where import Prelude import Protolude (ordNub) import Data.List (sort, find, foldl') import Data.Maybe (fr...
null
https://raw.githubusercontent.com/purescript/purescript/b71cb532c7d8d97505376cb528080ca3046615fe/src/Language/PureScript/Interactive.hs
haskell
# LANGUAGE DoAndIfThenElse # TODO: remove these exports | Pretty-print errors options and ignores the warning messages. | Build the collection of modules from scratch. This is usually done on startup. | Performs a PSCi command ^ reload ^ print into console | Reload the application state | Clear the application...
module Language.PureScript.Interactive ( handleCommand , module Interactive , make , runMake ) where import Prelude import Protolude (ordNub) import Data.List (sort, find, foldl') import Data.Maybe (fromMaybe, mapMaybe) import qualified Data.Map as M import qualifie...
a3695194dcc57751837430099fdea4877417d2baf020b2974d40e6eba38d31a6
aantron/dream
server.eml.ml
let () = Dream.run ~interface:"0.0.0.0" @@ Dream.logger @@ Dream.router [ Dream.get "/" (fun _ -> Dream.html Playground.welcome); ]
null
https://raw.githubusercontent.com/aantron/dream/e0388203f06e95e0e04cdfe0646abcaaf5bcdbd3/example/z-playground/sandbox/ocaml/server.eml.ml
ocaml
let () = Dream.run ~interface:"0.0.0.0" @@ Dream.logger @@ Dream.router [ Dream.get "/" (fun _ -> Dream.html Playground.welcome); ]
f443e78da3095f76735d6bb65623e7e9bc0a818bcc351660e22adb7c83cc3b7b
tibbe/event
IntMap.hs
# LANGUAGE CPP , MagicHash , NoImplicitPrelude # ----------------------------------------------------------------------------- -- | -- Module : System.Event.IntMap Copyright : ( c ) 2002 ( c ) 2008 -- License : BSD-style -- Maintainer : -- Stability : provisional -- Portabil...
null
https://raw.githubusercontent.com/tibbe/event/2ca43e49327aa7854396b800ff4184d8b00a69f0/src/System/Event/IntMap.hs
haskell
--------------------------------------------------------------------------- | Module : System.Event.IntMap License : BSD-style Maintainer : Stability : provisional Portability : portable An efficient implementation of maps from integer keys to values. Since many function names (but not the t...
# LANGUAGE CPP , MagicHash , NoImplicitPrelude # Copyright : ( c ) 2002 ( c ) 2008 " Prelude " names , this module is usually imported @qualified@ , e.g. > import Data . IntMap ( IntMap ) > import qualified Data . IntMap as IntMap * and , \"/Fast Maps/\ " , Work...
0aaae815ffa23374c714a7af3643cf8f5b3ccea045c2d2bcf06fe3c4f0d9ffd7
typelead/intellij-eta
ExtensionPointName.hs
module FFI.Com.IntelliJ.OpenApi.Extensions.ExtensionPointName where import P data ExtensionPointName a = ExtensionPointName (@com.intellij.openapi.extensions.ExtensionPointName a) deriving Class foreign import java unsafe findExtension :: (t <: Object, v <: t) => JClass v -> Java (ExtensionPointName t) v
null
https://raw.githubusercontent.com/typelead/intellij-eta/ee66d621aa0bfdf56d7d287279a9a54e89802cf9/plugin/src/main/eta/FFI/Com/IntelliJ/OpenApi/Extensions/ExtensionPointName.hs
haskell
module FFI.Com.IntelliJ.OpenApi.Extensions.ExtensionPointName where import P data ExtensionPointName a = ExtensionPointName (@com.intellij.openapi.extensions.ExtensionPointName a) deriving Class foreign import java unsafe findExtension :: (t <: Object, v <: t) => JClass v -> Java (ExtensionPointName t) v
6b50c844f6a969472f91e1f88e0631537b2d75b5e1542f3b01d7e765f3cb35ae
digital-dj-tools/dj-data-converter
position_mark.cljc
#?(:clj (set! *warn-on-reflection* true)) (ns converter.rekordbox.position-mark (:require [camel-snake-kebab.core :as csk] #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) #?(:clj [clojure.spec.gen.alpha :as gen] :cljs [cljs.spec.gen.alpha :as gen]) [clojure.string :as string] [clojure...
null
https://raw.githubusercontent.com/digital-dj-tools/dj-data-converter/de1ae5cda60bc64ee3cca1a09b11e1808dd4738a/src/converter/rekordbox/position_mark.cljc
clojure
#?(:clj (set! *warn-on-reflection* true)) (ns converter.rekordbox.position-mark (:require [camel-snake-kebab.core :as csk] #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s]) #?(:clj [clojure.spec.gen.alpha :as gen] :cljs [cljs.spec.gen.alpha :as gen]) [clojure.string :as string] [clojure...
5eb546f54c166165d907dc74ee295687b0b484ab25c01ae962867ff0db739816
spawnfest/eep49ers
ssl_session_ticket_SUITE.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2020 . 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 applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/ssl/test/ssl_session_ticket_SUITE.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 lan...
Copyright Ericsson AB 2007 - 2020 . 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(ssl_session_ticket_SUITE). -behaviour(ct_suite). -export([all/0, groups/0, init_per_suit...
501a6e659a902f4461c61f4818cea6809bb977738c9c87125497371c453d7322
commonqt/commonqt5
meta.lisp
;;; -*- show-trailing-whitespace: t; indent-tabs-mode: nil -*- Copyright ( c ) 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: ;;; ;;; * Redistributions of source code must ret...
null
https://raw.githubusercontent.com/commonqt/commonqt5/b30a46bc41056e856bd020c2575f3aec5da2f0cb/meta.lisp
lisp
-*- show-trailing-whitespace: t; indent-tabs-mode: nil -*- 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 ...
Copyright ( c ) 2009 . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , (in-package :qt) (named-readtables:in-readtable :qt) (defun interpret-delete (object) (cond ((typep object 'null-qobject) ...
436d427181f56affe7c3b193fb876eb6932366a9f6b7977d19dfd3f2963aef9b
roosta/herb
media_queries.cljs
(ns site.snippets.media-queries (:require [herb.core :refer [<class]] [garden.units :refer [em rem]])) (defn style [] ^{:media {{:screen :only :min-width (em 32)} {:width (rem 33)} {:screen :only :min-width (em 52)} {:width (rem 53)}}} {:margin-right "auto" :display "flex" :flex-w...
null
https://raw.githubusercontent.com/roosta/herb/64afb133a7bf51d7171a3c5260584c09dbe4e504/site/src/site/snippets/media_queries.cljs
clojure
(ns site.snippets.media-queries (:require [herb.core :refer [<class]] [garden.units :refer [em rem]])) (defn style [] ^{:media {{:screen :only :min-width (em 32)} {:width (rem 33)} {:screen :only :min-width (em 52)} {:width (rem 53)}}} {:margin-right "auto" :display "flex" :flex-w...
595521707a28cc4b7626b96bd15aa0affe53553a388751937a47fd1fa7652591
fpco/ide-backend
HcPkg.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Program.HcPkg Copyright : 2009 , 2013 -- -- Maintainer : -- Portability : portable -- -- This module provides an library interface to the @hc-pkg@ program. Currently only GHC , GHCJS a...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.22.0.0/Distribution/Simple/Program/HcPkg.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Simple.Program.HcPkg Maintainer : Portability : portable This module provides an library interface to the @hc-pkg@ program. * Program invocations program. ^ no package DB stack supported ^ hc-pkg ...
Copyright : 2009 , 2013 Currently only GHC , GHCJS and LHC have hc - pkg programs . module Distribution.Simple.Program.HcPkg ( HcPkgInfo(..), init, invoke, register, reregister, unregister, expose, hide, dump, list, initInvocation, registerInvocation, re...
ba52c5788424a947b84b1b0600db72eaf6a33cd30d0f7840d33ed4c0553e4888
danilkolikov/dfl
Unification.hs
| Module : Frontend . Inference . Unification Description : Unification of expressions Copyright : ( c ) , 2019 License : MIT Functions for unification of expressions Module : Frontend.Inference.Unification Description : Unification of expressions Copyright : (c) Danil K...
null
https://raw.githubusercontent.com/danilkolikov/dfl/698a8f32e23b381afe803fc0e353293a3bf644ba/src/Frontend/Inference/Unification.hs
haskell
| Unifier of algebraic expression | Errors which may be encountered during substitution ^ Can't unify finctions with different names ^ Can't unfify recursive expressions ^ Functions have different number of args | Raise unification error | Unify a list of equalities between algebraic expressions | Unfify two si...
| Module : Frontend . Inference . Unification Description : Unification of expressions Copyright : ( c ) , 2019 License : MIT Functions for unification of expressions Module : Frontend.Inference.Unification Description : Unification of expressions Copyright : (c) Danil K...
0d538f45e4cd5c06d78f38d31ffb26bf96fc621db8507a6b02f947e55296f0ec
chambart/ocaml-nullable-array
nullable_array.ml
(************************************************************************) (* nullable-array *) (* *) (* Copyright 2016 OCamlPro *) (* ...
null
https://raw.githubusercontent.com/chambart/ocaml-nullable-array/3ea87b1be8627a1491f67b072122e07e607288d0/lib/nullable_array.ml
ocaml
********************************************************************** nullable-array Copyright 2016 OCamlPro ...
( the " Software " ) , to deal in the Software without restriction , publish , distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , BE LIABLE FOR AN...
41bcba2a6ee670458ae622adae9d20a08360690fa00601746f671f7ee15fc4a6
karlhof26/gimp-scheme
phillips-film-grain.scm
; ; The GIMP -- an image manipulation program Copyright ( C ) 1995 and ; Film Grain script for GIMP 2.4 Copyright ( C ) 2007 < > ; ; Tags: photo, grain, noise, film ; ; Author statement: ; Based on the tutorial at ; This script adds that gritty, art-house/street-photography/high-ISO ; grainy film l...
null
https://raw.githubusercontent.com/karlhof26/gimp-scheme/2a1258bc3771287f83bd0ae94b6e7341a7bb4371/phillips-film-grain.scm
scheme
The GIMP -- an image manipulation program Tags: photo, grain, noise, film Author statement: This script adds that gritty, art-house/street-photography/high-ISO grainy film look, especially in monochromatic photos. -------------------------------------------------------------------- -----------------------...
Copyright ( C ) 1995 and Film Grain script for GIMP 2.4 Copyright ( C ) 2007 < > Based on the tutorial at Distributed by Gimp FX Foundry project Version 1.4 Version 1.3 ( 5th August 2007 ) Version 1.2 - Made the script compatible with GIMP 2.3 it under the terms of the GNU General ...
891ec5a0e9cfff5b3591c1bb08e4b1d48c1c2ce732f5ff24a63670aaade092b1
emotiq/emotiq
sysdef.lisp
(in-package :sysdef-user) (define-system :SDLE-STORE (sdle-store-system ) (:author "Sean Ross <>; hacked DM/SD 09/08") (:version 0 8 3) (:documentation "Portable CL Package to serialize data") (:licence "MIT") (:components "package" "utils" #+(or abcl (and clisp (not mop))) "mop" ...
null
https://raw.githubusercontent.com/emotiq/emotiq/9af78023f670777895a3dac29a2bbe98e19b6249/src/sdle-store/sysdef.lisp
lisp
(in-package :sysdef-user) (define-system :SDLE-STORE (sdle-store-system ) (:author "Sean Ross <>; hacked DM/SD 09/08") (:version 0 8 3) (:documentation "Portable CL Package to serialize data") (:licence "MIT") (:components "package" "utils" #+(or abcl (and clisp (not mop))) "mop" ...
c995b4b766df9e51d84dfe63db36fd9f6de90b08b4e42e8e2e369888aa2ccb03
jonasseglare/geex
reflect_test.clj
(ns geex.java.reflect-test (:require [geex.java.reflect :refer :all] [clojure.test :refer :all])) (deftest arglist-matches-test (is (arglist-matches? [clojure.lang.IPersistentVector] [clojure.lang.IPersistentCollection])) (is (not (arglist-matches? [clojure.lang.IPersistentC...
null
https://raw.githubusercontent.com/jonasseglare/geex/f1a48c14c983c054c91fb221b91f42de5fa8eee0/test/geex/java/reflect_test.clj
clojure
(ns geex.java.reflect-test (:require [geex.java.reflect :refer :all] [clojure.test :refer :all])) (deftest arglist-matches-test (is (arglist-matches? [clojure.lang.IPersistentVector] [clojure.lang.IPersistentCollection])) (is (not (arglist-matches? [clojure.lang.IPersistentC...
04e5f4aa26c56a7bdb702bcdfb6605be5a6f0e388ea3f6382ac4f43a07089014
re-ops/re-core
output.clj
(ns re-mote.repl.output (:require [re-mote.log :refer (get-logs)] [clansi.core :refer (style)] [taoensso.timbre :refer (info)] re-mote.repl.base) (:import [re_mote.repl.base Hosts])) (defprotocol Report (summary [this target]) (log- [this m]) (pretty [this title] [this m title])) (defn s...
null
https://raw.githubusercontent.com/re-ops/re-core/93596efd4f3068d57e8140106da60011a6569310/src/re_mote/repl/output.clj
clojure
(ns re-mote.repl.output (:require [re-mote.log :refer (get-logs)] [clansi.core :refer (style)] [taoensso.timbre :refer (info)] re-mote.repl.base) (:import [re_mote.repl.base Hosts])) (defprotocol Report (summary [this target]) (log- [this m]) (pretty [this title] [this m title])) (defn s...
394470a83bd4d8782102b3de2e2545378f8554dd9f84523976af3f4378c81486
aphyr/less-awful-ssl
ssl_test.clj
(ns less.awful.ssl-test (:require [clojure.test :refer :all] [less.awful.ssl :as ssl]) (:import (java.nio.charset StandardCharsets))) (deftest base64 (let [test-str (apply str (repeat 4 "less-awful-ssl"))] (testing "decodes with line break" (is (= test-str (-> (ssl/base64->bina...
null
https://raw.githubusercontent.com/aphyr/less-awful-ssl/0d2e7e8b54aef416ef00b25ec3fb2fc1f8ceb02e/test/less/awful/ssl_test.clj
clojure
(ns less.awful.ssl-test (:require [clojure.test :refer :all] [less.awful.ssl :as ssl]) (:import (java.nio.charset StandardCharsets))) (deftest base64 (let [test-str (apply str (repeat 4 "less-awful-ssl"))] (testing "decodes with line break" (is (= test-str (-> (ssl/base64->bina...
4fe83e39767c86ac469e126240db4aa07976162f21749ae0d0b994ed2010b511
sacerdot/ocaml-http
basic_auth.ml
OCaml HTTP - do it yourself ( fully OCaml ) HTTP daemon Copyright ( C ) < 2002 - 2004 > < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License ...
null
https://raw.githubusercontent.com/sacerdot/ocaml-http/c13be78ad0fa4b2427feaf3777e20be4863115b9/examples/basic_auth.ml
ocaml
the easy way: specify authentication requirements within a daemon_spec requires basic authentication, username "foo", password "bar" (* the hard^Wother way: manual handling of authorization
OCaml HTTP - do it yourself ( fully OCaml ) HTTP daemon Copyright ( C ) < 2002 - 2004 > < > This program is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License ...
f60dbf2d8c765f865dc93ad9bbd85a50ad5041649ff1ee435a6f87282e6a39e6
fpco/ide-backend
LocalBuildInfo.hs
----------------------------------------------------------------------------- -- | Module : Distribution . Simple . Copyright : 2003 - 2004 -- -- Maintainer : -- Portability : portable -- -- Once a package has been configured we have resolved conditionals and -- dependencies, configured the comp...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.18.1.5/Distribution/Simple/LocalBuildInfo.hs
haskell
--------------------------------------------------------------------------- | Maintainer : Portability : portable Once a package has been configured we have resolved conditionals and dependencies, configured the compiler and other needed external programs. The 'LocalBuildInfo' is used to hold all this infor...
Module : Distribution . Simple . Copyright : 2003 - 2004 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 cop...
3dfb899211679302eda69edd585d77d2d9cb24c7dc09172b53b4d47020e4519e
lspitzner/brittany
Test536.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } # LANGUAGE TypeApplications # layoutPatternBindFinal alignmentToken binderDoc mPatDoc clauseDocs = do docAlt one - line solution [ docCols (ColBindingLine alignmentToken) [ doc...
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test536.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
# LANGUAGE TypeApplications # layoutPatternBindFinal alignmentToken binderDoc mPatDoc clauseDocs = do docAlt one - line solution [ docCols (ColBindingLine alignmentToken) [ docSeq (patPartInline ++ [guardPart]) , docSeq [ appSep $ return binderDoc , docFor...
5dd39d34e139a5159583368d2db36d00d0021b2b5665094a76b10abcd30f62d9
opencog/miner
est.scm
;; Rule to calculate the probability (or truth value) estimate of a ;; pattern, given the empirical probabilities (truth values) of its ;; components. ;; ;; Semi-formally ;; ;; Evaluation (stv 1 1) Predicate " minsup " ;; List ;; Lambda ;; <vardecl> ;; <body> ;; <db> ;; <ms> ;; |- ;; Evalu...
null
https://raw.githubusercontent.com/opencog/miner/4774a964306f9c60fd2355dde5ded4f2008c772b/opencog/miner/scm/miner/rules/est.scm
scheme
Rule to calculate the probability (or truth value) estimate of a pattern, given the empirical probabilities (truth values) of its components. Semi-formally Evaluation (stv 1 1) List Lambda <vardecl> <body> <db> <ms> |- Evaluation <TV> Predicate "est" List Lambda ...
Predicate " minsup " (load "miner-rule-utils.scm") (define (gen-est-rule) (pattern (Variable "$pattern")) (db (Variable "$db")) (ms (Variable "$ms")) (LambdaT (Type "LambdaLink")) (ConceptT (Type "ConceptNode")) (NumberT (Type "NumberNode")) Vardecls ...
33922e3ddf82b97cc5e151494e4388aeeb5a928edd80d1bb9db1a0f1efa01a50
returntocorp/semgrep
Print.mli
(* Print function definitions how we like them. *) (* Print OCaml code to stdout. *) val generate_boilerplate : Conf.t -> Ast_ml.type_declaration list list -> unit
null
https://raw.githubusercontent.com/returntocorp/semgrep/855abad9ada6ea5fd72d437fd69ff2e5fa42c1f1/tools/otarzan/lib/Print.mli
ocaml
Print function definitions how we like them. Print OCaml code to stdout.
val generate_boilerplate : Conf.t -> Ast_ml.type_declaration list list -> unit
a9f457a53b5e098925ba860ffdd4eb7c8754d8b5f7441dee5a8d05f099bfbecb
gebi/jungerl
slt.erl
%%% File : slt.erl Author : < > %%% Description : Serial line terminal Created : 8 Oct 2002 by < > -module(slt). -compile(export_all). start(Dev, Opts) -> spawn(?MODULE, init, [Dev, Opts]). init(Dev, Opts) -> {ok, T} = gterm:run(), {ok, S} = sl:open(Dev, Opts), gterm:connect(T, self...
null
https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/sl/src/slt.erl
erlang
File : slt.erl Description : Serial line terminal
Author : < > Created : 8 Oct 2002 by < > -module(slt). -compile(export_all). start(Dev, Opts) -> spawn(?MODULE, init, [Dev, Opts]). init(Dev, Opts) -> {ok, T} = gterm:run(), {ok, S} = sl:open(Dev, Opts), gterm:connect(T, self()), loop(T, S). loop(T, S) -> receive {T, {input, ...
401c0b434958c0c63610902b3a7d677654ca3288666d884ff541c0b0e73ab743
byteally/dbrecord
Interface.hs
module DBRecord.Schema.Interface ( module DBRecord.Internal.Types , module DBRecord.Internal.Common , module DBRecord.Internal.Schema , module DBRecord.Internal.DBTypes , module DBRecord.Internal.DBTypeValidation ) where import DBRecord.Internal.Types hiding (DBTypeK (..), Typ...
null
https://raw.githubusercontent.com/byteally/dbrecord/991efe9a293532ee9242b3e9a26434cf16f5b2a0/dbrecord/src/DBRecord/Schema/Interface.hs
haskell
module DBRecord.Schema.Interface ( module DBRecord.Internal.Types , module DBRecord.Internal.Common , module DBRecord.Internal.Schema , module DBRecord.Internal.DBTypes , module DBRecord.Internal.DBTypeValidation ) where import DBRecord.Internal.Types hiding (DBTypeK (..), Typ...
6de2059b25b560da8c5b601188e133555d8fb86e1bd46e267f7b6c607474c947
s-zeng/cs442-ocaml-starter
test.ml
open! Core let%expect_test "test" = Cs442.main (); [%expect {| HUZZAH! |}]; let x = 3 + 4 in let some_list = List.map ~f:(fun n -> n * n) [ 1; 2; 3; 4 ] in print_s [%message (x : int) (some_list : int list)]; [%expect {| ((x 7) (some_list (1 4 9 16))) |}] ;;
null
https://raw.githubusercontent.com/s-zeng/cs442-ocaml-starter/196f9ea14593d49e8f6edf43400c578e2dd17fd0/test/test.ml
ocaml
open! Core let%expect_test "test" = Cs442.main (); [%expect {| HUZZAH! |}]; let x = 3 + 4 in let some_list = List.map ~f:(fun n -> n * n) [ 1; 2; 3; 4 ] in print_s [%message (x : int) (some_list : int list)]; [%expect {| ((x 7) (some_list (1 4 9 16))) |}] ;;
34455e0c661dca8c7a186537fee7920b9044eedaebba67525ffb5b35110d2829
examachine/parallpairs
par_all_pairs_horiz.ml
* * * * Author : < > * * * * Copyright ( C ) 2011 - 2017 Gok Us Sibernetik Ar&Ge Ltd. * * * * This program is free software ; you can redistribute it and/or modify it under * * the terms of the Affero GNU General Public License as published by the Free * * Software Foundation ; either version 3 of the...
null
https://raw.githubusercontent.com/examachine/parallpairs/6fafe8d6de3a55490cb8ed5ffd3493a28a914e0a/src/par_all_pairs_horiz.ml
ocaml
* * * * Author : < > * * * * Copyright ( C ) 2011 - 2017 Gok Us Sibernetik Ar&Ge Ltd. * * * * This program is free software ; you can redistribute it and/or modify it under * * the terms of the Affero GNU General Public License as published by the Free * * Software Foundation ; either version 3 of the...
ceb761121de5f4f20ce76725f179d601a39bbc80097816e03d751a29582389f2
PhDP/Akarui
Predicate.hs
| Type and functions for predicates : the atoms of first - order logic . module Akarui.FOL.Predicate where import qualified Akarui.Text as FT import Akarui.FOL.Term (Term) import qualified Akarui.FOL.Term as Term import qualified Data.Text as T import Data.List (foldl') import Data.Set (Set) import qualified Data.Se...
null
https://raw.githubusercontent.com/PhDP/Akarui/4ad888d011f7115677e8f9ba18887865f5150746/Akarui/FOL/Predicate.hs
haskell
| Predicates are atoms (thus they evaluate to true/false) mapping a list of terms (objects) to a truth value. | Builds a predicate with a string and a list of terms. | True (Top) predicate. | False (Bottom, Bot) predicate. | Format predicates. ^ If true, will always show parens even for predicates without argume...
| Type and functions for predicates : the atoms of first - order logic . module Akarui.FOL.Predicate where import qualified Akarui.Text as FT import Akarui.FOL.Term (Term) import qualified Akarui.FOL.Term as Term import qualified Data.Text as T import Data.List (foldl') import Data.Set (Set) import qualified Data.Se...
de99e09d97ac38fadc5e396409764749eae2e697001578863b12d8c834355083
bmourad01/ocamlchess
eval.mli
* This module implements an algorithm for statically evaluating Chess positions . It is essentially a linear combination of various features of a Chess position , each of which are weighted by hardcoded coefficients . positions. It is essentially a linear combination of various features of...
null
https://raw.githubusercontent.com/bmourad01/ocamlchess/0496db8ad7dddd5a048fb4868aacff221a706238/chess/src/eval.mli
ocaml
* Returns a score for a position, measured in centipawns. The score represents the relative advantage of the active player. Note that draws and checkmates are not explored here, but instead are considered when searching positions (see the [Search] module). Note that evaluations for tactically volatile...
* This module implements an algorithm for statically evaluating Chess positions . It is essentially a linear combination of various features of a Chess position , each of which are weighted by hardcoded coefficients . positions. It is essentially a linear combination of various features of...
9e4e0b817a377ef664eb23d7031c71368332502b4d56fd992e10f5434ca5811f
thelema/ocaml-community
jg_toplevel.ml
(*************************************************************************) (* *) (* OCaml LablTk library *) (* *) ,...
null
https://raw.githubusercontent.com/thelema/ocaml-community/ed0a2424bbf13d1b33292725e089f0d7ba94b540/otherlibs/labltk/browser/jg_toplevel.ml
ocaml
*********************************************************************** OCaml LablTk library ...
, Kyoto University RIMS Copyright 1999 Institut National de Recherche en Informatique et en Automatique and Kyoto University . All rights reserved . This file is distributed under the terms of the GNU Library $ Id$ open Tk let titled ?iconname...
8209662fd1ce51d7924bf64f7d80057fe809282ae80f692581b08311f254fd9c
marick/structural-typing
f_multiple_output_lines.clj
(ns structural-typing.use.condensed-type-descriptions.f-multiple-output-lines (:require [structural-typing.preds :as pred]) (:use midje.sweet structural-typing.type structural-typing.global-type structural-typing.clojure.core structural-typing.assist.testutil) (:refer-clojure :except [any?...
null
https://raw.githubusercontent.com/marick/structural-typing/9b44c303dcfd4a72c5b75ec7a1114687c809fba1/test/structural_typing/use/condensed_type_descriptions/f_multiple_output_lines.clj
clojure
(ns structural-typing.use.condensed-type-descriptions.f-multiple-output-lines (:require [structural-typing.preds :as pred]) (:use midje.sweet structural-typing.type structural-typing.global-type structural-typing.clojure.core structural-typing.assist.testutil) (:refer-clojure :except [any?...
3cf8cf15fb40aca7710fdd72501da0c8f16c165a09b8680e3597150e810e3b73
samply/blaze
api_spec.clj
(ns blaze.db.api-spec (:require [blaze.async.comp :as ac] [blaze.async.comp-spec] [blaze.db.api :as d] [blaze.db.search-param-registry-spec] [blaze.db.spec] [blaze.db.tx-log.spec] [blaze.fhir.spec] [clojure.spec.alpha :as s] [cognitect.anomalies :as anom])) (s/fdef d/db :args (...
null
https://raw.githubusercontent.com/samply/blaze/948eee38021467fa343c522a644a7fd4b24b6467/modules/db/src/blaze/db/api_spec.clj
clojure
---- Type-Level Functions -------------------------------------------------- ---- System-Level Functions ------------------------------------------------ ---- Compartment-Level Functions ------------------------------------------- ---- Common Query Functions ------------------------------------------------ ---- In...
(ns blaze.db.api-spec (:require [blaze.async.comp :as ac] [blaze.async.comp-spec] [blaze.db.api :as d] [blaze.db.search-param-registry-spec] [blaze.db.spec] [blaze.db.tx-log.spec] [blaze.fhir.spec] [clojure.spec.alpha :as s] [cognitect.anomalies :as anom])) (s/fdef d/db :args (...
610907f2c9332b639c73ffaf1bbc249b7be318da10d8ef7966879ed0ed42ba82
clojure-interop/java-jdk
core.clj
(ns javax.xml.bind.annotation.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[javax.xml.bind.annotation.DomHandler]) (require '[javax.xml.bind.annotation.W3CDomHandler]) (require '[javax.xml.bind.annotation.XmlAccessOrder]) (require '[javax.xml.bind.annotation.XmlAccessType]) (require ...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.xml/src/javax/xml/bind/annotation/core.clj
clojure
(ns javax.xml.bind.annotation.core (:refer-clojure :only [require comment defn ->]) (:import )) (require '[javax.xml.bind.annotation.DomHandler]) (require '[javax.xml.bind.annotation.W3CDomHandler]) (require '[javax.xml.bind.annotation.XmlAccessOrder]) (require '[javax.xml.bind.annotation.XmlAccessType]) (require ...
c89a21c8ec6c32060804986a1fa968c56e45538cfc5ffcda1ec70e02964d6eff
iu-parfunc/lvars
SchedUtils.hs
# LANGUAGE Unsafe # # LANGUAGE CPP # # LANGUAGE NamedFieldPuns , BangPatterns # # LANGUAGE RecursiveDo # module Control.LVish.Internal.SchedUtils ( State(logger, no), new, number, next, pushWork, nullQ, yieldWork, currentCPU, setStatus, await, prng ) where import Prelude import Control.Monad import Control.Co...
null
https://raw.githubusercontent.com/iu-parfunc/lvars/78e73c96a929aa75aa4f991d42b2f677849e433a/src/lvish/Control/LVish/Internal/SchedUtils.hs
haskell
for now... ---------------------------------------------------------------------------- A nonscalable deque for work-stealing ---------------------------------------------------------------------------- ---------- Signatures, shared by the above: -------------- | Create a new local work deque | Add work to a thre...
# LANGUAGE Unsafe # # LANGUAGE CPP # # LANGUAGE NamedFieldPuns , BangPatterns # # LANGUAGE RecursiveDo # module Control.LVish.Internal.SchedUtils ( State(logger, no), new, number, next, pushWork, nullQ, yieldWork, currentCPU, setStatus, await, prng ) where import Prelude import Control.Monad import Control.Co...
d135d927131c39851bc06d0564707df18a5bbbec81bc3ed827c30539daed155a
bsaleil/lc
fibfp.scm.scm
;;------------------------------------------------------------------------------ Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/tools/benchtimes/resultVMIL-lc-gsc-lc/LCnaive/fibfp.scm.scm
scheme
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Gabriel benchmarks C benchmarks Other benchmarks
Macros (##define-macro (def-macro form . body) `(##define-macro ,form (let () ,@body))) (def-macro (FLOATvector-const . lst) `',(list->vector lst)) (def-macro (FLOATvector? x) `(vector? ,x)) (def-macro (FLOATvector . lst) `(vector ,@lst)) (def-macro (FLOATmake-vector n . init) `(make-vector ,...
25fec481d9870483eed2f7fcc5d4259d2ceb82b011b8ac01b67228bfc3ef507c
thattommyhall/offline-4clojure
p146.clj
;; Trees into tables - Easy < p > Because Clojure 's < code > for</code > macro allows you to " walk " over multiple sequences in a nested fashion , it is excellent for transforming all sorts of sequences . If you do n't want a sequence as your final output ( say you want a map ) , you are often still best - off usin...
null
https://raw.githubusercontent.com/thattommyhall/offline-4clojure/73e32fc6687816aea3c514767cef3916176589ab/src/offline_4clojure/p146.clj
clojure
Trees into tables - Easy <p><sup>1</sup> That is, <code>(get-in original [k1 k2])</code> should be the same as <code>(get result [k1 k2])</code></p> tags - seqs:maps restricted - your solution here
< p > Because Clojure 's < code > for</code > macro allows you to " walk " over multiple sequences in a nested fashion , it is excellent for transforming all sorts of sequences . If you do n't want a sequence as your final output ( say you want a map ) , you are often still best - off using < code > for</code > , bec...
bff470a503d83295b2fe4e8551abdd565838588794e80caf06cd580844359284
michaelschade/hs-stripe
Subscription.hs
{-# LANGUAGE OverloadedStrings #-} module Web.Stripe.Subscription ( Subscription(..) , SubscriptionId(..) , SubStatus(..) , SubProrate(..) , SubTrialEnd(..) , SubAtPeriodEnd(..) , SubscriptionList(..) , createSub , getSubscription , getSubscriptions , updateSubRCard , up...
null
https://raw.githubusercontent.com/michaelschade/hs-stripe/64b58415ccc567b00171b34470e93400cb9e79fd/src/Web/Stripe/Subscription.hs
haskell
# LANGUAGE OverloadedStrings # Re-Export ---------------- ---------------- ^ Current period start ^ Current period end | Describes the various stages that a | A boolean flag that determines whether or not to prorate switching plans during a billing cycle. | UTC integer timestamp representing the end of the t...
module Web.Stripe.Subscription ( Subscription(..) , SubscriptionId(..) , SubStatus(..) , SubProrate(..) , SubTrialEnd(..) , SubAtPeriodEnd(..) , SubscriptionList(..) , createSub , getSubscription , getSubscriptions , updateSubRCard , updateSubToken , updateSubscripti...
8ed0a7dfae33fc63ae9c44881536f8f6099005fd6152df7c37c9de9fdc044e5b
nmunro/mtg-api
main.lisp
(defpackage mtg-api (:use :cl) (:export #:card #:cards #:set #:sets #:types #:subtypes #:supertypes #:formats) (:shadow #:set)) (in-package :mtg-api) (defun card (&rest clauses) (let ((args (loop for (i v) on clauses by #'cddr collect...
null
https://raw.githubusercontent.com/nmunro/mtg-api/f796794cde8a483278f22d7ac7e6c46302685ec1/src/main.lisp
lisp
(defpackage mtg-api (:use :cl) (:export #:card #:cards #:set #:sets #:types #:subtypes #:supertypes #:formats) (:shadow #:set)) (in-package :mtg-api) (defun card (&rest clauses) (let ((args (loop for (i v) on clauses by #'cddr collect...
65091b18007e40eac045087c6e88d2cb1cd555461ce14d4ddc05903dc3eb3843
ocaml/odoc
functor.mli
module type S = sig type t end module type S1 = functor (_ : S) -> S module F1 : functor (Arg : S) -> S module F2 : functor (Arg : S) -> (S with type t = Arg.t) module F3 : functor (Arg : S) -> sig type t = Arg.t end module F4 (Arg : S) : S module F5 () : S
null
https://raw.githubusercontent.com/ocaml/odoc/65074eeee3fe8478c4df5099cf83a95326484105/test/generators/cases/functor.mli
ocaml
module type S = sig type t end module type S1 = functor (_ : S) -> S module F1 : functor (Arg : S) -> S module F2 : functor (Arg : S) -> (S with type t = Arg.t) module F3 : functor (Arg : S) -> sig type t = Arg.t end module F4 (Arg : S) : S module F5 () : S
d09250e054279fe2d3d1a3a08244bfdd23af0a5ef0951368daf8ded44fbeda72
mkremins/xyzzy
util.cljc
(ns xyzzy.util) (defn delete "Deletes the item at `idx` in the vector `v`." [v idx] (if (and (= (count v) 1) (= idx 0)) (empty v) (into (subvec v 0 idx) (subvec v (inc idx))))) (defn insert "Inserts `item` into vector `v` at `idx`, pushing whatever was already at `idx` one slot to the right." [v i...
null
https://raw.githubusercontent.com/mkremins/xyzzy/2a2f42bdc678b2418561cd73c60a9d855b7905fc/src/xyzzy/util.cljc
clojure
(ns xyzzy.util) (defn delete "Deletes the item at `idx` in the vector `v`." [v idx] (if (and (= (count v) 1) (= idx 0)) (empty v) (into (subvec v 0 idx) (subvec v (inc idx))))) (defn insert "Inserts `item` into vector `v` at `idx`, pushing whatever was already at `idx` one slot to the right." [v i...
cf8d78b08e51e0fcba27a659fda289ba6e064e01c4da67f9a59ebccdecb859bd
aredington/parallel-test
parallel_test.clj
(ns leiningen.parallel-test "Run the project's tests in parallel." (:refer-clojure :exclude [test]) (:require [clojure.java.io :as io] [clojure.set :as set] [bultitude.core :as b] [leiningen.core.eval :as eval] [leiningen.core.main :as main] [leiningen.c...
null
https://raw.githubusercontent.com/aredington/parallel-test/f2b867bbe05559e56258b09b2d3b8cc8572173a1/src/leiningen/parallel_test.clj
clojure
(ns leiningen.parallel-test "Run the project's tests in parallel." (:refer-clojure :exclude [test]) (:require [clojure.java.io :as io] [clojure.set :as set] [bultitude.core :as b] [leiningen.core.eval :as eval] [leiningen.core.main :as main] [leiningen.c...
8286d0347bec55cb122a105d54d9d197b65c33b810b46bb45148b6c4c6936faa
jaspervdj/websockets
StrictUnicode.hs
-------------------------------------------------------------------------------- module Network.WebSockets.Extensions.StrictUnicode ( strictUnicode ) where -------------------------------------------------------------------------------- import Control.Exception (throwIO) import qualified...
null
https://raw.githubusercontent.com/jaspervdj/websockets/95dc7159322c8a60cbbbf0911571aef83673ec88/src/Network/WebSockets/Extensions/StrictUnicode.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ uns...
module Network.WebSockets.Extensions.StrictUnicode ( strictUnicode ) where import Control.Exception (throwIO) import qualified Data.ByteString.Lazy as BL import Network.WebSockets.Extensions import Network.WebSockets.Types strictUnicode :: Extension strictU...
b299a5ba1726d6174b6b261649513e809bd1854e1f994f9e648abfe3d61e1864
let-def/cuite
qFlags.ml
type 'flag t = int64 type 'a primitive = 'a type 'a set = 'a primitive -> 'a t let empty = 0L let is_empty repr = repr = 0L let set def flag repr = let repr' = def flag in if repr' = 0L then 0L else Int64.logor repr repr' let is_set def flag repr = let repr' = def flag in if repr' = 0L then repr = 0L els...
null
https://raw.githubusercontent.com/let-def/cuite/42629a91c573ecbf1b01f213f1bf35a456d2b1af/lib/qFlags.ml
ocaml
type 'flag t = int64 type 'a primitive = 'a type 'a set = 'a primitive -> 'a t let empty = 0L let is_empty repr = repr = 0L let set def flag repr = let repr' = def flag in if repr' = 0L then 0L else Int64.logor repr repr' let is_set def flag repr = let repr' = def flag in if repr' = 0L then repr = 0L els...
80782bedb54b0051d14dded38ab04ba88fa8f093e1783d510dc3b4ae99d3b77a
ygrek/mldonkey
driverGraphics_gd.ml
Copyright 2005 beedauchon This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any lat...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/daemon/driver/driverGraphics_gd.ml
ocaml
set some vars define margins set _x and _y with boundaries calculate x-values calculate y-values init pic set colors draw graph end of declarations main init pic set colors draw graph mypic#out_as_jpeg "line.jpg" ~quality:90; do_draw_pic "Traffic" "(kb)" "(t)" download_history upload_histor...
Copyright 2005 beedauchon This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ( at your option ) any lat...
938932d99cad9ec1050a08892e8bc4fe3008d4f5b8a134da9bba7507bd8bac0d
pietervdvn/ALGT
PureIO.hs
# LANGUAGE TemplateHaskell # module Utils.PureIO where import Utils.Utils import Prelude hiding (writeFile, putStrLn, readFile) import qualified Prelude as IO import qualified Data.Map as M import Data.Map (Map) import Data.List import Data.Monoid import Data.Either import Control.Arrow ((&&&)) import Control.Monad...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/Utils/PureIO.hs
haskell
Reverse order: last write (f2) has priority :: Either String (a -> b, Output) :: Either String (a, Output)
# LANGUAGE TemplateHaskell # module Utils.PureIO where import Utils.Utils import Prelude hiding (writeFile, putStrLn, readFile) import qualified Prelude as IO import qualified Data.Map as M import Data.Map (Map) import Data.List import Data.Monoid import Data.Either import Control.Arrow ((&&&)) import Control.Monad...
ecbb04521a977646f07f2d8697274b3c94fa55522f0c694a9cbef5e0e9a076c2
redstarssystems/gantt
bump-semver.clj
;; the code below is taken from Leiningen ;; (def ^:dynamic *level* nil) (defn string->semantic-version [version-string] "Create map representing the given version string. Returns nil if the string does not follow guidelines setforth by Semantic Versioning 2.0.0, /" ;; <MajorVersion>.<MinorVersion>.<Pat...
null
https://raw.githubusercontent.com/redstarssystems/gantt/4d29a9c57df87e445626f136e1e7ff4688aa7886/scripts/bump-semver.clj
clojure
<MajorVersion>.<MinorVersion>.<PatchVersion>[-<Qualifier>][-SNAPSHOT]
the code below is taken from Leiningen (def ^:dynamic *level* nil) (defn string->semantic-version [version-string] "Create map representing the given version string. Returns nil if the string does not follow guidelines setforth by Semantic Versioning 2.0.0, /" (if-let [[_ major minor patch qualifier snap...
890368c64129f2ca985b4d4191585359494e2579236a9b901f2fd00ce12938ba
finnishtransportagency/harja
yleiset_test.cljs
(ns harja.views.urakka.yleiset-test "Yleiset näkymän testi" (:require [cljs.test :as t :refer-macros [deftest is testing async]] [harja.testutils.shared-testutils :as u] [harja.testutils :refer [fake-palvelut-fixture fake-palvelukutsu jvh-fixture]] ...
null
https://raw.githubusercontent.com/finnishtransportagency/harja/5f50e37c105d850d6620992d7e50efc83b7f06b4/test/cljs/harja/views/urakka/yleiset_test.cljs
clojure
(ns harja.views.urakka.yleiset-test "Yleiset näkymän testi" (:require [cljs.test :as t :refer-macros [deftest is testing async]] [harja.testutils.shared-testutils :as u] [harja.testutils :refer [fake-palvelut-fixture fake-palvelukutsu jvh-fixture]] ...
bd69941bcaa2a2c9659f07ac71c43f15f13e7956b5dad017ffd6fc825f1bd066
kazu-yamamoto/quic
Metrics.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # # LANGUAGE NamedFieldPuns # module Network.QUIC.Recovery.Metrics ( updateRTT , updateCC , metricsUpdated , setInitialCongestionWindow ) where import Data.Sequence (Seq) import UnliftIO.STM import Network.QUIC.Imports import Network.QUIC.Qlog...
null
https://raw.githubusercontent.com/kazu-yamamoto/quic/6e6543ad0db6ce3f88fde649bc733b80aa9da89a/Network/QUIC/Recovery/Metrics.hs
haskell
# LANGUAGE OverloadedStrings # don't use latestRTT, use latestRTT0 instead smoothed_rtt = rtt_sample rttvar = rtt_sample / 2 Others: Limit ack_delay by max_ack_delay Adjust for ack delay if plausible. adjusted_rtt = latest_rtt if (latest_rtt >= min_rtt + ack_delay): adjusted_rtt = latest_rtt - ack_delay r...
# LANGUAGE RecordWildCards # # LANGUAGE NamedFieldPuns # module Network.QUIC.Recovery.Metrics ( updateRTT , updateCC , metricsUpdated , setInitialCongestionWindow ) where import Data.Sequence (Seq) import UnliftIO.STM import Network.QUIC.Imports import Network.QUIC.Qlog import Network.QUIC.Recovery.Const...
014d25d7abeedc7b1c1f18dae1445458a967225ee15407c69a165eff09b264cc
serokell/servant-util
Util.hs
-- | Some common utilities. module Servant.Util.Util ( Positive (..) , toPositive , unsafeToPositive , positiveVal ) where import Servant.Util.Internal.Util
null
https://raw.githubusercontent.com/serokell/servant-util/de98070063015bf664704421e228c4cbeb0302e4/servant-util/src/Servant/Util/Util.hs
haskell
| Some common utilities.
module Servant.Util.Util ( Positive (..) , toPositive , unsafeToPositive , positiveVal ) where import Servant.Util.Internal.Util
075fcf72bf1e8afcbb78e10cb0468a3312a9c6178522fd74bc6206cc1a98b866
TheLortex/mirage-monorepo
reqd.ml
---------------------------------------------------------------------------- Copyright ( c ) 2017 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/754836818dc5c861bf3b0a78029315a065a543cc/duniverse/httpaf/lib/reqd.ml
ocaml
Starts off as a dummy value, * * using [(==)] to identify it when * * necessary XXX(seliopou): check response body length XXX(seliopou): check response body length XXX(seliopou): Decide what to do in this unlikely case. There...
---------------------------------------------------------------------------- Copyright ( c ) 2017 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
4953fb3638f9d4daadf59f6a3f1f6ffe16d3cd0e19bbe6e82c0163de00c55759
jbracker/supermonad
PPAST.hs
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
null
https://raw.githubusercontent.com/jbracker/supermonad/2595396a225a65b1dce6ed9a1ce59960f392a55b/examples/monad/hmtc/original/PPAST.hs
haskell
AST -> String ---------------------------------------------------------------------------- Pretty printing of AST ---------------------------------------------------------------------------- | Converts AST to a nicely laid-out textual representation for display purposes. --------------------------------------------...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * H M T C * * ...
8171384fb35784a74e143015c019ad4b480770a1020065645fec1dfbb92aee7d
lambdaisland/activities
data_readers.clj
{java.time/instant activities.time/parse-instant}
null
https://raw.githubusercontent.com/lambdaisland/activities/518b1ea12fc4c5cb2b8bbb0b6c79488760853e0d/resources/data_readers.clj
clojure
{java.time/instant activities.time/parse-instant}
f64352805b06061e2cf18941365a794ac60357144709d279ab5b8babd88d4972
Lysxia/test-monad-laws
Mutants.hs
# LANGUAGE FlexibleInstances # {-# LANGUAGE RankNTypes #-} # LANGUAGE TypeFamilies # module Test.Monad.Control.Mutants where import Control.Monad.State import Control.Monad.Trans.Control import Test.Mutants mutantLiftWith :: (Monad m, MonadTransControl t) => (RunDefault (Mutant v t) t -> m a) -> Mutant v t m a ...
null
https://raw.githubusercontent.com/Lysxia/test-monad-laws/1cb9e116769771cb49fbd1614f50b05e120a2709/src/Test/Monad/Control/Mutants.hs
haskell
# LANGUAGE RankNTypes # | An general way to get 'MonadTransControl' wrong is to run the base computation twice when lifting... | There should be no blanket @OVERLAPPABLE@ instance because of the type family. | ... or run it twice when restoring. * State Drop the state that should have been returned.
# LANGUAGE FlexibleInstances # # LANGUAGE TypeFamilies # module Test.Monad.Control.Mutants where import Control.Monad.State import Control.Monad.Trans.Control import Test.Mutants mutantLiftWith :: (Monad m, MonadTransControl t) => (RunDefault (Mutant v t) t -> m a) -> Mutant v t m a mutantLiftWith = defaultLift...
8901d9065b8edbb607725878e27d56db4a28604fe6564484b0b45ac18214a66f
coq/coq
loc.mli
(************************************************************************) (* * The Coq Proof Assistant / The Coq Development Team *) v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * *...
null
https://raw.githubusercontent.com/coq/coq/2dc157ed72529060cea955d4a4b939e5eb7ae8c8/lib/loc.mli
ocaml
********************************************************************** * The Coq Proof Assistant / The Coq Development Team // * This file is distributed under the terms of the * (see LICENSE file for the text of the license) ************************************...
v * Copyright INRIA , CNRS and contributors < O _ _ _ , , * ( see version control and CREDITS file for authors & dates ) \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * GNU Lesser Gener...
d6ee150b6391b7b47a69f6de12decf430079b4074c4133849fbb185ffbb46f8f
jrheard/voke
collision_test_macros.cljc
(ns voke.system.collision-test-macros (:require [clojure.spec :as s])) ; I know you're only supposed to write macros that start with def- or let-, ; and that having your macro introduce new symbols to your environment like this is gross, ; but this is just a test utility helper that nobody else will ever look at so ...
null
https://raw.githubusercontent.com/jrheard/voke/15b272955d214ce0c531fb2b8d645feb217255c2/test/voke/system/collision_test_macros.cljc
clojure
I know you're only supposed to write macros that start with def- or let-, and that having your macro introduce new symbols to your environment like this is gross, but this is just a test utility helper that nobody else will ever look at so I don't feel bad.
(ns voke.system.collision-test-macros (:require [clojure.spec :as s])) (defmacro with-collision-env "Sets up / tears down the environment necessary for collision-related tests to run. See voke.system.collision-test for example usage." [entities collision-events-sym apply-movement-calls-sym game-state-sym & bo...
a0f5ac75add20907081cfdd09fc7a9b4407886c957112e2203f200d0336ad74b
DavidAlphaFox/ailib
ai_mq_channel.erl
-module(ai_mq_channel). -behaviour(gen_server). -export([start_link/3]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {channel,manager,messages = [], subscribers = [], max_age, last_pull, last_purge}). start_link(MaxAge, Manager, Channel) -> ...
null
https://raw.githubusercontent.com/DavidAlphaFox/ailib/1f5bd561d9ecd977d4c169c8edde99cbc727873d/src/mq/ai_mq_channel.erl
erlang
首先订阅者会得到这个消息,被订阅的Channel的Pid和最后一次拉取时间 清空所有的订阅者
-module(ai_mq_channel). -behaviour(gen_server). -export([start_link/3]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {channel,manager,messages = [], subscribers = [], max_age, last_pull, last_purge}). start_link(MaxAge, Manager, Channel) -> ...
cab1c785a3b16854dfb379ce7ee999c893a25dacde7c72c4d67eef4504ef8da9
jrh13/hol-light
startcore.ml
Uppercase idents Gc.set { (Gc.get()) with Gc.stack_limit = 16777216 };; (* Up the stack size *) include Num;; Sys.catch_break true;;
null
https://raw.githubusercontent.com/jrh13/hol-light/ea44a4cacd238d7fa5a397f043f3e3321eb66543/Proofrecording/tools/startcore.ml
ocaml
Up the stack size
Uppercase idents include Num;; Sys.catch_break true;;
f5a912cbb31d55b5a1c086f37db9cad0fb631269ab9c47ee727027d5d8e81438
narimiran/AdventOfCode2022
day06.clj
(ns day06 (:require aoc)) (defn process [buffer length] (reduce (fn [buffer pos] (if (->> buffer (take length) (apply distinct?)) (reduced pos) (rest buffer))) buffer (iterate inc length))) (defn solve ([] (solve 6)) ([input] (let [datastream-buffer ...
null
https://raw.githubusercontent.com/narimiran/AdventOfCode2022/77430d765204af05f2fbe85c9ed40c78b128b5cd/clojure/day06.clj
clojure
(ns day06 (:require aoc)) (defn process [buffer length] (reduce (fn [buffer pos] (if (->> buffer (take length) (apply distinct?)) (reduced pos) (rest buffer))) buffer (iterate inc length))) (defn solve ([] (solve 6)) ([input] (let [datastream-buffer ...
dfa95d1044f9883b7d7d4e504d96a943e419f878c2143300b1b21cb205e28b1a
adamwalker/clash-utils
CICFilterSpec.hs
module DSP.CICFilterSpec where import qualified Clash.Prelude as Clash import Clash.Prelude (Signal, Vec(..), BitVector, Index, Signed, Unsigned, SFixed, Bit, SNat(..), simulate, simulate_lazy, listToVecTH, KnownNat, pack, unpack, (++#), mealy, mux, bundle, unbundle, Hidden...
null
https://raw.githubusercontent.com/adamwalker/clash-utils/3a847813f1af05290e72442df6c174d8ca2ba357/tests/DSP/CICFilterSpec.hs
haskell
module DSP.CICFilterSpec where import qualified Clash.Prelude as Clash import Clash.Prelude (Signal, Vec(..), BitVector, Index, Signed, Unsigned, SFixed, Bit, SNat(..), simulate, simulate_lazy, listToVecTH, KnownNat, pack, unpack, (++#), mealy, mux, bundle, unbundle, Hidden...
d482eaf36173bca896985e7669bb20836e3445cfc9eab54423fdac44b5eb7fc0
fpco/unliftio
QSemN.hs
-- | Unlifted "Control.Concurrent.QSemN". -- -- @since 0.2.14 module UnliftIO.QSemN ( QSemN , newQSemN , waitQSemN , signalQSemN , withQSemN ) where import Control.Concurrent.QSemN (QSemN) import Control.Monad.IO.Unlift import UnliftIO.Exception import qualified Control.Concurrent.QSemN as Q -- | Lifted '...
null
https://raw.githubusercontent.com/fpco/unliftio/d7ac43b9ae69efea0ca911aa556852e9f95af128/unliftio/src/UnliftIO/QSemN.hs
haskell
| Unlifted "Control.Concurrent.QSemN". @since 0.2.14 | Lifted 'Q.newQSemN'. @since 0.2.14 | Lifted 'Q.waitQSemN'. @since 0.2.14 | Lifted 'Q.signalQSemN'. @since 0.2.14 | 'withQSemN' is an exception-safe wrapper for performing the provided operation while holding N unit of value from the semaphore. It ens...
module UnliftIO.QSemN ( QSemN , newQSemN , waitQSemN , signalQSemN , withQSemN ) where import Control.Concurrent.QSemN (QSemN) import Control.Monad.IO.Unlift import UnliftIO.Exception import qualified Control.Concurrent.QSemN as Q newQSemN :: MonadIO m => Int -> m QSemN newQSemN = liftIO . Q.newQSemN wai...
5fac5c965104ec294d1aebb6f70a1af2750b296224991be5d4675f384d2121c6
ygrek/mldonkey
filepath.mli
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/utils/cdk/filepath.mli
ocaml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
c6133e0bf64d923bf4aaa9dedeb39c92452c18a2fa0671f864b923c361f9b544
ams-clj/clansi
project.clj
(defproject clansi "1.2.0-SNAPSHOT" :description "ANSI style and color codes for Clojure." :plugins [[lein-swank "1.4.4"]] :dependencies [[org.clojure/clojure "1.3.0"]])
null
https://raw.githubusercontent.com/ams-clj/clansi/d85cc0dbef168cf65664cd0ac8b22c9477d1e69d/project.clj
clojure
(defproject clansi "1.2.0-SNAPSHOT" :description "ANSI style and color codes for Clojure." :plugins [[lein-swank "1.4.4"]] :dependencies [[org.clojure/clojure "1.3.0"]])
e3ecb8df81f9e2b77d1adbb1a9c2a30f6e38b094ab0d8098398c1f331ffd6881
cartazio/numbers
Natural.hs
-- | Lazy natural numbers. Addition and multiplication recurses over the first argument , i.e. , -- @1 + n@ is the way to write the constant time successor function. -- -- Note that (+) and (*) are not commutative for lazy natural numbers -- when considering bottom. module Data.Number.Natural(Natural, infinity) where...
null
https://raw.githubusercontent.com/cartazio/numbers/6bc3aaeea5f1802766a708522de468ed03d40051/Data/Number/Natural.hs
haskell
| Lazy natural numbers. @1 + n@ is the way to write the constant time successor function. Note that (+) and (*) are not commutative for lazy natural numbers when considering bottom. (_|_) `compare` Z == _|_, but (_|_) >= Z = True so for maximum laziness, we need a specialized version of (>=) and (<=) Not the mo...
Addition and multiplication recurses over the first argument , i.e. , module Data.Number.Natural(Natural, infinity) where import Data.Maybe data Natural = Z | S Natural instance Show Natural where showsPrec p n = showsPrec p (toInteger n) instance Eq Natural where x == y = x `compare` y == EQ instance ...
f315a7ece9a8334f6c0fc9b8c5b5990be3597fbcef26f65b06e7728d897bcefe
slipstream/SlipStreamServer
external_object_test_utils.clj
(ns com.sixsq.slipstream.ssclj.resources.external-object-test-utils (:require [clojure.data.json :as json] [clojure.test :refer :all] [com.sixsq.slipstream.ssclj.app.params :as p] [com.sixsq.slipstream.ssclj.middleware.authn-info-header :refer [authn-info-header]] [com.sixsq.slipstream.ssclj.resou...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-test-jar/src/com/sixsq/slipstream/ssclj/resources/external_object_test_utils.clj
clojure
con ct Tests. admin create with invalid template fails full external object lifecycle as administrator should work create again with the same external object instance name should fail admin get succeeds anonymous query fails admin query succeeds verify that all entries are accessible admin delete succeeds e...
(ns com.sixsq.slipstream.ssclj.resources.external-object-test-utils (:require [clojure.data.json :as json] [clojure.test :refer :all] [com.sixsq.slipstream.ssclj.app.params :as p] [com.sixsq.slipstream.ssclj.middleware.authn-info-header :refer [authn-info-header]] [com.sixsq.slipstream.ssclj.resou...
c106344058a571e8e5513702bfa9c3ebd57a373c73e853fc18cfe9e9b0e93445
abdulapopoola/SICPBook
Ex2.56.scm
#lang planet neil/sicp ;; helpers (define (variable? x) (symbol? x)) (define (=number? exp num) (and (number? exp) (= exp num))) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (make-sum a1 a2) (cond ((=number? a1 0) a2) ((=number? a2 0) a1) ...
null
https://raw.githubusercontent.com/abdulapopoola/SICPBook/c8a0228ebf66d9c1ddc5ef1fcc1d05d8684f090a/Chapter%202/2.3/Ex2.56.scm
scheme
helpers
#lang planet neil/sicp (define (variable? x) (symbol? x)) (define (=number? exp num) (and (number? exp) (= exp num))) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (make-sum a1 a2) (cond ((=number? a1 0) a2) ((=number? a2 0) a1) ((and (nu...
8ef11c025aa6df15584f0776593f77346e5fe0ca476c86a8c607109c08df3029
anurudhp/CPHaskell
c.hs
# LANGUAGE ParallelListComp # import Control.Applicative (Applicative(liftA2)) import Control.Arrow ((>>>)) import Data.Graph import Data.List (transpose) main :: IO () main = interact $ lines >>> map (words >>> map read) >>> solve >>> show solve :: [[Int]] -> Int solve ([n, k]:xs) = compute n k xs *% compute n k (t...
null
https://raw.githubusercontent.com/anurudhp/CPHaskell/01ae8dde6aab4f6ddfebd122ded0b42779dd16f1/contests/atcoder/arc107/c.hs
haskell
# LANGUAGE ParallelListComp # import Control.Applicative (Applicative(liftA2)) import Control.Arrow ((>>>)) import Data.Graph import Data.List (transpose) main :: IO () main = interact $ lines >>> map (words >>> map read) >>> solve >>> show solve :: [[Int]] -> Int solve ([n, k]:xs) = compute n k xs *% compute n k (t...
c652846a468bc7e30573e464fe5912c8333d54005eecfc839b55f78b25ca3a99
Kappa-Dev/KappaTools
parallel_bonds_static.ml
* * parallel_bonds.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 2016 , the 31th of March * Last modification : Time - stamp : < Aug 10 2018 > * * Abstract domain to detect whether when two sites of an agent are bound , * they must b...
null
https://raw.githubusercontent.com/Kappa-Dev/KappaTools/eef2337e8688018eda47ccc838aea809cae68de7/core/KaSa_rep/reachability_analysis/parallel_bonds_static.ml
ocaml
use this information of partial formation of parallel or non-parallel bonds in rules A map from tuples -> sites (agent_type, site_name) a map from sites -> tuples ***************************************************************** ***************************************************************** translate_bond ...
* * parallel_bonds.ml * openkappa * , projet Abstraction , INRIA Paris - Rocquencourt * * Creation : 2016 , the 31th of March * Last modification : Time - stamp : < Aug 10 2018 > * * Abstract domain to detect whether when two sites of an agent are bound , * they must b...
a1c7b4a0c3fb4c0262f731f5f3af252cf618c863060a990f158892c5acf8af8e
haskell/haskell-language-server
Plugins.hs
# LANGUAGE CPP # | Plugin Compat utils . module Development.IDE.GHC.Compat.Plugins ( -- * Plugin Compat Types, and initialisation Plugin(..), defaultPlugin, PluginWithArgs(..), applyPluginsParsedResultAction, initializePlugins, initPlugins, -- * Static plugins StaticPlugin(..), ...
null
https://raw.githubusercontent.com/haskell/haskell-language-server/ff28990e042f6ae9df39dab435b94ce9b20356a5/ghcide/src/Development/IDE/GHC/Compat/Plugins.hs
haskell
* Plugin Compat Types, and initialisation * Static plugins * Plugin messages Apply parsedResultAction of plugins
# LANGUAGE CPP # | Plugin Compat utils . module Development.IDE.GHC.Compat.Plugins ( Plugin(..), defaultPlugin, PluginWithArgs(..), applyPluginsParsedResultAction, initializePlugins, initPlugins, StaticPlugin(..), hsc_static_plugins, PsMessages(..), getPsMessages ) where...
4b082ee82e9e1a6dc553653acadb7305bf341150db1fd67e757fdab67fa6096f
realworldocaml/book
format.ml
open! Core open! Import module Color = struct module RGB6 : sig type t = private { r : int ; g : int ; b : int } [@@deriving compare, quickcheck, sexp] val create_exn : r:int -> g:int -> b:int -> t end = struct type t = { r : int ; g : int ; b : int ...
null
https://raw.githubusercontent.com/realworldocaml/book/d822fd065f19dbb6324bf83e0143bc73fd77dbf9/duniverse/patdiff/kernel/src/format.ml
ocaml
omake locations must be parseable, so we can't let the user config insert arbitrary prefixes and suffixes and ANSI color rubbish.
open! Core open! Import module Color = struct module RGB6 : sig type t = private { r : int ; g : int ; b : int } [@@deriving compare, quickcheck, sexp] val create_exn : r:int -> g:int -> b:int -> t end = struct type t = { r : int ; g : int ; b : int ...
2368fb7758bb180cc64dea494eb838ad5b1d5aa7d605bbbf5f95fe010c05870e
kana/sicp
ex-3.59.scm
Exercise 3.59 . In section 2.5.3 we saw how to implement a polynomial ;;; arithmetic system representing polynomials as lists of terms. In a similar ;;; way, we can work with power series, such as ;;; ;;; x^2 x^3 x^4 e^x = 1 + x + --- + --- + ----- + … , 2 3 * 2...
null
https://raw.githubusercontent.com/kana/sicp/912bda4276995492ffc2ec971618316701e196f6/ex-3.59.scm
scheme
arithmetic system representing polynomials as lists of terms. In a similar way, we can work with power series, such as x^2 x^3 x^4 x^2 x^4 sin x = x - --- + ------- - …, represented as infinite streams. We will represent the series c + a_0 x + --- a_1 x^2...
Exercise 3.59 . In section 2.5.3 we saw how to implement a polynomial e^x = 1 + x + --- + --- + ----- + … , 2 3 * 2 4 * 3 * 2 cos x = 1 - --- + ----- - … , 2 4 * 3 * 2 x^3 3 * 2 5 * 4 * 3 * 2 a_0 ...
c728ecbebd8a7d19c7e6fd4d34ad88c5d766205b772503dadf8007c4568dde18
chrovis/clj-hgvs
core_test.cljc
(ns clj-hgvs.core-test (:require #?(:clj [clojure.pprint :as pp]) [clojure.spec.alpha :as s] [clojure.string :as string] [clojure.test :refer [are deftest is testing]] [clj-hgvs.coordinate :as coord] [clj-hgvs.core :as hgvs] [clj-hgvs.mutation :a...
null
https://raw.githubusercontent.com/chrovis/clj-hgvs/361e29d1ef3e8ca58f187b61b75fb8f58aa673dc/test/clj_hgvs/core_test.cljc
clojure
remove-unnecessary-chars dedupe-colons remove-trailing-period upper-case-ins remove-gene-symbol deletion->del indel->delins frameshift->fs stop->ter substitutions->inv substitutions->delins remove-assembly remove-affected-count remove-same-end remove-alternative remove-inv-bases remove-del-count-from-d...
(ns clj-hgvs.core-test (:require #?(:clj [clojure.pprint :as pp]) [clojure.spec.alpha :as s] [clojure.string :as string] [clojure.test :refer [are deftest is testing]] [clj-hgvs.coordinate :as coord] [clj-hgvs.core :as hgvs] [clj-hgvs.mutation :a...
fea2ed5f925a0769b798d51de6c44e11b9b25600fe17eae457c9e5132dbaeb2f
ucsd-progsys/liquidhaskell
CheckedImp.hs
{-@ LIQUID "--expect-any-error" @-} module CheckedImp where 0 ; < foo ~ foo : x1 = x2 ! = > r1 x1 = r2 x2 > |- 1 ~ 1 0 ; 0 |- + ~ + ------------- 0 ; 0 |- foo ~ foo 0; <foo ~ foo : x1 = x2 !=> r1 x1 = r2 x2> |- 1 ~ 1 0; 0 |- + ~ + ------------- 0; 0 |- foo ~ foo -} {-@ relational foo ~ foo :: {x1:_ -> y1:_ -...
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/177331c811145dab2606bc442389e0031d7db41b/tests/relational/neg/CheckedImp.hs
haskell
@ LIQUID "--expect-any-error" @ ----------- ----------- @ relational foo ~ foo :: {x1:_ -> y1:_ -> _ ~ x2:_ -> y2:_ -> _ | true !=> x1 = x2 !=> r1 x1 y1 = r2 x2 y2} @ (ERChecked (x1 = x2) (r1 x1 = r2 x2)) [] @ relational bar ~ baz :: {_ -> _ ~ _ -> _ | true :=> true} @
module CheckedImp where 0 ; < foo ~ foo : x1 = x2 ! = > r1 x1 = r2 x2 > |- 1 ~ 1 0 ; 0 |- + ~ + 0 ; 0 |- foo ~ foo 0; <foo ~ foo : x1 = x2 !=> r1 x1 = r2 x2> |- 1 ~ 1 0; 0 |- + ~ + 0; 0 |- foo ~ foo -} foo :: Int -> Int -> Int foo x _ = x + 1 consTotalHOPred ( 1 : [ ] ) ( 2 : [ ] ) ( ( _ , [ x1]):vs1 ) ( ( ...
95e616c13fe4753ffffbf24847893d9ff787fd3020e87623b3a978bbfeae9560
arenadotio/blue-http
test_pool.ml
open Core open Async module Pool = Blue_http.For_testing.Pool module T = struct type t = { uuid : Uuid.t ; mutable killed : bool } [@@deriving compare, equal, sexp_of] let ( = ) = equal let ( <> ) a b = not (a = b) let new_item () = Deferred.return { uuid = Uuid_unix.create (); killed = false } ...
null
https://raw.githubusercontent.com/arenadotio/blue-http/13de81de44e4897b80f62fcd8b6574fc58d9b886/test/test_pool.ml
ocaml
open Core open Async module Pool = Blue_http.For_testing.Pool module T = struct type t = { uuid : Uuid.t ; mutable killed : bool } [@@deriving compare, equal, sexp_of] let ( = ) = equal let ( <> ) a b = not (a = b) let new_item () = Deferred.return { uuid = Uuid_unix.create (); killed = false } ...
5049bcf3770f27f1a5f056031bc26b2a98bb698a57785046570a1588c983ead2
scalaris-team/scalaris
dc_centroids.erl
2012 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 distribu...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/dc_centroids.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...
2012 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > @doc Centroids data structure for dc_clustering . , , , . Gossip - based Topology Inference for Efficien...
197250c98cd9e18dc814b331271bb7c1721f6a8b6950fd6e20871527f7224c32
probprog/anglican
inference_test.cljc
(ns anglican.inference-test "tests for anglican.inference" (:refer-clojure :exclude [rand rand-nth rand-int]) (:require [clojure.test :refer [deftest testing is]]) (:use [anglican.emit :only [query]] [anglican.inference :only [print-predict warmup]])) (deftest test-print-predict (testing "print-pr...
null
https://raw.githubusercontent.com/probprog/anglican/ab6111d7fa8f68f42ea046feab928ca3eedde1d7/test/anglican/inference_test.cljc
clojure
(ns anglican.inference-test "tests for anglican.inference" (:refer-clojure :exclude [rand rand-nth rand-int]) (:require [clojure.test :refer [deftest testing is]]) (:use [anglican.emit :only [query]] [anglican.inference :only [print-predict warmup]])) (deftest test-print-predict (testing "print-pr...
3b998121405039ee842876dc59b10f4a95e2edb91cb23abfca3021f741085b5d
mikail-khan/hqfl
DayCount.hs
----------------------------------------------------------------------------- -- | Module : Finance . . Convention . DayCount Copyright : ( C ) 2018 -- License : (see the file LICENSE) Maintainer : < > -- Stability : stable -- Portability : portable -- -----------------------------...
null
https://raw.githubusercontent.com/mikail-khan/hqfl/398bd921089522c6c0e6d91893a75615a1f39a2e/src/Finance/Hqfl/Convention/DayCount.hs
haskell
--------------------------------------------------------------------------- | License : (see the file LICENSE) Stability : stable Portability : portable -------------------------------------------------------------------------- TODO: date calculation functions
Module : Finance . . Convention . DayCount Copyright : ( C ) 2018 Maintainer : < > module Finance.Hqfl.Convention.DayCount ( DayCountConvention ) where data DayCountConvention = OneToOne | Thirty360 | ThirtyE360 ...
6fba645e22b7a7fda0a6fd0c1df15574ea08017858987ee717ab4ea1b82e6b50
pflanze/chj-schemelib
simple-match.scm
Copyright 2010 , 2011 by < > ;;; This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or ;;; (at your option) any later version. (require cj-...
null
https://raw.githubusercontent.com/pflanze/chj-schemelib/59ff8476e39f207c2f1d807cfc9670581c8cedd3/simple-match.scm
scheme
This file is free software; you can redistribute it and/or modify (at your option) any later version. improper-length is included by cj-source-util.scm is definition of location-warn-to-string see cj-source definitions of match* and match-list* see simple-match-1 *** ERROR IN (console)@25.1 -- no match for:...
Copyright 2010 , 2011 by < > it under the terms of the GNU General Public License ( GPL ) as published by the Free Software Foundation , either version 2 of the License , or (require cj-source define-macro-star cj-phasing test included by define-macro-star.scm ) (export) (TEST > (locati...
0968924dbf5e635f277d7c6ccca126b9cab440d2e13d8b2b11a10682e1ec6248
googleson78/fp-lab-2022-23
Spec.hs
import ExprSpec (spec) import Test.Hspec (hspec) main :: IO () main = hspec spec
null
https://raw.githubusercontent.com/googleson78/fp-lab-2022-23/0d5b8aa7a1c572352658cd41b082da6a29ad07ad/homeworks/02/test/Spec.hs
haskell
import ExprSpec (spec) import Test.Hspec (hspec) main :: IO () main = hspec spec
38b9d4db332706343512607d039313a46e6419be92be9c29f664385cbcb7f114
McParen/croatoan
inopts.lisp
(in-package :de.anvi.croatoan) ;; nodelay FALSE = getch blocking ;; nodelay TRUE = getch non-blocking. halfdelay 5 = waits for 5/10 seconds . ;; halfdelay is turned off by nocbreak. ;; terminal input modes: ;; ;; canonical non canonical ;; line buffered cha...
null
https://raw.githubusercontent.com/McParen/croatoan/6097307666f22efc374122e450908ba93ccd7a80/src/inopts.lisp
lisp
nodelay FALSE = getch blocking nodelay TRUE = getch non-blocking. halfdelay is turned off by nocbreak. terminal input modes: canonical non canonical line buffered character based ctrl chars processed ^C,^S,^Q,^D processed no ctrl chars pr...
(in-package :de.anvi.croatoan) halfdelay 5 = waits for 5/10 seconds . cooked raw (defun set-input-mode (input-buffering process-control-chars) (if input-buffering to turn on buffering , turn off or raw (if process-control-chars (ncurses:nocbreak)...
f69bb3675563de90b44fc373aef67accbe99da3ac3f44cf8612a45256ab67abb
google/ormolu
multi-way-if-out.hs
{-# LANGUAGE MultiWayIf #-} foo x = if | x == 5 -> 5 bar x y = if | x > y -> x | x < y -> y | otherwise -> x baz = if | p -> f | otherwise -> g x
null
https://raw.githubusercontent.com/google/ormolu/ffdf145bbdf917d54a3ef4951fc2655e35847ff0/data/examples/declaration/value/function/multi-way-if-out.hs
haskell
# LANGUAGE MultiWayIf #
foo x = if | x == 5 -> 5 bar x y = if | x > y -> x | x < y -> y | otherwise -> x baz = if | p -> f | otherwise -> g x
9dc599350435ff2fcf894bd4f88f99176c2f53f501c27a91ef81d19dcab88e15
HaskellZhangSong/Introduction_to_Haskell_2ed_source
VarBind.hs
import Control.Monad.Reader import Data.List (lookup) data Exp = Val Int | Var String | Add Exp Exp | Decl Bind Exp deriving (Show ,Eq) type Bind = (String,Int) type Env = [Bind] updateEnv :: Bind -> Env -> Env updateEnv = (:) resolve :: Exp -> Reader Env (Maybe Ex...
null
https://raw.githubusercontent.com/HaskellZhangSong/Introduction_to_Haskell_2ed_source/140c50fdccfe608fe499ecf2d8a3732f531173f5/C12/VarBind.hs
haskell
import Control.Monad.Reader import Data.List (lookup) data Exp = Val Int | Var String | Add Exp Exp | Decl Bind Exp deriving (Show ,Eq) type Bind = (String,Int) type Env = [Bind] updateEnv :: Bind -> Env -> Env updateEnv = (:) resolve :: Exp -> Reader Env (Maybe Ex...
7eaab0f5cc15e1cb0f8859cc0434e9a87d84ebf34d9a66530ee7cf51075d0f64
let-def/menhir
interface.ml
(**************************************************************************) (* *) Menhir (* *) , INRIA Ro...
null
https://raw.githubusercontent.com/let-def/menhir/e8ba7bef219acd355798072c42abbd11335ecf09/src/interface.ml
ocaml
************************************************************************ et en Automatique. All rig...
Menhir , INRIA Rocquencourt , PPS , Université Paris Diderot Copyright 2005 - 2008 Institut National de Recherche en Informatique under the terms of the Q Public License versi...
42f525e0f6d10d1e032b12184908773345ae625f46a5f0d7d426de08a5276260
music-suite/music-suite
Dynamics.hs
------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- -- | Copyright : ( c ) 2012 -- -- License : BSD-style -- Maintainer : -- Stability : experimental -- Portability : portable -- -...
null
https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/src/Music/Dynamics.hs
haskell
----------------------------------------------------------------------------------- ----------------------------------------------------------------------------------- | License : BSD-style Stability : experimental Portability : portable Provides various representation of musical dynamics.
Copyright : ( c ) 2012 Maintainer : module Music.Dynamics ( module Music.Dynamics.Absolute, module Music.Dynamics.Common, module Music.Dynamics.Literal, ) where import Music.Dynamics.Absolute import Music.Dynamics.Common import Music.Dynamics.Literal
55a6a1297b8e1e0b6dc06b794f2a8d7fef03bf9a135f27d003d10d09cd3335bd
runtimeverification/haskell-backend
Remainder.hs
module Test.Kore.Rewrite.Remainder ( test_existentiallyQuantifyTarget, ) where import Kore.Internal.Predicate ( Predicate, ) import Kore.Internal.Predicate qualified as Predicate import Kore.Internal.TermLike import Kore.Rewrite.Remainder qualified as Remainder import Kore.Rewrite.RewritingVariable import Pre...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Rewrite/Remainder.hs
haskell
module Test.Kore.Rewrite.Remainder ( test_existentiallyQuantifyTarget, ) where import Kore.Internal.Predicate ( Predicate, ) import Kore.Internal.Predicate qualified as Predicate import Kore.Internal.TermLike import Kore.Rewrite.Remainder qualified as Remainder import Kore.Rewrite.RewritingVariable import Pre...
fc9b365b9f2e1a1e75751b2fa8db8a5ba838e3360e45cdc14a450f7295c03e8d
FranklinChen/hugs98-plus-Sep2006
FlushFinish.hs
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.FlushFinish Copyright : ( c ) 2002 - 2005 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : -- Stability : provisional -- Portability ...
null
https://raw.githubusercontent.com/FranklinChen/hugs98-plus-Sep2006/54ab69bd6313adbbed1d790b46aca2a0305ea67e/packages/OpenGL/Graphics/Rendering/OpenGL/GL/FlushFinish.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.Rendering.OpenGL.GL.FlushFinish License : BSD-style (see the file libraries/OpenGL/LICENSE) Maintainer : Stability : provisional Portability : portable specs. ---------------------------------...
Copyright : ( c ) 2002 - 2005 This module corresponds to section 5.5 ( Flush and Finish ) of the OpenGL 1.5 module Graphics.Rendering.OpenGL.GL.FlushFinish ( flush, finish ) where Because any GL program might be executed over a network , or on an accelerator execution of all previously issued...
ba9c5366bff7963c2841c1fef8ed47a47299fc668afa6b33d855528a579935f9
nilenso/goose
dead_jobs.clj
(ns ^:no-doc goose.brokers.redis.api.dead-jobs (:refer-clojure :exclude [pop]) (:require [goose.brokers.redis.commands :as redis-cmds] [goose.defaults :as d] [goose.job :as job])) (defn size [redis-conn] (redis-cmds/sorted-set-size redis-conn d/prefixed-dead-queue)) (defn pop [redis-conn] (let [...
null
https://raw.githubusercontent.com/nilenso/goose/cf42be9a79f4d0a8c65a93d8cb850bdc666bccb2/src/goose/brokers/redis/api/dead_jobs.clj
clojure
(ns ^:no-doc goose.brokers.redis.api.dead-jobs (:refer-clojure :exclude [pop]) (:require [goose.brokers.redis.commands :as redis-cmds] [goose.defaults :as d] [goose.job :as job])) (defn size [redis-conn] (redis-cmds/sorted-set-size redis-conn d/prefixed-dead-queue)) (defn pop [redis-conn] (let [...
dd566a2219d027c039f3886b1e63b02ab58d1ede77551b114b8432047abc3f73
jesperes/aoc_erlang
aoc2021_day08.erl
-module(aoc2021_day08). -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -include_lib("eunit/include/eunit.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2021, day = 8, name = ...
null
https://raw.githubusercontent.com/jesperes/aoc_erlang/6a31847eb04293b743bb1a65bb3aebce9c8adc08/src/2021/aoc2021_day08.erl
erlang
Possible mappings For all known mappings, e.g. #{a => [b]}, remove 'b' from all other mappings, since we know that no other letter can map to b. Prune: when letters in Pattern are known to map to Dest, remove all other mappings involving Pattern or Dest (since Pattern <=> Dest). Remove List from the possible mapp...
-module(aoc2021_day08). -behavior(aoc_puzzle). -export([parse/1, solve1/1, solve2/1, info/0]). -include("aoc_puzzle.hrl"). -include_lib("eunit/include/eunit.hrl"). -spec info() -> aoc_puzzle(). info() -> #aoc_puzzle{module = ?MODULE, year = 2021, day = 8, name = ...
5a2c358a5b75b0e87181cd8a61e0f7d37a534f50d2da1f011fd96f489a54836c
EdAyers/Robotone
Setup.hs
import Distribution.Simple main = defaultMain
null
https://raw.githubusercontent.com/EdAyers/Robotone/1cdcde674a54a47c382fef2b060d50b35361f120/Setup.hs
haskell
import Distribution.Simple main = defaultMain
48e8ade5f821d8a2d2eee804c4812505bdfb9371139fd3bfffd016724bbf7052
den1k/vimsical
subs.cljc
(ns vimsical.frontend.app.subs (:require [vimsical.subgraph :as sg] [re-frame.core :as re-frame] [vimsical.user :as user] [vimsical.vims :as vims] [vimsical.queries.user :as queries.user] [vimsical.queries.vims :as queries.vims])) (re-frame/reg-sub ::modal (fn [db _] (:app/modal db))) (re-fra...
null
https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/src/frontend/vimsical/frontend/app/subs.cljc
clojure
(ns vimsical.frontend.app.subs (:require [vimsical.subgraph :as sg] [re-frame.core :as re-frame] [vimsical.user :as user] [vimsical.vims :as vims] [vimsical.queries.user :as queries.user] [vimsical.queries.vims :as queries.vims])) (re-frame/reg-sub ::modal (fn [db _] (:app/modal db))) (re-fra...
5506a2f5853ea8dd06d480b31c09a5f84543b9658a7463f3bff44ec6e3d786f2
runtimeverification/haskell-backend
Priority.hs
module Test.Kore.Attribute.Priority ( test_priority, test_Attributes, test_duplicate, test_zeroArguments, test_twoArguments, test_negative, ) where import Kore.Attribute.Priority import Kore.Syntax.Pattern import Prelude.Kore import Test.Kore.Attribute.Parser import Test.Tasty import Test.Tasty...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/b06757e252ee01fdd5ab8f07de2910711997d845/kore/test/Test/Kore/Attribute/Priority.hs
haskell
module Test.Kore.Attribute.Priority ( test_priority, test_Attributes, test_duplicate, test_zeroArguments, test_twoArguments, test_negative, ) where import Kore.Attribute.Priority import Kore.Syntax.Pattern import Prelude.Kore import Test.Kore.Attribute.Parser import Test.Tasty import Test.Tasty...
5ba788a4ae5722388f9a8a06e1eafc2a7e28dcf7684f4acba072e523336b821d
clojure-interop/aws-api
project.clj
(defproject clojure-interop/com.amazonaws.services.ioteventsdata "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.ioteventsdata" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.ioteventsdata/project.clj
clojure
(defproject clojure-interop/com.amazonaws.services.ioteventsdata "1.0.0" :description "Clojure to Java Interop Bindings for com.amazonaws.services.ioteventsdata" :url "-interop/aws-api" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.8.0"]] :source...
8f42409bf7624566f64df4fceda8cad83734570c2cd37254e8ad5e5572ea70e8
cky/guile
streams.scm
streams.scm --- general lazy streams ;;;; -*- Scheme -*- Copyright ( C ) 1999 , 2001 , 2004 , 2006 Free Software Foundation , Inc. ;;;; ;;;; 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 Fou...
null
https://raw.githubusercontent.com/cky/guile/89ce9fb31b00f1f243fe6f2450db50372cc0b86d/module/ice-9/streams.scm
scheme
-*- Scheme -*- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library 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 PARTIC...
streams.scm --- general lazy streams Copyright ( C ) 1999 , 2001 , 2004 , 2006 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , ...
6ede8fe61a920cfa9ac965e7ac496ea30339f1efb24dfb7ed88c10bae6cb5258
Ptival/yugioh
Flippable.hs
module YuGiOh.Classes.Flippable ( Flippable (..), ) where -- | @Flippable@ captures those data types that understand the @flip@ operation. class Flippable t where flip :: t -> t
null
https://raw.githubusercontent.com/Ptival/yugioh/855e8f22c3ff322c7ca1d0a1fa96c50a54724aeb/lib/YuGiOh/Classes/Flippable.hs
haskell
| @Flippable@ captures those data types that understand the @flip@ operation.
module YuGiOh.Classes.Flippable ( Flippable (..), ) where class Flippable t where flip :: t -> t
df7bd6bf42a9f72845c330ccab1c3ba0a2ad00f851d5e7b63768b63310325a4d
clash-lang/clash-compiler
SignedProjection.hs
# LANGUAGE DeriveFunctor # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # {-# OPTIONS_GHC -Wno-partial-type-signatures #-} Test for -lang/clash-compiler/issues/601 -- part of SignedProjectionTB.hs module SignedProjection where import qualified Prelude import Clash.Prelude data Complex a = a :+ a ...
null
https://raw.githubusercontent.com/clash-lang/clash-compiler/8e461a910f2f37c900705a0847a9b533bce4d2ea/tests/shouldwork/Numbers/SignedProjection.hs
haskell
# OPTIONS_GHC -Wno-partial-type-signatures # part of SignedProjectionTB.hs
# LANGUAGE DeriveFunctor # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # Test for -lang/clash-compiler/issues/601 module SignedProjection where import qualified Prelude import Clash.Prelude data Complex a = a :+ a deriving (Show, Lift, Generic, ShowX, NFDataX, Functor) realPart :: Complex a -> ...
e236622f5f480976b815ef2bcee8557a86fa9e38d3f2cd51e802718db6433f73
jphmrst/bps
JTMSTests.hs
| Description : Testing Justification - based truth maintenance systems ( JTMSes ) Copyright : ( c ) , 2022 , and Xerox Corporation , 1986 - 1993 License : AllRightsReserved Maintainer : Stability : experimental Portability : POSIX Translation of Forbus and justif...
null
https://raw.githubusercontent.com/jphmrst/bps/7a050b8bbc84114434f58f0e2f8b751ee41e889a/src/test/haskell/JTMSTests.hs
haskell
Prints result of the string length calculation. debugJTMS "fresh" jtms ------------------------ Local assertions. ------------------------
| Description : Testing Justification - based truth maintenance systems ( JTMSes ) Copyright : ( c ) , 2022 , and Xerox Corporation , 1986 - 1993 License : AllRightsReserved Maintainer : Stability : experimental Portability : POSIX Translation of Forbus and justif...