_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
622650e25752831b27f5d42cb9ba48a64c001fef6cd6827ed00861389a222438
ekmett/unboxed
Natural.hs
{-# Language MagicHash #-} module Unboxed.Natural ( Natural# ) where import Unboxed.Internal.Natural
null
https://raw.githubusercontent.com/ekmett/unboxed/e4c6ca80fb8946b1abfe595ba1c36587a33931db/src/Unboxed/Natural.hs
haskell
# Language MagicHash #
module Unboxed.Natural ( Natural# ) where import Unboxed.Internal.Natural
f3eb994a5c4f4a38a3d2213397182cf13847923d622bbab87b7aaf8ad591bc7b
acl2/acl2
parallel.lisp
ACL2 Version 8.5 -- A Computational Logic for Applicative Common Lisp Copyright ( C ) 2023 , Regents of the University of Texas This version of ACL2 is a descendent of ACL2 Version 1.9 , Copyright ( C ) 1997 Computational Logic , Inc. See the documentation topic NOTE-2 - 0 . ; This program is free software;...
null
https://raw.githubusercontent.com/acl2/acl2/65a46d5c1128cbecb9903bfee4192bb5daf7c036/parallel.lisp
lisp
This program is free software; you can redistribute it and/or modify it under the terms of the LICENSE file distributed with ACL2. 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...
ACL2 Version 8.5 -- A Computational Logic for Applicative Common Lisp Copyright ( C ) 2023 , Regents of the University of Texas This version of ACL2 is a descendent of ACL2 Version 1.9 , Copyright ( C ) 1997 Computational Logic , Inc. See the documentation topic NOTE-2 - 0 . Written by : ...
0999f476b033d57af7b28588de81925467de37fca34966755175db7d35bcf342
MaartenFaddegon/Hoed
Subtype.hs
module Subtype (subtype) where import Control.Monad import Data.Map (Map) import Data.Map ((!)) import qualified Data.Map as Map import Data.Set (Set) import qualified Data.Set as Set import qualified Data.List as List import Types import TypeUtils import TypedAst data Variance = Positive | Negative ...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/ZLang/1/Subtype.hs
haskell
module Subtype (subtype) where import Control.Monad import Data.Map (Map) import Data.Map ((!)) import qualified Data.Map as Map import Data.Set (Set) import qualified Data.Set as Set import qualified Data.List as List import Types import TypeUtils import TypedAst data Variance = Positive | Negative ...
9d93f45d35927dd8618b7368675a079f60635bc76a5e28da99b19f272eae5175
degree9/uikit-hl
dotnav.cljs
(ns uikit-hl.dotnav (:require [hoplon.core :as h])) (defmulti uk-dotnav! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-dotnav! elem key val)) (defn- format-dotnav [dotnav] (str "uk-dotnav-" dotnav)) (defmethod uk-dotnav! ::default [elem kw v] (h/do! elem :class {(form...
null
https://raw.githubusercontent.com/degree9/uikit-hl/b226b1429ea50f8e9a6c1d12c082a3be504dda33/src/uikit_hl/dotnav.cljs
clojure
(ns uikit-hl.dotnav (:require [hoplon.core :as h])) (defmulti uk-dotnav! h/kw-dispatcher :default ::default) (defmethod h/do! ::default [elem key val] (uk-dotnav! elem key val)) (defn- format-dotnav [dotnav] (str "uk-dotnav-" dotnav)) (defmethod uk-dotnav! ::default [elem kw v] (h/do! elem :class {(form...
ad576c9e9c75d74ca5690f55cee94adf64a97344916bd611cf19135446c5a42a
ghc/packages-base
Function.hs
{-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Function Copyright : 2006 -- License : BSD-style (see the LICENSE file in the distribution) -- -- Maintainer : -- Stability : experimental -- Portability : portable -- -...
null
https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/Data/Function.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | Module : Data.Function License : BSD-style (see the LICENSE file in the distribution) Maintainer : Stability : experimental Portability : portable Simple combinators working solely on and with func...
Copyright : 2006 module Data.Function * " Prelude " re - exports id, const, (.), flip, ($) , fix , on ) where import Prelude infixl 0 `on` | @'fix ' f@ is the least fixed point of the function @f@ , fix :: (a -> a) -> a fix f = let x = f x in x Typical usage : @'Data . ' ( ' compare ' \...
d2b4d903f2ef40ca229bb28faff65e420d16128535a834e4055960f24e70f941
ijvcms/chuanqi_dev
goods_type_config.erl
%%%------------------------------------------------------------------- @author zhengsiying %%% @doc %%% 自动生成文件,不要手动修改 %%% @end Created : 2016/10/12 %%%------------------------------------------------------------------- -module(goods_type_config). -include("common.hrl"). -include("config.hrl"). -compile([export_...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/config/goods_type_config.erl
erlang
------------------------------------------------------------------- @doc 自动生成文件,不要手动修改 @end -------------------------------------------------------------------
@author zhengsiying Created : 2016/10/12 -module(goods_type_config). -include("common.hrl"). -include("config.hrl"). -compile([export_all]). get_list() -> [{4,3}, {4,2}, {4,5}]. get({4,3}) -> #goods_type_conf{ key = 1, type = 4, sub_type = 3, cd_time = 2 }; get({4,2}) -> #goods_type_conf{ key = ...
9629250279568d2356e88955c6ec5c56a733b06ca1f4bcba60b7ae6444cabc9d
argp/bap
batHashcons.mli
* Hashcons -- a hashconsing library * Copyright ( C ) 2011 Batteries Included Development Team * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version ...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batHashcons.mli
ocaml
* Hash consing of data structures * The type [t hobj] represents hashed objects of type [t]. A hashed object contains a unique tag and a hash code. * Unique id for this object * Hash code for this object * A synonym for convenience * Comparison on the tags * Hashcons tables * type of objects in the table * ...
* Hashcons -- a hashconsing library * Copyright ( C ) 2011 Batteries Included Development Team * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation ; either * version ...
fc49acb2c2c2708ea7d67c0efcf7d2ae8252598d643135548cf670a67aca84ac
anuragsoni/poll
epoll_poll.ml
[%%import "config.h"] [%%if defined POLL_CONF_LINUX] let available = true let fd_of_int : int -> Unix.file_descr = Obj.magic module Ffi = struct external epoll_create1 : unit -> Unix.file_descr = "poll_stub_epoll_create1" external epoll_in : unit -> int = "poll_stub_epollin" external epoll_rdhup : unit -> int =...
null
https://raw.githubusercontent.com/anuragsoni/poll/a9a496cfd1a7db0df9bab0551d6f1e3fdecc627a/src/epoll_poll.ml
ocaml
[%%import "config.h"] [%%if defined POLL_CONF_LINUX] let available = true let fd_of_int : int -> Unix.file_descr = Obj.magic module Ffi = struct external epoll_create1 : unit -> Unix.file_descr = "poll_stub_epoll_create1" external epoll_in : unit -> int = "poll_stub_epollin" external epoll_rdhup : unit -> int =...
93d8a1cd4504dbfbddb0e71ab330176502f2257b0ceb645fc402e09b041176b3
ucsd-progsys/nate
compact.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/ucsd-progsys/nate/8b1267cd8b10283d8bc239d16a28c654a4cb8942/eval/sherrloc/easyocaml%2B%2B/lex/compact.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 . $ I d : compact.ml , v 1.7 2002/10/28...
a66e0c024ac8c3539d43867072859f6df9d9abff0906dac3948d005cf7455149
spechub/Hets
OWL22CASL.hs
# LANGUAGE MultiParamTypeClasses # {-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # | Module : $ Header$ Description : Comorphism from OWL 2 to CASL_Dl Copyright : ( c ) , : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional ...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/OWL2/OWL22CASL.hs
haskell
# LANGUAGE TypeSynonymInstances # CASL_DL = codomain comorphism lid domain sublogics domain Basic spec domain sentence domain symbol items domain symbol map items domain signature domain morphism domain symbol domain rawsymbol domain proof tree codomain lid codomain sublogics codomain Basic spec codomai...
# LANGUAGE MultiParamTypeClasses # # LANGUAGE FlexibleInstances # | Module : $ Header$ Description : Comorphism from OWL 2 to CASL_Dl Copyright : ( c ) , : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : non - portable ( via ...
905f429610b1d01e9187bdd777ec2ce42e39a6a22d2c77a98c50e3452525e501
rabbitmq/ra
ra_bench.erl
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. %% Copyright ( c ) 2017 - 2022 VMware , Inc. or its affiliates . All rights reserved . %% %% @hidden -module(ra_bench). -behaviour(ra_machi...
null
https://raw.githubusercontent.com/rabbitmq/ra/f81fa41b86fdc044afc0cf832355806a9edfeb81/src/ra_bench.erl
erlang
@hidden profile/0, stop_profile/0 msg_ids are scoped per customer ra_indexes holds all raft indexes for enqueues currently on queue wait for each pid error_logger:logfile(filename:join(ra_env:data_dir(), "log.log")), then top up as they are applied profile() -> lg_file_tracer, Gz...
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. Copyright ( c ) 2017 - 2022 VMware , Inc. or its affiliates . All rights reserved . -module(ra_bench). -behaviour(ra_machine). -compile(in...
81bc4cf54821002feb0d712914f15ee4f5550cd42e5b3026c170bf5f76c4edf0
dextroamphetamine/nuko
Text.hs
module Nuko.Report.Text ( Color(..), Mode(..), Piece(..), colorlessFromFormat, DetailedDiagnosticInfo(..), PrettyDiagnostic(..), Severity(..), Annotation(..), mkBasicDiagnostic, ) where import Relude import Nuko.Report.Range (Range) data Severity = Warning | Error | Information | Hint data...
null
https://raw.githubusercontent.com/dextroamphetamine/nuko/1b6f960eeeebbfcbfb5700279c39758f82e7df28/src/Nuko/Report/Text.hs
haskell
module Nuko.Report.Text ( Color(..), Mode(..), Piece(..), colorlessFromFormat, DetailedDiagnosticInfo(..), PrettyDiagnostic(..), Severity(..), Annotation(..), mkBasicDiagnostic, ) where import Relude import Nuko.Report.Range (Range) data Severity = Warning | Error | Information | Hint data...
01bcdad5e4e40d7dbc12c4a2d70a7ccbbafda97be740996fe34f076da5fe3018
vlstill/hsExprTest
wrap-err.1.nok.hs
f = True t = True
null
https://raw.githubusercontent.com/vlstill/hsExprTest/391fc823c1684ec248ac8f76412fefeffb791865/test/wrap-err.1.nok.hs
haskell
f = True t = True
c7b10eac34a3325da3b30fbfb9b17876164e5e98b1615b0872b7ff93baf9fb9a
benoitc/cbt
cbt_stream_tests.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/benoitc/cbt/49b99e56f406f918739adde152e8a4908e755521/test/cbt_stream_tests.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(cbt_stream_tests). -include("cbt_tests.hrl"). setup() -> {ok, Fd} = cbt_file:open(?tempfile(), [create, overwrite]), {ok, Stream} = cbt_s...
e043a6b03a5578d559244c26c633b2ad6fdf1b7a3092c5203f387db1d9a046de
dongcarl/guix
substitute.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2014 < > Copyright © 2018 < > Copyright © 2020 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modif...
null
https://raw.githubusercontent.com/dongcarl/guix/d2b30db788f1743f9f8738cb1de977b77748567f/guix/scripts/substitute.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2013 , 2014 , 2015 , 2016 , 2017 , 2018 , 2019 , 2020 , 2021 < > Copyright © 2014 < > Copyright © 2018 < > Copyright © 2020 < > 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...
92803b68120952072fb2aa125cbdc7fa138ffc933ba73f5b3a8e560a5faf119d
ocaml-multicore/tezos
script_typed_ir.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/ocaml-multicore/tezos/e4fd21a1cb02d194b3162ab42d512b7c985ee8a9/src/proto_alpha/lib_protocol/script_typed_ir.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2020 Metastate AG < > Copyright ( c ) 2021 - 2022 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit pers...
8d081af4d30d91b0c4bb24e7494793385b331c13c6a1bcfcf2bd2909af3389a9
ZHaskell/stdio
UTF8Codec.hs
# LANGUAGE BangPatterns # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # | Module : Std . Data . Text . UTF8Codec Description : UTF-8 codecs and helpers . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable UT...
null
https://raw.githubusercontent.com/ZHaskell/stdio/7887b9413dc9feb957ddcbea96184f904cf37c12/std-data/Std/Data/Text/UTF8Codec.hs
haskell
| Return a codepoint's encoded length in bytes If the codepoint is invalid, we return 3(encoded bytes length of replacement char @\U+FFFD@). This function assumed there're enough space for encoded bytes, and return the advanced index. | The unboxed version of 'encodeChar'. This function is marked as @NOINLINE@...
# LANGUAGE BangPatterns # # LANGUAGE MagicHash # # LANGUAGE UnboxedTuples # | Module : Std . Data . Text . UTF8Codec Description : UTF-8 codecs and helpers . Copyright : ( c ) , 2017 - 2018 License : BSD Maintainer : Stability : experimental Portability : non - portable UT...
bbef72792b5f60125a949f66f40ffb5f611aa64ac330096e54c88177201859fb
kakaranet/monitor
hal_sup.erl
-module(hal_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> {ok, { {one_for_one, 5, 10}, []} }.
null
https://raw.githubusercontent.com/kakaranet/monitor/348ac7e51721f94c95dc29c611addb5da6e18e57/apps/hal/src/hal_sup.erl
erlang
-module(hal_sup). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). start_link() -> supervisor:start_link({local, ?MODULE}, ?MODULE, []). init([]) -> {ok, { {one_for_one, 5, 10}, []} }.
6dd78beff74a053998763fe73c9cfc6a0a7eaa2ca666ea089c7ef21a688b7ba7
IBM/wcs-ocaml
json.mli
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
null
https://raw.githubusercontent.com/IBM/wcs-ocaml/b237b7057f44caa09d36e466be015e2bc3173dd5/wcs-lib/json.mli
ocaml
* Json utilities. * The [null] value of JSON. * [int n] build the value of JSON [n]. * [bool b] build the value of JSON [b]. * [string s] build the value of JSON [s]. * [assoc o] build the JSON object [o]. * [list l] build the JSON list [l]. * [set o x v] add (or replace) the a field [x] of the object [o] wit...
* This file is part of the Watson Conversation Service OCaml API project . * * Copyright 2016 - 2017 IBM Corporation * * 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...
50ff56a7c3b3aafdb9bbd4946a2061e6d9c841da800cc37c00bbf517e3627d2d
OCamlPro/techelson
sigs.mli
open Base open Common (** Contract environment. Contains a type and some functions to store - a user-provided name-contract map (for deployment) - a map from addresses to live (deployed) contracts *) module type ContractEnv = sig (** The underlying theory. *) module Theory : Theo.Sigs.Theory ...
null
https://raw.githubusercontent.com/OCamlPro/techelson/932fbf08675cd13d34a07e3b3d77234bdafcf5bc/src/5_stack/sigs.mli
ocaml
* Contract environment. Contains a type and some functions to store - a user-provided name-contract map (for deployment) - a map from addresses to live (deployed) contracts * The underlying theory. * Type of the contract environment. * An operation. We do not use `Theory.operation` directly be...
open Base open Common module type ContractEnv = sig module Theory : Theo.Sigs.Theory type t type operation val clone : t -> t val expired_uids : t -> IntSet.t module Op : sig val fmt : formatter -> operation -> unit val op : t -> operation -> Theory.operation * MustFail v...
f4e7bf88748c21e12bd43a4028249270ab8cfa9edf5e2d2a7fb060438f154b87
GlideAngle/flare-timing
Mask.hs
{-# OPTIONS_GHC -fplugin Data.UnitsOfMeasure.Plugin #-} # OPTIONS_GHC -fno - warn - partial - type - signatures # module Mask (writeMask) where import Control.Lens ((^?), element) import Control.Monad.Except (runExceptT) import Control.Concurrent.ParallelIO (parallel) import Flight.Clip (FlyCut(..), FlyClipping(..)...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/34873946be9b93c37048ed118ef5b4649c71d630/lang-haskell/flare-timing/prod-apps/mask-arrival/Mask.hs
haskell
# OPTIONS_GHC -fplugin Data.UnitsOfMeasure.Plugin # Arrivals (as). NOTE: We're not using either kind of arrival bonus distance pushing a flight to goal so that it arrives. NOTE: For time and leading points do not use altitude bonus distances.
# OPTIONS_GHC -fno - warn - partial - type - signatures # module Mask (writeMask) where import Control.Lens ((^?), element) import Control.Monad.Except (runExceptT) import Control.Concurrent.ParallelIO (parallel) import Flight.Clip (FlyCut(..), FlyClipping(..)) import qualified Flight.Comp as Cmp (Nominal(..)) impor...
5d11dacbbc30542005618ae93014d07ac07f754554c6d1ceff10703bde5e69c5
Kakadu/fp2022
channel.mli
* Copyright 2021 - 2022 , Kakadu , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later type 'v t val create : unit -> 'v t val send : 'v t -> 'v -> unit val receive : 'v t -> 'v
null
https://raw.githubusercontent.com/Kakadu/fp2022/7b828b045771dfa9da59f547a555e05d382fc9cd/Golang/lib/channel.mli
ocaml
* Copyright 2021 - 2022 , Kakadu , and contributors * SPDX - License - Identifier : LGPL-3.0 - or - later type 'v t val create : unit -> 'v t val send : 'v t -> 'v -> unit val receive : 'v t -> 'v
a0a27f161cb3b9168a94643032907b059125f570138bb28c7640c392580ac0ce
vodori/missing
core_test.clj
(ns missing.core-test (:require [clojure.test :refer :all :exclude (testing)] [missing.core :refer :all] [clojure.set :as sets]) (:import (java.time Duration) (java.util Arrays))) (def invokes (atom [])) (def capture (fn [x] (swap! invokes conj x) x)) (def clear! (fn [] (reset! i...
null
https://raw.githubusercontent.com/vodori/missing/aec1678a1fecf781f11174a4fbad0315ce37f981/test/missing/core_test.clj
clojure
(ns missing.core-test (:require [clojure.test :refer :all :exclude (testing)] [missing.core :refer :all] [clojure.set :as sets]) (:import (java.time Duration) (java.util Arrays))) (def invokes (atom [])) (def capture (fn [x] (swap! invokes conj x) x)) (def clear! (fn [] (reset! i...
fd67123b2e7d5e15bad5d4c821c96119b024f48ffc03b855f8e3102acc52343e
aryx/lfs
duree_logic.ml
open Common open Common_logic type interval = Val of int | Sup of int | Inf of int | In of (int * int) let parse = fun s -> match s with | s when s =~ "^[0-9]+$" -> Val (s_to_i s) | s when s =~ "^>\\([0-9]+\\)$" -> Sup (s_to_i (matched1 s)) | s when s =~ "^<\\([0-9]+\\)$" -> Inf (s_to_i (matched1 s)) | s...
null
https://raw.githubusercontent.com/aryx/lfs/b931530c7132b77dfaf3c99d452dc044fce37589/p_logic/duree_logic.ml
ocaml
sugar
open Common open Common_logic type interval = Val of int | Sup of int | Inf of int | In of (int * int) let parse = fun s -> match s with | s when s =~ "^[0-9]+$" -> Val (s_to_i s) | s when s =~ "^>\\([0-9]+\\)$" -> Sup (s_to_i (matched1 s)) | s when s =~ "^<\\([0-9]+\\)$" -> Inf (s_to_i (matched1 s)) | s...
59aa62412d8878dc69cd0c4435b208023e7d19203589712f0554051bee4140fb
votinginfoproject/data-processor
external_file.clj
(ns vip.data-processor.validation.v6.external-file (:require [korma.core :as korma] [vip.data-processor.db.postgres :as postgres] [vip.data-processor.validation.v5.util :as util] [vip.data-processor.errors :as errors] [clojure.tools.logging :as log])) (def validate-no-...
null
https://raw.githubusercontent.com/votinginfoproject/data-processor/b4baf334b3a6219d12125af8e8c1e3de93ba1dc9/src/vip/data_processor/validation/v6/external_file.clj
clojure
(ns vip.data-processor.validation.v6.external-file (:require [korma.core :as korma] [vip.data-processor.db.postgres :as postgres] [vip.data-processor.validation.v5.util :as util] [vip.data-processor.errors :as errors] [clojure.tools.logging :as log])) (def validate-no-...
31b90896f1554ce618c3458c509db91214d746108ef896e25bd4b53254cec038
metabase/metabase
rotate_encryption_key_test.clj
(ns metabase.cmd.rotate-encryption-key-test (:require [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] [metabase.cmd :as cmd] [metabase.cmd.dump-to-h2-test :as dump-to-h2-test] [metabase.cmd.load-from-h2 :as load-from-h2] [metabase.cmd.rotate-encryption-key :refer [rotate-encryption-key!]] ...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/cmd/rotate_encryption_key_test.clj
clojure
at this point, all the state switching craziness that happens for `metabase.util.i18n.impl/site-locale-from-setting` has already taken place, so this function has been bootstrapped to now return the site locale from the real, actual setting function the trouble is, when we are swapping out the app DB, attempting to...
(ns metabase.cmd.rotate-encryption-key-test (:require [clojure.java.jdbc :as jdbc] [clojure.test :refer :all] [metabase.cmd :as cmd] [metabase.cmd.dump-to-h2-test :as dump-to-h2-test] [metabase.cmd.load-from-h2 :as load-from-h2] [metabase.cmd.rotate-encryption-key :refer [rotate-encryption-key!]] ...
5e186ae00a647730e71297d7f41f994a3428df5157cb6661093eb03514c38c55
wh5a/thih
LetBind.hs
Output : 20 foo :: Int -> Int foo = \y -> let -- app :: (a -> b) -> a -> b app = \f x -> f x fun :: (a -> b) -> a -> b fun = let -- myid :: a -> a myid = \x -> x -- bar :: (a -> b) -> a -> b ...
null
https://raw.githubusercontent.com/wh5a/thih/dc5cb16ba4e998097135beb0c7b0b416cac7bfae/hatchet/examples/LetBind.hs
haskell
app :: (a -> b) -> a -> b myid :: a -> a bar :: (a -> b) -> a -> b ram :: (a -> b) -> a -> b main :: Int
Output : 20 foo :: Int -> Int foo = \y -> let app = \f x -> f x fun :: (a -> b) -> a -> b fun = let myid = \x -> x bar = app in myid (let ram = bar i...
dd03207a4cb8076a6d2bfc4075c5d268edc4948044d58b4d53285db834b8fd03
IndianRoboticsOrganization/ArimaTTS
INST_us_VOX_duration.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Carnegie Mellon University ; ; ; and and ; ; ; Copyright ( c ) 1998 - 2000 ...
null
https://raw.githubusercontent.com/IndianRoboticsOrganization/ArimaTTS/7377dca466306e2e6b90a063427273142cd50616/festvox/src/vox_files/us/INST_us_VOX_duration.scm
scheme
;;; ; ; ; ; ; ; ; ; ;;; Permission is hereby granted, free of charge, to use and distribute ;;; this software and its documentation without restriction, including ;;; withou...
Duration for English (require 'INST_us_VOX_durdata) (define (INST_us_VOX::select_duration) "(INST_us_VOX::select_duration) Set up duration for English." (set! duration_cart_tree INST_us_VOX::zdur_tree) (set! duration_ph_info INST_us_VOX::phone_durs) (Parameter.set 'Duration_Method 'Tree_ZScores) (Paramete...
4c583d7d514cd48e19a42ff30c37db7670a842dc9840a521f5b1570b45da5263
sneeuwballen/zipperposition
SClause.ml
* { 1 Simple Clause } open Logtk module TPAsKey = struct type t = (Term.t * Position.t) let equal = (fun (_,p1) (_,p2) -> Position.equal p1 p2) let hash = (fun (_,p1) -> Position.hash p1) let compare = (fun (_,p1) (_,p2) -> Position.compare p1 p2) end module TPSet = CCSet.Make(TPAsKey) type flag = int typ...
null
https://raw.githubusercontent.com/sneeuwballen/zipperposition/71798cc0559d2c365ad43a0a54e204a2d079cebd/src/prover/SClause.ml
ocaml
* unique ID of the clause * the literals * boolean trail * boolean flags for the clause * {2 Flags} print a single boolean box conversion to simple formula after instantiation, including the substitution used for instantiating
* { 1 Simple Clause } open Logtk module TPAsKey = struct type t = (Term.t * Position.t) let equal = (fun (_,p1) (_,p2) -> Position.equal p1 p2) let hash = (fun (_,p1) -> Position.hash p1) let compare = (fun (_,p1) (_,p2) -> Position.compare p1 p2) end module TPSet = CCSet.Make(TPAsKey) type flag = int typ...
4246fff1236fe18e7bc7469e5688444064e4fe4b485aa76e90296c4b43e1bbcd
mlakewood/roll-a-ball
player.clj
(ns rollball.player (:require [arcadia.core :as a] [arcadia.linear :as l] [rollball.common :refer [ensure-hook! ensure-state! ensure-game-object!]] ) (:import [UnityEngine Input GameObject Vector3])) (defn set-count-text [go] (let [count (a/state go :count) count-tex...
null
https://raw.githubusercontent.com/mlakewood/roll-a-ball/b5c9d5c74ca974e3da77c3d88cd8dc4f6007f776/Assets/rollball/player.clj
clojure
(ns rollball.player (:require [arcadia.core :as a] [arcadia.linear :as l] [rollball.common :refer [ensure-hook! ensure-state! ensure-game-object!]] ) (:import [UnityEngine Input GameObject Vector3])) (defn set-count-text [go] (let [count (a/state go :count) count-tex...
c64ebdcdad7e9d3920cd89653cccd2720ab043c3620f84db37c177c34f8ce20f
sky-big/RabbitMQ
amqp_channels_manager.erl
The contents of this file are subject to the Mozilla Public License %% Version 1.1 (the "License"); you may not use this file except in %% compliance with the License. You may obtain a copy of the License at %% / %% Software distributed under the License is distributed on an " AS IS " %% basis, WITHOUT WARRANTY OF ...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/plugins-src/rabbitmq-erlang-client/src/amqp_channels_manager.erl
erlang
Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at / basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. 连接进程的Pid amqp_...
The contents of this file are subject to the Mozilla Public License Software distributed under the License is distributed on an " AS IS " The Original Code is RabbitMQ . The Initial Developer of the Original Code is GoPivotal , Inc. Copyright ( c ) 2007 - 2014 GoPivotal , Inc. All rights reserved . @priv...
5b8d360da78f40378141d70aef5316bd508de2dd25b6b88eb8019a77a8dffc01
philnguyen/soft-contract
issue-105.rkt
#lang racket (struct foo (x)) (define leak (foo 'foo)) (provide (contract-out (foo-x (-> foo? integer?)) (leak foo?)))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/unsafe/issues/issue-105.rkt
racket
#lang racket (struct foo (x)) (define leak (foo 'foo)) (provide (contract-out (foo-x (-> foo? integer?)) (leak foo?)))
d453c159e8f9de66be7eb776554008b76ee48fb5b59d4056b6e983e13395ea6a
vseloved/cl-parsec
arithmetic.lisp
(in-package :parsec-test) (defparser spaces () (skip-many #\Space)) (defparser expression () (prog1 (many+ #'tok) (spaces) (eof))) (defparser tok () (spaces) (either #`(parse-integer (coerce (many+ #`(parsecall #'digit-char-p)) 'string)) #`(parsecall #\( :...
null
https://raw.githubusercontent.com/vseloved/cl-parsec/f86660cc7d372df598d2a8348040a4b53c90631f/examples/arithmetic.lisp
lisp
(in-package :parsec-test) (defparser spaces () (skip-many #\Space)) (defparser expression () (prog1 (many+ #'tok) (spaces) (eof))) (defparser tok () (spaces) (either #`(parse-integer (coerce (many+ #`(parsecall #'digit-char-p)) 'string)) #`(parsecall #\( :...
83a9d1d8af14458ceb9e995fe7a04d7eace3febf92c6c46041de7110aead85f7
herd/herdtools7
ASLParseTest.ml
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/daedd7431cb00884afea2ec39749222e2c367c6b/herd/ASLParseTest.ml
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2023 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
e5c715db59c78eccf395c886b3db0851bf3d9e5ea881b0fb94468d3358eba02f
CloudI/CloudI
cloudi_service_http_rest.erl
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : %%% %%%------------------------------------------------------------------------ %%% @doc %%% ==CloudI HTTP REST Integration== Provide an easy way of connecting CloudI service ...
null
https://raw.githubusercontent.com/CloudI/CloudI/ec951deffbedcce823b16f82cef89e768f2ac07c/src/lib/cloudi_service_http_rest/src/cloudi_service_http_rest.erl
erlang
------------------------------------------------------------------------ @doc ==CloudI HTTP REST Integration== arguments. @end Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), the rights to use, copy, modify, me...
-*-Mode : erlang;coding : utf-8;tab - width:4;c - basic - offset:4;indent - tabs - mode:()-*- ex : set utf-8 sts=4 ts=4 sw=4 et nomod : Provide an easy way of connecting CloudI service requests to Erlang function calls for a HTTP REST API , with service configuration MIT License Copyright ( c ) 2015 - 20...
b7483cc544e7c529466533c39d39f4e74ad7eb88a08a23b30c44deb949560a8d
IGJoshua/glfw-clj
core_test.clj
(ns glfw-clj.core-test (:require [clojure.test :as t] [glfw-clj.core :as sut])) (t/deftest a-test (t/testing "FIXME, I fail." (t/is (= 0 1))))
null
https://raw.githubusercontent.com/IGJoshua/glfw-clj/9cfb2830924f752bad5031f1b8895ee6fba0d6cb/test/glfw_clj/core_test.clj
clojure
(ns glfw-clj.core-test (:require [clojure.test :as t] [glfw-clj.core :as sut])) (t/deftest a-test (t/testing "FIXME, I fail." (t/is (= 0 1))))
e637313c44c61e7346774fa32b5cfaa34a21469f642762b6eca40241c6d2a2a7
target/theta-idl
Versions.hs
{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} | This module specifies which versions of the Theta protocol are supported by this version of the package ( library and -- executables). -- -- Each release of the package can support a range of versions. Theta -- modules specify the versions ne...
null
https://raw.githubusercontent.com/target/theta-idl/2bda6a8836817f8d782c2165d7f250fe296b97c2/theta/src/Theta/Versions.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings # executables). Each release of the package can support a range of versions. Theta modules specify the versions needed to work with the module in the module metadata; any module whose versions are not supported by this release will fail with a graceful e...
| This module specifies which versions of the Theta protocol are supported by this version of the package ( library and module Theta.Versions where import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Version as Cabal import Test.QuickCheck (Arbitrary ...
3e4622d419455786099abe715ed6dc1e19b56c24fc11e11aa7be0b17c9a61f66
wyager/metastrip
Main.hs
module Main (main) where import qualified Options.Applicative as OA import Control.Applicative (some, (<|>), (<**>)) import qualified Codec.Picture as Pic import Lib(Aggressiveness(Normal,High),fastRandom,clean') import Crypto.Random (getRandomBytes) import qualified Data.ByteArray.Encoding as BE...
null
https://raw.githubusercontent.com/wyager/metastrip/9b8236ea5c7305512d55a17c89e94582a5969374/app/Main.hs
haskell
How to name the output files Where to put them How much to randomize the pixels How many threads to do it on
module Main (main) where import qualified Options.Applicative as OA import Control.Applicative (some, (<|>), (<**>)) import qualified Codec.Picture as Pic import Lib(Aggressiveness(Normal,High),fastRandom,clean') import Crypto.Random (getRandomBytes) import qualified Data.ByteArray.Encoding as BE...
ec2c618c2965de04c1162b0b4e8acec8b3295cd05459a2c6d510c9852728f96d
facebook/duckling
Tests.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.PhoneNumber.Tests ( tests ) where import Data.Strin...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/tests/Duckling/PhoneNumber/Tests.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. module Duckling.PhoneNumber.Tests ( tests ) where import Data.String import Prelude import Test.Tasty import Test.Tasty.HUnit import Duckling.Dimensions.Types import Duckling.PhoneNumber.Corpus import Duckling.PhoneNumber.Types import Duckling.Testing.Asserts ...
7417f8c827d671217566f83f8fd2235ac8ffe3a1e176f3e9704847b1518526de
f-o-a-m/kepler
Class.hs
# LANGUAGE UndecidableInstances # module Tendermint.Utils.TxClient.Class ( ClientConfig(..) , RunTxClient(..) , HasTxClient(..) , EmptyTxClient(..) , defaultClientTxOpts ) where import Control.Monad.IO.Class (liftIO) import Control.Monad.Reader (ReaderT, ask) ...
null
https://raw.githubusercontent.com/f-o-a-m/kepler/6c1ad7f37683f509c2f1660e3561062307d3056b/hs-abci-test-utils/src/Tendermint/Utils/TxClient/Class.hs
haskell
| How to make a request. | Singleton type representing a client for an empty API.
# LANGUAGE UndecidableInstances # module Tendermint.Utils.TxClient.Class ( ClientConfig(..) , RunTxClient(..) , HasTxClient(..) , EmptyTxClient(..) , defaultClientTxOpts ) where import Control.Monad.IO.Class (liftIO) import Control.Monad.Reader (ReaderT, ask) ...
9c8b5e109b9df734252573eca5a7bb9c5c63b75ba060ffc854a2624e5f847299
cbaggers/skitter
keys.lisp
(in-package skitter.sdl2.keys) (defun key.id (name/event) (etypecase name/event (keyword (or (position name/event skitter.sdl2::*key-button-names*) (error "key.id: invalid name ~s" name/event))) (t (error "key.id: Must be given a keyword name or an instance of the button event.~%Recieved ~s" ...
null
https://raw.githubusercontent.com/cbaggers/skitter/620772ae6146d510a8d58d07cae055c06e5c8620/sdl2/keys.lisp
lisp
(in-package skitter.sdl2.keys) (defun key.id (name/event) (etypecase name/event (keyword (or (position name/event skitter.sdl2::*key-button-names*) (error "key.id: invalid name ~s" name/event))) (t (error "key.id: Must be given a keyword name or an instance of the button event.~%Recieved ~s" ...
01ae6c56227405acae4b7874d736f00fb307d01e11bc005692d35424051af84a
artyom-poptsov/guile-smc
guile.scm
;;; guile.scm -- Guile-SMC state machine compiler procedures. Copyright ( C ) 2021 - 2022 Artyom V. Poptsov < > ;; ;; This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the L...
null
https://raw.githubusercontent.com/artyom-poptsov/guile-smc/a29c7f01ad175c19210bd5815ce387be08268735/modules/smc/compiler/guile.scm
scheme
guile.scm -- Guile-SMC state machine compiler procedures. This program is free software: you can redistribute it and/or modify (at your option) any later version. The program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITN...
Copyright ( C ) 2021 - 2022 Artyom V. Poptsov < > it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License The procedures in this module produce a Scheme code...
caaa2ce90f41444142f1f04bd8ca45d376f576fda0d5f8350dc0872fa1dceaeb
mauricioszabo/repl-tooling
cljs-blob.cljs
(extend-protocol IPrintWithWriter js/Error (-pr-writer [ex writer _] (-write writer "#error ") (-write writer {:type (.-name ex) :message (.-message ex) :trace (->> ex .-stack clojure.string/split-lines)}...
null
https://raw.githubusercontent.com/mauricioszabo/repl-tooling/a340895ebaf79791decb8354903958fd186b586c/resources/cljs-blob.cljs
clojure
(extend-protocol IPrintWithWriter js/Error (-pr-writer [ex writer _] (-write writer "#error ") (-write writer {:type (.-name ex) :message (.-message ex) :trace (->> ex .-stack clojure.string/split-lines)}...
129fc4655989baf1024f26f800ced05b7adc635a55dc2212b5c361c066493438
LeapYear/github-rest
Query.hs
# LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE ScopedTypeVariables # module Query (tests) where import Data.Aeson (Value) import Data.ByteString.Lazy (ByteString) import qualified Data.ByteString.Lazy.Char8 as Char8 import qualified Data.Text.Lazy.Encoding as Text import Network.HTTP.Types (sta...
null
https://raw.githubusercontent.com/LeapYear/github-rest/520e6c09f0cc494c89b696aad97c6c77c2551900/test/Query.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # module Query (tests) where import Data.Aeson (Value) import Data.ByteString.Lazy (ByteString) import qualified Data.ByteString.Lazy.Char8 as Char8 import qualified Data.Text.Lazy.Encoding as Text import Network.HTTP.Types (status404) import Test.Tasty (TestName...
28ca2ee8ff9647e53ea75d3af077bea4db52cefa653cd3051d9487c49ac2ef61
voidlizard/emufat
EncodeVM.hs
Copyright ( c ) 2014 , -- All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of source code must retain the above copyright notice, this -- list of conditions and the follo...
null
https://raw.githubusercontent.com/voidlizard/emufat/e1cdbebfd7c26f1362cd59273d856d5e13db36b5/src/EncodeVM.hs
haskell
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in ...
Copyright ( c ) 2014 , THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLAR...
4dd5c128710af8c9f027422a60dccdf76e010faa34116de2b868c58443880231
Zulu-Inuoe/clution
do-enumerable.lisp
enumerable - enumerable implementation for CL , using cl - cont Written in 2018 by < > ;;; ;;;To the extent possible under law, the author(s) have dedicated all copyright ;;;and related and neighboring rights to this software to the public domain ;;;worldwide. This software is distributed without any warran...
null
https://raw.githubusercontent.com/Zulu-Inuoe/clution/b72f7afe5f770ff68a066184a389c23551863f7f/cl-clution/qlfile-libs/enumerable-master/src/do-enumerable.lisp
lisp
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. with this software. If not, see </>. Constant expression, just get its type Try and find its declare...
enumerable - enumerable implementation for CL , using cl - cont Written in 2018 by < > You should have received a copy of the CC0 Public Domain Dedication along (in-package #:enumerable) (eval-when (:compile-toplevel :load-toplevel :execute) (defun %derived-fun-type (function) #+sbcl (sb-im...
adc4d464f949377af9f476a0138469a71de4559ac26f96fec5794db410359f07
RoadRunnr/dtlsex
dtlsex_ssl2.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2007 - 2011 . 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/RoadRunnr/dtlsex/6cb9e52ff00ab0e5f33e0c4b54bf46eacddeb8e7/src/dtlsex_ssl2.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 2007 - 2011 . 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 " Purpose : Handles sslv2 hello as clients...
a7672eb055e656547002b0a0803645467b5d058cbb61f83b26b9f61bdd4508e0
input-output-hk/plutus-apps
Server.hs
# LANGUAGE FlexibleContexts # {-# LANGUAGE NamedFieldPuns #-} # LANGUAGE NumericUnderscores # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TypeApplications # module Cardano.Node.Server ( main ) where import Cardano.BM.Data.Trace (Trace) import Cardano.Node.API (API) import Cardano.Node.Emulator.Pa...
null
https://raw.githubusercontent.com/input-output-hk/plutus-apps/e8688b8f86a92b285e7d93eb418ccc314ad41bf9/plutus-pab/src/Cardano/Node/Server.hs
haskell
# LANGUAGE NamedFieldPuns # # LANGUAGE OverloadedStrings #
# LANGUAGE FlexibleContexts # # LANGUAGE NumericUnderscores # # LANGUAGE TypeApplications # module Cardano.Node.Server ( main ) where import Cardano.BM.Data.Trace (Trace) import Cardano.Node.API (API) import Cardano.Node.Emulator.Params (Params (..)) import Cardano.Node.Emulator.TimeSlot (SlotConfig (Sl...
3463b52980dc396185db296e007cce9af9a552efb8a1920dd35db34e5e33f85c
bjorng/esdl
sdl_img.erl
Copyright ( c ) 2007 %% %% See the file "license.terms" for information on usage and redistribution %% of this file, and for a DISCLAIMER OF ALL WARRANTIES. %% %% $Id$ %% %%%---------------------------------------------------------------------- %%% File : sdl_img.erl Author : < at users.sourceforg...
null
https://raw.githubusercontent.com/bjorng/esdl/dbd8ce9228aa36828091df2e8706c364094a3e22/src/sdl_img.erl
erlang
See the file "license.terms" for information on usage and redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. $Id$ ---------------------------------------------------------------------- File : sdl_img.erl SDL_image 1.2.4) -----------------------------------------------------...
Copyright ( c ) 2007 Author : < at users.sourceforge.net > Purpose : Provide access to SDL 's image functions ( tested with Created : 18 Feb 2007 by < at users.sourceforge.net > -module(sdl_img). -include("sdl_img_funcs.hrl"). -include("sdl_util.hrl"). -include("sdl_video.hrl"). -export([]). -expo...
bd97897ac22452a15baf8b6b4d0701c0b9054ca36a38bc236484e934ceb459ab
ztellman/riddley
walk.clj
(ns riddley.walk (:refer-clojure :exclude [macroexpand]) (:require [riddley.compiler :as cmp])) (defn macroexpand "Expands both macros and inline functions. Optionally takes a `special-form?` predicate which identifies first elements of expressions that shouldn't be macroexpanded, and honors local bind...
null
https://raw.githubusercontent.com/ztellman/riddley/b5fe7c63ac9eaf55a23a855796d9bb7ee5f24567/src/riddley/walk.clj
clojure
might look like a macro, but for our purposes it isn't if we can't macroexpand any further, check if it's an inlined function unfortunately, static function calls can look a lot like what we just expanded, so prevent infinite expansion register a local for the function, if it's named special case to handle cloju...
(ns riddley.walk (:refer-clojure :exclude [macroexpand]) (:require [riddley.compiler :as cmp])) (defn macroexpand "Expands both macros and inline functions. Optionally takes a `special-form?` predicate which identifies first elements of expressions that shouldn't be macroexpanded, and honors local bind...
511c801e292f8a298d5399005d9f58b2bd35bc7a041e0314e2de1260238b328b
tmfg/mmtis-national-access-point
admin.cljs
(ns ote.style.admin "Admin panel styles" (:require [stylefy.core :as stylefy] [garden.units :refer [pt px em]])) (def modal-data-label {:font-size "1.1em" :color "#323232" :font-weight "400" :text-align "right" ...
null
https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/src/cljs/ote/style/admin.cljs
clojure
(ns ote.style.admin "Admin panel styles" (:require [stylefy.core :as stylefy] [garden.units :refer [pt px em]])) (def modal-data-label {:font-size "1.1em" :color "#323232" :font-weight "400" :text-align "right" ...
7679e2d22689746ca0fca1ee4ec7bfcea147d734cd855f1705ae8322e7d996c4
graninas/The-Amoeba-World
View.hs
module Amoeba.View.View where import Amoeba.View.Language import Amoeba.View.Output.Types import Amoeba.View.Output.Runtime import Amoeba.View.Output.Utils modifyView _ (StartViewPointMoving scrPt) view = view {runtimeVirtualPlainShift = Just (toUserViewPoint scrPt, toUserViewPoint scrPt)} modifyView _ (ViewPointMov...
null
https://raw.githubusercontent.com/graninas/The-Amoeba-World/a147cd4dabf860bec8a6ae1c45c02b030916ddf4/src/Amoeba/View/View.hs
haskell
module Amoeba.View.View where import Amoeba.View.Language import Amoeba.View.Output.Types import Amoeba.View.Output.Runtime import Amoeba.View.Output.Utils modifyView _ (StartViewPointMoving scrPt) view = view {runtimeVirtualPlainShift = Just (toUserViewPoint scrPt, toUserViewPoint scrPt)} modifyView _ (ViewPointMov...
ece3930a78c2b4b452544587afae783068af91e3312ebc821eeb08cb4939c035
openbadgefactory/salava
my_test.clj
(ns salava.badge.my-test (:require [midje.sweet :refer :all] [salava.core.migrator :as migrator] [salava.test-utils :refer [test-api-request test-user-credentials login! logout!]])) (def test-user 1) (def user-with-no-badges 3) (def badge-id 1) (facts "about user's badges" (fact "use...
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/test_old/clj/salava/badge/my_test.clj
clojure
(ns salava.badge.my-test (:require [midje.sweet :refer :all] [salava.core.migrator :as migrator] [salava.test-utils :refer [test-api-request test-user-credentials login! logout!]])) (def test-user 1) (def user-with-no-badges 3) (def badge-id 1) (facts "about user's badges" (fact "use...
25e64fa057e781f96208bb3aae29c60121cec3c7e03b6d3c5b7baeb9bdfd9671
mtravers/wuwei
heroku-setup.lisp
(in-package :cl-user) (print ">>> Building system....") ( asdf : clear - system " " ) ;(asdf:clear-system "wuwei-examples") (load (make-pathname :directory *build-dir* :defaults "wuwei.asd")) This is NOT WORKING , and the build gets from Quicklisp . But that 's better than what it was doing before , which was ...
null
https://raw.githubusercontent.com/mtravers/wuwei/c0968cca10554fa12567d48be6f932bf4418dbe1/heroku-setup.lisp
lisp
(asdf:clear-system "wuwei-examples")
(in-package :cl-user) (print ">>> Building system....") ( asdf : clear - system " " ) (load (make-pathname :directory *build-dir* :defaults "wuwei.asd")) This is NOT WORKING , and the build gets from Quicklisp . But that 's better than what it was doing before , which was using a completely obsolete version .....
d8cfbac2bf131b3cc845941cd299f62e73d205f529fb73cc75f60218f8183591
3b/learnopengl
triangle1.lisp
using 3bgl - shader for lisp - like shaders starting here , rather than ;;; storing c-like shaders in strings ;; types are keywords named like the glsl versions, :vec4, :float, etc. ;; built-in functions and variables have mixedCase names converted to ;; lisp-style names, like glPosition -> gl-position ' swizzle...
null
https://raw.githubusercontent.com/3b/learnopengl/30f910895ef336ac5ff0b4cc676af506413bb953/factored/triangle1.lisp
lisp
storing c-like shaders in strings types are keywords named like the glsl versions, :vec4, :float, etc. built-in functions and variables have mixedCase names converted to lisp-style names, like glPosition -> gl-position Types for globals (in/out/uniform/constant) must be specified, while most types within function...
using 3bgl - shader for lisp - like shaders starting here , rather than ' swizzles ' are written like ( .xxyz foo ) instead of 's " foo.xxyz " 3bgl - shader has an API for defining shaders mixed in with normal (defpackage triangle1/shaders (:use #:3bgl-glsl/cl) of CL : POSITION as ( input position : vec...
833d85aab78b388147d7f12684e770036697ac55628da6db77a27638e55ba843
jkrivine/tl_interpreter
ledger.ml
open Tools (** Syntactic sugar *) open Env.Imp.Program module MP = MP module SP = SP module A = Address type token = A.t type pos = A.t type amount = int (*type t = {map : ((A.t * string * token),amount) MP.t ; zcrossings : int; zwrapping: bool}*) type t = {map : (A.t,((string * token),amount) MP.t) MP.t ; zcrossin...
null
https://raw.githubusercontent.com/jkrivine/tl_interpreter/c967c6578dd4491a6930c9842a0709fbc5939496/lib/tooling/ledger.ml
ocaml
* Syntactic sugar type t = {map : ((A.t * string * token),amount) MP.t ; zcrossings : int; zwrapping: bool}
open Tools open Env.Imp.Program module MP = MP module SP = SP module A = Address type token = A.t type pos = A.t type amount = int type t = {map : (A.t,((string * token),amount) MP.t) MP.t ; zcrossings : int; zwrapping: bool} let solvent hk = let {zcrossings;_} = data_get hk in return (zcrossings = 0) let zwr...
7c1cc4462d817ba498ab9d426ea9270ec16a35d71bfce9e068f1e49ac345ad6f
zadean/xqerl
fn_parse_xml_SUITE.erl
-module('fn_parse_xml_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(['parse-xml-001'/1]). -export(['parse-xml-002'/1]). -export(['parse-xml-003'/1]). -...
null
https://raw.githubusercontent.com/zadean/xqerl/1a94833e996435495922346010ce918b4b0717f2/test/fn/fn_parse_xml_SUITE.erl
erlang
-module('fn_parse_xml_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(['parse-xml-001'/1]). -export(['parse-xml-002'/1]). -export(['parse-xml-003'/1]). -...
77d0efa7d65f60f8014a1e83ee0854cde7666e98a4121e3f6ecede95f6a5d552
mpickering/apply-refact
Default46.hs
h a = flip f x $ y z
null
https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Default46.hs
haskell
h a = flip f x $ y z
998d9b4183246fbf42570e74df869550cba59dfd339d7b45097ce92acae034a2
input-output-hk/plutus
Hedgehog.hs
-- | Reexports from modules from the @PlutusCore.Generators.Internal@ folder. module PlutusCore.Generators.Hedgehog ( module Export ) where import PlutusCore.Generators.Hedgehog.Builtin as Export import PlutusCore.Generators.Hedgehog.Denotation as Export import PlutusCore.Generators.Hedgehog.Entity as Export ...
null
https://raw.githubusercontent.com/input-output-hk/plutus/867fd234301d28525404de839d9a3c8220cbea63/plutus-core/testlib/PlutusCore/Generators/Hedgehog.hs
haskell
| Reexports from modules from the @PlutusCore.Generators.Internal@ folder.
module PlutusCore.Generators.Hedgehog ( module Export ) where import PlutusCore.Generators.Hedgehog.Builtin as Export import PlutusCore.Generators.Hedgehog.Denotation as Export import PlutusCore.Generators.Hedgehog.Entity as Export import PlutusCore.Generators.Hedgehog.TypedBuiltinGen as Export import PlutusC...
3e96272a5b3a4f1932b3e96ee0a5e264d2f4f69f02546c593a87ce682d203ca0
ocaml-ppx/ppx
ppx_driver_runner.ml
Ppx.Driver.standalone ()
null
https://raw.githubusercontent.com/ocaml-ppx/ppx/40e5a35a4386d969effaf428078c900bd03b78ec/runner/ppx_driver_runner.ml
ocaml
Ppx.Driver.standalone ()
9d01190e9c5e12270a77b45892140a03dc8c421ea5bd7c053371fff7e212fcb4
scrintal/heroicons-reagent
plus_small.cljs
(ns com.scrintal.heroicons.solid.plus-small) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M12 5.25a.75.75 0 01.75.75v5.25H18a.75.75 0 010 1.5h-5.25V18a.75.75 0 01-1.5 0v...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/plus_small.cljs
clojure
(ns com.scrintal.heroicons.solid.plus-small) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:fillRule "evenodd" :d "M12 5.25a.75.75 0 01.75.75v5.25H18a.75.75 0 010 1.5h-5.25V18a.75.75 0 01-1.5 0v...
279858bdd1d4f5f50be94a8ce200c7834123d97afc72de90156c46a711f93ed2
ml4tp/tcoq
okey.ml
(*********************************************************************************) Cameleon (* *) Copyright ( C ) 2005 Institut National de Recherche en Informatiqu...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/ide/utils/okey.ml
ocaml
******************************************************************************* en Automatique. All rights reserved. ...
Cameleon Copyright ( C ) 2005 Institut National de Recherche en Informatique et it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; either version 2 of the ...
b9e3ca248fdac9004fe991777316cf4bcddca7a0d39b3e6a6083bfd732cc733c
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
TreasuryTransactionsResourceBalanceImpact.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema TreasuryTransactionsResourceBalanceImpact module StripeAPI.Types.TreasuryTra...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/TreasuryTransactionsResourceBalanceImpact.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Defines the object schema located at @components.schemas.treasury_transactions_resource_balance_impact@ in the specification. Change to a FinancialAccount\'s balance | cash: The change made to funds the user can spend right now. | inbound_pending: The change...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema TreasuryTransactionsResourceBalanceImpact module StripeAPI.Types.TreasuryTransactionsResourceBalanceImpact where import qualified Control....
d19ed6f76049c1d053731bc62f7a6c0e8c42fe458e87251d006f0f8a961a101e
inaka/elvis_core
pass_numeric_format_elvis_attr.erl
-module(pass_numeric_format_elvis_attr). -export([for_test/0]). -elvis([{elvis_style, numeric_format, #{regex => "^[^_]+$"}}]). for_test() -> { 1 , 2 , 10 , 100 , 1000 , 2#1010101 , 16#FACE , 1.1010101 , 0.34e12 , -1 , -10 , -1000 , -2#1010101 , -16#FACE , ...
null
https://raw.githubusercontent.com/inaka/elvis_core/468bd3498f1782fd74ef3d8eb1b36217b0b76c11/test/examples/pass_numeric_format_elvis_attr.erl
erlang
-module(pass_numeric_format_elvis_attr). -export([for_test/0]). -elvis([{elvis_style, numeric_format, #{regex => "^[^_]+$"}}]). for_test() -> { 1 , 2 , 10 , 100 , 1000 , 2#1010101 , 16#FACE , 1.1010101 , 0.34e12 , -1 , -10 , -1000 , -2#1010101 , -16#FACE , ...
1c4285f84a2746e6c5e96e81b4351b9601708994c07956ceac019a56dbc727b3
learningclojurescript/code-examples
core.cljs
(ns match-demo.core (:require [cljs.core.match :refer-macros [match]])) (defprotocol foo (bar [this])) (deftype baz [] Object (bar [this] 5)) ;; basic (let [v [:a :a :b]] (match v [_ :a :a] 1 [:a :b _ ] 2 [_ _ :a] 3 [_ _ :b] 4 :else 5)) ;; local bindings (match [:x :y] [:y a] a ...
null
https://raw.githubusercontent.com/learningclojurescript/code-examples/fdbd0e35ae5a16d53f1f784a52c25bcd4e5a8097/chapter-7/match-demo/src/match_demo/core.cljs
clojure
basic local bindings vectors maps sequential types rest patterns or guards general function application define your app data so that it doesn't get over-written on reload optionally touch your app-state to force rerendering depending on your application (swap! app-state update-in [:__figwheel_counter] inc)
(ns match-demo.core (:require [cljs.core.match :refer-macros [match]])) (defprotocol foo (bar [this])) (deftype baz [] Object (bar [this] 5)) (let [v [:a :a :b]] (match v [_ :a :a] 1 [:a :b _ ] 2 [_ _ :a] 3 [_ _ :b] 4 :else 5)) (match [:x :y] [:y a] a [b :y] b :els...
54094c2deab271133b87e92d61723913f792fca593fdf9f163fedbed405c5ea1
savonet/ocaml-posix
gen_constants_c.ml
module Constants = Posix_base.Generators.Types (struct module Types = Posix_types_constants.Def let defines = String.concat "\n" (List.map (fun t -> let name = String.uppercase_ascii t in Printf.sprintf "\n\ #define %s_SIZE sizeof(%s)\n\ ...
null
https://raw.githubusercontent.com/savonet/ocaml-posix/729f49d572d24b749a26e73fce970f05c3fd60f2/posix-types/src/generator/gen_constants_c.ml
ocaml
module Constants = Posix_base.Generators.Types (struct module Types = Posix_types_constants.Def let defines = String.concat "\n" (List.map (fun t -> let name = String.uppercase_ascii t in Printf.sprintf "\n\ #define %s_SIZE sizeof(%s)\n\ ...
adc20572e515f017609ed8fbd4106065ea07a34bd9a5733bd5ea162adde7bd54
semerdzhiev/fp-2020-21
flatten.rkt
#lang racket (require rackunit) (require rackunit/text-ui) ; flatten функция , влагане в списъци за да я имплементираме , е хубаво да atom ? и / или list ? хубаво е и да помислим дали не може да използваме някоя от map / filter / fold за проблема (define (flatten xs) (void) ) (define tests (test-s...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-b/exercises/06.map-filter-fold/flatten.rkt
racket
flatten
#lang racket (require rackunit) (require rackunit/text-ui) функция , влагане в списъци за да я имплементираме , е хубаво да atom ? и / или list ? хубаво е и да помислим дали не може да използваме някоя от map / filter / fold за проблема (define (flatten xs) (void) ) (define tests (test-suite "flat...
ea4c58f78039b3be60cc415b56c6632c4c468951cd33f48a9d4f2f100f9d6e80
fccm/glMLite
cylinder.ml
* cylinder drawing demo * * FUNCTION : * Basic demo illustrating how to write code to draw * the most basic cylinder shape . * * HISTORY : * Linas Vepstas March 1995 * Copyright ( c ) 1995 Linas Vepstas < > * 2008 - OCaml version by * cylinder drawing demo * * FUNCTION: * Basic...
null
https://raw.githubusercontent.com/fccm/glMLite/c52cd806909581e49d9b660195576c8a932f6d33/gle-examples/cylinder.ml
ocaml
the arrays which define the polyline initialize the join style here draw the cylinder shape set up some matrices so that the object spins with the mouse ------------------------ end of file -------------------
* cylinder drawing demo * * FUNCTION : * Basic demo illustrating how to write code to draw * the most basic cylinder shape . * * HISTORY : * Linas Vepstas March 1995 * Copyright ( c ) 1995 Linas Vepstas < > * 2008 - OCaml version by * cylinder drawing demo * * FUNCTION: * Basic...
42107a7dcf3a6473b685acea8c50903063445a816355f347adba1bb82a3b5455
AngryLawyer/reactjs_of_ocaml
ReactJS.mli
class type react_element = object end class type react_class = object end class type react_props = object end type tag_type = | Tag_name of string | React_class of react_class type content_type = | Dom_string of string | React_element of react_element Js.t | Element_list of content_type list |...
null
https://raw.githubusercontent.com/AngryLawyer/reactjs_of_ocaml/e89b077cc5c43b09021234478a82e66f2bfe5c37/lib/ReactJS.mli
ocaml
class type react_element = object end class type react_class = object end class type react_props = object end type tag_type = | Tag_name of string | React_class of react_class type content_type = | Dom_string of string | React_element of react_element Js.t | Element_list of content_type list |...
1cdd21997a62277ced971b661a9724fab5ddfa4d2f13e6e32457c58cd1efa57a
seryh/example-selenium-project
profile.clj
этот ns реализует логику по работе с профайлами позволяющую использовать как chromedriver так и phantomjs драйвер а также использовать проект windows и * nix (ns example-selenium-project.profile (:use [clj-webdriver.driver :only [init-driver]]) (:require [clojure.test :refer :all] [utils.webdr...
null
https://raw.githubusercontent.com/seryh/example-selenium-project/5b14b187c0efb7d935a5f385d638257b5dba21d4/src/example_selenium_project/profile.clj
clojure
этот ns реализует логику по работе с профайлами позволяющую использовать как chromedriver так и phantomjs драйвер а также использовать проект windows и * nix (ns example-selenium-project.profile (:use [clj-webdriver.driver :only [init-driver]]) (:require [clojure.test :refer :all] [utils.webdr...
e4bd8a52b08ea89ed3e6576101b8a62872726071ce6a422af862d33baed7a32c
sarabander/p2pu-sicp
2.97.scm
;; Added procedures to reduce fractions (define (install-polynomial-package) ;; internal procedures ;; representation of poly (define (make-poly variable term-list) (cons variable term-list)) (define (variable p) (car p)) (define (term-list p) (cdr p)) ; (define (variable? x) (symbol? x)) (define (...
null
https://raw.githubusercontent.com/sarabander/p2pu-sicp/fbc49b67dac717da1487629fb2d7a7d86dfdbe32/2.5/2.97.scm
scheme
Added procedures to reduce fractions internal procedures representation of poly representation of terms and termlists Greatest common divisor of polynomials Original: (define (gcd-terms a b) (if (empty-termlist? b) a (gcd-terms b (remainder-terms a b)))) Uses pseudoremainder-terms and removes common fa...
(define (install-polynomial-package) (define (make-poly variable term-list) (cons variable term-list)) (define (variable p) (car p)) (define (variable? x) (symbol? x)) (define (same-variable? v1 v2) (and (variable? v1) (variable? v2) (eq? v1 v2))) (define (adjoin-term term term-list) (if (and (...
fc9052203fff363301545926a260ea8993fdae1599a024d4d52b1ec12216f270
dmitryvk/sbcl-win32-threads
cross-misc.lisp
;;;; cross-compile-time-only replacements for miscellaneous unportable ;;;; stuff This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public doma...
null
https://raw.githubusercontent.com/dmitryvk/sbcl-win32-threads/5abfd64b00a0937ba2df2919f177697d1d91bde4/src/code/cross-misc.lisp
lisp
cross-compile-time-only replacements for miscellaneous unportable stuff more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. be safely degraded to ordinary THE. MAYBE-INLINE and FREEZE-TYPE dec...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB!IMPL") In correct code , TRULY - THE has only a performance impact and can (defmacro truly-the (type expr)...
e99f52786408565e1252009b241b1bfbbfb24e837d5635f8b0c04697ced21afe
CodyReichert/qi
example.lisp
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp -*- ;;; ;;; This is example of Unix-opts, a minimalistic parser of command line ;;; options. ;;; Copyright © 2015 ;;; ;;; Permission is hereby granted, free of charge, to any person obtaining a ;;; copy of this software and associated documentation files (the " Softwar...
null
https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/unix-opts-master/example/example.lisp
lisp
-*- Mode: Lisp; Syntax: ANSI-Common-Lisp -*- This is example of Unix-opts, a minimalistic parser of command line options. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the without limitation the rights to use, copy, modify, mer...
Copyright © 2015 " Software " ) , to deal in the Software without restriction , including distribute , sublicense , and/or sell copies of the Software , and to permit persons to whom the Software is furnished to do so , subject to in all copies or substantial portions of the Software . THE SOFTWARE IS PRO...
061a0e220c8e9a12e9e396c0529fc54623c9411844e1ffcda6c7ca8ee261f97d
8c6794b6/guile-tjit
readline.scm
;;;; readline.scm --- support functions for command-line editing ;;;; Copyright ( C ) 1997 , 1999 , 2000 , 2001 , 2002 , 2006 , 2009 , 2010 , 2011 , 2013 , 2014 Free Software Foundation , Inc. ;;;; ;;;; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General P...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/guile-readline/ice-9/readline.scm
scheme
readline.scm --- support functions for command-line editing This program is free software; you can redistribute it and/or modify either version 3 , or ( 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 warra...
Copyright ( C ) 1997 , 1999 , 2000 , 2001 , 2002 , 2006 , 2009 , 2010 , 2011 , 2013 , 2014 Free Software Foundation , Inc. 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 the Free Software Foundation , Inc. , 51 Franklin ...
ff1a6e3da084487ce7f23f0dd38e1b732aae55cb8a8341df05dd2cb0a663ca12
nallen05/logv
logv.lisp
; ; ; ; todo: -log rotation script ; -different log levels (in-package :logv) ; default logv environment (defvar *default-log-env* :default-logv-env) ; global database of environments (defvar *log-envs* nil) ;; (env-name . env-plist) ; log environment settings (defun .verify-log-env-exists (log-env-name) ...
null
https://raw.githubusercontent.com/nallen05/logv/2a6e76f60f4bd3ea2cb17554fe6a0a8665552e0e/logv.lisp
lisp
todo: -log rotation script -different log levels default logv environment global database of environments (env-name . env-plist) log environment settings writing to the log file creating new loggers -T: then things that write to the log write to *STANDARD-OUTPUT* -NIL: then things that normally wr...
(in-package :logv) (defvar *default-log-env* :default-logv-env) (defun .verify-log-env-exists (log-env-name) (if (assoc log-env-name *log-envs*) t (error "unknown log environment ~A. known loggers are: ~A" log-env-name (mapcar 'first *log-envs*)))) (defun .get-log-setting (key log-env-name) (get...
58396ed1d997aaf7e558114220821c27cc11731295698342e93d179e98fb43eb
callum-oakley/advent-of-code
01.clj
(ns aoc.2017.01 (:require [clojure.test :refer [deftest is]])) (defn parse [s] (mapv #(- (int %) (int \0)) s)) (defn part-* [offset ds] (->> (range (count ds)) (keep #(when (= (ds %) (ds (mod (+ offset %) (count ds)))) (ds %))) (apply +))) (defn part-1 [ds] (part-* 1 ds)) (d...
null
https://raw.githubusercontent.com/callum-oakley/advent-of-code/da5233fc0fd3d3773d35ee747fd837c59c2b1c04/src/aoc/2017/01.clj
clojure
(ns aoc.2017.01 (:require [clojure.test :refer [deftest is]])) (defn parse [s] (mapv #(- (int %) (int \0)) s)) (defn part-* [offset ds] (->> (range (count ds)) (keep #(when (= (ds %) (ds (mod (+ offset %) (count ds)))) (ds %))) (apply +))) (defn part-1 [ds] (part-* 1 ds)) (d...
de3a15240e5478a324ac5cbad6d0463d55d17fd044c8610504d98833f40e39b5
CSCfi/rems
attachment_types.cljc
(ns rems.common.attachment-types (:require [clojure.string :as str] [clojure.test :refer [deftest is]])) (def allowed-extensions [".pdf" ".txt" ".doc" ".docx" ".odt" ".ppt" ".pptx" ".odp" ".xls" ".xlsx" ".ods" ".csv" ".tsv" ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tif" ".tiff" ...
null
https://raw.githubusercontent.com/CSCfi/rems/644ef6df4518b8e382cdfeadd7719e29508a26f0/src/cljc/rems/common/attachment_types.cljc
clojure
(ns rems.common.attachment-types (:require [clojure.string :as str] [clojure.test :refer [deftest is]])) (def allowed-extensions [".pdf" ".txt" ".doc" ".docx" ".odt" ".ppt" ".pptx" ".odp" ".xls" ".xlsx" ".ods" ".csv" ".tsv" ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tif" ".tiff" ...
d3a6d12b81e5afeed65ceb6e18054913e3942a31ff3237c30559d8c38f078e06
progman1/genprintlib
checkpoints.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/progman1/genprintlib/acc1e5cc46b9ce6191d0306f51337581c93ffe94/debugger/4.07.1/checkpoints.mli
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 Primitives open Debugcom type checkpoint_state =...
6e5d96872d1aed15119243f16b15857ae9c5b35d9d19cc13d0b38ee99524c012
rcherrueau/APE
stacker.rkt
#lang racket/base (require racket/port (for-syntax racket/base)) ;; From ;; Reader ;; ;; Implementation of stacker reader. The reader is in charge of ;; parsing your program and producing an AST in return. To do so, the ;; reader implements a specific methods call `read-syntax' that takes ;; your program...
null
https://raw.githubusercontent.com/rcherrueau/APE/8b5302709000bd043b64d46d55642acb34ce5ba7/racket/beautifulracket/stacker.rkt
racket
From Reader Implementation of stacker reader. The reader is in charge of parsing your program and producing an AST in return. To do so, the reader implements a specific methods call `read-syntax' that takes your program as an `input-port' and produces a s-exp `syntax' then tells racket where to find the semant...
#lang racket/base (require racket/port (for-syntax racket/base)) object that represents your AST wrapped into a ` module ' . The module The reader of the ` stacker ' language produces an AST derived from the (provide read-syntax) (define (read-syntax src-path in) (define src-lines (port->lines in)...
14b3f4bf11150ec46ec61c5943e1df9c8e3d0152a6088e2252ca505761f1500a
glguy/advent
05.hs
{-# Language QuasiQuotes, ImportQualifiedPost #-} | Module : Main Description : Day 5 solution Copyright : ( c ) , 2022 License : ISC Maintainer : < > > > > : { : main + " [ D ] \n\ \[N ] [ C ] \n\ \[Z ] [ M ] [ P]\n\ \ 1 2 3 \n\ \\n\...
null
https://raw.githubusercontent.com/glguy/advent/d40b64f5789e4790b368855a942203ce5d86cef5/solutions/src/2022/05.hs
haskell
# Language QuasiQuotes, ImportQualifiedPost #
| Module : Main Description : Day 5 solution Copyright : ( c ) , 2022 License : ISC Maintainer : < > > > > : { : main + " [ D ] \n\ \[N ] [ C ] \n\ \[Z ] [ M ] [ P]\n\ \ 1 2 3 \n\ \\n\ \move 1 from 2 to 1\n\ \move 3 from 1...
3c9a7419e4657abe08107603f359c45d48e45ff2373fb87642379aa1226ac68c
moss/haskell-roguelike-challenge
iatmwotk.hs
module IAmThatMerryWandererOfTheNight where import Control.Monad import System.Console.ANSI import System.IO type Position = (Int, Int) data Command = MoveLeft | MoveDown | MoveUp | MoveRight | Quit | Unknown deriving (Eq) initScreen = do ...
null
https://raw.githubusercontent.com/moss/haskell-roguelike-challenge/2163c3aa6f14051bc2360de0d7a1694b54ef73a3/2-i-am-that-merry-wanderer-of-the-night/iatmwotk.hs
haskell
module IAmThatMerryWandererOfTheNight where import Control.Monad import System.Console.ANSI import System.IO type Position = (Int, Int) data Command = MoveLeft | MoveDown | MoveUp | MoveRight | Quit | Unknown deriving (Eq) initScreen = do ...
6f9bbba1b902e2f62e080fd5f71decf6a3b738cede8d178c925b555cb405fbb7
Ptival/yugioh
DrawPhase.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # -- | During the draw phase, players can draw a card. Eventually, they'll be -- able to do some additional things, like activate specific effects. module YuGiOh.DrawPhase ( drawPhase, ) where import Control.Monad (...
null
https://raw.githubusercontent.com/Ptival/yugioh/855e8f22c3ff322c7ca1d0a1fa96c50a54724aeb/lib/YuGiOh/DrawPhase.hs
haskell
# LANGUAGE GADTs # | During the draw phase, players can draw a card. Eventually, they'll be able to do some additional things, like activate specific effects.
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # module YuGiOh.DrawPhase ( drawPhase, ) where import Control.Monad (replicateM_) import Polysemy import qualified YuGiOh.Lenses as L import YuGiOh.Move as Move import YuGiOh.Operation import YuGiOh.Phase import YuGiOh.Victory import Prelu...
d63e8d134318a32c121f7d5c4e75b8ffe4653a5df90df9b8bc27568e79e1c7c6
coalton-lang/coalton
parse-form.lisp
(defpackage #:coalton-impl/ast/parse-form (:use #:cl #:coalton-impl/algorithm #:coalton-impl/ast/pattern #:coalton-impl/ast/node #:coalton-impl/ast/parse-error) (:local-nicknames (:util #:coalton-impl/util)) (:export #:parse-form)) (in-package #:coalton-impl/ast/parse-form) (defun parse-for...
null
https://raw.githubusercontent.com/coalton-lang/coalton/f7332d085211e63f114a63587eed3f63d0352f59/src/ast/parse-form.lisp
lisp
Abstraction Let Lisp Match The Return Bind Application EXPR already flunked PROPER-LIST-P, so it's a dotted list. Separate bindings from type declarations Check that all declarations have a matching binding Perform variable renaming Do *NOT* parse LISP-EXPRS! Convert integer literals into fromInt calls. T...
(defpackage #:coalton-impl/ast/parse-form (:use #:cl #:coalton-impl/algorithm #:coalton-impl/ast/pattern #:coalton-impl/ast/node #:coalton-impl/ast/parse-error) (:local-nicknames (:util #:coalton-impl/util)) (:export #:parse-form)) (in-package #:coalton-impl/ast/parse-form) (defun parse-for...
f65856c10caac2aa29b38e9dd2c916926df29f6d2dee98ec3dacb9acfcfde8a9
niquola/reframe-template
routing.cljs
(ns frames.routing (:require-macros [reagent.ratom :refer [reaction]]) (:require [reagent.core :as reagent] [re-frame.core :as rf] [clojure.string :as str] [clojure.set :as set] [route-map.core :as route-map])) (defn dispatch-routes [_] (let [fragment (.. js/window...
null
https://raw.githubusercontent.com/niquola/reframe-template/6482afabc1967d2b6cb39ddc3fc0158075535700/srcs/frames/routing.cljs
clojure
(ns frames.routing (:require-macros [reagent.ratom :refer [reaction]]) (:require [reagent.core :as reagent] [re-frame.core :as rf] [clojure.string :as str] [clojure.set :as set] [route-map.core :as route-map])) (defn dispatch-routes [_] (let [fragment (.. js/window...
8614cadd2198b0a86c335fdfedc5eaeec02982cc406db43360b8a7eeb88192c0
jacobobryant/eelchat
app.clj
(ns com.eelchat.feat.app (:require [com.biffweb :as biff :refer [q]] [com.eelchat.feat.subscriptions :as sub] [com.eelchat.middleware :as mid] [com.eelchat.ui :as ui] [clojure.string :as str] [ring.adapter.jetty9 :as jetty] [rum.core :as rum] ...
null
https://raw.githubusercontent.com/jacobobryant/eelchat/8b7eb0776a6c121d75abe6a4088dd2ffd77c1024/src/com/eelchat/feat/app.clj
clojure
Make sure this message comes after the user's message.
(ns com.eelchat.feat.app (:require [com.biffweb :as biff :refer [q]] [com.eelchat.feat.subscriptions :as sub] [com.eelchat.middleware :as mid] [com.eelchat.ui :as ui] [clojure.string :as str] [ring.adapter.jetty9 :as jetty] [rum.core :as rum] ...
fefabb22253b3ccad524f16a61153003b26e3878ee3908927e29e62f6f142a89
erlang/otp
raw_file_io_inflate.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2017 - 2022 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/erlang/otp/daccb908c6d46bef5b1129fac66e1cdacb5e0568/lib/kernel/src/raw_file_io_inflate.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2017 - 2022 . 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(raw_file_io_inflate). -behavior(gen_statem). -export([init/1, callback_mode/0, terminate/3]). -export([open...
a7986ced13eb771f44b211329e2161e60a2c7260f1a97caff801c94687c4e4ac
tlehman/sicp-exercises
ex-1.25.scm
Exercise 1.25 : complains that we went to a lot of ; extra work in writing expmod. After all, she says, since we already ; know how to compute exponentials, we could have simple written (define (expmod base exp m) (remainder (fast-expt base exp) m)) ; Is she correct? ; Yes. ; Would this procedure serve as...
null
https://raw.githubusercontent.com/tlehman/sicp-exercises/57151ec07d09a98318e91c83b6eacaa49361d156/ex-1.25.scm
scheme
extra work in writing expmod. After all, she says, since we already know how to compute exponentials, we could have simple written Is she correct? Yes. Would this procedure serve as well for our fast prime tester? Explain. No, since it has to compute the whole exponentiation and then take the remainder, t...
Exercise 1.25 : complains that we went to a lot of (define (expmod base exp m) (remainder (fast-expt base exp) m))
c6c7d21d8f85a2f0036a49505841f2b914eaeb7af4a5efc1e304c28babdc1e24
RefactoringTools/HaRe
D3.hs
module LiftOneLevel.D3 where {-lift 'sq' to top level. This refactoring only affects the current module. -} sumSquares (x:xs) = sq x + sumSquares xs where sq x = x ^ pow sumSquares [] = 0 pow = 2
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/LiftOneLevel/D3.hs
haskell
lift 'sq' to top level. This refactoring only affects the current module.
module LiftOneLevel.D3 where sumSquares (x:xs) = sq x + sumSquares xs where sq x = x ^ pow sumSquares [] = 0 pow = 2
46f8c1f1fc3c7643056e92931d115d0b75b9a15875014561f4d01ce8500f587e
ptal/AbSolute
bot.ml
Copyright 2014 This program is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . This program is distr...
null
https://raw.githubusercontent.com/ptal/AbSolute/469159d87e3a717499573c1e187e5cfa1b569829/src/core/bot.ml
ocaml
* Adds a bottom element to a data-type.
Copyright 2014 This program is free software ; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation ; either version 3 of the License , or ( at your option ) any later version . This program is distr...
c2531195e62dcab4c86e65a0cfd14a5c0f8a989a0cc6bb9caa1182316c89bab5
yetanalytics/dave
json.clj
(ns com.yetanalytics.dave.filter-scratch.json (:require [clojure.spec.alpha :as s])) (s/def ::any (s/nilable (s/or :scalar (s/or :string string? :number (s/or :double (s/double-in :infinite? false :NaN? false ...
null
https://raw.githubusercontent.com/yetanalytics/dave/7a71c2017889862b2fb567edc8196b4382d01beb/scratch/filter-scratch/src/main/com/yetanalytics/dave/filter_scratch/json.clj
clojure
Key paths, a subset of what clojure uses for get/assoc/update-in that applies to JSON
(ns com.yetanalytics.dave.filter-scratch.json (:require [clojure.spec.alpha :as s])) (s/def ::any (s/nilable (s/or :scalar (s/or :string string? :number (s/or :double (s/double-in :infinite? false :NaN? false ...
c36c42377f08e6b12437bc69960a209c3631b0cc3e8212ba89ba8c23a0ad4ceb
samply/blaze
common.clj
(ns blaze.db.impl.search-param.composite.common (:require [blaze.anomaly :as ba :refer [if-ok when-ok]] [blaze.byte-string :as bs] [blaze.coll.core :as coll] [blaze.db.impl.protocols :as p] [blaze.fhir-path :as fhir-path] [clojure.string :as str]) (:import [clojure.lang IReduceInit])) ...
null
https://raw.githubusercontent.com/samply/blaze/7afce7769059a68561b76fe756ff858b6d9813d7/modules/db/src/blaze/db/impl/search_param/composite/common.clj
clojure
(ns blaze.db.impl.search-param.composite.common (:require [blaze.anomaly :as ba :refer [if-ok when-ok]] [blaze.byte-string :as bs] [blaze.coll.core :as coll] [blaze.db.impl.protocols :as p] [blaze.fhir-path :as fhir-path] [clojure.string :as str]) (:import [clojure.lang IReduceInit])) ...
d7020869becf31886af53b925b56009369ed15a4fe3457d06b98cc5c50e9eb0b
jfacorro/klarna-loves-erlang-meetup-2020
bank_default_handler.erl
%% basic handler -module(bank_default_handler). %% Cowboy REST callbacks -export([allowed_methods/2]). -export([init/2]). -export([allow_missing_post/2]). -export([content_types_accepted/2]). -export([content_types_provided/2]). -export([delete_resource/2]). -export([is_authorized/2]). -export([known_content_type/2])....
null
https://raw.githubusercontent.com/jfacorro/klarna-loves-erlang-meetup-2020/61795af0ac80ac7afa4a00a215342988e5aac45f/apps/bank/src/bank_default_handler.erl
erlang
basic handler Cowboy REST callbacks Handlers
-module(bank_default_handler). -export([allowed_methods/2]). -export([init/2]). -export([allow_missing_post/2]). -export([content_types_accepted/2]). -export([content_types_provided/2]). -export([delete_resource/2]). -export([is_authorized/2]). -export([known_content_type/2]). -export([malformed_request/2]). -export([...
a48ca8b377c1834a58b046c2b69e6add2b9075004635e6d3cc5b37aadbeca434
asmala/clj-simple-form
util_test.clj
(ns clj-simple-form.util-test (:use [clojure.test] [clj-simple-form.util]) (:require [clj-simple-form.mock-html-ns])) (deftest test-html-fns (testing "set-html-fns! and html-fn" (testing "Function map" (set-html-fns! {:hello-world (fn [] "Hello World!")}) (is (= ((html-fn :hello-world)) "...
null
https://raw.githubusercontent.com/asmala/clj-simple-form/b1c566b1f0fe532639b15832b557f1608598a0a2/clj-simple-form-core/test/clj_simple_form/util_test.clj
clojure
(ns clj-simple-form.util-test (:use [clojure.test] [clj-simple-form.util]) (:require [clj-simple-form.mock-html-ns])) (deftest test-html-fns (testing "set-html-fns! and html-fn" (testing "Function map" (set-html-fns! {:hello-world (fn [] "Hello World!")}) (is (= ((html-fn :hello-world)) "...
5d40a567b130b7ce4595d874fbb6266a745cb7eba6c92ed5934e084ea09018eb
racketscript/racketscript-playground
stub.rkt
#lang racket ;; Hack to compile all runtime files (require racketscript/interop racketscript/browser racketscript/htdp/image racketscript/htdp/universe) ;; interop assoc->object #%js-ffi ;; browser window ;; image square ;; universe big-bang ;; list foldr make-list ;; boolean true fal...
null
https://raw.githubusercontent.com/racketscript/racketscript-playground/d594372e4c58a3c8ad1905f5500fe755d30ac720/stub.rkt
racket
Hack to compile all runtime files interop browser image universe list boolean math match for racket/private/list-predicate.rkt vector string
#lang racket (require racketscript/interop racketscript/browser racketscript/htdp/image racketscript/htdp/universe) assoc->object #%js-ffi window square big-bang foldr make-list true false pi (match '(1 2) [`(,a ,b) (+ a b)]) (for ([i '(1 2 3)]) (displayln i)) sort displayln ...
bbca3003e2f3e38bf213f58e41a043035125c78c60c949d7f830c038b71ca03b
tmattio/js-bindings
vscode_languageserver_protocol_messages.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 import { RequestType , RequestType0 , NotificationType , , ProgressType , } from ' vscode - jsonrpc ' ; ProgressType, EM.t } from 'vscode-jsonrpc'; *) module RegistrationType : sig type 'RO t val t_to_js ...
null
https://raw.githubusercontent.com/tmattio/js-bindings/f1d36bba378e4ecd5310542a0244dce9258b6496/lib/vscode-languageserver-protocol/vscode_languageserver_protocol_messages.mli
ocaml
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"]] open Es5 import { RequestType , RequestType0 , NotificationType , , ProgressType , } from ' vscode - jsonrpc ' ; ProgressType, EM.t } from 'vscode-jsonrpc'; *) module RegistrationType : sig type 'RO t val t_to_js ...
bf83a11e92e88b58812ee7b5f6f96c6fb1fb0a6a8658fbf0235a71adccaad5ab
mirage/mirage
mirage_impl_udp.ml
open Functoria open Mirage_impl_ip open Mirage_impl_misc open Mirage_impl_random module Key = Mirage_key type 'a udp = UDP type udpv4v6 = v4v6 udp let udp = Type.Type UDP let udpv4v6 : udpv4v6 typ = udp (* Value restriction ... *) let udp_direct_func () = let packages_v = right_tcpip_library ~sublibs:[ "udp" ] "tc...
null
https://raw.githubusercontent.com/mirage/mirage/55bf856f61596c56710d42063234d2ab6082bfb6/lib/mirage/impl/mirage_impl_udp.ml
ocaml
Value restriction ...
open Functoria open Mirage_impl_ip open Mirage_impl_misc open Mirage_impl_random module Key = Mirage_key type 'a udp = UDP type udpv4v6 = v4v6 udp let udp = Type.Type UDP let udpv4v6 : udpv4v6 typ = udp let udp_direct_func () = let packages_v = right_tcpip_library ~sublibs:[ "udp" ] "tcpip" in let connect _ modn...
2acb361bb075a239dc165e93bf85f4e2644da3694cc9c18db99fee49ab2c82c8
clj-commons/rewrite-clj
uneval.cljc
(ns ^:no-doc rewrite-clj.node.uneval (:require [rewrite-clj.node.protocols :as node])) #?(:clj (set! *warn-on-reflection* true)) ;; ## Node (defrecord UnevalNode [children] node/Node (tag [_node] :uneval) (node-type [_node] :uneval) (printable-only? [_node] true) (sexpr* [_node _opts] (throw (ex-info...
null
https://raw.githubusercontent.com/clj-commons/rewrite-clj/ced60309613a2672b4adc0532948d496a0778d77/src/rewrite_clj/node/uneval.cljc
clojure
## Node
(ns ^:no-doc rewrite-clj.node.uneval (:require [rewrite-clj.node.protocols :as node])) #?(:clj (set! *warn-on-reflection* true)) (defrecord UnevalNode [children] node/Node (tag [_node] :uneval) (node-type [_node] :uneval) (printable-only? [_node] true) (sexpr* [_node _opts] (throw (ex-info "unsupport...
44b8874ec598ea30097a6c87ce75f670796373d6ac4db8b985c372c1d904889d
Bogdanp/aoc2020
day12-2.rkt
#lang racket/base (require racket/match) (struct instr (cmd n) #:transparent) (struct wp (dir x y) #:transparent) (struct state (wp x y) #:transparent) (define instr-re #rx"([NSEWLRF])(.+)") (define instrs (call-with-input-file "input12.txt" (lambda (in) (for/list ([line (in-lines in)]) (...
null
https://raw.githubusercontent.com/Bogdanp/aoc2020/4021ed7a85eb58f655f38a9069656d64aaaa2ace/day12-2.rkt
racket
#lang racket/base (require racket/match) (struct instr (cmd n) #:transparent) (struct wp (dir x y) #:transparent) (struct state (wp x y) #:transparent) (define instr-re #rx"([NSEWLRF])(.+)") (define instrs (call-with-input-file "input12.txt" (lambda (in) (for/list ([line (in-lines in)]) (...
722e31a0e987340f7da6838d54ddc7ad7661c610e57cdd9345203ec9b46da58d
josefs/Gradualizer
lc_generator_not_none.erl
-module(lc_generator_not_none). %% Compare with test/should_fail/lc_generator_not_none_fail.erl -export([g/1, h/1]). -type t() :: {a, d} | {a, [t()]}. -spec g(t()) -> [t()]. g({a, d} = T) -> [T]; g({a, Ts}) -> [ T || T <- Ts ]. -spec h(t()) -> [t()]. h({a, Ts}) -> [ T || T <- Ts ].
null
https://raw.githubusercontent.com/josefs/Gradualizer/d2ea3201ee3c55695f50144ee4befcafa0756ccc/test/should_pass/lc_generator_not_none.erl
erlang
Compare with test/should_fail/lc_generator_not_none_fail.erl
-module(lc_generator_not_none). -export([g/1, h/1]). -type t() :: {a, d} | {a, [t()]}. -spec g(t()) -> [t()]. g({a, d} = T) -> [T]; g({a, Ts}) -> [ T || T <- Ts ]. -spec h(t()) -> [t()]. h({a, Ts}) -> [ T || T <- Ts ].
47f2792946b9439131fbe77b3d34e22e3809fd3e6d016af0bf494e0099601ea6
rescript-lang/rescript-compiler
Runtime.mli
open GenTypeCommon type recordGen type recordValue type moduleItem type moduleAccessPath = Root of string | Dot of moduleAccessPath * moduleItem val accessVariant : index:int -> string -> string val checkMutableObjectField : previousName:string -> name:string -> bool val default : string val emitModuleAccessPath : co...
null
https://raw.githubusercontent.com/rescript-lang/rescript-compiler/486c93306a96d85fcd38d5933ed5d361d518b25e/jscomp/gentype/Runtime.mli
ocaml
open GenTypeCommon type recordGen type recordValue type moduleItem type moduleAccessPath = Root of string | Dot of moduleAccessPath * moduleItem val accessVariant : index:int -> string -> string val checkMutableObjectField : previousName:string -> name:string -> bool val default : string val emitModuleAccessPath : co...