_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
4ab9058383a18dc2eac6dbae52f19ce30a73a153b7428045ca1fa928f75ceedc
jship/opentelemetry-haskell
Handlers.hs
module OTel.SDK.Trace.Handlers ( module OTel.SDK.Trace.Handlers.OnException , module OTel.SDK.Trace.Handlers.OnSpansExported , module OTel.SDK.Trace.Handlers.OnTimeout ) where import OTel.SDK.Trace.Handlers.OnException import OTel.SDK.Trace.Handlers.OnSpansExported import OTel.SDK.Trace.Handlers.OnTimeout
null
https://raw.githubusercontent.com/jship/opentelemetry-haskell/468b7df49226bb6a478180300dab8d1a214c213f/otel-sdk-trace/library/OTel/SDK/Trace/Handlers.hs
haskell
module OTel.SDK.Trace.Handlers ( module OTel.SDK.Trace.Handlers.OnException , module OTel.SDK.Trace.Handlers.OnSpansExported , module OTel.SDK.Trace.Handlers.OnTimeout ) where import OTel.SDK.Trace.Handlers.OnException import OTel.SDK.Trace.Handlers.OnSpansExported import OTel.SDK.Trace.Handlers.OnTimeout
e028dfc0c62e8c49f594e2ae576b9854b66f236d1abcd001abfb9b53828814f1
graninas/Hydra
ConsoleOptionsSpec.hs
{-# LANGUAGE PackageImports #-} module Astro.Tests.ConsoleOptionsSpec where import Test.Hspec (Spec, around, describe, it, shouldBe, shouldSatisfy) import Test.Hspec.QuickCheck (prop) import qualified "hydra-base" Hydra.Domain as D import qualified "hydra-free" Hydra.Runtime as R import qualifie...
null
https://raw.githubusercontent.com/graninas/Hydra/60d591b1300528f5ffd93efa205012eebdd0286c/app/astro/test/Astro/Tests/ConsoleOptionsSpec.hs
haskell
# LANGUAGE PackageImports #
module Astro.Tests.ConsoleOptionsSpec where import Test.Hspec (Spec, around, describe, it, shouldBe, shouldSatisfy) import Test.Hspec.QuickCheck (prop) import qualified "hydra-base" Hydra.Domain as D import qualified "hydra-free" Hydra.Runtime as R import qualified "hydra-free" Hydra.Interpreter...
b5bffddfacb6f4b91e651b758dba3427949edb242de5f65563d0ff8f3c93eba9
elaforge/fix-imports
Main.hs
-- Don't add Prelude import, because it's already implicitly imported. x = Prelude.x
null
https://raw.githubusercontent.com/elaforge/fix-imports/cab9522cc52c32faa1febd43d3db440f5e893bf5/test/prelude-add/Main.hs
haskell
Don't add Prelude import, because it's already implicitly imported.
x = Prelude.x
2841240e7b0afb50663b810e849896dce7780213ecf4fdb91d2ff7604cac8992
xinhaoyuan/morpheus
morpheus_guest_helper.erl
-module(morpheus_guest_helper). -export([ bootstrap/0 , bootstrap/1 , bootstrap_remote/1 % alias to bootstrap_dist , bootstrap_dist/1 , bootstrap_dist_entry/3 , start_dist_raw/1 , start_dist_raw_entry/3 ]). -export([ async_task/1 , syn...
null
https://raw.githubusercontent.com/xinhaoyuan/morpheus/a402f816a33fb5020d56f3b3e708e3835bebf23a/src/morpheus_guest_helper.erl
erlang
alias to bootstrap_dist %% Boot a minimum environment for unit-size tests %% I've improved the real bootstrap process. This one seems not needed? bootstrap() -> {ok, _} = application_controller:start( {application, kernel, [{description, "morpheus sandbox mock kernel"}, ...
-module(morpheus_guest_helper). -export([ bootstrap/0 , bootstrap/1 , bootstrap_dist/1 , bootstrap_dist_entry/3 , start_dist_raw/1 , start_dist_raw_entry/3 ]). -export([ async_task/1 , sync_task/1 ]). code : ( ) , { vsn , " 0....
c8368c144fa5b15b8f49db11a5b3cdaf9d6a31ead118640d1953ea9ef11d1967
aiya000/haskell-examples
random.hs
import System.Random randomInt :: RandomGen g => g -> (Int, g) randomInt = random randomIntR :: RandomGen g => (Int, Int) -> g -> (Int, g) randomIntR = randomR randomIOInt :: IO Int randomIOInt = randomIO main :: IO () main = do printPureRandoms putStrLn "- - -" printInpureRandoms printPureR...
null
https://raw.githubusercontent.com/aiya000/haskell-examples/a337ba0e86be8bb1333e7eea852ba5fa1d177d8a/System/Random/random.hs
haskell
import System.Random randomInt :: RandomGen g => g -> (Int, g) randomInt = random randomIntR :: RandomGen g => (Int, Int) -> g -> (Int, g) randomIntR = randomR randomIOInt :: IO Int randomIOInt = randomIO main :: IO () main = do printPureRandoms putStrLn "- - -" printInpureRandoms printPureR...
43ca97f0044459fecf9e297861b49a1b33756cfd2b40e10f8e9dbc55c5218df1
brevis-us/brevis
core.clj
(ns us.brevis.core (:use [us.brevis globals utils vector] [us.brevis.physics core utils] [us.brevis.shape core box sphere cone]) (:require [clojure.math.numeric-tower :as math] [brevis-utils.parameters :as params] [us.brevis.graphics.core :as graphics]) (:import (graphics.s...
null
https://raw.githubusercontent.com/brevis-us/brevis/de51c173279e82cca6d5990010144167050358a3/src/main/clojure/us/brevis/core.clj
clojure
shouldnt be using gui state for this
(ns us.brevis.core (:use [us.brevis globals utils vector] [us.brevis.physics core utils] [us.brevis.shape core box sphere cone]) (:require [clojure.math.numeric-tower :as math] [brevis-utils.parameters :as params] [us.brevis.graphics.core :as graphics]) (:import (graphics.s...
3f7fbbf17f9d3199041c7476f38e2fcd9783c4299adfbd19ba049c6693efd15f
tommaisey/aeon
b-write.help.scm
; /b_write Write sound file data. ; int - buffer number ; string - path name of a sound file. ; string - header format. ; string - sample format. ; int - number of frames to write (optional. default = -1, see below) ; int - starting frame in buffer (optional. default = 0) ; int - leave file open (optional. ...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/server-command/b-write.help.scm
scheme
/b_write Write sound file data. int - buffer number string - path name of a sound file. string - header format. string - sample format. int - number of frames to write (optional. default = -1, see below) int - starting frame in buffer (optional. default = 0) int - leave file open (optional. default =...
bytes - an OSC message to execute upon completion . ( optional ) Header format is one of : Sample format is one of : possible . If number of frames is less than zero , all samples from file open " to one , otherwise set it to zero . If " leave file open " is the DiskOut ugen does so .
5c0d2f8a227ef6f07a540a739b7d6477ce2080a3a08b587007f609af019a0989
jonase/clojure-ini
project.clj
(defproject clojure-ini "0.0.2" :description "Read .ini files into Clojure maps" :license "Eclipse Public License 1.0" :url "-ini" :dependencies [[org.clojure/clojure "1.3.0"]])
null
https://raw.githubusercontent.com/jonase/clojure-ini/e7b42d68e9a71aaa4886d71ada495a455485c5ce/project.clj
clojure
(defproject clojure-ini "0.0.2" :description "Read .ini files into Clojure maps" :license "Eclipse Public License 1.0" :url "-ini" :dependencies [[org.clojure/clojure "1.3.0"]])
e57b4e970e3c84bf39c8f1f7ce99b756eaeca3017d47a493aa5402b152486460
flussonic/epm
epm.erl
#!/usr/bin/env escript -mode(compile). -include_lib("kernel/include/file.hrl"). -record(fpm, { target, output, force = false, loglevel = error :: error | verbose | debug, release, epoch, license, vendor, category, depends = [], provides = [], buildhost = "localhost", url, description = "no...
null
https://raw.githubusercontent.com/flussonic/epm/af0a81a7b2fe6f6cae0497c296e254242951892d/epm.erl
erlang
$$ |$$$$\ $$ __$$\\_$$ _| $$ __$$\ $$ __$$\\_$$ _| \______/ \_______| \____/ \______/ $$ ____/ \____/ $$ | $$ | {ok, Tar} = erl_tar:open("data.tar.gz", [write,compressed]), lists:foreach(fun...
#!/usr/bin/env escript -mode(compile). -include_lib("kernel/include/file.hrl"). -record(fpm, { target, output, force = false, loglevel = error :: error | verbose | debug, release, epoch, license, vendor, category, depends = [], provides = [], buildhost = "localhost", url, description = "no...
27d166367995560db6857d7de2196185c48a2cbbf8921fdcc5cb2fed7d872a50
msimon/chip8js
main.ml
open Eliom_content open Html5.F module Chip8 = Eliom_registration.App (struct let application_name = "chip8" end) let site_prefix = "" let html_v cl = html ~a:[ a_manifest (uri_of_string (fun () -> "/cache.manifest")) ] (head (title (pcdata "OChip8")) [ meta ~a:([a_charset "utf-8"; a_cont...
null
https://raw.githubusercontent.com/msimon/chip8js/67f6ea0e25a2cc2287b6915c4ca2639a9d64c632/src/main.ml
ocaml
open Eliom_content open Html5.F module Chip8 = Eliom_registration.App (struct let application_name = "chip8" end) let site_prefix = "" let html_v cl = html ~a:[ a_manifest (uri_of_string (fun () -> "/cache.manifest")) ] (head (title (pcdata "OChip8")) [ meta ~a:([a_charset "utf-8"; a_cont...
a429eee005c045f75d5e4ff74706cc9a369568722a73d6fe2e9a5bdbb13da3ac
franks42/naclj
core_test.clj
(ns naclj.core-test (:import (com.github.franks42.naclj NaCl) (com.github.franks42.naclj NaCl$Sodium) (org.apache.commons.codec.binary) ) (:require [clojure.test :refer :all] [naclj.protocol :refer :all] [naclj.encode-util :refer :all] [naclj.fixture :as f] [naclj.core :refer :all]))...
null
https://raw.githubusercontent.com/franks42/naclj/0658915a860513340c5036fd759cc71510f91879/test/naclj/core_test.clj
clojure
setup (def kp (make-key-pair2)) tests (deftest key-pair-test-1 (testing "private and public key ?" (is (= true (key-pair? kp))) (is (= true (public-key? (public-key kp)))) (is (= true (private-key? (private-key kp)))) (is (= true (pair? (public-key kp) (private-key kp)))) ) ) (deftest key-...
(ns naclj.core-test (:import (com.github.franks42.naclj NaCl) (com.github.franks42.naclj NaCl$Sodium) (org.apache.commons.codec.binary) ) (:require [clojure.test :refer :all] [naclj.protocol :refer :all] [naclj.encode-util :refer :all] [naclj.fixture :as f] [naclj.core :refer :all]))...
e9097ba825568b92e2da2038edf9b8656c4efc4a3f531e57d6531ef26bfc43da
expipiplus1/vulkan
VK_KHR_external_memory.hs
{-# language CPP #-} -- | = Name -- -- VK_KHR_external_memory - device extension -- -- == VK_KHR_external_memory -- -- [__Name String__] -- @VK_KHR_external_memory@ -- -- [__Extension Type__] -- Device extension -- -- [__Registered Extension Number__] 73 -- -- [__Revision__] 1 -- -- [__Extension and...
null
https://raw.githubusercontent.com/expipiplus1/vulkan/88f8cb304f0685a1a0a775d2ba35f410afab09bc/src/Vulkan/Extensions/VK_KHR_external_memory.hs
haskell
# language CPP # | = Name VK_KHR_external_memory - device extension == VK_KHR_external_memory [__Name String__] @VK_KHR_external_memory@ [__Extension Type__] Device extension [__Registered Extension Number__] [__Revision__] [__Extension and Version Dependencies__] - Requires @VK_KHR_ex...
73 1 - Requires support for Vulkan 1.0 - 2016 - 10 - 20 - Interacts with - Promoted to Vulkan 1.1 Core - , Intel - , Google - , Google - , Imagination Technologies - , NVIDIA - , NVIDIA - ...
e98d9836605098d5131417dce8b4ce36f4a4e7def0d16f9c1750841806273246
timbertson/passe
date.ml
module type Sig = sig val time : unit -> float val human_time_span_desc : float -> string end
null
https://raw.githubusercontent.com/timbertson/passe/467a79ea0cd7b08a97b52be3bd1307a3bdf55799/src/common/date.ml
ocaml
module type Sig = sig val time : unit -> float val human_time_span_desc : float -> string end
c64513cb84432be787651390d2029f024b85f4427100127157b67318ab3da360
Operational-Transformation/ot.hs
Gen.hs
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE MultiParamTypeClasses # module Control.OperationalTransformation.Text.Gen ( genOperation' , genOperation ) where import Control.OperationalTransformation.Text import Control.OperationalTransformation.Properties (ArbitraryFor (..)) import Test.QuickCheck hiding (R...
null
https://raw.githubusercontent.com/Operational-Transformation/ot.hs/4a0ca8f1e3f59fd8ce0e6cfd95633940d4e22f88/test/Control/OperationalTransformation/Text/Gen.hs
haskell
# OPTIONS_GHC -fno - warn - orphans # # LANGUAGE MultiParamTypeClasses # module Control.OperationalTransformation.Text.Gen ( genOperation' , genOperation ) where import Control.OperationalTransformation.Text import Control.OperationalTransformation.Properties (ArbitraryFor (..)) import Test.QuickCheck hiding (R...
97ea72a4da3e735c13f80067bd5b8e6799746d04ef167cb96c9b4748fe6c361f
meamy/feynman
SOP.hs
# LANGUAGE ViewPatterns # {-- Deprecated -} module Feynman.Verification.SOP where import Text.Printf import Data.Bits import Data.Maybe import Data.List import Data.Monoid hiding ((<>)) import Data.Semigroup import Data.Map (Map, (!), (!?)) import qualified Data.Map as Map import Feynman.Algebra.Linear hiding (id...
null
https://raw.githubusercontent.com/meamy/feynman/aa376d323ba741c171929b90545e8d4532b3a5a3/src/Feynman/Verification/SOP.hs
haskell
- Deprecated path sums with polynomials over `a` Constructors Implementations Simulation NOTE: must be in lowest form N/A N/A w^x Folds over paths Reduction Single application of an axiom Only performs linear substitutions. Useful for simplifying without increasing complexity Applies reductions unti...
# LANGUAGE ViewPatterns # module Feynman.Verification.SOP where import Text.Printf import Data.Bits import Data.Maybe import Data.List import Data.Monoid hiding ((<>)) import Data.Semigroup import Data.Map (Map, (!), (!?)) import qualified Data.Map as Map import Feynman.Algebra.Linear hiding (identity) import Fey...
3874ec087396f0612471a03efac9dc252207ac4fda72716f3d33501968788885
ocamllabs/ocaml-modular-implicits
plugin4.ml
(***********************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/ocamllabs/ocaml-modular-implicits/92e45da5c8a4c2db8b2cd5be28a5bec2ac2181f1/testsuite/tests/lib-dynlink-native/plugin4.ml
ocaml
********************************************************************* OCaml ...
, LexiFi Copyright 2007 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . let () = Printf.printf "time = %f\n" (...
e21ccf3f57084c316162df40f2bd75ae7e8a79a084bc51ecbeaa8213cc60e5fe
crosswire/xiphos
lexicons.scm
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;; Centre for Speech Technology Research ; ; University of Edinburgh , UK ; ; ;;; ...
null
https://raw.githubusercontent.com/crosswire/xiphos/a9283769ef4d0d47f1d09a3ca4138610bb96a46c/win32/festival/lib/lexicons.scm
scheme
;; ; ; Copyright (c) 1996,1997 ;; ; ;; Permission is hereby granted, free of charge, to use and distribute ;; this softwar...
If there exists a sudirectory of the lib - path called dicts then that we set lexdir to the directory in CSTR where our lexicons are . In non - CSTR installations where lexicons are not in lib / dicts , (defvar lexdir (if (probe_file (path-append libdir "dicts")) (path-append libdir "dicts/") ...
6a62f75192b3b92586563813da2e7e6c85cf0339d9598539640d1edc8cd1331b
ngerakines/etap
etap_t_003.erl
-module(etap_t_003). -export([start/0]). start() -> etap:plan(3), etap_exception:dies_ok(fun() -> exit("some error") end, "throwing an error dies"), etap_exception:lives_ok(fun() -> _M = 1 end, "not throwing an error lives"), etap_exception:throws_ok(fun() -> throw("error_foo") end, "error_foo", "throw...
null
https://raw.githubusercontent.com/ngerakines/etap/3d46faf192a4e1436a058c9cfd7830deac72424b/t/etap_t_003.erl
erlang
-module(etap_t_003). -export([start/0]). start() -> etap:plan(3), etap_exception:dies_ok(fun() -> exit("some error") end, "throwing an error dies"), etap_exception:lives_ok(fun() -> _M = 1 end, "not throwing an error lives"), etap_exception:throws_ok(fun() -> throw("error_foo") end, "error_foo", "throw...
dd6e45053e91e3209c97ad19646e61716e3bc939c874c08fe0034ed4f16ca6ef
choptastic/sql_bridge
sql_bridge_app.erl
-module(sql_bridge_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> sql_bridge_sup:start_link(). stop(_State) -> ok.
null
https://raw.githubusercontent.com/choptastic/sql_bridge/020afb6923ce8dec65686c30d789a8e7907b2e58/src/sql_bridge_app.erl
erlang
-module(sql_bridge_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _StartArgs) -> sql_bridge_sup:start_link(). stop(_State) -> ok.
42fa078f67bf660ec0eb2a8f8a6b4b747ab2185e761c852f6d7d7be0fdb6f794
jumarko/clojure-experiments
cache.clj
;; COmmented out because core.cache cause problems (ns clojure-experiments.cache (:require [clojure.core.cache :as cache] [clojure.core.memoize :as memo])) ;;; Very useful cache implementation motivated by the discussion on slack: noisesmith the nice thing with core.cache is that it does n't force a s...
null
https://raw.githubusercontent.com/jumarko/clojure-experiments/d3b378321c415825d5d22ebc462c4cd4f9a5d31b/src/clojure_experiments/cache.clj
clojure
COmmented out because core.cache cause problems Very useful cache implementation motivated by the discussion on slack: it just takes a hash-map and returns a new one, and you can put this in a local that propagates via recur, or put it in a ref, or an atom, or even a proper db if you serialize it right - it shoul...
(ns clojure-experiments.cache (:require [clojure.core.cache :as cache] [clojure.core.memoize :as memo])) noisesmith the nice thing with core.cache is that it does n't force a specific storage - noisesmith I use core.cache in front of mongo documents encoded via transit noisesmith the core.cache ...
ee72149c8dfc662244812780fe42ee07f15d16b070e49af1e7a96c8e443dfabc
YoshikuniJujo/funpaala
functor0.hs
import Data.Tree (Tree(..)) import Data.Char (ord) mmap :: (a -> b) -> Maybe a -> Maybe b mmap f (Just x) = Just $ f x mmap _ Nothing = Nothing tmap :: (a -> b) -> Tree a -> Tree b tmap f (Node x sf) = Node (f x) $ map (tmap f) sf toCode :: Functor f => f Char -> f Int toCode = fmap ord newtype Fun a = Fun { fun ::...
null
https://raw.githubusercontent.com/YoshikuniJujo/funpaala/5366130826da0e6b1180992dfff94c4a634cda99/samples/30_functor/functor0.hs
haskell
import Data.Tree (Tree(..)) import Data.Char (ord) mmap :: (a -> b) -> Maybe a -> Maybe b mmap f (Just x) = Just $ f x mmap _ Nothing = Nothing tmap :: (a -> b) -> Tree a -> Tree b tmap f (Node x sf) = Node (f x) $ map (tmap f) sf toCode :: Functor f => f Char -> f Int toCode = fmap ord newtype Fun a = Fun { fun ::...
61ef0ef3f6f6b439c062fafe6d0ebfb0af05d075b0029ad25aaa95cffe7ef6d2
nuvla/api-server
credential_infrastructure_service_coe.cljc
(ns sixsq.nuvla.server.resources.spec.credential-infrastructure-service-coe " Spec for credentials of Container Orchestration Engine (COE). " (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.serv...
null
https://raw.githubusercontent.com/nuvla/api-server/a64a61b227733f1a0a945003edf5abaf5150a15c/code/src/sixsq/nuvla/server/resources/spec/credential_infrastructure_service_coe.cljc
clojure
(ns sixsq.nuvla.server.resources.spec.credential-infrastructure-service-coe " Spec for credentials of Container Orchestration Engine (COE). " (:require [clojure.spec.alpha :as s] [sixsq.nuvla.server.resources.spec.common :as common] [sixsq.nuvla.server.resources.spec.core :as core] [sixsq.nuvla.serv...
e900d3545eade3cc92ca7ac5b0c5c58f282433d7bc0f7050f7d726ba881d0921
marigold-dev/deku
f32.ml
* OCaml lacks 32 - bit floats , however we can emulate all the basic operations * using 64 - bit floats , as described in the paper * " When is double rounding innocuous ? " by . * OCaml lacks 32-bit floats, however we can emulate all the basic operations * using 64-bit floats, as described in the pape...
null
https://raw.githubusercontent.com/marigold-dev/deku/a26f31e0560ad12fd86cf7fa4667bb147247c7ef/deku-c/interpreter/exec/f32.ml
ocaml
* OCaml lacks 32 - bit floats , however we can emulate all the basic operations * using 64 - bit floats , as described in the paper * " When is double rounding innocuous ? " by . * OCaml lacks 32-bit floats, however we can emulate all the basic operations * using 64-bit floats, as described in the pape...
2ba06d3365d68f40d6738ef96678d8359a1d784616bc3bb5b80ceb8007c0553d
mathematical-systems/clml
strings.lisp
;;;; -*- Mode: lisp; indent-tabs-mode: nil -*- ;;; ;;; strings.lisp --- Conversions between strings and UB8 vectors. ;;; Copyright ( C ) 2007 , ;;; ;;; Permission is hereby granted, free of charge, to any person ;;; obtaining a copy of this software and associated documentation files ( the " Software " ) , to...
null
https://raw.githubusercontent.com/mathematical-systems/clml/918e41e67ee2a8102c55a84b4e6e85bbdde933f5/addons/babel/src/strings.lisp
lisp
-*- Mode: lisp; indent-tabs-mode: nil -*- strings.lisp --- Conversions between strings and UB8 vectors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation restriction, including without limitation the rights to use, copy, modify, merge, pu...
Copyright ( C ) 2007 , files ( the " Software " ) , to deal in the Software without of the Software , and to permit persons to whom the Software is included in all copies or substantial portions of the Software . THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , (in-package #:babel) ...
0cc9d7a35de472d4f82caefe7a42ec62ca16c499f0d5b6590960118f3b2c121c
ThoughtWorksInc/stonecutter
openid.clj
(ns stonecutter.integration.kerodon.openid (:require [midje.sweet :refer :all] [kerodon.core :as k] [ring.mock.request :as r] [clojure.string :as string] [cheshire.core :as json] [clauth.client :as cl-client] [stonecutter.handler :as h] ...
null
https://raw.githubusercontent.com/ThoughtWorksInc/stonecutter/37ed22dd276ac652176c4d880e0f1b0c1e27abfe/test/stonecutter/integration/kerodon/openid.clj
clojure
HTTP request so won't have browser cookie login check redirect - should have auth_code
(ns stonecutter.integration.kerodon.openid (:require [midje.sweet :refer :all] [kerodon.core :as k] [ring.mock.request :as r] [clojure.string :as string] [cheshire.core :as json] [clauth.client :as cl-client] [stonecutter.handler :as h] ...
80697023023b6299477e9c299c40bfd364cc3b018236a66a7860b425d9412cab
kkd26/SiFun
termCtx.ml
open DBType exception ContextException of string type cont = typeGenre -> typeGenre type termCtx = int -> cont -> typeGenre let emptyCtx : termCtx = fun i _k -> raise (ContextException ("Out of bounds variable " ^ string_of_int i)) let updateCtx (ctx : termCtx) (s : typeGenre) x (k : cont) = if x = 0 then k s ...
null
https://raw.githubusercontent.com/kkd26/SiFun/d0c17619f083440a20977b4b18326c775c6106c0/lib/termCtx.ml
ocaml
open DBType exception ContextException of string type cont = typeGenre -> typeGenre type termCtx = int -> cont -> typeGenre let emptyCtx : termCtx = fun i _k -> raise (ContextException ("Out of bounds variable " ^ string_of_int i)) let updateCtx (ctx : termCtx) (s : typeGenre) x (k : cont) = if x = 0 then k s ...
7770cce380e06a5b3bc414abbabcf16f57aaa3d2f077cc4c1606c4c1cd28d3b7
wdebeaum/step
wet.lisp
;;;; ;;;; W::wet ;;;; (define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::wet (wordfeats (W::MORPH (:FORMS (-ER -LY)))) (SENSES ((meta-data :origin cardiac :entry-date 20090130 :change-date nil :comments nil) (lf-parent ont::wet-val) (templ central-adj-templ) ) ) ) )) ...
null
https://raw.githubusercontent.com/wdebeaum/step/f38c07d9cd3a58d0e0183159d4445de9a0eafe26/src/LexiconManager/Data/new/wet.lisp
lisp
W::wet
(define-words :pos W::adj :templ CENTRAL-ADJ-TEMPL :words ( (W::wet (wordfeats (W::MORPH (:FORMS (-ER -LY)))) (SENSES ((meta-data :origin cardiac :entry-date 20090130 :change-date nil :comments nil) (lf-parent ont::wet-val) (templ central-adj-templ) ) ) ) )) (define-words :pos W::...
8ed5cf9f6810dfb83cf27b3e5944bcb4e631d11fa766a3d32ee08b8d9e10209f
typelead/eta
Layout.hs
{-# LANGUAGE OverloadedStrings #-} module Eta.CodeGen.Layout where import Eta.Types.Type import Eta.Types.TyCon import Eta.Main.DynFlags import Eta.StgSyn.StgSyn import Codec.JVM import Eta.Utils.Util import Eta.BasicTypes.Var import Eta.CodeGen.Monad import Eta.CodeGen.Types import Eta.CodeGen.ArgRep import Eta.CodeG...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/compiler/Eta/CodeGen/Layout.hs
haskell
# LANGUAGE OverloadedStrings # TODO: There are a lot of bangs in this function. Verify that they do indeed help. Helper function for generating return entry/exit layout This method is extremely sensitive. It assumes that the returned closure is on the top of the stack This method assumes that the bytecode a...
module Eta.CodeGen.Layout where import Eta.Types.Type import Eta.Types.TyCon import Eta.Main.DynFlags import Eta.StgSyn.StgSyn import Codec.JVM import Eta.Utils.Util import Eta.BasicTypes.Var import Eta.CodeGen.Monad import Eta.CodeGen.Types import Eta.CodeGen.ArgRep import Eta.CodeGen.Rts import Eta.CodeGen.Env impor...
4c3a05a1a94ea789123ac59754c42030e976707690fbefd2ec0ef57dae3aecdb
cram2/cram
high-level.lisp
;;; Copyright ( c ) 2018 , < > ;;; 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...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_common/cram_common_failures/src/high-level.lisp
lisp
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. * Redi...
Copyright ( c ) 2018 , < > * Neither the name of the Institute for Artificial Intelligence/ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
597ccaa34799c2adbddbbbf1d0e9bfe47e0a7379b68502858d2554fd8fc7319f
Cantido/clj-bittorrent
pieces.clj
(ns clj-bittorrent.pieces.pieces (:require [clojure.set :as s] [clj-bittorrent.math.binary :as bin] [clj-bittorrent.math.hash :as hash] [clj-bittorrent.math.numbers :as n])) (defn valid-piece? [m p] (let [actual-sha (seq (hash/sha1 (byte-array (:contents p)))) expected-s...
null
https://raw.githubusercontent.com/Cantido/clj-bittorrent/5fea93e318f9d07e4bbee6aced12e10ae0f46f2a/src/clj_bittorrent/pieces/pieces.clj
clojure
(ns clj-bittorrent.pieces.pieces (:require [clojure.set :as s] [clj-bittorrent.math.binary :as bin] [clj-bittorrent.math.hash :as hash] [clj-bittorrent.math.numbers :as n])) (defn valid-piece? [m p] (let [actual-sha (seq (hash/sha1 (byte-array (:contents p)))) expected-s...
b87426bae3c17492ef205c97bd04ef58ea6b0f8fc66284352bd1cb34e09c8177
fakedata-haskell/fakedata
Minecraft.hs
# LANGUAGE TemplateHaskell # {-# LANGUAGE OverloadedStrings #-} module Faker.Game.Minecraft where import Data.Text (Text) import Faker (Fake(..)) import Faker.Provider.Minecraft import Faker.TH $(generateFakeField "minecraft" "blocks") $(generateFakeField "minecraft" "items") $(generateFakeField "minecraft" "mobs"...
null
https://raw.githubusercontent.com/fakedata-haskell/fakedata/ea938c38845b274e28abe7f4e8e342f491e83c89/src/Faker/Game/Minecraft.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE TemplateHaskell # module Faker.Game.Minecraft where import Data.Text (Text) import Faker (Fake(..)) import Faker.Provider.Minecraft import Faker.TH $(generateFakeField "minecraft" "blocks") $(generateFakeField "minecraft" "items") $(generateFakeField "minecraft" "mobs") | @since 1.0 $(generateFakeFie...
e465a0400a4c32f30019f39654b610300d0b42ebe7790ff6cdb192b3863ed51b
facebook/pyre-check
annotatedAttribute.ml
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/98b8362ffa5c715c708676c1a37a52647ce79fe0/source/analysis/annotatedAttribute.ml
ocaml
TODO(T132410158) Add a module-level doc comment. We need to distinguish between unannotated attributes and non-existent ones - ensure that the annotation is viewed as mutable to distinguish from user-defined globals.
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
0778891a30ec326871d5dc8bb3e6e72f5837c892b3b274292f5277f4313acc57
qkrgud55/ocamlmulti
mutex.ml
(***********************************************************************) (* *) (* OCaml *) (* *) and , INRI...
null
https://raw.githubusercontent.com/qkrgud55/ocamlmulti/74fe84df0ce7be5ee03fb4ac0520fb3e9f4b6d1f/otherlibs/threads/mutex.ml
ocaml
********************************************************************* OCaml ...
and , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the GNU Library General Public License , with $ I d : mutex.ml 11156 2011 - 07 - 27 14:17:02Z dol...
213ac7173ba5d7c07524da60d8b9121101f15afa214b47f8dadae5eb88786eba
Octachron/olivine
subresult.ml
module Atoms = struct type t = string list let compare (x:t) (y:t) = compare x y end module S = Set.Make(Atoms) module L = Linguistic let atoms_of_name name = let open L in remove_prefix [ "error"] @@ remove_prefix [ "vk"] @@ to_path name let atoms names = List.fold_left (fun set x -> S.ad...
null
https://raw.githubusercontent.com/Octachron/olivine/e93df595ad1e8bad5a8af689bac7d150753ab9fb/info/subresult.ml
ocaml
module Atoms = struct type t = string list let compare (x:t) (y:t) = compare x y end module S = Set.Make(Atoms) module L = Linguistic let atoms_of_name name = let open L in remove_prefix [ "error"] @@ remove_prefix [ "vk"] @@ to_path name let atoms names = List.fold_left (fun set x -> S.ad...
dc460da4ad72c482231e28e688e01f2778a88ce31a08826899d54ef7183998b5
reasonml-old/BetterErrors
bad-file-name-2_1.ml
asd
null
https://raw.githubusercontent.com/reasonml-old/BetterErrors/d439b92bfe377689c38fded5d8aa2b151133f25d/tests/bad-file-name-2/bad-file-name-2_1.ml
ocaml
asd
f9a998677931a3fc6c8305869a2b3b8e017a6cb89dd9bbb687516850e8d7a224
esl/MongooseIM
mod_muc_light_db_backend.erl
%%%---------------------------------------------------------------------- File : Author : < > Purpose : MUC light DB behaviour Created : 6 Oct 2015 by < > %%%---------------------------------------------------------------------- -module(mod_muc_light_db_backend). -author(''). -define(MAIN_MODULE,...
null
https://raw.githubusercontent.com/esl/MongooseIM/64d10a08d8e4700027734ec49ce4c4014b41b34b/src/muc_light/mod_muc_light_db_backend.erl
erlang
---------------------------------------------------------------------- ---------------------------------------------------------------------- API For tests ==================================================================== Behaviour callbacks ==================================================================== --...
File : Author : < > Purpose : MUC light DB behaviour Created : 6 Oct 2015 by < > -module(mod_muc_light_db_backend). -author(''). -define(MAIN_MODULE, mod_muc_light_db). -include("mod_muc_light.hrl"). -type modify_aff_users_return() :: {ok, OldAffUsers :: aff_users(), ...
2024c0a90370ca4602ef3ca8f9d024d1bf4f258899b9f620bfe9a6eb0c6effdb
spechub/Hets
adl.hs
# LANGUAGE CPP # | Module : ./Adl / adl.hs Description : ADL syntax parser Copyright : ( c ) , GmbH 2010 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Module : ./Adl/adl.hs Description : ADL syntax...
null
https://raw.githubusercontent.com/spechub/Hets/f582640a174df08d4c965d7c0a1ab24d1a31000d/Adl/adl.hs
haskell
# LANGUAGE CPP # | Module : ./Adl / adl.hs Description : ADL syntax parser Copyright : ( c ) , GmbH 2010 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable Module : ./Adl/adl.hs Description : ADL syntax...
962f0ffa702fc7d7260a47ad0df69f40e0fa0bd8dba404bf0b55c78d74998729
TerrorJack/ghc-alter
Imp.hs
# LANGUAGE Unsafe # {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module : Control.Monad.ST.Imp Copyright : ( c ) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : -- ...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Control/Monad/ST/Imp.hs
haskell
# OPTIONS_HADDOCK hide # --------------------------------------------------------------------------- | Module : Control.Monad.ST.Imp License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : non-portable (requires universal quantification for...
# LANGUAGE Unsafe # Copyright : ( c ) The University of Glasgow 2001 This library provides support for /strict/ state threads , as described in the PLDI \'94 paper by and module Control.Monad.ST.Imp ( abstract , instance of Functor , Monad , Typeable . runST, fixST, stToIO, ...
7816e0f6db32f18ca4cdd83e5953cc24a5544b4661732306cf05ac75e217f127
fortytools/holumbus
SimpleIndexer.hs
# OPTIONS # -- ------------------------------------------------------------ module SimpleIndexer module Main where import Control.DeepSeq import Data.Binary ( Binary ) else naming conflict with put and get from Monad . State import Data.Function.Selector import ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/crawl2/examples/simpleindexer/SimpleIndexer.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ local cache dir "cache" cache files will be compressed use default read options, but accept pdfs too the set of URIs to be followe...
# OPTIONS # module SimpleIndexer module Main where import Control.DeepSeq import Data.Binary ( Binary ) else naming conflict with put and get from Monad . State import Data.Function.Selector import Holumbus.Crawler import Holumbus.Crawler.IndexerCore import ...
230a87bfafdb476594fa8175fa496831904189e8545d088095fe9a6e61a0f786
lojic/LearningRacket
wordle.rkt
#lang racket (require debug/repl) Wordle Solver for hard mode After each guess is proposed by the program , enter one of 3 letters ;; for each position: ;; p if the letter is correct for that position ;; i if the letter is included in the word at a different position ;; e if the letter is excluded from the word ...
null
https://raw.githubusercontent.com/lojic/LearningRacket/a22f04e1cdd4618554ce56301fedf5ed81b65e84/miscellaneous/wordle.rkt
racket
for each position: p if the letter is correct for that position i if the letter is included in the word at a different position e if the letter is excluded from the word Encode information if a letter is included more than once (printf "~a = ~a\n" word score*) (bot-agent word) (time (game #f targets words)))) (...
#lang racket (require debug/repl) Wordle Solver for hard mode After each guess is proposed by the program , enter one of 3 letters TODO (define (play words wordle included excluded n agent [ first-guess #f ]) (if (> n 20) (error "Failed to guess the Wordle!") (let* ([ frequencies (make-letter-f...
a985a2aa56f3e8c33dfc28cf81faf0276be7f9c2b55d1a01df9b45fd881d9e98
fendor/hsimport
ModuleTest12.hs
{-# Language PatternGuards #-} module Blub where
null
https://raw.githubusercontent.com/fendor/hsimport/9be9918b06545cfd7282e4db08c2b88f1d8162cd/tests/inputFiles/ModuleTest12.hs
haskell
# Language PatternGuards #
module Blub where
b7cb3a1c6fb25c36813d933bb8a11b6dc8e40c912a0f0ad5a5a91d2d42bf4e19
mentat-collective/functional-numerics
milne.cljc
(ns quadrature.milne (:require [quadrature.common :as qc #?@(:cljs [:include-macros true])] [quadrature.midpoint :as qm] [quadrature.interpolate.richardson :as ir] [quadrature.util.stream :as us])) (defn milne-sequence "Returns a (lazy) sequence of successively refi...
null
https://raw.githubusercontent.com/mentat-collective/functional-numerics/44856b0e3cd1f0dd9f8ebb2f67f4e85a68aa8380/src/quadrature/milne.cljc
clojure
(ns quadrature.milne (:require [quadrature.common :as qc #?@(:cljs [:include-macros true])] [quadrature.midpoint :as qm] [quadrature.interpolate.richardson :as ir] [quadrature.util.stream :as us])) (defn milne-sequence "Returns a (lazy) sequence of successively refi...
62222773d560a02e72caa6463bce30fe5397c65a3a0f3b6c69296ff91a569577
yesodweb/persistent
EntityEmbedTestMongo.hs
{-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE DataKinds, ExistentialQuantification #-} # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE DerivingStrat...
null
https://raw.githubusercontent.com/yesodweb/persistent/2fa3d7727438d1bd0e3f74b58131e986cdf5f895/persistent-mongoDB/test/EntityEmbedTestMongo.hs
haskell
# LANGUAGE EmptyDataDecls # # LANGUAGE DataKinds, ExistentialQuantification # because we are using a type alias we need to declare in a separate module
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE DerivingStrategies # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE StandaloneDeriving # module...
6285ac590421d11cbff820ee7bd223f44ff681787b5fc5fb50ec91ab80100916
seagreen/ian
UI.hs
module Cr2d.UI where import Concur.Core (Widget) import Concur.Replica (HTML) import qualified Concur.Replica.DOM as H import qualified Cr2d.Picture as Picture import Cr2d.Point import Cr2d.Prelude hiding (div, span) import Cr2d.Replica.Widget import Cr2d.Ship import qualified Data.HashMap.Strict as HashMap import qua...
null
https://raw.githubusercontent.com/seagreen/ian/f245fb68d94299f0e3e12744e9d1549447ad529a/concur-replica-example-2d/src/Cr2d/UI.hs
haskell
let name = "test"
module Cr2d.UI where import Concur.Core (Widget) import Concur.Replica (HTML) import qualified Concur.Replica.DOM as H import qualified Cr2d.Picture as Picture import Cr2d.Point import Cr2d.Prelude hiding (div, span) import Cr2d.Replica.Widget import Cr2d.Ship import qualified Data.HashMap.Strict as HashMap import qua...
bff0a181dcbca1ae442682b68321b6c3c8c003fb47dd7dc10307fd704758e9e0
s-expressionists/Cleavir
packages.lisp
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-primop (:use) (:export #:eq #:typeq #:case #:car #:cdr #:rplaca #:rplacd #:fixnum-arithmetic #:fixnum-add #:fixnum-sub #:fixnum-less #:fixnum-not-greater #:fixnum-greater #:fixnum-not-less #:fixnum-equal ;; Each of these oper...
null
https://raw.githubusercontent.com/s-expressionists/Cleavir/6e9da3911551f49646f5332c6d9cfbf76044a3cd/Primop/packages.lisp
lisp
Each of these operations takes a type argument in addition to the normal argument(s) of the corresponding Common Lisp evaluated.
(cl:in-package #:common-lisp-user) (defpackage #:cleavir-primop (:use) (:export #:eq #:typeq #:case #:car #:cdr #:rplaca #:rplacd #:fixnum-arithmetic #:fixnum-add #:fixnum-sub #:fixnum-less #:fixnum-not-greater #:fixnum-greater #:fixnum-not-less #:fixnum-equal function . That type...
a84558a87ec8078a204095a861891ba1f6e5c26ce354d77b7f56dea9f154e430
johnwhitington/ocamli
example08.ml
let addtoten a b = a + b = 10
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/OCaml%20from%20the%20Very%20Beginning/Chapter%202/example08.ml
ocaml
let addtoten a b = a + b = 10
034c0ed3078a419154986d58f8d8806f1c23470e12c400d5370f565034688542
janestreet/bonsai
main.ml
open! Core open! Bonsai_web open Bonsai.Let_syntax open Vdom_keyboard module Css = [%css stylesheet {| .block { position: absolute; width: 200px; height: 200px; background: green; display: flex; justify-content: center; align-items: center; text-align: center; color: w...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/vdom_keyboard/main.ml
ocaml
Small movement Big movement Open and close help text
open! Core open! Bonsai_web open Bonsai.Let_syntax open Vdom_keyboard module Css = [%css stylesheet {| .block { position: absolute; width: 200px; height: 200px; background: green; display: flex; justify-content: center; align-items: center; text-align: center; color: w...
711f4dd1cb118d2e6337d07ca16886eca07a2a1e90fdadc55e832bf8f78a806d
BranchTaken/Hemlock
test_inter.ml
open! Basis.Rudiments open! Basis open Ordset let test () = let test ms0 ms1 = begin let ordset0 = of_list (module Uns) ms0 in let ordset1 = of_list (module Uns) ms1 in let ordset = inter ordset0 ordset1 in let ms = to_list ordset in List.iter ms0 ~f:(fun m -> assert ((mem m ordset) || (not...
null
https://raw.githubusercontent.com/BranchTaken/Hemlock/07922d4658ca6ecf37dfd46f5aca31c8b58e06e4/bootstrap/test/basis/ordset/test_inter.ml
ocaml
open! Basis.Rudiments open! Basis open Ordset let test () = let test ms0 ms1 = begin let ordset0 = of_list (module Uns) ms0 in let ordset1 = of_list (module Uns) ms1 in let ordset = inter ordset0 ordset1 in let ms = to_list ordset in List.iter ms0 ~f:(fun m -> assert ((mem m ordset) || (not...
11537a34394fe0ce326190478e0bfedb06a3ee59258dc575620c03d0a56113eb
robert-strandh/SICL
tie-code-object.lisp
(cl:in-package #:sicl-compiler) (defun source-position-equal (p1 p2) (and (eql (sicl-source-tracking:line-index (car p1)) (sicl-source-tracking:line-index (car p2))) (eql (sicl-source-tracking:line-index (cdr p1)) (sicl-source-tracking:line-index (cdr p2))) (eql (sicl-source-tra...
null
https://raw.githubusercontent.com/robert-strandh/SICL/59d8fa94811a0eac4ac747333ad9ecd976652c41/Code/Compiler/AST-compiler/tie-code-object.lisp
lisp
FIXME: define this function.
(cl:in-package #:sicl-compiler) (defun source-position-equal (p1 p2) (and (eql (sicl-source-tracking:line-index (car p1)) (sicl-source-tracking:line-index (car p2))) (eql (sicl-source-tracking:line-index (cdr p1)) (sicl-source-tracking:line-index (cdr p2))) (eql (sicl-source-tra...
28a4b8287b14315d0cb28f0bf6b0d633fc1a76c425d2b750c0c43c5bec052f8d
dinosaure/paf-le-chien
fiber.mli
type 'a t type 'a ivar val return : 'a -> 'a t val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t val ( >>> ) : unit t -> unit t -> unit t val both : 'a t -> 'b t -> ('a * 'b) t val fork : (unit -> 'a t) -> 'a ivar t val fork_and_join : (unit -> 'a t) -> (unit -> 'b t) -> ('a * 'b) t v...
null
https://raw.githubusercontent.com/dinosaure/paf-le-chien/11c4aa30438d795e765063db61531944d988a516/test/fiber.mli
ocaml
type 'a t type 'a ivar val return : 'a -> 'a t val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t val ( >>| ) : 'a t -> ('a -> 'b) -> 'b t val ( >>> ) : unit t -> unit t -> unit t val both : 'a t -> 'b t -> ('a * 'b) t val fork : (unit -> 'a t) -> 'a ivar t val fork_and_join : (unit -> 'a t) -> (unit -> 'b t) -> ('a * 'b) t v...
94b220f3e7dc2187a0842a38d9235e2600c2829c2d6210210f8ac75039907d61
uim/sigscheme
test-misc.scm
#! /usr/bin/env sscm -C UTF-8 ;; Filename : test-misc.scm ;; About : unit tests for miscellaneous procedures ;; Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > ;; ;; All rights reserved. ;; ;; Redistribution and use in sour...
null
https://raw.githubusercontent.com/uim/sigscheme/ccf1f92d6c2a0f45c15d93da82e399c2a78fe5f3/test/test-misc.scm
scheme
Filename : test-misc.scm About : unit tests for miscellaneous procedures All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: notice, this list of conditions and the following disclaime...
#! /usr/bin/env sscm -C UTF-8 Copyright ( C ) 2006 YAMAMOTO Kengo < yamaken AT > Copyright ( c ) 2007 - 2008 SigScheme Project < uim - en AT googlegroups.com > 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Ne...
ab80b62437da35956936f9295d9cd784be52a949864f09e11590c4ed040d4f88
input-output-hk/project-icarus-importer
Txp.hs
| Core types of Txp component , i. e. types which actually form -- block or are used by other components. module Pos.Core.Txp ( TxId -- * Witness , TxInWitness (..) , TxWitness , TxSigData (..) , TxSig -- * Tx parts , TxIn (..) , TxOut (..) , _T...
null
https://raw.githubusercontent.com/input-output-hk/project-icarus-importer/36342f277bcb7f1902e677a02d1ce93e4cf224f0/core/src/Pos/Core/Txp.hs
haskell
block or are used by other components. * Witness * Tx parts * Tx * Payload and proof * Undo | Represents transaction identifier as 'Hash' of 'Tx'. -------------------------------------------------------------------------- Witness -------------------------------------------------------------------------- | Tran...
| Core types of Txp component , i. e. types which actually form module Pos.Core.Txp ( TxId , TxInWitness (..) , TxWitness , TxSigData (..) , TxSig , TxIn (..) , TxOut (..) , _TxOut , TxOutAux (..) , TxAttributes , isTxInUnknown , ...
2b14aa91cd483c5ce3420c79b1df81e201af21ed3546655a390d451f02bc5c6f
uncomplicate/clojurecl
utils_test.clj
Copyright ( c ) . All rights reserved . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) or later ;; which can be found in the file LICENSE at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be boun...
null
https://raw.githubusercontent.com/uncomplicate/clojurecl/58f8b9dc42a9b7faa526687c836be23cc2b6e7fd/test/clojure/uncomplicate/clojurecl/utils_test.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) or later which can be found in the file LICENSE at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not rem...
Copyright ( c ) . All rights reserved . (ns uncomplicate.clojurecl.utils-test (:require [midje.sweet :refer :all] [uncomplicate.clojurecl.internal.utils :refer :all])) (facts "error tests" (ex-data (error 0)) => {:code 0, :details nil, :name "CL_SUCCESS", :type :opencl-error} (ex-data (error...
b4698cdcba2ddccc08fbe4d1742a5083396d62fa66b051b83383eac803c3c22d
GregorKiczales/spd
intermediate.rkt
(module checker handin-server/checker (require handin-server/private/reloadable) (check: :language '(special intermediate) :require '(2htdp/image 2htdp/universe spd/tags) :create-text? #t :textualize? #t :eval? #t :coverage? #f (let ([the-gradefn (auto-...
null
https://raw.githubusercontent.com/GregorKiczales/spd/1a4b226b2e1ae8d7f4906c2cd6bfed867fd55874/handin-checkers/intermediate.rkt
racket
(module checker handin-server/checker (require handin-server/private/reloadable) (check: :language '(special intermediate) :require '(2htdp/image 2htdp/universe spd/tags) :create-text? #t :textualize? #t :eval? #t :coverage? #f (let ([the-gradefn (auto-...
fdaf9ece96fd993a181a1e239cea92c915f7086461fa2f824a9b1a0c2b83522f
fetburner/Coq2SML
states.mli
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/fetburner/Coq2SML/322d613619edbb62edafa999bff24b1993f37612/coq-8.4pl4/library/states.mli
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** * In that module, we provide functio...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2014 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * { 6 States of the system } ...
46ec023e724630fee5a9daa3887d698c5254c77a32c475944cf7eebc22e1442c
janestreet/memtrace_viewer_with_deps
weak_array.mli
(** Module for dealing with weak pointers, i.e., pointers that don't prevent garbage collection of what they point to. This module is like the OCaml standard library module of the same name, except that it requires that the values in the weak set are heap blocks. *) open! Core_kernel type 'a t [@@derivin...
null
https://raw.githubusercontent.com/janestreet/memtrace_viewer_with_deps/5a9e1f927f5f8333e2d71c8d3ca03a45587422c4/vendor/core_kernel/weak_array/src/weak_array.mli
ocaml
* Module for dealing with weak pointers, i.e., pointers that don't prevent garbage collection of what they point to. This module is like the OCaml standard library module of the same name, except that it requires that the values in the weak set are heap blocks. * [set_exn] raises an exception if given [So...
open! Core_kernel type 'a t [@@deriving sexp_of] val create : len:int -> _ t val length : _ t -> int val set : 'a t -> int -> 'a Heap_block.t option -> unit val set_exn : 'a t -> int -> 'a option -> unit val get : 'a t -> int -> 'a Heap_block.t option val is_some : _ t -> int -> bool val is_none : _ t -> int -> boo...
b52edf91b6f616eae6a7943f203d033c2ee1d97689bddba5e4f7d381a4106bf6
ocsigen/js_of_ocaml
graphics_js.mli
Js_of_ocaml library * / * Copyright ( C ) 2014 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of the...
null
https://raw.githubusercontent.com/ocsigen/js_of_ocaml/58210fabc947c4839b6e71ffbbf353a4ede0dbb7/lib/lwt/graphics/graphics_js.mli
ocaml
* Javascript binding for Graphics lib * type of a graphic context * Open a graphics window. The graphics window is cleared and the current point is set to (0, 0). The string argument is used to pass optional information on the desired graphics mode, the graphics window size, and so on. Specification c...
Js_of_ocaml library * / * Copyright ( C ) 2014 Hugo Heuzard * * 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 , with linking exception ; * either version 2.1 of the...
f6abe13449382ff619056fd379f77639ffd81deb19cfdc2546534baa15371127
infinisil/aoc18
Main.hs
{-# LANGUAGE DeriveFunctor #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Main where import Data.Fix import Data.Functor import Data.List import Data.Map (Map) im...
null
https://raw.githubusercontent.com/infinisil/aoc18/049fae7c7a6b636fd65d5d5c188a4f7dc7bf5063/aoc12/src/Main.hs
haskell
# LANGUAGE DeriveFunctor # # LANGUAGE OverloadedStrings # | Cleans a pair of (startIndex, pots) into a new pair such that pots has all False values cut from the ends ((P, P, P, P) -> P -> ((P, P, P, P), P)) ->
# LANGUAGE LambdaCase # # LANGUAGE TemplateHaskell # # LANGUAGE TupleSections # module Main where import Data.Fix import Data.Functor import Data.List import Data.Map (Map) import qualified Data.Map as Map import Data...
e12b58af6f7d642226b58d53e80205bd8af9c1a795130c1d9ce4f4af2d1d54df
ejgallego/coq-serapi
ser_rewrite.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/ejgallego/coq-serapi/61d2a5c092c1918312b8a92f43a374639d1786f9/serlib/plugins/ltac/ser_rewrite.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** ************************************...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2016 \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright 2016 - 2018 MINES...
5e0e2d87d54b302b62a36797f1e169b22be1a05fff77a1975d54c5c0d16c0f56
triffon/fp-2021-22
code.rkt
#lang r5rs ; copy-pasta (define (succ x) (+ x 1)) (define (pred n) (- n 1)) zad 1 (define (add a b) (if (= b 0) a (add (succ a) (pred b)))) zad 2 (define (multiply-iter a b) (define (iter a b res) (if (= b 0) res (iter a (pred b) (add res a)))) (iter a b 0)) zad 3 ...
null
https://raw.githubusercontent.com/triffon/fp-2021-22/e8e71eb7f36b9e8f9ec59e336def384e063208a8/exercises/3/02-scheme-iteration/code.rkt
racket
copy-pasta
#lang r5rs (define (succ x) (+ x 1)) (define (pred n) (- n 1)) zad 1 (define (add a b) (if (= b 0) a (add (succ a) (pred b)))) zad 2 (define (multiply-iter a b) (define (iter a b res) (if (= b 0) res (iter a (pred b) (add res a)))) (iter a b 0)) zad 3 (define (fac...
102d9b70e4ec1a2446c323d93fa1976313034a2021e47c07a156f2f6233b06c6
janestreet/hardcaml
instantiation.mli
* Instantiation of sub - modules . For use with generated RTL when we want to reference some non - hardcaml modules . For use with generated RTL when we want to reference some non-hardcaml modules. *) open Base val create : ?lib:string -> ?arch:string -> ?instance:string -> ?parameters:Parameter....
null
https://raw.githubusercontent.com/janestreet/hardcaml/d2ec2d76ea9562c8211923057118257720c4a0aa/src/instantiation.mli
ocaml
* Instantiation of sub - modules . For use with generated RTL when we want to reference some non - hardcaml modules . For use with generated RTL when we want to reference some non-hardcaml modules. *) open Base val create : ?lib:string -> ?arch:string -> ?instance:string -> ?parameters:Parameter....
fad6e8e223ba7de6fa1dee8d94cee1ab755ad89bc4924fa4e906890dcb047817
pfdietz/ansi-test
labels.lsp
;-*- Mode: Lisp -*- Author : Created : We d Oct 9 19:06:33 2002 ;;;; Contains: Tests of LABELS (deftest labels.1 (labels ((%f () 1)) (%f)) 1) (deftest labels.2 (labels ((%f (x) x)) (%f 2)) 2) (deftest labels.3 (labels ((%f (&rest args) args)) (%f 'a 'b 'c)) (a b c)) ;;; Th...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/data-and-control-flow/labels.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests of LABELS The optional arguments are not in the block defined by the local function declaration Keyword parameter initializers are not in the blocked defined by the local function declaration The aux parameters are not in the block defined by the local function declaration ...
Author : Created : We d Oct 9 19:06:33 2002 (deftest labels.1 (labels ((%f () 1)) (%f)) 1) (deftest labels.2 (labels ((%f (x) x)) (%f 2)) 2) (deftest labels.3 (labels ((%f (&rest args) args)) (%f 'a 'b 'c)) (a b c)) (deftest labels.4 (block %f (labels ((%f (&optional (x ...
c6423d87b687d453ea2b6c101cb34a7af4f43ef7f8398d99dd22d64fbee4c3db
alex-hhh/ActivityLog2
workout-editor.rkt
#lang racket/base ;; workout-editor.rkt -- workout editor panel ;; ;; This file is part of ActivityLog2, an fitness activity tracker Copyright ( C ) 2018 < > ;; ;; 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 ...
null
https://raw.githubusercontent.com/alex-hhh/ActivityLog2/36a4bb8af45db19cea02e982e22379acb18d0c49/rkt/workout-editor/workout-editor.rkt
racket
workout-editor.rkt -- workout editor panel This file is part of ActivityLog2, an fitness activity tracker This program is free software: you can redistribute it and/or modify it any later version. This program is distributed in the hope that it will be useful, but WITHOUT without even the implied warranty of M...
#lang racket/base Copyright ( C ) 2018 < > under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or ( at your option ) (require pict racket/class racket/gui/base "../widgets/main.rkt" "pict-util.rk...
ad813c079636147024842d5ed0aa4f6e3bc33f0a431970010fca457cb3a8217f
zack-bitcoin/amoveo
channel_slash_tx.erl
-module(channel_slash_tx). -export([go/4, make/5, make_dict/4, is_tx/1, from/1, id/1, to_prove/2, to_prove_helper/2]). %-record(cs, {from, nonce, fee = 0, scriptpubkey , scriptsig } ) . -include("../../records.hrl"). to_prove(X, Height) -> to_prove_helper(X#cs.scriptsig, Height). to_prove_helper(SS, Height)...
null
https://raw.githubusercontent.com/zack-bitcoin/amoveo/257f3e8cc07f1bae9df1a7252b8bc67a0dad3262/apps/amoveo_core/src/consensus/txs/channel_slash_tx.erl
erlang
-record(cs, {from, nonce, fee = 0,
-module(channel_slash_tx). -export([go/4, make/5, make_dict/4, is_tx/1, from/1, id/1, to_prove/2, to_prove_helper/2]). scriptpubkey , scriptsig } ) . -include("../../records.hrl"). to_prove(X, Height) -> to_prove_helper(X#cs.scriptsig, Height). to_prove_helper(SS, Height) -> F21 = forks:get(21), if ...
478397ba4f4a79ef6e4ced52460249e130465bb6528cedab81de92904f2be972
dialohq/inline-test-ppx
file_generation.mli
val make : config:Bs_config.config -> project_root:string -> string -> unit
null
https://raw.githubusercontent.com/dialohq/inline-test-ppx/6819315015ee0eaafe8408a9d98bfe5395a9ce9a/lib/file_generation.mli
ocaml
val make : config:Bs_config.config -> project_root:string -> string -> unit
d1022160d4ed860926d3886262895d4d6c27a2ff5d756c0e568961426fe51817
egison/egison
Types.hs
| Module : Language . . Primitives . Types Licence : MIT This module implements primitive functions that dynamically checks the types of objects . Module : Language.Egison.Primitives.Types Licence : MIT This module implements primitive functions that dynamically checks the types of ob...
null
https://raw.githubusercontent.com/egison/egison/df4e47f7c8adfe90d9bf408459772a6cb4e71b70/hs-src/Language/Egison/Primitives/Types.hs
haskell
Typing
| Module : Language . . Primitives . Types Licence : MIT This module implements primitive functions that dynamically checks the types of objects . Module : Language.Egison.Primitives.Types Licence : MIT This module implements primitive functions that dynamically checks the types of ob...
812f542990f1313437201392dec5c883d79d4f77fab419145d93bc934e20c9b6
hypernumbers/hypernumbers
hnfuns_html.erl
@author < > ( C ) 2010 - 2014 , Hypernumbers Ltd %%% @doc functions for building websites %%% %%% @end Created : 11 Dec 2010 by < > %%%------------------------------------------------------------------- %%% %%% LICENSE %%% %%% This program is free software: you can redistribute it and/or modify ...
null
https://raw.githubusercontent.com/hypernumbers/hypernumbers/281319f60c0ac60fb009ee6d1e4826f4f2d51c4e/lib/formula_engine-1.0/src/hnfuns_html.erl
erlang
@doc functions for building websites @end ------------------------------------------------------------------- LICENSE This program is free software: you can redistribute it and/or modify This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
@author < > ( C ) 2010 - 2014 , Hypernumbers Ltd Created : 11 Dec 2010 by < > it under the terms of the GNU Affero General Public License as published by the Free Software Foundation version 3 You should have received a copy of the GNU Affero General Public License -module(hnfuns_html). -includ...
1ff4952e9af65d328a44997f80a747b5b94ddb8e30df581beca09efeb6f35281
samrushing/irken-compiler
t_vec16.scm
(define (printn x) (%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x)) (let ((v (%make-vec16 25))) (printn v) (set! v[19] 34) (printn v) v[19] )
null
https://raw.githubusercontent.com/samrushing/irken-compiler/690da48852d55497f873738df54f14e8e135d006/tests/t_vec16.scm
scheme
(define (printn x) (%%cexp ('a -> undefined) "dump_object (%0, 0); fprintf (stdout, \"\\n\")" x)) (let ((v (%make-vec16 25))) (printn v) (set! v[19] 34) (printn v) v[19] )
ed0ffd92d60dba058aa3320beb20074d8b13d0fc0291c28cc01f232f00415a0c
Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library
SkuInventory.hs
{-# LANGUAGE MultiWayIf #-} CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . {-# LANGUAGE OverloadedStrings #-} | Contains the types generated from the schema module StripeAPI.Types.SkuInventory where import qualified Control.Monad.F...
null
https://raw.githubusercontent.com/Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library/ba4401f083ff054f8da68c741f762407919de42f/src/StripeAPI/Types/SkuInventory.hs
haskell
# LANGUAGE MultiWayIf # # LANGUAGE OverloadedStrings # | Defines the object schema located at @components.schemas.sku_inventory@ in the specification. | quantity: The count of inventory available. Will be present if and only if \`type\` is \`finite\`. | type: Inventory type. Possible values are \`finite\`, \`bucket\...
CHANGE WITH CAUTION : This is a generated code file generated by -OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator . | Contains the types generated from the schema module StripeAPI.Types.SkuInventory where import qualified Control.Monad.Fail import qualified Data.Aeson import qualified Data.Aeson as ...
99c9b285e52fa0beafa743c231416138611d5791b7382b127a3f69f23b7219ff
graninas/automatic-whitebox-testing-showcase
Interpreter.hs
{-# LANGUAGE DeriveAnyClass #-} # LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # {-# LANGUAGE GADTs #-} # LANGUAGE TypeApplications # {-# LANGUAGE TypeSynonymInstances ...
null
https://raw.githubusercontent.com/graninas/automatic-whitebox-testing-showcase/c465d0c22c0154525781442c8c8f0df481165aaa/lib/flow/Runtime/Interpreter.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE GADTs # # LANGUAGE TypeSynonymInstances # # LANGUAGE NamedFieldPuns # Entry point into the recording replaying mechanism ------------------------------------------------------------------------------ DB interpreter -----------------...
# LANGUAGE DeriveGeneric # # LANGUAGE ExistentialQuantification # # LANGUAGE FlexibleInstances # # LANGUAGE FunctionalDependencies # # LANGUAGE TypeApplications # # LANGUAGE RecordWildCards # # LANGUAGE DuplicateRecordFields # module Runtime.Interpreter where import...
722412f069b2517d24a7a4a76cb81858f7df4e4dd33f7de719033fa7f052f696
commercialhaskell/stack
Main.hs
import Control.Monad (unless) import Data.List (isInfixOf) import StackTest main :: IO () main = do stack ["build"] stack ["test"] FIXME : Make ' clean ' unnecessary ( see # 1411 ) stack ["clean"] stackCheckStderr ["test", "--coverage"] $ \out -> do unless ("The coverage report for multi-test...
null
https://raw.githubusercontent.com/commercialhaskell/stack/f25bd3d3a70ca703545be83a0d3648bbe72efccf/test/integration/tests/multi-test/Main.hs
haskell
Test then build works too.
import Control.Monad (unless) import Data.List (isInfixOf) import StackTest main :: IO () main = do stack ["build"] stack ["test"] FIXME : Make ' clean ' unnecessary ( see # 1411 ) stack ["clean"] stackCheckStderr ["test", "--coverage"] $ \out -> do unless ("The coverage report for multi-test...
079fd002ced254de2873f79fbd6bc44ba61e4bf91db7c24906195f214cdcde7f
janestreet/bonsai
main.ml
open! Core open! Bonsai_web open! Bonsai.Let_syntax let card ~theme ~name ~content = View.card' theme ~title_attr:(Vdom.Attr.style (Css_gen.flex_container ~justify_content:`Center ())) ~container_attr:(Vdom.Attr.style (Css_gen.create ~field:"width" ~value:"fit-content")) ~title:[ Vdom.Node.text name ...
null
https://raw.githubusercontent.com/janestreet/bonsai/782fecd000a1f97b143a3f24b76efec96e36a398/examples/kado_specific/main.ml
ocaml
open! Core open! Bonsai_web open! Bonsai.Let_syntax let card ~theme ~name ~content = View.card' theme ~title_attr:(Vdom.Attr.style (Css_gen.flex_container ~justify_content:`Center ())) ~container_attr:(Vdom.Attr.style (Css_gen.create ~field:"width" ~value:"fit-content")) ~title:[ Vdom.Node.text name ...
0df4683905f47f207f402caab60b74485ec26788e99c446f1d65c8876973a3da
bmeurer/ocamljit2
misc.ml
(***********************************************************************) (* *) (* Objective Caml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocamljit2/ef06db5c688c1160acc1de1f63c29473bcd0055c/utils/misc.ml
ocaml
********************************************************************* Objective Caml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et en Automatique . All rights reserved . This file is distributed under the terms of the Q Public License version 1.0 . $ Id$ exception Fatal_error let fa...
d76a0de62f6978f58ef0d7ad7fee3c31b413ddb1601cd1c113d251136feaaab5
esl/ejabberd_tests
special_chars_helper.erl
-module(special_chars_helper). -include_lib("exml/include/exml_stream.hrl"). %% API -export([check_attr_from_to/2, check_cdata_from_to/3]). check_attr_from_to(From, To) -> AttrWithSpecialChars = <<"font-family: 'Helvetica';font-size: 12px;">>, SpecialCharsInAttr = create_special_chars_attr_xmlel(Att...
null
https://raw.githubusercontent.com/esl/ejabberd_tests/913fb0a5a8c1ab753eb35c1e1b491e8572633b54/tests/special_chars_helper.erl
erlang
API
-module(special_chars_helper). -include_lib("exml/include/exml_stream.hrl"). -export([check_attr_from_to/2, check_cdata_from_to/3]). check_attr_from_to(From, To) -> AttrWithSpecialChars = <<"font-family: 'Helvetica';font-size: 12px;">>, SpecialCharsInAttr = create_special_chars_attr_xmlel(AttrWithSp...
bbe8d78c4d6d6672fd63ed2c842f2134c72be96420c621fffb3cee43fe7d2080
serokell/tzbot
ViewPayload.hs
SPDX - FileCopyrightText : 2022 > -- SPDX - License - Identifier : MPL-2.0 | This module contains some convenient machinery to easily extract - the state of the modal elements ( like input blocks or switches ) . - To use it , just wrap your datatype with ` ViewPayload ` newtype - and provide correct ...
null
https://raw.githubusercontent.com/serokell/tzbot/917ff3bde77fcaff3f299a075b819c81a63daed9/src/TzBot/Slack/Events/ViewPayload.hs
haskell
| Newtype for DerivingVia We ignore all the meta information | A single value of a single block/action pair of the view. FromJSON instance will try to lookup the .values.(blockId).(actionId).value path of the given JSON value. See -payloads/views
SPDX - FileCopyrightText : 2022 > SPDX - License - Identifier : MPL-2.0 | This module contains some convenient machinery to easily extract - the state of the modal elements ( like input blocks or switches ) . - To use it , just wrap your datatype with ` ViewPayload ` newtype - and provide correct ` b...
88e352ad73b46a79118739aa697c8508136e303fed53fec088dd67c2498cf073
jobjo/popper
output.ml
type 'a t = { value : 'a ; consumed : Consumed.t ; remaining : Input.t ; log : Log.t } let make ~value ~consumed ~remaining ~log = { value; consumed; remaining; log } let value { value; _ } = value let consumed { consumed; _ } = consumed let set_consumed consumed output = { output with consumed } let set_val...
null
https://raw.githubusercontent.com/jobjo/popper/72bd51bd66c5ac6e4f1bc1cfccff60222092fa8c/src/lib/output.ml
ocaml
type 'a t = { value : 'a ; consumed : Consumed.t ; remaining : Input.t ; log : Log.t } let make ~value ~consumed ~remaining ~log = { value; consumed; remaining; log } let value { value; _ } = value let consumed { consumed; _ } = consumed let set_consumed consumed output = { output with consumed } let set_val...
0b27d4825fca36c42ec23549fe3a4d4a4905499d6baf8fab2faf3e82cb92b88f
anishathalye/knox
read.rkt
#lang racket/base (require racket/pretty (for-syntax racket/base syntax/parse)) (provide (except-out (all-from-out racket/base) #%module-begin) (rename-out [yosys-debug-read-module-begin #%module-begin])) (define-syntax (yosys-debug-read-module-begin stx) (syntax-parse stx [(_ form ...) ...
null
https://raw.githubusercontent.com/anishathalye/knox/161cda3e5274cc69012830f477749954ddcf736d/yosys/debug/read.rkt
racket
#lang racket/base (require racket/pretty (for-syntax racket/base syntax/parse)) (provide (except-out (all-from-out racket/base) #%module-begin) (rename-out [yosys-debug-read-module-begin #%module-begin])) (define-syntax (yosys-debug-read-module-begin stx) (syntax-parse stx [(_ form ...) ...
ccafd3a2efa9fcc4c5d51995523aba99520efe2444ddd812e8cea2ed677f3e47
ocaml-community/yojson
test_read.mli
val single_json : unit Alcotest.test_case list
null
https://raw.githubusercontent.com/ocaml-community/yojson/b743857a28f02af68bcfadb515df0b21a9c6eb06/test/test_read.mli
ocaml
val single_json : unit Alcotest.test_case list
365dec2390223b39f0d8c11512400e2f9a2de4e0e8f078a3f841bd4d7edc5b7a
nuprl/gradual-typing-performance
num-threads.rkt
#lang racket/base (provide NUM-THREADS) (define NUM-THREADS 60000)
null
https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/experimental/threads/spawn/base/num-threads.rkt
racket
#lang racket/base (provide NUM-THREADS) (define NUM-THREADS 60000)
ff1379d83c3b7c1d8f1d17b6b883e3086eeacf3c2612f44acd7d9bd1e55aaac3
lehins/Color
CIE1931.hs
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE NegativeLiterals # # LANGUAGE DataKinds # -- | Module : Graphics . Color . . Copyright : ( c ) 2019 - 2020 -- License : BSD3 Maintainer : < > -- Stability : experimental -- Portability : non-portable -- module Graphics.Color.Illum...
null
https://raw.githubusercontent.com/lehins/Color/8f17d4d17dc9b899af702f54b69d49f3a5752e7b/Color/src/Graphics/Color/Illuminant/CIE1931.hs
haskell
| License : BSD3 Stability : experimental Portability : non-portable , xyzColorMatchingFunctions1nm ^ Original temperature ^ Original radiation constant c2 Planckian radiation constant from 2018 | @[x=0.34842, y=0.35161]@ - CIE 1931 2° Observer - /-science.org/ | @[x=0.31006, y=0.31616]@ - CIE 1931 2...
# LANGUAGE PolyKinds # # LANGUAGE TypeFamilies # # LANGUAGE NegativeLiterals # # LANGUAGE DataKinds # Module : Graphics . Color . . Copyright : ( c ) 2019 - 2020 Maintainer : < > module Graphics.Color.Illuminant.CIE1931 ( CIE1931(..) , spectralPowerDistributions , xyzColorMatchingFunctions...
d9c6fea82905be207cd1ee09e1e5b3804dafa91fc2875365e7ecb996d2f12f4c
AccelerateHS/accelerate-examples
Page.hs
# LANGUAGE PatternGuards # # LANGUAGE RecordWildCards # {-# LANGUAGE TypeFamilies #-} module Page ( PageId, Rank, Link, MLinks(..), parsePage, parsePageId ) where import Prelude as P import qualified Data.ByteString.Lazy.Char8 as BL import qualified Data.Vector.Stora...
null
https://raw.githubusercontent.com/AccelerateHS/accelerate-examples/a973ee423b5eadda6ef2e2504d2383f625e49821/examples/pagerank/Page.hs
haskell
# LANGUAGE TypeFamilies # | Unique identifier for a page. | Represents a link in the page raph. | A single PageRank value. | A mutable set of links | Parse a whole line of the links file. | Parse a single character.
# LANGUAGE PatternGuards # # LANGUAGE RecordWildCards # module Page ( PageId, Rank, Link, MLinks(..), parsePage, parsePageId ) where import Prelude as P import qualified Data.ByteString.Lazy.Char8 as BL import qualified Data.Vector.Storable.Mutable as UM import Data....
a270b3f86852482ec35e397003c345a6c52ba444513298dc3d4f72414976f270
Decentralized-Pictures/T4L3NT
alpha_services.ml
(*****************************************************************************) (* *) (* Open Source License *) Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c...
null
https://raw.githubusercontent.com/Decentralized-Pictures/T4L3NT/6d4d3edb2d73575384282ad5a633518cba3d29e3/src/proto_alpha/lib_protocol/alpha_services.ml
ocaml
*************************************************************************** Open Source License Permission is h...
Copyright ( c ) 2018 Dynamic Ledger Solutions , Inc. < > Copyright ( c ) 2019 - 2020 Nomadic Labs < > to deal in the Software without restriction , including without limitation and/or sell copies of the Software , and to permit persons to whom the THE SOFTWARE IS PROVIDED " AS IS " , WI...
2059b73bb232450644d20efa5dc407ef63ae1a5b8de40cbd93d6c8594acba241
bscarlet/llvm-general
CodeModel.hs
| Relocations , used in specifying TargetMachine module LLVM.General.CodeModel where import LLVM.General.Prelude -- | <> data Model = Default | JITDefault | Small | Kernel | Medium | Large deriving (Eq, Read, Show, Typeable, Data)
null
https://raw.githubusercontent.com/bscarlet/llvm-general/61fd03639063283e7dc617698265cc883baf0eec/llvm-general/src/LLVM/General/CodeModel.hs
haskell
| <>
| Relocations , used in specifying TargetMachine module LLVM.General.CodeModel where import LLVM.General.Prelude data Model = Default | JITDefault | Small | Kernel | Medium | Large deriving (Eq, Read, Show, Typeable, Data)
752385472ea3382feb9328fe924e9da03f93fb7329b0d013581ae7a837e65967
ocaml-flambda/flambda-backend
exn.ml
exception Saucisse let id = Sys.opaque_identity let g () = () [@@inline never] let f x = let r = ref x in let v = try while id false do let _ = id !r in if i d false then raise Saucisse ; g (); () done; !r with Saucisse -> !r + 1 in v * !r
null
https://raw.githubusercontent.com/ocaml-flambda/flambda-backend/92dbdba868235321a48916b8f1bb3f04ee884d3f/middle_end/flambda2/tests/ref_to_var/exn.ml
ocaml
exception Saucisse let id = Sys.opaque_identity let g () = () [@@inline never] let f x = let r = ref x in let v = try while id false do let _ = id !r in if i d false then raise Saucisse ; g (); () done; !r with Saucisse -> !r + 1 in v * !r
6dbf84c9f73c6a385b53ebefd63a81c4916e9168301ea2e68bc995ae978669a7
ryanpbrewster/haskell
P085.hs
module Problems.P085 ( solve ) where - By counting carefully it can be seen that a rectangular grid measuring 2 by - 3 contains eighteen rectangles : - - 6 4 2 - + --+--+--+ + --+--+--+ + --+--+--+ - |XX| | | |XXXXX| | |XXXXXXXX| - + --|--+--+ + --|--...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Problems/P085.hs
haskell
+--+--+ + --+--+--+ + --+--+--+ |--+--+ + --|--+--+ + --|--+--+ +--+--+ + --+--+--+ + --+--+--+ +--+--+ + --+--+--+ + --+--+--+ +--+ |XXXXX|--+ |XXXXXXXX| +--+--+ + --+--+--+ + --+--+--+ +--+--+ +--+--+--+ +--+--+--+ |--+--+ +--|--+--+ +--|--+--+ +--+--+ +--+--+--+ +--+--+--+ +--+--+...
module Problems.P085 ( solve ) where - By counting carefully it can be seen that a rectangular grid measuring 2 by - 3 contains eighteen rectangles : - - 6 4 2 - |XX| | | |XXXXX| | |XXXXXXXX| - | | | | | | | | | | | | - - 3 ...
04d078fbef9f54b732bc55eee3bc90ec39dabc1cf2bc44a40f2bb74c82a877d6
penpot/penpot
exports.cljs
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) KALEIDOS INC (ns app.main.ui.workspace.sidebar.options.menus.exports (:require [app.common.data :as d] [app.main.da...
null
https://raw.githubusercontent.com/penpot/penpot/a25f069f8e58942aa926a85e093347c00c93538b/frontend/src/app/main/ui/workspace/sidebar/options/menus/exports.cljs
clojure
Copyright (c) KALEIDOS INC In other all cases we only allowed to have a single shape-id because multiple shape-ids are handled separately by the export-modal. TODO: maybe move to specific events for avoid to have this logic here?
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 /. (ns app.main.ui.workspace.sidebar.options.menus.exports (:require [app.common.data :as d] [app.main.data.exports :as de] [app.main.d...
f4c191c02dc155f573a33761c3b1ef7f5546ad42d4e5c71cec14094e9144386c
SonyCSLParis/fcg-server
load-balancer.lisp
Licensed under the Apache License , Version 2.0 ( the " License " ) ; ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; -2.0 ;; Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an...
null
https://raw.githubusercontent.com/SonyCSLParis/fcg-server/99962c6f10e9e415a729f256f43767373a8dc9fe/Archive/v1.0/load-balancer/load-balancer.lisp
lisp
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 permis...
distributed under the License is distributed on an " AS IS " BASIS , (in-package :server-interface) (defparameter *load-balancer-port* (if (boundp 'cl-user::*load-balancer-port*) (eval 'cl-user::*load-balancer-port*) 8920)) (defun balance-load (stream...
f22e1a603170dc17b84e1639a493b3c7554937dd25347787937e2dfd288d96a8
Ptival/chick
Script.hs
# OPTIONS_GHC -fno - warn - name - shadowing # module Repair.Script ( repair, runRepair', ) where import Control.Arrow ((>>>)) import qualified Definition as D import qualified DefinitionObjectKind as DOK import qualified Diff.Atom as ΔA import qualified Diff.Constructor as ΔC import Diff.Eliminator (δelimi...
null
https://raw.githubusercontent.com/Ptival/chick/a5ce39a842ff72348f1c9cea303997d5300163e2/backend/lib/Repair/Script.hs
haskell
import qualified Term.Universe as U FIXME: this was definitely wrong, do I rely on it? ΔV.ModifyInductive (ΔI.Modify δn _δps _δis _δu _δcs) -> let δτ = ΔT.Same in traceState >> `withStateFromVernacular v δv` takes a vernacular command `v` and its (assumed repaired) diff `δv` and modifies the global environment ...
# OPTIONS_GHC -fno - warn - name - shadowing # module Repair.Script ( repair, runRepair', ) where import Control.Arrow ((>>>)) import qualified Definition as D import qualified DefinitionObjectKind as DOK import qualified Diff.Atom as ΔA import qualified Diff.Constructor as ΔC import Diff.Eliminator (δelimi...
23fd7bb664f953d149a5f64cffa621dc6a566c8263c7439ed38a37e45db011f9
emqx/emqx-auth-pgsql
emqx_auth_pgsql_app.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . %% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %% you may not use this file except in compliance with the License. %% You may obtain a copy of the L...
null
https://raw.githubusercontent.com/emqx/emqx-auth-pgsql/ac5c19c732eb1dc3f8404a23baaed4bc6c841a73/src/emqx_auth_pgsql_app.erl
erlang
-------------------------------------------------------------------- you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ...
Copyright ( c ) 2020 EMQ Technologies Co. , Ltd. All Rights Reserved . Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , -module(emqx_auth_pgsql_app). -behaviour(application). -emqx_plugin(auth). -include("emqx_auth_pgsql...
c8168fae28caf89ae5f2c9ff4a4c81a1049d05973694497201ac4200cb872ece
ocaml-sf/learn-ocaml-corpus
master.ml
(* BEGIN INCLUDE *) (* Accessors. *) (* TO DO: Define [length]. *) (* TO DO: Define [get]. *) (* TO DO: Define [foreach]. *) (* Constructors. *) (* TO DO: Define [empty]. *) (* TO DO: Define [singleton]. *) (* TO DO: Define [sum]. *) (* TO DO: Define [product]. *) (* TO DO: Define [map]. *) (* END INCLUDE *...
null
https://raw.githubusercontent.com/ocaml-sf/learn-ocaml-corpus/7dcf4d72b49863a3e37e41b3c3097aa4c6101a69/exercises/fpottier/symbolic_sequences_objects/master.ml
ocaml
BEGIN INCLUDE Accessors. TO DO: Define [length]. TO DO: Define [get]. TO DO: Define [foreach]. Constructors. TO DO: Define [empty]. TO DO: Define [singleton]. TO DO: Define [sum]. TO DO: Define [product]. TO DO: Define [map]. END INCLUDE Guard against division by zero in the above code. Suc...
BEGIN EXCLUDE let is_empty s = s.length = 0 let empty = let length = 0 and get _ = raise and foreach _ k = ( ) in { length ; get ; foreach } let singleton x = let length = 1 and get i = if i = 0 then x else raise and foreach k = k x in { length ; get ; foreach } le...
1a72a49ec8e0c142fdbf475c711c644a528fe2f8d08a637305eb67c59fb36094
stathissideris/dali
batik.clj
(ns dali.batik (:require [clojure.java.io :as io] [clojure.string :as string] [dali [dom :as dom] [syntax :as s]] [dali.utils :as utils] [dali.svg-context]) (:import [java.awt RenderingHints Rectangle] [java.awt.geom AffineTransfor...
null
https://raw.githubusercontent.com/stathissideris/dali/97ebf43527fe76e838d7b6bb98a953db2747824d/src/dali/batik.clj
clojure
-calculating-bounds-of-cubic-spline?rq=1 -values-of-bounding-box-for-text-element-using-batik TODO correct? hints (.getRenderingHints renderer) use this on the :gvt part of the record
(ns dali.batik (:require [clojure.java.io :as io] [clojure.string :as string] [dali [dom :as dom] [syntax :as s]] [dali.utils :as utils] [dali.svg-context]) (:import [java.awt RenderingHints Rectangle] [java.awt.geom AffineTransfor...
307fd59accbe021c99b1e8c7f453a0afffef02e48c6b33e9c730f6f3229ba8e3
piranha/showkr
root.cljs
(ns showkr.root (:require [quiescent :as q :include-macros true] [quiescent.dom :as d] [datascript :as db] [showkr.data :as data] [showkr.form :refer [Form]] [showkr.viewing :refer [Set]] [showkr.browsing :refer [User]])) (defn simple-dict [db]...
null
https://raw.githubusercontent.com/piranha/showkr/f40786ca145390c103e452cdef0ee57e2de95b79/src/showkr/root.cljs
clojure
(ns showkr.root (:require [quiescent :as q :include-macros true] [quiescent.dom :as d] [datascript :as db] [showkr.data :as data] [showkr.form :refer [Form]] [showkr.viewing :refer [Set]] [showkr.browsing :refer [User]])) (defn simple-dict [db]...
78a0a7925cbfc02b2bde287bfedfcd9a9c0b0c87da251f709bf9244670f234a3
takikawa/racket-ppa
rep.rkt
#lang racket/base (require (for-template racket/base syntax/parse/private/keywords syntax/parse/private/residual ;; keep abs. path syntax/parse/private/runtime) racket/list racket/contract/base "make.rkt" "minimatch...
null
https://raw.githubusercontent.com/takikawa/racket-ppa/d336bb10e3e0ec3a20020e9ade9e77d2f6f80b6d/collects/syntax/parse/private/rep.rkt
racket
keep abs. path keep abs. path Error reporting All entry points should have explicit, mandatory #:context arg (mandatory from outside, at least) ---- cut-allowed? : (paramter/c boolean?) Used to detect ~cut within ~not pattern. 'no means don't lookup, always use dummy (no nested attrs) 'yes means lookup, rai...
#lang racket/base (require (for-template racket/base syntax/parse/private/keywords syntax/parse/private/runtime) racket/list racket/contract/base "make.rkt" "minimatch.rkt" syntax/private/id-table syntax/stx syn...
ecfd7cbd8b8d1b0482773969f81ea42966cd61a0c3c7a66a5e585e9b46fd920c
kmi/irs
mnm-server.lisp
(in-package ocml) (defvar *aktive-portal-kb* 'ocml::akt-planet-stories-kb) (defmethod http::http-reply ((method (eql :mnm)) request) (with-ocml-thread-safety () (handler-case (let ((upcase-request (string-upcase request)) (*package* (find-package "OCML")) action) (w...
null
https://raw.githubusercontent.com/kmi/irs/e1b8d696f61c6b6878c0e92d993ed549fee6e7dd/src/web/mnm-server.lisp
lisp
(in-package ocml) (defvar *aktive-portal-kb* 'ocml::akt-planet-stories-kb) (defmethod http::http-reply ((method (eql :mnm)) request) (with-ocml-thread-safety () (handler-case (let ((upcase-request (string-upcase request)) (*package* (find-package "OCML")) action) (w...
7d6e493da8b3b5faa6ba238e8f16b98650801d23e010fcec251e1ad2e33d75d1
hugoduncan/makejack
api.clj
(ns makejack.target-doc.api "Provide documentation on namespace public functions" (:require [clojure.string :as str])) (defn- meta-less "Order alphabetically with values with the same :doc-order." [a b] (let [a-order (:doc-order a) b-order (:doc-order b)] (or (and a-order (nil? b-order)) ...
null
https://raw.githubusercontent.com/hugoduncan/makejack/6968c6c8f2433d5a618acf8820eaa27f41464b95/components/target-doc/src/makejack/target_doc/api.clj
clojure
destructured keys provide a default TODO: make this a function in target-doc
(ns makejack.target-doc.api "Provide documentation on namespace public functions" (:require [clojure.string :as str])) (defn- meta-less "Order alphabetically with values with the same :doc-order." [a b] (let [a-order (:doc-order a) b-order (:doc-order b)] (or (and a-order (nil? b-order)) ...
65e54f6514e656e9366a263278fb2b1c4c0a6a6c21cf70f717b32b98604cc585
GlideAngle/flare-timing
UnitsOfMeasure.hs
# LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE PatternSynonyms # # LANGUAGE PartialTypeSignatures # {-# LANGUAGE Typ...
null
https://raw.githubusercontent.com/GlideAngle/flare-timing/27bd34c1943496987382091441a1c2516c169263/lang-haskell/detour-via-uom/library/Data/Via/UnitsOfMeasure.hs
haskell
# LANGUAGE TypeSynonymInstances # # LANGUAGE GADTs # * Usage $use * Decimal Places and Units Suggestion: Reduce duplication Found: MkQuantity a = toRational' . unpack $ x y :: Quantity Scientific u The original type, a newtype 'Quantity', goes to and fro __via__ this __q__uantity so that the rational value ...
# LANGUAGE ScopedTypeVariables # # LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeOperators # # LANGUAGE TypeFamilies # # LANGUAGE UndecidableInstances # # LANGUAGE PatternSynonyms # # LANGUAGE PartialTypeSignatures # # LANGUAGE Dupli...
6b7ad8a5a09b7f343576d1d49207911f33efa9f31ee2224dbe151956e91c43f3
josefs/Gradualizer
rebar3_example.erl
-module(rebar3_example). -compile([export_all]). -spec c(boolean()) -> boolean(). c(X) -> X.
null
https://raw.githubusercontent.com/josefs/Gradualizer/208f5816b0157f282212fc036ba7560f0822f9fc/examples/rebar3/src/rebar3_example.erl
erlang
-module(rebar3_example). -compile([export_all]). -spec c(boolean()) -> boolean(). c(X) -> X.
b18ca50ad4ac183cf42fdbb80e78ceb6f8a83564d4e4c4e0b7f95b1b548370db
facebook/infer
costUtils.ml
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
null
https://raw.githubusercontent.com/facebook/infer/6693381318c30c5dccb543ffd12d5309759c5793/infer/src/cost/costUtils.ml
ocaml
Each _objc_autoreleasePoolPush has a corresponding _objc_autoreleasePoolPop, so we should always have a corresponding exit node of the autoreleasepool block.
* Copyright ( c ) Facebook , Inc. and its affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the ...
5646b449430ce90c131c0baf62cc42b7f4d4ff7afa3501229401656c9eb15b98
BoeingX/haskell-programming-from-first-principles
WriteMonadInstances.hs
module Monad.ChapterExercises.WriteMonadInstances where import Test.QuickCheck import Test.QuickCheck.Checkers Question 1 data Nope a = NopeDotJpg deriving (Eq, Show) instance Functor Nope where fmap _ NopeDotJpg = NopeDotJpg instance Applicative Nope where pure _ = NopeDotJpg NopeDotJpg <*> N...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/src/Monad/ChapterExercises/WriteMonadInstances.hs
haskell
See the Applicative Chapter
module Monad.ChapterExercises.WriteMonadInstances where import Test.QuickCheck import Test.QuickCheck.Checkers Question 1 data Nope a = NopeDotJpg deriving (Eq, Show) instance Functor Nope where fmap _ NopeDotJpg = NopeDotJpg instance Applicative Nope where pure _ = NopeDotJpg NopeDotJpg <*> N...
f45d7613fc88b1a53daf34b24663015ab283f7402fd20d5edaf26c7d3da81b81
facebook/duckling
Rules.hs
Copyright ( c ) 2016 - present , Facebook , Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE GADTs #-} # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} module Duckling.Duration....
null
https://raw.githubusercontent.com/facebook/duckling/c6a48a1d0678a389f86d17db2676e1a289e355ce/Duckling/Duration/DE/Rules.hs
haskell
All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. # LANGUAGE GADTs # # LANGUAGE OverloadedStrings #
Copyright ( c ) 2016 - present , Facebook , Inc. # LANGUAGE LambdaCase # module Duckling.Duration.DE.Rules ( rules ) where import Duckling.Dimensions.Types import Duckling.Duration.Helpers import Duckling.Regex.Types import Control.Monad (join) import qualified Data.Text as Text import Prelude import Duckling....