_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
691d427fc7daa22c1cc46ce5da868a4c6fab130ba58be98d947cb907aa1be276
moon-chilled/loop
clause.scm
The terminology used here is that of the BNF grammar in the dictionary description of the loop macro in the HyperSpec . It is not the same as the terminology used in the section 6.1 . ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Common classes. ;;; The base class of all claus...
null
https://raw.githubusercontent.com/moon-chilled/loop/09b08a5f0c442710f129d2de10d78128e21863a3/src/clause.scm
scheme
Common classes. The base class of all clauses. Mixin for clauses that accept `AND'. Method on WRAP-CLAUSE specialized to clause types that admit subclauses. This method overrides the default method above. It wraps each subclause individually, and then wraps the result in the initial bindings for the entire c...
The terminology used here is that of the BNF grammar in the dictionary description of the loop macro in the HyperSpec . It is not the same as the terminology used in the section 6.1 . (defclass clause () ()) (defclass subclauses-mixin () (subclauses) (wrap-clause (clause inner-form) (let ((result inn...
84614a906d7fd44e4068f5f897fcfabf7019b3d205f31342ed132e69b24e25d0
sirherrbatka/statistical-learning
generics.lisp
(cl:in-package #:statistical-learning.model-protocol) (sl.common:defgeneric/proxy make-model* ((parameters) training-state)) (sl.common:defgeneric/proxy make-training-state ((parameters) &rest initargs &key &allow-other-keys)) (sl.common:defgeneric/proxy sample...
null
https://raw.githubusercontent.com/sirherrbatka/statistical-learning/b3c68fa4044bcc9cf25a67be8452b1c667e002a0/source/model-protocol/generics.lisp
lisp
(cl:in-package #:statistical-learning.model-protocol) (sl.common:defgeneric/proxy make-model* ((parameters) training-state)) (sl.common:defgeneric/proxy make-training-state ((parameters) &rest initargs &key &allow-other-keys)) (sl.common:defgeneric/proxy sample...
06d9383b566ece771928a7558f2e6c7a4e71169d05b5b151959393c74e4f013b
ropas/sparrow
taintSem.mli
(***********************************************************************) (* *) Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . (* All rights reserved...
null
https://raw.githubusercontent.com/ropas/sparrow/3ec055b8c87b5c8340ef3ed6cde34f5835865b31/src/semantics/taintSem.mli
ocaml
********************************************************************* All rights reserved. See the LICENSE file for details. ...
Copyright ( c ) 2007 - present . Programming Research Laboratory ( ROPAS ) , Seoul National University . This software is distributed under the term of the BSD license . include AbsSem.S with type Dom.t = TaintDom.Mem.t and type Dom.A.t = BasicDom.Loc.t and type Dom.P...
5cc585728883ca3e39853a236dff368156e54867a233b3dca7f7e415a037e77f
ocaml-ppx/ocamlformat
Parse_with_comments.ml
(**************************************************************************) (* *) (* OCamlFormat *) (* *) ...
null
https://raw.githubusercontent.com/ocaml-ppx/ocamlformat/70f897a5aa88f8cc52e2a5bba330752d27359145/lib/Parse_with_comments.ml
ocaml
************************************************************************ OCamlFormat ...
Copyright ( c ) Facebook , Inc. and its affiliates . This source code is licensed under the MIT license found in open Migrate_ast type 'a with_comments = {ast: 'a; comments: Cmt.t list; prefix: string; source: Source.t} module W = struct type t = int let in_lexer = [1; 2...
e16919e2dbfd557da5ebf974cc611b5532cb61ae955237da77b4ca514fe425b8
nasa/Common-Metadata-Repository
granule.clj
(ns cmr.indexer.data.concepts.granule "Contains functions to parse and convert granule concept" (:require [camel-snake-kebab.core :as csk] [cheshire.core :as json] [clojure.string :as string] [cmr.common.cache :as cache] [cmr.common.concepts :as concepts] [cmr.common.log :refer (debug info warn er...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/97fd6b4ae0707f438b32e472b9545809b37dadcd/indexer-app/src/cmr/indexer/data/concepts/granule.clj
clojure
not empty is used below to get a real true false value We want to pull cloud cover form additional attributes if the root level cloud cover value is absent
(ns cmr.indexer.data.concepts.granule "Contains functions to parse and convert granule concept" (:require [camel-snake-kebab.core :as csk] [cheshire.core :as json] [clojure.string :as string] [cmr.common.cache :as cache] [cmr.common.concepts :as concepts] [cmr.common.log :refer (debug info warn er...
4865b524d2fd9fe0ae4cb52ab285fd69e3a5f24b6303e9e35f94af3b1446da0a
geophf/1HaskellADay
Exercise.hs
{-# LANGUAGE OverloadedStrings #-} module Y2021.M02.D12.Exercise where import Data.Char import Data.Text import qualified Data.Text as T import Y2021.M02.D03.Solution (Review, Review(Review), RawReview, NodeIds) import qualified Y2021.M02.D03.Solution as WR import qualified Y2021.M02.D08.Solution as ETL - We le...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/514792071226cd1e2ba7640af942667b85601006/exercises/HAD/Y2021/M02/D12/Exercise.hs
haskell
# LANGUAGE OverloadedStrings # } - >>> unirep "edge of jammy—in a good way." "edge of jammy\u8212in a good way." ----- BONUS ------------------------------------------------------- Using unirep, upload all reviewed, now properly unicoded. -
module Y2021.M02.D12.Exercise where import Data.Char import Data.Text import qualified Data.Text as T import Y2021.M02.D03.Solution (Review, Review(Review), RawReview, NodeIds) import qualified Y2021.M02.D03.Solution as WR import qualified Y2021.M02.D08.Solution as ETL - We left on on inserting wine reviews wit...
55ea8f1e30185b223520f6666dbcce39b0e4ea40c31598cfba92c3df5e7f92fc
quux00/go-lightly
multiplex_lamina.clj
(ns thornydev.go-lightly.boring.multiplex-lamina (:require [thornydev.go-lightly :refer [go stop]] [thornydev.go-lightly.util :refer [with-channel-open]] [lamina.core :refer :all])) ;; Note: if you wanted to make this a pure lamina ;; implementation (no go-lightly), then you would have ;; to ...
null
https://raw.githubusercontent.com/quux00/go-lightly/815052a72af678e8c84d7a9716c50f7008d8971e/go-lightly-examples/clj-examples/src/thornydev/go_lightly/boring/multiplex_lamina.clj
clojure
Note: if you wanted to make this a pure lamina implementation (no go-lightly), then you would have to manually create a daemon-thread here or create a future and cancel it or use the Java Executor framework to launch and shutdown the "go routines" to read from each input channel from all input channels to a sing...
(ns thornydev.go-lightly.boring.multiplex-lamina (:require [thornydev.go-lightly :refer [go stop]] [thornydev.go-lightly.util :refer [with-channel-open]] [lamina.core :refer :all])) (defn- boring [msg] (let [ch (channel)] (go (loop [i 0] (enqueue ch (str msg " " i)) ...
c035d99d72698a1b09b223297ac3754035a00ca273397afadc68a9148c36e5b3
alura-cursos/clojure-mutabilidade-atomos-e-refs
aula4.clj
(ns hospital.aula4 (:use [clojure pprint]) (:require [hospital.logic :as h.logic] [hospital.model :as h.model])) (defn chega-sem-malvado! [hospital pessoa] (swap! hospital h.logic/chega-em :espera pessoa) (println "apos inserir" pessoa)) (defn simula-um-dia-em-paralelo-com-mapv "Simulação utiliz...
null
https://raw.githubusercontent.com/alura-cursos/clojure-mutabilidade-atomos-e-refs/18c70bc13862df53377ac607b53b8f210f4239dd/aula4.1/hospital/src/hospital/aula4.clj
clojure
(ns hospital.aula4 (:use [clojure pprint]) (:require [hospital.logic :as h.logic] [hospital.model :as h.model])) (defn chega-sem-malvado! [hospital pessoa] (swap! hospital h.logic/chega-em :espera pessoa) (println "apos inserir" pessoa)) (defn simula-um-dia-em-paralelo-com-mapv "Simulação utiliz...
928e3df455e669699413362b35873dafc4612c5ef3efa71dbd47b097c384bd9a
3b/learnopengl
multiple-lights.lisp
;;;; shader code (defpackage multiple-lights/shaders (:use #:3bgl-glsl/cl) ;; shadow POSITION so we don't conflict with the default definition of CL : POSITION as ( input position : vec4 : location 0 ) (:shadow position)) (in-package multiple-lights/shaders) ;; structures are defined with (defstruct <name> (sl...
null
https://raw.githubusercontent.com/3b/learnopengl/30f910895ef336ac5ff0b4cc676af506413bb953/factored/multiple-lights.lisp
lisp
shader code shadow POSITION so we don't conflict with the default definition structures are defined with (defstruct <name> (slot-name slottype)*) ... type inference can't figure out struct types by itself, so have to specify those manually diffuse shading specular shading combine results diffuse shading spec...
(defpackage multiple-lights/shaders (:use #:3bgl-glsl/cl) of CL : POSITION as ( input position : vec4 : location 0 ) (:shadow position)) (in-package multiple-lights/shaders) (defstruct -material (diffuse :sampler-2d) (specular :sampler-2d) (shininess :float)) (defstruct -dir-light (direction :vec3) (...
cfe458f6c70e3d72decf9c0ca9974b1b3d0e17ea063caa4e7dbe2f726a74c79e
footprintanalytics/footprint-web
query_processor.clj
(ns metabase.query-processor "Primary entrypoints to running Metabase (MBQL) queries. (metabase.query-processor/process-query {:type :query, :database 1, :query {:source-table 2}}) calling one variations of `process-userland-query` (see documentation below)." (:refer-clojure :exclude [compile]) (:requir...
null
https://raw.githubusercontent.com/footprintanalytics/footprint-web/d3090d943dd9fcea493c236f79e7ef8a36ae17fc/src/metabase/query_processor.clj
clojure
+----------------------------------------------------------------------------------------------------------------+ | QUERY PROCESSOR | +--------------------------------------------------------------------------------------...
(ns metabase.query-processor "Primary entrypoints to running Metabase (MBQL) queries. (metabase.query-processor/process-query {:type :query, :database 1, :query {:source-table 2}}) calling one variations of `process-userland-query` (see documentation below)." (:refer-clojure :exclude [compile]) (:requir...
3f5495ea324db46170c0eb66d6bbd0a2872352c9f096da71b3d228013cbe07e1
pixlsus/registry.gimp.org_static
Gimp-help-links_3.scm
based on a script from < > revisited by ; #p19368 (define (gimpchat) (plug-in-web-browser "/") ) (define (gimptalk) (plug-in-web-browser "/") ) (define (flickr-gimpusers-group) (plug-in-web-browser "/") ) (define (Meet-the-gimp) (plug-in-web-browser "-the-old-shows/") ) (d...
null
https://raw.githubusercontent.com/pixlsus/registry.gimp.org_static/ffcde7400f402728373ff6579947c6ffe87d1a5e/registry.gimp.org/files/Gimp-help-links_3.scm
scheme
#p19368
based on a script from < > (define (gimpchat) (plug-in-web-browser "/") ) (define (gimptalk) (plug-in-web-browser "/") ) (define (flickr-gimpusers-group) (plug-in-web-browser "/") ) (define (Meet-the-gimp) (plug-in-web-browser "-the-old-shows/") ) (define (GimpTrick) (plug...
87594fc6ac05b21b8031453eab47694ce8b8f2b51b312bad88df89f2e5897822
antifuchs/cxml-rpc
client.lisp
(cl:in-package #:cxml-rpc) (defun character-stream-p (stream) (subtypep (stream-element-type stream) 'character)) (defun call (uri function parameters &rest drakma-args) (apply #'call-with-encoder uri (apply 'encoder function parameters) #'decode-response drakma-args)) (defun trace-xml-respon...
null
https://raw.githubusercontent.com/antifuchs/cxml-rpc/3b5b26510f4fdada36f3c110113313d98affb287/client.lisp
lisp
need the keyword args for the invocation protocol only, so...
(cl:in-package #:cxml-rpc) (defun character-stream-p (stream) (subtypep (stream-element-type stream) 'character)) (defun call (uri function parameters &rest drakma-args) (apply #'call-with-encoder uri (apply 'encoder function parameters) #'decode-response drakma-args)) (defun trace-xml-respon...
99881185c2ffa98b5bb8ae788ccf7e3095efde60f97cd63b3d1f3856043745f8
clojang/clojang
callbacks.clj
(ns ^{:doc "This is the home of the ping-pong server callbacks."} ping-pong.callbacks (:require [clojure.tools.logging :as log] [clojang.mbox :as mbox] [clojang.util :as util] [ping-pong.client :as client])) (defn handle-ping [png-png-client caller state] (mbox/! png-png-c...
null
https://raw.githubusercontent.com/clojang/clojang/d248e22f3ba2488fd1f16f7bb99bdd63d324d3e6/examples/ping-pong/src/ping_pong/callbacks.clj
clojure
(ns ^{:doc "This is the home of the ping-pong server callbacks."} ping-pong.callbacks (:require [clojure.tools.logging :as log] [clojang.mbox :as mbox] [clojang.util :as util] [ping-pong.client :as client])) (defn handle-ping [png-png-client caller state] (mbox/! png-png-c...
fce8414c0e953f8e9a1fdb0faddedc08a6e78fbaf1737d9b783d0ed11adec310
basho/riak_test
verify_job_enable_ac.erl
%% ------------------------------------------------------------------- %% Copyright ( c ) 2016 - 2017 Basho Technologies , Inc. %% This file is provided to you under the Apache License , %% Version 2.0 (the "License"); you may not use this file except in compliance with the License . You may obtain %% a copy of...
null
https://raw.githubusercontent.com/basho/riak_test/8170137b283061ba94bc85bf42575021e26c929d/tests/verify_job_enable_ac.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 ) 2016 - 2017 Basho Technologies , Inc. This file is provided to you under the Apache License , except in compliance with the License . You may obtain software distributed under the License is distributed on an " AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY -module(verify_job_enabl...
1aa470c41d27442af401980bff1f680e07ac7e9b1eb955bb9c8b910813135f97
spechub/Hets
Kif2CASL.hs
| Module : ./CASL / Kif2CASL.hs Description : for SUMO ( suggested upper merged ontology ) .kif files Copyright : ( c ) T.Mossakowski , C.Maeder and Uni Bremen 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable...
null
https://raw.githubusercontent.com/spechub/Hets/af7b628a75aab0d510b8ae7f067a5c9bc48d0f9e/CASL/Kif2CASL.hs
haskell
| the universal sort | translation of formulas | convert a string to a legal CASL identifier ,"and","or","=>","<=>","not"] | translation of variable declaration lists | translation of variable declarations | check for comment | convert comment to annotation | collect all predicate symbols used in a formula | ...
| Module : ./CASL / Kif2CASL.hs Description : for SUMO ( suggested upper merged ontology ) .kif files Copyright : ( c ) T.Mossakowski , C.Maeder and Uni Bremen 2006 License : GPLv2 or higher , see LICENSE.txt Maintainer : Stability : provisional Portability : portable...
1185209ecb9744bd21dd9c2272b46fa09ed62c0ba712fdc976876c0e44c9ebad
nomeata/haskell-for-readers
move-solutions.hs
# LANGUAGE TupleSections # import Text.Pandoc.JSON import Text.Pandoc.Walk import Data.IORef main :: IO () main = toJSONFilter $ \(Pandoc meta bs) -> do r <- newIORef id let go b@(Div (i,cs,a) bs) | "Solution" `elem` cs = do modifyIORef r (. (b:)) return [] go b = return [b] ...
null
https://raw.githubusercontent.com/nomeata/haskell-for-readers/3ad398c188248fd57adb572b0d7130767dec28a4/move-solutions.hs
haskell
Walks in order
# LANGUAGE TupleSections # import Text.Pandoc.JSON import Text.Pandoc.Walk import Data.IORef main :: IO () main = toJSONFilter $ \(Pandoc meta bs) -> do r <- newIORef id let go b@(Div (i,cs,a) bs) | "Solution" `elem` cs = do modifyIORef r (. (b:)) return [] go b = return [b] ...
fc98c59d6d8e6c546d53c4b3681d2eeb196e4be153602cea0e3a5199857540b2
sjl/advent
day-01.lisp
(advent:defpackage* :advent/2017/01) (in-package :advent/2017/01) (define-problem (2017 1) (data read-line) (1049 1508) (iterate (with digits = (map 'vector #'digit-char-p data)) (for digit :in-vector digits) (for prev :previous digit :initially (aref digits (1- (length digits)))) (for j :modulo (le...
null
https://raw.githubusercontent.com/sjl/advent/dc3debda9bd1a0570a6ab06919b1af7b285413dc/src/2017/days/day-01.lisp
lisp
(advent:defpackage* :advent/2017/01) (in-package :advent/2017/01) (define-problem (2017 1) (data read-line) (1049 1508) (iterate (with digits = (map 'vector #'digit-char-p data)) (for digit :in-vector digits) (for prev :previous digit :initially (aref digits (1- (length digits)))) (for j :modulo (le...
6d6dbfe15fc221f31d6839fea76c5fbea47aec9f4082ab45f91265d54190420b
bozsahin/ccglab
g-nu.ccg.lisp
(defparameter *ccg-grammar* '(((KEY 1) (PHON I) (MORPH N) (SYN ((BCAT NP) (FEATS ((AGR |1S|))))) (SEM "I") (PARAM 1.0)) ((KEY 2) (PHON THINK) (MORPH EN) (SYN ((((BCAT S) (FEATS NIL)) (DIR BS) (MODAL ALL) ((BCAT NP) (FEATS ((AGR |1S|))))) (DIR FS) (MODAL HARMONIC) ((BCAT S) (FEATS NIL)))) (SEM ...
null
https://raw.githubusercontent.com/bozsahin/ccglab/15def13c76e562a053ff92d61353549818d2a7e3/examples/type-raising-with-workflow/g-nu.ccg.lisp
lisp
(defparameter *ccg-grammar* '(((KEY 1) (PHON I) (MORPH N) (SYN ((BCAT NP) (FEATS ((AGR |1S|))))) (SEM "I") (PARAM 1.0)) ((KEY 2) (PHON THINK) (MORPH EN) (SYN ((((BCAT S) (FEATS NIL)) (DIR BS) (MODAL ALL) ((BCAT NP) (FEATS ((AGR |1S|))))) (DIR FS) (MODAL HARMONIC) ((BCAT S) (FEATS NIL)))) (SEM ...
5a0c37d8502a203cb2c73461f4ec8c47c838a3db4e455fec3e74e540ec9c1e52
korya/efuns
interp_noeff.ml
(***********************************************************************) (* *) (* Interp.ml *) (* *) Fabrice Le Fessa...
null
https://raw.githubusercontent.com/korya/efuns/78b21d9dff45b7eec764c63132c7a564f5367c30/dynlink/other/interp_noeff.ml
ocaml
********************************************************************* Interp.ml ...
Fabrice Le Fessant , projet Para / SOR , INRIA Rocquencourt Copyright 1998 Institut National de Recherche en Informatique et Automatique . Distributed only by permission . This module implement an interpretor for OCAML bytecode . The bytecode is supposed to be lin...
df04044647b79eac5bd5e61875879059d0f59120cd2f466b59733be0fb88fbf8
re-ops/re-share
encryption.clj
(ns re-share.encryption "pgp secret encryption support, in order to test we can generate a testing keyring: gpg --no-default-keyring --keyring trustedkeys.gpg --fingerprint gpg --no-default-keyring --keyring trustedkeys.gpg --gen-key A public and private keyrings should be exported (for bountycastle s...
null
https://raw.githubusercontent.com/re-ops/re-share/703cfdf78c82bbde63bc1e33db877ac8540d20e7/src/re_share/encryption.clj
clojure
(ns re-share.encryption "pgp secret encryption support, in order to test we can generate a testing keyring: gpg --no-default-keyring --keyring trustedkeys.gpg --fingerprint gpg --no-default-keyring --keyring trustedkeys.gpg --gen-key A public and private keyrings should be exported (for bountycastle s...
729c1965bf21c3cb394557eb5f14f5ae7ceaae7446ea2b94687ce23a1433a5b5
ZHaskell/zoovisitor
Election.hs
module ZooKeeper.Recipe.Election ( election ) where import Control.Exception (catch, throwIO) import Control.Monad import Z.Data.CBytes (CBytes) import ZooKeeper import ZooKeeper.Exception (ZNODEEXISTS) import ZooKeeper.Recipe.Utils (ZkR...
null
https://raw.githubusercontent.com/ZHaskell/zoovisitor/53053dbf358899906565a05dc2477fd1679b8aa9/src/ZooKeeper/Recipe/Election.hs
haskell
| Run a leader election process. __IMPORTANT__: This function may run endlessly until it is selected as the leader. ^ The zookeeper handle obtained by a call to 'zookeeperResInit' ^ The path to start the election from. Ephemeral znodes will be put on it ^ The GUID for this zookeeper session. To handle recoverabl...
module ZooKeeper.Recipe.Election ( election ) where import Control.Exception (catch, throwIO) import Control.Monad import Z.Data.CBytes (CBytes) import ZooKeeper import ZooKeeper.Exception (ZNODEEXISTS) import ZooKeeper.Recipe.Utils (ZkR...
0691d1e8190d38cd417103567b771a8567cac89a22a86b976a54c0b9bb0a7fec
huangz1990/real-world-haskell-cn
third.hs
-- file: ch03/third.hs third (a, b, c) = c
null
https://raw.githubusercontent.com/huangz1990/real-world-haskell-cn/f67b07dd846b1950d17ff941d650089fcbbe9586/code/ch03/third.hs
haskell
file: ch03/third.hs
third (a, b, c) = c
6908c7db0362cb06e27e22c98e6a8eb39c4e47261fed2feaf93d916b1d719815
mstksg/advent-of-code-2019
Day25.hs
{-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} -- | -- Module : AOC.Challenge.Day25 -- License : BSD3 -- -- Stability : experimental -- Portability : non-portable -- Day 25 . See " AOC.Solver " for the types used in this module ! module AOC.Chal...
null
https://raw.githubusercontent.com/mstksg/advent-of-code-2019/df2b1c76ad26ad20306f705e923a09b14d538374/src/AOC/Challenge/Day25.hs
haskell
# LANGUAGE OverloadedLabels # # LANGUAGE OverloadedStrings # # LANGUAGE TypeFamilies # | Module : AOC.Challenge.Day25 License : BSD3 Stability : experimental Portability : non-portable ^ where did we come from ^ room name, graph ^ bot at checkpoint with all items ^ bot at checkpoint with all...
Day 25 . See " AOC.Solver " for the types used in this module ! module AOC.Challenge.Day25 ( day25a ) where import AOC.Common (Dir(..)) import AOC.Common.Intcode (Memory, AsciiVM, IErr, parseMem, interactAsciiVM, untilHalt, stepN, toAsciiVM, stepF...
56d349b7ce9e53f6cb01c1fd040f99128ebdd584ac9b71a2be0f0b90cbb05d35
VisionsGlobalEmpowerment/webchange
google.clj
(ns webchange.voice-recognizer.recognizers.google (:require [clojure.java.io :as io] [config.core :refer [env]]) (:import (com.google.cloud.speech.v1 SpeechClient SpeechSettings RecognitionConfig RecognitionC...
null
https://raw.githubusercontent.com/VisionsGlobalEmpowerment/webchange/bceda8ea1c42425fdba88b8eb171ba8f4a5a55ea/src/clj/webchange/voice_recognizer/recognizers/google.clj
clojure
(ns webchange.voice-recognizer.recognizers.google (:require [clojure.java.io :as io] [config.core :refer [env]]) (:import (com.google.cloud.speech.v1 SpeechClient SpeechSettings RecognitionConfig RecognitionC...
d829658765a61ad41b1d255fd05e823b9fa92ac6f542c0c72adc6fe80bdcce05
mejgun/haskell-tdlib
SetGroupCallParticipantVolumeLevel.hs
{-# LANGUAGE OverloadedStrings #-} -- | module TD.Query.SetGroupCallParticipantVolumeLevel where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.MessageSender as MessageSender import qualified Utils as U -- | -- Changes volume level of a participant of an active group...
null
https://raw.githubusercontent.com/mejgun/haskell-tdlib/dc380d18d49eaadc386a81dc98af2ce00f8797c2/src/TD/Query/SetGroupCallParticipantVolumeLevel.hs
haskell
# LANGUAGE OverloadedStrings # | | Changes volume level of a participant of an active group call. If the current user can manage the group call, then the participant's volume level will be changed for all users with the default volume level | Participant identifier | Group call identifier
module TD.Query.SetGroupCallParticipantVolumeLevel where import qualified Data.Aeson as A import qualified Data.Aeson.Types as T import qualified TD.Data.MessageSender as MessageSender import qualified Utils as U data SetGroupCallParticipantVolumeLevel = SetGroupCallParticipantVolumeLevel | New participant 's volu...
1834aa8c6c09cd0b6f0e6b5e858270008b7608b632f8d51199933d6f9d70159a
v-kolesnikov/sicp
2_18_test.clj
(ns sicp.chapter02.2-18-test (:require [clojure.test :refer [deftest]] [clojure.test.check.clojure-test :as ct] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [sicp.chapter02.2-18 :as sicp-2-18] [sicp.test-helper :refer [ass...
null
https://raw.githubusercontent.com/v-kolesnikov/sicp/4298de6083440a75898e97aad658025a8cecb631/test/sicp/chapter02/2_18_test.clj
clojure
(ns sicp.chapter02.2-18-test (:require [clojure.test :refer [deftest]] [clojure.test.check.clojure-test :as ct] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [sicp.chapter02.2-18 :as sicp-2-18] [sicp.test-helper :refer [ass...
ca86257a456fa88c147360f9f910453e34e7b974dd252983519645cb66d686b3
keera-studios/haskell-titan
ProtectedModelInternals.hs
-- | Contains the protected model definition used by other modules to -- declare the protected fields. -- Copyright : ( C ) Keera Studios Ltd , 2018 -- License : GPL-3 Maintainer : module Model.ProtectedModel.ProtectedModelInternals ( ProtectedModel , GPM.onReactiveModel , GPM.fromReactiveModel ...
null
https://raw.githubusercontent.com/keera-studios/haskell-titan/958ddd2b468af00db46004a683c1c7aebe81526c/titan/src/Model/ProtectedModel/ProtectedModelInternals.hs
haskell
| Contains the protected model definition used by other modules to declare the protected fields. License : GPL-3
Copyright : ( C ) Keera Studios Ltd , 2018 Maintainer : module Model.ProtectedModel.ProtectedModelInternals ( ProtectedModel , GPM.onReactiveModel , GPM.fromReactiveModel , GPM.applyToReactiveModel , GPM.onEvent , GPM.onEvents , GPM.waitFor ) where import Model.Model import Model.Re...
f36a6a950e9d710881a7397f07a6522c9ce37159ca794db910db6cd91b2c694a
mfikes/fifth-postulate
ns500.cljs
(ns fifth-postulate.ns500) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
null
https://raw.githubusercontent.com/mfikes/fifth-postulate/22cfd5f8c2b4a2dead1c15a96295bfeb4dba235e/src/fifth_postulate/ns500.cljs
clojure
(ns fifth-postulate.ns500) (defn solve-for01 [xs v] (for [ndx0 (range 0 (- (count xs) 3)) ndx1 (range (inc ndx0) (- (count xs) 2)) ndx2 (range (inc ndx1) (- (count xs) 1)) ndx3 (range (inc ndx2) (count xs)) :when (= v (+ (xs ndx0) (xs ndx1) (xs ndx2) (xs ndx3)))] (list (x...
31ee62a2807724d446e4401d769df64fdcdd8f71657413402ff39f66bb95546e
ericdrgn/drgn.nyxt
keybindings.lisp
(in-package #:nyxt-user) ;;keybinding overrides (define-configuration buffer ((override-map (let ((map (make-keymap "my-override-map"))) (define-key map "M-i" 'show-weather "C-t" 'set-url-new-buffer "C-2" 'open-external-browser ...
null
https://raw.githubusercontent.com/ericdrgn/drgn.nyxt/4e965502f99237207b4c02177baa6c6226cb552a/base/keybindings.lisp
lisp
keybinding overrides currently an override because C-c not working without it
(in-package #:nyxt-user) (define-configuration buffer ((override-map (let ((map (make-keymap "my-override-map"))) (define-key map "M-i" 'show-weather "C-t" 'set-url-new-buffer "C-2" 'open-external-browser "C-0" 'no...
3d304d1bca21d9b730d5594bd4df51512c2edba14e7b014c491804b92de0570b
BU-CS320/Fall-2018
FeaturesTests.hs
module FeaturesTests where -- TODO: this is where you prove to us you implemented the additional features import Test.Tasty (testGroup) import Test.Tasty.HUnit (assertEqual, assertBool, testCase) import Test.Tasty.QuickCheck unitTests = testGroup "FeaturesTests" [ TODO ]
null
https://raw.githubusercontent.com/BU-CS320/Fall-2018/beec3ca88be5c5a62271a45c8053fb1b092e0af1/project/tests/FeaturesTests.hs
haskell
TODO: this is where you prove to us you implemented the additional features
module FeaturesTests where import Test.Tasty (testGroup) import Test.Tasty.HUnit (assertEqual, assertBool, testCase) import Test.Tasty.QuickCheck unitTests = testGroup "FeaturesTests" [ TODO ]
9a15db5172ae425f76489db74344662e93eb34b573994cca0fe10fc3b6b975eb
commercialhaskell/stack
script.hs
#!/usr/bin/env stack -- stack --resolver snapshot.yaml script import Acme.Missiles main :: IO () main = launchMissiles
null
https://raw.githubusercontent.com/commercialhaskell/stack/255cd830627870cdef34b5e54d670ef07882523e/test/integration/tests/relative-script-snapshots/files/subdir/script.hs
haskell
stack --resolver snapshot.yaml script
#!/usr/bin/env stack import Acme.Missiles main :: IO () main = launchMissiles
41bfc26399a27bcdae05f42a46bcdd25ca9cb23ef00bfbb6d49ed350b790089e
facebookarchive/pfff
lib_parsing_php.mli
(*s: lib_parsing_php.mli *) val is_php_filename: Common.filename -> bool this will open the file and look possible for a # ! /usr / / env php val is_php_file: Common.filename -> bool val is_php_script: Common.filename -> bool val find_source_files_of_dir_or_files: ?verbose:bool -> ?include_hack:bool -> Comm...
null
https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/parsing/lib_parsing_php.mli
ocaml
s: lib_parsing_php.mli x: lib_parsing_php.mli returns only origin tokens, filter fake tokens x: lib_parsing_php.mli do via side effects x: lib_parsing_php.mli x: lib_parsing_php.mli e: lib_parsing_php.mli
val is_php_filename: Common.filename -> bool this will open the file and look possible for a # ! /usr / / env php val is_php_file: Common.filename -> bool val is_php_script: Common.filename -> bool val find_source_files_of_dir_or_files: ?verbose:bool -> ?include_hack:bool -> Common.path list -> Common.filen...
1e284a55d91beea73111da484edba3882cbeaabf7e6aa88e75e7a45d72f2f930
threatgrid/ctim
sorting.cljc
(ns ctim.domain.sorting (:require [clj-momo.lib.clj-time.core :as time] [clj-momo.lib.clj-time.coerce :refer [to-internal-date]] [ctim.domain.validity :as validity])) ;;------------------------------------------------------------------------------ ;; Judgements ;;--------------------------------------------...
null
https://raw.githubusercontent.com/threatgrid/ctim/2ecae70682e69495cc3a12fd58a474d4ea57ae9c/src/ctim/domain/sorting.cljc
clojure
------------------------------------------------------------------------------ Judgements ------------------------------------------------------------------------------ Validity is reverse sorted so that true comes before false Start-time is reverse sorted ------------------------------------------------------------...
(ns ctim.domain.sorting (:require [clj-momo.lib.clj-time.core :as time] [clj-momo.lib.clj-time.coerce :refer [to-internal-date]] [ctim.domain.validity :as validity])) (defn compare-judgements "Compare judgements, first by validity (valid first), then by disposition number, and then by start-time (newes...
8c4190243ad3e1757f89d7b3ab48371b31907c4751fce326361509b388bf56d1
valpackett/octohipster
middleware.clj
(ns octohipster.link.middleware (:use [octohipster util] [octohipster.link util])) (defn wrap-add-links-1 [handler links k] (fn [req] (handler (assoc req k (concatv (or (k req) []) links))))) (defn wrap-add-link-templates "Ring middleware that adds specified templates to :link-templates." [handler...
null
https://raw.githubusercontent.com/valpackett/octohipster/4c1d210643940576eed42a194f810c5c719da63f/src/octohipster/link/middleware.clj
clojure
(ns octohipster.link.middleware (:use [octohipster util] [octohipster.link util])) (defn wrap-add-links-1 [handler links k] (fn [req] (handler (assoc req k (concatv (or (k req) []) links))))) (defn wrap-add-link-templates "Ring middleware that adds specified templates to :link-templates." [handler...
cefee6e73b20441073caa5727dc819dcc4a19f0fb6746352312ba3b623a38b8e
Incubaid/arakoon
mp_msg.ml
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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 distribut...
null
https://raw.githubusercontent.com/Incubaid/arakoon/43a8d0b26e4876ef91d9657149f105c7e57e0cb0/src/paxos/mp_msg.ml
ocaml
n, i n,(n',i')
Copyright ( 2010 - 2014 ) INCUBAID BVBA 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 distribut...
835a908ab4a3ff14ae802aa79402a11fd9ae081c4c01fa749a9fa83cbb8592ab
erlymon/erlymon
em_gps103_protocol.erl
%%%------------------------------------------------------------------- @author ( C ) 2015 , < > %%% @doc Erlymon is an open source GPS tracking system for various GPS tracking devices . %%% Copyright ( C ) 2015 , < > . %%% This file is part of Erlymon . %%% Erlymon is free software : yo...
null
https://raw.githubusercontent.com/erlymon/erlymon/2250619783d6da1e33a502911a8fa52ce016c094/apps/erlymon/src/em_hardware/protocols/em_gps103_protocol.erl
erlang
------------------------------------------------------------------- @doc 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 </>. @end -------------------------------------------------------...
@author ( C ) 2015 , < > Erlymon is an open source GPS tracking system for various GPS tracking devices . Copyright ( C ) 2015 , < > . This file is part of Erlymon . Erlymon is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Publ...
dd98b569be8b7b1a950b24c589e8513aaff551d8fdb48fa2e47634f8dfb075b0
haskell-suite/base
String.hs
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , FlexibleInstances # ----------------------------------------------------------------------------- -- | -- Module : Data.String Copyright : ( c ) The University of Glasgow 2007 -- License : BSD-style (see the file libraries/base/LICENSE) --...
null
https://raw.githubusercontent.com/haskell-suite/base/1ee14681910c76d0a5a436c33ecf3289443e65ed/Data/String.hs
haskell
--------------------------------------------------------------------------- | Module : Data.String License : BSD-style (see the file libraries/base/LICENSE) Maintainer : Stability : experimental Portability : portable The @String@ type and associated operations. -----------------------------...
# LANGUAGE Trustworthy # # LANGUAGE CPP , NoImplicitPrelude , FlexibleInstances # Copyright : ( c ) The University of Glasgow 2007 module Data.String ( String , IsString(..) , lines , words , unlines , unwords ) where #ifdef __GLASGOW_HASKELL__ import GHC.Base #endif import Data.List (lines, words,...
196d7adacfa7a12f30142a90075b7a04beda22f83c1e0fb3ee44a28103290256
slyrus/mcclim-old
test.lisp
;;; -*- Mode: Lisp; Package: CLIM-DEMO -*- ( c ) copyright 1998,1999,2000 by ( ) ( c ) copyright 2000 by ( ) ;;; This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation ; ...
null
https://raw.githubusercontent.com/slyrus/mcclim-old/354cdf73c1a4c70e619ccd7d390cb2f416b21c1a/test.lisp
lisp
-*- Mode: Lisp; Package: CLIM-DEMO -*- This library is free software; you can redistribute it and/or either This library 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 GNU License al...
( c ) copyright 1998,1999,2000 by ( ) ( c ) copyright 2000 by ( ) modify it under the terms of the GNU Library General Public version 2 of the License , or ( at your option ) any later version . Library General Public License for more details . You should have received a copy of the GN...
3e03416c94a0b756c4c21abdb83c8e748a2bb70dbaae83d31318fd785b578f6a
haskell-repa/repa
MDim.hs
# LANGUAGE TypeOperators # module Main where import Data.Array.Repa as R import Data.Array.Parallel.Unlifted (Elt) import Data.Array.Repa.Algorithms.Matrix as R import Data.List as L import Data.STRef import Control.Monad(forM_) import Control.Monad.ST(runST) type Matrix a = [[a]] type Correlation = Double matrixPr...
null
https://raw.githubusercontent.com/haskell-repa/repa/c867025e99fd008f094a5b18ce4dabd29bed00ba/repa-examples/broken/MDim/MDim.hs
haskell
preparations return result parameter
# LANGUAGE TypeOperators # module Main where import Data.Array.Repa as R import Data.Array.Parallel.Unlifted (Elt) import Data.Array.Repa.Algorithms.Matrix as R import Data.List as L import Data.STRef import Control.Monad(forM_) import Control.Monad.ST(runST) type Matrix a = [[a]] type Correlation = Double matrixPr...
9a78298667a9bdfc0f72783ee90931fe315ad02574e7b8edfef3e4b71a8b2f0e
BinaryAnalysisPlatform/bap
thumb_core.ml
open Core_kernel[@@warning "-D"] open Bap_core_theory open KB.Syntax type r1 and r8 and r16 and r32 type 'a reg = 'a Theory.Bitv.t Theory.var type 'a sort = 'a Theory.Bitv.t Theory.Value.sort let s1 : r1 sort = Theory.Bitv.define 1 let s8 : r8 sort = Theory.Bitv.define 8 let s16 : r16 sort = Theory.Bitv.define 16...
null
https://raw.githubusercontent.com/BinaryAnalysisPlatform/bap/253afc171bbfd0fe1b34f6442795dbf4b1798348/plugins/thumb/thumb_core.ml
ocaml
open Core_kernel[@@warning "-D"] open Bap_core_theory open KB.Syntax type r1 and r8 and r16 and r32 type 'a reg = 'a Theory.Bitv.t Theory.var type 'a sort = 'a Theory.Bitv.t Theory.Value.sort let s1 : r1 sort = Theory.Bitv.define 1 let s8 : r8 sort = Theory.Bitv.define 8 let s16 : r16 sort = Theory.Bitv.define 16...
78068f0385cd08f2db7851ff0df2edd4f23c297140bd4ee224de875d6a10bc81
fpco/stackage-server
stackage-server-cron.hs
# LANGUAGE RecordWildCards # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # import Options.Applicative import RIO import RIO.List as L import RIO.Text as T import Stackage.Database.Cron import Stackage.Database.Github readText :: ReadM T.Text readText = T.pack <$> str readLogLevel :: ReadM LogLevel readLogLev...
null
https://raw.githubusercontent.com/fpco/stackage-server/b707b5a0d72c44a3134a305b628c3f0b28db2697/app/stackage-server-cron.hs
haskell
# LANGUAGE RecordWildCards # # LANGUAGE LambdaCase # # LANGUAGE NoImplicitPrelude # import Options.Applicative import RIO import RIO.List as L import RIO.Text as T import Stackage.Database.Cron import Stackage.Database.Github readText :: ReadM T.Text readText = T.pack <$> str readLogLevel :: ReadM LogLevel readLogLev...
2fe29d17244ea25f871619bcfe73fe7bf2a7cb50154f9e0046829864b890e460
isovector/talks
Code.hs
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} module Polysemy.Code where import qualified Language.Haskell.Exts.QQ as QQ import qualified Language.Haskell.Exts.Simple as HSE import Polysemy import Polysemy.Effect.New import Po...
null
https://raw.githubusercontent.com/isovector/talks/78427ecf720fef5cd16572accc245f44d6ebc21f/making-a-splash/src/Polysemy/Code.hs
haskell
# LANGUAGE DeriveAnyClass # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell #
module Polysemy.Code where import qualified Language.Haskell.Exts.QQ as QQ import qualified Language.Haskell.Exts.Simple as HSE import Polysemy import Polysemy.Effect.New import Polysemy.Utils data Code m a = CodeType HSE.Type a | CodeDecs [HSE.Decl] a deriving (Functor, Effect)...
1eaf940d3acfdfe2bd2c128dd30c745ce16ea434670e401e355413b279ec7d91
AdRoll/rebar3_hank
used_record_field_sample.erl
-module(used_record_field_sample). -compile(export_all). -record(?MODULE, {this, record, is, not_used, but, it, cant, be, parsed, so, its, not_analyzed}). -record(a_record, {used_field, used_typed_field :: used_typed_field, used_field_with_default = used_field_with_default, ...
null
https://raw.githubusercontent.com/AdRoll/rebar3_hank/9666a9ffd7a657a34c87a3da5e38a720ad41cdf1/test/files/unused_record_fields/used_record_field_sample.erl
erlang
This doesn't count as usage This doesn't count as usage This doesn't count as usage either This counts as usage This counts as usage This counts as usage, too This counts as usage for all fields
-module(used_record_field_sample). -compile(export_all). -record(?MODULE, {this, record, is, not_used, but, it, cant, be, parsed, so, its, not_analyzed}). -record(a_record, {used_field, used_typed_field :: used_typed_field, used_field_with_default = used_field_with_default, ...
13eaa7223af7c8eb5a424940109d94f5d2d5500dcefaa896a216eb4dfa978608
cram2/cram
package.lisp
;;; Copyright ( c ) 2009 , < > ;;; All rights reserved. ;;; ;;; Redistribution and use in source and binary forms, with or without ;;; modification, are permitted provided that the following conditions are met: ;;; ;;; * Redistributions of source code must retain the above copyright ;;; notice, this li...
null
https://raw.githubusercontent.com/cram2/cram/dcb73031ee944d04215bbff9e98b9e8c210ef6c5/cram_common/cram_tf/src/package.lisp
lisp
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Re...
Copyright ( c ) 2009 , < > * Neither the name of Willow Garage , Inc. nor the names of its THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS " AS IS " IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR ...
df0ef4630538c6957623322f54742488eb56003a7b1c3cb90fb801151703361b
BitGameEN/bitgamex
jiffy_12_error_tests.erl
This file is part of Jiffy released under the MIT license . % See the LICENSE file for more information. -module(jiffy_12_error_tests). -include_lib("eunit/include/eunit.hrl"). enc_invalid_ejson_test_() -> Type = invalid_ejson, Ref = make_ref(), {"invalid_ejson", [ {"Basic", enc_error(Type, Re...
null
https://raw.githubusercontent.com/BitGameEN/bitgamex/151ba70a481615379f9648581a5d459b503abe19/src/deps/jiffy/test/jiffy_12_error_tests.erl
erlang
See the LICENSE file for more information.
This file is part of Jiffy released under the MIT license . -module(jiffy_12_error_tests). -include_lib("eunit/include/eunit.hrl"). enc_invalid_ejson_test_() -> Type = invalid_ejson, Ref = make_ref(), {"invalid_ejson", [ {"Basic", enc_error(Type, Ref, Ref)}, {"Nested", enc_error(Type, ...
190c025f1d53f2548c7945e133803d49f2649db68727d9b4abd4d37c0f2a83b2
pyr/warp
models.cljs
(ns warp.client.models (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :as a] [cljs-http.client :as http] [warp.client.state :refer [app]])) (defonce input (a/chan 100 (map :body))) (defn event-type [event] (let [has-key? (set (keys event))...
null
https://raw.githubusercontent.com/pyr/warp/c3ee96d90b233a47c1104b4339fed071ec8afe68/src/warp/client/models.cljs
clojure
(ns warp.client.models (:require-macros [cljs.core.async.macros :refer [go go-loop]]) (:require [cljs.core.async :as a] [cljs-http.client :as http] [warp.client.state :refer [app]])) (defonce input (a/chan 100 (map :body))) (defn event-type [event] (let [has-key? (set (keys event))...
ee60bee8802cf69a120605e6d336fdb0341bf5fe74f49c1548ebf2713d8c8f2e
evincarofautumn/Ward
Algebra.hs
-- | Some order theory classes -- -- This module should really re-export everything from -- but this is just an experiment for now , so roll our own but in a compatible way ( ie , one day this whole file should go away and just export Algebra . PartialOrd and Algebra . Lattice ) module Algebra.Algebra ( -- * Par...
null
https://raw.githubusercontent.com/evincarofautumn/Ward/a2ebe86cbcf05d98e59eafe0b9695cd0e10fec60/src/Algebra/Algebra.hs
haskell
| Some order theory classes This module should really re-export everything from but this is just an experiment * Partial Orders * Semilattices * Monoid wrappers the following laws # MINIMAL leq # | The subset ordering on sets - individual elements are not compared | The subset ordering on the keys of the m...
for now , so roll our own but in a compatible way ( ie , one day this whole file should go away and just export Algebra . PartialOrd and Algebra . Lattice ) module Algebra.Algebra ( PartialOrd (..) , JoinSemiLattice (..) , joinLeq , BoundedJoinSemiLattice (..) , MeetSemiLattice (..) , meetLeq , Join(....
65bce1d03fef5bc4222ce0ba3af3349322669b6622429fb61f6085df8ebef21c
binaryage/chromex
input_method_private.cljs
(ns chromex.ext.input-method-private (:require-macros [chromex.ext.input-method-private :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-input-method-config* [config] (gen-wrap :...
null
https://raw.githubusercontent.com/binaryage/chromex/33834ba5dd4f4238a3c51f99caa0416f30c308c5/src/exts_private/chromex/ext/input_method_private.cljs
clojure
-- events -----------------------------------------------------------------------------------------------------------------
(ns chromex.ext.input-method-private (:require-macros [chromex.ext.input-method-private :refer [gen-wrap]]) (:require [chromex.core])) -- functions -------------------------------------------------------------------------------------------------------------- (defn get-input-method-config* [config] (gen-wrap :...
eb9b24299ddfbe16d6ea38bf4adb8d5e486810cc14c65393f5aa6bebcce152ed
xapi-project/xen-api
local_work_queue.ml
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
null
https://raw.githubusercontent.com/xapi-project/xen-api/6c2aadbb44166b389a3bd956c8a6af5787003d68/ocaml/xapi/local_work_queue.ml
ocaml
* Queues of jobs to perform, represented as unit -> unit thunks * Put "long running/streaming operations" into their own queue, so vm lifecycle ops can be parallelized with them * VM.{start,shutdown,copy,clone} etc are queued here * Internal reboots and shutdowns are queued here * Join a given queue and execute the...
* Copyright ( C ) 2006 - 2009 Citrix Systems Inc. * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking describe...
38f41314bafe570209b0c5ee4caa20deb7b907cb2c131baa5fe77678989c3150
bennn/dissertation
data-adaptor.rkt
#lang typed/racket (require require-typed-check) (require/typed/check "data.rkt" [#:struct posn ([x : Real] [y : Real])] [#:struct snake ([dir : Dir] [segs : (NEListof Posn)])] [#:struct world ([snake : Snake] [food : Posn])]) (define-type (NEListof A) (...
null
https://raw.githubusercontent.com/bennn/dissertation/779bfe6f8fee19092849b7e2cfc476df33e9357b/dissertation/scrbl/jfp-2019/benchmarks/snake/both/data-adaptor.rkt
racket
#lang typed/racket (require require-typed-check) (require/typed/check "data.rkt" [#:struct posn ([x : Real] [y : Real])] [#:struct snake ([dir : Dir] [segs : (NEListof Posn)])] [#:struct world ([snake : Snake] [food : Posn])]) (define-type (NEListof A) (...
2c773b0eca9a91d9c4c665e66bb66149756d6d84d6c13d60ae7f215122b791ba
deadpendency/deadpendency
PomXmlSpec.hs
module Effect.DetermineDependencies.Backend.LanguageFiles.Java.PomXmlSpec (spec) where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import Common.Model.Ecosystem.ProgrammingLanguage import Common.Model.Git.GitPath...
null
https://raw.githubusercontent.com/deadpendency/deadpendency/170d6689658f81842168b90aa3d9e235d416c8bd/apps/dependency-determiner/test/Effect/DetermineDependencies/Backend/LanguageFiles/Java/PomXmlSpec.hs
haskell
> > >
module Effect.DetermineDependencies.Backend.LanguageFiles.Java.PomXmlSpec (spec) where import Common.Model.Dependency.Basic.BasicDependency import Common.Model.Dependency.DependencyIdentifier import Common.Model.Dependency.DependencyName import Common.Model.Ecosystem.ProgrammingLanguage import Common.Model.Git.GitPath...
a1663d81da6fc792bd390f140c294b9be443a1a5d25eb2a16735fa4e6c98d158
glondu/belenios
election.mli
include Common.CMDLINER_MODULE
null
https://raw.githubusercontent.com/glondu/belenios/d1618b424498fe3a3485ecb60eb3242ba730d809/src/tool/election.mli
ocaml
include Common.CMDLINER_MODULE
1406620aa28fdbfeda1f55dacf0dff56f5d3a9ffe2018b120d2f6dacd8d3ac94
esl/MongooseIM
mod_last_rdbms.erl
%%%---------------------------------------------------------------------- File : Author : < > %%% Purpose : mod_last rdbms backend (XEP-0012) %%% %%% ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne MongooseIM , Copyright ( C ) 2014 Erlang Solutions Ltd. %%% %%%------------------------------...
null
https://raw.githubusercontent.com/esl/MongooseIM/64d10a08d8e4700027734ec49ce4c4014b41b34b/src/mod_last_rdbms.erl
erlang
---------------------------------------------------------------------- Purpose : mod_last rdbms backend (XEP-0012) ---------------------------------------------------------------------- API Prepared query functions API functions Helper functions
File : Author : < > ejabberd , Copyright ( C ) 2002 - 2014 ProcessOne MongooseIM , Copyright ( C ) 2014 Erlang Solutions Ltd. -module(mod_last_rdbms). -behaviour(mod_last_backend). -include("mongoose.hrl"). -export([init/2, get_last/3, count_active_users/3, set...
82384808acbd324669966fa7ed1cee1a31d3791388836d1b9f5a29a9050add9e
comby-tools/comby
options.mli
type t = { nested : bool } val of_rule : Ast.t -> t
null
https://raw.githubusercontent.com/comby-tools/comby/fa71ea540855ba5bd48d948dd8c8ff034714348d/lib/kernel/language/options.mli
ocaml
type t = { nested : bool } val of_rule : Ast.t -> t
f64442cbe36f538e2012ea43dc9bfa7320d05251f58c1179357c5b78f8c8153c
uw-unsat/serval-sosp19
invariants.rkt
#lang rosette (require "spec.rkt" serval/lib/core serval/lib/unittest "state.rkt" ) (provide (all-defined-out)) (define (spec-invariants st) (define current-pid (state-current-pid st)) (define (pid->owner pid) ((state-proc.owner st) pid)) (define (pid->lower pid) ((state-proc.lower st) pid)) (d...
null
https://raw.githubusercontent.com/uw-unsat/serval-sosp19/175c42660fad84b44e4c9f6f723fd3c9450d65d4/monitors/certikos/verif/invariants.rkt
racket
#lang rosette (require "spec.rkt" serval/lib/core serval/lib/unittest "state.rkt" ) (provide (all-defined-out)) (define (spec-invariants st) (define current-pid (state-current-pid st)) (define (pid->owner pid) ((state-proc.owner st) pid)) (define (pid->lower pid) ((state-proc.lower st) pid)) (d...
5e0dac9d6e1b59a3808a2024ff550e982c6a6a86e2ba3cf14c6507e623cce3b7
deadtrickster/prometheus.erl
prometheus_vm_memory_collector_tests.erl
-module(prometheus_vm_memory_collector_tests). -include_lib("eunit/include/eunit.hrl"). prometheus_format_test_() -> {foreach, fun prometheus_eunit_common:start/0, fun prometheus_eunit_common:stop/1, [fun test_default_metrics/1, fun test_all_metrics/1, fun test_custom_metrics/1, fun test_global...
null
https://raw.githubusercontent.com/deadtrickster/prometheus.erl/b7cdd4fe70127aee738993c649e8c853718ea52a/test/eunit/collectors/vm/prometheus_vm_memory_collector_tests.erl
erlang
-module(prometheus_vm_memory_collector_tests). -include_lib("eunit/include/eunit.hrl"). prometheus_format_test_() -> {foreach, fun prometheus_eunit_common:start/0, fun prometheus_eunit_common:stop/1, [fun test_default_metrics/1, fun test_all_metrics/1, fun test_custom_metrics/1, fun test_global...
0691ba0f03a87aa07f86b3608bd4cd7963fa81f0e7906581dbcfe89f68003e80
aesiniath/unbeliever
Text.hs
# OPTIONS_HADDOCK not - home # | A unified Text type providing interoperability between various text back - ends present in the Haskell ecosystem . This is intended to be used directly : @ import " Core . Text " @ as this module re - exports all of the various components making up this library 's ...
null
https://raw.githubusercontent.com/aesiniath/unbeliever/a315a894c580b72ca32b3157518c6ba4653d9381/core-text/lib/Core/Text.hs
haskell
* Internal representation | Exposes 'Bytes', a wrapper around different types of binary data, and 'Rope', a finger-tree over buffers containing text. * Useful utilities | Useful functions for common use cases.
# OPTIONS_HADDOCK not - home # | A unified Text type providing interoperability between various text back - ends present in the Haskell ecosystem . This is intended to be used directly : @ import " Core . Text " @ as this module re - exports all of the various components making up this library 's ...
bb3cf6e1cb69e316ed8a03a98662f1408c8172c06c27c281d5a3ed069fe3033e
ocsigen/ocsigenserver
staticmod.mli
val section : Lwt_log_core.section * use Lwt_log . Section.set_level in order to debug val dir : string Ocsigen_server.Site.Config.key val regexp : string Ocsigen_server.Site.Config.key val code : string Ocsigen_server.Site.Config.key val dest : Ocsigen_extensions.ud_string Ocsigen_server.Site.Config.key val root_chec...
null
https://raw.githubusercontent.com/ocsigen/ocsigenserver/d468cf464dcc9f05f820c35f346ffdbe6b9c7931/src/extensions/staticmod.mli
ocaml
val section : Lwt_log_core.section * use Lwt_log . Section.set_level in order to debug val dir : string Ocsigen_server.Site.Config.key val regexp : string Ocsigen_server.Site.Config.key val code : string Ocsigen_server.Site.Config.key val dest : Ocsigen_extensions.ud_string Ocsigen_server.Site.Config.key val root_chec...
023ef1ae652f7b2134f48e344a7874e6c5f50f6149a0302279c9dff67deec029
rgleichman/glance
Constants.hs
# LANGUAGE PatternSynonyms # module Constants ( pattern InputPortConst , pattern ResultPortConst ) where import Types(Port(..)) pattern InputPortConst :: Port pattern InputPortConst = Port 0 pattern ResultPortConst :: Port pattern ResultPortConst = Port 1
null
https://raw.githubusercontent.com/rgleichman/glance/685abb04a2c93af8aaae1ee81e81e09842eccf88/app/Constants.hs
haskell
# LANGUAGE PatternSynonyms # module Constants ( pattern InputPortConst , pattern ResultPortConst ) where import Types(Port(..)) pattern InputPortConst :: Port pattern InputPortConst = Port 0 pattern ResultPortConst :: Port pattern ResultPortConst = Port 1
de8313b46c0f193919f4e915d5c825fb8f6f28e6d85cbd504ff7a346d64ccfb6
threatgrid/ctia
cache_control.clj
(ns ctia.http.middleware.cache-control (:require [pandect.algo.sha1 :refer [sha1]]) (:import [java.io File])) (defn- read-request? [request] (#{:get :head} (:request-method request))) (defn- ok-response? [response] (= (:status response) 200)) (defn calculate-etag [accept body] (let [etagc (cond ...
null
https://raw.githubusercontent.com/threatgrid/ctia/32857663cdd7ac385161103dbafa8dc4f98febf0/src/ctia/http/middleware/cache_control.clj
clojure
(ns ctia.http.middleware.cache-control (:require [pandect.algo.sha1 :refer [sha1]]) (:import [java.io File])) (defn- read-request? [request] (#{:get :head} (:request-method request))) (defn- ok-response? [response] (= (:status response) 200)) (defn calculate-etag [accept body] (let [etagc (cond ...
fb03aacf2523700731b87210b34119f179679223b6dc290d9be772055be47409
1Jajen1/Brokkr
ByteOrder.hs
module Util.ByteOrder ( toBE, toLE ) where import Data.Int import Data.Word import GHC.ByteOrder import Unsafe.Coerce import Util.Word24 | Swap byteorder if we are on a little endian system . -- Minecraft Java Edition uses BigEndian everywhere thus we need this whenever parsing numbers toBE :: ByteSwap a => a -...
null
https://raw.githubusercontent.com/1Jajen1/Brokkr/fe56efaf450f29a5571cc34fa01f7301678f3eaf/src/Util/ByteOrder.hs
haskell
| Swap byteorder if we are on a big endian system. Mainly included for parity, not sure if I even need this. # INLINE swapBytes # # INLINE swapBytes # # INLINE swapBytes # # INLINE swapBytes # # INLINE swapBytes # # INLINE swapBytes # # INLINE swapBytes #
module Util.ByteOrder ( toBE, toLE ) where import Data.Int import Data.Word import GHC.ByteOrder import Unsafe.Coerce import Util.Word24 | Swap byteorder if we are on a little endian system . Minecraft Java Edition uses BigEndian everywhere thus we need this whenever parsing numbers toBE :: ByteSwap a => a -> a...
c990b62f5861b6be640e5d483bc7cec61a761095d3bc0f0b82d6585e7483a3d7
Kalimehtar/gtk-cffi
tree-view.lisp
;;; GtkTreeView ;;; ;;; (foreach tree-view ...) = gtk-tree-view-map-expanded-rows ;;; (path-at-pos ... :is-blank t) = gtk-tree-view-is-blank-at-pos ;;; (convert-bin-window-to-widget tree-view x y) -> (list wx wy) = ;;; gtk-tree-view-convert-bin-window-to-widget-coords ;;; (convert-{smth} ...) = gtk-tree-v...
null
https://raw.githubusercontent.com/Kalimehtar/gtk-cffi/fbd8a40a2bbda29f81b1a95ed2530debfe2afe9b/gtk/tree-view.lisp
lisp
GtkTreeView (foreach tree-view ...) = gtk-tree-view-map-expanded-rows (path-at-pos ... :is-blank t) = gtk-tree-view-is-blank-at-pos (convert-bin-window-to-widget tree-view x y) -> (list wx wy) = gtk-tree-view-convert-bin-window-to-widget-coords (convert-{smth} ...) = gtk-tree-view-convert-{smth}-co...
(in-package :gtk-cffi) (defclass tree-view (container) ()) (defcenum tree-view-grid-lines :none :horizontal :vertical :both) (defcfun gtk-tree-view-new :pointer) (defcfun gtk-tree-view-new-with-model :pointer (model pobject)) (defmethod gconstructor ((tree-view tree-view) &key model &...
5fb29fca6a8e01b4244735bb49d8fee714a43d68625791f4b629df7b41b7133a
logseq/logseq
utils.cljs
(ns frontend.extensions.pdf.utils (:require [promesa.core :as p] [cljs-bean.core :as bean] [frontend.util :as util] ["/frontend/extensions/pdf/utils" :as js-utils] [datascript.core :as d] [logseq.graph-parser.config :as gp-config] [clojure.string...
null
https://raw.githubusercontent.com/logseq/logseq/6f451074080570dd2da5ba6687e7f9e3fcd16666/src/main/frontend/extensions/pdf/utils.cljs
clojure
(ns frontend.extensions.pdf.utils (:require [promesa.core :as p] [cljs-bean.core :as bean] [frontend.util :as util] ["/frontend/extensions/pdf/utils" :as js-utils] [datascript.core :as d] [logseq.graph-parser.config :as gp-config] [clojure.string...
dd7a481aaa9246072c835f8f004e29ffec412cd7c1fe80c7e053bd51ac3f6e87
xapi-project/xenvm
pvcreate.ml
LVM compatible bits and pieces open Cmdliner open Xenvm_common open Lwt open Lvm module Pv_IO = Pv.Make(Block) let pvcreate copts ff y metadatasize filenames = let open Xenvm_common in Lwt_main.run ( stderr "NOTE: pvcreate is currently a no-op" ) let f = let doc = "Force the command and override safet...
null
https://raw.githubusercontent.com/xapi-project/xenvm/401754dfb05376b5fc78c9290453b006f6f38aa1/xenvm/pvcreate.ml
ocaml
LVM compatible bits and pieces open Cmdliner open Xenvm_common open Lwt open Lvm module Pv_IO = Pv.Make(Block) let pvcreate copts ff y metadatasize filenames = let open Xenvm_common in Lwt_main.run ( stderr "NOTE: pvcreate is currently a no-op" ) let f = let doc = "Force the command and override safet...
8ac06ea358937f560ace6497a5c34210358e5d011c26fe045dee7d9a7bf53bc9
williamleferrand/accretio
core_announcements.ml
(* * core - annoucements * * * *) open Lwt open Printf open CalendarLib open Api open Eliom_content.Html5 open Eliom_content.Html5.D open Message_parsers (* the tags *) let key_content = sprintf "core-announcement-content-%Ld" let key_id = "core-announcement-id" let tag_timer = sprintf "coreannouncementtim...
null
https://raw.githubusercontent.com/williamleferrand/accretio/394f855e9c2a6a18f0c2da35058d5a01aacf6586/playbooks/core_announcements.ml
ocaml
* core - annoucements * * * the tags the stages the plumbing
open Lwt open Printf open CalendarLib open Api open Eliom_content.Html5 open Eliom_content.Html5.D open Message_parsers let key_content = sprintf "core-announcement-content-%Ld" let key_id = "core-announcement-id" let tag_timer = sprintf "coreannouncementtimer%Ld%d" let make_announcement context (content, memb...
900775a3c0b8f9ed29027bcf4af8ded26806267e8ba310a2ae03d246ecc1e881
200ok-ch/org-parser
parser.clj
(ns org-parser.parser (:require [instaparse.core :as insta])) (def parser (-> "org.ebnf" clojure.java.io/resource insta/parser)) (defn parse [& args] (-> parser (apply args) (vary-meta merge {:raw (first args)})))
null
https://raw.githubusercontent.com/200ok-ch/org-parser/8c668f18e5ed1643d269b53bbc0a0c3d41cdde34/src/org_parser/parser.clj
clojure
(ns org-parser.parser (:require [instaparse.core :as insta])) (def parser (-> "org.ebnf" clojure.java.io/resource insta/parser)) (defn parse [& args] (-> parser (apply args) (vary-meta merge {:raw (first args)})))
ab85d5a4af01cbe1196fe9b5f5c53d72ec7a339c5afadbf3ae4a8bf3663f1e12
g000001/MacLISP-compat
SUN.lisp
COPYRIGHT , 1977 ;;; Program to calculate sun - elevation and sun - azimuth . ;;; Given observers geographical position and time of observation. ;;; T = time in days since 1975/01/01 GMT 00:00:00 ;;; ;;; MEAN ANOMALY (M) = Geometric Mean Longitude - Mean Longitude of Perigee ;;; M = -2.4834 + .98560026 * T ...
null
https://raw.githubusercontent.com/g000001/MacLISP-compat/a147d09b98dca4d7c089424c3cbaf832d2fd857a/SUN.lisp
lisp
Given observers geographical position and time of observation. MEAN ANOMALY (M) = Geometric Mean Longitude - Mean Longitude of Perigee M = -2.4834 + .98560026 * T Mean Eccentricity e = .0l67343 ECCENTRIC ANOMALY (E) = Anomaly measured from focus of ellipse E + e sin(E) = M. Transcendental equation. TRUE...
COPYRIGHT , 1977 Program to calculate sun - elevation and sun - azimuth . T = time in days since 1975/01/01 GMT 00:00:00 SQRT((1+e)/(1 - e ) ) = 1.016877 in the mean LONGITUDE OF EARTH PERIGEE ( G ) = 282.5103 + .00004707 * T TRUE = LONGITUDE OF PERIGEE + TRUE ANOMALY Position of MOON 'S NODE ( O )...
3f8c855cf9db980f7c819ba1928b14b492c49dc26eccaadc253163111620cba5
rtrusso/scp
base.scm
(define (nasm-x86-machine-base) (append (nasm-x86-interp-support) (nasm-x86-machine-labels) (nasm-x86-control) (nasm-x86-compare) (nasm-x86-stack) (nasm-x86-store-array) (nasm-x86-load-array) (nasm-x86-call) (nasm-x86-return) (nasm-x86-arithmetic) (nasm-x86-multiply) (...
null
https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/sasm/nasmx86/base.scm
scheme
(define (nasm-x86-machine-base) (append (nasm-x86-interp-support) (nasm-x86-machine-labels) (nasm-x86-control) (nasm-x86-compare) (nasm-x86-stack) (nasm-x86-store-array) (nasm-x86-load-array) (nasm-x86-call) (nasm-x86-return) (nasm-x86-arithmetic) (nasm-x86-multiply) (...
59551e37a114c7a2a3a6f063964fc02378bae48d0100231df297abf7d0d7cfd3
pariyatti/kosa
mailer.clj
(ns kuti.mailer (:require [sendgrid.core :as sg] [kosa.config :as config] [clojure.tools.logging :as log])) (defn add-trailing-newlines [s] (str s "\n\n---")) (defn send-mail "Sends a mail using the `camdez/sendgrid` map format. {:from \"\" :to \"\" :subject \"Pariyatti ...
null
https://raw.githubusercontent.com/pariyatti/kosa/7f2bb4be38bd088a86868feb2dc8f29f14b43a82/src/kuti/mailer.clj
clojure
(ns kuti.mailer (:require [sendgrid.core :as sg] [kosa.config :as config] [clojure.tools.logging :as log])) (defn add-trailing-newlines [s] (str s "\n\n---")) (defn send-mail "Sends a mail using the `camdez/sendgrid` map format. {:from \"\" :to \"\" :subject \"Pariyatti ...
7bc6c5b4cdc87ef232426761d91a026122c2f73f00dd73bc7ba7b74fe254ec1e
input-output-hk/cardano-wallet-legacy
Histogram.hs
# LANGUAGE GeneralizedNewtypeDeriving # -- | Histograms -- Indended for qualified import . -- -- > import Util.Histogram (Histogram) -- > import qualified Util.Histogram as Histogram module Util.Histogram ( -- * Basic definitions Bin , Count , Histogram -- opaque -- * Conversion , toMap , toList...
null
https://raw.githubusercontent.com/input-output-hk/cardano-wallet-legacy/143e6d0dac0b28b3274600c6c49ec87e42ec9f37/test/unit/Util/Histogram.hs
haskell
| Histograms > import Util.Histogram (Histogram) > import qualified Util.Histogram as Histogram * Basic definitions opaque * Conversion * I/O * Ranges * Construction * Combinators ------------------------------------------------------------------------------ Basic definitions -----------------------------...
# LANGUAGE GeneralizedNewtypeDeriving # Indended for qualified import . module Util.Histogram ( Bin , Count , toMap , toList , fromMap , fromList , writeFile , readFile , SplitRanges(..) , splitRanges , splitGivenRanges , range , BinSize(..) , discretize , empty , insert , insertM...
443898afecde26fbef29c9cfc5f1ffb5723695ac7420f6cf34c36eb544c3f829
parsonsmatt/exceptiot
Catch.hs
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # module Control.Monad.Except.Catch ( ExceptCatchT (..) , runExceptCatchT , module Control.Monad.Error.Class , modifyError ) where import Control.Applicative impo...
null
https://raw.githubusercontent.com/parsonsmatt/exceptiot/127245d38a7bb5827a2b93de9e3614528ffcd6b5/src/Control/Monad/Except/Catch.hs
haskell
| This type is useful for translating a 'MonadError' constraint into 'MonadCatch'. This type does not have an 'Either' return, which means we can | regardless of whether you used 'throwM' or 'throwError'. catch all exceptions! exceptions instead of the 'ExceptT' instance with an 'Either' error.
# LANGUAGE DerivingStrategies # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE MultiParamTypeClasses # module Control.Monad.Except.Catch ( ExceptCatchT (..) , runExceptCatchT , module Control.Monad.Error.Class , modifyError ) where import Control.Applicative impo...
6e8301f8fc1dc2032570148e51861117cd7b1a87fc3d4a300200e55b1c35ca7f
elnewfie/lslforge
UnitTester.hs
# LANGUAGE FlexibleContexts , NoMonomorphismRestriction # # OPTIONS_GHC -fwarn - unused - binds -fwarn - unused - imports # module Language.Lsl.Internal.UnitTester(main2) where import Control.Monad.Except(MonadError(..)) import Language.Lsl.Internal.BreakpointsDeserialize(bps) import Language.Lsl.Internal.Compiler(com...
null
https://raw.githubusercontent.com/elnewfie/lslforge/27eb84231c53fffba6bdb0db67bde81c1c12dbb9/lslforge/haskell/src/Language/Lsl/Internal/UnitTester.hs
haskell
# LANGUAGE FlexibleContexts , NoMonomorphismRestriction # # OPTIONS_GHC -fwarn - unused - binds -fwarn - unused - imports # module Language.Lsl.Internal.UnitTester(main2) where import Control.Monad.Except(MonadError(..)) import Language.Lsl.Internal.BreakpointsDeserialize(bps) import Language.Lsl.Internal.Compiler(com...
5ead66617c8a5d6c4d991a117ac9911a6d2b7a9992f3109b4c7cffe4e9ce4a2c
htm-community/comportex
cortical_io_channel.clj
(ns org.nfrac.comportex.demos.cortical-io-channel (:require [org.nfrac.comportex.core :as cx] [org.nfrac.comportex.layer :as layer] [org.nfrac.comportex.cortical-io :refer [cortical-io-encoder cache-fingerprint!]] [clojure.string...
null
https://raw.githubusercontent.com/htm-community/comportex/cd318492cf2e43cb7f25238b116b90b8195ec5aa/src/org/nfrac/comportex/demos/cortical_io_channel.clj
clojure
(mapv #(conj % ".")) interactive session feeding in text and requesting predictions allow http requests to go in parallel to model running
(ns org.nfrac.comportex.demos.cortical-io-channel (:require [org.nfrac.comportex.core :as cx] [org.nfrac.comportex.layer :as layer] [org.nfrac.comportex.cortical-io :refer [cortical-io-encoder cache-fingerprint!]] [clojure.string...
f7a77daddc7032f5b84dbb6859b8e5307fe23d42970f2924d6facd306246bf36
tweag/webauthn
Operation.hs
# OPTIONS_GHC -Wno - missing - import - lists # -- | Stability: experimental -- Functions for verifying resulting credential responses. -- This module is reexported by the " Crypto . WebAuthn " module , which is the -- preferred way of using it. module Crypto.WebAuthn.Operation ( module Crypto.WebAuthn.Operation.R...
null
https://raw.githubusercontent.com/tweag/webauthn/65ac63aa000e565d1e5de334b39597a61dcae75f/src/Crypto/WebAuthn/Operation.hs
haskell
| Stability: experimental Functions for verifying resulting credential responses. preferred way of using it.
# OPTIONS_GHC -Wno - missing - import - lists # This module is reexported by the " Crypto . WebAuthn " module , which is the module Crypto.WebAuthn.Operation ( module Crypto.WebAuthn.Operation.Registration, module Crypto.WebAuthn.Operation.CredentialEntry, module Crypto.WebAuthn.Operation.Authentication, ...
f4c24e8d0d9f8f4dfb9e7e20306325510f143b4bc6f0d76cdebdfb7e02ba54ba
DHSProgram/DHS-Indicators-SPSS
PH_POP.sps
* Encoding: UTF-8. ***************************************************************************************************** Program: PH_POP.sps Purpose: Code to compute population characteristics, birth registration, education levels, household composition, orphanhood, and living arrangments Data inputs: PR datas...
null
https://raw.githubusercontent.com/DHSProgram/DHS-Indicators-SPSS/578e6d40eff9edebda7cf0db0d9a0a52a537d98c/Chap02_PH/PH_POP.sps
scheme
use fweight.
* Encoding: UTF-8. ***************************************************************************************************** Program: PH_POP.sps Purpose: Code to compute population characteristics, birth registration, education levels, household composition, orphanhood, and living arrangments Data inputs: PR datas...
ed4c4b9a5b825274201061ba0da2ea6ab53ca8a3fe378660e42e8d10ddf2241a
samoht/camloo
pair.scm
;; Le module (module __caml_pair (import __caml_arg __caml_baltree __caml_char __caml_eq __caml_exc __caml_fchar __caml_filename __caml_float __caml_fstring __caml_fvect __caml_genlex __caml_hashtbl __caml_int __caml_io __caml_lexing __caml_list _...
null
https://raw.githubusercontent.com/samoht/camloo/29a578a152fa23a3125a2a5b23e325b6d45d3abd/src/runtime/Llib.bootstrap/pair.scm
scheme
Le module Les variables globales Les expressions globales
(module __caml_pair (import __caml_arg __caml_baltree __caml_char __caml_eq __caml_exc __caml_fchar __caml_filename __caml_float __caml_fstring __caml_fvect __caml_genlex __caml_hashtbl __caml_int __caml_io __caml_lexing __caml_list __caml_map ...
9192a86eb17af4b4c3617234597e3884f63a2291b2b53a8050e3b68f95230622
uwplse/rake
expr_2.rkt
#lang rosette/safe (require rake) (init-logging "expr_2.runtimes") (define-symbolic-buffer input1 uint8_t) (define-symbolic t74 integer?) (define-symbolic-var t98 int16_t) (define-symbolic-var t100 int16_t) (define-symbolic-var t101 int16_t) (define-symbolic-var t99 int16_t) (define-symbolic-var input2_multiplier int...
null
https://raw.githubusercontent.com/uwplse/rake/0fb9b46ae8ac64f95a4c0e89060ffdb043229a5b/test/add/expr_2.rkt
racket
#lang rosette/safe (require rake) (init-logging "expr_2.runtimes") (define-symbolic-buffer input1 uint8_t) (define-symbolic t74 integer?) (define-symbolic-var t98 int16_t) (define-symbolic-var t100 int16_t) (define-symbolic-var t101 int16_t) (define-symbolic-var t99 int16_t) (define-symbolic-var input2_multiplier int...
13528558b11983c8da8e5f06a36b6a11b7f3dafcc2ddda7900d8b8521f6c0f6a
gowthamk/ocaml-irmin
ilist.ml
open Lwt.Infix open Irmin_unix open Printf Config module has three functions root , shared and init . module type Config = sig val root: string val shared: string val init: unit -> unit end let from_just op msg = match op with | Some x -> x | None -> failwith @@ msg^": Expected Some. Got None." MakeVer...
null
https://raw.githubusercontent.com/gowthamk/ocaml-irmin/54775f6c3012e87d2d0308f37a2ec7b27477e887/list/ilist.ml
ocaml
storage backhend: Append-only store Immutable collection of all versionedt And creates a Git backend * We momentarily override Lwt's bind and return so as to pass * the tree around without making a mess. * Momentarily overriding Lwt's bind and return with our own * bind and ret...
open Lwt.Infix open Irmin_unix open Printf Config module has three functions root , shared and init . module type Config = sig val root: string val shared: string val init: unit -> unit end let from_just op msg = match op with | Some x -> x | None -> failwith @@ msg^": Expected Some. Got None." MakeVer...
f5d495f4292a56670164066f7ac17dac9755cf313d5ab2e01fe656677b23992d
macourtney/Conjure
test_server.clj
(ns conjure.server.test-server (:import [java.io ByteArrayInputStream]) (:use clojure.test conjure.server.server)) (def service-name "test") (def action-name "show") (deftest test-process-request (is (process-request { :request { :uri (str "/" service-name "/" action-name "/1") :query-string "foo=bar&ba...
null
https://raw.githubusercontent.com/macourtney/Conjure/1d6cb22d321ea75af3a6abe2a5bc140ad36e20d1/conjure_server/test/conjure/server/test_server.clj
clojure
(ns conjure.server.test-server (:import [java.io ByteArrayInputStream]) (:use clojure.test conjure.server.server)) (def service-name "test") (def action-name "show") (deftest test-process-request (is (process-request { :request { :uri (str "/" service-name "/" action-name "/1") :query-string "foo=bar&ba...
3f34e6a2ea59c4df481d3eb321cb36a967a6e3d9c8a3349e0946a5614c4d3dfb
avsm/eeww
filename.mli
(**************************************************************************) (* *) (* OCaml *) (* *) ...
null
https://raw.githubusercontent.com/avsm/eeww/651d8da20a3cc9e88354ed0c8da270632b9c0c19/boot/ocaml/stdlib/filename.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 val current_dir_name : string val parent_dir_name : string val dir_sep : string * The directory separa...
5d69ea9cdf5410c3614d1d447d21160e2d05f2e51cb750be7b1b14bff2e968bd
RolfRolles/PandemicML
X86LocalOpt2.ml
exception Stop let x86_local_dse instrs = IRLocalOpt.local_dse instrs X86ToIRUtil.reserved_vars let split_along_statement_boundaries irlist = let rec aux current_instruction instructions_list = function | [] -> List.rev ((List.rev current_instruction)::instructions_list) | ((IR.Label(_)) as l)::((IR.Comment(_)...
null
https://raw.githubusercontent.com/RolfRolles/PandemicML/9c31ecaf9c782dbbeb6cf502bc2a6730316d681e/X86Analyze/X86LocalOpt2.ml
ocaml
exception Stop let x86_local_dse instrs = IRLocalOpt.local_dse instrs X86ToIRUtil.reserved_vars let split_along_statement_boundaries irlist = let rec aux current_instruction instructions_list = function | [] -> List.rev ((List.rev current_instruction)::instructions_list) | ((IR.Label(_)) as l)::((IR.Comment(_)...
50dd015ffd1359224316ff66cdbc1504a2e0cd544e8649e236b8e72592dd0271
pfdietz/ansi-test
print-length.lsp
;-*- Mode: Lisp -*- Author : Created : Tue Jul 27 08:27:37 2004 ;;;; Contains: Tests involving *PRINT-LENGTH* (in-package :cl-test) (def-print-test print-length.1 '(1) "(...)" (*print-length* 0)) (def-print-test print-length.2 '(1) "(1)" (*print-length* nil)) (def-print-test print-lengt...
null
https://raw.githubusercontent.com/pfdietz/ansi-test/3f4b9d31c3408114f0467eaeca4fd13b28e2ce31/printer/print-length.lsp
lisp
-*- Mode: Lisp -*- Contains: Tests involving *PRINT-LENGTH* The next test tacitly assumes issue STRUCTURE-READ-PRINT-SYNTAX
Author : Created : Tue Jul 27 08:27:37 2004 (in-package :cl-test) (def-print-test print-length.1 '(1) "(...)" (*print-length* 0)) (def-print-test print-length.2 '(1) "(1)" (*print-length* nil)) (def-print-test print-length.3 '(1) "(1)" (*print-length* 1)) (def-print-test print-length...
fcc86e5c47087a6f28603232b860b42c66d64c293b0520413e360be2b0a57bd1
zouppen/hackbus
ModuleUtils.hs
module Control.Hackbus.ModuleUtils where import Control.Concurrent import Control.Concurrent.STM import Control.Exception (handle, throw) import Control.Monad (forever, unless, when, zipWithM_) import Control.Hackbus.Trinary (Input, get) data Equality a = Const Bool | Equals a type StateVar a = TVar (Equality a) st...
null
https://raw.githubusercontent.com/zouppen/hackbus/38b6eac7ca1fdbef07dc36386f34be3e80a9ef0e/src/Control/Hackbus/ModuleUtils.hs
haskell
module Control.Hackbus.ModuleUtils where import Control.Concurrent import Control.Concurrent.STM import Control.Exception (handle, throw) import Control.Monad (forever, unless, when, zipWithM_) import Control.Hackbus.Trinary (Input, get) data Equality a = Const Bool | Equals a type StateVar a = TVar (Equality a) st...
91781a070499ebf68e7806b0273047a40553c912eac63136edcac6d9130b9554
hasktorch/hasktorch
Base.hs
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # module Torch.GraduallyTyped.NN.Transformer.BART.Base where import Data.Singletons (SingI (..)) import GHC.TypeLits (Nat) import Torch.GraduallyTyped.Device (Device, DeviceType, SDevice) import Torch.GraduallyTyped.NN.Class (ModelSpec) import Torch.GraduallyTyped.NN.T...
null
https://raw.githubusercontent.com/hasktorch/hasktorch/c34996b0a401a5b1b98b5774e892fde88adaa079/experimental/gradually-typed/src/Torch/GraduallyTyped/NN/Transformer/BART/Base.hs
haskell
| BART-Base number of layers. 'encoder_layers = 6' 'decoder_layers = 6' | BART-Base number of layers singleton. | BART-Base number of attention heads. 'encoder_attention_heads = 12' | BART-Base number of attention heads singleton. | BART-Base head embedding dimension. 'd_kv = 64' | BART-Base head embedding di...
# LANGUAGE DataKinds # # LANGUAGE KindSignatures # module Torch.GraduallyTyped.NN.Transformer.BART.Base where import Data.Singletons (SingI (..)) import GHC.TypeLits (Nat) import Torch.GraduallyTyped.Device (Device, DeviceType, SDevice) import Torch.GraduallyTyped.NN.Class (ModelSpec) import Torch.GraduallyTyped.NN.T...
38c355b3b44382dfeb4ee46994b4c0c0122bfcfc38c3dc595aadf36bdb94742b
keera-studios/keera-hails
Label.hs
{-# LANGUAGE TypeSynonymInstances #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # -- | Publishes the main elements of an label as reactive fields -- Copyright : ( C ) Keera Studios Ltd , 2013 -- License : BSD3 Maintainer : module Graphics.UI.Gtk.Reactive.Label where import Dat...
null
https://raw.githubusercontent.com/keera-studios/keera-hails/bf069e5aafc85a1f55fa119ae45a025a2bd4a3d0/keera-hails-reactive-gtk/src/Graphics/UI/Gtk/Reactive/Label.hs
haskell
# LANGUAGE TypeSynonymInstances # | Publishes the main elements of an label as reactive fields License : BSD3
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # Copyright : ( C ) Keera Studios Ltd , 2013 Maintainer : module Graphics.UI.Gtk.Reactive.Label where import Data.ReactiveValue import Graphics.UI.Gtk import Graphics.UI.Gtk.Reactive.Property labelTextReactive :: LabelClass e => e -> React...
d0379672eeb45f68db899b148b00be06956ab9cfb5a3e683c099bdec48024cf8
futurice/haskell-mega-repo
API.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} # LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # {-# LANGUAGE ScopedTypeVariables #-} # LANGUAGE TypeFamilies # {-# LANGUAGE TypeOperators #-} module Futurice.App.Reports.API where import Dashdo.Serv...
null
https://raw.githubusercontent.com/futurice/haskell-mega-repo/2647723f12f5435e2edc373f6738386a9668f603/reports-app/src/Futurice/App/Reports/API.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # "legacy" reports Tables Dump: can be deleted, we have futuqu Charts Graphs Additional non-reports For Bubbleburster For Data lake , recCommandMissingHoursNotification :...
# LANGUAGE FlexibleInstances # # LANGUAGE MultiParamTypeClasses # # LANGUAGE TypeFamilies # module Futurice.App.Reports.API where import Dashdo.Servant (DashdoAPI) import Futuqu.API import Futurice.Lucid.Foundation import Futurice.Prelude import Futurice.Servant import Futurice.Tribe ...
237a0cfe941abcc8329c46765734df2b0428a8c47b9d238140aaa7bfa965efda
PrecursorApp/precursor
sente.clj
(ns pc.http.sente (:require [clj-http.client :as http] [clj-statsd :as statsd] [clj-time.core :as time] [clojure.core.async :as async] [clojure.core.memoize :as memo] [clojure.set :as set] [clojure.string :as str] [clojure.tools.loggi...
null
https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src/pc/http/sente.clj
clojure
TODO: find a way to restart sente hash-map of document-id to connected users Used to keep track of which transactions to send to which user sente's channel handling stuff is not much fun to work with :( TODO: probably want to get tal-state from somewhere else Note: this assumes that everyone subscribe to the team...
(ns pc.http.sente (:require [clj-http.client :as http] [clj-statsd :as statsd] [clj-time.core :as time] [clojure.core.async :as async] [clojure.core.memoize :as memo] [clojure.set :as set] [clojure.string :as str] [clojure.tools.loggi...
91dd1cd47fa86a262167d59f2df023d819d552b7f360830b8fbbd2bca3e295f5
cstar/ejabberd-old
mod_proxy65_lib.erl
%%%---------------------------------------------------------------------- %%% File : mod_proxy65_lib.erl Author : < > %%% Purpose : SOCKS5 parsing library. Created : 12 Oct 2006 by < > %%% %%% ejabberd , Copyright ( C ) 2002 - 2010 ProcessOne %%% %%% This program is free software; you can redistribu...
null
https://raw.githubusercontent.com/cstar/ejabberd-old/559f8b6b0a935710fe93e9afacb4270d6d6ea00f/src/mod_proxy65/mod_proxy65_lib.erl
erlang
---------------------------------------------------------------------- File : mod_proxy65_lib.erl Purpose : SOCKS5 parsing library. 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 : 12 Oct 2006 by < > ejabberd , Copyright ( C ) 2002 - 2010 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 Founda...
3a7ff5aa1234ec719d4e10a8cdc149c759b4cf6ea599b68ea0990f438b11c7cb
nasa/Common-Metadata-Repository
variable.clj
(ns cmr.metadata.proxy.concepts.variable (:require [clojure.string :as string] [cmr.exchange.common.results.core :as results] [cmr.exchange.common.results.errors :as errors] [cmr.http.kit.request :as request] [cmr.http.kit.response :as response] [cmr.metadata.proxy.results.errors :as metadata-errors...
null
https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/63001cf021d32d61030b1dcadd8b253e4a221662/other/cmr-exchange/metadata-proxy/src/cmr/metadata/proxy/concepts/variable.clj
clojure
Constants ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; XXX We can pull this from configuration once async-get-metadata function signatures get updated to accept the system data structure as an arg. Support/Utility Functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Core Function...
(ns cmr.metadata.proxy.concepts.variable (:require [clojure.string :as string] [cmr.exchange.common.results.core :as results] [cmr.exchange.common.results.errors :as errors] [cmr.http.kit.request :as request] [cmr.http.kit.response :as response] [cmr.metadata.proxy.results.errors :as metadata-errors...
6f0d69351437c91b474de66d91496ee113e1bb3dc3c32adf0a608243033a6d15
Zulu-Inuoe/winutil
flashing-a-window.lisp
(defpackage #:com.inuoe.winutil.examples.flashing-a-window (:use #:cl) (:import-from #:cffi) (:import-from #:win32) (:import-from #:winutil) (:export #:flashing-a-window)) (in-package #:com.inuoe.winutil.examples.flashing-a-window) (defclass flashing-a-window (winutil:window) () (:default-initargs ...
null
https://raw.githubusercontent.com/Zulu-Inuoe/winutil/85f9b8df95d772a94a07addf5b0f81f7da3df4d5/examples/zetcode/flashing-a-window.lisp
lisp
TODO - Flashing a window can get a nice wrapper for it in winutil
(defpackage #:com.inuoe.winutil.examples.flashing-a-window (:use #:cl) (:import-from #:cffi) (:import-from #:win32) (:import-from #:winutil) (:export #:flashing-a-window)) (in-package #:com.inuoe.winutil.examples.flashing-a-window) (defclass flashing-a-window (winutil:window) () (:default-initargs ...
b3486061e5e5b8c8daa5df3a16a6210cb94c88bf89ca8dc5ea9ce5bd794d537d
metawilm/cl-python
_functools.lisp
-*- Mode : LISP ; Syntax : COMMON - LISP ; Package : CLPYTHON.MODULE._FUNCTOOLS ; : PY - USER - READTABLE -*- ;; This software is Copyright ( c ) Franz Inc. and . Franz Inc. and grant you the rights to ;; distribute and use this software as governed by the terms of the Lisp Lesser GNU Public License ;; (),...
null
https://raw.githubusercontent.com/metawilm/cl-python/bce7f80b0c67d3c9f514556f2d14d098efecdde8/lib/_functools.lisp
lisp
Syntax : COMMON - LISP ; Package : CLPYTHON.MODULE._FUNCTOOLS ; : PY - USER - READTABLE -*- distribute and use this software as governed by the terms (), known as the LLGPL.
This software is Copyright ( c ) Franz Inc. and . Franz Inc. and grant you the rights to of the Lisp Lesser GNU Public License (in-package :clpython.module._functools) (in-syntax *user-readtable*) (defun |partial| (func &rest pos-kw-args-1) (let* ((pos-args-1 (loop while pos-kw-args-1 ...
5b17ee154d27c0f98b738769dc5bd9d0311a85c1f1a277e8fbecd4c4206ca3eb
TheAlgorithms/Haskell
GraphDist.hs
module Maths.GraphDist where -- calculates the distance from the origin calcDistOrigin :: Floating a => a -> a -> a -> a calcDistOrigin x y z = sqrt ((x ** 2) + (y ** 2) + (z ** 2)) calculates the distance between two points calcDist :: Floating a => a -> a -> a -> a -> a -> a -> a calcDist x1 x2 y1 y2 z1 z2 = sqrt...
null
https://raw.githubusercontent.com/TheAlgorithms/Haskell/9dcabef99fb8995a760ff25a9e0d659114c0b9d3/src/Maths/GraphDist.hs
haskell
calculates the distance from the origin
module Maths.GraphDist where calcDistOrigin :: Floating a => a -> a -> a -> a calcDistOrigin x y z = sqrt ((x ** 2) + (y ** 2) + (z ** 2)) calculates the distance between two points calcDist :: Floating a => a -> a -> a -> a -> a -> a -> a calcDist x1 x2 y1 y2 z1 z2 = sqrt ((x2 - x1) ** 2 + (y2 - y1) ** 2 + (z2 - z...
3d72978665cf4b3e81f4e4fa78847b5dbbe9f8dcce718f8091c9c816389ea010
tamarin-prover/tamarin-prover
Typing.hs
# LANGUAGE PatternGuards # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # module Sapic.Typing ( typeTheory , typeTheoryEnv , typeTermsWithEnv , typeProcess , TypingEnvironment (..) ) where import qualified Data.Map.Strict as Map import qualified Data.Foldable as F import qualified Data.S...
null
https://raw.githubusercontent.com/tamarin-prover/tamarin-prover/3bc614f0227848b0a3159688665f52cf7fa1c2f9/lib/sapic/src/Sapic/Typing.hs
haskell
| Smaller-or-equal / More-or-equally-specific relation on types. they are contradicting. Can also be used as Either type. | Default type for function with unspecified types or no type if no type defined, assume Nothing^n -> Nothing | Try to type term `t` with a type more specific than `tt`. Returns typed CASE: va...
# LANGUAGE PatternGuards # # LANGUAGE FlexibleContexts # # LANGUAGE ViewPatterns # module Sapic.Typing ( typeTheory , typeTheoryEnv , typeTermsWithEnv , typeProcess , TypingEnvironment (..) ) where import qualified Data.Map.Strict as Map import qualified Data.Foldable as F import qualified Data.S...
5c228fb1eb50fbfee060fd04f767525d56e419e18bc45decfaa3cfb3765bbcd8
mirage/lwt-dllist
lwt_dllist.mli
This file is formerly part of Lwt , released under the MIT license . * See LICENSE.md for details , or visit * . * See LICENSE.md for details, or visit * . *) (** Mutable double-linked list of elements *) (** A sequence is an object holding a list of elements which support the following operations: ...
null
https://raw.githubusercontent.com/mirage/lwt-dllist/9405bc1f1479ac94322a536e95bc64b03559996e/src/lwt_dllist.mli
ocaml
* Mutable double-linked list of elements * A sequence is an object holding a list of elements which support the following operations: - adding an element to the left or the right in time and space O(1) - taking an element from the left or the right in time and space O(1) - removing a previously added ...
This file is formerly part of Lwt , released under the MIT license . * See LICENSE.md for details , or visit * . * See LICENSE.md for details, or visit * . *) type 'a t type 'a node * Type of a node holding one value of type [ ' a ] in a sequence val get : 'a node -> 'a val set : 'a node -> 'a -> unit...
fd114c823fce254ba569bbfb4bd49fefdbd8c75752c78df5edd5f688cd7ce32a
mumuki/mulang
Typed.hs
module Language.Mulang.Inspector.Typed ( declaresTypeAlias, declaresTypeSignature, typesAs, typesParameterAs, typesReturnAs, usesType) where import Language.Mulang.Ast import Language.Mulang.Inspector.Primitive (containsDeclaration) import Language.Mulang.Inspector.Bound (BoundInspection, containsBoundDecl...
null
https://raw.githubusercontent.com/mumuki/mulang/92684f687566b2adafb331eae5b5916e2d90709e/src/Language/Mulang/Inspector/Typed.hs
haskell
module Language.Mulang.Inspector.Typed ( declaresTypeAlias, declaresTypeSignature, typesAs, typesParameterAs, typesReturnAs, usesType) where import Language.Mulang.Ast import Language.Mulang.Inspector.Primitive (containsDeclaration) import Language.Mulang.Inspector.Bound (BoundInspection, containsBoundDecl...
3a54485f052692e3640d1213afc8525888e4f1e478338a65ee875fb193893e60
semerdzhiev/fp-2020-21
solutions.rkt
#lang racket (#%require "../list.scm") Задача 1 (define (take n lst) (cond ((null? lst) '()) ((= n 0) '()) (else (cons (head lst) (take (- n 1) (tail lst)))) ) ) (define (drop n lst) (cond ((null? lst) '()) ((= n 0) lst) (else (drop (- n 1) ...
null
https://raw.githubusercontent.com/semerdzhiev/fp-2020-21/64fa00c4f940f75a28cc5980275b124ca21244bc/group-a/Week6-7-Lists/solutions.rkt
racket
(define (loop left sorted) sorted ) )
#lang racket (#%require "../list.scm") Задача 1 (define (take n lst) (cond ((null? lst) '()) ((= n 0) '()) (else (cons (head lst) (take (- n 1) (tail lst)))) ) ) (define (drop n lst) (cond ((null? lst) '()) ((= n 0) lst) (else (drop (- n 1) ...
071f7dd62aa764d7aafd67d178288861f0a98f5e0a1a0af3ebf6ae9c0348359c
discus-lang/ddc
Parse.hs
module DDC.Driver.Command.Parse ( cmdParseFromFile , cmdParseSourceTetraFromFile , cmdParseCoreFromFile) where import DDC.Driver.Stage import DDC.Build.Language import DDC.Source.Discus.Pretty import DDC.Source.Discus.Lexer as ST import DDC.Source.Discus.Parser as ST import DDC...
null
https://raw.githubusercontent.com/discus-lang/ddc/2baa1b4e2d43b6b02135257677671a83cb7384ac/src/s1/ddc-driver/DDC/Driver/Command/Parse.hs
haskell
----------------------------------------------------------------------------- | Parse a module. Any errors are thrown in the `ExceptT` monad. modules. The language to use is determined by inspecting the file name extension. ^ Driver config. ^ Module file name. Don't know how to parse this file. ---------...
module DDC.Driver.Command.Parse ( cmdParseFromFile , cmdParseSourceTetraFromFile , cmdParseCoreFromFile) where import DDC.Driver.Stage import DDC.Build.Language import DDC.Source.Discus.Pretty import DDC.Source.Discus.Lexer as ST import DDC.Source.Discus.Parser as ST import DDC...
0ffa196f82035f1ac826204d27ff5718da1f068bd0191e6a7dac9747e6fe2c94
macchiato-framework/examples
routes.cljs
(ns catfacts.routes (:require [bidi.bidi :as bidi] [cljs.reader :as reader] [hiccups.runtime] [macchiato.fs :as fs] [macchiato.util.response :as r] [mount.core :refer [defstate]]) (:require-macros [hiccups.core :refer [html]])) (defstate http-client :start (js/require "request")) (defn...
null
https://raw.githubusercontent.com/macchiato-framework/examples/946bdf1a04f5ef787fc83affdcbf6603bbf29b5c/catfacts/src/catfacts/routes.cljs
clojure
(ns catfacts.routes (:require [bidi.bidi :as bidi] [cljs.reader :as reader] [hiccups.runtime] [macchiato.fs :as fs] [macchiato.util.response :as r] [mount.core :refer [defstate]]) (:require-macros [hiccups.core :refer [html]])) (defstate http-client :start (js/require "request")) (defn...
ffa8df3454c4977f5405ea4525563f0a6cfde2bb1e8521dae0642efab2667bf8
NorfairKing/the-notes
Terms.hs
module Probability.ConditionalProbability.Terms where import Notes makeDefs [ "conditional probability" ] makeThm "Law of total probability"
null
https://raw.githubusercontent.com/NorfairKing/the-notes/ff9551b05ec3432d21dd56d43536251bf337be04/src/Probability/ConditionalProbability/Terms.hs
haskell
module Probability.ConditionalProbability.Terms where import Notes makeDefs [ "conditional probability" ] makeThm "Law of total probability"
263179f62c6a757f468a6c3e0bf378fdedbafb38fbaa14ed15c6cc2a51398a4b
mainej/schema-voyager
collection.cljs
(ns schema-voyager.html.pages.collection (:require ["@heroicons/react/outline/ChevronRightIcon" :as ChevronRightIcon] [schema-voyager.html.db :as db] [schema-voyager.html.components.value-type :as value-type] [schema-voyager.html.diagrams.core :as diagrams] [schema-voya...
null
https://raw.githubusercontent.com/mainej/schema-voyager/4069a716c5a087e297c0546ab7c4d21167cd3a59/src/web/schema_voyager/html/pages/collection.cljs
clojure
(ns schema-voyager.html.pages.collection (:require ["@heroicons/react/outline/ChevronRightIcon" :as ChevronRightIcon] [schema-voyager.html.db :as db] [schema-voyager.html.components.value-type :as value-type] [schema-voyager.html.diagrams.core :as diagrams] [schema-voya...