_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
3293aa5a95d61399468ff94b72902a40c52cda4e6d383326f372c04c8b0ae9fe
lehins/massiv
Arithmetic.hs
{-# LANGUAGE BangPatterns #-} module Main where import Criterion.Main import Data.Massiv.Array as A import Data . Massiv . Core . Operations import Data . Massiv . Array . SIMD import Data.Massiv.Bench as A main :: IO () main = do let !sz = Sz2 16 16 !arr1' = arrRLightIx2 S Seq sz !arr2' = compute...
null
https://raw.githubusercontent.com/lehins/massiv/67a920d4403f210d0bfdad1acc4bec208d80a588/massiv-bench/bench/Arithmetic.hs
haskell
# LANGUAGE BangPatterns # !arrV1' = arrRLightIx2 V Seq sz bgroup "Addition" [ bgroup "V (Seq)" [ bench "zipWith (+)" $ whnf (computeAs V . A.zipWith (+) arr1) arr2 ] ] bgroup "Addition" [ bgroup "V (Par)" [ bench "zipWi...
module Main where import Criterion.Main import Data.Massiv.Array as A import Data . Massiv . Core . Operations import Data . Massiv . Array . SIMD import Data.Massiv.Bench as A main :: IO () main = do let !sz = Sz2 16 16 !arr1' = arrRLightIx2 S Seq sz !arr2' = computeAs S $ transpose arr1' ! ' ...
ac49248ab7e791179c19e3df3aaaed0632c3fc85269a1b468eadc49c3e2490e5
TrustInSoft/tis-interpreter
pdg_state.ml
Modified by TrustInSoft (**************************************************************************) (* *) This file is part of Frama - C. (* ...
null
https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/pdg/pdg_state.ml
ocaml
************************************************************************ alternatives) ...
Modified by TrustInSoft This file is part of Frama - C. Copyright ( C ) 2007 - 2015 CEA ( Commissariat à l'énergie atomique et aux énergies Lesser General Public License as published by the Free Softwa...
611ea25cfd638e7655a376d6b33bd445ce718fe00393578392e808747b164c59
maxsnyder2000/TheRelationalParser
test-boolean-algebra.scm
(load "load-parser.scm") (display (run-staged 100 (q) (evalo-staged (the-relational-parser `(letrec ([neg (lambda (x) (if (equal? x 1) 0 1))] [add (lambda (x y) (if (or (equal? x 1) (equal? y 1)) 1 0))] [mul (lambda (x y) (if (and (equal? x 1) (equal? y 1)) 1 0))]) (parse...
null
https://raw.githubusercontent.com/maxsnyder2000/TheRelationalParser/52d25ac8ed27309d35a4d30095a6985dc4550861/test-boolean-algebra.scm
scheme
(load "load-parser.scm") (display (run-staged 100 (q) (evalo-staged (the-relational-parser `(letrec ([neg (lambda (x) (if (equal? x 1) 0 1))] [add (lambda (x y) (if (or (equal? x 1) (equal? y 1)) 1 0))] [mul (lambda (x y) (if (and (equal? x 1) (equal? y 1)) 1 0))]) (parse...
1590c6b1ff596caf4536c3fab87dace9e669109729a56f503f16c057d45fd479
eryx67/vk-api
API.hs
{-# LANGUAGE OverloadedStrings #-} # LANGUAGE RecordWildCards # -- | Bindings for < VKontakte> -- -- Prepare our own state for application: -- > data AppState = AppState [ T.Text ] -- > -- > appState = AppState [] -- -- * Authentication and authorization -- -- Prepare settings for authorization: -- -- >userName ::...
null
https://raw.githubusercontent.com/eryx67/vk-api/73665a2a3a3ac3b9115fd12360c3bc7191dcb0f8/src/VK/API.hs
haskell
# LANGUAGE OverloadedStrings # | Bindings for < VKontakte> Prepare our own state for application: > > appState = AppState [] * Authentication and authorization Prepare settings for authorization: >userName :: T.Text >userName = "" > >userPass :: T.Text >userPass = "mypass" > >appId :: Integer >appId ...
# LANGUAGE RecordWildCards # > data AppState = AppState [ T.Text ] > appScope : : [ AuthPermissions ] > = [ Audio , Video ] > vksettings : : > vksettings = createSettings appId userName userPass ( Just appScope ) Authorize and get user 's VKontakte i d now : > execVKAPI appState vksettings $ do > l...
982c00fb6e77d7ea494bab4beb610e53496b109907ef06a45dc65a13ac657bfa
MastodonC/kixi.hecuba
scheduler.clj
(ns kixi.hecuba.controller.scheduler "Scheduling functions" (:require [clojurewerkz.quartzite.conversion :as qc] [clojurewerkz.quartzite.jobs :as j] [clojurewerkz.quartzite.scheduler :as qs] [clojurewerkz.quartzite.schedule.cron :as cron] [clojurewerkz...
null
https://raw.githubusercontent.com/MastodonC/kixi.hecuba/467400bbe670e74420a2711f7d49e869ab2b3e21/src/clj/kixi/hecuba/controller/scheduler.clj
clojure
(ns kixi.hecuba.controller.scheduler "Scheduling functions" (:require [clojurewerkz.quartzite.conversion :as qc] [clojurewerkz.quartzite.jobs :as j] [clojurewerkz.quartzite.scheduler :as qs] [clojurewerkz.quartzite.schedule.cron :as cron] [clojurewerkz...
c5b159ca43bf88b25869cdfc841452670bdf83bd1a847e5d55c0c21773acaebc
biocaml/biocaml
test_fasta.ml
open Core.Std open Biocaml_internal_utils open OUnit open Biocaml let dbg fmt = eprintf ("DBG: " ^^ fmt ^^ "\n%!") let make_stream ?(more_tags = []) file = let capitals = List.init 26 (fun i -> Char.of_int_exn (i + Char.to_int 'A')) in let tags = Fasta.Tags. { char_sequence_default with forbid_e...
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/src/tmp/test_fasta.ml
ocaml
[`sharp_comments; `semicolon_comments; `forbid_empty_lines;] @ more_tags) () in After reporting the error the aggregator continues with what it has... After reporting the error the aggregator continues with what it has...
open Core.Std open Biocaml_internal_utils open OUnit open Biocaml let dbg fmt = eprintf ("DBG: " ^^ fmt ^^ "\n%!") let make_stream ?(more_tags = []) file = let capitals = List.init 26 (fun i -> Char.of_int_exn (i + Char.to_int 'A')) in let tags = Fasta.Tags. { char_sequence_default with forbid_e...
f54311063f368c1934ccd91fbbba236ade9bc4bfc25f830cb71e01fea4f3c5d5
cuplv/raz.ocaml
eval.ml
This file is mostly tests of performance . RAZ code is all in ' raz_simp.ml ' is in ' fingertree.ml ' ' bat*.ml ' files support the fingertree code . Fingertree and supporting files are from ' -batteries-team/batteries-included ' This file is mostly tests of performance. RAZ code is all in 'raz_sim...
null
https://raw.githubusercontent.com/cuplv/raz.ocaml/b9b42d87d95cb1db34b8b35b3e30b4d4da41dea6/eval.ml
ocaml
whether to suppress csv header seed value for random number generation user tag for this testing run starting sequence length number of insertions at once num of insert groups per sequence num of times to repeat the process whether insertions is multiplied by rep number Controls whether we test for wel...
This file is mostly tests of performance . RAZ code is all in ' raz_simp.ml ' is in ' fingertree.ml ' ' bat*.ml ' files support the fingertree code . Fingertree and supporting files are from ' -batteries-team/batteries-included ' This file is mostly tests of performance. RAZ code is all in 'raz_sim...
04f03c98bb548306be83e41c7201bb756cc51dfb2819fd438ee9de317eb7e2d9
ssor/erlangDemos
ws_send_many_handler.erl
%% Feel free to use, reuse and abuse the code in this file. -module(ws_send_many_handler). -behaviour(cowboy_websocket_handler). -export([init/3]). -export([websocket_init/3]). -export([websocket_handle/3]). -export([websocket_info/3]). -export([websocket_terminate/3]). init(_Any, _Req, _Opts) -> {upgrade, protocol...
null
https://raw.githubusercontent.com/ssor/erlangDemos/632cd905be2c4f275f1c1ae15238e711d7bb9147/cowboy/test/ws_send_many_handler.erl
erlang
Feel free to use, reuse and abuse the code in this file.
-module(ws_send_many_handler). -behaviour(cowboy_websocket_handler). -export([init/3]). -export([websocket_init/3]). -export([websocket_handle/3]). -export([websocket_info/3]). -export([websocket_terminate/3]). init(_Any, _Req, _Opts) -> {upgrade, protocol, cowboy_websocket}. websocket_init(_TransportName, Req, _O...
bbea01629ecde7a9e2bf880eb3bf46b855d79cc614b179a6c8b4a1d925e78668
dongcarl/guix
page.scm
;;; GNU Guix --- Functional package management for GNU Copyright © 2018 < > Copyright © 2019 , 2020 < > Copyright © 2019 < > ;;; ;;; This file is part of GNU Guix. ;;; GNU is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
null
https://raw.githubusercontent.com/dongcarl/guix/82543e9649da2da9a5285ede4ec4f718fd740fcb/gnu/installer/newt/page.scm
scheme
GNU Guix --- Functional package management for GNU This file is part of GNU Guix. you can redistribute it and/or modify it either version 3 of the License , or ( at your option) any later version. GNU Guix is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa...
Copyright © 2018 < > Copyright © 2019 , 2020 < > Copyright © 2019 < > under the terms of the GNU General Public License as published by You should have received a copy of the GNU General Public License along with GNU . If not , see < / > . (define-module (gnu installer newt page) #:use-modu...
f2c7125535dbb00741eb158d9111becf975d00ae436e666bdf6a7333bfc1077d
processone/ejabberd
mod_muc_log_opt.erl
%% Generated automatically %% DO NOT EDIT: run `make options` instead -module(mod_muc_log_opt). -export([access_log/1]). -export([cssfile/1]). -export([dirname/1]). -export([dirtype/1]). -export([file_format/1]). -export([file_permissions/1]). -export([outdir/1]). -export([spam_prevention/1]). -export([timezone/1]). ...
null
https://raw.githubusercontent.com/processone/ejabberd/b860a25c82515ba51b044e13ea4e040e3b9bbc41/src/mod_muc_log_opt.erl
erlang
Generated automatically DO NOT EDIT: run `make options` instead
-module(mod_muc_log_opt). -export([access_log/1]). -export([cssfile/1]). -export([dirname/1]). -export([dirtype/1]). -export([file_format/1]). -export([file_permissions/1]). -export([outdir/1]). -export([spam_prevention/1]). -export([timezone/1]). -export([top_link/1]). -export([url/1]). -spec access_log(gen_mod:opt...
9e860a24fd343f5993d8d8af30ab2d6a2c8eb3a4a210aa3124f93443582d8a01
dvingo/dv.fulcro-template
base.clj
(ns clj.new.dv.fulcro-template.options.base (:require [clj.new.dv.fulcro-template.options.helpers :as helpers])) (defn files [data] (concat [;; Top level files [".gitignore" (helpers/render "gitignore" data)] ["deps.edn" (helpers/render "deps.edn" data)] ["package.json" (helpers/render "package....
null
https://raw.githubusercontent.com/dvingo/dv.fulcro-template/8f76adad941422950a3d7340455561974853932b/src/clj/new/dv/fulcro_template/options/base.clj
clojure
Top level files Client User Serves fe-only app
(ns clj.new.dv.fulcro-template.options.base (:require [clj.new.dv.fulcro-template.options.helpers :as helpers])) (defn files [data] (concat [".gitignore" (helpers/render "gitignore" data)] ["deps.edn" (helpers/render "deps.edn" data)] ["package.json" (helpers/render "package.json" data)] ["bb.e...
875ecba4bd285f7f9ee8b88a400e62e4856f5887d821cb733f74c4e2605475a2
samirose/sicp-compiler-project
comparison-operators.scm
(import (compiler-test) (comparison-operators)) (compiler-test-begin "comparison-operators") (compiler-test-eq "all comparison operators with a single argument evaluate to true" #t (all-with-single-argument-are-true)) (compiler-test-eq "binary numeric equality is true with equal values" #t (binary-equal 1 1)) ...
null
https://raw.githubusercontent.com/samirose/sicp-compiler-project/2bc8a481044b5a653408f8595b2a2396600b8ad6/test-compiler/test/comparison-operators.scm
scheme
(import (compiler-test) (comparison-operators)) (compiler-test-begin "comparison-operators") (compiler-test-eq "all comparison operators with a single argument evaluate to true" #t (all-with-single-argument-are-true)) (compiler-test-eq "binary numeric equality is true with equal values" #t (binary-equal 1 1)) ...
615cef9955f610cad1d09c94a415492f1b36e667594b4fa948b36f6441d80265
googleson78/fp-lab-2022-23
Instances.hs
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Instances where import Expr (Expr (..), OperType (..), solvingSum) import GHC.Generics (Generic) import Generic.Random (W, Weights, ...
null
https://raw.githubusercontent.com/googleson78/fp-lab-2022-23/0d5b8aa7a1c572352658cd41b082da6a29ad07ad/homeworks/02/test/Instances.hs
haskell
we don't shrink vars, because this generates "" as a var name, which isn't valid for the compiler.
# LANGUAGE DataKinds # # LANGUAGE DeriveGeneric # # LANGUAGE DerivingStrategies # # LANGUAGE StandaloneDeriving # # LANGUAGE UndecidableInstances # # OPTIONS_GHC -Wno - orphans # module Instances where import Expr (Expr (..), OperType (..), solvingSum) import GHC.Generics (Generic) import Generic.Random (W, Weights, ...
5f79e1ba0cfe21f61894d57816f8f01d80be3a74401b51621c9d8e718915a807
mokus0/junkbox
Quine.hs
main = do putStr q print q q = "main = do\n putStr q\n print q\nq = "
null
https://raw.githubusercontent.com/mokus0/junkbox/151014bbef9db2b9205209df66c418d6d58b0d9e/quine/Quine.hs
haskell
main = do putStr q print q q = "main = do\n putStr q\n print q\nq = "
aeed0a06580eda41f33180df62bc4b07c71b48901a4d18dbd460e4dada8fa387
ghc/testsuite
T2307.hs
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , OverlappingInstances , UndecidableInstances , IncoherentInstances , FlexibleInstances # OverlappingInstances, UndecidableInstances, IncoherentInstances, FlexibleInstances #-} Trac #...
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_fail/T2307.hs
haskell
# LANGUAGE MultiParamTypeClasses , FunctionalDependencies , OverlappingInstances , UndecidableInstances , IncoherentInstances , FlexibleInstances # OverlappingInstances, UndecidableInstances, IncoherentInstances, FlexibleInstances #-} Trac #...
726ed21a90c02d953820a2d784667380b9ff0235adb10c8b514f80f4cf1fdaa5
philnguyen/soft-contract
intro1.rkt
#lang racket (define (f x g) (g (+ x 1))) (define (main n h) (if (> n 0) (f n h) 'unit)) (provide (contract-out [main (integer? ((and/c integer? (>/c 0)) . -> . any/c) . -> . any/c)]))
null
https://raw.githubusercontent.com/philnguyen/soft-contract/5e07dc2d622ee80b961f4e8aebd04ce950720239/soft-contract/test/programs/safe/mochi/intro1.rkt
racket
#lang racket (define (f x g) (g (+ x 1))) (define (main n h) (if (> n 0) (f n h) 'unit)) (provide (contract-out [main (integer? ((and/c integer? (>/c 0)) . -> . any/c) . -> . any/c)]))
1eaf08384c4411cdeee6f28e75b50d9c50dac29d8f61ae5a7331a9bee448cf55
JohnnyJayJay/slash
slash.clj
(ns hooks.slash (:require [clj-kondo.hooks-api :as api])) (defn strip-pattern [pattern] (api/vector-node (vec (remove api/string-node? (:children pattern))))) (defn transform-handler-contents [[pattern interact-sym opt-sym & body]] (api/list-node (list* (api/token-node 'let) (api/vector-node [(s...
null
https://raw.githubusercontent.com/JohnnyJayJay/slash/99db5780adc2fb1c7e01b35b760009aeccdedbf2/.clj-kondo/hooks/slash.clj
clojure
(ns hooks.slash (:require [clj-kondo.hooks-api :as api])) (defn strip-pattern [pattern] (api/vector-node (vec (remove api/string-node? (:children pattern))))) (defn transform-handler-contents [[pattern interact-sym opt-sym & body]] (api/list-node (list* (api/token-node 'let) (api/vector-node [(s...
636aff4394abaff3f4375fd65640cfebf05fdbca009a777c6f627d7770098cf9
babashka/babashka
shell.clj
(ns babashka.impl.clojure.java.shell {:no-doc true} (:require [clojure.java.shell :as shell] [sci.core :as sci])) (def shell-ns (sci/create-ns 'clojure.java.shell nil)) (def sh-dir (sci/new-dynamic-var '*sh-dir* nil {:ns shell-ns})) (def sh-env (sci/new-dynamic-var '*sh-env* nil {:ns shell-ns})) (def...
null
https://raw.githubusercontent.com/babashka/babashka/5226d9cc0fc02da9959d73abf271aae8c1875505/src/babashka/impl/clojure/java/shell.clj
clojure
see sh doc string
(ns babashka.impl.clojure.java.shell {:no-doc true} (:require [clojure.java.shell :as shell] [sci.core :as sci])) (def shell-ns (sci/create-ns 'clojure.java.shell nil)) (def sh-dir (sci/new-dynamic-var '*sh-dir* nil {:ns shell-ns})) (def sh-env (sci/new-dynamic-var '*sh-env* nil {:ns shell-ns})) (def...
fa95f51e8449adfc6c2bc1b5f83211454be800011de4f31f7cdadb8f57def792
NetComposer/nkservice
nkservice_srv.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2015 . All Rights Reserved . %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of the...
null
https://raw.githubusercontent.com/NetComposer/nkservice/affbd5b9c914e2c8775dd45733a0b5c15d784e34/src/nkservice_srv.erl
erlang
------------------------------------------------------------------- Version 2.0 (the "License"); you may not use this file a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, KIND, either express or implied. See the License for the specific language governing permissio...
Copyright ( c ) 2015 . All Rights Reserved . This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(nkservice_srv). -aut...
d34a8e8f9f47c840ad0eb66633c01775759aaeda488a6ed50f309dfcb23a60c5
replikativ/replikativ
stage.cljc
(ns replikativ.crdt.simple-gset.stage (:require [replikativ.stage :refer [sync! cleanup-ops-and-new-values! subscribe-crdts! ensure-crdt #?(:clj go-try-locked)]] [replikativ.environ :refer [*id-fn*]] [replikativ.crdt.materialize :refer [key->crdt]] ...
null
https://raw.githubusercontent.com/replikativ/replikativ/1533a7e43e46bfb70e8c8eb34dc5708e611a478d/src/replikativ/crdt/simple_gset/stage.cljc
clojure
(ns replikativ.crdt.simple-gset.stage (:require [replikativ.stage :refer [sync! cleanup-ops-and-new-values! subscribe-crdts! ensure-crdt #?(:clj go-try-locked)]] [replikativ.environ :refer [*id-fn*]] [replikativ.crdt.materialize :refer [key->crdt]] ...
a3179f159407df3492e05884619af2f4bc4e4e89a1471695f9b9c091dc38f27d
ANSSI-FR/xsvgen
xsd_transducer.mli
(***********************************************************************) (* *) (* XML Schema Validator Generator *) (* *) ( SafeRive...
null
https://raw.githubusercontent.com/ANSSI-FR/xsvgen/3c2b5e43e7adcb856a3a2aa01bfc039bf3c6459b/xsd/xsd_transducer.mli
ocaml
********************************************************************* XML Schema Validator Generator ...
( SafeRiver ) Copyright 2012 , ANSSI and SafeRiver . $ I d : xsd_transducer.mli 1419 2012 - 04 - 16 14:35:45Z maarek $ val transduce : Xml.expanded_tree -> (Xsd.composite,Xsd.uri option) Xsd.schema val inline : (Xsd.composite,X...
9fd29dd172d8ee6130f980d719efcd7b6f2393bd2f56b683362f11f2c9879d19
reborg/clojure-essential-reference
1.clj
< 1 > (:require [clojure.test :as t])) (defn sum [a b] (+ a b)) < 2 > (t/is (= 2 (sum 1 1)))) (test #'sum-test) ; <3> ;; :ok
null
https://raw.githubusercontent.com/reborg/clojure-essential-reference/9a3eb82024c8e5fbe17412af541c2cd30820c92e/DynamicVariablesintheStandardLibrary/*load-tests*and*stack-trace-depth*/1.clj
clojure
<3> :ok
< 1 > (:require [clojure.test :as t])) (defn sum [a b] (+ a b)) < 2 > (t/is (= 2 (sum 1 1))))
f76ea4eb314d61f2c677a85d2e53c32e6034ca723d90fb6c79e6f71162c096d6
lojic/RacketCon2020
todo.rkt
#lang racket (require "../axio/axio.rkt" "./comment.rkt" "./user.rkt") (require csv-writing db gregor racket/generator) (provide build-todo create-todo default-priority delete-todo format-priority todo-from-attributes ...
null
https://raw.githubusercontent.com/lojic/RacketCon2020/310e0ab01d8c3e1546029720f6bb66e6d1a5fb1e/TodoApp/models/todo.rkt
racket
-------------------------------------------------------------------------------------------- Public Interface -------------------------------------------------------------------------------------------- Keep existing timestamp Reset to uncompleted Mark completed as of now Keep as uncompleted Header 12 ...
#lang racket (require "../axio/axio.rkt" "./comment.rkt" "./user.rkt") (require csv-writing db gregor racket/generator) (provide build-todo create-todo default-priority delete-todo format-priority todo-from-attributes ...
5d73311ada4b77a102da02b429f470b856d902f92a8e5ee8002c60013901ba6d
denisshevchenko/breadu.info
BreadU.hs
| Module : BreadU Description : Exposed module of ' breadu ' library Stability : experimental Portability : POSIX Exposed module of ' breadu ' library . ' breadu - exe ' app uses this module to run a server , please see " BreadU.Server " module for details . Module : BreadU Description : Ex...
null
https://raw.githubusercontent.com/denisshevchenko/breadu.info/b613fa28a4b527f1459876348a72e7748f16cd88/src/lib/BreadU.hs
haskell
| Runs a server on specified port. After start we read common food from the .csv-files.
| Module : BreadU Description : Exposed module of ' breadu ' library Stability : experimental Portability : POSIX Exposed module of ' breadu ' library . ' breadu - exe ' app uses this module to run a server , please see " BreadU.Server " module for details . Module : BreadU Description : Ex...
6b4fe6d3cade17c44f6b550b1d2e9e0259cda1b00ec4508933aad5cb84163ba8
kupl/MicSE
te.ml
(* type execution *) open! Core exception Failwith_signal nth [ 1;2;3 ] 0 = > 1 nth [ 1;2;3 ] 1 = > 2 let nth : 'a list -> int -> 'a = (fun st n -> List.nth_exn st n) znth [ 1;2;3 ] Bigint.zero = > 1 znth [ 1;2;3 ] Bigint.one = > 2 let znth : 'a list -> Bigint.t -> 'a = (fun st zn -> nth st (Bigint.to_int...
null
https://raw.githubusercontent.com/kupl/MicSE/d393676a8f3d7acf3b46433ade2ffeedb1013263/lib/te.ml
ocaml
type execution Non-Standard Instruction : Special Comment : MicSE user defined safety property
open! Core exception Failwith_signal nth [ 1;2;3 ] 0 = > 1 nth [ 1;2;3 ] 1 = > 2 let nth : 'a list -> int -> 'a = (fun st n -> List.nth_exn st n) znth [ 1;2;3 ] Bigint.zero = > 1 znth [ 1;2;3 ] Bigint.one = > 2 let znth : 'a list -> Bigint.t -> 'a = (fun st zn -> nth st (Bigint.to_int_exn zn)) nth_hd [...
23c80f51cf9d87fccc5f85d47c97b09cabb12ed7e061f95fe373e1b823bb1d10
silkapp/rest
Runner.hs
# LANGUAGE CPP , OverloadedStrings , RankNTypes , ScopedTypeVariables # CPP , OverloadedStrings , RankNTypes , ScopedTypeVariables #-} #if MIN_VERSION_base(4,9,0) {-# OPTIONS_GHC -Wno-redundant-constraints #-} #endif import Control.Monad import Control.Monad.Except import Control.Monad...
null
https://raw.githubusercontent.com/silkapp/rest/f0462fc36709407f236f57064d8e37c77bdf8a79/rest-core/tests/Runner.hs
haskell
# OPTIONS_GHC -Wno-redundant-constraints # This one was added because the list handler didn't correctly fall through to create, and testCreate didn't catch that because it contains no list handler. / Rest.route subResource)
# LANGUAGE CPP , OverloadedStrings , RankNTypes , ScopedTypeVariables # CPP , OverloadedStrings , RankNTypes , ScopedTypeVariables #-} #if MIN_VERSION_base(4,9,0) #endif import Control.Monad import Control.Monad.Except import Control.Monad.Identity import Control.Monad.Reader import Da...
55decfb481a6aa9d5c6a54e23d76f8ddd4f3d7238be77dc3aa156b9bfbb498d3
elastic/eui-cljs
beta_badge.cljs
(ns eui.beta-badge (:require ["@elastic/eui/lib/components/badge/beta_badge/beta_badge.js" :as eui])) (def sizeToClassMap eui/sizeToClassMap) (def SIZES eui/SIZES) (def EuiBetaBadge eui/EuiBetaBadge) (def COLORS eui/COLORS)
null
https://raw.githubusercontent.com/elastic/eui-cljs/ad60b57470a2eb8db9bca050e02f52dd964d9f8e/src/eui/beta_badge.cljs
clojure
(ns eui.beta-badge (:require ["@elastic/eui/lib/components/badge/beta_badge/beta_badge.js" :as eui])) (def sizeToClassMap eui/sizeToClassMap) (def SIZES eui/SIZES) (def EuiBetaBadge eui/EuiBetaBadge) (def COLORS eui/COLORS)
c9cc214280d87faf6227cd3109aa6ce9906cb9dfcdba24ed2d0b980663ce98fa
fortytools/holumbus
CacheCore.hs
# OPTIONS # -- ------------------------------------------------------------ module Holumbus.Crawler.CacheCore where import Control.DeepSeq import Data.Binary (Binary (..)) {- import qualified Data.Binary as B -- -} import Data.Function.Selector import ...
null
https://raw.githubusercontent.com/fortytools/holumbus/4b2f7b832feab2715a4d48be0b07dca018eaa8e8/Holumbus-Searchengine/src/Holumbus/Crawler/CacheCore.hs
haskell
------------------------------------------------------------ import qualified Data.Binary as B -- ------------------------------------------------------------ ------------------------------------------------------------ but this can be taken as a pattern for other crawlers --------------------...
# OPTIONS # module Holumbus.Crawler.CacheCore where import Control.DeepSeq import Data.Binary (Binary (..)) import Data.Function.Selector import Holumbus.Crawler import Text.XML.HXT.Core import Text.XML.HXT.Curl type CacheCrawlerConfig ...
bbc96a1a173a3be40d84508a07eab638fd5018f42fe11d472bf1f57e5b2de14b
janestreet/posixat
types.mli
open Base module Fd : sig type t = Unix.file_descr [@@deriving sexp_of] type info = | Win32_handle of int64 | Win32_socket of int64 | Unix_fd of int end module Open_flag : sig type t = | O_RDONLY | O_WRONLY | O_RDWR | O_NONBLOCK | O_APPEND | O_CREAT | O_TRUNC | O_EXC...
null
https://raw.githubusercontent.com/janestreet/posixat/58d4bb1f1c497d238bcd163da096e28be632b57a/src/types.mli
ocaml
open Base module Fd : sig type t = Unix.file_descr [@@deriving sexp_of] type info = | Win32_handle of int64 | Win32_socket of int64 | Unix_fd of int end module Open_flag : sig type t = | O_RDONLY | O_WRONLY | O_RDWR | O_NONBLOCK | O_APPEND | O_CREAT | O_TRUNC | O_EXC...
dce25b8456e00c864fcfc97039767bdfd424ec44fd8dbbd08becc665aef7dcc9
michaelklishin/monger
core_test.clj
(ns monger.test.core-test (:require [monger util result] [monger.core :as mg :refer [server-address mongo-options]] [monger.collection :as mc] [clojure.test :refer :all]) (:import [com.mongodb MongoClient DB WriteConcern MongoClientOptions ServerAddress])) (println (str "Using C...
null
https://raw.githubusercontent.com/michaelklishin/monger/4d8747f9edacf9a743fdeff4fca1c3df93dfa2b2/test/monger/test/core_test.clj
clojure
(ns monger.test.core-test (:require [monger util result] [monger.core :as mg :refer [server-address mongo-options]] [monger.collection :as mc] [clojure.test :refer :all]) (:import [com.mongodb MongoClient DB WriteConcern MongoClientOptions ServerAddress])) (println (str "Using C...
503d3eb13a17ef1f067601676e6acfdbb2d10654d5ac9c2b372fc0418a4ac51c
mirage/ocaml-cohttp
test_async_integration.ml
open Base open Async_kernel open OUnit open Cohttp open Cohttp_async_test module Server = Cohttp_async.Server module Client = Cohttp_async.Client module Body = Cohttp_async.Body let chunk_body = [ "one"; ""; " "; "bar"; "" ] let large_string = String.make (Int.pow 2 16) 'A' let response_bodies = [ "Testing"; "Foo bar"...
null
https://raw.githubusercontent.com/mirage/ocaml-cohttp/5d40bc96a8bd32cf4c52031e95ee99ff32da8a9d/cohttp-async/test/test_async_integration.ml
ocaml
empty_chunk large response large request pipelined_chunk large response chunked pipelined_expert
open Base open Async_kernel open OUnit open Cohttp open Cohttp_async_test module Server = Cohttp_async.Server module Client = Cohttp_async.Client module Body = Cohttp_async.Body let chunk_body = [ "one"; ""; " "; "bar"; "" ] let large_string = String.make (Int.pow 2 16) 'A' let response_bodies = [ "Testing"; "Foo bar"...
da70f7209cea5aac2023507f909107f460188a2e7fc22599a6871171af42fae4
ujihisa/haskell-workshop-project-eular
problem1.hs
problem1 :: Integer problem1 = sum $ filter (\x -> x `mod` 3 == 0 || x `mod` 5 == 0) [1..1000] main = print problem1
null
https://raw.githubusercontent.com/ujihisa/haskell-workshop-project-eular/96d98133ad42cbacfb83c3a9229410760d7745aa/problem1.hs
haskell
problem1 :: Integer problem1 = sum $ filter (\x -> x `mod` 3 == 0 || x `mod` 5 == 0) [1..1000] main = print problem1
23cd4a3478db9ba27381bb410a16b8e0faa3d56fd33ced08e76357e656ee98e0
Rhywun/get-programming-with-haskell
min3.hs
module Unit06.Lesson28.Min3 where minOfThree :: (Ord a) => a -> a -> a -> a minOfThree x y z = minimum [x, y, z] readInt :: IO Int readInt = read <$> getLine minOfThreeInts :: IO Int minOfThreeInts = minOfThree <$> readInt <*> readInt <*> readInt main :: IO () main = do putStrLn "Enter three numbers, separated by...
null
https://raw.githubusercontent.com/Rhywun/get-programming-with-haskell/b9cf06f725b2ef038d69ed49f7d2900f55e98ca3/Unit05/Lesson28/min3.hs
haskell
QC4
module Unit06.Lesson28.Min3 where minOfThree :: (Ord a) => a -> a -> a -> a minOfThree x y z = minimum [x, y, z] readInt :: IO Int readInt = read <$> getLine minOfThreeInts :: IO Int minOfThreeInts = minOfThree <$> readInt <*> readInt <*> readInt main :: IO () main = do putStrLn "Enter three numbers, separated by...
f38d8c7159091f1f57a7b7fbaf852ddfb2a95acc49deb41a073853918b4a6ea5
laanwj/Purecoin
DataTypes.hs
module Purecoin.Network.DataTypes ( NetworkAddress(..) , InventoryVector(..) , Version(..) , GetBlocks(..) , Inv(..) , protocolVersion, protocolSubVersion ) where import Control.Applicative ((<$>), (<*>)) import Data.Word (Word16, Word32, Word64) import Data.Time (UTCTi...
null
https://raw.githubusercontent.com/laanwj/Purecoin/0861dbc0ed61545d26787b3a001992e67b14ad45/Purecoin/Network/DataTypes.hs
haskell
module Purecoin.Network.DataTypes ( NetworkAddress(..) , InventoryVector(..) , Version(..) , GetBlocks(..) , Inv(..) , protocolVersion, protocolSubVersion ) where import Control.Applicative ((<$>), (<*>)) import Data.Word (Word16, Word32, Word64) import Data.Time (UTCTi...
0b2514e67d01ac4605a26426f7264e4ad54cad59895a3ef2d7d22eb8194e283d
joearms/crypto_tutorial
ez_crypt_primes.erl
-module(ez_crypt_primes). %% -compile(export_all). -export([make_k_bit_prime/1, is_prime/1, test/0]). -import(crypto, [strong_rand_bytes/1, rand_uniform/2]). -import(ez_crypt_math, [k_bit_random_integer/1, bsize/1]). test() -> test_small_primes(). make_k_bit_prime(Bits) when Bits > 7, Bits < 17 -> %% us a d...
null
https://raw.githubusercontent.com/joearms/crypto_tutorial/e487699017dbd102f67d18f466ff44445d10ba3e/src/ez_crypt_primes.erl
erlang
-compile(export_all). us a different method and test N is an odd number io:format("I=~p is_prime:~p~n",[I,is_prime(I)]), END:is_prime Small numbers
-module(ez_crypt_primes). -export([make_k_bit_prime/1, is_prime/1, test/0]). -import(crypto, [strong_rand_bytes/1, rand_uniform/2]). -import(ez_crypt_math, [k_bit_random_integer/1, bsize/1]). test() -> test_small_primes(). make_k_bit_prime(Bits) when Bits > 7, Bits < 17 -> generate random number sin 1 .. 2^N ...
07e5f745cf2016408b1fa2444647f9dcd83940dac9e8e94564ffca633ccb2844
ygrek/mldonkey
donkeyMain.ml
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
null
https://raw.githubusercontent.com/ygrek/mldonkey/333868a12bb6cd25fed49391dd2c3a767741cb51/src/networks/donkey/donkeyMain.ml
ocaml
Moved here from fivemin_timer. server capabilities support of compression extended := !extended lor 0x02; IP in login, deprecated support of auxport newtags DonkeyClient.verbose := true; *** LOAD OTHER OPTIONS *** TODO INDEX DonkeyIndexer.install_hooks (); TODO INDEX x CommonGlobals.do_at_exit ...
Copyright 2001 , 2002 b8_bavard , b8_fee_carabine , This file is part of mldonkey . mldonkey is free software ; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the License , or ...
96d135dea4442214665d68d1428f3c7ccfaf7d04191d5b318748ab797267e438
dbuenzli/bos
bos_cmd.ml
--------------------------------------------------------------------------- Copyright ( c ) 2015 The bos programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
null
https://raw.githubusercontent.com/dbuenzli/bos/6320f302eb9487518491511292a11ee6f04bd6e9/src/bos_cmd.ml
ocaml
Command line fragments Command lines Deprecated Predicates and comparison Conversions and pretty printing Parsing is loosely based on /\ xcu_chap02.html#tag_02_03
--------------------------------------------------------------------------- Copyright ( c ) 2015 The bos programmers . All rights reserved . Distributed under the ISC license , see terms at the end of the file . --------------------------------------------------------------------------- Copyright (c) 2...
45d8b08c4616d23e883349a9b6174e0c9342b0643952010528990eb44fd8c5de
lehins/massiv
Append.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE FlexibleContexts # module Main where import Criterion.Main import qualified Data.DList as DL import qualified Data.List as List import Data.Massiv.Array as A import Data.Massiv.Array.Manifest.Vector as A import Data.Massiv.Bench as A import Data.Maybe import qualified Data.Vec...
null
https://raw.githubusercontent.com/lehins/massiv/67a920d4403f210d0bfdad1acc4bec208d80a588/massiv-bench/bench/Append.hs
haskell
# LANGUAGE BangPatterns # , bench ("Array DS Ix1 Int (" ++ show kSmall ++ ")") $ , bench ("Array DS Ix1 Int (" ++ show kSmall ++ ")") $ sconsArray :: Int -> Array DS Ix1 Int -> Array DS Ix1 Int sunconsArray n arr | 1 < n = case sunconsM arr of Nothing -> error "Unexpected end of stream array" ...
# LANGUAGE FlexibleContexts # module Main where import Criterion.Main import qualified Data.DList as DL import qualified Data.List as List import Data.Massiv.Array as A import Data.Massiv.Array.Manifest.Vector as A import Data.Massiv.Bench as A import Data.Maybe import qualified Data.Vector.Primitive as VP import Pre...
894b9bf9c05ffc7a2297a92bb52db5bbda3e2fc3f0c0d1f8abdaaac3c7fa1d1e
OCamlPro/ez_api
ezRequest_lwt.ml
(**************************************************************************) (* *) (* Copyright 2018-2023 OCamlPro *) (* *) (* All righ...
null
https://raw.githubusercontent.com/OCamlPro/ez_api/2debe0bf97586fa231c855526fd54d69f72d1546/src/request/ezRequest_lwt.ml
ocaml
************************************************************************ Copyright 2018-2023 OCamlPro All rights reserved. This ...
GNU Lesser General Public License version 2.1 , with the special open EzAPI module type S = EzReq_lwt_S.S module type Interface = EzReq_lwt_S.Interface let (>|=) = Lwt.(>|=) let return = Lwt.return let request_reply_hook = ref (fun () -> ()) let before_hook = ref (fun () -> ()) let any_get = ref (fun ?m...
152c1f2e0818dd89f49313e6c298b67f206ed6bbad14ea20e1a63fb3255dc8f5
wangsix/VMO_repeated_themes_discovery
converter.lisp
;(in-package :common-lisp-user) (load (concatenate 'string *lisp-code-root* "/File conversion" "/csv-files.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/humdrum-by-col.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/midi-save.lisp")) (load (con...
null
https://raw.githubusercontent.com/wangsix/VMO_repeated_themes_discovery/0082b3c55e64ed447c8b68bcb705fd6da8e3541f/JKUPDD-Aug2013/groundTruth/gibbonsSilverSwan1612/monophonic/repeatedPatterns/tomCollins/D/script/converter.lisp
lisp
(in-package :common-lisp-user)
(load (concatenate 'string *lisp-code-root* "/File conversion" "/csv-files.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/humdrum-by-col.lisp")) (load (concatenate 'string *lisp-code-root* "/File conversion" "/midi-save.lisp")) (load (concatenate 'string *lisp-code-...
0e5cc2b57bd001a16496e2d6f959877bc3f1e9aa9afb0c731e0901d706b26839
cubicle-model-checker/cubicle
fm.ml
(**************************************************************************) (* *) Cubicle (* *) ...
null
https://raw.githubusercontent.com/cubicle-model-checker/cubicle/00f09bb2d4bb496549775e770d7ada08bc1e4866/smt/fm.ml
ocaml
************************************************************************ ...
Cubicle Copyright ( C ) 2011 - 2014 and Universite Paris - Sud 11 This file is distributed under the terms ...
289fa2e85ac1e3be47bb6dc027fd0a534d5145e51270af9d0f20afba1498d8a3
reifyhealth/lein-git-down
wagons.clj
{"git" (do (require '[lein-git-down.plugin]) (require '[lein-git-down.git-wagon]) #(lein-git-down.git-wagon/gen lein-git-down.plugin/git-wagon-properties))}
null
https://raw.githubusercontent.com/reifyhealth/lein-git-down/1871690560ec501790356e0c50fcd681036802c3/resources/leiningen/wagons.clj
clojure
{"git" (do (require '[lein-git-down.plugin]) (require '[lein-git-down.git-wagon]) #(lein-git-down.git-wagon/gen lein-git-down.plugin/git-wagon-properties))}
ff6903fe44d0ed734bb7e087c544306f1798185b9a5ab271b0ca1a91e0628534
may-liu/qtalk
ejabberd.erl
%%%---------------------------------------------------------------------- %%% File : ejabberd.erl Author : < > %%% Purpose : ejabberd wrapper: start / stop Created : 16 Nov 2002 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne %%% %%% This program is free software; you can redistribu...
null
https://raw.githubusercontent.com/may-liu/qtalk/f5431e5a7123975e9656e7ab239e674ce33713cd/qtalk_opensource/src/ejabberd.erl
erlang
---------------------------------------------------------------------- File : ejabberd.erl Purpose : ejabberd wrapper: start / stop This program is free software; you can redistribute it and/or License, or (at your option) any later version. This program is distributed in the hope that it will be useful, b...
Author : < > Created : 16 Nov 2002 by < > ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne modify it under the terms of the GNU General Public License as published by the Free Software Foundation ; either version 2 of the You should have received a copy of the GNU General Public License along ...
78122aec1e768221867bf68fc4e62a71eb3beaf6d06cf4f26d357754289f0d56
ocsigen/macaque
non_writable_table.ml
let table = Sql.View.one <:value< {a = 1} >> let insert = <:insert< $table$ := {a = 2} >>
null
https://raw.githubusercontent.com/ocsigen/macaque/a92e91c7ed443086551d909c3cfad22c71144f54/src/error_tests/non_writable_table.ml
ocaml
let table = Sql.View.one <:value< {a = 1} >> let insert = <:insert< $table$ := {a = 2} >>
0f5a119ef56f13c9f6262e4faefd31e4d816bfb995ab735fe46d94a75fdd54bc
sbcl/sbcl
early-ntrace.lisp
;;;; a tracing facility This software is part of the SBCL system . See the README file for ;;;; more information. ;;;; This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the ;;;; public domain. The software is in the public domain and is ;;;; provi...
null
https://raw.githubusercontent.com/sbcl/sbcl/e61b98dc5f979d1c0fbf0587d3cdea02ad5d8a89/src/code/early-ntrace.lisp
lisp
a tracing facility more information. public domain. The software is in the public domain and is provided with absolutely no warranty. See the COPYING and CREDITS files for more information. internal state entry for a closure is the shared function entry object. The entry list. a hash-table that maps the name ...
This software is part of the SBCL system . See the README file for This software is derived from the CMU CL system , which was written at Carnegie Mellon University and released into the (in-package "SB-DEBUG") (defvar *trace-indentation-step* 2 "the increase in trace indentation at each call level") (defva...
caa2414394841088d8fe71cee135ba785626c2a2426f0712da07a6950242d65b
ghc/testsuite
tc070.hs
module ShouldSucceed where data Boolean = FF | TT idb :: Boolean -> Boolean idb x = x
null
https://raw.githubusercontent.com/ghc/testsuite/998a816ae89c4fd573f4abd7c6abb346cf7ee9af/tests/typecheck/should_compile/tc070.hs
haskell
module ShouldSucceed where data Boolean = FF | TT idb :: Boolean -> Boolean idb x = x
187cdddabfcd48ed2a1c06c41b88be61d2a8aeb07f340f5e7f466a88ca55fdda
appleshan/cl-http
defappleevents.lisp
-*-Mode : LISP ; Package : DEFAPPLEEVENTS ; Base : 10 ; Syntax : Common - lisp -*- ;;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ;; ;; defappleevents -- high level access to appleevent records ;; Author : ;; ;; (defpackage "DEFAPPLEEVENTS" (:export "DEFAPPLEEVENT" ...
null
https://raw.githubusercontent.com/appleshan/cl-http/a7ec6bf51e260e9bb69d8e180a103daf49aa0ac2/mcl/contrib/tnorderhaug/cgi/defappleevents.lisp
lisp
Package : DEFAPPLEEVENTS ; Base : 10 ; Syntax : Common - lisp -*- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ defappleevents -- high level access to appleevent records (defappleevent <name> <aeclass> <aeid> (<aeparameter>*) (<aeattribute>*)) <aeparameter> :== (<name> <key> ...
Author : (defpackage "DEFAPPLEEVENTS" (:export "DEFAPPLEEVENT" "GET-APPLEEVENT-ATTRIBUTE" "GET-APPLEEVENT-ATTRIBUTE-AEDESC" "PUT-APPLEEVENT-ATTRIBUTE" "GET-APPLEEVENT-PARAMETER" "GET-APPLEEVENT-PARAMETER-AEDESC" "PUT-APPLEEVENT-PARAMETER" ...
ef0bbacb1d09585a57f252ebbd636a0a6f8b95081aaf487bdbd943599b1bef56
SamB/coq
dn.ml
(************************************************************************) v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *...
null
https://raw.githubusercontent.com/SamB/coq/8f84aba9ae83a4dc43ea6e804227ae8cae8086b1/tactics/dn.ml
ocaml
********************************************************************** // * This file is distributed under the terms of the * GNU Lesser General Public License Version 2.1 ********************************************************************** Definition of the basic structure ...
v * The Coq Proof Assistant / The Coq Development Team < O _ _ _ , , * CNRS - Ecole Polytechnique - INRIA Futurs - Universite Paris Sud \VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * $ Id$ This file implem...
583a81b2f2fd8ce54abbd0f379caa2b1b47bcc8db15942c48d82b7dcc572e27f
acl2/acl2
width-of-svex@useless-runes.lsp
(SVL::WIDTH-OF-SVEX (9082 12 (:DEFINITION SVL::WIDTH-OF-SVEX)) (1759 502 (:REWRITE DEFAULT-CAR)) (1560 465 (:REWRITE DEFAULT-CDR)) (1099 160 (:REWRITE NATP-WHEN-GTE-0)) (1030 329 (:REWRITE AND*-REM-FIRST)) (774 108 (:DEFINITION MAX)) (702 702 (:META RP::BINARY-OR**/AND**-GUARD-META-CORRECT)) (631 394 (:REWRITE ...
null
https://raw.githubusercontent.com/acl2/acl2/f64742cc6d41c35f9d3f94e154cd5fd409105d34/books/centaur/svl/svex-reduce/.sys/width-of-svex%40useless-runes.lsp
lisp
(SVL::WIDTH-OF-SVEX (9082 12 (:DEFINITION SVL::WIDTH-OF-SVEX)) (1759 502 (:REWRITE DEFAULT-CAR)) (1560 465 (:REWRITE DEFAULT-CDR)) (1099 160 (:REWRITE NATP-WHEN-GTE-0)) (1030 329 (:REWRITE AND*-REM-FIRST)) (774 108 (:DEFINITION MAX)) (702 702 (:META RP::BINARY-OR**/AND**-GUARD-META-CORRECT)) (631 394 (:REWRITE ...
5a647b2d98387802c6d0a563eb3e97c4d9ed4aa66510cd5b0c374d26a505ab8b
apibot-org/apibot
http.cljc
(ns apibot.http "An HTTP client based on httpurr's xhr client" (:require [#?(:cljs httpurr.client.xhr :clj httpurr.client.aleph) :as client-impl] [apibot.coll :as coll] [apibot.json :as json] [apibot.specs :as specs] [clojure.string :refer [lower-case includes?]] [httpurr.client :as http] ...
null
https://raw.githubusercontent.com/apibot-org/apibot/26c77c688980549a8deceeeb39f01108be016435/src/cljc/apibot/http.cljc
clojure
Case #1: if trying to connect to localhost, don't proxy. Case #2: if a proxy has been requested, proxy the URL. Case #3: if no proxy has been requested, then don't proxy. do some validation, nothing out of the ordinary. And format the method e.g. :get instead of "GET" if the body is meant to be json, format head...
(ns apibot.http "An HTTP client based on httpurr's xhr client" (:require [#?(:cljs httpurr.client.xhr :clj httpurr.client.aleph) :as client-impl] [apibot.coll :as coll] [apibot.json :as json] [apibot.specs :as specs] [clojure.string :refer [lower-case includes?]] [httpurr.client :as http] ...
51790d82ab08844aa3ef96e705fe7a6ef17912ca0b3dfd8620c3d074ca17ed8e
lspitzner/brittany
Test231.hs
{-# LANGUAGE MultiWayIf #-} func = do foo bar $ if | cond1 -> loooooooooooooooooooooooooooooong expr1 | cond2 -> loooooooooooooooooooooooooooooong expr2
null
https://raw.githubusercontent.com/lspitzner/brittany/a15eed5f3608bf1fa7084fcf008c6ecb79542562/data/Test231.hs
haskell
# LANGUAGE MultiWayIf #
func = do foo bar $ if | cond1 -> loooooooooooooooooooooooooooooong expr1 | cond2 -> loooooooooooooooooooooooooooooong expr2
589e7a4cce824801152109fe49346c392ee09225580e83a50618d3a69157944f
mitchellwrosen/riak2
RiakSearch.hs
module RiakSearch where import RiakError import RiakHandle (Handle) import RiakIndexName (IndexName(..)) import qualified RiakHandle as Handle import qualified RiakProtoPair as Proto.Pair import Control.Lens ((.~), (^.)) import Data.Default.Class (Default(..)) import Data.Text.Encoding (decodeUtf8, encod...
null
https://raw.githubusercontent.com/mitchellwrosen/riak2/d3c4ef4389012c70e72623cdf9a4caec0a07e568/riak2/src/RiakSearch.hs
haskell
^ Search results ^ Number of search results (not all of which may have been returned, per @rows@). ^ The fields to return (the empty list means all fields). ^ ^ Search index ^ Search query ^ Search options
module RiakSearch where import RiakError import RiakHandle (Handle) import RiakIndexName (IndexName(..)) import qualified RiakHandle as Handle import qualified RiakProtoPair as Proto.Pair import Control.Lens ((.~), (^.)) import Data.Default.Class (Default(..)) import Data.Text.Encoding (decodeUtf8, encod...
1d33390701ecf6452c8d8c5e3d919c20c460e1c89dd738d2ef3a9e4480450659
xh4/web-toolkit
component.lisp
(in-package :component) (defclass component (html:custom-element reactive-object) ((root :initarg :root :initform nil :reader component-root) (children :initarg :children :initform nil) (version :initarg :version :initform 0 :reader component-version)) (:metaclass component-cl...
null
https://raw.githubusercontent.com/xh4/web-toolkit/e510d44a25b36ca8acd66734ed1ee9f5fe6ecd09/component/component.lisp
lisp
(in-package :component) (defclass component (html:custom-element reactive-object) ((root :initarg :root :initform nil :reader component-root) (children :initarg :children :initform nil) (version :initarg :version :initform 0 :reader component-version)) (:metaclass component-cl...
bb06460bb73f5bf0c39acba8be7a7185903919a96c2b852ab13e24c28704d55d
ocaml/oasis
p.ml
(******************************************************************************) OASIS : architecture for building OCaml libraries and applications (* *) Copyright ( C ) 2011 - 2016 , Copyrig...
null
https://raw.githubusercontent.com/ocaml/oasis/3d1a9421db92a0882ebc58c5df219b18c1e5681d/test/data/TestPluginOMake/complex/src/libwithc/p.ml
ocaml
**************************************************************************** This library is free software; you can redistribute it and/or modify it under the t...
OASIS : architecture for building OCaml libraries and applications Copyright ( C ) 2011 - 2016 , Copyright ( C ) 2008 - 2011 , OCamlCore SARL the Free Software Foundation ; either version 2.1 of the License , or ( at You s...
87c60bb738be1ab08007f3c4087727d131c2d9021170d91c6e471997dd2f547e
njordhov/droidbox
actions.clj
(ns droidbox.core.actions (:require [droidbox.groups.droidbox :refer [droidbox]] [pallet.compute :refer [images instantiate-provider nodes]] [pallet.crate :refer [admin-user]] [pallet.compute.vmfest :refer [add-image]] [clojure.pprint :refer [pprint]] [pallet.core.user :refer [*admin-us...
null
https://raw.githubusercontent.com/njordhov/droidbox/1fd77998a38fb6e4063bd2f1429f2af7666f44cb/src/droidbox/core/actions.clj
clojure
-images
(ns droidbox.core.actions (:require [droidbox.groups.droidbox :refer [droidbox]] [pallet.compute :refer [images instantiate-provider nodes]] [pallet.crate :refer [admin-user]] [pallet.compute.vmfest :refer [add-image]] [clojure.pprint :refer [pprint]] [pallet.core.user :refer [*admin-us...
76ba9677cd4fd615d714f9b42df0b0999831f294b836abd77b85a3736461cc29
fillmyheart/slg-server
ply_cache.erl
%% 指定哪些模块需要被客户端cache. -module(ply_cache). -export([set/2, gen/0, cache/2, cache_l/1]). set(Table, Type) -> spt_ets:safe_create(ply_cache_m, [named_table, public]), ets:insert(ply_cache_m, {Table, Type}). gen() -> {F, L} = lists:foldl(fun({Table, Type}, {F, L}) -> Fun = io_lib:format("...
null
https://raw.githubusercontent.com/fillmyheart/slg-server/8a40114ae7238f8cdb260e7afbf12e3bb23523c0/src/ply_cache.erl
erlang
指定哪些模块需要被客户端cache. 登陆时调用此函数,将发送全部需要cache的包,你也可以用上面那函数一个个的发
-module(ply_cache). -export([set/2, gen/0, cache/2, cache_l/1]). set(Table, Type) -> spt_ets:safe_create(ply_cache_m, [named_table, public]), ets:insert(ply_cache_m, {Table, Type}). gen() -> {F, L} = lists:foldl(fun({Table, Type}, {F, L}) -> Fun = io_lib:format("cache(~p) -> ~p;", [Ta...
ee332ff3eaa00a2f282c88689f51156817099b3beb51cf5491796b5cbfb111f7
scrintal/heroicons-reagent
light_bulb.cljs
(ns com.scrintal.heroicons.solid.light-bulb) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M12 .75a8.25 8.25 0 00-4.135 15.39c.686.398 1.115 1.008 1.134 1.623a.75.75 0 00.577.706c.352.083.71.148 1.074.195.323...
null
https://raw.githubusercontent.com/scrintal/heroicons-reagent/572f51d2466697ec4d38813663ee2588960365b6/src/com/scrintal/heroicons/solid/light_bulb.cljs
clojure
(ns com.scrintal.heroicons.solid.light-bulb) (defn render [] [:svg {:xmlns "" :viewBox "0 0 24 24" :fill "currentColor" :aria-hidden "true"} [:path {:d "M12 .75a8.25 8.25 0 00-4.135 15.39c.686.398 1.115 1.008 1.134 1.623a.75.75 0 00.577.706c.352.083.71.148 1.074.195.323...
79eb0449fe96bfb22e3b3b13ec5bdc7134b34e1ebd590fe46990bbe5d1001dd7
BoeingX/haskell-programming-from-first-principles
TraversableInstances.hs
module Traversable.ChapterExercises.TraversableInstances where import Test.QuickCheck import Test.QuickCheck.Checkers -- Identity newtype Identity a = Identity a deriving (Eq, Ord, Show) instance Functor Identity where fmap f (Identity a) = Identity $ f a instance Foldable Identity where foldMap f (Iden...
null
https://raw.githubusercontent.com/BoeingX/haskell-programming-from-first-principles/ffb637f536597f552a4e4567fee848ed27f3ba74/src/Traversable/ChapterExercises/TraversableInstances.hs
haskell
Identity Constant Maybe Three' S
module Traversable.ChapterExercises.TraversableInstances where import Test.QuickCheck import Test.QuickCheck.Checkers newtype Identity a = Identity a deriving (Eq, Ord, Show) instance Functor Identity where fmap f (Identity a) = Identity $ f a instance Foldable Identity where foldMap f (Identity a) = f ...
bf0f5e6a8059a48393be33fc037d0a3660f7c87e834f6ec0fbc6009e2667a3f4
TerrorJack/ghc-alter
Bifoldable.hs
{-# LANGUAGE Safe #-} # LANGUAGE ScopedTypeVariables # ----------------------------------------------------------------------------- -- | -- Module : Data.Bifoldable Copyright : ( C ) 2011 - 2016 -- License : BSD-style (see the file LICENSE) -- -- Maintainer : -- Stability : provisional -- Po...
null
https://raw.githubusercontent.com/TerrorJack/ghc-alter/db736f34095eef416b7e077f9b26fc03aa78c311/ghc-alter/boot-lib/base/Data/Bifoldable.hs
haskell
# LANGUAGE Safe # --------------------------------------------------------------------------- | Module : Data.Bifoldable License : BSD-style (see the file LICENSE) Maintainer : Stability : provisional Portability : portable ----------------------------------------------------------------------...
# LANGUAGE ScopedTypeVariables # Copyright : ( C ) 2011 - 2016 @since 4.10.0.0 module Data.Bifoldable ( Bifoldable(..) , bifoldr' , bifoldr1 , bifoldrM , bifoldl' , bifoldl1 , bifoldlM , bitraverse_ , bifor_ , bimapM_ , biforM_ , bimsum , bisequenceA_ , bisequence_ , biasum ,...
8628b988c969ae20d6620539b756b29e45aeff104558f0b65aa468a2a03ddde6
hexlet-codebattle/battle_asserts
has_equal_zeros_count.clj
(ns battle-asserts.issues.has-equal-zeros-count (:require [clojure.test.check.generators :as gen])) (def level :easy) (def tags ["bits-operation"]) (def description {:en "Calculate the number of zeros is equal whether the two numbers represented in binary?" :ru "Проверьте, одинаково ли количество нулей двух ч...
null
https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/6491f683ef027d1601cfc147531e4f4b71dc9d4e/src/battle_asserts/issues/has_equal_zeros_count.clj
clojure
(ns battle-asserts.issues.has-equal-zeros-count (:require [clojure.test.check.generators :as gen])) (def level :easy) (def tags ["bits-operation"]) (def description {:en "Calculate the number of zeros is equal whether the two numbers represented in binary?" :ru "Проверьте, одинаково ли количество нулей двух ч...
48153f08240222f2628ab5fc69710bc3d7eb74888512682be9af4edb2c62d455
dyoo/whalesong
hot-cross-buns.rkt
#lang whalesong/cs019 (define-resource index.html) (define base-view (->view index.html)) (define WORDS (list "hot" "cross" "buns")) (define (remove-all x elts) (cond [(empty? elts) empty] [(equal? x (first elts)) (remove-all x (rest elts))] [else (cons (first elts) (remove-all x (...
null
https://raw.githubusercontent.com/dyoo/whalesong/636e0b4e399e4523136ab45ef4cd1f5a84e88cdc/whalesong/web-world/examples/hot-cross-buns/hot-cross-buns.rkt
racket
#lang whalesong/cs019 (define-resource index.html) (define base-view (->view index.html)) (define WORDS (list "hot" "cross" "buns")) (define (remove-all x elts) (cond [(empty? elts) empty] [(equal? x (first elts)) (remove-all x (rest elts))] [else (cons (first elts) (remove-all x (...
aef21834499aa9c4a6fc17c47f596625fd29516e8fab8219177fb84ed8e7374c
eryx67/vk-api
Queryable.hs
-- | module Network.API.Builder.Queryable where import Network.API.Builder.Routes (URLParam) class Queryable a where toURLParams :: a -> [URLParam]
null
https://raw.githubusercontent.com/eryx67/vk-api/73665a2a3a3ac3b9115fd12360c3bc7191dcb0f8/src/Network/API/Builder/Queryable.hs
haskell
|
module Network.API.Builder.Queryable where import Network.API.Builder.Routes (URLParam) class Queryable a where toURLParams :: a -> [URLParam]
8524d0c32c44dbaf0b3635f6c045cbe3f1dba9976167230f62946e4322b9f048
mitchellwrosen/planet-mitchell
Set.hs
module Set ( -- * Set module Data.Set -- ** Optics , setmapped , setOf ) where import Data.Set import Data.Set.Lens (setOf, setmapped)
null
https://raw.githubusercontent.com/mitchellwrosen/planet-mitchell/18dd83204e70fffcd23fe12dd3a80f70b7fa409b/planet-mitchell/src/Set.hs
haskell
* Set ** Optics
module Set module Data.Set , setmapped , setOf ) where import Data.Set import Data.Set.Lens (setOf, setmapped)
704750c0f45d95d55697cbf0126072311b5741bed1dca33629e9ab0a3af646a9
jeapostrophe/opencl
oclTranspose.rkt
#lang racket (require opencl/c "../utils/utils.rkt" ffi/cvector ffi/unsafe/cvector ffi/unsafe racket/runtime-path) (define BLOCK_DIM 4) (define-runtime-path cSourceFile "transpose.cl") (define (compute-gold reference data sizeX sizeY) ;transpose matrix (for ([y (in-ran...
null
https://raw.githubusercontent.com/jeapostrophe/opencl/f984050b0c02beb6df186d1d531c4a92a98df1a1/tests/opencl/samples/nvidiaSamples/oclTranspose/oclTranspose.rkt
racket
transpose matrix size of memory required to store the matrix allocate device memory and copy host to device memory create buffer to store output create the naive transpose kernel set the args values for the naive kernel set up execution configuration Start time measurement after warmup Copy back to host clean up get pl...
#lang racket (require opencl/c "../utils/utils.rkt" ffi/cvector ffi/unsafe/cvector ffi/unsafe racket/runtime-path) (define BLOCK_DIM 4) (define-runtime-path cSourceFile "transpose.cl") (define (compute-gold reference data sizeX sizeY) (for ([y (in-range sizeY)]) (for...
9b193bbe661772a2c3c96c9fbcf08585a8a73b0a33a0cec595d991b10c38760d
s3rius/brainbreak
REPL.hs
module Interpreter.REPL where import Control.Monad.State import Interpreter.Interpreter import Parser.Definitions import Parser.Parser import System.IO import Text.Trifecta runHelper :: REPLHelpers -> StateT InterpreterState IO () runHelper PrintState = do ...
null
https://raw.githubusercontent.com/s3rius/brainbreak/bee6439ce4f30318980c3d19cc8cfdc3b8eefbce/src/Interpreter/REPL.hs
haskell
module Interpreter.REPL where import Control.Monad.State import Interpreter.Interpreter import Parser.Definitions import Parser.Parser import System.IO import Text.Trifecta runHelper :: REPLHelpers -> StateT InterpreterState IO () runHelper PrintState = do ...
03f9e0c69694f638bfa9e89ec2db6da51aef1f5fd0e8be3fc5e3f810563ce845
gbour/wave
wave_utils.erl
%% Wave - MQTT Broker Copyright ( C ) 2014 - 2016 - %% %% This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , version 3 of the License . %% %% This program is distribu...
null
https://raw.githubusercontent.com/gbour/wave/fe5b78408a7c6e723b19cd454068958058e5e072/apps/wave/src/wave_utils.erl
erlang
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 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see ...
Wave - MQTT Broker Copyright ( C ) 2014 - 2016 - it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , version 3 of the License . GNU Affero General Public License for more details . You should have received a copy of the GNU Affero G...
2509561ea15706ef0f0c41afb1dd89c577ee2cd2cb28655c5c01dace283329cc
danneu/chaingun
codec2_test.clj
(ns chaingun.codec2-test (:require [expectations :refer :all] [clojure.string :as str] [chaingun.db :as db] [chaingun.codec2 :refer :all] [chaingun.util :refer :all]) (:import [java.util Date])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Codec ut...
null
https://raw.githubusercontent.com/danneu/chaingun/e25c594152a5584b2af774422e82884b8ab5ad9c/test/chaingun/codec2_test.clj
clojure
Codec utils Test-helper toys Roundtrip with block (bytes->hex (:txn/hash (datomic.api/touch (test-txn)))) {:txn/hash "6f7cf9580f1c2dfb3c4d5d043cdbb128c640e3f20161245aa7372e9666168516", :txn/lockTime 0, :txn/txOuts ({:txOut/script "76a91412ab8dc588ca9d5787dde7eb29569da63c3a238c88ac", :p...
(ns chaingun.codec2-test (:require [expectations :refer :all] [clojure.string :as str] [chaingun.db :as db] [chaingun.codec2 :refer :all] [chaingun.util :refer :all]) (:import [java.util Date])) (let [seconds (-> (Date.) (.getTime) (quot 1000)) instant (second...
6936b14438bedbe99123123b9cb0473e228c28413a0ef0d880b39681c0cb81dd
opencog/learn
connector-merge-conext.scm
; ; connector-merge-conext.scm Unit test for merging of Connectors - single connector ; 2 - cluster ; Similar to ` connector-merge-cons.scm ` except that it adds two more ; Sections that merge down into a common section ({ej}, ab{ej}) ; Created May 2021 (use-modules (opencog) (opencog matrix)) (use-modules (open...
null
https://raw.githubusercontent.com/opencog/learn/e00a803620491a7df4fc0d6b3dda2879a9dcb8cb/tests/merge/connector-merge-conext.scm
scheme
connector-merge-conext.scm 2 - cluster Sections that merge down into a common section ({ej}, ab{ej}) --------------------------------------------------------------- Section (j, abe) from the earlier test, to create ({ej}, ab{ej}). This further stresses the flattening and connector merging code. From basic s...
Similar to ` connector-merge-cons.scm ` except that it adds two more Created May 2021 (use-modules (opencog) (opencog matrix)) (use-modules (opencog nlp)) (use-modules (opencog learn)) (use-modules (opencog test-runner)) (use-modules (srfi srfi-64)) (opencog-test-runner) (load "connector-setup.scm") (load "conn...
5cd84be29dc93533a0f4690ce0e677ed371daa616da099ceed2873bfd06ff43c
walkie/academic-webpage
Pubs.hs
module WebPage.Pubs ( module WebPage.Pubs.Paper, module WebPage.Pubs.Database, module WebPage.Pubs.ToHtml ) where import WebPage.Pubs.Paper import WebPage.Pubs.Database import WebPage.Pubs.ToHtml
null
https://raw.githubusercontent.com/walkie/academic-webpage/4c86e5d5c1559cde08440427fa39bab7d91e765d/haskell/WebPage/Pubs.hs
haskell
module WebPage.Pubs ( module WebPage.Pubs.Paper, module WebPage.Pubs.Database, module WebPage.Pubs.ToHtml ) where import WebPage.Pubs.Paper import WebPage.Pubs.Database import WebPage.Pubs.ToHtml
4dc7bdff58e61f74dae95ad78ef15914d22619fd60a37cc982da0adf5351fe79
let-def/cuite
dlist.ml
type 'a t = { mutable head: 'a list; mutable tail: 'a list; } let empty () = { head = []; tail = [] } let prepend d x = d.head <- x :: d.head let append d x = d.tail <- x :: d.tail let prepend_all d x = d.head <- x @ d.head let append_all d x = d.tail <- List.rev_append x d.tail let read d = match d.tail with | [...
null
https://raw.githubusercontent.com/let-def/cuite/42629a91c573ecbf1b01f213f1bf35a456d2b1af/spec/dlist.ml
ocaml
type 'a t = { mutable head: 'a list; mutable tail: 'a list; } let empty () = { head = []; tail = [] } let prepend d x = d.head <- x :: d.head let append d x = d.tail <- x :: d.tail let prepend_all d x = d.head <- x @ d.head let append_all d x = d.tail <- List.rev_append x d.tail let read d = match d.tail with | [...
5936fd8014d583ec8c0a660768a8be381994f4c5d0b095fe635730df66d3c96d
Perry961002/SICP
exe3.19-have-cycle.scm
(define (have-cycle? x) (define (next x) (if (pair? x) (cdr x) '())) (define (iter slow fast) (cond ((not (pair? slow)) #f) ((not (pair? fast)) #f) ((eq? slow fast) #t) (else (iter (next slow) (next (next fast)))))...
null
https://raw.githubusercontent.com/Perry961002/SICP/89d539e600a73bec42d350592f0ac626e041bf16/Chap3/exercise/exe3.19-have-cycle.scm
scheme
(define (have-cycle? x) (define (next x) (if (pair? x) (cdr x) '())) (define (iter slow fast) (cond ((not (pair? slow)) #f) ((not (pair? fast)) #f) ((eq? slow fast) #t) (else (iter (next slow) (next (next fast)))))...
143d0ea47a5bcb9b1799a7e81056f47afd688d9ca828ca7edcc7268732c9d7ad
mwand/eopl3
data-structures.scm
(module data-structures (lib "eopl.ss" "eopl") ;; data structures for call-by-need language (require "lang.scm") ; for expression? (require "store.scm") ; for reference? (require "pairvals.scm") (provide (all-defined-out)) ; too many things to list ;;;;;;;;;...
null
https://raw.githubusercontent.com/mwand/eopl3/b50e015be7f021d94c1af5f0e3a05d40dd2b0cbf/chapter4/call-by-need/data-structures.scm
scheme
data structures for call-by-need language for expression? for reference? too many things to list expressed values ;;;;;;;;;;;;;;;; an expressed value is either a number, a boolean, a procval, a reference, or a mutable pair. extractors: procedures ;;;;;;;;;;;;;;;; environment data structures ;;;;;;;;;;;;;;;; ...
(module data-structures (lib "eopl.ss" "eopl") (require "pairvals.scm") (define-datatype expval expval? (num-val (value number?)) (bool-val (boolean boolean?)) (proc-val (proc proc?)) (ref-val (ref reference?)) (mutpair-val (p mutpair?)) ) (define ex...
71f57fc97b9ad5fb3facc23a2f81a97861e1705dc1fdcad3747c3aac89a1dbf9
thosmos/riverdb
reverse_many_picker.cljc
(ns riverdb.rad.ui.controls.reverse-many-picker (:require #?(:cljs [com.fulcrologic.fulcro.dom :as dom :refer [div h3 button i span]] :clj [com.fulcrologic.fulcro.dom-server :as dom :refer [div h3 button i span]]) [com.fulcrologic.rad.rendering.semantic-ui.components :refer [ui-wrapped-dropdown]] ...
null
https://raw.githubusercontent.com/thosmos/riverdb/c58f449d474b3f51829df142552b3dae2ee2802f/src/rad/riverdb/rad/ui/controls/reverse_many_picker.cljc
clojure
(ns riverdb.rad.ui.controls.reverse-many-picker (:require #?(:cljs [com.fulcrologic.fulcro.dom :as dom :refer [div h3 button i span]] :clj [com.fulcrologic.fulcro.dom-server :as dom :refer [div h3 button i span]]) [com.fulcrologic.rad.rendering.semantic-ui.components :refer [ui-wrapped-dropdown]] ...
d32812a58fa322cf52c637674b43837493fe32dee747ddc9e3042b5ac3501bd2
kongeor/evolduo-app
captcha.clj
(ns evolduo-app.model.captcha (:import (java.io ByteArrayOutputStream) (java.util Base64) (javax.sound.sampled AudioFileFormat$Type AudioSystem) (net.logicsquad.nanocaptcha.audio AudioCaptcha$Builder) (net.logicsquad.nanocaptcha.content ContentProducer))) (defn create-audi...
null
https://raw.githubusercontent.com/kongeor/evolduo-app/bce8cedb03f4799bdfb28fae3c1872697687e6dd/src/evolduo_app/model/captcha.clj
clojure
(ns evolduo-app.model.captcha (:import (java.io ByteArrayOutputStream) (java.util Base64) (javax.sound.sampled AudioFileFormat$Type AudioSystem) (net.logicsquad.nanocaptcha.audio AudioCaptcha$Builder) (net.logicsquad.nanocaptcha.content ContentProducer))) (defn create-audi...
00a48b212c1f278c2e32ce5c68c0c39a9d2c77ea1f7e72c3713bd55458a697e2
jmorag/mcc
Semant.hs
# LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - name - shadowing # module Microc.Semant ( checkProgram ) where import Microc.Ast import Microc.Sast import Microc.Semant.Error import Microc.Semant.Analysis import Microc.Utils import qualified Data.Map ...
null
https://raw.githubusercontent.com/jmorag/mcc/d412eec5e3783873ad42b74b837ed0f1047c2fde/src/Microc/Semant.hs
haskell
this doesn't preserve ordering Check that the correct number of arguments was provided Check that types of arguments match add the fname to the table and check for conflicts add this func to symbol table
# LANGUAGE FlexibleContexts # # OPTIONS_GHC -fno - warn - name - shadowing # module Microc.Semant ( checkProgram ) where import Microc.Ast import Microc.Sast import Microc.Semant.Error import Microc.Semant.Analysis import Microc.Utils import qualified Data.Map ...
da5f532f2eeb2645b17c4559ef892296bd6a9b06c5879eb5662d7340c01e1364
abailly/xxi-century-typed
NormalizeSpec.hs
module Minilang.NormalizeSpec where import Minilang.Env import Minilang.Eval hiding (NCase) import qualified Minilang.Eval as Eval import Minilang.Normalize import Minilang.Parser import Test.Hspec import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (Arbitrary (..), Positive (..)) spec :: Spec spec = parallel ...
null
https://raw.githubusercontent.com/abailly/xxi-century-typed/89df5eab3747ddb0ea37030ddb1947fb8c14265b/minilang/test/Minilang/NormalizeSpec.hs
haskell
module Minilang.NormalizeSpec where import Minilang.Env import Minilang.Eval hiding (NCase) import qualified Minilang.Eval as Eval import Minilang.Normalize import Minilang.Parser import Test.Hspec import Test.Hspec.QuickCheck (prop) import Test.QuickCheck (Arbitrary (..), Positive (..)) spec :: Spec spec = parallel ...
112016b490115ca0975b233e67ab127e65f2335d57e0fbb3de637d500a6d3f8b
phadej/staged
Cons.hs
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TypeOperators # module Data.SOP.Fn.Cons ( -- * Proxies prCons, prHead, prTail, ) where import Data.Proxy -- this is not good place, but good enough prCons :: proxy x -> proxy' xs -> Proxy (x ': xs) prCons _ _ = Proxy prHead :: pro...
null
https://raw.githubusercontent.com/phadej/staged/b51c8c508af71ddb2aca4a75030da9b2c4f9e3dd/staged-streams/src/Data/SOP/Fn/Cons.hs
haskell
* Proxies this is not good place, but good enough
# LANGUAGE DataKinds # # LANGUAGE PolyKinds # # LANGUAGE TypeOperators # module Data.SOP.Fn.Cons ( prCons, prHead, prTail, ) where import Data.Proxy prCons :: proxy x -> proxy' xs -> Proxy (x ': xs) prCons _ _ = Proxy prHead :: proxy (x ': xs) -> Proxy x prHead _ = Proxy prTail :: proxy (x...
399cd01d56aa435b2ab339a03cc2736168c4de3288caf43b7b9774846a91c0cb
opencog/benchmark
nano-dot.scm
; nano-dot.scm ; (use-modules (srfi srfi-1)) (use-modules (opencog) (opencog exec)) (use-modules (opencog persist) (opencog persist-file)) (use-modules (opencog nlp)) ; (use-modules (opencog cogserver)) Start the cogserver on port 19405 ( start - cogserver # : port 19405 ) ; Open the database and load the data....
null
https://raw.githubusercontent.com/opencog/benchmark/f13d7645a627d7c6c96bbdd7f3b0ecdd0c7416ec/query-link/nano-dot.scm
scheme
(use-modules (opencog cogserver)) Open the database and load the data. ------------------------------------------------------------------ The various kinds of dot products to measure. The simplest query, on which all the others are modeled. The search variable. What to look for. Multiply the counts on the sea...
nano-dot.scm (use-modules (srfi srfi-1)) (use-modules (opencog) (opencog exec)) (use-modules (opencog persist) (opencog persist-file)) (use-modules (opencog nlp)) Start the cogserver on port 19405 ( start - cogserver # : port 19405 ) (define fsn (FileStorageNode "en-nano.atomese")) (cog-open fsn) (load-atomspac...
09675a0ac0161c958dfb70c98e0074a9a91a6a73a0e17c5e9ba1f8ee60ac54f9
runtimeverification/haskell-backend
NotSimplifier.hs
| Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Simplify.NotSimplifier ( NotSimplifier (..), ) where import Kore.Internal.OrPattern ( OrPattern, ) import Kore.Internal.Si...
null
https://raw.githubusercontent.com/runtimeverification/haskell-backend/f2c86d14fcc67aaa580b9913f9bccbc56c5281a3/kore/src/Kore/Simplify/NotSimplifier.hs
haskell
| Copyright : ( c ) Runtime Verification , 2020 - 2021 License : BSD-3 - Clause Copyright : (c) Runtime Verification, 2020-2021 License : BSD-3-Clause -} module Kore.Simplify.NotSimplifier ( NotSimplifier (..), ) where import Kore.Internal.OrPattern ( OrPattern, ) import Kore.Internal.Si...
b4a170ae928838a427ddbf27d9e6ae3e39250613628248096bb514a3a9951fc4
janestreet/base
test_char_allocation.ml
open! Base open Expect_test_helpers_core let%expect_test _ = let x = Sys.opaque_identity 'a' in let y = Sys.opaque_identity 'b' in require_no_allocation [%here] (fun () -> ignore (Sys.opaque_identity (Char.Caseless.equal x y) : bool)); [%expect {||}] ;;
null
https://raw.githubusercontent.com/janestreet/base/5c5bd644d5efdd5002f21008811ec8f09017ee12/test/allocation/test_char_allocation.ml
ocaml
open! Base open Expect_test_helpers_core let%expect_test _ = let x = Sys.opaque_identity 'a' in let y = Sys.opaque_identity 'b' in require_no_allocation [%here] (fun () -> ignore (Sys.opaque_identity (Char.Caseless.equal x y) : bool)); [%expect {||}] ;;
f1021d0b8ef7514c845fc14eead8fdb31250947a3bea97cfe2ed2647458cc48f
dtgoitia/civil-autolisp
CaptureEscWithGrread.lsp
Dieter, Try the vl-catch-all-apply function. Some examples: (/ 10 2) > 5 error : divide by zero (vl-catch-all-apply '/ '(10 2)) > 5 (vl-catch-all-apply '/ '(10 0)) > #<%catch-all-apply-error%> But the program continues as displayed in the following code: (progn (print (vl-catch-all-apply '/ '(10 2))) (print (vl-ca...
null
https://raw.githubusercontent.com/dtgoitia/civil-autolisp/72d68139d372c84014d160f8e4918f062356349f/Dump%20folder/CaptureEscWithGrread.lsp
lisp
Dieter, Try the vl-catch-all-apply function. Some examples: (/ 10 2) > 5 error : divide by zero (vl-catch-all-apply '/ '(10 2)) > 5 (vl-catch-all-apply '/ '(10 0)) > #<%catch-all-apply-error%> But the program continues as displayed in the following code: (progn (print (vl-catch-all-apply '/ '(10 2))) (print (vl-ca...
1378916b6a4a7c3c50d95ec0cb16f378fd499e2e40522a17088560c031a4da57
tommaisey/aeon
pv-brick-wall.help.scm
;; (pv-brick-wall buffer wipe) ;; Clears bins above or below a cutoff point. `wipe' = a unit signal, from -1 to 0 the UGen acts as a low - pass filter , from 0 to 1 it ;; acts as a high pass filter. (with-sc3 (lambda (fd) (async fd (b-alloc 10 2048 1)))) (let ((x (mouse-x kr -1 1 0 0.1)) (c (fft* 10 (mu...
null
https://raw.githubusercontent.com/tommaisey/aeon/80744a7235425c47a061ec8324d923c53ebedf15/libs/third-party/sc3/rsc3/help/ugen/fft/pv-brick-wall.help.scm
scheme
(pv-brick-wall buffer wipe) Clears bins above or below a cutoff point. `wipe' = a unit signal, acts as a high pass filter.
from -1 to 0 the UGen acts as a low - pass filter , from 0 to 1 it (with-sc3 (lambda (fd) (async fd (b-alloc 10 2048 1)))) (let ((x (mouse-x kr -1 1 0 0.1)) (c (fft* 10 (mul (white-noise ar) 0.2)))) (audition (out 0 (ifft* (pv-brick-wall c x)))))
c0fc5760ec43682832485ae1b3a57493d8780c68f0bc998775baa2c4c0a86c23
rd--/hsc3
stkShakers.help.hs
stkShakers ; default param ; X.stkShakers ar 0.0 64.0 64.0 64.0 64.0 stkShakers ; random param let x = mouseX kr 0.25 4 Linear 0.2 tr = impulse kr x 0 - 0.5 instr = tRandId 'α' 0 23 tr energy = tRandId 'β' 0 127 tr decay_ = tRandId 'γ' 0 127 tr objects = tRandId 'δ' 0 127 tr resfreq = tRan...
null
https://raw.githubusercontent.com/rd--/hsc3/60cb422f0e2049f00b7e15076b2667b85ad8f638/Help/Ugen/stkShakers.help.hs
haskell
stkShakers ; default param ; X.stkShakers ar 0.0 64.0 64.0 64.0 64.0 stkShakers ; random param let x = mouseX kr 0.25 4 Linear 0.2 tr = impulse kr x 0 - 0.5 instr = tRandId 'α' 0 23 tr energy = tRandId 'β' 0 127 tr decay_ = tRandId 'γ' 0 127 tr objects = tRandId 'δ' 0 127 tr resfreq = tRan...
58e1250eb236fcf21aa5411e190e692dcaabe682bddfef6f1b1d7704779d1457
Workiva/eva
error.clj
Copyright 2015 - 2019 Workiva Inc. ;; ;; Licensed under the Eclipse Public License 1.0 (the "License"); ;; you may not use this file except in compliance with the License. ;; You may obtain a copy of the License at ;; ;; -1.0.php ;; ;; Unless required by applicable law or agreed to in writing, software dist...
null
https://raw.githubusercontent.com/Workiva/eva/b7b8a6a5215cccb507a92aa67e0168dc777ffeac/core/src/eva/datastructures/error.clj
clojure
Licensed under the Eclipse Public License 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at -1.0.php Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
Copyright 2015 - 2019 Workiva Inc. distributed under the License is distributed on an " AS IS " BASIS , (ns eva.datastructures.error (:require [eva.error :refer [deferror]])) (deferror io-failure :datastructures/io-failure "I/O failure occurred in datastructures") (deferror concurrent :datastructures/con...
5947455d9aaa678c7508d6152ed61f294cf8e5c8825f244056fd74098dbefc80
CLowcay/hgbc
DMA.hs
{-# LANGUAGE BangPatterns #-} # LANGUAGE RecordWildCards # # LANGUAGE RecursiveDo # module Machine.GBC.DMA ( State (..), init, ports, update, doPending, doHBlank, makeHDMASource, makeHDMADestination, ) where import Control.Monad.Reader (MonadIO (liftIO), ReaderT, when) import Data.Bits...
null
https://raw.githubusercontent.com/CLowcay/hgbc/76a8cf91f3c3b160eadf019bc8fc75ef07601c2f/core/src/Machine/GBC/DMA.hs
haskell
# LANGUAGE BangPatterns # number of clocks to stall the CPU. the number of clock cycles to stall the CPU.
# LANGUAGE RecordWildCards # # LANGUAGE RecursiveDo # module Machine.GBC.DMA ( State (..), init, ports, update, doPending, doHBlank, makeHDMASource, makeHDMADestination, ) where import Control.Monad.Reader (MonadIO (liftIO), ReaderT, when) import Data.Bits (Bits ((.&.), (.|.))) import ...
c57629d8bb2d5d850153b05f529ac788a7694d4120e1ee4a13f13b78698e25b1
cedlemo/OCaml-GI-ctypes-bindings-generator
Event_controller.ml
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let get_propagation_phase = foreign "gtk_event_controller_get_propagation_phase" (t_typ @-> returning (Propagation_phase.t_view)) let get_widget = foreign "gtk_event_controller_get_widget" (t_typ @-> returning (ptr Widget.t_typ)) (*Not implem...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gtk3/Event_controller.ml
ocaml
Not implemented gtk_event_controller_handle_event type union not implemented
open Ctypes open Foreign type t = unit ptr let t_typ : t typ = ptr void let get_propagation_phase = foreign "gtk_event_controller_get_propagation_phase" (t_typ @-> returning (Propagation_phase.t_view)) let get_widget = foreign "gtk_event_controller_get_widget" (t_typ @-> returning (ptr Widget.t_typ)) let reset = ...
7132e87357915b88cef5f2382007ce8980cc6e80dea6ddec0e90fa2c0db46c32
VisionsGlobalEmpowerment/webchange
icon_restore.cljs
(ns webchange.ui-framework.components.icon.icon-restore) (def data [:svg {:width "24" :height "24" :viewBox "0 0 24 24" :xmlns "" :class-name "stroke-colored" :fill "none" :stroke "#D99BFF"} [:path {:d "M19.5 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3....
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/fba105e71bc3bf196bcb5eeb900f2742cd4f964c/src/cljs/webchange/ui_framework/components/icon/icon_restore.cljs
clojure
(ns webchange.ui-framework.components.icon.icon-restore) (def data [:svg {:width "24" :height "24" :viewBox "0 0 24 24" :xmlns "" :class-name "stroke-colored" :fill "none" :stroke "#D99BFF"} [:path {:d "M19.5 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3....
cf5f8e70c5a4a4d63ce4db396e0f3d4047b9f87794064255fc9d57325c6aa8d0
mpenet/auspex
executor.clj
(ns qbits.auspex.executor (:import (java.util.concurrent Executor Executors ForkJoinPool ThreadFactory) (java.util.concurrent.atomic AtomicLong))) (set! *warn-on-reflection* true) (defn current-thread-executor "Returns an executor th...
null
https://raw.githubusercontent.com/mpenet/auspex/5733fa067505bcc4b65b171b7b003c13ab00fb23/src/qbits/auspex/executor.clj
clojure
(ns qbits.auspex.executor (:import (java.util.concurrent Executor Executors ForkJoinPool ThreadFactory) (java.util.concurrent.atomic AtomicLong))) (set! *warn-on-reflection* true) (defn current-thread-executor "Returns an executor th...
f056a9ce76dd01df4ccb28ef57638d6e729d28a368ae0fbc918dbbd9527053f9
screenshotbot/screenshotbot-oss
all.lisp
(uiop:define-package :clues (:use-reexport #:clues/injector))
null
https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/60e9ea59ad0b903152040336353bd124f77d6689/src/clues/all.lisp
lisp
(uiop:define-package :clues (:use-reexport #:clues/injector))
966647c1653ef384b61202142853e245b2cc0591d2258b8414eb0ffc28c6aa69
huangz1990/real-world-haskell-cn
InteractWith.hs
-- file: ch04/InteractWith.hs import System.Environment (getArgs) interactWith function inputFile outputFile = do input <- readFile inputFile writeFile outputFile (function input) main = mainWith myFunction where mainWith function = do args <- getArgs case args of [input,output]...
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch04/InteractWith.hs
haskell
file: ch04/InteractWith.hs replace "id" with the name of our function below
import System.Environment (getArgs) interactWith function inputFile outputFile = do input <- readFile inputFile writeFile outputFile (function input) main = mainWith myFunction where mainWith function = do args <- getArgs case args of [input,output] -> interactWith function inpu...
0549fdec0a1c235e3a8944d1b383a8256127942f9d53748e606e478a847d66f9
privet-kitty/cl-competitive
manhattan-fnn.lisp
(defpackage :cp/test/manhattan-fnn (:use :cl :fiveam :cp/manhattan-fnn) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/manhattan-fnn) (in-suite base-suite) (defun make-random-points (dim n state) (let ((res (make-array n))) (dotimes (i n) (let ((point (make-array dim :element-type 'fix...
null
https://raw.githubusercontent.com/privet-kitty/cl-competitive/4d1c601ff42b10773a5d0c5989b1234da5bb98b6/module/test/manhattan-fnn.lisp
lisp
(defpackage :cp/test/manhattan-fnn (:use :cl :fiveam :cp/manhattan-fnn) (:import-from :cp/test/base #:base-suite)) (in-package :cp/test/manhattan-fnn) (in-suite base-suite) (defun make-random-points (dim n state) (let ((res (make-array n))) (dotimes (i n) (let ((point (make-array dim :element-type 'fix...
8877f3905cb52d07a7a71e3f440402d742ee49fdc1925880d219e90d6d867510
kupl/FixML
sol.ml
let rec filter pred lst = match lst with | [] -> [] | hd::tl -> if pred hd then hd::(filter pred tl) else filter pred tl;;
null
https://raw.githubusercontent.com/kupl/FixML/0a032a733d68cd8ccc8b1034d2908cd43b241fce/benchmarks/filter/filter/sol.ml
ocaml
let rec filter pred lst = match lst with | [] -> [] | hd::tl -> if pred hd then hd::(filter pred tl) else filter pred tl;;
2ac86d4fc08096454457a35dbe5422f9071b27c2176dfb3cea9d0cb57816878a
remixlabs/wasicaml
testprint.ml
external string : string -> string -> unit = "testprint_string" external int : string -> int -> unit = "testprint_int" external float : string -> float -> unit = "testprint_float" external vector : int -> int -> int -> int -> int -> int -> int array = "testprint_vector_byte" "testprint_vector" external clock : unit -...
null
https://raw.githubusercontent.com/remixlabs/wasicaml/74ff72535aa8e49ab94a05d9c32c059ce264c1bb/test/testprint/testprint.ml
ocaml
external string : string -> string -> unit = "testprint_string" external int : string -> int -> unit = "testprint_int" external float : string -> float -> unit = "testprint_float" external vector : int -> int -> int -> int -> int -> int -> int array = "testprint_vector_byte" "testprint_vector" external clock : unit -...
7cded1404625412fdfde77cdc3628ef7c40f13dc4cc342b807b84b8f3d85c99d
hstreamdb/hstream
client.hs
{-# LANGUAGE DataKinds #-} # LANGUAGE GADTs # # LANGUAGE LambdaCase # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE RecordWildCards #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # ...
null
https://raw.githubusercontent.com/hstreamdb/hstream/a26306b11cfa177d7fd3f4903a24b20fd5552dfc/hstream/app/client.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE OverloadedStrings # # LANGUAGE PatternSynonyms # # LANGUAGE QuasiQuotes # # LANGUAGE RecordWildCards #
# LANGUAGE GADTs # # LANGUAGE LambdaCase # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeApplications # # OPTIONS_GHC -Werror = incomplete - patterns # module Main where import Control.Concurrent (threadDelay) import Control.Monad (w...
bfc04aa9163f6e03c717b817f6ad23a4369a2a47828fa628bededaf3c56ea96a
semilin/layoup
rollla.lisp
(MAKE-LAYOUT :NAME "rollla" :MATRIX (APPLY #'KEY-MATRIX '("youb.xkclv" "iaen,mhsrt" "'/pwzfdgjq")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/rollla.lisp
lisp
(MAKE-LAYOUT :NAME "rollla" :MATRIX (APPLY #'KEY-MATRIX '("youb.xkclv" "iaen,mhsrt" "'/pwzfdgjq")) :SHIFT-MATRIX NIL :KEYBOARD NIL)
da426fc4835600dd92ed58c8e10f6015c787f26e99479c55940e1e3a78f27d19
ujamjar/hardcaml
encode.ml
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) (* base64 encode png icons used in javscript wave viewer *) let buffer =...
null
https://raw.githubusercontent.com/ujamjar/hardcaml/65f32f543348e81cbb7f6d0e77f1f1203bf4e335/tools/encode.ml
ocaml
base64 encode png icons used in javscript wave viewer
* hardcaml - hardware design in OCaml * * ( c ) 2014 MicroJamJar Ltd * * Author(s ): * Description : * * hardcaml - hardware design in OCaml * * (c) 2014 MicroJamJar Ltd * * Author(s): * Description: * *) let buffer = Buffer.create 1024 let rec read () = try begin ...
b1f93f1f59893af7f1fa645eaf1dba65b9a9240002f20099f9708899d9740c6f
hiratara/Haskell-Nyumon-Sample
chap07-samples-7-4-3.hs
module Main(main) where import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM main :: IO () main = do as <- V.thaw animals Fox を Wolf に書き換える print =<< V.freeze as animals :: V.Vector String animals = V.fromList ["Dog", "Pig", "Cat", "Fox", "Mouse", "Cow", "Horse"]
null
https://raw.githubusercontent.com/hiratara/Haskell-Nyumon-Sample/ac52b741e3b96722f6fc104cfa84078e39f7a241/chap07-samples/chap07-samples-7-4-3.hs
haskell
module Main(main) where import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM main :: IO () main = do as <- V.thaw animals Fox を Wolf に書き換える print =<< V.freeze as animals :: V.Vector String animals = V.fromList ["Dog", "Pig", "Cat", "Fox", "Mouse", "Cow", "Horse"]
ebb5b96e6406115496519b631b26cdc5cf51b2d73389790ad74a0b9ac62773de
j-mie6/ParsleyHaskell
Dependencies.hs
# LANGUAGE RecordWildCards # | Module : Parsley . Internal . Frontend . Analysis . Dependencies Description : Calculate dependencies of a collection of bindings . License : BSD-3 - Clause Maintainer : : experimental Exposes ` dependencyAnalysis ` , which is used to calculate information ...
null
https://raw.githubusercontent.com/j-mie6/ParsleyHaskell/045ab78ed7af0cbb52cf8b42b6aeef5dd7f91ab2/parsley-core/src/ghc/Parsley/Internal/Frontend/Analysis/Dependencies.hs
haskell
but the register stuff should come after register optimisation and instruction peephole building the flattened dependency map. If the current focus has already been computed, add all its deps to the seen set and skip. IMMEDIATE DEPENDENCY MAPS Leave Lazy Could be Strict DEPENDENCY ANALYSIS ...
# LANGUAGE RecordWildCards # | Module : Parsley . Internal . Frontend . Analysis . Dependencies Description : Calculate dependencies of a collection of bindings . License : BSD-3 - Clause Maintainer : : experimental Exposes ` dependencyAnalysis ` , which is used to calculate information ...
5c5a15ff697954ccafee261bfcce7336742b161cf3b371a2f6f7b48aa9b4668f
wireless-net/erlang-nommu
xref.erl
%% %% %CopyrightBegin% %% Copyright Ericsson AB 2000 - 2013 . All Rights Reserved . %% The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Pub...
null
https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/tools/src/xref.erl
erlang
%CopyrightBegin% compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at /. basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limita...
Copyright Ericsson AB 2000 - 2013 . All Rights Reserved . The contents of this file are subject to the Erlang Public License , Version 1.1 , ( the " License " ) ; you may not use this file except in Software distributed under the License is distributed on an " AS IS " -module(xref). -behaviour(gen_server). -...
dabaafdb8bb23abfc381baa090cf6a86c744a0509aa8d97e08fffb8951ea1149
aluuu/spatial_index
test.ml
let () = let open Alcotest in run "Spatial_index" [ "Bounding box", Test_bounding_box.tests; "Bounding box (int coord)", Test_bounding_box_int.tests; "Rtree (functor)", Test_rtree_functor.tests; ]
null
https://raw.githubusercontent.com/aluuu/spatial_index/8ac020da17d7b990c5e0b89e667ce4fb3e31f546/test/test.ml
ocaml
let () = let open Alcotest in run "Spatial_index" [ "Bounding box", Test_bounding_box.tests; "Bounding box (int coord)", Test_bounding_box_int.tests; "Rtree (functor)", Test_rtree_functor.tests; ]