_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
ac89889132dd973fae5646193c86673bd4790632a765a7a6950267aaa0d74f1f
pietervdvn/ALGT
FunctionAnalysis.hs
# LANGUAGE FlexibleContexts , TemplateHaskell , FlexibleInstances , MultiParamTypeClasses # module AbstractInterpreter.FunctionAnalysis where {- This module executes functions on an abstract representation of the set -} import TypeSystem import Utils.Utils import Utils.ToString import Prelude hiding (subtract) impo...
null
https://raw.githubusercontent.com/pietervdvn/ALGT/43a2811931be6daf1362f37cb16f99375ca4999e/src/AbstractInterpreter/FunctionAnalysis.hs
haskell
This module executes functions on an abstract representation of the set Some inputs might not match as the function call doesn't equal the argument Possible inputs at this stage. Not every input might have a result! arguments --> value (f: when you want to 'lie' about the function types moreKnowledge: sometimes, ...
# LANGUAGE FlexibleContexts , TemplateHaskell , FlexibleInstances , MultiParamTypeClasses # module AbstractInterpreter.FunctionAnalysis where import TypeSystem import Utils.Utils import Utils.ToString import Prelude hiding (subtract) import AbstractInterpreter.Assignment import AbstractInterpreter.AbstractSet impor...
37fbc5a0a7adb6090e56b2f64679e34b0c8f8fb9f3f83c9f90e58c0843d94f05
hoon0612/Lisp-in-OCaml
builtin.mli
val eval : Types.s_exp -> Environment.fn_binding list Environment.SymbolTable.t ref -> Types.s_exp val eval_list : Types.s_exp -> Environment.fn_binding list Environment.SymbolTable.t ref -> Types.s_exp val arith_plus : Types.s_exp -> Types.s_exp val builtin_functions : (string * Environment.fn_binding) lis...
null
https://raw.githubusercontent.com/hoon0612/Lisp-in-OCaml/498ace173018af8f7772b3db803872e76b5902cf/builtin.mli
ocaml
val eval : Types.s_exp -> Environment.fn_binding list Environment.SymbolTable.t ref -> Types.s_exp val eval_list : Types.s_exp -> Environment.fn_binding list Environment.SymbolTable.t ref -> Types.s_exp val arith_plus : Types.s_exp -> Types.s_exp val builtin_functions : (string * Environment.fn_binding) lis...
7145138404566e7792795917f7883f9ec5d457a93bdfdb43b09b3e97b1da96c2
manuel-serrano/hop
syncg.scm
;*=====================================================================*/ * serrano / prgm / project / hop / hop / nodejs / syncg.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/nodejs/syncg.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Global inter-process synchronization */ *===========================...
* serrano / prgm / project / hop / hop / nodejs / syncg.scm * / * Author : * / * Creation : Thu Apr 20 08:04:06 2017 * / * Last change : Thu Oct 24 12:03:05 2019 ( serrano ) * / * Copy...
a88bac87cd082bcff24199ad011c81fc45455715eb4e98a002f98bea1bf544c8
brendanhay/amazonka
Lens.hs
# LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - duplicate - exports # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . -- | -- Module : Amazonka.DynamoDB.Lens Copyright : ( c ) 2013 - 2023 License : Mozilla Public Licens...
null
https://raw.githubusercontent.com/brendanhay/amazonka/12e541144ad5452645877e885152a2bad9180186/lib/services/amazonka-dynamodb/gen/Amazonka/DynamoDB/Lens.hs
haskell
| Module : Amazonka.DynamoDB.Lens Stability : auto-generated * Operations ** BatchExecuteStatement ** CreateGlobalTable ** CreateTable ** DeleteTable ** DescribeContinuousBackups ** DescribeExport ** DescribeGlobalTable ** DescribeGlobalTableSettings ** DescribeKinesisStreamingDestination ** Descri...
# LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - duplicate - exports # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Copyright : ( c ) 2013 - 2023 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.h...
41dd889d3284bf6ef1abb29f79f44ebf159d2ad9a2cd8509bf251f3b06a0ebe5
drlivingston/kabob
kb_connection.clj
(ns edu.ucdenver.ccp.kabob.dev.kb-connection (use edu.ucdenver.ccp.kr.kb edu.ucdenver.ccp.kr.rdf edu.ucdenver.ccp.kabob.namespace edu.ucdenver.ccp.kr.sesame.kb) (import org.openrdf.rio.RDFFormat org.openrdf.query.resultio.TupleQueryResultFormat)) ;;; ---------------------------------...
null
https://raw.githubusercontent.com/drlivingston/kabob/7038076849744c959da9c8507e8a8ab7215410aa/kabob-dev/src/main/clojure/edu/ucdenver/ccp/kabob/dev/kb_connection.clj
clojure
-------------------------------------------------------- -------------------------------------------------------- PREFER THE BINARY CONNECTION BELOW -------------------------------------------------------- -------------------------------------------------------- ---------------------------------------------------...
(ns edu.ucdenver.ccp.kabob.dev.kb-connection (use edu.ucdenver.ccp.kr.kb edu.ucdenver.ccp.kr.rdf edu.ucdenver.ccp.kabob.namespace edu.ucdenver.ccp.kr.sesame.kb) (import org.openrdf.rio.RDFFormat org.openrdf.query.resultio.TupleQueryResultFormat)) kabob connection functions (defn k...
2308b0287d5002834f5e7f593bf2e99108c9076050fa2980d558025ba9e89731
meooow25/haccepted
CentroidDecomp.hs
| Centroid decomposition A recursive decomposition ( divide - and - conquer ) of a tree into multiple subtrees . This allows performing certain operations involving paths on the original tree effectively , by taking every path on the tree into account exactly once when it passes through the root of a decompo...
null
https://raw.githubusercontent.com/meooow25/haccepted/f56b23adc829ff26f7402731d13b32f73516fb99/src/CentroidDecomp.hs
haskell
| Centroid decomposition A recursive decomposition ( divide - and - conquer ) of a tree into multiple subtrees . This allows performing certain operations involving paths on the original tree effectively , by taking every path on the tree into account exactly once when it passes through the root of a decompo...
eada50c4ce65697f89d19270a56cdebf3bb7b65ccbaea3f8fabb033ad3b05604
parof/wstat
AbstractEvaluation.hs
# LANGUAGE FlexibleContexts # module Semantic.AbstractEvaluation where import Data.Map import Interfaces.AbstractStateDomain import Interfaces.AbstractValueDomain import Interfaces.AbstractDomain import Interfaces.State as S import SyntacticStructure.WhileGrammar abstractEval :: AbstractValueDomain b => AExpr -> Non...
null
https://raw.githubusercontent.com/parof/wstat/369cf5d1d92ef235049c29ad2f1cc6fd53747754/src/Semantic/AbstractEvaluation.hs
haskell
ignores the map
# LANGUAGE FlexibleContexts # module Semantic.AbstractEvaluation where import Data.Map import Interfaces.AbstractStateDomain import Interfaces.AbstractValueDomain import Interfaces.AbstractDomain import Interfaces.State as S import SyntacticStructure.WhileGrammar abstractEval :: AbstractValueDomain b => AExpr -> Non...
a8e74533371aaf3f6db11b5662dad6355b7572f1ea1ef50df0a9079b427ad783
hellonico/origami-fun
warping.clj
(ns opencv4.video.warping (:require [opencv4.core :refer :all] [opencv4.video :refer :all] [opencv4.utils :as u])) (def points1 [[0 0] [200 50] [30 300] [500 300]]) (def points2 [[0 0] [200 0] [30 300] [500 300]]) ; no transformation (def points2 [ [ 0 0 ] [ 200 0 ] [ 30 300 ] [ 500 300 ] ] ) [...
null
https://raw.githubusercontent.com/hellonico/origami-fun/80117788530d942eaa9a80e2995b37409fa24889/test/opencv4/video/warping.clj
clojure
no transformation
(ns opencv4.video.warping (:require [opencv4.core :refer :all] [opencv4.video :refer :all] [opencv4.utils :as u])) (def points1 [[0 0] [200 50] [30 300] [500 300]]) (def points2 (def points2 [ [ 0 0 ] [ 200 0 ] [ 30 300 ] [ 500 300 ] ] ) [[70 10] [200 52] [28 200] [389 390]]) (defn warp [ buffer...
e15dbb9a2720002bf5402ae7d613539e6a9498a2131ae42118761044bce7db11
faylang/fay
B.hs
module ImportType2I.B where import Prelude data Foo foo = putStrLn "B!"
null
https://raw.githubusercontent.com/faylang/fay/8455d975f9f0db2ecc922410e43e484fbd134699/tests/ImportType2I/B.hs
haskell
module ImportType2I.B where import Prelude data Foo foo = putStrLn "B!"
7d5e8c23d4a6966d2bda837cffde3679152238fa913b6b747574f731c7ce9a26
aeternity/aeternity
aect_sophia.erl
%%%------------------------------------------------------------------- ( C ) 2017 , Aeternity Anstalt %%% @doc API functions for compiling and encoding contracts and data . %%% @end %%%------------------------------------------------------------------- -module(aect_sophia). -include("aecontract.hrl"). -include_...
null
https://raw.githubusercontent.com/aeternity/aeternity/e66a588a41d8af5f4ce8467f28258d3f2c74cd8e/apps/aecontract/src/aect_sophia.erl
erlang
------------------------------------------------------------------- @doc @end -------------------------------------------------------------------
( C ) 2017 , Aeternity Anstalt API functions for compiling and encoding contracts and data . -module(aect_sophia). -include("aecontract.hrl"). -include_lib("aecore/include/blocks.hrl"). -include_lib("aecontract/include/hard_forks.hrl"). -include_lib("aecontract/src/aect_sophia.hrl"). -export([ serialize/2 ...
bf794a89c5cd4842a05b7961334449db87df60a9f0aabcbb0cbb28e7c68dc341
mpickering/apply-refact
Test6.hs
ignoreTest2 = filter
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Test6.hs
haskell
ignoreTest2 = filter
c973261641b0c11cf70436c5c80e6974b7d6712bb255df9dbdb9c94176fb27d0
jeanparpaillon/erlang-dbus
gen_dbus.erl
%% 2006 - 2007 @author < > %% @doc dbus object behaviour %% -module(gen_dbus). -behaviour(gen_server). -include("dbus.hrl"). %% api -export([ start_link/3, start_link/4, reply/2, signal/2, signal/3 ]). -export([ init/1, code_change/3, handle_call/3, handle_cast/2, handle_info/2, ...
null
https://raw.githubusercontent.com/jeanparpaillon/erlang-dbus/28a1656707a8986da7a9fcce0d4ad381186eab9a/src/gen_dbus.erl
erlang
@doc dbus object behaviour api gen_server callbacks Ignore Send method return Send error
2006 - 2007 @author < > -module(gen_dbus). -behaviour(gen_server). -include("dbus.hrl"). -export([ start_link/3, start_link/4, reply/2, signal/2, signal/3 ]). -export([ init/1, code_change/3, handle_call/3, handle_cast/2, handle_info/2, terminate/2 ]). -callback init(tuple()) ...
a7a90a6af163b6bf3486e1c39e18f113e4c84abf37ab985e28b113afeeeab9ff
ekmett/multipass
By.hs
----------------------------------------------------------------------------- -- | Module : Data . Pass . Copyright : ( C ) 2012 - 2013 -- License : BSD-style (see the file LICENSE) -- Maintainer : < > -- Stability : experimental Portability : non - portable ( GADTs , Rank2Types...
null
https://raw.githubusercontent.com/ekmett/multipass/18ce305f7196f9b386472582a2efaaac1d180bc1/Data/Pass/L/By.hs
haskell
--------------------------------------------------------------------------- | License : BSD-style (see the file LICENSE) Stability : experimental --------------------------------------------------------------------------
Module : Data . Pass . Copyright : ( C ) 2012 - 2013 Maintainer : < > Portability : non - portable ( GADTs , Rank2Types ) module Data.Pass.L.By (By(..)) where import Data.Pass.L.Estimator class By k where by :: k a b -> Estimator -> k a b
3d158a5b946bf26baffbb8b6668938fc2ec11ba083f1167e2277e44edba62a7b
mfoemmel/erlang-otp
snmp_manager_config_test.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2004 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pu...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/snmp/test/snmp_manager_config_test.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limit...
Copyright Ericsson AB 2004 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(snmp_manager_config_test). -inclu...
b6dea3617cdee736b7335c3c575a579abc3226d1d25e27c8f14db0399ea4d225
diku-dk/futhark
Interference.hs
# LANGUAGE TypeFamilies # | Interference analysis for programs . module Futhark.Analysis.Interference (Graph, analyseProgGPU) where import Control.Monad.Reader import Data.Foldable (toList) import Data.Function ((&)) import Data.Functor ((<&>)) import Data.Map (Map) import Data.Map qualified as M import Data.Maybe...
null
https://raw.githubusercontent.com/diku-dk/futhark/d96d9020677d37e788a2f15a874e308f47ce0d22/src/Futhark/Analysis/Interference.hs
haskell
| The set of 'VName' currently in use. | The set of 'VName' that are no longer in use. | An interference graph. An element @(x, y)@ in the set means that there is an undirected edge between @x@ and @y@, and therefore the lifetimes of @x@ and @y@ overlap and they "interfere" with each other. We assume that pairs a...
# LANGUAGE TypeFamilies # | Interference analysis for programs . module Futhark.Analysis.Interference (Graph, analyseProgGPU) where import Control.Monad.Reader import Data.Foldable (toList) import Data.Function ((&)) import Data.Functor ((<&>)) import Data.Map (Map) import Data.Map qualified as M import Data.Maybe...
b05c099c9dc68f2eda153e9e651ec30fc22794ecaa01c71437380fc0713e096f
yetanalytics/pedestal-oidc
interceptor.clj
(ns com.yetanalytics.pedestal-oidc.interceptor (:require [io.pedestal.interceptor :as i] [com.yetanalytics.pedestal-oidc.response :as resp] [com.yetanalytics.pedestal-oidc.jwt :as jwt] [clojure.tools.logging :as log] [clojure.string :as cstr] [clojure.core.a...
null
https://raw.githubusercontent.com/yetanalytics/pedestal-oidc/1f7422fa2ef9ab497a0afc6ee6183128a4abfd6e/src/lib/com/yetanalytics/pedestal_oidc/interceptor.clj
clojure
adapted from -a-clojure-web-api-with-auth0/ Unknown Key Invalid Key per buddy-sign Throw to top-level handling bad auth header no auth header
(ns com.yetanalytics.pedestal-oidc.interceptor (:require [io.pedestal.interceptor :as i] [com.yetanalytics.pedestal-oidc.response :as resp] [com.yetanalytics.pedestal-oidc.jwt :as jwt] [clojure.tools.logging :as log] [clojure.string :as cstr] [clojure.core.a...
0fff4fcc3ac5ad2af1e77255b43f715016887a62ccd5084daee8662c1b7767e3
screenshotbot/screenshotbot-oss
test-notices.lisp
;;;; Copyright 2018-Present Modern Interpreters Inc. ;;;; This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/dashboard/test-notices (:use #:cl #:fiveam) (:...
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/e2b32b8b536796122b7111c456728a5101a1ed08/src/screenshotbot/dashboard/test-notices.lisp
lisp
Copyright 2018-Present Modern Interpreters Inc.
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (defpackage :screenshotbot/dashboard/test-notices (:use #:cl #:fiveam) (:import-from #:screenshotbot/testing #:with...
638154d98f6457d330ca3ba7bdcc5f89b4ac7683d5bc048793e64d69c90d8625
rbkmoney/fistful-server
ff_wallet.erl
%%% %%% Wallet %%% -module(ff_wallet). -type id() :: ff_account:id(). -type external_id() :: id() | undefined. -type metadata() :: ff_entity_context:md(). -define(ACTUAL_FORMAT_VERSION, 2). -type wallet_state() :: #{ name := binary(), blocking := blocking(), account => account(), external_id => id()...
null
https://raw.githubusercontent.com/rbkmoney/fistful-server/60b964d0e07f911c841903bc61d8d9fb20a32658/apps/fistful/src/ff_wallet.erl
erlang
Wallet Internal types
-module(ff_wallet). -type id() :: ff_account:id(). -type external_id() :: id() | undefined. -type metadata() :: ff_entity_context:md(). -define(ACTUAL_FORMAT_VERSION, 2). -type wallet_state() :: #{ name := binary(), blocking := blocking(), account => account(), external_id => id(), metadata => m...
ef626e11dc326ef0c53198c525ce1ec4eed0c5c258f294dc1889ca6b96a4c95a
mdedwards/slippery-chicken
tempo-map.lsp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ****c* simple-change-map/tempo-map ;;; NAME ;;; tempo-map ;;; File : tempo-map.lsp ;;; Class Hierarchy : named - object - > linked - named - object - > sclist - > circular - sclist - > assoc - lis...
null
https://raw.githubusercontent.com/mdedwards/slippery-chicken/c1c11fadcdb40cd869d5b29091ba5e53c5270e04/src/tempo-map.lsp
lisp
****c* simple-change-map/tempo-map NAME tempo-map sc-map -> change-map -> simple-change-map -> tempo-map Project: slippery chicken (algorithmic composition) Purpose: Allow the specification of tempi by just a number **** This file is part of sli...
File : tempo-map.lsp Class Hierarchy : named - object - > linked - named - object - > sclist - > circular - sclist - > assoc - list - > recursive - assoc - list - > Version : 1.0.12 ( defaulting to crotchet number ) or a list where the first ...
ef6bc4066fff9b2a79a5167c7a32b3a0e93bb30abe6c2fb5f4f124ad313415e2
slipstream/SlipStreamServer
event.clj
(ns com.sixsq.slipstream.ssclj.resources.event " Event resources provide a timestamp for the occurrence of some action. These are used within the SlipStream server to mark changes in the lifecycle of a cloud application and for other important actions. Some of the lifecycle changes that generate events are: * State...
null
https://raw.githubusercontent.com/slipstream/SlipStreamServer/3ee5c516877699746c61c48fc72779fe3d4e4652/cimi-resources/src/com/sixsq/slipstream/ssclj/resources/event.clj
clojure
available operations collection initialization
(ns com.sixsq.slipstream.ssclj.resources.event " Event resources provide a timestamp for the occurrence of some action. These are used within the SlipStream server to mark changes in the lifecycle of a cloud application and for other important actions. Some of the lifecycle changes that generate events are: * State...
f9322a2b56e58a83aae076fff641b173a7f20d6b1a0e4c615b382a6da91086d0
HealthSamurai/igpop
inline_parser_test.clj
(ns igpop.inline-parser-test (:require [igpop.inline-parser :as sut] [matcho.core :as matcho] [clojure.test :refer :all] [zprint.core :as zp])) (deftest test-inline-parser (testing "inline parse" (is (= (sut/inline-type "{}") :map)) (is (= (sut/inline-type "[]") :coll)) (is (= (sut/inline-...
null
https://raw.githubusercontent.com/HealthSamurai/igpop/d4e6f6100b78c20a1706add125e90ff7d912e3d4/test/igpop/inline_parser_test.clj
clojure
(matcho/match [{:type :map :value [{:type :kv :key :valueset :value {:type :map :value [{:type :kv :key :id :value {:value "x"}}]}}]}])
(ns igpop.inline-parser-test (:require [igpop.inline-parser :as sut] [matcho.core :as matcho] [clojure.test :refer :all] [zprint.core :as zp])) (deftest test-inline-parser (testing "inline parse" (is (= (sut/inline-type "{}") :map)) (is (= (sut/inline-type "[]") :coll)) (is (= (sut/inline-...
8649446a257af7051371d223f9a7694b575d043465e1b3fedf0f430677902b8b
dongcarl/guix
search-paths.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2017 , 2019 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 3 of t...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/tests/search-paths.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2017 , 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (test-search-paths) #:use-module (guix search-paths) #:use-module (ice-9 match) #:use-...
c237feab979d8ea0e5691b08c82e5221852c9ed4e97b77cedfc9c005f485cf54
JonasDuregard/BNFC-meta
Typesafe.hs
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module Typesafe where import Language.LBNF bnfc [lbnf| antiquote "[" ":" ":]" ; Fun. Prog ::= Ident "(" ")" "{" [Stm] "}" ; SBAss. Stm ::= BVar ":=" BExp ";" ; SAss. Stm ::= NVar "=" Exp ";" ; SIncr. Stm ::= NVar "++...
null
https://raw.githubusercontent.com/JonasDuregard/BNFC-meta/1526a2fbd7b01d374ebe2e49f78494f46d7472b8/examples/typesafe/Typesafe.hs
haskell
coercions pragmas
# LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # module Typesafe where import Language.LBNF bnfc [lbnf| antiquote "[" ":" ":]" ; Fun. Prog ::= Ident "(" ")" "{" [Stm] "}" ; SBAss. Stm ::= BVar ":=" BExp ";" ; SAss. Stm ::= NVar "=" Exp ";" ; SIncr. Stm ::= NVar "++...
452f5fc9224d4801aa336018b7b463987d77f6d0dd0f303061a1f77af1ab3f5c
mfoemmel/erlang-otp
wxWindowDC.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxWindowDC.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(wxWindowDC). -include("wxe.hrl")....
e85de868a74bdc6b2fb4d732cb00419ef0e521ed44676e7ce34fb0b427a8ab75
digikar99/numericals
copy-coerce.lisp
(numericals.common:compiler-in-package numericals.common:*compiler-package*) (5am:in-suite nu::array) TODO : Implement methods of copying from CL : ARRAY to DENSE - ARRAYS : ARRAY and vice - versa TODO : Provide a fast ( setf aref ) (define-polymorphic-function nu:copy (x &key out broadcast) :overwrite t) We ...
null
https://raw.githubusercontent.com/digikar99/numericals/8a0e7190996f38b29107d51285a65f518cbf5037/dense-numericals-src/copy-coerce.lisp
lisp
instead we will provide a TRIVIAL - COERCE : COERCE wrapper ! such a function would then take in arrays with incompatible element-types as the entry to one - arg - fn is the primary location where type - checking takes place; allowing arbitrary element-types would mean bypassing type-safety. Doesn't make sense to ...
(numericals.common:compiler-in-package numericals.common:*compiler-package*) (5am:in-suite nu::array) TODO : Implement methods of copying from CL : ARRAY to DENSE - ARRAYS : ARRAY and vice - versa TODO : Provide a fast ( setf aref ) (define-polymorphic-function nu:copy (x &key out broadcast) :overwrite t) We ...
753df2f937ed40760f986a3f4617dce86bb8b4ac18132ba3d362c961493d9932
well-typed/recover-rtti
Prim.hs
{-# LANGUAGE DerivingStrategies #-} # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE StandaloneDeriving # module Test.RecoverRTTI....
null
https://raw.githubusercontent.com/well-typed/recover-rtti/c9409621188d0209919c2297a2012341607a4b0b/tests/Test/RecoverRTTI/Prim.hs
haskell
# LANGUAGE DerivingStrategies # # LANGUAGE GADTs # # LANGUAGE OverloadedStrings # * Equality * Arbitrary ------------------------------------------------------------------------------ Equality ------------------------------------------------------------------------------ ------...
# LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE StandaloneDeriving # module Test.RecoverRTTI.Prim ( canComparePrim , Wrap(..) , primSatisfiesArbitrary , arbitraryPrimClassifier ) where import Control.Monad (repli...
bf7c373fab3a60b77dd22b838e305e9c7d30a11eba2e9d11714fd3cffcfee2f2
camsaul/toucan2
query.clj
(ns ^:no-doc toucan2.jdbc.query (:require [next.jdbc :as next.jdbc] [toucan2.jdbc :as jdbc] [toucan2.jdbc.result-set :as jdbc.rs] [toucan2.log :as log] [toucan2.util :as u]) (:import java.sql.ResultSet)) (set! *warn-on-reflection* true) TODO : it 's a little silly having a one - function namespac...
null
https://raw.githubusercontent.com/camsaul/toucan2/8827187a2211edae13c0f7e654ad135d8a920591/src/toucan2/jdbc/query.clj
clojure
you shouldn't need to call this directly."
(ns ^:no-doc toucan2.jdbc.query (:require [next.jdbc :as next.jdbc] [toucan2.jdbc :as jdbc] [toucan2.jdbc.result-set :as jdbc.rs] [toucan2.log :as log] [toucan2.util :as u]) (:import java.sql.ResultSet)) (set! *warn-on-reflection* true) TODO : it 's a little silly having a one - function namespac...
89625cb134ba1392e60073ad722822c63e123082c06f5c9875ec749e037cf69b
zenspider/schemers
exercise.2.20.scm
#lang racket/base (require "../lib/test.rkt") Exercise 2.20 : ;; The procedures `+', `*', and `list' take arbitrary numbers of arguments . One way to define such procedures is to use ` define ' ;; with notation "dotted-tail notation". In a procedure definition, a ;; parameter list that has a dot before the last ...
null
https://raw.githubusercontent.com/zenspider/schemers/2939ca553ac79013a4c3aaaec812c1bad3933b16/sicp/ch_2/exercise.2.20.scm
scheme
The procedures `+', `*', and `list' take arbitrary numbers of with notation "dotted-tail notation". In a procedure definition, a parameter list that has a dot before the last parameter name indicates that, when the procedure is called, the initial parameters (if any) will have as values the initial arguments, as ...
#lang racket/base (require "../lib/test.rkt") Exercise 2.20 : arguments . One way to define such procedures is to use ` define ' the procedure ` f ' can be called with two or more arguments . If we then in the body of ` f ' , ` x ' will be 1 , ` y ' will be 2 , and ` z ' will be the list ` ( 3 4 5 6 ) ' . ...
3d44a22b6b4022cc45cd9e08989d74be178a30b5c839f3433e4880706b5b68ef
nuprl/gradual-typing-performance
lcs.rkt
#lang racket/base ;; Some utilities. (require (except-in "data.rkt" make-label) "label.rkt" (submod "structs.rkt" unsafe) "ukkonen.rkt") (define false-thunk (lambda () #f)) ;; longest-common-substring: string string -> string Returns the longest common substring between the two strings . (provide longest-comm...
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/boundary-configurations/suffixtree/configuration000010-a/lcs.rkt
racket
Some utilities. longest-common-substring: string string -> string longest-common-sublabel: label label -> label Naive use of suffix trees to find longest common sublabel between matching statistics: I'll try using matching statistics as soon as I get this version running. This approach simply adds both labels ...
#lang racket/base (require (except-in "data.rkt" make-label) "label.rkt" (submod "structs.rkt" unsafe) "ukkonen.rkt") (define false-thunk (lambda () #f)) Returns the longest common substring between the two strings . (provide longest-common-substring) (define (longest-common-substring s1 s2) (label->string ...
160d4efcf31c258a002209e1951b7c06c741580b3d160e683d38f8174bc42a69
dwayne/eopl3
ex1.16.rkt
#lang racket ( define ( invert lst ) ; (if (null? lst) ; '() ; (cons ; (reverse-2-lists (car lst)) ; (invert (cdr lst))))) ; ( define ( reverse-2 - lists lst ) ( list ( cadr lst ) ( car lst ) ) ) (define (invert lst) (map reverse lst)) (module+ test (require rackunit) (check-equal? ...
null
https://raw.githubusercontent.com/dwayne/eopl3/9d5fdb2a8dafac3bc48852d49cda8b83e7a825cf/solutions/01-ch1/racket/ex1.16.rkt
racket
(if (null? lst) '() (cons (reverse-2-lists (car lst)) (invert (cdr lst)))))
#lang racket ( define ( invert lst ) ( define ( reverse-2 - lists lst ) ( list ( cadr lst ) ( car lst ) ) ) (define (invert lst) (map reverse lst)) (module+ test (require rackunit) (check-equal? (invert '((a 1) (a 2) (1 b) (2 b))) '((1 a) (2 a) (b 1) (b 2))))
9ae680f670191f0a28269c4af15ccf4c2b42177dcee95931766d6791cddd9730
tmattio/js-bindings
vscode_jsonrpc_message_buffer.ml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es2020 module AbstractMessageBuffer = struct include struct include Vscode_jsonrpc_ral.RAL.MessageBuffer end let (get__encoding : t -> any) = fun (x1 : t) -> any_of_js ...
null
https://raw.githubusercontent.com/tmattio/js-bindings/ca3bd6a12db519c8de7f41b303f14cf70cfd4c5f/lib/vscode-jsonrpc/vscode_jsonrpc_message_buffer.ml
ocaml
[@@@js.dummy "!! This code has been generated by gen_js_api !!"] [@@@ocaml.warning "-7-32-39"] [@@@ocaml.warning "-7-11-32-33-39"] open Es2020 module AbstractMessageBuffer = struct include struct include Vscode_jsonrpc_ral.RAL.MessageBuffer end let (get__encoding : t -> any) = fun (x1 : t) -> any_of_js ...
554831c7faa0a9e7e76450c9dcb62fa9dca6a0c835a3ed5b70cb8241c0392c57
rizo/snowflake-os
optmain.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/driver/optmain.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Config open Clflags let ...
6676e96af30da72f129e1e09b744dcf5822dfefa86da52af122ddccbb2814099
manuel-serrano/bigloo
jvm.scm
;*=====================================================================*/ * serrano / prgm / project / bigloo / comptime / BackEnd / jvm.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation ...
null
https://raw.githubusercontent.com/manuel-serrano/bigloo/eb650ed4429155f795a32465e009706bbf1b8d74/comptime/BackEnd/jvm.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ *=====================================================================*/ *---------------------------...
* serrano / prgm / project / bigloo / comptime / BackEnd / jvm.scm * / * Author : * / * Creation : Sun Nov 18 08:31:55 2012 * / * Last change : Sun Jul 21 11:34:37 2013 ( serrano ) * / * Copy...
5514a4642d1fadae26e48f6472d34a0a2e2a8af1af4f6f7de1b392311dc4d2fd
sellout/haskerwaul
Equality.hs
# language UndecidableInstances , UndecidableSuperClasses # , UndecidableSuperClasses #-} module Haskerwaul.Relation.Equality ( module Haskerwaul.Relation.Equality -- * extended modules , module Haskerwaul.Order.Partial , module Haskerwaul.Relation.Equivalence ) where import Haskerwa...
null
https://raw.githubusercontent.com/sellout/haskerwaul/b32ecdb141a5f9cca04ed85dc952028242c160a8/src/Haskerwaul/Relation/Equality.hs
haskell
* extended modules | [nLab](#in_set_theory) __NB__: Instances for this are automatically coalesced. * operators
# language UndecidableInstances , UndecidableSuperClasses # , UndecidableSuperClasses #-} module Haskerwaul.Relation.Equality ( module Haskerwaul.Relation.Equality , module Haskerwaul.Order.Partial , module Haskerwaul.Relation.Equivalence ) where import Haskerwaul.Order.Partial import ...
6d0c9d910aad3f1aa46eb112beecf06b68f8bf36d1c81fbdeb71c6ef6fabb452
NetComposer/nksip
nksip_event_compositor_util.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2019 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the...
null
https://raw.githubusercontent.com/NetComposer/nksip/7fbcc66806635dc8ecc5d11c30322e4d1df36f0a/src/plugins/nksip_event_compositor_util.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2019 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(nksip_event_composit...
58cdaa4d253927d5507b16dacf19c025c7b04d1cbed2996b7096c742675b1177
Apress/haskell-quick-syntax-reference
ch4.hs
:t 5 :t 'a' :t "abc" :t False :t 3 < 2 :t 3.44 :t pi let x = 1 a = 'x' :t x :t a :info x :info a [1, 2, 3] :t ['a', 'b'] [1, 'x'] (1, 'x') :t (1, 'x') (1,2,3,4,5) data DateInfo = Date Int Int Int myDate = Date 1 10 2018 :t myDate myDate :: DateInfo :info DateInfo print myDate data DateInfo = Date Int Int Int ...
null
https://raw.githubusercontent.com/Apress/haskell-quick-syntax-reference/8bcb2773532de752d6297a91a3aaf49fd92ed03b/ch4.hs
haskell
:t 5 :t 'a' :t "abc" :t False :t 3 < 2 :t 3.44 :t pi let x = 1 a = 'x' :t x :t a :info x :info a [1, 2, 3] :t ['a', 'b'] [1, 'x'] (1, 'x') :t (1, 'x') (1,2,3,4,5) data DateInfo = Date Int Int Int myDate = Date 1 10 2018 :t myDate myDate :: DateInfo :info DateInfo print myDate data DateInfo = Date Int Int Int ...
6407bc8d3a5b881f75992aaa4e78edad70f4224a41c8eac9a2ea8a3f3fdfde56
OCamlPro/ocp-build
warnings.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/56aff560bb438c12b2929feaf8379bc6f31b9840/tools/ocp-pp/compat/4.00.0/warnings.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file $ I d : warnings.ml 12504 2012 - 05 - 29 12:35:17Z frisch $ When you change this , you need to update the documentation : - man / ocamlc.m in ocaml - m...
0f6631f08302aa4b62b5f800f15656a7d02d3670839a3778ab656c07fa604cfd
ucsd-progsys/nate
proc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/asmcomp/arm/proc.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ I d : proc.ml , v 1.8 2002/07/22 16...
f7287bb2a0c3ca06c946a1f493839dbc12d33f1226be7369254c86acad9ce867
silverbullettt/SICP
2.70.rkt
(define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car object) 'leaf)) (define (symbol-leaf x) (cadr x)) (define (weight-leaf x) (caddr x)) (define (make-code-tree left right) (list left right (append (symbols left) (symbols right)) (+ (weight le...
null
https://raw.githubusercontent.com/silverbullettt/SICP/e773a8071ae2fae768846a2b295b5ed96b019f8d/2.70.rkt
racket
symbol frequency iteration
(define (make-leaf symbol weight) (list 'leaf symbol weight)) (define (leaf? object) (eq? (car object) 'leaf)) (define (symbol-leaf x) (cadr x)) (define (weight-leaf x) (caddr x)) (define (make-code-tree left right) (list left right (append (symbols left) (symbols right)) (+ (weight le...
0bc01aeceace1fd9734badc99d24bd57896311179ab1c1d4cec0508eb63ef96d
ppelleti/hs-wiringPi
pwm-example.hs
Example of using pwmWrite . Run with an LED connected to wiringPi pin 1 : -- @N04/32201782695/ -- Pulses the LED. Compatible with the hs - wiringPi test board . -- -wiringPi-test-board import Control.Concurrent import Control.Monad import System.Hardware.WiringPi pwmPin = Wpi 1 main = do pinMode pwmPin ...
null
https://raw.githubusercontent.com/ppelleti/hs-wiringPi/18b01a2b9e43dc83638297e96fc8aa6562e1961a/examples/pwm-example.hs
haskell
@N04/32201782695/ Pulses the LED. -wiringPi-test-board gamma correction
Example of using pwmWrite . Run with an LED connected to wiringPi pin 1 : Compatible with the hs - wiringPi test board . import Control.Concurrent import Control.Monad import System.Hardware.WiringPi pwmPin = Wpi 1 main = do pinMode pwmPin PWM_OUTPUT forM_ [0, 0.1 ..] $ \x -> do let y = (sin x + 1) / ...
140205aa66e7949c952d3648b532c759a8127c90da2fd65fc637c32fe085115a
well-typed-lightbulbs/ocaml-esp32
pr7390.ml
(* TEST * expect *) type empty = Empty and filled = Filled type ('a,'fout,'fin) opt = | N : ('a, 'f, 'f) opt | Y : 'a -> ('a, filled, empty) opt type 'fill either = | Either : (string, 'fill, 'f) opt * (int, 'f, empty) opt -> 'fill either;; [%%expect{| type empty = Empty and filled = Filled type ('a, 'fout, '...
null
https://raw.githubusercontent.com/well-typed-lightbulbs/ocaml-esp32/c24fcbfbee0e3aa6bb71c9b467c60c6bac326cc7/testsuite/tests/typing-gadts/pr7390.ml
ocaml
TEST * expect : filled either -> string
type empty = Empty and filled = Filled type ('a,'fout,'fin) opt = | N : ('a, 'f, 'f) opt | Y : 'a -> ('a, filled, empty) opt type 'fill either = | Either : (string, 'fill, 'f) opt * (int, 'f, empty) opt -> 'fill either;; [%%expect{| type empty = Empty and filled = Filled type ('a, 'fout, 'fin) opt = N : ('a,...
1fcae10101205b87ec11671fb05f3d30f56b940cbeaee58cbbef0085fdb74b51
andgate/type-theory-compiler
Match.hs
# LANGUAGE ConstraintKinds , FlexibleContexts , LambdaCase , ViewPatterns , TupleSections # , FlexibleContexts , LambdaCase , ViewPatterns , TupleSections #-} module Language.STLC.Match where -- Matc...
null
https://raw.githubusercontent.com/andgate/type-theory-compiler/a404f085d19a19b16ae8c26616707dc46707ea10/stlc/src/Language/STLC/Match.hs
haskell
Match generates simple patterns from nested patterns Extract environment information from datatype definitions ^ Constructor name to constructor arity ^ Constructor name to sibling constructor names ^ Constructor name to type
# LANGUAGE ConstraintKinds , FlexibleContexts , LambdaCase , ViewPatterns , TupleSections # , FlexibleContexts , LambdaCase , ViewPatterns , TupleSections #-} module Language.STLC.Match where import ...
45f47fb6824d56d30354b6df27d5b455fccd4338c3b7ef4f4e3695b8ea3cca0b
cmeiklejohn/riak_pg
riak_pg_util.erl
-module(riak_pg_util). -export([prune/1]). %% @doc If the node is connected, and the process is not alive, prune %% it. pid_alive(Pid) when is_pid(Pid) -> lists:member(node(Pid), [node()| nodes()]) andalso is_process_alive(node(Pid), Pid). %% @doc Remote call to determine if process is alive or not; assume if...
null
https://raw.githubusercontent.com/cmeiklejohn/riak_pg/32d46bc1909144cea93b8b98a652a00f6520ffdb/src/riak_pg_util.erl
erlang
@doc If the node is connected, and the process is not alive, prune it. @doc Remote call to determine if process is alive or not; assume if the node fails communication it is, since we have no proof it is not. @doc Based on connected nodes, prune out processes that no longer exist.
-module(riak_pg_util). -export([prune/1]). pid_alive(Pid) when is_pid(Pid) -> lists:member(node(Pid), [node()| nodes()]) andalso is_process_alive(node(Pid), Pid). is_process_alive(Node, Pid) -> case rpc:call(Node, erlang, is_process_alive, [Pid]) of {badrpc, _} -> true; Value -> Value end. ...
c8b7b4e487f582d5879829e037a492ef680fbc87f4b007387c5bbc71de240667
ocharles/zero-to-quake-3
Image.hs
# language DataKinds # # language TypeApplications # module Vulkan.Image ( createDepthImage ) where -- base import Control.Monad.IO.Class ( liftIO ) -- managed import Control.Monad.Managed ( MonadManaged ) -- vulkan-api import Graphics.Vulkan.Marshal.Create ( (&*) ) import qualified Graphics.Vulkan as Vulkan import...
null
https://raw.githubusercontent.com/ocharles/zero-to-quake-3/6fe4ef61955b8a816369cf70c0edd2cacfd911db/src/Vulkan/Image.hs
haskell
base managed vulkan-api
# language DataKinds # # language TypeApplications # module Vulkan.Image ( createDepthImage ) where import Control.Monad.IO.Class ( liftIO ) import Control.Monad.Managed ( MonadManaged ) import Graphics.Vulkan.Marshal.Create ( (&*) ) import qualified Graphics.Vulkan as Vulkan import qualified Graphics.Vulkan.Core_1...
30338c16c564621215d1a5f8d9537d825da897bfb30089aa4e69f2c09dc0ec67
McCLIM/McCLIM
text-formatting.lisp
;;; --------------------------------------------------------------------------- ;;; License: LGPL-2.1+ (See file 'Copyright' for details). ;;; --------------------------------------------------------------------------- ;;; ( c ) Copyright 2002 by < > ( c ) Copyright 2019 by < > ;;; ;;; -------------------...
null
https://raw.githubusercontent.com/McCLIM/McCLIM/ece91cf035e2ccb1c6eb0bb867ae2bc45f627982/Core/extended-output/text-formatting.lisp
lisp
--------------------------------------------------------------------------- License: LGPL-2.1+ (See file 'Copyright' for details). --------------------------------------------------------------------------- --------------------------------------------------------------------------- Page layout abstraction P...
( c ) Copyright 2002 by < > ( c ) Copyright 2019 by < > (in-package #:clim-internals) (defclass standard-page-layout () ((%page-region :initform (make-bounding-rectangle 0 0 0 0)) (margins :accessor stream-text-margins :type margin-spec)) (:default-initargs :text-margins '(:left (:absolute 0) ...
43f2807c946598f29cee0458265c3787b545adc46158381acb0d6ecb6a8dc4a6
datskos/ring-netty-adapter
wrapping.clj
A example of modular construction of Ring apps . (ns ring.example.wrapping (:use (ring.handler dump) (ring.middleware stacktrace file-info file) (ring.adapter netty) (clojure.contrib except))) (defn wrap-error [app] (fn [req] (if (= "/error" (:uri req)) (throwf "Demonstrating r...
null
https://raw.githubusercontent.com/datskos/ring-netty-adapter/1f49d499909853b912e54d660e6049c6113745b8/example/wrapping.clj
clojure
A example of modular construction of Ring apps . (ns ring.example.wrapping (:use (ring.handler dump) (ring.middleware stacktrace file-info file) (ring.adapter netty) (clojure.contrib except))) (defn wrap-error [app] (fn [req] (if (= "/error" (:uri req)) (throwf "Demonstrating r...
3ead3ff57cd8013aee67a8c2729c81ddc7b6dd42c378c76ab20b0ea9f91957f8
typedclojure/typedclojure
last_test.clj
(ns clojure.core.typed.test.last-test (:refer-clojure :exclude [fn]) (:require [typed.clj.checker.test-utils :refer :all] [clojure.test :refer :all] [typed.clojure :as t :refer [ann-form fn]])) (deftest last-test (testing "when we know there is at least one value" (is-tc-e (fn [c...
null
https://raw.githubusercontent.com/typedclojure/typedclojure/5fd7cdf7941c6e7d1dd5df88bf44474fa35e1fca/typed/clj.checker/test/clojure/core/typed/test/last_test.clj
clojure
(ns clojure.core.typed.test.last-test (:refer-clojure :exclude [fn]) (:require [typed.clj.checker.test-utils :refer :all] [clojure.test :refer :all] [typed.clojure :as t :refer [ann-form fn]])) (deftest last-test (testing "when we know there is at least one value" (is-tc-e (fn [c...
a492e8b98d24f925c8850da17564e9a4e039865adff59e50c2b3106245115c03
guicho271828/trivia
impl.lisp
(in-package :trivia.level1.impl) ;;; API (defmacro match1 (what &body clauses) (let ((whatvar (gensym "WHAT1")) (toplevel-place-pattern nil)) (let ((bodyform (handler-bind ((place-pattern (lambda (c) (declare (ignore c)) ...
null
https://raw.githubusercontent.com/guicho271828/trivia/69637801872cc80da4fc727de7ffce402bfb7c8a/level1/impl.lisp
lisp
API syntax error outer construct << return from the whole match `next' implementation we use block-based one, due to the simplicity of the implementation. this, however, does not allow the use of (next) in the last matching nil) clause (in case of normal match) and (_ (error ...)) (in ematch family). block-ba...
(in-package :trivia.level1.impl) (defmacro match1 (what &body clauses) (let ((whatvar (gensym "WHAT1")) (toplevel-place-pattern nil)) (let ((bodyform (handler-bind ((place-pattern (lambda (c) (declare (ignore c)) ...
7065997d0e0e3be107f8cdf630126bbfba2f474feefe76567f9ae58bdd07c6eb
PolyB/kvm
Main.hs
# LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Main where import Control.Monad.IO.Class import System.Linux.Kvm import System.Linux.Kvm.Components.Init import Data.Word import System.Linux.Kvm.Components.Ram import System.Linux.Kvm.Debug import System.Linux.Kvm.ExitHandler import System.Linux.Kvm.E...
null
https://raw.githubusercontent.com/PolyB/kvm/a0431d6558906ec90376864ac665a27978a6a671/app/Main.hs
haskell
I.tagAttach @Cpu $ guest_debug .= (guestDbgEnable <> guestDbgSinglestep) Not implemented
# LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Main where import Control.Monad.IO.Class import System.Linux.Kvm import System.Linux.Kvm.Components.Init import Data.Word import System.Linux.Kvm.Components.Ram import System.Linux.Kvm.Debug import System.Linux.Kvm.ExitHandler import System.Linux.Kvm.E...
640fba36c45363f6e06ac76ffa5e94518b77152160a9093168e8ecd04e6298ed
tommaisey/aeon
leak-dc.help.scm
( leak - dc in coef ) Remove DC . This filter removes a DC offset from a signal . ;; in - input signal coef - leak coefficient (let ((a (mul (lf-pulse ar 800 0.5 0.5) 0.1))) (audition (out 0 (mce2 a (leak-dc a 0.995)))))
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/filters/leak-dc.help.scm
scheme
in - input signal
( leak - dc in coef ) Remove DC . This filter removes a DC offset from a signal . coef - leak coefficient (let ((a (mul (lf-pulse ar 800 0.5 0.5) 0.1))) (audition (out 0 (mce2 a (leak-dc a 0.995)))))
91d0adbffd71f9081f77b38ea30e2ffd1bf8b8bc8015b2250db464e4fa18640f
esl/MongooseIM
bosh_SUITE.erl
%%============================================================================== Copyright 2012 Erlang Solutions Ltd. %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% ...
null
https://raw.githubusercontent.com/esl/MongooseIM/b9ca80eaf64c75d3afcd6385167a672e0d645ce6/big_tests/tests/bosh_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 ex...
Copyright 2012 Erlang Solutions Ltd. Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(bosh_SUITE). -compile([export_all, nowarn_export_all]). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/i...
ba0bfa35bbd49fafcd0ad8b316b532a59fbce274d0ca45eca980f3b1ca71c2b7
Factual/riffle
hash_table.clj
(ns riffle.data.hash-table "On-disk hash-table " (:require [riffle.data.utils :as u] [primitive-math :as p] [byte-transforms :as bt] [clojure.java.io :as io] [byte-streams :as bs]) (:import [java.io RandomAccessFile DataOutputStream DataInputStream BufferedInputStream] ...
null
https://raw.githubusercontent.com/Factual/riffle/f102db1a96dd2de212d555154a231b76016c632a/src/riffle/data/hash_table.clj
clojure
int32 hash uint8 index within block nothing there, write away someone already wrote, and we can assume it's a lower index move onto the next slot hit an empty slot, must not be here found it! move onto the next slot
(ns riffle.data.hash-table "On-disk hash-table " (:require [riffle.data.utils :as u] [primitive-math :as p] [byte-transforms :as bt] [clojure.java.io :as io] [byte-streams :as bs]) (:import [java.io RandomAccessFile DataOutputStream DataInputStream BufferedInputStream] ...
446b6e579c8a5278ac98b36c7fb8b572a8a4f318181de09e02523dc5fb4c3345
cushon/project-euler
7.rkt
#lang racket ; Find the 10001st prime. (define (solve) (define (find-prime n) (define (is-prime? p i) (foldl (lambda (x y) (and x y)) #t (map (lambda (x) (not (zero? (remainder i x)))) p))) (define (helper i p c) (cond [(= c n) (car p)] [(is-prime? p i) (helper (+ i 2) ...
null
https://raw.githubusercontent.com/cushon/project-euler/d7fcbfff0cd59b2c3691293ff35bb2043b409f68/7.rkt
racket
Find the 10001st prime.
#lang racket (define (solve) (define (find-prime n) (define (is-prime? p i) (foldl (lambda (x y) (and x y)) #t (map (lambda (x) (not (zero? (remainder i x)))) p))) (define (helper i p c) (cond [(= c n) (car p)] [(is-prime? p i) (helper (+ i 2) (cons i p) (add1 c))] ...
6afafecdd00e62bbc1d62358a2bb1a903f6812a34116a4bf3c233533c8135e4a
cuplv/dai
daig.ml
open Dai.Import open Domain open Syntax module type Sig = sig type absstate module Name : sig type t [@@deriving compare, hash, sexp_of] val pp : t pp end module Ref : sig type t = | Stmt of { mutable stmt : Ast.Stmt.t; name : Name.t } | AState of { mutable state : absstate option; n...
null
https://raw.githubusercontent.com/cuplv/dai/99117a6c5bd9a2d54eef9287472861eb508b7772/src/analysis/daig.ml
ocaml
Iteration context is a map from loop-heads to iteration-counts, tracking the abstract iteration count of each nested loop | Fn fn -> Comp.hash fn | Fn fn -> Comp.pp fs fn * provide infix monadic operations over ['a or_summary_query * t] remove all nodes and edges between ~src and ~dst, including associated statemen...
open Dai.Import open Domain open Syntax module type Sig = sig type absstate module Name : sig type t [@@deriving compare, hash, sexp_of] val pp : t pp end module Ref : sig type t = | Stmt of { mutable stmt : Ast.Stmt.t; name : Name.t } | AState of { mutable state : absstate option; n...
9641d4f34ca3bd63c824efa927fc334e82161a2952be170ccae45cc10940c840
tmattio/js-bindings
protocol_moniker.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib unknown identifiers : - PartialResultParams - ProtocolRequestType < T1 , T2 , T3 , T4 , T5 > - TextDocumentPositionParams - TextDocumentRegistrationOptions - WorkDoneProgressOptions ...
null
https://raw.githubusercontent.com/tmattio/js-bindings/fe1d40a5b8cae157af85fa84ca482fb6b0ddf1e0/lib/vscode-languageserver-protocol/_gen/protocol_moniker.mli
ocaml
import { ProtocolRequestType } from './messages';
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib unknown identifiers : - PartialResultParams - ProtocolRequestType < T1 , T2 , T3 , T4 , T5 > - TextDocumentPositionParams - TextDocumentRegistrationOptions - WorkDoneProgressOptions ...
c0a80b92245d78eb6fbeb2c47619a61af0aceb81d8519309ed4b07fdd0b41824
heraldry/heraldicon
scope.cljs
(ns heraldicon.render.scope (:require [heraldicon.options :as options])) (def choices [[:string.render-options.scope-choice/achievement :achievement] [:string.render-options.scope-choice/coat-of-arms-and-helm :coat-of-arms-and-helm] [:string.render-options.scope-choice/coat-of-arms :coat-of-arms]]) (def ...
null
https://raw.githubusercontent.com/heraldry/heraldicon/19c9d10485bbc48e98ddee30092a246cccc986d2/src/heraldicon/render/scope.cljs
clojure
(ns heraldicon.render.scope (:require [heraldicon.options :as options])) (def choices [[:string.render-options.scope-choice/achievement :achievement] [:string.render-options.scope-choice/coat-of-arms-and-helm :coat-of-arms-and-helm] [:string.render-options.scope-choice/coat-of-arms :coat-of-arms]]) (def ...
6f4d7f4d7985a0bd1cee5cca271e278111a8e39ede23f84955eb18c5cdbbaebb
subtitle-master/subtitlemaster
core.cljs
(ns smgui.core (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [smgui.settings :as settings] [smgui.track :as track] [smgui.engine :as engine] [cljs.core.async :refer [chan <! put!]])) (defn- listen-channel [channel callback] (go-loop [data (<! channel...
null
https://raw.githubusercontent.com/subtitle-master/subtitlemaster/d88c2fb007c6c3d4030fefbd4b7e3eafb0e797a9/src/cljs/smgui/core.cljs
clojure
the atom that represents the app save options when it changes channel for app response flux
(ns smgui.core (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [smgui.settings :as settings] [smgui.track :as track] [smgui.engine :as engine] [cljs.core.async :refer [chan <! put!]])) (defn- listen-channel [channel callback] (go-loop [data (<! channel...
caee8698478d83a810be8e6824e68fe25da8adce243b15abf9ed4fb4677bf97d
ocaml-multicore/tezos
contract_delegate_storage.mli
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2021 Nomadic Labs , < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_012_Psithaca/lib_protocol/contract_delegate_storage.mli
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2021 Nomadic Labs , < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS OR LIABILITY , WHETHER IN A...
44be35ce053d8af2b1a8dd1015539a4f86e0912569ffa25cf3484070d90c698e
glguy/advent
AsmProg.hs
# Language TemplateHaskell , LambdaCase # module AsmProg where import Advent.ReadS ( P(..) ) import Control.Applicative ( Alternative(empty, (<|>)) ) import Control.Lens ( LensLike', use, makeLenses ) import Control.Monad.State ( MonadState ) data Registers = Registers { _regA, _regB, _regC, _regD :: !Int } derivin...
null
https://raw.githubusercontent.com/glguy/advent/a67c7dddf71c07001271f76401b65992d3f75d03/asmprog/AsmProg.hs
haskell
# Language TemplateHaskell , LambdaCase # module AsmProg where import Advent.ReadS ( P(..) ) import Control.Applicative ( Alternative(empty, (<|>)) ) import Control.Lens ( LensLike', use, makeLenses ) import Control.Monad.State ( MonadState ) data Registers = Registers { _regA, _regB, _regC, _regD :: !Int } derivin...
5808faa366545e64d84457865780d5658a166cfc1e47c3c21349971545747697
atgreen/red-light-green-light
matcher.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : RLGL - SERVER ; Base : 10 -*- ;;; Copyright ( C ) 2018 , 2019 , 2020 < > ;;; ;;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the...
null
https://raw.githubusercontent.com/atgreen/red-light-green-light/cf5e2741243e5842d909d806597b640851a75776/matcher.lisp
lisp
Syntax : COMMON - LISP ; Package : RLGL - SERVER ; Base : 10 -*- This program is free software: you can redistribute it and/or This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A ...
Copyright ( C ) 2018 , 2019 , 2020 < > modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Affero General Public (in-packa...
840b996f5308c0e4ea2479fad1227e29e02721ac62932207210787490f433bdd
mirage/irmin
generate.ml
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
null
https://raw.githubusercontent.com/mirage/irmin/abeee121a6db7b085b3c68af50ef24a8d8f9ed05/test/irmin-tezos/generate.ml
ocaml
* Copyright ( c ) 2018 - 2022 Tarides < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS...
7e1ecbe77dd7c24f9efbc11115ba13c3fc26d15f9178ac936e93f73352022c9f
hbr/fmlib
btree.mli
(** Sets and maps based on B trees. *) (** A finite set implemented by a B tree. *) module Set (Key: Interfaces.SORTABLE): sig (** {1 Set API} *) include Interfaces.SET with type item = Key.t (** {1 Stream of elements} *) module Source: sig type set = t (** {1 Standard API} *) ...
null
https://raw.githubusercontent.com/hbr/fmlib/92ac0e65db09375fad79029072e0c45e80d2586f/src/std/btree.mli
ocaml
* Sets and maps based on B trees. * A finite set implemented by a B tree. * {1 Set API} * {1 Stream of elements} * {1 Standard API} * {1 Create a stream} * A finite map implemented by a B tree. * {1 Map API} * {1 Stream of key value pairs} * All key value pairs of a finite map can be considered as a sorted lis...
module Set (Key: Interfaces.SORTABLE): sig include Interfaces.SET with type item = Key.t module Source: sig type set = t include Interfaces.SOURCE with type item = Key.t val make: set -> t end end module Map (Key: Interfaces.SORTABLE): sig include Interfaces.MAP ...
a85f431737c46f653d3be9960a90cef1f51b9035ed87d04cc9ced589157fd858
jdreaver/eventful
Projection.hs
# LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # module Bank.Models.Customer.Projection ( Customer (..) , CustomerEvent (..) , customerProjection ) where import Data.Aeson.TH import SumTypes.TH import Eventful import Bank.Models.Customer.Events import Bank.Json data Customer = Customer { cu...
null
https://raw.githubusercontent.com/jdreaver/eventful/3f0c604e5bb2dcf5bacf0a2e01edf6a5e9c5e22e/examples/bank/src/Bank/Models/Customer/Projection.hs
haskell
# LANGUAGE StandaloneDeriving # # LANGUAGE TemplateHaskell # module Bank.Models.Customer.Projection ( Customer (..) , CustomerEvent (..) , customerProjection ) where import Data.Aeson.TH import SumTypes.TH import Eventful import Bank.Models.Customer.Events import Bank.Json data Customer = Customer { cu...
1ae883a0515cdffabaca41cea9a9fadd4ff0750d6522058fca158bffc5158f29
ghc/nofib
Min_degree.hs
New implementation of minimum degree ordering ( more efficient ) . Algorithm from Duff86 . XZ , 19/2/92 New implementation of minimum degree ordering (more efficient). Algorithm from Duff86. XZ, 19/2/92 -} module Min_degree (min_degree) where import Defs import S_Array -- not needed w/ proper modu...
null
https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/real/fluid/Min_degree.hs
haskell
not needed w/ proper module handling ditto minimum degree ordering the entry lists in old_rows must be in assending order initial row degree counts find rows with minimum degrees (recursive) updated result processed rows updated row counts counts of remaining rows (List of) cliques with the processed column ...
New implementation of minimum degree ordering ( more efficient ) . Algorithm from Duff86 . XZ , 19/2/92 New implementation of minimum degree ordering (more efficient). Algorithm from Duff86. XZ, 19/2/92 -} module Min_degree (min_degree) where import Defs 1.3 min_degree :: (My_Array Int [Int]) -> ...
cce035d92ce1bdcde34257d63259b378da67809a47a72fcd3d03b0c362baa6ec
sylane/erod
erodws_proto_generic_error.erl
%%% ========================================================================== Copyright ( c ) 2014 < > %%% This file is part of erodws . %%% Erodws 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 , e...
null
https://raw.githubusercontent.com/sylane/erod/b0c435f8546ea38b1501d3e22614fe7951c61c9a/apps/erodws/src/erodws_proto_generic_error.erl
erlang
========================================================================== (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General...
Copyright ( c ) 2014 < > This file is part of erodws . Erodws is free software : you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU Genera...
af54805056c6651c07c317ceb0c9869584732ba0abebccc28cb1cee16183e3bf
ngerakines/etap
etap_t_004.erl
-module(etap_t_004). -export([start/0, start_loop/1]). start() -> etap:plan(6), etap_application:load_ok(inets, "Application inets-5.0.13 loads"), etap_application:start_ok(inets, "Application inets-5.0.13 starts"), etap:skip(fun() -> etap_application:ensure_loaded(inets, "5.1", "Application in...
null
https://raw.githubusercontent.com/ngerakines/etap/3d46faf192a4e1436a058c9cfd7830deac72424b/t/etap_t_004.erl
erlang
-module(etap_t_004). -export([start/0, start_loop/1]). start() -> etap:plan(6), etap_application:load_ok(inets, "Application inets-5.0.13 loads"), etap_application:start_ok(inets, "Application inets-5.0.13 starts"), etap:skip(fun() -> etap_application:ensure_loaded(inets, "5.1", "Application in...
3f51eb77f0559f952a17705f72a59e77e13b596e7ccb959c957c85c29b443c40
rumuki/rumuki-server
Subscribers.hs
module Handler.Subscribers where import Data.Time.Clock import Import import Text.Email.Validate (canonicalizeEmail) postSubscribersR :: Handler Value postSubscribersR = do now <- liftIO getCurrentTime subscriber' <- requireJsonEntity [] Nothing :: Handler Subscriber email' <- from...
null
https://raw.githubusercontent.com/rumuki/rumuki-server/59798656e9eb440a2344223850dbd1f9f77060ca/src/Handler/Subscribers.hs
haskell
module Handler.Subscribers where import Data.Time.Clock import Import import Text.Email.Validate (canonicalizeEmail) postSubscribersR :: Handler Value postSubscribersR = do now <- liftIO getCurrentTime subscriber' <- requireJsonEntity [] Nothing :: Handler Subscriber email' <- from...
5acf8fc3f36177a7f4e6c7bec63d6b717e4339ed35f5b6d38e4918f3b3f3a53c
blindglobe/clocc
defconf-test-1.lisp
;;; -*- Mode: CLtL -*- (use-package "CL.EXT.CONFIGURATION") (cl.ext.configuration:defconfiguration "CLAW" () (:library-location "/users/marcoxa/lang/cl/CLAW/" :os-type :unix) (:library-location "d:\\users\\marcoxa\\lang\\cl\\claw\\" :os-type :windows) ;; (:source-location) (:logical-pathname-hos...
null
https://raw.githubusercontent.com/blindglobe/clocc/a50bb75edb01039b282cf320e4505122a59c59a7/src/port/configuration/tests/defconf-test-1.lisp
lisp
-*- Mode: CLtL -*- (:source-location) end of file -- defconf-test.lisp --
(use-package "CL.EXT.CONFIGURATION") (cl.ext.configuration:defconfiguration "CLAW" () (:library-location "/users/marcoxa/lang/cl/CLAW/" :os-type :unix) (:library-location "d:\\users\\marcoxa\\lang\\cl\\claw\\" :os-type :windows) (:logical-pathname-host "CLAW") (:required-package "cl.ext.properti...
5f3447e06b3fc80e22815a137a589e81479ea7daa1b8201150d2910eaa51242d
kostmo/circleci-failure-tracker
DbPreparation.hs
{-# LANGUAGE OverloadedStrings #-} module DbPreparation where import Control.Monad (when) import Control.Monad.Trans.Reader (runReaderT) import Data.Foldable (for_) import Database.PostgreSQL.Simple import qualified DbHelpers import qualified Patterns...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/DbPreparation.hs
haskell
# LANGUAGE OverloadedStrings # | We do not wipe the "builds" or "build_steps" tables because visiting each build is expensive. | Not currently used table_truncation_commands = allTableTruncations
module DbPreparation where import Control.Monad (when) import Control.Monad.Trans.Reader (runReaderT) import Data.Foldable (for_) import Database.PostgreSQL.Simple import qualified DbHelpers import qualified PatternsFetch buildDataTruncations :: [Qu...
fa44782d9dae6c7c41c6155804a6100b919ab5424cdcda2d43fdc855d73c02e7
progman1/genprintlib
unix_tools.ml
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/unix_tools.ml
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt OCaml port by and Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the open Misc open Unix let convert_address address = tr...
be4c57f10c84bcb9ade8b64cec569f23deadeafdcb5690ee4b845ece26a42f61
pilosus/pip-license-checker
license_test.clj
Copyright © 2020 - 2023 ;; ;; This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at ;; -2.0. ;; This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set fort...
null
https://raw.githubusercontent.com/pilosus/pip-license-checker/48bb57a59124333b0d28a6432ef9359c9ef07ee1/test/pip_license_checker/license_test.clj
clojure
This program and the accompanying materials are made available under the -2.0. Public License, v. 2.0 are satisfied: GNU General Public License as published by license/is-type-valid? license/strings->pattern license/license-with-type
Copyright © 2020 - 2023 terms of the Eclipse Public License 2.0 which is available at This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse the Free Software Foundation , either version 2 of the License , or ( at...
b01a5d81da25469ae85e17491a235d63d6d7c06326385b214c0a05a9a7a8a682
fission-codes/fission
WebSocket.hs
# OPTIONS_GHC -fno - warn - orphans # module Fission.Web.API.Internal.Orphanage.WebSocket () where import Data.Swagger import Servant.API.WebSocket import Servant.Ekg import Servant.Swagger import Fission.Prelude instance HasSwagger WebSocket where toSwagger _ = ...
null
https://raw.githubusercontent.com/fission-codes/fission/7e69c0da210a77412c96631f5ff7ef1b38240d37/fission-web-api/library/Fission/Web/API/Internal/Orphanage/WebSocket.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # module Fission.Web.API.Internal.Orphanage.WebSocket () where import Data.Swagger import Servant.API.WebSocket import Servant.Ekg import Servant.Swagger import Fission.Prelude instance HasSwagger WebSocket where toSwagger _ = ...
ca5f589f28008e710526374d84cda6f4189623077621867cb053eb48b3a7068b
eashanhatti/peridot
Core.hs
module Syntax.Core ( module Syntax.Core , module Syntax.Common ) where import Syntax.Common hiding(unId, Declaration) import Syntax.Common qualified as Cm import Data.Map import Data.Sequence import Numeric.Natural type Type = Term data Term -- Object level = ObjFunType PassMethod Term Term | ObjFunIntro Term ...
null
https://raw.githubusercontent.com/eashanhatti/peridot/0dc1e6996bb77d6901da9ed13caa962cc6651a24/src/Syntax/Core.hs
haskell
Object level Other univ, name, ty, cont name, def, cont
module Syntax.Core ( module Syntax.Core , module Syntax.Common ) where import Syntax.Common hiding(unId, Declaration) import Syntax.Common qualified as Cm import Data.Map import Data.Sequence import Numeric.Natural type Type = Term data Term = ObjFunType PassMethod Term Term | ObjFunIntro Term | ObjFunElim Pas...
a10e418131b07cee0f5e67d3ab9303ffd1c3f7d0214a1e6c31774ffc85d3444b
kloimhardt/werkbank
hamilton.clj
; Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology ; ; This 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 ; ei...
null
https://raw.githubusercontent.com/kloimhardt/werkbank/df66274eb978d060a043b8429b29d0f36c4a2e89/src/sicmutils/mechanics/hamilton.clj
clojure
This is free software; you can redistribute it and/or modify either version 3 of the License , or ( at your option) any later version. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR...
Copyright © 2017 . This work is based on the Scmutils system of MIT / GNU Scheme : Copyright © 2002 Massachusetts Institute of Technology it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License (ns sicmutils.mechanics.hamilton ...
f915c1e0bdd5ca10d9c2f0bea7aa1fdc0d19df987137926c801ee3e87450c862
JeffreyBenjaminBrown/hode
Sort.hs
-- | PITFALL: This algorithm makes sense only on a -- graph-like subset of an Rslt -- one in which: ( 1 ) all " edges " are binary ` Rel`s ( 2 ) edges never involve another edge ( 3 ) the " edge label " ( ` Tplt ` ) ` e ` to sort by plays no ` Role ` but ` ` ( 4 ) none of the ` Expr`s the user ...
null
https://raw.githubusercontent.com/JeffreyBenjaminBrown/hode/79a54a6796fa01570cde6903b398675c42954e62/hode/Hode/Rslt/Sort.hs
haskell
| PITFALL: This algorithm makes sense only on a graph-like subset of an Rslt -- one in which: is a `Rel` with `e` as its `Tplt` PITFALL: Some of these functions were written to handle multiple `Tplt`s, but then I lost interest. # LANGUAGE ScopedTypeVariables, TupleSections # -> Either String [Addr] | = In...
( 1 ) all " edges " are binary ` Rel`s ( 2 ) edges never involve another edge ( 3 ) the " edge label " ( ` Tplt ` ) ` e ` to sort by plays no ` Role ` but ` ` ( 4 ) none of the ` Expr`s the user wants to sort module Hode.Rslt.Sort ( Kahn(..) ^ Rslt - > ( BinOrientation , TpltAddr ) - ...
a2ad4338f7f4c02b857972e22a095052845a3e5daeefca96a97c323b2c06cc6a
static-analysis-engineering/codehawk
tCHReducer.ml
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/a6cbbdc2da7f171e0879fb94fe707bb00c9293c6/CodeHawk/CHT/tchlib/tCHReducer.ml
ocaml
tchlib Predefined reducers
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Unit Testing Framework Author : Adapted from : ( ) ------------------------------------------------------------------------------ ...
fc8dfcc8394c1f2dceca8f1e070b8886ffa160acec1cd878b2e5f3609902872e
lotz84/bitcoin-spv-wallet
VarInt.hs
# LANGUAGE GeneralizedNewtypeDeriving # module Bitcoin.Protocol.VarInt where import Data.Word (Word8, Word16, Word32, Word64) import Data.Binary (Binary(..)) import Data.Binary.Put (putWord8, putWord16le, putWord32le, putWord64le) import Data.Binary.Get (getWord8, getWord16le, getWord32le, getWord64le) newtype VarI...
null
https://raw.githubusercontent.com/lotz84/bitcoin-spv-wallet/3e52d76b201a3f46d825be0a612d51f70dfda131/src/Bitcoin/Protocol/VarInt.hs
haskell
# LANGUAGE GeneralizedNewtypeDeriving # module Bitcoin.Protocol.VarInt where import Data.Word (Word8, Word16, Word32, Word64) import Data.Binary (Binary(..)) import Data.Binary.Put (putWord8, putWord16le, putWord32le, putWord64le) import Data.Binary.Get (getWord8, getWord16le, getWord32le, getWord64le) newtype VarI...
0e2e16f0f8eda5bf4950f00de18b3d1ebe897a3bd3202677903dd5b5cdba2c02
racket/racket7
parameter.rkt
#lang racket/base (provide current-force-delete-permissions) (define current-force-delete-permissions (make-parameter #t (lambda (v) (and v #t))))
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/io/file/parameter.rkt
racket
#lang racket/base (provide current-force-delete-permissions) (define current-force-delete-permissions (make-parameter #t (lambda (v) (and v #t))))
331bda6240e3ac8960b4d751560b01ea6c1d8043ea889eaaa944ba28f78c9b46
gigasquid/libpython-clj-examples
model_selection.clj
(ns gigasquid.sk-learn.model-selection (:require [libpython-clj.require :refer [require-python]] [libpython-clj.python :as py :refer [py. py.. py.-]] [gigasquid.plot :as plot])) ;;; from -learn.org/stable/tutorial/statistical_inference/model_selection.html (require-python '[sklearn.datasets ...
null
https://raw.githubusercontent.com/gigasquid/libpython-clj-examples/f151c00415c82a144a13959ff7b56f58704ac6f2/src/gigasquid/sk_learn/model_selection.clj
clojure
from -learn.org/stable/tutorial/statistical_inference/model_selection.html We can split into folds we can use for training and testing Note here we are doing it a clojure way - but we can use the split method with indexes later on Cross Validation generators They expose a split method which accepts the input data...
(ns gigasquid.sk-learn.model-selection (:require [libpython-clj.require :refer [require-python]] [libpython-clj.python :as py :refer [py. py.. py.-]] [gigasquid.plot :as plot])) (require-python '[sklearn.datasets :as datasets]) (require-python '[sklearn.model_selection :as model-selection]) ...
54df5d8d6ec7802a57ca9f666323baea91c1cf6974527062a2cfe0f36728ff19
haskell/haskell-ide-engine
RunTest.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # {-# LANGUAGE OverloadedStrings #-} module RunTest ( findAllSourceFiles , compileTarget , runServer , prettyPrintDiags ) where import GhcMonad import qualified GHC import Control.Monad import qualified Control.Concurrent.STM as ...
null
https://raw.githubusercontent.com/haskell/haskell-ide-engine/d84b84322ccac81bf4963983d55cc4e6e98ad418/app/RunTest.hs
haskell
# LANGUAGE OverloadedStrings # --------------------------------------------------------------------- --------------------------------------------------------------------- --------------------------------------------------------------------- ---------------------------------------------------------------------
# LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # module RunTest ( findAllSourceFiles , compileTarget , runServer , prettyPrintDiags ) where import GhcMonad import qualified GHC import Control.Monad import qualified Control.Concurrent.STM as STM import Data.List ...
7b423d1104c0a158b17aa9811c434b322ead9cd6d401ad4fab1697dfa4ae432f
nandor/llir-ocaml
pr6985_ok.ml
(* TEST flags = " -w a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output *) module Foo (Bar : sig type a = private [> `A ] end) (Baz : module type of struct include Bar end) = struct end module Bazoinks = struct type a = [ `A ] end module Bug = Foo(Bazoinks)(Bazoinks)
null
https://raw.githubusercontent.com/nandor/llir-ocaml/9c019f15c444e30c825b1673cbe827e0497868fe/testsuite/tests/typing-modules-bugs/pr6985_ok.ml
ocaml
TEST flags = " -w a " * setup-ocamlc.byte-build-env ** ocamlc.byte *** check-ocamlc.byte-output
module Foo (Bar : sig type a = private [> `A ] end) (Baz : module type of struct include Bar end) = struct end module Bazoinks = struct type a = [ `A ] end module Bug = Foo(Bazoinks)(Bazoinks)
91269ab68172c109c31b9e549c0a0b727a64b8ac269be7694c378b06ae83d38a
bodqhrohro/taporwave
taporwave.hs
module Main (main) where import System.Random import System.Posix.Unistd import System.IO import Options.Applicative import Data.Semigroup ((<>)) main :: IO() -- arguments minBoundParser :: Parser String minBoundParser = strOption ( long "minBound" <> metavar "MIN_BOUND" <> value "0.8" <> help "Lowest ...
null
https://raw.githubusercontent.com/bodqhrohro/taporwave/4fd7bb5374c4dcf24dace85e15efa48bb9fd3836/taporwave.hs
haskell
arguments functions
module Main (main) where import System.Random import System.Posix.Unistd import System.IO import Options.Applicative import Data.Semigroup ((<>)) main :: IO() minBoundParser :: Parser String minBoundParser = strOption ( long "minBound" <> metavar "MIN_BOUND" <> value "0.8" <> help "Lowest value speed c...
ad8e44c368fe61eb2a7f8a88b635dcc84ca24a07549ce5ba999e508c0a88a0c9
zadean/xqerl
fn_trace_SUITE.erl
-module('fn_trace_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-trace-1'/1]). -export(['fn-trace-2'/1]). -export(['fn-trace-3'/1]). -export(['fn-t...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_trace_SUITE.erl
erlang
-module('fn_trace_SUITE'). -include_lib("common_test/include/ct.hrl"). -export([ all/0, groups/0, suite/0 ]). -export([ init_per_suite/1, init_per_group/2, end_per_group/2, end_per_suite/1 ]). -export(['fn-trace-1'/1]). -export(['fn-trace-2'/1]). -export(['fn-trace-3'/1]). -export(['fn-t...
54fe8a15b86aaaed4b335154cdcb8d0549efd39302fb2a4ddc4719e74362a81c
utahstreetlabs/risingtide
remove_spout.clj
(ns risingtide.storm.remove-spout (:require [risingtide [config :as config] [redis :as redis] [resque :refer [args-from-resque pop-from-resque]]] [backtype.storm [clojure :refer [defspout spout emit-spout!]]] [clojure.data.json :as json] [clojure.tools.logging :as log] [metrics.meters :refe...
null
https://raw.githubusercontent.com/utahstreetlabs/risingtide/bc5b798396679739469b1bd8ee1b03db76178cde/src/risingtide/storm/remove_spout.clj
clojure
(ns risingtide.storm.remove-spout (:require [risingtide [config :as config] [redis :as redis] [resque :refer [args-from-resque pop-from-resque]]] [backtype.storm [clojure :refer [defspout spout emit-spout!]]] [clojure.data.json :as json] [clojure.tools.logging :as log] [metrics.meters :refe...
130d86314780a90ae48bfbbcd8e0a241752ec98eb3c16bbe2b5969f91bc53450
mzp/coq-for-ipad
debugger_config.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet Cr...
null
https://raw.githubusercontent.com/mzp/coq-for-ipad/4fb3711723e2581a170ffd734e936f210086396e/src/ocaml-3.12.0/debugger/debugger_config.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Objective Caml port by and Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . ...
d000bacd8feda16e3a755ad1aa360778af0e16c9a2f47d89000a18fdd511a845
AJChapman/servant-polysemy
ServerWithSwagger.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Main (main) where import Control.Lens.Operators import Data.Swagger (Swagger, description, host, info, license, title, version) import Data.T...
null
https://raw.githubusercontent.com/AJChapman/servant-polysemy/0f8805da7fcc34cf41b5c45d6d9ecdbbd9fb5780/example/ServerWithSwagger.hs
haskell
# LANGUAGE OverloadedStrings # This is the same server as in Server.hs, but is self-documenting. The same API type as in Server.hs. / -> /api/v1/swagger-ui /api -> /api/v1/swagger-ui The redirects are just to help people find the documentation. Redirect /api/v1 to the swagger docs Redirect /api to ...
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # # LANGUAGE TypeOperators # module Main (main) where import Control.Lens.Operators import Data.Swagger (Swagger, description, host, info, license, title, version) import Data.Text (Text) import qualified Data.Te...
a40fbafaa36faba9f0d6dbea6404a29cf286e1181748d25824d6345728d1baa6
alphaHeavy/llvm-general-typed
BasicBlock.hs
# LANGUAGE DeriveFunctor # {-# LANGUAGE GADTs #-} # LANGUAGE GeneralizedNewtypeDeriving # module LLVM.General.Typed.BasicBlock where import Control.Monad.Fix import Control.Monad.RWS.Lazy import Data.Maybe (fromJust) import qualified LLVM.General.AST as AST import LLVM.General.Typed.FunctionDefinition newtype Basic...
null
https://raw.githubusercontent.com/alphaHeavy/llvm-general-typed/75c39111f7fc685aacb3eaf1b2948451e7222e0b/llvm-general-typed-pure/src/LLVM/General/Typed/BasicBlock.hs
haskell
# LANGUAGE GADTs # | Enable defining a new 'Function' by lifting the definition to the parent 'Module'. ^ A function wrapped in an existential | Set the terminating instruction for this 'BasicBlock'. | A named label with a specific return type within a 'BasicBlock'. | A named label within a 'BasicBlock'.
# LANGUAGE DeriveFunctor # # LANGUAGE GeneralizedNewtypeDeriving # module LLVM.General.Typed.BasicBlock where import Control.Monad.Fix import Control.Monad.RWS.Lazy import Data.Maybe (fromJust) import qualified LLVM.General.AST as AST import LLVM.General.Typed.FunctionDefinition newtype BasicBlock a = BasicBlock{un...
ff12b70c4fb31b75ba9c7c765a4002065ffac9f5838787b8859f36da0d5fe60e
orthecreedence/wookie
cookie.lisp
(defpackage :wookie-plugin-core-cookie (:use :cl :wookie-util :wookie)) (in-package :wookie-plugin-core-cookie) (defparameter *scanner-cookie-split* (cl-ppcre:create-scanner ";[ \\s\\t]+") "Scanner for splitting up cookies.") (defun parse-cookie-vars (request) "Grab Cookie data from parsed URI querystring and...
null
https://raw.githubusercontent.com/orthecreedence/wookie/c18e4f994b307c648cce0a82d0ea78c2581c46df/core-plugins/cookie/cookie.lisp
lisp
(defpackage :wookie-plugin-core-cookie (:use :cl :wookie-util :wookie)) (in-package :wookie-plugin-core-cookie) (defparameter *scanner-cookie-split* (cl-ppcre:create-scanner ";[ \\s\\t]+") "Scanner for splitting up cookies.") (defun parse-cookie-vars (request) "Grab Cookie data from parsed URI querystring and...
1f271036e97b88258482303ac185b5e955914d1abd0c910bee38dfa768c1a424
nextjournal/viewers
deps.cljs
{:npm-deps {"d3-require" "^1.2.4" "framer-motion" "^6.2.8" "emoji-regex" "^10.0.0" "react-dom" "^17.0.2"}}
null
https://raw.githubusercontent.com/nextjournal/viewers/f4a32b05ff4382a85a3dcf66cdec89c2389ac3c8/modules/ui/src/deps.cljs
clojure
{:npm-deps {"d3-require" "^1.2.4" "framer-motion" "^6.2.8" "emoji-regex" "^10.0.0" "react-dom" "^17.0.2"}}
bca124de3a3392d9a218afe01a57258f5a385907a2aed558346e16d94dbbe76c
rowangithub/DOrder
13.ml
* Based on " Property - Directed Incremental Invariant Generation " by Bradley et al . * Based on "Property-Directed Incremental Invariant Generation" by Bradley et al. *) let rec loop flag j k = if (Random.bool ()) then if (flag > 0) then loop flag (j+4) k else loop flag (j+2) (k+1) else j, k ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/hola/13.ml
ocaml
* Based on " Property - Directed Incremental Invariant Generation " by Bradley et al . * Based on "Property-Directed Incremental Invariant Generation" by Bradley et al. *) let rec loop flag j k = if (Random.bool ()) then if (flag > 0) then loop flag (j+4) k else loop flag (j+2) (k+1) else j, k ...
cb0b9fc595c7559897e10895606aaf3017d2fdacc0d24ef781f69112f7bd77a9
awslabs/s2n-bignum
bignum_mul_6_12.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_mul_6_12.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/fastmul/bignum_mul_6_12.o";; *** arm_ADDS X12 X12 X10 arm_ADDS X15 X12 X20 arm_ADC X19 X14 XZR arm_ADDS X16 X16 X20 arm_ADCS X...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) 6x6 - > 12 multiply ( pure and then ADK for the 3x3 bits ) . ...
af14a6ecf15a323d1d7b67ee8ddc641ed9405bd8fdad691e20fea659d7364575
AccelerateHS/accelerate
Representation.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE BangPatterns #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGU...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate/63e53be22aef32cd0b3b6f108e637716a92b72dc/icebox/Representation.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeOperators # # OPTIONS_HADDOCK hide # | Module : Data.Array.Accelerate.Array.Representation License : BSD3 Stability : experimental * Array data type in terms of representation types ...
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE FlexibleInstances # # LANGUAGE GADTs # # LANGUAGE MagicHash # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE TypeFamilies # Copyright :...
e8aa84f045647fedb9fb01909e3e8466378f35212274eb0657709df4cc821d36
barko/brr-eg
calc.ml
module Http = struct open Js_of_ocaml (* request are in the payload of body of a HTTP POST; replies are in the body of a POST's response *) let do_post ~url ~request send = let req = XmlHttpRequest.create() in req##_open (Js.string "post") (Js.string url) Js._true; let callback _ = match ...
null
https://raw.githubusercontent.com/barko/brr-eg/912ac110fd8ef139e163a086bf3e25e0ccc35740/calc/front/calc.ml
ocaml
request are in the payload of body of a HTTP POST; replies are in the body of a POST's response
module Http = struct open Js_of_ocaml let do_post ~url ~request send = let req = XmlHttpRequest.create() in req##_open (Js.string "post") (Js.string url) Js._true; let callback _ = match req##.readyState with | XmlHttpRequest.DONE -> ( match Js.Opt.to_option req##.responseText with...
d8d8b193565d86a6c92cbc58f758a14c3591c837c29cea64cbe03c60db416c5e
luqui/experiments
rfmap.hs
# LANGUAGE MultiParamTypeClasses , TypeFamilies , FlexibleInstances , UndecidableInstances , FunctionalDependencies # import Prelude hiding (id, (.)) import Control.Category import Data.Functor.Identity import Data.Functor.Compose data Iso a b = Iso (a -> b) (b -> a) instance Category Iso where id = Iso id id ...
null
https://raw.githubusercontent.com/luqui/experiments/c0b9153c41507afbfdeb2b32bfc65fd1ac83fb26/rfmap.hs
haskell
`Functorize a f g` means that `a` appearing in the context of `f` is equivalent `g a` where `g` is a known `Functor` instance. For example: holds. And so on for every type... Note that no (Maybe a) (Maybe a) instance is possible. Which means you cannot e.g. And so on for every functor... These type annotation...
# LANGUAGE MultiParamTypeClasses , TypeFamilies , FlexibleInstances , UndecidableInstances , FunctionalDependencies # import Prelude hiding (id, (.)) import Control.Category import Data.Functor.Identity import Data.Functor.Compose data Iso a b = Iso (a -> b) (b -> a) instance Category Iso where id = Iso id id ...
78dc62f726572b3b01093ef23a9fbb6b86ee0389eb82aa95f30f3113bd77c2bc
OCamlPro/alt-ergo
signals_profiling.ml
(******************************************************************************) (* *) (* The Alt-Ergo theorem prover *) Copyright ( C ) 2006 - 2013 ...
null
https://raw.githubusercontent.com/OCamlPro/alt-ergo/5a0870f613ebb128f41fc4f61d7a10054fe14c76/src/bin/common/signals_profiling.ml
ocaml
**************************************************************************** The Alt-Ergo theorem prover ...
Copyright ( C ) 2006 - 2013 ...
6ad9b1318871ea93ba6554ca02e36c7c065329a5ea4241814ccf3acf82f9b9c5
BinaryAnalysisPlatform/bap-plugins
spec.mli
open Core_kernel open Bap.Std open Regular.Std open Spec_types module Constr : sig include module type of Constr with type t = Constr.t include Regular.S with type t := t end * variable sort : : = reg | ptr variables of type reg represent values stored in registers . variables of type ptr represent ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap-plugins/2e9aa5c7c24ef494d0e7db1b43c5ceedcb4196a8/saluki/spec.mli
ocaml
* {2 Keywords} * {2 Constraints} * {3 Calls} * {3 Jumps}
open Core_kernel open Bap.Std open Regular.Std open Spec_types module Constr : sig include module type of Constr with type t = Constr.t include Regular.S with type t := t end * variable sort : : = reg | ptr variables of type reg represent values stored in registers . variables of type ptr represent ...
2717f36bdc041ec24261e3d37aecc96fd614dafdb4d5282163216dd5eb317f1c
racket/racket7
io-impl.rkt
#lang racket/base (require racket/include racket/unsafe/ops racket/flonum racket/fixnum '#%foreign (only-in '#%kernel open-input-file) (only-in '#%paramz parameterization-key extend-parameterization break-enabled...
null
https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/cs/demo/io-impl.rkt
racket
#lang racket/base (require racket/include racket/unsafe/ops racket/flonum racket/fixnum '#%foreign (only-in '#%kernel open-input-file) (only-in '#%paramz parameterization-key extend-parameterization break-enabled...
635bf75f38ac85f145e7261e3fbd4b720c855aca5370559f846eaf63a576c18d
elli-lib/elli
elli_tcp.erl
%%% @doc Wrapper for plain and SSL sockets. %%% Based on `mochiweb_socket.erl'. -module(elli_tcp). -export([listen/3, accept/3, recv/3, send/2, close/1, setopts/2, sendfile/5, peername/1]). -export_type([socket/0]). -type socket() :: {plain, inet:socket()} | {ssl, ssl:sslsocket()}. listen(plain, Port, Opts...
null
https://raw.githubusercontent.com/elli-lib/elli/2f2fafb77c67244ba6237ca6b3c7238ff886c478/src/elli_tcp.erl
erlang
@doc Wrapper for plain and SSL sockets. Based on `mochiweb_socket.erl'.
-module(elli_tcp). -export([listen/3, accept/3, recv/3, send/2, close/1, setopts/2, sendfile/5, peername/1]). -export_type([socket/0]). -type socket() :: {plain, inet:socket()} | {ssl, ssl:sslsocket()}. listen(plain, Port, Opts) -> case gen_tcp:listen(Port, Opts) of {ok, Socket} -> ...
94f95af35771a2356ec7687c6728b9333f39da642ca3d662a67d9050dc685377
swarmpit/swarmpit
form_networks.cljs
(ns swarmpit.component.service.form-networks (:require [material.components :as comp] [swarmpit.component.state :as state] [swarmpit.ajax :as ajax] [swarmpit.routes :as routes] [sablono.core :refer-macros [html]] [rum.core :as rum])) (enable-console-print!)...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/service/form_networks.cljs
clojure
(ns swarmpit.component.service.form-networks (:require [material.components :as comp] [swarmpit.component.state :as state] [swarmpit.ajax :as ajax] [swarmpit.routes :as routes] [sablono.core :refer-macros [html]] [rum.core :as rum])) (enable-console-print!)...
33685778325e6c598bcad2ae40fe1b44731d76a8935b1d53fa4eaeb7bc5ff141
fuchsto/drool
Objects.hs
----------------------------------------------------------------------------- -- -- Module : Drool.UI.GLWindow -- Copyright : -- License : AllRightsReserved -- -- Maintainer : -- Stability : -- Portability : -- -- | -- ----------------------------------------------------------------------------- {-# OP...
null
https://raw.githubusercontent.com/fuchsto/drool/d9318c641a6a94a8450b5118db7b3213a93209ea/src/Drool/Utils/Objects.hs
haskell
--------------------------------------------------------------------------- Module : Drool.UI.GLWindow Copyright : License : AllRightsReserved Maintainer : Stability : Portability : | --------------------------------------------------------------------------- # OPTIONS -O2 -Wall #
module Drool.Utils.Objects ( renderCube, renderCubeFrame ) where import Graphics.Rendering.OpenGL as GL (GLfloat, Vertex3(..), PrimitiveMode(..), renderPrimitive, vertex ) vertify3 :: [(GLfloat,GLfloat,GLfloat)] -> IO () vertify3 verts = sequence_ $ map (\(a,b,c) -> vertex $ Vertex3 a b c) verts renderC...