_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
5894ba1f7d4d56408d03bd7b19d5ba751b1149f7156666d1b0a7c78d39a73d5d
kostmo/circleci-failure-tracker
MatchOccurrences.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module MatchOccurrences where import Data.Aeson import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Lazy as LT import ...
null
https://raw.githubusercontent.com/kostmo/circleci-failure-tracker/393d10a72080bd527fdb159da6ebfea23fcd52d1/app/fetcher/src/MatchOccurrences.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE DeriveGeneric # TODO do error handling: -simple-0.6.2/docs/Database-PostgreSQL-Simple-FromField.html
module MatchOccurrences where import Data.Aeson import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Lazy as LT import Database.PostgreSQL.Simple (FromRow) import ...
a6ee843f2df9f4240a59c56f0fadcbe95ad85f1b6e698136758b83883b4a247c
twosigma/waiter
restore.clj
;; Copyright ( c ) Two Sigma Open Source , 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...
null
https://raw.githubusercontent.com/twosigma/waiter/8d3cdaed90078c188095ae1e65714edc72f9122c/token-syncer/src/token_syncer/commands/restore.clj
clojure
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 permi...
Copyright ( c ) Two Sigma Open Source , LLC distributed under the License is distributed on an " AS IS " BASIS , (ns token-syncer.commands.restore (:require [clojure.tools.logging :as log] [plumbing.core :as pc] [token-syncer.file-utils :as file-utils] [token-syncer.utils :as u...
f2c0ffcec84c68d2e0ac80e622f96c6959657cf39ce1ef129059c2d97cd8af7a
spawnfest/eep49ers
wxEvtHandler.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2008 - 2019 . All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at %% %% -2.0 %% %% Unless required by applicab...
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/wx/src/gen/wxEvtHandler.erl
erlang
%CopyrightBegin% you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific lan...
Copyright Ericsson AB 2008 - 2019 . All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , This module is actually handwritten see .. /api_gen / wx_extra / wxEvtHandler.erl was supplied These messages ...
9faa62a011cdd4d67cdab6f03f4265fb9a9a3e86654ba37e5ce741e70a252abe
kadena-io/pact
Types.hs
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # module Pact.Server.History.Types ( HistoryEnv(..), historyChannel, inboundPactChannel, debugPrint, dbPath, replayFromDisk , HistoryState(..), registeredListeners, persistence , PersistenceSystem(..) , HistoryService ...
null
https://raw.githubusercontent.com/kadena-io/pact/4971ab6078b75eb612d83d56f1e7cd139a5a2ba8/src-ghc/Pact/Server/History/Types.hs
haskell
# LANGUAGE RecordWildCards # # LANGUAGE TemplateHaskell # # LANGUAGE MultiParamTypeClasses # module Pact.Server.History.Types ( HistoryEnv(..), historyChannel, inboundPactChannel, debugPrint, dbPath, replayFromDisk , HistoryState(..), registeredListeners, persistence , PersistenceSystem(..) , HistoryService ...
82285cdeb45911d9d485585fc3e9eb5a2dfaaf55b0ea1c2c3057523ba28640e7
DalekBaldwin/on-lisp
chapter-25-test.lisp
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Chapter 25 - Object - Oriented Lisp # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # (in-package :on-lisp.25.v1.test) (in-readtable :on-lisp-test) (in-root-suite) (defsuite* test-chapter-25-v1) (defun run-all-tests () (format t "Testing chapter 25 object system ...
null
https://raw.githubusercontent.com/DalekBaldwin/on-lisp/b13e8b6e956bef45c4fd7194a062c27555268048/test/chapter-25-test.lisp
lisp
Implementations differ in ordering of results of `union`
Chapter 25 - Object - Oriented Lisp # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # (in-package :on-lisp.25.v1.test) (in-readtable :on-lisp-test) (in-root-suite) (defsuite* test-chapter-25-v1) (defun run-all-tests () (format t "Testing chapter 25 object system version 1 |~%") (test-chapter-25-v1) ...
5e1ff79712fac29aefdcb3cbab70c96bd0b3451f03c1e5f8de37b3cb5832055f
processone/ejabberd
ejabberd_websocket_codec.erl
%% % File : ejabberd_websocket_codec.erl Author : < > % Purpose : Coder/Encoder of websocket frames Created : 9 sty 2023 by < > % % ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne % % This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public...
null
https://raw.githubusercontent.com/processone/ejabberd/4311a5646fae97b988336f389b3ce6585dce4f4b/src/ejabberd_websocket_codec.erl
erlang
File : ejabberd_websocket_codec.erl Purpose : Coder/Encoder of websocket frames This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied w...
Author : < > Created : 9 sty 2023 by < > ejabberd , Copyright ( C ) 2002 - 2023 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along wi...
0cbd3ba98d6253a6dffa0f9fc2e1b69ac144765acd23a18b4dd93067ec66cf30
Metaxal/rascas
separate-sin-cos.rkt
#lang racket/base This file has been changed from its original dharmatech / mpl version . (provide separate-sin-cos) (require "misc.rkt" "arithmetic.rkt") (define (sin-or-cos? u) (or (sin? u) (cos? u) (and (power? u) (or (sin? (base u)) (cos? (base u)))))) ;; ;;;;...
null
https://raw.githubusercontent.com/Metaxal/rascas/540530c28689de50c526abf36079c07fd0436edb/separate-sin-cos.rkt
racket
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#lang racket/base This file has been changed from its original dharmatech / mpl version . (provide separate-sin-cos) (require "misc.rkt" "arithmetic.rkt") (define (sin-or-cos? u) (or (sin? u) (cos? u) (and (power? u) (or (sin? (base u)) (cos? (base u)))))) (defin...
18c8a2fc286d24da7c2af8a2f363e9ec067d12853e3a61e41f26254e26f59b59
bhk/scam
c1-perf.scm
(require "core") (require "clocker.scm") (require "parse") (require "gen") (require "gen0") (require "compile") (require "io") (require "math") (require "gen1") (define (read-file-assert file) (or (read-file file) (error (.. "file " file " not found")))) (define (clock-gen1 file) (define text (read-file-a...
null
https://raw.githubusercontent.com/bhk/scam/59d7c02e673f1faebd0b7625d8c595daaa5efc51/perf/c1-perf.scm
scheme
convert source references to builtin lib references to avoid building other files:
(require "core") (require "clocker.scm") (require "parse") (require "gen") (require "gen0") (require "compile") (require "io") (require "math") (require "gen1") (define (read-file-assert file) (or (read-file file) (error (.. "file " file " not found")))) (define (clock-gen1 file) (define text (read-file-a...
bbec09774efb74fdb8ec3152a6601c8b533c92ebfb32ad8b2d24dc6813db1839
kcsongor/generic-lens
Prism.hs
{-# OPTIONS_HADDOCK hide #-} {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # {-# LANGUAGE Rank2Types #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeFamilyDependencies #...
null
https://raw.githubusercontent.com/kcsongor/generic-lens/8e1fc7dcf444332c474fca17110d4bc554db08c8/generic-lens-core/src/Data/Generics/Internal/Profunctor/Prism.hs
haskell
# OPTIONS_HADDOCK hide # # LANGUAGE GADTs # # LANGUAGE Rank2Types # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeFamilies # # LANGUAGE TypeFamilyDependencies # # LANGUAGE TypeOperators # -------------------------------------------------------------...
# LANGUAGE LambdaCase # # LANGUAGE NoMonomorphismRestriction # Copyright : ( C ) 2020 Maintainer : < > Internal lens helpers . Only exported for module Data.Generics.Internal.Profunctor.Prism where import Data.Profunctor.Indexed import GHC.Generics type APrism i s t a b = Market ...
8b755087fd8e696f15959510809ebae4447fe66ccce8bd5e2e968519fd77ed5f
sellout/haskerwaul
Right.hs
{-# language UndecidableInstances #-} # language UndecidableSuperClasses # module Haskerwaul.Residual.Right ( module Haskerwaul.Residual.Right ) where import Data.Kind (Type) import Haskerwaul.Category.Monoidal.Closed import Haskerwaul.Object -- | -- = references -- -- - [nLab]() class (MonoidalCatego...
null
https://raw.githubusercontent.com/sellout/haskerwaul/cf54bd7ce5bf4f3d1fd0d9d991dc733785b66a73/src/Haskerwaul/Residual/Right.hs
haskell
# language UndecidableInstances # | = references - [nLab]() | "Any monoidal closed category has all right residuals." ---[nLab](#examples) I don't understand why this constraint isn't implied
# language UndecidableSuperClasses # module Haskerwaul.Residual.Right ( module Haskerwaul.Residual.Right ) where import Data.Kind (Type) import Haskerwaul.Category.Monoidal.Closed import Haskerwaul.Object class (MonoidalCategory c t, Ob c x, Ob c y, Ob c (RightRes c t x y)) => RightResidual (c :: ok -...
ab03f1c375373c12891b7527cb964404c6840de70caa38f90e72e16725385cd7
wangweihao/ProgrammingErlangAnswer
lists.erl
% 观察标准库代码里的类型注解。找到lists.erl模块的源代码, % 阅读里面所有的类型注解 % 随便粘几个注解 -spec keyfind(Key, N, TupleList) -> Tuple | false when Key :: term(), N :: pos_integer(), TupleList :: [Tuple], Tuple :: tuple(). -spec reverse(List1, Tail) -> List2 when List1 :: [T], Tail :: term(), List2 :: [T], ...
null
https://raw.githubusercontent.com/wangweihao/ProgrammingErlangAnswer/b145b5e6a19cb866ce5d2ceeac116d751f6e2b3d/9/2/lists.erl
erlang
观察标准库代码里的类型注解。找到lists.erl模块的源代码, 阅读里面所有的类型注解 随便粘几个注解
-spec keyfind(Key, N, TupleList) -> Tuple | false when Key :: term(), N :: pos_integer(), TupleList :: [Tuple], Tuple :: tuple(). -spec reverse(List1, Tail) -> List2 when List1 :: [T], Tail :: term(), List2 :: [T], T :: term(). -spec append(List1, List2) -> List3 when...
142aeab8f4cb9debe3e945b4a2c71ee63d098c23cffb457cf710a13de65bbed9
atlas-engineer/nyxt
mode.lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt/tests) (define-class network-and-modable-buffer (network-buffer modable-buffer) ()) (define-class context-and-modable-buffer (context-buffer modable-buffer) ()) (define-class input-and-modable-buffer (in...
null
https://raw.githubusercontent.com/atlas-engineer/nyxt/65a9aa568b16c109281fa403a7c045b3b6d87025/tests/offline/mode.lisp
lisp
SPDX - FileCopyrightText : Atlas Engineer LLC SPDX - License - Identifier : BSD-3 - Clause (in-package :nyxt/tests) (define-class network-and-modable-buffer (network-buffer modable-buffer) ()) (define-class context-and-modable-buffer (context-buffer modable-buffer) ()) (define-class input-and-modable-buffer (in...
2c6a06332e00615282c2675d814422ded2b34f736368b89c76f6cbee27233ab3
mlabs-haskell/plutus-simple-model
FailReason.hs
module Plutus.Model.Mock.FailReason (module Cardano.Simple.Plutus.Model.Mock.FailReason) where import Cardano.Simple.Plutus.Model.Mock.FailReason
null
https://raw.githubusercontent.com/mlabs-haskell/plutus-simple-model/10000d64ede979bb1d7838b3ed20b785615910b9/psm/src/Plutus/Model/Mock/FailReason.hs
haskell
module Plutus.Model.Mock.FailReason (module Cardano.Simple.Plutus.Model.Mock.FailReason) where import Cardano.Simple.Plutus.Model.Mock.FailReason
453aca5eeae49936027019f663a2bb119a22705628578d8d869bb349e610bb37
craygo/clj-oauth2
core_test.clj
(ns clj-oauth2.core-test (:require [clojure.test :refer :all] [clj-oauth2.core :refer :all]))
null
https://raw.githubusercontent.com/craygo/clj-oauth2/fe8a5073840021e93a6a6b0fcfa128417ec49aac/test/clj_oauth2/core_test.clj
clojure
(ns clj-oauth2.core-test (:require [clojure.test :refer :all] [clj-oauth2.core :refer :all]))
3e62999a128022d367a1d27534b50d1822fdc2a3bea017881ecf7a8479c96b93
synrc/nitro
action_alert.erl
-module(action_alert). -author('Rusty Klophaus'). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). -compile(export_all). render_action(#alert{text=T}) -> ["alert(\"",nitro:js_escape(T),"\");"].
null
https://raw.githubusercontent.com/synrc/nitro/753b543626add2c014584546ec50870808a2eb90/src/actions/action_alert.erl
erlang
-module(action_alert). -author('Rusty Klophaus'). -include_lib("nitro/include/nitro.hrl"). -include_lib("nitro/include/event.hrl"). -compile(export_all). render_action(#alert{text=T}) -> ["alert(\"",nitro:js_escape(T),"\");"].
1defc2684090463994de9c5fa07655e9024d6a1358b8c09d28ae6fc715dc17ec
lichenscript/lichenscript
check_helper.ml
* Copyright 2022 * * 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 ...
null
https://raw.githubusercontent.com/lichenscript/lichenscript/79dcdb299cb6101dcc48203bb6373834a5539f35/lib/typing/check_helper.ml
ocaml
recursive find type assigning class to interface * oppsite to assignable * cast from left to right * params type_vars: * For a class instance a: A<T1, T2>, the type_vars is [T1, T2] in the current class in the current class in the current class in the current class let params = replace_params_w...
* Copyright 2022 * * 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 ...
c8733786c0e9f2930b42c8ab9a464b770badcd470fc83dbe27994b18aa7cc541
verystable/warframe-autobuilder
MeleePrinter.hs
# LANGUAGE NoImplicitPrelude # {-# LANGUAGE OverloadedStrings #-} -- | Module : Printer . -- Maintainer : -- Stability : experimental -- -- This module exports functionality required to pretty print -- a melee weapon with 'ComprehensiveWeapon' type module Printer.MeleePrinter where import Clas...
null
https://raw.githubusercontent.com/verystable/warframe-autobuilder/015e0bb6812711ea27071816d054cbaa1c65770b/src/Printer/MeleePrinter.hs
haskell
# LANGUAGE OverloadedStrings # | Maintainer : Stability : experimental This module exports functionality required to pretty print a melee weapon with 'ComprehensiveWeapon' type
# LANGUAGE NoImplicitPrelude # Module : Printer . module Printer.MeleePrinter where import ClassyPrelude import Control.Lens import Numeric import Text.PrettyPrint.Boxes import Types.ComprehensiveWeapon import Types.GenericWeapon formatFloatN :: R...
578973cc667c07f6809bf072c8a315d0fa872d34844d8fc6d2a1745802e955a3
Clojure2D/clojure2d-examples
perlin.clj
(ns rt4.the-next-week.ch05g.perlin (:require [fastmath.core :as m] [fastmath.vector :as v] [fastmath.random :as r]) (:import [fastmath.vector Vec3])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defrecord Perlin [ranvec perm-x perm-y ...
null
https://raw.githubusercontent.com/Clojure2D/clojure2d-examples/ead92d6f17744b91070e6308157364ad4eab8a1b/src/rt4/the_next_week/ch05g/perlin.clj
clojure
(ns rt4.the-next-week.ch05g.perlin (:require [fastmath.core :as m] [fastmath.vector :as v] [fastmath.random :as r]) (:import [fastmath.vector Vec3])) (set! *warn-on-reflection* true) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defrecord Perlin [ranvec perm-x perm-y ...
8c6349f9cae08fa634ac6821a73d419e981648a4a2f6c301acef9df3c2bd5149
baphled/chatterl
test_chatterl_client.erl
%%%---------------------------------------------------------------- @author < > %%% @doc %%% Test cases for chatterl_client %%% %%% @end 2009 %%%---------------------------------------------------------------- -module(test_chatterl_client). -include_lib("eunit/include/eunit.hrl"). -include_lib("chatterl.hrl"...
null
https://raw.githubusercontent.com/baphled/chatterl/5c1bfd8a5ac0c1a0ac5a765aa0c9db80a31da292/lib/chatterl/src/test_chatterl_client.erl
erlang
---------------------------------------------------------------- @doc Test cases for chatterl_client @end ----------------------------------------------------------------
@author < > 2009 -module(test_chatterl_client). -include_lib("eunit/include/eunit.hrl"). -include_lib("chatterl.hrl"). -import(test_helpers,[start_client/3,start_group/2]). chatterl_client_handle_test_() -> {Client1,Client2,Group,Description} = {"noobie","blah","anuva1","a nu room"}, [{setup, fun()...
4366402c62db0b7f8b76852a094fb42222bb39c379a06acda6be6b62d9e39bed
spacebudz/spacebudz-identity
Main.hs
module Main where import Contract (controlPolicySerialized, controlValidatorSerialized, gateValidatorSerialized, identityPolicySerialized) import Data.Aeson (ToJSON) import Data.Aeson.Text (encodeToLazyText) import qualified Data.Text.Lazy.IO as I import GHC.Generics (Generic) import Prelude -- Add additional seriali...
null
https://raw.githubusercontent.com/spacebudz/spacebudz-identity/5c2e4e95b0c60a159934083431abb2654ca2ed3e/src/onchain/app/Main.hs
haskell
Add additional serialized scripts here
module Main where import Contract (controlPolicySerialized, controlValidatorSerialized, gateValidatorSerialized, identityPolicySerialized) import Data.Aeson (ToJSON) import Data.Aeson.Text (encodeToLazyText) import qualified Data.Text.Lazy.IO as I import GHC.Generics (Generic) import Prelude data Scripts = Scripts {c...
6a380f3ef7c53b243b459446444033c56b95caa0d3f275c498a2f64fc725ade9
skynet-gh/skylobby
spring_options.clj
(ns skylobby.fx.spring-options (:require [cljfx.api :as fx] [cljfx.ext.node :as fx.ext.node] [clojure.string :as string] skylobby.fx [skylobby.fx.ext :refer [ext-recreate-on-key-changed]] [skylobby.fx.sub :as sub] [skylobby.fx.tooltip-nofocus :as tooltip-nofocus] [skylobby.spring.scrip...
null
https://raw.githubusercontent.com/skynet-gh/skylobby/5a2734a13026f81e5fefb8b71dcc57fb92d852c0/src/clj/skylobby/fx/spring_options.clj
clojure
-with#example-5e48288ce4b0ca44402ef839 remove sections in middle
(ns skylobby.fx.spring-options (:require [cljfx.api :as fx] [cljfx.ext.node :as fx.ext.node] [clojure.string :as string] skylobby.fx [skylobby.fx.ext :refer [ext-recreate-on-key-changed]] [skylobby.fx.sub :as sub] [skylobby.fx.tooltip-nofocus :as tooltip-nofocus] [skylobby.spring.scrip...
dd39a014b7388fc1459fd4707ce19cc4acfd3531c0906a1c63ac5beb993f2355
glguy/advent
17.hs
{-# Language QuasiQuotes #-} | Module : Main Description : Day 17 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > Module : Main Description : Day 17 solution Copyright : (c) Eric Mertens, 2021 License : ISC Maintainer : <> -} module Main where import ...
null
https://raw.githubusercontent.com/glguy/advent/7ab9f9e47208fd5720e36bac33fee2b78d4ec50b/solutions/src/2015/17.hs
haskell
# Language QuasiQuotes # | Given a list of container sizes and an amount, return a list of the ways to chose a subset of those containers so that they sum to the desired amount. The resulting list is arranged by number of containers used. The nth element uses
| Module : Main Description : Day 17 solution Copyright : ( c ) , 2021 License : ISC Maintainer : < > Module : Main Description : Day 17 solution Copyright : (c) Eric Mertens, 2021 License : ISC Maintainer : <> -} module Main where import Advent (counts, format) main...
38235182b339c640dd69d19bb7c7436336d7ea6562aa56d2364e2b2a882ca9d6
rd--/hsc3
loudness.help.hs
loudness ; assume hop - size of half fft - size let b = localBufId 'α' 1 1024 x = mouseX kr 0.001 0.1 Exponential 0.2 i = sinOsc ar 1000 0 * x f = fft' b i l = loudness f 0.25 6 in sinOsc ar (mce2 900 (l * 300 + 600)) 0 * 0.1
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/loudness.help.hs
haskell
loudness ; assume hop - size of half fft - size let b = localBufId 'α' 1 1024 x = mouseX kr 0.001 0.1 Exponential 0.2 i = sinOsc ar 1000 0 * x f = fft' b i l = loudness f 0.25 6 in sinOsc ar (mce2 900 (l * 300 + 600)) 0 * 0.1
08354c6465c133aaa3a80f3cb8f4fc4f3ebfa3db841be0abf01687d7721b22a3
iu-parfunc/lvars
SNZI.hs
-- | A Scalable Non-Zero Indicator -- -- A SNZI is a kind of concurrent counter which can be incremented, decremented, -- and queried for equality with 0. The interface is a bit more complex, -- though: it is exposed as N values (where N = the number of CPUs), each -- providing an @arrive@ and @depart@ operation, toge...
null
https://raw.githubusercontent.com/iu-parfunc/lvars/78e73c96a929aa75aa4f991d42b2f677849e433a/src/lvish/Data/Concurrent/SNZI.hs
haskell
| A Scalable Non-Zero Indicator A SNZI is a kind of concurrent counter which can be incremented, decremented, and queried for equality with 0. The interface is a bit more complex, though: it is exposed as N values (where N = the number of CPUs), each providing an @arrive@ and @depart@ operation, together with a ...
is allowed to invoke @arrive@/@depart@ on its parents . There are two invariants : * The number of ( decrements ) must never outnumber the * The number of a child has invoked on a parent can outnumber the iff the total number of arrives at the child outnumbers the departs @arrive@/@depart@ on thei...
8f5a527826c23e099991ca30d107fcd505b2ce5d9bdd39f9ac19bbb6174ddf84
brendanhay/amazonka
Filter.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived fr...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wisdom/gen/Amazonka/Wisdom/Types/Filter.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Module : Amazonka.Wisdom.Types.Filter Stability : auto-generated | A search filter. /See:/ 'newFilter' smart constructor. | The field on which to filter. | The operator to use for comparing the field’s value with the provided value. | The desired...
# LANGUAGE DeriveGeneric # # LANGUAGE DuplicateRecordFields # # LANGUAGE NamedFieldPuns # # LANGUAGE RecordWildCards # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # # OPTIONS_GHC -fno - warn - unused - matches # Derived from AWS service descriptions , licensed under Apache 2.0 . Co...
94eaaeba2a0b6e6e32c9f9adcfa3c31c7878b4d6c4e8d144f2a87619e0ad7db6
spechub/Hets
Morphism.hs
{-# LANGUAGE DeriveDataTypeable #-} | Module : ./OWL2 / Morphism.hs Description : OWL Morphisms Copyright : ( c ) , 2008 , , 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Morphisms for OWL Module ...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/OWL2/Morphism.hs
haskell
# LANGUAGE DeriveDataTypeable #
| Module : ./OWL2 / Morphism.hs Description : OWL Morphisms Copyright : ( c ) , 2008 , , 2011 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Morphisms for OWL Module : ./OWL2/Morphism.hs Descripti...
4cf55b774a9cdd27258b4927f0e51d66d7c162d5f5f17f4e0c4e6dbdd59067d5
bartavelle/language-puppet
Paths.hs
# LANGUAGE TemplateHaskell # module Puppet.Language.Paths where import XPrelude data PuppetDirPaths = PuppetDirPaths { _baseDir :: FilePath -- ^ Puppet base working directory , _manifestPath :: FilePath -- ^ The path to the manifests. , _modulesPath :: FilePath -- ^ The path to the modules. ...
null
https://raw.githubusercontent.com/bartavelle/language-puppet/6af7458e094440816c8b9b7b387050612e87a70f/src/Puppet/Language/Paths.hs
haskell
^ Puppet base working directory ^ The path to the manifests. ^ The path to the modules. ^ The path to the template. ^ The path to a tests folders to hold tests files such as the pdbfiles.
# LANGUAGE TemplateHaskell # module Puppet.Language.Paths where import XPrelude data PuppetDirPaths = PuppetDirPaths } makeClassy ''PuppetDirPaths puppetPaths :: FilePath -> PuppetDirPaths puppetPaths basedir = PuppetDirPaths basedir manifestdir modulesdir templatedir testdir where manifestdir = b...
023b5224d195a4f14e3c4e10cb5a99714104a7ef3c6793056d4203237b0dfb96
scrintal/heroicons-reagent
user_plus.cljs
(ns com.scrintal.heroicons.solid.user-plus) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M6.25 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM3.25 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 ...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/user_plus.cljs
clojure
(ns com.scrintal.heroicons.solid.user-plus) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M6.25 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM3.25 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 ...
95a37856084df4aa469744f0fab2a4a3f02c772048b24770c19b4f65172b81c5
pascal-knodel/haskell-craft
E'13'24.hs
-- -- -- ------------------ Exercise 13.24 . ------------------ -- -- -- module E'13'24 where
null
https://raw.githubusercontent.com/pascal-knodel/haskell-craft/c03d6eb857abd8b4785b6de075b094ec3653c968/Chapter%C2%A013/E'13'24.hs
haskell
---------------- ----------------
Exercise 13.24 . module E'13'24 where
2e47230c0bfa7af4e2284bc51f8fe719ee25281df3948c16e8fc6f21daf6bfc6
1Computer1/errata
Errata.hs
| Module : Errata Copyright : ( c ) 2020- comp License : MIT Maintainer : Stability : stable Portability : portable This module is for creating pretty error messages . We assume very little about the format you want to use , so much of this module is to allow you to customize your...
null
https://raw.githubusercontent.com/1Computer1/errata/5b4fb8509d300a6a99778393eef21217d4f3c020/src/Errata.hs
haskell
* Error format data * Blocks and pointers * Styling options * Pretty printer | Creates a simple error that has a single block, with an optional header or body. ^ The header. ^ The block. ^ The body. ^ The style of the block. ^ The style of the pointer. ^ The filepath. ^ The header message. ^ The body messa...
| Module : Errata Copyright : ( c ) 2020- comp License : MIT Maintainer : Stability : stable Portability : portable This module is for creating pretty error messages . We assume very little about the format you want to use , so much of this module is to allow you to customize your...
de7ebbf51e775c131715cddd39aeb36d47c1d31612b0c8235d705d0e73abfead
heroku/snit
snit.erl
%%%------------------------------------------------------------------- Copyright ( c ) 2015 - 2017 , Heroku Inc < > , %%% All rights reserved. %%% %%% Redistribution and use in source and binary forms, with or without %%% modification, are permitted provided that the following conditions are %%% met: %%% %%% * Redis...
null
https://raw.githubusercontent.com/heroku/snit/024214a9f56bc3896a7a043e94ec3abeb0426159/src/snit.erl
erlang
------------------------------------------------------------------- All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this ...
Copyright ( c ) 2015 - 2017 , Heroku Inc < > , " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT OWNER OR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , ...
b060bd144d33df9ddd0baa5fb4f7a0329dabd0fcdf0af71e3fa7ea96122224de
ocaml-doc/doc-ock-html
html_tree.ml
* Copyright ( c ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
null
https://raw.githubusercontent.com/ocaml-doc/doc-ock-html/84c2e11889111858b732be1b530cf50eb176dc75/src/html_tree.ml
ocaml
FIXME: reuse [Url.kind] fixme? Sadness. TODO: handle errors better, perhaps by returning a [result] FIXME: Reuse [Url]. This is just horrible. This is just horrible.
* Copyright ( c ) 2016 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided that the above * copyright notice and this permission notice appear in all copies . * * THE SOFTWARE IS PROVIDED " AS IS " AND THE AU...
6357e7762539b51d75670b2b171fb974d7275b1ab5f4b6491764ad93c780fbfc
dbuenzli/xmlm
xmlm.ml
--------------------------------------------------------------------------- Copyright ( c ) 2007 The xmlm programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
null
https://raw.githubusercontent.com/dbuenzli/xmlm/70a46e0a78e1b95042a118086be23e9491d4f389/src/xmlm.ml
ocaml
for character stream, internal only. -reg/ISO-8859-15 € Š š Ž ž Œ œ Ÿ newline carriage return space quote # & ' - / : ; < = > ? ! [ ] x BOM D Basic types and values Input XML is odd to parse. '<' qname '</' qname whitespace* '<?' qname '<!--' ...
--------------------------------------------------------------------------- Copyright ( c ) 2007 The xmlm programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) ...
758e984bd8c27103a1cade1401de6f1409e4ddc7dfd0ec4a511423f4c8e3e962
lascar-pacagi/MiniJava
printMJ.mli
* Transforms the abstract syntax tree of a program back into a source file . * [ print_program out prog ] transforms the abstract syntax tree [ prog ] back into Java and write the result on the [ out ] channel . We can use this to check the result of parsing . We can use this too to indent a program . We can...
null
https://raw.githubusercontent.com/lascar-pacagi/MiniJava/9ac4e851667421ea92e9924bc374b4b450387e56/printMJ.mli
ocaml
* Transforms the abstract syntax tree of a program back into a source file . * [ print_program out prog ] transforms the abstract syntax tree [ prog ] back into Java and write the result on the [ out ] channel . We can use this to check the result of parsing . We can use this too to indent a program . We can...
9764e6bd4cec5f306b02de60a5830f09586fcf2238dcb9422a4798a019284b29
racket/drracket
errortrace-stacks.rkt
#lang at-exp racket/base (require "private/drracket-test-util.rkt" framework/test racket/class racket/file racket/gui/base rackunit/log rackunit) (define (setup-racket/base-raw) (setup/rb "No debugging or profiling")) (define (setup-racket/base-debug) (setup/rb "De...
null
https://raw.githubusercontent.com/racket/drracket/2d7c2cded99e630a69f05fb135d1bf7543096a23/drracket-test/tests/drracket/errortrace-stacks.rkt
racket
this test runs a program with an error and checks to make sure that the stack dialog pops up and it either does or does not have an errortrace-based stack, as appropriate try to find the stacktrace button in the interactions window string snips will fail this close the stacks window and log the test's result wai...
#lang at-exp racket/base (require "private/drracket-test-util.rkt" framework/test racket/class racket/file racket/gui/base rackunit/log rackunit) (define (setup-racket/base-raw) (setup/rb "No debugging or profiling")) (define (setup-racket/base-debug) (setup/rb "De...
d1b3bf044f3150a107faab651fc4a635196b123ca1282669d6f8063d9840a94b
input-output-hk/cardano-ledger-byron
Certificate.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # module Test.Cardano.Chain.Delegation.Certificate ( tests ) where import Cardano.Prelude import qualified Data.ByteString.Lazy as BSL import Hedgehog (Group, Property, assert, discover, forAll, property) import qualified Hedgehog.Gen as Gen impo...
null
https://raw.githubusercontent.com/input-output-hk/cardano-ledger-byron/d309449e6c303a9f0dcc8dcf172df6f0b3195ed5/cardano-ledger/test/Test/Cardano/Chain/Delegation/Certificate.hs
haskell
# LANGUAGE OverloadedStrings # ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ Certificate Properties ----------------------------...
# LANGUAGE TemplateHaskell # module Test.Cardano.Chain.Delegation.Certificate ( tests ) where import Cardano.Prelude import qualified Data.ByteString.Lazy as BSL import Hedgehog (Group, Property, assert, discover, forAll, property) import qualified Hedgehog.Gen as Gen import Cardano.Binary (decodeFull, seri...
de069a92ccb1f1973d92892c51c00f5d88da0e37118f9886f6ac7ff43c4c71b9
kowainik/hakyll-shortcut-links
Parser.hs
| Copyright : ( c ) 2019 - 2021 Kowainik License : MPL-2.0 Maintainer : < > This module implements parser of the shortcut links that are introduced in the [ shortcut - links]( / package / shortcut - links ) package . The markdown example of the shortcut link : @ [ This project]\(\@github(Ko...
null
https://raw.githubusercontent.com/kowainik/hakyll-shortcut-links/5fcd2efad7c8d239039ba52f5e4f6a335f896b68/src/Hakyll/ShortcutLinks/Parser.hs
haskell
| Copyright : ( c ) 2019 - 2021 Kowainik License : MPL-2.0 Maintainer : < > This module implements parser of the shortcut links that are introduced in the [ shortcut - links]( / package / shortcut - links ) package . The markdown example of the shortcut link : @ [ This project]\(\@github(Ko...
c450401e7e8c00fb777b83bef13b8f4e8c0bb0f0bfbbc4cfed81d034584de009
input-output-hk/ouroboros-network
ClientRegistry.hs
{-# LANGUAGE FlexibleContexts #-} # LANGUAGE ScopedTypeVariables # module Ouroboros.Network.BlockFetch.ClientRegistry ( -- * Registry of block fetch clients FetchClientRegistry (..) , newFetchClientRegistry , bracketFetchClient , bracketKeepAliveClient , bracketSyncWithFetchClient , setFetchClientCo...
null
https://raw.githubusercontent.com/input-output-hk/ouroboros-network/679c7da2079a5e9972a1c502b6a4d6af3eb76945/ouroboros-network/src/Ouroboros/Network/BlockFetch/ClientRegistry.hs
haskell
# LANGUAGE FlexibleContexts # * Registry of block fetch clients | A registry for the threads that are executing the client side of the The registry contains the shared variables we use to communicate with these threads, both to track their status and to provide instructions. The threads add\/remove themselves...
# LANGUAGE ScopedTypeVariables # module Ouroboros.Network.BlockFetch.ClientRegistry FetchClientRegistry (..) , newFetchClientRegistry , bracketFetchClient , bracketKeepAliveClient , bracketSyncWithFetchClient , setFetchClientContext , FetchClientPolicy (..) , readFetchClientsStatus , readFetchClien...
6f3e0eb4af7096613393341af144cfd7d629b1cfb3da170a2c729b9d0b6f27b3
racket/typed-racket
pr12913.rkt
#lang racket ;; Test that `define-type` works at the top-level (define ns (make-base-namespace)) (eval '(require typed/racket/optional) ns) (eval '(define-type Foo (U String Symbol)) ns) (eval '(: x Foo) ns) (eval '(define x 'x) ns)
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/succeed/optional/pr12913.rkt
racket
Test that `define-type` works at the top-level
#lang racket (define ns (make-base-namespace)) (eval '(require typed/racket/optional) ns) (eval '(define-type Foo (U String Symbol)) ns) (eval '(: x Foo) ns) (eval '(define x 'x) ns)
c924e0261a0276361881852d68d914863d2a00f6179bde3e9b3e09269aa23992
kupl/FixML
sub12.ml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp =fun (aexp,x) -> match aexp with | Const n -> Const 0 | Var x -> Const 1 | Power (x,n) -> (match n with 0 -> Const 1 |_ -> ...
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/differentiate/diff1/submissions/sub12.ml
ocaml
type aexp = | Const of int | Var of string | Power of string * int | Times of aexp list | Sum of aexp list let rec diff : aexp * string -> aexp =fun (aexp,x) -> match aexp with | Const n -> Const 0 | Var x -> Const 1 | Power (x,n) -> (match n with 0 -> Const 1 |_ -> ...
b3bf86cb150e4401ee4d0c666a02b99e828c5499a248f2b315f4e2273d23b2b5
inria-parkas/sundialsml
nvector_openmp.ml
open Sundials type data = RealArray.t type kind = [`OpenMP|Nvector_serial.kind] type t = (data, kind) Nvector.t (* Selectively enable and disable fused and array operations *) external c_enablefusedops_openmp : ('d, 'k) Nvector.t -> bool -> unit = "sunml_nvec_openmp_enablefusedops" external c_ena...
null
https://raw.githubusercontent.com/inria-parkas/sundialsml/a72ebfc84b55470ed97fbb0b45d700deebfc1664/src/nvectors/nvector_openmp.ml
ocaml
Selectively enable and disable fused and array operations {{{ }}} {{{ }}}
open Sundials type data = RealArray.t type kind = [`OpenMP|Nvector_serial.kind] type t = (data, kind) Nvector.t external c_enablefusedops_openmp : ('d, 'k) Nvector.t -> bool -> unit = "sunml_nvec_openmp_enablefusedops" external c_enablelinearcombination_openmp : ('d, 'k) Nvector.t -> b...
064e2b21eeaf272b6573a70fd40a475a35dc17155a1f9b27882f23da25a2c716
EgorDm/fp-pacman
Agent.hs
module Game.Agents.Agent ( Agent(..), Drawable(..), AgentBehaviour(..), updateAgent, agent, ) where import Debug.Trace import Engine.Core.Base import Engine.Graphics.Base import Game.Structure.Internal(Agent(..), AgentBehaviour(..), World(..)) import Game.Input.Base import Game.Level.Base impor...
null
https://raw.githubusercontent.com/EgorDm/fp-pacman/19781c92c97641b0a01b8f1554f50f19ff6d3bf4/src/Game/Agents/Agent.hs
haskell
Data structures Classes Instances | Draw current agent sprite | Reset agent to default state Functions | Quick agent constructor | Update agent and its properties direction agent want to go Update type Update position iof agent is allowed to move Correct direction to what is legal | Checks whether agen...
module Game.Agents.Agent ( Agent(..), Drawable(..), AgentBehaviour(..), updateAgent, agent, ) where import Debug.Trace import Engine.Core.Base import Engine.Graphics.Base import Game.Structure.Internal(Agent(..), AgentBehaviour(..), World(..)) import Game.Input.Base import Game.Level.Base impor...
ed63ef73f9a9f6f0c53e6a536529c913ab0a10b6fc7ab60d7f86b8853009115c
duct-framework/module.sql
sql.clj
(ns duct.module.sql (:require [duct.core :as core] [duct.core.env :as env] [duct.core.merge :as merge] [integrant.core :as ig] [medley.core :as m])) (def ^:private default-database-url (or (env/env "JDBC_DATABASE_URL") (env/env "DATABASE_URL"))) (def ^:private...
null
https://raw.githubusercontent.com/duct-framework/module.sql/006c05167fa76719059887b7030ec383a696b60c/src/duct/module/sql.clj
clojure
(ns duct.module.sql (:require [duct.core :as core] [duct.core.env :as env] [duct.core.merge :as merge] [integrant.core :as ig] [medley.core :as m])) (def ^:private default-database-url (or (env/env "JDBC_DATABASE_URL") (env/env "DATABASE_URL"))) (def ^:private...
b84a1dc92e071dd9a1fdfaaeaa809287b55d6ee4cd172be3776328c06ac2e981
Carnap/Carnap
Belot.hs
# LANGUAGE TypeOperators , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.PureFirstOrder.Logic.Belot ( belotPDCalc, parseBelotPD , belotPDPlusCalc, parseBelotPDPlus , belotPDECalc,parseBelotPDE , belotPDEPlusCalc, parseBelotPDEPlus , BelotPD(..), BelotPDPl...
null
https://raw.githubusercontent.com/Carnap/Carnap/e31b55afa3829a95014777fa64e3bd66204d6efc/Carnap/src/Carnap/Languages/PureFirstOrder/Logic/Belot.hs
haskell
XXX Check parser XXX Check parser
# LANGUAGE TypeOperators , FlexibleContexts , FlexibleInstances , MultiParamTypeClasses # module Carnap.Languages.PureFirstOrder.Logic.Belot ( belotPDCalc, parseBelotPD , belotPDPlusCalc, parseBelotPDPlus , belotPDECalc,parseBelotPDE , belotPDEPlusCalc, parseBelotPDEPlus , BelotPD(..), BelotPDPl...
57f65482df1d5ea0aed4d2d1ba3f15e4072c87c0b153a45686d4cd9fc36d2f7b
msantos/pkt
pkt_ipv6_dstopts.erl
Copyright ( c ) 2013 - 2015 , < > %% All rights reserved. %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions %% are met: %% %% Redistributions of source code must retain the above copyright %% notice, this list of condition...
null
https://raw.githubusercontent.com/msantos/pkt/8c826b25098b06db8c24805fb1da2d65c14abe06/src/pkt_ipv6_dstopts.erl
erlang
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in bi...
Copyright ( c ) 2013 - 2015 , < > " AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT COPYRIGHT HOLDER OR FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF U...
c820f0c9522638fc7af8cb3866ff42c237dd5ff989b4382444f41007dd8b6214
xapi-project/message-switch
xapi_storage_script_types.ml
* Copyright ( C ) 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 described in file LI...
null
https://raw.githubusercontent.com/xapi-project/message-switch/bd10e096c56f149d6cb0831a520a84843ebca300/xapi-storage-script/xapi_storage_script_types.ml
ocaml
Python json.dumps and rpclib are not very friendly This matches xapi.py:exception
* Copyright ( C ) 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 described in file LI...
3885271da2f6239a58c9e93a46e49e9fe497a7f1a8ed9c35131e4fd1ba17478b
brown/city-hash
city-hash_test.lisp
Copyright 2011 Google , Inc. ;;;; Permission is hereby granted, free of charge, to any person obtaining a copy ;;;; of this software and associated documentation files (the "Software"), to deal in the Software without restriction , including without limitation the rights ;;;; to use, copy, modify, merge, publish, ...
null
https://raw.githubusercontent.com/brown/city-hash/47c236670a63330e86e7ba327e5526ed9843767b/city-hash_test.lisp
lisp
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal to use, copy, modify, merge, publish, distribute, sublicense, and/or sell furnished to do so, subject to the following conditions: The above copyright notice an...
Copyright 2011 Google , Inc. in the Software without restriction , including without limitation the rights copies of the Software , and to permit persons to whom the Software is all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS ...
d585531bb66e072dc21915ab20e383a67106ce457241a4f3e7b855703e8945f0
melange-re/melange
lam_free_variables.ml
Copyright ( C ) 2018 , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later versi...
null
https://raw.githubusercontent.com/melange-re/melange/bcaf468572532f255262999d78af80585f25ecc0/jscomp/core/lam_free_variables.ml
ocaml
according to the existing semantics: [primitive] is not counted * [hit_any_variables fv l] check the lambda expression [l] if has some free variables captured by [fv]. Note it does not do any checking like below [Llet(str,id,arg,body)] it only check [arg] or ...
Copyright ( C ) 2018 , Authors of ReScript * * This program is free software : you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation , either version 3 of the License , or * ( at your option ) any later versi...
a25a5acdd32f8ccdf723bf65194f90004070442d3bc3a4e0173d845a8f622b3f
satori-com/mzbench
signal.erl
[ % in this example "E!" sould be printed after "C!" {pool, [{size, 1}, {worker_type, dummy_worker}], [ {set_signal, "C"}, {wait, {1, sec}}, {print, "C!"}, {set_signal, "A"}, {set_signal, "B"}]}, {pool, [{size, 1}, {worker_type, dummy_worker}], [ ...
null
https://raw.githubusercontent.com/satori-com/mzbench/02be2684655cde94d537c322bb0611e258ae9718/examples/signal.erl
erlang
in this example "E!" sould be printed after "C!"
{pool, [{size, 1}, {worker_type, dummy_worker}], [ {set_signal, "C"}, {wait, {1, sec}}, {print, "C!"}, {set_signal, "A"}, {set_signal, "B"}]}, {pool, [{size, 1}, {worker_type, dummy_worker}], [ {wait_signal, "C"}, {wait_signal, "B"}...
f01a332a58416719cabc6520829a624d5b66f7dfcb271ece180f13398401fe13
mejgun/haskell-tdlib
ChatAvailableReactions.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Data.ChatAvailableReactions where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ReactionType as ReactionType import qualified Utils as U -- | Describes reactions available in the chat data ChatAvailableReactions = ...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/e5c8059a74f88073b27dbfafb6908de0729af110/src/TD/Data/ChatAvailableReactions.hs
haskell
# LANGUAGE OverloadedStrings # | | Describes reactions available in the chat | All reactions are available in the chat |
module TD.Data.ChatAvailableReactions where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.ReactionType as ReactionType import qualified Utils as U data ChatAvailableReactions ChatAvailableReactionsAll | Only specific reactions are available in the chat @reacti...
c903825a05081af615aef1d31b18f637da44f335e4c680364411bfd058a3ba4c
hadolint/hadolint
DL4005Spec.hs
module Hadolint.Rule.DL4005Spec (spec) where import Data.Default import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL4005 - Use `SHELL` to change the default shell." $ do it "RUN ln" $ do ruleCatches "DL4005" "RUN ln -sfv /bin/bash /bin/sh" onBuildRuleCat...
null
https://raw.githubusercontent.com/hadolint/hadolint/bf7e48ea735db423a349fb2d7a83fe7a77091cc2/test/Hadolint/Rule/DL4005Spec.hs
haskell
module Hadolint.Rule.DL4005Spec (spec) where import Data.Default import Helpers import Test.Hspec spec :: SpecWith () spec = do let ?config = def describe "DL4005 - Use `SHELL` to change the default shell." $ do it "RUN ln" $ do ruleCatches "DL4005" "RUN ln -sfv /bin/bash /bin/sh" onBuildRuleCat...
f9b47d39351e333062fe0625d1757a18e43f17a6c5489eea9364518a5a6436ba
santiweight/poker-base
Range.hs
# LANGUAGE CPP # # LANGUAGE DuplicateRecordFields # -- | A range of Hole cards. module Poker.Range ( Freq (..), Range (..), rangeFromList, getDecisionFreqRange, holdingRangeToShapedRange, addHoleToShapedRange, ) where import Data.Bool (bool) import Data.Map (Map) import qualified Data.Map.Stri...
null
https://raw.githubusercontent.com/santiweight/poker-base/7cf82cb09d791cbaa47efa7e91ff6261dbd2b3a2/src/Poker/Range.hs
haskell
| A range of Hole cards. $setup >>> :set -XTypeApplications >>> :set -XOverloadedStrings >>> import Poker.Cards | A frequency is an unevaluated ratio that indicates how often a decision was | A simple wrapper around a 'Map' that uses different instances (unlike the 'Map' 'Semigroup' instance from @containers@)....
# LANGUAGE CPP # # LANGUAGE DuplicateRecordFields # module Poker.Range ( Freq (..), Range (..), rangeFromList, getDecisionFreqRange, holdingRangeToShapedRange, addHoleToShapedRange, ) where import Data.Bool (bool) import Data.Map (Map) import qualified Data.Map.Strict as Map #if MIN_VERSION_pr...
a34ca4a2d8234fc6d37ad3aff6361ca4d50cc89d91fb599ac6577edd17c56cff
pguillebert/pravda
spark_test.clj
(ns pravda.spark-test (:require [clojure.test :refer :all] [clj-time.core :as time] [pravda.utils :as utils] [pravda.spark :as spark] [pravda.datalog :as dlog] [flambo.conf :as conf] [flambo.api :as f])) (def conf (load-file "./conf/conf.clj")) ...
null
https://raw.githubusercontent.com/pguillebert/pravda/e1d1db093143465cdcd48155155d17d9a45ae5fe/test/pravda/spark_test.clj
clojure
Example Flambo query group key must have enough significant entries Store using a datalog structure
(ns pravda.spark-test (:require [clojure.test :refer :all] [clj-time.core :as time] [pravda.utils :as utils] [pravda.spark :as spark] [pravda.datalog :as dlog] [flambo.conf :as conf] [flambo.api :as f])) (def conf (load-file "./conf/conf.clj")) ...
0587ea3bebeaf368eef84d01ff992b2d19231dffba9e5534fc622f1ab1db74b1
hoplon/demos
db.clj
(ns app.db (:require [mount.core :refer [defstate start]] [environ.core :refer [env]] [datomic.api :as d])) 12 - factor - obtain uri from env (def uri (if-let [env-uri (env :datomic-uri)] env-uri "datomic:mem")) ; the connection can be required in other namespaces (defstate datomic-c...
null
https://raw.githubusercontent.com/hoplon/demos/50d613892db0624a4f0326c1427d82f5b8e2390f/castra-datomic-free/src/app/db.clj
clojure
the connection can be required in other namespaces hook for mount to initiate from not usually required ... demo only
(ns app.db (:require [mount.core :refer [defstate start]] [environ.core :refer [env]] [datomic.api :as d])) 12 - factor - obtain uri from env (def uri (if-let [env-uri (env :datomic-uri)] env-uri "datomic:mem")) (defstate datomic-conn :start (d/connect uri)) (defn create-schema "C...
d4ae5cb46427184c2d7944d0f6e60e862a3845b2a6e84d8d8f63b4eb095358a5
shuieryin/wechat_mud
player_statem_sup.erl
%%%------------------------------------------------------------------- @author shuieryin ( C ) 2015 , Shuieryin %%% @doc %%% Player_statem supervisor . This is a simple one for one supervisor %%% which player_statem children dynamically are added to or removed from it. %%% %%% @end Created : 01 . Nov 2015 6:12...
null
https://raw.githubusercontent.com/shuieryin/wechat_mud/b2a9251a9b208fee5cd8c4213759750b95c8b8aa/src/player/player_statem_sup.erl
erlang
------------------------------------------------------------------- @doc which player_statem children dynamically are added to or removed from it. @end ------------------------------------------------------------------- API Supervisor callbacks =================================================================== ...
@author shuieryin ( C ) 2015 , Shuieryin Player_statem supervisor . This is a simple one for one supervisor Created : 01 . Nov 2015 6:12 PM -module(player_statem_sup). -author("shuieryin"). -behaviour(supervisor). -export([ start_link/0, add_child/2 ]). -export([init/1]). -define(SERVER, ?MODULE). ...
e9c9de69679c7ac3a3a835ff2c6458ed2605d7d015228d82ea5c5c54dcd3256f
MinaProtocol/mina
graphql_queries.ml
(* exclude from bisect_ppx to avoid type error on GraphQL modules *) [@@@coverage exclude_file] module Scalars = Graphql_lib.Scalars module Encoders = Mina_graphql.Types.Input module Get_tracked_accounts = [%graphql {| query @encoders(module: "Encoders"){ trackedAccounts { public_key: publicKey locked b...
null
https://raw.githubusercontent.com/MinaProtocol/mina/fcbcca1b34414e52642661352588420af906cdf4/src/app/cli/src/init/graphql_queries.ml
ocaml
exclude from bisect_ppx to avoid type error on GraphQL modules
[@@@coverage exclude_file] module Scalars = Graphql_lib.Scalars module Encoders = Mina_graphql.Types.Input module Get_tracked_accounts = [%graphql {| query @encoders(module: "Encoders"){ trackedAccounts { public_key: publicKey locked balance { total } } } |}] module Get_tracked_account = [%...
008082af1490806331e5d183cfb1318bdba896872fc490190e53c58119167092
erikd/haskell-big-integer-experiment
Internals.hs
# LANGUAGE CPP , MagicHash , UnboxedTuples , NoImplicitPrelude # {-# OPTIONS_HADDOCK hide #-} #include "MachDeps.h" ( Hopefully ) Fast integer logarithms to base 2 . -- integerLog2# and wordLog2# are of general usefulness, -- the others are only needed for a fast implementation of -- fromRational. -- Since they are...
null
https://raw.githubusercontent.com/erikd/haskell-big-integer-experiment/7841ec3fcc5be219fa16963849bd12137112f8a9/Simple/GHC/Integer/Logarithms/Internals.hs
haskell
# OPTIONS_HADDOCK hide # integerLog2# and wordLog2# are of general usefulness, the others are only needed for a fast implementation of fromRational. Since they are needed in GHC.Float, we must expose this module, but it should not show up in the docs. When larger word sizes become common, add support for those, ...
# LANGUAGE CPP , MagicHash , UnboxedTuples , NoImplicitPrelude # #include "MachDeps.h" ( Hopefully ) Fast integer logarithms to base 2 . module Simple.GHC.Integer.Logarithms.Internals ( integerLog2# , integerLog2IsPowerOf2# , wordLog2# , roundingMode# ) where import GHC.Prim import Simple.GHC....
1dc25083a9b37b359a0b4846cb88f05eaf07753764b7fce3d92ead7f0a0fb2e8
jellea/muuuuu
webrtc-events.cljs
(ns muuuuu.events.webrtc-events)
null
https://raw.githubusercontent.com/jellea/muuuuu/d3536949c8dcec51dd4451243c1b8d42acfabac5/src/muuuuu/events/webrtc-events.cljs
clojure
(ns muuuuu.events.webrtc-events)
fc4469813a5e258117e37404df9097db17553282a506abf2084b819b4adae7da
solita/mnt-teet
asset_styles.cljs
(ns teet.asset.asset-styles "Herb style defs for asset related pages" (:require [teet.theme.theme-colors :as theme-colors])) (defn map-radius-overlay "Style for radius slider and input box" [] ^{:combinators {[:> :label :div :input] {:position :relative :top "-10px" ...
null
https://raw.githubusercontent.com/solita/mnt-teet/f7361a565c7629a7323042db8dab694719119b0e/app/frontend/src/cljs/teet/asset/asset_styles.cljs
clojure
(ns teet.asset.asset-styles "Herb style defs for asset related pages" (:require [teet.theme.theme-colors :as theme-colors])) (defn map-radius-overlay "Style for radius slider and input box" [] ^{:combinators {[:> :label :div :input] {:position :relative :top "-10px" ...
7402d7c33e56c8a789a10f07ba6099249372e1bbc63febca05467529071ab554
pixlsus/registry.gimp.org_static
kym-Border-pano.scm
; Copyright , ; ( ) ( C ) 2006 , 2008 , Frydek - Mistek , Czech ; This plugin was tested with Gimp 2.4 ; ; 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 versio...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/kym-Border-pano.scm
scheme
This program is free software; you can redistribute it and/or modify either version 2 of the License , or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FO...
Copyright , ( ) ( C ) 2006 , 2008 , Frydek - Mistek , Czech This plugin was tested with Gimp 2.4 it under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License Foundation , Inc. , 675 Mass Ave , Cambridge , , USA . ...
3f12fb5ad7aa11bf0084195dc9ae9e12d64824c1a17e7f2b9b50a0b36b00294a
gedge-platform/gedge-platform
rabbit_mgmt_wm_vhost.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 - 2021 VMware , Inc. or its affiliates . All rights reserved . %% -module(rabbit_mgmt_wm_vhost). -export([init/2, ...
null
https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_wm_vhost.erl
erlang
-------------------------------------------------------------------- --------------------------------------------------------------------
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 - 2021 VMware , Inc. or its affiliates . All rights reserved . -module(rabbit_mgmt_wm_vhost). -export([init/2, resour...
baedaaff0f356ef100cb77e0772e2a80322e611d0e28f1a6c4005c0b05d20c43
basho/riak_test
ts_cluster_comprehensive.erl
% ------------------------------------------------------------------- %% Copyright ( c ) 2015 - 2017 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of ...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/ts_cluster_comprehensive.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 - 2017 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY including testing nativ...
67b2caef2fea2ba7367538b98272314dc330a6622aa83a7fa38106baae78df04
MyDataFlow/ttalk-server
translate.erl
%%%---------------------------------------------------------------------- %%% File : translate.erl Author : < > %%% Purpose : Localization helper Created : 6 Jan 2003 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne %%% %%% This program is free software; you can redistribute it and...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/apps/ejabberd/src/translate.erl
erlang
---------------------------------------------------------------------- File : translate.erl Purpose : Localization helper This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT...
Author : < > Created : 6 Jan 2003 by < > ejabberd , Copyright ( C ) 2002 - 2011 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License Found...
60fa8507d416b3c3718d27487287f3e890e4a7d0238106e446e0e226ec2d9e67
didi-FP/tcp-streams
TCP.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # -- | This module provides convenience functions for interfacing raw tcp. -- -- Please use 'E.bracket' or its friends to ensure exception safety. -- -- This module is intended to be imported @qualified@, e.g.: -- -- @ -- import "Data.Connection" -- import qual...
null
https://raw.githubusercontent.com/didi-FP/tcp-streams/182a5b5a161aa35ad9c810a73845bd050e697cb2/System/IO/Streams/TCP.hs
haskell
| This module provides convenience functions for interfacing raw tcp. Please use 'E.bracket' or its friends to ensure exception safety. This module is intended to be imported @qualified@, e.g.: @ import "Data.Connection" import qualified "System.IO.Streams.TCP" as TCP @ * client * server | Type ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE CPP # module System.IO.Streams.TCP ( TCPConnection , connect , connectSocket , socketToConnection , defaultChunkSize , bindAndListen , bindAndListenWith , accept , acceptWith ) where import qualified Control.Exception as E import Contro...
422e66f2f26e6cf8568655b561a1237d84b7182791935fd4097b0e6b03884fd1
michiakig/sicp
ex-1.33.scm
;;;; Structure and Interpretation of Computer Programs Chapter 1 Section 3 Formulating Abstractions with Higher - Order Procedures Exercise 1.33 (define filtered-accumulate (lambda (combiner null-value term a next b filter) (if (> a b) null-value (combiner (if (filter a) ; if a matches the c...
null
https://raw.githubusercontent.com/michiakig/sicp/1aa445f00b7895dbfaa29cf6984b825b4e5af492/ch1/ex-1.33.scm
scheme
Structure and Interpretation of Computer Programs if a matches the criteria, combine it
Chapter 1 Section 3 Formulating Abstractions with Higher - Order Procedures Exercise 1.33 (define filtered-accumulate (lambda (combiner null-value term a next b filter) (if (> a b) null-value (term a) otherwise use the null - value here ... + 0 or * 1 for instance should have...
b3d1b750b937a5d79407b0633e026d51e3503f42a877b50216d9032aa6963570
juspay/atlas
Vehicle.hs
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
null
https://raw.githubusercontent.com/juspay/atlas/e64b227dc17887fb01c2554db21c08284d18a806/app/driver-offer-bpp/src/Product/Vehicle.hs
haskell
| Copyright 2022 Juspay Technologies Pvt Ltd Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing , software dis...
2ffbab4ace194dc07663fe72902534e385fa2986868c55062dc6cd154111f4ea
lispm/FRL
cntrl.lisp
#+franz (defmacro Macro (name args . body) `(defun ,name macro ,args . ,body)) (comment Mapping) ;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ;;; ;;; Mapping ;;; ;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: (macro MAPAPPEND (x) similar to MAPCAN , except ...
null
https://raw.githubusercontent.com/lispm/FRL/1a2aadf71062a89474b1164e4539911011b3b63e/util/cntrl.lisp
lisp
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Mapping :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: (foreach x <list> F1 ... Fn) returns a list of (eval Fi) for each x in <list>. (do-foreach x <list> F1 ... Fn) is equivalent in effect to (mapc '(lambda (x...
#+franz (defmacro Macro (name args . body) `(defun ,name macro ,args . ,body)) (comment Mapping) (macro MAPAPPEND (x) similar to MAPCAN , except appending is non - destructive . (list 'apply (list 'quote 'append) (cons 'mapcar (cdr x)))) (macro NMAPCAR (s) like MAPCAR , except reuses cells of the list . ...
de24af1fbc8d383bce185d44a722a0275995e16885c7e0846a8585b000457fb7
aantron/luv
FS_event.ml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t = [ `FS_event ] Handle.t module Event = struct type t = [ | `RENAME | `CHANGE ] let to_c = let open C.Types.FS_event.Event in function | `RENAME -> rename ...
null
https://raw.githubusercontent.com/aantron/luv/4b49d3edad2179c76d685500edf1b44f61ec4be8/src/FS_event.ml
ocaml
This file is part of Luv , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) type t = [ `FS_event ] Handle.t module Event = struct type t = [ | `RENAME | `CHANGE ] let to_c = let open C.Types.FS_event.Event in function | `RENAME -> rename ...
b0cf1efd30c21db566f7fa20c596f71ebd4b7e7d82e2a6ea1fbf3d386b2a1738
baryluk/ex11
lifts.erl
-module(lifts). Copyright ( C ) 2004 by ( ) %% All rights reserved. %% The copyright holder hereby grants the rights of usage, distribution %% and modification of this software to everyone and for any purpose, as %% long as this license and the copyright notice above are preserved and %% not modified. There is no...
null
https://raw.githubusercontent.com/baryluk/ex11/be8abc64ab9fb50611f93d6631fc33ffdee08fdb/widgets/lifts.erl
erlang
All rights reserved. The copyright holder hereby grants the rights of usage, distribution and modification of this software to everyone and for any purpose, as long as this license and the copyright notice above are preserved and not modified. There is no warranty for this software. Hard_wired 3x6 lifts starting...
-module(lifts). Copyright ( C ) 2004 by ( ) -include("sw.hrl"). -compile(export_all). -import(lists, [foreach/2, map/2,seq/2,sort/1]). start() -> spawn(fun() -> go() end). go() -> Pid = swLifts:make(), io:format("we're off~n"), and 6 floor processes Floors = map(fun(I) -> start_floor(I, Pid...
622079dcc197bb919c312ca89f3c06ca77045ee62b031c155a1dcacdf8a01380
input-output-hk/marlowe-cardano
GetContracts.hs
module Language.Marlowe.Runtime.Web.GetContracts where import Cardano.Api ( AsType(..) , ShelleyWitnessSigningKey(..) , TextEnvelope(..) , TextEnvelopeType(..) , deserialiseFromTextEnvelope , serialiseToTextEnvelope , signShelleyTransaction ) import Cardano.Api.SerialiseTextEnvelope (TextEnvelopeDesc...
null
https://raw.githubusercontent.com/input-output-hk/marlowe-cardano/d62545063dbf624f9f581fa8ed744460831ce2f2/marlowe-integration-tests/test/Language/Marlowe/Runtime/Web/GetContracts.hs
haskell
module Language.Marlowe.Runtime.Web.GetContracts where import Cardano.Api ( AsType(..) , ShelleyWitnessSigningKey(..) , TextEnvelope(..) , TextEnvelopeType(..) , deserialiseFromTextEnvelope , serialiseToTextEnvelope , signShelleyTransaction ) import Cardano.Api.SerialiseTextEnvelope (TextEnvelopeDesc...
4cc424642a07628bcc699bfd1532ab080fcd85c43c1ab0d9ea3a9e229e2fb94f
RefactoringTools/HaRe
Bar.expected.hs
module Foo.Bar where baz1 = 6
null
https://raw.githubusercontent.com/RefactoringTools/HaRe/ef5dee64c38fb104e6e5676095946279fbce381c/test/testdata/cabal/cabal4/src/Foo/Bar.expected.hs
haskell
module Foo.Bar where baz1 = 6
51247753188e3b2ed904ca8e0648d4bf585fe4a834b6e0f13b132b8bef9d04ba
saolsen/steveskeys
btree_test.clj
(ns saolsen.steveskeys.btree-test (:require [taoensso.nippy :as nippy]) (:use clojure.test saolsen.steveskeys.btree)) ;; Manually built tree for testing the search (def test-nodes { :root (->BPlusTreeNode [{:key (nippy/freeze-to-bytes 2) :val :a} {:key (nippy/freeze-to-bytes...
null
https://raw.githubusercontent.com/saolsen/steveskeys/e1a3636b8b3114971939c44e1e828348e891903c/test/saolsen/steveskeys/btree_test.clj
clojure
Manually built tree for testing the search Tree that stores the nodes in a clojure map, used to test construction. test that after tree is made, duplicates can be replaced correctly
(ns saolsen.steveskeys.btree-test (:require [taoensso.nippy :as nippy]) (:use clojure.test saolsen.steveskeys.btree)) (def test-nodes { :root (->BPlusTreeNode [{:key (nippy/freeze-to-bytes 2) :val :a} {:key (nippy/freeze-to-bytes 5) :val :b} {:key ...
f97322bbf20f69a64038095817080617703cae4a3010a8ae26bf4359b29a47f6
yzh44yzh/practical_erlang
task_5.erl
-module(task_5). -export([get_floats/1]). -include_lib("eunit/include/eunit.hrl"). get 3 float numbers from binary get_floats(Bin) -> {0.0, 0.0, 0.0}. get_floats_test() -> ?assertEqual({1.0, 2.5, 100.500}, get_floats(<<63,240,0,0,0,0,0,0, 64,4,0,0,0,0,0,0, ...
null
https://raw.githubusercontent.com/yzh44yzh/practical_erlang/c9eec8cf44e152bf50d9bc6d5cb87fee4764f609/01_lang_base/exercise/task_5.erl
erlang
-module(task_5). -export([get_floats/1]). -include_lib("eunit/include/eunit.hrl"). get 3 float numbers from binary get_floats(Bin) -> {0.0, 0.0, 0.0}. get_floats_test() -> ?assertEqual({1.0, 2.5, 100.500}, get_floats(<<63,240,0,0,0,0,0,0, 64,4,0,0,0,0,0,0, ...
4c75513bf4cf5b844d7eb8af76cf0b883d7913ada8f40aeb0e8574efba18e0be
bracevac/corrl
Pretty.hs
----------------------------------------------------------------------------- Copyright 2012 Microsoft Corporation . -- -- This is free software; you can redistribute it and/or modify it under the terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the roo...
null
https://raw.githubusercontent.com/bracevac/corrl/416cd107087ac070a6bcabf8e7937211b6f415bb/koka/src/Type/Pretty.hs
haskell
--------------------------------------------------------------------------- This is free software; you can redistribute it and/or modify it under the --------------------------------------------------------------------------- * Pretty ------------------------------------------------------------------------- -------...
Copyright 2012 Microsoft Corporation . terms of the Apache License , Version 2.0 . A copy of the License can be found in the file " license.txt " at the root of this distribution . ppType, ppScheme, ppTypeVar, ppDataInfo, ppSynInfo ,prettyDataInfo, prettyConInfo ...
1ab7e8f7047d8d72bcb8f7b903e09774183e86e01e922254e4760d7bca4b1284
cubicle-model-checker/cubicle
version.ml
let version = "0.5" let date = "Lun 5 mai 2014 10:01:21 CEST" let libdir = "/usr/local/lib/cubicle"
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/why/extraction_api/version.ml
ocaml
let version = "0.5" let date = "Lun 5 mai 2014 10:01:21 CEST" let libdir = "/usr/local/lib/cubicle"
95b3f7111b556c6b8b098b3816aba796c523d42ae007c7a8f0cb82efa0b6465f
threatgrid/naga-http
kafka.clj
(ns ^{:doc "Provides functionality for consuming Kafka events and storing them in the registered graph" :author "Paula Gearon"} naga-http.kafka (:require [naga-http.configuration :as c] [clojure.tools.logging :as log] [cheshire.core :as json] [franzy.clients.con...
null
https://raw.githubusercontent.com/threatgrid/naga-http/f3e9766bf67bb5494e0fac25bad54644ee439e1a/src/naga_http/kafka.clj
clojure
A write-once atom referencing an atom Dereferencing to get the atom in the server if something went wrong starting the thread, then clean up
(ns ^{:doc "Provides functionality for consuming Kafka events and storing them in the registered graph" :author "Paula Gearon"} naga-http.kafka (:require [naga-http.configuration :as c] [clojure.tools.logging :as log] [cheshire.core :as json] [franzy.clients.con...
142c86d6a405c430db0a255dce37bf956e6633435b55b5d5abba18cbeb2f04b2
rowangithub/DOrder
29.ml
let rec loopb (a:int) b c (d:int) = if (Random.bool ()) then loopb a (b-1) (c-1) d else a, b, c, d let rec loopa a b c d = if (Random.bool ()) then let x = a + c in let y = b + d in let a, d = if (x + y) mod 2 = 0 then a+1, d+1 else a-1, d in (*let a, b, c, d = loopb a b c d in*) loopa a b c d ...
null
https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/tests/folprograms/hola/29.ml
ocaml
let a, b, c, d = loopb a b c d in
let rec loopb (a:int) b c (d:int) = if (Random.bool ()) then loopb a (b-1) (c-1) d else a, b, c, d let rec loopa a b c d = if (Random.bool ()) then let x = a + c in let y = b + d in let a, d = if (x + y) mod 2 = 0 then a+1, d+1 else a-1, d in loopa a b c d else assert (a+c = b+d) let main () = ...
2b604fcd274d71a548123369fa41af71221af942c268352ea1f6c62b6e3c6209
lanl/APPFL
CodeGen.hs
We need the free variables of subtrees for two reasons : * for constructing an object ( closure ) , to know what to put it its payload * and to know what needs to be stashed in a continuation Conversely , when generating code for an expression , we need to know where to find each variable . This...
null
https://raw.githubusercontent.com/lanl/APPFL/0f29f390d4735e863904348711a48b8f38ca5d03/codegen/CodeGen.hs
haskell
TODO : think about this ) TODO: think about this) # LANGUAGE NamedFieldPuns # # LANGUAGE QuasiQuotes # import Data.Loc(noLoc) use a list of Definitions rather than Func this allows us to put comments before functions using "esc" static object Free Variable, payload in heap via pointer to pointer i...
We need the free variables of subtrees for two reasons : * for constructing an object ( closure ) , to know what to put it its payload * and to know what needs to be stashed in a continuation Conversely , when generating code for an expression , we need to know where to find each variable . This...
13f49822c1dff7ee035062b7609de09d3ab9fc13a4b40264891842269ba98146
etorreborre/registry
Dynamic.hs
# LANGUAGE AllowAmbiguousTypes # -- | Utility functions to work with 'Dynamic' values module Data.Registry.Internal.Dynamic where import Data.Dynamic import Data.Registry.Internal.Types import Data.Text import Protolude as P import Type.Reflection -- | Apply a function to a list of 'Dynamic' values applyFunction :: ...
null
https://raw.githubusercontent.com/etorreborre/registry/a35ce1d999a9567a88ee8d63c71bd4cb540476bc/src/Data/Registry/Internal/Dynamic.hs
haskell
| Utility functions to work with 'Dynamic' values | Apply a function to a list of 'Dynamic' values | function | inputs | result | Apply a function modifying a single value and keeping its type to be used with Modifiers | function | inputs | result | function | inputs | result | If the input type is a fu...
# LANGUAGE AllowAmbiguousTypes # module Data.Registry.Internal.Dynamic where import Data.Dynamic import Data.Registry.Internal.Types import Data.Text import Protolude as P import Type.Reflection applyFunction :: Function -> [Value] -> Either Text Value applyFunction function [] = if P.null (collectInputTypes...
a7efbd7d8384964a092d16d5f922b92b461c48af27dab4235597fb82402a037f
returntocorp/semgrep
token_helpers_php.ml
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
null
https://raw.githubusercontent.com/returntocorp/semgrep/00f1e67bbb80f00e29db3381288fc00398b6868a/languages/php/menhir/token_helpers_php.ml
ocaml
*************************************************************************** Token Helpers *************************************************************************** *************************************************************************** Visitors *****************************************************************...
* * Copyright ( C ) 2010 Facebook * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation , with the * special exception on linking described in file licens...
994b2714673e2fe0aa497493046f8c263d150cecd6cb4ff0a323070f75eae0ef
uselessd/eox9p
9p_server.erl
Copyright ( c ) 2013 - 2014 Cloudozer LLP . All rights reserved . %% %% Redistribution and use in source and binary forms, with or without %% modification, are permitted provided that the following conditions are met: %% %% * Redistributions of source code must retain the above copyright notice, this %% list of con...
null
https://raw.githubusercontent.com/uselessd/eox9p/7b6d879ed9b0e00fb8006d9d819a715de8de1f5b/src/9p_server.erl
erlang
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must r...
Copyright ( c ) 2013 - 2014 Cloudozer LLP . All rights reserved . THIS SOFTWARE IS PROVIDED BY CLOUDOZER LLP ` ` AS IS '' AND ANY EXPRESS OR DISCLAIMED . IN NO EVENT SHALL CLOUDOZER LLP BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMI...
bc91ab4b583336420289c4fa260588e1b01d4a84502b56c6517bba31a5624b7e
xapi-project/xenopsd
xenguestHelper.ml
* Copyright ( C ) 2006 - 2009 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/xenopsd/837d1ce49f2bb68092298a3d0a3dbaeb82c10058/xc/xenguestHelper.ml
ocaml
Exceptions which may propagate from the xenguest binary function name error code message * We do all our IO through the buffered channels but pass the underlying fds as integers to the forked helper on the commandline. * Fork and run a xenguest helper with particular args, leaving 'fds' open (in additi...
* Copyright ( C ) 2006 - 2009 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...
cdbbc35d934174a2e01f241bfe3df9d2e9d0b6c49b158e0ee9bef3d42dfb89e0
bennn/dissertation
typed-utils.rkt
#lang typed/racket #:transient (require racket/fixnum racket/list racket/performance-hint (for-syntax racket/base) "../unsafe.rkt") (provide (all-defined-out)) (define-type (Listof* A) (Rec T (U A (Listof T)))) (define-type (Vectorof* A) (Rec T (U A (Vectorof T)))) (define-type I...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/QA/math-test/jpeg/s-d/math/private/array/typed-utils.rkt
racket
begin-encourage-inline Helper to avoid the annoying #f column value This loop fails if it writes to a `visited' element twice, or an element of perm is not an Index < dims Sets js to the next vector of indexes, in row-major order
#lang typed/racket #:transient (require racket/fixnum racket/list racket/performance-hint (for-syntax racket/base) "../unsafe.rkt") (provide (all-defined-out)) (define-type (Listof* A) (Rec T (U A (Listof T)))) (define-type (Vectorof* A) (Rec T (U A (Vectorof T)))) (define-type I...
cd1da5c31f733d5adc92c46c80602ab5854135da1824c8069cfe68a189a1d02b
AlexKnauth/music
note-there.rkt
#lang agile (provide note-there note-there? note-there-duration) (require "note.rkt" "note-held.rkt" "../time/position.rkt" "../time/time-period.rkt") The data representation for notes does not include ties . Instead , two tied ;; notes are represented by a single note ...
null
https://raw.githubusercontent.com/AlexKnauth/music/b4489c27d7c0f7116d769344c787fa76b479e5fa/music/data/note/note-there.rkt
racket
notes are represented by a single note whose duration happens to cross over a measure boundary. note-there : Position NoteHeld -> NoteThere note-there? : Any -> Bool
#lang agile (provide note-there note-there? note-there-duration) (require "note.rkt" "note-held.rkt" "../time/position.rkt" "../time/time-period.rkt") The data representation for notes does not include ties . Instead , two tied A NoteThere is a [ Timed Note ] (defin...
5dd12e69443b15b150e2ab6ab4a00256cb079f0aa05726c0c712fab62cecc0f9
pveber/bistro
kallisto.mli
open Bistro open Formats class type index = object inherit binary_file method format : [`kallisto_index] end class type abundance_table = object inherit tsv method f1 : [`target_id] * string method f2 : [`length] * int method f3 : [`eff_length] * int method f4 : [`est_counts] * float method f5 : [`tpm...
null
https://raw.githubusercontent.com/pveber/bistro/da0ebc969c8c5ca091905366875cbf8366622280/lib/bio/kallisto.mli
ocaml
open Bistro open Formats class type index = object inherit binary_file method format : [`kallisto_index] end class type abundance_table = object inherit tsv method f1 : [`target_id] * string method f2 : [`length] * int method f3 : [`eff_length] * int method f4 : [`est_counts] * float method f5 : [`tpm...
7d39c50e03e0766dba528fcb853e24d46fc04d933be7b2bb15a25c23f3694e23
Feuerlabs/exometer_core
exometer_proc.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . %% 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 obtai...
null
https://raw.githubusercontent.com/Feuerlabs/exometer_core/358d5c6724b823104f122ca4f16439ae0e767c82/src/exometer_proc.erl
erlang
------------------------------------------------------------------- ------------------------------------------------------------------- @doc Utility functions for the `exometer_proc' probe type. must be handled explicitly. The functions in this module can be used by custom types (see e.g. {@link exometer_spi...
Copyright ( c ) 2014 Basho Technologies , Inc. All Rights Reserved . 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 /. The ` exometer_proc ' probe type is a vanilla Erlang process ....
e429b358b88ca6dbee24f4dc33dc6cb074b319c4b0aaac7deb21afd7745168d3
the-dr-lazy/cascade
Maybe.hs
| Module : Cascade . Data . Maybe Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Module...
null
https://raw.githubusercontent.com/the-dr-lazy/cascade/014a5589a2763ce373e8c84a211cddc479872b44/cascade-prelude/src/Cascade/Data/Maybe.hs
haskell
| Module : Cascade . Data . Maybe Description : ! ! ! INSERT MODULE SHORT DESCRIPTION ! ! ! Copyright : ( c ) 2020 - 2021 Cascade License : MPL 2.0 Maintainer : < > ( the-dr-lazy.github.io ) Stability : Stable Portability : POSIX ! ! ! INSERT MODULE LONG DESCRIPTION ! ! ! Module...
2ee9760614652129c7b6a225e188970d4d4b89c742e7e95ef4f0d53a44cc04eb
schwering/golog
Random.hs
module Random where newtype Supply = Supply Int deriving Show params :: (Int, Int, Int) params = (9301, 49297, 233280) init :: Int -> Supply init = Supply shuffle :: Int -> Supply -> Supply shuffle k (Supply i) = Supply (i*k) random :: Supply -> (Int, Supply) random (Supply i) = let (a,c,m) = params ...
null
https://raw.githubusercontent.com/schwering/golog/e5a0dba9598d616762271b5bef9fd51a53c1f829/golog-examples/maze/Random.hs
haskell
module Random where newtype Supply = Supply Int deriving Show params :: (Int, Int, Int) params = (9301, 49297, 233280) init :: Int -> Supply init = Supply shuffle :: Int -> Supply -> Supply shuffle k (Supply i) = Supply (i*k) random :: Supply -> (Int, Supply) random (Supply i) = let (a,c,m) = params ...
e4ef099089cfae79405937ffa0cd5c8d89442c9822d9d7c639d27ee5c7de2d55
brendanhay/amazonka
RelevanceLevel.hs
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE PatternSynonyms # {-# LANGUAGE StrictData #-} # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service...
null
https://raw.githubusercontent.com/brendanhay/amazonka/09f52b75d2cfdff221b439280d3279d22690d6a6/lib/services/amazonka-wisdom/gen/Amazonka/Wisdom/Types/RelevanceLevel.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE StrictData # | Stability : auto-generated
# LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE LambdaCase # # LANGUAGE PatternSynonyms # # LANGUAGE NoImplicitPrelude # # OPTIONS_GHC -fno - warn - unused - imports # Derived from AWS service descriptions , licensed under Apache 2.0 . Module : A...
baa6fa5425b32b0fc258dbcbe1c508c04e6236baa61916dbb2b81e4004b54892
quil-lang/quilc
symplectic.lisp
;;;; symplectic.lisp ;;;; Author : (in-package #:cl-quil.clifford) ;;; In this file we write some routines to deal with elements of ;;; the symplectic group Sp(2n, F_2). ;;; ;;; Helpful references: ;;; ;;; - -math.mit.edu/~dav/sympgen.pdf ;;; - " How to efficiently select an arbitrary Clifford group element...
null
https://raw.githubusercontent.com/quil-lang/quilc/3f3260aaa65cdde25a4f9c0027959e37ceef9d64/src/clifford/symplectic.lisp
lisp
symplectic.lisp In this file we write some routines to deal with elements of the symplectic group Sp(2n, F_2). Helpful references: - -math.mit.edu/~dav/sympgen.pdf We use SIMPLE-BIT-VECTOR and (SIMPLE-ARRAY BIT (* *)) to represent vectors and symplectic operators respectively. No transformation needed. T...
Author : (in-package #:cl-quil.clifford) - " How to efficiently select an arbitrary Clifford group element " ( ) (defun direct-sum (a b) "The direct sum of two elements A, B in Sp(2n)." (uiop:nest (destructuring-bind (ra ca) (array-dimensions a)) (destructuring-bind (rb cb) (array-dimensions b)) ...
9662cce1b9bfb4f180df6774dddc348153e1d8862091b58fe04aa6c1944519a4
jqueiroz/lojban.io
Dictionaries.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE TupleSections # # LANGUAGE TemplateHaskell # module Language.Eberban.Dictionaries ( officialDictionary ) where import Language.Eberban.Core import qualified Data.Text as T import qualified Data.Text.Encoding as TE import qualified Data.Map as M import qualified Data.Yaml ...
null
https://raw.githubusercontent.com/jqueiroz/lojban.io/68c3e919f92ea1294f32ee7772662ab5667ecef6/haskell/src/Language/Eberban/Dictionaries.hs
haskell
# LANGUAGE OverloadedStrings # | Official Dictionary | Loads entries from yaml-encoded text.
# LANGUAGE TupleSections # # LANGUAGE TemplateHaskell # module Language.Eberban.Dictionaries ( officialDictionary ) where import Language.Eberban.Core import qualified Data.Text as T import qualified Data.Text.Encoding as TE import qualified Data.Map as M import qualified Data.Yaml as Y import Data.FileEmbed (embedFi...
02b06a2de377927a0d47aaaa3e3538e65d583bbace6cbf4915420358164544a7
jonschoning/espial
ModelCustom.hs
module ModelCustom where import Prelude import Crypto.BCrypt as Import hiding (hashPassword) import Database.Persist.Sql import Safe (fromJustNote) import qualified Data.Text as T import qualified Data.Text.Encoding as TE import qualified Data.Aeson as A import System.Entropy (getEntropy) import qualified Data.ByteS...
null
https://raw.githubusercontent.com/jonschoning/espial/2986230bd50ef5fcf014703f9e33a662f459c199/src/ModelCustom.hs
haskell
* Bookmark Slug * Note Slug * Model Crypto
module ModelCustom where import Prelude import Crypto.BCrypt as Import hiding (hashPassword) import Database.Persist.Sql import Safe (fromJustNote) import qualified Data.Text as T import qualified Data.Text.Encoding as TE import qualified Data.Aeson as A import System.Entropy (getEntropy) import qualified Data.ByteS...
2fb094e9c7d7bb0ccf1abdd9d0408a66f816810081e91d6211901564e94dbe4e
icicle-lang/icicle-ambiata
ThreshOrd.hs
| Special " " instance for Thresher transform . -- Faster. # LANGUAGE NoImplicitPrelude # module Icicle.Avalanche.Statement.Simp.ThreshOrd ( ThreshMapOrd(..) ) where import Icicle.Avalanche.Prim.Flat import qualified Icicle.Common.Exp.Prim.Minimal as Min import Icicle.Common.Exp ...
null
https://raw.githubusercontent.com/icicle-lang/icicle-ambiata/9b9cc45a75f66603007e4db7e5f3ba908cae2df2/icicle-compiler/src/Icicle/Avalanche/Statement/Simp/ThreshOrd.hs
haskell
Faster. | Ord instance specifically for Thresher. compare v v' Constructors actually do matter what their type is. > left [Int] [Bool] 0 can't be replaced with > left [Int] [big thing] 0 can it?
| Special " " instance for Thresher transform . # LANGUAGE NoImplicitPrelude # module Icicle.Avalanche.Statement.Simp.ThreshOrd ( ThreshMapOrd(..) ) where import Icicle.Avalanche.Prim.Flat import qualified Icicle.Common.Exp.Prim.Minimal as Min import Icicle.Common.Exp import ...
1c231b0cde6d5f5582fbea611c972aeb43b28255cc938a9f94bb70bf47160f5b
lgessler/glam
projects_page.cljs
(ns glam.client.ui.project.projects-page (:require [com.fulcrologic.fulcro.components :as c :refer [defsc]] [com.fulcrologic.fulcro.data-fetch :as df] [glam.client.router :as r] [com.fulcrologic.fulcro.routing.dynamic-routing :as dr] [com.fulcrologic.fulcro.dom :as dom]...
null
https://raw.githubusercontent.com/lgessler/glam/89e03a2f11a8c14e5baa699e12df30a0d3e74a39/src/main/glam/client/ui/project/projects_page.cljs
clojure
(ns glam.client.ui.project.projects-page (:require [com.fulcrologic.fulcro.components :as c :refer [defsc]] [com.fulcrologic.fulcro.data-fetch :as df] [glam.client.router :as r] [com.fulcrologic.fulcro.routing.dynamic-routing :as dr] [com.fulcrologic.fulcro.dom :as dom]...
6756a448f01f473e6629ce18259d9d5d4d130226de8f4379ff0a2d72650d9fb4
mmottl/ocaml-makefile
idl_test.ml
Printf.printf "Got from C: %.2f\n" (C_idl.f "Hello world!" 42)
null
https://raw.githubusercontent.com/mmottl/ocaml-makefile/8f5929173ed6e1a29d8aa5e885ff491656ff1108/idl/idl_test.ml
ocaml
Printf.printf "Got from C: %.2f\n" (C_idl.f "Hello world!" 42)
bdc3a9de377539839c3ef24c32b7f20ba13486c0711bc52393e4f897291de932
binaryage/clearcut
tools.cljs
(ns clearcut.tools (:require-macros [clearcut.tools :refer [init-main-test!]]) (:require [cljs.test :refer-macros [deftest testing is are run-tests use-fixtures]] [clearcut.config :as config])) ; -- console recording --------------------------------------------------------------------------------------...
null
https://raw.githubusercontent.com/binaryage/clearcut/7f44705cd8743f8679199cb78a215487eb411ed4/test/src/tools/clearcut/tools.cljs
clojure
-- console recording ------------------------------------------------------------------------------------------------------ -- capturing console output ----------------------------------------------------------------------------------------------- -- fixtures ---------------------------------------------------------...
(ns clearcut.tools (:require-macros [clearcut.tools :refer [init-main-test!]]) (:require [cljs.test :refer-macros [deftest testing is are run-tests use-fixtures]] [clearcut.config :as config])) (defonce console-recorders (atom [])) (defn add-console-recorder! [recorder] (swap! console-recorders con...
12da8f651e0cd64f7969dc74b4980af7c0333649d41247ffe9fbc9a4035196cd
funcool/clojure.jdbc
types.clj
Copyright 2014 - 2015 < > ;; 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/funcool/clojure.jdbc/0828e9361e867181ddd2199f53ffa4de86904c83/src/jdbc/types.clj
clojure
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 2014 - 2015 < > Licensed under the Apache License , Version 2.0 ( the " License " ) distributed under the License is distributed on an " AS IS " BASIS , (ns jdbc.types (:require [jdbc.proto :as proto] [jdbc.resultset :refer [result-set->lazyseq]]) (:import java.sql.Connection ...
fd27e356e789892f343c9b84f7bc846e2107a59bdf1e708cc7a6c6c1b4560425
lspitzner/brittany
Test294.hs
foo a b = g a b -- fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo where g a b = b + b * a
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test294.hs
haskell
fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
where g a b = b + b * a
41aca9af5c7b0f1eee70b2e98d94f6077c5f2fe9e26b3596f33e4325e2616f97
meredydd/expect-call
project.clj
(defproject org.senatehouse/expect-call "0.3.0" :description "A Clojure library for no-fuss function mocking" :url "-call" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/core.match "1.0.0"]] :deploy-repositories...
null
https://raw.githubusercontent.com/meredydd/expect-call/d03f23e19446ed3ec6e3910ab776cd260b910f55/project.clj
clojure
(defproject org.senatehouse/expect-call "0.3.0" :description "A Clojure library for no-fuss function mocking" :url "-call" :license {:name "Eclipse Public License" :url "-v10.html"} :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/core.match "1.0.0"]] :deploy-repositories...
36b11b68b7f97694eb14fe1140efeae5498942a537b5593288e7956e63108505
sealchain-project/sealchain
Parse.hs
module Pos.Util.Json.Parse ( tryParseString , wrapConstructor ) where import Universum import Data.Typeable (typeRep) import Text.JSON.Canonical (JSValue (..), ReportSchemaErrors (expected), expectedButGotValue) tryParseString :: forall a...
null
https://raw.githubusercontent.com/sealchain-project/sealchain/e97b4bac865fb147979cb14723a12c716a62e51e/util/src/Pos/Util/Json/Parse.hs
haskell
module Pos.Util.Json.Parse ( tryParseString , wrapConstructor ) where import Universum import Data.Typeable (typeRep) import Text.JSON.Canonical (JSValue (..), ReportSchemaErrors (expected), expectedButGotValue) tryParseString :: forall a...