_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
9cca335776288a84421f668620ab90f4f4f13c339c67ab61aceee80904e75848
day8/re-com
core.cljs
(ns re-com.core (:require-macros [re-com.core]) (:require [re-com.alert :as alert] [re-com.box :as box] [re-com.buttons :as buttons] [re-com.checkbox :as checkbox] [re-com.close-button :as close-button] [re-com.datepicker :as datepicker] [re-com...
null
https://raw.githubusercontent.com/day8/re-com/f829010bb50ad09282db2dcdbc5a6192be8d1daa/src/re_com/core.cljs
clojure
----------------------------------------------------------------------------- re-com public API (see also re-com.util) -----------------------------------------------------------------------------
(ns re-com.core (:require-macros [re-com.core]) (:require [re-com.alert :as alert] [re-com.box :as box] [re-com.buttons :as buttons] [re-com.checkbox :as checkbox] [re-com.close-button :as close-button] [re-com.datepicker :as datepicker] [re-com...
7b4f13fea96158e47fb88d2a3dff95a40c888255dc1a24a77c6acd8957a09d8d
emqx/emqttb
emqttb_behavior_sub.erl
%%-------------------------------------------------------------------- Copyright ( c ) 2022 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/emqttb/b7ecf819d9349987d7c8ce71b3072563219dd5c3/src/behaviors/emqttb_behavior_sub.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 ) 2022 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(emqttb_behavior_sub). -behavior(emqttb_worker). -export([init_per_group/2, init/1, handle_mess...
eea5e4bbaf8d4bc9d6eda16bb644c04eaa7269ee5f256c132423f9adc1fa6ad8
zenhack/haskell-capnp
Breaker.hs
-- | Module: Internal.Rpc.Breaker -- -- This module serves to break a dependency cycle between the rpc -- system and the serialization code; see Note [Breaker] in " Capnp . Rpc . Untyped " for details . module Internal.Rpc.Breaker ( Client (..), Pipeline (..), nullClient, -- | ** Internals Opaque, ...
null
https://raw.githubusercontent.com/zenhack/haskell-capnp/6cf9fae35189a3668f2740d64c634675ec5fbdec/lib/Internal/Rpc/Breaker.hs
haskell
| Module: Internal.Rpc.Breaker This module serves to break a dependency cycle between the rpc system and the serialization code; see Note [Breaker] in | ** Internals | A reference to a capability, which may be live either in the current vat or elsewhere. Holding a client affords making method calls on a capabili...
" Capnp . Rpc . Untyped " for details . module Internal.Rpc.Breaker ( Client (..), Pipeline (..), nullClient, Opaque, makeOpaque, reflectOpaque, ) where import Data.Dynamic (Dynamic, Typeable, fromDynamic, toDyn) newtype Client = Client Opaque deriving (Eq) instance Show Client where sh...
0cf2f9875ae3d96ad9e86c1e3393c899cc5421306ab311d9e8a2dacbc1dba02d
nasa/Common-Metadata-Repository
concepts.clj
(ns cmr.common.concepts "This contains utility functions and vars related to concepts in the CMR" (:require [clojure.set :as cset] [clojure.string :as str] [cmr.common.util :as util] [cmr.common.generics :as common-generic] [cmr.common.services.errors :as errors] ...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/cf5c442ade66a15d2010c503193b3e9f0d899287/common-lib/src/cmr/common/concepts.clj
clojure
validates concept-id use :collection-concept-id in place of param when validating collection-concept-id
(ns cmr.common.concepts "This contains utility functions and vars related to concepts in the CMR" (:require [clojure.set :as cset] [clojure.string :as str] [cmr.common.util :as util] [cmr.common.generics :as common-generic] [cmr.common.services.errors :as errors] ...
a62f44049207001586ef267540d27a48b30dda047d70964f29e070669c20361c
egraphdb/egraphdb
egraph_config_util.erl
%%%------------------------------------------------------------------- @author neerajsharma ( C ) 2018 , %%% @doc %%% %%% @end %%% %%% %CopyrightBegin% %%% Copyright < > 2017 . All Rights Reserved . %%% Licensed under the Apache License , Version 2.0 ( the " License " ) ; %%% you may not use this file ...
null
https://raw.githubusercontent.com/egraphdb/egraphdb/41a0131be227f7f0a35ba0e2c1cb23d70cd86b03/src/egraph_config_util.erl
erlang
------------------------------------------------------------------- @doc @end %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 CONDIT...
@author neerajsharma ( C ) 2018 , Copyright < > 2017 . 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(egraph_config_util). -author("neerajsharma"). -include("egraph_constants.hrl"...
e17b3123f3dc8f4c474e627a86edf4328288913f91b4414e338a4f50a9563caf
lexi-lambda/racket-alexis-collections
info.rkt
#lang info (define scribblings '(["scribblings/alexis-collections.scrbl"])) (define cover-omit-paths '("scribblings"))
null
https://raw.githubusercontent.com/lexi-lambda/racket-alexis-collections/997c8642d9b2adb28728d609202618bc8ffbd750/alexis/info.rkt
racket
#lang info (define scribblings '(["scribblings/alexis-collections.scrbl"])) (define cover-omit-paths '("scribblings"))
d6e0f160f335939209e80aec5cf74f6634a9cb8c85cda0d5ee5c31776a555cf4
AkronCodeClub/edX-FP101x-Oct-2014
hello.hs
main = putStrLn "Hello, World!"
null
https://raw.githubusercontent.com/AkronCodeClub/edX-FP101x-Oct-2014/7db691d795126ad912256fec29b5aa1817beb8c0/brandon_w/helloworld/hello.hs
haskell
main = putStrLn "Hello, World!"
b4df19af39defb3209505751f2740bc201535354fda31dfa05025953dbd73731
spawnfest/eep49ers
callback1.erl
-module(callback1). -callback b1(I :: integer()) -> atom(). -callback b2(A :: atom()) -> integer(). -optional_callbacks([{b2,1}]).
null
https://raw.githubusercontent.com/spawnfest/eep49ers/d1020fd625a0bbda8ab01caf0e1738eb1cf74886/lib/stdlib/test/erl_lint_SUITE_data/callback1.erl
erlang
-module(callback1). -callback b1(I :: integer()) -> atom(). -callback b2(A :: atom()) -> integer(). -optional_callbacks([{b2,1}]).
05361b468e6d5c24ff41dabf864a5e2021ef792fad02eaaa6a599ec2fed8b050
racket/eopl
tests.rkt
#lang eopl (require eopl/tests/private/utils) (require "data-structures.rkt") ; for expval constructors (require "lang.rkt") ; for scan&parse (require "interp.rkt") ; for value-of-program (require (prefix-in reg: ; for value-of-program "interp-registers.rkt")) run...
null
https://raw.githubusercontent.com/racket/eopl/43575d6e95dc34ca6e49b305180f696565e16e0f/tests/chapter5/letrec-lang/tests.rkt
racket
for expval constructors for scan&parse for value-of-program for value-of-program tests ;;;;;;;;;;;;;;;; simple arithmetic nested arithmetic simple variables simple unbound variables simple conditionals test dynamic typechecking make sure that the test and both arms get evaluated properly. and make sure t...
#lang eopl (require eopl/tests/private/utils) "interp-registers.rkt")) run : String - > ExpVal (define run (lambda (string) (value-of-program (scan&parse string)))) reg : String - > ExpVal (define reg (lambda (string) (reg:value-of-program (scan&parse string)))) (define equal-an...
caa36274730c6891b465e14e981b8b5affe71fbc6dfb77dfa41118a48a92ee5f
NelosG/fp-tests
T6Spec.hs
module T6Spec where import Test.Parser (propParser) import Test.Tasty (TestTree, testGroup) tests :: IO TestTree tests = do parser <- propParser return $ testGroup "HW2.T6" [ parser ]
null
https://raw.githubusercontent.com/NelosG/fp-tests/4c938886a60938222e51bf1cce608071221da2b8/hw2/test/T6/T6Spec.hs
haskell
module T6Spec where import Test.Parser (propParser) import Test.Tasty (TestTree, testGroup) tests :: IO TestTree tests = do parser <- propParser return $ testGroup "HW2.T6" [ parser ]
3b1a9eb71139b7bad4776e44fcae92dddf1d65bed019fae256c510dd19c88d5d
johnwhitington/ocamli
pervasives.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/johnwhitington/ocamli/28da5d87478a51583a6cb792bf3a8ee44b990e9f/stdlib/pervasives.mli
ocaml
************************************************************************ OCaml ...
, projet Cristal , INRIA Rocquencourt Copyright 1996 Institut National de Recherche en Informatique et the GNU Lesser General Public License version 2.1 , with the * { 6 Exceptions } external raise : exn -> 'a = "%raise" external raise_notrace : exn -> 'a = "%raise...
9166f17e106c6db02b16b839c5e9e7091e46da07a4d7874a7665454d2b8cc38b
kappelmann/engaging-large-scale-functional-programming
Exercise03.hs
module Exercise03 where import Data.List primeMayor :: Integer -> Integer primeMayor wage = if even wage then 2 else primeMayor' wage 0 where primeMayor' :: Integer -> Integer -> Integer primeMayor' 0 n = n primeMayor' 1 n = n+1 primeMayor' wage n = primeMayor' (wage - last (take...
null
https://raw.githubusercontent.com/kappelmann/engaging-large-scale-functional-programming/8ed2c056fbd611f1531230648497cb5436d489e4/resources/contest/example_data/03/uploads/formfollowsfunction/Exercise03.hs
haskell
module Exercise03 where import Data.List primeMayor :: Integer -> Integer primeMayor wage = if even wage then 2 else primeMayor' wage 0 where primeMayor' :: Integer -> Integer -> Integer primeMayor' 0 n = n primeMayor' 1 n = n+1 primeMayor' wage n = primeMayor' (wage - last (take...
c311008221478fc3aebb55287308cfabee4285a41f4f3c5dd83cccc7a3d9a78c
exoscale/clojure-kubernetes-client
networking_v1beta1_ingress_tls.clj
(ns clojure-kubernetes-client.specs.networking-v1beta1-ingress-tls (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare networking-v1beta1-ingress-tls-data networking-v1beta1-ingress-tls) (def networking-v1beta1-ingress-tls-data { (ds...
null
https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/networking_v1beta1_ingress_tls.clj
clojure
(ns clojure-kubernetes-client.specs.networking-v1beta1-ingress-tls (:require [clojure.spec.alpha :as s] [spec-tools.data-spec :as ds] ) (:import (java.io File))) (declare networking-v1beta1-ingress-tls-data networking-v1beta1-ingress-tls) (def networking-v1beta1-ingress-tls-data { (ds...
e8c4e814ea602f860835001c0a2cb50a01289d437454ef3438aab6732f7fcd99
racket/typed-racket
random-real.rkt
#lang racket (require math/flonum) (provide random-exponential random-laplace random-flonum random-single-flonum random-integer->random-exact-rational random-integer->random-flonum random-integer->random-single-flonum random-integer->random-real) ;; Returns a rational flo...
null
https://raw.githubusercontent.com/racket/typed-racket/1c2da7b7fc3e4b8779cdc3bd670f2e08e460ed1b/typed-racket-test/external/random-real.rkt
racket
Returns a rational flonum from an exponential distribution Randomly signs a flonum from random-exponential Returns a rational flonum with bits uniformly distributed Returns a single flonum with bits uniformly distributed; sometimes -inf.f or +inf.f sign bit exponent fractional part Returns a rational single flo...
#lang racket (require math/flonum) (provide random-exponential random-laplace random-flonum random-single-flonum random-integer->random-exact-rational random-integer->random-flonum random-integer->random-single-flonum random-integer->random-real) About half the numbers ...
32aaf20b11afbe010ea57e136bf36e16eed1a858b21dff220ae46dbe701e828a
biocaml/phylogenetics
fitch.mli
val forward : ?cost:(int -> int -> float) -> n:int -> category:('l -> int option) -> ('n, 'l, 'b) Tree.t -> float array * ('n * int List1.t array, 'l, 'b) Tree.t val backward : float array -> ('n * int List1.t array, 'l, 'b) Tree.t -> ('n * int, 'l * int, 'b) Tree.t val fitch : ?cost:(int -> int -> ...
null
https://raw.githubusercontent.com/biocaml/phylogenetics/b58dee1fb3419666cee3e368b37b3b375976a9b7/lib/fitch.mli
ocaml
val forward : ?cost:(int -> int -> float) -> n:int -> category:('l -> int option) -> ('n, 'l, 'b) Tree.t -> float array * ('n * int List1.t array, 'l, 'b) Tree.t val backward : float array -> ('n * int List1.t array, 'l, 'b) Tree.t -> ('n * int, 'l * int, 'b) Tree.t val fitch : ?cost:(int -> int -> ...
a6b21aa6996bc29d056d016af9c0a1ae7ec2e9a93158b2e31948bc038907d299
adetokunbo/tmp-proc
Routes.hs
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # {-# LANGUAGE OverloadedStrings #-} | Copyright : ( c ) 2020 - 2021 SPDX - License - Identifier : : < > Specifies the API provided by the demo service . Copyright : (c) 2020-2021 Tim Emiola SPDX-License-Identifier: BSD3 Maintainer : Tim Emiola <...
null
https://raw.githubusercontent.com/adetokunbo/tmp-proc/0bb91505f24084ae488af274459fa49c87912033/tmp-proc-example/src/TmpProc/Example2/Routes.hs
haskell
# LANGUAGE OverloadedStrings # * API route definition | API allowing 'Contact' creation and retrieval. | For convenience in "Servant" combinators where a proxy is required.
# LANGUAGE DataKinds # # LANGUAGE TypeOperators # | Copyright : ( c ) 2020 - 2021 SPDX - License - Identifier : : < > Specifies the API provided by the demo service . Copyright : (c) 2020-2021 Tim Emiola SPDX-License-Identifier: BSD3 Maintainer : Tim Emiola <> Specifies the API provided by th...
86eefaa7211a4de2cf4267fa9156423299fd5d7b5986218a15213cfd94726980
babashka/pods
pod_registry.clj
(require '[babashka.pods :as pods]) (pods/load-pod 'org.babashka/buddy "0.1.0") (require '[pod.babashka.buddy.codecs :as codecs] '[pod.babashka.buddy.hash :as hash]) (println (-> (hash/sha256 "foobar") (codecs/bytes->hex))) (pods/load-pod 'org.babashka/etaoin) ;; should cause error when versio...
null
https://raw.githubusercontent.com/babashka/pods/842ff347391adabece623e4fb3f30297c848acdc/test-resources/pod_registry.clj
clojure
should cause error when version & path are missing
(require '[babashka.pods :as pods]) (pods/load-pod 'org.babashka/buddy "0.1.0") (require '[pod.babashka.buddy.codecs :as codecs] '[pod.babashka.buddy.hash :as hash]) (println (-> (hash/sha256 "foobar") (codecs/bytes->hex)))
1f227c91f5ee31a520b5b09a0ad6078f94378fee6d15e3b7387bc7f5fbcfb170
myshov/programming_in_haskell
comment_parser.hs
import Parsing toeol :: Parser String toeol = do char '\n' return ("") +++ do x <- item xs <- toeol return (x:xs) +++ do return ("") comment :: Parser () comment = do xs <- string "--" ys <- toeol return () comment' :: Par...
null
https://raw.githubusercontent.com/myshov/programming_in_haskell/3118695cc09a5ea0954917c318bf007b6ae5fcef/lesson8/comment_parser.hs
haskell
import Parsing toeol :: Parser String toeol = do char '\n' return ("") +++ do x <- item xs <- toeol return (x:xs) +++ do return ("") comment :: Parser () comment = do xs <- string "--" ys <- toeol return () comment' :: Par...
96d9216ac06d97be68bb35216d758baf8341e39e2a19cc508b5bc3bf5ac3d9fa
aligusnet/mltool
Main.hs
module Main where import qualified Numeric.LinearAlgebra as LA import qualified MachineLearning.Types as T import qualified MachineLearning as ML import qualified MachineLearning.Classification.OneVsAll as OVA import qualified MachineLearning.PCA as PCA processFeatures :: T.Matrix -> T.Matrix processFeatures = ML.ad...
null
https://raw.githubusercontent.com/aligusnet/mltool/92d74c4cc79221bfdcfb76aa058a2e8992ecfe2b/examples/digits_classification_pca/Main.hs
haskell
Step 1.1 Training Data loading. Step 1.1 Testing Data loading.
module Main where import qualified Numeric.LinearAlgebra as LA import qualified MachineLearning.Types as T import qualified MachineLearning as ML import qualified MachineLearning.Classification.OneVsAll as OVA import qualified MachineLearning.PCA as PCA processFeatures :: T.Matrix -> T.Matrix processFeatures = ML.ad...
842bd6e3af8c13a10f1a3a1cafba9541e84e24b3cdd55e0e475d49350e8cdc9d
rtoy/cmucl
prototypes.lisp
;;;; -*- Mode: Lisp, Fill ; Package: Toolkit -*- ;;; ;;; ********************************************************************** This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . If you want to use this code or any part of CMU Co...
null
https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/motif/lisp/prototypes.lisp
lisp
-*- Mode: Lisp, Fill ; Package: Toolkit -*- ********************************************************************** ********************************************************************** Lisp client and the C server. This table is accessed at compile time so that we know the request ID as a numeric constant,...
This code was written as part of the CMU Common Lisp project at Carnegie Mellon University , and has been placed in the public domain . If you want to use this code or any part of CMU Common Lisp , please contact or . (ext:file-comment "$Header: src/motif/lisp/prototypes.lisp $") Written by This file...
d64882ac4df614152aec1853a7dfd3d9d1e42457b670daa880ce37e290659c69
programaker-project/Programaker-Core
automate_bot_engine_signal_tests.erl
Automate bot engine getters tests . %%% @end -module(automate_bot_engine_signal_tests). -include_lib("eunit/include/eunit.hrl"). %% Data structures -include("../../automate_storage/src/records.hrl"). -include("../src/program_records.hrl"). -include("../src/instructions.hrl"). -include("../../automate_channel_engine...
null
https://raw.githubusercontent.com/programaker-project/Programaker-Core/e9a14b09d6a82edf4bb3976a7369e5cee2373624/backend/apps/automate_bot_engine/test/automate_bot_engine_signal_tests.erl
erlang
@end Data structures Test data Milliseconds Note, if waiting per instruction takes too much time consider adding a method which checks periodically. ==================================================================== Test API ==================================================================== @doc App infrast...
Automate bot engine getters tests . -module(automate_bot_engine_signal_tests). -include_lib("eunit/include/eunit.hrl"). -include("../../automate_storage/src/records.hrl"). -include("../src/program_records.hrl"). -include("../src/instructions.hrl"). -include("../../automate_channel_engine/src/records.hrl"). -includ...
46c3241d9506bfe9a7e42747ba76209a6696032848242efadf22b5a79aa46796
argp/bap
batOo.mli
* BatOO - Extended operations on objects * Copyright ( C ) 1996 , INRIA * 2008 , LIFO , Universite d'Orleans * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software...
null
https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/src/batOo.mli
ocaml
* Return an integer identifying this object, unique for the current execution of the program. */* * For internal use (CamlIDL) *As {!Internal.public_method_label} *As {!Internal.public_method_label} */* * {6 Classes} *Internal representation of the vtable, i.e. the table of virtual methods. *Internal representat...
* BatOO - Extended operations on objects * Copyright ( C ) 1996 , INRIA * 2008 , LIFO , Universite d'Orleans * * This library is free software ; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software...
5f7d85a44c5886f26c6f15a9d0825c289aa5985611b7e512c8aa3c13a5f6acfc
prg-titech/baccaml
even-odd.ml
;; let t = 123 in let f = 456 in let rec even x = let rec odd x = if x > 0 then even (x - 1) else if x < 0 then even (x + 1) else f in if x > 0 then odd (x - 1) else if x < 0 then odd (x + 1) else t in print_int (even 789)
null
https://raw.githubusercontent.com/prg-titech/baccaml/a3b95e996a995b5004ca897a4b6419edfee590aa/etc/example/even-odd.ml
ocaml
;; let t = 123 in let f = 456 in let rec even x = let rec odd x = if x > 0 then even (x - 1) else if x < 0 then even (x + 1) else f in if x > 0 then odd (x - 1) else if x < 0 then odd (x + 1) else t in print_int (even 789)
7d2b16afdf109e439fc818e3aeb72d490c63e3b314cfdf6481d0fa98c551ab3b
simonjbeaumont/ocaml-tailrec
test_pass.ml
let rec length_tailrec acc = function [] -> acc | x::xs -> length_tailrec (acc+1) xs [@@tailrec]
null
https://raw.githubusercontent.com/simonjbeaumont/ocaml-tailrec/4be287c8aeac7778580b2b23620e63177143cc55/test/test_pass.ml
ocaml
let rec length_tailrec acc = function [] -> acc | x::xs -> length_tailrec (acc+1) xs [@@tailrec]
fd32e11e3e57a83f0d87a3cccf8c2705e56506ad4a3bb93394c6a8c458be2308
herd/herdtools7
litmusUtils.mli
(****************************************************************************) (* the diy toolsuite *) (* *) , University College London , UK . , INRIA Par...
null
https://raw.githubusercontent.com/herd/herdtools7/b86aec8db64f8812e19468893deb1cdf5bbcfb83/litmus/litmusUtils.mli
ocaml
************************************************************************** the diy toolsuite en Automatique and ...
, University College London , UK . , INRIA Paris - Rocquencourt , France . Copyright 2017 - present Institut National de Recherche en Informatique et This software is governed by the CeCILL - B license under French law and modify and/ or redistribu...
8e7482023dae9d7210625ff0f17aabec93c4b41672e9b1b9aefa8cd2111a3406
brownplt/TeJaS
strobe_env.mli
open Prelude open Sig open Strobe_sigs module Make : functor (Strobe : STROBE_MODULE) -> functor (StrobeKinding : STROBE_KINDING with type typ = Strobe.typ with type kind = Strobe.kind with type binding = Strobe.binding with type extTyp = Strobe.extTyp with type extKind = Strobe.extKind w...
null
https://raw.githubusercontent.com/brownplt/TeJaS/a8ad7e5e9ad938db205074469bbde6a688ec913e/src/strobe_env.mli
ocaml
open Prelude open Sig open Strobe_sigs module Make : functor (Strobe : STROBE_MODULE) -> functor (StrobeKinding : STROBE_KINDING with type typ = Strobe.typ with type kind = Strobe.kind with type binding = Strobe.binding with type extTyp = Strobe.extTyp with type extKind = Strobe.extKind w...
080b78af361aa9c75fb76253d46c362b86b5fae82f992032edf4299706ced619
TatriX/cl-selenium-webdriver
go.lisp
(in-package :cl-user) (eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload :cl-selenium)) (defpackage go-test (:use :cl :cl-selenium)) (in-package :go-test) (defparameter *code* " package main import \"fmt\" func main() { fmt.Print(\"Hello WebDriver!\") }") (with-session () (setf (url) "...
null
https://raw.githubusercontent.com/TatriX/cl-selenium-webdriver/51a4b6833731281353ae6585e404dc934ad8df33/examples/go.lisp
lisp
(in-package :cl-user) (eval-when (:compile-toplevel :load-toplevel :execute) (ql:quickload :cl-selenium)) (defpackage go-test (:use :cl :cl-selenium)) (in-package :go-test) (defparameter *code* " package main import \"fmt\" func main() { fmt.Print(\"Hello WebDriver!\") }") (with-session () (setf (url) "...
9c149434e28e68b45293273553c129669e49228a87dd851d752d98b4dea4076c
inhabitedtype/ocaml-aws
listDocuments.ml
open Types open Aws type input = ListDocumentsRequest.t type output = ListDocumentsResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of ser...
null
https://raw.githubusercontent.com/inhabitedtype/ocaml-aws/3bc554af7ae7ef9e2dcea44a1b72c9e687435fa9/libraries/ssm/lib/listDocuments.ml
ocaml
open Types open Aws type input = ListDocumentsRequest.t type output = ListDocumentsResult.t type error = Errors_internal.t let service = "ssm" let signature_version = Request.V4 let to_http service region req = let uri = Uri.add_query_params (Uri.of_string (Aws.Util.of_option_exn (Endpoints.url_of ser...
1636911f91018e627934dbca0370030d0d6bbb18bcfd0da319f14001d15e0f3b
juxt/reap
rfc7235_test.clj
Copyright © 2020 , JUXT LTD . (ns juxt.reap.alpha.decoders.rfc7235-test (:require [clojure.test :refer [deftest is are testing]] [juxt.reap.alpha.regex :as re] [juxt.reap.alpha.decoders.rfc7235 :as rfc7235])) (deftest auth-param-test (let [p (rfc7235/auth-param {})] (are [input expected] (= expecte...
null
https://raw.githubusercontent.com/juxt/reap/29ffc8664df26041ebd93a53f009d2606d1a5b6c/test/juxt/reap/alpha/decoders/rfc7235_test.clj
clojure
Copyright © 2020 , JUXT LTD . (ns juxt.reap.alpha.decoders.rfc7235-test (:require [clojure.test :refer [deftest is are testing]] [juxt.reap.alpha.regex :as re] [juxt.reap.alpha.decoders.rfc7235 :as rfc7235])) (deftest auth-param-test (let [p (rfc7235/auth-param {})] (are [input expected] (= expecte...
78f2af5ecb8d0644c2c11a62f1d6b6b137f1e5af1173ea54e2c9caf184fab0a2
tmattio/js-bindings
foldingRange.mli
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib (* unknown identifiers: - BaseLanguageClient - CancellationToken - ClientCapabilities - Disposable - DocumentSelector - FoldingContext - FoldingRangeOptions - FoldingRangeProvider - Fold...
null
https://raw.githubusercontent.com/tmattio/js-bindings/fe1d40a5b8cae157af85fa84ca482fb6b0ddf1e0/lib/vscode-languageclient/_gen/foldingRange.mli
ocaml
unknown identifiers: - BaseLanguageClient - CancellationToken - ClientCapabilities - Disposable - DocumentSelector - FoldingContext - FoldingRangeOptions - FoldingRangeProvider - FoldingRangeRegistrationOptions - ProviderResult<T1> - ServerCapabilities - TextDocument - TextDocumentFeature<...
[@@@ocaml.warning "-7-11-32-33-39"] [@@@js.implem [@@@ocaml.warning "-7-11-32-33-39"] ] open Ts2ocaml_baselib [@@@js.stop] module type Missing = sig module BaseLanguageClient : sig type t_0 val t_0_to_js: t_0 -> Ojs.t val t_0_of_js: Ojs.t -> t_0 end module CancellationToken : sig type t_0 v...
7d131dafe324ade863c1bc9dc4fef4abe106aafcf42d45c903ad426faca2df2f
ocaml/ocamlbuild
const.ml
module Source = struct let file = "file" let command_line = "command-line" let path = "path" let ocamlfind_query = "ocamlfind query" let ocamldep = "ocamldep" let target_pattern = "target pattern" let builtin = "builtin configuration" let configuration = "configuration" let plugin_tag = "plugin tag" e...
null
https://raw.githubusercontent.com/ocaml/ocamlbuild/792b7c8abdbc712c98ed7e69469ed354b87e125b/src/const.ml
ocaml
module Source = struct let file = "file" let command_line = "command-line" let path = "path" let ocamlfind_query = "ocamlfind query" let ocamldep = "ocamldep" let target_pattern = "target pattern" let builtin = "builtin configuration" let configuration = "configuration" let plugin_tag = "plugin tag" e...
19a587f2c0272cbd3993e291fef11bcafdcd863e608761f818651417dd0d93be
ghc/ghc
CSE.hs
( c ) The AQUA Project , Glasgow University , 1993 - 1998 } (c) The AQUA Project, Glasgow University, 1993-1998 \section{Common subexpression} -} module GHC.Core.Opt.CSE (cseProgram, cseOneExpr) where import GHC.Prelude import GHC.Core.Subst import GHC.Types.Var ( Var ) import GHC.Types.Var.Env ( mkInSc...
null
https://raw.githubusercontent.com/ghc/ghc/178c1fd830c78377ef5d338406a41e1d8eb5f0da/compiler/GHC/Core/Opt/CSE.hs
haskell
# NOINLINE yes # # RULES "foo/no" foo no = id # Same rhs as foo # Unf = Stable (\pq. build blah) # # Unf = Stable (\pq. build blah) # # Unf = Stable ... # see Note [Dealing with ticks]. In that case we might See Note [Separate envs for let rhs and body] See Note [CSE for recursive bindings] We have a hit in the r...
( c ) The AQUA Project , Glasgow University , 1993 - 1998 } (c) The AQUA Project, Glasgow University, 1993-1998 \section{Common subexpression} -} module GHC.Core.Opt.CSE (cseProgram, cseOneExpr) where import GHC.Prelude import GHC.Core.Subst import GHC.Types.Var ( Var ) import GHC.Types.Var.Env ( mkInSc...
d7786cceee0d6be90f324331c56c05933a6ef0cf2df3154a6ebd35ddc28c6b02
jdevuyst/termcat
tokenize.cljs
(ns termcat.rules.tokenize (:require-macros [cljs.core.match.macros :refer (match)] [termcat.core-macros-cljs :refer (defrule)]) (:require [cljs.core.match] ...
null
https://raw.githubusercontent.com/jdevuyst/termcat/5b4d89da67de89e6d62933c8c407e7a79ffdb0cb/doc/js/termcat/rules/tokenize.cljs
clojure
] (accept false) [{:fin true} _ _] nil [_ _ nil] (concat [{:fin true} t1] (for [x (range (:indent state))] (t/rdelim :indent))) [{:fin true} _ _] nil [{:in-bullet true} _ nil nil] (when (:in-bullet state2) (unwind (:prev-state state2)))))] (concat [{...
(ns termcat.rules.tokenize (:require-macros [cljs.core.match.macros :refer (match)] [termcat.core-macros-cljs :refer (defrule)]) (:require [cljs.core.match] ...
aac89a1934a72b3d0274eac2c84f23e5d698cf15c9f1495c27640072e1a17270
Gbury/mSAT
Backend_intf.ml
MSAT is free software , using the Apache license , see file LICENSE Copyright 2014 Copyright 2014 MSAT is free software, using the Apache license, see file LICENSE Copyright 2014 Guillaume Bury Copyright 2014 Simon Cruanes *) (** Backend interface This modules defines the interface of the modules prov...
null
https://raw.githubusercontent.com/Gbury/mSAT/b6ea55e7abb71e8fca294a167bf7d8091cbd82a5/src/backend/Backend_intf.ml
ocaml
* Backend interface This modules defines the interface of the modules providing export of proofs. * Proof exporting Currently, exporting a proof means printing it into a file according to the conventions of a given format. * The type of proofs. * A function for printing proofs in the desired ...
MSAT is free software , using the Apache license , see file LICENSE Copyright 2014 Copyright 2014 MSAT is free software, using the Apache license, see file LICENSE Copyright 2014 Guillaume Bury Copyright 2014 Simon Cruanes *) module type S = sig type t val pp : Format.formatter -> t -> unit end
020fca2a3006a1e3e2eed999990a6804845d4f9f88965ee12b2b1f8a6e4b56be
keera-studios/keera-posture
Status.hs
# LANGUAGE TemplateHaskell # -- | Access the system's status in a thread-safe way module Model.ProtectedModel.Status where import Hails.MVC.Model.THFields import Hails.MVC.Model.ProtectedModel.Reactive -- Internal imports import Model.Model import qualified Model.ReactiveModel ...
null
https://raw.githubusercontent.com/keera-studios/keera-posture/9de5095a4a10c0cb54f6191f1a448e96645193ae/src/Model/ProtectedModel/Status.hs
haskell
| Access the system's status in a thread-safe way Internal imports
# LANGUAGE TemplateHaskell # module Model.ProtectedModel.Status where import Hails.MVC.Model.THFields import Hails.MVC.Model.ProtectedModel.Reactive import Model.Model import qualified Model.ReactiveModel as RM import Model.ReactiveModel.ModelEvents imp...
c07b08ec1d57c87e3826ac0ddb710b7fc1480991cb3277d3111f184415da00d9
oliyh/martian
project.clj
(defproject com.github.oliyh/martian-hato "0.1.23-SNAPSHOT" :description "hato implementation for martian" :url "" :license {:name "The MIT License" :url ""} :plugins [[lein-modules "0.3.11"]] :dependencies [[com.github.oliyh/martian :version] [hato "0.8.2"]] :profiles {:provide...
null
https://raw.githubusercontent.com/oliyh/martian/f84416f0adf5cede2ce40815b8d7f4de4823fe03/hato/project.clj
clojure
(defproject com.github.oliyh/martian-hato "0.1.23-SNAPSHOT" :description "hato implementation for martian" :url "" :license {:name "The MIT License" :url ""} :plugins [[lein-modules "0.3.11"]] :dependencies [[com.github.oliyh/martian :version] [hato "0.8.2"]] :profiles {:provide...
289a6499ead4f49c102880ed7facd5915f1347c27954c0e601d43e6ae7a153fc
PuercoPop/Movitz
image.lisp
;;;;------------------------------------------------------------------ ;;;; Copyright ( C ) 2001,2000 , 2002 - 2005 , Department of Computer Science , University of Tromso , Norway . ;;;; ;;;; Filename: image.lisp Description : Construction of Movitz images . Author : < > Created a...
null
https://raw.githubusercontent.com/PuercoPop/Movitz/7ffc41896c1e054aa43f44d64bbe9eaf3fcfa777/image.lisp
lisp
------------------------------------------------------------------ Filename: image.lisp Distribution: See the accompanying file COPYING. ------------------------------------------------------------------ keep this at the top. A non-GC-root scratch register tag-specific c...
Copyright ( C ) 2001,2000 , 2002 - 2005 , Department of Computer Science , University of Tromso , Norway . Description : Construction of Movitz images . Author : < > Created at : Sun Oct 22 00:22:43 2000 $ I d : image.lisp , v 1.126 2008 - 07 - 18 13:15:40 ffjeld Exp $ (in-package ...
b1d5445cdbc8e550246af871375a87074fb8d622b02b00df5082e5927bdb9cfd
ghcjs/jsaddle-dom
TextEvent.hs
# LANGUAGE PatternSynonyms # -- For HasCallStack compatibility {-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-} # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.TextEvent (initTextEvent, getData, TextEvent(..), gTypeTextEvent) where import Prelude ((.), (==), (>>=), return, I...
null
https://raw.githubusercontent.com/ghcjs/jsaddle-dom/5f5094277d4b11f3dc3e2df6bb437b75712d268f/src/JSDOM/Generated/TextEvent.hs
haskell
For HasCallStack compatibility # LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures # | <-US/docs/Web/API/TextEvent.initTextEvent Mozilla TextEvent.initTextEvent documentation> | <-US/docs/Web/API/TextEvent.data Mozilla TextEvent.data documentation>
# LANGUAGE PatternSynonyms # # OPTIONS_GHC -fno - warn - unused - imports # module JSDOM.Generated.TextEvent (initTextEvent, getData, TextEvent(..), gTypeTextEvent) where import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, realToFrac, fmap, Show, Read, E...
c265d4b110afcaaf78b01a2bb1ddb430aed674822a791b8e41ff7e5a4948a835
ijvcms/chuanqi_dev
guild_lib.erl
%%%------------------------------------------------------------------- %%% @author tuhujia ( C ) 2015 , < COMPANY > %%% @doc %%% %%% @end Created : 13 . 八月 2015 10:46 %%%------------------------------------------------------------------- -module(guild_lib). -include("common.hrl"). -include("record.hrl"). -include...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/guild/guild_lib.erl
erlang
------------------------------------------------------------------- @author tuhujia @doc @end ------------------------------------------------------------------- API 创建帮派需要的等级 创建帮派需要金币 最大申请列表 副会长人数 长老人数 初始化公告 ==================================================================== API functions ==============...
( C ) 2015 , < COMPANY > Created : 13 . 八月 2015 10:46 -module(guild_lib). -include("common.hrl"). -include("record.hrl"). -include("proto.hrl"). -include("cache.hrl"). -include("db_record.hrl"). -include("config.hrl"). -include("uid.hrl"). -include("language_config.hrl"). -include("button_tips_config.hrl"). -incl...
8c1ec33932bf5a01409bbc660920cd5566721dd279ee3738502a02e74d9aa929
kloimhardt/werkbank
structure.clj
(ns sicmutils-cljs.structure (:require [sicmutils.structure :as self])) (defn structure? [& a] (let [erg (apply self/structure? a)] (if (= erg false) false (do (println "klm jvm structure 1 never" erg) erg)))) (defn opposite [& a] (println "klm jvm structure 2 never") (apply self/o...
null
https://raw.githubusercontent.com/kloimhardt/werkbank/df66274eb978d060a043b8429b29d0f36c4a2e89/src/sicmutils_cljs/structure.clj
clojure
(ns sicmutils-cljs.structure (:require [sicmutils.structure :as self])) (defn structure? [& a] (let [erg (apply self/structure? a)] (if (= erg false) false (do (println "klm jvm structure 1 never" erg) erg)))) (defn opposite [& a] (println "klm jvm structure 2 never") (apply self/o...
2665815f5be5af6c6ccbf77d32c47835d20aa9b5e099305f2c6427561b6ebe7e
harpocrates/language-rust
Diff.hs
# LANGUAGE CPP , OverloadedStrings , OverloadedLists , InstanceSigs # # OPTIONS_GHC -fno - warn - orphans # module Diff where import Data.Aeson import Language.Rust.Data.Ident import Language.Rust.Syntax import Language.Rust.Parser import Control.Monad (when, unless) import Text.Read (readMaybe) import Data.String (...
null
https://raw.githubusercontent.com/harpocrates/language-rust/9d509c450d009cc99f1180b3f2f30247dfb1cfce/test/rustc-tests/Diff.hs
haskell
TODO: Check spans too TODO: should look at external files? Check inputs Check output Check variadic Style Extract the identifier and whether the pattern is shorthand | The empty identifier is invalid
# LANGUAGE CPP , OverloadedStrings , OverloadedLists , InstanceSigs # # OPTIONS_GHC -fno - warn - orphans # module Diff where import Data.Aeson import Language.Rust.Data.Ident import Language.Rust.Syntax import Language.Rust.Parser import Control.Monad (when, unless) import Text.Read (readMaybe) import Data.String (...
9a962c8f42f91cb96234e29d836eb80e1cea6004cfba563eb40a5a539c70b6f3
unbounce/encors
integration_test.clj
(ns com.unbounce.encors.integration-test (:require [com.unbounce.encors :as cors] [clojure.string :as str] [clojure.test :refer :all] [clj-http.client :as http] [ring.adapter.jetty :refer [run-jetty]] [compojure.core :refer :all] [compojure.route...
null
https://raw.githubusercontent.com/unbounce/encors/323d7e06816d0767197727ddb4720beeaca5822e/test/com/unbounce/encors/integration_test.clj
clojure
Support App features tests CORS tests Test the raw app, without CORS middleware Test the app, with CORS middleware (partial config) Test the app, with CORS middleware (full config)
(ns com.unbounce.encors.integration-test (:require [com.unbounce.encors :as cors] [clojure.string :as str] [clojure.test :refer :all] [clj-http.client :as http] [ring.adapter.jetty :refer [run-jetty]] [compojure.core :refer :all] [compojure.route...
7e9eeaf0c4668ee6e11cde93dcd2ee9101e205554fe43dbadc267d85617166b1
shaneutt/erlang_notebook
erlang_notebook_web_sup.erl
%%%------------------------------------------------------------------- %% @doc erlang_notebook_web top level supervisor. %% @end %%%------------------------------------------------------------------- -module('erlang_notebook_web_sup'). -behaviour(supervisor). %% API -export([start_link/0]). %% Supervisor callbacks ...
null
https://raw.githubusercontent.com/shaneutt/erlang_notebook/b4f291db2d1b2711569e275fed09446fcc1ffb66/apps/erlang_notebook_web/src/erlang_notebook_web_sup.erl
erlang
------------------------------------------------------------------- @doc erlang_notebook_web top level supervisor. @end ------------------------------------------------------------------- API Supervisor callbacks ==================================================================== API functions ===================...
-module('erlang_notebook_web_sup'). -behaviour(supervisor). -export([start_link/0]). -export([init/1]). -define(SERVER, ?MODULE). start_link() -> supervisor:start_link({local, ?SERVER}, ?MODULE, []). Child : : { Id , StartFunc , Restart , Shutdown , Type , Modules } init([]) -> {ok, { {one_for_all, 0...
d53270bc2f396ca42c9fd993dacf5a970115fd761b6f95b59fc4d6776e43f881
sadiqj/ocaml-esp32
ephetest2.ml
* * This test evaluate boolean formula composed by conjunction and disjunction using ephemeron : - true = = alive , false = = garbage collected - and = = an n - ephemeron , or = = many 1 - ephemeron This test evaluate boolean formula composed by conjunction and disjunction using ephemer...
null
https://raw.githubusercontent.com/sadiqj/ocaml-esp32/33aad4ca2becb9701eb90d779c1b1183aefeb578/testsuite/tests/misc/ephetest2.ml
ocaml
* resizeable array for cheap * the ephemerons must be alive * keep alive the true constant * keep temporarily alive the false constant * create a variable and its definition in the boolean world and ephemerons world * remaining level * Constant * Or * And * release false ref
* * This test evaluate boolean formula composed by conjunction and disjunction using ephemeron : - true = = alive , false = = garbage collected - and = = an n - ephemeron , or = = many 1 - ephemeron This test evaluate boolean formula composed by conjunction and disjunction using ephemer...
4d323b690c9ab729c0f019263707511850dcdf6a8980936c1d84faf632f18707
jiujiu1123/defensive-to-contracts
program-fact.rkt
#lang racket (require (only-in plai define-type test print-only-errors)) (require "definitions.rkt") (require "chspans.rkt") (require "complex-pred-to-facts.rkt") (define (program-to-structure program scope [outer-let-chs #f]) (define (get-proper-range original-chs) (if outer-let-chs outer-let-chs ...
null
https://raw.githubusercontent.com/jiujiu1123/defensive-to-contracts/f64d8cb80a17fb981eb8269ef15f1fdb2f4d190b/program-fact.rkt
racket
#lang racket (require (only-in plai define-type test print-only-errors)) (require "definitions.rkt") (require "chspans.rkt") (require "complex-pred-to-facts.rkt") (define (program-to-structure program scope [outer-let-chs #f]) (define (get-proper-range original-chs) (if outer-let-chs outer-let-chs ...
85c52859122ee9bfeb7c180ca7e74fef0362e0f9a9e1ddee8f4fae5edb1e70d3
practicalli/four-clojure
058_function_composition.clj
(ns four-clojure.058-function-composition) # 058 function composition ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Difficulty: Medium ;; Topics: higher-order-functions core-functions ;; Special Restrictions: comp ;; Write a function which allows you to create function compositions. The parameter list should take ...
null
https://raw.githubusercontent.com/practicalli/four-clojure/9812b63769a06f9b0bfd63e5ffce380b67e5468b/src/four_clojure/058_function_composition.clj
clojure
Difficulty: Medium Topics: higher-order-functions core-functions Special Restrictions: comp Write a function which allows you to create function compositions. The parameter list should take a variable number of functions, and create a function that applies them from right-to-left. This challenge helps you unders...
(ns four-clojure.058-function-composition) # 058 function composition (= [ 3 2 1 ] ( ( _ _ rest reverse ) [ 1 2 3 4 ] ) ) (= 5 ( ( _ _ ( partial + 3 ) second ) [ 1 2 3 4 ] ) ) (= true ( ( _ _ zero ? # ( mod % 8) + ) 3 5 7 9 ) ) (= " HELLO " ( ( _ _ # ( .toUpperCase % ) # ( apply str % ) take ) 5 " hello w...
2f80e1f88990590b4d73e11714205d748b045bd99ba8d345247aaaa975c310d2
jpmonettas/clindex
scanner.clj
(ns clindex.scanner "Scanner, provides functionality for scanning complete projects for a platform. Starting from a deps.edn or project.clj project it can download all project dependencies, scan all source files inside local folders or jars and return a map of namespaces with tons of information about them. (S...
null
https://raw.githubusercontent.com/jpmonettas/clindex/f762bb143e8f08821c7244bc045924e2a0f018b0/src/clindex/scanner.clj
clojure
Projects scanning ;; lein proj #L104 this unreplaced variable Namespaces scanning ;; this is relaying on a implementation detail, tools.reader/read calls *alias-map* as a fn, so we can resolve to a dummy ns and allow reader to continue ; grab all proto fns names is defn- , etc OR core/defn- clojure.core/d...
(ns clindex.scanner "Scanner, provides functionality for scanning complete projects for a platform. Starting from a deps.edn or project.clj project it can download all project dependencies, scan all source files inside local folders or jars and return a map of namespaces with tons of information about them. (S...
d3e1c4c490c78ddb5cdbf9131877ebcb56db0894a42f408689b7babcde49ec82
generateme/fastmath
a.clj
(ns fastmath.fields.a (:require [fastmath.vector :as v] [fastmath.core :as m] [fastmath.complex :as c] [fastmath.random :as r] [fastmath.fields.utils :as u]) (:import [fastmath.vector Vec2])) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defn a...
null
https://raw.githubusercontent.com/generateme/fastmath/ac8b339eaa755c1208f446adda1a15fb335762fb/src/fastmath/fields/a.clj
clojure
(ns fastmath.fields.a (:require [fastmath.vector :as v] [fastmath.core :as m] [fastmath.complex :as c] [fastmath.random :as r] [fastmath.fields.utils :as u]) (:import [fastmath.vector Vec2])) (set! *unchecked-math* :warn-on-boxed) (m/use-primitive-operators) (defn a...
bcb8ae37c81ecb135a6d456a83390f21ce7c68155c0caf729bb2a84532e5c158
khibino/haskell-relational-record
List.hs
module Text.Printer.List ( PrintM, Printer, execPrinter , token, list ) where import Control.Monad.Trans.Writer (Writer, execWriter, tell) import Data.DList (DList) import qualified Data.DList as DList type PrintM t = Writer (DList t) type Printer t a = a -> PrintM t () token :: Printer t t to...
null
https://raw.githubusercontent.com/khibino/haskell-relational-record/759b3d7cea207e64d2bd1cf195125182f73d2a52/text-postgresql/src/Text/Printer/List.hs
haskell
module Text.Printer.List ( PrintM, Printer, execPrinter , token, list ) where import Control.Monad.Trans.Writer (Writer, execWriter, tell) import Data.DList (DList) import qualified Data.DList as DList type PrintM t = Writer (DList t) type Printer t a = a -> PrintM t () token :: Printer t t to...
8db88bb9fe8e336dc7a279356807cde2b07bcd6450940b66b455a56ba4eb23cf
chaoxu/fancy-walks
88.hs
import Data.List import Data.Array.IArray import Data.Array.Unboxed (UArray) import Control.Applicative import qualified Data.IntSet as Set primes = sieve [2..] where sieve (x:xs) = x : sieve (filter ((/=0).(`mod`x)) xs) smallestFactor x = head [arr ! x | arr <- cache, inRange (bounds arr) x] where go (x...
null
https://raw.githubusercontent.com/chaoxu/fancy-walks/952fcc345883181144131f839aa61e36f488998d/projecteuler.net/88.hs
haskell
import Data.List import Data.Array.IArray import Data.Array.Unboxed (UArray) import Control.Applicative import qualified Data.IntSet as Set primes = sieve [2..] where sieve (x:xs) = x : sieve (filter ((/=0).(`mod`x)) xs) smallestFactor x = head [arr ! x | arr <- cache, inRange (bounds arr) x] where go (x...
97aa4defa69907162645c91a4c5a7eef53cf37e5851e1edaa1d4d4f174f3f6f5
nikita-volkov/rerebase
Lazy.hs
module Data.STRef.Lazy ( module Rebase.Data.STRef.Lazy ) where import Rebase.Data.STRef.Lazy
null
https://raw.githubusercontent.com/nikita-volkov/rerebase/25895e6d8b0c515c912c509ad8dd8868780a74b6/library/Data/STRef/Lazy.hs
haskell
module Data.STRef.Lazy ( module Rebase.Data.STRef.Lazy ) where import Rebase.Data.STRef.Lazy
dd2ec28eb102635ed5ce0b27998a2f5479d79c5e915a44cd3b45873e13f45fc7
kraison/vivace-graph-v2
deserialize.lisp
(in-package #:vivace-graph-v2) The foundation of the serialization code comes from " Object - Oriented Programming in Common Lisp . " Thanks ! (defgeneric deserialize (code stream)) (defgeneric deserialize-action (code stream)) (defun deserialize-file (file) (with-open-file (stream file :element-type '...
null
https://raw.githubusercontent.com/kraison/vivace-graph-v2/f5fcc60caa1e5b33ac3f618311e8876a94508818/deserialize.lisp
lisp
(in-package #:vivace-graph-v2) The foundation of the serialization code comes from " Object - Oriented Programming in Common Lisp . " Thanks ! (defgeneric deserialize (code stream)) (defgeneric deserialize-action (code stream)) (defun deserialize-file (file) (with-open-file (stream file :element-type '...
2f00fa4e72323ebc988ca67b7fe9943c45fb6dce2056e8b1067aa161c0a60169
francescoc/erlangprogramming
echoFac.erl
-module(echoFac). -export([test/0]). test() -> Cmd = "ruby echoFac.rb", Port = open_port({spawn, Cmd}, [{packet, 4}, use_stdio, exit_status, binary]), Payload = term_to_binary({fac, list_to_binary(integer_to_list(23))}), port_command(Port, Payload), receive {Port, {data, Data}} -> {result, ...
null
https://raw.githubusercontent.com/francescoc/erlangprogramming/b4c39cbebe6599f23eb9d1a052316baf75e40a47/chapter16/echoFac.erl
erlang
-module(echoFac). -export([test/0]). test() -> Cmd = "ruby echoFac.rb", Port = open_port({spawn, Cmd}, [{packet, 4}, use_stdio, exit_status, binary]), Payload = term_to_binary({fac, list_to_binary(integer_to_list(23))}), port_command(Port, Payload), receive {Port, {data, Data}} -> {result, ...
49f8aa31e57163b4cdb1f1e87a49ceef69b8056dd1481a36aaa09e947a3bc665
richardharrington/robotwar
register.clj
(ns robotwar.register (:use [robotwar.constants]) (:require [robotwar.shell :as shell])) (def reg-names [ "DATA" "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z" "AIM" "SHOT" "RADAR" "DAMAGE" "SPEEDX" "SPEED...
null
https://raw.githubusercontent.com/richardharrington/robotwar/7f826649dd1a141fdacebb30d843773ceb5fee1f/src/robotwar/register.clj
clojure
returns :val field of register returns the value of a field in the robot hash-map, rounded to an integer returns a world with the value of a field in the robot hash map altered (with the number being cast to double before being pushed) returns a world with nothing changed returns a random number. maximum value i...
(ns robotwar.register (:use [robotwar.constants]) (:require [robotwar.shell :as shell])) (def reg-names [ "DATA" "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z" "AIM" "SHOT" "RADAR" "DAMAGE" "SPEEDX" "SPEED...
596f0c3b72d1f0b00228ed7f169452f8274be8fd99dffa27832dc2bff487234c
rumuki/rumuki-server
MarkAsSeen.hs
module Handler.MarkAsSeen where import Data.Aeson import Import data POSTRequest = POSTRequest { recordingUIDs :: [Text] , recipientKeyFingerprint :: ByteString } instance FromJSON POSTRequest where parseJSON = withObject "post mark as seen request" $ \o -> PO...
null
https://raw.githubusercontent.com/rumuki/rumuki-server/59798656e9eb440a2344223850dbd1f9f77060ca/src/Handler/MarkAsSeen.hs
haskell
module Handler.MarkAsSeen where import Data.Aeson import Import data POSTRequest = POSTRequest { recordingUIDs :: [Text] , recipientKeyFingerprint :: ByteString } instance FromJSON POSTRequest where parseJSON = withObject "post mark as seen request" $ \o -> PO...
7075c5996cf3e63ea5cd708048a25b97cfe6dbbf2775fb283816789f71136d6e
aconchillo/guile-oauth
twitter.scm
#!/usr/bin/env guile -s !# ;;; Guile OAuth client example. Copyright ( C ) 2013 - 2022 Aleix Conchillo Flaque < > ;; ;; This file is part of guile-oauth. ;; ;; guile-oauth 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 Softw...
null
https://raw.githubusercontent.com/aconchillo/guile-oauth/49a4314499596d390052d6931dca6338f2f0621f/examples/oauth1/twitter.scm
scheme
Guile OAuth client example. This file is part of guile-oauth. guile-oauth is free software: you can redistribute it and/or modify either version 3 of the License , or (at your option) any later version. guile-oauth is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the i...
#!/usr/bin/env guile -s !# Copyright ( C ) 2013 - 2022 Aleix Conchillo Flaque < > 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 OAuth Twitter client example . (use-modules (json) (oauth oauth1) ...
d9f581045c27f64b99893817c5c48621412202fb72392a1a5d18721de34566fc
rems-project/cerberus
typing.ml
open Context module IT = IndexTerms module ITSet = Set.Make(IT) module SymMap = Map.Make(Sym) module RET = ResourceTypes type s = { typing_context: Context.t; solver : Solver.solver; sym_eqs : IT.t SymMap.t; equalities: bool Simplify.ITPairMap.t; past_models : (Solver.model_with_q * Context.t) lis...
null
https://raw.githubusercontent.com/rems-project/cerberus/965d4e46ae42e85141c2b32a647f11c6944493e3/backend/cn/typing.ml
ocaml
not clear whether Effectful.Make should be used here instead
open Context module IT = IndexTerms module ITSet = Set.Make(IT) module SymMap = Map.Make(Sym) module RET = ResourceTypes type s = { typing_context: Context.t; solver : Solver.solver; sym_eqs : IT.t SymMap.t; equalities: bool Simplify.ITPairMap.t; past_models : (Solver.model_with_q * Context.t) lis...
b1cf67cb586ca9a27b4eadf84655860a098b3d76516d913550ac05d895cf76be
davisp/couchdb
couch_stream.erl
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not % use this file except in compliance with the License. You may obtain a copy of % the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/davisp/couchdb/b0420f9006915149e81607615720f32f21c76725/src/couchdb/couch_stream.erl
erlang
use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_stream). -behaviour(gen_server). -export([open/1, open/2, close/1]). -export([foldl/4, foldl/5, foldl_decode/6, range_foldl/6]). -export([cop...
976de1512f553a15b3ee641d9bc942b424885e1950c5ebc76de6bac702a7ff50
ryanpbrewster/haskell
where_is_wifi.hs
import qualified Data.Map as M import Text.ParserCombinators.Parsec hiding (Line) data Vector = Vector Double Double deriving (Eq) instance Show Vector where show (Vector x y) = "(" ++ show x ++ ", " ++ show y ++ ")" (Vector x1 y1) `plus` (Vector x2 y2) = Vector (x1+x2) (y1+y2) (Vector x1 y1) `minus` (Vector x2...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/CodeEval/where_is_wifi.hs
haskell
This will throw a pattern match error if there is a router with ------------------ Parsing nonsense ------------------ Example
import qualified Data.Map as M import Text.ParserCombinators.Parsec hiding (Line) data Vector = Vector Double Double deriving (Eq) instance Show Vector where show (Vector x y) = "(" ++ show x ++ ", " ++ show y ++ ")" (Vector x1 y1) `plus` (Vector x2 y2) = Vector (x1+x2) (y1+y2) (Vector x1 y1) `minus` (Vector x2...
dc749278c26e842cfc372c134203879ee755a448c108e9e8547e668851e9f285
morpheusgraphql/morpheus-graphql
MergeMap.hs
# LANGUAGE CPP # # LANGUAGE DataKinds # {-# LANGUAGE DeriveLift #-} {-# LANGUAGE DeriveTraversable #-} # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE Overload...
null
https://raw.githubusercontent.com/morpheusgraphql/morpheus-graphql/2b2eb76e4cf9e9ed07b8cf65d6987af252aecdee/morpheus-graphql-core/src/Data/Mergeable/MergeMap.hs
haskell
# LANGUAGE DeriveLift # # LANGUAGE DeriveTraversable # # LANGUAGE OverloadedStrings # # LANGUAGE TemplateHaskellQuotes #
# LANGUAGE CPP # # LANGUAGE DataKinds # # LANGUAGE DerivingStrategies # # LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE MultiParamTypeClasses # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # # LANGUAGE NoImpli...
8f18a7d79cb870a67f87befa26d78ed76c356ee38e49b6d5defdfaa1da962b5d
charlieg/Sparser
edges1.lisp
;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- copyright ( c ) 1990 - 2005 -- all rights reserved extensions copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved $ I d : edges1.lisp 110 2007 - 08 - 27 18:36:52Z dmcdonal $ ;;; ;;; File: "edges" ;;; Module: "objects;trace...
null
https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/traces/edges1.lisp
lisp
-*- Mode:LISP; Syntax:Common-Lisp; Package:(SPARSER LISP) -*- File: "edges" Module: "objects;traces:" multiple completions 5/5/94 added functions for turning both sets on/off (8/21/07) Added cases for threading through multiply to debug its rebuild. for meta-point ----------------------...
copyright ( c ) 1990 - 2005 -- all rights reserved extensions copyright ( c ) 2007 BBNT Solutions LLC . All Rights Reserved $ I d : edges1.lisp 110 2007 - 08 - 27 18:36:52Z dmcdonal $ Version : 1.2 August 2007 initiated 8/90 10/30/91 added * trace - paired - punctuation * . added * trace - termi...
a18e27dc20b912d3b0b08047874c71a7d1d592ac0c0c208625eaa9b2f05e7316
gigasquid/babar
speech_acts_test.clj
(ns babar.speech-acts-test (:require [midje.sweet :refer :all] [babar.parser :refer :all] [babar.speech-acts :refer :all])) (init-commitments) (defn reset-commitments [] (reset! commitments {})) (defn setup-commitments [] (swap! commitments merge {:test (make-commitment (fn [] ...
null
https://raw.githubusercontent.com/gigasquid/babar/d9451122a1517dac4d0ff402f4ec716fd9c3a23a/test/babar/speech_acts_test.clj
clojure
question outputs are side effects
(ns babar.speech-acts-test (:require [midje.sweet :refer :all] [babar.parser :refer :all] [babar.speech-acts :refer :all])) (init-commitments) (defn reset-commitments [] (reset! commitments {})) (defn setup-commitments [] (swap! commitments merge {:test (make-commitment (fn [] ...
922b3aeb7a587cd0c98dd7b8197389563bcb4cffc4efdcdaf940080ff713bd62
facebook/pyre-check
weakenMutableLiterals.mli
* Copyright ( c ) Meta Platforms , Inc. and affiliates . * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree . * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in t...
null
https://raw.githubusercontent.com/facebook/pyre-check/10c375bea52db5d10b71cb5206fac7da9549eb0c/source/analysis/weakenMutableLiterals.mli
ocaml
* 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...
095e2b3e21ca4bef23bca68f80b9d5df205102fbb2867d41b907e6b37ac7ee55
stackbuilders/atomic-write
Binary.hs
-- | -- Module : System.AtomicWrite.Writer.Text.Binary Copyright : © 2015 - 2019 Stack Builders Inc. License : MIT -- Maintainer : Stack Builders < > -- Stability : experimental -- Portability : portable -- -- Provides functionality to dump the contents of a Text -- to a file in binary ...
null
https://raw.githubusercontent.com/stackbuilders/atomic-write/50976b9d249134d05191c4e430343594fdb034fb/src/System/AtomicWrite/Writer/Text/Binary.hs
haskell
| Module : System.AtomicWrite.Writer.Text.Binary Stability : experimental Portability : portable Provides functionality to dump the contents of a Text to a file in binary mode. | Creates a file atomically on POSIX-compliant systems while preserving permissions. ^ The path where the file will be upd...
Copyright : © 2015 - 2019 Stack Builders Inc. License : MIT Maintainer : Stack Builders < > module System.AtomicWrite.Writer.Text.Binary (atomicWriteFile, atomicWriteFileWithMode) where import System.AtomicWrite.Internal (atomicWriteFileMaybeModeBinary) import Data.Text ...
9d594e0549ca8969cd5ada8819d6370068d7599a92d41e52ede8e6fbb6617f3e
polyfy/polylith
params.clj
(ns polylith.clj.core.user-input.params (:require [clojure.string :as str] [polylith.clj.core.util.interface.str :as str-util])) (defn named? [arg] (and (-> arg nil? not) (str/includes? arg ":"))) (defn unnamed? [arg] (and (-> arg nil? not) (-> arg named? not))) (defn key-name [arg si...
null
https://raw.githubusercontent.com/polyfy/polylith/36b75565032dea88ee20cdc0bc5af18f6f4d4cf4/components/user-input/src/polylith/clj/core/user_input/params.clj
clojure
(ns polylith.clj.core.user-input.params (:require [clojure.string :as str] [polylith.clj.core.util.interface.str :as str-util])) (defn named? [arg] (and (-> arg nil? not) (str/includes? arg ":"))) (defn unnamed? [arg] (and (-> arg nil? not) (-> arg named? not))) (defn key-name [arg si...
13442a78f418e34c08db8891a94f3ab47b4535800ca7e3c4cb2648d2cfb0baeb
draperlaboratory/VIBES
helpers.ml
(***************************************************************************) (* *) Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. (* *) (* This...
null
https://raw.githubusercontent.com/draperlaboratory/VIBES/ba4fe14a355617e8d07df59578f032aa9f1f27b2/tools/vibes-as/test/helpers.ml
ocaml
************************************************************************* This file is provided under the license found in the LICENSE file in the top-level director...
Copyright ( C ) 2022/2023 The Charles Stark Draper Laboratory , Inc. This research was developed with funding from the Defense Advanced Research Projects Agency ( DARPA ) . open Core open Bap.Std open Bap_core_theory open OUnit2 module Ir = Vibes_ir.Types modu...
619258fb3aea762acc80f0333066dbaf96605de47b1fb50c747e64486bc239a9
input-output-hk/cardano-explorer
GenesisSummary.hs
# LANGUAGE DataKinds # {-# LANGUAGE OverloadedStrings #-} module Explorer.Web.Api.Legacy.GenesisSummary ( genesisSummary ) where import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Reader (ReaderT) import Data.Fixed (Fixed (..), Uni) import Data.Maybe (listT...
null
https://raw.githubusercontent.com/input-output-hk/cardano-explorer/3abcb32339edac7c2397114a1d170cc76b82e9b6/cardano-explorer-webapi/src/Explorer/Web/Api/Legacy/GenesisSummary.hs
haskell
# LANGUAGE OverloadedStrings #
# LANGUAGE DataKinds # module Explorer.Web.Api.Legacy.GenesisSummary ( genesisSummary ) where import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Reader (ReaderT) import Data.Fixed (Fixed (..), Uni) import Data.Maybe (listToMaybe) import Database....
52d36abfbd9e9421bf1264226126dc8caafe40569315cc6d87c5ceff56759258
hkoktay/the-reasoned-schemer
chapter07.scm
Chapter 7 : A Bit Too Much (load "test-check.scm") (load "minikanren/mkprelude.scm") Page 87 (define bit-xoro (lambda (x y r) (conde ((== 0 x) (== 0 y) (== 0 r)) ((== 1 x) (== 0 y) (== 1 r)) ((== 0 x) (== 1 y) (== 1 r)) ((== 1 x) (== 1 y) (== 0 r)) (else fail)))) ;; Another version...
null
https://raw.githubusercontent.com/hkoktay/the-reasoned-schemer/847d1e4a5a1bb777604b02828b3497be6de8d189/chapter07.scm
scheme
Another version of bit-xoro with bit-nando (define bit-xoro (lambda (x y r) (fresh (s t u) (bit-nando x y s) (bit-nando x s t) (bit-nando s y u) (bit-nando t u r)))) (define bit-nando (lambda (x y r) (conde (else fail)))) Another way to define bit-ando is to use bit...
Chapter 7 : A Bit Too Much (load "test-check.scm") (load "minikanren/mkprelude.scm") Page 87 (define bit-xoro (lambda (x y r) (conde ((== 0 x) (== 0 y) (== 0 r)) ((== 1 x) (== 0 y) (== 1 r)) ((== 0 x) (== 1 y) (== 1 r)) ((== 1 x) (== 1 y) (== 0 r)) (else fail)))) ( (= = 0 x...
3bdfd50d33927cbe3cfdcc9bf78437a2b25efd032e09c7d05a89e9853cc1c251
fgalassi/cs61a-sp11
2.22.scm
(define (square-list items) (define (iter things answer) (if (null? things) answer (iter (cdr things) (cons (square (car things)) answer)))) (iter items nil)) ; because cons every time prepends the element to answer (define (square-list items) (define (iter things ...
null
https://raw.githubusercontent.com/fgalassi/cs61a-sp11/66df3b54b03ee27f368c716ae314fd7ed85c4dba/homework/2.22.scm
scheme
because cons every time prepends the element to answer because cons builds a list with an element and a list. answer and car things are a list and an element. the other way around.
(define (square-list items) (define (iter things answer) (if (null? things) answer (iter (cdr things) (cons (square (car things)) answer)))) (iter items nil)) (define (square-list items) (define (iter things answer) (if (null? things) answer (it...
5f295043c0eddfa09efa018939a503d25af7ae3b21eaac2750f055d4360cec3a
javazquez/arnoldclj_interpreter
lexr.clj
(ns arnoldclj_s.lexr (:require [instaparse.core :as insta] [instaparse.failure :as fail])) (def transform-ops { :bool (fn [ value] [:bool value]) :false (fn [value] [:false 0]) :true (fn [value] [:true 1]) :one (fn [ value] [:one 1]) :quotedstring (fn [ text ] ...
null
https://raw.githubusercontent.com/javazquez/arnoldclj_interpreter/d6860d7063a121103293b10dca65b113ad843d26/src/arnoldclj_s/lexr.clj
clojure
" " " ")) -to-test-for-texts-not-fitting-an-instaparse-grammar-clojure pretty-print a failure as a string create an Exception with the pretty-printed failure message
(ns arnoldclj_s.lexr (:require [instaparse.core :as insta] [instaparse.failure :as fail])) (def transform-ops { :bool (fn [ value] [:bool value]) :false (fn [value] [:false 0]) :true (fn [value] [:true 1]) :one (fn [ value] [:one 1]) :quotedstring (fn [ text ] ...
ae0ecf26c34dee777b475a5c002b828041af1940374a72013a37821612476022
agda/agda
Tests.hs
{-# LANGUAGE DoAndIfThenElse #-} # LANGUAGE LambdaCase # # LANGUAGE PatternGuards # module Compiler.Tests where import Utils import Test.Tasty import Test.Tasty.Silver.Advanced (readFileMaybe) import Test.Tasty.Silver import Test.Tasty.Silver.Filter import Data.Bits (finiteBitSize) import qual...
null
https://raw.githubusercontent.com/agda/agda/4d36cb37f8bfb765339b808b13356d760aa6f0ec/test/Compiler/Tests.hs
haskell
# LANGUAGE DoAndIfThenElse # --------------------------------------------------------------------------- These test are disabled on all backends. --------------------------------------------------------------------------- recursive pattern-matching lambdas was disabled. ------------------------------------------...
# LANGUAGE LambdaCase # # LANGUAGE PatternGuards # module Compiler.Tests where import Utils import Test.Tasty import Test.Tasty.Silver.Advanced (readFileMaybe) import Test.Tasty.Silver import Test.Tasty.Silver.Filter import Data.Bits (finiteBitSize) import qualified Data.Text as T import Data.Text....
794bd117aea3c3a8ca520be52f8b2e540d840e5c2cc5e90216052c4e4d495cce
stchang/macrotypes
dep-ind-cur2+nat+datum.rkt
#lang racket (require (for-syntax syntax/parse) "dep-ind-cur2+nat.rkt") extends nat lib with # % datum (provide (all-from-out "dep-ind-cur2+nat.rkt") (rename-out [new-datum #%datum])) re - define # % datum to use the new ` nat ` (define-syntax new-datum (syntax-parser [(_ . n:exact-nonneg...
null
https://raw.githubusercontent.com/stchang/macrotypes/05ec31f2e1fe0ddd653211e041e06c6c8071ffa6/turnstile-example/turnstile/examples/dep/dep-ind-cur2%2Bnat%2Bdatum.rkt
racket
#lang racket (require (for-syntax syntax/parse) "dep-ind-cur2+nat.rkt") extends nat lib with # % datum (provide (all-from-out "dep-ind-cur2+nat.rkt") (rename-out [new-datum #%datum])) re - define # % datum to use the new ` nat ` (define-syntax new-datum (syntax-parser [(_ . n:exact-nonneg...
ed9f4e81ad9b4c821f3d85058bb799cbd4819fb2ac656546f38474f022b2e2cd
austinhaas/goalie
goalie.clj
(ns pettomato.goalie (:require [clojure.core.logic :as l] [clojure.core.logic.protocols :refer (bind)] [pettomato.goalie.graph :refer (mk-node in-node?)]) (:import [clojure.core.logic Substitutions Choice])) ;; How nodes are attached to substitutions: (def gkey ::goalie-node) (defn get-node [a] (gkey ...
null
https://raw.githubusercontent.com/austinhaas/goalie/6166dd05c27f5abdf5c760687d6efc110846abf1/src/com/pettomato/goalie.clj
clojure
How nodes are attached to substitutions: Convenient constructors. parent-node is a hack to provide context when a branch fails. Hooks Hooks are functions that are invoked whenever a new node is created. They take a single argument: the new node. Hooks are intended to be used for their side-effects; returned valu...
(ns pettomato.goalie (:require [clojure.core.logic :as l] [clojure.core.logic.protocols :refer (bind)] [pettomato.goalie.graph :refer (mk-node in-node?)]) (:import [clojure.core.logic Substitutions Choice])) (def gkey ::goalie-node) (defn get-node [a] (gkey (meta a))) (defn set-node [a node] (vary-met...
05a5ec0e2f4fc2be80fbd1933ff84175de263d6688a387b334f0e8de39c4cc65
haskell/vector
length-word64.hs
import qualified Data.Vector as U import Data.Word main = print (U.length (U.replicate 1 (7 :: Word64)))
null
https://raw.githubusercontent.com/haskell/vector/4c87e88f07aad166c6ae2ccb94fa539fbdd99a91/old-testsuite/microsuite/length-word64.hs
haskell
import qualified Data.Vector as U import Data.Word main = print (U.length (U.replicate 1 (7 :: Word64)))
dd59dbb0a65a1ed9ac713700f10fda8f161a93eca50cf9de5a615264e7e84b62
tfausak/monadoc-5
LogoSpec.hs
module Monadoc.Handler.LogoSpec where import qualified Monadoc import qualified Monadoc.Handler.Logo as Logo import Monadoc.Prelude import qualified Monadoc.Type.App as App import qualified Monadoc.Type.Config as Config import qualified Monadoc.Type.Context as Context import qualified Network.HTTP.Types as Http import...
null
https://raw.githubusercontent.com/tfausak/monadoc-5/5361dd1870072cf2771857adbe92658118ddaa27/src/test/Monadoc/Handler/LogoSpec.hs
haskell
module Monadoc.Handler.LogoSpec where import qualified Monadoc import qualified Monadoc.Handler.Logo as Logo import Monadoc.Prelude import qualified Monadoc.Type.App as App import qualified Monadoc.Type.Config as Config import qualified Monadoc.Type.Context as Context import qualified Network.HTTP.Types as Http import...
69a688d96b1a6b13a4e4a6aadf7e2575c3d8144fa307fcdfb514eb729d7ab64b
Deducteam/zenon_modulo
ext_focal.mli
Copyright 2008 INRIA $ I d : ext_focal.mli , v 1.1 2008 - 08 - 26 13:47:41 doligez Exp $ (* This file left blank intentionally. *)
null
https://raw.githubusercontent.com/Deducteam/zenon_modulo/9534fbdca0d009a513cb40d9a5a2a98329835c63/ext_focal.mli
ocaml
This file left blank intentionally.
Copyright 2008 INRIA $ I d : ext_focal.mli , v 1.1 2008 - 08 - 26 13:47:41 doligez Exp $
5529fb8e6a464f147f658a0279f3992c82c11137457e1d407ead4e1d054b9d87
jakemcc/sicp-study
section4_test.clj
(ns section4-test (:use clojure.test section4)) (use-fixtures :each (fn [f] (reset-global-environment) (f))) (deftest test-self-eval (is (= 5 (interpret 5))) (is (= "hey" (interpret "hey")))) (deftest test-expressions (are [x y] (= x y) 3 (interpret '(+ 1 2)) -14 (interpret '(* (- ...
null
https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section4.1/test/section4_test.clj
clojure
'(if nil false true)
(ns section4-test (:use clojure.test section4)) (use-fixtures :each (fn [f] (reset-global-environment) (f))) (deftest test-self-eval (is (= 5 (interpret 5))) (is (= "hey" (interpret "hey")))) (deftest test-expressions (are [x y] (= x y) 3 (interpret '(+ 1 2)) -14 (interpret '(* (- ...
daa6315183bf4ef74d3f23a55e2a63e3464b26faa49322a59ee3d676dca1ed62
ocsigen/lwt
lwt_mutex.ml
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) [ Lwt_sequence ] is deprecated – we do n't want users outside Lwt using it . However , it is still used internally by Lwt . So , briefly disable warning 3 ( " deprecated "...
null
https://raw.githubusercontent.com/ocsigen/lwt/af835c582bb1b37719246080be41d067301fcf40/src/core/lwt_mutex.ml
ocaml
We do not use [Lwt.wakeup] here to avoid a stack overflow when unlocking a lot of threads.
This file is part of Lwt , released under the MIT license . See LICENSE.md for details , or visit . details, or visit . *) [ Lwt_sequence ] is deprecated – we do n't want users outside Lwt using it . However , it is still used internally by Lwt . So , briefly disable warning 3 ( " deprecated "...
c66fde6c707f6998c6e415d4f9290acd95dbb93d3a0237d9dc61bf9fbda59350
soarlab/FPTaylor
fpu.mli
Copyright 2011 This file is part of the ocaml interval library . The ocaml interval library is free software : you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 ...
null
https://raw.githubusercontent.com/soarlab/FPTaylor/efbbc83970fe3c9f4cb33fafbbe1050dd18749cd/INTERVAL/fpu.mli
ocaml
* Floating point addition in nearest, low and high mode * Floating point substraction in nearest, low and high mode * Floating point multiplication in nearest, low and high mode * Floating point division in nearest, low and high mode * Modulo (result is supposed to be exact) * Floating point square root in nearest...
Copyright 2011 This file is part of the ocaml interval library . The ocaml interval library is free software : you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation , either version 3 ...
b5d4529030809a9c85b387cd7792c78f170ffaec527fbab0821981ebcbb1cf6a
amnh/PCG
Partition.hs
----------------------------------------------------------------------------- -- | -- Module : File.Format.Nexus.Partition Copyright : ( c ) 2015 - 2021 Ward Wheeler -- License : BSD-style -- -- Maintainer : -- Stability : provisional -- Portability : portable -- -- Partitioning functions, whic...
null
https://raw.githubusercontent.com/amnh/PCG/9341efe0ec2053302c22b4466157d0a24ed18154/lib/file-parsers/src/File/Format/Nexus/Partition.hs
haskell
--------------------------------------------------------------------------- | Module : File.Format.Nexus.Partition License : BSD-style Maintainer : Stability : provisional Portability : portable Partitioning functions, which take a list of some type and produce a tuple. Where there is a bloc...
Copyright : ( c ) 2015 - 2021 Ward Wheeler module File.Format.Nexus.Partition where import File.Format.Newick import File.Format.Nexus.Data partitionAssumptionBlock :: [AssumptionField] -> ([StepMatrix],[Bool]) partitionAssumptionBlock = foldr f ([],[]) where f (TCMMat n) (a,b) = (n:a, b) ...
8c5338964c4b0132a7fad0825f7b35581ac6f09eb2c97339eab90059acff2b7c
rd--/hsc3
ringz.help.hs
-- ringz ringz (dustId 'α' ar 3 * 0.3) 2000 2 -- ringz ringz (whiteNoiseId 'α' ar * 0.005) 2000 0.5 -- ringz ; modulate frequency let n = whiteNoiseId 'α' ar f = xLine kr 100 3000 10 RemoveSynth in ringz (n * 0.005) f 0.5 * 0.2 -- ringz let f = xLine kr 100 3000 10 RemoveSynth in ringz (impulse ar 6 0.3) f 0.5 *...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/ringz.help.hs
haskell
ringz ringz ringz ; modulate frequency ringz ringz ; modulate ring time ringz ; modulate ring time opposite direction
ringz (dustId 'α' ar 3 * 0.3) 2000 2 ringz (whiteNoiseId 'α' ar * 0.005) 2000 0.5 let n = whiteNoiseId 'α' ar f = xLine kr 100 3000 10 RemoveSynth in ringz (n * 0.005) f 0.5 * 0.2 let f = xLine kr 100 3000 10 RemoveSynth in ringz (impulse ar 6 0.3) f 0.5 * 0.1 let rt = xLine kr 4 0.04 8 RemoveSynth in ringz (im...
91d3dbdf6d5c79764f8cb25b1cd6e52b33256d3b02b03534ca34cccec52ab169
osstotalsoft/functional-guy
09.Cycle.hs
cycle' (x : xs) = x : cycle' (xs ++ [x]) test = take 5 . cycle' $ [1, 2]
null
https://raw.githubusercontent.com/osstotalsoft/functional-guy/c02a8b22026c261a9722551f3641228dc02619ba/Chapter2.%20The%20foundation/Exercises/01.Recursion/09.Cycle.hs
haskell
cycle' (x : xs) = x : cycle' (xs ++ [x]) test = take 5 . cycle' $ [1, 2]
295ae3b52354d1733b9349fc32f044ec56b77fb730526aa30535b9f1111ac8f8
ghc/packages-Cabal
FileMonitor.hs
module UnitTests.Distribution.Client.FileMonitor (tests) where import Distribution.Parsec (simpleParsec) import Data.Proxy (Proxy (..)) import Control.Monad import Control.Exception import Control.Concurrent (threadDelay) import qualified Data.Set as Set import System.FilePath import qualified System.Directory as IO ...
null
https://raw.githubusercontent.com/ghc/packages-Cabal/6f22f2a789fa23edb210a2591d74ea6a5f767872/cabal-install/tests/UnitTests/Distribution/Client/FileMonitor.hs
haskell
Check the file system behaves the way we expect it to we rely on file mtimes having a reasonable resolution write garbage into the binary cache file no files to monitor monitor a file that is expected to exist a file that doesn't exist at snapshot time is considered to have changed a file doesn't exist at snaps...
module UnitTests.Distribution.Client.FileMonitor (tests) where import Distribution.Parsec (simpleParsec) import Data.Proxy (Proxy (..)) import Control.Monad import Control.Exception import Control.Concurrent (threadDelay) import qualified Data.Set as Set import System.FilePath import qualified System.Directory as IO ...
da157c7e61dd84d22ebddeb6977731db1bd0701a05ebc711dd20de01858c36de
reenberg/wobot
Exceptions.hs
# LANGUAGE ExistentialQuantification # {-# LANGUAGE DeriveDataTypeable #-} Copyright ( c ) 2008 The President and Fellows of Harvard College . -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions -- are met: 1 . Red...
null
https://raw.githubusercontent.com/reenberg/wobot/ce7f112096ba1abd43b8d29da7e8944c2a004125/flask/language-nesc/Language/NesC/Parser/Exceptions.hs
haskell
# LANGUAGE DeriveDataTypeable # 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 disclaimer. notice, this list of conditions and the following disclaimer in the ...
# LANGUAGE ExistentialQuantification # Copyright ( c ) 2008 The President and Fellows of Harvard College . 1 . Redistributions of source code must retain the above copyright 2 . Redistributions in binary form must reproduce the above copyright 3 . Neither the name of the University nor the names of i...
eb9e4a2138c163978afa6847026b1e6177d592c6249df7c129cf9c6dcb5c6756
slindley/dependent-haskell
FreeApplicative0.hs
{- Free applicative functor over a functor -} {- (plain version - no type-level computation) -} {-# LANGUAGE GADTs, KindSignatures #-} import Control.Applicative heterogeneous lists wrt a functor f : FList f [ a1, ... ,an ] = = [ f a1 , ... , f ak ] heterogeneous lists wrt a functor f: ...
null
https://raw.githubusercontent.com/slindley/dependent-haskell/f0ea64b4e50464e8c60c11a82a7f432b0fccf122/Free/FreeApplicative0.hs
haskell
Free applicative functor over a functor (plain version - no type-level computation) # LANGUAGE GADTs, KindSignatures # the free applicative functor the free alternative applicative functor
import Control.Applicative heterogeneous lists wrt a functor f : FList f [ a1, ... ,an ] = = [ f a1 , ... , f ak ] heterogeneous lists wrt a functor f: FList f [a1,...,an] == [f a1, ..., f ak] -} data FList (f :: * -> *) (ts :: *) where FNil :: FList f (...
42544a8fda55ab4c01dfdaa5e392c4c74c918d1cfe81731a4248bc9ddb4064ee
aprell/miniml
type.ml
type t = | Int | Bool | Unit | Fun of t * t let rec string_of_type = function | Int -> "int" | Bool -> "bool" | Unit -> "unit" | Fun (t1, t2) -> Printf.sprintf "%s -> %s" (string_of_type t1) (string_of_type t2)
null
https://raw.githubusercontent.com/aprell/miniml/0ed013541dadfcd041b84ff3007c994140f70e53/src/type.ml
ocaml
type t = | Int | Bool | Unit | Fun of t * t let rec string_of_type = function | Int -> "int" | Bool -> "bool" | Unit -> "unit" | Fun (t1, t2) -> Printf.sprintf "%s -> %s" (string_of_type t1) (string_of_type t2)
526108ebd51d24bc18351402770d0e54faee9497b6b0e6f2ae8d86b2ea2a957c
ztellman/collection-check
core.cljc
(ns collection-check.core (:require [clojure.string :as str] [clojure.test.check :refer (quick-check)] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] Macros Clojure #?(:clj [clojure.test :as ct :refer [is]] :cljs [cljs.test :as ct :refer-macros [is]]) ...
null
https://raw.githubusercontent.com/ztellman/collection-check/f715ba2ea63a1dcce66f80e9522ea27948d5bddf/src/collection_check/core.cljc
clojure
if it's a vector, we need to choose a valid index (def reduced* (ns-resolve 'clojure.core 'reduced)) ;; CLJC )
(ns collection-check.core (:require [clojure.string :as str] [clojure.test.check :refer (quick-check)] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] Macros Clojure #?(:clj [clojure.test :as ct :refer [is]] :cljs [cljs.test :as ct :refer-macros [is]]) ...
67e549a974edad71c06174b1f9125e08a4038197c0e1cd9b186242281aa0bb41
mads-hartmann/lt-ocaml
ocaml.cljs
(ns lt.objs.langs.ocaml (:require [lt.object :as object] [lt.objs.editor :as ed] [lt.objs.editor.pool :as pool] [lt.objs.command :as cmd] [lt.objs.clients.tcp :as tcp] [lt.objs.clients :as clients] [lt.objs.proc :as proc] [lt.objs.fil...
null
https://raw.githubusercontent.com/mads-hartmann/lt-ocaml/b68dabe80b527265db746948e9ac480c06f44158/src/lt/plugins/ocaml.cljs
clojure
This declares a new type of object called "ocaml-lang" and also lets you asign things to it; in your case a set of with just a tag. Note: it will return the empty string. So I've created the little hack below such that I can evaluate the buffer live and still be able to find the file. This makes development ea...
(ns lt.objs.langs.ocaml (:require [lt.object :as object] [lt.objs.editor :as ed] [lt.objs.editor.pool :as pool] [lt.objs.command :as cmd] [lt.objs.clients.tcp :as tcp] [lt.objs.clients :as clients] [lt.objs.proc :as proc] [lt.objs.fil...
07fefcaf1b2131c2856be1c07f7fca2ad514e3eab7904e2d84f7c7e8f6838fac
Lupino/haskell-periodic
Memory.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} # LANGUAGE RecordWildCards # {-# LANGUAGE TypeFamilies #-} module Periodic.Server.Persist.Memory ( Memory , useMemory , memorySize ) where import Data.Int ...
null
https://raw.githubusercontent.com/Lupino/haskell-periodic/016e248301450ab82949c55e28f296c5434a6158/periodic-server/src/Periodic/Server/Persist/Memory.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE RankNTypes # # LANGUAGE TypeFamilies #
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE RecordWildCards # module Periodic.Server.Persist.Memory ( Memory , useMemory , memorySize ) where import Data.Int (Int64) import Data.IOMap (IOMap) import qualified Data.IOMap ...
8ecadfc80866fca579bef4182f42f95372d8b1e86e1ff7ce002a6df6a021930e
witan-org/witan
notypecheck.ml
(*************************************************************************) This file is part of Witan . (* *) Copyright ( C ) 2017 CEA ( Commi...
null
https://raw.githubusercontent.com/witan-org/witan/d26f9f810fc34bf44daccb91f71ad3258eb62037/src/solver/notypecheck.ml
ocaml
*********************************************************************** alternatives) Automatique) ...
This file is part of Witan . Copyright ( C ) 2017 CEA ( Commissariat à l'énergie atomique et aux énergies ( Institut National de Recherche en Informatique et en CNRS ( Centre nation...
f6b8ff5f7a194f393e4bc7b3c05ad17279b43faeb990da6e1183f8370ba11755
HugoPeters1024/hs-sleuth
Substrings.hs
| Tests for substring functions ( @take@ , @split@ , @isInfixOf@ , etc . ) # OPTIONS_GHC -fno - enable - rewrite - rules -fno - warn - missing - signatures # module Tests.Properties.Substrings ( testSubstrings ) where import Data.Char (isSpace) import Test.QuickCheck import Test.Tasty (TestTree, testGroup) ...
null
https://raw.githubusercontent.com/HugoPeters1024/hs-sleuth/91aa2806ea71b7a26add3801383b3133200971a5/test-project/text-nofusion/tests/Tests/Properties/Substrings.hs
haskell
t_lines' = lines' `eqP` (map unpackS . T.lines') where lines' "" = [] lines' s = let (l, s') = break eol s in l : case s' of [] -> [] ('\r':'\n':s'') -> lines' s'' ...
| Tests for substring functions ( @take@ , @split@ , @isInfixOf@ , etc . ) # OPTIONS_GHC -fno - enable - rewrite - rules -fno - warn - missing - signatures # module Tests.Properties.Substrings ( testSubstrings ) where import Data.Char (isSpace) import Test.QuickCheck import Test.Tasty (TestTree, testGroup) ...
079da22d4d372b8fb9c8f5923d107db8fe793cf0ba486b179d3d6c251263d838
johannesgerer/blazeT
Text.hs
{-# LANGUAGE RankNTypes #-} module Text.BlazeT.Renderer.Text ( renderMarkupBuilder , renderMarkupBuilderWith , renderMarkup , renderMarkupWith , renderHtmlBuilder , renderHtmlBuilderWith , renderHtml , renderHtmlWith ) where import Data.ByteString (ByteString) import ...
null
https://raw.githubusercontent.com/johannesgerer/blazeT/4dc7c9b2b700d43e6b8550b218b6c67bdf20f565/src/Text/BlazeT/Renderer/Text.hs
haskell
# LANGUAGE RankNTypes #
module Text.BlazeT.Renderer.Text ( renderMarkupBuilder , renderMarkupBuilderWith , renderMarkup , renderMarkupWith , renderHtmlBuilder , renderHtmlBuilderWith , renderHtml , renderHtmlWith ) where import Data.ByteString (ByteString) import Data.Text (Text) import q...
4c6e1a904c2fcfb6464c7165e9574646088ed9eb322f8bba1339d00e165cea1b
mauny/the-functional-approach-to-programming
prelude.ml
(* +type_option+ *) type 'a option = None | Some of 'a;; (* +type_option+ *) let print_newline () = print_string "\026\n\026"; flush std_out;; let rec interval m n = if m > n then [] else m::interval (m+1) n;; (* +filter+ *) let rec filter p = fun [] -> [] | (a::l) -> if p a then a::filter p l e...
null
https://raw.githubusercontent.com/mauny/the-functional-approach-to-programming/1ec8bed5d33d3a67bbd67d09afb3f5c3c8978838/cl-75/Util/prelude.ml
ocaml
+type_option+ +type_option+ +filter+ +filter+ +partition+ +partition+ +select+ +select+
type 'a option = None | Some of 'a;; let print_newline () = print_string "\026\n\026"; flush std_out;; let rec interval m n = if m > n then [] else m::interval (m+1) n;; let rec filter p = fun [] -> [] | (a::l) -> if p a then a::filter p l else filter p l ;; let max_int x1 x2 = if x1 < x2 then...
a9c5c95638c16dc333a8fa223717fc400955f1b66c8fbd2c26b321017cb98a3c
schell/odin
Checkpoint.hs
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ScopedTypeVariables #-} module Odin.Engine.Checkpoint ( Checkpoint , readCheckpoint , updateCheckpoint , withCheckpoint , checkpoint ) where import Control.Monad.IO.Clas...
null
https://raw.githubusercontent.com/schell/odin/97ae1610a7abd19aa150bc7dfc132082d88ca9ea/odin-engine/src/Odin/Engine/Checkpoint.hs
haskell
# LANGUAGE FlexibleContexts # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # | Takes a unique key representing your checkpoint and might return a value stored at that checkpoint. See if an existing store exists. | Takes a unique key representing your checkpoint along with a value and st...
# LANGUAGE MultiParamTypeClasses # module Odin.Engine.Checkpoint ( Checkpoint , readCheckpoint , updateCheckpoint , withCheckpoint , checkpoint ) where import Control.Monad.IO.Class (MonadIO (..)) import Data.Hashable import Data.String (IsString (..)) import ...
ef161d8f15d637f7f721924bfe33d2184638661f204d385218d1abbf864df5f9
5HT/ant
ALGraphics.ml
open XNum; open Runtime; open Logging; open VM; open Typesetting; open Engine; open ParseState; open ALCoding; open ALEnvironment; open ALDim; module UString = Unicode.UString; module SymbolMap = Unicode.SymbolTable.SymbolMap; (* gfx-commands *) value encode_line_cap cap = match cap with [ Graphic.Butt -> Types...
null
https://raw.githubusercontent.com/5HT/ant/6acf51f4c4ebcc06c52c595776e0293cfa2f1da4/Markup/ALGraphics.ml
ocaml
gfx-commands
open XNum; open Runtime; open Logging; open VM; open Typesetting; open Engine; open ParseState; open ALCoding; open ALEnvironment; open ALDim; module UString = Unicode.UString; module SymbolMap = Unicode.SymbolTable.SymbolMap; value encode_line_cap cap = match cap with [ Graphic.Butt -> Types.Symbol sym_Butt | ...
3e433f904fc7f7d966ee17b62ff8699e860c5a74a477e4eec0617c3911bfe751
ghc/ghc
StgUtils.hs
# LANGUAGE LambdaCase # module GHC.StgToJS.StgUtils ( bindingRefs , hasExport , collectTopIds , collectIds , removeTick , isUpdatableRhs , isInlineExpr , exprRefs -- * Live vars , LiveVars , liveVars , liveStatic , stgRhsLive , stgExprLive , stgTopBindLive , stgLetNoEscapeLive , stgLn...
null
https://raw.githubusercontent.com/ghc/ghc/cc25d52e0f65d54c052908c7d91d5946342ab88a/compiler/GHC/StgToJS/StgUtils.hs
haskell
* Live vars | collect Ids that this binding refers to (does not include the bindees themselves) fixme test this: [isExported[isGlobalId, not.isForbidden] the GHC.Prim module has no js source file --------------------------------------------------- Live vars stgLneLiveExpr StgRhsCon {} = [] | ret...
# LANGUAGE LambdaCase # module GHC.StgToJS.StgUtils ( bindingRefs , hasExport , collectTopIds , collectIds , removeTick , isUpdatableRhs , isInlineExpr , exprRefs , LiveVars , liveVars , liveStatic , stgRhsLive , stgExprLive , stgTopBindLive , stgLetNoEscapeLive , stgLneLiveExpr , stg...
a40e5ea8b9ff719d111e99fe32bcfd05726e5b5b59ebe22925aa6f2e9aba80d4
l-x/deeperl
deeperl_glossary_language_pairs.erl
@private -module(deeperl_glossary_language_pairs). -behaviour(gen_deeperl_method). %% API -export([request/1, response/1]). request({}) -> { get, { "/v2/glossary-language-pairs", [] } }. response(Body) -> Result = jiffy:decode(Body, [return_maps]), {o...
null
https://raw.githubusercontent.com/l-x/deeperl/17441311bdd0d209ba60fbcd78795f9552c6538f/src/deeperl_glossary_language_pairs.erl
erlang
API
@private -module(deeperl_glossary_language_pairs). -behaviour(gen_deeperl_method). -export([request/1, response/1]). request({}) -> { get, { "/v2/glossary-language-pairs", [] } }. response(Body) -> Result = jiffy:decode(Body, [return_maps]), {ok, [ ...
0dbc7db4e8f752b6276a850e59c1422d7b151d04ac9ca258f0143da75a14b4f0
openbadgefactory/salava
my_test.clj
(ns salava.file.my-test (:require [clojure.java.io :as io] [slingshot.slingshot :refer :all] [midje.sweet :refer :all] [salava.core.migrator :as migrator] [salava.test-utils :refer [test-api-request test-upload login! logout! test-user-credentials]] [salava....
null
https://raw.githubusercontent.com/openbadgefactory/salava/97f05992406e4dcbe3c4bff75c04378d19606b61/test_old/clj/salava/file/my_test.clj
clojure
(ns salava.file.my-test (:require [clojure.java.io :as io] [slingshot.slingshot :refer :all] [midje.sweet :refer :all] [salava.core.migrator :as migrator] [salava.test-utils :refer [test-api-request test-upload login! logout! test-user-credentials]] [salava....
6d7934286ab0fbf8d30b50676e9b978ef10fc4dcfae47d0b30daf05700e622ee
heidegger/JSConTest
jsinter.mli
(** javascript interface of the transaction library *) type t = { propAss : string; mCall : string; newObj : string; pushUndo : string; propAcc : string; js_namespace : string; }
null
https://raw.githubusercontent.com/heidegger/JSConTest/7c807a76af998da25775fba1f5cbe1cf8031d121/ocaml/transform/jsinter.mli
ocaml
* javascript interface of the transaction library
type t = { propAss : string; mCall : string; newObj : string; pushUndo : string; propAcc : string; js_namespace : string; }
f3bc12bbdca84a8fefd14f751fba4420dc193afc6e632bfc2eda727269b6cd2c
jwiegley/hours
Main.hs
{-# LANGUAGE GADTs #-} # LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Main where import Data.Foldable import Data.Maybe (fromMaybe) import Data.Semigroup (Semigroup((<>))) import Data.Time.Cl...
null
https://raw.githubusercontent.com/jwiegley/hours/33696668bdd3a71947c84e58e342f4b5dc7d879e/Main.hs
haskell
# LANGUAGE GADTs #
# LANGUAGE NoMonomorphismRestriction # # LANGUAGE RecordWildCards # # LANGUAGE ScopedTypeVariables # # LANGUAGE ViewPatterns # module Main where import Data.Foldable import Data.Maybe (fromMaybe) import Data.Semigroup (Semigroup((<>))) import Data.Time.Clock (UTCTime, NominalDi...