_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
41698392ced894475e83bb12bb6a1d0570dc2f235239fe5a60b628ded1f1ef3a
Opetushallitus/aipal
asetukset.clj
(ns aipalvastaus.asetukset (:require [schema.core :as s] [oph.common.infra.asetukset :refer [lue-asetukset]])) (def Asetukset {:server {:port s/Int :base-url s/Str} :development-mode Boolean :logback {:properties-file s/Str} :response-c...
null
https://raw.githubusercontent.com/Opetushallitus/aipal/767bd14ec7153dc97fdf688443b9687cdb70082f/aipal-vastaus/src/clj/aipalvastaus/asetukset.clj
clojure
(ns aipalvastaus.asetukset (:require [schema.core :as s] [oph.common.infra.asetukset :refer [lue-asetukset]])) (def Asetukset {:server {:port s/Int :base-url s/Str} :development-mode Boolean :logback {:properties-file s/Str} :response-c...
17e0a0699047f969d210f4b1d422ba34b8800c80f710ec5f8d92949369a26473
mstksg/emd
Sift.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables ...
null
https://raw.githubusercontent.com/mstksg/emd/bc02724d861a8932b72a97745542a62dd19071d0/src/Numeric/EMD/Sift.hs
haskell
# LANGUAGE BangPatterns # # LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE TypeInType # # LANGUAGE TypeOperators ...
# LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # OPTIONS_GHC -Wno - orphans # # OPTIONS_GHC -fplugin GHC.TypeLits . KnownNat . Solver # Copyright : ( c ) 2019 Maintai...
87169c4d90efe3af89343b19ce969654feb613747ae3fc69f79384b50a9b663d
exoscale/clojure-kubernetes-client
v1_container_port.clj
(ns clojure-kubernetes-client.specs.v1-container-port (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-container-port-data v1-container-port) (def v1-container-port-data { (ds/req :containerPort) int? (ds/opt :hostIP) string...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1_container_port.clj
clojure
(ns clojure-kubernetes-client.specs.v1-container-port (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare v1-container-port-data v1-container-port) (def v1-container-port-data { (ds/req :containerPort) int? (ds/opt :hostIP) string...
bdec49b514dd7910d2939b94d7b09df0fa6955f4015304be5b3e4e91905bed75
tatut/clj-chrome-devtools
bb.clj
Example of using clj - chrome - devtools with ;; ;; Start Chrome in the background: ;; /some/chrome-binary --remote-debugging-port=9222 --headless & ;; ;; Run with: $ bb bb.clj (require '[babashka.deps :as deps]) (deps/add-deps '{:deps {tatut/devtools {:git/url "-chrome-devtools" :git/s...
null
https://raw.githubusercontent.com/tatut/clj-chrome-devtools/e5b816f5f2f9bb7411af6f1bd1edf175c955ec9c/bb.clj
clojure
Start Chrome in the background: /some/chrome-binary --remote-debugging-port=9222 --headless & Run with:
Example of using clj - chrome - devtools with $ bb bb.clj (require '[babashka.deps :as deps]) (deps/add-deps '{:deps {tatut/devtools {:git/url "-chrome-devtools" :git/sha "cc96255433ca406aaba8bcee17d0d0b3b16dc423"} org.babashka/spec.alpha {:git/url "" ...
034630445bfb40ec12dde045c384237a5d55f981409a56cc304db94534402c02
input-output-hk/ouroboros-network
Time.hs
module Network.Mux.Time ( -- * DiffTime DiffTime , diffTimeToMicroseconds , microsecondsToDiffTime -- * Compact timestamp , timestampMicrosecondsLow32Bits ) where import Control.Monad.Class.MonadTime (Time (..)) import Data.Time.Clock (DiffTime, diffTimeToPicoseconds, ...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/6c15a8093bac34091ad96af2b8b0d1f7fe54b732/network-mux/src/Network/Mux/Time.hs
haskell
* DiffTime * Compact timestamp | This is a slightly peculiar operation: it returns the number of The purpose is to give a compact timestamp (compact to send over the wire)
module Network.Mux.Time DiffTime , diffTimeToMicroseconds , microsecondsToDiffTime , timestampMicrosecondsLow32Bits ) where import Control.Monad.Class.MonadTime (Time (..)) import Data.Time.Clock (DiffTime, diffTimeToPicoseconds, picosecondsToDiffTime) import ...
d9f607e0d9285767257cf0ce95cb88529b5edefa221d7dfac373890e7bfed9d1
ff-notes/ron
Storage.hs
# LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # | RON Storage interface . For usage , see " RON.Storage . FS " . module RON.Storage ( Collection (..), CollectionName, DocId, createDocument, decodeDocId, docIdFromUuid, loadDocument, modify ) ...
null
https://raw.githubusercontent.com/ff-notes/ron/0df2b7985996ecc498808ea7247d0d8de471da4f/ron-storage/lib/RON/Storage.hs
haskell
# LANGUAGE OverloadedStrings # | Load all versions of a document | Validation-like version of 'sconcat'. | Load document, apply changes and put it back to storage | Create document assuming it doesn't exist yet.
# LANGUAGE NamedFieldPuns # # LANGUAGE TupleSections # | RON Storage interface . For usage , see " RON.Storage . FS " . module RON.Storage ( Collection (..), CollectionName, DocId, createDocument, decodeDocId, docIdFromUuid, loadDocument, modify ) where import qualified Data.Text a...
e692f272fb99f3d67860906903f3d99c0476854f411b7da397e5259318b8a155
onyx-platform/onyx
generative_group_test.clj
(ns onyx.log.generative-group-test (:require [onyx.log.generators :as log-gen] [onyx.extensions :as extensions] [onyx.api :as api] [onyx.log.replica :as replica] [onyx.static.uuid :refer [random-uuid]] [onyx.static.planning :as planning] [clojure...
null
https://raw.githubusercontent.com/onyx-platform/onyx/74f9ae58cdbcfcb1163464595f1e6ae6444c9782/test/onyx/log/generative_group_test.clj
clojure
(ns onyx.log.generative-group-test (:require [onyx.log.generators :as log-gen] [onyx.extensions :as extensions] [onyx.api :as api] [onyx.log.replica :as replica] [onyx.static.uuid :refer [random-uuid]] [onyx.static.planning :as planning] [clojure...
6e6fc0ed716e827a0ae8444ac0aed9d3f7e85f0c4c2e5f95bbd73dbe653de689
lemaetech/jsoo_todomvc
jsoo_todomvc.ml
open Std open Html (*---------------------------------------------------------------------- * Variable Naming Convention :- * _s : denotes a signal type React.S.t. Signals are dynamic and the * value it encodes change according to input. *-----------------------------------------------------------------...
null
https://raw.githubusercontent.com/lemaetech/jsoo_todomvc/39b0a87dc185b2ebce30af51575e9ac968c50394/src/jsoo_todomvc.ml
ocaml
---------------------------------------------------------------------- * Variable Naming Convention :- * _s : denotes a signal type React.S.t. Signals are dynamic and the * value it encodes change according to input. *---------------------------------------------------------------------- * Reactive Todo....
open Std open Html module Indextbl = Hashtbl.Make (struct type t = Uuidm.t let equal = Uuidm.equal let hash (u : Uuidm.t) = Hashtbl.hash u end) type t = ; index_tbl : int Indextbl.t * : key - Todo.id ; value - index in ' rl ' . * as complete . and action = [ `Add of Todo.t | `Update ...
b302d2036d34ce33cf83efc7c50f5619e35ec5e8a35e350d9d14679480f4519a
inhabitedtype/ocaml-session
memory.mli
---------------------------------------------------------------------------- Copyright ( c ) 2015 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-session/6180413996e8c95bd78a9afa1431349a42c95588/lib/memory.mli
ocaml
* [create ()] returns the handle on a new in-memory store. * [set_default_period t period] sets the default expiry period of [t]. This will only affect future operations.
---------------------------------------------------------------------------- Copyright ( c ) 2015 Inhabited Type LLC . All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met : ...
63ee6a19f85f02e717d53cf01d01ee5128b9f3201454ecc39e46327046313cd6
eeng/shevek
ext_test.cljs
(ns shevek.lib.time.ext-test (:require-macros [cljs.test :refer [deftest testing is]]) (:require [shevek.lib.time.ext :refer [format-period default-granularity]] [shevek.lib.time :refer [now date-time]])) (def d date-time) (deftest format-period-test (testing "periods latest-xx" (is (= "Apr 24, ...
null
https://raw.githubusercontent.com/eeng/shevek/7783b8037303b8dd5f320f35edee3bfbb2b41c02/test/cljs/shevek/lib/time/ext_test.cljs
clojure
(ns shevek.lib.time.ext-test (:require-macros [cljs.test :refer [deftest testing is]]) (:require [shevek.lib.time.ext :refer [format-period default-granularity]] [shevek.lib.time :refer [now date-time]])) (def d date-time) (deftest format-period-test (testing "periods latest-xx" (is (= "Apr 24, ...
2c0c4218d3cd5401260b1b9cee874dfb97f52c4d067e7b131fb3a630b40ad395
igrep/typesafe-precure
Smile.hs
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module ACME.PreCure.Textbook.Smile where import ACME.PreCure.Types.TH import ACME.PreCure.Textbook.Smile.Profiles {-# ANN module g...
null
https://raw.githubusercontent.com/igrep/typesafe-precure/fc94f5f2c0ca8d8acc0b8eabe890a85bc305d7b3/src/ACME/PreCure/Textbook/Smile.hs
haskell
# ANN module girls # # ANN module transformees # # ANN module transformations # # ANN module purifications # # ANN module nonItemPurifications #
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # # LANGUAGE TemplateHaskell # # OPTIONS_GHC -fno - warn - orphans # module ACME.PreCure.Textbook.Smile where import ACME.PreCure.Types.TH import ACME.PreCure.Textbook.Smile.Profiles $(declareGirls g...
e23c4dd2eb9676d86c86ed3097d1add2590db6c2a8f297313dcca09796d04929
narkisr-deprecated/core
systems.clj
(comment re-core, Copyright 2012 Ronen Narkis, narkisr.com 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 distrib...
null
https://raw.githubusercontent.com/narkisr-deprecated/core/85b4a768ef4b3a4eae86695bce36d270dd51dbae/src/re_core/persistency/systems.clj
clojure
triggering env indexing and converting to keyword triggering owner indexing and setting default to admin index all existing systems into ES
(comment re-core, Copyright 2012 Ronen Narkis, narkisr.com 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 distrib...
4ca7f165e9c520ba0b8e2050f9c15f1f052bc800791c03a1dc7adde33a91bd4c
rabbitmq/rabbitmq-delayed-message-exchange
rabbit_exchange_type_delayed_message.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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_exchange_type_delayed_message). ...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-delayed-message-exchange/6686798c8a5275a4887adb8fc8002f3541627a57/src/rabbit_exchange_type_delayed_message.erl
erlang
---------------------------------------------------------------------------- route the message using proxy module Exchange type x-delayed-message routes via "direct exchange routing v1" even when feature flag direct_exchange_routing_v2 is enabled because table rabbit_index_route only stores bindings whose source ...
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 ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_exchange_type_delayed_message). -rabbi...
c0e9533edac284de7dc1e754a38a0fab7b93061b2a9fdd6645c9c0da0ecb2ac4
njordhov/clariform
core.cljs
(ns clariform.core (:require [cljs.core.async :as async :refer [go go-loop]] [cljs.core.async.interop :refer-macros [<p!]] [clojure.tools.cli :refer [parse-opts]] [cljs.pprint :as pprint :refer [pprint]] [clojure.string :as string] [shadow.resource :as rc] ["parinfer" :as parinfer] [i...
null
https://raw.githubusercontent.com/njordhov/clariform/12bcbe184738a82a5076e9e33db4412a984d1f01/src/main/clariform/core.cljs
clojure
(ns clariform.core (:require [cljs.core.async :as async :refer [go go-loop]] [cljs.core.async.interop :refer-macros [<p!]] [clojure.tools.cli :refer [parse-opts]] [cljs.pprint :as pprint :refer [pprint]] [clojure.string :as string] [shadow.resource :as rc] ["parinfer" :as parinfer] [i...
b2ac6f77120334d1d6bcd35e93550f007d6361f3372e9abaffba947a9b997138
racket/math
quadratic-residues.rkt
#lang typed/racket/base (require racket/list "divisibility.rkt" "modular-arithmetic.rkt" "number-theory.rkt") (provide quadratic-character quadratic-residue? jacobi-symbol) ; DEFINITION (Quadratic residue) a in Un is a quadratic residue , if there exists an s such that a = s^2 ( mo...
null
https://raw.githubusercontent.com/racket/math/dcd2ea1893dc5b45b26c8312997917a15fcd1c4a/math-lib/math/private/number-theory/quadratic-residues.rkt
racket
DEFINITION (Quadratic residue) The number s is called a squre root of a modulo n. p is prime
#lang typed/racket/base (require racket/list "divisibility.rkt" "modular-arithmetic.rkt" "number-theory.rkt") (provide quadratic-character quadratic-residue? jacobi-symbol) a in Un is a quadratic residue , if there exists an s such that a = s^2 ( mod n ) (: quadratic-character : I...
30a591ab50bc4ca2b63fccc4fad1a64da048b707abb2876da2138803ffb3103d
metabase/metabase
google_test.clj
(ns metabase.integrations.google-test (:require [clojure.test :refer :all] [metabase.email-test :as et] [metabase.integrations.google :as google] [metabase.integrations.google.interface :as google.i] [metabase.models.interface :as mi] [metabase.models.user :refer [User]] [metabase.public-settings...
null
https://raw.githubusercontent.com/metabase/metabase/7e3048bf73f6cb7527579446166d054292166163/test/metabase/integrations/google_test.clj
clojure
--------------------------------------------- google-auth-client-id ---------------------------------------------- --------------------------------------------- account autocreation ----------------------------------------------- --------------------------------------------- google-auth-token-info ------------------...
(ns metabase.integrations.google-test (:require [clojure.test :refer :all] [metabase.email-test :as et] [metabase.integrations.google :as google] [metabase.integrations.google.interface :as google.i] [metabase.models.interface :as mi] [metabase.models.user :refer [User]] [metabase.public-settings...
78803b1781efad7091c346d7bd769c87ee3b517b619585d65a5616d93a6458bc
RichiH/git-annex
Mans.hs
Build man pages . - - Copyright 2016 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2016 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # OPTIONS_GHC -fno - warn - tabs # module Build.Mans where import System.Directory import System.FilePath impor...
null
https://raw.githubusercontent.com/RichiH/git-annex/bbcad2b0af8cd9264d0cb86e6ca126ae626171f3/Build/Mans.hs
haskell
Build man pages . - - Copyright 2016 < > - - Licensed under the GNU GPL version 3 or higher . - - Copyright 2016 Joey Hess <> - - Licensed under the GNU GPL version 3 or higher. -} # OPTIONS_GHC -fno - warn - tabs # module Build.Mans where import System.Directory import System.FilePath impor...
7131827442cea1fede110155ef4e4885b07247cdbccdceabe0e80e74311d20b3
cnuernber/dtype-next
protocols.clj
(ns tech.v3.datatype.protocols (:require [ham-fisted.set :as set]) (:import [tech.v3.datatype ElemwiseDatatype ECount Buffer BinaryBuffer ObjectReader] [clojure.lang Counted] [java.util List Map Set] [java.nio ByteOrder ByteBuffer ShortBuffer IntBuffer LongBu...
null
https://raw.githubusercontent.com/cnuernber/dtype-next/1347139a0f2aeb657fcafd465fe5378bcc746359/src/tech/v3/datatype/protocols.clj
clojure
it is not always possible to do this with buffers are in the format of the host.")) type hints in protocols must have the full type declared else
(ns tech.v3.datatype.protocols (:require [ham-fisted.set :as set]) (:import [tech.v3.datatype ElemwiseDatatype ECount Buffer BinaryBuffer ObjectReader] [clojure.lang Counted] [java.util List Map Set] [java.nio ByteOrder ByteBuffer ShortBuffer IntBuffer LongBu...
a176b117923bde143c29d803e92d6153f8aa4471cf8287d78691080f275a241d
lspitzner/brittany
Test360.hs
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func :: lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> lakjsdlkjasldkj -> lakjsdlkjasldkj
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test360.hs
haskell
brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func :: lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> lakjsdlkjasldkj -> lakjsdlkjasldkj
98262f3a8c8f88574e525a23343c6a6ea3b6fe054f485702f6a413fbbed34ad9
nvim-treesitter/nvim-treesitter
highlights.scm
(date) @field (txn) @attribute (account) @type (amount) @number (incomplete_amount) @number (compound_amount) @number (amount_tolerance) @number (currency) @property (key) @label (string) @string @spell (narration) @string @spell (payee) @string @spell (tag) @constant (link) @constant [ (minus) (plus) (slash) (asteris...
null
https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/a5cf6b1f3fbf5bf91de9ac12e5b4127610766fed/queries/beancount/highlights.scm
scheme
(date) @field (txn) @attribute (account) @type (amount) @number (incomplete_amount) @number (compound_amount) @number (amount_tolerance) @number (currency) @property (key) @label (string) @string @spell (narration) @string @spell (payee) @string @spell (tag) @constant (link) @constant [ (minus) (plus) (slash) (asteris...
0958d866f52ca6669eedfd4172de590b5b145fdb0e6fe165d634996025aa4d52
danidiaz/process-streaming
test.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE ViewPatterns # module Main where import Test.Tasty import Test.Tasty.HUnit import Data.Bifunctor import Data.Monoid import Data.Foldable import Data.List.NonEmpty import Data.ByteString import Data.ByteString.Lazy as BL import Data.Text.Lazy as TL import Data.Text.Lazy....
null
https://raw.githubusercontent.com/danidiaz/process-streaming/760f557bdd8c7bb40547e3cbbd429441a76bc1a8/tests/test.hs
haskell
# LANGUAGE OverloadedStrings # ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -------------------------------------------------------...
# LANGUAGE ViewPatterns # module Main where import Test.Tasty import Test.Tasty.HUnit import Data.Bifunctor import Data.Monoid import Data.Foldable import Data.List.NonEmpty import Data.ByteString import Data.ByteString.Lazy as BL import Data.Text.Lazy as TL import Data.Text.Lazy.Encoding as TL import Data.Typeable...
ba28598ba9527a0c7a5dcfcf50f63722452397ad755a8d7bc59be9905886e789
fakedata-haskell/fakedata
Relationship.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Faker.Provider.Relationship where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker impor...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Relationship.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Provider.Relationship where import Config import Control.Monad.Catch import Control.Monad.IO.Class import Data.Map.Strict (Map) import Data.Monoid ((<>)) import Data.Text (Text) import Data.Vector (Vector) import Data.Yaml import Faker import Faker.Internal import Faker.Provi...
4e60adf3a6a022b8554832040c86e6147a79b551fd9b40ae4531ed858ca6f159
multimodalrouting/osm-fulcro
pathom.clj
(ns app.server-components.pathom (:require [mount.core :refer [defstate]] [taoensso.timbre :as log] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p] [com.wsscode.common.async-clj :refer [let-chan]] [clojure.core.async :as async] [app.server-components.config :refer [conf...
null
https://raw.githubusercontent.com/multimodalrouting/osm-fulcro/dedbf40686a18238349603021687694e5a4c31b6/src/main/app/server_components/pathom.clj
clojure
:remote :pathom :type :geojson} (caching! id) The geojson returned by overpass-api doesn't contain intermediate nodes of ways. As a quick workaround we do the geocoding here Here is where you can dynamically add things to the resolver/mutation environment, like the server config, database connecti...
(ns app.server-components.pathom (:require [mount.core :refer [defstate]] [taoensso.timbre :as log] [com.wsscode.pathom.connect :as pc] [com.wsscode.pathom.core :as p] [com.wsscode.common.async-clj :refer [let-chan]] [clojure.core.async :as async] [app.server-components.config :refer [conf...
734a942304bb4fe8872cb1aa7d95eb6c2861c820bcb72f28005d582c5626ca89
MaartenFaddegon/Hoed
Compiler.hs
module Compiler(compile) where import Machine import Syntax import StackMap import Value compile :: Command -> [Instruction] compile c = replicate (depth sm) (Push Wrong) ++ compObey sm c ++ [Halt] where sm = stackMap c compObey :: StackMap -> Command -> [Instruction] compObey sm Skip = [] compObey sm (...
null
https://raw.githubusercontent.com/MaartenFaddegon/Hoed/8769d69e309928aab439b22bc3f3dbf5452acc77/examples/afp02Exercises/Compiler/parassign/Compiler.hs
haskell
module Compiler(compile) where import Machine import Syntax import StackMap import Value compile :: Command -> [Instruction] compile c = replicate (depth sm) (Push Wrong) ++ compObey sm c ++ [Halt] where sm = stackMap c compObey :: StackMap -> Command -> [Instruction] compObey sm Skip = [] compObey sm (...
d33221c1087871263518cf515759e9e7b943c1dd66950e4e96e4def865ca30f6
EFanZh/EOPL-Exercises
exercise-5.26-test.rkt
#lang racket/base (require rackunit) (require "../solutions/exercise-5.26.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (check-equal? (run "zero?...
null
https://raw.githubusercontent.com/EFanZh/EOPL-Exercises/11667f1e84a1a3e300c2182630b56db3e3d9246a/tests/exercise-5.26-test.rkt
racket
#lang racket/base (require rackunit) (require "../solutions/exercise-5.26.rkt") (check-equal? (run "2") (num-val 2)) (check-equal? (run "-(3, 3)") (num-val 0)) (check-equal? (run "-(3, 4)") (num-val -1)) (check-equal? (run "-(4, 3)") (num-val 1)) (check-equal? (run "zero?(0)") (bool-val #t)) (check-equal? (run "zero?...
a48c8d3277764f343cc8ac8115dbdbd74e84beac6ff1d9dfa805ecce282bb50a
crisptrutski/matchbox
registry.cljc
(ns matchbox.registry (:require [clojure.walk :as walk])) ;; nested maps of {ref {fn wrapped-fn}} (defonce auth-listeners (atom nil)) ;; nested maps of {ref {type #{fns}}} (defonce unsubs (atom nil)) ;; flat map of {fn [ref type]} (defonce unsubs-flat (atom nil)) (defn register-auth-listener [ref cb wrapped-cb] ...
null
https://raw.githubusercontent.com/crisptrutski/matchbox/5bb9ba96f5df01bce302a8232f6cddd9d64a1d71/src/matchbox/registry.cljc
clojure
nested maps of {ref {fn wrapped-fn}} nested maps of {ref {type #{fns}}} flat map of {fn [ref type]}
(ns matchbox.registry (:require [clojure.walk :as walk])) (defonce auth-listeners (atom nil)) (defonce unsubs (atom nil)) (defonce unsubs-flat (atom nil)) (defn register-auth-listener [ref cb wrapped-cb] #?(:clj (.addAuthStateListener ref wrapped-cb) :cljs (.onAuth ref wrapped-cb)) (swap! auth-listeners...
a45b2fc45a32c850761bfb3ba93d23d61ffa38748149f149fe78b8873e9400df
janestreet/async_smtp
test_multispool.ml
open Core open Async open Async_smtp open Expect_test_helpers_core open Expect_test_helpers_async module Widgetspool = Multispool.Make (struct include Widget module Name_generator = Common.Test_name_generator end) let chdir_or_error dir = Deferred.Or_error.try_with ~run:`Schedule ~rest:`Log (f...
null
https://raw.githubusercontent.com/janestreet/async_smtp/f900fa3f028725539f1336900b5631d2522fc154/test/lib/test_multispool.ml
ocaml
Enqueue a file, check its path(s) at various steps, and then remove it File exists in registry and queue File exists in registry and checkout area File no longer exists Enqueue some files and test nextname functionality List files Use iter_exn to visit each file in queue2 in turn Update a Sprocket Prin...
open Core open Async open Async_smtp open Expect_test_helpers_core open Expect_test_helpers_async module Widgetspool = Multispool.Make (struct include Widget module Name_generator = Common.Test_name_generator end) let chdir_or_error dir = Deferred.Or_error.try_with ~run:`Schedule ~rest:`Log (f...
9968be4d20653623b4df51decc309b9e5dd148da0fe31abcb7c586abb8c01823
jordanthayer/ocaml-search
topspin.ml
* Topspin puzzle A representation of the ( N , K ) top - spin puzzle . N tokens are arranged in a ring . K elements can be flipped at any time ( order reversed ) The heuristic is the number of disks that are not adjacent to their neighbor , which is inadmissible . ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/topspin/topspin.ml
ocaml
*helper function that swaps indices in an array.
* Topspin puzzle A representation of the ( N , K ) top - spin puzzle . N tokens are arranged in a ring . K elements can be flipped at any time ( order reversed ) The heuristic is the number of disks that are not adjacent to their neighbor , which is inadmissible . ...
a91cbb0049cbea3bfeb7cd4d236f978e03a6c0f3faffb101733e0a4b20176d0a
rabbitmq/rabbitmq-common
rabbit_env_SUITE.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 ) 2019 - 2020 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_env_SUITE). -include_lib("common_...
null
https://raw.githubusercontent.com/rabbitmq/rabbitmq-common/67c4397ffa9f51d87f994aa4db4a68e8e95326ab/test/rabbit_env_SUITE.erl
erlang
When `rabbit_env` is built with `TEST` defined, we can override the OS type. sets $RABBITMQ_FEATURE_FLAGS to an empty string. This obviously Create a fake `rabbit` application. Start a fake RabbitMQ node. When `rabbit_env` is built with `TEST` defined, we can override the OS type. On Unix. separator conflic...
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 ) 2019 - 2020 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_env_SUITE). -include_lib("common_test/i...
daf7fbd7aee5704dbb6c0a66e0d6ddb105789e27f1a6f4a2e7cd14c32597fd26
namin/biohacker
jqrule.lisp
;-*- Mode: Lisp; Syntax: Common-lisp -*- ;;;; N-Queens rules, JTRE version Last edited 1/29/93 , by KDF . Copyright ( c ) 1986 --- 1992 , Northwestern University , Johan de Kleer and Xerox Corporation . ;;; All rights reserved. ;;; See the file legal.txt for a paragraph stating scope of permission ;;; and ...
null
https://raw.githubusercontent.com/namin/biohacker/6b5da4c51c9caa6b5e1a68b046af171708d1af64/BPS/jtms/jqrule.lisp
lisp
-*- Mode: Lisp; Syntax: Common-lisp -*- N-Queens rules, JTRE version All rights reserved. See the file legal.txt for a paragraph stating scope of permission and disclaimer of warranty. The above copyright notice and that paragraph must be included in any separate copy of this file.
Last edited 1/29/93 , by KDF . Copyright ( c ) 1986 --- 1992 , Northwestern University , Johan de Kleer and Xerox Corporation . (in-package :COMMON-LISP-USER) (contradiction 'Queens-capture *jtre*) (rule ((:IN (Queen ?column1 ?row1) :VAR ?Q1) (:IN (Queen ?column2 ?row2) :VAR ?Q2 :TEST (no...
28503afc75f254e5295f126acfb2a21ed303a3b95070ed6130d3f3885c7603b2
GillianPlatform/Gillian
ext_list.ml
type 'a cell = Nil | Cons of { mutable contents : 'a; mutable next : 'a cell } [@@deriving yojson] type 'a t = { mutable length : int; mutable first : 'a cell; mutable last : 'a cell; } [@@deriving yojson] let make () = { length = 0; first = Nil; last = Nil } let clear l = l.length <- 0; l.first <- Nil; ...
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/e649de29d6eb34e78b89d453ae53061f3b9cb40f/GillianCore/utils/ext_list.ml
ocaml
type 'a cell = Nil | Cons of { mutable contents : 'a; mutable next : 'a cell } [@@deriving yojson] type 'a t = { mutable length : int; mutable first : 'a cell; mutable last : 'a cell; } [@@deriving yojson] let make () = { length = 0; first = Nil; last = Nil } let clear l = l.length <- 0; l.first <- Nil; ...
fe1f57da22a9df371b3d7f98998e565837636d6659addabb15a40d32bec7233b
jserot/lascar
test.ml
let string_of_token t = let open Genlex in match t with | Int n -> "Int " ^ string_of_int n | Float n -> "Float " ^ string_of_float n | Char n -> "Char " ^ String.make 1 n | String n -> "String " ^ n | Ident n -> "Ident " ^ n | Kwd n -> "Kwd " ^ n let test lexer parser show s = let r = match Utils.Pa...
null
https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/tests/test.ml
ocaml
let string_of_token t = let open Genlex in match t with | Int n -> "Int " ^ string_of_int n | Float n -> "Float " ^ string_of_float n | Char n -> "Char " ^ String.make 1 n | String n -> "String " ^ n | Ident n -> "Ident " ^ n | Kwd n -> "Kwd " ^ n let test lexer parser show s = let r = match Utils.Pa...
011f24c2558f9ee0cb3d853c3d53fbaddbef468c532eecebd5074bae2f0198ba
alvatar/spheres
mime.scm
;;!!! Decode and encode data using the MIME format. .author , 2006 - 2007 .author More , 2013 .author , 2015 .license / v2.1 ;; Copyright ( C ) 2006 - 2007 by , All Rights Reserved . Copyright ( C ) 2013 More ;; ;; Contains procedures to decode and encode data using the MIME format. ;; ;; This is...
null
https://raw.githubusercontent.com/alvatar/spheres/568836f234a469ef70c69f4a2d9b56d41c3fc5bd/spheres/net/mime.scm
scheme
!!! Decode and encode data using the MIME format. Contains procedures to decode and encode data using the MIME format. This is a general purpose MIME library. It does not regard details about particular header types used in emails or multipart/mixed HTML form encoding - such aspects can easily be addressed by a ...
.author , 2006 - 2007 .author More , 2013 .author , 2015 .license / v2.1 Copyright ( C ) 2006 - 2007 by , All Rights Reserved . Copyright ( C ) 2013 More released under LGPL 2.1 ( and I would guess , as dual license with Apache ) . 's contributions released under MIT . The original versio...
16724a60f42dad36b4768ff4de863d5792ab79069dec3896d51b12534b7ee423
ocurrent/ocaml-docs-ci
git_context.mli
include Opam_0install.S.CONTEXT val read_packages : Git_unix.Store.t -> Git_unix.Store.Hash.t -> OpamFile.OPAM.t OpamPackage.Version.Map.t OpamPackage.Name.Map.t Lwt.t (** [read_packages store commit] is an index of the opam files in [store] at [commit]. *) val create : ?test:OpamPackage.Name.Set.t -> ?pins...
null
https://raw.githubusercontent.com/ocurrent/ocaml-docs-ci/df08e7aa0e467d106edf1c3d2c58bbedd41ff9b5/src/solver/git_context.mli
ocaml
* [read_packages store commit] is an index of the opam files in [store] at [commit].
include Opam_0install.S.CONTEXT val read_packages : Git_unix.Store.t -> Git_unix.Store.Hash.t -> OpamFile.OPAM.t OpamPackage.Version.Map.t OpamPackage.Name.Map.t Lwt.t val create : ?test:OpamPackage.Name.Set.t -> ?pins:(OpamPackage.Version.t * OpamFile.OPAM.t) OpamPackage.Name.Map.t -> constraints:OpamFor...
e431a459046eb28e562ee0017ed75f8c458a696324aa7d9299e7613b7b15ebeb
avsm/mirage-ci
docker_pull.ml
--------------------------------------------------------------------------- Copyright ( c ) 2017 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/avsm/mirage-ci/a11ecf203976299fa19337fd9e1794d6ca3fa436/src/docker_pull.ml
ocaml
--------------------------------------------------------------------------- Copyright ( c ) 2017 . All rights reserved . Distributed under the ISC license , see terms at the end of the file . % % NAME%% % % --------------------------------------------------------------------------- Copyright (c) 2...
8d7921738c041d1e50dc17edb177f05a3cce261198f9a22d1feea89f76ed065a
suprematic/otplike
spec_util.clj
(ns otplike.spec-util (:require [clojure.spec.alpha :as spec])) ; FIXME: workaround to ensure spec is reloaded after the namespace ; it is defined in has been reloaded. (defn foreign-spec "When used to wrap a reference to a spec from another namespace, prevents the spec value from being captured, e.g. by spec/fd...
null
https://raw.githubusercontent.com/suprematic/otplike/bc9d4e82c14053fac8a0ec141eaca897dd2cfe9b/src/otplike/spec_util.clj
clojure
FIXME: workaround to ensure spec is reloaded after the namespace it is defined in has been reloaded.
(ns otplike.spec-util (:require [clojure.spec.alpha :as spec])) (defn foreign-spec "When used to wrap a reference to a spec from another namespace, prevents the spec value from being captured, e.g. by spec/fdef or spec/spec." [x] (spec/spec #(spec/valid? x %) :gen #(spec/gen x))) (defn instru...
7351f0908c0f10a128564ae219b41e1eab9c4edc5baa0a5f4ed4e5288b595691
johnwhitington/camlpdf
pdfdest.mli
(** Destinations *) (** The target of a destination is either a page object in the same PDF (given by object number of page object), or a page number in an external file. *) type targetpage = | PageObject of int | OtherDocPageNumber of int (** Destinations (and actions) *) type t = | Action of Pdf.pdfobject |...
null
https://raw.githubusercontent.com/johnwhitington/camlpdf/8fece41e8d9a3c141309f2874f7534536facf1ea/pdfdest.mli
ocaml
* Destinations * The target of a destination is either a page object in the same PDF (given by object number of page object), or a page number in an external file. * Destinations (and actions) * Read a destination given a PDF and destionation object. * Transform a destination by a matrix
type targetpage = | PageObject of int | OtherDocPageNumber of int type t = | Action of Pdf.pdfobject | NullDestination | NamedDestinationElsewhere of string | XYZ of targetpage * float option * float option * float option | Fit of targetpage | FitH of targetpage * float option | FitV of targetpage *...
f5307c970368b558ef36f1f6f3b9e3458402b5862ba0392c0521b2668e56013b
rtrusso/scp
inputfile.scm
(define f (open-input-file "tests/inputfile.scm")) (display (input-port? f)) (newline) (define c (read-char f)) (display c) (newline) (display (eof-object? c)) (newline) (let loop ((c (read-char f))) (if (eof-object? c) (begin (display 'done) (newline)) (begin (display c) ...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/tests/inputfile.scm
scheme
(define f (open-input-file "tests/inputfile.scm")) (display (input-port? f)) (newline) (define c (read-char f)) (display c) (newline) (display (eof-object? c)) (newline) (let loop ((c (read-char f))) (if (eof-object? c) (begin (display 'done) (newline)) (begin (display c) ...
e50c8f45d671dae9d3921166f7bcaf03fb73b682dc66160df7d03f44a93ab3c9
mondemand/mondemand-server
mondemand_backend_transport_afunix.erl
-module (mondemand_backend_transport_afunix). -export ([init/1, % (Config) -> State ( State ) - > true | false ( State ) - > State ( State , Data ) - > State ( State ) - > ok ( State , Response ) - > State ]). -record (md_afunix_state, { path, send_timeout, socket }). init (Config) -> ...
null
https://raw.githubusercontent.com/mondemand/mondemand-server/88e57ef8ece8a0069a747620f4585104cb560840/src/mondemand_backend_transport_afunix.erl
erlang
(Config) -> State not sure what errors are afunix specific so for the moment anything that doesn't match the tcp response is considered an error
-module (mondemand_backend_transport_afunix). ( State ) - > true | false ( State ) - > State ( State , Data ) - > State ( State ) - > ok ( State , Response ) - > State ]). -record (md_afunix_state, { path, send_timeout, socket }). init (Config) -> Path = proplists:get_value (path, Config, undefi...
88067663811683987abde5f7d66a820dc26a0c14956694026962bd7a2dce9bfd
ogaml/ogaml
vertexmaps.ml
open OgamlGraphics open OgamlMath let cube_shader = " uniform mat4 MVPMatrix; in vec3 position; in int color; in ivec3 normal; out vec3 out_normal; out vec4 out_color; void main() { gl_Position = MVPMatrix * vec4(position, 1.0); out_normal.x = float(normal.x); out_normal.y = float(normal.y); out_norm...
null
https://raw.githubusercontent.com/ogaml/ogaml/5e74597521abf7ba2833a9247e55780eabfbab78/examples/vertexmaps.ml
ocaml
* Create a new custom vertex layout * Seal the layout Now we can create vertices with this layout Display computations Compute model matrix Camera Handle keys directly by polling the keyboard Event loop Main loop We only capture the mouse and listen to the keyboard when focused Start
open OgamlGraphics open OgamlMath let cube_shader = " uniform mat4 MVPMatrix; in vec3 position; in int color; in ivec3 normal; out vec3 out_normal; out vec4 out_color; void main() { gl_Position = MVPMatrix * vec4(position, 1.0); out_normal.x = float(normal.x); out_normal.y = float(normal.y); out_norm...
0406a7f4da14a05e024065736d26804c7b5b2d7746b8979792a6e01b281d6508
runtimeverification/haskell-backend
OrPattern.hs
# LANGUAGE TemplateHaskell # | Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2018-2021 License : BSD-3-Clause -} module Kore.Simplify.OrPattern ( simplifyConditionsWithSmt, ) where import Kore.Internal.Condition ( Cond...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/bb2de5009a218b54a0efc668357854c10d3f05cb/kore/src/Kore/Simplify/OrPattern.hs
haskell
TODO(virgil): We should be able to return Condition.top, but if 'a' is the only constructor can detect that 'not v=a' is not satisfiable so we may remove a substitution here. However, we are not able to handle that properly.
# LANGUAGE TemplateHaskell # | Copyright : ( c ) Runtime Verification , 2018 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2018-2021 License : BSD-3-Clause -} module Kore.Simplify.OrPattern ( simplifyConditionsWithSmt, ) where import Kore.Internal.Condition ( Cond...
690f72ccc21a5600bc9199396327d44311dd35c8e828e0a2226ec683fcccd3e8
yokolet/clementine
dom.cljs
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the Eclipse Public License 1.0 ( -1.0.php ) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be bound by ;; ...
null
https://raw.githubusercontent.com/yokolet/clementine/b26c2318625e49606b5cc3b95cc9e1f5085ac309/ext/clojure-clojurescript-bef56a7/src/cljs/clojure/browser/dom.cljs
clojure
The use and distribution terms for this software are covered by the which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software....
Copyright ( c ) . All rights reserved . Eclipse Public License 1.0 ( -1.0.php ) (ns clojure.browser.dom (:require [goog.dom :as gdom] [goog.object :as gobject])) (defn append [parent & children] (apply gdom/append parent children) parent) (defprotocol DOMBuilder (-element [this] [this att...
199627726c242901ed82473c57b447ac15f8ec8be132f3ad753d0a34f11f8048
discus-lang/ddc
Module.hs
module DDC.Llvm.Write.Module where import DDC.Llvm.Syntax.Module import DDC.Llvm.Syntax.Type import DDC.Llvm.Syntax.Exp import DDC.Llvm.Write.Function import DDC.Llvm.Write.Exp () import DDC.Llvm.Write.Type () import DDC.Llvm.Write.Base instance Write Config Module where write o (Module _comments aliases...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-core-llvm/DDC/Llvm/Write/Module.hs
haskell
module DDC.Llvm.Write.Module where import DDC.Llvm.Syntax.Module import DDC.Llvm.Syntax.Type import DDC.Llvm.Syntax.Exp import DDC.Llvm.Write.Function import DDC.Llvm.Write.Exp () import DDC.Llvm.Write.Type () import DDC.Llvm.Write.Base instance Write Config Module where write o (Module _comments aliases...
afcb5041794e7b4c35f5b4fe47c4e06e4f17bd05c1a957e948d82679c16f0bdb
passy/latest-npm-version
Main.hs
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable, ExistentialQuantification #-} import Paths_latest_npm_version (version) import Control.Exception (fromException, Exception, SomeException) import Network.HTTP.Client (HttpException(StatusCodeException)) import Network.HTTP.Types.Status (statusCode) import Data.Data (...
null
https://raw.githubusercontent.com/passy/latest-npm-version/da01dbe656b251bc47258f988282ef2d920abc9c/Main.hs
haskell
# LANGUAGE OverloadedStrings, DeriveDataTypeable, ExistentialQuantification #
import Paths_latest_npm_version (version) import Control.Exception (fromException, Exception, SomeException) import Network.HTTP.Client (HttpException(StatusCodeException)) import Network.HTTP.Types.Status (statusCode) import Data.Data (Data) import Data.Version (showVersion) import Data.Typeable (Typeable) import Npm...
c30dc6ff9f4cea179dc0ed2db0c47c35fb6f860234511b40a44e976c40bbc54b
mejgun/haskell-tdlib
ToggleGeneralForumTopicIsHidden.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.ToggleGeneralForumTopicIsHidden where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U -- | -- Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator righ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/ToggleGeneralForumTopicIsHidden.hs
haskell
# LANGUAGE OverloadedStrings # | | Toggles whether a General topic is hidden in a forum supergroup chat; requires can_manage_topics administrator right in the supergroup | Pass true to hide and close the General topic; pass false to unhide it | Identifier of the chat
module TD.Query.ToggleGeneralForumTopicIsHidden where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified Utils as U data ToggleGeneralForumTopicIsHidden = ToggleGeneralForumTopicIsHidden is_hidden :: Maybe Bool, chat_id :: Maybe Int } deriving (Eq) instance Show Tog...
67f999ca2b0be809bb91a57e3be18a975dae5224f6311efdd95996ca4f9ad91e
jrm-code-project/LISP-Machine
live.lisp
-*- Mode : LISP ; Package : NC ; ; : CL -*- ;;;; Live Variable Analysis ;;; ;;; Live variable analysis in a tree would be a simple matter of ;;; finding the live variables below a node, then removing those ;;; variables bound at the node. However, the control structure of code trees is tangled by function c...
null
https://raw.githubusercontent.com/jrm-code-project/LISP-Machine/0a448d27f40761fafabe5775ffc550637be537b2/kmachine/fleabit/back-end/live.lisp
lisp
Package : NC ; ; : CL -*- Live Variable Analysis Live variable analysis in a tree would be a simple matter of finding the live variables below a node, then removing those variables bound at the node. However, the control structure of code continuations) back up in the tree. For example in: (defun live-y...
trees is tangled by function calls ( also meaning 's and happen because wants to be substituted inline into f , in fact continuation to g is known to be ( ( B_3 IGNORE_2 ) ( PRINT K_0 Y_1 ) ) therefore the variable y is live in g by virtue of referring to over the graph , proceeding in a depth first mann...
5624db98912e197af0bd8ef820c8b1da9ae2fa4fd90fbd8ca1140a8f97e097b6
gabebw/croniker
AllProfilesTaskMain.hs
import Application (allProfilesTaskMain) main :: IO () main = allProfilesTaskMain
null
https://raw.githubusercontent.com/gabebw/croniker/89f081738c229a3302af3b0123fea208bccbda11/app/AllProfilesTaskMain.hs
haskell
import Application (allProfilesTaskMain) main :: IO () main = allProfilesTaskMain
faf59f60836d413f463fd86ba14ef7d8c9f1fb5c41fd36add6ca2b94a0590366
facebookarchive/pfff
visitor_clang.mli
type visitor = (Ast_clang.sexp -> unit) -> Ast_clang.sexp -> unit val visit: visitor -> Ast_clang.sexp -> unit
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_clang/parsing/visitor_clang.mli
ocaml
type visitor = (Ast_clang.sexp -> unit) -> Ast_clang.sexp -> unit val visit: visitor -> Ast_clang.sexp -> unit
696c444f9c7a51e3f2a39654928a40605ccd7481fe30a9aedff0f0450ee46b52
blockchain-unica/defi-workbench
test_token.ml
open Token let t0 = init "t0" let t1 = init "t1" let t2 = mintAMM(t0,t1) let t3 = mintLP(t2) let () = print_endline (to_string t0); print_endline (to_string t1); print_endline (to_string t2); print_endline (to_string t3);
null
https://raw.githubusercontent.com/blockchain-unica/defi-workbench/a3606bf425cef8e81d1f12b13dc1410a48f3e860/test/test_token.ml
ocaml
open Token let t0 = init "t0" let t1 = init "t1" let t2 = mintAMM(t0,t1) let t3 = mintLP(t2) let () = print_endline (to_string t0); print_endline (to_string t1); print_endline (to_string t2); print_endline (to_string t3);
f93234c45007de74b2cb8394df6d078d243dc5cf19aa9d1d34babdb27b409a67
sky-big/RabbitMQ
option_set_server.erl
%%% ------------------------------------------------------------------- %%% Author : xxw %%% Description : %%% Created : 2015 - 11 - 30 %%% ------------------------------------------------------------------- -module(option_set_server). -behaviour(gen_server). %% -----------------------------------------------------...
null
https://raw.githubusercontent.com/sky-big/RabbitMQ/d7a773e11f93fcde4497c764c9fa185aad049ce2/test/option_set_server.erl
erlang
------------------------------------------------------------------- Author : xxw Description : ------------------------------------------------------------------- -------------------------------------------------------------------- Include files -----------------------------------------------------------------...
Created : 2015 - 11 - 30 -module(option_set_server). -behaviour(gen_server). -export([ start/0, cover_plugin_beam/1 ]). -export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]). -record(state, {}). start() -> case erlang:whereis(?MODULE) of undefined -> gen_server:...
6f1e46bf341c899ea6b67381ed2164ec75527793cd9cff42b67e2f06e11f4c69
informatimago/lisp
playtomo-stonedge.lisp
-*- mode : lisp;coding : utf-8 -*- ;;;;************************************************************************** ;;;;FILE: playtomo-stonedge.lisp ;;;;LANGUAGE: Common-Lisp ;;;;SYSTEM: Common-Lisp USER - INTERFACE : ;;;;DESCRIPTION ;;;; Implements the Playtomo Stonedge G...
null
https://raw.githubusercontent.com/informatimago/lisp/571af24c06ba466e01b4c9483f8bb7690bc46d03/small-cl-pgms/playtomo-stonedge/playtomo-stonedge.lisp
lisp
coding : utf-8 -*- ************************************************************************** FILE: playtomo-stonedge.lisp LANGUAGE: Common-Lisp SYSTEM: Common-Lisp DESCRIPTION LEGAL This program is free software: you can redistribute it and/or modify (at your option) an...
USER - INTERFACE : Implements the Playtomo Stonedge Game , and its solver . Download the playtomo games on BlackBerry . < PJB > < > MODIFICATIONS 2010 - 07 - 09 < PJB > Created . AGPL3 Copyright 2010 - 2016 it under the terms of the GNU Affero General Public License as ...
a61d509b90eddf8874ece2c3e1f4968f8f0ca8d20a77eb5a9bea63d73f884371
swarmpit/swarmpit
menu_card.cljs
(ns swarmpit.component.menu_card (:require [material.icon :as icon] [material.components :as comp] [swarmpit.component.state :as state] [sablono.core :refer-macros [html]] [rum.core :as rum])) (enable-console-print!) (rum/defc menu-popper < rum/reactive [items-hash it...
null
https://raw.githubusercontent.com/swarmpit/swarmpit/38ffbe08e717d8620bf433c99f2e85a9e5984c32/src/cljs/swarmpit/component/menu_card.cljs
clojure
(ns swarmpit.component.menu_card (:require [material.icon :as icon] [material.components :as comp] [swarmpit.component.state :as state] [sablono.core :refer-macros [html]] [rum.core :as rum])) (enable-console-print!) (rum/defc menu-popper < rum/reactive [items-hash it...
082ea9948bd6a788e40939c33b720f60759cf9d67a6450695cf654af3c0a573b
gdevanla/haskell-lox
main4.hs
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # import RIO import System.IO (print) import Control.Applicative (many, (*>), (<$), (<$>), (<*), (<*>), (<|>)) import Control.Monad (ap, void) import Data.Char (isDigit, isLetter) import FunctionsAndTypesForParsing import Text.Parsec.String (Parser) import T...
null
https://raw.githubusercontent.com/gdevanla/haskell-lox/43fe7155b50a5f4eaaad75e7cb4e6e5aed58701f/app/main4.hs
haskell
varD1 = lexemeA0 $ return $ Var <$> ((:) <$> firstChar <*> (many nonFirstChar)) where firstChar = letter <|> char '_' nonFirstChar = digit <|> firstChar
# LANGUAGE NoImplicitPrelude # # LANGUAGE TemplateHaskell # import RIO import System.IO (print) import Control.Applicative (many, (*>), (<$), (<$>), (<*), (<*>), (<|>)) import Control.Monad (ap, void) import Data.Char (isDigit, isLetter) import FunctionsAndTypesForParsing import Text.Parsec.String (Parser) import T...
ac1be4d6b1b27be431246c402b7ebacd642887ba66d89602dae032c2123bf820
instedd/planwise
providers_set.clj
(ns planwise.boundary.providers-set) (defprotocol ProvidersSet "API for manipulating providers set" (list-providers-set [this owner-id] "Returns the list of the providers-set owned by the user") (get-provider-set [this provider-set-id] "Finds a provider-set by id") (get-provider [this provider-id] ...
null
https://raw.githubusercontent.com/instedd/planwise/1bc2a5742ae3dc377dddf1f9e9bb60f0d2f59084/src/planwise/boundary/providers_set.clj
clojure
(ns planwise.boundary.providers-set) (defprotocol ProvidersSet "API for manipulating providers set" (list-providers-set [this owner-id] "Returns the list of the providers-set owned by the user") (get-provider-set [this provider-set-id] "Finds a provider-set by id") (get-provider [this provider-id] ...
f77e36ba543efb3ccf79eb1eba074a502a52263462afc2c40c1166c625e6552b
shirok/Gauche
822.scm
;;; 822.scm - parsing RFC2822 style message ;;; Copyright ( c ) 2000 - 2022 < > ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions ;;; are met: ;;; ;;; 1. Redistributions of source code must retain the ab...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/libsrc/rfc/822.scm
scheme
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in b...
822.scm - parsing RFC2822 style message Copyright ( c ) 2000 - 2022 < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING ...
f5ac74120da29f3d71692caa0fbf7a2ee5b7185c0704b591781f28647c43990c
ghcjs/jsaddle-dom
HTMLTableRowElement.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.HTMLTableRowElement (insertCell, insertCell_, deleteCell, getRowIndex, getSectionRowIndex, getCells, setAli...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/HTMLTableRowElement.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.HTMLTableRowElement (insertCell, insertCell_, deleteCell, getRowIndex, getSectionRowIndex, getCells, setAlign, getAlign, setBgColor, getBgColor, setCh, getCh, setChOff, getChOff, setVAlign, getVAlig...
ba750e6c42da2d7918201063b66dafc3e8d85e1d66d030bdd0f180f0788d819d
day8/re-frame-10x
registrar.cljc
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.registrar "In many places, re-frame asks you to associate an `id` (keyword) with a `handler` (function). This namespace contains the central registry of such associations." (:require [day8.re-frame-10x.inlined-deps.re-fram...
null
https://raw.githubusercontent.com/day8/re-frame-10x/d8dcb17e217449aba2cf64b9f843b0e9f86cfcb6/gen-src/day8/re_frame_10x/inlined_deps/re_frame/v1v1v2/re_frame/registrar.cljc
clojure
kinds of handlers This atom contains a register of all handlers. Leaf nodes are handlers. allow it, but warn. Happens on figwheel reloads. note: returns the just registered handler clear all kinds clear all handlers for this kind clear a single handler for a kind
(ns ^{:mranderson/inlined true} day8.re-frame-10x.inlined-deps.re-frame.v1v1v2.re-frame.registrar "In many places, re-frame asks you to associate an `id` (keyword) with a `handler` (function). This namespace contains the central registry of such associations." (:require [day8.re-frame-10x.inlined-deps.re-fram...
353f4d17f8b739880800e703bc49067eddfc2c18b1ce2347376fba5a816f0d4f
imitator-model-checker/imitator
AlgoAF.ml
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * * Module description : AF synthesis [ JLR15 ] * * File contributors : * Created ...
null
https://raw.githubusercontent.com/imitator-model-checker/imitator/105408ae2bd8c3e3291f286e4d127defd492a58b/src/AlgoAF.ml
ocaml
********************************************************** ********************************************************** Modules ********************************************************** ********************************************************** ********************************************************** ***************...
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * IMITATOR * * Université Paris 13 , LIPN , CNRS , France * * Module description : AF synthesis [ JLR15 ] * * File contributors : * Created ...
4f7b372b5d91667fe8bafd6353fdc502baa7af8fbbfad730dcd200b67bee08af
exercism/haskell
Tests.hs
# OPTIONS_GHC -fno - warn - type - defaults # import Data.Foldable (for_) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import Triangle (rows) main :: IO () main = hspecWith defaultConfig {configFastFail = True} specs specs :: Spec sp...
null
https://raw.githubusercontent.com/exercism/haskell/f81ee7dc338294b3dbefb7bd39fc193546fcec26/exercises/practice/pascals-triangle/test/Tests.hs
haskell
# OPTIONS_GHC -fno - warn - type - defaults # import Data.Foldable (for_) import Test.Hspec (Spec, describe, it, shouldBe) import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith) import Triangle (rows) main :: IO () main = hspecWith defaultConfig {configFastFail = True} specs specs :: Spec sp...
bc230f981db2bdb3a5ceb97a35b0ef423ad235986460feed9fe419e5dcbd5d3e
exercism/common-lisp
example.lisp
(defpackage #:gigasecond (:use #:cl) (:export #:from)) (in-package #:gigasecond) (defun from (year month day hour minute second) (reverse (subseq (multiple-value-list (let ((TZ 0)) (decode-universal-time (+ (encode-universal-time second minute hour day month year TZ) (expt ...
null
https://raw.githubusercontent.com/exercism/common-lisp/9d2a687e3573c2e43f57f21a4803e92f28c6afaf/exercises/practice/gigasecond/.meta/example.lisp
lisp
(defpackage #:gigasecond (:use #:cl) (:export #:from)) (in-package #:gigasecond) (defun from (year month day hour minute second) (reverse (subseq (multiple-value-list (let ((TZ 0)) (decode-universal-time (+ (encode-universal-time second minute hour day month year TZ) (expt ...
7f8750856398d5f9579b760bc3fde205e08a855712694694193086608926b165
ghc/packages-Cabal
ComponentName.hs
{-# LANGUAGE DeriveDataTypeable #-} # LANGUAGE DeriveGeneric # module Distribution.Types.ComponentName ( ComponentName(..), showComponentName, componentNameStanza, componentNameString, ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Types.UnqualComponentName import Distribu...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/Cabal/Distribution/Types/ComponentName.hs
haskell
# LANGUAGE DeriveDataTypeable # Libraries live in a separate namespace, so must distinguish Build-target-ish syntax note: this works as lib/flib/... all start with different character! | This gets the underlying unqualified component name. In fact, it is guaranteed to uniquely identify a component, returning @Not...
# LANGUAGE DeriveGeneric # module Distribution.Types.ComponentName ( ComponentName(..), showComponentName, componentNameStanza, componentNameString, ) where import Prelude () import Distribution.Compat.Prelude import Distribution.Types.UnqualComponentName import Distribution.Types.LibraryName import Distri...
04bd57818249cafafa56163feb590aca63bd33c8225f317de84fc5fe64e0823e
8c6794b6/guile-tjit
r6rs-libraries.scm
;;; r6rs-libraries.scm --- Support for the R6RS `library' and `import' forms Copyright ( C ) 2010 Free Software Foundation , Inc. ;; ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundati...
null
https://raw.githubusercontent.com/8c6794b6/guile-tjit/9566e480af2ff695e524984992626426f393414f/module/ice-9/r6rs-libraries.scm
scheme
r6rs-libraries.scm --- Support for the R6RS `library' and `import' forms This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public either This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the imp...
Copyright ( C ) 2010 Free Software Foundation , Inc. version 3 of the License , or ( at your option ) any later version . You should have received a copy of the GNU Lesser General Public Foundation , Inc. , 51 Franklin Street , Fifth Floor , Boston , USA (define (resolve-r6rs-interface import-spec...
c049e7e1c978640cf2cf1629c2e5ba0eba8fe3d4f6f34cb4b6ecef503e8348b7
argp/bap
ast_convenience.ml
* Utility functions for ASTs . It 's useful to have these in a separate file so it can use functions from and elsewhere . separate file so it can use functions from Typecheck and elsewhere. *) open Ast open BatPervasives open Big_int_Z open Big_int_convenience open Type open Typecheck (** Create a single...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/ocaml/ast_convenience.ml
ocaml
* Create a single target cjmp. Uses a hopefully-unique label for the other. * Create a single target cjmp with inverted condition. Uses a hopefully-unique label for the other. exp helpers More convenience functions for building common expressions. * bitwise equality type inference shouldn't be needed when t is...
* Utility functions for ASTs . It 's useful to have these in a separate file so it can use functions from and elsewhere . separate file so it can use functions from Typecheck and elsewhere. *) open Ast open BatPervasives open Big_int_Z open Big_int_convenience open Type open Typecheck let cjmp c t = le...
974ba8e8794c7ff361b9ef87c5400e693d79152fa7b732e759c32f8b84833c35
s9gf4ult/type-fun
Eq.hs
module TypeFun.Data.Eq ( Equal ) where type family Equal (a :: k) (b :: k) :: Bool where Equal a a = 'True Equal a b = 'False
null
https://raw.githubusercontent.com/s9gf4ult/type-fun/a90d4b7ce421b50705df84752fe4185cd63932e2/src/TypeFun/Data/Eq.hs
haskell
module TypeFun.Data.Eq ( Equal ) where type family Equal (a :: k) (b :: k) :: Bool where Equal a a = 'True Equal a b = 'False
5f8ed6f41d1be30b9a31091a635caaade5a9ee9e9b8aba715de9b58e2b288b11
igrishaev/dynamodb
encode.clj
(ns dynamodb.encode " " (:require [cheshire.core :as json] [dynamodb.codec :as codec] [dynamodb.util :as util])) (defprotocol IEncode (-encode [this])) (defn encode-bytes [^bytes bytea] (-> bytea (codec/b64-encode) (codec/bytes->str "utf-8"))) (extend-protocol IEncode (Class/f...
null
https://raw.githubusercontent.com/igrishaev/dynamodb/2a8ff7486a3e956f6855b7c7b3543e0c487c5dd2/src/dynamodb/encode.clj
clojure
(ns dynamodb.encode " " (:require [cheshire.core :as json] [dynamodb.codec :as codec] [dynamodb.util :as util])) (defprotocol IEncode (-encode [this])) (defn encode-bytes [^bytes bytea] (-> bytea (codec/b64-encode) (codec/bytes->str "utf-8"))) (extend-protocol IEncode (Class/f...
b44f1d07c20993fbee231b49e88bd606b2a13231771df66f9317cb364468182b
fpco/ide-backend
Package.hs
----------------------------------------------------------------------------- -- | -- Module : Distribution.Package Copyright : 2003 - 2004 -- -- Maintainer : -- Portability : portable -- -- Defines a package identifier along with a parser and pretty printer for it. ' PackageIdentifier 's consist o...
null
https://raw.githubusercontent.com/fpco/ide-backend/860636f2d0e872e9481569236bce690637e0016e/ide-backend/TestSuite/inputs/Cabal-1.14.0/Distribution/Package.hs
haskell
--------------------------------------------------------------------------- | Module : Distribution.Package Maintainer : Portability : portable Defines a package identifier along with a parser and pretty printer for it. a 'Dependency' data type. A dependency is a package name and a version * Package ...
Copyright : 2003 - 2004 ' PackageIdentifier 's consist of a name and an exact version . It also defines range , like @\"foo > = 1.2 & & < 2\"@. All rights reserved . Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditio...
e567fa1c4a5f5b02557d61145c6064b82bd54139be1aad187daf63312ddae5a3
mput/sicp-solutions
2_56.test.rkt
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_56.rkt") (define tests (test-suite "Test for exercise 2_56" (test-case "Examples from text" (check-equal? (deriv '(+ x 3) 'x) 1) (check-equal? (deriv '(* x ...
null
https://raw.githubusercontent.com/mput/sicp-solutions/fe12ad2b6f17c99978c8fe04b2495005986b8496/tests/2_56.test.rkt
racket
#lang racket (require rackunit/text-ui) (require rackunit "custom-checks.rkt") (require rackunit "../solutions/2_56.rkt") (define tests (test-suite "Test for exercise 2_56" (test-case "Examples from text" (check-equal? (deriv '(+ x 3) 'x) 1) (check-equal? (deriv '(* x ...
c4abe0c2cafff687649524aa20e06dc43fc32956a6d658ff11638f9c1e000420
agda/agda
Size.hs
-- | Collection size. -- -- For 'TermSize' see "Agda.Syntax.Internal". module Agda.Utils.Size ( Sized(..) , SizedThing(..) , sizeThing , module X ) where import Prelude hiding (null, length) import Data.Peano as X ( Peano(Zero,Succ) ) import Data.Foldable (Foldable, length) import Data.HashMap....
null
https://raw.githubusercontent.com/agda/agda/dd89d485c366053393bceff9a3dd1e4eddcd9aca/src/full/Agda/Utils/Size.hs
haskell
| Collection size. For 'TermSize' see "Agda.Syntax.Internal". | The size of a collection (i.e., its length). | Strict size computation. Use 'natSize' instead. See #Don.27t_ask_for_the_length_of_a_list_when_you_don.27t_need_it . | Lazily compute a (possibly infinite) size. Use when comparing a size against...
module Agda.Utils.Size ( Sized(..) , SizedThing(..) , sizeThing , module X ) where import Prelude hiding (null, length) import Data.Peano as X ( Peano(Zero,Succ) ) import Data.Foldable (Foldable, length) import Data.HashMap.Strict (HashMap) import Data.HashSet (HashSet) import Data.IntMap ...
075854b7382480f60935741d1618a93bd3fc0a22abe994213d27a3ffd508d87a
wavejumper/rehook
dom_test.clj
(ns dom-test (:require [clojure.test :refer :all] [rehook.dom :as dom] [rehook.util :as util] [rehook.dom.server :as server])) (dom/defui test-component [ctx props $] (dom/html $ [:div {:ctx ctx :props props} [:div {} "Hello world!"]])) (deftest defui-symbol-as-c...
null
https://raw.githubusercontent.com/wavejumper/rehook/c1a4207918827f4b738cdad9a9645385e5e10ff4/rehook-dom/test/dom_test.clj
clojure
(ns dom-test (:require [clojure.test :refer :all] [rehook.dom :as dom] [rehook.util :as util] [rehook.dom.server :as server])) (dom/defui test-component [ctx props $] (dom/html $ [:div {:ctx ctx :props props} [:div {} "Hello world!"]])) (deftest defui-symbol-as-c...
0b978ebdaeaaa063c5f9f8ef55850789ccd070d33c3ab386f1e84fe5d479d320
Dimercel/listopia
special-folds.lisp
(defpackage listopia-bench.special-folds (:use :cl :prove :listopia-bench.utils) (:import-from :listopia :concat :concat-map :any :all :sum :product :maximum :minimum) (:...
null
https://raw.githubusercontent.com/Dimercel/listopia/2d2a1a3c35580252ca0085e15ebf625f73230d60/bench/special-folds.lisp
lisp
(defpackage listopia-bench.special-folds (:use :cl :prove :listopia-bench.utils) (:import-from :listopia :concat :concat-map :any :all :sum :product :maximum :minimum) (:...
ecae0901699c4f3f7cb64645c7729cbfaeb82286aaf49b3eed89b9d971e57fe6
green-coder/girouette
version_test.cljc
(ns girouette.version-test (:require [clojure.test :refer [deftest testing is are]] [girouette.version :as gv])) (deftest version-<-test (is (false? (#'gv/version-< [:tw 2] [:tw 1]))) (is (false? (#'gv/version-< [:tw 2] [:tw 1 9]))) (is (false? (#'gv/version-< [:tw 2] [:tw 2]))) (is (false? (#'gv/ver...
null
https://raw.githubusercontent.com/green-coder/girouette/34f8cabdd605e93bd2ced4e5be29f611557d4b76/lib/girouette/test/girouette/version_test.cljc
clojure
(ns girouette.version-test (:require [clojure.test :refer [deftest testing is are]] [girouette.version :as gv])) (deftest version-<-test (is (false? (#'gv/version-< [:tw 2] [:tw 1]))) (is (false? (#'gv/version-< [:tw 2] [:tw 1 9]))) (is (false? (#'gv/version-< [:tw 2] [:tw 2]))) (is (false? (#'gv/ver...
e03ccd2a19c63ea9230a0b7a562f60358ce053daabdcd9a83d8198db9f7939ad
rudymatela/fitspec
Derive.hs
-- | Module : Test . FitSpec . Derive Copyright : ( c ) 2015 - 2017 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > -- Experimental module for deriving ' Mutable ' and ' ShowMutable ' instances -- Needs GHC and ( tested on GHC 7.4 , 7.6 , 7.8 , 7.10 and 8.0 ) --...
null
https://raw.githubusercontent.com/rudymatela/fitspec/f67b0dfc4d7413d62e6c6f4df36df3703f2a4302/src/Test/FitSpec/Derive.hs
haskell
| Despite 'Mutable' instances being actually very simple to write manually, this module can be used to derive those instances automatically. However, it will not work on all cases: when that happens, you should write your instances manually. for a given type 'Name'. Writing > deriveMutable ''Stack w...
Module : Test . FitSpec . Derive Copyright : ( c ) 2015 - 2017 License : 3 - Clause BSD ( see the file LICENSE ) Maintainer : < > Experimental module for deriving ' Mutable ' and ' ShowMutable ' instances Needs GHC and ( tested on GHC 7.4 , 7.6 , 7.8 , 7.10 and 8.0 ) If FitSpec ...
24cdbb23b0efa5b375e78954ad98762e0a8c75678efe9cffa3a4ea896d9b50d9
javalib-team/sawja
NativeStubsGen.ml
* This file is part of SAWJA * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * ...
null
https://raw.githubusercontent.com/javalib-team/sawja/da39f9c1c4fc52a1a1a6350be0e39789812b6c00/jvmti/trace_native/NativeStubsGen.ml
ocaml
* This file is part of SAWJA * Copyright ( c)2007 , 2008 ( Université de Rennes 1 ) * Copyright ( c)2007 , 2008 , 2009 ( CNRS ) * Copyright ( c)2009 ( INRIA ) * * This program is free software : you can redistribute it and/or * modify it under the terms of the GNU General Public License * ...
5e7d95707ea3522982fb487f4299b237a61cb4dd02bf37dbe6981388f6efe963
jordwalke/rehp
viewer_js.ml
Graph viewer * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , ...
null
https://raw.githubusercontent.com/jordwalke/rehp/f122b94f0a3f06410ddba59e3c9c603b33aadabf/examples/graph_viewer/viewer_js.ml
ocaml
** We do not want to disable the default action on mouse down (here, keyboard focus) in this example. Firebug.console##time(Js.string "loading"); Firebug.console##timeEnd(Js.string "loading"); Firebug.console##time(Js.string "parsing"); Firebug.console##timeEnd(Js.string "parsing"); ...
Graph viewer * Copyright ( C ) 2010 * Laboratoire PPS - CNRS Université Paris Diderot * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation ; either version 2 of the License , ...
ed0c31926db0ba6cbfcb6ae279a210cef489c7d91ca67e6250b2b28cc027b31c
aryx/yacfe
common2.mli
(*s: common.mli *) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # (* Globals *) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #...
null
https://raw.githubusercontent.com/aryx/yacfe/86a4994822abca03ec9e03f1a7e60eca66db0a08/commons/common2.mli
ocaml
s: common.mli Globals s: common.mli globals *************************************************************************** Flags *************************************************************************** s: common.mli globals flags see the corresponding section for the use of those flags. See also * the "Flags a...
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # val verbose_level :...
ec045e02212ac5bb7db8b1fd055929cc0b54b2e6369c16903860ff6a8c7f6529
jordanthayer/ocaml-search
dock_robot_instance.ml
* Generating instances . @author eaburns @since 2010 - 03 - 10 @author eaburns @since 2010-03-10 *) let dock_robot_instances = User_paths.instance_root ^ "dock_robot" type t = { adjacent : float array array; (* Adjacency matrix of the distances between each location. *) pile_contents : ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/dock_robot/dock_robot_instance.ml
ocaml
Adjacency matrix of the distances between each location. The list of cranes at each location. The list of piles at each location. The desired location for each container. Locations are numbered 0..nlocations - 1. Containers are numbered 0..ncontainers - 1. Piles are numbered 0..npiles - 1. * [pile_locatio...
* Generating instances . @author eaburns @since 2010 - 03 - 10 @author eaburns @since 2010-03-10 *) let dock_robot_instances = User_paths.instance_root ^ "dock_robot" type t = { adjacent : float array array; pile_contents : int list array; The pile stacks . The first element on each l...
e8ef008730cd1ca1f8b26f722456c5755a8d6fbc0859a86b73ededb1a5962641
alanzplus/EOPL
2.11.rkt
#lang eopl (define empty-env (lambda () '())) (define empty-env? (lambda (env) (null? env))) (define extend-env (lambda (var val env) (cons (list (list var) (list val)) env))) (define extend-env* (lambda (var-lst val-lst env) (cons (list var-lst val-lst) env))) (define apply-env (lambda (env var)...
null
https://raw.githubusercontent.com/alanzplus/EOPL/d7b06392d26d93df851d0ca66d9edc681a06693c/EOPL/ch2/2.11.rkt
racket
(provide has-binding?)
#lang eopl (define empty-env (lambda () '())) (define empty-env? (lambda (env) (null? env))) (define extend-env (lambda (var val env) (cons (list (list var) (list val)) env))) (define extend-env* (lambda (var-lst val-lst env) (cons (list var-lst val-lst) env))) (define apply-env (lambda (env var)...
cef66d120c73a2406e0ab3406074979591acc5cb580558bc7c9402089341f162
weavejester/ring-serve
swank.clj
(ns ring.middleware.swank "Middleware for working with Emacs swank connections.") ;; The context we're compiling in doesn't necessarily have swank-clojure ;; as a dependency. We need to create the middleware at runtime when ;; we can detect whether the swank.core.connection class is available. (defn- make-swank-mid...
null
https://raw.githubusercontent.com/weavejester/ring-serve/d922c569740b4c56264219104e98f30f8c24514b/src/ring/middleware/swank.clj
clojure
The context we're compiling in doesn't necessarily have swank-clojure as a dependency. We need to create the middleware at runtime when we can detect whether the swank.core.connection class is available.
(ns ring.middleware.swank "Middleware for working with Emacs swank connections.") (defn- make-swank-middleware [] (eval '(fn [handler] (let [conn swank.core.connection/*current-connection*] (fn [request] (swank.core.connection/with-connection conn (handler request))))))) (d...
7533a578b0d1d0ed115d8738eb27c7b482cd8cda11431089e17e53eb44afd5be
facebook/flow
file_sig.ml
* 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/flow/f7d50bb772462888b27b5dbf9acf7d079eb1ff5f/src/parser_utils/file_sig.ml
ocaml
e.g. `foo(module)`, dangerous because `module` is aliased offending identifier We still need to add requires so the dependency is recorded, because we * continue checking the file and will try to find the resolved module. This ensures that we do not add a `require` with no bindings to `module_sig.requires...
* 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...
901e9d39dcabc29bae020a4e4a250906d0681d1aa9a0febfcbf62f22320d9798
kishanov/re-frame-datatable
styling.cljs
(ns re-frame-datatable-docs.sections.styling (:require [re-frame-datatable-docs.components :as components] [re-frame-datatable-docs.formatters :as formatters] [re-frame-datatable-docs.table-views :as table-views] [re-frame-datatable-docs.subs :as subs] [re-frame-datata...
null
https://raw.githubusercontent.com/kishanov/re-frame-datatable/d17f8fc7e5834e777b5bc3fbc257d1f7d5b74b3a/docs/src/cljs/re_frame_datatable_docs/sections/styling.cljs
clojure
... ...
(ns re-frame-datatable-docs.sections.styling (:require [re-frame-datatable-docs.components :as components] [re-frame-datatable-docs.formatters :as formatters] [re-frame-datatable-docs.table-views :as table-views] [re-frame-datatable-docs.subs :as subs] [re-frame-datata...
5f17711cf5849318f607d6ccf1445bb86244bf8a2d5108022ef205a2d0efa9fc
binaryage/chromex
web_navigation.clj
(ns chromex.ext.web-navigation "Use the chrome.webNavigation API to receive notifications about the status of navigation requests in-flight. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] ...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts/chromex/ext/web_navigation.clj
clojure
iframe&gt; or a &lt;frame&gt; of a web page and is -- events ----------------------------------------------------------------------------------------------------------------- docs: /#tapping-events -- convenience -------------------------------------------------------------------------------------------------------...
(ns chromex.ext.web-navigation "Use the chrome.webNavigation API to receive notifications about the status of navigation requests in-flight. * available since Chrome 36 * " (:refer-clojure :only [defmacro defn apply declare meta let partial]) (:require [chromex.wrapgen :refer [gen-wrap-helper]] ...
af0e9fd510fce094e8cea605cd76c64ba03964d59c05c809a789cbc7298f528c
ml4tp/tcoq
cbytegen.mli
open Cbytecodes open Cemitcodes open Term open Declarations open Pre_env (** Should only be used for monomorphic terms *) val compile : bool -> (* Fail on error with a nice user message, otherwise simply a warning *) ?universes:int -> env -> constr -> (bytecodes * bytecodes * fv) option (** init, fun, fv *) va...
null
https://raw.githubusercontent.com/ml4tp/tcoq/7a78c31df480fba721648f277ab0783229c8bece/kernel/cbytegen.mli
ocaml
* Should only be used for monomorphic terms Fail on error with a nice user message, otherwise simply a warning * init, fun, fv * Shortcut of the previous function used during module strengthening
open Cbytecodes open Cemitcodes open Term open Declarations open Pre_env ?universes:int -> env -> constr -> (bytecodes * bytecodes * fv) option val compile_constant_body : bool -> env -> constant_universes option -> constant_def -> body_code option val compile_alias : Names.constant -> body_code * sp...
87d1e9be375f989f588025661a1fa69526fefcc3ecf845c1b9d9838925b1b1f2
google/orthotope
ShapedU.hs
Copyright 2020 Google LLC -- 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 un...
null
https://raw.githubusercontent.com/google/orthotope/8b11f152670ecbb34c6bd4055ee022484e3cbfbe/Data/Array/ShapedU.hs
haskell
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
Copyright 2020 Google LLC Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module Data.Array.ShapedU(module A) where import Data.Array.Internal.ShapedU as A hiding(Array(..)) import Data.Array.Internal.ShapedU as A(Array)
c09dd302b8db0e5bfc951c93871620530bcfd7a5f4f158a815c7dc6a81676899
smallhadroncollider/taskell
Types.hs
module Taskell.UI.Types where import ClassyPrelude (Eq, Int, Ord, Show) import Taskell.Types (ListIndex, TaskIndex) data ResourceName = RNCursor | RNTask (ListIndex, TaskIndex) | RNList Int | RNLists | RNModal | RNDue Int deriving (Show, Eq, Ord)
null
https://raw.githubusercontent.com/smallhadroncollider/taskell/3c731476e9a58ede300cfa83aba412509b132a3e/src/Taskell/UI/Types.hs
haskell
module Taskell.UI.Types where import ClassyPrelude (Eq, Int, Ord, Show) import Taskell.Types (ListIndex, TaskIndex) data ResourceName = RNCursor | RNTask (ListIndex, TaskIndex) | RNList Int | RNLists | RNModal | RNDue Int deriving (Show, Eq, Ord)
1403b1b32f957afb7d211699f0aca6a41cd7bdc21ff361f6c213fc6723833b9f
xapi-project/xen-api
test_sr_allowed_operations.ml
* Copyright ( C ) 2006 - 2012 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/e984d34bd9ff60d7224a841270db0fe1dfe42e7a/ocaml/tests/test_sr_allowed_operations.ml
ocaml
Helpers for testing Xapi_sr_operations.assert_operation_valid * The set of allowed operations must be restricted during rolling pool upgrade to the enums known by older releases. Check that a recent allowed_operation won't appear in allowed_operations * during RPU mode, and that the error is correct Take...
* Copyright ( C ) 2006 - 2012 Citrix Systems Inc. * * 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 ; version 2.1 only . with the special * exception on linking describe...
f221c383b3e1d81f33887e1376d2f0e89b2c14d843756401a0492181bb0b6e73
bhk/scam
peg-q.scm
(require "core.scm") (require "peg.scm" &private) lex & unlex (expect 5 (words (lex ";; Test\n" [";" " " "\n" "(" ")"]))) (for (str [";; Test\n(ABC)"]) (expect str (un-lex (lex str [";" " " "\n" "(" ")"])))) ;; peg-empty (expect ((peg-empty "cap") "a b c" 1) (Yes 1 "cap")) ;; peg-p (define `px (peg-p "x" nil "X"...
null
https://raw.githubusercontent.com/bhk/scam/59d7c02e673f1faebd0b7625d8c595daaa5efc51/peg-q.scm
scheme
peg-empty peg-p peg-or peg-and peg-* peg-not peg-? peg-at peg-+ peg-c
(require "core.scm") (require "peg.scm" &private) lex & unlex (expect 5 (words (lex ";; Test\n" [";" " " "\n" "(" ")"]))) (for (str [";; Test\n(ABC)"]) (expect str (un-lex (lex str [";" " " "\n" "(" ")"])))) (expect ((peg-empty "cap") "a b c" 1) (Yes 1 "cap")) (define `px (peg-p "x" nil "X")) (define `py (peg-p ...
f62b16ff0f4640f4a5784fdf62154a35260e6bac422fb5c9b276751ec7e3580f
rizo/snowflake-os
printinstr.mli
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/rizo/snowflake-os/51df43d9ba715532d325e8880d3b8b2c589cd075/plugins/ocamlopt.opt/bytecomp/printinstr.mli
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ open Instruct open Format v...
4de0957d5ced9d9b273ca8602844efbd7aac67df120b4904eb5d4cd59afb87cc
haroldcarr/learn-haskell-coq-ml-etc
SimpleReflectSpec.hs
# OPTIONS_GHC -fno - warn - type - defaults # {-# LANGUAGE DataKinds #-} # LANGUAGE DeriveFunctor # {-# LANGUAGE DerivingStrategies #-} # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # {-# LANGUAGE TypeOperators #-} module SimpleReflectSpec where import ...
null
https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/playpen/iceland-jack/test/SimpleReflectSpec.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE TypeOperators #
# OPTIONS_GHC -fno - warn - type - defaults # # LANGUAGE DeriveFunctor # # LANGUAGE PartialTypeSignatures # # LANGUAGE TypeApplications # module SimpleReflectSpec where import Debug.SimpleReflect import Test.Hspec data V2 a = V2 a a deriving stock (Eq, Functor, Show) spec :: Spec...
b82004f9b52050337899cb1fa501f43159c2d9e79bd16988b529f7454de07b3a
lspitzner/brittany
Test27.hs
func :: ((a, b, c), (a, b, c), (a, b, c))
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test27.hs
haskell
func :: ((a, b, c), (a, b, c), (a, b, c))
cc5e6ddb2dc241dfd8b64f662279fdd2ccaaf9ee4b23c3c262cb650df4ad83cb
mhayashi1120/Gauche-net-twitter
account.scm
(define-module net.twitter.account (extend net.twitter.base) (use net.twitter.core) (export verify-credentials? verify-credentials/json settings/json settings-update/json update-profile-image/json update-profile-background-image/json update-profile-colors/json update-profile/json upda...
null
https://raw.githubusercontent.com/mhayashi1120/Gauche-net-twitter/b9f4be3ca8459fc662f9c79481411aac03b51133/src/net/twitter/account.scm
scheme
JSON api
(define-module net.twitter.account (extend net.twitter.base) (use net.twitter.core) (export verify-credentials? verify-credentials/json settings/json settings-update/json update-profile-image/json update-profile-background-image/json update-profile-colors/json update-profile/json upda...
052a4adca342633a92aa6965787d8d0de6408c7d52675beb14a89df45c044d60
dnadales/sandbox
Lib.hs
{-# LANGUAGE RankNTypes #-} module Lib ( countLinesPp , printLineCount , countFileLines , printLinesIn , countFilesIn , listFilesIn , concatFilesIn , catFile , concatFilesInStr ) where import Control.Applicative import Control.Monad import Control.M...
null
https://raw.githubusercontent.com/dnadales/sandbox/401c4f0fac5f8044fb6e2e443bacddce6f135b4b/pw-pipes/src/Lib.hs
haskell
# LANGUAGE RankNTypes # | Count the lines that pass through this pipe. | Count the lines of a file. | Pass only the existing files. | Pass only the readable files. Note that this pattern could be abstracted. Maybe in the dirstream library. | Pass only regular files (no symbolic links) | Print the number of lines...
module Lib ( countLinesPp , printLineCount , countFileLines , printLinesIn , countFilesIn , listFilesIn , concatFilesIn , catFile , concatFilesInStr ) where import Control.Applicative import Control.Monad import Control.Monad.IO.Class import ...
025306f15b180d0319254be1775b94b672e285f36841653e11f03cd4e0c383cb
probprob/probabilisticprogramming
Distribution.hs
{-# LANGUAGE RankNTypes #-} module Distribution where import System.Random type LogLikelihood = Double data Dist a = Dist {logDensity :: a -> LogLikelihood, distSample :: forall g. RandomGen g => g -> (a, LogLikelihood, g)} minusInf = log 0 mapFst :: (t -> s) -...
null
https://raw.githubusercontent.com/probprob/probabilisticprogramming/59c96d9e25bf6067ff57f488d3049dbdc5b4e5dd/hakaru10/Distribution.hs
haskell
# LANGUAGE RankNTypes # Uniformly from a given set This is unnormalized (that is, up to a constant) It doesn't matter since we are always interested in changes in LL Makes use of Atkinson 's algorithm as described in : Monte Carlo Statistical Methods pg . 55 Further discussion at : -poisson-random-values/ ...
module Distribution where import System.Random type LogLikelihood = Double data Dist a = Dist {logDensity :: a -> LogLikelihood, distSample :: forall g. RandomGen g => g -> (a, LogLikelihood, g)} minusInf = log 0 mapFst :: (t -> s) -> (t, u) -> (s, u) mapFst f ...
ffa91fd3f707b9b6a1946a86c8eaaefded4bce3f43f7efc3db522f60aee4079f
facebook/duckling
Corpus.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.Ordinal.GA.Corpus ( corpus ) where import Prelude imp...
null
https://raw.githubusercontent.com/facebook/duckling/72f45e8e2c7385f41f2f8b1f063e7b5daa6dca94/Duckling/Ordinal/GA/Corpus.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.Ordinal.GA.Corpus ( corpus ) where import Prelude import Data.String import Duckling.Locale import Duckling.Ordinal.Types import Duckling.Resolve import Duckling.Testing.Types corpus :: Corpus corpus = (testContext {locale = makeLocale GA Nothin...
9f983d283b6397759878bac25e9f4e17ac5da893dd924c6bed7d01bf2973862a
helpshift/ekaf
ekaf_utils.erl
-module(ekaf_utils). -include("ekaf_definitions.hrl"). %% API -export([ %%utils random/0, epoch/0, epoch_in_seconds/0, btoi/1, atoi/1, itoa/1, itob/1, atob/1, btoa/1, btoatom/1, btoatob/2, atobtoa/2, to_lower/1, hex/1, encode/1, deco...
null
https://raw.githubusercontent.com/helpshift/ekaf/8967b8a0cf650c80656d48fcdcd1e1b3c8d8d6a7/src/ekaf_utils.erl
erlang
API utils =================================================================== API =================================================================== -------------------------------------------------------------------- @doc @end -------------------------------------------------------------------- ==================...
-module(ekaf_utils). -include("ekaf_definitions.hrl"). -export([ random/0, epoch/0, epoch_in_seconds/0, btoi/1, atoi/1, itoa/1, itob/1, atob/1, btoa/1, btoatom/1, btoatob/2, atobtoa/2, to_lower/1, hex/1, encode/1, decode/1, every_n_m...
705079cb6cdeb7b51e1949b771f3934331a10569fdcc43279e520a4f85904449
jjmrocha/kill-bill
kb_locale.erl
%% Copyright 2013 %% 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 ...
null
https://raw.githubusercontent.com/jjmrocha/kill-bill/1ba409c39524f2b47ff1338214bc9b4de3f2659e/src/kb_locale.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing perm...
Copyright 2013 Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(kb_locale). -include("kill_bill.hrl"). -export([get_locales/1, set_locale/2, remove_locale/1]). get_locales(Req=#kb_request{locales=none}) -> ...
41cda14d0a15a79a221e4b849db290b4a3e2d76867c53acf1b5e229052553a31
emezeske/lein-cljsbuild
compiler.clj
(ns cljsbuild.compiler (:use [clojure.pprint] [clj-stacktrace.repl :only [pst+]]) (:require [cljsbuild.util :as util] [cljs.build.api :as bapi] [clojure.string :as string] [clojure.java.io :as io] [fs.core :as fs] [clojure.tools.namespace [track :as track] [dir :as dir] ...
null
https://raw.githubusercontent.com/emezeske/lein-cljsbuild/089193c74e362c143d30dfca21a21e95c7ca112a/support/src/cljsbuild/compiler.clj
clojure
Don't include js files in output-dir or our output file itself, load all libraries without enumerating them, see -526)
(ns cljsbuild.compiler (:use [clojure.pprint] [clj-stacktrace.repl :only [pst+]]) (:require [cljsbuild.util :as util] [cljs.build.api :as bapi] [clojure.string :as string] [clojure.java.io :as io] [fs.core :as fs] [clojure.tools.namespace [track :as track] [dir :as dir] ...
cd9e29238a195237062c4fbaf0298b21f3e392fe0a98f63e29b4a8d9f4193056
oscoin/oscoin
Trace.hs
# LANGUAGE ImplicitParams # module Oscoin.Telemetry.Trace ( Traced , tracing , traced , Probe(..) , hoistProbe , probed , noProbe -- * Running the probes , Tracer -- * Re-exports from 'Control.Comonad' , extract ) where import Oscoin.Prelude import ...
null
https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/src/Oscoin/Telemetry/Trace.hs
haskell
* Running the probes * Re-exports from 'Control.Comonad' ----------------------------------------------------------------------------- Tracing events within pure code. ----------------------------------------------------------------------------- | Like 'tracing', but ignores the traced events. (Traced a -> b) -> ...
# LANGUAGE ImplicitParams # module Oscoin.Telemetry.Trace ( Traced , tracing , traced , Probe(..) , hoistProbe , probed , noProbe , Tracer , extract ) where import Oscoin.Prelude import Oscoin.Telemetry.Events import Oscoin.Time.Chrono import ...
4e5f80e53d64263b3d5a1ccff6739b2fd197b114c7da7aff30050d5e324f6284
janestreet/async
async.ml
open! Async_kernel * { 2 Async_kernel } include Async_kernel (** @open *) module Deferred = struct include Deferred module Or_error = struct include Async_kernel.Deferred.Or_error module Expect_test_config = Deferred_or_error_expect_test_config end end * { 2 Async_unix } include Async_unix (** @open...
null
https://raw.githubusercontent.com/janestreet/async/b26234a08f52bfe48338f8baeda3f0c7dcab3998/src/async.ml
ocaml
* @open * @open * {2 Async_command} We define [Command] using [struct include ... end] rather than as an alias so that we don't have to add [async_command] to downstream jbuild library imports. * @open We define [Quickcheck] using [struct include ... end] rather than as an alias so that we don't have to ad...
open! Async_kernel * { 2 Async_kernel } module Deferred = struct include Deferred module Or_error = struct include Async_kernel.Deferred.Or_error module Expect_test_config = Deferred_or_error_expect_test_config end end * { 2 Async_unix } module Command = struct include Async_command end * { 2 A...
2c4c0b649e0a1a596e5e203cab9c1df28d537d5bdb651e2e7161e394f4d7d94c
RyanGlScott/text-show
Bench.hs
# LANGUAGE DeriveGeneric # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # | Module : Bench Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GH...
null
https://raw.githubusercontent.com/RyanGlScott/text-show/5ea297d0c7ae2d043f000c791cc12ac53f469944/benchmarks/Bench.hs
haskell
# LANGUAGE RankNTypes # ----------------------------------------------------------------------------- Tree-like ADTs ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- Simple enumeration types -----------...
# LANGUAGE DeriveGeneric # # LANGUAGE ScopedTypeVariables # # LANGUAGE TemplateHaskell # | Module : Bench Copyright : ( C ) 2014 - 2017 License : BSD - style ( see the file LICENSE ) Maintainer : Stability : Provisional Portability : GHC Benchmarks for @text - show@. ...
1009faac0ad055c1a2a6513a0e8afe277f98af5ed4dcbc7b4587fa7781bcb5d2
awslabs/s2n-bignum
bignum_iszero.ml
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) (* =================================================================...
null
https://raw.githubusercontent.com/awslabs/s2n-bignum/824c15f908d7a343af1b2f378cfedd36e880bdde/arm/proofs/bignum_iszero.ml
ocaml
========================================================================= ========================================================================= *** print_literal_from_elf "arm/generic/bignum_iszero.o";; *** ------------------------------------------------------------------------- Correctness proof. ...
* Copyright Amazon.com , Inc. or its affiliates . All Rights Reserved . * SPDX - License - Identifier : Apache-2.0 OR ISC * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 OR ISC *) Deduce if a bignum is zero . ...