_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
774fa2c220ab04cecd24517494782e703d3c19018f47d429fbecd14a12bb36db
Heasummn/Crab-ML
table.mli
open Batteries include (Map.S with type key = Symbol.t) val lookup : key -> 'a t -> 'a option val of_list : (key * 'a) list -> 'a t
null
https://raw.githubusercontent.com/Heasummn/Crab-ML/45a79373a620878b9c24464a7e009ecf3ea7f908/src/CrabEnv/table.mli
ocaml
open Batteries include (Map.S with type key = Symbol.t) val lookup : key -> 'a t -> 'a option val of_list : (key * 'a) list -> 'a t
6258a8739769b02d8e8cfa0f978e9163f082835027dd85cf3c6a5fe5fe5ec5fa
SamB/coq
declarations.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/kernel/declarations.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** i $Id$ i i i This module defines th...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * open Util open Names open ...
9264d14435172c68f79110496429006bcebf23eee5a5834aee9479ab62cbbc65
HJianBo/sserl
sserl_storage.erl
%%------------------------------------------------------------------- %% @doc sserl local storage for saving server opened port and traffic %% statistics %% %% @author JianBo He <> %% %% @end %%------------------------------------------------------------------- -module(sserl_storage). -behaviour(gen_server). ...
null
https://raw.githubusercontent.com/HJianBo/sserl/9e42930caf8bfe90ae9ed2edac2e0672f7e5e55e/apps/sserl/src/sserl_storage.erl
erlang
------------------------------------------------------------------- @doc sserl local storage for saving server opened port and traffic statistics @author JianBo He <> @end ------------------------------------------------------------------- API gen_server callbacks =======================================...
-module(sserl_storage). -behaviour(gen_server). -include("sserl.hrl"). -export([start_link/0, add_port/1, remove_port/1, all_ports/0, write_traffic/1]). -export([current_month_usage/1]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -define(SERVER, ?MODULE)....
6462fe251f97967e20910064b54f95eab0fc90800b8be50fb2e832d59856af48
funcool/yetti
request.clj
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. ;; Copyright © < > ;; Original code from ring branch:2.0 with small modifications . this is temporal approach until is released . ;;...
null
https://raw.githubusercontent.com/funcool/yetti/d666d98b1dc4af05f159ee945c9c4ce71890db26/src/yetti/request.clj
clojure
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell Software is furnished to do so, subject to the following con...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright © < > Original code from ring branch:2.0 with small modifications . this is temporal approach until is released . Copyri...
b710ebce1d5527df6c64e1cac3f21109684a6133ad6a4d60be582915872764f0
TheLortex/mirage-monorepo
test.ml
* Copyright ( C ) 2013 Anil Madhavapeddy < > * * Permission to use , copy , modify , and/or 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 "...
null
https://raw.githubusercontent.com/TheLortex/mirage-monorepo/754836818dc5c861bf3b0a78029315a065a543cc/duniverse/mirage-net-unix/test/test.ml
ocaml
("connect", `Quick, fun () -> run test_open_close);
* Copyright ( C ) 2013 Anil Madhavapeddy < > * * Permission to use , copy , modify , and/or 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 "...
96ca078fbf7fed2ddce1f8c6862020c604377829f9385cc3be9cc7623a187c0d
LambdaScientist/CLaSH-by-example
SimpleDFlop.hs
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module ClocksAndRegisters.Models.SimpleDFlop where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Text.PrettyPrint.HughesPJClass import GHC.Generics (Generic) import Control.D...
null
https://raw.githubusercontent.com/LambdaScientist/CLaSH-by-example/e783cd2f2408e67baf7f36c10398c27036a78ef3/ConvertedClashExamples/src/ClocksAndRegisters/Models/SimpleDFlop.hs
haskell
inputs
# LANGUAGE DataKinds # # LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE NoImplicitPrelude # module ClocksAndRegisters.Models.SimpleDFlop where import CLaSH.Prelude import Control.Lens hiding ((:>)) import Text.PrettyPrint.HughesPJClass import GHC.Generics (Generic) import Control.D...
ef62977b20ef3bd782c046f3fa4f90432c2f7465e5ad1328ec144de7343ee562
camlp5/camlp5
pa_extend.ml
(* camlp5r *) (* pa_extend.ml,v *) Copyright ( c ) INRIA 2007 - 2017 (* #load "pa_macro.cmo" *) (* #load "pa_extend.cmo" *) (* #load "q_MLast.cmo" *) let split_ext = ref false;; Pcaml.add_option "-split_ext" (Arg.Set split_ext) "Split EXTEND by using functions.";; type loc = Ploc.t;; type ('e, 'p) a_entry = ...
null
https://raw.githubusercontent.com/camlp5/camlp5/467c1f97c5fa8aba343a4a15ffa24ad3cd55e4aa/ocaml_src/meta/pa_extend.ml
ocaml
camlp5r pa_extend.ml,v #load "pa_macro.cmo" #load "pa_extend.cmo" #load "q_MLast.cmo"
Copyright ( c ) INRIA 2007 - 2017 let split_ext = ref false;; Pcaml.add_option "-split_ext" (Arg.Set split_ext) "Split EXTEND by using functions.";; type loc = Ploc.t;; type ('e, 'p) a_entry = { ae_loc : loc; ae_name : string * 'e; ae_pos : 'e option; ae_levels : ('e, 'p) a_level list } and ('e, ...
4f0d3905524887a915cfbd583d05157040615c612583f55dce8312938924e01f
mirage/mirage-tcpip
test_tcp_options.ml
open Common let check = Alcotest.(check @@ result (list options) string) let errors ?(check_msg = false) exp = function | Ok opt -> failf "Ok %a when Error %s expected" Tcp.Options.pps opt exp | Error p -> if check_msg then Alcotest.(check string) "Error didn't give the expected error message" exp p...
null
https://raw.githubusercontent.com/mirage/mirage-tcpip/a7d3159e6e56f80b0d4047c2d421cb54e3c6f7de/test/test_tcp_options.ml
ocaml
noops arbitrary unknown option-kind this invalidates later results, but previous ones are still valid, if any empty buffer should give empty list buffer with valid, but unknown, option should be correctly communicated TODO: more canonically unknown option-kind noop timestamp order is reversed by t...
open Common let check = Alcotest.(check @@ result (list options) string) let errors ?(check_msg = false) exp = function | Ok opt -> failf "Ok %a when Error %s expected" Tcp.Options.pps opt exp | Error p -> if check_msg then Alcotest.(check string) "Error didn't give the expected error message" exp p...
cd1979b9f8ece7123b520d906056549666db9c3bcc6f163b7bdc443f6cdb9cd0
jasonrudolph/one-rep-max
remote.cljs
(ns ^{:doc "Make network requests."} one.browser.remote (:require [goog.net.XhrManager :as manager])) (def ^:private *xhr-manager* (goog.net.XhrManager. nil nil nil 0 5000)) (defn success? [{status :status}] ...
null
https://raw.githubusercontent.com/jasonrudolph/one-rep-max/8bdc8eccd4f36cf91b0dd57b0a378efb1b24f7a3/src/lib/cljs/one/browser/remote.cljs
clojure
(ns ^{:doc "Make network requests."} one.browser.remote (:require [goog.net.XhrManager :as manager])) (def ^:private *xhr-manager* (goog.net.XhrManager. nil nil nil 0 5000)) (defn success? [{status :status}] ...
e4ee59313811cf7cc3df6eede5ef85c98de95643e96186746a453283de87e66a
exoscale/clojure-kubernetes-client
v1_api_service.clj
(ns clojure-kubernetes-client.specs.v1-api-service (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-api-service-spec :refer :all] [clojure-kubernetes-clien...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_api_service.clj
clojure
(ns clojure-kubernetes-client.specs.v1-api-service (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] [clojure-kubernetes-client.specs.v1-object-meta :refer :all] [clojure-kubernetes-client.specs.v1-api-service-spec :refer :all] [clojure-kubernetes-clien...
5a3887c2039576a4feee3dfe0eda1e77b46713432186d49fe63b933cd092a8fa
onedata/op-worker
atm_task_execution_middleware_plugin.erl
%%%------------------------------------------------------------------- @author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . %%% @end %%%------------------------------------------------------------------- %%% @doc %%% This module handles middleware ope...
null
https://raw.githubusercontent.com/onedata/op-worker/34607258e1b3fca71a1b0da2a0bc5f0134fe878e/src/middleware/plugins/automation/atm_task_execution_middleware_plugin.erl
erlang
------------------------------------------------------------------- @end ------------------------------------------------------------------- @doc This module handles middleware operations (create, get, update, delete) corresponding to automation task executions. @end -----------------------------------------------...
@author ( C ) 2021 ACK CYFRONET AGH This software is released under the MIT license cited in ' LICENSE.txt ' . -module(atm_task_execution_middleware_plugin). -author("Bartosz Walkowicz"). -behaviour(middleware_router). -behaviour(middleware_handler). -include("middleware/middleware.hrl"). -include("modules...
cc7652914364222e7c89ce5109cee7ee5b2e7642589ea763c6e9f25e2fd85c39
PearsonEducation/subpub
pe_test_manual.erl
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . % Licensed under the Apache License , Version 2.0 ( the " License " ) ; % % you may not use this file except in compliance with the License. -module(pe_test_manual). -export([post_multipart_message/3]). create_mime_request(Payload, MessageTy...
null
https://raw.githubusercontent.com/PearsonEducation/subpub/f2275c5da24d8860d206cff81d1ce87ecd956c72/src/pe_test_manual.erl
erlang
you may not use this file except in compliance with the License.
SubPub - Copyright ( c ) 2013 Pearson . All rights reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; -module(pe_test_manual). -export([post_multipart_message/3]). create_mime_request(Payload, MessageType, Tags) -> {mime, Boundary, Body} = mime:encode([ mime:mime_part(...
1f30e81ca877da81ddb69befb2ac493c14f296142f1f524465a57bec2aaf356c
EarnestResearch/hlivy
Batch.hs
module Examples.Batch where import Control.Lens (view, (&), (?~), (^.)) import Control.Monad (void) import Network.Livy newEnv' :: IO Env newEnv' = newEnv "localhost" 8998 -- | Create a new batch session. -- The default configuration expects that the file containing the application is in HDFS . To be able to...
null
https://raw.githubusercontent.com/EarnestResearch/hlivy/48d159b2be7b9a87ce6f4436b06d9c3f7aa2fa66/examples/src/Examples/Batch.hs
haskell
| Create a new batch session. filesystem, set the @livy.file.local-dir-whitelist@ value in livy.conf. | Get the states of all batch sessions. | Terminate a given batch session.
module Examples.Batch where import Control.Lens (view, (&), (?~), (^.)) import Control.Monad (void) import Network.Livy newEnv' :: IO Env newEnv' = newEnv "localhost" 8998 The default configuration expects that the file containing the application is in HDFS . To be able to upload a JAR on the local createNew...
7f3cb332a6f1489eef087230c1f4dc9de7ce2636ef13639edfbbb13089ca52de
cdfa/frugel
Program.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Scout.Program ( module Scout.Program , Program(Program, ProgramCstrSite) , ProgramMeta(ProgramMeta) , _Program , _Progra...
null
https://raw.githubusercontent.com/cdfa/frugel/9c59f2281c06bfa5e13bd575866d165dbc0ce411/scout-src/Scout/Program.hs
haskell
todo: make constraint polymorphic
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE LambdaCase # # LANGUAGE TypeApplications # # LANGUAGE UndecidableInstances # module Scout.Program ( module Scout.Program , Program(Program, ProgramCstrSite) , ProgramMeta(ProgramMeta) , _Program , _Progra...
9b022d8d86c9650ce62bb84a75f6773f1b1f0fd90d3f7dad461e330235d5d39c
haskell/statistics
Algorithms.hs
-- | -- Module : Statistics.Matrix.Algorithms Copyright : 2014 -- License : BSD3 -- -- Useful matrix functions. module Statistics.Matrix.Algorithms ( qr ) where import Control.Applicative ((<$>), (<*>)) import Control.Monad.ST (ST, runST) import Prelude hiding (replicate) import Numeric.Sum ...
null
https://raw.githubusercontent.com/haskell/statistics/a2aa25181e50cd63db4a785c20c973a3c4dd5dac/dense-linear-algebra/src/Statistics/Matrix/Algorithms.hs
haskell
| Module : Statistics.Matrix.Algorithms License : BSD3 Useful matrix functions. | /O(r*c)/ Compute the QR decomposition of a matrix. The result returned is the matrices (/q/,/r/).
Copyright : 2014 module Statistics.Matrix.Algorithms ( qr ) where import Control.Applicative ((<$>), (<*>)) import Control.Monad.ST (ST, runST) import Prelude hiding (replicate) import Numeric.Sum (sumVector,kbn) import Statistics.Matrix (Matrix, column, dimension, for, norm) import qualified ...
4de988c9f18d657df2ae9ab7220dbdaaa61e8967c8048b06ec8cafbe6c117758
ghc/testsuite
T3696.hs
{-# OPTIONS -Wall #-} module T3696 where class C a where c :: a instance C Int where c = 37 def = c use :: Int use = def
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/T3696.hs
haskell
# OPTIONS -Wall #
module T3696 where class C a where c :: a instance C Int where c = 37 def = c use :: Int use = def
95893f583ed0432e60744db4c69191df0023b834088a2d2a0fbe4ac6e71888ee
dbuenzli/brr
log.ml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/dbuenzli/brr/3d1a0edd964a1ddfbf2be515fc3a3803d27ad707/attic/log.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2018 The brr programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
61e8379833ac47ab85816dfe31835b11042122343c66ed0f35268a4e65082878
chaw/r7rs-libs
fixnums.body.scm
Copyright 2015 < > . ;;; ;;; Permission to copy this software, in whole or in part, to use this ;;; software for any lawful purpose, and to redistribute this software ;;; is granted subject to the restriction that all copies made of this ;;; software must include this copyright and permission notice in full. ;;...
null
https://raw.githubusercontent.com/chaw/r7rs-libs/b8b625c36b040ff3d4b723e4346629a8a0e8d6c2/r6rs/fixnums.body.scm
scheme
Permission to copy this software, in whole or in part, to use this software for any lawful purpose, and to redistribute this software is granted subject to the restriction that all copies made of this software must include this copyright and permission notice in full. I also request that you send me a copy of an...
Copyright 2015 < > . For Emacs : ( put ' fxdefine ' scheme - indent - function 1 ) ( put ' fxdefine+ ' scheme - indent - function 1 ) (define-syntax assert (syntax-rules () ((_ <expr> <message> . <objs>) (unless <expr> (apply error <message> (list . <objs>)))))) (define-syntax for-ar...
a160e5735a0ab90c5a76b1176f84b6cb3a1d4ca884aa96aca9f7a721bc3b372b
jship/opentelemetry-haskell
IdGenerator.hs
module OTel.SDK.Trace.IdGenerator ( Internal.IdGenerator , Internal.IdGeneratorSpec , Internal.defaultIdGeneratorSpec , Internal.idGeneratorSpecName , Internal.idGeneratorSpecGenTraceId , Internal.idGeneratorSpecGenSpanId , Internal.IdGeneratorM , Internal.genUniform ) where import qualified OTel.S...
null
https://raw.githubusercontent.com/jship/opentelemetry-haskell/468b7df49226bb6a478180300dab8d1a214c213f/otel-sdk-trace/library/OTel/SDK/Trace/IdGenerator.hs
haskell
module OTel.SDK.Trace.IdGenerator ( Internal.IdGenerator , Internal.IdGeneratorSpec , Internal.defaultIdGeneratorSpec , Internal.idGeneratorSpecName , Internal.idGeneratorSpecGenTraceId , Internal.idGeneratorSpecGenSpanId , Internal.IdGeneratorM , Internal.genUniform ) where import qualified OTel.S...
8ff97abf1da88e8057847c28a1291394f95ba53b951113ef6751b59c86f88190
soulomoon/arith
Main.hs
# LANGUAGE AllowAmbiguousTypes # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE GADTs #-} # LANGUAGE MultiParamTypeClasses # # LANGUAGE PartialTypeSignatures # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE Stand...
null
https://raw.githubusercontent.com/soulomoon/arith/807427a7ddd13e8a51e0112250c5115d3158149a/arith5/app/Main.hs
haskell
# LANGUAGE ConstraintKinds # # LANGUAGE GADTs # # LANGUAGE RankNTypes # Value a Abstract = String
# LANGUAGE AllowAmbiguousTypes # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE PartialTypeSignatures # # LANGUAGE ScopedTypeVariables # # LANGUAGE StandaloneDeriving # # LANGUAGE TupleSections # # LANGUAGE TypeApplications # # LANGUAGE ...
4d14ef40385a17be13346741de58a0a95c44164a0c0e7530f48ef3e0f0707c30
avsm/mirage-duniverse
topkg_pkg.ml
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/avsm/mirage-duniverse/983e115ff5a9fb37e3176c373e227e9379f0d777/ocaml_modules/topkg/src/topkg_pkg.ml
ocaml
fields Publish Test Build Clean disabled
--------------------------------------------------------------------------- Copyright ( c ) 2016 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) ...
ce38a15c67996f1ea1889c0481ef1fd1f6074d1529c679a783f4544895cd9d4c
Yomguithereal/clj-fuzzy
match_rating_test.clj
;; ------------------------------------------------------------------- ;; clj-fuzzy Match Rating Tests ;; ------------------------------------------------------------------- ;; ;; Author : ( Yomguithereal ) Version : 0.1 ;; (ns clj-fuzzy.match-rating-test (:require [clojure.test :refer :all] [cl...
null
https://raw.githubusercontent.com/Yomguithereal/clj-fuzzy/ce7c57dfb14f6ddc99bf4d9ab74c778128438d8b/test/clj_fuzzy/match_rating_test.clj
clojure
------------------------------------------------------------------- clj-fuzzy Match Rating Tests -------------------------------------------------------------------
Author : ( Yomguithereal ) Version : 0.1 (ns clj-fuzzy.match-rating-test (:require [clojure.test :refer :all] [clj-fuzzy.match-rating :refer :all])) (deftest mra-codex-test (is (= "BYRN" (mra-codex "Byrne"))) (is (= "BRN" (mra-codex "Boern"))) (is (= "SMTH" (mra-codex "Smith"))) (is (= ...
9be1388613620d9d4b314824676506db842fc06f24e6e9d33166dac9694d4345
mbj/stratosphere
FieldToMatchProperty.hs
module Stratosphere.WAF.ByteMatchSet.FieldToMatchProperty ( FieldToMatchProperty(..), mkFieldToMatchProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data FieldTo...
null
https://raw.githubusercontent.com/mbj/stratosphere/c70f301715425247efcda29af4f3fcf7ec04aa2f/services/waf/gen/Stratosphere/WAF/ByteMatchSet/FieldToMatchProperty.hs
haskell
module Stratosphere.WAF.ByteMatchSet.FieldToMatchProperty ( FieldToMatchProperty(..), mkFieldToMatchProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data FieldTo...
e87f318b868346f2248c486861c3864cd75304867e30cfdc60bcddaa89c87149
ninjudd/cake
file_test.clj
(ns cake.file-test (:use clojure.test cake cake.file)) (defmacro with-project [bindings & body] `(binding [*project* {:name "project-stub", :version "0.0.0"} *root* "/home/project"] (let ~bindings ~@body))) (deftest file-fn (testing "single string" (with-project [s "foo/bar/baz"]...
null
https://raw.githubusercontent.com/ninjudd/cake/3a1627120b74e425ab21aa4d1b263be09e945cfd/test/old/cake/file_test.clj
clojure
(ns cake.file-test (:use clojure.test cake cake.file)) (defmacro with-project [bindings & body] `(binding [*project* {:name "project-stub", :version "0.0.0"} *root* "/home/project"] (let ~bindings ~@body))) (deftest file-fn (testing "single string" (with-project [s "foo/bar/baz"]...
71a856eea8f905456342b1fbe6423c4de4bf879e3eead0197a0ef65017a1b602
zshipko/libirmin
path.ml
module Make (I : Cstubs_inverted.INTERNAL) = struct open Util.Make (I) let () = fn "path" (repo @-> ptr string_opt @-> returning path) (fun (type repo) repo arr -> with_repo' repo path (fun (module Store : Irmin.Generic_key.S with type repo = repo) _ -> let rec loop i ...
null
https://raw.githubusercontent.com/zshipko/libirmin/43d6d3da46d4f824ee0a342cfd7c9dfc46619eb5/src/path.ml
ocaml
module Make (I : Cstubs_inverted.INTERNAL) = struct open Util.Make (I) let () = fn "path" (repo @-> ptr string_opt @-> returning path) (fun (type repo) repo arr -> with_repo' repo path (fun (module Store : Irmin.Generic_key.S with type repo = repo) _ -> let rec loop i ...
3621cf7cdf3cd4bdc043f5a3709ae31aa3a82043da3b1f13faa4f4e4aeb36518
ring-clojure/ring-spec
spec_test.clj
(ns ring.core.spec-test (:require [clojure.test :refer :all] [ring.core.spec :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
null
https://raw.githubusercontent.com/ring-clojure/ring-spec/4e28ae67ccbf49c1df3cbd9d8cfdf3c1915d2e93/test/ring/core/spec_test.clj
clojure
(ns ring.core.spec-test (:require [clojure.test :refer :all] [ring.core.spec :refer :all])) (deftest a-test (testing "FIXME, I fail." (is (= 0 1))))
cc1c1cb7c129cccfd7d89fea7baf5396d118d542202b2dcc89f7aa2bd15eda00
aantron/dream
template.eml.ml
let render_home tasks = <html> <body> % tasks |> List.iter begin fun (name, complete) -> <p>Task <%s name %>: % if complete then begin complete! % end % else begin not complete. % end; </p> % end; </body> </html> let render_task tasks task = <html> ...
null
https://raw.githubusercontent.com/aantron/dream/ec9643b7319f4d1076b3c7959336b1cf66b11d8d/example/w-template-logic/template.eml.ml
ocaml
let render_home tasks = <html> <body> % tasks |> List.iter begin fun (name, complete) -> <p>Task <%s name %>: % if complete then begin complete! % end % else begin not complete. % end; </p> % end; </body> </html> let render_task tasks task = <html> ...
e7e5fbbfae62253825af4e2d391bc7f5900514f7d84c795fa4dd942d8daaf206
skanev/playground
evaluator.scm
This is the analyzing evaluator , implemented in SICP 4.1.7 . is renamed ; to evaluate because of naming issues in Racket. It uses r5rs in order to get ; set-car! and set-cdr! (require r5rs/init) (define (evaluate exp env) ((analyze exp) env)) (define (analyze exp) (cond ((self-evaluating? exp) (analyze-self-...
null
https://raw.githubusercontent.com/skanev/playground/d88e53a7f277b35041c2f709771a0b96f993b310/scheme/sicp/04/showcase/analyzing/evaluator.scm
scheme
to evaluate because of naming issues in Racket. It uses r5rs in order to get set-car! and set-cdr!
This is the analyzing evaluator , implemented in SICP 4.1.7 . is renamed (require r5rs/init) (define (evaluate exp env) ((analyze exp) env)) (define (analyze exp) (cond ((self-evaluating? exp) (analyze-self-evaluating exp)) ((quoted? exp) (analyze-quoted exp)) ((variable? exp) (analyze-variabl...
b308faeccd3cd1021cfeba55512cc1142cfca5a4fdb6a4a190ff18ffdb25e99c
lem-project/lem
eval.lisp
(in-package :lem-language-server) (lem-lsp-base/type:define-class show-eval-result-params () ((message :type lem-lsp-base/type:lsp-string :initarg :message :accessor show-eval-result-params-message) (type :type lsp:message-type :initarg :type :accessor show-eval-result-pa...
null
https://raw.githubusercontent.com/lem-project/lem/a9506495a5cf5605b4a19554e17b738c510593ee/lib/language-server/eval.lisp
lisp
(in-package :lem-language-server) (lem-lsp-base/type:define-class show-eval-result-params () ((message :type lem-lsp-base/type:lsp-string :initarg :message :accessor show-eval-result-params-message) (type :type lsp:message-type :initarg :type :accessor show-eval-result-pa...
0b59f2ae75928e2ad1fcab13819a5e2ca3cc9823dda1684c41862306fc788e9c
facebook/pyre-check
dependencyGraph.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/25e18d8a763e34786dd09d6148730af944d82e07/source/interprocedural/dependencyGraph.mli
ocaml
* Represents a dependency graph, i.e a mapping from a callee to its callers. * Represents a reversed dependency graph, i.e a mapping from callers to callees. * Create a reverse dependency graph from a call graph. * Create a reverse dependency graph from an override graph. All callables to analyze (including overri...
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
bfb009cf61cac6c036502a4c8194db4e552c7a20b4dc9adbfb6810969c656732
crisptrutski/matchbox
registry_test.cljc
(ns matchbox.registry-test #?(:cljs (:require-macros [cljs.test :refer [is deftest async]])) (:require #?(:cljs [cljs.test] :clj [clojure.test :refer [deftest is]]) [matchbox.core :as m] [matchbox.registry :as r] [matchbox.testing :as mt])) (reset! r/unsubs {}) (...
null
https://raw.githubusercontent.com/crisptrutski/matchbox/5bb9ba96f5df01bce302a8232f6cddd9d64a1d71/test/matchbox/registry_test.cljc
clojure
(ns matchbox.registry-test #?(:cljs (:require-macros [cljs.test :refer [is deftest async]])) (:require #?(:cljs [cljs.test] :clj [clojure.test :refer [deftest is]]) [matchbox.core :as m] [matchbox.registry :as r] [matchbox.testing :as mt])) (reset! r/unsubs {}) (...
e5e95f1aad3e918f2135bd65a4d93ceb7cedce46910cc22561a7a381a2721909
himura/lens-regex
doctests.hs
module Main where import Test.DocTest import System.Directory import System.FilePath import Data.List import Control.Monad import Control.Applicative main :: IO () main = do sources <- findSources doctest sources findSources :: IO [FilePath] findSources = filter (isSuffixOf ".hs") <$> go "src" where go...
null
https://raw.githubusercontent.com/himura/lens-regex/1e2dc8250131744fd12c0df05404f0dc9b17f3b9/tests/doctests.hs
haskell
module Main where import Test.DocTest import System.Directory import System.FilePath import Data.List import Control.Monad import Control.Applicative main :: IO () main = do sources <- findSources doctest sources findSources :: IO [FilePath] findSources = filter (isSuffixOf ".hs") <$> go "src" where go...
de2c6b72d39c90dc3799b6bf85dbe4a3c0562406306b2c6617075838a86e49d9
2600hz/kazoo
kz_media_cache_sup.erl
%%%----------------------------------------------------------------------------- ( C ) 2012 - 2020 , 2600Hz %%% @doc @author %%% This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %%% %%% ...
null
https://raw.githubusercontent.com/2600hz/kazoo/24519b9af9792caa67f7c09bbb9d27e2418f7ad6/core/kazoo_media/src/kz_media_cache_sup.erl
erlang
----------------------------------------------------------------------------- @doc @end ----------------------------------------------------------------------------- API Supervisor callbacks ============================================================================= API functions ==============================...
( C ) 2012 - 2020 , 2600Hz @author This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. -module(kz_media_cache_sup). -behaviour(supervisor). -export([start_link/0]). -export([find_file_ser...
fe738e64dcddb7dbc0eb2ccbb2584c69d886072806879f5882508040ed8420c0
techascent/tech.ml.dataset
dataset_test.clj
(ns tech.v3.dataset-test (:require [tech.v3.datatype :as dtype] [tech.v3.datatype.functional :as dfn] [tech.v3.datatype.datetime :as dtype-dt] [tech.v3.datatype.struct :as dt-struct] [tech.v3.datatype.argops :as argops] [tech.v3.tensor :as dtt] [...
null
https://raw.githubusercontent.com/techascent/tech.ml.dataset/044c455c0c3014d01ac76f53b8198d362f95ebe7/test/tech/v3/dataset_test.clj
clojure
Loading multimethods required to load the files Enforce the order in the map. ensure normal ordering rules apply, make a dataset with random column name order Never remove these tests. Actual users are relying on this behavior to simplify their processing chains. Custom cast fn result scanned for both datatype and m...
(ns tech.v3.dataset-test (:require [tech.v3.datatype :as dtype] [tech.v3.datatype.functional :as dfn] [tech.v3.datatype.datetime :as dtype-dt] [tech.v3.datatype.struct :as dt-struct] [tech.v3.datatype.argops :as argops] [tech.v3.tensor :as dtt] [...
f21c994d9e34f1b9cb79f36a46cafd2bf6e2d71247073e6835f54c6cb0185bb5
racket/compiler
embed-bsl.rkt
The first three lines of this file were inserted by . They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t ...
null
https://raw.githubusercontent.com/racket/compiler/88acf8a1ec81fec0fbcb6035af1d994d2fec4154/compiler-test/tests/compiler/embed/embed-bsl.rkt
racket
about the language level of this file in a form that our tools can easily process.
The first three lines of this file were inserted by . They record metadata #reader(lib "htdp-beginner-reader.ss" "lang")((modname ex) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ()))) 10
c59beffedc5b9035e40ab595fdbbf4ae50e172e2fbea33495361e01b11ab8a19
marigold-dev/deku
fxx.ml
module type RepType = sig type t val mantissa : int val zero : t val min_int : t val max_int : t val pos_nan : t val neg_nan : t val bare_nan : t val bits_of_float : float -> t val float_of_bits : t -> float val of_string : string -> t val to_string : t -> string val to_hex_string : t -> stri...
null
https://raw.githubusercontent.com/marigold-dev/deku/a26f31e0560ad12fd86cf7fa4667bb147247c7ef/deku-c/interpreter/exec/fxx.ml
ocaml
nearest is either ceil or floor depending on which is nearest or even min -0 0 is -0 to skip sign, 'x', '.', '_', etc. If value is already infinite we are done. Else, bit twiddling to see what rounding to target precision will do. If we have no tie, we are good. Else, define epsilon to be the value of the ...
module type RepType = sig type t val mantissa : int val zero : t val min_int : t val max_int : t val pos_nan : t val neg_nan : t val bare_nan : t val bits_of_float : float -> t val float_of_bits : t -> float val of_string : string -> t val to_string : t -> string val to_hex_string : t -> stri...
60c1f4dc33bab3c74283dcd5f1c46e54f286e6101fde489afa1eb42a63d7d234
expipiplus1/spir-v
Extra.hs
module Control.Arrow.ArrowList.Extra ( module Control.Arrow.ArrowList , arrF ) where import Control.Arrow.ArrowList import Data.Foldable (toList) arrF :: (ArrowList a, Foldable t) => (b -> t c) -> a b c arrF f = arrL (toList . f)
null
https://raw.githubusercontent.com/expipiplus1/spir-v/5692404f43a63fb8feb0cfaff3bfb3eedada6890/generate/src/Control/Arrow/ArrowList/Extra.hs
haskell
module Control.Arrow.ArrowList.Extra ( module Control.Arrow.ArrowList , arrF ) where import Control.Arrow.ArrowList import Data.Foldable (toList) arrF :: (ArrowList a, Foldable t) => (b -> t c) -> a b c arrF f = arrL (toList . f)
0383d3516400f3837b1ebf9b51326d5c6d93bd8c1f455241e41c4ee836df9eb3
xapi-project/xen-api-libs
absty.ml
Useful helper fns let quote s = Printf.sprintf "\"%s\"" s let o = fun f g x -> f (g x) type absty = | AInt of int64 | AStr of string | AStruct of (string * absty) list | AArr of absty list let rec fieldstr f = match f with | AInt x -> Printf.sprintf "%Ld" x | AStr x -> Printf.sprin...
null
https://raw.githubusercontent.com/xapi-project/xen-api-libs/d603ee2b8456bc2aac99b0a4955f083e22f4f314/mlvm/absty.ml
ocaml
Useful helper fns let quote s = Printf.sprintf "\"%s\"" s let o = fun f g x -> f (g x) type absty = | AInt of int64 | AStr of string | AStruct of (string * absty) list | AArr of absty list let rec fieldstr f = match f with | AInt x -> Printf.sprintf "%Ld" x | AStr x -> Printf.sprin...
3dc527ca0e19ad1718f1bde1b4f54eeef536c5a6a25cf8dc1445900f75519ae1
avsm/melange
cryptokit.mli
(***********************************************************************) (* *) (* The Cryptokit library *) (* *) , projet ...
null
https://raw.githubusercontent.com/avsm/melange/e92240e6dc8a440cafa91488a1fc367e2ba57de1/dist/cryptokit/cryptokit.mli
ocaml
********************************************************************* The Cryptokit library ...
, projet Cristal , INRIA Rocquencourt Copyright 2002 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : cryptokit.mli , v 1.20 2005/0...
61d03f83e8ee2f8e118d117cab0cb7cee233b96b45e54215d1a621246f9f6252
jwiegley/notes
CCCs.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} # LANGUAGE UndecidableInstances # module CCCs where i...
null
https://raw.githubusercontent.com/jwiegley/notes/24574b02bfd869845faa1521854f90e4e8bf5e9a/haskell/CCCs.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE RankNTypes # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # | products | exponentials | a unit for the product type, | evaluation morphisms, | currying and uncurring operations, | product introduction and elimination terms That is, w...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # module CCCs where import Prelude hiding ((.), ($), id, fst, snd, curry, uncurry) import Control.Category | A Cartesian - closed category is a Category k , together with ......
4044a2c307be28ecc88432e66b79f8706925c1df38a58dd581f70fe815a5d0c0
GaloisInc/saw-script
Value.hs
# LANGUAGE PatternGuards # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeFamilies # {-# LANGUAGE ConstraintKinds #-} # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # {-# LANGUAGE EmptyDataDecls #-} # LANGUAGE TupleSections # | Module : Verifier . SAW.Simulator . Value Copyright : Galo...
null
https://raw.githubusercontent.com/GaloisInc/saw-script/ec73f825ce493de9959bca5a3df10f7cacddb70e/saw-core/src/Verifier/SAW/Simulator/Value.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE ConstraintKinds # # LANGUAGE EmptyDataDecls # ---------------------------------------------------------- TODO: don't use @Int@ for this, use @Natural@ data type ident data type parameters motive function type of motive constructor eliminators and their types | The subset...
# LANGUAGE PatternGuards # # LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE UndecidableInstances # # LANGUAGE TupleSections # | Module : Verifier . SAW.Simulator . Value Copyright : Galois , Inc. 2012 - 2015 License : : Stability : experimental Portability : non - p...
ae10068354de1c6964047d38b8fcad05ade5b6a211aae61caa76643120f6429a
ocaml-multicore/tezos
lwt_assert.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2020 Nomadic Labs . < > (* ...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/lib_test/lwt_assert.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2020 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...
3f040a342fc7bf7f0d92cf71eff80605232ee0c97211f081c11ad303927d0a72
rd--/hsc3
leakDC.help.hs
-- leakDC let a = lfPulse ar 800 0 0.5 * 0.1 + 0.5 in mce [a,leakDC a 0.995] ---- ; frequency response functions and tables ---- ; <-users/msg69555.html> leak_dc_coef sample_rate cfreq = exp (-two_pi * (cfreq / sample_rate)) leak_dc_cfreq sample_rate coef = -log(coef) * (sample_rate / two_pi) import Sound.Sc3.Plot {- ...
null
https://raw.githubusercontent.com/rd--/hsc3/024d45b6b5166e5cd3f0142fbf65aeb6ef642d46/Help/Ugen/leakDC.help.hs
haskell
leakDC -- ; frequency response functions and tables -- ; <-users/msg69555.html> hsc3-plot
let a = lfPulse ar 800 0 0.5 * 0.1 + 0.5 in mce [a,leakDC a 0.995] leak_dc_coef sample_rate cfreq = exp (-two_pi * (cfreq / sample_rate)) leak_dc_cfreq sample_rate coef = -log(coef) * (sample_rate / two_pi) plot_p2_ln [let x = [0,0.5 .. 200] in zip x (map (leak_dc_coef 48000) x)] plot_p2_ln [let x = [0.9700,0.9725 .. ...
4cb9af9eb29613c4d3a3462a3d201e97b81395c942455ea2a8b64fc01e856743
OCamlPro/freeton_wallet
commandContractList.ml
(**************************************************************************) (* *) Copyright ( c ) 2021 OCamlPro SAS (* *) (* All right...
null
https://raw.githubusercontent.com/OCamlPro/freeton_wallet/43045776db9bffc5937f43fcbc87c9faade4b2e2/src/freeton_wallet_lib/commandContractList.ml
ocaml
************************************************************************ All rights reserved. This file is distributed u...
Copyright ( c ) 2021 OCamlPro SAS Public License version 2.1 , with the special exception on linking open Ezcmd.V2 open EZCMD.TYPES let cmd = EZCMD.sub "contract list" (fun () -> CommandContractBuild.list_contracts () ) ~args:[] ~doc: "L...
740a7e2cdc0741e89a04c34b9817f9abff0471d29b53b89315a4a2e16ee683ce
clojure-interop/aws-api
AmazonS3Builder.clj
(ns com.amazonaws.services.s3.AmazonS3Builder (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.s3 AmazonS3Builder])) (defn payload-signing-enabled? "returns: The current setting for payload signing configured in the builder. - `java.lang.Boolean`" (^java.lang.Boolean [^AmazonS3...
null
https://raw.githubusercontent.com/clojure-interop/aws-api/59249b43d3bfaff0a79f5f4f8b7bc22518a3bf14/com.amazonaws.services.s3/src/com/amazonaws/services/s3/AmazonS3Builder.clj
clojure
(ns com.amazonaws.services.s3.AmazonS3Builder (:refer-clojure :only [require comment defn ->]) (:import [com.amazonaws.services.s3 AmazonS3Builder])) (defn payload-signing-enabled? "returns: The current setting for payload signing configured in the builder. - `java.lang.Boolean`" (^java.lang.Boolean [^AmazonS3...
7c8050de67716fb5ee8757ff1ea1da7623c961320342183e1f5c5365b90007fd
mogenslund/liquid
window_manager.cljc
(ns liq.window-manager (:require [clojure.string :as str] [liq.util :as util] [liq.editor :as editor] [liq.buffer :as buffer])) (defn window-detach [] (editor/apply-to-buffer (fn [buf] (assoc-in buf [::buffer/window ::buffer/group] (util/counter-next))))) (defn window-fra...
null
https://raw.githubusercontent.com/mogenslund/liquid/eafc54df9c67f2e625220b78b65de1143099ef00/src/liq/window_manager.cljc
clojure
Special functions to full, top-half, buttom-half, right-half, left-half. C-h, C-j, C-k, C-l Detach d Esc to exit mode
(ns liq.window-manager (:require [clojure.string :as str] [liq.util :as util] [liq.editor :as editor] [liq.buffer :as buffer])) (defn window-detach [] (editor/apply-to-buffer (fn [buf] (assoc-in buf [::buffer/window ::buffer/group] (util/counter-next))))) (defn window-fra...
c441daaaf9cbded7ed8c158595dc2fa59c95e7b43f87489162936851abf69915
brendanhay/terrafomo
DNSMadeEasy.hs
-- This module is auto-generated. # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # -- | Module : . DNSMadeEasy Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > -- Stability : auto-gene...
null
https://raw.githubusercontent.com/brendanhay/terrafomo/387a0e9341fb9cd5543ef8332dea126f50f1070e/provider/terrafomo-dnsmadeeasy/gen/Terrafomo/DNSMadeEasy.hs
haskell
This module is auto-generated. | Stability : auto-generated * Provider * Types * Resources
# OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - dodgy - exports # Module : . DNSMadeEasy Copyright : ( c ) 2017 - 2018 License : Mozilla Public License , v. 2.0 . Maintainer : < brendan.g.hay+ > Portability : non - portable ( GHC extensions ) module Terrafom...
0885a0f740cf41f1d0b26de19c3f45c01169ef0759a46b3e0c0ce21167d33379
Jugendhackt/haskell-ricochet
Client.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Network.Ricochet import Network.Ricochet.Connection import Network.Ricochet.Monad import Network.Ricochet.Types import Control.Concurrent (threadDelay) import Control.Lens import ...
null
https://raw.githubusercontent.com/Jugendhackt/haskell-ricochet/aa84fb96b2e73c6ea18ecb0c95d6b5c9b9e9bacb/src/Demo/Client.hs
haskell
# LANGUAGE OverloadedStrings #
module Main where import Network.Ricochet import Network.Ricochet.Connection import Network.Ricochet.Monad import Network.Ricochet.Types import Control.Concurrent (threadDelay) import Control.Lens import Control.Monad (when,...
45d8a89db7463305b12de1d72f076744fe5c3fa7ffd45f9a993401517e65bce1
sjl/advent
package.lisp
(defpackage :advent (:use :cl :losh :iterate) (:export :define-problem :read-2d-array :read-all :read-and-collect :read-before :read-chunks :read-comma-separated-values :read-comma-separated-integers :read-digits :read-lines :read-lines-of-numbers-and-garbage :read-l...
null
https://raw.githubusercontent.com/sjl/advent/2aec3e1f6aa9770164258a30df445ee93fdcfd31/src/package.lisp
lisp
(defpackage :advent (:use :cl :losh :iterate) (:export :define-problem :read-2d-array :read-all :read-and-collect :read-before :read-chunks :read-comma-separated-values :read-comma-separated-integers :read-digits :read-lines :read-lines-of-numbers-and-garbage :read-l...
630e019299470aac13a278f80fea05319a9bda08f499331e9b29a7ca9d94dc05
yutopp/rill
unification.ml
* Copyright yutopp 2015 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2015 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
null
https://raw.githubusercontent.com/yutopp/rill/375b67c03ab2087d0a2a833bd9e80f3e51e2694f/rillc/_migrating/unification.ml
ocaml
Printf.printf "@%s@ val or undef [%d]\n" debug_s uni_id; Printf.printf "@%s@ link to [%d] -> \n" debug_s uni_id; Printf.printf "@%s@ LINK [%d] = [%d] -> %d" debug_s a_id b_id new_uni_id Printf.printf "@%s@ LINK [%d] -> %d" debug_s b_id a_id; Printf.printf "@%s@ LINK [%d] -> %d" debug_s a_id b_id; Printf.printf "@%s@ up...
* Copyright yutopp 2015 - . * * Distributed under the Boost Software License , Version 1.0 . * ( See accompanying file LICENSE_1_0.txt or copy at * ) * Copyright yutopp 2015 - . * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * )...
5fa4ca8c40a01d79ffc799a05f0df3dd88baec56d5e68c4ad589b419d7740372
input-output-hk/cardano-prelude
Parse.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Helper functions for parsing values from @JSString@s module Cardano.Prelude.Json.Parse ( parseJSString, ) where import Cardano.Prelude.Base import Data.String (String) import Formatting (Fo...
null
https://raw.githubusercontent.com/input-output-hk/cardano-prelude/94b37483937cfb7c07d69a708c950a090bb9670f/cardano-prelude/src/Cardano/Prelude/Json/Parse.hs
haskell
# LANGUAGE OverloadedStrings # | Attempt to parse a value of type @a@ from the body of a @JSString@ using @parser@
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # | Helper functions for parsing values from @JSString@s module Cardano.Prelude.Json.Parse ( parseJSString, ) where import Cardano.Prelude.Base import Data.String (String) import Formatting (Format, build, formatToString, string...
ed7d7fcb7fb1cd0aed345592d107457f3b540752848f1f5d4e9a6f5c8f1aa95d
clj-kondo/clj-kondo
no_unused_namespace.clj
(ns no_unused-namespace (:require [clojure.string :as str])) (let [{score (if (str/starts-with? "foo" "f") :starts-with :not-starts-with)} {:starts-with 100 :not-starts-with 0}] = > 100
null
https://raw.githubusercontent.com/clj-kondo/clj-kondo/626978461cbf113c376634cdf034d7262deb429f/corpus/no_unused_namespace.clj
clojure
(ns no_unused-namespace (:require [clojure.string :as str])) (let [{score (if (str/starts-with? "foo" "f") :starts-with :not-starts-with)} {:starts-with 100 :not-starts-with 0}] = > 100
5fd74c23400c4aef88605b845debb9825f7844decab67e62d80a46b7b321dd52
3b/cl-opengl
polys.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- polys.lisp --- Lisp version of polys.c ( Red Book examples ) ;;; ;;; Original C version contains the following copyright notice: Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. ;;; ALL RIGHTS RESERVED ;;; This program demonstrates polygon stippling. (in-pac...
null
https://raw.githubusercontent.com/3b/cl-opengl/e2d83e0977b7e7ac3f3d348d8ccc7ccd04e74d59/examples/redbook/polys.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- Original C version contains the following copyright notice: ALL RIGHTS RESERVED This program demonstrates polygon stippling. stippled rectangles.
polys.lisp --- Lisp version of polys.c ( Red Book examples ) Copyright ( c ) 1993 - 1997 , Silicon Graphics , Inc. (in-package #:cl-glut-examples) (defclass polys-window (glut:window) () (:default-initargs :width 350 :height 150 :title "polys.lisp" :mode '(:single :rgb))) (defmethod g...
ec483ffdcaf8a442008db8856167e2d1fff201cd80927e8d00e2a62f8daf23c3
mcorbin/tour-of-clojure
error.clj
(ns tourofclojure.pages.error (:require [hiccup.element :refer [link-to]] [clojure.java.io :as io] [tourofclojure.pages.util :refer [navigation-block]])) (def code (slurp (io/resource "public/pages/code/error.clj"))) (defn desc [previous next lang] (condp = lang "fr" [:div ...
null
https://raw.githubusercontent.com/mcorbin/tour-of-clojure/57f97b68ca1a8c96904bfb960f515217eeda24a6/src/tourofclojure/pages/error.clj
clojure
(ns tourofclojure.pages.error (:require [hiccup.element :refer [link-to]] [clojure.java.io :as io] [tourofclojure.pages.util :refer [navigation-block]])) (def code (slurp (io/resource "public/pages/code/error.clj"))) (defn desc [previous next lang] (condp = lang "fr" [:div ...
a8aa19a07224bd5a3e2ac8e61744c860d89a0d8b5cbb27dfc3b4bb6e460e36cb
argp/bap
batteriesPrint.ml
* Batteries_print - Pretty - printers for the toplevel * Copyright ( C ) 2009 , LIFO , Universite d'Orleans * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; eithe...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batteriesPrint.ml
ocaml
let iset = BatIO.to_f_printer BatISet.print
* Batteries_print - Pretty - printers for the toplevel * Copyright ( C ) 2009 , LIFO , Universite d'Orleans * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; eithe...
21706f8252ab30b178789db4f1188cec7051eeff7ccbb9702127fd4685499fb0
puzza007/katipo
katipo_metrics.erl
%% @hidden -module(katipo_metrics). -export([init/0]). -export([notify/3]). -export([notify_error/0]). -spec notify(katipo:response(), katipo:metrics(), number()) -> katipo:metrics(). notify({ok, Response}, Metrics, TotalUs) -> #{status := Status} = Response, StatusMetric = status_metric_name(Status), ok ...
null
https://raw.githubusercontent.com/puzza007/katipo/5c9cb3108aef2cc15cab8b302f245c5271b28a8d/src/katipo_metrics.erl
erlang
@hidden
-module(katipo_metrics). -export([init/0]). -export([notify/3]). -export([notify_error/0]). -spec notify(katipo:response(), katipo:metrics(), number()) -> katipo:metrics(). notify({ok, Response}, Metrics, TotalUs) -> #{status := Status} = Response, StatusMetric = status_metric_name(Status), ok = metrics:u...
c0435c4897297b3412fdfdb79360ed88fb5a7ad508f2a81155a821abcd7a7d8f
janestreet/bin_prot
nat0.ml
Nat0 : natural numbers ( including zero ) type t = int let of_int n = if n < 0 then failwith "Bin_prot.Nat0.of_int: n < 0"; n ;; external unsafe_of_int : int -> t = "%identity"
null
https://raw.githubusercontent.com/janestreet/bin_prot/754fd507eb94fbf88f633aed7cec672e7259d180/src/nat0.ml
ocaml
Nat0 : natural numbers ( including zero ) type t = int let of_int n = if n < 0 then failwith "Bin_prot.Nat0.of_int: n < 0"; n ;; external unsafe_of_int : int -> t = "%identity"
2d352f603a7dec2969ae9c86688890bb3961b98c06d352bd22082f1bfc776bda
candera/causatum
util.clj
(ns causatum.util "The usual dumping ground for stuff I'm not clever enough to think of a better home for." (:require [clojure.data.generators :as dg])) ;;; Things that should live in clojure.data.generators (defn rand-exp "Return an exponentially-distributed random number with an expected value of lambda. ...
null
https://raw.githubusercontent.com/candera/causatum/fa2e22c052042473d07b6df73caac1df8b0c608a/src/causatum/util.clj
clojure
Things that should live in clojure.data.generators
(ns causatum.util "The usual dumping ground for stuff I'm not clever enough to think of a better home for." (:require [clojure.data.generators :as dg])) (defn rand-exp "Return an exponentially-distributed random number with an expected value of lambda. Respects the binding of clojure.data.generators/*rnd*...
9b642f13f5bf2f02e7b6c6645a15788094fb52da04a0a3507f0829d6245074ae
Eventuria/demonstration-gsd
Executables.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE NamedFieldPuns # # LANGUAGE DuplicateRecordFields # module Executables where import Prelude hiding (read) import Data.HashMap.Lazy import Eventuria.Commons.Network.Core import Eventuria.Commons.Logger.Core import qualified Eventuria.GSD.CLI.CLI as CLI import qualified E...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/app/Executables.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE NamedFieldPuns # # LANGUAGE DuplicateRecordFields # module Executables where import Prelude hiding (read) import Data.HashMap.Lazy import Eventuria.Commons.Network.Core import Eventuria.Commons.Logger.Core import qualified Eventuria.GSD.CLI.CLI as CLI import qualified Eventuria.GSD.CLI.Settings as CLI i...
20deb069ebcb5d40046df66337f26f958941d2fa780b88019e345a94ff052d25
geophf/1HaskellADay
Exercise.hs
module Y2017.M05.D10.Exercise where - Another Mensa Genius Quiz - a - Day Book challenge from Dr. , et al : You 've bought your weekly egg supply at the local farm store . The first morning you have company for breakfast and use half the eggs plus one - half an egg . The next morning you use one - half of ...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2017/M05/D10/Exercise.hs
haskell
} So, how do we reconcile halves 'inside the black box' of the function with the 'integralness' of the egg-count?
module Y2017.M05.D10.Exercise where - Another Mensa Genius Quiz - a - Day Book challenge from Dr. , et al : You 've bought your weekly egg supply at the local farm store . The first morning you have company for breakfast and use half the eggs plus one - half an egg . The next morning you use one - half of ...
9853bb3973ca89b51e2c0293f098bbb6b19ae6798da2c67f7eeb68e7c5ab3677
sunshowers/z3.rkt
nqueens.rkt
#lang racket (require racket/generator) (require "../main.rkt") (define (solve-nqueens n) (smt:with-context (smt:new-context) (define qs (smt:make-fun/list n () Int)) (for ([q (in-list qs)]) (smt:assert (and/s (>=/s q 0) (</s q n)))) ; columns are within bounds (smt:assert (apply distinct/s qs)) ; ...
null
https://raw.githubusercontent.com/sunshowers/z3.rkt/769a734f9751ba2053bdff194d951ca6b21cea9c/examples/nqueens.rkt
racket
columns are within bounds all columns distinct
#lang racket (require racket/generator) (require "../main.rkt") (define (solve-nqueens n) (smt:with-context (smt:new-context) (define qs (smt:make-fun/list n () Int)) (for ([q (in-list qs)]) no two queens on the same diagonal (for* ([(qi i) (in-indexed qs)] [(qj j) (in-indexed (stop-before q...
e8d6401af81534c8cfcc3fde94b05df89c8ecd479a41dca87bd7fb1701c1dfa6
tweag/asterius
T8308.hs
{-# LANGUAGE BangPatterns #-} data Test = Test !Int # NOINLINE f # f a = Test (a + 1) main = let (Test x) = f 1 in print x
null
https://raw.githubusercontent.com/tweag/asterius/e7b823c87499656860f87b9b468eb0567add1de8/asterius/test/ghc-testsuite/rts/T8308.hs
haskell
# LANGUAGE BangPatterns #
data Test = Test !Int # NOINLINE f # f a = Test (a + 1) main = let (Test x) = f 1 in print x
6fb9a4009976661de3bd7a8b6bbf40bc2cc04d3da87a098e4f315076495f51c3
reborg/clojure-essential-reference
5.clj
< 1 > (def code "(do (def a 1)\n(def b 2)\n(def c 3))") < 2 > (meta (load-string user/code)) (:line (meta #'c)) 3 (ns code2) ; <3> (eval (read-string user/code)) (:line (meta #'c)) 1
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/OtherFunctions/Evaluation/load%2Cload-file%2Cload-readerandload-string/5.clj
clojure
<3>
< 1 > (def code "(do (def a 1)\n(def b 2)\n(def c 3))") < 2 > (meta (load-string user/code)) (:line (meta #'c)) 3 (eval (read-string user/code)) (:line (meta #'c)) 1
a800fb91be1ecba70932dc0c8cd296d3211c5f299340cb19bc7ba599ebb818a9
krtx/ws-ocaml
misc.ml
Excerpt from Unix system programming in OCaml open Unix let rec restart_on_EINTR f x = try f x with Unix_error (EINTR, _, _) -> restart_on_EINTR f x let try_finalize f x finally y = let res = try f x with exn -> finally y; raise exn in finally y; res let run_with_lock l f x = Mutex.lock l; try_finalize ...
null
https://raw.githubusercontent.com/krtx/ws-ocaml/f3710f1ef36d73440c10d96785c13e08bc638545/lib/misc.ml
ocaml
Excerpt from Unix system programming in OCaml open Unix let rec restart_on_EINTR f x = try f x with Unix_error (EINTR, _, _) -> restart_on_EINTR f x let try_finalize f x finally y = let res = try f x with exn -> finally y; raise exn in finally y; res let run_with_lock l f x = Mutex.lock l; try_finalize ...
0d5572c06cd881200a8a3d83146588646a5b93c03b1770787351b2f1b952bc0f
thoughtpolice/claap
Main.hs
# LANGUAGE LambdaCase # -- | -- Module : Main Copyright : ( c ) 2016 License : BSD3 - style ( see LICENSE.txt ) -- -- Maintainer : -- Stability : experimental Portability : non - portable ( GHC extensions ) -- Entry point for AAP simulation and test bench . -- module Main ( main -- :: IO (...
null
https://raw.githubusercontent.com/thoughtpolice/claap/4944b6c4ad6aff4097f8ef66231ce7d7a59f5ee7/src/aap/Main.hs
haskell
| Module : Main Maintainer : Stability : experimental :: IO () Synthesizable tests, run in simulation mode. Tests for the simulation tools ------------------------------------------------------------------------------ Command line options -------------------------------------------------------------...
# LANGUAGE LambdaCase # Copyright : ( c ) 2016 License : BSD3 - style ( see LICENSE.txt ) Portability : non - portable ( GHC extensions ) Entry point for AAP simulation and test bench . module Main ) where import Prelude import Data.Maybe ( fromMaybe ) import Control.Monad ( forM_ ) import Syst...
06fa4e66215f9f17da30fbec1d53982bd464f3bc5a66a1c79db3759d00538f9f
nvim-treesitter/nvim-treesitter
locals.scm
;; Definitions (intent_def (intent) @definition) (slot_def (slot) @definition) (alias_def (alias) @definition) ;; References (slot_ref (slot) @reference) (alias_ref (alias) @reference)
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/bd7b4b6eff2dcb4a8a65f55d51398e79fa3d4ec6/queries/chatito/locals.scm
scheme
Definitions References
(intent_def (intent) @definition) (slot_def (slot) @definition) (alias_def (alias) @definition) (slot_ref (slot) @reference) (alias_ref (alias) @reference)
a2875bcb34de83c1b6fa651e5b792ddc86b4afbd86e082352c97a77b8c1c1fd6
reborg/clojure-essential-reference
8.clj
< 1 > '(lazy-seq (when coll (cons (f (first coll)) (lazy-map f (next coll)))))) ;; (new clojure.lang.LazySeq ;; (fn* [] ;; (when coll ;; (cons ( f ( first coll ) ) ;; (lazy-map f (next coll))))))
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/c37fa19d45dd52b2995a191e3e96f0ebdc3f6d69/Sequences/OtherGenerators/lazy-seq/8.clj
clojure
(new clojure.lang.LazySeq (fn* [] (when coll (cons (lazy-map f (next coll))))))
< 1 > '(lazy-seq (when coll (cons (f (first coll)) (lazy-map f (next coll)))))) ( f ( first coll ) )
fd0f9c6dac85fe8eca070e1822832394be534c5a3bb9d51b9e96f8d792713e23
lspitzner/brittany
Test286.hs
func = BuildReport where convertInstallOutcome = case result of Left BR.PlanningFailed -> PlanningFailed Left (BR.DependentFailed p) -> DependencyFailed p Left (BR.DownloadFailed _) -> DownloadFailed Left (BR.UnpackFailed _) -> UnpackFailed Left (BR.ConfigureFailed _) -> ConfigureFa...
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test286.hs
haskell
func = BuildReport where convertInstallOutcome = case result of Left BR.PlanningFailed -> PlanningFailed Left (BR.DependentFailed p) -> DependencyFailed p Left (BR.DownloadFailed _) -> DownloadFailed Left (BR.UnpackFailed _) -> UnpackFailed Left (BR.ConfigureFailed _) -> ConfigureFa...
e7190fd8eb5ef429ea9fc338877ac78955b5e5bac7af58f390bd21c5addd906e
realworldocaml/examples
freq.ml
open Core.Std let build_counts () = In_channel.fold_lines stdin ~init:[] ~f:(fun counts line -> let count = match List.Assoc.find counts line with | None -> 0 | Some x -> x in List.Assoc.add counts line (count + 1) ) let () = build_counts () |> List.sort ~cmp:(fun (_,x) (_,y) -> ...
null
https://raw.githubusercontent.com/realworldocaml/examples/32ea926861a0b728813a29b0e4cf20dd15eb486e/code/files-modules-and-programs-freq/freq.ml
ocaml
open Core.Std let build_counts () = In_channel.fold_lines stdin ~init:[] ~f:(fun counts line -> let count = match List.Assoc.find counts line with | None -> 0 | Some x -> x in List.Assoc.add counts line (count + 1) ) let () = build_counts () |> List.sort ~cmp:(fun (_,x) (_,y) -> ...
f3beec835d8f2ba630a89897970d625c29a6797992e64f6cb7700bcf080b9a94
banacorn/agda-language-server
SrcLoc.hs
module Test.SrcLoc where import Test.Tasty import Test.Tasty.HUnit import Data.List (sort) import Agda.Position import Data.Text (Text) import qualified Data.IntMap as IntMap tests :: TestTree tests = testGroup "Source Location" [positionToOffsetTests, offsetToPositionTests] -----------------------------------------...
null
https://raw.githubusercontent.com/banacorn/agda-language-server/816bb20d2278febf607061698baf392228b37366/test/Test/SrcLoc.hs
haskell
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
module Test.SrcLoc where import Test.Tasty import Test.Tasty.HUnit import Data.List (sort) import Agda.Position import Data.Text (Text) import qualified Data.IntMap as IntMap tests :: TestTree tests = testGroup "Source Location" [positionToOffsetTests, offsetToPositionTests] positionToOffsetTests :: TestTree positi...
53b62bbaf0632b59c5acceebc35fce5d5fa0b2932641ca08942ffc363d78fcad
inria-parkas/sundialsml
cvsDiurnal_FSA_kry_p.ml
* ----------------------------------------------------------------- * $ Revision : 1.4 $ * $ Date : 2010/12/01 23:00:48 $ * ----------------------------------------------------------------- * Programmer(s ): , , , * and @ LLNL * -------------------------------------------...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a94ec581cd2411625f0efbf7f37d12cd7b84b8a0/examples/cvodes/parallel/cvsDiurnal_FSA_kry_p.ml
ocaml
Problem Constants number of species coefficients in initial profiles initial time number of output times pi grid boundaries in x grid boundaries in y no. x points per subgrid ...
* ----------------------------------------------------------------- * $ Revision : 1.4 $ * $ Date : 2010/12/01 23:00:48 $ * ----------------------------------------------------------------- * Programmer(s ): , , , * and @ LLNL * -------------------------------------------...
698f88344c05d874491b0e4beeeeb125fe20842d0cee29b2fcac3f0f1d734cf1
fukamachi/utopian
application.lisp
(defpackage #:{{project-name}}/config/application (:use #:cl #:utopian) (:import-from #:lack.component #:to-app #:call) (:import-from #:lack #:builder) (:import-from #:cl-ppcre) (:export #:{{project-name}}-app)) (in-package #:{{project-name}}/config/appl...
null
https://raw.githubusercontent.com/fukamachi/utopian/532431b4c5e958995ba2d812751b779f814f9810/skeleton/project/config/application.lisp
lisp
(defpackage #:{{project-name}}/config/application (:use #:cl #:utopian) (:import-from #:lack.component #:to-app #:call) (:import-from #:lack #:builder) (:import-from #:cl-ppcre) (:export #:{{project-name}}-app)) (in-package #:{{project-name}}/config/appl...
d35ddf953a0af92ffda9776a0ff1b8925987bfd3ae08424a84cc1956478d42f6
SonarQubeCommunity/sonar-erlang
functions.erl
-module(functions). -behaviour(gen_server). -export([start_link/4]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -ifdef(TEST). -export([test_call/5]). -endif. -record(state, {dispatcher, ref, file, re}). start_link(DispatcherPid, Ref, FileName, Regex) -> gen...
null
https://raw.githubusercontent.com/SonarQubeCommunity/sonar-erlang/279eb7ccd84787c1c0cfd34b9a07981eb20183e3/erlang-squid/src/test/resources/metrics/functions.erl
erlang
============================================ Comment 0 -------------------------------------------- ------------------------------------- ====================================== ====================================== Comment --------------------------------------- Comment3
-module(functions). -behaviour(gen_server). -export([start_link/4]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -ifdef(TEST). -export([test_call/5]). -endif. -record(state, {dispatcher, ref, file, re}). start_link(DispatcherPid, Ref, FileName, Regex) -> gen...
7ecfb82a003e451de5127bb465abb53aa1173d00e87de700efe8534b6a662a4c
mejgun/haskell-tdlib
CreateBasicGroupChat.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.CreateBasicGroupChat where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | Returns an existing chat corresponding to a known basic group @basic_group_id Basic group identifier @force Pass true to create...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/81516bd04c25c7371d4a9a5c972499791111c407/src/TD/Query/CreateBasicGroupChat.hs
haskell
# LANGUAGE OverloadedStrings # | | | |
module TD.Query.CreateBasicGroupChat where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U Returns an existing chat corresponding to a known basic group @basic_group_id Basic group identifier @force Pass true to create the chat without a network request . In this...
57d5a557653dc594ead3986e6046be4686cf55699b89fa3bf8bdf9fe6ef223e7
uw-unsat/leanette-popl22-artifact
basicobject.rkt
(define (obj-id-eq self other) (let ([id1 (object-objectid self)] [id2 (object-objectid other)]) (return (= id1 id2))))
null
https://raw.githubusercontent.com/uw-unsat/leanette-popl22-artifact/80fea2519e61b45a283fbf7903acdf6d5528dbe7/rosette-benchmarks-3/rtr/verif_libraries/basicobject.rkt
racket
(define (obj-id-eq self other) (let ([id1 (object-objectid self)] [id2 (object-objectid other)]) (return (= id1 id2))))
484cb4ecdf774ad5e0b5ce08498a74175556641699c1bd730b48360907a6ef80
clojure-garden/clojure-garden
core.cljs
(ns antd.core (:require ["antd/es/avatar" :default antd.avatar] ["antd/es/badge" :default antd.badge] ["antd/es/card" :default antd.card] ["antd/es/col" :default antd.col] ["antd/es/config-provider" :default antd.config-provider] ["antd/es/divider" :default antd.divider] ["antd/es/dropdown...
null
https://raw.githubusercontent.com/clojure-garden/clojure-garden/f0ea2b5dd9b1bf5823dcb97eba4e775afa755ad8/modules/frontend/src/antd/core.cljs
clojure
Tag Avatar Badge Card Col Locale Divider Dropdown Input Image Notification Page header Row Menu Select Pagination Space Spinner Typography
(ns antd.core (:require ["antd/es/avatar" :default antd.avatar] ["antd/es/badge" :default antd.badge] ["antd/es/card" :default antd.card] ["antd/es/col" :default antd.col] ["antd/es/config-provider" :default antd.config-provider] ["antd/es/divider" :default antd.divider] ["antd/es/dropdown...
5715913422c837265825bfccd74c63c8919d76644cb1fc9b485b64c6f0616de8
lvh/caesium
auth_test.clj
(ns caesium.crypto.auth-test (:require [caesium.crypto.auth :as a] [caesium.test-utils :refer [const-test]] [caesium.vectors :as v] [clojure.test :refer [are deftest]] [caesium.byte-bufs :as bb])) (const-test a/hmacsha256-bytes 32 a/hmacsha256-keybytes 32 a/hmacsha5...
null
https://raw.githubusercontent.com/lvh/caesium/cb90a4325fa48a2e4fb6cad810f340125a53fc57/test/caesium/crypto/auth_test.clj
clojure
(ns caesium.crypto.auth-test (:require [caesium.crypto.auth :as a] [caesium.test-utils :refer [const-test]] [caesium.vectors :as v] [clojure.test :refer [are deftest]] [caesium.byte-bufs :as bb])) (const-test a/hmacsha256-bytes 32 a/hmacsha256-keybytes 32 a/hmacsha5...
774d2fef9843712b5f4db2767e8310cb587a96a888de1e54cf771f350eec8dc0
spechub/Hets
Symbol.hs
| Module : ./HasCASL / Symbol.hs Description : symbol analysis Copyright : ( c ) and Uni Bremen 2003 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable HasCASL analysed symbols of a signature Module : ....
null
https://raw.githubusercontent.com/spechub/Hets/bbaa9dd2d2e5eb1f2fd3ec6c799a6dde7dee6da2/HasCASL/Symbol.hs
haskell
| type ids within a type
| Module : ./HasCASL / Symbol.hs Description : symbol analysis Copyright : ( c ) and Uni Bremen 2003 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : experimental Portability : portable HasCASL analysed symbols of a signature Module : ....
ec753f4676507836857248a77a8a971e3a22224db167ac8da3854ba5e1b7c613
dparis/gen-phzr
webgl_stencil_manager.cljs
(ns phzr.pixi.webgl-stencil-manager (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->WebGLStencilManager "" ([] (js/PIXI.WebGLStencilManager.))) (defn bind-graphics "TODO this does not belong here! Parameters: ...
null
https://raw.githubusercontent.com/dparis/gen-phzr/e4c7b272e225ac343718dc15fc84f5f0dce68023/out/pixi/webgl_stencil_manager.cljs
clojure
(ns phzr.pixi.webgl-stencil-manager (:require [phzr.impl.utils.core :refer [clj->phaser phaser->clj]] [phzr.impl.extend :as ex] [cljsjs.phaser])) (defn ->WebGLStencilManager "" ([] (js/PIXI.WebGLStencilManager.))) (defn bind-graphics "TODO this does not belong here! Parameters: ...
dc9b5b55d4d91744879b8887d7f063935998fc88d580774655912ef4c916dd5d
robert-strandh/SICL
packages.lisp
(cl:in-package #:common-lisp-user) ;;; FIXME: The list of exported symbols is not complete. (defpackage #:sicl-clos (:use #:common-lisp) (:local-nicknames (#:env #:sicl-environment)) (:shadow #:documentation) (:export ;; Constants #:+unbound-slot-value+ MOP classes #:class #:standard-class #:built-...
null
https://raw.githubusercontent.com/robert-strandh/SICL/1e73bd611142ad9cf254258718be98b0b5f683f1/Code/CLOS/packages.lisp
lisp
FIXME: The list of exported symbols is not complete. Constants Accessors for generial standard objects. Accessors for method metaobjects. Accessors for specializer metaobjects. Accessors for class metaobjects. Accessors for generic function metaobjects. Accessors for slot definition metaobjects. Other functio...
(cl:in-package #:common-lisp-user) (defpackage #:sicl-clos (:use #:common-lisp) (:local-nicknames (#:env #:sicl-environment)) (:shadow #:documentation) (:export #:+unbound-slot-value+ MOP classes #:class #:standard-class #:built-in-class #:structure-class #:forward-referenced-class #:funcallable...
6c2ce4a72c3c4479d3d7a63f507d8b9d69d6cfee183e25175779c9ac7c65c77f
chef-boneyard/bookshelf
bksw_webmachine_sup.erl
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- %% ex: ts=4 sw=4 et @author < > Copyright 2012 Opscode , Inc. 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 w...
null
https://raw.githubusercontent.com/chef-boneyard/bookshelf/f9584e766d16d090812c8f7064651882dddc2512/src/bksw_webmachine_sup.erl
erlang
ex: ts=4 sw=4 et 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 permissions and limitations under the License. ============...
-*- erlang - indent - level : 4;indent - tabs - mode : nil ; fill - column : 92 -*- @author < > Copyright 2012 Opscode , Inc. 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 di...
09a473f5f9fb6f7d128cc46b2965d830624b53d5097f55c4130a9fd96a01d36f
vincenthz/cabal-db
Policy.hs
module Policy ( Policy(..) , getPolicy , showPolicy ) where import Database import qualified Text.PrettyPrint.ANSI.Leijen as PP import Distribution.Version data Policy = Policy_Any -- ^ no bounds | Policy_LowerBoundOnly -- ^ only a lower specified | Policy_Bounded -- ^ ...
null
https://raw.githubusercontent.com/vincenthz/cabal-db/03484a70434427daf4afb713f9c7cd4fb60ab441/Src/Policy.hs
haskell
^ no bounds ^ only a lower specified ^ when both bounds specified but not following the pvp as the version is not correct ^ unspecified ^ multiple policy in the same file. something probably went wrong in cabal-db :) String
module Policy ( Policy(..) , getPolicy , showPolicy ) where import Database import qualified Text.PrettyPrint.ANSI.Leijen as PP import Distribution.Version data Policy = ^ follow the PVP , lower bound , and higher bounds not greater to one that exist . deriving (Show,Eq,Ord) showPolicy Policy_A...
7251225fae4023b07cf11c711fc559d6cfae7c90627893c35286e34c4c0c9280
janestreet/core_unix
import.ml
open! Core module Unix = Core_unix
null
https://raw.githubusercontent.com/janestreet/core_unix/a051098a918b950e9d0a5da7248f1bbfb51388e5/time_stamp_counter/src/import.ml
ocaml
open! Core module Unix = Core_unix
845ec02a258b6739dfeb597f7f68d57bdff14097dce29f558acb705e0569b6fa
billstclair/trubanc-lisp
regex-class-util.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- $ Header : /usr / local / cvsrep / cl - ppcre / regex - class - util.lisp , v 1.8 2008/07/22 22:38:05 edi Exp $ ;;; This file contains some utility methods for REGEX objects. Copyright ( c ) 2002 - 2008 , Dr. . All rights reserved...
null
https://raw.githubusercontent.com/billstclair/trubanc-lisp/5436d2eca5b1ed10bc47eec7080f6cb90f98ca65/systems/cl-ppcre-2.0.1/regex-class-util.lisp
lisp
Syntax : COMMON - LISP ; Package : CL - PPCRE ; Base : 10 -*- This file contains some utility methods for REGEX objects. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the...
$ Header : /usr / local / cvsrep / cl - ppcre / regex - class - util.lisp , v 1.8 2008/07/22 22:38:05 edi Exp $ Copyright ( c ) 2002 - 2008 , Dr. . All rights reserved . DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY ,...
1a7fef5bcba52abd6f47b14dc043ae0effb7ef6eba20ff8d7263138bd212f000
blockfrost/blockfrost-haskell
Accounts.hs
-- | Accounts API endpoints {-# OPTIONS_HADDOCK hide #-} module Blockfrost.API.Cardano.Accounts where import Servant.API import Servant.API.Generic import Blockfrost.Types.Cardano.Accounts import Blockfrost.Types.Shared import Blockfrost.Util.Pagination import Blockfrost.Util.Sorting data AccountsAPI route = A...
null
https://raw.githubusercontent.com/blockfrost/blockfrost-haskell/5f3835736867697d14d2694504f0c96799278d95/blockfrost-api/src/Blockfrost/API/Cardano/Accounts.hs
haskell
| Accounts API endpoints # OPTIONS_HADDOCK hide #
module Blockfrost.API.Cardano.Accounts where import Servant.API import Servant.API.Generic import Blockfrost.Types.Cardano.Accounts import Blockfrost.Types.Shared import Blockfrost.Util.Pagination import Blockfrost.Util.Sorting data AccountsAPI route = AccountsAPI { _account :: route ...
d2ecd44aa2966e4a16526de4ff6bee70eb0873debaccbe996d9bcf6d4ff6028d
BinaryAnalysisPlatform/bap
bap_primus_system.ml
open Bap.Std open Bap_primus_types open Bap_knowledge open Core_kernel[@@warning "-D"] module Name = Knowledge.Name module Info = Bap_primus_info module Observation = Bap_primus_observation module Machine = Bap_primus_machine let package = "bap" let fini,finish = Observation.provide ~inspect:sexp_of_unit "fini" ...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/cbdf732d46c8e38df79d9942fc49bcb97915c657/lib/bap_primus/bap_primus_system.ml
ocaml
open Bap.Std open Bap_primus_types open Bap_knowledge open Core_kernel[@@warning "-D"] module Name = Knowledge.Name module Info = Bap_primus_info module Observation = Bap_primus_observation module Machine = Bap_primus_machine let package = "bap" let fini,finish = Observation.provide ~inspect:sexp_of_unit "fini" ...
411851f5f40b00fb72959f4157309c87808fb41444d342abbcef6d858bee5361
namin/biohacker
coverage2-rules.lisp
(rule :IMPLIED-BY ((nutrient ?x) :var ?def) (rassert! (compound ?x) (:NUTRIENT-IS-COMPOUND ?def))) (rule :IMPLIED-BY ((reaction ?reaction ?reactants . ?products) :var ?def) (let ((inputs (mapcar #'(lambda (reactant) `(compound ,reactant)) ?reactants))) (dolist (product ?products) (assert! ...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/coverage/coverage2-rules.lisp
lisp
(rule :IMPLIED-BY ((nutrient ?x) :var ?def) (rassert! (compound ?x) (:NUTRIENT-IS-COMPOUND ?def))) (rule :IMPLIED-BY ((reaction ?reaction ?reactants . ?products) :var ?def) (let ((inputs (mapcar #'(lambda (reactant) `(compound ,reactant)) ?reactants))) (dolist (product ?products) (assert! ...
9e463b89b815137d0d1879e2980a4519056baab2d6d9b14ff2872497daee7389
skulup/pulserl
pulserl_client.erl
%%%------------------------------------------------------ Copyright 2022 Monime Ltd , licensed under the Apache License , Version 2.0 ( the " License " ) ; %%%------------------------------------------------------- -module(pulserl_client). -author("Alpha Umaru Shaw <>"). -behaviour(gen_server). -include("pu...
null
https://raw.githubusercontent.com/skulup/pulserl/97b8eb16d466f5c7591e5e7e06d825ff0c648901/src/pulserl_client.erl
erlang
------------------------------------------------------ ------------------------------------------------------- API gen_server callbacks =================================================================== API =================================================================== =========================================...
Copyright 2022 Monime Ltd , licensed under the Apache License , Version 2.0 ( the " License " ) ; -module(pulserl_client). -author("Alpha Umaru Shaw <>"). -behaviour(gen_server). -include("pulserl.hrl"). -include("pulsar_api.hrl"). -export([start_link/2, stop/0]). -export([get_broker_address/1, get_broker_...
c29424b6f7cf192d0f9823fb58cbeaaaf432e9d84e98c8388c8e9322c2c9ca32
Odie/gd-edit
remove.clj
(ns gd-edit.commands.remove (:require [gd-edit.structure-walk :as sw] [gd-edit.globals :as globals] [clojure.string :as str] [gd-edit.printer :as printer] [gd-edit.commands.show :as show] [com.rpl.specter :as s] [clojure.core.match :refer [match]...
null
https://raw.githubusercontent.com/Odie/gd-edit/651d3367dc083f0d678dffe9608c9b5cc12038ad/src/gd_edit/commands/remove.clj
clojure
Want to remove the contents of a whole array? Can't remove the array itself Want to remove a single item?
(ns gd-edit.commands.remove (:require [gd-edit.structure-walk :as sw] [gd-edit.globals :as globals] [clojure.string :as str] [gd-edit.printer :as printer] [gd-edit.commands.show :as show] [com.rpl.specter :as s] [clojure.core.match :refer [match]...
88335816c9b541f65b94608908ae977ad87ae15eb04e34953c13dac2be2d2fd2
spurious/sagittarius-scheme-mirror
dderiv.scm
;;; DDERIV -- Table-driven symbolic derivation. ;;; Returns the wrong answer for quotients. ;;; Fortunately these aren't used in the benchmark. (define (lookup key table) (let loop ((x table)) (if (null? x) #f (let ((pair (car x))) (if (eq? (car pair) key) pair (loop (cdr...
null
https://raw.githubusercontent.com/spurious/sagittarius-scheme-mirror/53f104188934109227c01b1e9a9af5312f9ce997/bench/gambit-benchmarks/dderiv.scm
scheme
DDERIV -- Table-driven symbolic derivation. Returns the wrong answer for quotients. Fortunately these aren't used in the benchmark.
(define (lookup key table) (let loop ((x table)) (if (null? x) #f (let ((pair (car x))) (if (eq? (car pair) key) pair (loop (cdr x))))))) (define properties '()) (define (get key1 key2) (let ((x (lookup key1 properties))) (if x (let ((y (lookup key2 (cdr x))...
342b90f338c693c9db07cc2b891baed49225b6c4eaaf6a3777714d3effdf52e9
fstamour/breeze
syntax-tree.lisp
(in-package #:cl-user) (uiop:define-package #:breeze.syntax-tree (:documentation "Syntax tree data structure for common lisp reader") (:use #:cl) (:import-from #:breeze.utils #:symbol-package-qualified-name) (:export ;; Syntax tree types #:node #:skipped-node #:symbol-node #:read-eval-no...
null
https://raw.githubusercontent.com/fstamour/breeze/e76ce087980fdb30a4124c77177d06748ad5c73e/src/syntax-tree.lisp
lisp
Syntax tree types Type predicates Functions to extract information from specific forms TODO Use this, for better tracing Printing Type predicates Utility function TODO A "skipped node" can also be a form hidden behind a feature (#+/-)
(in-package #:cl-user) (uiop:define-package #:breeze.syntax-tree (:documentation "Syntax tree data structure for common lisp reader") (:use #:cl) (:import-from #:breeze.utils #:symbol-package-qualified-name) (:export #:node #:skipped-node #:symbol-node #:read-eval-node #:character-node ...
cd802660390e49f808134fe661cb2dfc1897bac64926bf3410824202b9772533
informatimago/lisp
swank-slime.lisp
(defpackage "COM.INFORMATIMAGO.SMALL-CL-PGMS.SLIME" (:use "COMMON-LISP") (:documentation "This package exports functions to evaluate expressions in emacs thru swank/slime.") (:export "EVAL-IN-EMACS")) (in-package "COM.INFORMATIMAGO.SMALL-CL-PGMS.SLIME") (defparameter *emacs-readtable* (let ((rt (copy-readtable...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/small-cl-pgms/irclog-prompter/swank-slime.lisp
lisp
Probably more readtable patching would be in order. to emacs lisp forms returning the corresponding emacs object. THE END ;;;;
(defpackage "COM.INFORMATIMAGO.SMALL-CL-PGMS.SLIME" (:use "COMMON-LISP") (:documentation "This package exports functions to evaluate expressions in emacs thru swank/slime.") (:export "EVAL-IN-EMACS")) (in-package "COM.INFORMATIMAGO.SMALL-CL-PGMS.SLIME") (defparameter *emacs-readtable* (let ((rt (copy-readtable...
c9e9ae25796da8e0e7ecc130c0a3ce35a3e90154dc5373f84caf831cd97cc6f7
jepsen-io/jepsen
client.clj
(ns jepsen.consul.client (:require [clojure.tools.logging :refer [debug info warn]] [clojure.string :as str] [jepsen.client :as client] [jepsen.control.net :as net] [base64-clj.core :as base64] [cheshire.core :as json] [clj-http.client :as http] ...
null
https://raw.githubusercontent.com/jepsen-io/jepsen/a75d5a50dd5fa8d639a622c124bf61253460b754/consul/src/jepsen/consul/client.clj
clojure
We got an application-level response, let's proceed! Cluster not converged yet, let's keep waiting
(ns jepsen.consul.client (:require [clojure.tools.logging :refer [debug info warn]] [clojure.string :as str] [jepsen.client :as client] [jepsen.control.net :as net] [base64-clj.core :as base64] [cheshire.core :as json] [clj-http.client :as http] ...
44c5e9a0ff0c09fc1a1afb43639f8774bd9503386a1e365887c87b0749157cac
Gbury/dolmen
parser.mli
(* This file is free software, part of Dolmen. See file "LICENSE" for more details. *) (** {2 Errors} *) val extension_not_found : string Report.error (** Error for when an extension is not found. *) val file_not_found : (string * string) Report.error (** Error for a missing file *) val lexing_error : string Repor...
null
https://raw.githubusercontent.com/Gbury/dolmen/63efe71b79122671bfb9a8ab7e654d74388209b5/src/loop/parser.mli
ocaml
This file is free software, part of Dolmen. See file "LICENSE" for more details. * {2 Errors} * Error for when an extension is not found. * Error for a missing file * Parsing errors * This module provides convenient pipes for parsing and dealing with includes.
val extension_not_found : string Report.error val file_not_found : (string * string) Report.error val lexing_error : string Report.error * Lexing errors val parsing_error : (bool * [ `Regular of Dolmen.Intf.Msg.t | `Advanced of string * Dolmen.Intf.Msg.t * Dolmen.Intf.Msg.t *...
cbb78dc276ad1f02b65e43926d3dd7616b3d78d86bd4e36d9f81584ac62e1304
emqx/emqx
emqx_machine.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy o...
null
https://raw.githubusercontent.com/emqx/emqx/a4aece396ac26149cf8a43a62c7cc48a9f10c714/apps/emqx_machine/src/emqx_machine.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2021 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_machine). -export([ start/0, graceful_shutdown/0, brutal_shutdown/0, ...
4bc989d338ecb5beb9afbd1b43ab996312dbbea9754f22b91589398e63b675d9
informatica-unica/lip
main.ml
open LetarithexprLib.Main (* read file, and output it to a string *) let read_file filename = let ch = open_in filename in let s = really_input_string ch (in_channel_length ch) in close_in ch; s ;; (* read line from standard input, and output it to a string *) let read_line () = try Some(read_line()) with...
null
https://raw.githubusercontent.com/informatica-unica/lip/f3f0ab2297943957c7dd0534895f2367097043dc/expr/letarithexpr/bin/main.ml
ocaml
read file, and output it to a string read line from standard input, and output it to a string print a result print a trace eval / read input from file wrong usage
open LetarithexprLib.Main let read_file filename = let ch = open_in filename in let s = really_input_string ch (in_channel_length ch) in close_in ch; s ;; let read_line () = try Some(read_line()) with End_of_file -> None ;; let print_val e = print_string (string_of_val e); print_newline();; let rec pr...
d1a1c05df54a493f308ece19810a63d67f195235d7e21d51a0c17ad331f9f78e
choener/BiobaseXNA
IUPAC.hs
-- | Degenerate base symbol representation. We use the same conventions as in -- <<>> which ignores -- @U@racil, except if it stands alone for @Char@ and @XNA@ targets. If the ' Degenerate ' target is @RNA@ , then we create @U@s instead of @T@s . -- -- TODO Shall we handle 'Complement' for degenerates? module Bioba...
null
https://raw.githubusercontent.com/choener/BiobaseXNA/ebec70a3906106a50c29cdbbce9a3247d6ebb15f/Biobase/Primary/IUPAC.hs
haskell
| Degenerate base symbol representation. We use the same conventions as in <<>> which ignores @U@racil, except if it stands alone for @Char@ and @XNA@ targets. If the TODO Shall we handle 'Complement' for degenerates? | Allow the full, including degenerates, alphabet. * Conversions * Raw embeddings assume DNA ...
' Degenerate ' target is @RNA@ , then we create @U@s instead of @T@s . module Biobase.Primary.IUPAC where import Control.Arrow ((***)) import Data.ByteString.Char8 (ByteString,unpack) import Data.Char (toUpper) import Data.FileEmbed (makeRelativeToProject, embedFile) import ...
6d78a1c02c2da10367d437623e4d583cad6e994f15c9296b3296f223156ef69f
overminder/YAC
Parser.hs
module Frontend.Parser ( readProg, readProgSucc ) where import Text.ParserCombinators.Parsec import Control.Monad import Frontend.ObjModel symbol :: Parser Char symbol = oneOf "!#$%&|+-*/:<=>?@^_~" readProg :: String -> Cell readProg input = case parse parseProg "Scheme" input of Left err -> List [Symbol "par...
null
https://raw.githubusercontent.com/overminder/YAC/4a2633a81bc2d5880d1e7948b0cce0037ed788b1/Frontend/Parser.hs
haskell
module Frontend.Parser ( readProg, readProgSucc ) where import Text.ParserCombinators.Parsec import Control.Monad import Frontend.ObjModel symbol :: Parser Char symbol = oneOf "!#$%&|+-*/:<=>?@^_~" readProg :: String -> Cell readProg input = case parse parseProg "Scheme" input of Left err -> List [Symbol "par...
266d3c7a64c2a824033d4a6df6480ecd9ce863e4096240cecf2d6307d16d1f2e
manuel-serrano/hop
_timer_wrap.scm
;*=====================================================================*/ * /tmp / HOPNEW / hop / nodejs/_timer_wrap.scm * / ;* ------------------------------------------------------------- */ * Author : * / * Creation : Tu...
null
https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/nodejs/_timer_wrap.scm
scheme
*=====================================================================*/ * ------------------------------------------------------------- */ * ------------------------------------------------------------- */ * Hop Timer */ *===========================...
* /tmp / HOPNEW / hop / nodejs/_timer_wrap.scm * / * Author : * / * Creation : Tue May 6 15:01:14 2014 * / * Last change : Sun Feb 23 15:13:57 2020 ( serrano ) * / * Copyright...
8728feaf42c309695304381b569680c989777a40847f0f81691ee3a4eb0dc4ec
Eventuria/demonstration-gsd
Settings.hs
# LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Eventuria.GSD.Monitoring.API.Server.Settings where import Eventuria.Commons.Logger.Core import Eventuria.Commons.Network.Core import qualified Eventuria.Libraries.PersistedStreamEngine.Instances.EventStore.Client.Settings as EventStoreClient data Settin...
null
https://raw.githubusercontent.com/Eventuria/demonstration-gsd/5c7692b310086bc172d3fd4e1eaf09ae51ea468f/src/Eventuria/GSD/Monitoring/API/Server/Settings.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # module Eventuria.GSD.Monitoring.API.Server.Settings where import Eventuria.Commons.Logger.Core import Eventuria.Commons.Network.Core import qualified Eventuria.Libraries.PersistedStreamEngine.Instances.EventStore.Client.Settings as EventStoreClient data Settin...